ada: Reorder components in Ada.Containers.Bounded_Doubly_Linked_Lists
[official-gcc.git] / gcc / configure
blob5f67808b77441ba730183eef90367b70a51b08a0
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
30 esac
34 as_nl='
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
174 esac
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
190 else
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1
201 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
202 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 PATH=/empty FPATH=/empty; export PATH FPATH
206 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
207 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
208 if (eval "$as_required") 2>/dev/null; then :
209 as_have_required=yes
210 else
211 as_have_required=no
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
215 else
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217 as_found=false
218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
220 IFS=$as_save_IFS
221 test -z "$as_dir" && as_dir=.
222 as_found=:
223 case $as_dir in #(
225 for as_base in sh bash ksh sh5; do
226 # Try only shells that exist, to save several forks.
227 as_shell=$as_dir/$as_base
228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230 CONFIG_SHELL=$as_shell as_have_required=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 break 2
235 done;;
236 esac
237 as_found=false
238 done
239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241 CONFIG_SHELL=$SHELL as_have_required=yes
242 fi; }
243 IFS=$as_save_IFS
246 if test "x$CONFIG_SHELL" != x; then :
247 export CONFIG_SHELL
248 # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
252 BASH_ENV=/dev/null
253 ENV=/dev/null
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255 case $- in # ((((
256 *v*x* | *x*v* ) as_opts=-vx ;;
257 *v* ) as_opts=-v ;;
258 *x* ) as_opts=-x ;;
259 * ) as_opts= ;;
260 esac
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265 exit 255
268 if test x$as_have_required = xno; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x${ZSH_VERSION+set} = xset ; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274 else
275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
280 exit 1
284 SHELL=${CONFIG_SHELL-/bin/sh}
285 export SHELL
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
293 # as_fn_unset VAR
294 # ---------------
295 # Portably unset VAR.
296 as_fn_unset ()
298 { eval $1=; unset $1;}
300 as_unset=as_fn_unset
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
305 as_fn_set_status ()
307 return $1
308 } # as_fn_set_status
310 # as_fn_exit STATUS
311 # -----------------
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313 as_fn_exit ()
315 set +e
316 as_fn_set_status $1
317 exit $1
318 } # as_fn_exit
320 # as_fn_mkdir_p
321 # -------------
322 # Create "$as_dir" as a directory, including parents if necessary.
323 as_fn_mkdir_p ()
326 case $as_dir in #(
327 -*) as_dir=./$as_dir;;
328 esac
329 test -d "$as_dir" || eval $as_mkdir_p || {
330 as_dirs=
331 while :; do
332 case $as_dir in #(
333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334 *) as_qdir=$as_dir;;
335 esac
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344 s//\1/
347 /^X\(\/\/\)[^/].*/{
348 s//\1/
351 /^X\(\/\/\)$/{
352 s//\1/
355 /^X\(\/\).*/{
356 s//\1/
359 s/.*/./; q'`
360 test -d "$as_dir" && break
361 done
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
366 } # as_fn_mkdir_p
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
373 test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
380 # implementations.
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
384 eval $1+=\$2
386 else
387 as_fn_append ()
389 eval $1=\$$1\$2
391 fi # as_fn_append
393 # as_fn_arith ARG...
394 # ------------------
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399 eval 'as_fn_arith ()
401 as_val=$(( $* ))
403 else
404 as_fn_arith ()
406 as_val=`expr "$@" || test $? -eq 1`
408 fi # as_fn_arith
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
416 as_fn_error ()
418 as_status=$1; test $as_status -eq 0 && as_status=1
419 if test "$4"; then
420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit $as_status
425 } # as_fn_error
427 if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
429 as_expr=expr
430 else
431 as_expr=false
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 as_basename=basename
436 else
437 as_basename=false
440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_dirname=dirname
442 else
443 as_dirname=false
446 as_me=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450 $as_echo X/"$0" |
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
452 s//\1/
455 /^X\/\(\/\/\)$/{
456 s//\1/
459 /^X\/\(\/\).*/{
460 s//\1/
463 s/.*/./; q'`
465 # Avoid depending upon Character Ranges.
466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits='0123456789'
470 as_cr_alnum=$as_cr_Letters$as_cr_digits
473 as_lineno_1=$LINENO as_lineno_1a=$LINENO
474 as_lineno_2=$LINENO as_lineno_2a=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
478 sed -n '
480 /[$]LINENO/=
481 ' <$as_myself |
482 sed '
483 s/[$]LINENO.*/&-/
484 t lineno
486 :lineno
488 :loop
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490 t loop
491 s/-\n.*//
492 ' >$as_me.lineno &&
493 chmod +x "$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec=no; export _as_can_reexec
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
503 . "./$as_me.lineno"
504 # Exit status is that of the last command.
505 exit
508 ECHO_C= ECHO_N= ECHO_T=
509 case `echo -n x` in #(((((
510 -n*)
511 case `echo 'xy\c'` in
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
513 xy) ECHO_C='\c';;
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
515 ECHO_T=' ';;
516 esac;;
518 ECHO_N='-n';;
519 esac
521 rm -f conf$$ conf$$.exe conf$$.file
522 if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
524 else
525 rm -f conf$$.dir
526 mkdir conf$$.dir 2>/dev/null
528 if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s='ln -s'
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534 # In both cases, we have to default to `cp -pR'.
535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536 as_ln_s='cp -pR'
537 elif ln conf$$.file conf$$ 2>/dev/null; then
538 as_ln_s=ln
539 else
540 as_ln_s='cp -pR'
542 else
543 as_ln_s='cp -pR'
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
548 if mkdir -p . 2>/dev/null; then
549 as_mkdir_p='mkdir -p "$as_dir"'
550 else
551 test -d ./-p && rmdir ./-p
552 as_mkdir_p=false
555 as_test_x='test -x'
556 as_executable_p=as_fn_executable_p
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
564 SHELL=${CONFIG_SHELL-/bin/sh}
567 test -n "$DJDIR" || exec 7<&0 </dev/null
568 exec 6>&1
570 # Name of the host.
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
576 # Initializations.
578 ac_default_prefix=/usr/local
579 ac_clean_files=
580 ac_config_libobj_dir=.
581 LIBOBJS=
582 cross_compiling=no
583 subdirs=
584 MFLAGS=
585 MAKEFLAGS=
587 # Identity of this package.
588 PACKAGE_NAME=
589 PACKAGE_TARNAME=
590 PACKAGE_VERSION=
591 PACKAGE_STRING=
592 PACKAGE_BUGREPORT=
593 PACKAGE_URL=
595 ac_unique_file="tree.cc"
596 # Factoring default headers for most tests.
597 ac_includes_default="\
598 #include <stdio.h>
599 #ifdef HAVE_SYS_TYPES_H
600 # include <sys/types.h>
601 #endif
602 #ifdef HAVE_SYS_STAT_H
603 # include <sys/stat.h>
604 #endif
605 #ifdef STDC_HEADERS
606 # include <stdlib.h>
607 # include <stddef.h>
608 #else
609 # ifdef HAVE_STDLIB_H
610 # include <stdlib.h>
611 # endif
612 #endif
613 #ifdef HAVE_STRING_H
614 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
615 # include <memory.h>
616 # endif
617 # include <string.h>
618 #endif
619 #ifdef HAVE_STRINGS_H
620 # include <strings.h>
621 #endif
622 #ifdef HAVE_INTTYPES_H
623 # include <inttypes.h>
624 #endif
625 #ifdef HAVE_STDINT_H
626 # include <stdint.h>
627 #endif
628 #ifdef HAVE_UNISTD_H
629 # include <unistd.h>
630 #endif"
632 ac_subst_vars='LTLIBOBJS
633 LIBOBJS
634 CET_HOST_FLAGS
635 NO_PIE_FLAG
636 NO_PIE_CFLAGS
637 enable_default_pie
638 PICFLAG
639 enable_host_shared
640 enable_plugin
641 pluginlibs
642 ISLINC
643 ISLLIBS
644 GMPINC
645 GMPLIBS
646 target_cpu_default
647 d_target_objs
648 fortran_target_objs
649 cxx_target_objs
650 c_target_objs
651 use_gcc_stdint
652 xm_defines
653 xm_include_list
654 xm_file_list
655 tm_d_include_list
656 tm_d_file_list
657 tm_p_include_list
658 tm_p_file_list
659 tm_defines
660 tm_include_list
661 tm_file_list
662 common_out_object_file
663 common_out_file
664 out_object_file
665 out_file
666 objc_boehm_gc
667 md_file
668 local_prefix
669 lang_tree_files
670 lang_specs_files
671 lang_opt_files
672 install
673 out_host_hook_obj
674 host_xm_defines
675 host_xm_include_list
676 host_xm_file_list
677 host_exeext
678 gcc_gxx_libcxx_include_dir_add_sysroot
679 gcc_gxx_libcxx_include_dir
680 gcc_gxx_include_dir_add_sysroot
681 gcc_gxx_include_dir
682 gcc_config_arguments
683 float_h_file
684 extra_programs
685 extra_objs
686 extra_headers_list
687 user_headers_inc_next_post
688 user_headers_inc_next_pre
689 extra_gcc_objs
690 TM_MULTILIB_EXCEPTIONS_CONFIG
691 TM_MULTILIB_CONFIG
692 TM_ENDIAN_CONFIG
693 tmake_file
694 xmake_file
695 cpp_install_dir
696 selftest_languages
697 check_languages
698 build_file_translate
699 build_xm_defines
700 build_xm_include_list
701 build_xm_file_list
702 build_install_headers_dir
703 build_exeext
704 all_selected_languages
705 all_languages
706 all_lang_makefrags
707 all_lang_configurefrags
708 all_gtfiles
709 all_compilers
710 srcdir
711 subdirs
712 dollar
713 gcc_tooldir
714 enable_lto
715 DO_LINK_SERIALIZATION
716 DO_LINK_MUTEX
717 CSCOPE
718 ETAGS
719 CTAGS
720 MAINT
721 zlibinc
722 zlibdir
723 HOST_LIBS
724 enable_default_ssp
725 thin_archive_support
726 ld_soname_option
727 ld_version_script_option
728 libgcc_visibility
729 ORIGINAL_DSYMUTIL_FOR_TARGET
730 gcc_cv_dsymutil
731 gcc_cv_otool
732 gcc_cv_readelf
733 gcc_cv_objdump
734 ORIGINAL_NM_FOR_TARGET
735 gcc_cv_nm
736 ORIGINAL_LD_GOLD_FOR_TARGET
737 ORIGINAL_LD_BFD_FOR_TARGET
738 ORIGINAL_LD_FOR_TARGET
739 ORIGINAL_PLUGIN_LD_FOR_TARGET
740 gcc_cv_ld
741 ORIGINAL_AS_FOR_TARGET
742 gcc_cv_as
743 enable_fast_install
744 objdir
745 OTOOL64
746 OTOOL
747 LIPO
748 NMEDIT
749 DSYMUTIL
750 STRIP
751 OBJDUMP
752 ac_ct_DUMPBIN
753 DUMPBIN
755 FGREP
757 LIBTOOL
758 collect2
759 STMP_FIXINC
760 BUILD_LDFLAGS
761 BUILD_CXXFLAGS
762 BUILD_CFLAGS
763 CXX_FOR_BUILD
764 CC_FOR_BUILD
765 inhibit_libc
766 BUILD_SYSTEM_HEADER_DIR
767 SYSTEM_HEADER_DIR
769 CROSS
770 CATOBJEXT
771 GENCAT
772 INSTOBJEXT
773 DATADIRNAME
774 CATALOGS
775 POSUB
776 GMSGFMT
777 XGETTEXT
778 INCINTL
779 LIBINTL_DEP
780 LIBINTL
781 USE_NLS
782 get_gcc_base_ver
783 HAVE_AUTO_BUILD
784 extra_opt_files
785 extra_modes_file
786 NATIVE_SYSTEM_HEADER_DIR
787 objext
788 manext
789 LIBICONV_DEP
790 LTLIBICONV
791 LIBICONV
792 ZSTD_LDFLAGS
793 ZSTD_CPPFLAGS
794 ZSTD_LIB
795 ZSTD_INCLUDE
796 DL_LIB
797 LDEXP_LIB
798 NETLIBS
799 EXTRA_GCC_LIBS
800 GNAT_LIBEXC
801 COLLECT2_LIBS
802 CXXDEPMODE
803 DEPDIR
804 am__leading_dot
805 doc_build_sys
808 HAVE_PYTHON
809 PYTHON
810 BISON
811 FLEX
812 GENERATED_MANPAGES
813 MAKEINFO_TOC_INLINE_FLAG
814 BUILD_INFO
815 MAKEINFO
816 have_mktemp_command
817 make_compare_target
818 INSTALL_DATA
819 INSTALL_PROGRAM
820 INSTALL
821 ranlib_flags
822 RANLIB
824 LN_S
826 SET_MAKE
827 omp_device_property_deps
828 omp_device_properties
829 accel_dir_suffix
830 real_target_noncanonical
831 enable_as_accelerator
832 gnat_install_lib
833 REPORT_BUGS_TEXI
834 REPORT_BUGS_TO
835 PKGVERSION
836 CONFIGURE_SPECS
837 enable_gcov
838 enable_shared
839 enable_fixed_point
840 enable_decimal_float
841 DEFAULT_MATCHPD_PARTITIONS
842 with_float
843 with_cpu
844 enable_multiarch
845 enable_multilib
846 coverage_flags
847 valgrind_command
848 valgrind_path_defines
849 valgrind_path
850 TREECHECKING
851 nocommon_flag
852 noexception_flags
853 warn_cxxflags
854 warn_cflags
855 c_strict_warn
856 strict_warn
857 c_loose_warn
858 loose_warn
859 aliasing_flags
861 EGREP
862 GREP
863 CXXCPP
864 PICFLAG_FOR_TARGET
865 GDCFLAGS
867 GNATMAKE
868 GNATBIND
869 ac_ct_CXX
870 CXXFLAGS
872 OBJEXT
873 EXEEXT
874 ac_ct_CC
875 CPPFLAGS
876 LDFLAGS
877 CFLAGS
879 GENINSRC
880 CROSS_SYSTEM_HEADER_DIR
881 TARGET_SYSTEM_ROOT_DEFINE
882 TARGET_SYSTEM_ROOT
883 SYSROOT_CFLAGS_FOR_TARGET
884 target_subdir
885 host_subdir
886 build_subdir
887 build_libsubdir
888 target_noncanonical
889 host_noncanonical
890 target_os
891 target_vendor
892 target_cpu
893 target
894 host_os
895 host_vendor
896 host_cpu
897 host
898 build_os
899 build_vendor
900 build_cpu
901 build
902 target_alias
903 host_alias
904 build_alias
905 LIBS
906 ECHO_T
907 ECHO_N
908 ECHO_C
909 DEFS
910 mandir
911 localedir
912 libdir
913 psdir
914 pdfdir
915 dvidir
916 htmldir
917 infodir
918 docdir
919 oldincludedir
920 includedir
921 localstatedir
922 sharedstatedir
923 sysconfdir
924 datadir
925 datarootdir
926 libexecdir
927 sbindir
928 bindir
929 program_transform_name
930 prefix
931 exec_prefix
932 PACKAGE_URL
933 PACKAGE_BUGREPORT
934 PACKAGE_STRING
935 PACKAGE_VERSION
936 PACKAGE_TARNAME
937 PACKAGE_NAME
938 PATH_SEPARATOR
939 SHELL'
940 ac_subst_files='option_includes
941 language_hooks'
942 ac_user_opts='
943 enable_option_checking
944 with_build_libsubdir
945 with_local_prefix
946 with_native_system_header_dir
947 with_build_sysroot
948 with_sysroot
949 with_gxx_include_dir
950 with_gxx_libcxx_include_dir
951 with_cpp_install_dir
952 enable_generated_files_in_srcdir
953 with_gnu_ld
954 with_ld
955 with_demangler_in_ld
956 with_dsymutil
957 with_gnu_as
958 with_as
959 enable_largefile
960 enable_build_format_warnings
961 enable_werror_always
962 enable_checking
963 enable_coverage
964 enable_gather_detailed_mem_stats
965 enable_valgrind_annotations
966 enable_multilib
967 enable_multiarch
968 with_stack_clash_protection_guard_size
969 with_matchpd_partitions
970 enable___cxa_atexit
971 enable_decimal_float
972 enable_fixed_point
973 enable_threads
974 enable_tls
975 enable_vtable_verify
976 enable_analyzer
977 enable_objc_gc
978 with_dwarf2
979 enable_shared
980 enable_gcov
981 with_specs
982 with_pkgversion
983 with_bugurl
984 with_documentation_root_url
985 with_changes_root_url
986 enable_languages
987 with_multilib_list
988 with_multilib_generator
989 with_zstd
990 with_zstd_include
991 with_zstd_lib
992 enable_rpath
993 with_libiconv_prefix
994 with_libiconv_type
995 enable_sjlj_exceptions
996 with_gcc_major_version_only
997 enable_secureplt
998 enable_mingw_wildcard
999 enable_large_address_aware
1000 enable_leading_mingw64_underscores
1001 enable_cld
1002 enable_frame_pointer
1003 enable_win32_registry
1004 enable_static
1005 with_pic
1006 enable_fast_install
1007 enable_libtool_lock
1008 enable_ld
1009 enable_gold
1010 with_plugin_ld
1011 enable_gnu_indirect_function
1012 enable_initfini_array
1013 enable_comdat
1014 enable_newlib_nano_formatted_io
1015 enable_standard_branch_protection
1016 enable_fix_cortex_a53_835769
1017 enable_fix_cortex_a53_843419
1018 with_glibc_version
1019 enable_gnu_unique_object
1020 enable_linker_build_id
1021 enable_libssp
1022 enable_default_ssp
1023 with_long_double_128
1024 with_long_double_format
1025 with_gc
1026 with_system_zlib
1027 enable_maintainer_mode
1028 enable_link_mutex
1029 enable_link_serialization
1030 enable_version_specific_runtime_libs
1031 enable_plugin
1032 enable_host_shared
1033 enable_libquadmath_support
1034 with_linker_hash_style
1035 with_diagnostics_color
1036 with_diagnostics_urls
1037 enable_default_pie
1038 enable_cet
1039 enable_s390_excess_float_precision
1041 ac_precious_vars='build_alias
1042 host_alias
1043 target_alias
1045 CFLAGS
1046 LDFLAGS
1047 LIBS
1048 CPPFLAGS
1050 CXXFLAGS
1052 CXXCPP
1054 GMPLIBS
1055 GMPINC
1056 ISLLIBS
1057 ISLINC'
1060 # Initialize some variables set by options.
1061 ac_init_help=
1062 ac_init_version=false
1063 ac_unrecognized_opts=
1064 ac_unrecognized_sep=
1065 # The variables have the same names as the options, with
1066 # dashes changed to underlines.
1067 cache_file=/dev/null
1068 exec_prefix=NONE
1069 no_create=
1070 no_recursion=
1071 prefix=NONE
1072 program_prefix=NONE
1073 program_suffix=NONE
1074 program_transform_name=s,x,x,
1075 silent=
1076 site=
1077 srcdir=
1078 verbose=
1079 x_includes=NONE
1080 x_libraries=NONE
1082 # Installation directory options.
1083 # These are left unexpanded so users can "make install exec_prefix=/foo"
1084 # and all the variables that are supposed to be based on exec_prefix
1085 # by default will actually change.
1086 # Use braces instead of parens because sh, perl, etc. also accept them.
1087 # (The list follows the same order as the GNU Coding Standards.)
1088 bindir='${exec_prefix}/bin'
1089 sbindir='${exec_prefix}/sbin'
1090 libexecdir='${exec_prefix}/libexec'
1091 datarootdir='${prefix}/share'
1092 datadir='${datarootdir}'
1093 sysconfdir='${prefix}/etc'
1094 sharedstatedir='${prefix}/com'
1095 localstatedir='${prefix}/var'
1096 includedir='${prefix}/include'
1097 oldincludedir='/usr/include'
1098 docdir='${datarootdir}/doc/${PACKAGE}'
1099 infodir='${datarootdir}/info'
1100 htmldir='${docdir}'
1101 dvidir='${docdir}'
1102 pdfdir='${docdir}'
1103 psdir='${docdir}'
1104 libdir='${exec_prefix}/lib'
1105 localedir='${datarootdir}/locale'
1106 mandir='${datarootdir}/man'
1108 ac_prev=
1109 ac_dashdash=
1110 for ac_option
1112 # If the previous option needs an argument, assign it.
1113 if test -n "$ac_prev"; then
1114 eval $ac_prev=\$ac_option
1115 ac_prev=
1116 continue
1119 case $ac_option in
1120 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1121 *=) ac_optarg= ;;
1122 *) ac_optarg=yes ;;
1123 esac
1125 # Accept the important Cygnus configure options, so we can diagnose typos.
1127 case $ac_dashdash$ac_option in
1129 ac_dashdash=yes ;;
1131 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1132 ac_prev=bindir ;;
1133 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1134 bindir=$ac_optarg ;;
1136 -build | --build | --buil | --bui | --bu)
1137 ac_prev=build_alias ;;
1138 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1139 build_alias=$ac_optarg ;;
1141 -cache-file | --cache-file | --cache-fil | --cache-fi \
1142 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1143 ac_prev=cache_file ;;
1144 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1145 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1146 cache_file=$ac_optarg ;;
1148 --config-cache | -C)
1149 cache_file=config.cache ;;
1151 -datadir | --datadir | --datadi | --datad)
1152 ac_prev=datadir ;;
1153 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1154 datadir=$ac_optarg ;;
1156 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1157 | --dataroo | --dataro | --datar)
1158 ac_prev=datarootdir ;;
1159 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1160 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1161 datarootdir=$ac_optarg ;;
1163 -disable-* | --disable-*)
1164 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1165 # Reject names that are not valid shell variable names.
1166 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1167 as_fn_error $? "invalid feature name: $ac_useropt"
1168 ac_useropt_orig=$ac_useropt
1169 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1170 case $ac_user_opts in
1172 "enable_$ac_useropt"
1173 "*) ;;
1174 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1175 ac_unrecognized_sep=', ';;
1176 esac
1177 eval enable_$ac_useropt=no ;;
1179 -docdir | --docdir | --docdi | --doc | --do)
1180 ac_prev=docdir ;;
1181 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1182 docdir=$ac_optarg ;;
1184 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1185 ac_prev=dvidir ;;
1186 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1187 dvidir=$ac_optarg ;;
1189 -enable-* | --enable-*)
1190 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1191 # Reject names that are not valid shell variable names.
1192 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1193 as_fn_error $? "invalid feature name: $ac_useropt"
1194 ac_useropt_orig=$ac_useropt
1195 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1196 case $ac_user_opts in
1198 "enable_$ac_useropt"
1199 "*) ;;
1200 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1201 ac_unrecognized_sep=', ';;
1202 esac
1203 eval enable_$ac_useropt=\$ac_optarg ;;
1205 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1206 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1207 | --exec | --exe | --ex)
1208 ac_prev=exec_prefix ;;
1209 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1210 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1211 | --exec=* | --exe=* | --ex=*)
1212 exec_prefix=$ac_optarg ;;
1214 -gas | --gas | --ga | --g)
1215 # Obsolete; use --with-gas.
1216 with_gas=yes ;;
1218 -help | --help | --hel | --he | -h)
1219 ac_init_help=long ;;
1220 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1221 ac_init_help=recursive ;;
1222 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1223 ac_init_help=short ;;
1225 -host | --host | --hos | --ho)
1226 ac_prev=host_alias ;;
1227 -host=* | --host=* | --hos=* | --ho=*)
1228 host_alias=$ac_optarg ;;
1230 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1231 ac_prev=htmldir ;;
1232 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1233 | --ht=*)
1234 htmldir=$ac_optarg ;;
1236 -includedir | --includedir | --includedi | --included | --include \
1237 | --includ | --inclu | --incl | --inc)
1238 ac_prev=includedir ;;
1239 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1240 | --includ=* | --inclu=* | --incl=* | --inc=*)
1241 includedir=$ac_optarg ;;
1243 -infodir | --infodir | --infodi | --infod | --info | --inf)
1244 ac_prev=infodir ;;
1245 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1246 infodir=$ac_optarg ;;
1248 -libdir | --libdir | --libdi | --libd)
1249 ac_prev=libdir ;;
1250 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1251 libdir=$ac_optarg ;;
1253 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1254 | --libexe | --libex | --libe)
1255 ac_prev=libexecdir ;;
1256 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1257 | --libexe=* | --libex=* | --libe=*)
1258 libexecdir=$ac_optarg ;;
1260 -localedir | --localedir | --localedi | --localed | --locale)
1261 ac_prev=localedir ;;
1262 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1263 localedir=$ac_optarg ;;
1265 -localstatedir | --localstatedir | --localstatedi | --localstated \
1266 | --localstate | --localstat | --localsta | --localst | --locals)
1267 ac_prev=localstatedir ;;
1268 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1269 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1270 localstatedir=$ac_optarg ;;
1272 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1273 ac_prev=mandir ;;
1274 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1275 mandir=$ac_optarg ;;
1277 -nfp | --nfp | --nf)
1278 # Obsolete; use --without-fp.
1279 with_fp=no ;;
1281 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1282 | --no-cr | --no-c | -n)
1283 no_create=yes ;;
1285 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1286 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1287 no_recursion=yes ;;
1289 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1290 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1291 | --oldin | --oldi | --old | --ol | --o)
1292 ac_prev=oldincludedir ;;
1293 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1294 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1295 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1296 oldincludedir=$ac_optarg ;;
1298 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1299 ac_prev=prefix ;;
1300 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1301 prefix=$ac_optarg ;;
1303 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1304 | --program-pre | --program-pr | --program-p)
1305 ac_prev=program_prefix ;;
1306 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1307 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1308 program_prefix=$ac_optarg ;;
1310 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1311 | --program-suf | --program-su | --program-s)
1312 ac_prev=program_suffix ;;
1313 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1314 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1315 program_suffix=$ac_optarg ;;
1317 -program-transform-name | --program-transform-name \
1318 | --program-transform-nam | --program-transform-na \
1319 | --program-transform-n | --program-transform- \
1320 | --program-transform | --program-transfor \
1321 | --program-transfo | --program-transf \
1322 | --program-trans | --program-tran \
1323 | --progr-tra | --program-tr | --program-t)
1324 ac_prev=program_transform_name ;;
1325 -program-transform-name=* | --program-transform-name=* \
1326 | --program-transform-nam=* | --program-transform-na=* \
1327 | --program-transform-n=* | --program-transform-=* \
1328 | --program-transform=* | --program-transfor=* \
1329 | --program-transfo=* | --program-transf=* \
1330 | --program-trans=* | --program-tran=* \
1331 | --progr-tra=* | --program-tr=* | --program-t=*)
1332 program_transform_name=$ac_optarg ;;
1334 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1335 ac_prev=pdfdir ;;
1336 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1337 pdfdir=$ac_optarg ;;
1339 -psdir | --psdir | --psdi | --psd | --ps)
1340 ac_prev=psdir ;;
1341 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1342 psdir=$ac_optarg ;;
1344 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1345 | -silent | --silent | --silen | --sile | --sil)
1346 silent=yes ;;
1348 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1349 ac_prev=sbindir ;;
1350 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1351 | --sbi=* | --sb=*)
1352 sbindir=$ac_optarg ;;
1354 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1355 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1356 | --sharedst | --shareds | --shared | --share | --shar \
1357 | --sha | --sh)
1358 ac_prev=sharedstatedir ;;
1359 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1360 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1361 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1362 | --sha=* | --sh=*)
1363 sharedstatedir=$ac_optarg ;;
1365 -site | --site | --sit)
1366 ac_prev=site ;;
1367 -site=* | --site=* | --sit=*)
1368 site=$ac_optarg ;;
1370 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1371 ac_prev=srcdir ;;
1372 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1373 srcdir=$ac_optarg ;;
1375 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1376 | --syscon | --sysco | --sysc | --sys | --sy)
1377 ac_prev=sysconfdir ;;
1378 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1379 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1380 sysconfdir=$ac_optarg ;;
1382 -target | --target | --targe | --targ | --tar | --ta | --t)
1383 ac_prev=target_alias ;;
1384 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1385 target_alias=$ac_optarg ;;
1387 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1388 verbose=yes ;;
1390 -version | --version | --versio | --versi | --vers | -V)
1391 ac_init_version=: ;;
1393 -with-* | --with-*)
1394 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1395 # Reject names that are not valid shell variable names.
1396 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1397 as_fn_error $? "invalid package name: $ac_useropt"
1398 ac_useropt_orig=$ac_useropt
1399 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1400 case $ac_user_opts in
1402 "with_$ac_useropt"
1403 "*) ;;
1404 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1405 ac_unrecognized_sep=', ';;
1406 esac
1407 eval with_$ac_useropt=\$ac_optarg ;;
1409 -without-* | --without-*)
1410 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1411 # Reject names that are not valid shell variable names.
1412 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1413 as_fn_error $? "invalid package name: $ac_useropt"
1414 ac_useropt_orig=$ac_useropt
1415 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1416 case $ac_user_opts in
1418 "with_$ac_useropt"
1419 "*) ;;
1420 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1421 ac_unrecognized_sep=', ';;
1422 esac
1423 eval with_$ac_useropt=no ;;
1425 --x)
1426 # Obsolete; use --with-x.
1427 with_x=yes ;;
1429 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1430 | --x-incl | --x-inc | --x-in | --x-i)
1431 ac_prev=x_includes ;;
1432 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1433 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1434 x_includes=$ac_optarg ;;
1436 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1437 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1438 ac_prev=x_libraries ;;
1439 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1440 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1441 x_libraries=$ac_optarg ;;
1443 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1444 Try \`$0 --help' for more information"
1447 *=*)
1448 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1449 # Reject names that are not valid shell variable names.
1450 case $ac_envvar in #(
1451 '' | [0-9]* | *[!_$as_cr_alnum]* )
1452 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1453 esac
1454 eval $ac_envvar=\$ac_optarg
1455 export $ac_envvar ;;
1458 # FIXME: should be removed in autoconf 3.0.
1459 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1460 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1461 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1462 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1465 esac
1466 done
1468 if test -n "$ac_prev"; then
1469 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1470 as_fn_error $? "missing argument to $ac_option"
1473 if test -n "$ac_unrecognized_opts"; then
1474 case $enable_option_checking in
1475 no) ;;
1476 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1477 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1478 esac
1481 # Check all directory arguments for consistency.
1482 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1483 datadir sysconfdir sharedstatedir localstatedir includedir \
1484 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1485 libdir localedir mandir
1487 eval ac_val=\$$ac_var
1488 # Remove trailing slashes.
1489 case $ac_val in
1490 */ )
1491 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1492 eval $ac_var=\$ac_val;;
1493 esac
1494 # Be sure to have absolute directory names.
1495 case $ac_val in
1496 [\\/$]* | ?:[\\/]* ) continue;;
1497 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1498 esac
1499 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1500 done
1502 # There might be people who depend on the old broken behavior: `$host'
1503 # used to hold the argument of --host etc.
1504 # FIXME: To remove some day.
1505 build=$build_alias
1506 host=$host_alias
1507 target=$target_alias
1509 # FIXME: To remove some day.
1510 if test "x$host_alias" != x; then
1511 if test "x$build_alias" = x; then
1512 cross_compiling=maybe
1513 elif test "x$build_alias" != "x$host_alias"; then
1514 cross_compiling=yes
1518 ac_tool_prefix=
1519 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1521 test "$silent" = yes && exec 6>/dev/null
1524 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1525 ac_ls_di=`ls -di .` &&
1526 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1527 as_fn_error $? "working directory cannot be determined"
1528 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1529 as_fn_error $? "pwd does not report name of working directory"
1532 # Find the source files, if location was not specified.
1533 if test -z "$srcdir"; then
1534 ac_srcdir_defaulted=yes
1535 # Try the directory containing this script, then the parent directory.
1536 ac_confdir=`$as_dirname -- "$as_myself" ||
1537 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1538 X"$as_myself" : 'X\(//\)[^/]' \| \
1539 X"$as_myself" : 'X\(//\)$' \| \
1540 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1541 $as_echo X"$as_myself" |
1542 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1543 s//\1/
1546 /^X\(\/\/\)[^/].*/{
1547 s//\1/
1550 /^X\(\/\/\)$/{
1551 s//\1/
1554 /^X\(\/\).*/{
1555 s//\1/
1558 s/.*/./; q'`
1559 srcdir=$ac_confdir
1560 if test ! -r "$srcdir/$ac_unique_file"; then
1561 srcdir=..
1563 else
1564 ac_srcdir_defaulted=no
1566 if test ! -r "$srcdir/$ac_unique_file"; then
1567 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1568 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1570 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1571 ac_abs_confdir=`(
1572 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1573 pwd)`
1574 # When building in place, set srcdir=.
1575 if test "$ac_abs_confdir" = "$ac_pwd"; then
1576 srcdir=.
1578 # Remove unnecessary trailing slashes from srcdir.
1579 # Double slashes in file names in object file debugging info
1580 # mess up M-x gdb in Emacs.
1581 case $srcdir in
1582 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1583 esac
1584 for ac_var in $ac_precious_vars; do
1585 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1586 eval ac_env_${ac_var}_value=\$${ac_var}
1587 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1588 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1589 done
1592 # Report the --help message.
1594 if test "$ac_init_help" = "long"; then
1595 # Omit some internal or obsolete options to make the list less imposing.
1596 # This message is too long to be a string in the A/UX 3.1 sh.
1597 cat <<_ACEOF
1598 \`configure' configures this package to adapt to many kinds of systems.
1600 Usage: $0 [OPTION]... [VAR=VALUE]...
1602 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1603 VAR=VALUE. See below for descriptions of some of the useful variables.
1605 Defaults for the options are specified in brackets.
1607 Configuration:
1608 -h, --help display this help and exit
1609 --help=short display options specific to this package
1610 --help=recursive display the short help of all the included packages
1611 -V, --version display version information and exit
1612 -q, --quiet, --silent do not print \`checking ...' messages
1613 --cache-file=FILE cache test results in FILE [disabled]
1614 -C, --config-cache alias for \`--cache-file=config.cache'
1615 -n, --no-create do not create output files
1616 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1618 Installation directories:
1619 --prefix=PREFIX install architecture-independent files in PREFIX
1620 [$ac_default_prefix]
1621 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1622 [PREFIX]
1624 By default, \`make install' will install all the files in
1625 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1626 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1627 for instance \`--prefix=\$HOME'.
1629 For better control, use the options below.
1631 Fine tuning of the installation directories:
1632 --bindir=DIR user executables [EPREFIX/bin]
1633 --sbindir=DIR system admin executables [EPREFIX/sbin]
1634 --libexecdir=DIR program executables [EPREFIX/libexec]
1635 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1636 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1637 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1638 --libdir=DIR object code libraries [EPREFIX/lib]
1639 --includedir=DIR C header files [PREFIX/include]
1640 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1641 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1642 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1643 --infodir=DIR info documentation [DATAROOTDIR/info]
1644 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1645 --mandir=DIR man documentation [DATAROOTDIR/man]
1646 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1647 --htmldir=DIR html documentation [DOCDIR]
1648 --dvidir=DIR dvi documentation [DOCDIR]
1649 --pdfdir=DIR pdf documentation [DOCDIR]
1650 --psdir=DIR ps documentation [DOCDIR]
1651 _ACEOF
1653 cat <<\_ACEOF
1655 Program names:
1656 --program-prefix=PREFIX prepend PREFIX to installed program names
1657 --program-suffix=SUFFIX append SUFFIX to installed program names
1658 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1660 System types:
1661 --build=BUILD configure for building on BUILD [guessed]
1662 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1663 --target=TARGET configure for building compilers for TARGET [HOST]
1664 _ACEOF
1667 if test -n "$ac_init_help"; then
1669 cat <<\_ACEOF
1671 Optional Features:
1672 --disable-option-checking ignore unrecognized --enable/--with options
1673 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1674 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1675 --enable-generated-files-in-srcdir
1676 put copies of generated files in source dir intended
1677 for creating source tarballs for users without
1678 texinfo bison or flex
1679 --disable-largefile omit support for large files
1680 --disable-build-format-warnings
1681 don't use -Wformat while building GCC
1682 --enable-werror-always enable -Werror despite compiler version
1683 --enable-checking[=LIST]
1684 enable expensive run-time checks. With LIST, enable
1685 only specific categories of checks. Categories are:
1686 yes,no,all,none,release. Flags are:
1687 assert,df,extra,fold,gc,gcac,gimple,misc,
1688 rtlflag,rtl,runtime,tree,valgrind,types
1689 --enable-coverage[=LEVEL]
1690 enable compiler's code coverage collection. Use to
1691 measure compiler performance and locate unused parts
1692 of the compiler. With LEVEL, specify optimization.
1693 Values are opt, noopt, default is noopt
1694 --enable-gather-detailed-mem-stats
1695 enable detailed memory allocation stats gathering
1696 --enable-valgrind-annotations
1697 enable valgrind runtime interaction
1698 --enable-multilib enable library support for multiple ABIs
1699 --enable-multiarch enable support for multiarch paths
1700 --enable-__cxa_atexit enable __cxa_atexit for C++
1701 --enable-decimal-float={no,yes,bid,dpd}
1702 enable decimal float extension to C. Selecting 'bid'
1703 or 'dpd' choses which decimal floating point format
1704 to use
1705 --enable-fixed-point enable fixed-point arithmetic extension to C
1706 --enable-threads[=LIB] enable thread usage for target GCC, using LIB thread
1707 package
1708 --enable-tls enable or disable generation of tls code overriding
1709 the assembler check for tls support
1710 --enable-vtable-verify enable vtable verification feature
1711 --disable-analyzer disable -fanalyzer static analyzer
1712 --enable-objc-gc enable the use of Boehm's garbage collector with the
1713 GNU Objective-C runtime
1714 --disable-shared don't provide a shared libgcc
1715 --disable-gcov don't provide libgcov and related host tools
1716 --enable-languages=LIST specify which front-ends to build
1717 --disable-rpath do not hardcode runtime library paths
1718 --enable-sjlj-exceptions
1719 arrange to use setjmp/longjmp exception handling
1720 --enable-secureplt enable -msecure-plt by default for PowerPC
1721 --enable-mingw-wildcard Set whether to expand wildcard on command-line.
1722 Default to platform configuration
1723 --enable-large-address-aware
1724 Link mingw executables with --large-address-aware
1725 --enable-leading-mingw64-underscores
1726 enable leading underscores on 64 bit mingw targets
1727 --enable-cld enable -mcld by default for 32bit x86
1728 --enable-frame-pointer enable -fno-omit-frame-pointer by default for x86
1729 --disable-win32-registry
1730 disable lookup of installation paths in the Registry
1731 on Windows hosts
1732 --enable-win32-registry enable registry lookup (default)
1733 --enable-win32-registry=KEY
1734 use KEY instead of GCC version as the last portion
1735 of the registry key
1736 --enable-shared[=PKGS] build shared libraries [default=yes]
1737 --enable-static[=PKGS] build static libraries [default=yes]
1738 --enable-fast-install[=PKGS]
1739 optimize for fast installation [default=yes]
1740 --disable-libtool-lock avoid locking (might break parallel builds)
1741 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1742 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1743 --enable-gnu-indirect-function
1744 enable the use of the @gnu_indirect_function to
1745 glibc systems
1746 --enable-initfini-array use .init_array/.fini_array sections
1747 --enable-comdat enable COMDAT group support
1748 --enable-newlib-nano-formatted-io
1749 Use nano version formatted IO
1751 --enable-standard-branch-protection
1752 enable Branch Target Identification Mechanism and
1753 Return Address Signing by default for AArch64
1754 --disable-standard-branch-protection
1755 disable Branch Target Identification Mechanism and
1756 Return Address Signing by default for AArch64
1759 --enable-fix-cortex-a53-835769
1760 enable workaround for AArch64 Cortex-A53 erratum
1761 835769 by default
1762 --disable-fix-cortex-a53-835769
1763 disable workaround for AArch64 Cortex-A53 erratum
1764 835769 by default
1767 --enable-fix-cortex-a53-843419
1768 enable workaround for AArch64 Cortex-A53 erratum
1769 843419 by default
1770 --disable-fix-cortex-a53-843419
1771 disable workaround for AArch64 Cortex-A53 erratum
1772 843419 by default
1774 --enable-gnu-unique-object
1775 enable the use of the @gnu_unique_object ELF
1776 extension on glibc systems
1777 --enable-linker-build-id
1778 compiler will always pass --build-id to linker
1779 --enable-libssp enable linking against libssp
1780 --enable-default-ssp enable Stack Smashing Protection as default
1781 --enable-maintainer-mode
1782 enable make rules and dependencies not useful (and
1783 sometimes confusing) to the casual installer
1784 --enable-link-mutex avoid linking multiple front-ends at once to avoid
1785 thrashing on the build machine
1786 --enable-link-serialization
1787 avoid linking multiple GCC front-ends at once using
1788 make dependencies to avoid thrashing on the build
1789 machine
1790 --enable-version-specific-runtime-libs
1791 specify that runtime libraries should be installed
1792 in a compiler-specific directory
1793 --enable-plugin enable plugin support
1794 --enable-host-shared build host code as shared libraries
1795 --disable-libquadmath-support
1796 disable libquadmath support for Fortran
1797 --enable-default-pie enable Position Independent Executable as default
1798 --enable-cet enable Intel CET in host libraries [default=auto]
1799 --enable-s390-excess-float-precision
1800 on s390 targets, evaluate float with double
1801 precision when in standards-conforming mode
1803 Optional Packages:
1804 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1805 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1806 --with-build-libsubdir=DIR Directory where to find libraries for build system
1807 --with-local-prefix=DIR specifies directory to put local include
1808 --with-native-system-header-dir=dir
1809 use dir as the directory to look for standard
1810 system header files in. Defaults to /usr/include.
1811 --with-build-sysroot=sysroot
1812 use sysroot as the system root during the build
1813 --with-sysroot[=DIR] search for usr/lib, usr/include, et al, within DIR
1814 --with-gxx-include-dir=DIR
1815 specifies directory to put g++ header files
1816 --with-gxx-libcxx-include-dir=DIR
1817 specifies directory to find libc++ header files
1818 --with-cpp-install-dir=DIR
1819 install the user visible C preprocessor in DIR
1820 (relative to PREFIX) as well as PREFIX/bin
1821 --with-gnu-ld arrange to work with GNU ld
1822 --with-ld arrange to use the specified ld (full pathname)
1823 --with-demangler-in-ld try to use demangler in GNU ld
1824 --with-dsymutil arrange to use the specified dsymutil (full
1825 pathname)
1826 --with-gnu-as arrange to work with GNU as
1827 --with-as arrange to use the specified as (full pathname)
1828 --with-stack-clash-protection-guard-size=size
1829 Set the default stack clash protection guard size
1830 for specific targets as a power of two in bytes.
1831 --with-matchpd-partitions=num
1832 Set the number of partitions to make for gimple and
1833 generic when splitting match.pd. [default=10]
1834 --with-dwarf2 force the default debug format to be DWARF 2 (or
1835 later)
1836 --with-specs=SPECS add SPECS to driver command-line processing
1837 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1838 --with-bugurl=URL Direct users to URL to report a bug
1839 --with-documentation-root-url=URL
1840 Root for documentation URLs
1841 --with-changes-root-url=URL
1842 Root for GCC changes URLs
1843 --with-multilib-list select multilibs (AArch64, ARM, AVR, OR1K, RISC-V,
1844 SH and x86-64 only)
1845 --with-multilib-generator
1846 Multi-libs configuration string (RISC-V only)
1847 --with-zstd=PATH specify prefix directory for installed zstd library.
1848 Equivalent to --with-zstd-include=PATH/include plus
1849 --with-zstd-lib=PATH/lib
1850 --with-zstd-include=PATH
1851 specify directory for installed zstd include files
1852 --with-zstd-lib=PATH specify directory for the installed zstd library
1853 --with-gnu-ld assume the C compiler uses GNU ld default=no
1854 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1855 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1856 --with-libiconv-type=TYPE type of library to search for (auto/static/shared)
1857 --with-gcc-major-version-only
1858 use only GCC major number in filesystem paths
1859 --with-pic try to use only PIC/non-PIC objects [default=use
1860 both]
1861 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1862 --with-plugin-ld=[ARG] specify the plugin linker
1863 --with-glibc-version=M.N
1864 assume GCC used with glibc version M.N or later
1865 --with-long-double-128 use 128-bit long double by default
1866 --with-long-double-format={ieee,ibm}
1867 Specify whether PowerPC long double uses IEEE or IBM format
1869 --with-gc={page,zone} this option is not supported anymore. It used to
1870 choose the garbage collection mechanism to use with
1871 the compiler
1872 --with-system-zlib use installed libz
1873 --with-linker-hash-style={sysv,gnu,both}
1874 specify the linker hash style
1875 --with-diagnostics-color={never,auto,auto-if-env,always}
1876 specify the default of -fdiagnostics-color option
1877 auto-if-env stands for -fdiagnostics-color=auto if
1878 GCC_COLOR environment variable is present and
1879 -fdiagnostics-color=never otherwise
1880 --with-diagnostics-urls={never,auto,auto-if-env,always}
1881 specify the default of -fdiagnostics-urls option
1882 auto-if-env stands for -fdiagnostics-urls=auto if
1883 GCC_URLS or TERM_URLS environment variable is
1884 present and -fdiagnostics-urls=never otherwise
1886 Some influential environment variables:
1887 CC C compiler command
1888 CFLAGS C compiler flags
1889 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1890 nonstandard directory <lib dir>
1891 LIBS libraries to pass to the linker, e.g. -l<library>
1892 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1893 you have headers in a nonstandard directory <include dir>
1894 CXX C++ compiler command
1895 CXXFLAGS C++ compiler flags
1896 CXXCPP C++ preprocessor
1897 CPP C preprocessor
1898 GMPLIBS How to link GMP
1899 GMPINC How to find GMP include files
1900 ISLLIBS How to link isl
1901 ISLINC How to find isl include files
1903 Use these variables to override the choices made by `configure' or to help
1904 it to find libraries and programs with nonstandard names/locations.
1906 Report bugs to the package provider.
1907 _ACEOF
1908 ac_status=$?
1911 if test "$ac_init_help" = "recursive"; then
1912 # If there are subdirs, report their specific --help.
1913 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1914 test -d "$ac_dir" ||
1915 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1916 continue
1917 ac_builddir=.
1919 case "$ac_dir" in
1920 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1922 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1923 # A ".." for each directory in $ac_dir_suffix.
1924 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1925 case $ac_top_builddir_sub in
1926 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1927 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1928 esac ;;
1929 esac
1930 ac_abs_top_builddir=$ac_pwd
1931 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1932 # for backward compatibility:
1933 ac_top_builddir=$ac_top_build_prefix
1935 case $srcdir in
1936 .) # We are building in place.
1937 ac_srcdir=.
1938 ac_top_srcdir=$ac_top_builddir_sub
1939 ac_abs_top_srcdir=$ac_pwd ;;
1940 [\\/]* | ?:[\\/]* ) # Absolute name.
1941 ac_srcdir=$srcdir$ac_dir_suffix;
1942 ac_top_srcdir=$srcdir
1943 ac_abs_top_srcdir=$srcdir ;;
1944 *) # Relative name.
1945 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1946 ac_top_srcdir=$ac_top_build_prefix$srcdir
1947 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1948 esac
1949 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1951 cd "$ac_dir" || { ac_status=$?; continue; }
1952 # Check for guested configure.
1953 if test -f "$ac_srcdir/configure.gnu"; then
1954 echo &&
1955 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1956 elif test -f "$ac_srcdir/configure"; then
1957 echo &&
1958 $SHELL "$ac_srcdir/configure" --help=recursive
1959 else
1960 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1961 fi || ac_status=$?
1962 cd "$ac_pwd" || { ac_status=$?; break; }
1963 done
1966 test -n "$ac_init_help" && exit $ac_status
1967 if $ac_init_version; then
1968 cat <<\_ACEOF
1969 configure
1970 generated by GNU Autoconf 2.69
1972 Copyright (C) 2012 Free Software Foundation, Inc.
1973 This configure script is free software; the Free Software Foundation
1974 gives unlimited permission to copy, distribute and modify it.
1975 _ACEOF
1976 exit
1979 ## ------------------------ ##
1980 ## Autoconf initialization. ##
1981 ## ------------------------ ##
1983 # ac_fn_c_try_compile LINENO
1984 # --------------------------
1985 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1986 ac_fn_c_try_compile ()
1988 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1989 rm -f conftest.$ac_objext
1990 if { { ac_try="$ac_compile"
1991 case "(($ac_try" in
1992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1993 *) ac_try_echo=$ac_try;;
1994 esac
1995 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1996 $as_echo "$ac_try_echo"; } >&5
1997 (eval "$ac_compile") 2>conftest.err
1998 ac_status=$?
1999 if test -s conftest.err; then
2000 grep -v '^ *+' conftest.err >conftest.er1
2001 cat conftest.er1 >&5
2002 mv -f conftest.er1 conftest.err
2004 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2005 test $ac_status = 0; } && {
2006 test -z "$ac_c_werror_flag" ||
2007 test ! -s conftest.err
2008 } && test -s conftest.$ac_objext; then :
2009 ac_retval=0
2010 else
2011 $as_echo "$as_me: failed program was:" >&5
2012 sed 's/^/| /' conftest.$ac_ext >&5
2014 ac_retval=1
2016 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2017 as_fn_set_status $ac_retval
2019 } # ac_fn_c_try_compile
2021 # ac_fn_cxx_try_compile LINENO
2022 # ----------------------------
2023 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2024 ac_fn_cxx_try_compile ()
2026 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2027 rm -f conftest.$ac_objext
2028 if { { ac_try="$ac_compile"
2029 case "(($ac_try" in
2030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2031 *) ac_try_echo=$ac_try;;
2032 esac
2033 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2034 $as_echo "$ac_try_echo"; } >&5
2035 (eval "$ac_compile") 2>conftest.err
2036 ac_status=$?
2037 if test -s conftest.err; then
2038 grep -v '^ *+' conftest.err >conftest.er1
2039 cat conftest.er1 >&5
2040 mv -f conftest.er1 conftest.err
2042 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2043 test $ac_status = 0; } && {
2044 test -z "$ac_cxx_werror_flag" ||
2045 test ! -s conftest.err
2046 } && test -s conftest.$ac_objext; then :
2047 ac_retval=0
2048 else
2049 $as_echo "$as_me: failed program was:" >&5
2050 sed 's/^/| /' conftest.$ac_ext >&5
2052 ac_retval=1
2054 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2055 as_fn_set_status $ac_retval
2057 } # ac_fn_cxx_try_compile
2059 # ac_fn_cxx_try_cpp LINENO
2060 # ------------------------
2061 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2062 ac_fn_cxx_try_cpp ()
2064 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2065 if { { ac_try="$ac_cpp conftest.$ac_ext"
2066 case "(($ac_try" in
2067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2068 *) ac_try_echo=$ac_try;;
2069 esac
2070 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2071 $as_echo "$ac_try_echo"; } >&5
2072 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2073 ac_status=$?
2074 if test -s conftest.err; then
2075 grep -v '^ *+' conftest.err >conftest.er1
2076 cat conftest.er1 >&5
2077 mv -f conftest.er1 conftest.err
2079 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2080 test $ac_status = 0; } > conftest.i && {
2081 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2082 test ! -s conftest.err
2083 }; then :
2084 ac_retval=0
2085 else
2086 $as_echo "$as_me: failed program was:" >&5
2087 sed 's/^/| /' conftest.$ac_ext >&5
2089 ac_retval=1
2091 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2092 as_fn_set_status $ac_retval
2094 } # ac_fn_cxx_try_cpp
2096 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2097 # ---------------------------------------------------------
2098 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2099 # the include files in INCLUDES and setting the cache variable VAR
2100 # accordingly.
2101 ac_fn_cxx_check_header_mongrel ()
2103 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2104 if eval \${$3+:} false; then :
2105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2106 $as_echo_n "checking for $2... " >&6; }
2107 if eval \${$3+:} false; then :
2108 $as_echo_n "(cached) " >&6
2110 eval ac_res=\$$3
2111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2112 $as_echo "$ac_res" >&6; }
2113 else
2114 # Is the header compilable?
2115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2116 $as_echo_n "checking $2 usability... " >&6; }
2117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2118 /* end confdefs.h. */
2120 #include <$2>
2121 _ACEOF
2122 if ac_fn_cxx_try_compile "$LINENO"; then :
2123 ac_header_compiler=yes
2124 else
2125 ac_header_compiler=no
2127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2129 $as_echo "$ac_header_compiler" >&6; }
2131 # Is the header present?
2132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2133 $as_echo_n "checking $2 presence... " >&6; }
2134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2135 /* end confdefs.h. */
2136 #include <$2>
2137 _ACEOF
2138 if ac_fn_cxx_try_cpp "$LINENO"; then :
2139 ac_header_preproc=yes
2140 else
2141 ac_header_preproc=no
2143 rm -f conftest.err conftest.i conftest.$ac_ext
2144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2145 $as_echo "$ac_header_preproc" >&6; }
2147 # So? What about this header?
2148 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2149 yes:no: )
2150 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2151 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2152 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2153 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2155 no:yes:* )
2156 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2157 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2158 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2159 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2160 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2161 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2162 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2163 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2164 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2165 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2167 esac
2168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2169 $as_echo_n "checking for $2... " >&6; }
2170 if eval \${$3+:} false; then :
2171 $as_echo_n "(cached) " >&6
2172 else
2173 eval "$3=\$ac_header_compiler"
2175 eval ac_res=\$$3
2176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2177 $as_echo "$ac_res" >&6; }
2179 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2181 } # ac_fn_cxx_check_header_mongrel
2183 # ac_fn_cxx_try_run LINENO
2184 # ------------------------
2185 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2186 # that executables *can* be run.
2187 ac_fn_cxx_try_run ()
2189 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2190 if { { ac_try="$ac_link"
2191 case "(($ac_try" in
2192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2193 *) ac_try_echo=$ac_try;;
2194 esac
2195 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2196 $as_echo "$ac_try_echo"; } >&5
2197 (eval "$ac_link") 2>&5
2198 ac_status=$?
2199 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2200 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2201 { { case "(($ac_try" in
2202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2203 *) ac_try_echo=$ac_try;;
2204 esac
2205 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2206 $as_echo "$ac_try_echo"; } >&5
2207 (eval "$ac_try") 2>&5
2208 ac_status=$?
2209 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2210 test $ac_status = 0; }; }; then :
2211 ac_retval=0
2212 else
2213 $as_echo "$as_me: program exited with status $ac_status" >&5
2214 $as_echo "$as_me: failed program was:" >&5
2215 sed 's/^/| /' conftest.$ac_ext >&5
2217 ac_retval=$ac_status
2219 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2220 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2221 as_fn_set_status $ac_retval
2223 } # ac_fn_cxx_try_run
2225 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2226 # ---------------------------------------------------------
2227 # Tests whether HEADER exists and can be compiled using the include files in
2228 # INCLUDES, setting the cache variable VAR accordingly.
2229 ac_fn_cxx_check_header_compile ()
2231 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2233 $as_echo_n "checking for $2... " >&6; }
2234 if eval \${$3+:} false; then :
2235 $as_echo_n "(cached) " >&6
2236 else
2237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2238 /* end confdefs.h. */
2240 #include <$2>
2241 _ACEOF
2242 if ac_fn_cxx_try_compile "$LINENO"; then :
2243 eval "$3=yes"
2244 else
2245 eval "$3=no"
2247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2249 eval ac_res=\$$3
2250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2251 $as_echo "$ac_res" >&6; }
2252 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2254 } # ac_fn_cxx_check_header_compile
2256 # ac_fn_c_try_cpp LINENO
2257 # ----------------------
2258 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2259 ac_fn_c_try_cpp ()
2261 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2262 if { { ac_try="$ac_cpp conftest.$ac_ext"
2263 case "(($ac_try" in
2264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2265 *) ac_try_echo=$ac_try;;
2266 esac
2267 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2268 $as_echo "$ac_try_echo"; } >&5
2269 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2270 ac_status=$?
2271 if test -s conftest.err; then
2272 grep -v '^ *+' conftest.err >conftest.er1
2273 cat conftest.er1 >&5
2274 mv -f conftest.er1 conftest.err
2276 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2277 test $ac_status = 0; } > conftest.i && {
2278 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2279 test ! -s conftest.err
2280 }; then :
2281 ac_retval=0
2282 else
2283 $as_echo "$as_me: failed program was:" >&5
2284 sed 's/^/| /' conftest.$ac_ext >&5
2286 ac_retval=1
2288 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2289 as_fn_set_status $ac_retval
2291 } # ac_fn_c_try_cpp
2293 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2294 # ----------------------------------------------
2295 # Tries to find the compile-time value of EXPR in a program that includes
2296 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2297 # computed
2298 ac_fn_cxx_compute_int ()
2300 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2301 if test "$cross_compiling" = yes; then
2302 # Depending upon the size, compute the lo and hi bounds.
2303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2304 /* end confdefs.h. */
2307 main ()
2309 static int test_array [1 - 2 * !(($2) >= 0)];
2310 test_array [0] = 0;
2311 return test_array [0];
2314 return 0;
2316 _ACEOF
2317 if ac_fn_cxx_try_compile "$LINENO"; then :
2318 ac_lo=0 ac_mid=0
2319 while :; do
2320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2321 /* end confdefs.h. */
2324 main ()
2326 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2327 test_array [0] = 0;
2328 return test_array [0];
2331 return 0;
2333 _ACEOF
2334 if ac_fn_cxx_try_compile "$LINENO"; then :
2335 ac_hi=$ac_mid; break
2336 else
2337 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2338 if test $ac_lo -le $ac_mid; then
2339 ac_lo= ac_hi=
2340 break
2342 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2345 done
2346 else
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_hi=-1 ac_mid=-1
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_lo=$ac_mid; break
2380 else
2381 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2382 if test $ac_mid -le $ac_hi; then
2383 ac_lo= ac_hi=
2384 break
2386 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2389 done
2390 else
2391 ac_lo= ac_hi=
2393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2396 # Binary search between lo and hi bounds.
2397 while test "x$ac_lo" != "x$ac_hi"; do
2398 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2400 /* end confdefs.h. */
2403 main ()
2405 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2406 test_array [0] = 0;
2407 return test_array [0];
2410 return 0;
2412 _ACEOF
2413 if ac_fn_cxx_try_compile "$LINENO"; then :
2414 ac_hi=$ac_mid
2415 else
2416 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2419 done
2420 case $ac_lo in #((
2421 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2422 '') ac_retval=1 ;;
2423 esac
2424 else
2425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2426 /* end confdefs.h. */
2428 static long int longval () { return $2; }
2429 static unsigned long int ulongval () { return $2; }
2430 #include <stdio.h>
2431 #include <stdlib.h>
2433 main ()
2436 FILE *f = fopen ("conftest.val", "w");
2437 if (! f)
2438 return 1;
2439 if (($2) < 0)
2441 long int i = longval ();
2442 if (i != ($2))
2443 return 1;
2444 fprintf (f, "%ld", i);
2446 else
2448 unsigned long int i = ulongval ();
2449 if (i != ($2))
2450 return 1;
2451 fprintf (f, "%lu", i);
2453 /* Do not output a trailing newline, as this causes \r\n confusion
2454 on some platforms. */
2455 return ferror (f) || fclose (f) != 0;
2458 return 0;
2460 _ACEOF
2461 if ac_fn_cxx_try_run "$LINENO"; then :
2462 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2463 else
2464 ac_retval=1
2466 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2467 conftest.$ac_objext conftest.beam conftest.$ac_ext
2468 rm -f conftest.val
2471 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2472 as_fn_set_status $ac_retval
2474 } # ac_fn_cxx_compute_int
2476 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2477 # ---------------------------------------------
2478 # Tests whether TYPE exists after having included INCLUDES, setting cache
2479 # variable VAR accordingly.
2480 ac_fn_cxx_check_type ()
2482 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2484 $as_echo_n "checking for $2... " >&6; }
2485 if eval \${$3+:} false; then :
2486 $as_echo_n "(cached) " >&6
2487 else
2488 eval "$3=no"
2489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2490 /* end confdefs.h. */
2493 main ()
2495 if (sizeof ($2))
2496 return 0;
2498 return 0;
2500 _ACEOF
2501 if ac_fn_cxx_try_compile "$LINENO"; then :
2502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2503 /* end confdefs.h. */
2506 main ()
2508 if (sizeof (($2)))
2509 return 0;
2511 return 0;
2513 _ACEOF
2514 if ac_fn_cxx_try_compile "$LINENO"; then :
2516 else
2517 eval "$3=yes"
2519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2523 eval ac_res=\$$3
2524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2525 $as_echo "$ac_res" >&6; }
2526 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2528 } # ac_fn_cxx_check_type
2530 # ac_fn_c_find_intX_t LINENO BITS VAR
2531 # -----------------------------------
2532 # Finds a signed integer type with width BITS, setting cache variable VAR
2533 # accordingly.
2534 ac_fn_c_find_intX_t ()
2536 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2538 $as_echo_n "checking for int$2_t... " >&6; }
2539 if eval \${$3+:} false; then :
2540 $as_echo_n "(cached) " >&6
2541 else
2542 eval "$3=no"
2543 # Order is important - never check a type that is potentially smaller
2544 # than half of the expected target width.
2545 for ac_type in int$2_t 'int' 'long int' \
2546 'long long int' 'short int' 'signed char'; do
2547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2548 /* end confdefs.h. */
2549 $ac_includes_default
2550 enum { N = $2 / 2 - 1 };
2552 main ()
2554 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2555 test_array [0] = 0;
2556 return test_array [0];
2559 return 0;
2561 _ACEOF
2562 if ac_fn_cxx_try_compile "$LINENO"; then :
2563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2564 /* end confdefs.h. */
2565 $ac_includes_default
2566 enum { N = $2 / 2 - 1 };
2568 main ()
2570 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2571 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2572 test_array [0] = 0;
2573 return test_array [0];
2576 return 0;
2578 _ACEOF
2579 if ac_fn_cxx_try_compile "$LINENO"; then :
2581 else
2582 case $ac_type in #(
2583 int$2_t) :
2584 eval "$3=yes" ;; #(
2585 *) :
2586 eval "$3=\$ac_type" ;;
2587 esac
2589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2592 if eval test \"x\$"$3"\" = x"no"; then :
2594 else
2595 break
2597 done
2599 eval ac_res=\$$3
2600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2601 $as_echo "$ac_res" >&6; }
2602 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2604 } # ac_fn_c_find_intX_t
2606 # ac_fn_cxx_try_link LINENO
2607 # -------------------------
2608 # Try to link conftest.$ac_ext, and return whether this succeeded.
2609 ac_fn_cxx_try_link ()
2611 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2612 rm -f conftest.$ac_objext conftest$ac_exeext
2613 if { { ac_try="$ac_link"
2614 case "(($ac_try" in
2615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2616 *) ac_try_echo=$ac_try;;
2617 esac
2618 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2619 $as_echo "$ac_try_echo"; } >&5
2620 (eval "$ac_link") 2>conftest.err
2621 ac_status=$?
2622 if test -s conftest.err; then
2623 grep -v '^ *+' conftest.err >conftest.er1
2624 cat conftest.er1 >&5
2625 mv -f conftest.er1 conftest.err
2627 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2628 test $ac_status = 0; } && {
2629 test -z "$ac_cxx_werror_flag" ||
2630 test ! -s conftest.err
2631 } && test -s conftest$ac_exeext && {
2632 test "$cross_compiling" = yes ||
2633 test -x conftest$ac_exeext
2634 }; then :
2635 ac_retval=0
2636 else
2637 $as_echo "$as_me: failed program was:" >&5
2638 sed 's/^/| /' conftest.$ac_ext >&5
2640 ac_retval=1
2642 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2643 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2644 # interfere with the next link command; also delete a directory that is
2645 # left behind by Apple's compiler. We do this before executing the actions.
2646 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2647 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2648 as_fn_set_status $ac_retval
2650 } # ac_fn_cxx_try_link
2652 # ac_fn_c_find_uintX_t LINENO BITS VAR
2653 # ------------------------------------
2654 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2655 # accordingly.
2656 ac_fn_c_find_uintX_t ()
2658 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2660 $as_echo_n "checking for uint$2_t... " >&6; }
2661 if eval \${$3+:} false; then :
2662 $as_echo_n "(cached) " >&6
2663 else
2664 eval "$3=no"
2665 # Order is important - never check a type that is potentially smaller
2666 # than half of the expected target width.
2667 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2668 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2670 /* end confdefs.h. */
2671 $ac_includes_default
2673 main ()
2675 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2676 test_array [0] = 0;
2677 return test_array [0];
2680 return 0;
2682 _ACEOF
2683 if ac_fn_cxx_try_compile "$LINENO"; then :
2684 case $ac_type in #(
2685 uint$2_t) :
2686 eval "$3=yes" ;; #(
2687 *) :
2688 eval "$3=\$ac_type" ;;
2689 esac
2691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2692 if eval test \"x\$"$3"\" = x"no"; then :
2694 else
2695 break
2697 done
2699 eval ac_res=\$$3
2700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2701 $as_echo "$ac_res" >&6; }
2702 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2704 } # ac_fn_c_find_uintX_t
2706 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2707 # ------------------------------------------------
2708 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2709 ac_fn_cxx_check_header_preproc ()
2711 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2713 $as_echo_n "checking for $2... " >&6; }
2714 if eval \${$3+:} false; then :
2715 $as_echo_n "(cached) " >&6
2716 else
2717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2718 /* end confdefs.h. */
2719 #include <$2>
2720 _ACEOF
2721 if ac_fn_cxx_try_cpp "$LINENO"; then :
2722 eval "$3=yes"
2723 else
2724 eval "$3=no"
2726 rm -f conftest.err conftest.i conftest.$ac_ext
2728 eval ac_res=\$$3
2729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2730 $as_echo "$ac_res" >&6; }
2731 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2733 } # ac_fn_cxx_check_header_preproc
2735 # ac_fn_cxx_check_func LINENO FUNC VAR
2736 # ------------------------------------
2737 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2738 ac_fn_cxx_check_func ()
2740 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2742 $as_echo_n "checking for $2... " >&6; }
2743 if eval \${$3+:} false; then :
2744 $as_echo_n "(cached) " >&6
2745 else
2746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2747 /* end confdefs.h. */
2748 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2749 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2750 #define $2 innocuous_$2
2752 /* System header to define __stub macros and hopefully few prototypes,
2753 which can conflict with char $2 (); below.
2754 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2755 <limits.h> exists even on freestanding compilers. */
2757 #ifdef __STDC__
2758 # include <limits.h>
2759 #else
2760 # include <assert.h>
2761 #endif
2763 #undef $2
2765 /* Override any GCC internal prototype to avoid an error.
2766 Use char because int might match the return type of a GCC
2767 builtin and then its argument prototype would still apply. */
2768 #ifdef __cplusplus
2769 extern "C"
2770 #endif
2771 char $2 ();
2772 /* The GNU C library defines this for functions which it implements
2773 to always fail with ENOSYS. Some functions are actually named
2774 something starting with __ and the normal name is an alias. */
2775 #if defined __stub_$2 || defined __stub___$2
2776 choke me
2777 #endif
2780 main ()
2782 return $2 ();
2784 return 0;
2786 _ACEOF
2787 if ac_fn_cxx_try_link "$LINENO"; then :
2788 eval "$3=yes"
2789 else
2790 eval "$3=no"
2792 rm -f core conftest.err conftest.$ac_objext \
2793 conftest$ac_exeext conftest.$ac_ext
2795 eval ac_res=\$$3
2796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2797 $as_echo "$ac_res" >&6; }
2798 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2800 } # ac_fn_cxx_check_func
2802 # ac_fn_cxx_check_decl LINENO SYMBOL VAR INCLUDES
2803 # -----------------------------------------------
2804 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2805 # accordingly.
2806 ac_fn_cxx_check_decl ()
2808 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2809 as_decl_name=`echo $2|sed 's/ *(.*//'`
2810 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2812 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2813 if eval \${$3+:} false; then :
2814 $as_echo_n "(cached) " >&6
2815 else
2816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2817 /* end confdefs.h. */
2820 main ()
2822 #ifndef $as_decl_name
2823 #ifdef __cplusplus
2824 (void) $as_decl_use;
2825 #else
2826 (void) $as_decl_name;
2827 #endif
2828 #endif
2831 return 0;
2833 _ACEOF
2834 if ac_fn_cxx_try_compile "$LINENO"; then :
2835 eval "$3=yes"
2836 else
2837 eval "$3=no"
2839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2841 eval ac_res=\$$3
2842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2843 $as_echo "$ac_res" >&6; }
2844 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2846 } # ac_fn_cxx_check_decl
2848 # ac_fn_c_try_link LINENO
2849 # -----------------------
2850 # Try to link conftest.$ac_ext, and return whether this succeeded.
2851 ac_fn_c_try_link ()
2853 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2854 rm -f conftest.$ac_objext conftest$ac_exeext
2855 if { { ac_try="$ac_link"
2856 case "(($ac_try" in
2857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2858 *) ac_try_echo=$ac_try;;
2859 esac
2860 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2861 $as_echo "$ac_try_echo"; } >&5
2862 (eval "$ac_link") 2>conftest.err
2863 ac_status=$?
2864 if test -s conftest.err; then
2865 grep -v '^ *+' conftest.err >conftest.er1
2866 cat conftest.er1 >&5
2867 mv -f conftest.er1 conftest.err
2869 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2870 test $ac_status = 0; } && {
2871 test -z "$ac_c_werror_flag" ||
2872 test ! -s conftest.err
2873 } && test -s conftest$ac_exeext && {
2874 test "$cross_compiling" = yes ||
2875 test -x conftest$ac_exeext
2876 }; then :
2877 ac_retval=0
2878 else
2879 $as_echo "$as_me: failed program was:" >&5
2880 sed 's/^/| /' conftest.$ac_ext >&5
2882 ac_retval=1
2884 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2885 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2886 # interfere with the next link command; also delete a directory that is
2887 # left behind by Apple's compiler. We do this before executing the actions.
2888 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2889 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2890 as_fn_set_status $ac_retval
2892 } # ac_fn_c_try_link
2894 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2895 # ----------------------------------------------
2896 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2897 ac_fn_c_check_header_preproc ()
2899 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2901 $as_echo_n "checking for $2... " >&6; }
2902 if eval \${$3+:} false; then :
2903 $as_echo_n "(cached) " >&6
2904 else
2905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2906 /* end confdefs.h. */
2907 #include <$2>
2908 _ACEOF
2909 if ac_fn_c_try_cpp "$LINENO"; then :
2910 eval "$3=yes"
2911 else
2912 eval "$3=no"
2914 rm -f conftest.err conftest.i conftest.$ac_ext
2916 eval ac_res=\$$3
2917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2918 $as_echo "$ac_res" >&6; }
2919 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2921 } # ac_fn_c_check_header_preproc
2923 # ac_fn_c_check_func LINENO FUNC VAR
2924 # ----------------------------------
2925 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2926 ac_fn_c_check_func ()
2928 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2930 $as_echo_n "checking for $2... " >&6; }
2931 if eval \${$3+:} false; then :
2932 $as_echo_n "(cached) " >&6
2933 else
2934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2935 /* end confdefs.h. */
2936 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2937 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2938 #define $2 innocuous_$2
2940 /* System header to define __stub macros and hopefully few prototypes,
2941 which can conflict with char $2 (); below.
2942 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2943 <limits.h> exists even on freestanding compilers. */
2945 #ifdef __STDC__
2946 # include <limits.h>
2947 #else
2948 # include <assert.h>
2949 #endif
2951 #undef $2
2953 /* Override any GCC internal prototype to avoid an error.
2954 Use char because int might match the return type of a GCC
2955 builtin and then its argument prototype would still apply. */
2956 #ifdef __cplusplus
2957 extern "C"
2958 #endif
2959 char $2 ();
2960 /* The GNU C library defines this for functions which it implements
2961 to always fail with ENOSYS. Some functions are actually named
2962 something starting with __ and the normal name is an alias. */
2963 #if defined __stub_$2 || defined __stub___$2
2964 choke me
2965 #endif
2968 main ()
2970 return $2 ();
2972 return 0;
2974 _ACEOF
2975 if ac_fn_c_try_link "$LINENO"; then :
2976 eval "$3=yes"
2977 else
2978 eval "$3=no"
2980 rm -f core conftest.err conftest.$ac_objext \
2981 conftest$ac_exeext conftest.$ac_ext
2983 eval ac_res=\$$3
2984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2985 $as_echo "$ac_res" >&6; }
2986 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2988 } # ac_fn_c_check_func
2989 cat >config.log <<_ACEOF
2990 This file contains any messages produced by compilers while
2991 running configure, to aid debugging if configure makes a mistake.
2993 It was created by $as_me, which was
2994 generated by GNU Autoconf 2.69. Invocation command line was
2996 $ $0 $@
2998 _ACEOF
2999 exec 5>>config.log
3001 cat <<_ASUNAME
3002 ## --------- ##
3003 ## Platform. ##
3004 ## --------- ##
3006 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3007 uname -m = `(uname -m) 2>/dev/null || echo unknown`
3008 uname -r = `(uname -r) 2>/dev/null || echo unknown`
3009 uname -s = `(uname -s) 2>/dev/null || echo unknown`
3010 uname -v = `(uname -v) 2>/dev/null || echo unknown`
3012 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3013 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3015 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3016 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3017 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3018 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3019 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3020 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3021 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3023 _ASUNAME
3025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3026 for as_dir in $PATH
3028 IFS=$as_save_IFS
3029 test -z "$as_dir" && as_dir=.
3030 $as_echo "PATH: $as_dir"
3031 done
3032 IFS=$as_save_IFS
3034 } >&5
3036 cat >&5 <<_ACEOF
3039 ## ----------- ##
3040 ## Core tests. ##
3041 ## ----------- ##
3043 _ACEOF
3046 # Keep a trace of the command line.
3047 # Strip out --no-create and --no-recursion so they do not pile up.
3048 # Strip out --silent because we don't want to record it for future runs.
3049 # Also quote any args containing shell meta-characters.
3050 # Make two passes to allow for proper duplicate-argument suppression.
3051 ac_configure_args=
3052 ac_configure_args0=
3053 ac_configure_args1=
3054 ac_must_keep_next=false
3055 for ac_pass in 1 2
3057 for ac_arg
3059 case $ac_arg in
3060 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3061 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3062 | -silent | --silent | --silen | --sile | --sil)
3063 continue ;;
3064 *\'*)
3065 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3066 esac
3067 case $ac_pass in
3068 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3070 as_fn_append ac_configure_args1 " '$ac_arg'"
3071 if test $ac_must_keep_next = true; then
3072 ac_must_keep_next=false # Got value, back to normal.
3073 else
3074 case $ac_arg in
3075 *=* | --config-cache | -C | -disable-* | --disable-* \
3076 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3077 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3078 | -with-* | --with-* | -without-* | --without-* | --x)
3079 case "$ac_configure_args0 " in
3080 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3081 esac
3083 -* ) ac_must_keep_next=true ;;
3084 esac
3086 as_fn_append ac_configure_args " '$ac_arg'"
3088 esac
3089 done
3090 done
3091 { ac_configure_args0=; unset ac_configure_args0;}
3092 { ac_configure_args1=; unset ac_configure_args1;}
3094 # When interrupted or exit'd, cleanup temporary files, and complete
3095 # config.log. We remove comments because anyway the quotes in there
3096 # would cause problems or look ugly.
3097 # WARNING: Use '\'' to represent an apostrophe within the trap.
3098 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3099 trap 'exit_status=$?
3100 # Save into config.log some information that might help in debugging.
3102 echo
3104 $as_echo "## ---------------- ##
3105 ## Cache variables. ##
3106 ## ---------------- ##"
3107 echo
3108 # The following way of writing the cache mishandles newlines in values,
3110 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3111 eval ac_val=\$$ac_var
3112 case $ac_val in #(
3113 *${as_nl}*)
3114 case $ac_var in #(
3115 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3116 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3117 esac
3118 case $ac_var in #(
3119 _ | IFS | as_nl) ;; #(
3120 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3121 *) { eval $ac_var=; unset $ac_var;} ;;
3122 esac ;;
3123 esac
3124 done
3125 (set) 2>&1 |
3126 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3127 *${as_nl}ac_space=\ *)
3128 sed -n \
3129 "s/'\''/'\''\\\\'\'''\''/g;
3130 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3131 ;; #(
3133 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3135 esac |
3136 sort
3138 echo
3140 $as_echo "## ----------------- ##
3141 ## Output variables. ##
3142 ## ----------------- ##"
3143 echo
3144 for ac_var in $ac_subst_vars
3146 eval ac_val=\$$ac_var
3147 case $ac_val in
3148 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3149 esac
3150 $as_echo "$ac_var='\''$ac_val'\''"
3151 done | sort
3152 echo
3154 if test -n "$ac_subst_files"; then
3155 $as_echo "## ------------------- ##
3156 ## File substitutions. ##
3157 ## ------------------- ##"
3158 echo
3159 for ac_var in $ac_subst_files
3161 eval ac_val=\$$ac_var
3162 case $ac_val in
3163 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3164 esac
3165 $as_echo "$ac_var='\''$ac_val'\''"
3166 done | sort
3167 echo
3170 if test -s confdefs.h; then
3171 $as_echo "## ----------- ##
3172 ## confdefs.h. ##
3173 ## ----------- ##"
3174 echo
3175 cat confdefs.h
3176 echo
3178 test "$ac_signal" != 0 &&
3179 $as_echo "$as_me: caught signal $ac_signal"
3180 $as_echo "$as_me: exit $exit_status"
3181 } >&5
3182 rm -f core *.core core.conftest.* &&
3183 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3184 exit $exit_status
3186 for ac_signal in 1 2 13 15; do
3187 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3188 done
3189 ac_signal=0
3191 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3192 rm -f -r conftest* confdefs.h
3194 $as_echo "/* confdefs.h */" > confdefs.h
3196 # Predefined preprocessor variables.
3198 cat >>confdefs.h <<_ACEOF
3199 #define PACKAGE_NAME "$PACKAGE_NAME"
3200 _ACEOF
3202 cat >>confdefs.h <<_ACEOF
3203 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3204 _ACEOF
3206 cat >>confdefs.h <<_ACEOF
3207 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3208 _ACEOF
3210 cat >>confdefs.h <<_ACEOF
3211 #define PACKAGE_STRING "$PACKAGE_STRING"
3212 _ACEOF
3214 cat >>confdefs.h <<_ACEOF
3215 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3216 _ACEOF
3218 cat >>confdefs.h <<_ACEOF
3219 #define PACKAGE_URL "$PACKAGE_URL"
3220 _ACEOF
3223 # Let the site file select an alternate cache file if it wants to.
3224 # Prefer an explicitly selected file to automatically selected ones.
3225 ac_site_file1=NONE
3226 ac_site_file2=NONE
3227 if test -n "$CONFIG_SITE"; then
3228 # We do not want a PATH search for config.site.
3229 case $CONFIG_SITE in #((
3230 -*) ac_site_file1=./$CONFIG_SITE;;
3231 */*) ac_site_file1=$CONFIG_SITE;;
3232 *) ac_site_file1=./$CONFIG_SITE;;
3233 esac
3234 elif test "x$prefix" != xNONE; then
3235 ac_site_file1=$prefix/share/config.site
3236 ac_site_file2=$prefix/etc/config.site
3237 else
3238 ac_site_file1=$ac_default_prefix/share/config.site
3239 ac_site_file2=$ac_default_prefix/etc/config.site
3241 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3243 test "x$ac_site_file" = xNONE && continue
3244 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3246 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3247 sed 's/^/| /' "$ac_site_file" >&5
3248 . "$ac_site_file" \
3249 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3250 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3251 as_fn_error $? "failed to load site script $ac_site_file
3252 See \`config.log' for more details" "$LINENO" 5; }
3254 done
3256 if test -r "$cache_file"; then
3257 # Some versions of bash will fail to source /dev/null (special files
3258 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3259 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3260 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3261 $as_echo "$as_me: loading cache $cache_file" >&6;}
3262 case $cache_file in
3263 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3264 *) . "./$cache_file";;
3265 esac
3267 else
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3269 $as_echo "$as_me: creating cache $cache_file" >&6;}
3270 >$cache_file
3273 # Check that the precious variables saved in the cache have kept the same
3274 # value.
3275 ac_cache_corrupted=false
3276 for ac_var in $ac_precious_vars; do
3277 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3278 eval ac_new_set=\$ac_env_${ac_var}_set
3279 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3280 eval ac_new_val=\$ac_env_${ac_var}_value
3281 case $ac_old_set,$ac_new_set in
3282 set,)
3283 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3284 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3285 ac_cache_corrupted=: ;;
3286 ,set)
3287 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3288 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3289 ac_cache_corrupted=: ;;
3290 ,);;
3292 if test "x$ac_old_val" != "x$ac_new_val"; then
3293 # differences in whitespace do not lead to failure.
3294 ac_old_val_w=`echo x $ac_old_val`
3295 ac_new_val_w=`echo x $ac_new_val`
3296 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3297 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3298 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3299 ac_cache_corrupted=:
3300 else
3301 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3302 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3303 eval $ac_var=\$ac_old_val
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3306 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3307 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3308 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3309 fi;;
3310 esac
3311 # Pass precious variables to config.status.
3312 if test "$ac_new_set" = set; then
3313 case $ac_new_val in
3314 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3315 *) ac_arg=$ac_var=$ac_new_val ;;
3316 esac
3317 case " $ac_configure_args " in
3318 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3319 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3320 esac
3322 done
3323 if $ac_cache_corrupted; then
3324 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3325 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3326 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3327 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3328 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3330 ## -------------------- ##
3331 ## Main body of script. ##
3332 ## -------------------- ##
3334 ac_ext=c
3335 ac_cpp='$CPP $CPPFLAGS'
3336 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3337 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3338 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3346 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3349 gcc_version=`cat $srcdir/BASE-VER`
3351 # Determine the host, build, and target systems
3352 ac_aux_dir=
3353 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3354 if test -f "$ac_dir/install-sh"; then
3355 ac_aux_dir=$ac_dir
3356 ac_install_sh="$ac_aux_dir/install-sh -c"
3357 break
3358 elif test -f "$ac_dir/install.sh"; then
3359 ac_aux_dir=$ac_dir
3360 ac_install_sh="$ac_aux_dir/install.sh -c"
3361 break
3362 elif test -f "$ac_dir/shtool"; then
3363 ac_aux_dir=$ac_dir
3364 ac_install_sh="$ac_aux_dir/shtool install -c"
3365 break
3367 done
3368 if test -z "$ac_aux_dir"; then
3369 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3372 # These three variables are undocumented and unsupported,
3373 # and are intended to be withdrawn in a future Autoconf release.
3374 # They can cause serious problems if a builder's source tree is in a directory
3375 # whose full name contains unusual characters.
3376 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3377 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3378 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3381 # Make sure we can run config.sub.
3382 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3383 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3386 $as_echo_n "checking build system type... " >&6; }
3387 if ${ac_cv_build+:} false; then :
3388 $as_echo_n "(cached) " >&6
3389 else
3390 ac_build_alias=$build_alias
3391 test "x$ac_build_alias" = x &&
3392 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3393 test "x$ac_build_alias" = x &&
3394 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3395 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3396 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3400 $as_echo "$ac_cv_build" >&6; }
3401 case $ac_cv_build in
3402 *-*-*) ;;
3403 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3404 esac
3405 build=$ac_cv_build
3406 ac_save_IFS=$IFS; IFS='-'
3407 set x $ac_cv_build
3408 shift
3409 build_cpu=$1
3410 build_vendor=$2
3411 shift; shift
3412 # Remember, the first character of IFS is used to create $*,
3413 # except with old shells:
3414 build_os=$*
3415 IFS=$ac_save_IFS
3416 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3420 $as_echo_n "checking host system type... " >&6; }
3421 if ${ac_cv_host+:} false; then :
3422 $as_echo_n "(cached) " >&6
3423 else
3424 if test "x$host_alias" = x; then
3425 ac_cv_host=$ac_cv_build
3426 else
3427 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3428 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3433 $as_echo "$ac_cv_host" >&6; }
3434 case $ac_cv_host in
3435 *-*-*) ;;
3436 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3437 esac
3438 host=$ac_cv_host
3439 ac_save_IFS=$IFS; IFS='-'
3440 set x $ac_cv_host
3441 shift
3442 host_cpu=$1
3443 host_vendor=$2
3444 shift; shift
3445 # Remember, the first character of IFS is used to create $*,
3446 # except with old shells:
3447 host_os=$*
3448 IFS=$ac_save_IFS
3449 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3453 $as_echo_n "checking target system type... " >&6; }
3454 if ${ac_cv_target+:} false; then :
3455 $as_echo_n "(cached) " >&6
3456 else
3457 if test "x$target_alias" = x; then
3458 ac_cv_target=$ac_cv_host
3459 else
3460 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3461 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3466 $as_echo "$ac_cv_target" >&6; }
3467 case $ac_cv_target in
3468 *-*-*) ;;
3469 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
3470 esac
3471 target=$ac_cv_target
3472 ac_save_IFS=$IFS; IFS='-'
3473 set x $ac_cv_target
3474 shift
3475 target_cpu=$1
3476 target_vendor=$2
3477 shift; shift
3478 # Remember, the first character of IFS is used to create $*,
3479 # except with old shells:
3480 target_os=$*
3481 IFS=$ac_save_IFS
3482 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3485 # The aliases save the names the user supplied, while $host etc.
3486 # will get canonicalized.
3487 test -n "$target_alias" &&
3488 test "$program_prefix$program_suffix$program_transform_name" = \
3489 NONENONEs,x,x, &&
3490 program_prefix=${target_alias}-
3492 # Determine the noncanonical host name, for Ada.
3493 case ${build_alias} in
3494 "") build_noncanonical=${build} ;;
3495 *) build_noncanonical=${build_alias} ;;
3496 esac
3498 case ${host_alias} in
3499 "") host_noncanonical=${build_noncanonical} ;;
3500 *) host_noncanonical=${host_alias} ;;
3501 esac
3506 # Determine the noncanonical target name, for directory use.
3507 case ${target_alias} in
3508 "") target_noncanonical=${host_noncanonical} ;;
3509 *) target_noncanonical=${target_alias} ;;
3510 esac
3515 # Used for constructing correct paths for offload compilers.
3516 real_target_noncanonical=${target_noncanonical}
3517 accel_dir_suffix=
3519 # Determine the target- and build-specific subdirectories
3521 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3522 # have matching libraries, they should use host libraries: Makefile.tpl
3523 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3524 # However, they still use the build modules, because the corresponding
3525 # host modules (e.g. bison) are only built for the host when bootstrap
3526 # finishes. So:
3527 # - build_subdir is where we find build modules, and never changes.
3528 # - build_libsubdir is where we find build libraries, and can be overridden.
3530 # Prefix 'build-' so this never conflicts with target_subdir.
3531 build_subdir="build-${build_noncanonical}"
3533 # Check whether --with-build-libsubdir was given.
3534 if test "${with_build_libsubdir+set}" = set; then :
3535 withval=$with_build_libsubdir; build_libsubdir="$withval"
3536 else
3537 build_libsubdir="$build_subdir"
3540 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3541 if ( test $srcdir = . && test -d gcc ) \
3542 || test -d $srcdir/../host-${host_noncanonical}; then
3543 host_subdir="host-${host_noncanonical}"
3544 else
3545 host_subdir=.
3547 # No prefix.
3548 target_subdir=${target_noncanonical}
3551 # Set program_transform_name
3552 test "$program_prefix" != NONE &&
3553 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3554 # Use a double $ so make ignores it.
3555 test "$program_suffix" != NONE &&
3556 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3557 # Double any \ or $.
3558 # By default was `s,x,x', remove it if useless.
3559 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3560 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3563 # Check for bogus environment variables.
3564 # Test if LIBRARY_PATH contains the notation for the current directory
3565 # since this would lead to problems installing/building glibc.
3566 # LIBRARY_PATH contains the current directory if one of the following
3567 # is true:
3568 # - one of the terminals (":" and ";") is the first or last sign
3569 # - two terminals occur directly after each other
3570 # - the path contains an element with a dot in it
3571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3572 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3573 case ${LIBRARY_PATH} in
3574 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3575 library_path_setting="contains current directory"
3578 library_path_setting="ok"
3580 esac
3581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3582 $as_echo "$library_path_setting" >&6; }
3583 if test "$library_path_setting" != "ok"; then
3584 as_fn_error $? "
3585 *** LIBRARY_PATH shouldn't contain the current directory when
3586 *** building gcc. Please change the environment variable
3587 *** and run configure again." "$LINENO" 5
3590 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3591 # since this would lead to problems installing/building glibc.
3592 # GCC_EXEC_PREFIX contains the current directory if one of the following
3593 # is true:
3594 # - one of the terminals (":" and ";") is the first or last sign
3595 # - two terminals occur directly after each other
3596 # - the path contains an element with a dot in it
3597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3598 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3599 case ${GCC_EXEC_PREFIX} in
3600 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3601 gcc_exec_prefix_setting="contains current directory"
3604 gcc_exec_prefix_setting="ok"
3606 esac
3607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3608 $as_echo "$gcc_exec_prefix_setting" >&6; }
3609 if test "$gcc_exec_prefix_setting" != "ok"; then
3610 as_fn_error $? "
3611 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3612 *** building gcc. Please change the environment variable
3613 *** and run configure again." "$LINENO" 5
3616 # -----------
3617 # Directories
3618 # -----------
3620 # Specify the local prefix
3621 local_prefix=
3623 # Check whether --with-local-prefix was given.
3624 if test "${with_local_prefix+set}" = set; then :
3625 withval=$with_local_prefix; case "${withval}" in
3626 yes) as_fn_error $? "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3627 no) ;;
3628 *) local_prefix=$with_local_prefix ;;
3629 esac
3633 # Default local prefix if it is empty
3634 if test x$local_prefix = x; then
3635 local_prefix=/usr/local
3639 # Check whether --with-native-system-header-dir was given.
3640 if test "${with_native_system_header_dir+set}" = set; then :
3641 withval=$with_native_system_header_dir;
3642 case ${with_native_system_header_dir} in
3643 yes|no) as_fn_error $? "bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
3644 /* | [A-Za-z]:[\\/]*) ;;
3645 *) as_fn_error $? "--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
3646 esac
3647 configured_native_system_header_dir="${withval}"
3649 else
3650 configured_native_system_header_dir=
3655 # Check whether --with-build-sysroot was given.
3656 if test "${with_build_sysroot+set}" = set; then :
3657 withval=$with_build_sysroot; if test x"$withval" != x ; then
3658 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
3660 else
3661 SYSROOT_CFLAGS_FOR_TARGET=
3666 if test "x$prefix" = xNONE; then
3667 test_prefix=/usr/local
3668 else
3669 test_prefix=$prefix
3671 if test "x$exec_prefix" = xNONE; then
3672 test_exec_prefix=$test_prefix
3673 else
3674 test_exec_prefix=$exec_prefix
3678 # Check whether --with-sysroot was given.
3679 if test "${with_sysroot+set}" = set; then :
3680 withval=$with_sysroot;
3681 case ${with_sysroot} in
3682 /) ;;
3683 */) with_sysroot=`echo $with_sysroot | sed 's,/$,,'` ;;
3684 esac
3685 case ${with_sysroot} in
3686 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
3687 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
3688 esac
3690 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
3691 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
3693 case ${TARGET_SYSTEM_ROOT} in
3694 "${test_prefix}"|"${test_prefix}/"*|\
3695 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
3696 '${prefix}'|'${prefix}/'*|\
3697 '${exec_prefix}'|'${exec_prefix}/'*)
3698 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
3699 TARGET_SYSTEM_ROOT_DEFINE="$t"
3701 esac
3703 else
3705 TARGET_SYSTEM_ROOT=
3706 TARGET_SYSTEM_ROOT_DEFINE=
3707 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
3715 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3716 # passed in by the toplevel make and thus we'd get different behavior
3717 # depending on where we built the sources.
3718 gcc_gxx_include_dir=
3719 # Specify the g++ header file directory
3721 # Check whether --with-gxx-include-dir was given.
3722 if test "${with_gxx_include_dir+set}" = set; then :
3723 withval=$with_gxx_include_dir; case "${withval}" in
3724 yes) as_fn_error $? "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3725 no) ;;
3726 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
3727 esac
3731 # If both --with-sysroot and --with-gxx-include-dir are passed, we interpolate
3732 # the former in the latter and, upon success, compute gcc_gxx_include_dir as
3733 # relative to the sysroot.
3734 gcc_gxx_include_dir_add_sysroot=0
3736 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3737 if test x${gcc_gxx_include_dir} = x; then
3738 if test x${enable_version_specific_runtime_libs} = xyes; then
3739 gcc_gxx_include_dir='${libsubdir}/include/c++'
3740 else
3741 libstdcxx_incdir='include/c++/$(version)'
3742 if test x$host != x$target; then
3743 libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3745 gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3747 elif test "${with_sysroot+set}" = set; then
3748 gcc_gxx_without_sysroot=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3749 if test "${gcc_gxx_without_sysroot}"; then
3750 gcc_gxx_include_dir="${gcc_gxx_without_sysroot}"
3751 gcc_gxx_include_dir_add_sysroot=1
3755 # Configuration for an alternate set of C++ headers.
3756 gcc_gxx_libcxx_include_dir=
3757 # Specify the alternate g++ header file directory
3759 # Check whether --with-gxx-libcxx-include-dir was given.
3760 if test "${with_gxx_libcxx_include_dir+set}" = set; then :
3761 withval=$with_gxx_libcxx_include_dir; case "${withval}" in
3762 yes) as_fn_error $? "bad value ${withval} given for libc++ include directory" "$LINENO" 5 ;;
3763 no) ;;
3764 *) gcc_gxx_libcxx_include_dir=$with_gxx_libcxx_include_dir ;;
3765 esac
3769 # If both --with-sysroot and --with-gxx-libcxx-include-dir are passed, we
3770 # check to see if the latter starts with the former and, upon success, compute
3771 # gcc_gxx_libcxx_include_dir as relative to the sysroot.
3772 gcc_gxx_libcxx_include_dir_add_sysroot=0
3774 if test x${gcc_gxx_libcxx_include_dir} != x; then
3776 $as_echo "#define ENABLE_STDLIB_OPTION 1" >>confdefs.h
3778 else
3779 $as_echo "#define ENABLE_STDLIB_OPTION 0" >>confdefs.h
3782 # ??? This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3783 if test x${gcc_gxx_libcxx_include_dir} = x; then
3784 if test x${enable_version_specific_runtime_libs} = xyes; then
3785 gcc_gxx_libcxx_include_dir='${libsubdir}/libc++_include/c++/v1'
3786 else
3787 libcxx_incdir='libc++_include/c++/$(version)/v1'
3788 if test x$host != x$target; then
3789 libcxx_incdir="$target_alias/$libcxx_incdir"
3791 gcc_gxx_libcxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libcxx_incdir"
3793 elif test "${with_sysroot+set}" = set; then
3794 gcc_gxx_libcxx_without_sysroot=`expr "${gcc_gxx_libcxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3795 if test "${gcc_gxx_libcxx_without_sysroot}"; then
3796 gcc_gxx_libcxx_include_dir="${gcc_gxx_libcxx_without_sysroot}"
3797 gcc_gxx_libcxx_include_dir_add_sysroot=1
3802 # Check whether --with-cpp_install_dir was given.
3803 if test "${with_cpp_install_dir+set}" = set; then :
3804 withval=$with_cpp_install_dir; if test x$withval = xyes; then
3805 as_fn_error $? "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3806 elif test x$withval != xno; then
3807 cpp_install_dir=$withval
3812 # We would like to our source tree to be readonly. However when releases or
3813 # pre-releases are generated, the flex/bison generated files as well as the
3814 # various formats of manuals need to be included along with the rest of the
3815 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3816 # just that.
3818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3819 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3820 # Check whether --enable-generated-files-in-srcdir was given.
3821 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3822 enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3823 else
3824 generated_files_in_srcdir=no
3828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3829 $as_echo "$generated_files_in_srcdir" >&6; }
3831 if test "$generated_files_in_srcdir" = "yes"; then
3832 GENINSRC=''
3833 else
3834 GENINSRC='#'
3838 # -------------------
3839 # Find default linker
3840 # -------------------
3842 # With GNU ld
3844 # Check whether --with-gnu-ld was given.
3845 if test "${with_gnu_ld+set}" = set; then :
3846 withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3847 else
3848 gnu_ld_flag=no
3852 case $target in
3853 *darwin*)
3854 ld64_flag=yes # Darwin can only use a ld64-compatible linker.
3855 dsymutil_flag=yes # Darwin uses dsymutil to link debug.
3858 ld64_flag=no
3859 dsymutil_flag=no
3861 esac
3863 # With pre-defined ld
3865 # Check whether --with-ld was given.
3866 if test "${with_ld+set}" = set; then :
3867 withval=$with_ld; DEFAULT_LINKER="$with_ld"
3870 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3871 if test ! -x "$DEFAULT_LINKER"; then
3872 as_fn_error $? "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3873 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3874 gnu_ld_flag=yes
3875 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep ld64- > /dev/null; then
3876 ld64_flag=yes
3879 cat >>confdefs.h <<_ACEOF
3880 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3881 _ACEOF
3885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3886 $as_echo_n "checking whether a default linker was specified... " >&6; }
3887 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3888 if test x"$gnu_ld_flag" = x"no"; then
3889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3890 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3891 else
3892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3893 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3895 else
3896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3897 $as_echo "no" >&6; }
3900 # With demangler in GNU ld
3902 # Check whether --with-demangler-in-ld was given.
3903 if test "${with_demangler_in_ld+set}" = set; then :
3904 withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3905 else
3906 demangler_in_ld=yes
3910 # Allow the user to specify a dsymutil executable (used on Darwin only, so far)
3912 # Check whether --with-dsymutil was given.
3913 if test "${with_dsymutil+set}" = set; then :
3914 withval=$with_dsymutil; DEFAULT_DSYMUTIL="$with_dsymutil"
3918 dsymutil_vers=
3919 if test x"${DEFAULT_DSYMUTIL+set}" = x"set"; then
3920 if test ! -x "$DEFAULT_DSYMUTIL"; then
3921 as_fn_error $? "cannot execute: $DEFAULT_DSYMUTIL: check --with-dsymutil or env. var. DEFAULT_DSYMUTIL" "$LINENO" 5
3922 else
3923 if dsymutil_vers=`$DEFAULT_DSYMUTIL -v /dev/null 2>&1`; then
3924 dsymutil_flag=yes
3928 cat >>confdefs.h <<_ACEOF
3929 #define DEFAULT_DSYMUTIL "$DEFAULT_DSYMUTIL"
3930 _ACEOF
3934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default dsymutil was specified" >&5
3935 $as_echo_n "checking whether a default dsymutil was specified... " >&6; }
3936 if test x"${DEFAULT_DSYMUTIL+set}" = x"set"; then
3937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_DSYMUTIL)" >&5
3938 $as_echo "yes ($DEFAULT_DSYMUTIL)" >&6; }
3939 else
3940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3941 $as_echo "no" >&6; }
3944 # ----------------------
3945 # Find default assembler
3946 # ----------------------
3948 # With GNU as
3950 # Check whether --with-gnu-as was given.
3951 if test "${with_gnu_as+set}" = set; then :
3952 withval=$with_gnu_as; gas_flag="$with_gnu_as"
3953 else
3954 gas_flag=no
3959 # Check whether --with-as was given.
3960 if test "${with_as+set}" = set; then :
3961 withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
3964 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3965 if test ! -x "$DEFAULT_ASSEMBLER"; then
3966 as_fn_error $? "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3967 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3968 gas_flag=yes
3971 cat >>confdefs.h <<_ACEOF
3972 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3973 _ACEOF
3977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3978 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3979 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3980 if test x"$gas_flag" = x"no"; then
3981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3982 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3983 else
3984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3985 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3987 else
3988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3989 $as_echo "no" >&6; }
3992 # ---------------
3993 # Find C compiler
3994 # ---------------
3996 # If a non-executable a.out is present (e.g. created by GNU as above even if
3997 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3998 # file, even when creating an executable, so an execution test fails.
3999 # Remove possible default executable files to avoid this.
4001 # FIXME: This really belongs into AC_PROG_CC and can be removed once
4002 # Autoconf includes it.
4003 rm -f a.out a.exe b.out
4005 # Find the native compiler
4006 ac_ext=c
4007 ac_cpp='$CPP $CPPFLAGS'
4008 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4009 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4010 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4011 if test -n "$ac_tool_prefix"; then
4012 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4013 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4015 $as_echo_n "checking for $ac_word... " >&6; }
4016 if ${ac_cv_prog_CC+:} false; then :
4017 $as_echo_n "(cached) " >&6
4018 else
4019 if test -n "$CC"; then
4020 ac_cv_prog_CC="$CC" # Let the user override the test.
4021 else
4022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4023 for as_dir in $PATH
4025 IFS=$as_save_IFS
4026 test -z "$as_dir" && as_dir=.
4027 for ac_exec_ext in '' $ac_executable_extensions; do
4028 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4029 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4031 break 2
4033 done
4034 done
4035 IFS=$as_save_IFS
4039 CC=$ac_cv_prog_CC
4040 if test -n "$CC"; then
4041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4042 $as_echo "$CC" >&6; }
4043 else
4044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4045 $as_echo "no" >&6; }
4050 if test -z "$ac_cv_prog_CC"; then
4051 ac_ct_CC=$CC
4052 # Extract the first word of "gcc", so it can be a program name with args.
4053 set dummy gcc; ac_word=$2
4054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4055 $as_echo_n "checking for $ac_word... " >&6; }
4056 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4057 $as_echo_n "(cached) " >&6
4058 else
4059 if test -n "$ac_ct_CC"; then
4060 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4061 else
4062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4063 for as_dir in $PATH
4065 IFS=$as_save_IFS
4066 test -z "$as_dir" && as_dir=.
4067 for ac_exec_ext in '' $ac_executable_extensions; do
4068 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4069 ac_cv_prog_ac_ct_CC="gcc"
4070 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4071 break 2
4073 done
4074 done
4075 IFS=$as_save_IFS
4079 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4080 if test -n "$ac_ct_CC"; then
4081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4082 $as_echo "$ac_ct_CC" >&6; }
4083 else
4084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4085 $as_echo "no" >&6; }
4088 if test "x$ac_ct_CC" = x; then
4089 CC=""
4090 else
4091 case $cross_compiling:$ac_tool_warned in
4092 yes:)
4093 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4094 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4095 ac_tool_warned=yes ;;
4096 esac
4097 CC=$ac_ct_CC
4099 else
4100 CC="$ac_cv_prog_CC"
4103 if test -z "$CC"; then
4104 if test -n "$ac_tool_prefix"; then
4105 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4106 set dummy ${ac_tool_prefix}cc; ac_word=$2
4107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4108 $as_echo_n "checking for $ac_word... " >&6; }
4109 if ${ac_cv_prog_CC+:} false; then :
4110 $as_echo_n "(cached) " >&6
4111 else
4112 if test -n "$CC"; then
4113 ac_cv_prog_CC="$CC" # Let the user override the test.
4114 else
4115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4116 for as_dir in $PATH
4118 IFS=$as_save_IFS
4119 test -z "$as_dir" && as_dir=.
4120 for ac_exec_ext in '' $ac_executable_extensions; do
4121 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4122 ac_cv_prog_CC="${ac_tool_prefix}cc"
4123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4124 break 2
4126 done
4127 done
4128 IFS=$as_save_IFS
4132 CC=$ac_cv_prog_CC
4133 if test -n "$CC"; then
4134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4135 $as_echo "$CC" >&6; }
4136 else
4137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4138 $as_echo "no" >&6; }
4144 if test -z "$CC"; then
4145 # Extract the first word of "cc", so it can be a program name with args.
4146 set dummy cc; ac_word=$2
4147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4148 $as_echo_n "checking for $ac_word... " >&6; }
4149 if ${ac_cv_prog_CC+:} false; then :
4150 $as_echo_n "(cached) " >&6
4151 else
4152 if test -n "$CC"; then
4153 ac_cv_prog_CC="$CC" # Let the user override the test.
4154 else
4155 ac_prog_rejected=no
4156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4157 for as_dir in $PATH
4159 IFS=$as_save_IFS
4160 test -z "$as_dir" && as_dir=.
4161 for ac_exec_ext in '' $ac_executable_extensions; do
4162 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4163 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4164 ac_prog_rejected=yes
4165 continue
4167 ac_cv_prog_CC="cc"
4168 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4169 break 2
4171 done
4172 done
4173 IFS=$as_save_IFS
4175 if test $ac_prog_rejected = yes; then
4176 # We found a bogon in the path, so make sure we never use it.
4177 set dummy $ac_cv_prog_CC
4178 shift
4179 if test $# != 0; then
4180 # We chose a different compiler from the bogus one.
4181 # However, it has the same basename, so the bogon will be chosen
4182 # first if we set CC to just the basename; use the full file name.
4183 shift
4184 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4189 CC=$ac_cv_prog_CC
4190 if test -n "$CC"; then
4191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4192 $as_echo "$CC" >&6; }
4193 else
4194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4195 $as_echo "no" >&6; }
4200 if test -z "$CC"; then
4201 if test -n "$ac_tool_prefix"; then
4202 for ac_prog in cl.exe
4204 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4205 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4207 $as_echo_n "checking for $ac_word... " >&6; }
4208 if ${ac_cv_prog_CC+:} false; then :
4209 $as_echo_n "(cached) " >&6
4210 else
4211 if test -n "$CC"; then
4212 ac_cv_prog_CC="$CC" # Let the user override the test.
4213 else
4214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4215 for as_dir in $PATH
4217 IFS=$as_save_IFS
4218 test -z "$as_dir" && as_dir=.
4219 for ac_exec_ext in '' $ac_executable_extensions; do
4220 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4221 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4223 break 2
4225 done
4226 done
4227 IFS=$as_save_IFS
4231 CC=$ac_cv_prog_CC
4232 if test -n "$CC"; then
4233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4234 $as_echo "$CC" >&6; }
4235 else
4236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4237 $as_echo "no" >&6; }
4241 test -n "$CC" && break
4242 done
4244 if test -z "$CC"; then
4245 ac_ct_CC=$CC
4246 for ac_prog in cl.exe
4248 # Extract the first word of "$ac_prog", so it can be a program name with args.
4249 set dummy $ac_prog; ac_word=$2
4250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4251 $as_echo_n "checking for $ac_word... " >&6; }
4252 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4253 $as_echo_n "(cached) " >&6
4254 else
4255 if test -n "$ac_ct_CC"; then
4256 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4257 else
4258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4259 for as_dir in $PATH
4261 IFS=$as_save_IFS
4262 test -z "$as_dir" && as_dir=.
4263 for ac_exec_ext in '' $ac_executable_extensions; do
4264 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4265 ac_cv_prog_ac_ct_CC="$ac_prog"
4266 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4267 break 2
4269 done
4270 done
4271 IFS=$as_save_IFS
4275 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4276 if test -n "$ac_ct_CC"; then
4277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4278 $as_echo "$ac_ct_CC" >&6; }
4279 else
4280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4281 $as_echo "no" >&6; }
4285 test -n "$ac_ct_CC" && break
4286 done
4288 if test "x$ac_ct_CC" = x; then
4289 CC=""
4290 else
4291 case $cross_compiling:$ac_tool_warned in
4292 yes:)
4293 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4294 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4295 ac_tool_warned=yes ;;
4296 esac
4297 CC=$ac_ct_CC
4304 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4305 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4306 as_fn_error $? "no acceptable C compiler found in \$PATH
4307 See \`config.log' for more details" "$LINENO" 5; }
4309 # Provide some information about the compiler.
4310 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4311 set X $ac_compile
4312 ac_compiler=$2
4313 for ac_option in --version -v -V -qversion; do
4314 { { ac_try="$ac_compiler $ac_option >&5"
4315 case "(($ac_try" in
4316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4317 *) ac_try_echo=$ac_try;;
4318 esac
4319 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4320 $as_echo "$ac_try_echo"; } >&5
4321 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4322 ac_status=$?
4323 if test -s conftest.err; then
4324 sed '10a\
4325 ... rest of stderr output deleted ...
4326 10q' conftest.err >conftest.er1
4327 cat conftest.er1 >&5
4329 rm -f conftest.er1 conftest.err
4330 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4331 test $ac_status = 0; }
4332 done
4334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4335 /* end confdefs.h. */
4338 main ()
4342 return 0;
4344 _ACEOF
4345 ac_clean_files_save=$ac_clean_files
4346 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4347 # Try to create an executable without -o first, disregard a.out.
4348 # It will help us diagnose broken compilers, and finding out an intuition
4349 # of exeext.
4350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4351 $as_echo_n "checking whether the C compiler works... " >&6; }
4352 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4354 # The possible output files:
4355 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4357 ac_rmfiles=
4358 for ac_file in $ac_files
4360 case $ac_file in
4361 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4362 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4363 esac
4364 done
4365 rm -f $ac_rmfiles
4367 if { { ac_try="$ac_link_default"
4368 case "(($ac_try" in
4369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4370 *) ac_try_echo=$ac_try;;
4371 esac
4372 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4373 $as_echo "$ac_try_echo"; } >&5
4374 (eval "$ac_link_default") 2>&5
4375 ac_status=$?
4376 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4377 test $ac_status = 0; }; then :
4378 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4379 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4380 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4381 # so that the user can short-circuit this test for compilers unknown to
4382 # Autoconf.
4383 for ac_file in $ac_files ''
4385 test -f "$ac_file" || continue
4386 case $ac_file in
4387 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4389 [ab].out )
4390 # We found the default executable, but exeext='' is most
4391 # certainly right.
4392 break;;
4393 *.* )
4394 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4395 then :; else
4396 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4398 # We set ac_cv_exeext here because the later test for it is not
4399 # safe: cross compilers may not add the suffix if given an `-o'
4400 # argument, so we may need to know it at that point already.
4401 # Even if this section looks crufty: it has the advantage of
4402 # actually working.
4403 break;;
4405 break;;
4406 esac
4407 done
4408 test "$ac_cv_exeext" = no && ac_cv_exeext=
4410 else
4411 ac_file=''
4413 if test -z "$ac_file"; then :
4414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4415 $as_echo "no" >&6; }
4416 $as_echo "$as_me: failed program was:" >&5
4417 sed 's/^/| /' conftest.$ac_ext >&5
4419 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4420 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4421 as_fn_error 77 "C compiler cannot create executables
4422 See \`config.log' for more details" "$LINENO" 5; }
4423 else
4424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4425 $as_echo "yes" >&6; }
4427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4428 $as_echo_n "checking for C compiler default output file name... " >&6; }
4429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4430 $as_echo "$ac_file" >&6; }
4431 ac_exeext=$ac_cv_exeext
4433 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4434 ac_clean_files=$ac_clean_files_save
4435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4436 $as_echo_n "checking for suffix of executables... " >&6; }
4437 if { { ac_try="$ac_link"
4438 case "(($ac_try" in
4439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4440 *) ac_try_echo=$ac_try;;
4441 esac
4442 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4443 $as_echo "$ac_try_echo"; } >&5
4444 (eval "$ac_link") 2>&5
4445 ac_status=$?
4446 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4447 test $ac_status = 0; }; then :
4448 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4449 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4450 # work properly (i.e., refer to `conftest.exe'), while it won't with
4451 # `rm'.
4452 for ac_file in conftest.exe conftest conftest.*; do
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 ) ;;
4456 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4457 break;;
4458 * ) break;;
4459 esac
4460 done
4461 else
4462 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4463 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4464 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4465 See \`config.log' for more details" "$LINENO" 5; }
4467 rm -f conftest conftest$ac_cv_exeext
4468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4469 $as_echo "$ac_cv_exeext" >&6; }
4471 rm -f conftest.$ac_ext
4472 EXEEXT=$ac_cv_exeext
4473 ac_exeext=$EXEEXT
4474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4475 /* end confdefs.h. */
4476 #include <stdio.h>
4478 main ()
4480 FILE *f = fopen ("conftest.out", "w");
4481 return ferror (f) || fclose (f) != 0;
4484 return 0;
4486 _ACEOF
4487 ac_clean_files="$ac_clean_files conftest.out"
4488 # Check that the compiler produces executables we can run. If not, either
4489 # the compiler is broken, or we cross compile.
4490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4491 $as_echo_n "checking whether we are cross compiling... " >&6; }
4492 if test "$cross_compiling" != yes; then
4493 { { ac_try="$ac_link"
4494 case "(($ac_try" in
4495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4496 *) ac_try_echo=$ac_try;;
4497 esac
4498 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4499 $as_echo "$ac_try_echo"; } >&5
4500 (eval "$ac_link") 2>&5
4501 ac_status=$?
4502 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4503 test $ac_status = 0; }
4504 if { ac_try='./conftest$ac_cv_exeext'
4505 { { case "(($ac_try" in
4506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4507 *) ac_try_echo=$ac_try;;
4508 esac
4509 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4510 $as_echo "$ac_try_echo"; } >&5
4511 (eval "$ac_try") 2>&5
4512 ac_status=$?
4513 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4514 test $ac_status = 0; }; }; then
4515 cross_compiling=no
4516 else
4517 if test "$cross_compiling" = maybe; then
4518 cross_compiling=yes
4519 else
4520 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4521 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4522 as_fn_error $? "cannot run C compiled programs.
4523 If you meant to cross compile, use \`--host'.
4524 See \`config.log' for more details" "$LINENO" 5; }
4528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4529 $as_echo "$cross_compiling" >&6; }
4531 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4532 ac_clean_files=$ac_clean_files_save
4533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4534 $as_echo_n "checking for suffix of object files... " >&6; }
4535 if ${ac_cv_objext+:} false; then :
4536 $as_echo_n "(cached) " >&6
4537 else
4538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4539 /* end confdefs.h. */
4542 main ()
4546 return 0;
4548 _ACEOF
4549 rm -f conftest.o conftest.obj
4550 if { { ac_try="$ac_compile"
4551 case "(($ac_try" in
4552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4553 *) ac_try_echo=$ac_try;;
4554 esac
4555 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4556 $as_echo "$ac_try_echo"; } >&5
4557 (eval "$ac_compile") 2>&5
4558 ac_status=$?
4559 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4560 test $ac_status = 0; }; then :
4561 for ac_file in conftest.o conftest.obj conftest.*; do
4562 test -f "$ac_file" || continue;
4563 case $ac_file in
4564 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4565 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4566 break;;
4567 esac
4568 done
4569 else
4570 $as_echo "$as_me: failed program was:" >&5
4571 sed 's/^/| /' conftest.$ac_ext >&5
4573 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4574 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4575 as_fn_error $? "cannot compute suffix of object files: cannot compile
4576 See \`config.log' for more details" "$LINENO" 5; }
4578 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4581 $as_echo "$ac_cv_objext" >&6; }
4582 OBJEXT=$ac_cv_objext
4583 ac_objext=$OBJEXT
4584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4585 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4586 if ${ac_cv_c_compiler_gnu+:} false; then :
4587 $as_echo_n "(cached) " >&6
4588 else
4589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4590 /* end confdefs.h. */
4593 main ()
4595 #ifndef __GNUC__
4596 choke me
4597 #endif
4600 return 0;
4602 _ACEOF
4603 if ac_fn_c_try_compile "$LINENO"; then :
4604 ac_compiler_gnu=yes
4605 else
4606 ac_compiler_gnu=no
4608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4609 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4613 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4614 if test $ac_compiler_gnu = yes; then
4615 GCC=yes
4616 else
4617 GCC=
4619 ac_test_CFLAGS=${CFLAGS+set}
4620 ac_save_CFLAGS=$CFLAGS
4621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4622 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4623 if ${ac_cv_prog_cc_g+:} false; then :
4624 $as_echo_n "(cached) " >&6
4625 else
4626 ac_save_c_werror_flag=$ac_c_werror_flag
4627 ac_c_werror_flag=yes
4628 ac_cv_prog_cc_g=no
4629 CFLAGS="-g"
4630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4631 /* end confdefs.h. */
4634 main ()
4638 return 0;
4640 _ACEOF
4641 if ac_fn_c_try_compile "$LINENO"; then :
4642 ac_cv_prog_cc_g=yes
4643 else
4644 CFLAGS=""
4645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4646 /* end confdefs.h. */
4649 main ()
4653 return 0;
4655 _ACEOF
4656 if ac_fn_c_try_compile "$LINENO"; then :
4658 else
4659 ac_c_werror_flag=$ac_save_c_werror_flag
4660 CFLAGS="-g"
4661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4662 /* end confdefs.h. */
4665 main ()
4669 return 0;
4671 _ACEOF
4672 if ac_fn_c_try_compile "$LINENO"; then :
4673 ac_cv_prog_cc_g=yes
4675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4680 ac_c_werror_flag=$ac_save_c_werror_flag
4682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4683 $as_echo "$ac_cv_prog_cc_g" >&6; }
4684 if test "$ac_test_CFLAGS" = set; then
4685 CFLAGS=$ac_save_CFLAGS
4686 elif test $ac_cv_prog_cc_g = yes; then
4687 if test "$GCC" = yes; then
4688 CFLAGS="-g -O2"
4689 else
4690 CFLAGS="-g"
4692 else
4693 if test "$GCC" = yes; then
4694 CFLAGS="-O2"
4695 else
4696 CFLAGS=
4699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4700 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4701 if ${ac_cv_prog_cc_c89+:} false; then :
4702 $as_echo_n "(cached) " >&6
4703 else
4704 ac_cv_prog_cc_c89=no
4705 ac_save_CC=$CC
4706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4707 /* end confdefs.h. */
4708 #include <stdarg.h>
4709 #include <stdio.h>
4710 struct stat;
4711 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4712 struct buf { int x; };
4713 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4714 static char *e (p, i)
4715 char **p;
4716 int i;
4718 return p[i];
4720 static char *f (char * (*g) (char **, int), char **p, ...)
4722 char *s;
4723 va_list v;
4724 va_start (v,p);
4725 s = g (p, va_arg (v,int));
4726 va_end (v);
4727 return s;
4730 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4731 function prototypes and stuff, but not '\xHH' hex character constants.
4732 These don't provoke an error unfortunately, instead are silently treated
4733 as 'x'. The following induces an error, until -std is added to get
4734 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4735 array size at least. It's necessary to write '\x00'==0 to get something
4736 that's true only with -std. */
4737 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4739 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4740 inside strings and character constants. */
4741 #define FOO(x) 'x'
4742 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4744 int test (int i, double x);
4745 struct s1 {int (*f) (int a);};
4746 struct s2 {int (*f) (double a);};
4747 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4748 int argc;
4749 char **argv;
4751 main ()
4753 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4755 return 0;
4757 _ACEOF
4758 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4759 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4761 CC="$ac_save_CC $ac_arg"
4762 if ac_fn_c_try_compile "$LINENO"; then :
4763 ac_cv_prog_cc_c89=$ac_arg
4765 rm -f core conftest.err conftest.$ac_objext
4766 test "x$ac_cv_prog_cc_c89" != "xno" && break
4767 done
4768 rm -f conftest.$ac_ext
4769 CC=$ac_save_CC
4772 # AC_CACHE_VAL
4773 case "x$ac_cv_prog_cc_c89" in
4775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4776 $as_echo "none needed" >&6; } ;;
4777 xno)
4778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4779 $as_echo "unsupported" >&6; } ;;
4781 CC="$CC $ac_cv_prog_cc_c89"
4782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4783 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4784 esac
4785 if test "x$ac_cv_prog_cc_c89" != xno; then :
4789 ac_ext=c
4790 ac_cpp='$CPP $CPPFLAGS'
4791 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4792 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4793 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4795 ac_ext=cpp
4796 ac_cpp='$CXXCPP $CPPFLAGS'
4797 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4798 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4799 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4800 if test -z "$CXX"; then
4801 if test -n "$CCC"; then
4802 CXX=$CCC
4803 else
4804 if test -n "$ac_tool_prefix"; then
4805 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4807 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4808 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4810 $as_echo_n "checking for $ac_word... " >&6; }
4811 if ${ac_cv_prog_CXX+:} false; then :
4812 $as_echo_n "(cached) " >&6
4813 else
4814 if test -n "$CXX"; then
4815 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4816 else
4817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4818 for as_dir in $PATH
4820 IFS=$as_save_IFS
4821 test -z "$as_dir" && as_dir=.
4822 for ac_exec_ext in '' $ac_executable_extensions; do
4823 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4824 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4826 break 2
4828 done
4829 done
4830 IFS=$as_save_IFS
4834 CXX=$ac_cv_prog_CXX
4835 if test -n "$CXX"; then
4836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4837 $as_echo "$CXX" >&6; }
4838 else
4839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4840 $as_echo "no" >&6; }
4844 test -n "$CXX" && break
4845 done
4847 if test -z "$CXX"; then
4848 ac_ct_CXX=$CXX
4849 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4851 # Extract the first word of "$ac_prog", so it can be a program name with args.
4852 set dummy $ac_prog; ac_word=$2
4853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4854 $as_echo_n "checking for $ac_word... " >&6; }
4855 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4856 $as_echo_n "(cached) " >&6
4857 else
4858 if test -n "$ac_ct_CXX"; then
4859 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4860 else
4861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4862 for as_dir in $PATH
4864 IFS=$as_save_IFS
4865 test -z "$as_dir" && as_dir=.
4866 for ac_exec_ext in '' $ac_executable_extensions; do
4867 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4868 ac_cv_prog_ac_ct_CXX="$ac_prog"
4869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4870 break 2
4872 done
4873 done
4874 IFS=$as_save_IFS
4878 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4879 if test -n "$ac_ct_CXX"; then
4880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4881 $as_echo "$ac_ct_CXX" >&6; }
4882 else
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4884 $as_echo "no" >&6; }
4888 test -n "$ac_ct_CXX" && break
4889 done
4891 if test "x$ac_ct_CXX" = x; then
4892 CXX="g++"
4893 else
4894 case $cross_compiling:$ac_tool_warned in
4895 yes:)
4896 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4897 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4898 ac_tool_warned=yes ;;
4899 esac
4900 CXX=$ac_ct_CXX
4906 # Provide some information about the compiler.
4907 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4908 set X $ac_compile
4909 ac_compiler=$2
4910 for ac_option in --version -v -V -qversion; do
4911 { { ac_try="$ac_compiler $ac_option >&5"
4912 case "(($ac_try" in
4913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4914 *) ac_try_echo=$ac_try;;
4915 esac
4916 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4917 $as_echo "$ac_try_echo"; } >&5
4918 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4919 ac_status=$?
4920 if test -s conftest.err; then
4921 sed '10a\
4922 ... rest of stderr output deleted ...
4923 10q' conftest.err >conftest.er1
4924 cat conftest.er1 >&5
4926 rm -f conftest.er1 conftest.err
4927 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4928 test $ac_status = 0; }
4929 done
4931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4932 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4933 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4934 $as_echo_n "(cached) " >&6
4935 else
4936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4937 /* end confdefs.h. */
4940 main ()
4942 #ifndef __GNUC__
4943 choke me
4944 #endif
4947 return 0;
4949 _ACEOF
4950 if ac_fn_cxx_try_compile "$LINENO"; then :
4951 ac_compiler_gnu=yes
4952 else
4953 ac_compiler_gnu=no
4955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4956 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4960 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4961 if test $ac_compiler_gnu = yes; then
4962 GXX=yes
4963 else
4964 GXX=
4966 ac_test_CXXFLAGS=${CXXFLAGS+set}
4967 ac_save_CXXFLAGS=$CXXFLAGS
4968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4969 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4970 if ${ac_cv_prog_cxx_g+:} false; then :
4971 $as_echo_n "(cached) " >&6
4972 else
4973 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4974 ac_cxx_werror_flag=yes
4975 ac_cv_prog_cxx_g=no
4976 CXXFLAGS="-g"
4977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4978 /* end confdefs.h. */
4981 main ()
4985 return 0;
4987 _ACEOF
4988 if ac_fn_cxx_try_compile "$LINENO"; then :
4989 ac_cv_prog_cxx_g=yes
4990 else
4991 CXXFLAGS=""
4992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4993 /* end confdefs.h. */
4996 main ()
5000 return 0;
5002 _ACEOF
5003 if ac_fn_cxx_try_compile "$LINENO"; then :
5005 else
5006 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5007 CXXFLAGS="-g"
5008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5009 /* end confdefs.h. */
5012 main ()
5016 return 0;
5018 _ACEOF
5019 if ac_fn_cxx_try_compile "$LINENO"; then :
5020 ac_cv_prog_cxx_g=yes
5022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5027 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5030 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5031 if test "$ac_test_CXXFLAGS" = set; then
5032 CXXFLAGS=$ac_save_CXXFLAGS
5033 elif test $ac_cv_prog_cxx_g = yes; then
5034 if test "$GXX" = yes; then
5035 CXXFLAGS="-g -O2"
5036 else
5037 CXXFLAGS="-g"
5039 else
5040 if test "$GXX" = yes; then
5041 CXXFLAGS="-O2"
5042 else
5043 CXXFLAGS=
5046 ac_ext=c
5047 ac_cpp='$CPP $CPPFLAGS'
5048 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5049 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5050 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5055 if test -n "$ac_tool_prefix"; then
5056 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5057 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5059 $as_echo_n "checking for $ac_word... " >&6; }
5060 if ${ac_cv_prog_GNATBIND+:} false; then :
5061 $as_echo_n "(cached) " >&6
5062 else
5063 if test -n "$GNATBIND"; then
5064 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
5065 else
5066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5067 for as_dir in $PATH
5069 IFS=$as_save_IFS
5070 test -z "$as_dir" && as_dir=.
5071 for ac_exec_ext in '' $ac_executable_extensions; do
5072 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5073 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5075 break 2
5077 done
5078 done
5079 IFS=$as_save_IFS
5083 GNATBIND=$ac_cv_prog_GNATBIND
5084 if test -n "$GNATBIND"; then
5085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5086 $as_echo "$GNATBIND" >&6; }
5087 else
5088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5089 $as_echo "no" >&6; }
5094 if test -z "$ac_cv_prog_GNATBIND"; then
5095 ac_ct_GNATBIND=$GNATBIND
5096 # Extract the first word of "gnatbind", so it can be a program name with args.
5097 set dummy gnatbind; ac_word=$2
5098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5099 $as_echo_n "checking for $ac_word... " >&6; }
5100 if ${ac_cv_prog_ac_ct_GNATBIND+:} false; then :
5101 $as_echo_n "(cached) " >&6
5102 else
5103 if test -n "$ac_ct_GNATBIND"; then
5104 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
5105 else
5106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5107 for as_dir in $PATH
5109 IFS=$as_save_IFS
5110 test -z "$as_dir" && as_dir=.
5111 for ac_exec_ext in '' $ac_executable_extensions; do
5112 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5113 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5115 break 2
5117 done
5118 done
5119 IFS=$as_save_IFS
5123 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5124 if test -n "$ac_ct_GNATBIND"; then
5125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5126 $as_echo "$ac_ct_GNATBIND" >&6; }
5127 else
5128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5129 $as_echo "no" >&6; }
5132 if test "x$ac_ct_GNATBIND" = x; then
5133 GNATBIND="no"
5134 else
5135 case $cross_compiling:$ac_tool_warned in
5136 yes:)
5137 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5138 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5139 ac_tool_warned=yes ;;
5140 esac
5141 GNATBIND=$ac_ct_GNATBIND
5143 else
5144 GNATBIND="$ac_cv_prog_GNATBIND"
5147 if test -n "$ac_tool_prefix"; then
5148 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5149 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5151 $as_echo_n "checking for $ac_word... " >&6; }
5152 if ${ac_cv_prog_GNATMAKE+:} false; then :
5153 $as_echo_n "(cached) " >&6
5154 else
5155 if test -n "$GNATMAKE"; then
5156 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5157 else
5158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5159 for as_dir in $PATH
5161 IFS=$as_save_IFS
5162 test -z "$as_dir" && as_dir=.
5163 for ac_exec_ext in '' $ac_executable_extensions; do
5164 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5165 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5166 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5167 break 2
5169 done
5170 done
5171 IFS=$as_save_IFS
5175 GNATMAKE=$ac_cv_prog_GNATMAKE
5176 if test -n "$GNATMAKE"; then
5177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5178 $as_echo "$GNATMAKE" >&6; }
5179 else
5180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5181 $as_echo "no" >&6; }
5186 if test -z "$ac_cv_prog_GNATMAKE"; then
5187 ac_ct_GNATMAKE=$GNATMAKE
5188 # Extract the first word of "gnatmake", so it can be a program name with args.
5189 set dummy gnatmake; ac_word=$2
5190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5191 $as_echo_n "checking for $ac_word... " >&6; }
5192 if ${ac_cv_prog_ac_ct_GNATMAKE+:} false; then :
5193 $as_echo_n "(cached) " >&6
5194 else
5195 if test -n "$ac_ct_GNATMAKE"; then
5196 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5197 else
5198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5199 for as_dir in $PATH
5201 IFS=$as_save_IFS
5202 test -z "$as_dir" && as_dir=.
5203 for ac_exec_ext in '' $ac_executable_extensions; do
5204 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5205 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5207 break 2
5209 done
5210 done
5211 IFS=$as_save_IFS
5215 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5216 if test -n "$ac_ct_GNATMAKE"; then
5217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5218 $as_echo "$ac_ct_GNATMAKE" >&6; }
5219 else
5220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5221 $as_echo "no" >&6; }
5224 if test "x$ac_ct_GNATMAKE" = x; then
5225 GNATMAKE="no"
5226 else
5227 case $cross_compiling:$ac_tool_warned in
5228 yes:)
5229 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5230 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5231 ac_tool_warned=yes ;;
5232 esac
5233 GNATMAKE=$ac_ct_GNATMAKE
5235 else
5236 GNATMAKE="$ac_cv_prog_GNATMAKE"
5239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada and is recent enough" >&5
5240 $as_echo_n "checking whether compiler driver understands Ada and is recent enough... " >&6; }
5241 if ${acx_cv_cc_gcc_supports_ada+:} false; then :
5242 $as_echo_n "(cached) " >&6
5243 else
5244 cat >conftest.adb <<EOF
5245 pragma Warnings (Off);
5246 with System.CRTL;
5247 pragma Warnings (On);
5248 use type System.CRTL.int64;
5249 procedure conftest is begin null; end conftest;
5251 acx_cv_cc_gcc_supports_ada=no
5252 # There is a bug in old released versions of GCC which causes the
5253 # driver to exit successfully when the appropriate language module
5254 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5255 # Therefore we must check for the error message as well as an
5256 # unsuccessful exit.
5257 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5258 # given a .adb file, but produce no object file. So we must check
5259 # if an object file was really produced to guard against this.
5260 errors=`(${CC} -I"$srcdir"/ada/libgnat -c conftest.adb) 2>&1 || echo failure`
5261 if test x"$errors" = x && test -f conftest.$ac_objext; then
5262 acx_cv_cc_gcc_supports_ada=yes
5264 rm -f conftest.*
5266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5267 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5269 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5270 have_gnat=yes
5271 else
5272 have_gnat=no
5277 if test -n "$ac_tool_prefix"; then
5278 # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
5279 set dummy ${ac_tool_prefix}gdc; ac_word=$2
5280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5281 $as_echo_n "checking for $ac_word... " >&6; }
5282 if ${ac_cv_prog_GDC+:} false; then :
5283 $as_echo_n "(cached) " >&6
5284 else
5285 if test -n "$GDC"; then
5286 ac_cv_prog_GDC="$GDC" # Let the user override the test.
5287 else
5288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5289 for as_dir in $PATH
5291 IFS=$as_save_IFS
5292 test -z "$as_dir" && as_dir=.
5293 for ac_exec_ext in '' $ac_executable_extensions; do
5294 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5295 ac_cv_prog_GDC="${ac_tool_prefix}gdc"
5296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5297 break 2
5299 done
5300 done
5301 IFS=$as_save_IFS
5305 GDC=$ac_cv_prog_GDC
5306 if test -n "$GDC"; then
5307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5308 $as_echo "$GDC" >&6; }
5309 else
5310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5311 $as_echo "no" >&6; }
5316 if test -z "$ac_cv_prog_GDC"; then
5317 ac_ct_GDC=$GDC
5318 # Extract the first word of "gdc", so it can be a program name with args.
5319 set dummy gdc; ac_word=$2
5320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5321 $as_echo_n "checking for $ac_word... " >&6; }
5322 if ${ac_cv_prog_ac_ct_GDC+:} false; then :
5323 $as_echo_n "(cached) " >&6
5324 else
5325 if test -n "$ac_ct_GDC"; then
5326 ac_cv_prog_ac_ct_GDC="$ac_ct_GDC" # Let the user override the test.
5327 else
5328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5329 for as_dir in $PATH
5331 IFS=$as_save_IFS
5332 test -z "$as_dir" && as_dir=.
5333 for ac_exec_ext in '' $ac_executable_extensions; do
5334 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5335 ac_cv_prog_ac_ct_GDC="gdc"
5336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5337 break 2
5339 done
5340 done
5341 IFS=$as_save_IFS
5345 ac_ct_GDC=$ac_cv_prog_ac_ct_GDC
5346 if test -n "$ac_ct_GDC"; then
5347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GDC" >&5
5348 $as_echo "$ac_ct_GDC" >&6; }
5349 else
5350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5351 $as_echo "no" >&6; }
5354 if test "x$ac_ct_GDC" = x; then
5355 GDC="no"
5356 else
5357 case $cross_compiling:$ac_tool_warned in
5358 yes:)
5359 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5360 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5361 ac_tool_warned=yes ;;
5362 esac
5363 GDC=$ac_ct_GDC
5365 else
5366 GDC="$ac_cv_prog_GDC"
5369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the D compiler works" >&5
5370 $as_echo_n "checking whether the D compiler works... " >&6; }
5371 if ${acx_cv_d_compiler_works+:} false; then :
5372 $as_echo_n "(cached) " >&6
5373 else
5374 cat >conftest.d <<EOF
5375 module conftest; int main() { return 0; }
5377 acx_cv_d_compiler_works=no
5378 if test "x$GDC" != xno; then
5379 errors=`(${GDC} -I"$srcdir"/d -c conftest.d) 2>&1 || echo failure`
5380 if test x"$errors" = x && test -f conftest.$ac_objext; then
5381 acx_cv_d_compiler_works=yes
5383 rm -f conftest.*
5386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_d_compiler_works" >&5
5387 $as_echo "$acx_cv_d_compiler_works" >&6; }
5388 if test "x$GDC" != xno && test x$acx_cv_d_compiler_works != xno; then
5389 have_gdc=yes
5390 else
5391 have_gdc=no
5395 # Do configure tests with the C++ compiler, since that's what we build with.
5396 ac_ext=cpp
5397 ac_cpp='$CXXCPP $CPPFLAGS'
5398 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5399 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5400 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5403 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
5404 # optimizations to be activated explicitly by the toplevel.
5405 case "$CC" in
5406 */prev-gcc/xgcc*) ;;
5407 *) CFLAGS=`echo "$CFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" `
5408 CXXFLAGS=`echo "$CXXFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` ;;
5409 esac
5414 # Determine PICFLAG for target gnatlib.
5419 case "${target}" in
5420 # PIC is the default on some targets or must not be used.
5421 *-*-darwin*)
5422 # For darwin, common symbols are not allowed in MH_DYLIB files
5423 case "${CFLAGS}" in
5424 # If we are using a compiler supporting mdynamic-no-pic
5425 # and the option has been tested as safe to add, then cancel
5426 # it here, since the code generated is incompatible with shared
5427 # libs.
5428 *-mdynamic-no-pic*) PICFLAG_FOR_TARGET='-fno-common -mno-dynamic-no-pic' ;;
5429 *) PICFLAG_FOR_TARGET=-fno-common ;;
5430 esac
5432 alpha*-dec-osf5*)
5433 # PIC is the default.
5435 hppa*64*-*-hpux*)
5436 # PIC is the default for 64-bit PA HP-UX.
5438 i[34567]86-*-cygwin* | x86_64-*-cygwin*)
5440 i[34567]86-*-mingw* | x86_64-*-mingw*)
5442 i[34567]86-*-interix[3-9]*)
5443 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5444 # Instead, we relocate shared libraries at runtime.
5446 i[34567]86-*-nto-qnx*)
5447 # QNX uses GNU C++, but need to define -shared option too, otherwise
5448 # it will coredump.
5449 PICFLAG_FOR_TARGET='-fPIC -shared'
5451 i[34567]86-pc-msdosdjgpp*)
5452 # DJGPP does not support shared libraries at all.
5454 ia64*-*-hpux*)
5455 # On IA64 HP-UX, PIC is the default but the pic flag
5456 # sets the default TLS model and affects inlining.
5457 PICFLAG_FOR_TARGET=-fPIC
5459 loongarch*-*-*)
5460 PICFLAG_FOR_TARGET=-fpic
5462 mips-sgi-irix6*)
5463 # PIC is the default.
5465 rs6000-ibm-aix* | powerpc-ibm-aix*)
5466 # All AIX code is PIC.
5469 # Some targets support both -fPIC and -fpic, but prefer the latter.
5470 # FIXME: Why?
5471 i[34567]86-*-* | x86_64-*-*)
5472 PICFLAG_FOR_TARGET=-fpic
5474 # FIXME: Override -fPIC default in libgcc only?
5475 sh-*-linux* | sh[2346lbe]*-*-linux*)
5476 PICFLAG_FOR_TARGET=-fpic
5478 # FIXME: Simplify to sh*-*-netbsd*?
5479 sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
5480 sh64-*-netbsd* | sh64l*-*-netbsd*)
5481 PICFLAG_FOR_TARGET=-fpic
5483 # Default to -fPIC unless specified otherwise.
5485 PICFLAG_FOR_TARGET=-fPIC
5487 esac
5489 # If the user explicitly uses -fpic/-fPIC, keep that.
5490 case "${CFLAGS_FOR_TARGET}" in
5491 *-fpic*)
5492 PICFLAG_FOR_TARGET=-fpic
5494 *-fPIC*)
5495 PICFLAG_FOR_TARGET=-fPIC
5497 esac
5501 # -------------------------
5502 # Check C compiler features
5503 # -------------------------
5506 ac_ext=cpp
5507 ac_cpp='$CXXCPP $CPPFLAGS'
5508 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5509 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5510 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5512 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5513 if test -z "$CXXCPP"; then
5514 if ${ac_cv_prog_CXXCPP+:} false; then :
5515 $as_echo_n "(cached) " >&6
5516 else
5517 # Double quotes because CXXCPP needs to be expanded
5518 for CXXCPP in "$CXX -E" "/lib/cpp"
5520 ac_preproc_ok=false
5521 for ac_cxx_preproc_warn_flag in '' yes
5523 # Use a header file that comes with gcc, so configuring glibc
5524 # with a fresh cross-compiler works.
5525 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5526 # <limits.h> exists even on freestanding compilers.
5527 # On the NeXT, cc -E runs the code through the compiler's parser,
5528 # not just through cpp. "Syntax error" is here to catch this case.
5529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5530 /* end confdefs.h. */
5531 #ifdef __STDC__
5532 # include <limits.h>
5533 #else
5534 # include <assert.h>
5535 #endif
5536 Syntax error
5537 _ACEOF
5538 if ac_fn_cxx_try_cpp "$LINENO"; then :
5540 else
5541 # Broken: fails on valid input.
5542 continue
5544 rm -f conftest.err conftest.i conftest.$ac_ext
5546 # OK, works on sane cases. Now check whether nonexistent headers
5547 # can be detected and how.
5548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5549 /* end confdefs.h. */
5550 #include <ac_nonexistent.h>
5551 _ACEOF
5552 if ac_fn_cxx_try_cpp "$LINENO"; then :
5553 # Broken: success on invalid input.
5554 continue
5555 else
5556 # Passes both tests.
5557 ac_preproc_ok=:
5558 break
5560 rm -f conftest.err conftest.i conftest.$ac_ext
5562 done
5563 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5564 rm -f conftest.i conftest.err conftest.$ac_ext
5565 if $ac_preproc_ok; then :
5566 break
5569 done
5570 ac_cv_prog_CXXCPP=$CXXCPP
5573 CXXCPP=$ac_cv_prog_CXXCPP
5574 else
5575 ac_cv_prog_CXXCPP=$CXXCPP
5577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5578 $as_echo "$CXXCPP" >&6; }
5579 ac_preproc_ok=false
5580 for ac_cxx_preproc_warn_flag in '' yes
5582 # Use a header file that comes with gcc, so configuring glibc
5583 # with a fresh cross-compiler works.
5584 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5585 # <limits.h> exists even on freestanding compilers.
5586 # On the NeXT, cc -E runs the code through the compiler's parser,
5587 # not just through cpp. "Syntax error" is here to catch this case.
5588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5589 /* end confdefs.h. */
5590 #ifdef __STDC__
5591 # include <limits.h>
5592 #else
5593 # include <assert.h>
5594 #endif
5595 Syntax error
5596 _ACEOF
5597 if ac_fn_cxx_try_cpp "$LINENO"; then :
5599 else
5600 # Broken: fails on valid input.
5601 continue
5603 rm -f conftest.err conftest.i conftest.$ac_ext
5605 # OK, works on sane cases. Now check whether nonexistent headers
5606 # can be detected and how.
5607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5608 /* end confdefs.h. */
5609 #include <ac_nonexistent.h>
5610 _ACEOF
5611 if ac_fn_cxx_try_cpp "$LINENO"; then :
5612 # Broken: success on invalid input.
5613 continue
5614 else
5615 # Passes both tests.
5616 ac_preproc_ok=:
5617 break
5619 rm -f conftest.err conftest.i conftest.$ac_ext
5621 done
5622 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5623 rm -f conftest.i conftest.err conftest.$ac_ext
5624 if $ac_preproc_ok; then :
5626 else
5627 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5628 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5629 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
5630 See \`config.log' for more details" "$LINENO" 5; }
5633 ac_ext=cpp
5634 ac_cpp='$CXXCPP $CPPFLAGS'
5635 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5636 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5637 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5641 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5642 if ${ac_cv_path_GREP+:} false; then :
5643 $as_echo_n "(cached) " >&6
5644 else
5645 if test -z "$GREP"; then
5646 ac_path_GREP_found=false
5647 # Loop through the user's path and test for each of PROGNAME-LIST
5648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5649 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5651 IFS=$as_save_IFS
5652 test -z "$as_dir" && as_dir=.
5653 for ac_prog in grep ggrep; do
5654 for ac_exec_ext in '' $ac_executable_extensions; do
5655 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5656 as_fn_executable_p "$ac_path_GREP" || continue
5657 # Check for GNU ac_path_GREP and select it if it is found.
5658 # Check for GNU $ac_path_GREP
5659 case `"$ac_path_GREP" --version 2>&1` in
5660 *GNU*)
5661 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5663 ac_count=0
5664 $as_echo_n 0123456789 >"conftest.in"
5665 while :
5667 cat "conftest.in" "conftest.in" >"conftest.tmp"
5668 mv "conftest.tmp" "conftest.in"
5669 cp "conftest.in" "conftest.nl"
5670 $as_echo 'GREP' >> "conftest.nl"
5671 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5672 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5673 as_fn_arith $ac_count + 1 && ac_count=$as_val
5674 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5675 # Best one so far, save it but keep looking for a better one
5676 ac_cv_path_GREP="$ac_path_GREP"
5677 ac_path_GREP_max=$ac_count
5679 # 10*(2^10) chars as input seems more than enough
5680 test $ac_count -gt 10 && break
5681 done
5682 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5683 esac
5685 $ac_path_GREP_found && break 3
5686 done
5687 done
5688 done
5689 IFS=$as_save_IFS
5690 if test -z "$ac_cv_path_GREP"; then
5691 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5693 else
5694 ac_cv_path_GREP=$GREP
5698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5699 $as_echo "$ac_cv_path_GREP" >&6; }
5700 GREP="$ac_cv_path_GREP"
5703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5704 $as_echo_n "checking for egrep... " >&6; }
5705 if ${ac_cv_path_EGREP+:} false; then :
5706 $as_echo_n "(cached) " >&6
5707 else
5708 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5709 then ac_cv_path_EGREP="$GREP -E"
5710 else
5711 if test -z "$EGREP"; then
5712 ac_path_EGREP_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 egrep; do
5720 for ac_exec_ext in '' $ac_executable_extensions; do
5721 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5722 as_fn_executable_p "$ac_path_EGREP" || continue
5723 # Check for GNU ac_path_EGREP and select it if it is found.
5724 # Check for GNU $ac_path_EGREP
5725 case `"$ac_path_EGREP" --version 2>&1` in
5726 *GNU*)
5727 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_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 'EGREP' >> "conftest.nl"
5737 "$ac_path_EGREP" 'EGREP$' < "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_EGREP_max-0}; then
5741 # Best one so far, save it but keep looking for a better one
5742 ac_cv_path_EGREP="$ac_path_EGREP"
5743 ac_path_EGREP_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_EGREP_found && break 3
5752 done
5753 done
5754 done
5755 IFS=$as_save_IFS
5756 if test -z "$ac_cv_path_EGREP"; then
5757 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5759 else
5760 ac_cv_path_EGREP=$EGREP
5765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5766 $as_echo "$ac_cv_path_EGREP" >&6; }
5767 EGREP="$ac_cv_path_EGREP"
5770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5771 $as_echo_n "checking for ANSI C header files... " >&6; }
5772 if ${ac_cv_header_stdc+:} false; then :
5773 $as_echo_n "(cached) " >&6
5774 else
5775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5776 /* end confdefs.h. */
5777 #include <stdlib.h>
5778 #include <stdarg.h>
5779 #include <string.h>
5780 #include <float.h>
5783 main ()
5787 return 0;
5789 _ACEOF
5790 if ac_fn_cxx_try_compile "$LINENO"; then :
5791 ac_cv_header_stdc=yes
5792 else
5793 ac_cv_header_stdc=no
5795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5797 if test $ac_cv_header_stdc = yes; then
5798 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5800 /* end confdefs.h. */
5801 #include <string.h>
5803 _ACEOF
5804 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5805 $EGREP "memchr" >/dev/null 2>&1; then :
5807 else
5808 ac_cv_header_stdc=no
5810 rm -f conftest*
5814 if test $ac_cv_header_stdc = yes; then
5815 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5817 /* end confdefs.h. */
5818 #include <stdlib.h>
5820 _ACEOF
5821 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5822 $EGREP "free" >/dev/null 2>&1; then :
5824 else
5825 ac_cv_header_stdc=no
5827 rm -f conftest*
5831 if test $ac_cv_header_stdc = yes; then
5832 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5833 if test "$cross_compiling" = yes; then :
5835 else
5836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5837 /* end confdefs.h. */
5838 #include <ctype.h>
5839 #include <stdlib.h>
5840 #if ((' ' & 0x0FF) == 0x020)
5841 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5842 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5843 #else
5844 # define ISLOWER(c) \
5845 (('a' <= (c) && (c) <= 'i') \
5846 || ('j' <= (c) && (c) <= 'r') \
5847 || ('s' <= (c) && (c) <= 'z'))
5848 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5849 #endif
5851 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5853 main ()
5855 int i;
5856 for (i = 0; i < 256; i++)
5857 if (XOR (islower (i), ISLOWER (i))
5858 || toupper (i) != TOUPPER (i))
5859 return 2;
5860 return 0;
5862 _ACEOF
5863 if ac_fn_cxx_try_run "$LINENO"; then :
5865 else
5866 ac_cv_header_stdc=no
5868 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5869 conftest.$ac_objext conftest.beam conftest.$ac_ext
5874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5875 $as_echo "$ac_cv_header_stdc" >&6; }
5876 if test $ac_cv_header_stdc = yes; then
5878 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5882 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5883 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5884 inttypes.h stdint.h unistd.h
5885 do :
5886 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5887 ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5889 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5890 cat >>confdefs.h <<_ACEOF
5891 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5892 _ACEOF
5896 done
5900 ac_fn_cxx_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5901 if test "x$ac_cv_header_minix_config_h" = xyes; then :
5902 MINIX=yes
5903 else
5904 MINIX=
5908 if test "$MINIX" = yes; then
5910 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5913 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5916 $as_echo "#define _MINIX 1" >>confdefs.h
5921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5922 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5923 if ${ac_cv_safe_to_define___extensions__+:} false; then :
5924 $as_echo_n "(cached) " >&6
5925 else
5926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5927 /* end confdefs.h. */
5929 # define __EXTENSIONS__ 1
5930 $ac_includes_default
5932 main ()
5936 return 0;
5938 _ACEOF
5939 if ac_fn_cxx_try_compile "$LINENO"; then :
5940 ac_cv_safe_to_define___extensions__=yes
5941 else
5942 ac_cv_safe_to_define___extensions__=no
5944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5947 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5948 test $ac_cv_safe_to_define___extensions__ = yes &&
5949 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5951 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5953 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5955 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5957 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5961 ac_ext=c
5962 ac_cpp='$CPP $CPPFLAGS'
5963 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5964 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5965 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5967 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5968 # On Suns, sometimes $CPP names a directory.
5969 if test -n "$CPP" && test -d "$CPP"; then
5970 CPP=
5972 if test -z "$CPP"; then
5973 if ${ac_cv_prog_CPP+:} false; then :
5974 $as_echo_n "(cached) " >&6
5975 else
5976 # Double quotes because CPP needs to be expanded
5977 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5979 ac_preproc_ok=false
5980 for ac_c_preproc_warn_flag in '' yes
5982 # Use a header file that comes with gcc, so configuring glibc
5983 # with a fresh cross-compiler works.
5984 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5985 # <limits.h> exists even on freestanding compilers.
5986 # On the NeXT, cc -E runs the code through the compiler's parser,
5987 # not just through cpp. "Syntax error" is here to catch this case.
5988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5989 /* end confdefs.h. */
5990 #ifdef __STDC__
5991 # include <limits.h>
5992 #else
5993 # include <assert.h>
5994 #endif
5995 Syntax error
5996 _ACEOF
5997 if ac_fn_c_try_cpp "$LINENO"; then :
5999 else
6000 # Broken: fails on valid input.
6001 continue
6003 rm -f conftest.err conftest.i conftest.$ac_ext
6005 # OK, works on sane cases. Now check whether nonexistent headers
6006 # can be detected and how.
6007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6008 /* end confdefs.h. */
6009 #include <ac_nonexistent.h>
6010 _ACEOF
6011 if ac_fn_c_try_cpp "$LINENO"; then :
6012 # Broken: success on invalid input.
6013 continue
6014 else
6015 # Passes both tests.
6016 ac_preproc_ok=:
6017 break
6019 rm -f conftest.err conftest.i conftest.$ac_ext
6021 done
6022 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6023 rm -f conftest.i conftest.err conftest.$ac_ext
6024 if $ac_preproc_ok; then :
6025 break
6028 done
6029 ac_cv_prog_CPP=$CPP
6032 CPP=$ac_cv_prog_CPP
6033 else
6034 ac_cv_prog_CPP=$CPP
6036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6037 $as_echo "$CPP" >&6; }
6038 ac_preproc_ok=false
6039 for ac_c_preproc_warn_flag in '' yes
6041 # Use a header file that comes with gcc, so configuring glibc
6042 # with a fresh cross-compiler works.
6043 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6044 # <limits.h> exists even on freestanding compilers.
6045 # On the NeXT, cc -E runs the code through the compiler's parser,
6046 # not just through cpp. "Syntax error" is here to catch this case.
6047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6048 /* end confdefs.h. */
6049 #ifdef __STDC__
6050 # include <limits.h>
6051 #else
6052 # include <assert.h>
6053 #endif
6054 Syntax error
6055 _ACEOF
6056 if ac_fn_c_try_cpp "$LINENO"; then :
6058 else
6059 # Broken: fails on valid input.
6060 continue
6062 rm -f conftest.err conftest.i conftest.$ac_ext
6064 # OK, works on sane cases. Now check whether nonexistent headers
6065 # can be detected and how.
6066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6067 /* end confdefs.h. */
6068 #include <ac_nonexistent.h>
6069 _ACEOF
6070 if ac_fn_c_try_cpp "$LINENO"; then :
6071 # Broken: success on invalid input.
6072 continue
6073 else
6074 # Passes both tests.
6075 ac_preproc_ok=:
6076 break
6078 rm -f conftest.err conftest.i conftest.$ac_ext
6080 done
6081 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6082 rm -f conftest.i conftest.err conftest.$ac_ext
6083 if $ac_preproc_ok; then :
6085 else
6086 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6087 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6088 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6089 See \`config.log' for more details" "$LINENO" 5; }
6092 ac_ext=cpp
6093 ac_cpp='$CXXCPP $CPPFLAGS'
6094 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6095 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6096 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
6099 $as_echo_n "checking for inline... " >&6; }
6100 if ${ac_cv_c_inline+:} false; then :
6101 $as_echo_n "(cached) " >&6
6102 else
6103 ac_cv_c_inline=no
6104 for ac_kw in inline __inline__ __inline; do
6105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6106 /* end confdefs.h. */
6107 #ifndef __cplusplus
6108 typedef int foo_t;
6109 static $ac_kw foo_t static_foo () {return 0; }
6110 $ac_kw foo_t foo () {return 0; }
6111 #endif
6113 _ACEOF
6114 if ac_fn_cxx_try_compile "$LINENO"; then :
6115 ac_cv_c_inline=$ac_kw
6117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6118 test "$ac_cv_c_inline" != no && break
6119 done
6122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
6123 $as_echo "$ac_cv_c_inline" >&6; }
6125 case $ac_cv_c_inline in
6126 inline | yes) ;;
6128 case $ac_cv_c_inline in
6129 no) ac_val=;;
6130 *) ac_val=$ac_cv_c_inline;;
6131 esac
6132 cat >>confdefs.h <<_ACEOF
6133 #ifndef __cplusplus
6134 #define inline $ac_val
6135 #endif
6136 _ACEOF
6138 esac
6141 # Check whether --enable-largefile was given.
6142 if test "${enable_largefile+set}" = set; then :
6143 enableval=$enable_largefile;
6146 if test "$enable_largefile" != no; then
6148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6149 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6150 if ${ac_cv_sys_largefile_CC+:} false; then :
6151 $as_echo_n "(cached) " >&6
6152 else
6153 ac_cv_sys_largefile_CC=no
6154 if test "$GCC" != yes; then
6155 ac_save_CC=$CC
6156 while :; do
6157 # IRIX 6.2 and later do not support large files by default,
6158 # so use the C compiler's -n32 option if that helps.
6159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6160 /* end confdefs.h. */
6161 #include <sys/types.h>
6162 /* Check that off_t can represent 2**63 - 1 correctly.
6163 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6164 since some C++ compilers masquerading as C compilers
6165 incorrectly reject 9223372036854775807. */
6166 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6167 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6168 && LARGE_OFF_T % 2147483647 == 1)
6169 ? 1 : -1];
6171 main ()
6175 return 0;
6177 _ACEOF
6178 if ac_fn_cxx_try_compile "$LINENO"; then :
6179 break
6181 rm -f core conftest.err conftest.$ac_objext
6182 CC="$CC -n32"
6183 if ac_fn_cxx_try_compile "$LINENO"; then :
6184 ac_cv_sys_largefile_CC=' -n32'; break
6186 rm -f core conftest.err conftest.$ac_objext
6187 break
6188 done
6189 CC=$ac_save_CC
6190 rm -f conftest.$ac_ext
6193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6194 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6195 if test "$ac_cv_sys_largefile_CC" != no; then
6196 CC=$CC$ac_cv_sys_largefile_CC
6199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6200 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6201 if ${ac_cv_sys_file_offset_bits+:} false; then :
6202 $as_echo_n "(cached) " >&6
6203 else
6204 while :; do
6205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6206 /* end confdefs.h. */
6207 #include <sys/types.h>
6208 /* Check that off_t can represent 2**63 - 1 correctly.
6209 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6210 since some C++ compilers masquerading as C compilers
6211 incorrectly reject 9223372036854775807. */
6212 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6213 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6214 && LARGE_OFF_T % 2147483647 == 1)
6215 ? 1 : -1];
6217 main ()
6221 return 0;
6223 _ACEOF
6224 if ac_fn_cxx_try_compile "$LINENO"; then :
6225 ac_cv_sys_file_offset_bits=no; break
6227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6229 /* end confdefs.h. */
6230 #define _FILE_OFFSET_BITS 64
6231 #include <sys/types.h>
6232 /* Check that off_t can represent 2**63 - 1 correctly.
6233 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6234 since some C++ compilers masquerading as C compilers
6235 incorrectly reject 9223372036854775807. */
6236 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6237 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6238 && LARGE_OFF_T % 2147483647 == 1)
6239 ? 1 : -1];
6241 main ()
6245 return 0;
6247 _ACEOF
6248 if ac_fn_cxx_try_compile "$LINENO"; then :
6249 ac_cv_sys_file_offset_bits=64; break
6251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6252 ac_cv_sys_file_offset_bits=unknown
6253 break
6254 done
6256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6257 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6258 case $ac_cv_sys_file_offset_bits in #(
6259 no | unknown) ;;
6261 cat >>confdefs.h <<_ACEOF
6262 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6263 _ACEOF
6265 esac
6266 rm -rf conftest*
6267 if test $ac_cv_sys_file_offset_bits = unknown; then
6268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6269 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6270 if ${ac_cv_sys_large_files+:} false; then :
6271 $as_echo_n "(cached) " >&6
6272 else
6273 while :; do
6274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6275 /* end confdefs.h. */
6276 #include <sys/types.h>
6277 /* Check that off_t can represent 2**63 - 1 correctly.
6278 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6279 since some C++ compilers masquerading as C compilers
6280 incorrectly reject 9223372036854775807. */
6281 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6282 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6283 && LARGE_OFF_T % 2147483647 == 1)
6284 ? 1 : -1];
6286 main ()
6290 return 0;
6292 _ACEOF
6293 if ac_fn_cxx_try_compile "$LINENO"; then :
6294 ac_cv_sys_large_files=no; break
6296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6298 /* end confdefs.h. */
6299 #define _LARGE_FILES 1
6300 #include <sys/types.h>
6301 /* Check that off_t can represent 2**63 - 1 correctly.
6302 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6303 since some C++ compilers masquerading as C compilers
6304 incorrectly reject 9223372036854775807. */
6305 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6306 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6307 && LARGE_OFF_T % 2147483647 == 1)
6308 ? 1 : -1];
6310 main ()
6314 return 0;
6316 _ACEOF
6317 if ac_fn_cxx_try_compile "$LINENO"; then :
6318 ac_cv_sys_large_files=1; break
6320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6321 ac_cv_sys_large_files=unknown
6322 break
6323 done
6325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6326 $as_echo "$ac_cv_sys_large_files" >&6; }
6327 case $ac_cv_sys_large_files in #(
6328 no | unknown) ;;
6330 cat >>confdefs.h <<_ACEOF
6331 #define _LARGE_FILES $ac_cv_sys_large_files
6332 _ACEOF
6334 esac
6335 rm -rf conftest*
6341 # The cast to long int works around a bug in the HP C Compiler
6342 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6343 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6344 # This bug is HP SR number 8606223364.
6345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ino_t" >&5
6346 $as_echo_n "checking size of ino_t... " >&6; }
6347 if ${ac_cv_sizeof_ino_t+:} false; then :
6348 $as_echo_n "(cached) " >&6
6349 else
6350 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (ino_t))" "ac_cv_sizeof_ino_t" "$ac_includes_default"; then :
6352 else
6353 if test "$ac_cv_type_ino_t" = yes; then
6354 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6355 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6356 as_fn_error 77 "cannot compute sizeof (ino_t)
6357 See \`config.log' for more details" "$LINENO" 5; }
6358 else
6359 ac_cv_sizeof_ino_t=0
6364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ino_t" >&5
6365 $as_echo "$ac_cv_sizeof_ino_t" >&6; }
6369 cat >>confdefs.h <<_ACEOF
6370 #define SIZEOF_INO_T $ac_cv_sizeof_ino_t
6371 _ACEOF
6374 # The cast to long int works around a bug in the HP C Compiler
6375 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6376 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6377 # This bug is HP SR number 8606223364.
6378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of dev_t" >&5
6379 $as_echo_n "checking size of dev_t... " >&6; }
6380 if ${ac_cv_sizeof_dev_t+:} false; then :
6381 $as_echo_n "(cached) " >&6
6382 else
6383 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (dev_t))" "ac_cv_sizeof_dev_t" "$ac_includes_default"; then :
6385 else
6386 if test "$ac_cv_type_dev_t" = yes; then
6387 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6388 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6389 as_fn_error 77 "cannot compute sizeof (dev_t)
6390 See \`config.log' for more details" "$LINENO" 5; }
6391 else
6392 ac_cv_sizeof_dev_t=0
6397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_dev_t" >&5
6398 $as_echo "$ac_cv_sizeof_dev_t" >&6; }
6402 cat >>confdefs.h <<_ACEOF
6403 #define SIZEOF_DEV_T $ac_cv_sizeof_dev_t
6404 _ACEOF
6408 # Select the right stat being able to handle 64bit inodes, if needed.
6409 if test "$enable_largefile" != no; then
6410 case "$host, $build" in
6411 *-*-aix*,*|*,*-*-aix*)
6412 if test "$ac_cv_sizeof_ino_t" = "4" -a "$ac_cv_sizeof_dev_t" = 4; then
6414 $as_echo "#define HOST_STAT_FOR_64BIT_INODES stat64x" >>confdefs.h
6416 fi;;
6417 esac
6421 # sizeof(char) is 1 by definition.
6422 # The cast to long int works around a bug in the HP C Compiler
6423 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6424 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6425 # This bug is HP SR number 8606223364.
6426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
6427 $as_echo_n "checking size of void *... " >&6; }
6428 if ${ac_cv_sizeof_void_p+:} false; then :
6429 $as_echo_n "(cached) " >&6
6430 else
6431 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
6433 else
6434 if test "$ac_cv_type_void_p" = yes; then
6435 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6436 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6437 as_fn_error 77 "cannot compute sizeof (void *)
6438 See \`config.log' for more details" "$LINENO" 5; }
6439 else
6440 ac_cv_sizeof_void_p=0
6445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
6446 $as_echo "$ac_cv_sizeof_void_p" >&6; }
6450 cat >>confdefs.h <<_ACEOF
6451 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
6452 _ACEOF
6455 # The cast to long int works around a bug in the HP C Compiler
6456 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6457 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6458 # This bug is HP SR number 8606223364.
6459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
6460 $as_echo_n "checking size of short... " >&6; }
6461 if ${ac_cv_sizeof_short+:} false; then :
6462 $as_echo_n "(cached) " >&6
6463 else
6464 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
6466 else
6467 if test "$ac_cv_type_short" = yes; then
6468 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6469 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6470 as_fn_error 77 "cannot compute sizeof (short)
6471 See \`config.log' for more details" "$LINENO" 5; }
6472 else
6473 ac_cv_sizeof_short=0
6478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
6479 $as_echo "$ac_cv_sizeof_short" >&6; }
6483 cat >>confdefs.h <<_ACEOF
6484 #define SIZEOF_SHORT $ac_cv_sizeof_short
6485 _ACEOF
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 int" >&5
6493 $as_echo_n "checking size of int... " >&6; }
6494 if ${ac_cv_sizeof_int+:} false; then :
6495 $as_echo_n "(cached) " >&6
6496 else
6497 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
6499 else
6500 if test "$ac_cv_type_int" = 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 (int)
6504 See \`config.log' for more details" "$LINENO" 5; }
6505 else
6506 ac_cv_sizeof_int=0
6511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
6512 $as_echo "$ac_cv_sizeof_int" >&6; }
6516 cat >>confdefs.h <<_ACEOF
6517 #define SIZEOF_INT $ac_cv_sizeof_int
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 long" >&5
6526 $as_echo_n "checking size of long... " >&6; }
6527 if ${ac_cv_sizeof_long+:} false; then :
6528 $as_echo_n "(cached) " >&6
6529 else
6530 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
6532 else
6533 if test "$ac_cv_type_long" = 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 (long)
6537 See \`config.log' for more details" "$LINENO" 5; }
6538 else
6539 ac_cv_sizeof_long=0
6544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6545 $as_echo "$ac_cv_sizeof_long" >&6; }
6549 cat >>confdefs.h <<_ACEOF
6550 #define SIZEOF_LONG $ac_cv_sizeof_long
6551 _ACEOF
6554 ac_fn_cxx_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
6555 if test "x$ac_cv_type_long_long" = xyes; then :
6557 cat >>confdefs.h <<_ACEOF
6558 #define HAVE_LONG_LONG 1
6559 _ACEOF
6561 # The cast to long int works around a bug in the HP C Compiler
6562 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6563 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6564 # This bug is HP SR number 8606223364.
6565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
6566 $as_echo_n "checking size of long long... " >&6; }
6567 if ${ac_cv_sizeof_long_long+:} false; then :
6568 $as_echo_n "(cached) " >&6
6569 else
6570 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
6572 else
6573 if test "$ac_cv_type_long_long" = yes; then
6574 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6575 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6576 as_fn_error 77 "cannot compute sizeof (long long)
6577 See \`config.log' for more details" "$LINENO" 5; }
6578 else
6579 ac_cv_sizeof_long_long=0
6584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
6585 $as_echo "$ac_cv_sizeof_long_long" >&6; }
6589 cat >>confdefs.h <<_ACEOF
6590 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6591 _ACEOF
6596 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
6597 case $ac_cv_c_int8_t in #(
6598 no|yes) ;; #(
6601 cat >>confdefs.h <<_ACEOF
6602 #define int8_t $ac_cv_c_int8_t
6603 _ACEOF
6605 esac
6607 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
6608 case $ac_cv_c_int16_t in #(
6609 no|yes) ;; #(
6612 cat >>confdefs.h <<_ACEOF
6613 #define int16_t $ac_cv_c_int16_t
6614 _ACEOF
6616 esac
6618 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
6619 case $ac_cv_c_int32_t in #(
6620 no|yes) ;; #(
6623 cat >>confdefs.h <<_ACEOF
6624 #define int32_t $ac_cv_c_int32_t
6625 _ACEOF
6627 esac
6629 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
6630 case $ac_cv_c_int64_t in #(
6631 no|yes) ;; #(
6634 cat >>confdefs.h <<_ACEOF
6635 #define int64_t $ac_cv_c_int64_t
6636 _ACEOF
6638 esac
6641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6642 $as_echo_n "checking for unsigned long long int... " >&6; }
6643 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
6644 $as_echo_n "(cached) " >&6
6645 else
6646 ac_cv_type_unsigned_long_long_int=yes
6647 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
6648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6649 /* end confdefs.h. */
6651 /* For now, do not test the preprocessor; as of 2007 there are too many
6652 implementations with broken preprocessors. Perhaps this can
6653 be revisited in 2012. In the meantime, code should not expect
6654 #if to work with literals wider than 32 bits. */
6655 /* Test literals. */
6656 long long int ll = 9223372036854775807ll;
6657 long long int nll = -9223372036854775807LL;
6658 unsigned long long int ull = 18446744073709551615ULL;
6659 /* Test constant expressions. */
6660 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6661 ? 1 : -1)];
6662 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6663 ? 1 : -1)];
6664 int i = 63;
6666 main ()
6668 /* Test availability of runtime routines for shift and division. */
6669 long long int llmax = 9223372036854775807ll;
6670 unsigned long long int ullmax = 18446744073709551615ull;
6671 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6672 | (llmax / ll) | (llmax % ll)
6673 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6674 | (ullmax / ull) | (ullmax % ull));
6676 return 0;
6679 _ACEOF
6680 if ac_fn_cxx_try_link "$LINENO"; then :
6682 else
6683 ac_cv_type_unsigned_long_long_int=no
6685 rm -f core conftest.err conftest.$ac_objext \
6686 conftest$ac_exeext conftest.$ac_ext
6689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6690 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6691 if test $ac_cv_type_unsigned_long_long_int = yes; then
6693 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6700 $as_echo_n "checking for long long int... " >&6; }
6701 if ${ac_cv_type_long_long_int+:} false; then :
6702 $as_echo_n "(cached) " >&6
6703 else
6704 ac_cv_type_long_long_int=yes
6705 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
6706 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
6707 if test $ac_cv_type_long_long_int = yes; then
6708 if test "$cross_compiling" = yes; then :
6710 else
6711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6712 /* end confdefs.h. */
6713 #include <limits.h>
6714 #ifndef LLONG_MAX
6715 # define HALF \
6716 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6717 # define LLONG_MAX (HALF - 1 + HALF)
6718 #endif
6720 main ()
6722 long long int n = 1;
6723 int i;
6724 for (i = 0; ; i++)
6726 long long int m = n << i;
6727 if (m >> i != n)
6728 return 1;
6729 if (LLONG_MAX / 2 < m)
6730 break;
6732 return 0;
6734 return 0;
6736 _ACEOF
6737 if ac_fn_cxx_try_run "$LINENO"; then :
6739 else
6740 ac_cv_type_long_long_int=no
6742 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6743 conftest.$ac_objext conftest.beam conftest.$ac_ext
6749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6750 $as_echo "$ac_cv_type_long_long_int" >&6; }
6751 if test $ac_cv_type_long_long_int = yes; then
6753 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6759 ac_fn_cxx_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6760 if test "x$ac_cv_type_intmax_t" = xyes; then :
6762 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6764 else
6765 test $ac_cv_type_long_long_int = yes \
6766 && ac_type='long long int' \
6767 || ac_type='long int'
6769 cat >>confdefs.h <<_ACEOF
6770 #define intmax_t $ac_type
6771 _ACEOF
6777 ac_fn_cxx_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6778 if test "x$ac_cv_type_intptr_t" = xyes; then :
6780 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6782 else
6783 for ac_type in 'int' 'long int' 'long long int'; do
6784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6785 /* end confdefs.h. */
6786 $ac_includes_default
6788 main ()
6790 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6791 test_array [0] = 0;
6792 return test_array [0];
6795 return 0;
6797 _ACEOF
6798 if ac_fn_cxx_try_compile "$LINENO"; then :
6800 cat >>confdefs.h <<_ACEOF
6801 #define intptr_t $ac_type
6802 _ACEOF
6804 ac_type=
6806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6807 test -z "$ac_type" && break
6808 done
6812 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
6813 case $ac_cv_c_uint8_t in #(
6814 no|yes) ;; #(
6817 $as_echo "#define _UINT8_T 1" >>confdefs.h
6820 cat >>confdefs.h <<_ACEOF
6821 #define uint8_t $ac_cv_c_uint8_t
6822 _ACEOF
6824 esac
6826 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6827 case $ac_cv_c_uint16_t in #(
6828 no|yes) ;; #(
6832 cat >>confdefs.h <<_ACEOF
6833 #define uint16_t $ac_cv_c_uint16_t
6834 _ACEOF
6836 esac
6838 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6839 case $ac_cv_c_uint32_t in #(
6840 no|yes) ;; #(
6843 $as_echo "#define _UINT32_T 1" >>confdefs.h
6846 cat >>confdefs.h <<_ACEOF
6847 #define uint32_t $ac_cv_c_uint32_t
6848 _ACEOF
6850 esac
6852 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
6853 case $ac_cv_c_uint64_t in #(
6854 no|yes) ;; #(
6857 $as_echo "#define _UINT64_T 1" >>confdefs.h
6860 cat >>confdefs.h <<_ACEOF
6861 #define uint64_t $ac_cv_c_uint64_t
6862 _ACEOF
6864 esac
6868 ac_fn_cxx_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6869 if test "x$ac_cv_type_uintmax_t" = xyes; then :
6871 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6873 else
6874 test $ac_cv_type_unsigned_long_long_int = yes \
6875 && ac_type='unsigned long long int' \
6876 || ac_type='unsigned long int'
6878 cat >>confdefs.h <<_ACEOF
6879 #define uintmax_t $ac_type
6880 _ACEOF
6886 ac_fn_cxx_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6887 if test "x$ac_cv_type_uintptr_t" = xyes; then :
6889 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6891 else
6892 for ac_type in 'unsigned int' 'unsigned long int' \
6893 'unsigned long long int'; do
6894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6895 /* end confdefs.h. */
6896 $ac_includes_default
6898 main ()
6900 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6901 test_array [0] = 0;
6902 return test_array [0];
6905 return 0;
6907 _ACEOF
6908 if ac_fn_cxx_try_compile "$LINENO"; then :
6910 cat >>confdefs.h <<_ACEOF
6911 #define uintptr_t $ac_type
6912 _ACEOF
6914 ac_type=
6916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6917 test -z "$ac_type" && break
6918 done
6934 if test x"$ac_cv_c_uint64_t" = x"no" -o x"$ac_cv_c_int64_t" = x"no"; then
6935 as_fn_error $? "uint64_t or int64_t not found" "$LINENO" 5
6938 # check what underlying integer type int64_t uses
6939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t underlying type" >&5
6940 $as_echo_n "checking for int64_t underlying type... " >&6; }
6941 if ${ac_cv_int64_t_type+:} false; then :
6942 $as_echo_n "(cached) " >&6
6943 else
6945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6946 /* end confdefs.h. */
6948 #ifdef HAVE_STDINT_H
6949 #include <stdint.h>
6950 #endif
6951 template <typename T> struct X { };
6952 template <>
6953 struct X<long> { typedef long t; };
6956 main ()
6958 X<int64_t>::t x;
6960 return 0;
6962 _ACEOF
6963 if ac_fn_cxx_try_compile "$LINENO"; then :
6964 ac_cv_int64_t_type=long
6965 else
6966 ac_cv_int64_t_type="long long"
6968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_int64_t_type" >&5
6971 $as_echo "$ac_cv_int64_t_type" >&6; }
6972 if test "$ac_cv_int64_t_type" = "long"; then
6974 $as_echo "#define INT64_T_IS_LONG 1" >>confdefs.h
6976 else
6977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6978 /* end confdefs.h. */
6980 #ifdef HAVE_STDINT_H
6981 #include <stdint.h>
6982 #endif
6983 template <typename T> struct X { };
6984 template <>
6985 struct X<long long> { typedef long long t; };
6988 main ()
6990 X<int64_t>::t x;
6992 return 0;
6994 _ACEOF
6995 if ac_fn_cxx_try_compile "$LINENO"; then :
6997 else
6998 as_fn_error $? "error verifying int64_t uses long long" "$LINENO" 5
7000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::swap in <utility>" >&5
7004 $as_echo_n "checking for std::swap in <utility>... " >&6; }
7005 if ${ac_cv_std_swap_in_utility+:} false; then :
7006 $as_echo_n "(cached) " >&6
7007 else
7009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7010 /* end confdefs.h. */
7012 #include <utility>
7015 main ()
7017 int a, b; std::swap(a,b);
7019 return 0;
7021 _ACEOF
7022 if ac_fn_cxx_try_compile "$LINENO"; then :
7023 ac_cv_std_swap_in_utility=yes
7024 else
7025 ac_cv_std_swap_in_utility=no
7027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_std_swap_in_utility" >&5
7030 $as_echo "$ac_cv_std_swap_in_utility" >&6; }
7031 if test $ac_cv_std_swap_in_utility = yes; then
7033 $as_echo "#define HAVE_SWAP_IN_UTILITY 1" >>confdefs.h
7037 # Check whether compiler is affected by placement new aliasing bug (PR 29286).
7038 # If the host compiler is affected by the bug, and we build with optimization
7039 # enabled (which happens e.g. when cross-compiling), the pool allocator may
7040 # get miscompiled. Use -fno-strict-aliasing to work around this problem.
7041 # Since there is no reliable feature check for the presence of this bug,
7042 # we simply use a GCC version number check. (This should never trigger for
7043 # stages 2 or 3 of a native bootstrap.)
7044 aliasing_flags=
7045 if test "$GCC" = yes; then
7046 saved_CXXFLAGS="$CXXFLAGS"
7048 # The following test compilation will succeed if and only if $CXX accepts
7049 # -fno-strict-aliasing *and* is older than GCC 4.3.
7050 CXXFLAGS="$CXXFLAGS -fno-strict-aliasing"
7051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX is affected by placement new aliasing bug" >&5
7052 $as_echo_n "checking whether $CXX is affected by placement new aliasing bug... " >&6; }
7053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7054 /* end confdefs.h. */
7056 #if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3)
7057 #error compiler not affected by placement new aliasing bug
7058 #endif
7060 _ACEOF
7061 if ac_fn_cxx_try_compile "$LINENO"; then :
7062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7063 $as_echo "yes" >&6; }; aliasing_flags='-fno-strict-aliasing'
7064 else
7065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7066 $as_echo "no" >&6; }
7068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7070 CXXFLAGS="$saved_CXXFLAGS"
7076 # ---------------------
7077 # Warnings and checking
7078 # ---------------------
7080 # Check $CC warning features (if it's GCC).
7081 # We want to use -pedantic, but we don't want warnings about
7082 # * 'long long'
7083 # * variadic macros
7084 # * overlong strings
7085 # * C++11 narrowing conversions in { }
7086 # So, we only use -pedantic if we can disable those warnings.
7088 # In stage 1, disable -Wformat warnings from old GCCs about new % codes
7089 # Check whether --enable-build-format-warnings was given.
7090 if test "${enable_build_format_warnings+set}" = set; then :
7091 enableval=$enable_build_format_warnings;
7092 else
7093 enable_build_format_warnings=yes
7096 if test $enable_build_format_warnings = no; then :
7097 wf_opt=-Wno-format
7098 else
7099 wf_opt=
7101 ac_ext=cpp
7102 ac_cpp='$CXXCPP $CPPFLAGS'
7103 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7104 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7105 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7107 loose_warn=
7108 save_CXXFLAGS="$CXXFLAGS"
7109 for real_option in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual $wf_opt; do
7110 # Do the check with the no- prefix removed since gcc silently
7111 # accepts any -Wno-* option on purpose
7112 case $real_option in
7113 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7114 *) option=$real_option ;;
7115 esac
7116 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
7119 $as_echo_n "checking whether $CXX supports $option... " >&6; }
7120 if eval \${$as_acx_Woption+:} false; then :
7121 $as_echo_n "(cached) " >&6
7122 else
7123 CXXFLAGS="$option"
7124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7125 /* end confdefs.h. */
7128 main ()
7132 return 0;
7134 _ACEOF
7135 if ac_fn_cxx_try_compile "$LINENO"; then :
7136 eval "$as_acx_Woption=yes"
7137 else
7138 eval "$as_acx_Woption=no"
7140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7143 eval ac_res=\$$as_acx_Woption
7144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7145 $as_echo "$ac_res" >&6; }
7146 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7147 loose_warn="$loose_warn${loose_warn:+ }$real_option"
7149 done
7150 CXXFLAGS="$save_CXXFLAGS"
7151 ac_ext=cpp
7152 ac_cpp='$CXXCPP $CPPFLAGS'
7153 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7154 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7155 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7159 ac_ext=c
7160 ac_cpp='$CPP $CPPFLAGS'
7161 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7162 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7163 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7165 c_loose_warn=
7166 save_CFLAGS="$CFLAGS"
7167 for real_option in -Wstrict-prototypes -Wmissing-prototypes ; do
7168 # Do the check with the no- prefix removed since gcc silently
7169 # accepts any -Wno-* option on purpose
7170 case $real_option in
7171 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7172 *) option=$real_option ;;
7173 esac
7174 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
7177 $as_echo_n "checking whether $CC supports $option... " >&6; }
7178 if eval \${$as_acx_Woption+:} false; then :
7179 $as_echo_n "(cached) " >&6
7180 else
7181 CFLAGS="$option"
7182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7183 /* end confdefs.h. */
7186 main ()
7190 return 0;
7192 _ACEOF
7193 if ac_fn_c_try_compile "$LINENO"; then :
7194 eval "$as_acx_Woption=yes"
7195 else
7196 eval "$as_acx_Woption=no"
7198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7201 eval ac_res=\$$as_acx_Woption
7202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7203 $as_echo "$ac_res" >&6; }
7204 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7205 c_loose_warn="$c_loose_warn${c_loose_warn:+ }$real_option"
7207 done
7208 CFLAGS="$save_CFLAGS"
7209 ac_ext=cpp
7210 ac_cpp='$CXXCPP $CPPFLAGS'
7211 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7212 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7213 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7216 ac_ext=cpp
7217 ac_cpp='$CXXCPP $CPPFLAGS'
7218 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7219 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7220 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7222 strict_warn=
7223 save_CXXFLAGS="$CXXFLAGS"
7224 for real_option in -Wmissing-format-attribute -Wconditionally-supported -Woverloaded-virtual; do
7225 # Do the check with the no- prefix removed since gcc silently
7226 # accepts any -Wno-* option on purpose
7227 case $real_option in
7228 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7229 *) option=$real_option ;;
7230 esac
7231 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
7234 $as_echo_n "checking whether $CXX supports $option... " >&6; }
7235 if eval \${$as_acx_Woption+:} false; then :
7236 $as_echo_n "(cached) " >&6
7237 else
7238 CXXFLAGS="$option"
7239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7240 /* end confdefs.h. */
7243 main ()
7247 return 0;
7249 _ACEOF
7250 if ac_fn_cxx_try_compile "$LINENO"; then :
7251 eval "$as_acx_Woption=yes"
7252 else
7253 eval "$as_acx_Woption=no"
7255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7258 eval ac_res=\$$as_acx_Woption
7259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7260 $as_echo "$ac_res" >&6; }
7261 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7262 strict_warn="$strict_warn${strict_warn:+ }$real_option"
7264 done
7265 CXXFLAGS="$save_CXXFLAGS"
7266 ac_ext=cpp
7267 ac_cpp='$CXXCPP $CPPFLAGS'
7268 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7269 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7270 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7273 ac_ext=c
7274 ac_cpp='$CPP $CPPFLAGS'
7275 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7276 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7277 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7279 c_strict_warn=
7280 save_CFLAGS="$CFLAGS"
7281 for real_option in -Wold-style-definition -Wc++-compat; do
7282 # Do the check with the no- prefix removed since gcc silently
7283 # accepts any -Wno-* option on purpose
7284 case $real_option in
7285 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7286 *) option=$real_option ;;
7287 esac
7288 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
7291 $as_echo_n "checking whether $CC supports $option... " >&6; }
7292 if eval \${$as_acx_Woption+:} false; then :
7293 $as_echo_n "(cached) " >&6
7294 else
7295 CFLAGS="$option"
7296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7297 /* end confdefs.h. */
7300 main ()
7304 return 0;
7306 _ACEOF
7307 if ac_fn_c_try_compile "$LINENO"; then :
7308 eval "$as_acx_Woption=yes"
7309 else
7310 eval "$as_acx_Woption=no"
7312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7315 eval ac_res=\$$as_acx_Woption
7316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7317 $as_echo "$ac_res" >&6; }
7318 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7319 c_strict_warn="$c_strict_warn${c_strict_warn:+ }$real_option"
7321 done
7322 CFLAGS="$save_CFLAGS"
7323 ac_ext=cpp
7324 ac_cpp='$CXXCPP $CPPFLAGS'
7325 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7326 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7327 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7330 ac_ext=cpp
7331 ac_cpp='$CXXCPP $CPPFLAGS'
7332 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7333 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7334 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7336 # Do the check with the no- prefix removed from the warning options
7337 # since gcc silently accepts any -Wno-* option on purpose
7338 if test "$GXX" = yes; then :
7339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
7340 $as_echo_n "checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
7341 if ${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+:} false; then :
7342 $as_echo_n "(cached) " >&6
7343 else
7344 save_CXXFLAGS="$CXXFLAGS"
7345 CXXFLAGS="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
7346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7347 /* end confdefs.h. */
7350 main ()
7354 return 0;
7356 _ACEOF
7357 if ac_fn_cxx_try_compile "$LINENO"; then :
7358 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=yes
7359 else
7360 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=no
7362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7363 CXXFLAGS="$save_CXXFLAGS"
7365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
7366 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
7367 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
7368 strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
7372 ac_ext=cpp
7373 ac_cpp='$CXXCPP $CPPFLAGS'
7374 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7375 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7376 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7379 ac_ext=cpp
7380 ac_cpp='$CXXCPP $CPPFLAGS'
7381 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7382 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7383 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7385 # Check whether --enable-werror-always was given.
7386 if test "${enable_werror_always+set}" = set; then :
7387 enableval=$enable_werror_always;
7388 else
7389 enable_werror_always=no
7392 if test $enable_werror_always = yes; then :
7393 strict_warn="$strict_warn${strict_warn:+ }-Werror"
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
7404 # The above macros do nothing if the compiler is not GCC. However, the
7405 # Makefile has more goo to add other flags, so these variables are used
7406 # to enable warnings only for GCC.
7407 warn_cflags=
7408 warn_cxxflags=
7409 if test "x$GCC" = "xyes"; then
7410 warn_cflags='$(GCC_WARN_CFLAGS)'
7411 warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
7416 # Disable exceptions and RTTI if building with g++
7417 ac_ext=c
7418 ac_cpp='$CPP $CPPFLAGS'
7419 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7420 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7421 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7423 noexception_flags=
7424 save_CFLAGS="$CFLAGS"
7425 for real_option in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
7426 # Do the check with the no- prefix removed since gcc silently
7427 # accepts any -Wno-* option on purpose
7428 case $real_option in
7429 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7430 *) option=$real_option ;;
7431 esac
7432 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
7435 $as_echo_n "checking whether $CC supports $option... " >&6; }
7436 if eval \${$as_acx_Woption+:} false; then :
7437 $as_echo_n "(cached) " >&6
7438 else
7439 CFLAGS="$option"
7440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7441 /* end confdefs.h. */
7444 main ()
7448 return 0;
7450 _ACEOF
7451 if ac_fn_c_try_compile "$LINENO"; then :
7452 eval "$as_acx_Woption=yes"
7453 else
7454 eval "$as_acx_Woption=no"
7456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7459 eval ac_res=\$$as_acx_Woption
7460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7461 $as_echo "$ac_res" >&6; }
7462 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7463 noexception_flags="$noexception_flags${noexception_flags:+ }$real_option"
7465 done
7466 CFLAGS="$save_CFLAGS"
7467 ac_ext=cpp
7468 ac_cpp='$CXXCPP $CPPFLAGS'
7469 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7470 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7471 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7475 # Enable expensive internal checks
7476 is_release=
7477 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
7478 is_release=yes
7481 # Check whether --enable-checking was given.
7482 if test "${enable_checking+set}" = set; then :
7483 enableval=$enable_checking; ac_checking_flags="${enableval}"
7484 else
7486 # Determine the default checks.
7487 if test x$is_release = x ; then
7488 ac_checking_flags=yes,extra
7489 else
7490 ac_checking_flags=release
7494 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
7495 for check in release $ac_checking_flags
7497 case $check in
7498 # these set all the flags to specific states
7499 yes) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
7500 ac_fold_checking= ; ac_gc_checking=1 ; ac_extra_checking= ;
7501 ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
7502 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7503 ac_tree_checking=1 ; ac_valgrind_checking= ;
7504 ac_types_checking=1 ;;
7505 no|none) ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
7506 ac_fold_checking= ; ac_gc_checking= ; ac_extra_checking= ;
7507 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
7508 ac_rtlflag_checking= ; ac_runtime_checking= ;
7509 ac_tree_checking= ; ac_valgrind_checking= ;
7510 ac_types_checking= ;;
7511 all) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
7512 ac_fold_checking=1 ; ac_gc_checking=1 ; ac_extra_checking=1 ;
7513 ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
7514 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7515 ac_tree_checking=1 ; ac_valgrind_checking= ;
7516 ac_types_checking=1 ;;
7517 release) ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
7518 ac_fold_checking= ; ac_gc_checking= ; ac_extra_checking= ;
7519 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
7520 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
7521 ac_tree_checking= ; ac_valgrind_checking= ;
7522 ac_types_checking= ;;
7523 # these enable particular checks
7524 assert) ac_assert_checking=1 ;;
7525 df) ac_df_checking=1 ;;
7526 extra) ac_extra_checking=1 ;;
7527 fold) ac_fold_checking=1 ;;
7528 gc) ac_gc_checking=1 ;;
7529 gcac) ac_gc_always_collect=1 ;;
7530 gimple) ac_gimple_checking=1 ;;
7531 misc) ac_checking=1 ;;
7532 rtl) ac_rtl_checking=1 ;;
7533 rtlflag) ac_rtlflag_checking=1 ;;
7534 runtime) ac_runtime_checking=1 ;;
7535 tree) ac_tree_checking=1 ;;
7536 types) ac_types_checking=1 ;;
7537 valgrind) ac_valgrind_checking=1 ;;
7538 *) as_fn_error $? "unknown check category $check" "$LINENO" 5 ;;
7539 esac
7540 done
7541 IFS="$ac_save_IFS"
7543 nocommon_flag=""
7544 if test x$ac_checking != x ; then
7546 $as_echo "#define CHECKING_P 1" >>confdefs.h
7548 nocommon_flag=-fno-common
7549 else
7550 $as_echo "#define CHECKING_P 0" >>confdefs.h
7554 if test x$ac_extra_checking != x ; then
7556 $as_echo "#define ENABLE_EXTRA_CHECKING 1" >>confdefs.h
7558 else
7559 $as_echo "#define ENABLE_EXTRA_CHECKING 0" >>confdefs.h
7562 if test x$ac_df_checking != x ; then
7564 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
7567 if test x$ac_assert_checking != x ; then
7569 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
7572 if test x$ac_gimple_checking != x ; then
7574 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
7578 if test x$ac_runtime_checking != x ; then
7580 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
7583 if test x$ac_tree_checking != x ; then
7585 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
7587 TREECHECKING=yes
7589 if test x$ac_types_checking != x ; then
7591 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
7595 if test x$ac_rtl_checking != x ; then
7597 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
7600 if test x$ac_rtlflag_checking != x ; then
7602 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
7605 if test x$ac_gc_checking != x ; then
7607 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
7610 if test x$ac_gc_always_collect != x ; then
7612 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
7615 if test x$ac_fold_checking != x ; then
7617 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
7620 valgrind_path_defines=
7621 valgrind_command=
7623 ac_fn_cxx_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
7624 if test "x$ac_cv_header_valgrind_h" = xyes; then :
7625 have_valgrind_h=yes
7626 else
7627 have_valgrind_h=no
7632 # It is certainly possible that there's valgrind but no valgrind.h.
7633 # GCC relies on making annotations so we must have both.
7634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
7635 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
7636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7637 /* end confdefs.h. */
7638 #include <valgrind/memcheck.h>
7639 #ifndef VALGRIND_DISCARD
7640 #error VALGRIND_DISCARD not defined
7641 #endif
7642 _ACEOF
7643 if ac_fn_cxx_try_cpp "$LINENO"; then :
7644 gcc_cv_header_valgrind_memcheck_h=yes
7645 else
7646 gcc_cv_header_valgrind_memcheck_h=no
7648 rm -f conftest.err conftest.i conftest.$ac_ext
7649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
7650 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
7651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
7652 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
7653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7654 /* end confdefs.h. */
7655 #include <memcheck.h>
7656 #ifndef VALGRIND_DISCARD
7657 #error VALGRIND_DISCARD not defined
7658 #endif
7659 _ACEOF
7660 if ac_fn_cxx_try_cpp "$LINENO"; then :
7661 gcc_cv_header_memcheck_h=yes
7662 else
7663 gcc_cv_header_memcheck_h=no
7665 rm -f conftest.err conftest.i conftest.$ac_ext
7666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
7667 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
7668 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
7670 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
7673 if test $gcc_cv_header_memcheck_h = yes; then
7675 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
7679 if test x$ac_valgrind_checking != x ; then
7681 # Prepare PATH_SEPARATOR.
7682 # The user is always right.
7683 if test "${PATH_SEPARATOR+set}" != set; then
7684 echo "#! /bin/sh" >conf$$.sh
7685 echo "exit 0" >>conf$$.sh
7686 chmod +x conf$$.sh
7687 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7688 PATH_SEPARATOR=';'
7689 else
7690 PATH_SEPARATOR=:
7692 rm -f conf$$.sh
7695 # Find out how to test for executable files. Don't use a zero-byte file,
7696 # as systems may use methods other than mode bits to determine executability.
7697 cat >conf$$.file <<_ASEOF
7698 #! /bin/sh
7699 exit 0
7700 _ASEOF
7701 chmod +x conf$$.file
7702 if test -x conf$$.file >/dev/null 2>&1; then
7703 ac_executable_p="test -x"
7704 else
7705 ac_executable_p="test -f"
7707 rm -f conf$$.file
7709 # Extract the first word of "valgrind", so it can be a program name with args.
7710 set dummy valgrind; ac_word=$2
7711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7712 $as_echo_n "checking for $ac_word... " >&6; }
7713 if ${ac_cv_path_valgrind_path+:} false; then :
7714 $as_echo_n "(cached) " >&6
7715 else
7716 case "$valgrind_path" in
7717 [\\/]* | ?:[\\/]*)
7718 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
7721 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7722 for ac_dir in $PATH; do
7723 IFS="$ac_save_IFS"
7724 test -z "$ac_dir" && ac_dir=.
7725 for ac_exec_ext in '' $ac_executable_extensions; do
7726 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7727 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
7728 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
7729 break 2
7732 done
7733 done
7734 IFS="$ac_save_IFS"
7736 esac
7738 valgrind_path="$ac_cv_path_valgrind_path"
7739 if test -n "$valgrind_path"; then
7740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
7741 $as_echo "$valgrind_path" >&6; }
7742 else
7743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7744 $as_echo "no" >&6; }
7747 if test "x$valgrind_path" = "x" \
7748 || (test $have_valgrind_h = no \
7749 && test $gcc_cv_header_memcheck_h = no \
7750 && test $gcc_cv_header_valgrind_memcheck_h = no); then
7751 as_fn_error $? "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7753 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
7754 valgrind_command="$valgrind_path -q"
7756 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
7762 # Enable code coverage collection
7763 # Check whether --enable-coverage was given.
7764 if test "${enable_coverage+set}" = set; then :
7765 enableval=$enable_coverage; case "${enableval}" in
7766 yes|noopt)
7767 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0 -fkeep-static-functions"
7769 opt)
7770 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2 -fkeep-static-functions"
7773 # a.k.a. --disable-coverage
7774 coverage_flags=""
7777 as_fn_error $? "unknown coverage setting $enableval" "$LINENO" 5
7779 esac
7780 else
7781 coverage_flags=""
7786 # Check whether --enable-gather-detailed-mem-stats was given.
7787 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
7788 enableval=$enable_gather_detailed_mem_stats;
7789 else
7790 enable_gather_detailed_mem_stats=no
7793 gather_stats=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
7795 cat >>confdefs.h <<_ACEOF
7796 #define GATHER_STATISTICS $gather_stats
7797 _ACEOF
7800 # Check whether --enable-valgrind-annotations was given.
7801 if test "${enable_valgrind_annotations+set}" = set; then :
7802 enableval=$enable_valgrind_annotations;
7803 else
7804 enable_valgrind_annotations=no
7807 if test x$enable_valgrind_annotations != xno \
7808 || test x$ac_valgrind_checking != x; then
7809 if (test $have_valgrind_h = no \
7810 && test $gcc_cv_header_memcheck_h = no \
7811 && test $gcc_cv_header_valgrind_memcheck_h = no); then
7812 as_fn_error $? "*** Can't find valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7815 $as_echo "#define ENABLE_VALGRIND_ANNOTATIONS 1" >>confdefs.h
7819 # -------------------------------
7820 # Miscenalleous configure options
7821 # -------------------------------
7823 # Determine whether or not multilibs are enabled.
7824 # Check whether --enable-multilib was given.
7825 if test "${enable_multilib+set}" = set; then :
7826 enableval=$enable_multilib;
7827 else
7828 enable_multilib=yes
7833 # Determine whether or not multiarch is enabled.
7834 # Check whether --enable-multiarch was given.
7835 if test "${enable_multiarch+set}" = set; then :
7836 enableval=$enable_multiarch; case "${enableval}" in
7837 yes|no|auto) enable_multiarch=$enableval;;
7838 *) as_fn_error $? "bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
7839 esac
7840 else
7841 enable_multiarch=auto
7844 if test x${enable_multiarch} = xauto; then
7845 if test x${with_native_system_header_dir} != x; then
7846 ma_msg_suffix=", disabled auto check (configured with --native-system-header-dir)"
7847 enable_multiarch=no
7849 if test x$host != x$target && test "x$with_sysroot" = x; then
7850 ma_msg_suffix=", disabled auto check (cross build configured without --with-sysroot)"
7851 enable_multiarch=no
7854 if test x${enable_multiarch} = xyes; then
7856 $as_echo "#define ENABLE_MULTIARCH 1" >>confdefs.h
7859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
7860 $as_echo_n "checking for multiarch configuration... " >&6; }
7862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
7863 $as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
7865 # needed for setting the multiarch name for soft-float/hard-float ABIs
7869 # default stack clash protection guard size as power of twos in bytes.
7870 # Please keep these in sync with params.def.
7871 stk_clash_min=12
7872 stk_clash_max=30
7874 # Keep the default value when the option is not used to 0, this allows us to
7875 # distinguish between the cases where the user specifially set a value via
7876 # configure and when the normal default value is used.
7878 # Check whether --with-stack-clash-protection-guard-size was given.
7879 if test "${with_stack_clash_protection_guard_size+set}" = set; then :
7880 withval=$with_stack_clash_protection_guard_size; DEFAULT_STK_CLASH_GUARD_SIZE="$with_stack_clash_protection_guard_size"
7881 else
7882 DEFAULT_STK_CLASH_GUARD_SIZE=0
7885 if test $DEFAULT_STK_CLASH_GUARD_SIZE -ne 0 \
7886 && (test $DEFAULT_STK_CLASH_GUARD_SIZE -lt $stk_clash_min \
7887 || test $DEFAULT_STK_CLASH_GUARD_SIZE -gt $stk_clash_max); then
7888 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
7892 cat >>confdefs.h <<_ACEOF
7893 #define DEFAULT_STK_CLASH_GUARD_SIZE $DEFAULT_STK_CLASH_GUARD_SIZE
7894 _ACEOF
7897 # Specify the number of splits of match.pd to generate.
7899 # Check whether --with-matchpd-partitions was given.
7900 if test "${with_matchpd_partitions+set}" = set; then :
7901 withval=$with_matchpd_partitions; DEFAULT_MATCHPD_PARTITIONS="$with_matchpd_partitions"
7902 else
7903 DEFAULT_MATCHPD_PARTITIONS=10
7906 if (test $DEFAULT_MATCHPD_PARTITIONS -lt 1); then
7907 as_fn_error $? "Invalid value $DEFAULT_MATCHPD_PARTITIONS for --with-matchpd-partitions. Cannot be negative." "$LINENO" 5
7911 cat >>confdefs.h <<_ACEOF
7912 #define DEFAULT_MATCHPD_PARTITIONS $DEFAULT_MATCHPD_PARTITIONS
7913 _ACEOF
7917 # Enable __cxa_atexit for C++.
7918 # Check whether --enable-__cxa_atexit was given.
7919 if test "${enable___cxa_atexit+set}" = set; then :
7920 enableval=$enable___cxa_atexit;
7924 # Enable C extension for decimal float if target supports it.
7926 # Check whether --enable-decimal-float was given.
7927 if test "${enable_decimal_float+set}" = set; then :
7928 enableval=$enable_decimal_float;
7929 case $enable_decimal_float in
7930 yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
7931 *) as_fn_error $? "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7932 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7933 esac
7935 else
7937 case $target in
7938 aarch64* | \
7939 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
7940 i?86*-*-elfiamcu | i?86*-*-gnu* | x86_64*-*-gnu* | \
7941 i?86*-*-mingw* | x86_64*-*-mingw* | \
7942 i?86*-*-cygwin* | x86_64*-*-cygwin*)
7943 enable_decimal_float=yes
7946 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7947 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7948 enable_decimal_float=no
7950 esac
7955 # x86's use BID format instead of DPD
7956 case x$enable_decimal_float in
7957 xyes)
7958 case $target in
7959 aarch64* | i?86*-*-* | x86_64*-*-*)
7960 enable_decimal_float=bid
7963 enable_decimal_float=dpd
7965 esac
7966 default_decimal_float=$enable_decimal_float
7968 xno)
7969 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7970 # dependency on libdecnumber.
7971 default_decimal_float=dpd
7973 esac
7978 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7980 cat >>confdefs.h <<_ACEOF
7981 #define ENABLE_DECIMAL_FLOAT $dfp
7982 _ACEOF
7985 # Use default_decimal_float for dependency.
7986 enable_decimal_float=$default_decimal_float
7988 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7990 cat >>confdefs.h <<_ACEOF
7991 #define ENABLE_DECIMAL_BID_FORMAT $bid
7992 _ACEOF
7995 # Enable C extension for fixed-point arithmetic.
7996 # Check whether --enable-fixed-point was given.
7997 if test "${enable_fixed_point+set}" = set; then :
7998 enableval=$enable_fixed_point;
7999 else
8001 case $target in
8002 arm*)
8003 enable_fixed_point=yes
8006 mips*-*-*)
8007 enable_fixed_point=yes
8009 loongarch*-*-*)
8010 enable_fixed_point=yes
8013 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
8014 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
8015 enable_fixed_point=no
8017 esac
8023 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
8025 cat >>confdefs.h <<_ACEOF
8026 #define ENABLE_FIXED_POINT $fixedpoint
8027 _ACEOF
8030 # Enable threads
8031 # Pass with no value to take the default
8032 # Pass with a value to specify a thread package
8033 # Check whether --enable-threads was given.
8034 if test "${enable_threads+set}" = set; then :
8035 enableval=$enable_threads;
8036 else
8037 enable_threads=''
8041 # Check whether --enable-tls was given.
8042 if test "${enable_tls+set}" = set; then :
8043 enableval=$enable_tls;
8044 case $enable_tls in
8045 yes | no) ;;
8046 *) as_fn_error $? "'$enable_tls' is an invalid value for --enable-tls.
8047 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
8048 esac
8050 else
8051 enable_tls=''
8055 # Check whether --enable-vtable-verify was given.
8056 if test "${enable_vtable_verify+set}" = set; then :
8057 enableval=$enable_vtable_verify;
8058 else
8059 enable_vtable_verify=no
8062 vtable_verify=`if test x$enable_vtable_verify = xyes; then echo 1; else echo 0; fi`
8064 cat >>confdefs.h <<_ACEOF
8065 #define ENABLE_VTABLE_VERIFY $vtable_verify
8066 _ACEOF
8069 # Check whether --enable-analyzer was given.
8070 if test "${enable_analyzer+set}" = set; then :
8071 enableval=$enable_analyzer; if test x$enable_analyzer = xno; then
8072 analyzer=0
8073 else
8074 analyzer=1
8076 else
8077 analyzer=1
8081 cat >>confdefs.h <<_ACEOF
8082 #define ENABLE_ANALYZER $analyzer
8083 _ACEOF
8086 # Check whether --enable-objc-gc was given.
8087 if test "${enable_objc_gc+set}" = set; then :
8088 enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
8089 objc_boehm_gc=''
8090 else
8091 objc_boehm_gc=1
8093 else
8094 objc_boehm_gc=''
8099 # Check whether --with-dwarf2 was given.
8100 if test "${with_dwarf2+set}" = set; then :
8101 withval=$with_dwarf2; dwarf2="$with_dwarf2"
8102 else
8103 dwarf2=no
8107 # Check whether --enable-shared was given.
8108 if test "${enable_shared+set}" = set; then :
8109 enableval=$enable_shared;
8110 case $enable_shared in
8111 yes | no) ;;
8113 enable_shared=no
8114 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
8115 for pkg in $enableval; do
8116 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
8117 enable_shared=yes
8119 done
8120 IFS="$ac_save_ifs"
8122 esac
8124 else
8125 enable_shared=yes
8130 # Check whether --enable-gcov was given.
8131 if test "${enable_gcov+set}" = set; then :
8132 enableval=$enable_gcov;
8133 else
8134 case $target in
8135 bpf-*-*)
8136 enable_gcov=no
8139 enable_gcov=yes
8141 esac
8148 # Check whether --with-specs was given.
8149 if test "${with_specs+set}" = set; then :
8150 withval=$with_specs; CONFIGURE_SPECS=$withval
8151 else
8152 CONFIGURE_SPECS=
8160 # Check whether --with-pkgversion was given.
8161 if test "${with_pkgversion+set}" = set; then :
8162 withval=$with_pkgversion; case "$withval" in
8163 yes) as_fn_error $? "package version not specified" "$LINENO" 5 ;;
8164 no) PKGVERSION= ;;
8165 *) PKGVERSION="($withval) " ;;
8166 esac
8167 else
8168 PKGVERSION="(GCC) "
8176 # Check whether --with-bugurl was given.
8177 if test "${with_bugurl+set}" = set; then :
8178 withval=$with_bugurl; case "$withval" in
8179 yes) as_fn_error $? "bug URL not specified" "$LINENO" 5 ;;
8180 no) BUGURL=
8182 *) BUGURL="$withval"
8184 esac
8185 else
8186 BUGURL="https://gcc.gnu.org/bugs/"
8190 case ${BUGURL} in
8192 REPORT_BUGS_TO=
8193 REPORT_BUGS_TEXI=
8196 REPORT_BUGS_TO="<$BUGURL>"
8197 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
8199 esac;
8204 # Allow overriding the default URL for documentation
8206 # Check whether --with-documentation-root-url was given.
8207 if test "${with_documentation_root_url+set}" = set; then :
8208 withval=$with_documentation_root_url; case "$withval" in
8209 yes) as_fn_error $? "documentation root URL not specified" "$LINENO" 5 ;;
8210 no) as_fn_error $? "documentation root URL not specified" "$LINENO" 5 ;;
8211 */) DOCUMENTATION_ROOT_URL="$withval" ;;
8212 *) as_fn_error $? "documentation root URL does not end with /" "$LINENO" 5 ;;
8213 esac
8214 else
8215 DOCUMENTATION_ROOT_URL="https://gcc.gnu.org/onlinedocs/"
8220 cat >>confdefs.h <<_ACEOF
8221 #define DOCUMENTATION_ROOT_URL "$DOCUMENTATION_ROOT_URL"
8222 _ACEOF
8225 # Allow overriding the default URL for GCC changes
8227 # Check whether --with-changes-root-url was given.
8228 if test "${with_changes_root_url+set}" = set; then :
8229 withval=$with_changes_root_url; case "$withval" in
8230 yes) as_fn_error $? "changes root URL not specified" "$LINENO" 5 ;;
8231 no) as_fn_error $? "changes root URL not specified" "$LINENO" 5 ;;
8232 */) CHANGES_ROOT_URL="$withval" ;;
8233 *) as_fn_error $? "changes root URL does not end with /" "$LINENO" 5 ;;
8234 esac
8235 else
8236 CHANGES_ROOT_URL="https://gcc.gnu.org/"
8241 cat >>confdefs.h <<_ACEOF
8242 #define CHANGES_ROOT_URL "$CHANGES_ROOT_URL"
8243 _ACEOF
8246 # Sanity check enable_languages in case someone does not run the toplevel
8247 # configure # script.
8248 # Check whether --enable-languages was given.
8249 if test "${enable_languages+set}" = set; then :
8250 enableval=$enable_languages; case ,${enable_languages}, in
8251 ,,|,yes,)
8252 # go safe -- we cannot be much sure without the toplevel
8253 # configure's
8254 # analysis of which target libs are present and usable
8255 enable_languages=c
8257 *,all,*)
8258 as_fn_error $? "only the toplevel supports --enable-languages=all" "$LINENO" 5
8260 *,c,*)
8263 enable_languages=c,${enable_languages}
8265 esac
8266 else
8267 enable_languages=c
8271 # If top-level libada has been disabled, then wire in install-gnatlib
8272 # invocation with `make install', so that one can build and install
8273 # the library manually with `make -C gcc all gnatlib gnattools install'.
8274 if test x"$enable_libada" = xno; then
8275 gnat_install_lib=gnat-install-lib
8276 else
8277 gnat_install_lib=
8281 if test x"$enable_as_accelerator_for" != x; then
8283 $as_echo "#define ACCEL_COMPILER 1" >>confdefs.h
8285 enable_as_accelerator=yes
8286 sedscript="s#${target_noncanonical}#${enable_as_accelerator_for}-accel-${target_noncanonical}#"
8287 program_transform_name=`echo $program_transform_name | sed $sedscript`
8288 accel_dir_suffix=/accel/${target_noncanonical}
8289 real_target_noncanonical=${enable_as_accelerator_for}
8295 for tgt in `echo $enable_offload_targets | sed 's/,/ /g'`; do
8296 tgt=`echo $tgt | sed 's/=.*//'`
8298 enable_offloading=1
8299 case "$tgt" in
8300 amdgcn*)
8301 omp_device_property=omp-device-properties-gcn
8302 omp_device_property_tmake_file="${omp_device_property_tmake_file} \$(srcdir)/config/gcn/t-omp-device"
8304 nvptx*)
8305 omp_device_property=omp-device-properties-nvptx
8306 omp_device_property_tmake_file="${omp_device_property_tmake_file} \$(srcdir)/config/nvptx/t-omp-device"
8309 as_fn_error $? "unknown offload target specified" "$LINENO" 5
8311 esac
8312 omp_device_properties="${omp_device_properties} ${tgt}=${omp_device_property}"
8313 omp_device_property_deps="${omp_device_property_deps} ${omp_device_property}"
8315 if test x"$offload_targets" = x; then
8316 offload_targets=$tgt
8317 else
8318 offload_targets="$offload_targets,$tgt"
8320 done
8325 cat >>confdefs.h <<_ACEOF
8326 #define OFFLOAD_TARGETS "$offload_targets"
8327 _ACEOF
8329 if test x"$enable_offloading" != x; then
8331 $as_echo "#define ENABLE_OFFLOADING 1" >>confdefs.h
8333 else
8335 $as_echo "#define ENABLE_OFFLOADING 0" >>confdefs.h
8339 if test "x$enable_offload_defaulted" = xyes; then
8341 $as_echo "#define OFFLOAD_DEFAULTED 1" >>confdefs.h
8346 # Check whether --with-multilib-list was given.
8347 if test "${with_multilib_list+set}" = set; then :
8348 withval=$with_multilib_list; :
8349 else
8350 with_multilib_list=default
8355 # Check whether --with-multilib-generator was given.
8356 if test "${with_multilib_generator+set}" = set; then :
8357 withval=$with_multilib_generator; :
8358 else
8359 with_multilib_generator=default
8363 # -------------------------
8364 # Checks for other programs
8365 # -------------------------
8367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8368 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8369 set x ${MAKE-make}
8370 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8371 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
8372 $as_echo_n "(cached) " >&6
8373 else
8374 cat >conftest.make <<\_ACEOF
8375 SHELL = /bin/sh
8376 all:
8377 @echo '@@@%%%=$(MAKE)=@@@%%%'
8378 _ACEOF
8379 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
8380 case `${MAKE-make} -f conftest.make 2>/dev/null` in
8381 *@@@%%%=?*=@@@%%%*)
8382 eval ac_cv_prog_make_${ac_make}_set=yes;;
8384 eval ac_cv_prog_make_${ac_make}_set=no;;
8385 esac
8386 rm -f conftest.make
8388 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8390 $as_echo "yes" >&6; }
8391 SET_MAKE=
8392 else
8393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8394 $as_echo "no" >&6; }
8395 SET_MAKE="MAKE=${MAKE-make}"
8399 # Find some useful tools
8400 for ac_prog in gawk mawk nawk awk
8402 # Extract the first word of "$ac_prog", so it can be a program name with args.
8403 set dummy $ac_prog; ac_word=$2
8404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8405 $as_echo_n "checking for $ac_word... " >&6; }
8406 if ${ac_cv_prog_AWK+:} false; then :
8407 $as_echo_n "(cached) " >&6
8408 else
8409 if test -n "$AWK"; then
8410 ac_cv_prog_AWK="$AWK" # Let the user override the test.
8411 else
8412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8413 for as_dir in $PATH
8415 IFS=$as_save_IFS
8416 test -z "$as_dir" && as_dir=.
8417 for ac_exec_ext in '' $ac_executable_extensions; do
8418 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8419 ac_cv_prog_AWK="$ac_prog"
8420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8421 break 2
8423 done
8424 done
8425 IFS=$as_save_IFS
8429 AWK=$ac_cv_prog_AWK
8430 if test -n "$AWK"; then
8431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8432 $as_echo "$AWK" >&6; }
8433 else
8434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8435 $as_echo "no" >&6; }
8439 test -n "$AWK" && break
8440 done
8442 # We need awk to create options.cc and options.h.
8443 # Bail out if it's missing.
8444 case ${AWK} in
8445 "") as_fn_error $? "can't build without awk, bailing out" "$LINENO" 5 ;;
8446 esac
8448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8449 $as_echo_n "checking whether ln -s works... " >&6; }
8450 if ${gcc_cv_prog_LN_S+:} false; then :
8451 $as_echo_n "(cached) " >&6
8452 else
8453 rm -f conftestdata_t
8454 echo >conftestdata_f
8455 if ln -s conftestdata_f conftestdata_t 2>/dev/null
8456 then
8457 gcc_cv_prog_LN_S="ln -s"
8458 else
8459 if ln conftestdata_f conftestdata_t 2>/dev/null
8460 then
8461 gcc_cv_prog_LN_S=ln
8462 else
8463 if cp -p conftestdata_f conftestdata_t 2>/dev/null
8464 then
8465 gcc_cv_prog_LN_S="cp -p"
8466 else
8467 gcc_cv_prog_LN_S=cp
8471 rm -f conftestdata_f conftestdata_t
8474 LN_S="$gcc_cv_prog_LN_S"
8475 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
8476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8477 $as_echo "yes" >&6; }
8478 else
8479 if test "$gcc_cv_prog_LN_S" = "ln"; then
8480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
8481 $as_echo "no, using ln" >&6; }
8482 else
8483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
8484 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
8488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
8489 $as_echo_n "checking whether ln works... " >&6; }
8490 if ${acx_cv_prog_LN+:} false; then :
8491 $as_echo_n "(cached) " >&6
8492 else
8493 rm -f conftestdata_t
8494 echo >conftestdata_f
8495 if ln conftestdata_f conftestdata_t 2>/dev/null
8496 then
8497 acx_cv_prog_LN=ln
8498 else
8499 acx_cv_prog_LN=no
8501 rm -f conftestdata_f conftestdata_t
8504 if test $acx_cv_prog_LN = no; then
8505 LN="$LN_S"
8506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
8507 $as_echo "no, using $LN" >&6; }
8508 else
8509 LN="$acx_cv_prog_LN"
8510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8511 $as_echo "yes" >&6; }
8514 if test -n "$ac_tool_prefix"; then
8515 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8516 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8518 $as_echo_n "checking for $ac_word... " >&6; }
8519 if ${ac_cv_prog_RANLIB+:} false; then :
8520 $as_echo_n "(cached) " >&6
8521 else
8522 if test -n "$RANLIB"; then
8523 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8524 else
8525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8526 for as_dir in $PATH
8528 IFS=$as_save_IFS
8529 test -z "$as_dir" && as_dir=.
8530 for ac_exec_ext in '' $ac_executable_extensions; do
8531 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8532 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8534 break 2
8536 done
8537 done
8538 IFS=$as_save_IFS
8542 RANLIB=$ac_cv_prog_RANLIB
8543 if test -n "$RANLIB"; then
8544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8545 $as_echo "$RANLIB" >&6; }
8546 else
8547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8548 $as_echo "no" >&6; }
8553 if test -z "$ac_cv_prog_RANLIB"; then
8554 ac_ct_RANLIB=$RANLIB
8555 # Extract the first word of "ranlib", so it can be a program name with args.
8556 set dummy ranlib; ac_word=$2
8557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8558 $as_echo_n "checking for $ac_word... " >&6; }
8559 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8560 $as_echo_n "(cached) " >&6
8561 else
8562 if test -n "$ac_ct_RANLIB"; then
8563 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8564 else
8565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8566 for as_dir in $PATH
8568 IFS=$as_save_IFS
8569 test -z "$as_dir" && as_dir=.
8570 for ac_exec_ext in '' $ac_executable_extensions; do
8571 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8572 ac_cv_prog_ac_ct_RANLIB="ranlib"
8573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8574 break 2
8576 done
8577 done
8578 IFS=$as_save_IFS
8582 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8583 if test -n "$ac_ct_RANLIB"; then
8584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8585 $as_echo "$ac_ct_RANLIB" >&6; }
8586 else
8587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8588 $as_echo "no" >&6; }
8591 if test "x$ac_ct_RANLIB" = x; then
8592 RANLIB=":"
8593 else
8594 case $cross_compiling:$ac_tool_warned in
8595 yes:)
8596 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8597 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8598 ac_tool_warned=yes ;;
8599 esac
8600 RANLIB=$ac_ct_RANLIB
8602 else
8603 RANLIB="$ac_cv_prog_RANLIB"
8606 ranlib_flags=""
8609 # Find a good install program. We prefer a C program (faster),
8610 # so one script is as good as another. But avoid the broken or
8611 # incompatible versions:
8612 # SysV /etc/install, /usr/sbin/install
8613 # SunOS /usr/etc/install
8614 # IRIX /sbin/install
8615 # AIX /bin/install
8616 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8617 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8618 # ./install, which can be erroneously created by make from ./install.sh.
8619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
8620 $as_echo_n "checking for a BSD compatible install... " >&6; }
8621 if test -z "$INSTALL"; then
8622 if ${ac_cv_path_install+:} false; then :
8623 $as_echo_n "(cached) " >&6
8624 else
8625 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
8626 for ac_dir in $PATH; do
8627 # Account for people who put trailing slashes in PATH elements.
8628 case "$ac_dir/" in
8629 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
8631 # OSF1 and SCO ODT 3.0 have their own names for install.
8632 for ac_prog in ginstall scoinst install; do
8633 if test -f $ac_dir/$ac_prog; then
8634 if test $ac_prog = install &&
8635 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
8636 # AIX install. It has an incompatible calling convention.
8637 # OSF/1 installbsd also uses dspmsg, but is usable.
8639 else
8640 ac_cv_path_install="$ac_dir/$ac_prog -c"
8641 break 2
8644 done
8646 esac
8647 done
8648 IFS="$ac_save_IFS"
8651 if test "${ac_cv_path_install+set}" = set; then
8652 INSTALL="$ac_cv_path_install"
8653 else
8654 # As a last resort, use the slow shell script. We don't cache a
8655 # path for INSTALL within a source directory, because that will
8656 # break other packages using the cache if that directory is
8657 # removed, or if the path is relative.
8658 INSTALL="$ac_install_sh"
8661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
8662 $as_echo "$INSTALL" >&6; }
8664 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8665 # It thinks the first close brace ends the variable substitution.
8666 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8668 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8671 # See if cmp has --ignore-initial.
8672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
8673 $as_echo_n "checking for cmp's capabilities... " >&6; }
8674 if ${gcc_cv_prog_cmp_skip+:} false; then :
8675 $as_echo_n "(cached) " >&6
8676 else
8677 echo abfoo >t1
8678 echo cdfoo >t2
8679 gcc_cv_prog_cmp_skip=slowcompare
8680 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
8681 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
8683 else
8684 gcc_cv_prog_cmp_skip=gnucompare
8687 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
8688 if cmp t1 t2 2 2 > /dev/null 2>&1; then
8689 if cmp t1 t2 1 1 > /dev/null 2>&1; then
8691 else
8692 gcc_cv_prog_cmp_skip=fastcompare
8696 rm t1 t2
8699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
8700 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
8701 make_compare_target=$gcc_cv_prog_cmp_skip
8705 # See if we have the mktemp command.
8706 # Extract the first word of "mktemp", so it can be a program name with args.
8707 set dummy mktemp; ac_word=$2
8708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8709 $as_echo_n "checking for $ac_word... " >&6; }
8710 if ${ac_cv_prog_have_mktemp_command+:} false; then :
8711 $as_echo_n "(cached) " >&6
8712 else
8713 if test -n "$have_mktemp_command"; then
8714 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
8715 else
8716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8717 for as_dir in $PATH
8719 IFS=$as_save_IFS
8720 test -z "$as_dir" && as_dir=.
8721 for ac_exec_ext in '' $ac_executable_extensions; do
8722 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8723 ac_cv_prog_have_mktemp_command="yes"
8724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8725 break 2
8727 done
8728 done
8729 IFS=$as_save_IFS
8731 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
8734 have_mktemp_command=$ac_cv_prog_have_mktemp_command
8735 if test -n "$have_mktemp_command"; then
8736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
8737 $as_echo "$have_mktemp_command" >&6; }
8738 else
8739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8740 $as_echo "no" >&6; }
8745 # See if makeinfo has been installed and is modern enough
8746 # that we can use it.
8748 # Extract the first word of "makeinfo", so it can be a program name with args.
8749 set dummy makeinfo; ac_word=$2
8750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8751 $as_echo_n "checking for $ac_word... " >&6; }
8752 if ${ac_cv_prog_MAKEINFO+:} false; then :
8753 $as_echo_n "(cached) " >&6
8754 else
8755 if test -n "$MAKEINFO"; then
8756 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
8757 else
8758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8759 for as_dir in $PATH
8761 IFS=$as_save_IFS
8762 test -z "$as_dir" && as_dir=.
8763 for ac_exec_ext in '' $ac_executable_extensions; do
8764 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8765 ac_cv_prog_MAKEINFO="makeinfo"
8766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8767 break 2
8769 done
8770 done
8771 IFS=$as_save_IFS
8775 MAKEINFO=$ac_cv_prog_MAKEINFO
8776 if test -n "$MAKEINFO"; then
8777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8778 $as_echo "$MAKEINFO" >&6; }
8779 else
8780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8781 $as_echo "no" >&6; }
8785 if test -n "$MAKEINFO"; then
8786 # Found it, now check the version.
8787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
8788 $as_echo_n "checking for modern makeinfo... " >&6; }
8789 if ${gcc_cv_prog_makeinfo_modern+:} false; then :
8790 $as_echo_n "(cached) " >&6
8791 else
8792 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
8793 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
8795 case $ac_prog_version in
8796 '') gcc_cv_prog_makeinfo_modern=no;;
8797 4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
8798 *) gcc_cv_prog_makeinfo_modern=no;;
8799 esac
8802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
8803 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
8804 else
8805 gcc_cv_prog_makeinfo_modern=no
8807 if test $gcc_cv_prog_makeinfo_modern = no; then
8808 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
8811 if test $gcc_cv_prog_makeinfo_modern = no; then
8812 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8813 *** Makeinfo is missing or too old.
8814 *** Info documentation will not be built." >&5
8815 $as_echo "$as_me: WARNING:
8816 *** Makeinfo is missing or too old.
8817 *** Info documentation will not be built." >&2;}
8818 BUILD_INFO=
8819 else
8820 BUILD_INFO=info
8824 # Determine whether makeinfo supports the CONTENTS_OUTPUT_LOCATION variable.
8825 # If it does, we want to pass it to makeinfo in order to restore the old
8826 # behavior of @{summary,}contents placement.
8827 MAKEINFO_TOC_INLINE_FLAG=
8828 if test x"$MAKEINFO" != x; then :
8830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CONTENTS_OUTPUT_LOCATION support in $MAKEINFO" >&5
8831 $as_echo_n "checking for CONTENTS_OUTPUT_LOCATION support in $MAKEINFO... " >&6; }
8832 if ${gcc_cv_texi_add_toc_inline_flags+:} false; then :
8833 $as_echo_n "(cached) " >&6
8834 else
8836 # Detect the unknown variable CONTENTS_OUTPUT_LOCATION warning
8837 if "$MAKEINFO" -c CONTENTS_OUTPUT_LOCATION=inline </dev/null 2>&1 \
8838 | grep CONTENTS_OUTPUT_LOCATION >/dev/null; then
8839 gcc_cv_texi_add_toc_inline_flags=no
8840 else
8841 gcc_cv_texi_add_toc_inline_flags=yes
8845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_texi_add_toc_inline_flags" >&5
8846 $as_echo "$gcc_cv_texi_add_toc_inline_flags" >&6; }
8847 if test x"$gcc_cv_texi_add_toc_inline_flags" = xyes; then
8848 MAKEINFO_TOC_INLINE_FLAG='-c CONTENTS_OUTPUT_LOCATION=inline'
8854 # Is pod2man recent enough to regenerate manpages?
8855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
8856 $as_echo_n "checking for recent Pod::Man... " >&6; }
8857 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
8858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8859 $as_echo "yes" >&6; }
8860 GENERATED_MANPAGES=generated-manpages
8861 else
8862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8863 $as_echo "no" >&6; }
8864 GENERATED_MANPAGES=
8868 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
8870 # How about lex?
8871 for ac_prog in flex
8873 # Extract the first word of "$ac_prog", so it can be a program name with args.
8874 set dummy $ac_prog; ac_word=$2
8875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8876 $as_echo_n "checking for $ac_word... " >&6; }
8877 if ${ac_cv_prog_FLEX+:} false; then :
8878 $as_echo_n "(cached) " >&6
8879 else
8880 if test -n "$FLEX"; then
8881 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
8882 else
8883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8884 for as_dir in $PATH
8886 IFS=$as_save_IFS
8887 test -z "$as_dir" && as_dir=.
8888 for ac_exec_ext in '' $ac_executable_extensions; do
8889 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8890 ac_cv_prog_FLEX="$ac_prog"
8891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8892 break 2
8894 done
8895 done
8896 IFS=$as_save_IFS
8900 FLEX=$ac_cv_prog_FLEX
8901 if test -n "$FLEX"; then
8902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
8903 $as_echo "$FLEX" >&6; }
8904 else
8905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8906 $as_echo "no" >&6; }
8910 test -n "$FLEX" && break
8911 done
8912 test -n "$FLEX" || FLEX="$MISSING flex"
8915 # Bison?
8916 for ac_prog in bison
8918 # Extract the first word of "$ac_prog", so it can be a program name with args.
8919 set dummy $ac_prog; ac_word=$2
8920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8921 $as_echo_n "checking for $ac_word... " >&6; }
8922 if ${ac_cv_prog_BISON+:} false; then :
8923 $as_echo_n "(cached) " >&6
8924 else
8925 if test -n "$BISON"; then
8926 ac_cv_prog_BISON="$BISON" # Let the user override the test.
8927 else
8928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8929 for as_dir in $PATH
8931 IFS=$as_save_IFS
8932 test -z "$as_dir" && as_dir=.
8933 for ac_exec_ext in '' $ac_executable_extensions; do
8934 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8935 ac_cv_prog_BISON="$ac_prog"
8936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8937 break 2
8939 done
8940 done
8941 IFS=$as_save_IFS
8945 BISON=$ac_cv_prog_BISON
8946 if test -n "$BISON"; then
8947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
8948 $as_echo "$BISON" >&6; }
8949 else
8950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8951 $as_echo "no" >&6; }
8955 test -n "$BISON" && break
8956 done
8957 test -n "$BISON" || BISON="$MISSING bison"
8960 # Python3?
8962 # Extract the first word of "python3", so it can be a program name with args.
8963 set dummy python3; ac_word=$2
8964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8965 $as_echo_n "checking for $ac_word... " >&6; }
8966 if ${ac_cv_prog_PYTHON+:} false; then :
8967 $as_echo_n "(cached) " >&6
8968 else
8969 if test -n "$PYTHON"; then
8970 ac_cv_prog_PYTHON="$PYTHON" # Let the user override the test.
8971 else
8972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8973 for as_dir in $PATH
8975 IFS=$as_save_IFS
8976 test -z "$as_dir" && as_dir=.
8977 for ac_exec_ext in '' $ac_executable_extensions; do
8978 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8979 ac_cv_prog_PYTHON="python3"
8980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8981 break 2
8983 done
8984 done
8985 IFS=$as_save_IFS
8989 PYTHON=$ac_cv_prog_PYTHON
8990 if test -n "$PYTHON"; then
8991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
8992 $as_echo "$PYTHON" >&6; }
8993 else
8994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8995 $as_echo "no" >&6; }
8999 if test -n "$PYTHON"; then
9000 # Found it, now check the version.
9001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern python3" >&5
9002 $as_echo_n "checking for modern python3... " >&6; }
9003 if ${gcc_cv_prog_python3_modern+:} false; then :
9004 $as_echo_n "(cached) " >&6
9005 else
9006 ac_prog_version=`eval $PYTHON --version 2>&1 |
9007 sed -n 's/^.*Python.* \([0-9][0-9.]*\).*$/\1/p'`
9009 case $ac_prog_version in
9010 '') gcc_cv_prog_python3_modern=no;;
9011 3.[4-9]*|3.[1-9][0-9]*|[4-9].*|[1-9][0-9]*) gcc_cv_prog_python3_modern=yes;;
9012 *) gcc_cv_prog_python3_modern=no;;
9013 esac
9016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_python3_modern" >&5
9017 $as_echo "$gcc_cv_prog_python3_modern" >&6; }
9018 else
9019 gcc_cv_prog_python3_modern=no
9021 if test $gcc_cv_prog_python3_modern = no; then
9022 PYTHON="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing python3"
9025 if test $gcc_cv_prog_python3_modern = no; then
9026 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
9027 *** Python3 is missing.
9028 *** Documentation for modula-2 will not include the target SYSTEM module." >&5
9029 $as_echo "$as_me: WARNING:
9030 *** Python3 is missing.
9031 *** Documentation for modula-2 will not include the target SYSTEM module." >&2;}
9032 HAVE_PYTHON=no
9033 else
9034 HAVE_PYTHON=yes
9038 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
9039 # check for build == host before using them.
9041 # NM
9042 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
9043 && test -d ../binutils ; then
9044 NM='${objdir}/../binutils/nm-new'
9045 else
9046 # Extract the first word of "nm", so it can be a program name with args.
9047 set dummy nm; ac_word=$2
9048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9049 $as_echo_n "checking for $ac_word... " >&6; }
9050 if ${ac_cv_prog_NM+:} false; then :
9051 $as_echo_n "(cached) " >&6
9052 else
9053 if test -n "$NM"; then
9054 ac_cv_prog_NM="$NM" # Let the user override the test.
9055 else
9056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9057 for as_dir in $PATH
9059 IFS=$as_save_IFS
9060 test -z "$as_dir" && as_dir=.
9061 for ac_exec_ext in '' $ac_executable_extensions; do
9062 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9063 ac_cv_prog_NM="nm"
9064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9065 break 2
9067 done
9068 done
9069 IFS=$as_save_IFS
9071 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
9074 NM=$ac_cv_prog_NM
9075 if test -n "$NM"; then
9076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
9077 $as_echo "$NM" >&6; }
9078 else
9079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9080 $as_echo "no" >&6; }
9086 # AR
9087 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
9088 && test -d ../binutils ; then
9089 AR='${objdir}/../binutils/ar'
9090 else
9091 # Extract the first word of "ar", so it can be a program name with args.
9092 set dummy ar; ac_word=$2
9093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9094 $as_echo_n "checking for $ac_word... " >&6; }
9095 if ${ac_cv_prog_AR+:} false; then :
9096 $as_echo_n "(cached) " >&6
9097 else
9098 if test -n "$AR"; then
9099 ac_cv_prog_AR="$AR" # Let the user override the test.
9100 else
9101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9102 for as_dir in $PATH
9104 IFS=$as_save_IFS
9105 test -z "$as_dir" && as_dir=.
9106 for ac_exec_ext in '' $ac_executable_extensions; do
9107 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9108 ac_cv_prog_AR="ar"
9109 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9110 break 2
9112 done
9113 done
9114 IFS=$as_save_IFS
9116 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
9119 AR=$ac_cv_prog_AR
9120 if test -n "$AR"; then
9121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
9122 $as_echo "$AR" >&6; }
9123 else
9124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9125 $as_echo "no" >&6; }
9131 # The jit documentation looks better if built with sphinx, but can be
9132 # built with texinfo if sphinx is not available.
9133 # Set "doc_build_sys" to "sphinx" or "texinfo" accordingly.
9134 # Extract the first word of "sphinx-build", so it can be a program name with args.
9135 set dummy sphinx-build; ac_word=$2
9136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9137 $as_echo_n "checking for $ac_word... " >&6; }
9138 if ${ac_cv_prog_doc_build_sys+:} false; then :
9139 $as_echo_n "(cached) " >&6
9140 else
9141 if test -n "$doc_build_sys"; then
9142 ac_cv_prog_doc_build_sys="$doc_build_sys" # Let the user override the test.
9143 else
9144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9145 for as_dir in $PATH
9147 IFS=$as_save_IFS
9148 test -z "$as_dir" && as_dir=.
9149 for ac_exec_ext in '' $ac_executable_extensions; do
9150 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9151 ac_cv_prog_doc_build_sys="sphinx"
9152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9153 break 2
9155 done
9156 done
9157 IFS=$as_save_IFS
9159 test -z "$ac_cv_prog_doc_build_sys" && ac_cv_prog_doc_build_sys="texinfo"
9162 doc_build_sys=$ac_cv_prog_doc_build_sys
9163 if test -n "$doc_build_sys"; then
9164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doc_build_sys" >&5
9165 $as_echo "$doc_build_sys" >&6; }
9166 else
9167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9168 $as_echo "no" >&6; }
9173 # --------------------
9174 # Checks for C headers
9175 # --------------------
9177 # Need to reject headers which give warnings, so that the -Werror bootstrap
9178 # works later. *sigh* This needs to come before all header checks.
9180 ac_c_preproc_warn_flag=yes
9182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
9183 $as_echo_n "checking for ANSI C header files... " >&6; }
9184 if ${ac_cv_header_stdc+:} false; then :
9185 $as_echo_n "(cached) " >&6
9186 else
9187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9188 /* end confdefs.h. */
9189 #include <stdlib.h>
9190 #include <stdarg.h>
9191 #include <string.h>
9192 #include <float.h>
9195 main ()
9199 return 0;
9201 _ACEOF
9202 if ac_fn_cxx_try_compile "$LINENO"; then :
9203 ac_cv_header_stdc=yes
9204 else
9205 ac_cv_header_stdc=no
9207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9209 if test $ac_cv_header_stdc = yes; then
9210 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9212 /* end confdefs.h. */
9213 #include <string.h>
9215 _ACEOF
9216 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9217 $EGREP "memchr" >/dev/null 2>&1; then :
9219 else
9220 ac_cv_header_stdc=no
9222 rm -f conftest*
9226 if test $ac_cv_header_stdc = yes; then
9227 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9229 /* end confdefs.h. */
9230 #include <stdlib.h>
9232 _ACEOF
9233 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9234 $EGREP "free" >/dev/null 2>&1; then :
9236 else
9237 ac_cv_header_stdc=no
9239 rm -f conftest*
9243 if test $ac_cv_header_stdc = yes; then
9244 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9245 if test "$cross_compiling" = yes; then :
9247 else
9248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9249 /* end confdefs.h. */
9250 #include <ctype.h>
9251 #include <stdlib.h>
9252 #if ((' ' & 0x0FF) == 0x020)
9253 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9254 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9255 #else
9256 # define ISLOWER(c) \
9257 (('a' <= (c) && (c) <= 'i') \
9258 || ('j' <= (c) && (c) <= 'r') \
9259 || ('s' <= (c) && (c) <= 'z'))
9260 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9261 #endif
9263 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9265 main ()
9267 int i;
9268 for (i = 0; i < 256; i++)
9269 if (XOR (islower (i), ISLOWER (i))
9270 || toupper (i) != TOUPPER (i))
9271 return 2;
9272 return 0;
9274 _ACEOF
9275 if ac_fn_cxx_try_run "$LINENO"; then :
9277 else
9278 ac_cv_header_stdc=no
9280 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9281 conftest.$ac_objext conftest.beam conftest.$ac_ext
9286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9287 $as_echo "$ac_cv_header_stdc" >&6; }
9288 if test $ac_cv_header_stdc = yes; then
9290 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
9295 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
9296 if ${ac_cv_header_time+:} false; then :
9297 $as_echo_n "(cached) " >&6
9298 else
9299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9300 /* end confdefs.h. */
9301 #include <sys/types.h>
9302 #include <sys/time.h>
9303 #include <time.h>
9306 main ()
9308 if ((struct tm *) 0)
9309 return 0;
9311 return 0;
9313 _ACEOF
9314 if ac_fn_cxx_try_compile "$LINENO"; then :
9315 ac_cv_header_time=yes
9316 else
9317 ac_cv_header_time=no
9319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
9322 $as_echo "$ac_cv_header_time" >&6; }
9323 if test $ac_cv_header_time = yes; then
9325 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
9329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
9330 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
9331 if ${gcc_cv_header_string+:} false; then :
9332 $as_echo_n "(cached) " >&6
9333 else
9334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9335 /* end confdefs.h. */
9336 #include <string.h>
9337 #include <strings.h>
9339 main ()
9343 return 0;
9345 _ACEOF
9346 if ac_fn_cxx_try_compile "$LINENO"; then :
9347 gcc_cv_header_string=yes
9348 else
9349 gcc_cv_header_string=no
9351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
9354 $as_echo "$gcc_cv_header_string" >&6; }
9355 if test $gcc_cv_header_string = yes; then
9357 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
9361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
9362 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
9363 if ${ac_cv_header_sys_wait_h+:} false; then :
9364 $as_echo_n "(cached) " >&6
9365 else
9366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9367 /* end confdefs.h. */
9368 #include <sys/types.h>
9369 #include <sys/wait.h>
9370 #ifndef WEXITSTATUS
9371 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
9372 #endif
9373 #ifndef WIFEXITED
9374 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9375 #endif
9378 main ()
9380 int s;
9381 wait (&s);
9382 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9384 return 0;
9386 _ACEOF
9387 if ac_fn_cxx_try_compile "$LINENO"; then :
9388 ac_cv_header_sys_wait_h=yes
9389 else
9390 ac_cv_header_sys_wait_h=no
9392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
9395 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
9396 if test $ac_cv_header_sys_wait_h = yes; then
9398 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
9402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
9403 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
9404 if ${ac_cv_sys_tiocgwinsz_in_termios_h+:} false; then :
9405 $as_echo_n "(cached) " >&6
9406 else
9407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9408 /* end confdefs.h. */
9409 #include <sys/types.h>
9410 #include <termios.h>
9411 #ifdef TIOCGWINSZ
9413 #endif
9415 _ACEOF
9416 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9417 $EGREP "yes" >/dev/null 2>&1; then :
9418 ac_cv_sys_tiocgwinsz_in_termios_h=yes
9419 else
9420 ac_cv_sys_tiocgwinsz_in_termios_h=no
9422 rm -f conftest*
9425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
9426 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
9428 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
9429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
9430 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
9431 if ${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+:} false; then :
9432 $as_echo_n "(cached) " >&6
9433 else
9434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9435 /* end confdefs.h. */
9436 #include <sys/types.h>
9437 #include <sys/ioctl.h>
9438 #ifdef TIOCGWINSZ
9440 #endif
9442 _ACEOF
9443 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9444 $EGREP "yes" >/dev/null 2>&1; then :
9445 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
9446 else
9447 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
9449 rm -f conftest*
9452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
9453 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
9455 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
9457 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
9462 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
9463 fcntl.h ftw.h unistd.h sys/auxv.h sys/file.h sys/time.h sys/mman.h \
9464 sys/resource.h sys/param.h sys/times.h sys/stat.h sys/locking.h \
9465 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
9466 do :
9467 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9468 ac_fn_cxx_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
9469 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9470 cat >>confdefs.h <<_ACEOF
9471 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9472 _ACEOF
9475 done
9478 # Check for thread headers.
9479 ac_fn_cxx_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
9480 if test "x$ac_cv_header_thread_h" = xyes; then :
9481 have_thread_h=yes
9482 else
9483 have_thread_h=
9486 ac_fn_cxx_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
9487 if test "x$ac_cv_header_pthread_h" = xyes; then :
9488 have_pthread_h=yes
9489 else
9490 have_pthread_h=
9494 # These tests can't be done till we know if we have limits.h.
9495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
9496 $as_echo_n "checking for CHAR_BIT... " >&6; }
9497 if ${gcc_cv_decl_char_bit+:} false; then :
9498 $as_echo_n "(cached) " >&6
9499 else
9500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9501 /* end confdefs.h. */
9502 #ifdef HAVE_LIMITS_H
9503 #include <limits.h>
9504 #endif
9505 #ifdef CHAR_BIT
9506 found
9507 #endif
9508 _ACEOF
9509 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9510 $EGREP "found" >/dev/null 2>&1; then :
9511 gcc_cv_decl_char_bit=yes
9512 else
9513 gcc_cv_decl_char_bit=no
9515 rm -f conftest*
9519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
9520 $as_echo "$gcc_cv_decl_char_bit" >&6; }
9521 if test $gcc_cv_decl_char_bit = no; then
9522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
9523 $as_echo_n "checking number of bits in a byte... " >&6; }
9524 if ${gcc_cv_c_nbby+:} false; then :
9525 $as_echo_n "(cached) " >&6
9526 else
9528 gcc_cv_c_nbby=
9529 while test $i -lt 65; do
9530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9531 /* end confdefs.h. */
9534 main ()
9536 switch(0) {
9537 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
9538 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
9541 return 0;
9543 _ACEOF
9544 if ac_fn_cxx_try_compile "$LINENO"; then :
9545 gcc_cv_c_nbby=$i; break
9547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9548 i=`expr $i + 1`
9549 done
9550 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
9553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
9554 $as_echo "$gcc_cv_c_nbby" >&6; }
9555 if test $gcc_cv_c_nbby = failed; then
9556 as_fn_error $? "cannot determine number of bits in a byte" "$LINENO" 5
9557 else
9559 cat >>confdefs.h <<_ACEOF
9560 #define CHAR_BIT $gcc_cv_c_nbby
9561 _ACEOF
9565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
9566 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
9567 if ${ac_cv_c_bigendian+:} false; then :
9568 $as_echo_n "(cached) " >&6
9569 else
9570 ac_cv_c_bigendian=unknown
9571 # See if we're dealing with a universal compiler.
9572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9573 /* end confdefs.h. */
9574 #ifndef __APPLE_CC__
9575 not a universal capable compiler
9576 #endif
9577 typedef int dummy;
9579 _ACEOF
9580 if ac_fn_cxx_try_compile "$LINENO"; then :
9582 # Check for potential -arch flags. It is not universal unless
9583 # there are at least two -arch flags with different values.
9584 ac_arch=
9585 ac_prev=
9586 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
9587 if test -n "$ac_prev"; then
9588 case $ac_word in
9589 i?86 | x86_64 | ppc | ppc64)
9590 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
9591 ac_arch=$ac_word
9592 else
9593 ac_cv_c_bigendian=universal
9594 break
9597 esac
9598 ac_prev=
9599 elif test "x$ac_word" = "x-arch"; then
9600 ac_prev=arch
9602 done
9604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9605 if test $ac_cv_c_bigendian = unknown; then
9606 # See if sys/param.h defines the BYTE_ORDER macro.
9607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9608 /* end confdefs.h. */
9609 #include <sys/types.h>
9610 #include <sys/param.h>
9613 main ()
9615 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
9616 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
9617 && LITTLE_ENDIAN)
9618 bogus endian macros
9619 #endif
9622 return 0;
9624 _ACEOF
9625 if ac_fn_cxx_try_compile "$LINENO"; then :
9626 # It does; now see whether it defined to BIG_ENDIAN or not.
9627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9628 /* end confdefs.h. */
9629 #include <sys/types.h>
9630 #include <sys/param.h>
9633 main ()
9635 #if BYTE_ORDER != BIG_ENDIAN
9636 not big endian
9637 #endif
9640 return 0;
9642 _ACEOF
9643 if ac_fn_cxx_try_compile "$LINENO"; then :
9644 ac_cv_c_bigendian=yes
9645 else
9646 ac_cv_c_bigendian=no
9648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9652 if test $ac_cv_c_bigendian = unknown; then
9653 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
9654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9655 /* end confdefs.h. */
9656 #include <limits.h>
9659 main ()
9661 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
9662 bogus endian macros
9663 #endif
9666 return 0;
9668 _ACEOF
9669 if ac_fn_cxx_try_compile "$LINENO"; then :
9670 # It does; now see whether it defined to _BIG_ENDIAN or not.
9671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9672 /* end confdefs.h. */
9673 #include <limits.h>
9676 main ()
9678 #ifndef _BIG_ENDIAN
9679 not big endian
9680 #endif
9683 return 0;
9685 _ACEOF
9686 if ac_fn_cxx_try_compile "$LINENO"; then :
9687 ac_cv_c_bigendian=yes
9688 else
9689 ac_cv_c_bigendian=no
9691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9695 if test $ac_cv_c_bigendian = unknown; then
9696 # Compile a test program.
9697 if test "$cross_compiling" = yes; then :
9698 # Try to guess by grepping values from an object file.
9699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9700 /* end confdefs.h. */
9701 short int ascii_mm[] =
9702 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9703 short int ascii_ii[] =
9704 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9705 int use_ascii (int i) {
9706 return ascii_mm[i] + ascii_ii[i];
9708 short int ebcdic_ii[] =
9709 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9710 short int ebcdic_mm[] =
9711 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9712 int use_ebcdic (int i) {
9713 return ebcdic_mm[i] + ebcdic_ii[i];
9715 extern int foo;
9718 main ()
9720 return use_ascii (foo) == use_ebcdic (foo);
9722 return 0;
9724 _ACEOF
9725 if ac_fn_cxx_try_compile "$LINENO"; then :
9726 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
9727 ac_cv_c_bigendian=yes
9729 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
9730 if test "$ac_cv_c_bigendian" = unknown; then
9731 ac_cv_c_bigendian=no
9732 else
9733 # finding both strings is unlikely to happen, but who knows?
9734 ac_cv_c_bigendian=unknown
9738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9739 else
9740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9741 /* end confdefs.h. */
9742 $ac_includes_default
9744 main ()
9747 /* Are we little or big endian? From Harbison&Steele. */
9748 union
9750 long int l;
9751 char c[sizeof (long int)];
9752 } u;
9753 u.l = 1;
9754 return u.c[sizeof (long int) - 1] == 1;
9757 return 0;
9759 _ACEOF
9760 if ac_fn_cxx_try_run "$LINENO"; then :
9761 ac_cv_c_bigendian=no
9762 else
9763 ac_cv_c_bigendian=yes
9765 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9766 conftest.$ac_objext conftest.beam conftest.$ac_ext
9771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9772 $as_echo "$ac_cv_c_bigendian" >&6; }
9773 case $ac_cv_c_bigendian in #(
9774 yes)
9775 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9776 ;; #(
9778 ;; #(
9779 universal)
9781 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9783 ;; #(
9785 as_fn_error $? "unknown endianness
9786 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9787 esac
9790 # ----------------------
9791 # Checks for C++ headers
9792 # ----------------------
9794 ac_ext=cpp
9795 ac_cpp='$CXXCPP $CPPFLAGS'
9796 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9797 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9798 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
9800 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
9801 if test -z "$CXXCPP"; then
9802 if ${ac_cv_prog_CXXCPP+:} false; then :
9803 $as_echo_n "(cached) " >&6
9804 else
9805 # Double quotes because CXXCPP needs to be expanded
9806 for CXXCPP in "$CXX -E" "/lib/cpp"
9808 ac_preproc_ok=false
9809 for ac_cxx_preproc_warn_flag in '' yes
9811 # Use a header file that comes with gcc, so configuring glibc
9812 # with a fresh cross-compiler works.
9813 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9814 # <limits.h> exists even on freestanding compilers.
9815 # On the NeXT, cc -E runs the code through the compiler's parser,
9816 # not just through cpp. "Syntax error" is here to catch this case.
9817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9818 /* end confdefs.h. */
9819 #ifdef __STDC__
9820 # include <limits.h>
9821 #else
9822 # include <assert.h>
9823 #endif
9824 Syntax error
9825 _ACEOF
9826 if ac_fn_cxx_try_cpp "$LINENO"; then :
9828 else
9829 # Broken: fails on valid input.
9830 continue
9832 rm -f conftest.err conftest.i conftest.$ac_ext
9834 # OK, works on sane cases. Now check whether nonexistent headers
9835 # can be detected and how.
9836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9837 /* end confdefs.h. */
9838 #include <ac_nonexistent.h>
9839 _ACEOF
9840 if ac_fn_cxx_try_cpp "$LINENO"; then :
9841 # Broken: success on invalid input.
9842 continue
9843 else
9844 # Passes both tests.
9845 ac_preproc_ok=:
9846 break
9848 rm -f conftest.err conftest.i conftest.$ac_ext
9850 done
9851 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9852 rm -f conftest.i conftest.err conftest.$ac_ext
9853 if $ac_preproc_ok; then :
9854 break
9857 done
9858 ac_cv_prog_CXXCPP=$CXXCPP
9861 CXXCPP=$ac_cv_prog_CXXCPP
9862 else
9863 ac_cv_prog_CXXCPP=$CXXCPP
9865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
9866 $as_echo "$CXXCPP" >&6; }
9867 ac_preproc_ok=false
9868 for ac_cxx_preproc_warn_flag in '' yes
9870 # Use a header file that comes with gcc, so configuring glibc
9871 # with a fresh cross-compiler works.
9872 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9873 # <limits.h> exists even on freestanding compilers.
9874 # On the NeXT, cc -E runs the code through the compiler's parser,
9875 # not just through cpp. "Syntax error" is here to catch this case.
9876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9877 /* end confdefs.h. */
9878 #ifdef __STDC__
9879 # include <limits.h>
9880 #else
9881 # include <assert.h>
9882 #endif
9883 Syntax error
9884 _ACEOF
9885 if ac_fn_cxx_try_cpp "$LINENO"; then :
9887 else
9888 # Broken: fails on valid input.
9889 continue
9891 rm -f conftest.err conftest.i conftest.$ac_ext
9893 # OK, works on sane cases. Now check whether nonexistent headers
9894 # can be detected and how.
9895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9896 /* end confdefs.h. */
9897 #include <ac_nonexistent.h>
9898 _ACEOF
9899 if ac_fn_cxx_try_cpp "$LINENO"; then :
9900 # Broken: success on invalid input.
9901 continue
9902 else
9903 # Passes both tests.
9904 ac_preproc_ok=:
9905 break
9907 rm -f conftest.err conftest.i conftest.$ac_ext
9909 done
9910 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9911 rm -f conftest.i conftest.err conftest.$ac_ext
9912 if $ac_preproc_ok; then :
9914 else
9915 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9916 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9917 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9918 See \`config.log' for more details" >&5
9919 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9920 See \`config.log' for more details" >&2;}; }
9923 ac_ext=cpp
9924 ac_cpp='$CXXCPP $CPPFLAGS'
9925 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9926 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9927 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9930 for ac_header in unordered_map
9931 do :
9932 ac_fn_cxx_check_header_preproc "$LINENO" "unordered_map" "ac_cv_header_unordered_map"
9933 if test "x$ac_cv_header_unordered_map" = xyes; then :
9934 cat >>confdefs.h <<_ACEOF
9935 #define HAVE_UNORDERED_MAP 1
9936 _ACEOF
9939 done
9941 for ac_header in tr1/unordered_map
9942 do :
9943 ac_fn_cxx_check_header_preproc "$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
9944 if test "x$ac_cv_header_tr1_unordered_map" = xyes; then :
9945 cat >>confdefs.h <<_ACEOF
9946 #define HAVE_TR1_UNORDERED_MAP 1
9947 _ACEOF
9950 done
9952 for ac_header in ext/hash_map
9953 do :
9954 ac_fn_cxx_check_header_preproc "$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
9955 if test "x$ac_cv_header_ext_hash_map" = xyes; then :
9956 cat >>confdefs.h <<_ACEOF
9957 #define HAVE_EXT_HASH_MAP 1
9958 _ACEOF
9961 done
9964 # --------
9965 # Dependency checking.
9966 # --------
9968 rm -rf .tst 2>/dev/null
9969 mkdir .tst 2>/dev/null
9970 if test -d .tst; then
9971 am__leading_dot=.
9972 else
9973 am__leading_dot=_
9975 rmdir .tst 2>/dev/null
9977 DEPDIR="${am__leading_dot}deps"
9979 ac_config_commands="$ac_config_commands depdir"
9982 ac_config_commands="$ac_config_commands gccdepdir"
9985 depcc="$CXX" am_compiler_list=
9987 am_depcomp=$ac_aux_dir/depcomp
9988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
9989 $as_echo_n "checking dependency style of $depcc... " >&6; }
9990 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
9991 $as_echo_n "(cached) " >&6
9992 else
9993 if test -f "$am_depcomp"; then
9994 # We make a subdir and do the tests there. Otherwise we can end up
9995 # making bogus files that we don't know about and never remove. For
9996 # instance it was reported that on HP-UX the gcc test will end up
9997 # making a dummy file named `D' -- because `-MD' means `put the output
9998 # in D'.
9999 mkdir conftest.dir
10000 # Copy depcomp to subdir because otherwise we won't find it if we're
10001 # using a relative directory.
10002 cp "$am_depcomp" conftest.dir
10003 cd conftest.dir
10004 # We will build objects and dependencies in a subdirectory because
10005 # it helps to detect inapplicable dependency modes. For instance
10006 # both Tru64's cc and ICC support -MD to output dependencies as a
10007 # side effect of compilation, but ICC will put the dependencies in
10008 # the current directory while Tru64 will put them in the object
10009 # directory.
10010 mkdir sub
10012 am_cv_CXX_dependencies_compiler_type=none
10013 if test "$am_compiler_list" = ""; then
10014 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
10016 for depmode in $am_compiler_list; do
10017 if test $depmode = none; then break; fi
10019 $as_echo "$as_me:$LINENO: trying $depmode" >&5
10020 # Setup a source with many dependencies, because some compilers
10021 # like to wrap large dependency lists on column 80 (with \), and
10022 # we should not choose a depcomp mode which is confused by this.
10024 # We need to recreate these files for each test, as the compiler may
10025 # overwrite some of them when testing with obscure command lines.
10026 # This happens at least with the AIX C compiler.
10027 : > sub/conftest.c
10028 for i in 1 2 3 4 5 6; do
10029 echo '#include "conftst'$i'.h"' >> sub/conftest.c
10030 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
10031 # Solaris 8's {/usr,}/bin/sh.
10032 touch sub/conftst$i.h
10033 done
10034 echo "include sub/conftest.Po" > confmf
10036 # We check with `-c' and `-o' for the sake of the "dashmstdout"
10037 # mode. It turns out that the SunPro C++ compiler does not properly
10038 # handle `-M -o', and we need to detect this.
10039 depcmd="depmode=$depmode \
10040 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
10041 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
10042 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
10043 echo "| $depcmd" | sed -e 's/ */ /g' >&5
10044 if env $depcmd > conftest.err 2>&1 &&
10045 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
10046 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
10047 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
10048 # icc doesn't choke on unknown options, it will just issue warnings
10049 # or remarks (even with -Werror). So we grep stderr for any message
10050 # that says an option was ignored or not supported.
10051 # When given -MP, icc 7.0 and 7.1 complain thusly:
10052 # icc: Command line warning: ignoring option '-M'; no argument required
10053 # The diagnosis changed in icc 8.0:
10054 # icc: Command line remark: option '-MP' not supported
10055 if (grep 'ignoring option' conftest.err ||
10056 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
10057 am_cv_CXX_dependencies_compiler_type=$depmode
10058 $as_echo "$as_me:$LINENO: success" >&5
10059 break
10062 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
10063 sed -e 's/^/| /' < conftest.err >&5
10064 done
10066 cd ..
10067 rm -rf conftest.dir
10068 else
10069 am_cv_CXX_dependencies_compiler_type=none
10073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
10074 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
10075 if test x${am_cv_CXX_dependencies_compiler_type-none} = xnone
10076 then as_fn_error $? "no usable dependency style found" "$LINENO" 5
10077 else CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
10082 # --------
10083 # UNSORTED
10084 # --------
10087 # These libraries may be used by collect2.
10088 # We may need a special search path to get them linked.
10089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
10090 $as_echo_n "checking for collect2 libraries... " >&6; }
10091 if ${gcc_cv_collect2_libs+:} false; then :
10092 $as_echo_n "(cached) " >&6
10093 else
10094 save_LIBS="$LIBS"
10095 for libs in '' -lld -lmld \
10096 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
10097 '-L/usr/lib/cmplrs/cc3.11 -lmld'
10099 LIBS="$libs"
10100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10101 /* end confdefs.h. */
10103 /* Override any GCC internal prototype to avoid an error.
10104 Use char because int might match the return type of a GCC
10105 builtin and then its argument prototype would still apply. */
10106 #ifdef __cplusplus
10107 extern "C"
10108 #endif
10109 char ldopen ();
10111 main ()
10113 return ldopen ();
10115 return 0;
10117 _ACEOF
10118 if ac_fn_cxx_try_link "$LINENO"; then :
10119 gcc_cv_collect2_libs="$libs"; break
10121 rm -f core conftest.err conftest.$ac_objext \
10122 conftest$ac_exeext conftest.$ac_ext
10123 done
10124 LIBS="$save_LIBS"
10125 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
10127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
10128 $as_echo "$gcc_cv_collect2_libs" >&6; }
10129 case $gcc_cv_collect2_libs in
10130 "none required") ;;
10131 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
10132 esac
10135 # When building Ada code on Alpha, we need exc_resume which is usually in
10136 # -lexc. So test for it.
10137 save_LIBS="$LIBS"
10138 LIBS=
10139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
10140 $as_echo_n "checking for library containing exc_resume... " >&6; }
10141 if ${ac_cv_search_exc_resume+:} false; then :
10142 $as_echo_n "(cached) " >&6
10143 else
10144 ac_func_search_save_LIBS=$LIBS
10145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10146 /* end confdefs.h. */
10148 /* Override any GCC internal prototype to avoid an error.
10149 Use char because int might match the return type of a GCC
10150 builtin and then its argument prototype would still apply. */
10151 #ifdef __cplusplus
10152 extern "C"
10153 #endif
10154 char exc_resume ();
10156 main ()
10158 return exc_resume ();
10160 return 0;
10162 _ACEOF
10163 for ac_lib in '' exc; do
10164 if test -z "$ac_lib"; then
10165 ac_res="none required"
10166 else
10167 ac_res=-l$ac_lib
10168 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10170 if ac_fn_cxx_try_link "$LINENO"; then :
10171 ac_cv_search_exc_resume=$ac_res
10173 rm -f core conftest.err conftest.$ac_objext \
10174 conftest$ac_exeext
10175 if ${ac_cv_search_exc_resume+:} false; then :
10176 break
10178 done
10179 if ${ac_cv_search_exc_resume+:} false; then :
10181 else
10182 ac_cv_search_exc_resume=no
10184 rm conftest.$ac_ext
10185 LIBS=$ac_func_search_save_LIBS
10187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
10188 $as_echo "$ac_cv_search_exc_resume" >&6; }
10189 ac_res=$ac_cv_search_exc_resume
10190 if test "$ac_res" != no; then :
10191 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10195 GNAT_LIBEXC="$LIBS"
10196 LIBS="$save_LIBS"
10199 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
10200 save_LIBS="$LIBS"
10201 LIBS=
10202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
10203 $as_echo_n "checking for library containing kstat_open... " >&6; }
10204 if ${ac_cv_search_kstat_open+:} false; then :
10205 $as_echo_n "(cached) " >&6
10206 else
10207 ac_func_search_save_LIBS=$LIBS
10208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10209 /* end confdefs.h. */
10211 /* Override any GCC internal prototype to avoid an error.
10212 Use char because int might match the return type of a GCC
10213 builtin and then its argument prototype would still apply. */
10214 #ifdef __cplusplus
10215 extern "C"
10216 #endif
10217 char kstat_open ();
10219 main ()
10221 return kstat_open ();
10223 return 0;
10225 _ACEOF
10226 for ac_lib in '' kstat; do
10227 if test -z "$ac_lib"; then
10228 ac_res="none required"
10229 else
10230 ac_res=-l$ac_lib
10231 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10233 if ac_fn_cxx_try_link "$LINENO"; then :
10234 ac_cv_search_kstat_open=$ac_res
10236 rm -f core conftest.err conftest.$ac_objext \
10237 conftest$ac_exeext
10238 if ${ac_cv_search_kstat_open+:} false; then :
10239 break
10241 done
10242 if ${ac_cv_search_kstat_open+:} false; then :
10244 else
10245 ac_cv_search_kstat_open=no
10247 rm conftest.$ac_ext
10248 LIBS=$ac_func_search_save_LIBS
10250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
10251 $as_echo "$ac_cv_search_kstat_open" >&6; }
10252 ac_res=$ac_cv_search_kstat_open
10253 if test "$ac_res" != no; then :
10254 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10258 EXTRA_GCC_LIBS="$LIBS"
10259 LIBS="$save_LIBS"
10262 # Solaris needs libsocket and libnsl for socket functions before 11.4.
10263 # C++ needs those for libcody.
10264 save_LIBS="$LIBS"
10265 LIBS=
10267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
10268 $as_echo_n "checking for library containing gethostbyname... " >&6; }
10269 if ${ac_cv_search_gethostbyname+:} false; then :
10270 $as_echo_n "(cached) " >&6
10271 else
10272 ac_func_search_save_LIBS=$LIBS
10273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10274 /* end confdefs.h. */
10276 /* Override any GCC internal prototype to avoid an error.
10277 Use char because int might match the return type of a GCC
10278 builtin and then its argument prototype would still apply. */
10279 #ifdef __cplusplus
10280 extern "C"
10281 #endif
10282 char gethostbyname ();
10284 main ()
10286 return gethostbyname ();
10288 return 0;
10290 _ACEOF
10291 for ac_lib in '' nsl; do
10292 if test -z "$ac_lib"; then
10293 ac_res="none required"
10294 else
10295 ac_res=-l$ac_lib
10296 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10298 if ac_fn_cxx_try_link "$LINENO"; then :
10299 ac_cv_search_gethostbyname=$ac_res
10301 rm -f core conftest.err conftest.$ac_objext \
10302 conftest$ac_exeext
10303 if ${ac_cv_search_gethostbyname+:} false; then :
10304 break
10306 done
10307 if ${ac_cv_search_gethostbyname+:} false; then :
10309 else
10310 ac_cv_search_gethostbyname=no
10312 rm conftest.$ac_ext
10313 LIBS=$ac_func_search_save_LIBS
10315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
10316 $as_echo "$ac_cv_search_gethostbyname" >&6; }
10317 ac_res=$ac_cv_search_gethostbyname
10318 if test "$ac_res" != no; then :
10319 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
10324 $as_echo_n "checking for library containing socket... " >&6; }
10325 if ${ac_cv_search_socket+:} false; then :
10326 $as_echo_n "(cached) " >&6
10327 else
10328 ac_func_search_save_LIBS=$LIBS
10329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10330 /* end confdefs.h. */
10332 /* Override any GCC internal prototype to avoid an error.
10333 Use char because int might match the return type of a GCC
10334 builtin and then its argument prototype would still apply. */
10335 #ifdef __cplusplus
10336 extern "C"
10337 #endif
10338 char socket ();
10340 main ()
10342 return socket ();
10344 return 0;
10346 _ACEOF
10347 for ac_lib in '' socket; do
10348 if test -z "$ac_lib"; then
10349 ac_res="none required"
10350 else
10351 ac_res=-l$ac_lib
10352 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10354 if ac_fn_cxx_try_link "$LINENO"; then :
10355 ac_cv_search_socket=$ac_res
10357 rm -f core conftest.err conftest.$ac_objext \
10358 conftest$ac_exeext
10359 if ${ac_cv_search_socket+:} false; then :
10360 break
10362 done
10363 if ${ac_cv_search_socket+:} false; then :
10365 else
10366 ac_cv_search_socket=no
10368 rm conftest.$ac_ext
10369 LIBS=$ac_func_search_save_LIBS
10371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
10372 $as_echo "$ac_cv_search_socket" >&6; }
10373 ac_res=$ac_cv_search_socket
10374 if test "$ac_res" != no; then :
10375 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10377 else
10379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
10380 $as_echo_n "checking for socket in -lsocket... " >&6; }
10381 if ${ac_cv_lib_socket_socket+:} false; then :
10382 $as_echo_n "(cached) " >&6
10383 else
10384 ac_check_lib_save_LIBS=$LIBS
10385 LIBS="-lsocket -lnsl $LIBS"
10386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10387 /* end confdefs.h. */
10389 /* Override any GCC internal prototype to avoid an error.
10390 Use char because int might match the return type of a GCC
10391 builtin and then its argument prototype would still apply. */
10392 #ifdef __cplusplus
10393 extern "C"
10394 #endif
10395 char socket ();
10397 main ()
10399 return socket ();
10401 return 0;
10403 _ACEOF
10404 if ac_fn_cxx_try_link "$LINENO"; then :
10405 ac_cv_lib_socket_socket=yes
10406 else
10407 ac_cv_lib_socket_socket=no
10409 rm -f core conftest.err conftest.$ac_objext \
10410 conftest$ac_exeext conftest.$ac_ext
10411 LIBS=$ac_check_lib_save_LIBS
10413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
10414 $as_echo "$ac_cv_lib_socket_socket" >&6; }
10415 if test "x$ac_cv_lib_socket_socket" = xyes; then :
10416 LIBS="-lsocket -lnsl $LIBS"
10422 NETLIBS="$LIBS"
10423 LIBS="$save_LIBS"
10426 # Some systems put ldexp and frexp in libm instead of libc; assume
10427 # they're both in the same place. jcf-dump needs them.
10428 save_LIBS="$LIBS"
10429 LIBS=
10430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
10431 $as_echo_n "checking for library containing ldexp... " >&6; }
10432 if ${ac_cv_search_ldexp+:} false; then :
10433 $as_echo_n "(cached) " >&6
10434 else
10435 ac_func_search_save_LIBS=$LIBS
10436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10437 /* end confdefs.h. */
10439 /* Override any GCC internal prototype to avoid an error.
10440 Use char because int might match the return type of a GCC
10441 builtin and then its argument prototype would still apply. */
10442 #ifdef __cplusplus
10443 extern "C"
10444 #endif
10445 char ldexp ();
10447 main ()
10449 return ldexp ();
10451 return 0;
10453 _ACEOF
10454 for ac_lib in '' m; do
10455 if test -z "$ac_lib"; then
10456 ac_res="none required"
10457 else
10458 ac_res=-l$ac_lib
10459 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10461 if ac_fn_cxx_try_link "$LINENO"; then :
10462 ac_cv_search_ldexp=$ac_res
10464 rm -f core conftest.err conftest.$ac_objext \
10465 conftest$ac_exeext
10466 if ${ac_cv_search_ldexp+:} false; then :
10467 break
10469 done
10470 if ${ac_cv_search_ldexp+:} false; then :
10472 else
10473 ac_cv_search_ldexp=no
10475 rm conftest.$ac_ext
10476 LIBS=$ac_func_search_save_LIBS
10478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
10479 $as_echo "$ac_cv_search_ldexp" >&6; }
10480 ac_res=$ac_cv_search_ldexp
10481 if test "$ac_res" != no; then :
10482 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10486 LDEXP_LIB="$LIBS"
10487 LIBS="$save_LIBS"
10490 # Some systems need dlopen
10491 save_LIBS="$LIBS"
10492 LIBS=
10493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
10494 $as_echo_n "checking for library containing dlopen... " >&6; }
10495 if ${ac_cv_search_dlopen+:} false; then :
10496 $as_echo_n "(cached) " >&6
10497 else
10498 ac_func_search_save_LIBS=$LIBS
10499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10500 /* end confdefs.h. */
10502 /* Override any GCC internal prototype to avoid an error.
10503 Use char because int might match the return type of a GCC
10504 builtin and then its argument prototype would still apply. */
10505 #ifdef __cplusplus
10506 extern "C"
10507 #endif
10508 char dlopen ();
10510 main ()
10512 return dlopen ();
10514 return 0;
10516 _ACEOF
10517 for ac_lib in '' dl; do
10518 if test -z "$ac_lib"; then
10519 ac_res="none required"
10520 else
10521 ac_res=-l$ac_lib
10522 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10524 if ac_fn_cxx_try_link "$LINENO"; then :
10525 ac_cv_search_dlopen=$ac_res
10527 rm -f core conftest.err conftest.$ac_objext \
10528 conftest$ac_exeext
10529 if ${ac_cv_search_dlopen+:} false; then :
10530 break
10532 done
10533 if ${ac_cv_search_dlopen+:} false; then :
10535 else
10536 ac_cv_search_dlopen=no
10538 rm conftest.$ac_ext
10539 LIBS=$ac_func_search_save_LIBS
10541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
10542 $as_echo "$ac_cv_search_dlopen" >&6; }
10543 ac_res=$ac_cv_search_dlopen
10544 if test "$ac_res" != no; then :
10545 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10549 DL_LIB="$LIBS"
10550 LIBS="$save_LIBS"
10553 # Use <inttypes.h> only if it exists,
10554 # doesn't clash with <sys/types.h>, declares intmax_t and defines
10555 # PRId64
10556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
10557 $as_echo_n "checking for inttypes.h... " >&6; }
10558 if ${gcc_cv_header_inttypes_h+:} false; then :
10559 $as_echo_n "(cached) " >&6
10560 else
10561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10562 /* end confdefs.h. */
10563 #define __STDC_FORMAT_MACROS
10564 #include <sys/types.h>
10565 #include <inttypes.h>
10567 main ()
10569 intmax_t i = -1;
10570 #ifndef PRId64
10571 choke me
10572 #endif
10574 return 0;
10576 _ACEOF
10577 if ac_fn_cxx_try_compile "$LINENO"; then :
10578 gcc_cv_header_inttypes_h=yes
10579 else
10580 gcc_cv_header_inttypes_h=no
10582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
10586 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
10587 if test $gcc_cv_header_inttypes_h = yes; then
10589 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
10593 # Look for the ZSTD package.
10594 ZSTD_INCLUDE=
10595 ZSTD_LIB=
10598 ZSTD_CPPFLAGS=
10599 ZSTD_LDFLAGS=
10603 # Check whether --with-zstd was given.
10604 if test "${with_zstd+set}" = set; then :
10605 withval=$with_zstd;
10609 # Check whether --with-zstd-include was given.
10610 if test "${with_zstd_include+set}" = set; then :
10611 withval=$with_zstd_include;
10615 # Check whether --with-zstd-lib was given.
10616 if test "${with_zstd_lib+set}" = set; then :
10617 withval=$with_zstd_lib;
10620 case "x$with_zstd" in
10621 x) ;;
10622 xno)
10623 ZSTD_INCLUDE=
10624 ZSTD_LIB=
10626 *) ZSTD_INCLUDE=$with_zstd/include
10627 ZSTD_LIB=$with_zstd/lib
10629 esac
10631 if test "x$with_zstd" != xno; then
10632 if test "x$with_zstd_include" != x; then
10633 ZSTD_INCLUDE=$with_zstd_include
10635 if test "x$with_zstd_lib" != x; then
10636 ZSTD_LIB=$with_zstd_lib
10638 if test "x$ZSTD_INCLUDE" != x \
10639 && test "x$ZSTD_INCLUDE" != xno; then
10640 ZSTD_CPPFLAGS=-I$ZSTD_INCLUDE
10642 if test "x$ZSTD_LIB" != x \
10643 && test "x$ZSTD_LIB" != xno; then
10644 ZSTD_LDFLAGS=-L$ZSTD_LIB
10647 CXXFLAGS="$CXXFLAGS $ZSTD_CPPFLAGS"
10648 LDFLAGS="$LDFLAGS $ZSTD_LDFLAGS"
10650 # LTO can use zstd compression algorithm
10651 save_LIBS="$LIBS"
10652 LIBS=
10653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ZSTD_compress" >&5
10654 $as_echo_n "checking for library containing ZSTD_compress... " >&6; }
10655 if ${ac_cv_search_ZSTD_compress+:} false; then :
10656 $as_echo_n "(cached) " >&6
10657 else
10658 ac_func_search_save_LIBS=$LIBS
10659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10660 /* end confdefs.h. */
10662 /* Override any GCC internal prototype to avoid an error.
10663 Use char because int might match the return type of a GCC
10664 builtin and then its argument prototype would still apply. */
10665 #ifdef __cplusplus
10666 extern "C"
10667 #endif
10668 char ZSTD_compress ();
10670 main ()
10672 return ZSTD_compress ();
10674 return 0;
10676 _ACEOF
10677 for ac_lib in '' zstd; do
10678 if test -z "$ac_lib"; then
10679 ac_res="none required"
10680 else
10681 ac_res=-l$ac_lib
10682 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10684 if ac_fn_cxx_try_link "$LINENO"; then :
10685 ac_cv_search_ZSTD_compress=$ac_res
10687 rm -f core conftest.err conftest.$ac_objext \
10688 conftest$ac_exeext
10689 if ${ac_cv_search_ZSTD_compress+:} false; then :
10690 break
10692 done
10693 if ${ac_cv_search_ZSTD_compress+:} false; then :
10695 else
10696 ac_cv_search_ZSTD_compress=no
10698 rm conftest.$ac_ext
10699 LIBS=$ac_func_search_save_LIBS
10701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ZSTD_compress" >&5
10702 $as_echo "$ac_cv_search_ZSTD_compress" >&6; }
10703 ac_res=$ac_cv_search_ZSTD_compress
10704 if test "$ac_res" != no; then :
10705 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10707 else
10708 gcc_cv_header_zstd_h=no
10711 ZSTD_LIB="$LIBS"
10712 LIBS="$save_LIBS"
10715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zstd.h" >&5
10716 $as_echo_n "checking for zstd.h... " >&6; }
10717 if ${gcc_cv_header_zstd_h+:} false; then :
10718 $as_echo_n "(cached) " >&6
10719 else
10720 # We require version 1.3.0 or later. This is the first version that has
10721 # ZSTD_getFrameContentSize.
10722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10723 /* end confdefs.h. */
10724 #include <zstd.h>
10725 #if ZSTD_VERSION_NUMBER < 10300
10726 #error "need zstd 1.3.0 or better"
10727 #endif
10729 main ()
10733 return 0;
10735 _ACEOF
10736 if ac_fn_cxx_try_compile "$LINENO"; then :
10737 gcc_cv_header_zstd_h=yes
10738 else
10739 gcc_cv_header_zstd_h=no
10741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_zstd_h" >&5
10745 $as_echo "$gcc_cv_header_zstd_h" >&6; }
10746 if test $gcc_cv_header_zstd_h = yes; then
10748 $as_echo "#define HAVE_ZSTD_H 1" >>confdefs.h
10750 elif test "x$with_zstd" != x; then
10751 as_fn_error $? "Unable to find zstd.h. See config.log for details." "$LINENO" 5
10757 for ac_func in times clock kill getrlimit setrlimit atoq \
10758 popen sysconf strsignal getrusage nl_langinfo \
10759 gettimeofday mbstowcs wcswidth mmap posix_fallocate setlocale \
10760 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
10761 do :
10762 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10763 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
10764 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10765 cat >>confdefs.h <<_ACEOF
10766 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10767 _ACEOF
10770 done
10773 if test x$ac_cv_func_mbstowcs = xyes; then
10774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
10775 $as_echo_n "checking whether mbstowcs works... " >&6; }
10776 if ${gcc_cv_func_mbstowcs_works+:} false; then :
10777 $as_echo_n "(cached) " >&6
10778 else
10779 if test "$cross_compiling" = yes; then :
10780 gcc_cv_func_mbstowcs_works=yes
10781 else
10782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10783 /* end confdefs.h. */
10784 #include <stdlib.h>
10785 int main()
10787 mbstowcs(0, "", 0);
10788 return 0;
10790 _ACEOF
10791 if ac_fn_cxx_try_run "$LINENO"; then :
10792 gcc_cv_func_mbstowcs_works=yes
10793 else
10794 gcc_cv_func_mbstowcs_works=no
10796 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10797 conftest.$ac_objext conftest.beam conftest.$ac_ext
10801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
10802 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
10803 if test x$gcc_cv_func_mbstowcs_works = xyes; then
10805 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
10810 ac_fn_cxx_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
10811 if test "x$ac_cv_type_ssize_t" = xyes; then :
10813 else
10815 cat >>confdefs.h <<_ACEOF
10816 #define ssize_t int
10817 _ACEOF
10821 ac_fn_cxx_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
10822 if test "x$ac_cv_type_caddr_t" = xyes; then :
10824 else
10826 cat >>confdefs.h <<_ACEOF
10827 #define caddr_t char *
10828 _ACEOF
10832 ac_fn_cxx_check_type "$LINENO" "sighander_t" "ac_cv_type_sighander_t" "signal.h
10834 if test "x$ac_cv_type_sighander_t" = xyes; then :
10836 $as_echo "#define HAVE_SIGHANDLER_T 1" >>confdefs.h
10842 ac_fn_cxx_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
10843 if test "x$ac_cv_header_sys_mman_h" = xyes; then :
10844 gcc_header_sys_mman_h=yes
10845 else
10846 gcc_header_sys_mman_h=no
10849 ac_fn_cxx_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
10850 if test "x$ac_cv_func_mmap" = xyes; then :
10851 gcc_func_mmap=yes
10852 else
10853 gcc_func_mmap=no
10856 if test "$gcc_header_sys_mman_h" != yes \
10857 || test "$gcc_func_mmap" != yes; then
10858 gcc_cv_func_mmap_file=no
10859 gcc_cv_func_mmap_dev_zero=no
10860 gcc_cv_func_mmap_anon=no
10861 else
10862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
10863 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
10864 if ${gcc_cv_func_mmap_file+:} false; then :
10865 $as_echo_n "(cached) " >&6
10866 else
10867 # Add a system to this blacklist if
10868 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
10869 # memory area containing the same data that you'd get if you applied
10870 # read() to the same fd. The only system known to have a problem here
10871 # is VMS, where text files have record structure.
10872 case "$host_os" in
10873 *vms* | ultrix*)
10874 gcc_cv_func_mmap_file=no ;;
10876 gcc_cv_func_mmap_file=yes;;
10877 esac
10879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
10880 $as_echo "$gcc_cv_func_mmap_file" >&6; }
10881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
10882 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
10883 if ${gcc_cv_func_mmap_dev_zero+:} false; then :
10884 $as_echo_n "(cached) " >&6
10885 else
10886 # Add a system to this blacklist if it has mmap() but /dev/zero
10887 # does not exist, or if mmapping /dev/zero does not give anonymous
10888 # zeroed pages with both the following properties:
10889 # 1. If you map N consecutive pages in with one call, and then
10890 # unmap any subset of those pages, the pages that were not
10891 # explicitly unmapped remain accessible.
10892 # 2. If you map two adjacent blocks of memory and then unmap them
10893 # both at once, they must both go away.
10894 # Systems known to be in this category are Windows (all variants),
10895 # VMS, and Darwin.
10896 case "$host_os" in
10897 *vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
10898 gcc_cv_func_mmap_dev_zero=no ;;
10900 gcc_cv_func_mmap_dev_zero=yes;;
10901 esac
10903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
10904 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
10906 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
10907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
10908 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
10909 if ${gcc_cv_decl_map_anon+:} false; then :
10910 $as_echo_n "(cached) " >&6
10911 else
10912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10913 /* end confdefs.h. */
10914 #include <sys/types.h>
10915 #include <sys/mman.h>
10916 #include <unistd.h>
10918 #ifndef MAP_ANONYMOUS
10919 #define MAP_ANONYMOUS MAP_ANON
10920 #endif
10923 main ()
10925 int n = MAP_ANONYMOUS;
10927 return 0;
10929 _ACEOF
10930 if ac_fn_cxx_try_compile "$LINENO"; then :
10931 gcc_cv_decl_map_anon=yes
10932 else
10933 gcc_cv_decl_map_anon=no
10935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
10938 $as_echo "$gcc_cv_decl_map_anon" >&6; }
10940 if test $gcc_cv_decl_map_anon = no; then
10941 gcc_cv_func_mmap_anon=no
10942 else
10943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
10944 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
10945 if ${gcc_cv_func_mmap_anon+:} false; then :
10946 $as_echo_n "(cached) " >&6
10947 else
10948 # Add a system to this blacklist if it has mmap() and MAP_ANON or
10949 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
10950 # doesn't give anonymous zeroed pages with the same properties listed
10951 # above for use of /dev/zero.
10952 # Systems known to be in this category are Windows, VMS, and SCO Unix.
10953 case "$host_os" in
10954 *vms* | cygwin* | pe | mingw* | sco* | udk* )
10955 gcc_cv_func_mmap_anon=no ;;
10957 gcc_cv_func_mmap_anon=yes;;
10958 esac
10960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
10961 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
10965 if test $gcc_cv_func_mmap_file = yes; then
10967 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
10970 if test $gcc_cv_func_mmap_dev_zero = yes; then
10972 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
10975 if test $gcc_cv_func_mmap_anon = yes; then
10977 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
10982 case "${host}" in
10983 *-*-*vms*)
10984 # Under VMS, vfork works very differently than on Unix. The standard test
10985 # won't work, and it isn't easily adaptable. It makes more sense to
10986 # just force it.
10987 ac_cv_func_vfork_works=yes
10989 esac
10990 ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
10991 if test "x$ac_cv_type_pid_t" = xyes; then :
10993 else
10995 cat >>confdefs.h <<_ACEOF
10996 #define pid_t int
10997 _ACEOF
11001 for ac_header in vfork.h
11002 do :
11003 ac_fn_cxx_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
11004 if test "x$ac_cv_header_vfork_h" = xyes; then :
11005 cat >>confdefs.h <<_ACEOF
11006 #define HAVE_VFORK_H 1
11007 _ACEOF
11010 done
11012 for ac_func in fork vfork
11013 do :
11014 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11015 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
11016 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11017 cat >>confdefs.h <<_ACEOF
11018 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11019 _ACEOF
11022 done
11024 if test "x$ac_cv_func_fork" = xyes; then
11025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
11026 $as_echo_n "checking for working fork... " >&6; }
11027 if ${ac_cv_func_fork_works+:} false; then :
11028 $as_echo_n "(cached) " >&6
11029 else
11030 if test "$cross_compiling" = yes; then :
11031 ac_cv_func_fork_works=cross
11032 else
11033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11034 /* end confdefs.h. */
11035 $ac_includes_default
11037 main ()
11040 /* By Ruediger Kuhlmann. */
11041 return fork () < 0;
11044 return 0;
11046 _ACEOF
11047 if ac_fn_cxx_try_run "$LINENO"; then :
11048 ac_cv_func_fork_works=yes
11049 else
11050 ac_cv_func_fork_works=no
11052 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11053 conftest.$ac_objext conftest.beam conftest.$ac_ext
11057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
11058 $as_echo "$ac_cv_func_fork_works" >&6; }
11060 else
11061 ac_cv_func_fork_works=$ac_cv_func_fork
11063 if test "x$ac_cv_func_fork_works" = xcross; then
11064 case $host in
11065 *-*-amigaos* | *-*-msdosdjgpp*)
11066 # Override, as these systems have only a dummy fork() stub
11067 ac_cv_func_fork_works=no
11070 ac_cv_func_fork_works=yes
11072 esac
11073 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
11074 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
11076 ac_cv_func_vfork_works=$ac_cv_func_vfork
11077 if test "x$ac_cv_func_vfork" = xyes; then
11078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
11079 $as_echo_n "checking for working vfork... " >&6; }
11080 if ${ac_cv_func_vfork_works+:} false; then :
11081 $as_echo_n "(cached) " >&6
11082 else
11083 if test "$cross_compiling" = yes; then :
11084 ac_cv_func_vfork_works=cross
11085 else
11086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11087 /* end confdefs.h. */
11088 /* Thanks to Paul Eggert for this test. */
11089 $ac_includes_default
11090 #include <sys/wait.h>
11091 #ifdef HAVE_VFORK_H
11092 # include <vfork.h>
11093 #endif
11094 /* On some sparc systems, changes by the child to local and incoming
11095 argument registers are propagated back to the parent. The compiler
11096 is told about this with #include <vfork.h>, but some compilers
11097 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
11098 static variable whose address is put into a register that is
11099 clobbered by the vfork. */
11100 static void
11101 #ifdef __cplusplus
11102 sparc_address_test (int arg)
11103 # else
11104 sparc_address_test (arg) int arg;
11105 #endif
11107 static pid_t child;
11108 if (!child) {
11109 child = vfork ();
11110 if (child < 0) {
11111 perror ("vfork");
11112 _exit(2);
11114 if (!child) {
11115 arg = getpid();
11116 write(-1, "", 0);
11117 _exit (arg);
11123 main ()
11125 pid_t parent = getpid ();
11126 pid_t child;
11128 sparc_address_test (0);
11130 child = vfork ();
11132 if (child == 0) {
11133 /* Here is another test for sparc vfork register problems. This
11134 test uses lots of local variables, at least as many local
11135 variables as main has allocated so far including compiler
11136 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
11137 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
11138 reuse the register of parent for one of the local variables,
11139 since it will think that parent can't possibly be used any more
11140 in this routine. Assigning to the local variable will thus
11141 munge parent in the parent process. */
11142 pid_t
11143 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
11144 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
11145 /* Convince the compiler that p..p7 are live; otherwise, it might
11146 use the same hardware register for all 8 local variables. */
11147 if (p != p1 || p != p2 || p != p3 || p != p4
11148 || p != p5 || p != p6 || p != p7)
11149 _exit(1);
11151 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
11152 from child file descriptors. If the child closes a descriptor
11153 before it execs or exits, this munges the parent's descriptor
11154 as well. Test for this by closing stdout in the child. */
11155 _exit(close(fileno(stdout)) != 0);
11156 } else {
11157 int status;
11158 struct stat st;
11160 while (wait(&status) != child)
11162 return (
11163 /* Was there some problem with vforking? */
11164 child < 0
11166 /* Did the child fail? (This shouldn't happen.) */
11167 || status
11169 /* Did the vfork/compiler bug occur? */
11170 || parent != getpid()
11172 /* Did the file descriptor bug occur? */
11173 || fstat(fileno(stdout), &st) != 0
11177 _ACEOF
11178 if ac_fn_cxx_try_run "$LINENO"; then :
11179 ac_cv_func_vfork_works=yes
11180 else
11181 ac_cv_func_vfork_works=no
11183 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11184 conftest.$ac_objext conftest.beam conftest.$ac_ext
11188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
11189 $as_echo "$ac_cv_func_vfork_works" >&6; }
11192 if test "x$ac_cv_func_fork_works" = xcross; then
11193 ac_cv_func_vfork_works=$ac_cv_func_vfork
11194 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
11195 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
11198 if test "x$ac_cv_func_vfork_works" = xyes; then
11200 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
11202 else
11204 $as_echo "#define vfork fork" >>confdefs.h
11207 if test "x$ac_cv_func_fork_works" = xyes; then
11209 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
11215 if test "X$prefix" = "XNONE"; then
11216 acl_final_prefix="$ac_default_prefix"
11217 else
11218 acl_final_prefix="$prefix"
11220 if test "X$exec_prefix" = "XNONE"; then
11221 acl_final_exec_prefix='${prefix}'
11222 else
11223 acl_final_exec_prefix="$exec_prefix"
11225 acl_save_prefix="$prefix"
11226 prefix="$acl_final_prefix"
11227 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
11228 prefix="$acl_save_prefix"
11231 # Check whether --with-gnu-ld was given.
11232 if test "${with_gnu_ld+set}" = set; then :
11233 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11234 else
11235 with_gnu_ld=no
11238 # Prepare PATH_SEPARATOR.
11239 # The user is always right.
11240 if test "${PATH_SEPARATOR+set}" != set; then
11241 echo "#! /bin/sh" >conf$$.sh
11242 echo "exit 0" >>conf$$.sh
11243 chmod +x conf$$.sh
11244 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11245 PATH_SEPARATOR=';'
11246 else
11247 PATH_SEPARATOR=:
11249 rm -f conf$$.sh
11251 ac_prog=ld
11252 if test "$GCC" = yes; then
11253 # Check if gcc -print-prog-name=ld gives a path.
11254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
11255 $as_echo_n "checking for ld used by GCC... " >&6; }
11256 case $host in
11257 *-*-mingw*)
11258 # gcc leaves a trailing carriage return which upsets mingw
11259 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11261 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11262 esac
11263 case $ac_prog in
11264 # Accept absolute paths.
11265 [\\/]* | [A-Za-z]:[\\/]*)
11266 re_direlt='/[^/][^/]*/\.\./'
11267 # Canonicalize the path of ld
11268 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
11269 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11270 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
11271 done
11272 test -z "$LD" && LD="$ac_prog"
11275 # If it fails, then pretend we aren't using GCC.
11276 ac_prog=ld
11279 # If it is relative, then search for the first ld in PATH.
11280 with_gnu_ld=unknown
11282 esac
11283 elif test "$with_gnu_ld" = yes; then
11284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11285 $as_echo_n "checking for GNU ld... " >&6; }
11286 else
11287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11288 $as_echo_n "checking for non-GNU ld... " >&6; }
11290 if ${acl_cv_path_LD+:} false; then :
11291 $as_echo_n "(cached) " >&6
11292 else
11293 if test -z "$LD"; then
11294 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
11295 for ac_dir in $PATH; do
11296 test -z "$ac_dir" && ac_dir=.
11297 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11298 acl_cv_path_LD="$ac_dir/$ac_prog"
11299 # Check to see if the program is GNU ld. I'd rather use --version,
11300 # but apparently some GNU ld's only accept -v.
11301 # Break only if it was the GNU/non-GNU ld that we prefer.
11302 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
11303 test "$with_gnu_ld" != no && break
11304 else
11305 test "$with_gnu_ld" != yes && break
11308 done
11309 IFS="$ac_save_ifs"
11310 else
11311 acl_cv_path_LD="$LD" # Let the user override the test with a path.
11315 LD="$acl_cv_path_LD"
11316 if test -n "$LD"; then
11317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11318 $as_echo "$LD" >&6; }
11319 else
11320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11321 $as_echo "no" >&6; }
11323 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
11324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11325 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11326 if ${acl_cv_prog_gnu_ld+:} false; then :
11327 $as_echo_n "(cached) " >&6
11328 else
11329 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
11330 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
11331 acl_cv_prog_gnu_ld=yes
11332 else
11333 acl_cv_prog_gnu_ld=no
11336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
11337 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
11338 with_gnu_ld=$acl_cv_prog_gnu_ld
11342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
11343 $as_echo_n "checking for shared library run path origin... " >&6; }
11344 if ${acl_cv_rpath+:} false; then :
11345 $as_echo_n "(cached) " >&6
11346 else
11348 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
11349 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
11350 . ./conftest.sh
11351 rm -f ./conftest.sh
11352 acl_cv_rpath=done
11355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
11356 $as_echo "$acl_cv_rpath" >&6; }
11357 wl="$acl_cv_wl"
11358 libext="$acl_cv_libext"
11359 shlibext="$acl_cv_shlibext"
11360 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
11361 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
11362 hardcode_direct="$acl_cv_hardcode_direct"
11363 hardcode_minus_L="$acl_cv_hardcode_minus_L"
11364 # Check whether --enable-rpath was given.
11365 if test "${enable_rpath+set}" = set; then :
11366 enableval=$enable_rpath; :
11367 else
11368 enable_rpath=yes
11378 use_additional=yes
11380 acl_save_prefix="$prefix"
11381 prefix="$acl_final_prefix"
11382 acl_save_exec_prefix="$exec_prefix"
11383 exec_prefix="$acl_final_exec_prefix"
11385 eval additional_includedir=\"$includedir\"
11386 eval additional_libdir=\"$libdir\"
11388 exec_prefix="$acl_save_exec_prefix"
11389 prefix="$acl_save_prefix"
11392 # Check whether --with-libiconv-prefix was given.
11393 if test "${with_libiconv_prefix+set}" = set; then :
11394 withval=$with_libiconv_prefix;
11395 if test "X$withval" = "Xno"; then
11396 use_additional=no
11397 else
11398 if test "X$withval" = "X"; then
11400 acl_save_prefix="$prefix"
11401 prefix="$acl_final_prefix"
11402 acl_save_exec_prefix="$exec_prefix"
11403 exec_prefix="$acl_final_exec_prefix"
11405 eval additional_includedir=\"$includedir\"
11406 eval additional_libdir=\"$libdir\"
11408 exec_prefix="$acl_save_exec_prefix"
11409 prefix="$acl_save_prefix"
11411 else
11412 additional_includedir="$withval/include"
11413 additional_libdir="$withval/lib"
11420 # Check whether --with-libiconv-type was given.
11421 if test "${with_libiconv_type+set}" = set; then :
11422 withval=$with_libiconv_type; with_libiconv_type=$withval
11423 else
11424 with_libiconv_type=auto
11427 lib_type=`eval echo \$with_libiconv_type`
11429 LIBICONV=
11430 LTLIBICONV=
11431 INCICONV=
11432 rpathdirs=
11433 ltrpathdirs=
11434 names_already_handled=
11435 names_next_round='iconv '
11436 while test -n "$names_next_round"; do
11437 names_this_round="$names_next_round"
11438 names_next_round=
11439 for name in $names_this_round; do
11440 already_handled=
11441 for n in $names_already_handled; do
11442 if test "$n" = "$name"; then
11443 already_handled=yes
11444 break
11446 done
11447 if test -z "$already_handled"; then
11448 names_already_handled="$names_already_handled $name"
11449 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
11450 eval value=\"\$HAVE_LIB$uppername\"
11451 if test -n "$value"; then
11452 if test "$value" = yes; then
11453 eval value=\"\$LIB$uppername\"
11454 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
11455 eval value=\"\$LTLIB$uppername\"
11456 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
11457 else
11460 else
11461 found_dir=
11462 found_la=
11463 found_so=
11464 found_a=
11465 if test $use_additional = yes; then
11466 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
11467 found_dir="$additional_libdir"
11468 found_so="$additional_libdir/lib$name.$shlibext"
11469 if test -f "$additional_libdir/lib$name.la"; then
11470 found_la="$additional_libdir/lib$name.la"
11472 elif test x$lib_type != xshared; then
11473 if test -f "$additional_libdir/lib$name.$libext"; then
11474 found_dir="$additional_libdir"
11475 found_a="$additional_libdir/lib$name.$libext"
11476 if test -f "$additional_libdir/lib$name.la"; then
11477 found_la="$additional_libdir/lib$name.la"
11482 if test "X$found_dir" = "X"; then
11483 for x in $LDFLAGS $LTLIBICONV; do
11485 acl_save_prefix="$prefix"
11486 prefix="$acl_final_prefix"
11487 acl_save_exec_prefix="$exec_prefix"
11488 exec_prefix="$acl_final_exec_prefix"
11489 eval x=\"$x\"
11490 exec_prefix="$acl_save_exec_prefix"
11491 prefix="$acl_save_prefix"
11493 case "$x" in
11494 -L*)
11495 dir=`echo "X$x" | sed -e 's/^X-L//'`
11496 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
11497 found_dir="$dir"
11498 found_so="$dir/lib$name.$shlibext"
11499 if test -f "$dir/lib$name.la"; then
11500 found_la="$dir/lib$name.la"
11502 elif test x$lib_type != xshared; then
11503 if test -f "$dir/lib$name.$libext"; then
11504 found_dir="$dir"
11505 found_a="$dir/lib$name.$libext"
11506 if test -f "$dir/lib$name.la"; then
11507 found_la="$dir/lib$name.la"
11512 esac
11513 if test "X$found_dir" != "X"; then
11514 break
11516 done
11518 if test "X$found_dir" != "X"; then
11519 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
11520 if test "X$found_so" != "X"; then
11521 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
11522 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11523 else
11524 haveit=
11525 for x in $ltrpathdirs; do
11526 if test "X$x" = "X$found_dir"; then
11527 haveit=yes
11528 break
11530 done
11531 if test -z "$haveit"; then
11532 ltrpathdirs="$ltrpathdirs $found_dir"
11534 if test "$hardcode_direct" = yes; then
11535 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11536 else
11537 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
11538 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11539 haveit=
11540 for x in $rpathdirs; do
11541 if test "X$x" = "X$found_dir"; then
11542 haveit=yes
11543 break
11545 done
11546 if test -z "$haveit"; then
11547 rpathdirs="$rpathdirs $found_dir"
11549 else
11550 haveit=
11551 for x in $LDFLAGS $LIBICONV; do
11553 acl_save_prefix="$prefix"
11554 prefix="$acl_final_prefix"
11555 acl_save_exec_prefix="$exec_prefix"
11556 exec_prefix="$acl_final_exec_prefix"
11557 eval x=\"$x\"
11558 exec_prefix="$acl_save_exec_prefix"
11559 prefix="$acl_save_prefix"
11561 if test "X$x" = "X-L$found_dir"; then
11562 haveit=yes
11563 break
11565 done
11566 if test -z "$haveit"; then
11567 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
11569 if test "$hardcode_minus_L" != no; then
11570 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11571 else
11572 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11577 else
11578 if test "X$found_a" != "X"; then
11579 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
11580 else
11581 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
11584 additional_includedir=
11585 case "$found_dir" in
11586 */lib | */lib/)
11587 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
11588 additional_includedir="$basedir/include"
11590 esac
11591 if test "X$additional_includedir" != "X"; then
11592 if test "X$additional_includedir" != "X/usr/include"; then
11593 haveit=
11594 if test "X$additional_includedir" = "X/usr/local/include"; then
11595 if test -n "$GCC"; then
11596 case $host_os in
11597 linux*) haveit=yes;;
11598 esac
11601 if test -z "$haveit"; then
11602 for x in $CPPFLAGS $INCICONV; do
11604 acl_save_prefix="$prefix"
11605 prefix="$acl_final_prefix"
11606 acl_save_exec_prefix="$exec_prefix"
11607 exec_prefix="$acl_final_exec_prefix"
11608 eval x=\"$x\"
11609 exec_prefix="$acl_save_exec_prefix"
11610 prefix="$acl_save_prefix"
11612 if test "X$x" = "X-I$additional_includedir"; then
11613 haveit=yes
11614 break
11616 done
11617 if test -z "$haveit"; then
11618 if test -d "$additional_includedir"; then
11619 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
11625 if test -n "$found_la"; then
11626 save_libdir="$libdir"
11627 case "$found_la" in
11628 */* | *\\*) . "$found_la" ;;
11629 *) . "./$found_la" ;;
11630 esac
11631 libdir="$save_libdir"
11632 for dep in $dependency_libs; do
11633 case "$dep" in
11634 -L*)
11635 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
11636 if test "X$additional_libdir" != "X/usr/lib"; then
11637 haveit=
11638 if test "X$additional_libdir" = "X/usr/local/lib"; then
11639 if test -n "$GCC"; then
11640 case $host_os in
11641 linux*) haveit=yes;;
11642 esac
11645 if test -z "$haveit"; then
11646 haveit=
11647 for x in $LDFLAGS $LIBICONV; do
11649 acl_save_prefix="$prefix"
11650 prefix="$acl_final_prefix"
11651 acl_save_exec_prefix="$exec_prefix"
11652 exec_prefix="$acl_final_exec_prefix"
11653 eval x=\"$x\"
11654 exec_prefix="$acl_save_exec_prefix"
11655 prefix="$acl_save_prefix"
11657 if test "X$x" = "X-L$additional_libdir"; then
11658 haveit=yes
11659 break
11661 done
11662 if test -z "$haveit"; then
11663 if test -d "$additional_libdir"; then
11664 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
11667 haveit=
11668 for x in $LDFLAGS $LTLIBICONV; do
11670 acl_save_prefix="$prefix"
11671 prefix="$acl_final_prefix"
11672 acl_save_exec_prefix="$exec_prefix"
11673 exec_prefix="$acl_final_exec_prefix"
11674 eval x=\"$x\"
11675 exec_prefix="$acl_save_exec_prefix"
11676 prefix="$acl_save_prefix"
11678 if test "X$x" = "X-L$additional_libdir"; then
11679 haveit=yes
11680 break
11682 done
11683 if test -z "$haveit"; then
11684 if test -d "$additional_libdir"; then
11685 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
11691 -R*)
11692 dir=`echo "X$dep" | sed -e 's/^X-R//'`
11693 if test "$enable_rpath" != no; then
11694 haveit=
11695 for x in $rpathdirs; do
11696 if test "X$x" = "X$dir"; then
11697 haveit=yes
11698 break
11700 done
11701 if test -z "$haveit"; then
11702 rpathdirs="$rpathdirs $dir"
11704 haveit=
11705 for x in $ltrpathdirs; do
11706 if test "X$x" = "X$dir"; then
11707 haveit=yes
11708 break
11710 done
11711 if test -z "$haveit"; then
11712 ltrpathdirs="$ltrpathdirs $dir"
11716 -l*)
11717 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11719 *.la)
11720 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11723 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
11724 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
11726 esac
11727 done
11729 else
11730 if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
11731 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11732 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
11733 else
11734 LIBICONV="${LIBICONV}${LIBICONV:+ }-l:lib$name.$libext"
11735 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l:lib$name.$libext"
11740 done
11741 done
11742 if test "X$rpathdirs" != "X"; then
11743 if test -n "$hardcode_libdir_separator"; then
11744 alldirs=
11745 for found_dir in $rpathdirs; do
11746 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
11747 done
11748 acl_save_libdir="$libdir"
11749 libdir="$alldirs"
11750 eval flag=\"$hardcode_libdir_flag_spec\"
11751 libdir="$acl_save_libdir"
11752 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11753 else
11754 for found_dir in $rpathdirs; do
11755 acl_save_libdir="$libdir"
11756 libdir="$found_dir"
11757 eval flag=\"$hardcode_libdir_flag_spec\"
11758 libdir="$acl_save_libdir"
11759 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11760 done
11763 if test "X$ltrpathdirs" != "X"; then
11764 for found_dir in $ltrpathdirs; do
11765 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
11766 done
11775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
11776 $as_echo_n "checking for iconv... " >&6; }
11777 if ${am_cv_func_iconv+:} false; then :
11778 $as_echo_n "(cached) " >&6
11779 else
11781 am_cv_func_iconv="no, consider installing GNU libiconv"
11782 am_cv_lib_iconv=no
11783 am_save_CPPFLAGS="$CPPFLAGS"
11784 CPPFLAGS="$CPPFLAGS $INCICONV"
11785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11786 /* end confdefs.h. */
11787 #include <stdlib.h>
11788 #include <iconv.h>
11790 main ()
11792 iconv_t cd = iconv_open("","");
11793 iconv(cd,NULL,NULL,NULL,NULL);
11794 iconv_close(cd);
11796 return 0;
11798 _ACEOF
11799 if ac_fn_cxx_try_link "$LINENO"; then :
11800 am_cv_func_iconv=yes
11802 rm -f core conftest.err conftest.$ac_objext \
11803 conftest$ac_exeext conftest.$ac_ext
11804 CPPFLAGS="$am_save_CPPFLAGS"
11806 if test "$am_cv_func_iconv" != yes && test -d ../libiconv; then
11807 for _libs in .libs _libs; do
11808 am_save_CPPFLAGS="$CPPFLAGS"
11809 am_save_LIBS="$LIBS"
11810 CPPFLAGS="$CPPFLAGS -I../libiconv/include"
11811 LIBS="$LIBS ../libiconv/lib/$_libs/libiconv.a"
11812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11813 /* end confdefs.h. */
11814 #include <stdlib.h>
11815 #include <iconv.h>
11817 main ()
11819 iconv_t cd = iconv_open("","");
11820 iconv(cd,NULL,NULL,NULL,NULL);
11821 iconv_close(cd);
11823 return 0;
11825 _ACEOF
11826 if ac_fn_cxx_try_link "$LINENO"; then :
11827 INCICONV="-I../libiconv/include"
11828 LIBICONV='${top_builddir}'/../libiconv/lib/$_libs/libiconv.a
11829 LTLIBICONV='${top_builddir}'/../libiconv/lib/libiconv.la
11830 am_cv_lib_iconv=yes
11831 am_cv_func_iconv=yes
11833 rm -f core conftest.err conftest.$ac_objext \
11834 conftest$ac_exeext conftest.$ac_ext
11835 CPPFLAGS="$am_save_CPPFLAGS"
11836 LIBS="$am_save_LIBS"
11837 if test "$am_cv_func_iconv" = "yes"; then
11838 break
11840 done
11843 if test "$am_cv_func_iconv" != yes; then
11844 am_save_CPPFLAGS="$CPPFLAGS"
11845 am_save_LIBS="$LIBS"
11846 CPPFLAGS="$CPPFLAGS $INCICONV"
11847 LIBS="$LIBS $LIBICONV"
11848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11849 /* end confdefs.h. */
11850 #include <stdlib.h>
11851 #include <iconv.h>
11853 main ()
11855 iconv_t cd = iconv_open("","");
11856 iconv(cd,NULL,NULL,NULL,NULL);
11857 iconv_close(cd);
11859 return 0;
11861 _ACEOF
11862 if ac_fn_cxx_try_link "$LINENO"; then :
11863 am_cv_lib_iconv=yes
11864 am_cv_func_iconv=yes
11866 rm -f core conftest.err conftest.$ac_objext \
11867 conftest$ac_exeext conftest.$ac_ext
11868 CPPFLAGS="$am_save_CPPFLAGS"
11869 LIBS="$am_save_LIBS"
11873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
11874 $as_echo "$am_cv_func_iconv" >&6; }
11875 if test "$am_cv_func_iconv" = yes; then
11877 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
11880 if test "$am_cv_lib_iconv" = yes; then
11882 for element in $INCICONV; do
11883 haveit=
11884 for x in $CPPFLAGS; do
11886 acl_save_prefix="$prefix"
11887 prefix="$acl_final_prefix"
11888 acl_save_exec_prefix="$exec_prefix"
11889 exec_prefix="$acl_final_exec_prefix"
11890 eval x=\"$x\"
11891 exec_prefix="$acl_save_exec_prefix"
11892 prefix="$acl_save_prefix"
11894 if test "X$x" = "X$element"; then
11895 haveit=yes
11896 break
11898 done
11899 if test -z "$haveit"; then
11900 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11902 done
11904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
11905 $as_echo_n "checking how to link with libiconv... " >&6; }
11906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
11907 $as_echo "$LIBICONV" >&6; }
11908 else
11909 LIBICONV=
11910 LTLIBICONV=
11915 if test "$am_cv_func_iconv" = yes; then
11916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
11917 $as_echo_n "checking for iconv declaration... " >&6; }
11918 if ${am_cv_proto_iconv+:} false; then :
11919 $as_echo_n "(cached) " >&6
11920 else
11922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11923 /* end confdefs.h. */
11925 #include <stdlib.h>
11926 #include <iconv.h>
11927 extern
11928 #ifdef __cplusplus
11930 #endif
11931 #if defined(__STDC__) || defined(__cplusplus)
11932 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
11933 #else
11934 size_t iconv();
11935 #endif
11938 main ()
11942 return 0;
11944 _ACEOF
11945 if ac_fn_cxx_try_compile "$LINENO"; then :
11946 am_cv_proto_iconv_arg1=""
11947 else
11948 am_cv_proto_iconv_arg1="const"
11950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11951 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
11954 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
11955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
11956 }$am_cv_proto_iconv" >&5
11957 $as_echo "${ac_t:-
11958 }$am_cv_proto_iconv" >&6; }
11960 cat >>confdefs.h <<_ACEOF
11961 #define ICONV_CONST $am_cv_proto_iconv_arg1
11962 _ACEOF
11967 # Until we have in-tree GNU iconv:
11968 LIBICONV_DEP=
11969 if test -f "$LTLIBICONV"; then
11970 LIBICONV_DEP=$LTLIBICONV
11975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
11976 $as_echo_n "checking for LC_MESSAGES... " >&6; }
11977 if ${am_cv_val_LC_MESSAGES+:} false; then :
11978 $as_echo_n "(cached) " >&6
11979 else
11980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11981 /* end confdefs.h. */
11982 #include <locale.h>
11984 main ()
11986 return LC_MESSAGES
11988 return 0;
11990 _ACEOF
11991 if ac_fn_cxx_try_link "$LINENO"; then :
11992 am_cv_val_LC_MESSAGES=yes
11993 else
11994 am_cv_val_LC_MESSAGES=no
11996 rm -f core conftest.err conftest.$ac_objext \
11997 conftest$ac_exeext conftest.$ac_ext
11999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
12000 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
12001 if test $am_cv_val_LC_MESSAGES = yes; then
12003 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
12009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
12010 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
12011 if ${am_cv_langinfo_codeset+:} false; then :
12012 $as_echo_n "(cached) " >&6
12013 else
12014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12015 /* end confdefs.h. */
12016 #include <langinfo.h>
12018 main ()
12020 char* cs = nl_langinfo(CODESET);
12022 return 0;
12024 _ACEOF
12025 if ac_fn_cxx_try_link "$LINENO"; then :
12026 am_cv_langinfo_codeset=yes
12027 else
12028 am_cv_langinfo_codeset=no
12030 rm -f core conftest.err conftest.$ac_objext \
12031 conftest$ac_exeext conftest.$ac_ext
12034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
12035 $as_echo "$am_cv_langinfo_codeset" >&6; }
12036 if test $am_cv_langinfo_codeset = yes; then
12038 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
12043 # We will need to find libiberty.h and ansidecl.h
12044 saved_CFLAGS="$CFLAGS"
12045 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
12046 saved_CXXFLAGS="$CXXFLAGS"
12047 CXXFLAGS="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
12049 # gcc_AC_CHECK_DECLS doesn't support overloaded functions, so use the
12050 # normal autoconf function for these. But force definition of
12051 # HAVE_DECL_BASENAME like gcc_AC_CHECK_DECLS does, to suppress the bizarre
12052 # basename handling in libiberty.h.
12053 as_ac_Symbol=`$as_echo "ac_cv_have_decl_basename(const char*)" | $as_tr_sh`
12054 ac_fn_cxx_check_decl "$LINENO" "basename(const char*)" "$as_ac_Symbol" "
12055 #undef HAVE_DECL_BASENAME
12056 #define HAVE_DECL_BASENAME 1
12057 #include \"ansidecl.h\"
12058 #include \"system.h\"
12060 if eval test \"x\$"$as_ac_Symbol"\" = x"yes"; then :
12061 ac_have_decl=1
12062 else
12063 ac_have_decl=0
12066 cat >>confdefs.h <<_ACEOF
12067 #define HAVE_DECL_BASENAME $ac_have_decl
12068 _ACEOF
12069 as_ac_Symbol=`$as_echo "ac_cv_have_decl_strstr(const char*,const char*)" | $as_tr_sh`
12070 ac_fn_cxx_check_decl "$LINENO" "strstr(const char*,const char*)" "$as_ac_Symbol" "
12071 #undef HAVE_DECL_BASENAME
12072 #define HAVE_DECL_BASENAME 1
12073 #include \"ansidecl.h\"
12074 #include \"system.h\"
12076 if eval test \"x\$"$as_ac_Symbol"\" = x"yes"; then :
12077 ac_have_decl=1
12078 else
12079 ac_have_decl=0
12082 cat >>confdefs.h <<_ACEOF
12083 #define HAVE_DECL_STRSTR $ac_have_decl
12084 _ACEOF
12087 for ac_func in getenv atol atoll asprintf sbrk abort atof getcwd getwd \
12088 madvise stpcpy strnlen strsignal strverscmp \
12089 strtol strtoul strtoll strtoull setenv unsetenv \
12090 errno snprintf vsnprintf vasprintf malloc realloc calloc \
12091 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
12093 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12095 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12096 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
12097 $as_echo_n "(cached) " >&6
12098 else
12099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12100 /* end confdefs.h. */
12101 #undef $ac_tr_decl
12102 #define $ac_tr_decl 1
12104 #include "ansidecl.h"
12105 #include "system.h"
12108 main ()
12110 #ifndef $ac_func
12111 char *(*pfn) = (char *(*)) $ac_func ;
12112 #endif
12114 return 0;
12116 _ACEOF
12117 if ac_fn_cxx_try_compile "$LINENO"; then :
12118 eval "gcc_cv_have_decl_$ac_func=yes"
12119 else
12120 eval "gcc_cv_have_decl_$ac_func=no"
12122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12125 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12127 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
12128 #define $ac_tr_decl 1
12129 _ACEOF
12131 else
12132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12133 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
12134 #define $ac_tr_decl 0
12135 _ACEOF
12139 done
12142 for ac_func in getrlimit setrlimit getrusage
12144 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12146 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12147 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
12148 $as_echo_n "(cached) " >&6
12149 else
12150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12151 /* end confdefs.h. */
12152 #undef $ac_tr_decl
12153 #define $ac_tr_decl 1
12155 #include "ansidecl.h"
12156 #include "system.h"
12157 #ifdef HAVE_SYS_RESOURCE_H
12158 #include <sys/resource.h>
12159 #endif
12163 main ()
12165 #ifndef $ac_func
12166 char *(*pfn) = (char *(*)) $ac_func ;
12167 #endif
12169 return 0;
12171 _ACEOF
12172 if ac_fn_cxx_try_compile "$LINENO"; then :
12173 eval "gcc_cv_have_decl_$ac_func=yes"
12174 else
12175 eval "gcc_cv_have_decl_$ac_func=no"
12177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12180 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12182 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
12183 #define $ac_tr_decl 1
12184 _ACEOF
12186 else
12187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12188 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
12189 #define $ac_tr_decl 0
12190 _ACEOF
12194 done
12197 for ac_func in mallinfo mallinfo2
12199 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12201 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12202 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
12203 $as_echo_n "(cached) " >&6
12204 else
12205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12206 /* end confdefs.h. */
12207 #undef $ac_tr_decl
12208 #define $ac_tr_decl 1
12210 #include "ansidecl.h"
12211 #include "system.h"
12212 #ifdef HAVE_MALLOC_H
12213 #include <malloc.h>
12214 #endif
12218 main ()
12220 #ifndef $ac_func
12221 char *(*pfn) = (char *(*)) $ac_func ;
12222 #endif
12224 return 0;
12226 _ACEOF
12227 if ac_fn_cxx_try_compile "$LINENO"; then :
12228 eval "gcc_cv_have_decl_$ac_func=yes"
12229 else
12230 eval "gcc_cv_have_decl_$ac_func=no"
12232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12235 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12237 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
12238 #define $ac_tr_decl 1
12239 _ACEOF
12241 else
12242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12243 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
12244 #define $ac_tr_decl 0
12245 _ACEOF
12249 done
12252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12253 /* end confdefs.h. */
12255 #include "ansidecl.h"
12256 #include "system.h"
12257 #ifdef HAVE_SYS_RESOURCE_H
12258 #include <sys/resource.h>
12259 #endif
12262 main ()
12264 rlim_t l = 0;
12266 return 0;
12268 _ACEOF
12269 if ac_fn_cxx_try_compile "$LINENO"; then :
12271 else
12273 $as_echo "#define rlim_t long" >>confdefs.h
12276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12278 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
12279 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
12280 # in collect2.cc, <fcntl.h> isn't visible, but the configure test below needs
12281 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
12282 for ac_func in ldgetname
12284 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12286 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12287 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
12288 $as_echo_n "(cached) " >&6
12289 else
12290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12291 /* end confdefs.h. */
12292 #undef $ac_tr_decl
12293 #define $ac_tr_decl 1
12295 #include "ansidecl.h"
12296 #include "system.h"
12297 #ifdef HAVE_LDFCN_H
12298 #undef FREAD
12299 #undef FWRITE
12300 #include <ldfcn.h>
12301 #endif
12305 main ()
12307 #ifndef $ac_func
12308 char *(*pfn) = (char *(*)) $ac_func ;
12309 #endif
12311 return 0;
12313 _ACEOF
12314 if ac_fn_cxx_try_compile "$LINENO"; then :
12315 eval "gcc_cv_have_decl_$ac_func=yes"
12316 else
12317 eval "gcc_cv_have_decl_$ac_func=no"
12319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12322 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12324 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
12325 #define $ac_tr_decl 1
12326 _ACEOF
12328 else
12329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12330 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
12331 #define $ac_tr_decl 0
12332 _ACEOF
12336 done
12339 for ac_func in times
12341 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12343 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12344 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
12345 $as_echo_n "(cached) " >&6
12346 else
12347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12348 /* end confdefs.h. */
12349 #undef $ac_tr_decl
12350 #define $ac_tr_decl 1
12352 #include "ansidecl.h"
12353 #include "system.h"
12354 #ifdef HAVE_SYS_TIMES_H
12355 #include <sys/times.h>
12356 #endif
12360 main ()
12362 #ifndef $ac_func
12363 char *(*pfn) = (char *(*)) $ac_func ;
12364 #endif
12366 return 0;
12368 _ACEOF
12369 if ac_fn_cxx_try_compile "$LINENO"; then :
12370 eval "gcc_cv_have_decl_$ac_func=yes"
12371 else
12372 eval "gcc_cv_have_decl_$ac_func=no"
12374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12377 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12379 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
12380 #define $ac_tr_decl 1
12381 _ACEOF
12383 else
12384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12385 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
12386 #define $ac_tr_decl 0
12387 _ACEOF
12391 done
12394 for ac_func in sigaltstack
12396 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12398 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12399 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
12400 $as_echo_n "(cached) " >&6
12401 else
12402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12403 /* end confdefs.h. */
12404 #undef $ac_tr_decl
12405 #define $ac_tr_decl 1
12407 #include "ansidecl.h"
12408 #include "system.h"
12409 #include <signal.h>
12413 main ()
12415 #ifndef $ac_func
12416 char *(*pfn) = (char *(*)) $ac_func ;
12417 #endif
12419 return 0;
12421 _ACEOF
12422 if ac_fn_cxx_try_compile "$LINENO"; then :
12423 eval "gcc_cv_have_decl_$ac_func=yes"
12424 else
12425 eval "gcc_cv_have_decl_$ac_func=no"
12427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12430 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12432 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
12433 #define $ac_tr_decl 1
12434 _ACEOF
12436 else
12437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12438 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
12439 #define $ac_tr_decl 0
12440 _ACEOF
12444 done
12447 # More time-related stuff.
12448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
12449 $as_echo_n "checking for struct tms... " >&6; }
12450 if ${ac_cv_struct_tms+:} false; then :
12451 $as_echo_n "(cached) " >&6
12452 else
12454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12455 /* end confdefs.h. */
12457 #include "ansidecl.h"
12458 #include "system.h"
12459 #ifdef HAVE_SYS_TIMES_H
12460 #include <sys/times.h>
12461 #endif
12464 main ()
12466 struct tms tms;
12468 return 0;
12470 _ACEOF
12471 if ac_fn_cxx_try_compile "$LINENO"; then :
12472 ac_cv_struct_tms=yes
12473 else
12474 ac_cv_struct_tms=no
12476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
12479 $as_echo "$ac_cv_struct_tms" >&6; }
12480 if test $ac_cv_struct_tms = yes; then
12482 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
12486 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
12487 # revisit after autoconf 2.50.
12488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
12489 $as_echo_n "checking for clock_t... " >&6; }
12490 if ${gcc_cv_type_clock_t+:} false; then :
12491 $as_echo_n "(cached) " >&6
12492 else
12494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12495 /* end confdefs.h. */
12497 #include "ansidecl.h"
12498 #include "system.h"
12501 main ()
12503 clock_t x;
12505 return 0;
12507 _ACEOF
12508 if ac_fn_cxx_try_compile "$LINENO"; then :
12509 gcc_cv_type_clock_t=yes
12510 else
12511 gcc_cv_type_clock_t=no
12513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
12516 $as_echo "$gcc_cv_type_clock_t" >&6; }
12517 if test $gcc_cv_type_clock_t = yes; then
12519 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
12523 # Check if F_SETLKW is supported by fcntl.
12524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
12525 $as_echo_n "checking for F_SETLKW... " >&6; }
12526 if ${ac_cv_f_setlkw+:} false; then :
12527 $as_echo_n "(cached) " >&6
12528 else
12530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12531 /* end confdefs.h. */
12533 #include <fcntl.h>
12535 main ()
12538 struct flock fl;
12539 fl.l_whence = 0;
12540 fl.l_start = 0;
12541 fl.l_len = 0;
12542 fl.l_pid = 0;
12543 return fcntl (1, F_SETLKW, &fl);
12545 return 0;
12547 _ACEOF
12548 if ac_fn_cxx_try_compile "$LINENO"; then :
12549 ac_cv_f_setlkw=yes
12550 else
12551 ac_cv_f_setlkw=no
12553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
12556 $as_echo "$ac_cv_f_setlkw" >&6; }
12557 if test $ac_cv_f_setlkw = yes; then
12559 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
12563 # Check if O_CLOEXEC is defined by fcntl
12564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for O_CLOEXEC" >&5
12565 $as_echo_n "checking for O_CLOEXEC... " >&6; }
12566 if ${ac_cv_o_cloexec+:} false; then :
12567 $as_echo_n "(cached) " >&6
12568 else
12570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12571 /* end confdefs.h. */
12573 #include <fcntl.h>
12575 main ()
12578 return open ("/dev/null", O_RDONLY | O_CLOEXEC);
12580 return 0;
12582 _ACEOF
12583 if ac_fn_cxx_try_compile "$LINENO"; then :
12584 ac_cv_o_cloexec=yes
12585 else
12586 ac_cv_o_cloexec=no
12588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_o_cloexec" >&5
12591 $as_echo "$ac_cv_o_cloexec" >&6; }
12592 if test $ac_cv_o_cloexec = yes; then
12594 $as_echo "#define HOST_HAS_O_CLOEXEC 1" >>confdefs.h
12598 # Check if O_NONBLOCK is defined by fcntl
12599 for ac_header in fcntl.h
12600 do :
12601 ac_fn_cxx_check_header_preproc "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h"
12602 if test "x$ac_cv_header_fcntl_h" = xyes; then :
12603 cat >>confdefs.h <<_ACEOF
12604 #define HAVE_FCNTL_H 1
12605 _ACEOF
12608 done
12610 ac_fn_cxx_check_decl "$LINENO" "O_NONBLOCK" "ac_cv_have_decl_O_NONBLOCK" "#include <fcntl.h>
12612 if test "x$ac_cv_have_decl_O_NONBLOCK" = xyes; then :
12616 if test $ac_cv_have_decl_O_NONBLOCK = yes; then
12618 $as_echo "#define HOST_HAS_O_NONBLOCK 1" >>confdefs.h
12623 # C++ Modules would like some networking features to provide the mapping
12624 # server. You can still use modules without them though.
12625 # The following network-related checks could probably do with some
12626 # Windows and other non-linux defenses and checking.
12628 # Local socket connectivity wants AF_UNIX networking
12629 # Check for AF_UNIX networking
12630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AF_UNIX" >&5
12631 $as_echo_n "checking for AF_UNIX... " >&6; }
12632 if ${ac_cv_af_unix+:} false; then :
12633 $as_echo_n "(cached) " >&6
12634 else
12636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12637 /* end confdefs.h. */
12639 #include <sys/types.h>
12640 #include <sys/socket.h>
12641 #include <sys/un.h>
12642 #include <netinet/in.h>
12644 main ()
12647 sockaddr_un un;
12648 un.sun_family = AF_UNSPEC;
12649 int fd = socket (AF_UNIX, SOCK_STREAM, 0);
12650 connect (fd, (sockaddr *)&un, sizeof (un));
12652 return 0;
12654 _ACEOF
12655 if ac_fn_cxx_try_compile "$LINENO"; then :
12656 ac_cv_af_unix=yes
12657 else
12658 ac_cv_af_unix=no
12660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_af_unix" >&5
12663 $as_echo "$ac_cv_af_unix" >&6; }
12664 if test $ac_cv_af_unix = yes; then
12666 $as_echo "#define HAVE_AF_UNIX 1" >>confdefs.h
12670 # Remote socket connectivity wants AF_INET6 networking
12671 # Check for AF_INET6 networking
12672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AF_INET6" >&5
12673 $as_echo_n "checking for AF_INET6... " >&6; }
12674 if ${ac_cv_af_inet6+:} false; then :
12675 $as_echo_n "(cached) " >&6
12676 else
12678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12679 /* end confdefs.h. */
12681 #include <sys/types.h>
12682 #include <sys/socket.h>
12683 #include <netinet/in.h>
12684 #include <netdb.h>
12686 main ()
12689 sockaddr_in6 in6;
12690 in6.sin6_family = AF_UNSPEC;
12691 struct addrinfo *addrs = 0;
12692 struct addrinfo hints;
12693 hints.ai_flags = 0;
12694 hints.ai_family = AF_INET6;
12695 hints.ai_socktype = SOCK_STREAM;
12696 hints.ai_protocol = 0;
12697 hints.ai_canonname = 0;
12698 hints.ai_addr = 0;
12699 hints.ai_next = 0;
12700 int e = getaddrinfo ("localhost", 0, &hints, &addrs);
12701 const char *str = gai_strerror (e);
12702 freeaddrinfo (addrs);
12703 int fd = socket (AF_INET6, SOCK_STREAM, 0);
12704 connect (fd, (sockaddr *)&in6, sizeof (in6));
12706 return 0;
12708 _ACEOF
12709 if ac_fn_cxx_try_compile "$LINENO"; then :
12710 ac_cv_af_inet6=yes
12711 else
12712 ac_cv_af_inet6=no
12714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_af_inet6" >&5
12717 $as_echo "$ac_cv_af_inet6" >&6; }
12718 if test $ac_cv_af_inet6 = yes; then
12720 $as_echo "#define HAVE_AF_INET6 1" >>confdefs.h
12724 # Check if _LK_LOCK is supported by _locking
12725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LK_LOCK" >&5
12726 $as_echo_n "checking for _LK_LOCK... " >&6; }
12727 if ${ac_cv_lk_lock+:} false; then :
12728 $as_echo_n "(cached) " >&6
12729 else
12731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12732 /* end confdefs.h. */
12734 #include <io.h>
12735 #include <sys/locking.h>
12737 main ()
12740 int fd;
12741 return _locking (fd, _LK_LOCK, 0);
12743 return 0;
12745 _ACEOF
12746 if ac_fn_cxx_try_compile "$LINENO"; then :
12747 ac_cv_lk_lock=yes
12748 else
12749 ac_cv_lk_lock=no
12751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lk_lock" >&5
12754 $as_echo "$ac_cv_lk_lock" >&6; }
12755 if test $ac_cv_lk_lock = yes; then
12757 $as_echo "#define HOST_HAS_LK_LOCK 1" >>confdefs.h
12761 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
12762 CFLAGS="$saved_CFLAGS"
12763 CXXFLAGS="$saved_CXXFLAGS"
12765 # mkdir takes a single argument on some systems.
12766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
12767 $as_echo_n "checking if mkdir takes one argument... " >&6; }
12768 if ${gcc_cv_mkdir_takes_one_arg+:} false; then :
12769 $as_echo_n "(cached) " >&6
12770 else
12771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12772 /* end confdefs.h. */
12774 #include <sys/types.h>
12775 #ifdef HAVE_SYS_STAT_H
12776 # include <sys/stat.h>
12777 #endif
12778 #ifdef HAVE_UNISTD_H
12779 # include <unistd.h>
12780 #endif
12781 #ifdef HAVE_DIRECT_H
12782 # include <direct.h>
12783 #endif
12785 main ()
12787 mkdir ("foo", 0);
12789 return 0;
12791 _ACEOF
12792 if ac_fn_cxx_try_compile "$LINENO"; then :
12793 gcc_cv_mkdir_takes_one_arg=no
12794 else
12795 gcc_cv_mkdir_takes_one_arg=yes
12797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
12800 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
12801 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
12803 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
12808 # File extensions
12809 manext='.1'
12810 objext='.o'
12814 # With Setjmp/Longjmp based exception handling.
12815 # Check whether --enable-sjlj-exceptions was given.
12816 if test "${enable_sjlj_exceptions+set}" = set; then :
12817 enableval=$enable_sjlj_exceptions; force_sjlj_exceptions=yes
12818 else
12819 case $target in
12820 lm32*-*-*)
12821 force_sjlj_exceptions=yes
12822 enableval=yes
12825 force_sjlj_exceptions=no
12827 esac
12830 if test $force_sjlj_exceptions = yes; then
12831 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
12833 cat >>confdefs.h <<_ACEOF
12834 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
12835 _ACEOF
12839 # --------------------------------------------------------
12840 # Build, host, and target specific configuration fragments
12841 # --------------------------------------------------------
12843 # Collect build-machine-specific information.
12844 . ${srcdir}/config.build || exit 1
12846 # Collect host-machine-specific information.
12847 . ${srcdir}/config.host || exit 1
12849 target_gtfiles=
12851 # Collect target-machine-specific information.
12852 . ${srcdir}/config.gcc || exit 1
12854 extra_objs="${host_extra_objs} ${extra_objs}"
12855 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
12857 # Default the target-machine variables that were not explicitly set.
12858 if test x"$tm_file" = x
12859 then tm_file=$cpu_type/$cpu_type.h; fi
12861 if test x"$extra_headers" = x
12862 then extra_headers=; fi
12864 if test x$md_file = x
12865 then md_file=$cpu_type/$cpu_type.md; fi
12867 if test x$out_file = x
12868 then out_file=$cpu_type/$cpu_type.cc; fi
12870 if test x"$tmake_file" = x
12871 then tmake_file=$cpu_type/t-$cpu_type
12874 # Support --enable-initfini-array.
12875 if test x$enable_initfini_array != xno; then
12876 tm_file="${tm_file} initfini-array.h"
12879 if test x"$dwarf2" = xyes
12880 then tm_file="$tm_file tm-dwarf2.h"
12883 # Say what files are being used for the output code and MD file.
12884 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
12885 echo "Using \`$srcdir/config/$md_file' as machine description file."
12887 # If any of the xm_file variables contain nonexistent files, warn
12888 # about them and drop them.
12891 for x in $build_xm_file; do
12892 if test -f $srcdir/config/$x
12893 then bx="$bx $x"
12894 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
12895 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12897 done
12898 build_xm_file="$bx"
12901 for x in $host_xm_file; do
12902 if test -f $srcdir/config/$x
12903 then hx="$hx $x"
12904 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
12905 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12907 done
12908 host_xm_file="$hx"
12911 for x in $xm_file; do
12912 if test -f $srcdir/config/$x
12913 then tx="$tx $x"
12914 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
12915 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12917 done
12918 xm_file="$tx"
12920 count=a
12921 for f in $tm_file; do
12922 count=${count}x
12923 done
12924 if test $count = ax; then
12925 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
12926 else
12927 echo "Using the following target machine macro files:"
12928 for f in $tm_file; do
12929 echo " $srcdir/config/$f"
12930 done
12933 if test x$use_long_long_for_widest_fast_int = xyes; then
12935 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
12939 gnu_ld_bool=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
12941 cat >>confdefs.h <<_ACEOF
12942 #define HAVE_GNU_LD $gnu_ld_bool
12943 _ACEOF
12946 gnu_as_bool=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
12948 cat >>confdefs.h <<_ACEOF
12949 #define HAVE_GNU_AS $gnu_as_bool
12950 _ACEOF
12953 count=a
12954 for f in $host_xm_file; do
12955 count=${count}x
12956 done
12957 if test $count = a; then
12959 elif test $count = ax; then
12960 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
12961 else
12962 echo "Using the following host machine macro files:"
12963 for f in $host_xm_file; do
12964 echo " $srcdir/config/$f"
12965 done
12967 echo "Using ${out_host_hook_obj} for host machine hooks."
12969 if test "$host_xm_file" != "$build_xm_file"; then
12970 count=a
12971 for f in $build_xm_file; do
12972 count=${count}x
12973 done
12974 if test $count = a; then
12976 elif test $count = ax; then
12977 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
12978 else
12979 echo "Using the following build machine macro files:"
12980 for f in $build_xm_file; do
12981 echo " $srcdir/config/$f"
12982 done
12986 if test -n "$configured_native_system_header_dir"; then
12987 native_system_header_dir=$configured_native_system_header_dir
12989 NATIVE_SYSTEM_HEADER_DIR="$native_system_header_dir"
12992 case ${host} in
12993 powerpc*-*-darwin*)
12994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
12995 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
12996 if ${gcc_cv_mcontext_underscores+:} false; then :
12997 $as_echo_n "(cached) " >&6
12998 else
12999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13000 /* end confdefs.h. */
13002 #include <sys/cdefs.h>
13003 #include <sys/signal.h>
13004 #include <ucontext.h>
13005 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
13007 _ACEOF
13008 if ac_fn_cxx_try_compile "$LINENO"; then :
13009 gcc_cv_mcontext_underscores=no
13010 else
13011 gcc_cv_mcontext_underscores=yes
13013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
13016 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
13017 if test $gcc_cv_mcontext_underscores = yes; then
13019 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
13023 esac
13025 # ---------
13026 # Threading
13027 # ---------
13029 # Check if a valid thread package
13030 case ${enable_threads} in
13031 "" | no)
13032 # No threads
13033 target_thread_file='single'
13035 yes)
13036 # default
13037 target_thread_file='single'
13039 aix | dce | lynx | mipssde | posix | rtems | \
13040 single | tpf | vxworks | win32 | mcf)
13041 target_thread_file=${enable_threads}
13044 echo "${enable_threads} is an unknown thread package" 1>&2
13045 exit 1
13047 esac
13049 if test x${thread_file} = x; then
13050 # No thread file set by target-specific clauses in config.gcc,
13051 # so use file chosen by default logic above
13052 thread_file=${target_thread_file}
13055 # --------
13056 # UNSORTED
13057 # --------
13059 use_cxa_atexit=no
13060 if test x$enable___cxa_atexit = xyes || \
13061 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
13062 if test x$host = x$target; then
13063 case $host in
13064 # mingw32 doesn't have __cxa_atexit but uses atexit registration
13065 # keyed to flag_use_cxa_atexit
13066 *-*-mingw32*)
13067 use_cxa_atexit=yes
13069 powerpc-ibm-aix*)
13070 use_cxa_atexit=yes
13073 ac_fn_cxx_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
13074 if test "x$ac_cv_func___cxa_atexit" = xyes; then :
13075 use_cxa_atexit=yes
13076 else
13077 echo "__cxa_atexit can't be enabled on this target"
13081 esac
13082 else
13083 # We can't check for __cxa_atexit when building a cross, so assume
13084 # it is available
13085 use_cxa_atexit=yes
13087 if test x$use_cxa_atexit = xyes; then
13089 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
13094 # Look for a file containing extra machine modes.
13095 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
13096 extra_modes_file='$(srcdir)'/config/${extra_modes}
13099 cat >>confdefs.h <<_ACEOF
13100 #define EXTRA_MODES_FILE "config/$extra_modes"
13101 _ACEOF
13105 # Convert extra_options into a form suitable for Makefile use.
13106 extra_opt_files=
13107 all_opt_files=
13108 for f in $extra_options; do
13109 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
13110 all_opt_files="$all_opt_files $srcdir/config/$f"
13111 done
13114 # auto-host.h is the file containing items generated by autoconf and is
13115 # the first file included by config.h.
13116 # If host=build, it is correct to have bconfig include auto-host.h
13117 # as well. If host!=build, we are in error and need to do more
13118 # work to find out the build config parameters.
13119 if test x$host = x$build
13120 then
13121 build_auto=auto-host.h
13122 HAVE_AUTO_BUILD='# '
13123 else
13124 # We create a subdir, then run autoconf in the subdir.
13125 # To prevent recursion we set host and build for the new
13126 # invocation of configure to the build for this invocation
13127 # of configure.
13128 tempdir=build.$$
13129 rm -rf $tempdir
13130 mkdir $tempdir
13131 cd $tempdir
13132 case ${srcdir} in
13133 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
13134 *) realsrcdir=../${srcdir};;
13135 esac
13136 # Clearing GMPINC is necessary to prevent host headers being
13137 # used by the build compiler. Defining GENERATOR_FILE stops
13138 # system.h from including gmp.h.
13139 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
13140 CXX="${CXX_FOR_BUILD}" CXXFLAGS="${CXXFLAGS_FOR_BUILD}" \
13141 LD="${LD_FOR_BUILD}" LDFLAGS="${LDFLAGS_FOR_BUILD}" \
13142 GMPINC="" CPPFLAGS="${CPPFLAGS_FOR_BUILD} -DGENERATOR_FILE" \
13143 ${realsrcdir}/configure \
13144 --enable-languages=${enable_languages-all} \
13145 ${enable_obsolete+--enable-obsolete="$enable_obsolete"} \
13146 ${enable_option_checking+--enable-option-checking="$enable_option_checking"} \
13147 --target=$target_alias --host=$build_alias \
13148 --build=$build_alias || exit # retaining $tempdir
13150 # We just finished tests for the build machine, so rename
13151 # the file auto-build.h in the gcc directory.
13152 mv auto-host.h ../auto-build.h
13153 cd ..
13154 rm -rf $tempdir
13155 build_auto=auto-build.h
13156 HAVE_AUTO_BUILD=
13161 tm_file="${tm_file} defaults.h"
13162 tm_p_file="${tm_p_file} tm-preds.h"
13163 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
13164 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
13165 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
13166 # put this back in temporarily.
13167 xm_file="auto-host.h ansidecl.h ${xm_file}"
13169 # --------
13170 # UNSORTED
13171 # --------
13173 # Compile in configure arguments.
13174 if test -f configargs.h ; then
13175 # Being re-configured.
13176 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
13177 gcc_reconf_arguments=`echo "$gcc_config_arguments" | sed -e 's/^.*\( : (reconfigured) .*$\)/\1/'`
13178 if [ "$gcc_reconf_arguments" != " : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS" ]; then
13179 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
13181 else
13182 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
13185 # Double all backslashes and backslash all quotes to turn
13186 # gcc_config_arguments into a C string.
13187 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
13188 $gcc_config_arguments
13190 gcc_config_arguments_str=`cat conftest.out`
13191 rm -f conftest.out
13193 cat > configargs.h <<EOF
13194 /* Generated automatically. */
13195 static const char configuration_arguments[] = "$gcc_config_arguments_str";
13196 static const char thread_model[] = "$thread_file";
13198 static const struct {
13199 const char *name, *value;
13200 } configure_default_options[] = $configure_default_options;
13203 gcc_BASEVER=`cat $srcdir/BASE-VER`
13204 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
13205 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
13206 if test -f $srcdir/REVISION ; then
13207 gcc_REVISION=`cat $srcdir/REVISION`
13208 else
13209 gcc_REVISION=""
13211 cat > plugin-version.h <<EOF
13212 #include "configargs.h"
13214 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
13215 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
13216 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
13217 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
13219 static char basever[] = "$gcc_BASEVER";
13220 static char datestamp[] = "$gcc_DATESTAMP";
13221 static char devphase[] = "$gcc_DEVPHASE";
13222 static char revision[] = "$gcc_REVISION";
13224 /* FIXME plugins: We should make the version information more precise.
13225 One way to do is to add a checksum. */
13227 static struct plugin_gcc_version gcc_version = {basever, datestamp,
13228 devphase, revision,
13229 configuration_arguments};
13232 # Determine what GCC version number to use in filesystem paths.
13234 get_gcc_base_ver="cat"
13236 # Check whether --with-gcc-major-version-only was given.
13237 if test "${with_gcc_major_version_only+set}" = set; then :
13238 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
13239 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
13247 # Internationalization
13248 # If we haven't got the data from the intl directory,
13249 # assume NLS is disabled.
13250 USE_NLS=no
13251 LIBINTL=
13252 LIBINTL_DEP=
13253 INCINTL=
13254 XGETTEXT=
13255 GMSGFMT=
13256 POSUB=
13258 if test -f ../intl/config.intl; then
13259 . ../intl/config.intl
13261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
13262 $as_echo_n "checking whether NLS is requested... " >&6; }
13263 if test x"$USE_NLS" != xyes; then
13264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13265 $as_echo "no" >&6; }
13266 else
13267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13268 $as_echo "yes" >&6; }
13270 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
13273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
13274 $as_echo_n "checking for catalogs to be installed... " >&6; }
13275 # Look for .po and .gmo files in the source directory.
13276 CATALOGS=
13277 XLINGUAS=
13278 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
13279 # If there aren't any .gmo files the shell will give us the
13280 # literal string "../path/to/srcdir/po/*.gmo" which has to be
13281 # weeded out.
13282 case "$cat" in *\**)
13283 continue;;
13284 esac
13285 # The quadruple backslash is collapsed to a double backslash
13286 # by the backticks, then collapsed again by the double quotes,
13287 # leaving us with one backslash in the sed expression (right
13288 # before the dot that mustn't act as a wildcard).
13289 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
13290 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
13291 # The user is allowed to set LINGUAS to a list of languages to
13292 # install catalogs for. If it's empty that means "all of them."
13293 if test "x$LINGUAS" = x; then
13294 CATALOGS="$CATALOGS $cat"
13295 XLINGUAS="$XLINGUAS $lang"
13296 else
13297 case "$LINGUAS" in *$lang*)
13298 CATALOGS="$CATALOGS $cat"
13299 XLINGUAS="$XLINGUAS $lang"
13301 esac
13303 done
13304 LINGUAS="$XLINGUAS"
13305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
13306 $as_echo "$LINGUAS" >&6; }
13309 DATADIRNAME=share
13311 INSTOBJEXT=.mo
13313 GENCAT=gencat
13315 CATOBJEXT=.gmo
13319 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
13320 # -liconv on the link line twice.
13321 case "$LIBINTL" in *$LIBICONV*)
13322 LIBICONV= ;;
13323 esac
13325 # Check whether --enable-secureplt was given.
13326 if test "${enable_secureplt+set}" = set; then :
13327 enableval=$enable_secureplt;
13331 # Check whether --enable-mingw-wildcard was given.
13332 if test "${enable_mingw_wildcard+set}" = set; then :
13333 enableval=$enable_mingw_wildcard;
13334 else
13335 enable_mingw_wildcard=platform
13338 if test x"$enable_mingw_wildcard" != xplatform ; then :
13340 cat >>confdefs.h <<_ACEOF
13341 #define MINGW_DOWILDCARD $(test x"$enable_mingw_wildcard" = xno; echo $?)
13342 _ACEOF
13346 # Check whether --enable-large-address-aware was given.
13347 if test "${enable_large_address_aware+set}" = set; then :
13348 enableval=$enable_large_address_aware;
13351 if test x"$enable_large_address_aware" = xyes; then :
13353 $as_echo "#define MINGW_DEFAULT_LARGE_ADDR_AWARE 1" >>confdefs.h
13357 # Check whether --enable-leading-mingw64-underscores was given.
13358 if test "${enable_leading_mingw64_underscores+set}" = set; then :
13359 enableval=$enable_leading_mingw64_underscores;
13362 if test x"$enable_leading_mingw64_underscores" = xyes ; then :
13364 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
13368 # Check whether --enable-cld was given.
13369 if test "${enable_cld+set}" = set; then :
13370 enableval=$enable_cld;
13371 else
13372 enable_cld=no
13376 # Check whether --enable-frame-pointer was given.
13377 if test "${enable_frame_pointer+set}" = set; then :
13378 enableval=$enable_frame_pointer;
13379 else
13381 case $target_os in
13382 linux* | gnu* | darwin[8912]* | cygwin* | mingw*)
13383 # Enable -fomit-frame-pointer by default for these systems with DWARF2.
13384 enable_frame_pointer=no
13387 enable_frame_pointer=yes
13389 esac
13394 case $target in
13395 i[34567]86-*-* | x86_64-*-*)
13396 if test "x$enable_cld" = xyes; then
13397 tm_defines="${tm_defines} USE_IX86_CLD=1"
13399 if test "x$enable_frame_pointer" = xyes; then
13400 tm_defines="${tm_defines} USE_IX86_FRAME_POINTER=1"
13403 esac
13405 # Windows32 Registry support for specifying GCC installation paths.
13406 # Check whether --enable-win32-registry was given.
13407 if test "${enable_win32_registry+set}" = set; then :
13408 enableval=$enable_win32_registry;
13412 case $host_os in
13413 win32 | pe | cygwin* | mingw32*)
13414 if test "x$enable_win32_registry" != xno; then
13415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
13416 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
13417 if ${ac_cv_search_RegOpenKeyExA+:} false; then :
13418 $as_echo_n "(cached) " >&6
13419 else
13420 ac_func_search_save_LIBS=$LIBS
13421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13422 /* end confdefs.h. */
13424 /* Override any GCC internal prototype to avoid an error.
13425 Use char because int might match the return type of a GCC
13426 builtin and then its argument prototype would still apply. */
13427 #ifdef __cplusplus
13428 extern "C"
13429 #endif
13430 char RegOpenKeyExA ();
13432 main ()
13434 return RegOpenKeyExA ();
13436 return 0;
13438 _ACEOF
13439 for ac_lib in '' advapi32; do
13440 if test -z "$ac_lib"; then
13441 ac_res="none required"
13442 else
13443 ac_res=-l$ac_lib
13444 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13446 if ac_fn_cxx_try_link "$LINENO"; then :
13447 ac_cv_search_RegOpenKeyExA=$ac_res
13449 rm -f core conftest.err conftest.$ac_objext \
13450 conftest$ac_exeext
13451 if ${ac_cv_search_RegOpenKeyExA+:} false; then :
13452 break
13454 done
13455 if ${ac_cv_search_RegOpenKeyExA+:} false; then :
13457 else
13458 ac_cv_search_RegOpenKeyExA=no
13460 rm conftest.$ac_ext
13461 LIBS=$ac_func_search_save_LIBS
13463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
13464 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
13465 ac_res=$ac_cv_search_RegOpenKeyExA
13466 if test "$ac_res" != no; then :
13467 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13469 else
13470 enable_win32_registry=no
13475 if test "x$enable_win32_registry" != xno; then
13477 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
13480 if test "x$enable_win32_registry" != xyes \
13481 && test "x$enable_win32_registry" != x; then
13483 cat >>confdefs.h <<_ACEOF
13484 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
13485 _ACEOF
13490 esac
13492 # Get an absolute path to the GCC top-level source directory
13493 holddir=`${PWDCMD-pwd}`
13494 cd $srcdir
13495 topdir=`${PWDCMD-pwd}`
13496 cd $holddir
13498 # Conditionalize the makefile for this host machine.
13499 xmake_file=
13500 for f in ${host_xmake_file}
13502 if test -f ${srcdir}/config/$f
13503 then
13504 xmake_file="${xmake_file} \$(srcdir)/config/$f"
13506 done
13508 # Conditionalize the makefile for this target machine.
13509 tmake_file_=
13510 for f in ${tmake_file}
13512 if test -f ${srcdir}/config/$f
13513 then
13514 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
13516 done
13517 tmake_file="${tmake_file_}${omp_device_property_tmake_file}"
13519 out_object_file=`basename $out_file .cc`.o
13520 common_out_object_file=`basename $common_out_file .cc`.o
13522 tm_file_list="options.h"
13523 tm_include_list="options.h insn-constants.h"
13524 for f in $tm_file; do
13525 case $f in
13526 ./* )
13527 f=`echo $f | sed 's/^..//'`
13528 tm_file_list="${tm_file_list} $f"
13529 tm_include_list="${tm_include_list} $f"
13531 defaults.h )
13532 tm_file_list="${tm_file_list} \$(srcdir)/$f"
13533 tm_include_list="${tm_include_list} $f"
13536 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
13537 tm_include_list="${tm_include_list} config/$f"
13539 esac
13540 done
13542 tm_p_file_list=
13543 tm_p_include_list=
13544 for f in $tm_p_file; do
13545 case $f in
13546 tm-preds.h )
13547 tm_p_file_list="${tm_p_file_list} $f"
13548 tm_p_include_list="${tm_p_include_list} $f"
13551 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
13552 tm_p_include_list="${tm_p_include_list} config/$f"
13553 esac
13554 done
13556 tm_d_file_list=
13557 tm_d_include_list=
13558 for f in $tm_d_file; do
13559 case $f in
13561 tm_d_file_list="${tm_d_file_list} \$(srcdir)/config/$f"
13562 tm_d_include_list="${tm_d_include_list} config/$f"
13564 esac
13565 done
13567 xm_file_list=
13568 xm_include_list=
13569 for f in $xm_file; do
13570 case $f in
13571 ansidecl.h )
13572 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
13573 xm_include_list="${xm_include_list} $f"
13575 auto-host.h )
13576 xm_file_list="${xm_file_list} $f"
13577 xm_include_list="${xm_include_list} $f"
13580 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
13581 xm_include_list="${xm_include_list} config/$f"
13583 esac
13584 done
13586 host_xm_file_list=
13587 host_xm_include_list=
13588 for f in $host_xm_file; do
13589 case $f in
13590 ansidecl.h )
13591 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
13592 host_xm_include_list="${host_xm_include_list} $f"
13594 auto-host.h )
13595 host_xm_file_list="${host_xm_file_list} $f"
13596 host_xm_include_list="${host_xm_include_list} $f"
13599 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
13600 host_xm_include_list="${host_xm_include_list} config/$f"
13602 esac
13603 done
13605 build_xm_file_list=
13606 for f in $build_xm_file; do
13607 case $f in
13608 ansidecl.h )
13609 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
13610 build_xm_include_list="${build_xm_include_list} $f"
13612 auto-build.h | auto-host.h )
13613 build_xm_file_list="${build_xm_file_list} $f"
13614 build_xm_include_list="${build_xm_include_list} $f"
13617 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
13618 build_xm_include_list="${build_xm_include_list} config/$f"
13620 esac
13621 done
13623 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
13624 # cross-compiler which does not use the native headers and libraries.
13625 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
13626 CROSS=
13627 ALL=all.internal
13628 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
13629 BUILD_SYSTEM_HEADER_DIR=$SYSTEM_HEADER_DIR
13631 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x ||
13632 test x$build != x$host || test "x$with_build_sysroot" != x; then
13633 if test "x$with_build_sysroot" != x; then
13634 BUILD_SYSTEM_HEADER_DIR=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
13635 else
13636 BUILD_SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
13639 if test x$host != x$target
13640 then
13641 CROSS="-DCROSS_DIRECTORY_STRUCTURE"
13642 ALL=all.cross
13643 SYSTEM_HEADER_DIR=$BUILD_SYSTEM_HEADER_DIR
13644 elif test "x$TARGET_SYSTEM_ROOT" != x; then
13645 SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
13648 if test "x$with_build_sysroot" != "x"; then
13649 target_header_dir="${with_build_sysroot}${native_system_header_dir}"
13650 elif test "x$with_sysroot" = x; then
13651 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-include"
13652 elif test "x$with_sysroot" = xyes; then
13653 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
13654 else
13655 target_header_dir="${with_sysroot}${native_system_header_dir}"
13657 else
13658 target_header_dir=${native_system_header_dir}
13661 # If this is a cross-compiler that does not
13662 # have its own set of headers then define
13663 # inhibit_libc
13665 # If this is using newlib, without having the headers available now,
13666 # then define inhibit_libc in LIBGCC2_CFLAGS.
13667 # This prevents libgcc2 from containing any code which requires libc
13668 # support.
13669 : ${inhibit_libc=false}
13670 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
13671 test x$with_newlib = xyes ; } &&
13672 { test "x$with_headers" = xno || test ! -f "$target_header_dir/stdio.h"; } ; then
13673 inhibit_libc=true
13677 # When building gcc with a cross-compiler, we need to adjust things so
13678 # that the generator programs are still built with the native compiler.
13679 # Also, we cannot run fixincludes.
13681 # These are the normal (build=host) settings:
13682 CC_FOR_BUILD='$(CC)'
13683 CXX_FOR_BUILD='$(CXX)'
13684 BUILD_CFLAGS='$(ALL_CFLAGS)'
13685 BUILD_CXXFLAGS='$(ALL_CXXFLAGS)'
13686 BUILD_LDFLAGS='$(LDFLAGS)'
13687 STMP_FIXINC=stmp-fixinc
13689 # And these apply if build != host, or we are generating coverage data
13690 if test x$build != x$host || test "x$coverage_flags" != x
13691 then
13692 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS-$@) $(CFLAGS_FOR_BUILD)'
13693 BUILD_CXXFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS-$@) $(CXXFLAGS_FOR_BUILD)'
13694 BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
13698 if test x$enable_fixincludes = xno;
13699 then
13700 STMP_FIXINC=''
13703 # Expand extra_headers to include complete path.
13704 # This substitutes for lots of t-* files.
13705 extra_headers_list=
13706 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
13707 for file in ${extra_headers} ; do
13708 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
13709 done
13711 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
13712 if test x"$use_gcc_tgmath" = xyes
13713 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
13716 # Define collect2 in Makefile.
13717 case $host_can_use_collect2 in
13718 no) collect2= ;;
13719 *) collect2='collect2$(exeext)' ;;
13720 esac
13723 # Add a definition of USE_COLLECT2 if system wants one.
13724 case $use_collect2 in
13725 no) use_collect2= ;;
13726 "") ;;
13728 host_xm_defines="${host_xm_defines} USE_COLLECT2"
13729 xm_defines="${xm_defines} USE_COLLECT2"
13730 case $host_can_use_collect2 in
13732 as_fn_error $? "collect2 is required but cannot be built on this system" "$LINENO" 5
13734 esac
13736 esac
13739 cat >>confdefs.h <<_ACEOF
13740 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
13741 _ACEOF
13744 # ---------------------------
13745 # Assembler & linker features
13746 # ---------------------------
13748 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
13749 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
13750 # However when ld-new is first executed from the build tree, libtool will
13751 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
13752 # to the build tree. While doing this we need to use the previous-stage
13753 # linker, or we have an infinite loop. The presence of a shell script as
13754 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
13755 # the gcc/collect-ld script. So we need to know how libtool works, or
13756 # exec-tool will fail.
13759 case `pwd` in
13760 *\ * | *\ *)
13761 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
13762 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
13763 esac
13767 macro_version='2.2.7a'
13768 macro_revision='1.3134'
13782 ltmain="$ac_aux_dir/ltmain.sh"
13784 # Backslashify metacharacters that are still active within
13785 # double-quoted strings.
13786 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
13788 # Same as above, but do not quote variable references.
13789 double_quote_subst='s/\(["`\\]\)/\\\1/g'
13791 # Sed substitution to delay expansion of an escaped shell variable in a
13792 # double_quote_subst'ed string.
13793 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
13795 # Sed substitution to delay expansion of an escaped single quote.
13796 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
13798 # Sed substitution to avoid accidental globbing in evaled expressions
13799 no_glob_subst='s/\*/\\\*/g'
13801 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13802 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
13803 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
13805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
13806 $as_echo_n "checking how to print strings... " >&6; }
13807 # Test print first, because it will be a builtin if present.
13808 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
13809 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
13810 ECHO='print -r --'
13811 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
13812 ECHO='printf %s\n'
13813 else
13814 # Use this function as a fallback that always works.
13815 func_fallback_echo ()
13817 eval 'cat <<_LTECHO_EOF
13819 _LTECHO_EOF'
13821 ECHO='func_fallback_echo'
13824 # func_echo_all arg...
13825 # Invoke $ECHO with all args, space-separated.
13826 func_echo_all ()
13828 $ECHO ""
13831 case "$ECHO" in
13832 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
13833 $as_echo "printf" >&6; } ;;
13834 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
13835 $as_echo "print -r" >&6; } ;;
13836 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
13837 $as_echo "cat" >&6; } ;;
13838 esac
13853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
13854 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
13855 if ${ac_cv_path_SED+:} false; then :
13856 $as_echo_n "(cached) " >&6
13857 else
13858 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
13859 for ac_i in 1 2 3 4 5 6 7; do
13860 ac_script="$ac_script$as_nl$ac_script"
13861 done
13862 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
13863 { ac_script=; unset ac_script;}
13864 if test -z "$SED"; then
13865 ac_path_SED_found=false
13866 # Loop through the user's path and test for each of PROGNAME-LIST
13867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13868 for as_dir in $PATH
13870 IFS=$as_save_IFS
13871 test -z "$as_dir" && as_dir=.
13872 for ac_prog in sed gsed; do
13873 for ac_exec_ext in '' $ac_executable_extensions; do
13874 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
13875 as_fn_executable_p "$ac_path_SED" || continue
13876 # Check for GNU ac_path_SED and select it if it is found.
13877 # Check for GNU $ac_path_SED
13878 case `"$ac_path_SED" --version 2>&1` in
13879 *GNU*)
13880 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
13882 ac_count=0
13883 $as_echo_n 0123456789 >"conftest.in"
13884 while :
13886 cat "conftest.in" "conftest.in" >"conftest.tmp"
13887 mv "conftest.tmp" "conftest.in"
13888 cp "conftest.in" "conftest.nl"
13889 $as_echo '' >> "conftest.nl"
13890 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
13891 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13892 as_fn_arith $ac_count + 1 && ac_count=$as_val
13893 if test $ac_count -gt ${ac_path_SED_max-0}; then
13894 # Best one so far, save it but keep looking for a better one
13895 ac_cv_path_SED="$ac_path_SED"
13896 ac_path_SED_max=$ac_count
13898 # 10*(2^10) chars as input seems more than enough
13899 test $ac_count -gt 10 && break
13900 done
13901 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13902 esac
13904 $ac_path_SED_found && break 3
13905 done
13906 done
13907 done
13908 IFS=$as_save_IFS
13909 if test -z "$ac_cv_path_SED"; then
13910 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
13912 else
13913 ac_cv_path_SED=$SED
13917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
13918 $as_echo "$ac_cv_path_SED" >&6; }
13919 SED="$ac_cv_path_SED"
13920 rm -f conftest.sed
13922 test -z "$SED" && SED=sed
13923 Xsed="$SED -e 1s/^X//"
13935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
13936 $as_echo_n "checking for fgrep... " >&6; }
13937 if ${ac_cv_path_FGREP+:} false; then :
13938 $as_echo_n "(cached) " >&6
13939 else
13940 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
13941 then ac_cv_path_FGREP="$GREP -F"
13942 else
13943 if test -z "$FGREP"; then
13944 ac_path_FGREP_found=false
13945 # Loop through the user's path and test for each of PROGNAME-LIST
13946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13947 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
13949 IFS=$as_save_IFS
13950 test -z "$as_dir" && as_dir=.
13951 for ac_prog in fgrep; do
13952 for ac_exec_ext in '' $ac_executable_extensions; do
13953 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
13954 as_fn_executable_p "$ac_path_FGREP" || continue
13955 # Check for GNU ac_path_FGREP and select it if it is found.
13956 # Check for GNU $ac_path_FGREP
13957 case `"$ac_path_FGREP" --version 2>&1` in
13958 *GNU*)
13959 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
13961 ac_count=0
13962 $as_echo_n 0123456789 >"conftest.in"
13963 while :
13965 cat "conftest.in" "conftest.in" >"conftest.tmp"
13966 mv "conftest.tmp" "conftest.in"
13967 cp "conftest.in" "conftest.nl"
13968 $as_echo 'FGREP' >> "conftest.nl"
13969 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
13970 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13971 as_fn_arith $ac_count + 1 && ac_count=$as_val
13972 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
13973 # Best one so far, save it but keep looking for a better one
13974 ac_cv_path_FGREP="$ac_path_FGREP"
13975 ac_path_FGREP_max=$ac_count
13977 # 10*(2^10) chars as input seems more than enough
13978 test $ac_count -gt 10 && break
13979 done
13980 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13981 esac
13983 $ac_path_FGREP_found && break 3
13984 done
13985 done
13986 done
13987 IFS=$as_save_IFS
13988 if test -z "$ac_cv_path_FGREP"; then
13989 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
13991 else
13992 ac_cv_path_FGREP=$FGREP
13997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
13998 $as_echo "$ac_cv_path_FGREP" >&6; }
13999 FGREP="$ac_cv_path_FGREP"
14002 test -z "$GREP" && GREP=grep
14022 # Check whether --with-gnu-ld was given.
14023 if test "${with_gnu_ld+set}" = set; then :
14024 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
14025 else
14026 with_gnu_ld=no
14029 ac_prog=ld
14030 if test "$GCC" = yes; then
14031 # Check if gcc -print-prog-name=ld gives a path.
14032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
14033 $as_echo_n "checking for ld used by $CC... " >&6; }
14034 case $host in
14035 *-*-mingw*)
14036 # gcc leaves a trailing carriage return which upsets mingw
14037 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14039 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14040 esac
14041 case $ac_prog in
14042 # Accept absolute paths.
14043 [\\/]* | ?:[\\/]*)
14044 re_direlt='/[^/][^/]*/\.\./'
14045 # Canonicalize the pathname of ld
14046 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
14047 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
14048 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
14049 done
14050 test -z "$LD" && LD="$ac_prog"
14053 # If it fails, then pretend we aren't using GCC.
14054 ac_prog=ld
14057 # If it is relative, then search for the first ld in PATH.
14058 with_gnu_ld=unknown
14060 esac
14061 elif test "$with_gnu_ld" = yes; then
14062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
14063 $as_echo_n "checking for GNU ld... " >&6; }
14064 else
14065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
14066 $as_echo_n "checking for non-GNU ld... " >&6; }
14068 if ${lt_cv_path_LD+:} false; then :
14069 $as_echo_n "(cached) " >&6
14070 else
14071 if test -z "$LD"; then
14072 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14073 for ac_dir in $PATH; do
14074 IFS="$lt_save_ifs"
14075 test -z "$ac_dir" && ac_dir=.
14076 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14077 lt_cv_path_LD="$ac_dir/$ac_prog"
14078 # Check to see if the program is GNU ld. I'd rather use --version,
14079 # but apparently some variants of GNU ld only accept -v.
14080 # Break only if it was the GNU/non-GNU ld that we prefer.
14081 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
14082 *GNU* | *'with BFD'*)
14083 test "$with_gnu_ld" != no && break
14086 test "$with_gnu_ld" != yes && break
14088 esac
14090 done
14091 IFS="$lt_save_ifs"
14092 else
14093 lt_cv_path_LD="$LD" # Let the user override the test with a path.
14097 LD="$lt_cv_path_LD"
14098 if test -n "$LD"; then
14099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
14100 $as_echo "$LD" >&6; }
14101 else
14102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14103 $as_echo "no" >&6; }
14105 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
14106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
14107 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
14108 if ${lt_cv_prog_gnu_ld+:} false; then :
14109 $as_echo_n "(cached) " >&6
14110 else
14111 # I'd rather use --version here, but apparently some GNU lds only accept -v.
14112 case `$LD -v 2>&1 </dev/null` in
14113 *GNU* | *'with BFD'*)
14114 lt_cv_prog_gnu_ld=yes
14117 lt_cv_prog_gnu_ld=no
14119 esac
14121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
14122 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
14123 with_gnu_ld=$lt_cv_prog_gnu_ld
14133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
14134 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
14135 if ${lt_cv_path_NM+:} false; then :
14136 $as_echo_n "(cached) " >&6
14137 else
14138 if test -n "$NM"; then
14139 # Let the user override the test.
14140 lt_cv_path_NM="$NM"
14141 else
14142 lt_nm_to_check="${ac_tool_prefix}nm"
14143 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
14144 lt_nm_to_check="$lt_nm_to_check nm"
14146 for lt_tmp_nm in $lt_nm_to_check; do
14147 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14148 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
14149 IFS="$lt_save_ifs"
14150 test -z "$ac_dir" && ac_dir=.
14151 tmp_nm="$ac_dir/$lt_tmp_nm"
14152 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
14153 # Check to see if the nm accepts a BSD-compat flag.
14154 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
14155 # nm: unknown option "B" ignored
14156 # Tru64's nm complains that /dev/null is an invalid object file
14157 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
14158 */dev/null* | *'Invalid file or object type'*)
14159 lt_cv_path_NM="$tmp_nm -B"
14160 break
14163 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
14164 */dev/null*)
14165 lt_cv_path_NM="$tmp_nm -p"
14166 break
14169 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
14170 continue # so that we can try to find one that supports BSD flags
14172 esac
14174 esac
14176 done
14177 IFS="$lt_save_ifs"
14178 done
14179 : ${lt_cv_path_NM=no}
14182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
14183 $as_echo "$lt_cv_path_NM" >&6; }
14184 if test "$lt_cv_path_NM" != "no"; then
14185 NM="$lt_cv_path_NM"
14186 else
14187 # Didn't find any BSD compatible name lister, look for dumpbin.
14188 if test -n "$DUMPBIN"; then :
14189 # Let the user override the test.
14190 else
14191 if test -n "$ac_tool_prefix"; then
14192 for ac_prog in dumpbin "link -dump"
14194 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
14195 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
14196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14197 $as_echo_n "checking for $ac_word... " >&6; }
14198 if ${ac_cv_prog_DUMPBIN+:} false; then :
14199 $as_echo_n "(cached) " >&6
14200 else
14201 if test -n "$DUMPBIN"; then
14202 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
14203 else
14204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14205 for as_dir in $PATH
14207 IFS=$as_save_IFS
14208 test -z "$as_dir" && as_dir=.
14209 for ac_exec_ext in '' $ac_executable_extensions; do
14210 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14211 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
14212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14213 break 2
14215 done
14216 done
14217 IFS=$as_save_IFS
14221 DUMPBIN=$ac_cv_prog_DUMPBIN
14222 if test -n "$DUMPBIN"; then
14223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
14224 $as_echo "$DUMPBIN" >&6; }
14225 else
14226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14227 $as_echo "no" >&6; }
14231 test -n "$DUMPBIN" && break
14232 done
14234 if test -z "$DUMPBIN"; then
14235 ac_ct_DUMPBIN=$DUMPBIN
14236 for ac_prog in dumpbin "link -dump"
14238 # Extract the first word of "$ac_prog", so it can be a program name with args.
14239 set dummy $ac_prog; ac_word=$2
14240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14241 $as_echo_n "checking for $ac_word... " >&6; }
14242 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
14243 $as_echo_n "(cached) " >&6
14244 else
14245 if test -n "$ac_ct_DUMPBIN"; then
14246 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
14247 else
14248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14249 for as_dir in $PATH
14251 IFS=$as_save_IFS
14252 test -z "$as_dir" && as_dir=.
14253 for ac_exec_ext in '' $ac_executable_extensions; do
14254 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14255 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
14256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14257 break 2
14259 done
14260 done
14261 IFS=$as_save_IFS
14265 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
14266 if test -n "$ac_ct_DUMPBIN"; then
14267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
14268 $as_echo "$ac_ct_DUMPBIN" >&6; }
14269 else
14270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14271 $as_echo "no" >&6; }
14275 test -n "$ac_ct_DUMPBIN" && break
14276 done
14278 if test "x$ac_ct_DUMPBIN" = x; then
14279 DUMPBIN=":"
14280 else
14281 case $cross_compiling:$ac_tool_warned in
14282 yes:)
14283 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14284 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14285 ac_tool_warned=yes ;;
14286 esac
14287 DUMPBIN=$ac_ct_DUMPBIN
14291 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
14292 *COFF*)
14293 DUMPBIN="$DUMPBIN -symbols"
14296 DUMPBIN=:
14298 esac
14301 if test "$DUMPBIN" != ":"; then
14302 NM="$DUMPBIN"
14305 test -z "$NM" && NM=nm
14312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
14313 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
14314 if ${lt_cv_nm_interface+:} false; then :
14315 $as_echo_n "(cached) " >&6
14316 else
14317 lt_cv_nm_interface="BSD nm"
14318 echo "int some_variable = 0;" > conftest.$ac_ext
14319 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
14320 (eval "$ac_compile" 2>conftest.err)
14321 cat conftest.err >&5
14322 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
14323 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
14324 cat conftest.err >&5
14325 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
14326 cat conftest.out >&5
14327 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
14328 lt_cv_nm_interface="MS dumpbin"
14330 rm -f conftest*
14332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
14333 $as_echo "$lt_cv_nm_interface" >&6; }
14335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
14336 $as_echo_n "checking whether ln -s works... " >&6; }
14337 LN_S=$as_ln_s
14338 if test "$LN_S" = "ln -s"; then
14339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14340 $as_echo "yes" >&6; }
14341 else
14342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
14343 $as_echo "no, using $LN_S" >&6; }
14346 # find the maximum length of command line arguments
14347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
14348 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
14349 if ${lt_cv_sys_max_cmd_len+:} false; then :
14350 $as_echo_n "(cached) " >&6
14351 else
14353 teststring="ABCD"
14355 case $build_os in
14356 msdosdjgpp*)
14357 # On DJGPP, this test can blow up pretty badly due to problems in libc
14358 # (any single argument exceeding 2000 bytes causes a buffer overrun
14359 # during glob expansion). Even if it were fixed, the result of this
14360 # check would be larger than it should be.
14361 lt_cv_sys_max_cmd_len=12288; # 12K is about right
14364 gnu*)
14365 # Under GNU Hurd, this test is not required because there is
14366 # no limit to the length of command line arguments.
14367 # Libtool will interpret -1 as no limit whatsoever
14368 lt_cv_sys_max_cmd_len=-1;
14371 cygwin* | mingw* | cegcc*)
14372 # On Win9x/ME, this test blows up -- it succeeds, but takes
14373 # about 5 minutes as the teststring grows exponentially.
14374 # Worse, since 9x/ME are not pre-emptively multitasking,
14375 # you end up with a "frozen" computer, even though with patience
14376 # the test eventually succeeds (with a max line length of 256k).
14377 # Instead, let's just punt: use the minimum linelength reported by
14378 # all of the supported platforms: 8192 (on NT/2K/XP).
14379 lt_cv_sys_max_cmd_len=8192;
14382 mint*)
14383 # On MiNT this can take a long time and run out of memory.
14384 lt_cv_sys_max_cmd_len=8192;
14387 amigaos*)
14388 # On AmigaOS with pdksh, this test takes hours, literally.
14389 # So we just punt and use a minimum line length of 8192.
14390 lt_cv_sys_max_cmd_len=8192;
14393 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
14394 # This has been around since 386BSD, at least. Likely further.
14395 if test -x /sbin/sysctl; then
14396 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
14397 elif test -x /usr/sbin/sysctl; then
14398 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
14399 else
14400 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
14402 # And add a safety zone
14403 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
14404 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
14407 interix*)
14408 # We know the value 262144 and hardcode it with a safety zone (like BSD)
14409 lt_cv_sys_max_cmd_len=196608
14412 osf*)
14413 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
14414 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
14415 # nice to cause kernel panics so lets avoid the loop below.
14416 # First set a reasonable default.
14417 lt_cv_sys_max_cmd_len=16384
14419 if test -x /sbin/sysconfig; then
14420 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
14421 *1*) lt_cv_sys_max_cmd_len=-1 ;;
14422 esac
14425 sco3.2v5*)
14426 lt_cv_sys_max_cmd_len=102400
14428 sysv5* | sco5v6* | sysv4.2uw2*)
14429 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
14430 if test -n "$kargmax"; then
14431 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
14432 else
14433 lt_cv_sys_max_cmd_len=32768
14437 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
14438 if test -n "$lt_cv_sys_max_cmd_len"; then
14439 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
14440 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
14441 else
14442 # Make teststring a little bigger before we do anything with it.
14443 # a 1K string should be a reasonable start.
14444 for i in 1 2 3 4 5 6 7 8 ; do
14445 teststring=$teststring$teststring
14446 done
14447 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
14448 # If test is not a shell built-in, we'll probably end up computing a
14449 # maximum length that is only half of the actual maximum length, but
14450 # we can't tell.
14451 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
14452 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
14453 test $i != 17 # 1/2 MB should be enough
14455 i=`expr $i + 1`
14456 teststring=$teststring$teststring
14457 done
14458 # Only check the string length outside the loop.
14459 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
14460 teststring=
14461 # Add a significant safety factor because C++ compilers can tack on
14462 # massive amounts of additional arguments before passing them to the
14463 # linker. It appears as though 1/2 is a usable value.
14464 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
14467 esac
14471 if test -n $lt_cv_sys_max_cmd_len ; then
14472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
14473 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
14474 else
14475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
14476 $as_echo "none" >&6; }
14478 max_cmd_len=$lt_cv_sys_max_cmd_len
14485 : ${CP="cp -f"}
14486 : ${MV="mv -f"}
14487 : ${RM="rm -f"}
14489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
14490 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
14491 # Try some XSI features
14492 xsi_shell=no
14493 ( _lt_dummy="a/b/c"
14494 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
14495 = c,a/b,, \
14496 && eval 'test $(( 1 + 1 )) -eq 2 \
14497 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
14498 && xsi_shell=yes
14499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
14500 $as_echo "$xsi_shell" >&6; }
14503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
14504 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
14505 lt_shell_append=no
14506 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
14507 >/dev/null 2>&1 \
14508 && lt_shell_append=yes
14509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
14510 $as_echo "$lt_shell_append" >&6; }
14513 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
14514 lt_unset=unset
14515 else
14516 lt_unset=false
14523 # test EBCDIC or ASCII
14524 case `echo X|tr X '\101'` in
14525 A) # ASCII based system
14526 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
14527 lt_SP2NL='tr \040 \012'
14528 lt_NL2SP='tr \015\012 \040\040'
14530 *) # EBCDIC based system
14531 lt_SP2NL='tr \100 \n'
14532 lt_NL2SP='tr \r\n \100\100'
14534 esac
14544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
14545 $as_echo_n "checking for $LD option to reload object files... " >&6; }
14546 if ${lt_cv_ld_reload_flag+:} false; then :
14547 $as_echo_n "(cached) " >&6
14548 else
14549 lt_cv_ld_reload_flag='-r'
14551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
14552 $as_echo "$lt_cv_ld_reload_flag" >&6; }
14553 reload_flag=$lt_cv_ld_reload_flag
14554 case $reload_flag in
14555 "" | " "*) ;;
14556 *) reload_flag=" $reload_flag" ;;
14557 esac
14558 reload_cmds='$LD$reload_flag -o $output$reload_objs'
14559 case $host_os in
14560 darwin*)
14561 if test "$GCC" = yes; then
14562 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
14563 else
14564 reload_cmds='$LD$reload_flag -o $output$reload_objs'
14567 esac
14577 if test -n "$ac_tool_prefix"; then
14578 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
14579 set dummy ${ac_tool_prefix}objdump; ac_word=$2
14580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14581 $as_echo_n "checking for $ac_word... " >&6; }
14582 if ${ac_cv_prog_OBJDUMP+:} false; then :
14583 $as_echo_n "(cached) " >&6
14584 else
14585 if test -n "$OBJDUMP"; then
14586 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
14587 else
14588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14589 for as_dir in $PATH
14591 IFS=$as_save_IFS
14592 test -z "$as_dir" && as_dir=.
14593 for ac_exec_ext in '' $ac_executable_extensions; do
14594 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14595 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
14596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14597 break 2
14599 done
14600 done
14601 IFS=$as_save_IFS
14605 OBJDUMP=$ac_cv_prog_OBJDUMP
14606 if test -n "$OBJDUMP"; then
14607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
14608 $as_echo "$OBJDUMP" >&6; }
14609 else
14610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14611 $as_echo "no" >&6; }
14616 if test -z "$ac_cv_prog_OBJDUMP"; then
14617 ac_ct_OBJDUMP=$OBJDUMP
14618 # Extract the first word of "objdump", so it can be a program name with args.
14619 set dummy objdump; ac_word=$2
14620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14621 $as_echo_n "checking for $ac_word... " >&6; }
14622 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
14623 $as_echo_n "(cached) " >&6
14624 else
14625 if test -n "$ac_ct_OBJDUMP"; then
14626 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
14627 else
14628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14629 for as_dir in $PATH
14631 IFS=$as_save_IFS
14632 test -z "$as_dir" && as_dir=.
14633 for ac_exec_ext in '' $ac_executable_extensions; do
14634 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14635 ac_cv_prog_ac_ct_OBJDUMP="objdump"
14636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14637 break 2
14639 done
14640 done
14641 IFS=$as_save_IFS
14645 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
14646 if test -n "$ac_ct_OBJDUMP"; then
14647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
14648 $as_echo "$ac_ct_OBJDUMP" >&6; }
14649 else
14650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14651 $as_echo "no" >&6; }
14654 if test "x$ac_ct_OBJDUMP" = x; then
14655 OBJDUMP="false"
14656 else
14657 case $cross_compiling:$ac_tool_warned in
14658 yes:)
14659 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14660 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14661 ac_tool_warned=yes ;;
14662 esac
14663 OBJDUMP=$ac_ct_OBJDUMP
14665 else
14666 OBJDUMP="$ac_cv_prog_OBJDUMP"
14669 test -z "$OBJDUMP" && OBJDUMP=objdump
14679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
14680 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
14681 if ${lt_cv_deplibs_check_method+:} false; then :
14682 $as_echo_n "(cached) " >&6
14683 else
14684 lt_cv_file_magic_cmd='$MAGIC_CMD'
14685 lt_cv_file_magic_test_file=
14686 lt_cv_deplibs_check_method='unknown'
14687 # Need to set the preceding variable on all platforms that support
14688 # interlibrary dependencies.
14689 # 'none' -- dependencies not supported.
14690 # `unknown' -- same as none, but documents that we really don't know.
14691 # 'pass_all' -- all dependencies passed with no checks.
14692 # 'test_compile' -- check by making test program.
14693 # 'file_magic [[regex]]' -- check by looking for files in library path
14694 # which responds to the $file_magic_cmd with a given extended regex.
14695 # If you have `file' or equivalent on your system and you're not sure
14696 # whether `pass_all' will *always* work, you probably want this one.
14698 case $host_os in
14699 aix[4-9]*)
14700 lt_cv_deplibs_check_method=pass_all
14703 beos*)
14704 lt_cv_deplibs_check_method=pass_all
14707 bsdi[45]*)
14708 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
14709 lt_cv_file_magic_cmd='/usr/bin/file -L'
14710 lt_cv_file_magic_test_file=/shlib/libc.so
14713 cygwin*)
14714 # func_win32_libid is a shell function defined in ltmain.sh
14715 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
14716 lt_cv_file_magic_cmd='func_win32_libid'
14719 mingw* | pw32*)
14720 # Base MSYS/MinGW do not provide the 'file' command needed by
14721 # func_win32_libid shell function, so use a weaker test based on 'objdump',
14722 # unless we find 'file', for example because we are cross-compiling.
14723 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
14724 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
14725 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
14726 lt_cv_file_magic_cmd='func_win32_libid'
14727 else
14728 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
14729 lt_cv_file_magic_cmd='$OBJDUMP -f'
14733 cegcc*)
14734 # use the weaker test based on 'objdump'. See mingw*.
14735 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
14736 lt_cv_file_magic_cmd='$OBJDUMP -f'
14739 darwin* | rhapsody*)
14740 lt_cv_deplibs_check_method=pass_all
14743 freebsd* | dragonfly*)
14744 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
14745 case $host_cpu in
14746 i*86 )
14747 # Not sure whether the presence of OpenBSD here was a mistake.
14748 # Let's accept both of them until this is cleared up.
14749 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
14750 lt_cv_file_magic_cmd=/usr/bin/file
14751 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
14753 esac
14754 else
14755 lt_cv_deplibs_check_method=pass_all
14759 gnu*)
14760 lt_cv_deplibs_check_method=pass_all
14763 haiku*)
14764 lt_cv_deplibs_check_method=pass_all
14767 hpux10.20* | hpux11*)
14768 lt_cv_file_magic_cmd=/usr/bin/file
14769 case $host_cpu in
14770 ia64*)
14771 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
14772 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
14774 hppa*64*)
14775 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]'
14776 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
14779 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
14780 lt_cv_file_magic_test_file=/usr/lib/libc.sl
14782 esac
14785 interix[3-9]*)
14786 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
14787 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
14790 irix5* | irix6* | nonstopux*)
14791 case $LD in
14792 *-32|*"-32 ") libmagic=32-bit;;
14793 *-n32|*"-n32 ") libmagic=N32;;
14794 *-64|*"-64 ") libmagic=64-bit;;
14795 *) libmagic=never-match;;
14796 esac
14797 lt_cv_deplibs_check_method=pass_all
14800 # This must be Linux ELF.
14801 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
14802 lt_cv_deplibs_check_method=pass_all
14805 netbsd*)
14806 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
14807 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
14808 else
14809 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
14813 newos6*)
14814 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
14815 lt_cv_file_magic_cmd=/usr/bin/file
14816 lt_cv_file_magic_test_file=/usr/lib/libnls.so
14819 *nto* | *qnx*)
14820 lt_cv_deplibs_check_method=pass_all
14823 openbsd*)
14824 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14825 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
14826 else
14827 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
14831 osf3* | osf4* | osf5*)
14832 lt_cv_deplibs_check_method=pass_all
14835 rdos*)
14836 lt_cv_deplibs_check_method=pass_all
14839 solaris*)
14840 lt_cv_deplibs_check_method=pass_all
14843 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14844 lt_cv_deplibs_check_method=pass_all
14847 sysv4 | sysv4.3*)
14848 case $host_vendor in
14849 motorola)
14850 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]'
14851 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
14853 ncr)
14854 lt_cv_deplibs_check_method=pass_all
14856 sequent)
14857 lt_cv_file_magic_cmd='/bin/file'
14858 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
14860 sni)
14861 lt_cv_file_magic_cmd='/bin/file'
14862 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
14863 lt_cv_file_magic_test_file=/lib/libc.so
14865 siemens)
14866 lt_cv_deplibs_check_method=pass_all
14869 lt_cv_deplibs_check_method=pass_all
14871 esac
14874 tpf*)
14875 lt_cv_deplibs_check_method=pass_all
14877 vxworks*)
14878 # Assume VxWorks cross toolchains are built on Linux, possibly
14879 # as canadian for Windows hosts.
14880 lt_cv_deplibs_check_method=pass_all
14882 esac
14885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
14886 $as_echo "$lt_cv_deplibs_check_method" >&6; }
14887 file_magic_cmd=$lt_cv_file_magic_cmd
14888 deplibs_check_method=$lt_cv_deplibs_check_method
14889 test -z "$deplibs_check_method" && deplibs_check_method=unknown
14902 if test -n "$ac_tool_prefix"; then
14903 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14904 set dummy ${ac_tool_prefix}ar; ac_word=$2
14905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14906 $as_echo_n "checking for $ac_word... " >&6; }
14907 if ${ac_cv_prog_AR+:} false; then :
14908 $as_echo_n "(cached) " >&6
14909 else
14910 if test -n "$AR"; then
14911 ac_cv_prog_AR="$AR" # Let the user override the test.
14912 else
14913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14914 for as_dir in $PATH
14916 IFS=$as_save_IFS
14917 test -z "$as_dir" && as_dir=.
14918 for ac_exec_ext in '' $ac_executable_extensions; do
14919 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14920 ac_cv_prog_AR="${ac_tool_prefix}ar"
14921 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14922 break 2
14924 done
14925 done
14926 IFS=$as_save_IFS
14930 AR=$ac_cv_prog_AR
14931 if test -n "$AR"; then
14932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
14933 $as_echo "$AR" >&6; }
14934 else
14935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14936 $as_echo "no" >&6; }
14941 if test -z "$ac_cv_prog_AR"; then
14942 ac_ct_AR=$AR
14943 # Extract the first word of "ar", so it can be a program name with args.
14944 set dummy ar; ac_word=$2
14945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14946 $as_echo_n "checking for $ac_word... " >&6; }
14947 if ${ac_cv_prog_ac_ct_AR+:} false; then :
14948 $as_echo_n "(cached) " >&6
14949 else
14950 if test -n "$ac_ct_AR"; then
14951 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14952 else
14953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14954 for as_dir in $PATH
14956 IFS=$as_save_IFS
14957 test -z "$as_dir" && as_dir=.
14958 for ac_exec_ext in '' $ac_executable_extensions; do
14959 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14960 ac_cv_prog_ac_ct_AR="ar"
14961 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14962 break 2
14964 done
14965 done
14966 IFS=$as_save_IFS
14970 ac_ct_AR=$ac_cv_prog_ac_ct_AR
14971 if test -n "$ac_ct_AR"; then
14972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
14973 $as_echo "$ac_ct_AR" >&6; }
14974 else
14975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14976 $as_echo "no" >&6; }
14979 if test "x$ac_ct_AR" = x; then
14980 AR="false"
14981 else
14982 case $cross_compiling:$ac_tool_warned in
14983 yes:)
14984 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14985 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14986 ac_tool_warned=yes ;;
14987 esac
14988 AR=$ac_ct_AR
14990 else
14991 AR="$ac_cv_prog_AR"
14994 test -z "$AR" && AR=ar
14995 test -z "$AR_FLAGS" && AR_FLAGS=cru
15007 if test -n "$ac_tool_prefix"; then
15008 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
15009 set dummy ${ac_tool_prefix}strip; ac_word=$2
15010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15011 $as_echo_n "checking for $ac_word... " >&6; }
15012 if ${ac_cv_prog_STRIP+:} false; then :
15013 $as_echo_n "(cached) " >&6
15014 else
15015 if test -n "$STRIP"; then
15016 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
15017 else
15018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15019 for as_dir in $PATH
15021 IFS=$as_save_IFS
15022 test -z "$as_dir" && as_dir=.
15023 for ac_exec_ext in '' $ac_executable_extensions; do
15024 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15025 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
15026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15027 break 2
15029 done
15030 done
15031 IFS=$as_save_IFS
15035 STRIP=$ac_cv_prog_STRIP
15036 if test -n "$STRIP"; then
15037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
15038 $as_echo "$STRIP" >&6; }
15039 else
15040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15041 $as_echo "no" >&6; }
15046 if test -z "$ac_cv_prog_STRIP"; then
15047 ac_ct_STRIP=$STRIP
15048 # Extract the first word of "strip", so it can be a program name with args.
15049 set dummy strip; ac_word=$2
15050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15051 $as_echo_n "checking for $ac_word... " >&6; }
15052 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
15053 $as_echo_n "(cached) " >&6
15054 else
15055 if test -n "$ac_ct_STRIP"; then
15056 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
15057 else
15058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15059 for as_dir in $PATH
15061 IFS=$as_save_IFS
15062 test -z "$as_dir" && as_dir=.
15063 for ac_exec_ext in '' $ac_executable_extensions; do
15064 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15065 ac_cv_prog_ac_ct_STRIP="strip"
15066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15067 break 2
15069 done
15070 done
15071 IFS=$as_save_IFS
15075 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
15076 if test -n "$ac_ct_STRIP"; then
15077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
15078 $as_echo "$ac_ct_STRIP" >&6; }
15079 else
15080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15081 $as_echo "no" >&6; }
15084 if test "x$ac_ct_STRIP" = x; then
15085 STRIP=":"
15086 else
15087 case $cross_compiling:$ac_tool_warned in
15088 yes:)
15089 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15090 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15091 ac_tool_warned=yes ;;
15092 esac
15093 STRIP=$ac_ct_STRIP
15095 else
15096 STRIP="$ac_cv_prog_STRIP"
15099 test -z "$STRIP" && STRIP=:
15106 if test -n "$ac_tool_prefix"; then
15107 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
15108 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
15109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15110 $as_echo_n "checking for $ac_word... " >&6; }
15111 if ${ac_cv_prog_RANLIB+:} false; then :
15112 $as_echo_n "(cached) " >&6
15113 else
15114 if test -n "$RANLIB"; then
15115 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
15116 else
15117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15118 for as_dir in $PATH
15120 IFS=$as_save_IFS
15121 test -z "$as_dir" && as_dir=.
15122 for ac_exec_ext in '' $ac_executable_extensions; do
15123 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15124 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
15125 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15126 break 2
15128 done
15129 done
15130 IFS=$as_save_IFS
15134 RANLIB=$ac_cv_prog_RANLIB
15135 if test -n "$RANLIB"; then
15136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
15137 $as_echo "$RANLIB" >&6; }
15138 else
15139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15140 $as_echo "no" >&6; }
15145 if test -z "$ac_cv_prog_RANLIB"; then
15146 ac_ct_RANLIB=$RANLIB
15147 # Extract the first word of "ranlib", so it can be a program name with args.
15148 set dummy ranlib; ac_word=$2
15149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15150 $as_echo_n "checking for $ac_word... " >&6; }
15151 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
15152 $as_echo_n "(cached) " >&6
15153 else
15154 if test -n "$ac_ct_RANLIB"; then
15155 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
15156 else
15157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15158 for as_dir in $PATH
15160 IFS=$as_save_IFS
15161 test -z "$as_dir" && as_dir=.
15162 for ac_exec_ext in '' $ac_executable_extensions; do
15163 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15164 ac_cv_prog_ac_ct_RANLIB="ranlib"
15165 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15166 break 2
15168 done
15169 done
15170 IFS=$as_save_IFS
15174 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
15175 if test -n "$ac_ct_RANLIB"; then
15176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
15177 $as_echo "$ac_ct_RANLIB" >&6; }
15178 else
15179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15180 $as_echo "no" >&6; }
15183 if test "x$ac_ct_RANLIB" = x; then
15184 RANLIB=":"
15185 else
15186 case $cross_compiling:$ac_tool_warned in
15187 yes:)
15188 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15189 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15190 ac_tool_warned=yes ;;
15191 esac
15192 RANLIB=$ac_ct_RANLIB
15194 else
15195 RANLIB="$ac_cv_prog_RANLIB"
15198 test -z "$RANLIB" && RANLIB=:
15205 # Determine commands to create old-style static archives.
15206 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
15207 old_postinstall_cmds='chmod 644 $oldlib'
15208 old_postuninstall_cmds=
15210 if test -n "$RANLIB"; then
15211 case $host_os in
15212 openbsd*)
15213 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
15216 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
15218 esac
15219 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
15222 case $host_os in
15223 darwin*)
15224 lock_old_archive_extraction=yes ;;
15226 lock_old_archive_extraction=no ;;
15227 esac
15267 # If no C compiler was specified, use CC.
15268 LTCC=${LTCC-"$CC"}
15270 # If no C compiler flags were specified, use CFLAGS.
15271 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15273 # Allow CC to be a program name with arguments.
15274 compiler=$CC
15277 # Check for command to grab the raw symbol name followed by C symbol from nm.
15278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
15279 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
15280 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
15281 $as_echo_n "(cached) " >&6
15282 else
15284 # These are sane defaults that work on at least a few old systems.
15285 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
15287 # Character class describing NM global symbol codes.
15288 symcode='[BCDEGRST]'
15290 # Regexp to match symbols that can be accessed directly from C.
15291 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
15293 # Define system-specific variables.
15294 case $host_os in
15295 aix*)
15296 symcode='[BCDT]'
15298 cygwin* | mingw* | pw32* | cegcc*)
15299 symcode='[ABCDGISTW]'
15301 hpux*)
15302 if test "$host_cpu" = ia64; then
15303 symcode='[ABCDEGRST]'
15306 irix* | nonstopux*)
15307 symcode='[BCDEGRST]'
15309 osf*)
15310 symcode='[BCDEGQRST]'
15312 solaris*)
15313 symcode='[BDRT]'
15315 sco3.2v5*)
15316 symcode='[DT]'
15318 sysv4.2uw2*)
15319 symcode='[DT]'
15321 sysv5* | sco5v6* | unixware* | OpenUNIX*)
15322 symcode='[ABDT]'
15324 sysv4)
15325 symcode='[DFNSTU]'
15327 esac
15329 # If we're using GNU nm, then use its standard symbol codes.
15330 case `$NM -V 2>&1` in
15331 *GNU* | *'with BFD'*)
15332 symcode='[ABCDGIRSTW]' ;;
15333 esac
15335 # Transform an extracted symbol line into a proper C declaration.
15336 # Some systems (esp. on ia64) link data and code symbols differently,
15337 # so use this general approach.
15338 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
15340 # Transform an extracted symbol line into symbol name and symbol address
15341 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
15342 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'"
15344 # Handle CRLF in mingw tool chain
15345 opt_cr=
15346 case $build_os in
15347 mingw*)
15348 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
15350 esac
15352 # Try without a prefix underscore, then with it.
15353 for ac_symprfx in "" "_"; do
15355 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
15356 symxfrm="\\1 $ac_symprfx\\2 \\2"
15358 # Write the raw and C identifiers.
15359 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
15360 # Fake it for dumpbin and say T for any non-static function
15361 # and D for any global variable.
15362 # Also find C++ and __fastcall symbols from MSVC++,
15363 # which start with @ or ?.
15364 lt_cv_sys_global_symbol_pipe="$AWK '"\
15365 " {last_section=section; section=\$ 3};"\
15366 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
15367 " \$ 0!~/External *\|/{next};"\
15368 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
15369 " {if(hide[section]) next};"\
15370 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
15371 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
15372 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
15373 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
15374 " ' prfx=^$ac_symprfx"
15375 else
15376 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
15379 # Check to see that the pipe works correctly.
15380 pipe_works=no
15382 rm -f conftest*
15383 cat > conftest.$ac_ext <<_LT_EOF
15384 #ifdef __cplusplus
15385 extern "C" {
15386 #endif
15387 char nm_test_var;
15388 void nm_test_func(void);
15389 void nm_test_func(void){}
15390 #ifdef __cplusplus
15392 #endif
15393 int main(){nm_test_var='a';nm_test_func();return(0);}
15394 _LT_EOF
15396 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15397 (eval $ac_compile) 2>&5
15398 ac_status=$?
15399 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15400 test $ac_status = 0; }; then
15401 # Now try to grab the symbols.
15402 nlist=conftest.nm
15403 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
15404 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
15405 ac_status=$?
15406 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15407 test $ac_status = 0; } && test -s "$nlist"; then
15408 # Try sorting and uniquifying the output.
15409 if sort "$nlist" | uniq > "$nlist"T; then
15410 mv -f "$nlist"T "$nlist"
15411 else
15412 rm -f "$nlist"T
15415 # Make sure that we snagged all the symbols we need.
15416 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
15417 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
15418 cat <<_LT_EOF > conftest.$ac_ext
15419 #ifdef __cplusplus
15420 extern "C" {
15421 #endif
15423 _LT_EOF
15424 # Now generate the symbol file.
15425 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
15427 cat <<_LT_EOF >> conftest.$ac_ext
15429 /* The mapping between symbol names and symbols. */
15430 const struct {
15431 const char *name;
15432 void *address;
15434 lt__PROGRAM__LTX_preloaded_symbols[] =
15436 { "@PROGRAM@", (void *) 0 },
15437 _LT_EOF
15438 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
15439 cat <<\_LT_EOF >> conftest.$ac_ext
15440 {0, (void *) 0}
15443 /* This works around a problem in FreeBSD linker */
15444 #ifdef FREEBSD_WORKAROUND
15445 static const void *lt_preloaded_setup() {
15446 return lt__PROGRAM__LTX_preloaded_symbols;
15448 #endif
15450 #ifdef __cplusplus
15452 #endif
15453 _LT_EOF
15454 # Now try linking the two files.
15455 mv conftest.$ac_objext conftstm.$ac_objext
15456 lt_save_LIBS="$LIBS"
15457 lt_save_CFLAGS="$CFLAGS"
15458 LIBS="conftstm.$ac_objext"
15459 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
15460 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15461 (eval $ac_link) 2>&5
15462 ac_status=$?
15463 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15464 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
15465 pipe_works=yes
15467 LIBS="$lt_save_LIBS"
15468 CFLAGS="$lt_save_CFLAGS"
15469 else
15470 echo "cannot find nm_test_func in $nlist" >&5
15472 else
15473 echo "cannot find nm_test_var in $nlist" >&5
15475 else
15476 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
15478 else
15479 echo "$progname: failed program was:" >&5
15480 cat conftest.$ac_ext >&5
15482 rm -rf conftest* conftst*
15484 # Do not use the global_symbol_pipe unless it works.
15485 if test "$pipe_works" = yes; then
15486 break
15487 else
15488 lt_cv_sys_global_symbol_pipe=
15490 done
15494 if test -z "$lt_cv_sys_global_symbol_pipe"; then
15495 lt_cv_sys_global_symbol_to_cdecl=
15497 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
15498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
15499 $as_echo "failed" >&6; }
15500 else
15501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
15502 $as_echo "ok" >&6; }
15526 # Check whether --enable-libtool-lock was given.
15527 if test "${enable_libtool_lock+set}" = set; then :
15528 enableval=$enable_libtool_lock;
15531 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
15533 # Some flags need to be propagated to the compiler or linker for good
15534 # libtool support.
15535 case $host in
15536 ia64-*-hpux*)
15537 # Find out which ABI we are using.
15538 echo 'int i;' > conftest.$ac_ext
15539 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15540 (eval $ac_compile) 2>&5
15541 ac_status=$?
15542 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15543 test $ac_status = 0; }; then
15544 case `/usr/bin/file conftest.$ac_objext` in
15545 *ELF-32*)
15546 HPUX_IA64_MODE="32"
15548 *ELF-64*)
15549 HPUX_IA64_MODE="64"
15551 esac
15553 rm -rf conftest*
15555 *-*-irix6*)
15556 # Find out which ABI we are using.
15557 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
15558 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15559 (eval $ac_compile) 2>&5
15560 ac_status=$?
15561 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15562 test $ac_status = 0; }; then
15563 if test "$lt_cv_prog_gnu_ld" = yes; then
15564 case `/usr/bin/file conftest.$ac_objext` in
15565 *32-bit*)
15566 LD="${LD-ld} -melf32bsmip"
15568 *N32*)
15569 LD="${LD-ld} -melf32bmipn32"
15571 *64-bit*)
15572 LD="${LD-ld} -melf64bmip"
15574 esac
15575 else
15576 case `/usr/bin/file conftest.$ac_objext` in
15577 *32-bit*)
15578 LD="${LD-ld} -32"
15580 *N32*)
15581 LD="${LD-ld} -n32"
15583 *64-bit*)
15584 LD="${LD-ld} -64"
15586 esac
15589 rm -rf conftest*
15592 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
15593 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
15594 # Find out which ABI we are using.
15595 echo 'int i;' > conftest.$ac_ext
15596 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15597 (eval $ac_compile) 2>&5
15598 ac_status=$?
15599 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15600 test $ac_status = 0; }; then
15601 case `/usr/bin/file conftest.o` in
15602 *32-bit*)
15603 case $host in
15604 x86_64-*kfreebsd*-gnu)
15605 LD="${LD-ld} -m elf_i386_fbsd"
15607 x86_64-*linux*)
15608 case `/usr/bin/file conftest.o` in
15609 *x86-64*)
15610 LD="${LD-ld} -m elf32_x86_64"
15613 LD="${LD-ld} -m elf_i386"
15615 esac
15617 powerpc64le-*linux*)
15618 LD="${LD-ld} -m elf32lppclinux"
15620 powerpc64-*linux*)
15621 LD="${LD-ld} -m elf32ppclinux"
15623 s390x-*linux*)
15624 LD="${LD-ld} -m elf_s390"
15626 sparc64-*linux*)
15627 LD="${LD-ld} -m elf32_sparc"
15629 esac
15631 *64-bit*)
15632 case $host in
15633 x86_64-*kfreebsd*-gnu)
15634 LD="${LD-ld} -m elf_x86_64_fbsd"
15636 x86_64-*linux*)
15637 LD="${LD-ld} -m elf_x86_64"
15639 powerpcle-*linux*)
15640 LD="${LD-ld} -m elf64lppc"
15642 powerpc-*linux*)
15643 LD="${LD-ld} -m elf64ppc"
15645 s390*-*linux*|s390*-*tpf*)
15646 LD="${LD-ld} -m elf64_s390"
15648 sparc*-*linux*)
15649 LD="${LD-ld} -m elf64_sparc"
15651 esac
15653 esac
15655 rm -rf conftest*
15658 *-*-sco3.2v5*)
15659 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
15660 SAVE_CFLAGS="$CFLAGS"
15661 CFLAGS="$CFLAGS -belf"
15662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
15663 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
15664 if ${lt_cv_cc_needs_belf+:} false; then :
15665 $as_echo_n "(cached) " >&6
15666 else
15667 ac_ext=c
15668 ac_cpp='$CPP $CPPFLAGS'
15669 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15670 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15671 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15674 /* end confdefs.h. */
15677 main ()
15681 return 0;
15683 _ACEOF
15684 if ac_fn_c_try_link "$LINENO"; then :
15685 lt_cv_cc_needs_belf=yes
15686 else
15687 lt_cv_cc_needs_belf=no
15689 rm -f core conftest.err conftest.$ac_objext \
15690 conftest$ac_exeext conftest.$ac_ext
15691 ac_ext=c
15692 ac_cpp='$CPP $CPPFLAGS'
15693 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15694 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15695 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
15699 $as_echo "$lt_cv_cc_needs_belf" >&6; }
15700 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
15701 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
15702 CFLAGS="$SAVE_CFLAGS"
15705 sparc*-*solaris*)
15706 # Find out which ABI we are using.
15707 echo 'int i;' > conftest.$ac_ext
15708 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15709 (eval $ac_compile) 2>&5
15710 ac_status=$?
15711 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15712 test $ac_status = 0; }; then
15713 case `/usr/bin/file conftest.o` in
15714 *64-bit*)
15715 case $lt_cv_prog_gnu_ld in
15716 yes*) LD="${LD-ld} -m elf64_sparc" ;;
15718 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
15719 LD="${LD-ld} -64"
15722 esac
15724 esac
15726 rm -rf conftest*
15728 esac
15730 need_locks="$enable_libtool_lock"
15733 case $host_os in
15734 rhapsody* | darwin*)
15735 if test -n "$ac_tool_prefix"; then
15736 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
15737 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
15738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15739 $as_echo_n "checking for $ac_word... " >&6; }
15740 if ${ac_cv_prog_DSYMUTIL+:} false; then :
15741 $as_echo_n "(cached) " >&6
15742 else
15743 if test -n "$DSYMUTIL"; then
15744 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
15745 else
15746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15747 for as_dir in $PATH
15749 IFS=$as_save_IFS
15750 test -z "$as_dir" && as_dir=.
15751 for ac_exec_ext in '' $ac_executable_extensions; do
15752 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15753 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
15754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15755 break 2
15757 done
15758 done
15759 IFS=$as_save_IFS
15763 DSYMUTIL=$ac_cv_prog_DSYMUTIL
15764 if test -n "$DSYMUTIL"; then
15765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
15766 $as_echo "$DSYMUTIL" >&6; }
15767 else
15768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15769 $as_echo "no" >&6; }
15774 if test -z "$ac_cv_prog_DSYMUTIL"; then
15775 ac_ct_DSYMUTIL=$DSYMUTIL
15776 # Extract the first word of "dsymutil", so it can be a program name with args.
15777 set dummy dsymutil; ac_word=$2
15778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15779 $as_echo_n "checking for $ac_word... " >&6; }
15780 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
15781 $as_echo_n "(cached) " >&6
15782 else
15783 if test -n "$ac_ct_DSYMUTIL"; then
15784 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
15785 else
15786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15787 for as_dir in $PATH
15789 IFS=$as_save_IFS
15790 test -z "$as_dir" && as_dir=.
15791 for ac_exec_ext in '' $ac_executable_extensions; do
15792 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15793 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
15794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15795 break 2
15797 done
15798 done
15799 IFS=$as_save_IFS
15803 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
15804 if test -n "$ac_ct_DSYMUTIL"; then
15805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
15806 $as_echo "$ac_ct_DSYMUTIL" >&6; }
15807 else
15808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15809 $as_echo "no" >&6; }
15812 if test "x$ac_ct_DSYMUTIL" = x; then
15813 DSYMUTIL=":"
15814 else
15815 case $cross_compiling:$ac_tool_warned in
15816 yes:)
15817 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15818 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15819 ac_tool_warned=yes ;;
15820 esac
15821 DSYMUTIL=$ac_ct_DSYMUTIL
15823 else
15824 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
15827 if test -n "$ac_tool_prefix"; then
15828 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
15829 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
15830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15831 $as_echo_n "checking for $ac_word... " >&6; }
15832 if ${ac_cv_prog_NMEDIT+:} false; then :
15833 $as_echo_n "(cached) " >&6
15834 else
15835 if test -n "$NMEDIT"; then
15836 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
15837 else
15838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15839 for as_dir in $PATH
15841 IFS=$as_save_IFS
15842 test -z "$as_dir" && as_dir=.
15843 for ac_exec_ext in '' $ac_executable_extensions; do
15844 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15845 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
15846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15847 break 2
15849 done
15850 done
15851 IFS=$as_save_IFS
15855 NMEDIT=$ac_cv_prog_NMEDIT
15856 if test -n "$NMEDIT"; then
15857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
15858 $as_echo "$NMEDIT" >&6; }
15859 else
15860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15861 $as_echo "no" >&6; }
15866 if test -z "$ac_cv_prog_NMEDIT"; then
15867 ac_ct_NMEDIT=$NMEDIT
15868 # Extract the first word of "nmedit", so it can be a program name with args.
15869 set dummy nmedit; ac_word=$2
15870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15871 $as_echo_n "checking for $ac_word... " >&6; }
15872 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
15873 $as_echo_n "(cached) " >&6
15874 else
15875 if test -n "$ac_ct_NMEDIT"; then
15876 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
15877 else
15878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15879 for as_dir in $PATH
15881 IFS=$as_save_IFS
15882 test -z "$as_dir" && as_dir=.
15883 for ac_exec_ext in '' $ac_executable_extensions; do
15884 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15885 ac_cv_prog_ac_ct_NMEDIT="nmedit"
15886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15887 break 2
15889 done
15890 done
15891 IFS=$as_save_IFS
15895 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
15896 if test -n "$ac_ct_NMEDIT"; then
15897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
15898 $as_echo "$ac_ct_NMEDIT" >&6; }
15899 else
15900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15901 $as_echo "no" >&6; }
15904 if test "x$ac_ct_NMEDIT" = x; then
15905 NMEDIT=":"
15906 else
15907 case $cross_compiling:$ac_tool_warned in
15908 yes:)
15909 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15910 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15911 ac_tool_warned=yes ;;
15912 esac
15913 NMEDIT=$ac_ct_NMEDIT
15915 else
15916 NMEDIT="$ac_cv_prog_NMEDIT"
15919 if test -n "$ac_tool_prefix"; then
15920 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
15921 set dummy ${ac_tool_prefix}lipo; ac_word=$2
15922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15923 $as_echo_n "checking for $ac_word... " >&6; }
15924 if ${ac_cv_prog_LIPO+:} false; then :
15925 $as_echo_n "(cached) " >&6
15926 else
15927 if test -n "$LIPO"; then
15928 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
15929 else
15930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15931 for as_dir in $PATH
15933 IFS=$as_save_IFS
15934 test -z "$as_dir" && as_dir=.
15935 for ac_exec_ext in '' $ac_executable_extensions; do
15936 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15937 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
15938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15939 break 2
15941 done
15942 done
15943 IFS=$as_save_IFS
15947 LIPO=$ac_cv_prog_LIPO
15948 if test -n "$LIPO"; then
15949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
15950 $as_echo "$LIPO" >&6; }
15951 else
15952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15953 $as_echo "no" >&6; }
15958 if test -z "$ac_cv_prog_LIPO"; then
15959 ac_ct_LIPO=$LIPO
15960 # Extract the first word of "lipo", so it can be a program name with args.
15961 set dummy lipo; ac_word=$2
15962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15963 $as_echo_n "checking for $ac_word... " >&6; }
15964 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
15965 $as_echo_n "(cached) " >&6
15966 else
15967 if test -n "$ac_ct_LIPO"; then
15968 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
15969 else
15970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15971 for as_dir in $PATH
15973 IFS=$as_save_IFS
15974 test -z "$as_dir" && as_dir=.
15975 for ac_exec_ext in '' $ac_executable_extensions; do
15976 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15977 ac_cv_prog_ac_ct_LIPO="lipo"
15978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15979 break 2
15981 done
15982 done
15983 IFS=$as_save_IFS
15987 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
15988 if test -n "$ac_ct_LIPO"; then
15989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
15990 $as_echo "$ac_ct_LIPO" >&6; }
15991 else
15992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15993 $as_echo "no" >&6; }
15996 if test "x$ac_ct_LIPO" = x; then
15997 LIPO=":"
15998 else
15999 case $cross_compiling:$ac_tool_warned in
16000 yes:)
16001 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16002 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16003 ac_tool_warned=yes ;;
16004 esac
16005 LIPO=$ac_ct_LIPO
16007 else
16008 LIPO="$ac_cv_prog_LIPO"
16011 if test -n "$ac_tool_prefix"; then
16012 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
16013 set dummy ${ac_tool_prefix}otool; ac_word=$2
16014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16015 $as_echo_n "checking for $ac_word... " >&6; }
16016 if ${ac_cv_prog_OTOOL+:} false; then :
16017 $as_echo_n "(cached) " >&6
16018 else
16019 if test -n "$OTOOL"; then
16020 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
16021 else
16022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16023 for as_dir in $PATH
16025 IFS=$as_save_IFS
16026 test -z "$as_dir" && as_dir=.
16027 for ac_exec_ext in '' $ac_executable_extensions; do
16028 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16029 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
16030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16031 break 2
16033 done
16034 done
16035 IFS=$as_save_IFS
16039 OTOOL=$ac_cv_prog_OTOOL
16040 if test -n "$OTOOL"; then
16041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
16042 $as_echo "$OTOOL" >&6; }
16043 else
16044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16045 $as_echo "no" >&6; }
16050 if test -z "$ac_cv_prog_OTOOL"; then
16051 ac_ct_OTOOL=$OTOOL
16052 # Extract the first word of "otool", so it can be a program name with args.
16053 set dummy otool; ac_word=$2
16054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16055 $as_echo_n "checking for $ac_word... " >&6; }
16056 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
16057 $as_echo_n "(cached) " >&6
16058 else
16059 if test -n "$ac_ct_OTOOL"; then
16060 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
16061 else
16062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16063 for as_dir in $PATH
16065 IFS=$as_save_IFS
16066 test -z "$as_dir" && as_dir=.
16067 for ac_exec_ext in '' $ac_executable_extensions; do
16068 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16069 ac_cv_prog_ac_ct_OTOOL="otool"
16070 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16071 break 2
16073 done
16074 done
16075 IFS=$as_save_IFS
16079 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
16080 if test -n "$ac_ct_OTOOL"; then
16081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
16082 $as_echo "$ac_ct_OTOOL" >&6; }
16083 else
16084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16085 $as_echo "no" >&6; }
16088 if test "x$ac_ct_OTOOL" = x; then
16089 OTOOL=":"
16090 else
16091 case $cross_compiling:$ac_tool_warned in
16092 yes:)
16093 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16094 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16095 ac_tool_warned=yes ;;
16096 esac
16097 OTOOL=$ac_ct_OTOOL
16099 else
16100 OTOOL="$ac_cv_prog_OTOOL"
16103 if test -n "$ac_tool_prefix"; then
16104 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
16105 set dummy ${ac_tool_prefix}otool64; ac_word=$2
16106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16107 $as_echo_n "checking for $ac_word... " >&6; }
16108 if ${ac_cv_prog_OTOOL64+:} false; then :
16109 $as_echo_n "(cached) " >&6
16110 else
16111 if test -n "$OTOOL64"; then
16112 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
16113 else
16114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16115 for as_dir in $PATH
16117 IFS=$as_save_IFS
16118 test -z "$as_dir" && as_dir=.
16119 for ac_exec_ext in '' $ac_executable_extensions; do
16120 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16121 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
16122 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16123 break 2
16125 done
16126 done
16127 IFS=$as_save_IFS
16131 OTOOL64=$ac_cv_prog_OTOOL64
16132 if test -n "$OTOOL64"; then
16133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
16134 $as_echo "$OTOOL64" >&6; }
16135 else
16136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16137 $as_echo "no" >&6; }
16142 if test -z "$ac_cv_prog_OTOOL64"; then
16143 ac_ct_OTOOL64=$OTOOL64
16144 # Extract the first word of "otool64", so it can be a program name with args.
16145 set dummy otool64; ac_word=$2
16146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16147 $as_echo_n "checking for $ac_word... " >&6; }
16148 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
16149 $as_echo_n "(cached) " >&6
16150 else
16151 if test -n "$ac_ct_OTOOL64"; then
16152 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
16153 else
16154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16155 for as_dir in $PATH
16157 IFS=$as_save_IFS
16158 test -z "$as_dir" && as_dir=.
16159 for ac_exec_ext in '' $ac_executable_extensions; do
16160 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16161 ac_cv_prog_ac_ct_OTOOL64="otool64"
16162 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16163 break 2
16165 done
16166 done
16167 IFS=$as_save_IFS
16171 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
16172 if test -n "$ac_ct_OTOOL64"; then
16173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
16174 $as_echo "$ac_ct_OTOOL64" >&6; }
16175 else
16176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16177 $as_echo "no" >&6; }
16180 if test "x$ac_ct_OTOOL64" = x; then
16181 OTOOL64=":"
16182 else
16183 case $cross_compiling:$ac_tool_warned in
16184 yes:)
16185 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16186 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16187 ac_tool_warned=yes ;;
16188 esac
16189 OTOOL64=$ac_ct_OTOOL64
16191 else
16192 OTOOL64="$ac_cv_prog_OTOOL64"
16221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
16222 $as_echo_n "checking for -single_module linker flag... " >&6; }
16223 if ${lt_cv_apple_cc_single_mod+:} false; then :
16224 $as_echo_n "(cached) " >&6
16225 else
16226 lt_cv_apple_cc_single_mod=no
16227 if test -z "${LT_MULTI_MODULE}"; then
16228 # By default we will add the -single_module flag. You can override
16229 # by either setting the environment variable LT_MULTI_MODULE
16230 # non-empty at configure time, or by adding -multi_module to the
16231 # link flags.
16232 rm -rf libconftest.dylib*
16233 echo "int foo(void){return 1;}" > conftest.c
16234 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
16235 -dynamiclib -Wl,-single_module conftest.c" >&5
16236 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
16237 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
16238 _lt_result=$?
16239 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
16240 lt_cv_apple_cc_single_mod=yes
16241 else
16242 cat conftest.err >&5
16244 rm -rf libconftest.dylib*
16245 rm -f conftest.*
16248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
16249 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
16250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
16251 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
16252 if ${lt_cv_ld_exported_symbols_list+:} false; then :
16253 $as_echo_n "(cached) " >&6
16254 else
16255 lt_cv_ld_exported_symbols_list=no
16256 save_LDFLAGS=$LDFLAGS
16257 echo "_main" > conftest.sym
16258 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
16259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16260 /* end confdefs.h. */
16263 main ()
16267 return 0;
16269 _ACEOF
16270 if ac_fn_c_try_link "$LINENO"; then :
16271 lt_cv_ld_exported_symbols_list=yes
16272 else
16273 lt_cv_ld_exported_symbols_list=no
16275 rm -f core conftest.err conftest.$ac_objext \
16276 conftest$ac_exeext conftest.$ac_ext
16277 LDFLAGS="$save_LDFLAGS"
16280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
16281 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
16282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
16283 $as_echo_n "checking for -force_load linker flag... " >&6; }
16284 if ${lt_cv_ld_force_load+:} false; then :
16285 $as_echo_n "(cached) " >&6
16286 else
16287 lt_cv_ld_force_load=no
16288 cat > conftest.c << _LT_EOF
16289 int forced_loaded() { return 2;}
16290 _LT_EOF
16291 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
16292 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
16293 echo "$AR cru libconftest.a conftest.o" >&5
16294 $AR cru libconftest.a conftest.o 2>&5
16295 cat > conftest.c << _LT_EOF
16296 int main() { return 0;}
16297 _LT_EOF
16298 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
16299 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
16300 _lt_result=$?
16301 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
16302 lt_cv_ld_force_load=yes
16303 else
16304 cat conftest.err >&5
16306 rm -f conftest.err libconftest.a conftest conftest.c
16307 rm -rf conftest.dSYM
16310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
16311 $as_echo "$lt_cv_ld_force_load" >&6; }
16312 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
16313 # build without first building modern cctools / linker.
16314 case $host_cpu-$host_os in
16315 *-rhapsody* | *-darwin1.[012])
16316 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
16317 *-darwin1.*)
16318 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
16319 *-darwin*)
16320 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
16321 # deployment target is forced to an earlier version.
16322 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
16323 UNSET,*-darwin[89]*|UNSET,*-darwin[12][0123456789]*)
16325 10.[012][,.]*)
16326 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16330 esac
16332 esac
16333 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
16334 _lt_dar_single_mod='$single_module'
16336 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
16337 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
16338 else
16339 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
16341 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
16342 _lt_dsymutil='~$DSYMUTIL $lib || :'
16343 else
16344 _lt_dsymutil=
16347 esac
16350 for ac_header in dlfcn.h
16351 do :
16352 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
16353 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
16354 cat >>confdefs.h <<_ACEOF
16355 #define HAVE_DLFCN_H 1
16356 _ACEOF
16359 done
16365 # Set options
16369 enable_dlopen=no
16372 enable_win32_dll=no
16375 # Check whether --enable-shared was given.
16376 if test "${enable_shared+set}" = set; then :
16377 enableval=$enable_shared; p=${PACKAGE-default}
16378 case $enableval in
16379 yes) enable_shared=yes ;;
16380 no) enable_shared=no ;;
16382 enable_shared=no
16383 # Look at the argument we got. We use all the common list separators.
16384 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
16385 for pkg in $enableval; do
16386 IFS="$lt_save_ifs"
16387 if test "X$pkg" = "X$p"; then
16388 enable_shared=yes
16390 done
16391 IFS="$lt_save_ifs"
16393 esac
16394 else
16395 enable_shared=yes
16406 # Check whether --enable-static was given.
16407 if test "${enable_static+set}" = set; then :
16408 enableval=$enable_static; p=${PACKAGE-default}
16409 case $enableval in
16410 yes) enable_static=yes ;;
16411 no) enable_static=no ;;
16413 enable_static=no
16414 # Look at the argument we got. We use all the common list separators.
16415 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
16416 for pkg in $enableval; do
16417 IFS="$lt_save_ifs"
16418 if test "X$pkg" = "X$p"; then
16419 enable_static=yes
16421 done
16422 IFS="$lt_save_ifs"
16424 esac
16425 else
16426 enable_static=yes
16438 # Check whether --with-pic was given.
16439 if test "${with_pic+set}" = set; then :
16440 withval=$with_pic; pic_mode="$withval"
16441 else
16442 pic_mode=default
16446 test -z "$pic_mode" && pic_mode=default
16454 # Check whether --enable-fast-install was given.
16455 if test "${enable_fast_install+set}" = set; then :
16456 enableval=$enable_fast_install; p=${PACKAGE-default}
16457 case $enableval in
16458 yes) enable_fast_install=yes ;;
16459 no) enable_fast_install=no ;;
16461 enable_fast_install=no
16462 # Look at the argument we got. We use all the common list separators.
16463 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
16464 for pkg in $enableval; do
16465 IFS="$lt_save_ifs"
16466 if test "X$pkg" = "X$p"; then
16467 enable_fast_install=yes
16469 done
16470 IFS="$lt_save_ifs"
16472 esac
16473 else
16474 enable_fast_install=yes
16487 # This can be used to rebuild libtool when needed
16488 LIBTOOL_DEPS="$ltmain"
16490 # Always use our own libtool.
16491 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
16518 test -z "$LN_S" && LN_S="ln -s"
16533 if test -n "${ZSH_VERSION+set}" ; then
16534 setopt NO_GLOB_SUBST
16537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
16538 $as_echo_n "checking for objdir... " >&6; }
16539 if ${lt_cv_objdir+:} false; then :
16540 $as_echo_n "(cached) " >&6
16541 else
16542 rm -f .libs 2>/dev/null
16543 mkdir .libs 2>/dev/null
16544 if test -d .libs; then
16545 lt_cv_objdir=.libs
16546 else
16547 # MS-DOS does not allow filenames that begin with a dot.
16548 lt_cv_objdir=_libs
16550 rmdir .libs 2>/dev/null
16552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
16553 $as_echo "$lt_cv_objdir" >&6; }
16554 objdir=$lt_cv_objdir
16560 cat >>confdefs.h <<_ACEOF
16561 #define LT_OBJDIR "$lt_cv_objdir/"
16562 _ACEOF
16567 case $host_os in
16568 aix3*)
16569 # AIX sometimes has problems with the GCC collect2 program. For some
16570 # reason, if we set the COLLECT_NAMES environment variable, the problems
16571 # vanish in a puff of smoke.
16572 if test "X${COLLECT_NAMES+set}" != Xset; then
16573 COLLECT_NAMES=
16574 export COLLECT_NAMES
16577 esac
16579 # Global variables:
16580 ofile=libtool
16581 can_build_shared=yes
16583 # All known linkers require a `.a' archive for static linking (except MSVC,
16584 # which needs '.lib').
16585 libext=a
16587 with_gnu_ld="$lt_cv_prog_gnu_ld"
16589 old_CC="$CC"
16590 old_CFLAGS="$CFLAGS"
16592 # Set sane defaults for various variables
16593 test -z "$CC" && CC=cc
16594 test -z "$LTCC" && LTCC=$CC
16595 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
16596 test -z "$LD" && LD=ld
16597 test -z "$ac_objext" && ac_objext=o
16599 for cc_temp in $compiler""; do
16600 case $cc_temp in
16601 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16602 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16603 \-*) ;;
16604 *) break;;
16605 esac
16606 done
16607 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
16610 # Only perform the check for file, if the check method requires it
16611 test -z "$MAGIC_CMD" && MAGIC_CMD=file
16612 case $deplibs_check_method in
16613 file_magic*)
16614 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
16615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
16616 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
16617 if ${lt_cv_path_MAGIC_CMD+:} false; then :
16618 $as_echo_n "(cached) " >&6
16619 else
16620 case $MAGIC_CMD in
16621 [\\/*] | ?:[\\/]*)
16622 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
16625 lt_save_MAGIC_CMD="$MAGIC_CMD"
16626 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16627 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
16628 for ac_dir in $ac_dummy; do
16629 IFS="$lt_save_ifs"
16630 test -z "$ac_dir" && ac_dir=.
16631 if test -f $ac_dir/${ac_tool_prefix}file; then
16632 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
16633 if test -n "$file_magic_test_file"; then
16634 case $deplibs_check_method in
16635 "file_magic "*)
16636 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
16637 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16638 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
16639 $EGREP "$file_magic_regex" > /dev/null; then
16641 else
16642 cat <<_LT_EOF 1>&2
16644 *** Warning: the command libtool uses to detect shared libraries,
16645 *** $file_magic_cmd, produces output that libtool cannot recognize.
16646 *** The result is that libtool may fail to recognize shared libraries
16647 *** as such. This will affect the creation of libtool libraries that
16648 *** depend on shared libraries, but programs linked with such libtool
16649 *** libraries will work regardless of this problem. Nevertheless, you
16650 *** may want to report the problem to your system manager and/or to
16651 *** bug-libtool@gnu.org
16653 _LT_EOF
16654 fi ;;
16655 esac
16657 break
16659 done
16660 IFS="$lt_save_ifs"
16661 MAGIC_CMD="$lt_save_MAGIC_CMD"
16663 esac
16666 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16667 if test -n "$MAGIC_CMD"; then
16668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
16669 $as_echo "$MAGIC_CMD" >&6; }
16670 else
16671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16672 $as_echo "no" >&6; }
16679 if test -z "$lt_cv_path_MAGIC_CMD"; then
16680 if test -n "$ac_tool_prefix"; then
16681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
16682 $as_echo_n "checking for file... " >&6; }
16683 if ${lt_cv_path_MAGIC_CMD+:} false; then :
16684 $as_echo_n "(cached) " >&6
16685 else
16686 case $MAGIC_CMD in
16687 [\\/*] | ?:[\\/]*)
16688 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
16691 lt_save_MAGIC_CMD="$MAGIC_CMD"
16692 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16693 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
16694 for ac_dir in $ac_dummy; do
16695 IFS="$lt_save_ifs"
16696 test -z "$ac_dir" && ac_dir=.
16697 if test -f $ac_dir/file; then
16698 lt_cv_path_MAGIC_CMD="$ac_dir/file"
16699 if test -n "$file_magic_test_file"; then
16700 case $deplibs_check_method in
16701 "file_magic "*)
16702 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
16703 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16704 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
16705 $EGREP "$file_magic_regex" > /dev/null; then
16707 else
16708 cat <<_LT_EOF 1>&2
16710 *** Warning: the command libtool uses to detect shared libraries,
16711 *** $file_magic_cmd, produces output that libtool cannot recognize.
16712 *** The result is that libtool may fail to recognize shared libraries
16713 *** as such. This will affect the creation of libtool libraries that
16714 *** depend on shared libraries, but programs linked with such libtool
16715 *** libraries will work regardless of this problem. Nevertheless, you
16716 *** may want to report the problem to your system manager and/or to
16717 *** bug-libtool@gnu.org
16719 _LT_EOF
16720 fi ;;
16721 esac
16723 break
16725 done
16726 IFS="$lt_save_ifs"
16727 MAGIC_CMD="$lt_save_MAGIC_CMD"
16729 esac
16732 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16733 if test -n "$MAGIC_CMD"; then
16734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
16735 $as_echo "$MAGIC_CMD" >&6; }
16736 else
16737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16738 $as_echo "no" >&6; }
16742 else
16743 MAGIC_CMD=:
16749 esac
16751 # Use C for the default configuration in the libtool script
16753 lt_save_CC="$CC"
16754 ac_ext=c
16755 ac_cpp='$CPP $CPPFLAGS'
16756 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16757 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16758 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16761 # Source file extension for C test sources.
16762 ac_ext=c
16764 # Object file extension for compiled C test sources.
16765 objext=o
16766 objext=$objext
16768 # Code to be used in simple compile tests
16769 lt_simple_compile_test_code="int some_variable = 0;"
16771 # Code to be used in simple link tests
16772 lt_simple_link_test_code='int main(){return(0);}'
16780 # If no C compiler was specified, use CC.
16781 LTCC=${LTCC-"$CC"}
16783 # If no C compiler flags were specified, use CFLAGS.
16784 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16786 # Allow CC to be a program name with arguments.
16787 compiler=$CC
16789 # Save the default compiler, since it gets overwritten when the other
16790 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
16791 compiler_DEFAULT=$CC
16793 # save warnings/boilerplate of simple test code
16794 ac_outfile=conftest.$ac_objext
16795 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16796 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16797 _lt_compiler_boilerplate=`cat conftest.err`
16798 $RM conftest*
16800 ac_outfile=conftest.$ac_objext
16801 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16802 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16803 _lt_linker_boilerplate=`cat conftest.err`
16804 $RM -r conftest*
16807 ## CAVEAT EMPTOR:
16808 ## There is no encapsulation within the following macros, do not change
16809 ## the running order or otherwise move them around unless you know exactly
16810 ## what you are doing...
16811 if test -n "$compiler"; then
16813 lt_prog_compiler_no_builtin_flag=
16815 if test "$GCC" = yes; then
16816 case $cc_basename in
16817 nvcc*)
16818 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
16820 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
16821 esac
16823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16824 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
16825 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
16826 $as_echo_n "(cached) " >&6
16827 else
16828 lt_cv_prog_compiler_rtti_exceptions=no
16829 ac_outfile=conftest.$ac_objext
16830 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16831 lt_compiler_flag="-fno-rtti -fno-exceptions"
16832 # Insert the option either (1) after the last *FLAGS variable, or
16833 # (2) before a word containing "conftest.", or (3) at the end.
16834 # Note that $ac_compile itself does not contain backslashes and begins
16835 # with a dollar sign (not a hyphen), so the echo should work correctly.
16836 # The option is referenced via a variable to avoid confusing sed.
16837 lt_compile=`echo "$ac_compile" | $SED \
16838 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16839 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16840 -e 's:$: $lt_compiler_flag:'`
16841 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16842 (eval "$lt_compile" 2>conftest.err)
16843 ac_status=$?
16844 cat conftest.err >&5
16845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16846 if (exit $ac_status) && test -s "$ac_outfile"; then
16847 # The compiler can only warn and ignore the option if not recognized
16848 # So say no if there are warnings other than the usual output.
16849 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
16850 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16851 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16852 lt_cv_prog_compiler_rtti_exceptions=yes
16855 $RM conftest*
16858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16859 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16861 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16862 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
16863 else
16874 lt_prog_compiler_wl=
16875 lt_prog_compiler_pic=
16876 lt_prog_compiler_static=
16878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
16879 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16881 if test "$GCC" = yes; then
16882 lt_prog_compiler_wl='-Wl,'
16883 lt_prog_compiler_static='-static'
16885 case $host_os in
16886 aix*)
16887 # All AIX code is PIC.
16888 if test "$host_cpu" = ia64; then
16889 # AIX 5 now supports IA64 processor
16890 lt_prog_compiler_static='-Bstatic'
16892 lt_prog_compiler_pic='-fPIC'
16895 amigaos*)
16896 case $host_cpu in
16897 powerpc)
16898 # see comment about AmigaOS4 .so support
16899 lt_prog_compiler_pic='-fPIC'
16901 m68k)
16902 # FIXME: we need at least 68020 code to build shared libraries, but
16903 # adding the `-m68020' flag to GCC prevents building anything better,
16904 # like `-m68040'.
16905 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
16907 esac
16910 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16911 # PIC is the default for these OSes.
16914 mingw* | cygwin* | pw32* | os2* | cegcc*)
16915 # This hack is so that the source file can tell whether it is being
16916 # built for inclusion in a dll (and should export symbols for example).
16917 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16918 # (--disable-auto-import) libraries
16919 lt_prog_compiler_pic='-DDLL_EXPORT'
16922 darwin* | rhapsody*)
16923 # PIC is the default on this platform
16924 # Common symbols not allowed in MH_DYLIB files
16925 lt_prog_compiler_pic='-fno-common'
16928 haiku*)
16929 # PIC is the default for Haiku.
16930 # The "-static" flag exists, but is broken.
16931 lt_prog_compiler_static=
16934 hpux*)
16935 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
16936 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
16937 # sets the default TLS model and affects inlining.
16938 case $host_cpu in
16939 hppa*64*)
16940 # +Z the default
16943 lt_prog_compiler_pic='-fPIC'
16945 esac
16948 interix[3-9]*)
16949 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16950 # Instead, we relocate shared libraries at runtime.
16953 msdosdjgpp*)
16954 # Just because we use GCC doesn't mean we suddenly get shared libraries
16955 # on systems that don't support them.
16956 lt_prog_compiler_can_build_shared=no
16957 enable_shared=no
16960 *nto* | *qnx*)
16961 # QNX uses GNU C++, but need to define -shared option too, otherwise
16962 # it will coredump.
16963 lt_prog_compiler_pic='-fPIC -shared'
16966 sysv4*MP*)
16967 if test -d /usr/nec; then
16968 lt_prog_compiler_pic=-Kconform_pic
16973 lt_prog_compiler_pic='-fPIC'
16975 esac
16977 case $cc_basename in
16978 nvcc*) # Cuda Compiler Driver 2.2
16979 lt_prog_compiler_wl='-Xlinker '
16980 lt_prog_compiler_pic='-Xcompiler -fPIC'
16982 esac
16983 else
16984 # PORTME Check for flag to pass linker flags through the system compiler.
16985 case $host_os in
16986 aix*)
16987 lt_prog_compiler_wl='-Wl,'
16988 if test "$host_cpu" = ia64; then
16989 # AIX 5 now supports IA64 processor
16990 lt_prog_compiler_static='-Bstatic'
16991 else
16992 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
16996 mingw* | cygwin* | pw32* | os2* | cegcc*)
16997 # This hack is so that the source file can tell whether it is being
16998 # built for inclusion in a dll (and should export symbols for example).
16999 lt_prog_compiler_pic='-DDLL_EXPORT'
17002 hpux9* | hpux10* | hpux11*)
17003 lt_prog_compiler_wl='-Wl,'
17004 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17005 # not for PA HP-UX.
17006 case $host_cpu in
17007 hppa*64*|ia64*)
17008 # +Z the default
17011 lt_prog_compiler_pic='+Z'
17013 esac
17014 # Is there a better lt_prog_compiler_static that works with the bundled CC?
17015 lt_prog_compiler_static='${wl}-a ${wl}archive'
17018 irix5* | irix6* | nonstopux*)
17019 lt_prog_compiler_wl='-Wl,'
17020 # PIC (with -KPIC) is the default.
17021 lt_prog_compiler_static='-non_shared'
17024 linux* | k*bsd*-gnu | kopensolaris*-gnu)
17025 case $cc_basename in
17026 # old Intel for x86_64 which still supported -KPIC.
17027 ecc*)
17028 lt_prog_compiler_wl='-Wl,'
17029 lt_prog_compiler_pic='-KPIC'
17030 lt_prog_compiler_static='-static'
17032 # icc used to be incompatible with GCC.
17033 # ICC 10 doesn't accept -KPIC any more.
17034 icc* | ifort*)
17035 lt_prog_compiler_wl='-Wl,'
17036 lt_prog_compiler_pic='-fPIC'
17037 lt_prog_compiler_static='-static'
17039 # Lahey Fortran 8.1.
17040 lf95*)
17041 lt_prog_compiler_wl='-Wl,'
17042 lt_prog_compiler_pic='--shared'
17043 lt_prog_compiler_static='--static'
17045 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
17046 # Portland Group compilers (*not* the Pentium gcc compiler,
17047 # which looks to be a dead project)
17048 lt_prog_compiler_wl='-Wl,'
17049 lt_prog_compiler_pic='-fpic'
17050 lt_prog_compiler_static='-Bstatic'
17052 ccc*)
17053 lt_prog_compiler_wl='-Wl,'
17054 # All Alpha code is PIC.
17055 lt_prog_compiler_static='-non_shared'
17057 xl* | bgxl* | bgf* | mpixl*)
17058 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
17059 lt_prog_compiler_wl='-Wl,'
17060 lt_prog_compiler_pic='-qpic'
17061 lt_prog_compiler_static='-qstaticlink'
17064 case `$CC -V 2>&1 | sed 5q` in
17065 *Sun\ F* | *Sun*Fortran*)
17066 # Sun Fortran 8.3 passes all unrecognized flags to the linker
17067 lt_prog_compiler_pic='-KPIC'
17068 lt_prog_compiler_static='-Bstatic'
17069 lt_prog_compiler_wl=''
17071 *Sun\ C*)
17072 # Sun C 5.9
17073 lt_prog_compiler_pic='-KPIC'
17074 lt_prog_compiler_static='-Bstatic'
17075 lt_prog_compiler_wl='-Wl,'
17077 esac
17079 esac
17082 newsos6)
17083 lt_prog_compiler_pic='-KPIC'
17084 lt_prog_compiler_static='-Bstatic'
17087 *nto* | *qnx*)
17088 # QNX uses GNU C++, but need to define -shared option too, otherwise
17089 # it will coredump.
17090 lt_prog_compiler_pic='-fPIC -shared'
17093 osf3* | osf4* | osf5*)
17094 lt_prog_compiler_wl='-Wl,'
17095 # All OSF/1 code is PIC.
17096 lt_prog_compiler_static='-non_shared'
17099 rdos*)
17100 lt_prog_compiler_static='-non_shared'
17103 solaris*)
17104 lt_prog_compiler_pic='-KPIC'
17105 lt_prog_compiler_static='-Bstatic'
17106 case $cc_basename in
17107 f77* | f90* | f95*)
17108 lt_prog_compiler_wl='-Qoption ld ';;
17110 lt_prog_compiler_wl='-Wl,';;
17111 esac
17114 sunos4*)
17115 lt_prog_compiler_wl='-Qoption ld '
17116 lt_prog_compiler_pic='-PIC'
17117 lt_prog_compiler_static='-Bstatic'
17120 sysv4 | sysv4.2uw2* | sysv4.3*)
17121 lt_prog_compiler_wl='-Wl,'
17122 lt_prog_compiler_pic='-KPIC'
17123 lt_prog_compiler_static='-Bstatic'
17126 sysv4*MP*)
17127 if test -d /usr/nec ;then
17128 lt_prog_compiler_pic='-Kconform_pic'
17129 lt_prog_compiler_static='-Bstatic'
17133 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17134 lt_prog_compiler_wl='-Wl,'
17135 lt_prog_compiler_pic='-KPIC'
17136 lt_prog_compiler_static='-Bstatic'
17139 unicos*)
17140 lt_prog_compiler_wl='-Wl,'
17141 lt_prog_compiler_can_build_shared=no
17144 uts4*)
17145 lt_prog_compiler_pic='-pic'
17146 lt_prog_compiler_static='-Bstatic'
17150 lt_prog_compiler_can_build_shared=no
17152 esac
17155 case $host_os in
17156 # For platforms which do not support PIC, -DPIC is meaningless:
17157 *djgpp*)
17158 lt_prog_compiler_pic=
17161 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
17163 esac
17164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
17165 $as_echo "$lt_prog_compiler_pic" >&6; }
17173 # Check to make sure the PIC flag actually works.
17175 if test -n "$lt_prog_compiler_pic"; then
17176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
17177 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
17178 if ${lt_cv_prog_compiler_pic_works+:} false; then :
17179 $as_echo_n "(cached) " >&6
17180 else
17181 lt_cv_prog_compiler_pic_works=no
17182 ac_outfile=conftest.$ac_objext
17183 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17184 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
17185 # Insert the option either (1) after the last *FLAGS variable, or
17186 # (2) before a word containing "conftest.", or (3) at the end.
17187 # Note that $ac_compile itself does not contain backslashes and begins
17188 # with a dollar sign (not a hyphen), so the echo should work correctly.
17189 # The option is referenced via a variable to avoid confusing sed.
17190 lt_compile=`echo "$ac_compile" | $SED \
17191 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17192 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17193 -e 's:$: $lt_compiler_flag:'`
17194 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17195 (eval "$lt_compile" 2>conftest.err)
17196 ac_status=$?
17197 cat conftest.err >&5
17198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17199 if (exit $ac_status) && test -s "$ac_outfile"; then
17200 # The compiler can only warn and ignore the option if not recognized
17201 # So say no if there are warnings other than the usual output.
17202 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
17203 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17204 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17205 lt_cv_prog_compiler_pic_works=yes
17208 $RM conftest*
17211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
17212 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
17214 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
17215 case $lt_prog_compiler_pic in
17216 "" | " "*) ;;
17217 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
17218 esac
17219 else
17220 lt_prog_compiler_pic=
17221 lt_prog_compiler_can_build_shared=no
17232 # Check to make sure the static flag actually works.
17234 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
17235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17236 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
17237 if ${lt_cv_prog_compiler_static_works+:} false; then :
17238 $as_echo_n "(cached) " >&6
17239 else
17240 lt_cv_prog_compiler_static_works=no
17241 save_LDFLAGS="$LDFLAGS"
17242 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17243 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17244 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17245 # The linker can only warn and ignore the option if not recognized
17246 # So say no if there are warnings
17247 if test -s conftest.err; then
17248 # Append any errors to the config.log.
17249 cat conftest.err 1>&5
17250 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
17251 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17252 if diff conftest.exp conftest.er2 >/dev/null; then
17253 lt_cv_prog_compiler_static_works=yes
17255 else
17256 lt_cv_prog_compiler_static_works=yes
17259 $RM -r conftest*
17260 LDFLAGS="$save_LDFLAGS"
17263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
17264 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
17266 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
17268 else
17269 lt_prog_compiler_static=
17278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17279 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17280 if ${lt_cv_prog_compiler_c_o+:} false; then :
17281 $as_echo_n "(cached) " >&6
17282 else
17283 lt_cv_prog_compiler_c_o=no
17284 $RM -r conftest 2>/dev/null
17285 mkdir conftest
17286 cd conftest
17287 mkdir out
17288 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17290 lt_compiler_flag="-o out/conftest2.$ac_objext"
17291 # Insert the option either (1) after the last *FLAGS variable, or
17292 # (2) before a word containing "conftest.", or (3) at the end.
17293 # Note that $ac_compile itself does not contain backslashes and begins
17294 # with a dollar sign (not a hyphen), so the echo should work correctly.
17295 lt_compile=`echo "$ac_compile" | $SED \
17296 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17297 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17298 -e 's:$: $lt_compiler_flag:'`
17299 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17300 (eval "$lt_compile" 2>out/conftest.err)
17301 ac_status=$?
17302 cat out/conftest.err >&5
17303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17304 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17305 then
17306 # The compiler can only warn and ignore the option if not recognized
17307 # So say no if there are warnings
17308 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17309 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17310 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17311 lt_cv_prog_compiler_c_o=yes
17314 chmod u+w . 2>&5
17315 $RM conftest*
17316 # SGI C++ compiler will create directory out/ii_files/ for
17317 # template instantiation
17318 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17319 $RM out/* && rmdir out
17320 cd ..
17321 $RM -r conftest
17322 $RM conftest*
17325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
17326 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
17333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17334 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17335 if ${lt_cv_prog_compiler_c_o+:} false; then :
17336 $as_echo_n "(cached) " >&6
17337 else
17338 lt_cv_prog_compiler_c_o=no
17339 $RM -r conftest 2>/dev/null
17340 mkdir conftest
17341 cd conftest
17342 mkdir out
17343 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17345 lt_compiler_flag="-o out/conftest2.$ac_objext"
17346 # Insert the option either (1) after the last *FLAGS variable, or
17347 # (2) before a word containing "conftest.", or (3) at the end.
17348 # Note that $ac_compile itself does not contain backslashes and begins
17349 # with a dollar sign (not a hyphen), so the echo should work correctly.
17350 lt_compile=`echo "$ac_compile" | $SED \
17351 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17352 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17353 -e 's:$: $lt_compiler_flag:'`
17354 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17355 (eval "$lt_compile" 2>out/conftest.err)
17356 ac_status=$?
17357 cat out/conftest.err >&5
17358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17359 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17360 then
17361 # The compiler can only warn and ignore the option if not recognized
17362 # So say no if there are warnings
17363 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17364 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17365 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17366 lt_cv_prog_compiler_c_o=yes
17369 chmod u+w . 2>&5
17370 $RM conftest*
17371 # SGI C++ compiler will create directory out/ii_files/ for
17372 # template instantiation
17373 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17374 $RM out/* && rmdir out
17375 cd ..
17376 $RM -r conftest
17377 $RM conftest*
17380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
17381 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
17386 hard_links="nottested"
17387 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
17388 # do not overwrite the value of need_locks provided by the user
17389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
17390 $as_echo_n "checking if we can lock with hard links... " >&6; }
17391 hard_links=yes
17392 $RM conftest*
17393 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17394 touch conftest.a
17395 ln conftest.a conftest.b 2>&5 || hard_links=no
17396 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
17398 $as_echo "$hard_links" >&6; }
17399 if test "$hard_links" = no; then
17400 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17401 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17402 need_locks=warn
17404 else
17405 need_locks=no
17413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17414 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17416 runpath_var=
17417 allow_undefined_flag=
17418 always_export_symbols=no
17419 archive_cmds=
17420 archive_expsym_cmds=
17421 compiler_needs_object=no
17422 enable_shared_with_static_runtimes=no
17423 export_dynamic_flag_spec=
17424 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17425 hardcode_automatic=no
17426 hardcode_direct=no
17427 hardcode_direct_absolute=no
17428 hardcode_libdir_flag_spec=
17429 hardcode_libdir_flag_spec_ld=
17430 hardcode_libdir_separator=
17431 hardcode_minus_L=no
17432 hardcode_shlibpath_var=unsupported
17433 inherit_rpath=no
17434 link_all_deplibs=unknown
17435 module_cmds=
17436 module_expsym_cmds=
17437 old_archive_from_new_cmds=
17438 old_archive_from_expsyms_cmds=
17439 thread_safe_flag_spec=
17440 whole_archive_flag_spec=
17441 # include_expsyms should be a list of space-separated symbols to be *always*
17442 # included in the symbol list
17443 include_expsyms=
17444 # exclude_expsyms can be an extended regexp of symbols to exclude
17445 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17446 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17447 # as well as any symbol that contains `d'.
17448 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17449 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17450 # platforms (ab)use it in PIC code, but their linkers get confused if
17451 # the symbol is explicitly referenced. Since portable code cannot
17452 # rely on this symbol name, it's probably fine to never include it in
17453 # preloaded symbol tables.
17454 # Exclude shared library initialization/finalization symbols.
17455 extract_expsyms_cmds=
17457 case $host_os in
17458 cygwin* | mingw* | pw32* | cegcc*)
17459 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17460 # When not using gcc, we currently assume that we are using
17461 # Microsoft Visual C++.
17462 if test "$GCC" != yes; then
17463 with_gnu_ld=no
17466 interix*)
17467 # we just hope/assume this is gcc and not c89 (= MSVC++)
17468 with_gnu_ld=yes
17470 openbsd*)
17471 with_gnu_ld=no
17473 esac
17475 ld_shlibs=yes
17477 # On some targets, GNU ld is compatible enough with the native linker
17478 # that we're better off using the native interface for both.
17479 lt_use_gnu_ld_interface=no
17480 if test "$with_gnu_ld" = yes; then
17481 case $host_os in
17482 aix*)
17483 # The AIX port of GNU ld has always aspired to compatibility
17484 # with the native linker. However, as the warning in the GNU ld
17485 # block says, versions before 2.19.5* couldn't really create working
17486 # shared libraries, regardless of the interface used.
17487 case `$LD -v 2>&1` in
17488 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
17489 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
17490 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
17492 lt_use_gnu_ld_interface=yes
17494 esac
17497 lt_use_gnu_ld_interface=yes
17499 esac
17502 if test "$lt_use_gnu_ld_interface" = yes; then
17503 # If archive_cmds runs LD, not CC, wlarc should be empty
17504 wlarc='${wl}'
17506 # Set some defaults for GNU ld with shared library support. These
17507 # are reset later if shared libraries are not supported. Putting them
17508 # here allows them to be overridden if necessary.
17509 runpath_var=LD_RUN_PATH
17510 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17511 export_dynamic_flag_spec='${wl}--export-dynamic'
17512 # ancient GNU ld didn't support --whole-archive et. al.
17513 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
17514 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17515 else
17516 whole_archive_flag_spec=
17518 supports_anon_versioning=no
17519 case `$LD -v 2>&1` in
17520 *GNU\ gold*) supports_anon_versioning=yes ;;
17521 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17522 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17523 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17524 *\ 2.11.*) ;; # other 2.11 versions
17525 *) supports_anon_versioning=yes ;;
17526 esac
17528 # See if GNU ld supports shared libraries.
17529 case $host_os in
17530 aix[3-9]*)
17531 # On AIX/PPC, the GNU linker is very broken
17532 if test "$host_cpu" != ia64; then
17533 ld_shlibs=no
17534 cat <<_LT_EOF 1>&2
17536 *** Warning: the GNU linker, at least up to release 2.19, is reported
17537 *** to be unable to reliably create shared libraries on AIX.
17538 *** Therefore, libtool is disabling shared libraries support. If you
17539 *** really care for shared libraries, you may want to install binutils
17540 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
17541 *** You will then need to restart the configuration process.
17543 _LT_EOF
17547 amigaos*)
17548 case $host_cpu in
17549 powerpc)
17550 # see comment about AmigaOS4 .so support
17551 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17552 archive_expsym_cmds=''
17554 m68k)
17555 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)'
17556 hardcode_libdir_flag_spec='-L$libdir'
17557 hardcode_minus_L=yes
17559 esac
17562 beos*)
17563 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17564 allow_undefined_flag=unsupported
17565 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17566 # support --undefined. This deserves some investigation. FIXME
17567 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17568 else
17569 ld_shlibs=no
17573 cygwin* | mingw* | pw32* | cegcc*)
17574 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
17575 # as there is no search path for DLLs.
17576 hardcode_libdir_flag_spec='-L$libdir'
17577 export_dynamic_flag_spec='${wl}--export-all-symbols'
17578 allow_undefined_flag=unsupported
17579 always_export_symbols=no
17580 enable_shared_with_static_runtimes=yes
17581 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17583 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
17584 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17585 # If the export-symbols file already is a .def file (1st line
17586 # is EXPORTS), use it as is; otherwise, prepend...
17587 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17588 cp $export_symbols $output_objdir/$soname.def;
17589 else
17590 echo EXPORTS > $output_objdir/$soname.def;
17591 cat $export_symbols >> $output_objdir/$soname.def;
17593 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17594 else
17595 ld_shlibs=no
17599 haiku*)
17600 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17601 link_all_deplibs=yes
17604 interix[3-9]*)
17605 hardcode_direct=no
17606 hardcode_shlibpath_var=no
17607 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
17608 export_dynamic_flag_spec='${wl}-E'
17609 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17610 # Instead, shared libraries are loaded at an image base (0x10000000 by
17611 # default) and relocated if they conflict, which is a slow very memory
17612 # consuming and fragmenting process. To avoid this, we pick a random,
17613 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17614 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17615 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17616 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'
17619 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
17620 tmp_diet=no
17621 if test "$host_os" = linux-dietlibc; then
17622 case $cc_basename in
17623 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
17624 esac
17626 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
17627 && test "$tmp_diet" = no
17628 then
17629 tmp_addflag=' $pic_flag'
17630 tmp_sharedflag='-shared'
17631 case $cc_basename,$host_cpu in
17632 pgcc*) # Portland Group C compiler
17633 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'
17634 tmp_addflag=' $pic_flag'
17636 pgf77* | pgf90* | pgf95* | pgfortran*)
17637 # Portland Group f77 and f90 compilers
17638 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'
17639 tmp_addflag=' $pic_flag -Mnomain' ;;
17640 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17641 tmp_addflag=' -i_dynamic' ;;
17642 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17643 tmp_addflag=' -i_dynamic -nofor_main' ;;
17644 ifc* | ifort*) # Intel Fortran compiler
17645 tmp_addflag=' -nofor_main' ;;
17646 lf95*) # Lahey Fortran 8.1
17647 whole_archive_flag_spec=
17648 tmp_sharedflag='--shared' ;;
17649 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
17650 tmp_sharedflag='-qmkshrobj'
17651 tmp_addflag= ;;
17652 nvcc*) # Cuda Compiler Driver 2.2
17653 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'
17654 compiler_needs_object=yes
17656 esac
17657 case `$CC -V 2>&1 | sed 5q` in
17658 *Sun\ C*) # Sun C 5.9
17659 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'
17660 compiler_needs_object=yes
17661 tmp_sharedflag='-G' ;;
17662 *Sun\ F*) # Sun Fortran 8.3
17663 tmp_sharedflag='-G' ;;
17664 esac
17665 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17667 if test "x$supports_anon_versioning" = xyes; then
17668 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
17669 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17670 echo "local: *; };" >> $output_objdir/$libname.ver~
17671 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17674 case $cc_basename in
17675 xlf* | bgf* | bgxlf* | mpixlf*)
17676 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
17677 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
17678 hardcode_libdir_flag_spec=
17679 hardcode_libdir_flag_spec_ld='-rpath $libdir'
17680 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
17681 if test "x$supports_anon_versioning" = xyes; then
17682 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
17683 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17684 echo "local: *; };" >> $output_objdir/$libname.ver~
17685 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
17688 esac
17689 else
17690 ld_shlibs=no
17694 netbsd*)
17695 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17696 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17697 wlarc=
17698 else
17699 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17700 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17704 solaris*)
17705 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
17706 ld_shlibs=no
17707 cat <<_LT_EOF 1>&2
17709 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17710 *** create shared libraries on Solaris systems. Therefore, libtool
17711 *** is disabling shared libraries support. We urge you to upgrade GNU
17712 *** binutils to release 2.9.1 or newer. Another option is to modify
17713 *** your PATH or compiler configuration so that the native linker is
17714 *** used, and then restart.
17716 _LT_EOF
17717 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17718 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17719 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17720 else
17721 ld_shlibs=no
17725 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17726 case `$LD -v 2>&1` in
17727 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17728 ld_shlibs=no
17729 cat <<_LT_EOF 1>&2
17731 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17732 *** reliably create shared libraries on SCO systems. Therefore, libtool
17733 *** is disabling shared libraries support. We urge you to upgrade GNU
17734 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17735 *** your PATH or compiler configuration so that the native linker is
17736 *** used, and then restart.
17738 _LT_EOF
17741 # For security reasons, it is highly recommended that you always
17742 # use absolute paths for naming shared libraries, and exclude the
17743 # DT_RUNPATH tag from executables and libraries. But doing so
17744 # requires that you compile everything twice, which is a pain.
17745 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17746 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17747 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17748 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17749 else
17750 ld_shlibs=no
17753 esac
17756 sunos4*)
17757 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17758 wlarc=
17759 hardcode_direct=yes
17760 hardcode_shlibpath_var=no
17764 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17765 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17766 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17767 else
17768 ld_shlibs=no
17771 esac
17773 if test "$ld_shlibs" = no; then
17774 runpath_var=
17775 hardcode_libdir_flag_spec=
17776 export_dynamic_flag_spec=
17777 whole_archive_flag_spec=
17779 else
17780 # PORTME fill in a description of your system's linker (not GNU ld)
17781 case $host_os in
17782 aix3*)
17783 allow_undefined_flag=unsupported
17784 always_export_symbols=yes
17785 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'
17786 # Note: this linker hardcodes the directories in LIBPATH if there
17787 # are no directories specified by -L.
17788 hardcode_minus_L=yes
17789 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17790 # Neither direct hardcoding nor static linking is supported with a
17791 # broken collect2.
17792 hardcode_direct=unsupported
17796 aix[4-9]*)
17797 if test "$host_cpu" = ia64; then
17798 # On IA64, the linker does run time linking by default, so we don't
17799 # have to do anything special.
17800 aix_use_runtimelinking=no
17801 exp_sym_flag='-Bexport'
17802 no_entry_flag=""
17803 else
17804 # If we're using GNU nm, then we don't want the "-C" option.
17805 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17806 # Also, AIX nm treats weak defined symbols like other global
17807 # defined symbols, whereas GNU nm marks them as "W".
17808 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
17809 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'
17810 else
17811 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'
17813 aix_use_runtimelinking=no
17815 # Test if we are trying to use run time linking or normal
17816 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17817 # need to do runtime linking.
17818 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17819 for ld_flag in $LDFLAGS; do
17820 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17821 aix_use_runtimelinking=yes
17822 break
17824 done
17826 esac
17828 exp_sym_flag='-bexport'
17829 no_entry_flag='-bnoentry'
17832 # When large executables or shared objects are built, AIX ld can
17833 # have problems creating the table of contents. If linking a library
17834 # or program results in "error TOC overflow" add -mminimal-toc to
17835 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17836 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17838 archive_cmds=''
17839 hardcode_direct=yes
17840 hardcode_direct_absolute=yes
17841 hardcode_libdir_separator=':'
17842 link_all_deplibs=yes
17843 file_list_spec='${wl}-f,'
17845 if test "$GCC" = yes; then
17846 case $host_os in aix4.[012]|aix4.[012].*)
17847 # We only want to do this on AIX 4.2 and lower, the check
17848 # below for broken collect2 doesn't work under 4.3+
17849 collect2name=`${CC} -print-prog-name=collect2`
17850 if test -f "$collect2name" &&
17851 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
17852 then
17853 # We have reworked collect2
17855 else
17856 # We have old collect2
17857 hardcode_direct=unsupported
17858 # It fails to find uninstalled libraries when the uninstalled
17859 # path is not listed in the libpath. Setting hardcode_minus_L
17860 # to unsupported forces relinking
17861 hardcode_minus_L=yes
17862 hardcode_libdir_flag_spec='-L$libdir'
17863 hardcode_libdir_separator=
17866 esac
17867 shared_flag='-shared'
17868 if test "$aix_use_runtimelinking" = yes; then
17869 shared_flag="$shared_flag "'${wl}-G'
17871 else
17872 # not using gcc
17873 if test "$host_cpu" = ia64; then
17874 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17875 # chokes on -Wl,-G. The following line is correct:
17876 shared_flag='-G'
17877 else
17878 if test "$aix_use_runtimelinking" = yes; then
17879 shared_flag='${wl}-G'
17880 else
17881 shared_flag='${wl}-bM:SRE'
17886 export_dynamic_flag_spec='${wl}-bexpall'
17887 # It seems that -bexpall does not export symbols beginning with
17888 # underscore (_), so it is better to generate a list of symbols to export.
17889 always_export_symbols=yes
17890 if test "$aix_use_runtimelinking" = yes; then
17891 # Warning - without using the other runtime loading flags (-brtl),
17892 # -berok will link without error, but may produce a broken library.
17893 allow_undefined_flag='-berok'
17894 # Determine the default libpath from the value encoded in an
17895 # empty executable.
17896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17897 /* end confdefs.h. */
17900 main ()
17904 return 0;
17906 _ACEOF
17907 if ac_fn_c_try_link "$LINENO"; then :
17909 lt_aix_libpath_sed='
17910 /Import File Strings/,/^$/ {
17911 /^0/ {
17912 s/^0 *\(.*\)$/\1/
17916 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17917 # Check for a 64-bit object if we didn't find anything.
17918 if test -z "$aix_libpath"; then
17919 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17922 rm -f core conftest.err conftest.$ac_objext \
17923 conftest$ac_exeext conftest.$ac_ext
17924 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17926 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
17927 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"
17928 else
17929 if test "$host_cpu" = ia64; then
17930 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
17931 allow_undefined_flag="-z nodefs"
17932 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"
17933 else
17934 # Determine the default libpath from the value encoded in an
17935 # empty executable.
17936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17937 /* end confdefs.h. */
17940 main ()
17944 return 0;
17946 _ACEOF
17947 if ac_fn_c_try_link "$LINENO"; then :
17949 lt_aix_libpath_sed='
17950 /Import File Strings/,/^$/ {
17951 /^0/ {
17952 s/^0 *\(.*\)$/\1/
17956 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17957 # Check for a 64-bit object if we didn't find anything.
17958 if test -z "$aix_libpath"; then
17959 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17962 rm -f core conftest.err conftest.$ac_objext \
17963 conftest$ac_exeext conftest.$ac_ext
17964 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17966 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
17967 # Warning - without using the other run time loading flags,
17968 # -berok will link without error, but may produce a broken library.
17969 no_undefined_flag=' ${wl}-bernotok'
17970 allow_undefined_flag=' ${wl}-berok'
17971 if test "$with_gnu_ld" = yes; then
17972 # We only use this code for GNU lds that support --whole-archive.
17973 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
17974 else
17975 # Exported symbols can be pulled into shared objects from archives
17976 whole_archive_flag_spec='$convenience'
17978 archive_cmds_need_lc=yes
17979 # This is similar to how AIX traditionally builds its shared libraries.
17980 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'
17985 amigaos*)
17986 case $host_cpu in
17987 powerpc)
17988 # see comment about AmigaOS4 .so support
17989 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17990 archive_expsym_cmds=''
17992 m68k)
17993 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)'
17994 hardcode_libdir_flag_spec='-L$libdir'
17995 hardcode_minus_L=yes
17997 esac
18000 bsdi[45]*)
18001 export_dynamic_flag_spec=-rdynamic
18004 cygwin* | mingw* | pw32* | cegcc*)
18005 # When not using gcc, we currently assume that we are using
18006 # Microsoft Visual C++.
18007 # hardcode_libdir_flag_spec is actually meaningless, as there is
18008 # no search path for DLLs.
18009 hardcode_libdir_flag_spec=' '
18010 allow_undefined_flag=unsupported
18011 # Tell ltmain to make .lib files, not .a files.
18012 libext=lib
18013 # Tell ltmain to make .dll files, not .so files.
18014 shrext_cmds=".dll"
18015 # FIXME: Setting linknames here is a bad hack.
18016 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
18017 # The linker will automatically build a .lib file if we build a DLL.
18018 old_archive_from_new_cmds='true'
18019 # FIXME: Should let the user specify the lib program.
18020 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
18021 fix_srcfile_path='`cygpath -w "$srcfile"`'
18022 enable_shared_with_static_runtimes=yes
18025 darwin* | rhapsody*)
18028 archive_cmds_need_lc=no
18029 hardcode_direct=no
18030 hardcode_automatic=yes
18031 hardcode_shlibpath_var=unsupported
18032 if test "$lt_cv_ld_force_load" = "yes"; then
18033 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\"`'
18034 else
18035 whole_archive_flag_spec=''
18037 link_all_deplibs=yes
18038 allow_undefined_flag="$_lt_dar_allow_undefined"
18039 case $cc_basename in
18040 ifort*) _lt_dar_can_shared=yes ;;
18041 *) _lt_dar_can_shared=$GCC ;;
18042 esac
18043 if test "$_lt_dar_can_shared" = "yes"; then
18044 output_verbose_link_cmd=func_echo_all
18045 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
18046 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18047 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
18048 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}"
18050 else
18051 ld_shlibs=no
18056 dgux*)
18057 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18058 hardcode_libdir_flag_spec='-L$libdir'
18059 hardcode_shlibpath_var=no
18062 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18063 # support. Future versions do this automatically, but an explicit c++rt0.o
18064 # does not break anything, and helps significantly (at the cost of a little
18065 # extra space).
18066 freebsd2.2*)
18067 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18068 hardcode_libdir_flag_spec='-R$libdir'
18069 hardcode_direct=yes
18070 hardcode_shlibpath_var=no
18073 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18074 freebsd2.*)
18075 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18076 hardcode_direct=yes
18077 hardcode_minus_L=yes
18078 hardcode_shlibpath_var=no
18081 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18082 freebsd* | dragonfly*)
18083 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18084 hardcode_libdir_flag_spec='-R$libdir'
18085 hardcode_direct=yes
18086 hardcode_shlibpath_var=no
18089 hpux9*)
18090 if test "$GCC" = yes; then
18091 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'
18092 else
18093 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'
18095 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
18096 hardcode_libdir_separator=:
18097 hardcode_direct=yes
18099 # hardcode_minus_L: Not really in the search PATH,
18100 # but as the default location of the library.
18101 hardcode_minus_L=yes
18102 export_dynamic_flag_spec='${wl}-E'
18105 hpux10*)
18106 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
18107 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18108 else
18109 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18111 if test "$with_gnu_ld" = no; then
18112 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
18113 hardcode_libdir_flag_spec_ld='+b $libdir'
18114 hardcode_libdir_separator=:
18115 hardcode_direct=yes
18116 hardcode_direct_absolute=yes
18117 export_dynamic_flag_spec='${wl}-E'
18118 # hardcode_minus_L: Not really in the search PATH,
18119 # but as the default location of the library.
18120 hardcode_minus_L=yes
18124 hpux11*)
18125 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
18126 case $host_cpu in
18127 hppa*64*)
18128 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18130 ia64*)
18131 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18134 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18136 esac
18137 else
18138 case $host_cpu in
18139 hppa*64*)
18140 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18142 ia64*)
18143 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18147 # Older versions of the 11.00 compiler do not understand -b yet
18148 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
18149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
18150 $as_echo_n "checking if $CC understands -b... " >&6; }
18151 if ${lt_cv_prog_compiler__b+:} false; then :
18152 $as_echo_n "(cached) " >&6
18153 else
18154 lt_cv_prog_compiler__b=no
18155 save_LDFLAGS="$LDFLAGS"
18156 LDFLAGS="$LDFLAGS -b"
18157 echo "$lt_simple_link_test_code" > conftest.$ac_ext
18158 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18159 # The linker can only warn and ignore the option if not recognized
18160 # So say no if there are warnings
18161 if test -s conftest.err; then
18162 # Append any errors to the config.log.
18163 cat conftest.err 1>&5
18164 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
18165 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18166 if diff conftest.exp conftest.er2 >/dev/null; then
18167 lt_cv_prog_compiler__b=yes
18169 else
18170 lt_cv_prog_compiler__b=yes
18173 $RM -r conftest*
18174 LDFLAGS="$save_LDFLAGS"
18177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
18178 $as_echo "$lt_cv_prog_compiler__b" >&6; }
18180 if test x"$lt_cv_prog_compiler__b" = xyes; then
18181 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18182 else
18183 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18187 esac
18189 if test "$with_gnu_ld" = no; then
18190 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
18191 hardcode_libdir_separator=:
18193 case $host_cpu in
18194 hppa*64*|ia64*)
18195 hardcode_direct=no
18196 hardcode_shlibpath_var=no
18199 hardcode_direct=yes
18200 hardcode_direct_absolute=yes
18201 export_dynamic_flag_spec='${wl}-E'
18203 # hardcode_minus_L: Not really in the search PATH,
18204 # but as the default location of the library.
18205 hardcode_minus_L=yes
18207 esac
18211 irix5* | irix6* | nonstopux*)
18212 if test "$GCC" = yes; then
18213 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'
18214 # Try to use the -exported_symbol ld option, if it does not
18215 # work, assume that -exports_file does not work either and
18216 # implicitly export all symbols.
18217 save_LDFLAGS="$LDFLAGS"
18218 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
18219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18220 /* end confdefs.h. */
18221 int foo(void) {}
18222 _ACEOF
18223 if ac_fn_c_try_link "$LINENO"; then :
18224 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'
18227 rm -f core conftest.err conftest.$ac_objext \
18228 conftest$ac_exeext conftest.$ac_ext
18229 LDFLAGS="$save_LDFLAGS"
18230 else
18231 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'
18232 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'
18234 archive_cmds_need_lc='no'
18235 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
18236 hardcode_libdir_separator=:
18237 inherit_rpath=yes
18238 link_all_deplibs=yes
18241 netbsd*)
18242 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18243 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18244 else
18245 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18247 hardcode_libdir_flag_spec='-R$libdir'
18248 hardcode_direct=yes
18249 hardcode_shlibpath_var=no
18252 newsos6)
18253 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18254 hardcode_direct=yes
18255 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
18256 hardcode_libdir_separator=:
18257 hardcode_shlibpath_var=no
18260 *nto* | *qnx*)
18263 openbsd*)
18264 if test -f /usr/libexec/ld.so; then
18265 hardcode_direct=yes
18266 hardcode_shlibpath_var=no
18267 hardcode_direct_absolute=yes
18268 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18269 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18270 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18271 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
18272 export_dynamic_flag_spec='${wl}-E'
18273 else
18274 case $host_os in
18275 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18276 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18277 hardcode_libdir_flag_spec='-R$libdir'
18280 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18281 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
18283 esac
18285 else
18286 ld_shlibs=no
18290 os2*)
18291 hardcode_libdir_flag_spec='-L$libdir'
18292 hardcode_minus_L=yes
18293 allow_undefined_flag=unsupported
18294 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'
18295 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18298 osf3*)
18299 if test "$GCC" = yes; then
18300 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
18301 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'
18302 else
18303 allow_undefined_flag=' -expect_unresolved \*'
18304 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'
18306 archive_cmds_need_lc='no'
18307 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
18308 hardcode_libdir_separator=:
18311 osf4* | osf5*) # as osf3* with the addition of -msym flag
18312 if test "$GCC" = yes; then
18313 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
18314 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'
18315 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
18316 else
18317 allow_undefined_flag=' -expect_unresolved \*'
18318 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'
18319 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~
18320 $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'
18322 # Both c and cxx compiler support -rpath directly
18323 hardcode_libdir_flag_spec='-rpath $libdir'
18325 archive_cmds_need_lc='no'
18326 hardcode_libdir_separator=:
18329 solaris*)
18330 no_undefined_flag=' -z defs'
18331 if test "$GCC" = yes; then
18332 wlarc='${wl}'
18333 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18334 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18335 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
18336 else
18337 case `$CC -V 2>&1` in
18338 *"Compilers 5.0"*)
18339 wlarc=''
18340 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18341 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18342 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
18345 wlarc='${wl}'
18346 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
18347 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18348 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
18350 esac
18352 hardcode_libdir_flag_spec='-R$libdir'
18353 hardcode_shlibpath_var=no
18354 case $host_os in
18355 solaris2.[0-5] | solaris2.[0-5].*) ;;
18357 # The compiler driver will combine and reorder linker options,
18358 # but understands `-z linker_flag'. GCC discards it without `$wl',
18359 # but is careful enough not to reorder.
18360 # Supported since Solaris 2.6 (maybe 2.5.1?)
18361 if test "$GCC" = yes; then
18362 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18363 else
18364 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
18367 esac
18368 link_all_deplibs=yes
18371 sunos4*)
18372 if test "x$host_vendor" = xsequent; then
18373 # Use $CC to link under sequent, because it throws in some extra .o
18374 # files that make .init and .fini sections work.
18375 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18376 else
18377 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18379 hardcode_libdir_flag_spec='-L$libdir'
18380 hardcode_direct=yes
18381 hardcode_minus_L=yes
18382 hardcode_shlibpath_var=no
18385 sysv4)
18386 case $host_vendor in
18387 sni)
18388 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18389 hardcode_direct=yes # is this really true???
18391 siemens)
18392 ## LD is ld it makes a PLAMLIB
18393 ## CC just makes a GrossModule.
18394 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18395 reload_cmds='$CC -r -o $output$reload_objs'
18396 hardcode_direct=no
18398 motorola)
18399 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18400 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
18402 esac
18403 runpath_var='LD_RUN_PATH'
18404 hardcode_shlibpath_var=no
18407 sysv4.3*)
18408 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18409 hardcode_shlibpath_var=no
18410 export_dynamic_flag_spec='-Bexport'
18413 sysv4*MP*)
18414 if test -d /usr/nec; then
18415 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18416 hardcode_shlibpath_var=no
18417 runpath_var=LD_RUN_PATH
18418 hardcode_runpath_var=yes
18419 ld_shlibs=yes
18423 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18424 no_undefined_flag='${wl}-z,text'
18425 archive_cmds_need_lc=no
18426 hardcode_shlibpath_var=no
18427 runpath_var='LD_RUN_PATH'
18429 if test "$GCC" = yes; then
18430 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18431 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18432 else
18433 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18434 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18438 sysv5* | sco3.2v5* | sco5v6*)
18439 # Note: We can NOT use -z defs as we might desire, because we do not
18440 # link with -lc, and that would cause any symbols used from libc to
18441 # always be unresolved, which means just about no library would
18442 # ever link correctly. If we're not using GNU ld we use -z text
18443 # though, which does catch some bad symbols but isn't as heavy-handed
18444 # as -z defs.
18445 no_undefined_flag='${wl}-z,text'
18446 allow_undefined_flag='${wl}-z,nodefs'
18447 archive_cmds_need_lc=no
18448 hardcode_shlibpath_var=no
18449 hardcode_libdir_flag_spec='${wl}-R,$libdir'
18450 hardcode_libdir_separator=':'
18451 link_all_deplibs=yes
18452 export_dynamic_flag_spec='${wl}-Bexport'
18453 runpath_var='LD_RUN_PATH'
18455 if test "$GCC" = yes; then
18456 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18457 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18458 else
18459 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18460 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18464 uts4*)
18465 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18466 hardcode_libdir_flag_spec='-L$libdir'
18467 hardcode_shlibpath_var=no
18471 ld_shlibs=no
18473 esac
18475 if test x$host_vendor = xsni; then
18476 case $host in
18477 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18478 export_dynamic_flag_spec='${wl}-Blargedynsym'
18480 esac
18484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
18485 $as_echo "$ld_shlibs" >&6; }
18486 test "$ld_shlibs" = no && can_build_shared=no
18488 with_gnu_ld=$with_gnu_ld
18505 # Do we need to explicitly link libc?
18507 case "x$archive_cmds_need_lc" in
18508 x|xyes)
18509 # Assume -lc should be added
18510 archive_cmds_need_lc=yes
18512 if test "$enable_shared" = yes && test "$GCC" = yes; then
18513 case $archive_cmds in
18514 *'~'*)
18515 # FIXME: we may have to deal with multi-command sequences.
18517 '$CC '*)
18518 # Test whether the compiler implicitly links with -lc since on some
18519 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18520 # to ld, don't add -lc before -lgcc.
18521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
18522 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
18523 if ${lt_cv_archive_cmds_need_lc+:} false; then :
18524 $as_echo_n "(cached) " >&6
18525 else
18526 $RM conftest*
18527 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18529 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18530 (eval $ac_compile) 2>&5
18531 ac_status=$?
18532 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18533 test $ac_status = 0; } 2>conftest.err; then
18534 soname=conftest
18535 lib=conftest
18536 libobjs=conftest.$ac_objext
18537 deplibs=
18538 wl=$lt_prog_compiler_wl
18539 pic_flag=$lt_prog_compiler_pic
18540 compiler_flags=-v
18541 linker_flags=-v
18542 verstring=
18543 output_objdir=.
18544 libname=conftest
18545 lt_save_allow_undefined_flag=$allow_undefined_flag
18546 allow_undefined_flag=
18547 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
18548 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
18549 ac_status=$?
18550 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18551 test $ac_status = 0; }
18552 then
18553 lt_cv_archive_cmds_need_lc=no
18554 else
18555 lt_cv_archive_cmds_need_lc=yes
18557 allow_undefined_flag=$lt_save_allow_undefined_flag
18558 else
18559 cat conftest.err 1>&5
18561 $RM conftest*
18564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
18565 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
18566 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
18568 esac
18571 esac
18729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
18730 $as_echo_n "checking dynamic linker characteristics... " >&6; }
18732 if test "$GCC" = yes; then
18733 case $host_os in
18734 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
18735 *) lt_awk_arg="/^libraries:/" ;;
18736 esac
18737 case $host_os in
18738 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
18739 *) lt_sed_strip_eq="s,=/,/,g" ;;
18740 esac
18741 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
18742 case $lt_search_path_spec in
18743 *\;*)
18744 # if the path contains ";" then we assume it to be the separator
18745 # otherwise default to the standard path separator (i.e. ":") - it is
18746 # assumed that no part of a normal pathname contains ";" but that should
18747 # okay in the real world where ";" in dirpaths is itself problematic.
18748 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
18751 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
18753 esac
18754 # Ok, now we have the path, separated by spaces, we can step through it
18755 # and add multilib dir if necessary.
18756 lt_tmp_lt_search_path_spec=
18757 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
18758 for lt_sys_path in $lt_search_path_spec; do
18759 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
18760 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
18761 else
18762 test -d "$lt_sys_path" && \
18763 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
18765 done
18766 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
18767 BEGIN {RS=" "; FS="/|\n";} {
18768 lt_foo="";
18769 lt_count=0;
18770 for (lt_i = NF; lt_i > 0; lt_i--) {
18771 if ($lt_i != "" && $lt_i != ".") {
18772 if ($lt_i == "..") {
18773 lt_count++;
18774 } else {
18775 if (lt_count == 0) {
18776 lt_foo="/" $lt_i lt_foo;
18777 } else {
18778 lt_count--;
18783 if (lt_foo != "") { lt_freq[lt_foo]++; }
18784 if (lt_freq[lt_foo] == 1) { print lt_foo; }
18786 # AWK program above erroneously prepends '/' to C:/dos/paths
18787 # for these hosts.
18788 case $host_os in
18789 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
18790 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
18791 esac
18792 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
18793 else
18794 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18796 library_names_spec=
18797 libname_spec='lib$name'
18798 soname_spec=
18799 shrext_cmds=".so"
18800 postinstall_cmds=
18801 postuninstall_cmds=
18802 finish_cmds=
18803 finish_eval=
18804 shlibpath_var=
18805 shlibpath_overrides_runpath=unknown
18806 version_type=none
18807 dynamic_linker="$host_os ld.so"
18808 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18809 need_lib_prefix=unknown
18810 hardcode_into_libs=no
18812 # when you set need_version to no, make sure it does not cause -set_version
18813 # flags to be left without arguments
18814 need_version=unknown
18816 case $host_os in
18817 aix3*)
18818 version_type=linux
18819 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18820 shlibpath_var=LIBPATH
18822 # AIX 3 has no versioning support, so we append a major version to the name.
18823 soname_spec='${libname}${release}${shared_ext}$major'
18826 aix[4-9]*)
18827 version_type=linux
18828 need_lib_prefix=no
18829 need_version=no
18830 hardcode_into_libs=yes
18831 if test "$host_cpu" = ia64; then
18832 # AIX 5 supports IA64
18833 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18834 shlibpath_var=LD_LIBRARY_PATH
18835 else
18836 # With GCC up to 2.95.x, collect2 would create an import file
18837 # for dependence libraries. The import file would start with
18838 # the line `#! .'. This would cause the generated library to
18839 # depend on `.', always an invalid library. This was fixed in
18840 # development snapshots of GCC prior to 3.0.
18841 case $host_os in
18842 aix4 | aix4.[01] | aix4.[01].*)
18843 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18844 echo ' yes '
18845 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
18847 else
18848 can_build_shared=no
18851 esac
18852 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18853 # soname into executable. Probably we can add versioning support to
18854 # collect2, so additional links can be useful in future.
18855 if test "$aix_use_runtimelinking" = yes; then
18856 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18857 # instead of lib<name>.a to let people know that these are not
18858 # typical AIX shared libraries.
18859 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18860 else
18861 # We preserve .a as extension for shared libraries through AIX4.2
18862 # and later when we are not doing run time linking.
18863 library_names_spec='${libname}${release}.a $libname.a'
18864 soname_spec='${libname}${release}${shared_ext}$major'
18866 shlibpath_var=LIBPATH
18870 amigaos*)
18871 case $host_cpu in
18872 powerpc)
18873 # Since July 2007 AmigaOS4 officially supports .so libraries.
18874 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
18875 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18877 m68k)
18878 library_names_spec='$libname.ixlibrary $libname.a'
18879 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18880 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'
18882 esac
18885 beos*)
18886 library_names_spec='${libname}${shared_ext}'
18887 dynamic_linker="$host_os ld.so"
18888 shlibpath_var=LIBRARY_PATH
18891 bsdi[45]*)
18892 version_type=linux
18893 need_version=no
18894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18895 soname_spec='${libname}${release}${shared_ext}$major'
18896 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18897 shlibpath_var=LD_LIBRARY_PATH
18898 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18899 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18900 # the default ld.so.conf also contains /usr/contrib/lib and
18901 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18902 # libtool to hard-code these into programs
18905 cygwin* | mingw* | pw32* | cegcc*)
18906 version_type=windows
18907 shrext_cmds=".dll"
18908 need_version=no
18909 need_lib_prefix=no
18911 case $GCC,$host_os in
18912 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
18913 library_names_spec='$libname.dll.a'
18914 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18915 postinstall_cmds='base_file=`basename \${file}`~
18916 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
18917 dldir=$destdir/`dirname \$dlpath`~
18918 test -d \$dldir || mkdir -p \$dldir~
18919 $install_prog $dir/$dlname \$dldir/$dlname~
18920 chmod a+x \$dldir/$dlname~
18921 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18922 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18924 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18925 dlpath=$dir/\$dldll~
18926 $RM \$dlpath'
18927 shlibpath_overrides_runpath=yes
18929 case $host_os in
18930 cygwin*)
18931 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18932 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18934 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
18936 mingw* | cegcc*)
18937 # MinGW DLLs use traditional 'lib' prefix
18938 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18940 pw32*)
18941 # pw32 DLLs use 'pw' prefix rather than 'lib'
18942 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18944 esac
18948 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18950 esac
18951 dynamic_linker='Win32 ld.exe'
18952 # FIXME: first we should search . and the directory the executable is in
18953 shlibpath_var=PATH
18956 darwin* | rhapsody*)
18957 dynamic_linker="$host_os dyld"
18958 version_type=darwin
18959 need_lib_prefix=no
18960 need_version=no
18961 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18962 soname_spec='${libname}${release}${major}$shared_ext'
18963 shlibpath_overrides_runpath=yes
18964 shlibpath_var=DYLD_LIBRARY_PATH
18965 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18967 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
18968 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18971 dgux*)
18972 version_type=linux
18973 need_lib_prefix=no
18974 need_version=no
18975 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18976 soname_spec='${libname}${release}${shared_ext}$major'
18977 shlibpath_var=LD_LIBRARY_PATH
18980 freebsd* | dragonfly*)
18981 # DragonFly does not have aout. When/if they implement a new
18982 # versioning mechanism, adjust this.
18983 if test -x /usr/bin/objformat; then
18984 objformat=`/usr/bin/objformat`
18985 else
18986 case $host_os in
18987 freebsd[23].*) objformat=aout ;;
18988 *) objformat=elf ;;
18989 esac
18991 version_type=freebsd-$objformat
18992 case $version_type in
18993 freebsd-elf*)
18994 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18995 need_version=no
18996 need_lib_prefix=no
18998 freebsd-*)
18999 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19000 need_version=yes
19002 esac
19003 shlibpath_var=LD_LIBRARY_PATH
19004 case $host_os in
19005 freebsd2.*)
19006 shlibpath_overrides_runpath=yes
19008 freebsd3.[01]* | freebsdelf3.[01]*)
19009 shlibpath_overrides_runpath=yes
19010 hardcode_into_libs=yes
19012 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19013 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19014 shlibpath_overrides_runpath=no
19015 hardcode_into_libs=yes
19017 *) # from 4.6 on, and DragonFly
19018 shlibpath_overrides_runpath=yes
19019 hardcode_into_libs=yes
19021 esac
19024 haiku*)
19025 version_type=linux
19026 need_lib_prefix=no
19027 need_version=no
19028 dynamic_linker="$host_os runtime_loader"
19029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19030 soname_spec='${libname}${release}${shared_ext}$major'
19031 shlibpath_var=LIBRARY_PATH
19032 shlibpath_overrides_runpath=yes
19033 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
19034 hardcode_into_libs=yes
19037 hpux9* | hpux10* | hpux11*)
19038 # Give a soname corresponding to the major version so that dld.sl refuses to
19039 # link against other versions.
19040 version_type=sunos
19041 need_lib_prefix=no
19042 need_version=no
19043 case $host_cpu in
19044 ia64*)
19045 shrext_cmds='.so'
19046 hardcode_into_libs=yes
19047 dynamic_linker="$host_os dld.so"
19048 shlibpath_var=LD_LIBRARY_PATH
19049 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19050 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19051 soname_spec='${libname}${release}${shared_ext}$major'
19052 if test "X$HPUX_IA64_MODE" = X32; then
19053 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19054 else
19055 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19057 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19059 hppa*64*)
19060 shrext_cmds='.sl'
19061 hardcode_into_libs=yes
19062 dynamic_linker="$host_os dld.sl"
19063 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19064 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19066 soname_spec='${libname}${release}${shared_ext}$major'
19067 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19068 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19071 shrext_cmds='.sl'
19072 dynamic_linker="$host_os dld.sl"
19073 shlibpath_var=SHLIB_PATH
19074 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19076 soname_spec='${libname}${release}${shared_ext}$major'
19078 esac
19079 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
19080 postinstall_cmds='chmod 555 $lib'
19081 # or fails outright, so override atomically:
19082 install_override_mode=555
19085 interix[3-9]*)
19086 version_type=linux
19087 need_lib_prefix=no
19088 need_version=no
19089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19090 soname_spec='${libname}${release}${shared_ext}$major'
19091 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19092 shlibpath_var=LD_LIBRARY_PATH
19093 shlibpath_overrides_runpath=no
19094 hardcode_into_libs=yes
19097 irix5* | irix6* | nonstopux*)
19098 case $host_os in
19099 nonstopux*) version_type=nonstopux ;;
19101 if test "$lt_cv_prog_gnu_ld" = yes; then
19102 version_type=linux
19103 else
19104 version_type=irix
19105 fi ;;
19106 esac
19107 need_lib_prefix=no
19108 need_version=no
19109 soname_spec='${libname}${release}${shared_ext}$major'
19110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19111 case $host_os in
19112 irix5* | nonstopux*)
19113 libsuff= shlibsuff=
19116 case $LD in # libtool.m4 will add one of these switches to LD
19117 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19118 libsuff= shlibsuff= libmagic=32-bit;;
19119 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19120 libsuff=32 shlibsuff=N32 libmagic=N32;;
19121 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19122 libsuff=64 shlibsuff=64 libmagic=64-bit;;
19123 *) libsuff= shlibsuff= libmagic=never-match;;
19124 esac
19126 esac
19127 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19128 shlibpath_overrides_runpath=no
19129 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19130 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19131 hardcode_into_libs=yes
19134 # No shared lib support for Linux oldld, aout, or coff.
19135 linux*oldld* | linux*aout* | linux*coff*)
19136 dynamic_linker=no
19139 # This must be Linux ELF.
19141 # uclinux* changes (here and below) have been submitted to the libtool
19142 # project, but have not yet been accepted: they are GCC-local changes
19143 # for the time being. (See
19144 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
19145 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
19146 version_type=linux
19147 need_lib_prefix=no
19148 need_version=no
19149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19150 soname_spec='${libname}${release}${shared_ext}$major'
19151 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19152 shlibpath_var=LD_LIBRARY_PATH
19153 shlibpath_overrides_runpath=no
19155 # Some binutils ld are patched to set DT_RUNPATH
19156 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
19157 $as_echo_n "(cached) " >&6
19158 else
19159 lt_cv_shlibpath_overrides_runpath=no
19160 save_LDFLAGS=$LDFLAGS
19161 save_libdir=$libdir
19162 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
19163 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
19164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19165 /* end confdefs.h. */
19168 main ()
19172 return 0;
19174 _ACEOF
19175 if ac_fn_c_try_link "$LINENO"; then :
19176 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
19177 lt_cv_shlibpath_overrides_runpath=yes
19180 rm -f core conftest.err conftest.$ac_objext \
19181 conftest$ac_exeext conftest.$ac_ext
19182 LDFLAGS=$save_LDFLAGS
19183 libdir=$save_libdir
19187 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
19189 # This implies no fast_install, which is unacceptable.
19190 # Some rework will be needed to allow for fast_install
19191 # before this can be enabled.
19192 hardcode_into_libs=yes
19194 # Append ld.so.conf contents to the search path
19195 if test -f /etc/ld.so.conf; then
19196 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' ' '`
19197 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19200 # We used to test for /lib/ld.so.1 and disable shared libraries on
19201 # powerpc, because MkLinux only supported shared libraries with the
19202 # GNU dynamic linker. Since this was broken with cross compilers,
19203 # most powerpc-linux boxes support dynamic linking these days and
19204 # people can always --disable-shared, the test was removed, and we
19205 # assume the GNU/Linux dynamic linker is in use.
19206 dynamic_linker='GNU/Linux ld.so'
19209 netbsd*)
19210 version_type=sunos
19211 need_lib_prefix=no
19212 need_version=no
19213 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19214 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19215 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19216 dynamic_linker='NetBSD (a.out) ld.so'
19217 else
19218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19219 soname_spec='${libname}${release}${shared_ext}$major'
19220 dynamic_linker='NetBSD ld.elf_so'
19222 shlibpath_var=LD_LIBRARY_PATH
19223 shlibpath_overrides_runpath=yes
19224 hardcode_into_libs=yes
19227 newsos6)
19228 version_type=linux
19229 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19230 shlibpath_var=LD_LIBRARY_PATH
19231 shlibpath_overrides_runpath=yes
19234 *nto* | *qnx*)
19235 version_type=qnx
19236 need_lib_prefix=no
19237 need_version=no
19238 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19239 soname_spec='${libname}${release}${shared_ext}$major'
19240 shlibpath_var=LD_LIBRARY_PATH
19241 shlibpath_overrides_runpath=no
19242 hardcode_into_libs=yes
19243 dynamic_linker='ldqnx.so'
19246 openbsd*)
19247 version_type=sunos
19248 sys_lib_dlsearch_path_spec="/usr/lib"
19249 need_lib_prefix=no
19250 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19251 case $host_os in
19252 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19253 *) need_version=no ;;
19254 esac
19255 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19256 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19257 shlibpath_var=LD_LIBRARY_PATH
19258 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19259 case $host_os in
19260 openbsd2.[89] | openbsd2.[89].*)
19261 shlibpath_overrides_runpath=no
19264 shlibpath_overrides_runpath=yes
19266 esac
19267 else
19268 shlibpath_overrides_runpath=yes
19272 os2*)
19273 libname_spec='$name'
19274 shrext_cmds=".dll"
19275 need_lib_prefix=no
19276 library_names_spec='$libname${shared_ext} $libname.a'
19277 dynamic_linker='OS/2 ld.exe'
19278 shlibpath_var=LIBPATH
19281 osf3* | osf4* | osf5*)
19282 version_type=osf
19283 need_lib_prefix=no
19284 need_version=no
19285 soname_spec='${libname}${release}${shared_ext}$major'
19286 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19287 shlibpath_var=LD_LIBRARY_PATH
19288 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19289 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19292 rdos*)
19293 dynamic_linker=no
19296 solaris*)
19297 version_type=linux
19298 need_lib_prefix=no
19299 need_version=no
19300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19301 soname_spec='${libname}${release}${shared_ext}$major'
19302 shlibpath_var=LD_LIBRARY_PATH
19303 shlibpath_overrides_runpath=yes
19304 hardcode_into_libs=yes
19305 # ldd complains unless libraries are executable
19306 postinstall_cmds='chmod +x $lib'
19309 sunos4*)
19310 version_type=sunos
19311 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19312 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19313 shlibpath_var=LD_LIBRARY_PATH
19314 shlibpath_overrides_runpath=yes
19315 if test "$with_gnu_ld" = yes; then
19316 need_lib_prefix=no
19318 need_version=yes
19321 sysv4 | sysv4.3*)
19322 version_type=linux
19323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19324 soname_spec='${libname}${release}${shared_ext}$major'
19325 shlibpath_var=LD_LIBRARY_PATH
19326 case $host_vendor in
19327 sni)
19328 shlibpath_overrides_runpath=no
19329 need_lib_prefix=no
19330 runpath_var=LD_RUN_PATH
19332 siemens)
19333 need_lib_prefix=no
19335 motorola)
19336 need_lib_prefix=no
19337 need_version=no
19338 shlibpath_overrides_runpath=no
19339 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19341 esac
19344 sysv4*MP*)
19345 if test -d /usr/nec ;then
19346 version_type=linux
19347 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19348 soname_spec='$libname${shared_ext}.$major'
19349 shlibpath_var=LD_LIBRARY_PATH
19353 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19354 version_type=freebsd-elf
19355 need_lib_prefix=no
19356 need_version=no
19357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19358 soname_spec='${libname}${release}${shared_ext}$major'
19359 shlibpath_var=LD_LIBRARY_PATH
19360 shlibpath_overrides_runpath=yes
19361 hardcode_into_libs=yes
19362 if test "$with_gnu_ld" = yes; then
19363 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19364 else
19365 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19366 case $host_os in
19367 sco3.2v5*)
19368 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19370 esac
19372 sys_lib_dlsearch_path_spec='/usr/lib'
19375 tpf*)
19376 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
19377 version_type=linux
19378 need_lib_prefix=no
19379 need_version=no
19380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19381 shlibpath_var=LD_LIBRARY_PATH
19382 shlibpath_overrides_runpath=no
19383 hardcode_into_libs=yes
19386 uts4*)
19387 version_type=linux
19388 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19389 soname_spec='${libname}${release}${shared_ext}$major'
19390 shlibpath_var=LD_LIBRARY_PATH
19393 # Shared libraries for VwWorks, >= 7 only at this stage
19394 # and (fpic) still incompatible with "large" code models
19395 # in a few configurations. Only for RTP mode in any case,
19396 # and upon explicit request at configure time.
19397 vxworks7*)
19398 dynamic_linker=no
19399 case ${with_multisubdir}-${enable_shared} in
19400 *large*)
19402 *mrtp*-yes)
19403 version_type=linux
19404 need_lib_prefix=no
19405 need_version=no
19406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19407 soname_spec='${libname}${release}${shared_ext}$major'
19408 dynamic_linker="$host_os module_loader"
19410 esac
19413 dynamic_linker=no
19415 esac
19416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
19417 $as_echo "$dynamic_linker" >&6; }
19418 test "$dynamic_linker" = no && can_build_shared=no
19420 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19421 if test "$GCC" = yes; then
19422 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19425 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
19426 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
19428 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
19429 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
19523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
19524 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
19525 hardcode_action=
19526 if test -n "$hardcode_libdir_flag_spec" ||
19527 test -n "$runpath_var" ||
19528 test "X$hardcode_automatic" = "Xyes" ; then
19530 # We can hardcode non-existent directories.
19531 if test "$hardcode_direct" != no &&
19532 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19533 # have to relink, otherwise we might link with an installed library
19534 # when we should be linking with a yet-to-be-installed one
19535 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
19536 test "$hardcode_minus_L" != no; then
19537 # Linking always hardcodes the temporary library directory.
19538 hardcode_action=relink
19539 else
19540 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19541 hardcode_action=immediate
19543 else
19544 # We cannot hardcode anything, or else we can only hardcode existing
19545 # directories.
19546 hardcode_action=unsupported
19548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
19549 $as_echo "$hardcode_action" >&6; }
19551 if test "$hardcode_action" = relink ||
19552 test "$inherit_rpath" = yes; then
19553 # Fast installation is not supported
19554 enable_fast_install=no
19555 elif test "$shlibpath_overrides_runpath" = yes ||
19556 test "$enable_shared" = no; then
19557 # Fast installation is not necessary
19558 enable_fast_install=needless
19566 if test "x$enable_dlopen" != xyes; then
19567 enable_dlopen=unknown
19568 enable_dlopen_self=unknown
19569 enable_dlopen_self_static=unknown
19570 else
19571 lt_cv_dlopen=no
19572 lt_cv_dlopen_libs=
19574 case $host_os in
19575 beos*)
19576 lt_cv_dlopen="load_add_on"
19577 lt_cv_dlopen_libs=
19578 lt_cv_dlopen_self=yes
19581 mingw* | pw32* | cegcc*)
19582 lt_cv_dlopen="LoadLibrary"
19583 lt_cv_dlopen_libs=
19586 cygwin*)
19587 lt_cv_dlopen="dlopen"
19588 lt_cv_dlopen_libs=
19591 darwin*)
19592 # if libdl is installed we need to link against it
19593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
19594 $as_echo_n "checking for dlopen in -ldl... " >&6; }
19595 if ${ac_cv_lib_dl_dlopen+:} false; then :
19596 $as_echo_n "(cached) " >&6
19597 else
19598 ac_check_lib_save_LIBS=$LIBS
19599 LIBS="-ldl $LIBS"
19600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19601 /* end confdefs.h. */
19603 /* Override any GCC internal prototype to avoid an error.
19604 Use char because int might match the return type of a GCC
19605 builtin and then its argument prototype would still apply. */
19606 #ifdef __cplusplus
19607 extern "C"
19608 #endif
19609 char dlopen ();
19611 main ()
19613 return dlopen ();
19615 return 0;
19617 _ACEOF
19618 if ac_fn_c_try_link "$LINENO"; then :
19619 ac_cv_lib_dl_dlopen=yes
19620 else
19621 ac_cv_lib_dl_dlopen=no
19623 rm -f core conftest.err conftest.$ac_objext \
19624 conftest$ac_exeext conftest.$ac_ext
19625 LIBS=$ac_check_lib_save_LIBS
19627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
19628 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
19629 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
19630 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
19631 else
19633 lt_cv_dlopen="dyld"
19634 lt_cv_dlopen_libs=
19635 lt_cv_dlopen_self=yes
19642 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
19643 if test "x$ac_cv_func_shl_load" = xyes; then :
19644 lt_cv_dlopen="shl_load"
19645 else
19646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
19647 $as_echo_n "checking for shl_load in -ldld... " >&6; }
19648 if ${ac_cv_lib_dld_shl_load+:} false; then :
19649 $as_echo_n "(cached) " >&6
19650 else
19651 ac_check_lib_save_LIBS=$LIBS
19652 LIBS="-ldld $LIBS"
19653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19654 /* end confdefs.h. */
19656 /* Override any GCC internal prototype to avoid an error.
19657 Use char because int might match the return type of a GCC
19658 builtin and then its argument prototype would still apply. */
19659 #ifdef __cplusplus
19660 extern "C"
19661 #endif
19662 char shl_load ();
19664 main ()
19666 return shl_load ();
19668 return 0;
19670 _ACEOF
19671 if ac_fn_c_try_link "$LINENO"; then :
19672 ac_cv_lib_dld_shl_load=yes
19673 else
19674 ac_cv_lib_dld_shl_load=no
19676 rm -f core conftest.err conftest.$ac_objext \
19677 conftest$ac_exeext conftest.$ac_ext
19678 LIBS=$ac_check_lib_save_LIBS
19680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
19681 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
19682 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
19683 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
19684 else
19685 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
19686 if test "x$ac_cv_func_dlopen" = xyes; then :
19687 lt_cv_dlopen="dlopen"
19688 else
19689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
19690 $as_echo_n "checking for dlopen in -ldl... " >&6; }
19691 if ${ac_cv_lib_dl_dlopen+:} false; then :
19692 $as_echo_n "(cached) " >&6
19693 else
19694 ac_check_lib_save_LIBS=$LIBS
19695 LIBS="-ldl $LIBS"
19696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19697 /* end confdefs.h. */
19699 /* Override any GCC internal prototype to avoid an error.
19700 Use char because int might match the return type of a GCC
19701 builtin and then its argument prototype would still apply. */
19702 #ifdef __cplusplus
19703 extern "C"
19704 #endif
19705 char dlopen ();
19707 main ()
19709 return dlopen ();
19711 return 0;
19713 _ACEOF
19714 if ac_fn_c_try_link "$LINENO"; then :
19715 ac_cv_lib_dl_dlopen=yes
19716 else
19717 ac_cv_lib_dl_dlopen=no
19719 rm -f core conftest.err conftest.$ac_objext \
19720 conftest$ac_exeext conftest.$ac_ext
19721 LIBS=$ac_check_lib_save_LIBS
19723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
19724 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
19725 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
19726 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
19727 else
19728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
19729 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
19730 if ${ac_cv_lib_svld_dlopen+:} false; then :
19731 $as_echo_n "(cached) " >&6
19732 else
19733 ac_check_lib_save_LIBS=$LIBS
19734 LIBS="-lsvld $LIBS"
19735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19736 /* end confdefs.h. */
19738 /* Override any GCC internal prototype to avoid an error.
19739 Use char because int might match the return type of a GCC
19740 builtin and then its argument prototype would still apply. */
19741 #ifdef __cplusplus
19742 extern "C"
19743 #endif
19744 char dlopen ();
19746 main ()
19748 return dlopen ();
19750 return 0;
19752 _ACEOF
19753 if ac_fn_c_try_link "$LINENO"; then :
19754 ac_cv_lib_svld_dlopen=yes
19755 else
19756 ac_cv_lib_svld_dlopen=no
19758 rm -f core conftest.err conftest.$ac_objext \
19759 conftest$ac_exeext conftest.$ac_ext
19760 LIBS=$ac_check_lib_save_LIBS
19762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
19763 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
19764 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
19765 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
19766 else
19767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
19768 $as_echo_n "checking for dld_link in -ldld... " >&6; }
19769 if ${ac_cv_lib_dld_dld_link+:} false; then :
19770 $as_echo_n "(cached) " >&6
19771 else
19772 ac_check_lib_save_LIBS=$LIBS
19773 LIBS="-ldld $LIBS"
19774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19775 /* end confdefs.h. */
19777 /* Override any GCC internal prototype to avoid an error.
19778 Use char because int might match the return type of a GCC
19779 builtin and then its argument prototype would still apply. */
19780 #ifdef __cplusplus
19781 extern "C"
19782 #endif
19783 char dld_link ();
19785 main ()
19787 return dld_link ();
19789 return 0;
19791 _ACEOF
19792 if ac_fn_c_try_link "$LINENO"; then :
19793 ac_cv_lib_dld_dld_link=yes
19794 else
19795 ac_cv_lib_dld_dld_link=no
19797 rm -f core conftest.err conftest.$ac_objext \
19798 conftest$ac_exeext conftest.$ac_ext
19799 LIBS=$ac_check_lib_save_LIBS
19801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
19802 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
19803 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
19804 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
19823 esac
19825 if test "x$lt_cv_dlopen" != xno; then
19826 enable_dlopen=yes
19827 else
19828 enable_dlopen=no
19831 case $lt_cv_dlopen in
19832 dlopen)
19833 save_CPPFLAGS="$CPPFLAGS"
19834 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
19836 save_LDFLAGS="$LDFLAGS"
19837 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
19839 save_LIBS="$LIBS"
19840 LIBS="$lt_cv_dlopen_libs $LIBS"
19842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
19843 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
19844 if ${lt_cv_dlopen_self+:} false; then :
19845 $as_echo_n "(cached) " >&6
19846 else
19847 if test "$cross_compiling" = yes; then :
19848 lt_cv_dlopen_self=cross
19849 else
19850 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19851 lt_status=$lt_dlunknown
19852 cat > conftest.$ac_ext <<_LT_EOF
19853 #line 19853 "configure"
19854 #include "confdefs.h"
19856 #if HAVE_DLFCN_H
19857 #include <dlfcn.h>
19858 #endif
19860 #include <stdio.h>
19862 #ifdef RTLD_GLOBAL
19863 # define LT_DLGLOBAL RTLD_GLOBAL
19864 #else
19865 # ifdef DL_GLOBAL
19866 # define LT_DLGLOBAL DL_GLOBAL
19867 # else
19868 # define LT_DLGLOBAL 0
19869 # endif
19870 #endif
19872 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19873 find out it does not work in some platform. */
19874 #ifndef LT_DLLAZY_OR_NOW
19875 # ifdef RTLD_LAZY
19876 # define LT_DLLAZY_OR_NOW RTLD_LAZY
19877 # else
19878 # ifdef DL_LAZY
19879 # define LT_DLLAZY_OR_NOW DL_LAZY
19880 # else
19881 # ifdef RTLD_NOW
19882 # define LT_DLLAZY_OR_NOW RTLD_NOW
19883 # else
19884 # ifdef DL_NOW
19885 # define LT_DLLAZY_OR_NOW DL_NOW
19886 # else
19887 # define LT_DLLAZY_OR_NOW 0
19888 # endif
19889 # endif
19890 # endif
19891 # endif
19892 #endif
19894 /* When -fvisbility=hidden is used, assume the code has been annotated
19895 correspondingly for the symbols needed. */
19896 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
19897 void fnord () __attribute__((visibility("default")));
19898 #endif
19900 void fnord () { int i=42; }
19901 int main ()
19903 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19904 int status = $lt_dlunknown;
19906 if (self)
19908 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19909 else
19911 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19912 else puts (dlerror ());
19914 /* dlclose (self); */
19916 else
19917 puts (dlerror ());
19919 return status;
19921 _LT_EOF
19922 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
19923 (eval $ac_link) 2>&5
19924 ac_status=$?
19925 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19926 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
19927 (./conftest; exit; ) >&5 2>/dev/null
19928 lt_status=$?
19929 case x$lt_status in
19930 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
19931 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
19932 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
19933 esac
19934 else :
19935 # compilation failed
19936 lt_cv_dlopen_self=no
19939 rm -fr conftest*
19943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
19944 $as_echo "$lt_cv_dlopen_self" >&6; }
19946 if test "x$lt_cv_dlopen_self" = xyes; then
19947 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
19948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
19949 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
19950 if ${lt_cv_dlopen_self_static+:} false; then :
19951 $as_echo_n "(cached) " >&6
19952 else
19953 if test "$cross_compiling" = yes; then :
19954 lt_cv_dlopen_self_static=cross
19955 else
19956 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19957 lt_status=$lt_dlunknown
19958 cat > conftest.$ac_ext <<_LT_EOF
19959 #line 19959 "configure"
19960 #include "confdefs.h"
19962 #if HAVE_DLFCN_H
19963 #include <dlfcn.h>
19964 #endif
19966 #include <stdio.h>
19968 #ifdef RTLD_GLOBAL
19969 # define LT_DLGLOBAL RTLD_GLOBAL
19970 #else
19971 # ifdef DL_GLOBAL
19972 # define LT_DLGLOBAL DL_GLOBAL
19973 # else
19974 # define LT_DLGLOBAL 0
19975 # endif
19976 #endif
19978 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19979 find out it does not work in some platform. */
19980 #ifndef LT_DLLAZY_OR_NOW
19981 # ifdef RTLD_LAZY
19982 # define LT_DLLAZY_OR_NOW RTLD_LAZY
19983 # else
19984 # ifdef DL_LAZY
19985 # define LT_DLLAZY_OR_NOW DL_LAZY
19986 # else
19987 # ifdef RTLD_NOW
19988 # define LT_DLLAZY_OR_NOW RTLD_NOW
19989 # else
19990 # ifdef DL_NOW
19991 # define LT_DLLAZY_OR_NOW DL_NOW
19992 # else
19993 # define LT_DLLAZY_OR_NOW 0
19994 # endif
19995 # endif
19996 # endif
19997 # endif
19998 #endif
20000 /* When -fvisbility=hidden is used, assume the code has been annotated
20001 correspondingly for the symbols needed. */
20002 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
20003 void fnord () __attribute__((visibility("default")));
20004 #endif
20006 void fnord () { int i=42; }
20007 int main ()
20009 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20010 int status = $lt_dlunknown;
20012 if (self)
20014 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
20015 else
20017 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20018 else puts (dlerror ());
20020 /* dlclose (self); */
20022 else
20023 puts (dlerror ());
20025 return status;
20027 _LT_EOF
20028 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
20029 (eval $ac_link) 2>&5
20030 ac_status=$?
20031 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20032 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
20033 (./conftest; exit; ) >&5 2>/dev/null
20034 lt_status=$?
20035 case x$lt_status in
20036 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
20037 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
20038 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
20039 esac
20040 else :
20041 # compilation failed
20042 lt_cv_dlopen_self_static=no
20045 rm -fr conftest*
20049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
20050 $as_echo "$lt_cv_dlopen_self_static" >&6; }
20053 CPPFLAGS="$save_CPPFLAGS"
20054 LDFLAGS="$save_LDFLAGS"
20055 LIBS="$save_LIBS"
20057 esac
20059 case $lt_cv_dlopen_self in
20060 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
20061 *) enable_dlopen_self=unknown ;;
20062 esac
20064 case $lt_cv_dlopen_self_static in
20065 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
20066 *) enable_dlopen_self_static=unknown ;;
20067 esac
20086 striplib=
20087 old_striplib=
20088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
20089 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
20090 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
20091 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
20092 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
20093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20094 $as_echo "yes" >&6; }
20095 else
20096 # FIXME - insert some real tests, host_os isn't really good enough
20097 case $host_os in
20098 darwin*)
20099 if test -n "$STRIP" ; then
20100 striplib="$STRIP -x"
20101 old_striplib="$STRIP -S"
20102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20103 $as_echo "yes" >&6; }
20104 else
20105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20106 $as_echo "no" >&6; }
20110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20111 $as_echo "no" >&6; }
20113 esac
20127 # Report which library types will actually be built
20128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
20129 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
20130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
20131 $as_echo "$can_build_shared" >&6; }
20133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
20134 $as_echo_n "checking whether to build shared libraries... " >&6; }
20135 test "$can_build_shared" = "no" && enable_shared=no
20137 # On AIX, shared libraries and static libraries use the same namespace, and
20138 # are all built from PIC.
20139 case $host_os in
20140 aix3*)
20141 test "$enable_shared" = yes && enable_static=no
20142 if test -n "$RANLIB"; then
20143 archive_cmds="$archive_cmds~\$RANLIB \$lib"
20144 postinstall_cmds='$RANLIB $lib'
20148 aix[4-9]*)
20149 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
20150 test "$enable_shared" = yes && enable_static=no
20153 esac
20154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
20155 $as_echo "$enable_shared" >&6; }
20157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
20158 $as_echo_n "checking whether to build static libraries... " >&6; }
20159 # Make sure either enable_shared or enable_static is yes.
20160 test "$enable_shared" = yes || enable_static=yes
20161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
20162 $as_echo "$enable_static" >&6; }
20168 ac_ext=cpp
20169 ac_cpp='$CXXCPP $CPPFLAGS'
20170 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20171 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20172 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20174 CC="$lt_save_CC"
20176 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
20177 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
20178 (test "X$CXX" != "Xg++"))) ; then
20179 ac_ext=cpp
20180 ac_cpp='$CXXCPP $CPPFLAGS'
20181 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20182 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20183 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
20185 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
20186 if test -z "$CXXCPP"; then
20187 if ${ac_cv_prog_CXXCPP+:} false; then :
20188 $as_echo_n "(cached) " >&6
20189 else
20190 # Double quotes because CXXCPP needs to be expanded
20191 for CXXCPP in "$CXX -E" "/lib/cpp"
20193 ac_preproc_ok=false
20194 for ac_cxx_preproc_warn_flag in '' yes
20196 # Use a header file that comes with gcc, so configuring glibc
20197 # with a fresh cross-compiler works.
20198 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20199 # <limits.h> exists even on freestanding compilers.
20200 # On the NeXT, cc -E runs the code through the compiler's parser,
20201 # not just through cpp. "Syntax error" is here to catch this case.
20202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20203 /* end confdefs.h. */
20204 #ifdef __STDC__
20205 # include <limits.h>
20206 #else
20207 # include <assert.h>
20208 #endif
20209 Syntax error
20210 _ACEOF
20211 if ac_fn_cxx_try_cpp "$LINENO"; then :
20213 else
20214 # Broken: fails on valid input.
20215 continue
20217 rm -f conftest.err conftest.i conftest.$ac_ext
20219 # OK, works on sane cases. Now check whether nonexistent headers
20220 # can be detected and how.
20221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20222 /* end confdefs.h. */
20223 #include <ac_nonexistent.h>
20224 _ACEOF
20225 if ac_fn_cxx_try_cpp "$LINENO"; then :
20226 # Broken: success on invalid input.
20227 continue
20228 else
20229 # Passes both tests.
20230 ac_preproc_ok=:
20231 break
20233 rm -f conftest.err conftest.i conftest.$ac_ext
20235 done
20236 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
20237 rm -f conftest.i conftest.err conftest.$ac_ext
20238 if $ac_preproc_ok; then :
20239 break
20242 done
20243 ac_cv_prog_CXXCPP=$CXXCPP
20246 CXXCPP=$ac_cv_prog_CXXCPP
20247 else
20248 ac_cv_prog_CXXCPP=$CXXCPP
20250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
20251 $as_echo "$CXXCPP" >&6; }
20252 ac_preproc_ok=false
20253 for ac_cxx_preproc_warn_flag in '' yes
20255 # Use a header file that comes with gcc, so configuring glibc
20256 # with a fresh cross-compiler works.
20257 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20258 # <limits.h> exists even on freestanding compilers.
20259 # On the NeXT, cc -E runs the code through the compiler's parser,
20260 # not just through cpp. "Syntax error" is here to catch this case.
20261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20262 /* end confdefs.h. */
20263 #ifdef __STDC__
20264 # include <limits.h>
20265 #else
20266 # include <assert.h>
20267 #endif
20268 Syntax error
20269 _ACEOF
20270 if ac_fn_cxx_try_cpp "$LINENO"; then :
20272 else
20273 # Broken: fails on valid input.
20274 continue
20276 rm -f conftest.err conftest.i conftest.$ac_ext
20278 # OK, works on sane cases. Now check whether nonexistent headers
20279 # can be detected and how.
20280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20281 /* end confdefs.h. */
20282 #include <ac_nonexistent.h>
20283 _ACEOF
20284 if ac_fn_cxx_try_cpp "$LINENO"; then :
20285 # Broken: success on invalid input.
20286 continue
20287 else
20288 # Passes both tests.
20289 ac_preproc_ok=:
20290 break
20292 rm -f conftest.err conftest.i conftest.$ac_ext
20294 done
20295 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
20296 rm -f conftest.i conftest.err conftest.$ac_ext
20297 if $ac_preproc_ok; then :
20299 else
20300 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20301 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20302 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
20303 See \`config.log' for more details" "$LINENO" 5; }
20306 ac_ext=cpp
20307 ac_cpp='$CXXCPP $CPPFLAGS'
20308 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20309 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20310 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20312 else
20313 _lt_caught_CXX_error=yes
20316 ac_ext=cpp
20317 ac_cpp='$CXXCPP $CPPFLAGS'
20318 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20319 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20320 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20322 archive_cmds_need_lc_CXX=no
20323 allow_undefined_flag_CXX=
20324 always_export_symbols_CXX=no
20325 archive_expsym_cmds_CXX=
20326 compiler_needs_object_CXX=no
20327 export_dynamic_flag_spec_CXX=
20328 hardcode_direct_CXX=no
20329 hardcode_direct_absolute_CXX=no
20330 hardcode_libdir_flag_spec_CXX=
20331 hardcode_libdir_flag_spec_ld_CXX=
20332 hardcode_libdir_separator_CXX=
20333 hardcode_minus_L_CXX=no
20334 hardcode_shlibpath_var_CXX=unsupported
20335 hardcode_automatic_CXX=no
20336 inherit_rpath_CXX=no
20337 module_cmds_CXX=
20338 module_expsym_cmds_CXX=
20339 link_all_deplibs_CXX=unknown
20340 old_archive_cmds_CXX=$old_archive_cmds
20341 reload_flag_CXX=$reload_flag
20342 reload_cmds_CXX=$reload_cmds
20343 no_undefined_flag_CXX=
20344 whole_archive_flag_spec_CXX=
20345 enable_shared_with_static_runtimes_CXX=no
20347 # Source file extension for C++ test sources.
20348 ac_ext=cpp
20350 # Object file extension for compiled C++ test sources.
20351 objext=o
20352 objext_CXX=$objext
20354 # No sense in running all these tests if we already determined that
20355 # the CXX compiler isn't working. Some variables (like enable_shared)
20356 # are currently assumed to apply to all compilers on this platform,
20357 # and will be corrupted by setting them based on a non-working compiler.
20358 if test "$_lt_caught_CXX_error" != yes; then
20359 # Code to be used in simple compile tests
20360 lt_simple_compile_test_code="int some_variable = 0;"
20362 # Code to be used in simple link tests
20363 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
20365 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20372 # If no C compiler was specified, use CC.
20373 LTCC=${LTCC-"$CC"}
20375 # If no C compiler flags were specified, use CFLAGS.
20376 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
20378 # Allow CC to be a program name with arguments.
20379 compiler=$CC
20382 # save warnings/boilerplate of simple test code
20383 ac_outfile=conftest.$ac_objext
20384 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
20385 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20386 _lt_compiler_boilerplate=`cat conftest.err`
20387 $RM conftest*
20389 ac_outfile=conftest.$ac_objext
20390 echo "$lt_simple_link_test_code" >conftest.$ac_ext
20391 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20392 _lt_linker_boilerplate=`cat conftest.err`
20393 $RM -r conftest*
20396 # Allow CC to be a program name with arguments.
20397 lt_save_CC=$CC
20398 lt_save_LD=$LD
20399 lt_save_GCC=$GCC
20400 GCC=$GXX
20401 lt_save_with_gnu_ld=$with_gnu_ld
20402 lt_save_path_LD=$lt_cv_path_LD
20403 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
20404 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
20405 else
20406 $as_unset lt_cv_prog_gnu_ld
20408 if test -n "${lt_cv_path_LDCXX+set}"; then
20409 lt_cv_path_LD=$lt_cv_path_LDCXX
20410 else
20411 $as_unset lt_cv_path_LD
20413 test -z "${LDCXX+set}" || LD=$LDCXX
20414 CC=${CXX-"c++"}
20415 compiler=$CC
20416 compiler_CXX=$CC
20417 for cc_temp in $compiler""; do
20418 case $cc_temp in
20419 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20420 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20421 \-*) ;;
20422 *) break;;
20423 esac
20424 done
20425 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
20428 if test -n "$compiler"; then
20429 # We don't want -fno-exception when compiling C++ code, so set the
20430 # no_builtin_flag separately
20431 if test "$GXX" = yes; then
20432 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
20433 else
20434 lt_prog_compiler_no_builtin_flag_CXX=
20437 if test "$GXX" = yes; then
20438 # Set up default GNU C++ configuration
20442 # Check whether --with-gnu-ld was given.
20443 if test "${with_gnu_ld+set}" = set; then :
20444 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
20445 else
20446 with_gnu_ld=no
20449 ac_prog=ld
20450 if test "$GCC" = yes; then
20451 # Check if gcc -print-prog-name=ld gives a path.
20452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
20453 $as_echo_n "checking for ld used by $CC... " >&6; }
20454 case $host in
20455 *-*-mingw*)
20456 # gcc leaves a trailing carriage return which upsets mingw
20457 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
20459 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
20460 esac
20461 case $ac_prog in
20462 # Accept absolute paths.
20463 [\\/]* | ?:[\\/]*)
20464 re_direlt='/[^/][^/]*/\.\./'
20465 # Canonicalize the pathname of ld
20466 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
20467 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
20468 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
20469 done
20470 test -z "$LD" && LD="$ac_prog"
20473 # If it fails, then pretend we aren't using GCC.
20474 ac_prog=ld
20477 # If it is relative, then search for the first ld in PATH.
20478 with_gnu_ld=unknown
20480 esac
20481 elif test "$with_gnu_ld" = yes; then
20482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
20483 $as_echo_n "checking for GNU ld... " >&6; }
20484 else
20485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
20486 $as_echo_n "checking for non-GNU ld... " >&6; }
20488 if ${lt_cv_path_LD+:} false; then :
20489 $as_echo_n "(cached) " >&6
20490 else
20491 if test -z "$LD"; then
20492 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
20493 for ac_dir in $PATH; do
20494 IFS="$lt_save_ifs"
20495 test -z "$ac_dir" && ac_dir=.
20496 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
20497 lt_cv_path_LD="$ac_dir/$ac_prog"
20498 # Check to see if the program is GNU ld. I'd rather use --version,
20499 # but apparently some variants of GNU ld only accept -v.
20500 # Break only if it was the GNU/non-GNU ld that we prefer.
20501 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
20502 *GNU* | *'with BFD'*)
20503 test "$with_gnu_ld" != no && break
20506 test "$with_gnu_ld" != yes && break
20508 esac
20510 done
20511 IFS="$lt_save_ifs"
20512 else
20513 lt_cv_path_LD="$LD" # Let the user override the test with a path.
20517 LD="$lt_cv_path_LD"
20518 if test -n "$LD"; then
20519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
20520 $as_echo "$LD" >&6; }
20521 else
20522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20523 $as_echo "no" >&6; }
20525 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
20526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
20527 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
20528 if ${lt_cv_prog_gnu_ld+:} false; then :
20529 $as_echo_n "(cached) " >&6
20530 else
20531 # I'd rather use --version here, but apparently some GNU lds only accept -v.
20532 case `$LD -v 2>&1 </dev/null` in
20533 *GNU* | *'with BFD'*)
20534 lt_cv_prog_gnu_ld=yes
20537 lt_cv_prog_gnu_ld=no
20539 esac
20541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
20542 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
20543 with_gnu_ld=$lt_cv_prog_gnu_ld
20551 # Check if GNU C++ uses GNU ld as the underlying linker, since the
20552 # archiving commands below assume that GNU ld is being used.
20553 if test "$with_gnu_ld" = yes; then
20554 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
20555 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'
20557 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
20558 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
20560 # If archive_cmds runs LD, not CC, wlarc should be empty
20561 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
20562 # investigate it a little bit more. (MM)
20563 wlarc='${wl}'
20565 # ancient GNU ld didn't support --whole-archive et. al.
20566 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
20567 $GREP 'no-whole-archive' > /dev/null; then
20568 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
20569 else
20570 whole_archive_flag_spec_CXX=
20572 else
20573 with_gnu_ld=no
20574 wlarc=
20576 # A generic and very simple default shared library creation
20577 # command for GNU C++ for the case where it uses the native
20578 # linker, instead of GNU ld. If possible, this setting should
20579 # overridden to take advantage of the native linker features on
20580 # the platform it is being used on.
20581 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
20584 # Commands to make compiler produce verbose output that lists
20585 # what "hidden" libraries, object files and flags are used when
20586 # linking a shared library.
20587 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20589 else
20590 GXX=no
20591 with_gnu_ld=no
20592 wlarc=
20595 # PORTME: fill in a description of your system's C++ link characteristics
20596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20597 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20598 ld_shlibs_CXX=yes
20599 case $host_os in
20600 aix3*)
20601 # FIXME: insert proper C++ library support
20602 ld_shlibs_CXX=no
20604 aix[4-9]*)
20605 if test "$host_cpu" = ia64; then
20606 # On IA64, the linker does run time linking by default, so we don't
20607 # have to do anything special.
20608 aix_use_runtimelinking=no
20609 exp_sym_flag='-Bexport'
20610 no_entry_flag=""
20611 else
20612 aix_use_runtimelinking=no
20614 # Test if we are trying to use run time linking or normal
20615 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
20616 # need to do runtime linking.
20617 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
20618 for ld_flag in $LDFLAGS; do
20619 case $ld_flag in
20620 *-brtl*)
20621 aix_use_runtimelinking=yes
20622 break
20624 esac
20625 done
20627 esac
20629 exp_sym_flag='-bexport'
20630 no_entry_flag='-bnoentry'
20633 # When large executables or shared objects are built, AIX ld can
20634 # have problems creating the table of contents. If linking a library
20635 # or program results in "error TOC overflow" add -mminimal-toc to
20636 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
20637 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
20639 archive_cmds_CXX=''
20640 hardcode_direct_CXX=yes
20641 hardcode_direct_absolute_CXX=yes
20642 hardcode_libdir_separator_CXX=':'
20643 link_all_deplibs_CXX=yes
20644 file_list_spec_CXX='${wl}-f,'
20646 if test "$GXX" = yes; then
20647 case $host_os in aix4.[012]|aix4.[012].*)
20648 # We only want to do this on AIX 4.2 and lower, the check
20649 # below for broken collect2 doesn't work under 4.3+
20650 collect2name=`${CC} -print-prog-name=collect2`
20651 if test -f "$collect2name" &&
20652 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
20653 then
20654 # We have reworked collect2
20656 else
20657 # We have old collect2
20658 hardcode_direct_CXX=unsupported
20659 # It fails to find uninstalled libraries when the uninstalled
20660 # path is not listed in the libpath. Setting hardcode_minus_L
20661 # to unsupported forces relinking
20662 hardcode_minus_L_CXX=yes
20663 hardcode_libdir_flag_spec_CXX='-L$libdir'
20664 hardcode_libdir_separator_CXX=
20666 esac
20667 shared_flag='-shared'
20668 if test "$aix_use_runtimelinking" = yes; then
20669 shared_flag="$shared_flag "'${wl}-G'
20671 else
20672 # not using gcc
20673 if test "$host_cpu" = ia64; then
20674 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
20675 # chokes on -Wl,-G. The following line is correct:
20676 shared_flag='-G'
20677 else
20678 if test "$aix_use_runtimelinking" = yes; then
20679 shared_flag='${wl}-G'
20680 else
20681 shared_flag='${wl}-bM:SRE'
20686 export_dynamic_flag_spec_CXX='${wl}-bexpall'
20687 # It seems that -bexpall does not export symbols beginning with
20688 # underscore (_), so it is better to generate a list of symbols to
20689 # export.
20690 always_export_symbols_CXX=yes
20691 if test "$aix_use_runtimelinking" = yes; then
20692 # Warning - without using the other runtime loading flags (-brtl),
20693 # -berok will link without error, but may produce a broken library.
20694 allow_undefined_flag_CXX='-berok'
20695 # Determine the default libpath from the value encoded in an empty
20696 # executable.
20697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20698 /* end confdefs.h. */
20701 main ()
20705 return 0;
20707 _ACEOF
20708 if ac_fn_cxx_try_link "$LINENO"; then :
20710 lt_aix_libpath_sed='
20711 /Import File Strings/,/^$/ {
20712 /^0/ {
20713 s/^0 *\(.*\)$/\1/
20717 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20718 # Check for a 64-bit object if we didn't find anything.
20719 if test -z "$aix_libpath"; then
20720 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20723 rm -f core conftest.err conftest.$ac_objext \
20724 conftest$ac_exeext conftest.$ac_ext
20725 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
20727 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
20729 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"
20730 else
20731 if test "$host_cpu" = ia64; then
20732 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
20733 allow_undefined_flag_CXX="-z nodefs"
20734 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"
20735 else
20736 # Determine the default libpath from the value encoded in an
20737 # empty executable.
20738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20739 /* end confdefs.h. */
20742 main ()
20746 return 0;
20748 _ACEOF
20749 if ac_fn_cxx_try_link "$LINENO"; then :
20751 lt_aix_libpath_sed='
20752 /Import File Strings/,/^$/ {
20753 /^0/ {
20754 s/^0 *\(.*\)$/\1/
20758 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20759 # Check for a 64-bit object if we didn't find anything.
20760 if test -z "$aix_libpath"; then
20761 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20764 rm -f core conftest.err conftest.$ac_objext \
20765 conftest$ac_exeext conftest.$ac_ext
20766 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
20768 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
20769 # Warning - without using the other run time loading flags,
20770 # -berok will link without error, but may produce a broken library.
20771 no_undefined_flag_CXX=' ${wl}-bernotok'
20772 allow_undefined_flag_CXX=' ${wl}-berok'
20773 if test "$with_gnu_ld" = yes; then
20774 # We only use this code for GNU lds that support --whole-archive.
20775 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
20776 else
20777 # Exported symbols can be pulled into shared objects from archives
20778 whole_archive_flag_spec_CXX='$convenience'
20780 archive_cmds_need_lc_CXX=yes
20781 # This is similar to how AIX traditionally builds its shared
20782 # libraries.
20783 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'
20788 beos*)
20789 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
20790 allow_undefined_flag_CXX=unsupported
20791 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
20792 # support --undefined. This deserves some investigation. FIXME
20793 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20794 else
20795 ld_shlibs_CXX=no
20799 chorus*)
20800 case $cc_basename in
20802 # FIXME: insert proper C++ library support
20803 ld_shlibs_CXX=no
20805 esac
20808 cygwin* | mingw* | pw32* | cegcc*)
20809 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
20810 # as there is no search path for DLLs.
20811 hardcode_libdir_flag_spec_CXX='-L$libdir'
20812 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
20813 allow_undefined_flag_CXX=unsupported
20814 always_export_symbols_CXX=no
20815 enable_shared_with_static_runtimes_CXX=yes
20817 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
20818 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'
20819 # If the export-symbols file already is a .def file (1st line
20820 # is EXPORTS), use it as is; otherwise, prepend...
20821 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
20822 cp $export_symbols $output_objdir/$soname.def;
20823 else
20824 echo EXPORTS > $output_objdir/$soname.def;
20825 cat $export_symbols >> $output_objdir/$soname.def;
20827 $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'
20828 else
20829 ld_shlibs_CXX=no
20832 darwin* | rhapsody*)
20835 archive_cmds_need_lc_CXX=no
20836 hardcode_direct_CXX=no
20837 hardcode_automatic_CXX=yes
20838 hardcode_shlibpath_var_CXX=unsupported
20839 if test "$lt_cv_ld_force_load" = "yes"; then
20840 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\"`'
20841 else
20842 whole_archive_flag_spec_CXX=''
20844 link_all_deplibs_CXX=yes
20845 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
20846 case $cc_basename in
20847 ifort*) _lt_dar_can_shared=yes ;;
20848 *) _lt_dar_can_shared=$GCC ;;
20849 esac
20850 if test "$_lt_dar_can_shared" = "yes"; then
20851 output_verbose_link_cmd=func_echo_all
20852 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
20853 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
20854 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
20855 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}"
20856 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
20857 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
20858 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}"
20861 else
20862 ld_shlibs_CXX=no
20867 dgux*)
20868 case $cc_basename in
20869 ec++*)
20870 # FIXME: insert proper C++ library support
20871 ld_shlibs_CXX=no
20873 ghcx*)
20874 # Green Hills C++ Compiler
20875 # FIXME: insert proper C++ library support
20876 ld_shlibs_CXX=no
20879 # FIXME: insert proper C++ library support
20880 ld_shlibs_CXX=no
20882 esac
20885 freebsd2.*)
20886 # C++ shared libraries reported to be fairly broken before
20887 # switch to ELF
20888 ld_shlibs_CXX=no
20891 freebsd-elf*)
20892 archive_cmds_need_lc_CXX=no
20895 freebsd* | dragonfly*)
20896 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
20897 # conventions
20898 ld_shlibs_CXX=yes
20901 gnu*)
20904 haiku*)
20905 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20906 link_all_deplibs_CXX=yes
20909 hpux9*)
20910 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
20911 hardcode_libdir_separator_CXX=:
20912 export_dynamic_flag_spec_CXX='${wl}-E'
20913 hardcode_direct_CXX=yes
20914 hardcode_minus_L_CXX=yes # Not in the search PATH,
20915 # but as the default
20916 # location of the library.
20918 case $cc_basename in
20919 CC*)
20920 # FIXME: insert proper C++ library support
20921 ld_shlibs_CXX=no
20923 aCC*)
20924 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'
20925 # Commands to make compiler produce verbose output that lists
20926 # what "hidden" libraries, object files and flags are used when
20927 # linking a shared library.
20929 # There doesn't appear to be a way to prevent this compiler from
20930 # explicitly linking system object files so we need to strip them
20931 # from the output so that they don't get included in the library
20932 # dependencies.
20933 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"'
20936 if test "$GXX" = yes; then
20937 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'
20938 else
20939 # FIXME: insert proper C++ library support
20940 ld_shlibs_CXX=no
20943 esac
20946 hpux10*|hpux11*)
20947 if test $with_gnu_ld = no; then
20948 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
20949 hardcode_libdir_separator_CXX=:
20951 case $host_cpu in
20952 hppa*64*|ia64*)
20955 export_dynamic_flag_spec_CXX='${wl}-E'
20957 esac
20959 case $host_cpu in
20960 hppa*64*|ia64*)
20961 hardcode_direct_CXX=no
20962 hardcode_shlibpath_var_CXX=no
20965 hardcode_direct_CXX=yes
20966 hardcode_direct_absolute_CXX=yes
20967 hardcode_minus_L_CXX=yes # Not in the search PATH,
20968 # but as the default
20969 # location of the library.
20971 esac
20973 case $cc_basename in
20974 CC*)
20975 # FIXME: insert proper C++ library support
20976 ld_shlibs_CXX=no
20978 aCC*)
20979 case $host_cpu in
20980 hppa*64*)
20981 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20983 ia64*)
20984 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20987 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20989 esac
20990 # Commands to make compiler produce verbose output that lists
20991 # what "hidden" libraries, object files and flags are used when
20992 # linking a shared library.
20994 # There doesn't appear to be a way to prevent this compiler from
20995 # explicitly linking system object files so we need to strip them
20996 # from the output so that they don't get included in the library
20997 # dependencies.
20998 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"'
21001 if test "$GXX" = yes; then
21002 if test $with_gnu_ld = no; then
21003 case $host_cpu in
21004 hppa*64*)
21005 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
21007 ia64*)
21008 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
21011 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'
21013 esac
21015 else
21016 # FIXME: insert proper C++ library support
21017 ld_shlibs_CXX=no
21020 esac
21023 interix[3-9]*)
21024 hardcode_direct_CXX=no
21025 hardcode_shlibpath_var_CXX=no
21026 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
21027 export_dynamic_flag_spec_CXX='${wl}-E'
21028 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
21029 # Instead, shared libraries are loaded at an image base (0x10000000 by
21030 # default) and relocated if they conflict, which is a slow very memory
21031 # consuming and fragmenting process. To avoid this, we pick a random,
21032 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
21033 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
21034 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'
21035 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'
21037 irix5* | irix6*)
21038 case $cc_basename in
21039 CC*)
21040 # SGI C++
21041 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'
21043 # Archives containing C++ object files must be created using
21044 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
21045 # necessary to make sure instantiated templates are included
21046 # in the archive.
21047 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
21050 if test "$GXX" = yes; then
21051 if test "$with_gnu_ld" = no; then
21052 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'
21053 else
21054 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'
21057 link_all_deplibs_CXX=yes
21059 esac
21060 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
21061 hardcode_libdir_separator_CXX=:
21062 inherit_rpath_CXX=yes
21065 linux* | k*bsd*-gnu | kopensolaris*-gnu)
21066 case $cc_basename in
21067 KCC*)
21068 # Kuck and Associates, Inc. (KAI) C++ Compiler
21070 # KCC will only create a shared library if the output file
21071 # ends with ".so" (or ".sl" for HP-UX), so rename the library
21072 # to its proper name (with version) after linking.
21073 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'
21074 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'
21075 # Commands to make compiler produce verbose output that lists
21076 # what "hidden" libraries, object files and flags are used when
21077 # linking a shared library.
21079 # There doesn't appear to be a way to prevent this compiler from
21080 # explicitly linking system object files so we need to strip them
21081 # from the output so that they don't get included in the library
21082 # dependencies.
21083 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"'
21085 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
21086 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
21088 # Archives containing C++ object files must be created using
21089 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
21090 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
21092 icpc* | ecpc* )
21093 # Intel C++
21094 with_gnu_ld=yes
21095 # version 8.0 and above of icpc choke on multiply defined symbols
21096 # if we add $predep_objects and $postdep_objects, however 7.1 and
21097 # earlier do not add the objects themselves.
21098 case `$CC -V 2>&1` in
21099 *"Version 7."*)
21100 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
21101 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'
21103 *) # Version 8.0 or newer
21104 tmp_idyn=
21105 case $host_cpu in
21106 ia64*) tmp_idyn=' -i_dynamic';;
21107 esac
21108 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21109 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'
21111 esac
21112 archive_cmds_need_lc_CXX=no
21113 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
21114 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
21115 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
21117 pgCC* | pgcpp*)
21118 # Portland Group C++ compiler
21119 case `$CC -V` in
21120 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
21121 prelink_cmds_CXX='tpldir=Template.dir~
21122 rm -rf $tpldir~
21123 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
21124 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
21125 old_archive_cmds_CXX='tpldir=Template.dir~
21126 rm -rf $tpldir~
21127 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
21128 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
21129 $RANLIB $oldlib'
21130 archive_cmds_CXX='tpldir=Template.dir~
21131 rm -rf $tpldir~
21132 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
21133 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
21134 archive_expsym_cmds_CXX='tpldir=Template.dir~
21135 rm -rf $tpldir~
21136 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
21137 $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'
21139 *) # Version 6 and above use weak symbols
21140 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
21141 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'
21143 esac
21145 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
21146 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
21147 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'
21149 cxx*)
21150 # Compaq C++
21151 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
21152 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'
21154 runpath_var=LD_RUN_PATH
21155 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
21156 hardcode_libdir_separator_CXX=:
21158 # Commands to make compiler produce verbose output that lists
21159 # what "hidden" libraries, object files and flags are used when
21160 # linking a shared library.
21162 # There doesn't appear to be a way to prevent this compiler from
21163 # explicitly linking system object files so we need to strip them
21164 # from the output so that they don't get included in the library
21165 # dependencies.
21166 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'
21168 xl* | mpixl* | bgxl*)
21169 # IBM XL 8.0 on PPC, with GNU ld
21170 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
21171 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
21172 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21173 if test "x$supports_anon_versioning" = xyes; then
21174 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
21175 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21176 echo "local: *; };" >> $output_objdir/$libname.ver~
21177 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21181 case `$CC -V 2>&1 | sed 5q` in
21182 *Sun\ C*)
21183 # Sun C++ 5.9
21184 no_undefined_flag_CXX=' -zdefs'
21185 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
21186 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'
21187 hardcode_libdir_flag_spec_CXX='-R$libdir'
21188 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'
21189 compiler_needs_object_CXX=yes
21191 # Not sure whether something based on
21192 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
21193 # would be better.
21194 output_verbose_link_cmd='func_echo_all'
21196 # Archives containing C++ object files must be created using
21197 # "CC -xar", where "CC" is the Sun C++ compiler. This is
21198 # necessary to make sure instantiated templates are included
21199 # in the archive.
21200 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
21202 esac
21204 esac
21207 lynxos*)
21208 # FIXME: insert proper C++ library support
21209 ld_shlibs_CXX=no
21212 m88k*)
21213 # FIXME: insert proper C++ library support
21214 ld_shlibs_CXX=no
21217 mvs*)
21218 case $cc_basename in
21219 cxx*)
21220 # FIXME: insert proper C++ library support
21221 ld_shlibs_CXX=no
21224 # FIXME: insert proper C++ library support
21225 ld_shlibs_CXX=no
21227 esac
21230 netbsd*)
21231 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
21232 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
21233 wlarc=
21234 hardcode_libdir_flag_spec_CXX='-R$libdir'
21235 hardcode_direct_CXX=yes
21236 hardcode_shlibpath_var_CXX=no
21238 # Workaround some broken pre-1.5 toolchains
21239 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
21242 *nto* | *qnx*)
21243 ld_shlibs_CXX=yes
21246 openbsd2*)
21247 # C++ shared libraries are fairly broken
21248 ld_shlibs_CXX=no
21251 openbsd*)
21252 if test -f /usr/libexec/ld.so; then
21253 hardcode_direct_CXX=yes
21254 hardcode_shlibpath_var_CXX=no
21255 hardcode_direct_absolute_CXX=yes
21256 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
21257 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
21258 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21259 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
21260 export_dynamic_flag_spec_CXX='${wl}-E'
21261 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21263 output_verbose_link_cmd=func_echo_all
21264 else
21265 ld_shlibs_CXX=no
21269 osf3* | osf4* | osf5*)
21270 case $cc_basename in
21271 KCC*)
21272 # Kuck and Associates, Inc. (KAI) C++ Compiler
21274 # KCC will only create a shared library if the output file
21275 # ends with ".so" (or ".sl" for HP-UX), so rename the library
21276 # to its proper name (with version) after linking.
21277 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'
21279 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
21280 hardcode_libdir_separator_CXX=:
21282 # Archives containing C++ object files must be created using
21283 # the KAI C++ compiler.
21284 case $host in
21285 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
21286 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
21287 esac
21289 RCC*)
21290 # Rational C++ 2.4.1
21291 # FIXME: insert proper C++ library support
21292 ld_shlibs_CXX=no
21294 cxx*)
21295 case $host in
21296 osf3*)
21297 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
21298 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'
21299 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
21302 allow_undefined_flag_CXX=' -expect_unresolved \*'
21303 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'
21304 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
21305 echo "-hidden">> $lib.exp~
21306 $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~
21307 $RM $lib.exp'
21308 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
21310 esac
21312 hardcode_libdir_separator_CXX=:
21314 # Commands to make compiler produce verbose output that lists
21315 # what "hidden" libraries, object files and flags are used when
21316 # linking a shared library.
21318 # There doesn't appear to be a way to prevent this compiler from
21319 # explicitly linking system object files so we need to strip them
21320 # from the output so that they don't get included in the library
21321 # dependencies.
21322 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"'
21325 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
21326 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
21327 case $host in
21328 osf3*)
21329 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'
21332 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'
21334 esac
21336 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
21337 hardcode_libdir_separator_CXX=:
21339 # Commands to make compiler produce verbose output that lists
21340 # what "hidden" libraries, object files and flags are used when
21341 # linking a shared library.
21342 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
21344 else
21345 # FIXME: insert proper C++ library support
21346 ld_shlibs_CXX=no
21349 esac
21352 psos*)
21353 # FIXME: insert proper C++ library support
21354 ld_shlibs_CXX=no
21357 sunos4*)
21358 case $cc_basename in
21359 CC*)
21360 # Sun C++ 4.x
21361 # FIXME: insert proper C++ library support
21362 ld_shlibs_CXX=no
21364 lcc*)
21365 # Lucid
21366 # FIXME: insert proper C++ library support
21367 ld_shlibs_CXX=no
21370 # FIXME: insert proper C++ library support
21371 ld_shlibs_CXX=no
21373 esac
21376 solaris*)
21377 case $cc_basename in
21378 CC*)
21379 # Sun C++ 4.2, 5.x and Centerline C++
21380 archive_cmds_need_lc_CXX=yes
21381 no_undefined_flag_CXX=' -zdefs'
21382 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
21383 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
21384 $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'
21386 hardcode_libdir_flag_spec_CXX='-R$libdir'
21387 hardcode_shlibpath_var_CXX=no
21388 case $host_os in
21389 solaris2.[0-5] | solaris2.[0-5].*) ;;
21391 # The compiler driver will combine and reorder linker options,
21392 # but understands `-z linker_flag'.
21393 # Supported since Solaris 2.6 (maybe 2.5.1?)
21394 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
21396 esac
21397 link_all_deplibs_CXX=yes
21399 output_verbose_link_cmd='func_echo_all'
21401 # Archives containing C++ object files must be created using
21402 # "CC -xar", where "CC" is the Sun C++ compiler. This is
21403 # necessary to make sure instantiated templates are included
21404 # in the archive.
21405 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
21407 gcx*)
21408 # Green Hills C++ Compiler
21409 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
21411 # The C++ compiler must be used to create the archive.
21412 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
21415 # GNU C++ compiler with Solaris linker
21416 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
21417 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
21418 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
21419 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
21420 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
21421 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
21423 # Commands to make compiler produce verbose output that lists
21424 # what "hidden" libraries, object files and flags are used when
21425 # linking a shared library.
21426 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
21427 else
21428 # g++ 2.7 appears to require `-G' NOT `-shared' on this
21429 # platform.
21430 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
21431 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
21432 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
21434 # Commands to make compiler produce verbose output that lists
21435 # what "hidden" libraries, object files and flags are used when
21436 # linking a shared library.
21437 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
21440 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
21441 case $host_os in
21442 solaris2.[0-5] | solaris2.[0-5].*) ;;
21444 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
21446 esac
21449 esac
21452 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
21453 no_undefined_flag_CXX='${wl}-z,text'
21454 archive_cmds_need_lc_CXX=no
21455 hardcode_shlibpath_var_CXX=no
21456 runpath_var='LD_RUN_PATH'
21458 case $cc_basename in
21459 CC*)
21460 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21461 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21464 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21465 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21467 esac
21470 sysv5* | sco3.2v5* | sco5v6*)
21471 # Note: We can NOT use -z defs as we might desire, because we do not
21472 # link with -lc, and that would cause any symbols used from libc to
21473 # always be unresolved, which means just about no library would
21474 # ever link correctly. If we're not using GNU ld we use -z text
21475 # though, which does catch some bad symbols but isn't as heavy-handed
21476 # as -z defs.
21477 no_undefined_flag_CXX='${wl}-z,text'
21478 allow_undefined_flag_CXX='${wl}-z,nodefs'
21479 archive_cmds_need_lc_CXX=no
21480 hardcode_shlibpath_var_CXX=no
21481 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
21482 hardcode_libdir_separator_CXX=':'
21483 link_all_deplibs_CXX=yes
21484 export_dynamic_flag_spec_CXX='${wl}-Bexport'
21485 runpath_var='LD_RUN_PATH'
21487 case $cc_basename in
21488 CC*)
21489 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21490 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21491 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
21492 '"$old_archive_cmds_CXX"
21493 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
21494 '"$reload_cmds_CXX"
21497 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21498 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21500 esac
21503 tandem*)
21504 case $cc_basename in
21505 NCC*)
21506 # NonStop-UX NCC 3.20
21507 # FIXME: insert proper C++ library support
21508 ld_shlibs_CXX=no
21511 # FIXME: insert proper C++ library support
21512 ld_shlibs_CXX=no
21514 esac
21517 vxworks*)
21518 # For VxWorks ports, we assume the use of a GNU linker with
21519 # standard elf conventions.
21520 ld_shlibs_CXX=yes
21524 # FIXME: insert proper C++ library support
21525 ld_shlibs_CXX=no
21527 esac
21529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
21530 $as_echo "$ld_shlibs_CXX" >&6; }
21531 test "$ld_shlibs_CXX" = no && can_build_shared=no
21533 GCC_CXX="$GXX"
21534 LD_CXX="$LD"
21536 ## CAVEAT EMPTOR:
21537 ## There is no encapsulation within the following macros, do not change
21538 ## the running order or otherwise move them around unless you know exactly
21539 ## what you are doing...
21540 # Dependencies to place before and after the object being linked:
21541 predep_objects_CXX=
21542 postdep_objects_CXX=
21543 predeps_CXX=
21544 postdeps_CXX=
21545 compiler_lib_search_path_CXX=
21547 cat > conftest.$ac_ext <<_LT_EOF
21548 class Foo
21550 public:
21551 Foo (void) { a = 0; }
21552 private:
21553 int a;
21555 _LT_EOF
21557 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
21558 (eval $ac_compile) 2>&5
21559 ac_status=$?
21560 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21561 test $ac_status = 0; }; then
21562 # Parse the compiler output and extract the necessary
21563 # objects, libraries and library flags.
21565 # Sentinel used to keep track of whether or not we are before
21566 # the conftest object file.
21567 pre_test_object_deps_done=no
21569 for p in `eval "$output_verbose_link_cmd"`; do
21570 case $p in
21572 -L* | -R* | -l*)
21573 # Some compilers place space between "-{L,R}" and the path.
21574 # Remove the space.
21575 if test $p = "-L" ||
21576 test $p = "-R"; then
21577 prev=$p
21578 continue
21579 else
21580 prev=
21583 if test "$pre_test_object_deps_done" = no; then
21584 case $p in
21585 -L* | -R*)
21586 # Internal compiler library paths should come after those
21587 # provided the user. The postdeps already come after the
21588 # user supplied libs so there is no need to process them.
21589 if test -z "$compiler_lib_search_path_CXX"; then
21590 compiler_lib_search_path_CXX="${prev}${p}"
21591 else
21592 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
21595 # The "-l" case would never come before the object being
21596 # linked, so don't bother handling this case.
21597 esac
21598 else
21599 if test -z "$postdeps_CXX"; then
21600 postdeps_CXX="${prev}${p}"
21601 else
21602 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
21607 *.$objext)
21608 # This assumes that the test object file only shows up
21609 # once in the compiler output.
21610 if test "$p" = "conftest.$objext"; then
21611 pre_test_object_deps_done=yes
21612 continue
21615 if test "$pre_test_object_deps_done" = no; then
21616 if test -z "$predep_objects_CXX"; then
21617 predep_objects_CXX="$p"
21618 else
21619 predep_objects_CXX="$predep_objects_CXX $p"
21621 else
21622 if test -z "$postdep_objects_CXX"; then
21623 postdep_objects_CXX="$p"
21624 else
21625 postdep_objects_CXX="$postdep_objects_CXX $p"
21630 *) ;; # Ignore the rest.
21632 esac
21633 done
21635 # Clean up.
21636 rm -f a.out a.exe
21637 else
21638 echo "libtool.m4: error: problem compiling CXX test program"
21641 $RM -f confest.$objext
21643 # PORTME: override above test on systems where it is broken
21644 case $host_os in
21645 interix[3-9]*)
21646 # Interix 3.5 installs completely hosed .la files for C++, so rather than
21647 # hack all around it, let's just trust "g++" to DTRT.
21648 predep_objects_CXX=
21649 postdep_objects_CXX=
21650 postdeps_CXX=
21653 linux*)
21654 case `$CC -V 2>&1 | sed 5q` in
21655 *Sun\ C*)
21656 # Sun C++ 5.9
21658 # The more standards-conforming stlport4 library is
21659 # incompatible with the Cstd library. Avoid specifying
21660 # it if it's in CXXFLAGS. Ignore libCrun as
21661 # -library=stlport4 depends on it.
21662 case " $CXX $CXXFLAGS " in
21663 *" -library=stlport4 "*)
21664 solaris_use_stlport4=yes
21666 esac
21668 if test "$solaris_use_stlport4" != yes; then
21669 postdeps_CXX='-library=Cstd -library=Crun'
21672 esac
21675 solaris*)
21676 case $cc_basename in
21677 CC*)
21678 # The more standards-conforming stlport4 library is
21679 # incompatible with the Cstd library. Avoid specifying
21680 # it if it's in CXXFLAGS. Ignore libCrun as
21681 # -library=stlport4 depends on it.
21682 case " $CXX $CXXFLAGS " in
21683 *" -library=stlport4 "*)
21684 solaris_use_stlport4=yes
21686 esac
21688 # Adding this requires a known-good setup of shared libraries for
21689 # Sun compiler versions before 5.6, else PIC objects from an old
21690 # archive will be linked into the output, leading to subtle bugs.
21691 if test "$solaris_use_stlport4" != yes; then
21692 postdeps_CXX='-library=Cstd -library=Crun'
21695 esac
21697 esac
21700 case " $postdeps_CXX " in
21701 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
21702 esac
21703 compiler_lib_search_dirs_CXX=
21704 if test -n "${compiler_lib_search_path_CXX}"; then
21705 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
21738 lt_prog_compiler_wl_CXX=
21739 lt_prog_compiler_pic_CXX=
21740 lt_prog_compiler_static_CXX=
21742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
21743 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
21745 # C++ specific cases for pic, static, wl, etc.
21746 if test "$GXX" = yes; then
21747 lt_prog_compiler_wl_CXX='-Wl,'
21748 lt_prog_compiler_static_CXX='-static'
21750 case $host_os in
21751 aix*)
21752 # All AIX code is PIC.
21753 if test "$host_cpu" = ia64; then
21754 # AIX 5 now supports IA64 processor
21755 lt_prog_compiler_static_CXX='-Bstatic'
21757 lt_prog_compiler_pic_CXX='-fPIC'
21760 amigaos*)
21761 case $host_cpu in
21762 powerpc)
21763 # see comment about AmigaOS4 .so support
21764 lt_prog_compiler_pic_CXX='-fPIC'
21766 m68k)
21767 # FIXME: we need at least 68020 code to build shared libraries, but
21768 # adding the `-m68020' flag to GCC prevents building anything better,
21769 # like `-m68040'.
21770 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
21772 esac
21775 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21776 # PIC is the default for these OSes.
21778 mingw* | cygwin* | os2* | pw32* | cegcc*)
21779 # This hack is so that the source file can tell whether it is being
21780 # built for inclusion in a dll (and should export symbols for example).
21781 # Although the cygwin gcc ignores -fPIC, still need this for old-style
21782 # (--disable-auto-import) libraries
21783 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
21785 darwin* | rhapsody*)
21786 # PIC is the default on this platform
21787 # Common symbols not allowed in MH_DYLIB files
21788 lt_prog_compiler_pic_CXX='-fno-common'
21790 *djgpp*)
21791 # DJGPP does not support shared libraries at all
21792 lt_prog_compiler_pic_CXX=
21794 haiku*)
21795 # PIC is the default for Haiku.
21796 # The "-static" flag exists, but is broken.
21797 lt_prog_compiler_static_CXX=
21799 interix[3-9]*)
21800 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21801 # Instead, we relocate shared libraries at runtime.
21803 sysv4*MP*)
21804 if test -d /usr/nec; then
21805 lt_prog_compiler_pic_CXX=-Kconform_pic
21808 hpux*)
21809 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
21810 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
21811 # sets the default TLS model and affects inlining.
21812 case $host_cpu in
21813 hppa*64*)
21816 lt_prog_compiler_pic_CXX='-fPIC'
21818 esac
21820 *qnx* | *nto*)
21821 # QNX uses GNU C++, but need to define -shared option too, otherwise
21822 # it will coredump.
21823 lt_prog_compiler_pic_CXX='-fPIC -shared'
21826 lt_prog_compiler_pic_CXX='-fPIC'
21828 esac
21829 else
21830 case $host_os in
21831 aix[4-9]*)
21832 # All AIX code is PIC.
21833 if test "$host_cpu" = ia64; then
21834 # AIX 5 now supports IA64 processor
21835 lt_prog_compiler_static_CXX='-Bstatic'
21836 else
21837 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
21840 chorus*)
21841 case $cc_basename in
21842 cxch68*)
21843 # Green Hills C++ Compiler
21844 # _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"
21846 esac
21848 dgux*)
21849 case $cc_basename in
21850 ec++*)
21851 lt_prog_compiler_pic_CXX='-KPIC'
21853 ghcx*)
21854 # Green Hills C++ Compiler
21855 lt_prog_compiler_pic_CXX='-pic'
21859 esac
21861 freebsd* | dragonfly*)
21862 # FreeBSD uses GNU C++
21864 hpux9* | hpux10* | hpux11*)
21865 case $cc_basename in
21866 CC*)
21867 lt_prog_compiler_wl_CXX='-Wl,'
21868 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
21869 if test "$host_cpu" != ia64; then
21870 lt_prog_compiler_pic_CXX='+Z'
21873 aCC*)
21874 lt_prog_compiler_wl_CXX='-Wl,'
21875 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
21876 case $host_cpu in
21877 hppa*64*|ia64*)
21878 # +Z the default
21881 lt_prog_compiler_pic_CXX='+Z'
21883 esac
21887 esac
21889 interix*)
21890 # This is c89, which is MS Visual C++ (no shared libs)
21891 # Anyone wants to do a port?
21893 irix5* | irix6* | nonstopux*)
21894 case $cc_basename in
21895 CC*)
21896 lt_prog_compiler_wl_CXX='-Wl,'
21897 lt_prog_compiler_static_CXX='-non_shared'
21898 # CC pic flag -KPIC is the default.
21902 esac
21904 linux* | k*bsd*-gnu | kopensolaris*-gnu)
21905 case $cc_basename in
21906 KCC*)
21907 # KAI C++ Compiler
21908 lt_prog_compiler_wl_CXX='--backend -Wl,'
21909 lt_prog_compiler_pic_CXX='-fPIC'
21911 ecpc* )
21912 # old Intel C++ for x86_64 which still supported -KPIC.
21913 lt_prog_compiler_wl_CXX='-Wl,'
21914 lt_prog_compiler_pic_CXX='-KPIC'
21915 lt_prog_compiler_static_CXX='-static'
21917 icpc* )
21918 # Intel C++, used to be incompatible with GCC.
21919 # ICC 10 doesn't accept -KPIC any more.
21920 lt_prog_compiler_wl_CXX='-Wl,'
21921 lt_prog_compiler_pic_CXX='-fPIC'
21922 lt_prog_compiler_static_CXX='-static'
21924 pgCC* | pgcpp*)
21925 # Portland Group C++ compiler
21926 lt_prog_compiler_wl_CXX='-Wl,'
21927 lt_prog_compiler_pic_CXX='-fpic'
21928 lt_prog_compiler_static_CXX='-Bstatic'
21930 cxx*)
21931 # Compaq C++
21932 # Make sure the PIC flag is empty. It appears that all Alpha
21933 # Linux and Compaq Tru64 Unix objects are PIC.
21934 lt_prog_compiler_pic_CXX=
21935 lt_prog_compiler_static_CXX='-non_shared'
21937 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
21938 # IBM XL 8.0, 9.0 on PPC and BlueGene
21939 lt_prog_compiler_wl_CXX='-Wl,'
21940 lt_prog_compiler_pic_CXX='-qpic'
21941 lt_prog_compiler_static_CXX='-qstaticlink'
21944 case `$CC -V 2>&1 | sed 5q` in
21945 *Sun\ C*)
21946 # Sun C++ 5.9
21947 lt_prog_compiler_pic_CXX='-KPIC'
21948 lt_prog_compiler_static_CXX='-Bstatic'
21949 lt_prog_compiler_wl_CXX='-Qoption ld '
21951 esac
21953 esac
21955 lynxos*)
21957 m88k*)
21959 mvs*)
21960 case $cc_basename in
21961 cxx*)
21962 lt_prog_compiler_pic_CXX='-W c,exportall'
21966 esac
21968 netbsd*)
21970 *qnx* | *nto*)
21971 # QNX uses GNU C++, but need to define -shared option too, otherwise
21972 # it will coredump.
21973 lt_prog_compiler_pic_CXX='-fPIC -shared'
21975 osf3* | osf4* | osf5*)
21976 case $cc_basename in
21977 KCC*)
21978 lt_prog_compiler_wl_CXX='--backend -Wl,'
21980 RCC*)
21981 # Rational C++ 2.4.1
21982 lt_prog_compiler_pic_CXX='-pic'
21984 cxx*)
21985 # Digital/Compaq C++
21986 lt_prog_compiler_wl_CXX='-Wl,'
21987 # Make sure the PIC flag is empty. It appears that all Alpha
21988 # Linux and Compaq Tru64 Unix objects are PIC.
21989 lt_prog_compiler_pic_CXX=
21990 lt_prog_compiler_static_CXX='-non_shared'
21994 esac
21996 psos*)
21998 solaris*)
21999 case $cc_basename in
22000 CC*)
22001 # Sun C++ 4.2, 5.x and Centerline C++
22002 lt_prog_compiler_pic_CXX='-KPIC'
22003 lt_prog_compiler_static_CXX='-Bstatic'
22004 lt_prog_compiler_wl_CXX='-Qoption ld '
22006 gcx*)
22007 # Green Hills C++ Compiler
22008 lt_prog_compiler_pic_CXX='-PIC'
22012 esac
22014 sunos4*)
22015 case $cc_basename in
22016 CC*)
22017 # Sun C++ 4.x
22018 lt_prog_compiler_pic_CXX='-pic'
22019 lt_prog_compiler_static_CXX='-Bstatic'
22021 lcc*)
22022 # Lucid
22023 lt_prog_compiler_pic_CXX='-pic'
22027 esac
22029 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
22030 case $cc_basename in
22031 CC*)
22032 lt_prog_compiler_wl_CXX='-Wl,'
22033 lt_prog_compiler_pic_CXX='-KPIC'
22034 lt_prog_compiler_static_CXX='-Bstatic'
22036 esac
22038 tandem*)
22039 case $cc_basename in
22040 NCC*)
22041 # NonStop-UX NCC 3.20
22042 lt_prog_compiler_pic_CXX='-KPIC'
22046 esac
22048 vxworks*)
22051 lt_prog_compiler_can_build_shared_CXX=no
22053 esac
22056 case $host_os in
22057 # For platforms which do not support PIC, -DPIC is meaningless:
22058 *djgpp*)
22059 lt_prog_compiler_pic_CXX=
22062 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
22064 esac
22065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
22066 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
22071 # Check to make sure the PIC flag actually works.
22073 if test -n "$lt_prog_compiler_pic_CXX"; then
22074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
22075 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
22076 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
22077 $as_echo_n "(cached) " >&6
22078 else
22079 lt_cv_prog_compiler_pic_works_CXX=no
22080 ac_outfile=conftest.$ac_objext
22081 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
22082 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
22083 # Insert the option either (1) after the last *FLAGS variable, or
22084 # (2) before a word containing "conftest.", or (3) at the end.
22085 # Note that $ac_compile itself does not contain backslashes and begins
22086 # with a dollar sign (not a hyphen), so the echo should work correctly.
22087 # The option is referenced via a variable to avoid confusing sed.
22088 lt_compile=`echo "$ac_compile" | $SED \
22089 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
22090 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22091 -e 's:$: $lt_compiler_flag:'`
22092 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
22093 (eval "$lt_compile" 2>conftest.err)
22094 ac_status=$?
22095 cat conftest.err >&5
22096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22097 if (exit $ac_status) && test -s "$ac_outfile"; then
22098 # The compiler can only warn and ignore the option if not recognized
22099 # So say no if there are warnings other than the usual output.
22100 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
22101 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
22102 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
22103 lt_cv_prog_compiler_pic_works_CXX=yes
22106 $RM conftest*
22109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
22110 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
22112 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
22113 case $lt_prog_compiler_pic_CXX in
22114 "" | " "*) ;;
22115 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
22116 esac
22117 else
22118 lt_prog_compiler_pic_CXX=
22119 lt_prog_compiler_can_build_shared_CXX=no
22127 # Check to make sure the static flag actually works.
22129 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
22130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
22131 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
22132 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
22133 $as_echo_n "(cached) " >&6
22134 else
22135 lt_cv_prog_compiler_static_works_CXX=no
22136 save_LDFLAGS="$LDFLAGS"
22137 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
22138 echo "$lt_simple_link_test_code" > conftest.$ac_ext
22139 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
22140 # The linker can only warn and ignore the option if not recognized
22141 # So say no if there are warnings
22142 if test -s conftest.err; then
22143 # Append any errors to the config.log.
22144 cat conftest.err 1>&5
22145 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
22146 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
22147 if diff conftest.exp conftest.er2 >/dev/null; then
22148 lt_cv_prog_compiler_static_works_CXX=yes
22150 else
22151 lt_cv_prog_compiler_static_works_CXX=yes
22154 $RM -r conftest*
22155 LDFLAGS="$save_LDFLAGS"
22158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
22159 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
22161 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
22163 else
22164 lt_prog_compiler_static_CXX=
22170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
22171 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
22172 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
22173 $as_echo_n "(cached) " >&6
22174 else
22175 lt_cv_prog_compiler_c_o_CXX=no
22176 $RM -r conftest 2>/dev/null
22177 mkdir conftest
22178 cd conftest
22179 mkdir out
22180 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
22182 lt_compiler_flag="-o out/conftest2.$ac_objext"
22183 # Insert the option either (1) after the last *FLAGS variable, or
22184 # (2) before a word containing "conftest.", or (3) at the end.
22185 # Note that $ac_compile itself does not contain backslashes and begins
22186 # with a dollar sign (not a hyphen), so the echo should work correctly.
22187 lt_compile=`echo "$ac_compile" | $SED \
22188 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
22189 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22190 -e 's:$: $lt_compiler_flag:'`
22191 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
22192 (eval "$lt_compile" 2>out/conftest.err)
22193 ac_status=$?
22194 cat out/conftest.err >&5
22195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22196 if (exit $ac_status) && test -s out/conftest2.$ac_objext
22197 then
22198 # The compiler can only warn and ignore the option if not recognized
22199 # So say no if there are warnings
22200 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
22201 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
22202 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
22203 lt_cv_prog_compiler_c_o_CXX=yes
22206 chmod u+w . 2>&5
22207 $RM conftest*
22208 # SGI C++ compiler will create directory out/ii_files/ for
22209 # template instantiation
22210 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
22211 $RM out/* && rmdir out
22212 cd ..
22213 $RM -r conftest
22214 $RM conftest*
22217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
22218 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
22222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
22223 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
22224 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
22225 $as_echo_n "(cached) " >&6
22226 else
22227 lt_cv_prog_compiler_c_o_CXX=no
22228 $RM -r conftest 2>/dev/null
22229 mkdir conftest
22230 cd conftest
22231 mkdir out
22232 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
22234 lt_compiler_flag="-o out/conftest2.$ac_objext"
22235 # Insert the option either (1) after the last *FLAGS variable, or
22236 # (2) before a word containing "conftest.", or (3) at the end.
22237 # Note that $ac_compile itself does not contain backslashes and begins
22238 # with a dollar sign (not a hyphen), so the echo should work correctly.
22239 lt_compile=`echo "$ac_compile" | $SED \
22240 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
22241 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22242 -e 's:$: $lt_compiler_flag:'`
22243 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
22244 (eval "$lt_compile" 2>out/conftest.err)
22245 ac_status=$?
22246 cat out/conftest.err >&5
22247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22248 if (exit $ac_status) && test -s out/conftest2.$ac_objext
22249 then
22250 # The compiler can only warn and ignore the option if not recognized
22251 # So say no if there are warnings
22252 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
22253 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
22254 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
22255 lt_cv_prog_compiler_c_o_CXX=yes
22258 chmod u+w . 2>&5
22259 $RM conftest*
22260 # SGI C++ compiler will create directory out/ii_files/ for
22261 # template instantiation
22262 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
22263 $RM out/* && rmdir out
22264 cd ..
22265 $RM -r conftest
22266 $RM conftest*
22269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
22270 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
22275 hard_links="nottested"
22276 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
22277 # do not overwrite the value of need_locks provided by the user
22278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
22279 $as_echo_n "checking if we can lock with hard links... " >&6; }
22280 hard_links=yes
22281 $RM conftest*
22282 ln conftest.a conftest.b 2>/dev/null && hard_links=no
22283 touch conftest.a
22284 ln conftest.a conftest.b 2>&5 || hard_links=no
22285 ln conftest.a conftest.b 2>/dev/null && hard_links=no
22286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
22287 $as_echo "$hard_links" >&6; }
22288 if test "$hard_links" = no; then
22289 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
22290 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
22291 need_locks=warn
22293 else
22294 need_locks=no
22299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
22300 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
22302 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
22303 case $host_os in
22304 aix[4-9]*)
22305 # If we're using GNU nm, then we don't want the "-C" option.
22306 # -C means demangle to AIX nm, but means don't demangle with GNU nm
22307 # Also, AIX nm treats weak defined symbols like other global defined
22308 # symbols, whereas GNU nm marks them as "W".
22309 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
22310 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'
22311 else
22312 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'
22315 pw32*)
22316 export_symbols_cmds_CXX="$ltdll_cmds"
22318 cygwin* | mingw* | cegcc*)
22319 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'
22322 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
22324 esac
22325 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
22327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
22328 $as_echo "$ld_shlibs_CXX" >&6; }
22329 test "$ld_shlibs_CXX" = no && can_build_shared=no
22331 with_gnu_ld_CXX=$with_gnu_ld
22339 # Do we need to explicitly link libc?
22341 case "x$archive_cmds_need_lc_CXX" in
22342 x|xyes)
22343 # Assume -lc should be added
22344 archive_cmds_need_lc_CXX=yes
22346 if test "$enable_shared" = yes && test "$GCC" = yes; then
22347 case $archive_cmds_CXX in
22348 *'~'*)
22349 # FIXME: we may have to deal with multi-command sequences.
22351 '$CC '*)
22352 # Test whether the compiler implicitly links with -lc since on some
22353 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22354 # to ld, don't add -lc before -lgcc.
22355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
22356 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
22357 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
22358 $as_echo_n "(cached) " >&6
22359 else
22360 $RM conftest*
22361 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
22363 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
22364 (eval $ac_compile) 2>&5
22365 ac_status=$?
22366 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22367 test $ac_status = 0; } 2>conftest.err; then
22368 soname=conftest
22369 lib=conftest
22370 libobjs=conftest.$ac_objext
22371 deplibs=
22372 wl=$lt_prog_compiler_wl_CXX
22373 pic_flag=$lt_prog_compiler_pic_CXX
22374 compiler_flags=-v
22375 linker_flags=-v
22376 verstring=
22377 output_objdir=.
22378 libname=conftest
22379 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
22380 allow_undefined_flag_CXX=
22381 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
22382 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
22383 ac_status=$?
22384 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22385 test $ac_status = 0; }
22386 then
22387 lt_cv_archive_cmds_need_lc_CXX=no
22388 else
22389 lt_cv_archive_cmds_need_lc_CXX=yes
22391 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
22392 else
22393 cat conftest.err 1>&5
22395 $RM conftest*
22398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
22399 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
22400 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
22402 esac
22405 esac
22470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
22471 $as_echo_n "checking dynamic linker characteristics... " >&6; }
22473 library_names_spec=
22474 libname_spec='lib$name'
22475 soname_spec=
22476 shrext_cmds=".so"
22477 postinstall_cmds=
22478 postuninstall_cmds=
22479 finish_cmds=
22480 finish_eval=
22481 shlibpath_var=
22482 shlibpath_overrides_runpath=unknown
22483 version_type=none
22484 dynamic_linker="$host_os ld.so"
22485 sys_lib_dlsearch_path_spec="/lib /usr/lib"
22486 need_lib_prefix=unknown
22487 hardcode_into_libs=no
22489 # when you set need_version to no, make sure it does not cause -set_version
22490 # flags to be left without arguments
22491 need_version=unknown
22493 case $host_os in
22494 aix3*)
22495 version_type=linux
22496 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22497 shlibpath_var=LIBPATH
22499 # AIX 3 has no versioning support, so we append a major version to the name.
22500 soname_spec='${libname}${release}${shared_ext}$major'
22503 aix[4-9]*)
22504 version_type=linux
22505 need_lib_prefix=no
22506 need_version=no
22507 hardcode_into_libs=yes
22508 if test "$host_cpu" = ia64; then
22509 # AIX 5 supports IA64
22510 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22511 shlibpath_var=LD_LIBRARY_PATH
22512 else
22513 # With GCC up to 2.95.x, collect2 would create an import file
22514 # for dependence libraries. The import file would start with
22515 # the line `#! .'. This would cause the generated library to
22516 # depend on `.', always an invalid library. This was fixed in
22517 # development snapshots of GCC prior to 3.0.
22518 case $host_os in
22519 aix4 | aix4.[01] | aix4.[01].*)
22520 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22521 echo ' yes '
22522 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
22524 else
22525 can_build_shared=no
22528 esac
22529 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22530 # soname into executable. Probably we can add versioning support to
22531 # collect2, so additional links can be useful in future.
22532 if test "$aix_use_runtimelinking" = yes; then
22533 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22534 # instead of lib<name>.a to let people know that these are not
22535 # typical AIX shared libraries.
22536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22537 else
22538 # We preserve .a as extension for shared libraries through AIX4.2
22539 # and later when we are not doing run time linking.
22540 library_names_spec='${libname}${release}.a $libname.a'
22541 soname_spec='${libname}${release}${shared_ext}$major'
22543 shlibpath_var=LIBPATH
22547 amigaos*)
22548 case $host_cpu in
22549 powerpc)
22550 # Since July 2007 AmigaOS4 officially supports .so libraries.
22551 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
22552 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22554 m68k)
22555 library_names_spec='$libname.ixlibrary $libname.a'
22556 # Create ${libname}_ixlibrary.a entries in /sys/libs.
22557 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'
22559 esac
22562 beos*)
22563 library_names_spec='${libname}${shared_ext}'
22564 dynamic_linker="$host_os ld.so"
22565 shlibpath_var=LIBRARY_PATH
22568 bsdi[45]*)
22569 version_type=linux
22570 need_version=no
22571 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22572 soname_spec='${libname}${release}${shared_ext}$major'
22573 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22574 shlibpath_var=LD_LIBRARY_PATH
22575 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22576 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22577 # the default ld.so.conf also contains /usr/contrib/lib and
22578 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22579 # libtool to hard-code these into programs
22582 cygwin* | mingw* | pw32* | cegcc*)
22583 version_type=windows
22584 shrext_cmds=".dll"
22585 need_version=no
22586 need_lib_prefix=no
22588 case $GCC,$host_os in
22589 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
22590 library_names_spec='$libname.dll.a'
22591 # DLL is installed to $(libdir)/../bin by postinstall_cmds
22592 postinstall_cmds='base_file=`basename \${file}`~
22593 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
22594 dldir=$destdir/`dirname \$dlpath`~
22595 test -d \$dldir || mkdir -p \$dldir~
22596 $install_prog $dir/$dlname \$dldir/$dlname~
22597 chmod a+x \$dldir/$dlname~
22598 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
22599 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
22601 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22602 dlpath=$dir/\$dldll~
22603 $RM \$dlpath'
22604 shlibpath_overrides_runpath=yes
22606 case $host_os in
22607 cygwin*)
22608 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22609 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22612 mingw* | cegcc*)
22613 # MinGW DLLs use traditional 'lib' prefix
22614 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22616 pw32*)
22617 # pw32 DLLs use 'pw' prefix rather than 'lib'
22618 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22620 esac
22624 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22626 esac
22627 dynamic_linker='Win32 ld.exe'
22628 # FIXME: first we should search . and the directory the executable is in
22629 shlibpath_var=PATH
22632 darwin* | rhapsody*)
22633 dynamic_linker="$host_os dyld"
22634 version_type=darwin
22635 need_lib_prefix=no
22636 need_version=no
22637 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22638 soname_spec='${libname}${release}${major}$shared_ext'
22639 shlibpath_overrides_runpath=yes
22640 shlibpath_var=DYLD_LIBRARY_PATH
22641 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
22643 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22646 dgux*)
22647 version_type=linux
22648 need_lib_prefix=no
22649 need_version=no
22650 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22651 soname_spec='${libname}${release}${shared_ext}$major'
22652 shlibpath_var=LD_LIBRARY_PATH
22655 freebsd* | dragonfly*)
22656 # DragonFly does not have aout. When/if they implement a new
22657 # versioning mechanism, adjust this.
22658 if test -x /usr/bin/objformat; then
22659 objformat=`/usr/bin/objformat`
22660 else
22661 case $host_os in
22662 freebsd[23].*) objformat=aout ;;
22663 *) objformat=elf ;;
22664 esac
22666 version_type=freebsd-$objformat
22667 case $version_type in
22668 freebsd-elf*)
22669 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22670 need_version=no
22671 need_lib_prefix=no
22673 freebsd-*)
22674 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22675 need_version=yes
22677 esac
22678 shlibpath_var=LD_LIBRARY_PATH
22679 case $host_os in
22680 freebsd2.*)
22681 shlibpath_overrides_runpath=yes
22683 freebsd3.[01]* | freebsdelf3.[01]*)
22684 shlibpath_overrides_runpath=yes
22685 hardcode_into_libs=yes
22687 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
22688 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
22689 shlibpath_overrides_runpath=no
22690 hardcode_into_libs=yes
22692 *) # from 4.6 on, and DragonFly
22693 shlibpath_overrides_runpath=yes
22694 hardcode_into_libs=yes
22696 esac
22699 haiku*)
22700 version_type=linux
22701 need_lib_prefix=no
22702 need_version=no
22703 dynamic_linker="$host_os runtime_loader"
22704 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22705 soname_spec='${libname}${release}${shared_ext}$major'
22706 shlibpath_var=LIBRARY_PATH
22707 shlibpath_overrides_runpath=yes
22708 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
22709 hardcode_into_libs=yes
22712 hpux9* | hpux10* | hpux11*)
22713 # Give a soname corresponding to the major version so that dld.sl refuses to
22714 # link against other versions.
22715 version_type=sunos
22716 need_lib_prefix=no
22717 need_version=no
22718 case $host_cpu in
22719 ia64*)
22720 shrext_cmds='.so'
22721 hardcode_into_libs=yes
22722 dynamic_linker="$host_os dld.so"
22723 shlibpath_var=LD_LIBRARY_PATH
22724 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22725 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22726 soname_spec='${libname}${release}${shared_ext}$major'
22727 if test "X$HPUX_IA64_MODE" = X32; then
22728 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22729 else
22730 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22732 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22734 hppa*64*)
22735 shrext_cmds='.sl'
22736 hardcode_into_libs=yes
22737 dynamic_linker="$host_os dld.sl"
22738 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22739 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22740 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22741 soname_spec='${libname}${release}${shared_ext}$major'
22742 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22743 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22746 shrext_cmds='.sl'
22747 dynamic_linker="$host_os dld.sl"
22748 shlibpath_var=SHLIB_PATH
22749 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22750 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22751 soname_spec='${libname}${release}${shared_ext}$major'
22753 esac
22754 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
22755 postinstall_cmds='chmod 555 $lib'
22756 # or fails outright, so override atomically:
22757 install_override_mode=555
22760 interix[3-9]*)
22761 version_type=linux
22762 need_lib_prefix=no
22763 need_version=no
22764 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22765 soname_spec='${libname}${release}${shared_ext}$major'
22766 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
22767 shlibpath_var=LD_LIBRARY_PATH
22768 shlibpath_overrides_runpath=no
22769 hardcode_into_libs=yes
22772 irix5* | irix6* | nonstopux*)
22773 case $host_os in
22774 nonstopux*) version_type=nonstopux ;;
22776 if test "$lt_cv_prog_gnu_ld" = yes; then
22777 version_type=linux
22778 else
22779 version_type=irix
22780 fi ;;
22781 esac
22782 need_lib_prefix=no
22783 need_version=no
22784 soname_spec='${libname}${release}${shared_ext}$major'
22785 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22786 case $host_os in
22787 irix5* | nonstopux*)
22788 libsuff= shlibsuff=
22791 case $LD in # libtool.m4 will add one of these switches to LD
22792 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22793 libsuff= shlibsuff= libmagic=32-bit;;
22794 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22795 libsuff=32 shlibsuff=N32 libmagic=N32;;
22796 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22797 libsuff=64 shlibsuff=64 libmagic=64-bit;;
22798 *) libsuff= shlibsuff= libmagic=never-match;;
22799 esac
22801 esac
22802 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22803 shlibpath_overrides_runpath=no
22804 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22805 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22806 hardcode_into_libs=yes
22809 # No shared lib support for Linux oldld, aout, or coff.
22810 linux*oldld* | linux*aout* | linux*coff*)
22811 dynamic_linker=no
22814 # This must be Linux ELF.
22816 # uclinux* changes (here and below) have been submitted to the libtool
22817 # project, but have not yet been accepted: they are GCC-local changes
22818 # for the time being. (See
22819 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
22820 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
22821 version_type=linux
22822 need_lib_prefix=no
22823 need_version=no
22824 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22825 soname_spec='${libname}${release}${shared_ext}$major'
22826 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22827 shlibpath_var=LD_LIBRARY_PATH
22828 shlibpath_overrides_runpath=no
22830 # Some binutils ld are patched to set DT_RUNPATH
22831 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
22832 $as_echo_n "(cached) " >&6
22833 else
22834 lt_cv_shlibpath_overrides_runpath=no
22835 save_LDFLAGS=$LDFLAGS
22836 save_libdir=$libdir
22837 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
22838 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
22839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22840 /* end confdefs.h. */
22843 main ()
22847 return 0;
22849 _ACEOF
22850 if ac_fn_cxx_try_link "$LINENO"; then :
22851 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
22852 lt_cv_shlibpath_overrides_runpath=yes
22855 rm -f core conftest.err conftest.$ac_objext \
22856 conftest$ac_exeext conftest.$ac_ext
22857 LDFLAGS=$save_LDFLAGS
22858 libdir=$save_libdir
22862 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
22864 # This implies no fast_install, which is unacceptable.
22865 # Some rework will be needed to allow for fast_install
22866 # before this can be enabled.
22867 hardcode_into_libs=yes
22869 # Append ld.so.conf contents to the search path
22870 if test -f /etc/ld.so.conf; then
22871 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' ' '`
22872 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22875 # We used to test for /lib/ld.so.1 and disable shared libraries on
22876 # powerpc, because MkLinux only supported shared libraries with the
22877 # GNU dynamic linker. Since this was broken with cross compilers,
22878 # most powerpc-linux boxes support dynamic linking these days and
22879 # people can always --disable-shared, the test was removed, and we
22880 # assume the GNU/Linux dynamic linker is in use.
22881 dynamic_linker='GNU/Linux ld.so'
22884 netbsd*)
22885 version_type=sunos
22886 need_lib_prefix=no
22887 need_version=no
22888 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
22889 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22890 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22891 dynamic_linker='NetBSD (a.out) ld.so'
22892 else
22893 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22894 soname_spec='${libname}${release}${shared_ext}$major'
22895 dynamic_linker='NetBSD ld.elf_so'
22897 shlibpath_var=LD_LIBRARY_PATH
22898 shlibpath_overrides_runpath=yes
22899 hardcode_into_libs=yes
22902 newsos6)
22903 version_type=linux
22904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22905 shlibpath_var=LD_LIBRARY_PATH
22906 shlibpath_overrides_runpath=yes
22909 *nto* | *qnx*)
22910 version_type=qnx
22911 need_lib_prefix=no
22912 need_version=no
22913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22914 soname_spec='${libname}${release}${shared_ext}$major'
22915 shlibpath_var=LD_LIBRARY_PATH
22916 shlibpath_overrides_runpath=no
22917 hardcode_into_libs=yes
22918 dynamic_linker='ldqnx.so'
22921 openbsd*)
22922 version_type=sunos
22923 sys_lib_dlsearch_path_spec="/usr/lib"
22924 need_lib_prefix=no
22925 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
22926 case $host_os in
22927 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
22928 *) need_version=no ;;
22929 esac
22930 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22931 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22932 shlibpath_var=LD_LIBRARY_PATH
22933 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22934 case $host_os in
22935 openbsd2.[89] | openbsd2.[89].*)
22936 shlibpath_overrides_runpath=no
22939 shlibpath_overrides_runpath=yes
22941 esac
22942 else
22943 shlibpath_overrides_runpath=yes
22947 os2*)
22948 libname_spec='$name'
22949 shrext_cmds=".dll"
22950 need_lib_prefix=no
22951 library_names_spec='$libname${shared_ext} $libname.a'
22952 dynamic_linker='OS/2 ld.exe'
22953 shlibpath_var=LIBPATH
22956 osf3* | osf4* | osf5*)
22957 version_type=osf
22958 need_lib_prefix=no
22959 need_version=no
22960 soname_spec='${libname}${release}${shared_ext}$major'
22961 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22962 shlibpath_var=LD_LIBRARY_PATH
22963 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22964 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
22967 rdos*)
22968 dynamic_linker=no
22971 solaris*)
22972 version_type=linux
22973 need_lib_prefix=no
22974 need_version=no
22975 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22976 soname_spec='${libname}${release}${shared_ext}$major'
22977 shlibpath_var=LD_LIBRARY_PATH
22978 shlibpath_overrides_runpath=yes
22979 hardcode_into_libs=yes
22980 # ldd complains unless libraries are executable
22981 postinstall_cmds='chmod +x $lib'
22984 sunos4*)
22985 version_type=sunos
22986 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22987 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22988 shlibpath_var=LD_LIBRARY_PATH
22989 shlibpath_overrides_runpath=yes
22990 if test "$with_gnu_ld" = yes; then
22991 need_lib_prefix=no
22993 need_version=yes
22996 sysv4 | sysv4.3*)
22997 version_type=linux
22998 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22999 soname_spec='${libname}${release}${shared_ext}$major'
23000 shlibpath_var=LD_LIBRARY_PATH
23001 case $host_vendor in
23002 sni)
23003 shlibpath_overrides_runpath=no
23004 need_lib_prefix=no
23005 runpath_var=LD_RUN_PATH
23007 siemens)
23008 need_lib_prefix=no
23010 motorola)
23011 need_lib_prefix=no
23012 need_version=no
23013 shlibpath_overrides_runpath=no
23014 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23016 esac
23019 sysv4*MP*)
23020 if test -d /usr/nec ;then
23021 version_type=linux
23022 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23023 soname_spec='$libname${shared_ext}.$major'
23024 shlibpath_var=LD_LIBRARY_PATH
23028 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
23029 version_type=freebsd-elf
23030 need_lib_prefix=no
23031 need_version=no
23032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23033 soname_spec='${libname}${release}${shared_ext}$major'
23034 shlibpath_var=LD_LIBRARY_PATH
23035 shlibpath_overrides_runpath=yes
23036 hardcode_into_libs=yes
23037 if test "$with_gnu_ld" = yes; then
23038 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
23039 else
23040 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
23041 case $host_os in
23042 sco3.2v5*)
23043 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
23045 esac
23047 sys_lib_dlsearch_path_spec='/usr/lib'
23050 tpf*)
23051 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
23052 version_type=linux
23053 need_lib_prefix=no
23054 need_version=no
23055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23056 shlibpath_var=LD_LIBRARY_PATH
23057 shlibpath_overrides_runpath=no
23058 hardcode_into_libs=yes
23061 uts4*)
23062 version_type=linux
23063 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23064 soname_spec='${libname}${release}${shared_ext}$major'
23065 shlibpath_var=LD_LIBRARY_PATH
23068 # Shared libraries for VwWorks, >= 7 only at this stage
23069 # and (fpic) still incompatible with "large" code models
23070 # in a few configurations. Only for RTP mode in any case,
23071 # and upon explicit request at configure time.
23072 vxworks7*)
23073 dynamic_linker=no
23074 case ${with_multisubdir}-${enable_shared} in
23075 *large*)
23077 *mrtp*-yes)
23078 version_type=linux
23079 need_lib_prefix=no
23080 need_version=no
23081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23082 soname_spec='${libname}${release}${shared_ext}$major'
23083 dynamic_linker="$host_os module_loader"
23085 esac
23088 dynamic_linker=no
23090 esac
23091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
23092 $as_echo "$dynamic_linker" >&6; }
23093 test "$dynamic_linker" = no && can_build_shared=no
23095 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
23096 if test "$GCC" = yes; then
23097 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23100 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
23101 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
23103 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
23104 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
23144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
23145 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
23146 hardcode_action_CXX=
23147 if test -n "$hardcode_libdir_flag_spec_CXX" ||
23148 test -n "$runpath_var_CXX" ||
23149 test "X$hardcode_automatic_CXX" = "Xyes" ; then
23151 # We can hardcode non-existent directories.
23152 if test "$hardcode_direct_CXX" != no &&
23153 # If the only mechanism to avoid hardcoding is shlibpath_var, we
23154 # have to relink, otherwise we might link with an installed library
23155 # when we should be linking with a yet-to-be-installed one
23156 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
23157 test "$hardcode_minus_L_CXX" != no; then
23158 # Linking always hardcodes the temporary library directory.
23159 hardcode_action_CXX=relink
23160 else
23161 # We can link without hardcoding, and we can hardcode nonexisting dirs.
23162 hardcode_action_CXX=immediate
23164 else
23165 # We cannot hardcode anything, or else we can only hardcode existing
23166 # directories.
23167 hardcode_action_CXX=unsupported
23169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
23170 $as_echo "$hardcode_action_CXX" >&6; }
23172 if test "$hardcode_action_CXX" = relink ||
23173 test "$inherit_rpath_CXX" = yes; then
23174 # Fast installation is not supported
23175 enable_fast_install=no
23176 elif test "$shlibpath_overrides_runpath" = yes ||
23177 test "$enable_shared" = no; then
23178 # Fast installation is not necessary
23179 enable_fast_install=needless
23188 fi # test -n "$compiler"
23190 CC=$lt_save_CC
23191 LDCXX=$LD
23192 LD=$lt_save_LD
23193 GCC=$lt_save_GCC
23194 with_gnu_ld=$lt_save_with_gnu_ld
23195 lt_cv_path_LDCXX=$lt_cv_path_LD
23196 lt_cv_path_LD=$lt_save_path_LD
23197 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
23198 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
23199 fi # test "$_lt_caught_CXX_error" != yes
23201 ac_ext=cpp
23202 ac_cpp='$CXXCPP $CPPFLAGS'
23203 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23204 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23205 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23222 # Only expand once:
23228 # Identify the assembler which will work hand-in-glove with the newly
23229 # built GCC, so that we can examine its features. This is the assembler
23230 # which will be driven by the driver program.
23232 # If build != host, and we aren't building gas in-tree, we identify a
23233 # build->target assembler and hope that it will have the same features
23234 # as the host->target assembler we'll be using.
23235 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
23237 if ${gcc_cv_as+:} false; then :
23239 else
23241 if test -x "$DEFAULT_ASSEMBLER"; then
23242 gcc_cv_as="$DEFAULT_ASSEMBLER"
23243 elif test -f $gcc_cv_as_gas_srcdir/configure.ac \
23244 && test -f ../gas/Makefile \
23245 && test x$build = x$host; then
23246 gcc_cv_as=../gas/as-new$build_exeext
23247 elif test -x as$build_exeext; then
23248 # Build using assembler in the current directory.
23249 gcc_cv_as=./as$build_exeext
23250 elif ( set dummy $AS_FOR_TARGET; test -x $2 ); then
23251 gcc_cv_as="$AS_FOR_TARGET"
23252 else
23253 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
23254 set dummy $AS_FOR_TARGET; ac_word=$2
23255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23256 $as_echo_n "checking for $ac_word... " >&6; }
23257 if ${ac_cv_path_gcc_cv_as+:} false; then :
23258 $as_echo_n "(cached) " >&6
23259 else
23260 case $gcc_cv_as in
23261 [\\/]* | ?:[\\/]*)
23262 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
23265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23266 for as_dir in $PATH
23268 IFS=$as_save_IFS
23269 test -z "$as_dir" && as_dir=.
23270 for ac_exec_ext in '' $ac_executable_extensions; do
23271 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23272 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
23273 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23274 break 2
23276 done
23277 done
23278 IFS=$as_save_IFS
23281 esac
23283 gcc_cv_as=$ac_cv_path_gcc_cv_as
23284 if test -n "$gcc_cv_as"; then
23285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
23286 $as_echo "$gcc_cv_as" >&6; }
23287 else
23288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23289 $as_echo "no" >&6; }
23296 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
23298 case "$ORIGINAL_AS_FOR_TARGET" in
23299 ./as | ./as$build_exeext) ;;
23300 *) ac_config_files="$ac_config_files as:exec-tool.in"
23302 esac
23304 default_ld=
23305 # Check whether --enable-ld was given.
23306 if test "${enable_ld+set}" = set; then :
23307 enableval=$enable_ld; case "${enableval}" in
23309 default_ld=ld.gold
23311 esac
23315 install_gold_as_default=no
23316 # Check whether --enable-gold was given.
23317 if test "${enable_gold+set}" = set; then :
23318 enableval=$enable_gold; case "${enableval}" in
23319 default)
23320 install_gold_as_default=yes
23322 yes)
23323 if test x${default_ld} != x; then
23324 install_gold_as_default=yes
23330 as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5
23332 esac
23336 # Identify the linker which will work hand-in-glove with the newly
23337 # built GCC, so that we can examine its features. This is the linker
23338 # which will be driven by the driver program.
23340 # If build != host, and we aren't building gas in-tree, we identify a
23341 # build->target linker and hope that it will have the same features
23342 # as the host->target linker we'll be using.
23343 gcc_cv_gld_major_version=
23344 gcc_cv_gld_minor_version=
23345 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
23346 gcc_cv_ld_gold_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gold
23347 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
23349 if ${gcc_cv_ld+:} false; then :
23351 else
23353 if test -x "$DEFAULT_LINKER"; then
23354 gcc_cv_ld="$DEFAULT_LINKER"
23355 elif test $install_gold_as_default = yes \
23356 && test -f $gcc_cv_ld_gold_srcdir/configure.ac \
23357 && test -f ../gold/Makefile \
23358 && test x$build = x$host; then
23359 gcc_cv_ld=../gold/ld-new$build_exeext
23360 elif test -f $gcc_cv_ld_gld_srcdir/configure.ac \
23361 && test -f ../ld/Makefile \
23362 && test x$build = x$host; then
23363 gcc_cv_ld=../ld/ld-new$build_exeext
23364 elif test -x collect-ld$build_exeext; then
23365 # Build using linker in the current directory.
23366 gcc_cv_ld=./collect-ld$build_exeext
23367 elif ( set dummy $LD_FOR_TARGET; test -x $2 ); then
23368 gcc_cv_ld="$LD_FOR_TARGET"
23369 else
23370 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
23371 set dummy $LD_FOR_TARGET; ac_word=$2
23372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23373 $as_echo_n "checking for $ac_word... " >&6; }
23374 if ${ac_cv_path_gcc_cv_ld+:} false; then :
23375 $as_echo_n "(cached) " >&6
23376 else
23377 case $gcc_cv_ld in
23378 [\\/]* | ?:[\\/]*)
23379 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
23382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23383 for as_dir in $PATH
23385 IFS=$as_save_IFS
23386 test -z "$as_dir" && as_dir=.
23387 for ac_exec_ext in '' $ac_executable_extensions; do
23388 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23389 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
23390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23391 break 2
23393 done
23394 done
23395 IFS=$as_save_IFS
23398 esac
23400 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
23401 if test -n "$gcc_cv_ld"; then
23402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
23403 $as_echo "$gcc_cv_ld" >&6; }
23404 else
23405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23406 $as_echo "no" >&6; }
23413 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
23414 PLUGIN_LD_SUFFIX=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
23415 # if the PLUGIN_LD is set ld-new, just have it as ld
23416 # as that is the installed named.
23417 if test x$PLUGIN_LD_SUFFIX = xld-new \
23418 || test x$PLUGIN_LD_SUFFIX = xcollect-ld ; then
23419 PLUGIN_LD_SUFFIX=ld
23422 # Check whether --with-plugin-ld was given.
23423 if test "${with_plugin_ld+set}" = set; then :
23424 withval=$with_plugin_ld; if test x"$withval" != x; then
23425 ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
23426 PLUGIN_LD_SUFFIX="$withval"
23432 cat >>confdefs.h <<_ACEOF
23433 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
23434 _ACEOF
23437 # Check to see if we are using gold instead of ld
23438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
23439 $as_echo_n "checking whether we are using gold... " >&6; }
23440 ld_is_gold=no
23441 if test x$gcc_cv_ld != x; then
23442 if $gcc_cv_ld --version 2>/dev/null | sed 1q \
23443 | grep "GNU gold" > /dev/null; then
23444 ld_is_gold=yes
23447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
23448 $as_echo "$ld_is_gold" >&6; }
23450 # Check to see if we are using mold instead of ld
23451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using mold" >&5
23452 $as_echo_n "checking whether we are using mold... " >&6; }
23453 ld_is_mold=no
23454 if test x$gcc_cv_ld != x; then
23455 if $gcc_cv_ld --version 2>/dev/null | sed 1q \
23456 | grep "mold" > /dev/null; then
23457 ld_is_mold=yes
23460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_mold" >&5
23461 $as_echo "$ld_is_mold" >&6; }
23464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gold linker with split stack support as non default" >&5
23465 $as_echo_n "checking gold linker with split stack support as non default... " >&6; }
23466 # Check to see if default ld is not gold, but gold is
23467 # available and has support for split stack. If gcc was configured
23468 # with gold then no checking is done.
23470 if test x$ld_is_gold = xno && which ${gcc_cv_ld}.gold >/dev/null 2>&1; then
23472 # For platforms other than powerpc64*, enable as appropriate.
23474 gold_non_default=no
23475 ld_gold=`which ${gcc_cv_ld}.gold`
23476 # Make sure this gold has minimal split stack support
23477 if $ld_gold --help 2>/dev/null | grep split-stack-adjust-size >/dev/null 2>&1; then
23478 ld_vers=`$ld_gold --version | sed 1q`
23479 gold_vers=`echo $ld_vers | sed -n \
23480 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
23481 case $target in
23482 # check that the gold version contains the complete split stack support
23483 # on powerpc64 big and little endian
23484 powerpc64*-*-*)
23485 case "$gold_vers" in
23486 2.25.[1-9]*|2.2[6-9][.0-9]*|2.[3-9][.0-9]*|[3-9].[.0-9]*) gold_non_default=yes
23488 *) gold_non_default=no
23490 esac
23492 esac
23494 if test $gold_non_default = yes; then
23496 $as_echo "#define HAVE_GOLD_NON_DEFAULT_SPLIT_STACK 1" >>confdefs.h
23500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_non_default" >&5
23501 $as_echo "$gold_non_default" >&6; }
23503 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
23505 case "$ORIGINAL_LD_FOR_TARGET" in
23506 ./collect-ld | ./collect-ld$build_exeext) ;;
23507 *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
23509 esac
23511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
23512 $as_echo_n "checking what linker to use... " >&6; }
23513 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext \
23514 || test "$gcc_cv_ld" = ../gold/ld-new$build_exeext; then
23515 # Single tree build which includes ld. We want to prefer it
23516 # over whatever linker top-level may have detected, since
23517 # we'll use what we're building after installation anyway.
23518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
23519 $as_echo "newly built ld" >&6; }
23520 in_tree_ld=yes
23521 in_tree_ld_is_elf=no
23522 if (grep 'EMUL = .*elf' ../ld/Makefile \
23523 || grep 'EMUL = .*linux' ../ld/Makefile \
23524 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
23525 in_tree_ld_is_elf=yes
23526 elif test "$ld_is_gold" = yes; then
23527 in_tree_ld_is_elf=yes
23529 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
23531 gcc_cv_gld_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
23532 if test x$gcc_cv_gld_version != x; then
23533 break
23535 done
23536 case $gcc_cv_gld_version in
23537 VERSION=[0-9]*) ;;
23538 *) as_fn_error $? "cannot find version of in-tree linker" "$LINENO" 5 ;;
23539 esac
23540 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
23541 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
23542 ORIGINAL_LD_BFD_FOR_TARGET=../ld/ld-new$build_exeext
23543 ORIGINAL_LD_GOLD_FOR_TARGET=../gold/ld-new$build_exeext
23544 else
23545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
23546 $as_echo "$gcc_cv_ld" >&6; }
23547 in_tree_ld=no
23548 gcc_cvs_ld_program=`dirname $gcc_cv_ld`/`basename $gcc_cv_ld $host_exeext`
23549 ORIGINAL_LD_BFD_FOR_TARGET=${gcc_cvs_ld_program}.bfd$host_exeext
23550 ORIGINAL_LD_GOLD_FOR_TARGET=${gcc_cvs_ld_program}.gold$host_exeext
23556 # Figure out what nm we will be using.
23557 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
23558 if ${gcc_cv_nm+:} false; then :
23560 else
23562 if test -f $gcc_cv_binutils_srcdir/configure.ac \
23563 && test -f ../binutils/Makefile \
23564 && test x$build = x$host; then
23565 gcc_cv_nm=../binutils/nm-new$build_exeext
23566 elif test -x nm$build_exeext; then
23567 gcc_cv_nm=./nm$build_exeext
23568 elif ( set dummy $NM_FOR_TARGET; test -x $2 ); then
23569 gcc_cv_nm="$NM_FOR_TARGET"
23570 else
23571 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
23572 set dummy $NM_FOR_TARGET; ac_word=$2
23573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23574 $as_echo_n "checking for $ac_word... " >&6; }
23575 if ${ac_cv_path_gcc_cv_nm+:} false; then :
23576 $as_echo_n "(cached) " >&6
23577 else
23578 case $gcc_cv_nm in
23579 [\\/]* | ?:[\\/]*)
23580 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
23583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23584 for as_dir in $PATH
23586 IFS=$as_save_IFS
23587 test -z "$as_dir" && as_dir=.
23588 for ac_exec_ext in '' $ac_executable_extensions; do
23589 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23590 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
23591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23592 break 2
23594 done
23595 done
23596 IFS=$as_save_IFS
23599 esac
23601 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
23602 if test -n "$gcc_cv_nm"; then
23603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
23604 $as_echo "$gcc_cv_nm" >&6; }
23605 else
23606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23607 $as_echo "no" >&6; }
23614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
23615 $as_echo_n "checking what nm to use... " >&6; }
23616 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
23617 # Single tree build which includes binutils.
23618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
23619 $as_echo "newly built nm" >&6; }
23620 in_tree_nm=yes
23621 else
23622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
23623 $as_echo "$gcc_cv_nm" >&6; }
23624 in_tree_nm=no
23627 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
23629 case "$ORIGINAL_NM_FOR_TARGET" in
23630 ./nm | ./nm$build_exeext) ;;
23631 *) ac_config_files="$ac_config_files nm:exec-tool.in"
23633 esac
23636 # Figure out what objdump we will be using.
23637 if ${gcc_cv_objdump+:} false; then :
23639 else
23641 if test -f $gcc_cv_binutils_srcdir/configure.ac \
23642 && test -f ../binutils/Makefile \
23643 && test x$build = x$host; then
23644 # Single tree build which includes binutils.
23645 gcc_cv_objdump=../binutils/objdump$build_exeext
23646 elif test -x objdump$build_exeext; then
23647 gcc_cv_objdump=./objdump$build_exeext
23648 elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $2 ); then
23649 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
23650 else
23651 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
23652 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
23653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23654 $as_echo_n "checking for $ac_word... " >&6; }
23655 if ${ac_cv_path_gcc_cv_objdump+:} false; then :
23656 $as_echo_n "(cached) " >&6
23657 else
23658 case $gcc_cv_objdump in
23659 [\\/]* | ?:[\\/]*)
23660 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
23663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23664 for as_dir in $PATH
23666 IFS=$as_save_IFS
23667 test -z "$as_dir" && as_dir=.
23668 for ac_exec_ext in '' $ac_executable_extensions; do
23669 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23670 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
23671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23672 break 2
23674 done
23675 done
23676 IFS=$as_save_IFS
23679 esac
23681 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
23682 if test -n "$gcc_cv_objdump"; then
23683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
23684 $as_echo "$gcc_cv_objdump" >&6; }
23685 else
23686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23687 $as_echo "no" >&6; }
23694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
23695 $as_echo_n "checking what objdump to use... " >&6; }
23696 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
23697 # Single tree build which includes binutils.
23698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
23699 $as_echo "newly built objdump" >&6; }
23700 elif test x$gcc_cv_objdump = x; then
23701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23702 $as_echo "not found" >&6; }
23703 else
23704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
23705 $as_echo "$gcc_cv_objdump" >&6; }
23708 # Figure out what readelf we will be using.
23709 if ${gcc_cv_readelf+:} false; then :
23711 else
23713 if test -f $gcc_cv_binutils_srcdir/configure.ac \
23714 && test -f ../binutils/Makefile \
23715 && test x$build = x$host; then
23716 # Single tree build which includes binutils.
23717 gcc_cv_readelf=../binutils/readelf$build_exeext
23718 elif test -x readelf$build_exeext; then
23719 gcc_cv_readelf=./readelf$build_exeext
23720 elif ( set dummy $READELF_FOR_TARGET; test -x $2 ); then
23721 gcc_cv_readelf="$READELF_FOR_TARGET"
23722 else
23723 # Extract the first word of "$READELF_FOR_TARGET", so it can be a program name with args.
23724 set dummy $READELF_FOR_TARGET; ac_word=$2
23725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23726 $as_echo_n "checking for $ac_word... " >&6; }
23727 if ${ac_cv_path_gcc_cv_readelf+:} false; then :
23728 $as_echo_n "(cached) " >&6
23729 else
23730 case $gcc_cv_readelf in
23731 [\\/]* | ?:[\\/]*)
23732 ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
23735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23736 for as_dir in $PATH
23738 IFS=$as_save_IFS
23739 test -z "$as_dir" && as_dir=.
23740 for ac_exec_ext in '' $ac_executable_extensions; do
23741 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23742 ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
23743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23744 break 2
23746 done
23747 done
23748 IFS=$as_save_IFS
23751 esac
23753 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
23754 if test -n "$gcc_cv_readelf"; then
23755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
23756 $as_echo "$gcc_cv_readelf" >&6; }
23757 else
23758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23759 $as_echo "no" >&6; }
23766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
23767 $as_echo_n "checking what readelf to use... " >&6; }
23768 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
23769 # Single tree build which includes binutils.
23770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
23771 $as_echo "newly built readelf" >&6; }
23772 elif test x$gcc_cv_readelf = x; then
23773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23774 $as_echo "not found" >&6; }
23775 else
23776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
23777 $as_echo "$gcc_cv_readelf" >&6; }
23780 # Figure out what otool we will be using.
23781 if ${gcc_cv_otool+:} false; then :
23783 else
23785 if test -x otool$build_exeext; then
23786 gcc_cv_otool=./otool$build_exeext
23787 elif ( set dummy $OTOOL_FOR_TARGET; test -x $2 ); then
23788 gcc_cv_otool="$OTOOL_FOR_TARGET"
23789 else
23790 # Extract the first word of "$OTOOL_FOR_TARGET", so it can be a program name with args.
23791 set dummy $OTOOL_FOR_TARGET; ac_word=$2
23792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23793 $as_echo_n "checking for $ac_word... " >&6; }
23794 if ${ac_cv_path_gcc_cv_otool+:} false; then :
23795 $as_echo_n "(cached) " >&6
23796 else
23797 case $gcc_cv_otool in
23798 [\\/]* | ?:[\\/]*)
23799 ac_cv_path_gcc_cv_otool="$gcc_cv_otool" # Let the user override the test with a path.
23802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23803 for as_dir in $PATH
23805 IFS=$as_save_IFS
23806 test -z "$as_dir" && as_dir=.
23807 for ac_exec_ext in '' $ac_executable_extensions; do
23808 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23809 ac_cv_path_gcc_cv_otool="$as_dir/$ac_word$ac_exec_ext"
23810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23811 break 2
23813 done
23814 done
23815 IFS=$as_save_IFS
23818 esac
23820 gcc_cv_otool=$ac_cv_path_gcc_cv_otool
23821 if test -n "$gcc_cv_otool"; then
23822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_otool" >&5
23823 $as_echo "$gcc_cv_otool" >&6; }
23824 else
23825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23826 $as_echo "no" >&6; }
23833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what otool to use" >&5
23834 $as_echo_n "checking what otool to use... " >&6; }
23835 if test x$gcc_cv_otool = x; then
23836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23837 $as_echo "not found" >&6; }
23838 else
23839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_otool" >&5
23840 $as_echo "$gcc_cv_otool" >&6; }
23843 # Figure out the dsymutil we will use.
23844 if ${gcc_cv_dsymutil+:} false; then :
23846 else
23848 if test -x "$DEFAULT_DSYMUTIL"; then
23849 gcc_cv_dsymutil="$DEFAULT_DSYMUTIL"
23850 elif test -x dsymutil$build_exeext; then
23851 gcc_cv_dsymutil=./dsymutil$build_exeext
23852 elif ( set dummy $DSYMUTIL_FOR_TARGET; test -x $2 ); then
23853 gcc_cv_dsymutil=$DSYMUTIL_FOR_TARGET
23854 elif ( set dummy $DSYMUTIL; test -x $2 ); then
23855 gcc_cv_dsymutil=$DSYMUTIL
23856 else
23857 # Extract the first word of "$DSYMUTIL_FOR_TARGET", so it can be a program name with args.
23858 set dummy $DSYMUTIL_FOR_TARGET; ac_word=$2
23859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23860 $as_echo_n "checking for $ac_word... " >&6; }
23861 if ${ac_cv_path_gcc_cv_dsymutil+:} false; then :
23862 $as_echo_n "(cached) " >&6
23863 else
23864 case $gcc_cv_dsymutil in
23865 [\\/]* | ?:[\\/]*)
23866 ac_cv_path_gcc_cv_dsymutil="$gcc_cv_dsymutil" # Let the user override the test with a path.
23869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23870 for as_dir in $PATH
23872 IFS=$as_save_IFS
23873 test -z "$as_dir" && as_dir=.
23874 for ac_exec_ext in '' $ac_executable_extensions; do
23875 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23876 ac_cv_path_gcc_cv_dsymutil="$as_dir/$ac_word$ac_exec_ext"
23877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23878 break 2
23880 done
23881 done
23882 IFS=$as_save_IFS
23885 esac
23887 gcc_cv_dsymutil=$ac_cv_path_gcc_cv_dsymutil
23888 if test -n "$gcc_cv_dsymutil"; then
23889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_dsymutil" >&5
23890 $as_echo "$gcc_cv_dsymutil" >&6; }
23891 else
23892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23893 $as_echo "no" >&6; }
23900 ORIGINAL_DSYMUTIL_FOR_TARGET=$gcc_cv_dsymutil
23902 case "$ORIGINAL_DSYMUTIL_FOR_TARGET" in
23903 ./dsymutil | ./dsymutil$build_exeext) ;;
23904 *) ac_config_files="$ac_config_files dsymutil:exec-tool.in"
23906 esac
23908 # Figure out what assembler alignment features are present.
23909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
23910 $as_echo_n "checking assembler flags... " >&6; }
23911 if ${gcc_cv_as_flags+:} false; then :
23912 $as_echo_n "(cached) " >&6
23913 else
23914 case "$target" in
23915 i[34567]86-*-linux*)
23916 gcc_cv_as_flags=--32
23918 x86_64-*-linux-gnux32)
23919 gcc_cv_as_flags=--x32
23921 x86_64-*-linux*)
23922 gcc_cv_as_flags=--64
23924 powerpc*-*-darwin*)
23925 gcc_cv_as_flags="-arch ppc"
23928 gcc_cv_as_flags=" "
23930 esac
23932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
23933 $as_echo "$gcc_cv_as_flags" >&6; }
23935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
23936 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
23937 if ${gcc_cv_as_balign_and_p2align+:} false; then :
23938 $as_echo_n "(cached) " >&6
23939 else
23940 gcc_cv_as_balign_and_p2align=no
23941 if test x$gcc_cv_as != x; then
23942 $as_echo '.balign 4
23943 .p2align 2' > conftest.s
23944 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23945 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23946 (eval $ac_try) 2>&5
23947 ac_status=$?
23948 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23949 test $ac_status = 0; }; }
23950 then
23951 gcc_cv_as_balign_and_p2align=yes
23952 else
23953 echo "configure: failed program was" >&5
23954 cat conftest.s >&5
23956 rm -f conftest.o conftest.s
23959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
23960 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
23961 if test $gcc_cv_as_balign_and_p2align = yes; then
23963 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
23968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
23969 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
23970 if ${gcc_cv_as_max_skip_p2align+:} false; then :
23971 $as_echo_n "(cached) " >&6
23972 else
23973 gcc_cv_as_max_skip_p2align=no
23974 if test x$gcc_cv_as != x; then
23975 $as_echo '.p2align 4,,7' > conftest.s
23976 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23977 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23978 (eval $ac_try) 2>&5
23979 ac_status=$?
23980 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23981 test $ac_status = 0; }; }
23982 then
23983 gcc_cv_as_max_skip_p2align=yes
23984 else
23985 echo "configure: failed program was" >&5
23986 cat conftest.s >&5
23988 rm -f conftest.o conftest.s
23991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
23992 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
23993 if test $gcc_cv_as_max_skip_p2align = yes; then
23995 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
24000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
24001 $as_echo_n "checking assembler for .literal16... " >&6; }
24002 if ${gcc_cv_as_literal16+:} false; then :
24003 $as_echo_n "(cached) " >&6
24004 else
24005 gcc_cv_as_literal16=no
24006 if test x$gcc_cv_as != x; then
24007 $as_echo '.literal16' > conftest.s
24008 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24009 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24010 (eval $ac_try) 2>&5
24011 ac_status=$?
24012 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24013 test $ac_status = 0; }; }
24014 then
24015 gcc_cv_as_literal16=yes
24016 else
24017 echo "configure: failed program was" >&5
24018 cat conftest.s >&5
24020 rm -f conftest.o conftest.s
24023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
24024 $as_echo "$gcc_cv_as_literal16" >&6; }
24025 if test $gcc_cv_as_literal16 = yes; then
24027 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
24032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
24033 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
24034 if ${gcc_cv_as_subsection_m1+:} false; then :
24035 $as_echo_n "(cached) " >&6
24036 else
24037 gcc_cv_as_subsection_m1=no
24038 if test x$gcc_cv_as != x; then
24039 $as_echo 'conftest_label1: .word 0
24040 .subsection -1
24041 conftest_label2: .word 0
24042 .previous' > conftest.s
24043 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24044 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24045 (eval $ac_try) 2>&5
24046 ac_status=$?
24047 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24048 test $ac_status = 0; }; }
24049 then
24050 if test x$gcc_cv_nm != x; then
24051 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
24052 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
24053 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
24054 then :
24055 else gcc_cv_as_subsection_m1=yes
24057 rm -f conftest.nm1 conftest.nm2
24059 else
24060 echo "configure: failed program was" >&5
24061 cat conftest.s >&5
24063 rm -f conftest.o conftest.s
24066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
24067 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
24068 if test $gcc_cv_as_subsection_m1 = yes; then
24070 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
24075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
24076 $as_echo_n "checking assembler for .weak... " >&6; }
24077 if ${gcc_cv_as_weak+:} false; then :
24078 $as_echo_n "(cached) " >&6
24079 else
24080 gcc_cv_as_weak=no
24081 if test x$gcc_cv_as != x; then
24082 $as_echo ' .weak foobar' > conftest.s
24083 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24084 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24085 (eval $ac_try) 2>&5
24086 ac_status=$?
24087 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24088 test $ac_status = 0; }; }
24089 then
24090 gcc_cv_as_weak=yes
24091 else
24092 echo "configure: failed program was" >&5
24093 cat conftest.s >&5
24095 rm -f conftest.o conftest.s
24098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
24099 $as_echo "$gcc_cv_as_weak" >&6; }
24100 if test $gcc_cv_as_weak = yes; then
24102 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
24107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
24108 $as_echo_n "checking assembler for .weakref... " >&6; }
24109 if ${gcc_cv_as_weakref+:} false; then :
24110 $as_echo_n "(cached) " >&6
24111 else
24112 gcc_cv_as_weakref=no
24113 if test x$gcc_cv_as != x; then
24114 $as_echo ' .weakref foobar, barfnot' > conftest.s
24115 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24116 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24117 (eval $ac_try) 2>&5
24118 ac_status=$?
24119 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24120 test $ac_status = 0; }; }
24121 then
24122 gcc_cv_as_weakref=yes
24123 else
24124 echo "configure: failed program was" >&5
24125 cat conftest.s >&5
24127 rm -f conftest.o conftest.s
24130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
24131 $as_echo "$gcc_cv_as_weakref" >&6; }
24132 if test $gcc_cv_as_weakref = yes; then
24134 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
24139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
24140 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
24141 if ${gcc_cv_as_nsubspa_comdat+:} false; then :
24142 $as_echo_n "(cached) " >&6
24143 else
24144 gcc_cv_as_nsubspa_comdat=no
24145 if test x$gcc_cv_as != x; then
24146 $as_echo ' .SPACE $TEXT$
24147 .NSUBSPA $CODE$,COMDAT' > conftest.s
24148 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24149 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24150 (eval $ac_try) 2>&5
24151 ac_status=$?
24152 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24153 test $ac_status = 0; }; }
24154 then
24155 gcc_cv_as_nsubspa_comdat=yes
24156 else
24157 echo "configure: failed program was" >&5
24158 cat conftest.s >&5
24160 rm -f conftest.o conftest.s
24163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
24164 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
24165 if test $gcc_cv_as_nsubspa_comdat = yes; then
24167 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
24172 # .hidden needs to be supported in both the assembler and the linker,
24173 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
24174 # This is irritatingly difficult to feature test for; we have to check the
24175 # date string after the version number. If we've got an in-tree
24176 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
24177 # to be safe.
24178 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
24179 case "${target}" in
24180 *-*-aix*)
24181 conftest_s=' .globl foobar,hidden'
24184 conftest_s=' .hidden foobar
24185 foobar:'
24187 esac
24188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
24189 $as_echo_n "checking assembler for .hidden... " >&6; }
24190 if ${gcc_cv_as_hidden+:} false; then :
24191 $as_echo_n "(cached) " >&6
24192 else
24193 gcc_cv_as_hidden=no
24194 if test x$gcc_cv_as != x; then
24195 $as_echo "$conftest_s" > conftest.s
24196 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24197 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24198 (eval $ac_try) 2>&5
24199 ac_status=$?
24200 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24201 test $ac_status = 0; }; }
24202 then
24203 gcc_cv_as_hidden=yes
24204 else
24205 echo "configure: failed program was" >&5
24206 cat conftest.s >&5
24208 rm -f conftest.o conftest.s
24211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
24212 $as_echo "$gcc_cv_as_hidden" >&6; }
24215 case "${target}" in
24216 *-*-darwin*)
24217 # Darwin as has some visibility support, though with a different syntax.
24218 gcc_cv_as_hidden=yes
24220 esac
24222 # gnu_indirect_function type is an extension proposed at
24223 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
24224 # selection of function implementation
24225 # Check whether --enable-gnu-indirect-function was given.
24226 if test "${enable_gnu_indirect_function+set}" = set; then :
24227 enableval=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
24228 yes | no) ;;
24229 *) as_fn_error $? "'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
24230 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
24231 esac
24232 else
24233 enable_gnu_indirect_function="$default_gnu_indirect_function"
24237 case "${target}" in
24238 riscv*-*-linux*)
24239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker ifunc IRELATIVE support" >&5
24240 $as_echo_n "checking linker ifunc IRELATIVE support... " >&6; }
24241 cat > conftest.s <<EOF
24242 .text
24243 .type foo_resolver, @function
24244 foo_resolver:
24246 .size foo_resolver, .-foo_resolver
24248 .globl foo
24249 .type foo, %gnu_indirect_function
24250 .set foo, foo_resolver
24252 .globl bar
24253 .type bar, @function
24254 bar:
24255 call foo
24257 .size bar, .-bar
24259 if test x$gcc_cv_as != x \
24260 && test x$gcc_cv_ld != x \
24261 && test x$gcc_cv_readelf != x \
24262 && $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
24263 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
24264 && $gcc_cv_readelf --relocs --wide conftest \
24265 | grep R_RISCV_IRELATIVE > /dev/null 2>&1; then
24266 enable_gnu_indirect_function=yes
24268 rm -f conftest conftest.o conftest.s
24269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gnu_indirect_function" >&5
24270 $as_echo "$enable_gnu_indirect_function" >&6; }
24272 esac
24274 gif=`if test x$enable_gnu_indirect_function = xyes; then echo 1; else echo 0; fi`
24276 cat >>confdefs.h <<_ACEOF
24277 #define HAVE_GNU_INDIRECT_FUNCTION $gif
24278 _ACEOF
24282 if test $in_tree_ld != yes ; then
24283 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
24284 if echo "$ld_ver" | grep GNU > /dev/null; then
24285 if test x"$ld_is_gold" = xyes; then
24286 # GNU gold --version looks like this:
24288 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
24290 # We extract the binutils version which is more familiar and specific
24291 # than the gold version.
24292 ld_vers=`echo $ld_ver | sed -n \
24293 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
24294 else
24295 # GNU ld --version looks like this:
24297 # GNU ld (GNU Binutils) 2.21.51.20110225
24298 ld_vers=`echo $ld_ver | sed -n \
24299 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
24301 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'`
24302 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
24303 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
24304 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
24305 else
24306 case "${target}" in
24307 *-*-solaris2*)
24308 # Solaris 2 ld -V output looks like this for a regular version:
24310 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
24312 # but test versions add stuff at the end:
24314 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
24316 # ld and ld.so.1 are guaranteed to be updated in lockstep, so ld version
24317 # numbers can be used in ld.so.1 feature checks even if a different
24318 # linker is configured.
24319 ld_ver=`$gcc_cv_ld -V 2>&1`
24320 if echo "$ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
24321 ld_vers=`echo $ld_ver | sed -n \
24322 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
24323 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
24324 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
24327 esac
24331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
24332 $as_echo_n "checking linker for .hidden support... " >&6; }
24333 if ${gcc_cv_ld_hidden+:} false; then :
24334 $as_echo_n "(cached) " >&6
24335 else
24336 if test $in_tree_ld = yes ; then
24337 gcc_cv_ld_hidden=no
24338 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 \
24339 && test $in_tree_ld_is_elf = yes; then
24340 gcc_cv_ld_hidden=yes
24342 else
24343 gcc_cv_ld_hidden=yes
24344 if test x"$ld_is_gold" = xyes; then
24346 elif test x"$ld_is_mold" = xyes; then
24348 elif echo "$ld_ver" | grep GNU > /dev/null; then
24349 if test 0"$ld_date" -lt 20020404; then
24350 if test -n "$ld_date"; then
24351 # If there was date string, but was earlier than 2002-04-04, fail
24352 gcc_cv_ld_hidden=no
24353 elif test -z "$ld_vers"; then
24354 # If there was no date string nor ld version number, something is wrong
24355 gcc_cv_ld_hidden=no
24356 else
24357 test -z "$ld_vers_patch" && ld_vers_patch=0
24358 if test "$ld_vers_major" -lt 2; then
24359 gcc_cv_ld_hidden=no
24360 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
24361 gcc_cv_ld_hidden="no"
24362 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
24363 gcc_cv_ld_hidden=no
24367 else
24368 case "${target}" in
24369 *-*-aix[789]*)
24370 gcc_cv_ld_hidden=yes
24372 *-*-darwin*)
24373 # Darwin ld has some visibility support.
24374 gcc_cv_ld_hidden=yes
24376 hppa64*-*-hpux* | ia64*-*-hpux*)
24377 gcc_cv_ld_hidden=yes
24379 *-*-solaris2*)
24380 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
24381 # .symbolic was only added in Solaris 9 12/02.
24382 gcc_cv_ld_hidden=yes
24385 gcc_cv_ld_hidden=no
24387 esac
24391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
24392 $as_echo "$gcc_cv_ld_hidden" >&6; }
24393 libgcc_visibility=no
24396 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
24397 libgcc_visibility=yes
24399 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
24403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
24404 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
24405 gcc_cv_ld_ro_rw_mix=unknown
24406 if test $in_tree_ld = yes ; then
24407 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 \
24408 && test $in_tree_ld_is_elf = yes; then
24409 gcc_cv_ld_ro_rw_mix=read-write
24411 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
24412 echo '.section myfoosect, "a"' > conftest1.s
24413 echo '.section myfoosect, "aw"' > conftest2.s
24414 echo '.byte 1' >> conftest2.s
24415 echo '.section myfoosect, "a"' > conftest3.s
24416 echo '.byte 0' >> conftest3.s
24417 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
24418 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
24419 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1; then
24420 if $gcc_cv_ld -shared -o conftest1.so conftest1.o \
24421 conftest2.o conftest3.o > /dev/null 2>&1 \
24422 || $gcc_cv_ld -r -o conftest1.so conftest1.o \
24423 conftest2.o conftest3.o > /dev/null 2>&1; then
24424 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
24425 | sed -e '/myfoosect/!d' -e N`
24426 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
24427 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
24428 gcc_cv_ld_ro_rw_mix=read-only
24429 else
24430 gcc_cv_ld_ro_rw_mix=read-write
24435 rm -f conftest.* conftest[123].*
24437 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
24439 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
24442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
24443 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
24445 # Check whether --enable-initfini-array was given.
24446 if test "${enable_initfini_array+set}" = set; then :
24447 enableval=$enable_initfini_array;
24448 else
24450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
24451 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
24452 if ${gcc_cv_initfini_array+:} false; then :
24453 $as_echo_n "(cached) " >&6
24454 else
24455 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
24456 case "${target}" in
24457 ia64-*)
24458 if test "$cross_compiling" = yes; then :
24459 gcc_cv_initfini_array=no
24460 else
24461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24462 /* end confdefs.h. */
24464 #ifndef __ELF__
24465 #error Not an ELF OS
24466 #endif
24467 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
24468 if it can be used. */
24469 static int x = -1;
24470 int main (void) { return x; }
24471 int foo (void) { x = 0; }
24472 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
24474 _ACEOF
24475 if ac_fn_cxx_try_run "$LINENO"; then :
24476 gcc_cv_initfini_array=yes
24477 else
24478 gcc_cv_initfini_array=no
24480 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24481 conftest.$ac_objext conftest.beam conftest.$ac_ext
24485 gcc_cv_initfini_array=no
24486 if test $in_tree_ld = yes ; then
24487 if test "$gcc_cv_gld_major_version" -eq 2 \
24488 -a "$gcc_cv_gld_minor_version" -ge 22 \
24489 -o "$gcc_cv_gld_major_version" -gt 2 \
24490 && test $in_tree_ld_is_elf = yes; then
24491 gcc_cv_initfini_array=yes
24493 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
24494 case $target:$gas in
24495 *:yes)
24496 sh_flags='"a"'
24497 sh_type='%progbits'
24499 i?86-*-solaris2*:no | x86_64-*-solaris2*:no)
24500 sh_flags='"a"'
24501 sh_type='@progbits'
24503 sparc*-*-solaris2*:no)
24504 sh_flags='#alloc'
24505 sh_type='#progbits'
24506 sh_quote='"'
24508 esac
24509 case "$target:$gnu_ld" in
24510 *:yes)
24511 cat > conftest.s <<EOF
24512 .section .dtors,$sh_flags,$sh_type
24513 .balign 4
24514 .byte 'A', 'A', 'A', 'A'
24515 .section .ctors,$sh_flags,$sh_type
24516 .balign 4
24517 .byte 'B', 'B', 'B', 'B'
24518 .section .fini_array.65530,$sh_flags,$sh_type
24519 .balign 4
24520 .byte 'C', 'C', 'C', 'C'
24521 .section .init_array.65530,$sh_flags,$sh_type
24522 .balign 4
24523 .byte 'D', 'D', 'D', 'D'
24524 .section .dtors.64528,$sh_flags,$sh_type
24525 .balign 4
24526 .byte 'E', 'E', 'E', 'E'
24527 .section .ctors.64528,$sh_flags,$sh_type
24528 .balign 4
24529 .byte 'F', 'F', 'F', 'F'
24530 .section .fini_array.01005,$sh_flags,$sh_type
24531 .balign 4
24532 .byte 'G', 'G', 'G', 'G'
24533 .section .init_array.01005,$sh_flags,$sh_type
24534 .balign 4
24535 .byte 'H', 'H', 'H', 'H'
24536 .text
24537 .globl _start
24538 _start:
24540 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
24541 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
24542 && $gcc_cv_objdump -s -j .init_array conftest \
24543 | grep HHHHFFFFDDDDBBBB > /dev/null 2>&1 \
24544 && $gcc_cv_objdump -s -j .fini_array conftest \
24545 | grep GGGGEEEECCCCAAAA > /dev/null 2>&1; then
24546 gcc_cv_initfini_array=yes
24549 *-*-solaris2*:no)
24550 # When Solaris ld added constructor priority support, it was
24551 # decided to only handle .init_array.N/.fini_array.N since
24552 # there was no need for backwards compatibility with
24553 # .ctors.N/.dtors.N. .ctors/.dtors remain as separate
24554 # sections with correct execution order resp. to
24555 # .init_array/.fini_array, while gld merges them into
24556 # .init_array/.fini_array.
24557 cat > conftest.s <<EOF
24558 .section $sh_quote.fini_array.65530$sh_quote,$sh_flags,$sh_type
24559 .align 4
24560 .byte 'C', 'C', 'C', 'C', 'C', 'C', 'C', 'C'
24561 .section $sh_quote.init_array.65530$sh_quote,$sh_flags,$sh_type
24562 .align 4
24563 .byte 'D', 'D', 'D', 'D', 'D', 'D', 'D', 'D'
24564 .section $sh_quote.fini_array.01005$sh_quote,$sh_flags,$sh_type
24565 .align 4
24566 .byte 'G', 'G', 'G', 'G', 'G', 'G', 'G', 'G'
24567 .section $sh_quote.init_array.01005$sh_quote,$sh_flags,$sh_type
24568 .align 4
24569 .byte 'H', 'H', 'H', 'H', 'H', 'H', 'H', 'H'
24570 .text
24571 .globl _start
24572 _start:
24574 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
24575 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
24576 && $gcc_cv_objdump -s -j .init_array conftest \
24577 | grep HHHHHHHHDDDDDDDD > /dev/null 2>&1 \
24578 && $gcc_cv_objdump -s -j .fini_array conftest \
24579 | grep GGGGGGGGCCCCCCCC > /dev/null 2>&1; then
24580 gcc_cv_initfini_array=yes
24583 esac
24584 rm -f conftest conftest.*
24586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24587 /* end confdefs.h. */
24589 #ifndef __ELF__
24590 # error Not an ELF OS
24591 #endif
24592 #include <stdlib.h>
24593 #if defined __GLIBC_PREREQ
24594 # if __GLIBC_PREREQ (2, 4)
24595 # else
24596 # error GLIBC 2.4 required
24597 # endif
24598 #else
24599 # if defined __sun__ && defined __svr4__
24600 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
24601 # else
24602 # error The C library not known to support .init_array/.fini_array
24603 # endif
24604 #endif
24606 _ACEOF
24607 if ac_fn_cxx_try_cpp "$LINENO"; then :
24609 else
24610 gcc_cv_initfini_array=no
24612 rm -f conftest.err conftest.i conftest.$ac_ext;;
24613 esac
24614 else
24615 case "${target}" in
24616 aarch64*-linux-gnu*)
24617 # AArch64 postdates glibc support for .init_array/.fini_array,
24618 # so we don't need the preprocessor test above.
24619 gcc_cv_initfini_array=yes
24623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
24624 $as_echo_n "checking cross compile... guessing... " >&6; }
24625 gcc_cv_initfini_array=no
24627 esac
24630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
24631 $as_echo "$gcc_cv_initfini_array" >&6; }
24632 enable_initfini_array=$gcc_cv_initfini_array
24637 cat >>confdefs.h <<_ACEOF
24638 #define HAVE_INITFINI_ARRAY_SUPPORT `if test $enable_initfini_array = yes; then echo 1; else echo 0; fi`
24639 _ACEOF
24643 # Check if we have .[us]leb128, and support symbol arithmetic with it.
24644 # Older versions of GAS and some non-GNU assemblers, have a bugs handling
24645 # these directives, even when they appear to accept them.
24646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
24647 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
24648 if ${gcc_cv_as_leb128+:} false; then :
24649 $as_echo_n "(cached) " >&6
24650 else
24651 gcc_cv_as_leb128=no
24652 if test x$gcc_cv_as != x; then
24653 $as_echo ' .data
24654 .uleb128 L2 - L1
24656 .uleb128 1280
24657 .sleb128 -1010
24659 .uleb128 0x8000000000000000
24660 ' > conftest.s
24661 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24662 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24663 (eval $ac_try) 2>&5
24664 ac_status=$?
24665 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24666 test $ac_status = 0; }; }
24667 then
24669 if test "x$gcc_cv_objdump" != x; then
24670 if $gcc_cv_objdump -s conftest.o 2>/dev/null \
24671 | grep '04800a8e 78808080 80808080 808001' >/dev/null; then
24672 gcc_cv_as_leb128=yes
24674 elif test "x$gcc_cv_otool" != x; then
24675 if $gcc_cv_otool -d conftest.o 2>/dev/null \
24676 | grep '04 80 0a 8e 78 80 80 80 80 80 80 80 80 80 01' >/dev/null; then
24677 gcc_cv_as_leb128=yes
24679 else
24680 # play safe, assume the assembler is broken.
24684 else
24685 echo "configure: failed program was" >&5
24686 cat conftest.s >&5
24688 rm -f conftest.o conftest.s
24691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
24692 $as_echo "$gcc_cv_as_leb128" >&6; }
24693 if test $gcc_cv_as_leb128 = yes; then
24695 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
24698 if test $gcc_cv_as_leb128 != yes; then
24700 $as_echo "#define HAVE_AS_LEB128 0" >>confdefs.h
24704 # Determine if an .eh_frame section is read-only.
24705 gcc_fn_eh_frame_ro () {
24706 $gcc_cv_as $1 -o conftest.o conftest.s > /dev/null 2>&1 && \
24707 $gcc_cv_objdump -h conftest.o 2>/dev/null | \
24708 sed -e '/.eh_frame/!d' -e N | grep READONLY > /dev/null
24711 # Check if we have assembler support for unwind directives.
24712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
24713 $as_echo_n "checking assembler for cfi directives... " >&6; }
24714 if ${gcc_cv_as_cfi_directive+:} false; then :
24715 $as_echo_n "(cached) " >&6
24716 else
24717 gcc_cv_as_cfi_directive=no
24718 if test x$gcc_cv_as != x; then
24719 $as_echo ' .text
24720 .cfi_startproc
24721 .cfi_offset 0, 0
24722 .cfi_same_value 1
24723 .cfi_def_cfa 1, 2
24724 .cfi_escape 1, 2, 3, 4, 5
24725 .cfi_endproc' > conftest.s
24726 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24727 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24728 (eval $ac_try) 2>&5
24729 ac_status=$?
24730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24731 test $ac_status = 0; }; }
24732 then
24733 case "$target" in
24734 *-*-solaris*)
24735 # If the linker used on Solaris (like Sun ld) isn't capable of merging
24736 # read-only and read-write sections, we need to make sure that the
24737 # assembler used emits read-write .eh_frame sections.
24738 if test "x$gcc_cv_ld_ro_rw_mix" = xread-write; then
24739 gcc_cv_as_cfi_directive=yes
24740 elif test "x$gcc_cv_objdump" = x; then
24741 # No objdump, err on the side of caution.
24742 gcc_cv_as_cfi_directive=no
24743 else
24744 if test x$gas = xyes; then
24745 as_32_opt="--32"
24746 as_64_opt="--64"
24747 else
24748 as_32_opt="-m32"
24749 as_64_opt="-m64"
24751 case "$target" in
24752 sparc*-*-solaris2.*)
24753 # On Solaris/SPARC, .eh_frame sections should always be read-write.
24754 if gcc_fn_eh_frame_ro $as_32_opt \
24755 || gcc_fn_eh_frame_ro $as_64_opt; then
24756 gcc_cv_as_cfi_directive=no
24757 else
24758 gcc_cv_as_cfi_directive=yes
24761 i?86-*-solaris2.* | x86_64-*-solaris2.*)
24762 # On Solaris/x86, make sure that GCC and assembler agree on using
24763 # read-only .eh_frame sections for 64-bit.
24764 if gcc_fn_eh_frame_ro $as_32_opt; then
24765 gcc_cv_as_cfi_directive=no
24766 elif gcc_fn_eh_frame_ro $as_64_opt; then
24767 gcc_cv_as_cfi_directive=yes
24768 else
24769 gcc_cv_as_cfi_directive=no
24772 esac
24775 *-*-*)
24776 gcc_cv_as_cfi_directive=yes
24778 esac
24779 else
24780 echo "configure: failed program was" >&5
24781 cat conftest.s >&5
24783 rm -f conftest.o conftest.s
24786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
24787 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
24790 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then
24791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
24792 $as_echo_n "checking assembler for working cfi advance... " >&6; }
24793 if ${gcc_cv_as_cfi_advance_working+:} false; then :
24794 $as_echo_n "(cached) " >&6
24795 else
24796 gcc_cv_as_cfi_advance_working=no
24797 if test x$gcc_cv_as != x; then
24798 $as_echo ' .text
24799 .cfi_startproc
24800 .cfi_adjust_cfa_offset 64
24801 .skip 75040, 0
24802 .cfi_adjust_cfa_offset 128
24803 .cfi_endproc' > conftest.s
24804 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24805 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24806 (eval $ac_try) 2>&5
24807 ac_status=$?
24808 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24809 test $ac_status = 0; }; }
24810 then
24812 if $gcc_cv_objdump -Wf conftest.o 2>/dev/null \
24813 | grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev/null; then
24814 gcc_cv_as_cfi_advance_working=yes
24817 else
24818 echo "configure: failed program was" >&5
24819 cat conftest.s >&5
24821 rm -f conftest.o conftest.s
24824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
24825 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
24828 else
24829 # no objdump, err on the side of caution
24830 gcc_cv_as_cfi_advance_working=no
24834 cat >>confdefs.h <<_ACEOF
24835 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
24836 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
24837 _ACEOF
24841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
24842 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
24843 if ${gcc_cv_as_cfi_personality_directive+:} false; then :
24844 $as_echo_n "(cached) " >&6
24845 else
24846 gcc_cv_as_cfi_personality_directive=no
24847 if test x$gcc_cv_as != x; then
24848 $as_echo ' .text
24849 .cfi_startproc
24850 .cfi_personality 0, symbol
24851 .cfi_endproc' > conftest.s
24852 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24853 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24854 (eval $ac_try) 2>&5
24855 ac_status=$?
24856 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24857 test $ac_status = 0; }; }
24858 then
24859 gcc_cv_as_cfi_personality_directive=yes
24860 else
24861 echo "configure: failed program was" >&5
24862 cat conftest.s >&5
24864 rm -f conftest.o conftest.s
24867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
24868 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
24872 cat >>confdefs.h <<_ACEOF
24873 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes; then echo 1; else echo 0; fi`
24874 _ACEOF
24877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
24878 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
24879 if ${gcc_cv_as_cfi_sections_directive+:} false; then :
24880 $as_echo_n "(cached) " >&6
24881 else
24882 gcc_cv_as_cfi_sections_directive=no
24883 if test x$gcc_cv_as != x; then
24884 $as_echo ' .text
24885 .cfi_sections .debug_frame, .eh_frame
24886 .cfi_startproc
24887 .cfi_endproc' > conftest.s
24888 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24889 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24890 (eval $ac_try) 2>&5
24891 ac_status=$?
24892 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24893 test $ac_status = 0; }; }
24894 then
24895 case $target_os in
24896 win32 | pe | cygwin* | mingw32*)
24897 # Need to check that we generated the correct relocation for the
24898 # .debug_frame section. This was fixed for binutils 2.21.
24899 gcc_cv_as_cfi_sections_directive=no
24900 if test "x$gcc_cv_objdump" != x; then
24901 if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
24902 grep -i secrel > /dev/null; then
24903 gcc_cv_as_cfi_sections_directive=yes
24908 gcc_cv_as_cfi_sections_directive=yes
24910 esac
24911 else
24912 echo "configure: failed program was" >&5
24913 cat conftest.s >&5
24915 rm -f conftest.o conftest.s
24918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
24919 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
24924 cat >>confdefs.h <<_ACEOF
24925 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes; then echo 1; else echo 0; fi`
24926 _ACEOF
24929 # GAS versions up to and including 2.11.0 may mis-optimize
24930 # .eh_frame data.
24931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
24932 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
24933 if ${gcc_cv_as_eh_frame+:} false; then :
24934 $as_echo_n "(cached) " >&6
24935 else
24936 gcc_cv_as_eh_frame=no
24937 if test x$gcc_cv_as != x; then
24938 $as_echo ' .text
24939 .LFB1:
24940 .4byte 0
24941 .L1:
24942 .4byte 0
24943 .LFE1:
24944 .section .eh_frame,"aw",@progbits
24945 __FRAME_BEGIN__:
24946 .4byte .LECIE1-.LSCIE1
24947 .LSCIE1:
24948 .4byte 0x0
24949 .byte 0x1
24950 .ascii "z\0"
24951 .byte 0x1
24952 .byte 0x78
24953 .byte 0x1a
24954 .byte 0x0
24955 .byte 0x4
24956 .4byte 1
24957 .p2align 1
24958 .LECIE1:
24959 .LSFDE1:
24960 .4byte .LEFDE1-.LASFDE1
24961 .LASFDE1:
24962 .4byte .LASFDE1-__FRAME_BEGIN__
24963 .4byte .LFB1
24964 .4byte .LFE1-.LFB1
24965 .byte 0x4
24966 .4byte .LFE1-.LFB1
24967 .byte 0x4
24968 .4byte .L1-.LFB1
24969 .LEFDE1:' > conftest.s
24970 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24971 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24972 (eval $ac_try) 2>&5
24973 ac_status=$?
24974 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24975 test $ac_status = 0; }; }
24976 then
24977 cat > conftest.lit <<EOF
24978 0000 10000000 00000000 017a0001 781a0004 .........z..x...
24979 0010 01000000 12000000 18000000 00000000 ................
24980 0020 08000000 04080000 0044 .........D
24982 cat > conftest.big <<EOF
24983 0000 00000010 00000000 017a0001 781a0004 .........z..x...
24984 0010 00000001 00000012 00000018 00000000 ................
24985 0020 00000008 04000000 0844 .........D
24987 # If the assembler didn't choke, and we can objdump,
24988 # and we got the correct data, then succeed.
24989 # The text in the here-document typically retains its unix-style line
24990 # endings, while the output of objdump will use host line endings.
24991 # Therefore, use diff -b for the comparisons.
24992 if test x$gcc_cv_objdump != x \
24993 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
24994 | tail -3 > conftest.got \
24995 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
24996 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
24997 then
24998 gcc_cv_as_eh_frame=yes
24999 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
25000 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25001 (eval $ac_try) 2>&5
25002 ac_status=$?
25003 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25004 test $ac_status = 0; }; }; then
25005 gcc_cv_as_eh_frame=buggy
25006 else
25007 # Uh oh, what do we do now?
25008 gcc_cv_as_eh_frame=no
25010 else
25011 echo "configure: failed program was" >&5
25012 cat conftest.s >&5
25014 rm -f conftest.o conftest.s
25017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
25018 $as_echo "$gcc_cv_as_eh_frame" >&6; }
25022 if test $gcc_cv_as_eh_frame = buggy; then
25024 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
25028 # Test if the assembler supports the section flag 'e' or #exclude for
25029 # specifying an excluded section.
25030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section exclude flag" >&5
25031 $as_echo_n "checking assembler for section exclude flag... " >&6; }
25032 if ${gcc_cv_as_section_exclude_e+:} false; then :
25033 $as_echo_n "(cached) " >&6
25034 else
25035 gcc_cv_as_section_exclude_e=no
25036 if test x$gcc_cv_as != x; then
25037 $as_echo '.section foo1,"e"
25038 .byte 0,0,0,0' > conftest.s
25039 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25040 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25041 (eval $ac_try) 2>&5
25042 ac_status=$?
25043 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25044 test $ac_status = 0; }; }
25045 then
25046 gcc_cv_as_section_exclude_e=yes
25047 else
25048 echo "configure: failed program was" >&5
25049 cat conftest.s >&5
25051 rm -f conftest.o conftest.s
25054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_exclude_e" >&5
25055 $as_echo "$gcc_cv_as_section_exclude_e" >&6; }
25058 if test $gcc_cv_as_section_exclude_e = no; then
25059 case "${target}" in
25060 # Solaris as uses #exclude instead.
25061 *-*-solaris2*)
25062 case "${target}" in
25063 sparc*-*-solaris2*)
25064 conftest_s='.section "foo1", #exclude'
25066 i?86-*-solaris2* | x86_64-*-solaris2*)
25067 conftest_s='.section foo1, #exclude'
25069 esac
25071 esac
25072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section exclude flag" >&5
25073 $as_echo_n "checking assembler for section exclude flag... " >&6; }
25074 if ${gcc_cv_as_section_exclude_hash+:} false; then :
25075 $as_echo_n "(cached) " >&6
25076 else
25077 gcc_cv_as_section_exclude_hash=no
25078 if test x$gcc_cv_as != x; then
25079 $as_echo "$conftest_s
25080 .byte 0,0,0,0" > conftest.s
25081 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25082 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25083 (eval $ac_try) 2>&5
25084 ac_status=$?
25085 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25086 test $ac_status = 0; }; }
25087 then
25088 gcc_cv_as_section_exclude_hash=yes
25089 else
25090 echo "configure: failed program was" >&5
25091 cat conftest.s >&5
25093 rm -f conftest.o conftest.s
25096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_exclude_hash" >&5
25097 $as_echo "$gcc_cv_as_section_exclude_hash" >&6; }
25102 cat >>confdefs.h <<_ACEOF
25103 #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`
25104 _ACEOF
25107 # Test if the assembler supports the section flag 'R' for specifying
25108 # section with SHF_GNU_RETAIN.
25109 case "${target}" in
25110 # Solaris may use GNU assembler with Solairs ld. Even if GNU
25111 # assembler supports the section flag 'R', it doesn't mean that
25112 # Solairs ld supports it.
25113 *-*-solaris2*)
25114 gcc_cv_as_shf_gnu_retain=no
25117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section 'R' flag" >&5
25118 $as_echo_n "checking assembler for section 'R' flag... " >&6; }
25119 if ${gcc_cv_as_shf_gnu_retain+:} false; then :
25120 $as_echo_n "(cached) " >&6
25121 else
25122 gcc_cv_as_shf_gnu_retain=no
25123 if test x$gcc_cv_as != x; then
25124 $as_echo '.section .foo,"awR",%progbits
25125 .byte 0' > conftest.s
25126 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25127 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25128 (eval $ac_try) 2>&5
25129 ac_status=$?
25130 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25131 test $ac_status = 0; }; }
25132 then
25133 gcc_cv_as_shf_gnu_retain=yes
25134 else
25135 echo "configure: failed program was" >&5
25136 cat conftest.s >&5
25138 rm -f conftest.o conftest.s
25141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_gnu_retain" >&5
25142 $as_echo "$gcc_cv_as_shf_gnu_retain" >&6; }
25146 esac
25148 cat >>confdefs.h <<_ACEOF
25149 #define HAVE_GAS_SHF_GNU_RETAIN `if test $gcc_cv_as_shf_gnu_retain = yes; then echo 1; else echo 0; fi`
25150 _ACEOF
25153 # Test if the assembler supports the section flag 'o' for specifying
25154 # section with link-order.
25155 case "${target}" in
25156 # Solaris may use GNU assembler with Solairs ld. Even if GNU
25157 # assembler supports the section flag 'o', it doesn't mean that
25158 # Solairs ld supports it.
25159 *-*-solaris2*)
25160 gcc_cv_as_section_link_order=no
25163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section 'o' flag" >&5
25164 $as_echo_n "checking assembler for section 'o' flag... " >&6; }
25165 if ${gcc_cv_as_section_link_order+:} false; then :
25166 $as_echo_n "(cached) " >&6
25167 else
25168 gcc_cv_as_section_link_order=no
25169 if test x$gcc_cv_as != x; then
25170 $as_echo '.section .foo,"a"
25171 .byte 0
25172 .section __patchable_function_entries,"awo",%progbits,.foo
25173 .byte 0' > conftest.s
25174 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25175 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25176 (eval $ac_try) 2>&5
25177 ac_status=$?
25178 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25179 test $ac_status = 0; }; }
25180 then
25181 gcc_cv_as_section_link_order=yes
25182 else
25183 echo "configure: failed program was" >&5
25184 cat conftest.s >&5
25186 rm -f conftest.o conftest.s
25189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_link_order" >&5
25190 $as_echo "$gcc_cv_as_section_link_order" >&6; }
25194 esac
25196 cat >>confdefs.h <<_ACEOF
25197 #define HAVE_GAS_SECTION_LINK_ORDER `if test $gcc_cv_as_section_link_order = yes; then echo 1; else echo 0; fi`
25198 _ACEOF
25201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
25202 $as_echo_n "checking assembler for section merging support... " >&6; }
25203 if ${gcc_cv_as_shf_merge+:} false; then :
25204 $as_echo_n "(cached) " >&6
25205 else
25206 gcc_cv_as_shf_merge=no
25207 if test x$gcc_cv_as != x; then
25208 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
25209 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25210 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25211 (eval $ac_try) 2>&5
25212 ac_status=$?
25213 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25214 test $ac_status = 0; }; }
25215 then
25216 gcc_cv_as_shf_merge=yes
25217 else
25218 echo "configure: failed program was" >&5
25219 cat conftest.s >&5
25221 rm -f conftest.o conftest.s
25224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
25225 $as_echo "$gcc_cv_as_shf_merge" >&6; }
25228 if test $gcc_cv_as_shf_merge = no; then
25229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
25230 $as_echo_n "checking assembler for section merging support... " >&6; }
25231 if ${gcc_cv_as_shf_merge+:} false; then :
25232 $as_echo_n "(cached) " >&6
25233 else
25234 gcc_cv_as_shf_merge=no
25235 if test x$gcc_cv_as != x; then
25236 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
25237 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25238 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25239 (eval $ac_try) 2>&5
25240 ac_status=$?
25241 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25242 test $ac_status = 0; }; }
25243 then
25244 gcc_cv_as_shf_merge=yes
25245 else
25246 echo "configure: failed program was" >&5
25247 cat conftest.s >&5
25249 rm -f conftest.o conftest.s
25252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
25253 $as_echo "$gcc_cv_as_shf_merge" >&6; }
25258 cat >>confdefs.h <<_ACEOF
25259 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
25260 _ACEOF
25263 gcc_cv_ld_aligned_shf_merge=yes
25264 case "$target" in
25265 # SHF_MERGE support is broken in Solaris ld up to Solaris 11.3/SPARC for
25266 # alignment > 1.
25267 sparc*-*-solaris2.11*)
25268 if test x"$gnu_ld" = xno \
25269 && test "$ld_vers_major" -lt 2 && test "$ld_vers_minor" -lt 3159; then
25270 gcc_cv_ld_aligned_shf_merge=no
25273 esac
25275 cat >>confdefs.h <<_ACEOF
25276 #define HAVE_LD_ALIGNED_SHF_MERGE `if test $gcc_cv_ld_aligned_shf_merge = yes; then echo 1; else echo 0; fi`
25277 _ACEOF
25280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
25281 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
25282 if ${gcc_cv_as_comdat_group+:} false; then :
25283 $as_echo_n "(cached) " >&6
25284 else
25285 gcc_cv_as_comdat_group=no
25286 if test x$gcc_cv_as != x; then
25287 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
25288 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25289 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25290 (eval $ac_try) 2>&5
25291 ac_status=$?
25292 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25293 test $ac_status = 0; }; }
25294 then
25295 gcc_cv_as_comdat_group=yes
25296 else
25297 echo "configure: failed program was" >&5
25298 cat conftest.s >&5
25300 rm -f conftest.o conftest.s
25303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
25304 $as_echo "$gcc_cv_as_comdat_group" >&6; }
25307 if test $gcc_cv_as_comdat_group = yes; then
25308 gcc_cv_as_comdat_group_percent=no
25309 gcc_cv_as_comdat_group_group=no
25310 else
25311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
25312 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
25313 if ${gcc_cv_as_comdat_group_percent+:} false; then :
25314 $as_echo_n "(cached) " >&6
25315 else
25316 gcc_cv_as_comdat_group_percent=no
25317 if test x$gcc_cv_as != x; then
25318 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
25319 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25320 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25321 (eval $ac_try) 2>&5
25322 ac_status=$?
25323 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25324 test $ac_status = 0; }; }
25325 then
25326 gcc_cv_as_comdat_group_percent=yes
25327 else
25328 echo "configure: failed program was" >&5
25329 cat conftest.s >&5
25331 rm -f conftest.o conftest.s
25334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
25335 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
25338 if test $gcc_cv_as_comdat_group_percent = yes; then
25339 gcc_cv_as_comdat_group_group=no
25340 else
25341 case "${target}" in
25342 # Sun as uses a completely different syntax.
25343 *-*-solaris2*)
25344 case "${target}" in
25345 sparc*-*-solaris2*)
25346 conftest_s='
25347 .group foo,".text%foo",#comdat
25348 .section ".text%foo", #alloc,#execinstr,#progbits
25349 .globl foo
25350 foo:
25353 i?86-*-solaris2* | x86_64-*-solaris2*)
25354 conftest_s='
25355 .group foo,.text%foo,#comdat
25356 .section .text%foo, "ax", @progbits
25357 .globl foo
25358 foo:
25361 esac
25362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
25363 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
25364 if ${gcc_cv_as_comdat_group_group+:} false; then :
25365 $as_echo_n "(cached) " >&6
25366 else
25367 gcc_cv_as_comdat_group_group=no
25368 if test x$gcc_cv_as != x; then
25369 $as_echo "$conftest_s" > conftest.s
25370 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25371 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25372 (eval $ac_try) 2>&5
25373 ac_status=$?
25374 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25375 test $ac_status = 0; }; }
25376 then
25377 gcc_cv_as_comdat_group_group=yes
25378 else
25379 echo "configure: failed program was" >&5
25380 cat conftest.s >&5
25382 rm -f conftest.o conftest.s
25385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
25386 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
25390 esac
25391 if test -z "${gcc_cv_as_comdat_group_group+set}"; then
25392 gcc_cv_as_comdat_group_group=no
25396 if test x"$ld_is_gold" = xyes; then
25397 comdat_group=yes
25398 elif test x"$ld_is_mold" = xyes; then
25399 comdat_group=yes
25400 elif test $in_tree_ld = yes ; then
25401 comdat_group=no
25402 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 \
25403 && test $in_tree_ld_is_elf = yes; then
25404 comdat_group=yes
25406 elif echo "$ld_ver" | grep GNU > /dev/null; then
25407 comdat_group=yes
25408 if test 0"$ld_date" -lt 20050308; then
25409 if test -n "$ld_date"; then
25410 # If there was date string, but was earlier than 2005-03-08, fail
25411 comdat_group=no
25412 elif test "$ld_vers_major" -lt 2; then
25413 comdat_group=no
25414 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
25415 comdat_group=no
25418 else
25419 case "${target}" in
25420 *-*-solaris2.1[1-9]*)
25421 comdat_group=no
25422 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
25423 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
25424 # version 1.688.
25426 # If using Sun as for COMDAT group as emitted by GCC, one needs at
25427 # least ld version 1.2267.
25428 if test "$ld_vers_major" -gt 1; then
25429 comdat_group=yes
25430 elif test "x$gas_flag" = xyes && test "$ld_vers_minor" -ge 1688; then
25431 comdat_group=yes
25432 elif test "$ld_vers_minor" -ge 2267; then
25433 comdat_group=yes
25437 # Assume linkers other than GNU ld don't support COMDAT group.
25438 comdat_group=no
25440 esac
25442 # Allow overriding the automatic COMDAT group tests above.
25443 # Check whether --enable-comdat was given.
25444 if test "${enable_comdat+set}" = set; then :
25445 enableval=$enable_comdat; comdat_group="$enable_comdat"
25448 if test $comdat_group = no; then
25449 gcc_cv_as_comdat_group=no
25450 gcc_cv_as_comdat_group_percent=no
25451 gcc_cv_as_comdat_group_group=no
25454 cat >>confdefs.h <<_ACEOF
25455 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
25456 || test $gcc_cv_as_comdat_group_percent = yes \
25457 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
25458 _ACEOF
25461 # Restrict this test to Solaris/x86: other targets define this statically.
25462 case "${target}" in
25463 i?86-*-solaris2* | x86_64-*-solaris2*)
25464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for hidden thunks in linkonce sections" >&5
25465 $as_echo_n "checking support for hidden thunks in linkonce sections... " >&6; }
25466 if test $in_tree_ld = yes || echo "$ld_ver" | grep GNU > /dev/null; then
25467 hidden_linkonce=yes
25468 else
25469 case "${target}" in
25470 # Full support for hidden thunks in linkonce sections only appeared in
25471 # Solaris 11/OpenSolaris.
25472 *-*-solaris2.1[1-9]*)
25473 hidden_linkonce=yes
25476 hidden_linkonce=no
25478 esac
25480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hidden_linkonce" >&5
25481 $as_echo "$hidden_linkonce" >&6; }
25483 cat >>confdefs.h <<_ACEOF
25484 #define USE_HIDDEN_LINKONCE `if test $hidden_linkonce = yes; then echo 1; else echo 0; fi`
25485 _ACEOF
25488 esac
25490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table is_stmt support" >&5
25491 $as_echo_n "checking assembler for line table is_stmt support... " >&6; }
25492 if ${gcc_cv_as_is_stmt+:} false; then :
25493 $as_echo_n "(cached) " >&6
25494 else
25495 gcc_cv_as_is_stmt=no
25496 if test x$gcc_cv_as != x; then
25497 $as_echo ' .text
25498 .file 1 "conf.c"
25499 .loc 1 1 0 is_stmt 1' > conftest.s
25500 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25501 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25502 (eval $ac_try) 2>&5
25503 ac_status=$?
25504 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25505 test $ac_status = 0; }; }
25506 then
25507 gcc_cv_as_is_stmt=yes
25508 else
25509 echo "configure: failed program was" >&5
25510 cat conftest.s >&5
25512 rm -f conftest.o conftest.s
25515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_is_stmt" >&5
25516 $as_echo "$gcc_cv_as_is_stmt" >&6; }
25517 if test $gcc_cv_as_is_stmt = yes; then
25519 $as_echo "#define HAVE_GAS_LOC_STMT 1" >>confdefs.h
25524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
25525 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
25526 if ${gcc_cv_as_discriminator+:} false; then :
25527 $as_echo_n "(cached) " >&6
25528 else
25529 gcc_cv_as_discriminator=no
25530 if test x$gcc_cv_as != x; then
25531 $as_echo ' .text
25532 .file 1 "conf.c"
25533 .loc 1 1 0 discriminator 1' > conftest.s
25534 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25535 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25536 (eval $ac_try) 2>&5
25537 ac_status=$?
25538 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25539 test $ac_status = 0; }; }
25540 then
25541 gcc_cv_as_discriminator=yes
25542 else
25543 echo "configure: failed program was" >&5
25544 cat conftest.s >&5
25546 rm -f conftest.o conftest.s
25549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
25550 $as_echo "$gcc_cv_as_discriminator" >&6; }
25551 if test $gcc_cv_as_discriminator = yes; then
25553 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
25558 # Catch the newlib flag of the same name so we can gate GCC features on it.
25559 # Check whether --enable-newlib-nano-formatted-io was given.
25560 if test "${enable_newlib_nano_formatted_io+set}" = set; then :
25561 enableval=$enable_newlib_nano_formatted_io; case "${enableval}" in
25562 yes|no)
25565 as_fn_error $? "unknown newlib-nano-formatted-io setting $enableval" "$LINENO" 5
25567 esac
25571 # Thread-local storage - the check is heavily parameterized.
25572 conftest_s=
25573 tls_as_opt=
25574 case "$target" in
25575 alpha*-*-*)
25576 conftest_s='
25577 .section ".tdata","awT",@progbits
25578 foo: .long 25
25579 .text
25580 ldq $27,__tls_get_addr($29) !literal!1
25581 lda $16,foo($29) !tlsgd!1
25582 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
25583 ldq $27,__tls_get_addr($29) !literal!2
25584 lda $16,foo($29) !tlsldm!2
25585 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
25586 ldq $1,foo($29) !gotdtprel
25587 ldah $2,foo($29) !dtprelhi
25588 lda $3,foo($2) !dtprello
25589 lda $4,foo($29) !dtprel
25590 ldq $1,foo($29) !gottprel
25591 ldah $2,foo($29) !tprelhi
25592 lda $3,foo($2) !tprello
25593 lda $4,foo($29) !tprel'
25594 tls_as_opt=--fatal-warnings
25596 arc*-*-*)
25597 conftest_s='
25598 add_s r0,r0, @foo@tpoff'
25600 cris-*-*|crisv32-*-*)
25601 conftest_s='
25602 .section ".tdata","awT",@progbits
25603 x: .long 25
25604 .text
25605 move.d x:IE,$r10
25606 nop'
25607 tls_as_opt=--fatal-warnings
25609 frv*-*-*)
25610 conftest_s='
25611 .section ".tdata","awT",@progbits
25612 x: .long 25
25613 .text
25614 call #gettlsoff(x)'
25616 hppa*-*-linux*)
25617 conftest_s='
25618 t1: .reg %r20
25619 t2: .reg %r21
25620 gp: .reg %r19
25621 .section ".tdata","awT",@progbits
25622 foo: .long 25
25623 .text
25624 .align 4
25625 addil LT%foo-$tls_gdidx$,gp
25626 ldo RT%foo-$tls_gdidx$(%r1),%arg0
25627 b __tls_get_addr
25629 addil LT%foo-$tls_ldidx$,gp
25630 b __tls_get_addr
25631 ldo RT%foo-$tls_ldidx$(%r1),%arg0
25632 addil LR%foo-$tls_dtpoff$,%ret0
25633 ldo RR%foo-$tls_dtpoff$(%r1),%t1
25634 mfctl %cr27,%t1
25635 addil LT%foo-$tls_ieoff$,gp
25636 ldw RT%foo-$tls_ieoff$(%r1),%t2
25637 add %t1,%t2,%t3
25638 mfctl %cr27,%t1
25639 addil LR%foo-$tls_leoff$,%t1
25640 ldo RR%foo-$tls_leoff$(%r1),%t2'
25641 tls_as_opt=--fatal-warnings
25643 arm*-*-*)
25644 conftest_s='
25645 .section ".tdata","awT",%progbits
25646 foo: .long 25
25647 .text
25648 .word foo(gottpoff)
25649 .word foo(tpoff)
25650 .word foo(tlsgd)
25651 .word foo(tlsldm)
25652 .word foo(tlsldo)'
25654 i[34567]86-*-* | x86_64-*-*)
25655 case "$target" in
25656 i[34567]86-*-solaris2.* | x86_64-*-solaris2.*)
25657 on_solaris=yes
25660 on_solaris=no
25662 esac
25663 if test x$on_solaris = xyes && test x$gas_flag = xno; then
25664 conftest_s='
25665 .section .tdata,"awt",@progbits'
25666 tls_section_flag=t
25668 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
25670 else
25671 conftest_s='
25672 .section ".tdata","awT",@progbits'
25673 tls_section_flag=T
25674 tls_as_opt="--fatal-warnings"
25676 case "$target" in
25677 i[34567]86-*-*)
25678 if test x$on_solaris = xyes; then
25679 case $gas_flag in
25680 yes) tls_as_opt="$tls_as_opt --32" ;;
25681 esac
25683 conftest_s="$conftest_s
25684 foo: .long 25
25685 .text
25686 movl %gs:0, %eax
25687 leal foo@tlsgd(,%ebx,1), %eax
25688 leal foo@tlsldm(%ebx), %eax
25689 leal foo@dtpoff(%eax), %edx
25690 movl foo@gottpoff(%ebx), %eax
25691 subl foo@gottpoff(%ebx), %eax
25692 addl foo@gotntpoff(%ebx), %eax
25693 movl foo@indntpoff, %eax
25694 movl \$foo@tpoff, %eax
25695 subl \$foo@tpoff, %eax
25696 leal foo@ntpoff(%ecx), %eax"
25698 x86_64-*-*)
25699 if test x$on_solaris = xyes; then
25700 case $gas_flag in
25701 yes) tls_as_opt="$tls_as_opt --64" ;;
25702 no) tls_as_opt="$tls_as_opt -xarch=amd64" ;;
25703 esac
25705 conftest_s="$conftest_s
25706 foo: .long 25
25707 .text
25708 movq %fs:0, %rax
25709 leaq foo@tlsgd(%rip), %rdi
25710 leaq foo@tlsld(%rip), %rdi
25711 leaq foo@dtpoff(%rax), %rdx
25712 movq foo@gottpoff(%rip), %rax
25713 movq \$foo@tpoff, %rax"
25715 esac
25717 ia64-*-*)
25718 conftest_s='
25719 .section ".tdata","awT",@progbits
25720 foo: data8 25
25721 .text
25722 addl r16 = @ltoff(@dtpmod(foo#)), gp
25723 addl r17 = @ltoff(@dtprel(foo#)), gp
25724 addl r18 = @ltoff(@tprel(foo#)), gp
25725 addl r19 = @dtprel(foo#), gp
25726 adds r21 = @dtprel(foo#), r13
25727 movl r23 = @dtprel(foo#)
25728 addl r20 = @tprel(foo#), gp
25729 adds r22 = @tprel(foo#), r13
25730 movl r24 = @tprel(foo#)'
25731 tls_as_opt=--fatal-warnings
25733 loongarch*-*-*)
25734 conftest_s='
25735 .section .tdata,"awT",@progbits
25736 x: .word 2
25737 .text
25738 la.tls.gd $a0,x
25739 bl __tls_get_addr'
25740 tls_first_major=0
25741 tls_first_minor=0
25742 tls_as_opt='--fatal-warnings'
25744 microblaze*-*-*)
25745 conftest_s='
25746 .section .tdata,"awT",@progbits
25748 .word 2
25749 .text
25750 addik r5,r20,x@TLSGD
25751 addik r5,r20,x@TLSLDM'
25752 tls_as_opt='--fatal-warnings'
25754 mips*-*-*)
25755 conftest_s='
25756 .section .tdata,"awT",@progbits
25758 .word 2
25759 .text
25760 addiu $4, $28, %tlsgd(x)
25761 addiu $4, $28, %tlsldm(x)
25762 lui $4, %dtprel_hi(x)
25763 addiu $4, $4, %dtprel_lo(x)
25764 lw $4, %gottprel(x)($28)
25765 lui $4, %tprel_hi(x)
25766 addiu $4, $4, %tprel_lo(x)'
25767 tls_as_opt='-32 --fatal-warnings'
25769 m68k-*-*)
25770 conftest_s='
25771 .section .tdata,"awT",@progbits
25773 .word 2
25774 .text
25775 foo:
25776 move.l x@TLSGD(%a5),%a0
25777 move.l x@TLSLDM(%a5),%a0
25778 move.l x@TLSLDO(%a5),%a0
25779 move.l x@TLSIE(%a5),%a0
25780 move.l x@TLSLE(%a5),%a0'
25781 tls_as_opt='--fatal-warnings'
25783 nios2-*-*)
25784 conftest_s='
25785 .section ".tdata","awT",@progbits'
25786 tls_as_opt="--fatal-warnings"
25788 aarch64*-*-*)
25789 conftest_s='
25790 .section ".tdata","awT",%progbits
25791 foo: .long 25
25792 .text
25793 adrp x0, :tlsgd:x
25794 add x0, x0, #:tlsgd_lo12:x
25795 bl __tls_get_addr
25796 nop'
25797 tls_as_opt='--fatal-warnings'
25799 or1k*-*-*)
25800 conftest_s='
25801 .section ".tdata","awT",@progbits
25802 foo: .long 25
25803 .text
25804 l.movhi r3, tpoffha(foo)
25805 l.add r3, r3, r10
25806 l.lwz r4, tpofflo(foo)(r3)'
25807 tls_as_opt=--fatal-warnings
25809 powerpc-ibm-aix*)
25810 conftest_s='
25811 .extern __get_tpointer
25812 .toc
25813 LC..1:
25814 .tc a[TC],a[TL]@le
25815 .csect .text[PR]
25816 .tlstest:
25817 lwz 9,LC..1(2)
25818 bla __get_tpointer
25819 lwzx 3,9,3
25820 .globl a
25821 .csect a[TL],4
25823 .space 4'
25825 powerpc64*-*-*)
25826 conftest_s='
25827 .section ".tdata","awT",@progbits
25828 .align 3
25829 ld0: .space 8
25830 ld1: .space 8
25831 x1: .space 8
25832 x2: .space 8
25833 x3: .space 8
25834 .text
25835 addi 3,2,ld0@got@tlsgd
25836 bl .__tls_get_addr
25838 addi 3,2,ld1@toc
25839 bl .__tls_get_addr
25841 addi 3,2,x1@got@tlsld
25842 bl .__tls_get_addr
25844 addi 9,3,x1@dtprel
25845 bl .__tls_get_addr
25847 addis 9,3,x2@dtprel@ha
25848 addi 9,9,x2@dtprel@l
25849 bl .__tls_get_addr
25851 ld 9,x3@got@dtprel(2)
25852 add 9,9,3
25853 bl .__tls_get_addr
25854 nop'
25855 tls_as_opt="-a64 --fatal-warnings"
25857 powerpc*-*-*)
25858 conftest_s='
25859 .section ".tdata","awT",@progbits
25860 .align 2
25861 ld0: .space 4
25862 ld1: .space 4
25863 x1: .space 4
25864 x2: .space 4
25865 x3: .space 4
25866 .text
25867 addi 3,31,ld0@got@tlsgd
25868 bl __tls_get_addr
25869 addi 3,31,x1@got@tlsld
25870 bl __tls_get_addr
25871 addi 9,3,x1@dtprel
25872 addis 9,3,x2@dtprel@ha
25873 addi 9,9,x2@dtprel@l
25874 lwz 9,x3@got@tprel(31)
25875 add 9,9,x@tls
25876 addi 9,2,x1@tprel
25877 addis 9,2,x2@tprel@ha
25878 addi 9,9,x2@tprel@l'
25879 tls_as_opt="-a32 --fatal-warnings"
25881 riscv*-*-*)
25882 conftest_s='
25883 .section .tdata,"awT",@progbits
25884 x: .word 2
25885 .text
25886 la.tls.gd a0,x
25887 call __tls_get_addr'
25888 tls_as_opt='--fatal-warnings'
25890 s390-*-*)
25891 conftest_s='
25892 .section ".tdata","awT",@progbits
25893 foo: .long 25
25894 .text
25895 .long foo@TLSGD
25896 .long foo@TLSLDM
25897 .long foo@DTPOFF
25898 .long foo@NTPOFF
25899 .long foo@GOTNTPOFF
25900 .long foo@INDNTPOFF
25901 l %r1,foo@GOTNTPOFF(%r12)
25902 l %r1,0(%r1):tls_load:foo
25903 bas %r14,0(%r1,%r13):tls_gdcall:foo
25904 bas %r14,0(%r1,%r13):tls_ldcall:foo'
25905 tls_as_opt="-m31 --fatal-warnings"
25907 s390x-*-*)
25908 conftest_s='
25909 .section ".tdata","awT",@progbits
25910 foo: .long 25
25911 .text
25912 .quad foo@TLSGD
25913 .quad foo@TLSLDM
25914 .quad foo@DTPOFF
25915 .quad foo@NTPOFF
25916 .quad foo@GOTNTPOFF
25917 lg %r1,foo@GOTNTPOFF(%r12)
25918 larl %r1,foo@INDNTPOFF
25919 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
25920 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
25921 tls_as_opt="-m64 -Aesame --fatal-warnings"
25923 sh-*-* | sh[123456789lbe]*-*-*)
25924 conftest_s='
25925 .section ".tdata","awT",@progbits
25926 foo: .long 25
25927 .text
25928 .long foo@TLSGD
25929 .long foo@TLSLDM
25930 .long foo@DTPOFF
25931 .long foo@GOTTPOFF
25932 .long foo@TPOFF'
25933 tls_as_opt=--fatal-warnings
25935 sparc*-*-*)
25936 case "$target" in
25937 sparc*-sun-solaris2.*)
25938 on_solaris=yes
25941 on_solaris=no
25943 esac
25944 if test x$on_solaris = xyes && test x$gas_flag = xno; then
25945 conftest_s='
25946 .section ".tdata",#alloc,#write,#tls'
25947 else
25948 conftest_s='
25949 .section ".tdata","awT",@progbits'
25950 tls_as_opt="-32 --fatal-warnings"
25952 conftest_s="$conftest_s
25953 foo: .long 25
25954 .text
25955 sethi %tgd_hi22(foo), %o0
25956 add %o0, %tgd_lo10(foo), %o1
25957 add %l7, %o1, %o0, %tgd_add(foo)
25958 call __tls_get_addr, %tgd_call(foo)
25959 sethi %tldm_hi22(foo), %l1
25960 add %l1, %tldm_lo10(foo), %l2
25961 add %l7, %l2, %o0, %tldm_add(foo)
25962 call __tls_get_addr, %tldm_call(foo)
25963 sethi %tldo_hix22(foo), %l3
25964 xor %l3, %tldo_lox10(foo), %l4
25965 add %o0, %l4, %l5, %tldo_add(foo)
25966 sethi %tie_hi22(foo), %o3
25967 add %o3, %tie_lo10(foo), %o3
25968 ld [%l7 + %o3], %o2, %tie_ld(foo)
25969 add %g7, %o2, %o4, %tie_add(foo)
25970 sethi %tle_hix22(foo), %l1
25971 xor %l1, %tle_lox10(foo), %o5
25972 ld [%g7 + %o5], %o1"
25974 xtensa*-*-*)
25975 conftest_s='
25976 .section ".tdata","awT",@progbits
25977 foo: .long 25
25978 .text
25979 movi a8, foo@TLSFUNC
25980 movi a10, foo@TLSARG
25981 callx8.tls a8, foo@TLSCALL'
25983 esac
25984 set_have_as_tls=no
25985 if test "x$enable_tls" = xno ; then
25986 : # TLS explicitly disabled.
25987 elif test "x$enable_tls" = xyes ; then
25988 set_have_as_tls=yes # TLS explicitly enabled.
25989 elif test -z "$conftest_s"; then
25990 : # If we don't have a check, assume no support.
25991 else
25992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
25993 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
25994 if ${gcc_cv_as_tls+:} false; then :
25995 $as_echo_n "(cached) " >&6
25996 else
25997 gcc_cv_as_tls=no
25998 if test x$gcc_cv_as != x; then
25999 $as_echo "$conftest_s" > conftest.s
26000 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
26001 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26002 (eval $ac_try) 2>&5
26003 ac_status=$?
26004 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26005 test $ac_status = 0; }; }
26006 then
26007 gcc_cv_as_tls=yes
26008 else
26009 echo "configure: failed program was" >&5
26010 cat conftest.s >&5
26012 rm -f conftest.o conftest.s
26015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
26016 $as_echo "$gcc_cv_as_tls" >&6; }
26017 if test $gcc_cv_as_tls = yes; then
26018 set_have_as_tls=yes
26022 if test $set_have_as_tls = yes ; then
26024 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
26028 # Target-specific assembler checks.
26030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
26031 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
26032 gcc_cv_ld_static_dynamic=no
26033 gcc_cv_ld_static_option='-Bstatic'
26034 gcc_cv_ld_dynamic_option='-Bdynamic'
26035 if test $in_tree_ld = yes ; then
26036 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
26037 gcc_cv_ld_static_dynamic=yes
26039 elif test x$gcc_cv_ld != x; then
26040 # Check if linker supports -Bstatic/-Bdynamic option
26041 if $gcc_cv_ld --help 2>&1 | grep -- -Bstatic > /dev/null \
26042 && $gcc_cv_ld --help 2>&1 | grep -- -Bdynamic > /dev/null; then
26043 gcc_cv_ld_static_dynamic=yes
26044 else
26045 case "$target" in
26046 # AIX ld uses -b flags
26047 *-*-aix4.[23]* | *-*-aix[5-9]*)
26048 gcc_cv_ld_static_dynamic=yes
26049 gcc_cv_ld_static_option="-bstatic"
26050 gcc_cv_ld_dynamic_option="-bdynamic"
26052 # HP-UX ld uses -a flags to select between shared and archive.
26053 *-*-hpux*)
26054 if test x"$gnu_ld" = xno; then
26055 gcc_cv_ld_static_dynamic=yes
26056 gcc_cv_ld_static_option="-aarchive_shared"
26057 gcc_cv_ld_dynamic_option="-adefault"
26060 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
26061 *-*-solaris2*)
26062 gcc_cv_ld_static_dynamic=yes
26064 esac
26067 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
26069 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
26072 cat >>confdefs.h <<_ACEOF
26073 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
26074 _ACEOF
26077 cat >>confdefs.h <<_ACEOF
26078 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
26079 _ACEOF
26082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
26083 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
26085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --version-script option" >&5
26086 $as_echo_n "checking linker --version-script option... " >&6; }
26087 gcc_cv_ld_version_script=no
26088 ld_version_script_option=''
26089 if test $in_tree_ld = yes || test x"$gnu_ld" = xyes; then
26090 gcc_cv_ld_version_script=yes
26091 ld_version_script_option='--version-script'
26092 elif test x$gcc_cv_ld != x; then
26093 case "$target" in
26094 # Solaris 2 ld always supports -M. It also supports a subset of
26095 # --version-script since Solaris 11.4, but requires
26096 # -z gnu-version-script-compat to activate.
26097 *-*-solaris2*)
26098 gcc_cv_ld_version_script=yes
26099 ld_version_script_option='-M'
26101 esac
26103 # Don't AC_DEFINE result, only used in jit/Make-lang.in so far.
26104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_version_script" >&5
26105 $as_echo "$gcc_cv_ld_version_script" >&6; }
26108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker soname option" >&5
26109 $as_echo_n "checking linker soname option... " >&6; }
26110 gcc_cv_ld_soname=no
26111 if test $in_tree_ld = yes || test x"$gnu_ld" = xyes; then
26112 gcc_cv_ld_soname=yes
26113 ld_soname_option='-soname'
26114 elif test x$gcc_cv_ld != x; then
26115 case "$target" in
26116 *-*-darwin*)
26117 gcc_cv_ld_soname=yes
26118 ld_soname_option='-install_name'
26120 # Solaris 2 ld always supports -h. It also supports --soname for GNU
26121 # ld compatiblity since some Solaris 10 update.
26122 *-*-solaris2*)
26123 gcc_cv_ld_soname=yes
26124 ld_soname_option='-h'
26126 esac
26128 # Don't AC_DEFINE result, only used in jit/Make-lang.in so far.
26129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_soname" >&5
26130 $as_echo "$gcc_cv_ld_soname" >&6; }
26133 if test x"$demangler_in_ld" = xyes; then
26134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
26135 $as_echo_n "checking linker --demangle support... " >&6; }
26136 gcc_cv_ld_demangle=no
26137 if test $in_tree_ld = yes; then
26138 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 \
26139 gcc_cv_ld_demangle=yes
26141 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
26142 # Check if the GNU linker supports --demangle option
26143 if $gcc_cv_ld --help 2>&1 | grep no-demangle > /dev/null; then
26144 gcc_cv_ld_demangle=yes
26147 if test x"$gcc_cv_ld_demangle" = xyes; then
26149 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
26152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
26153 $as_echo "$gcc_cv_ld_demangle" >&6; }
26156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
26157 $as_echo_n "checking linker plugin support... " >&6; }
26158 gcc_cv_lto_plugin=0
26159 if test -f liblto_plugin.la; then
26160 save_ld_ver="$ld_ver"
26161 save_ld_vers_major="$ld_vers_major"
26162 save_ld_vers_minor="$ld_vers_minor"
26163 save_ld_is_gold="$ld_is_gold"
26165 ld_is_gold=no
26167 if test $in_tree_ld = yes -a x"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x"$gcc_cv_ld"; then
26168 ld_ver="GNU ld"
26169 # FIXME: ld_is_gold?
26170 ld_vers_major="$gcc_cv_gld_major_version"
26171 ld_vers_minor="$gcc_cv_gld_minor_version"
26172 else
26173 # Determine plugin linker version.
26174 # FIXME: Partial duplicate from above, generalize.
26175 ld_ver=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
26176 if echo "$ld_ver" | grep GNU > /dev/null; then
26177 if echo "$ld_ver" | grep "GNU gold" > /dev/null; then
26178 ld_is_gold=yes
26179 ld_vers=`echo $ld_ver | sed -n \
26180 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
26181 else
26182 ld_vers=`echo $ld_ver | sed -n \
26183 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
26185 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
26186 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
26190 # Determine plugin support.
26191 if echo "$ld_ver" | grep GNU > /dev/null; then
26192 # Require GNU ld or gold 2.21+ for plugin support by default.
26193 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
26194 gcc_cv_lto_plugin=2
26195 elif test "$ld_is_mold" = yes; then
26196 gcc_cv_lto_plugin=2
26197 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
26198 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
26199 gcc_cv_lto_plugin=1
26203 ld_ver="$save_ld_ver"
26204 ld_vers_major="$save_ld_vers_major"
26205 ld_vers_minor="$save_ld_vers_minor"
26206 ld_is_gold="$save_ld_is_gold"
26209 cat >>confdefs.h <<_ACEOF
26210 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
26211 _ACEOF
26213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
26214 $as_echo "$gcc_cv_lto_plugin" >&6; }
26216 # Target OS-specific assembler checks.
26218 case "$target_os" in
26219 darwin*)
26220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mmacosx-version-min option" >&5
26221 $as_echo_n "checking assembler for -mmacosx-version-min option... " >&6; }
26222 if ${gcc_cv_as_mmacosx_version_min+:} false; then :
26223 $as_echo_n "(cached) " >&6
26224 else
26225 gcc_cv_as_mmacosx_version_min=no
26226 if test x$gcc_cv_as != x; then
26227 $as_echo '.text' > conftest.s
26228 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mmacosx-version-min=10.1 -o conftest.o conftest.s >&5'
26229 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26230 (eval $ac_try) 2>&5
26231 ac_status=$?
26232 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26233 test $ac_status = 0; }; }
26234 then
26235 gcc_cv_as_mmacosx_version_min=yes
26236 else
26237 echo "configure: failed program was" >&5
26238 cat conftest.s >&5
26240 rm -f conftest.o conftest.s
26243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mmacosx_version_min" >&5
26244 $as_echo "$gcc_cv_as_mmacosx_version_min" >&6; }
26245 if test $gcc_cv_as_mmacosx_version_min = yes; then
26247 $as_echo "#define HAVE_AS_MMACOSX_VERSION_MIN_OPTION 1" >>confdefs.h
26252 esac
26254 # Target CPU-specific assembler checks.
26256 case "$target" in
26257 aarch64*-*-*)
26258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mabi option" >&5
26259 $as_echo_n "checking assembler for -mabi option... " >&6; }
26260 if ${gcc_cv_as_aarch64_mabi+:} false; then :
26261 $as_echo_n "(cached) " >&6
26262 else
26263 gcc_cv_as_aarch64_mabi=no
26264 if test x$gcc_cv_as != x; then
26265 $as_echo '.text' > conftest.s
26266 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mabi=lp64 -o conftest.o conftest.s >&5'
26267 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26268 (eval $ac_try) 2>&5
26269 ac_status=$?
26270 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26271 test $ac_status = 0; }; }
26272 then
26273 gcc_cv_as_aarch64_mabi=yes
26274 else
26275 echo "configure: failed program was" >&5
26276 cat conftest.s >&5
26278 rm -f conftest.o conftest.s
26281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_mabi" >&5
26282 $as_echo "$gcc_cv_as_aarch64_mabi" >&6; }
26285 if test x$gcc_cv_as_aarch64_mabi = xyes; then
26287 $as_echo "#define HAVE_AS_MABI_OPTION 1" >>confdefs.h
26289 else
26290 if test x$with_abi = xilp32; then
26291 as_fn_error $? "Assembler does not support -mabi=ilp32.\
26292 Upgrade the Assembler." "$LINENO" 5
26294 if test x"$with_multilib_list" = xdefault; then
26295 TM_MULTILIB_CONFIG=lp64
26296 else
26297 aarch64_multilibs=`echo $with_multilib_list | sed -e 's/,/ /g'`
26298 for aarch64_multilib in ${aarch64_multilibs}; do
26299 case ${aarch64_multilib} in
26300 ilp32)
26301 as_fn_error $? "Assembler does not support -mabi=ilp32.\
26302 Upgrade the Assembler." "$LINENO" 5
26306 esac
26307 done
26310 # Check if we have binutils support for relocations types needed by -fpic
26311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -fpic relocs" >&5
26312 $as_echo_n "checking assembler for -fpic relocs... " >&6; }
26313 if ${gcc_cv_as_aarch64_picreloc+:} false; then :
26314 $as_echo_n "(cached) " >&6
26315 else
26316 gcc_cv_as_aarch64_picreloc=no
26317 if test x$gcc_cv_as != x; then
26318 $as_echo '
26319 .text
26320 ldr x0, [x2, #:gotpage_lo15:globalsym]
26321 ' > conftest.s
26322 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26323 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26324 (eval $ac_try) 2>&5
26325 ac_status=$?
26326 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26327 test $ac_status = 0; }; }
26328 then
26329 gcc_cv_as_aarch64_picreloc=yes
26330 else
26331 echo "configure: failed program was" >&5
26332 cat conftest.s >&5
26334 rm -f conftest.o conftest.s
26337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_picreloc" >&5
26338 $as_echo "$gcc_cv_as_aarch64_picreloc" >&6; }
26339 if test $gcc_cv_as_aarch64_picreloc = yes; then
26341 $as_echo "#define HAVE_AS_SMALL_PIC_RELOCS 1" >>confdefs.h
26345 # Enable Branch Target Identification Mechanism and Return Address
26346 # Signing by default.
26347 # Check whether --enable-standard-branch-protection was given.
26348 if test "${enable_standard_branch_protection+set}" = set; then :
26349 enableval=$enable_standard_branch_protection;
26350 case $enableval in
26351 yes)
26352 tm_defines="${tm_defines} TARGET_ENABLE_BTI=1 TARGET_ENABLE_PAC_RET=1"
26357 as_fn_error $? "'$enableval' is an invalid value for --enable-standard-branch-protection.\
26358 Valid choices are 'yes' and 'no'." "$LINENO" 5
26360 esac
26364 # Enable default workaround for AArch64 Cortex-A53 erratum 835769.
26365 # Check whether --enable-fix-cortex-a53-835769 was given.
26366 if test "${enable_fix_cortex_a53_835769+set}" = set; then :
26367 enableval=$enable_fix_cortex_a53_835769;
26368 case $enableval in
26369 yes)
26370 tm_defines="${tm_defines} TARGET_FIX_ERR_A53_835769_DEFAULT=1"
26375 as_fn_error $? "'$enableval' is an invalid value for --enable-fix-cortex-a53-835769.\
26376 Valid choices are 'yes' and 'no'." "$LINENO" 5
26379 esac
26383 # Enable default workaround for AArch64 Cortex-A53 erratum 843419.
26384 # Check whether --enable-fix-cortex-a53-843419 was given.
26385 if test "${enable_fix_cortex_a53_843419+set}" = set; then :
26386 enableval=$enable_fix_cortex_a53_843419;
26387 case $enableval in
26388 yes)
26389 tm_defines="${tm_defines} TARGET_FIX_ERR_A53_843419_DEFAULT=1"
26394 as_fn_error $? "'$enableval' is an invalid value for --enable-fix-cortex-a53-843419.\
26395 Valid choices are 'yes' and 'no'." "$LINENO" 5
26398 esac
26404 # All TARGET_ABI_OSF targets.
26405 alpha*-*-linux* | alpha*-*-*bsd*)
26406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
26407 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
26408 if ${gcc_cv_as_alpha_explicit_relocs+:} false; then :
26409 $as_echo_n "(cached) " >&6
26410 else
26411 gcc_cv_as_alpha_explicit_relocs=no
26412 if test x$gcc_cv_as != x; then
26413 $as_echo ' .set nomacro
26414 .text
26415 extbl $3, $2, $3 !lituse_bytoff!1
26416 ldq $2, a($29) !literal!1
26417 ldq $4, b($29) !literal!2
26418 ldq_u $3, 0($2) !lituse_base!1
26419 ldq $27, f($29) !literal!5
26420 jsr $26, ($27), f !lituse_jsr!5
26421 ldah $29, 0($26) !gpdisp!3
26422 lda $0, c($29) !gprel
26423 ldah $1, d($29) !gprelhigh
26424 lda $1, d($1) !gprellow
26425 lda $29, 0($29) !gpdisp!3' > conftest.s
26426 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26427 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26428 (eval $ac_try) 2>&5
26429 ac_status=$?
26430 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26431 test $ac_status = 0; }; }
26432 then
26433 gcc_cv_as_alpha_explicit_relocs=yes
26434 else
26435 echo "configure: failed program was" >&5
26436 cat conftest.s >&5
26438 rm -f conftest.o conftest.s
26441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
26442 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
26443 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
26445 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
26449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
26450 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
26451 if ${gcc_cv_as_alpha_jsrdirect_relocs+:} false; then :
26452 $as_echo_n "(cached) " >&6
26453 else
26454 gcc_cv_as_alpha_jsrdirect_relocs=no
26455 if test x$gcc_cv_as != x; then
26456 $as_echo ' .set nomacro
26457 .text
26458 ldq $27, a($29) !literal!1
26459 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
26460 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26461 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26462 (eval $ac_try) 2>&5
26463 ac_status=$?
26464 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26465 test $ac_status = 0; }; }
26466 then
26467 gcc_cv_as_alpha_jsrdirect_relocs=yes
26468 else
26469 echo "configure: failed program was" >&5
26470 cat conftest.s >&5
26472 rm -f conftest.o conftest.s
26475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
26476 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
26477 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
26479 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
26485 avr-*-*)
26486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --mlink-relax option" >&5
26487 $as_echo_n "checking assembler for --mlink-relax option... " >&6; }
26488 if ${gcc_cv_as_avr_mlink_relax+:} false; then :
26489 $as_echo_n "(cached) " >&6
26490 else
26491 gcc_cv_as_avr_mlink_relax=no
26492 if test x$gcc_cv_as != x; then
26493 $as_echo '.text' > conftest.s
26494 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --mlink-relax -o conftest.o conftest.s >&5'
26495 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26496 (eval $ac_try) 2>&5
26497 ac_status=$?
26498 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26499 test $ac_status = 0; }; }
26500 then
26501 gcc_cv_as_avr_mlink_relax=yes
26502 else
26503 echo "configure: failed program was" >&5
26504 cat conftest.s >&5
26506 rm -f conftest.o conftest.s
26509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mlink_relax" >&5
26510 $as_echo "$gcc_cv_as_avr_mlink_relax" >&6; }
26511 if test $gcc_cv_as_avr_mlink_relax = yes; then
26513 $as_echo "#define HAVE_AS_AVR_MLINK_RELAX_OPTION 1" >>confdefs.h
26518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mrmw option" >&5
26519 $as_echo_n "checking assembler for -mrmw option... " >&6; }
26520 if ${gcc_cv_as_avr_mrmw+:} false; then :
26521 $as_echo_n "(cached) " >&6
26522 else
26523 gcc_cv_as_avr_mrmw=no
26524 if test x$gcc_cv_as != x; then
26525 $as_echo '.text' > conftest.s
26526 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mrmw -o conftest.o conftest.s >&5'
26527 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26528 (eval $ac_try) 2>&5
26529 ac_status=$?
26530 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26531 test $ac_status = 0; }; }
26532 then
26533 gcc_cv_as_avr_mrmw=yes
26534 else
26535 echo "configure: failed program was" >&5
26536 cat conftest.s >&5
26538 rm -f conftest.o conftest.s
26541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mrmw" >&5
26542 $as_echo "$gcc_cv_as_avr_mrmw" >&6; }
26543 if test $gcc_cv_as_avr_mrmw = yes; then
26545 $as_echo "#define HAVE_AS_AVR_MRMW_OPTION 1" >>confdefs.h
26550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for __gcc_isr pseudo instruction" >&5
26551 $as_echo_n "checking assembler for __gcc_isr pseudo instruction... " >&6; }
26552 if ${gcc_cv_as_avr_mgccisr+:} false; then :
26553 $as_echo_n "(cached) " >&6
26554 else
26555 gcc_cv_as_avr_mgccisr=no
26556 if test x$gcc_cv_as != x; then
26557 $as_echo '.text
26558 __gcc_isr 1
26559 __gcc_isr 2
26560 __gcc_isr 0,r24
26561 ' > conftest.s
26562 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mgcc-isr -o conftest.o conftest.s >&5'
26563 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26564 (eval $ac_try) 2>&5
26565 ac_status=$?
26566 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26567 test $ac_status = 0; }; }
26568 then
26569 gcc_cv_as_avr_mgccisr=yes
26570 else
26571 echo "configure: failed program was" >&5
26572 cat conftest.s >&5
26574 rm -f conftest.o conftest.s
26577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mgccisr" >&5
26578 $as_echo "$gcc_cv_as_avr_mgccisr" >&6; }
26579 if test $gcc_cv_as_avr_mgccisr = yes; then
26581 $as_echo "#define HAVE_AS_AVR_MGCCISR_OPTION 1" >>confdefs.h
26586 # Check how default linker description file implements .rodata for
26587 # avrxmega3 (PR21472). avr-gcc assumes .rodata is *not* loaded to
26588 # RAM so avr-gcc skips __do_copy_data for .rodata objects.
26589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking binutils for avrxmega3 .rodata support" >&5
26590 $as_echo_n "checking binutils for avrxmega3 .rodata support... " >&6; }
26591 cat > conftest.s <<EOF
26592 .section .rodata,"a",@progbits
26593 .global xxvaryy
26594 ;; avr-nm should print "... R xxvaryy", not "... D xxvaryy".
26595 xxvaryy:
26596 .word 1
26598 rm -f conftest.nm
26599 { ac_try='$gcc_cv_as -mmcu=avrxmega3 conftest.s -o conftest.o'
26600 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26601 (eval $ac_try) 2>&5
26602 ac_status=$?
26603 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26604 test $ac_status = 0; }; }
26605 { ac_try='$gcc_cv_ld -mavrxmega3 conftest.o -o conftest.elf'
26606 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26607 (eval $ac_try) 2>&5
26608 ac_status=$?
26609 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26610 test $ac_status = 0; }; }
26611 { ac_try='$gcc_cv_nm conftest.elf > conftest.nm'
26612 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26613 (eval $ac_try) 2>&5
26614 ac_status=$?
26615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26616 test $ac_status = 0; }; }
26617 if test -s conftest.nm
26618 then
26619 if grep ' R xxvaryy' conftest.nm > /dev/null; then
26620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26621 $as_echo "yes" >&6; }
26623 $as_echo "#define HAVE_LD_AVR_AVRXMEGA3_RODATA_IN_FLASH 1" >>confdefs.h
26625 else
26626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: avrxmega3 .rodata located in RAM" >&5
26627 $as_echo "no: avrxmega3 .rodata located in RAM" >&6; }
26628 echo "$as_me: nm output was" >&5
26629 cat conftest.nm >&5
26630 avr_ld_ver="`$gcc_cv_ld -v | sed -e 's:^.* ::'`"
26631 { $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
26632 $as_echo "$as_me: WARNING: support for avrxmega3 .rodata in flash needs Binutils 2.29 or higher (have $avr_ld_ver)" >&2;}
26634 else
26635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: test failed" >&5
26636 $as_echo "test failed" >&6; }
26637 echo "$as_me: failed program was" >&5
26638 cat conftest.s >&5
26639 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: see \`config.log' for details" >&5
26640 $as_echo "$as_me: WARNING: see \`config.log' for details" >&2;}
26642 rm -f conftest.s conftest.o conftest.elf conftest.nm
26645 cris-*-*)
26646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
26647 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
26648 if ${gcc_cv_as_cris_no_mul_bug+:} false; then :
26649 $as_echo_n "(cached) " >&6
26650 else
26651 gcc_cv_as_cris_no_mul_bug=no
26652 if test x$gcc_cv_as != x; then
26653 $as_echo '.text' > conftest.s
26654 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
26655 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26656 (eval $ac_try) 2>&5
26657 ac_status=$?
26658 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26659 test $ac_status = 0; }; }
26660 then
26661 gcc_cv_as_cris_no_mul_bug=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_cris_no_mul_bug" >&5
26670 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
26671 if test $gcc_cv_as_cris_no_mul_bug = yes; then
26673 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
26679 sparc*-*-*)
26680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
26681 $as_echo_n "checking assembler for -relax option... " >&6; }
26682 if ${gcc_cv_as_sparc_relax+:} false; then :
26683 $as_echo_n "(cached) " >&6
26684 else
26685 gcc_cv_as_sparc_relax=no
26686 if test x$gcc_cv_as != x; then
26687 $as_echo '.text' > conftest.s
26688 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
26689 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26690 (eval $ac_try) 2>&5
26691 ac_status=$?
26692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26693 test $ac_status = 0; }; }
26694 then
26695 gcc_cv_as_sparc_relax=yes
26696 else
26697 echo "configure: failed program was" >&5
26698 cat conftest.s >&5
26700 rm -f conftest.o conftest.s
26703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
26704 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
26705 if test $gcc_cv_as_sparc_relax = yes; then
26707 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
26712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
26713 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
26714 if ${gcc_cv_as_sparc_gotdata_op+:} false; then :
26715 $as_echo_n "(cached) " >&6
26716 else
26717 gcc_cv_as_sparc_gotdata_op=no
26718 if test x$gcc_cv_as != x; then
26719 $as_echo '.text
26720 .align 4
26721 foo:
26723 bar:
26724 sethi %gdop_hix22(foo), %g1
26725 xor %g1, %gdop_lox10(foo), %g1
26726 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
26727 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
26728 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26729 (eval $ac_try) 2>&5
26730 ac_status=$?
26731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26732 test $ac_status = 0; }; }
26733 then
26734 if test x$gcc_cv_ld != x \
26735 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
26736 if test x$gcc_cv_objdump != x; then
26737 if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
26738 | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
26739 gcc_cv_as_sparc_gotdata_op=no
26740 else
26741 gcc_cv_as_sparc_gotdata_op=yes
26745 rm -f conftest
26746 else
26747 echo "configure: failed program was" >&5
26748 cat conftest.s >&5
26750 rm -f conftest.o conftest.s
26753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
26754 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
26755 if test $gcc_cv_as_sparc_gotdata_op = yes; then
26757 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
26762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
26763 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
26764 if ${gcc_cv_as_sparc_ua_pcrel+:} false; then :
26765 $as_echo_n "(cached) " >&6
26766 else
26767 gcc_cv_as_sparc_ua_pcrel=no
26768 if test x$gcc_cv_as != x; then
26769 $as_echo '.text
26770 foo:
26772 .data
26773 .align 4
26774 .byte 0
26775 .uaword %r_disp32(foo)' > conftest.s
26776 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
26777 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26778 (eval $ac_try) 2>&5
26779 ac_status=$?
26780 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26781 test $ac_status = 0; }; }
26782 then
26783 if test x$gcc_cv_ld != x \
26784 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
26785 gcc_cv_as_sparc_ua_pcrel=yes
26787 rm -f conftest
26788 else
26789 echo "configure: failed program was" >&5
26790 cat conftest.s >&5
26792 rm -f conftest.o conftest.s
26795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
26796 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
26797 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
26799 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
26802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
26803 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
26804 if ${gcc_cv_as_sparc_ua_pcrel_hidden+:} false; then :
26805 $as_echo_n "(cached) " >&6
26806 else
26807 gcc_cv_as_sparc_ua_pcrel_hidden=no
26808 if test x$gcc_cv_as != x; then
26809 $as_echo '.data
26810 .align 4
26811 .byte 0x31
26812 .uaword %r_disp32(foo)
26813 .byte 0x32, 0x33, 0x34
26814 .global foo
26815 .hidden foo
26816 foo:
26817 .skip 4' > conftest.s
26818 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
26819 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26820 (eval $ac_try) 2>&5
26821 ac_status=$?
26822 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26823 test $ac_status = 0; }; }
26824 then
26825 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
26826 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
26827 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
26828 | grep ' 31000000 07323334' > /dev/null 2>&1; then
26829 if $gcc_cv_objdump -R conftest 2> /dev/null \
26830 | grep 'DISP32' > /dev/null 2>&1; then
26832 else
26833 gcc_cv_as_sparc_ua_pcrel_hidden=yes
26836 rm -f conftest
26837 else
26838 echo "configure: failed program was" >&5
26839 cat conftest.s >&5
26841 rm -f conftest.o conftest.s
26844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
26845 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
26846 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
26848 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
26854 # unaligned pcrel relocs
26856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
26857 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
26858 if ${gcc_cv_as_sparc_offsetable_lo10+:} false; then :
26859 $as_echo_n "(cached) " >&6
26860 else
26861 gcc_cv_as_sparc_offsetable_lo10=no
26862 if test x$gcc_cv_as != x; then
26863 $as_echo '.text
26864 or %g1, %lo(ab) + 12, %g1
26865 or %g1, %lo(ab + 12), %g1' > conftest.s
26866 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
26867 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26868 (eval $ac_try) 2>&5
26869 ac_status=$?
26870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26871 test $ac_status = 0; }; }
26872 then
26873 if test x$gcc_cv_objdump != x \
26874 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
26875 | grep ' 82106000 82106000' > /dev/null 2>&1; then
26876 gcc_cv_as_sparc_offsetable_lo10=yes
26878 else
26879 echo "configure: failed program was" >&5
26880 cat conftest.s >&5
26882 rm -f conftest.o conftest.s
26885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
26886 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
26887 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
26889 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
26894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
26895 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
26896 if ${gcc_cv_as_sparc_fmaf+:} false; then :
26897 $as_echo_n "(cached) " >&6
26898 else
26899 gcc_cv_as_sparc_fmaf=no
26900 if test x$gcc_cv_as != x; then
26901 $as_echo '.text
26902 .register %g2, #scratch
26903 .register %g3, #scratch
26904 .align 4
26905 fmaddd %f0, %f2, %f4, %f6
26906 addxccc %g1, %g2, %g3
26907 fsrl32 %f2, %f4, %f8
26908 fnaddd %f10, %f12, %f14' > conftest.s
26909 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
26910 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26911 (eval $ac_try) 2>&5
26912 ac_status=$?
26913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26914 test $ac_status = 0; }; }
26915 then
26916 gcc_cv_as_sparc_fmaf=yes
26917 else
26918 echo "configure: failed program was" >&5
26919 cat conftest.s >&5
26921 rm -f conftest.o conftest.s
26924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
26925 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
26926 if test $gcc_cv_as_sparc_fmaf = yes; then
26928 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
26933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
26934 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
26935 if ${gcc_cv_as_sparc_sparc4+:} false; then :
26936 $as_echo_n "(cached) " >&6
26937 else
26938 gcc_cv_as_sparc_sparc4=no
26939 if test x$gcc_cv_as != x; then
26940 $as_echo '.text
26941 .register %g2, #scratch
26942 .register %g3, #scratch
26943 .align 4
26944 cxbe %g2, %g3, 1f
26945 1: cwbneg %g2, %g3, 1f
26946 1: sha1
26948 aes_kexpand0 %f4, %f6, %f8
26949 des_round %f38, %f40, %f42, %f44
26950 camellia_f %f54, %f56, %f58, %f60
26951 kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
26952 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
26953 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26954 (eval $ac_try) 2>&5
26955 ac_status=$?
26956 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26957 test $ac_status = 0; }; }
26958 then
26959 gcc_cv_as_sparc_sparc4=yes
26960 else
26961 echo "configure: failed program was" >&5
26962 cat conftest.s >&5
26964 rm -f conftest.o conftest.s
26967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
26968 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
26969 if test $gcc_cv_as_sparc_sparc4 = yes; then
26971 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
26976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC5 and VIS 4.0 instructions" >&5
26977 $as_echo_n "checking assembler for SPARC5 and VIS 4.0 instructions... " >&6; }
26978 if ${gcc_cv_as_sparc_sparc5+:} false; then :
26979 $as_echo_n "(cached) " >&6
26980 else
26981 gcc_cv_as_sparc_sparc5=no
26982 if test x$gcc_cv_as != x; then
26983 $as_echo '.text
26984 .register %g2, #scratch
26985 .register %g3, #scratch
26986 .align 4
26987 subxc %g1, %g2, %g3
26988 fpadd8 %f0, %f2, %f4' > conftest.s
26989 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc5 -o conftest.o conftest.s >&5'
26990 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26991 (eval $ac_try) 2>&5
26992 ac_status=$?
26993 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26994 test $ac_status = 0; }; }
26995 then
26996 gcc_cv_as_sparc_sparc5=yes
26997 else
26998 echo "configure: failed program was" >&5
26999 cat conftest.s >&5
27001 rm -f conftest.o conftest.s
27004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc5" >&5
27005 $as_echo "$gcc_cv_as_sparc_sparc5" >&6; }
27006 if test $gcc_cv_as_sparc_sparc5 = yes; then
27008 $as_echo "#define HAVE_AS_SPARC5_VIS4 1" >>confdefs.h
27013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC6 instructions" >&5
27014 $as_echo_n "checking assembler for SPARC6 instructions... " >&6; }
27015 if ${gcc_cv_as_sparc_sparc6+:} false; then :
27016 $as_echo_n "(cached) " >&6
27017 else
27018 gcc_cv_as_sparc_sparc6=no
27019 if test x$gcc_cv_as != x; then
27020 $as_echo '.text
27021 .register %g2, #scratch
27022 .register %g3, #scratch
27023 .align 4
27024 rd %entropy, %g1
27025 fpsll64x %f0, %f2, %f4' > conftest.s
27026 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc6 -o conftest.o conftest.s >&5'
27027 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27028 (eval $ac_try) 2>&5
27029 ac_status=$?
27030 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27031 test $ac_status = 0; }; }
27032 then
27033 gcc_cv_as_sparc_sparc6=yes
27034 else
27035 echo "configure: failed program was" >&5
27036 cat conftest.s >&5
27038 rm -f conftest.o conftest.s
27041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc6" >&5
27042 $as_echo "$gcc_cv_as_sparc_sparc6" >&6; }
27043 if test $gcc_cv_as_sparc_sparc6 = yes; then
27045 $as_echo "#define HAVE_AS_SPARC6 1" >>confdefs.h
27050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for LEON instructions" >&5
27051 $as_echo_n "checking assembler for LEON instructions... " >&6; }
27052 if ${gcc_cv_as_sparc_leon+:} false; then :
27053 $as_echo_n "(cached) " >&6
27054 else
27055 gcc_cv_as_sparc_leon=no
27056 if test x$gcc_cv_as != x; then
27057 $as_echo '.text
27058 .register %g2, #scratch
27059 .register %g3, #scratch
27060 .align 4
27061 smac %g2, %g3, %g1
27062 umac %g2, %g3, %g1
27063 casa [%g2] 0xb, %g3, %g1' > conftest.s
27064 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -Aleon -o conftest.o conftest.s >&5'
27065 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27066 (eval $ac_try) 2>&5
27067 ac_status=$?
27068 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27069 test $ac_status = 0; }; }
27070 then
27071 gcc_cv_as_sparc_leon=yes
27072 else
27073 echo "configure: failed program was" >&5
27074 cat conftest.s >&5
27076 rm -f conftest.o conftest.s
27079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_leon" >&5
27080 $as_echo "$gcc_cv_as_sparc_leon" >&6; }
27081 if test $gcc_cv_as_sparc_leon = yes; then
27083 $as_echo "#define HAVE_AS_LEON 1" >>confdefs.h
27089 i[34567]86-*-* | x86_64-*-*)
27090 case $target_os in
27091 cygwin*)
27092 # Full C++ conformance when using a shared libstdc++-v3 requires some
27093 # support from the Cygwin DLL, which in more recent versions exports
27094 # wrappers to aid in interposing and redirecting operators new, delete,
27095 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
27096 # are configuring for a version of Cygwin that exports the wrappers.
27097 if test x$host = x$target && test x$host_cpu = xi686; then
27098 ac_fn_cxx_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
27099 if test "x$ac_cv_func___wrap__Znaj" = xyes; then :
27100 gcc_ac_cygwin_dll_wrappers=yes
27101 else
27102 gcc_ac_cygwin_dll_wrappers=no
27105 else
27106 # Can't check presence of libc functions during cross-compile, so
27107 # we just have to assume we're building for an up-to-date target.
27108 gcc_ac_cygwin_dll_wrappers=yes
27111 cat >>confdefs.h <<_ACEOF
27112 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
27113 _ACEOF
27115 esac
27116 case $target_os in
27117 cygwin* | pe | mingw32*)
27118 # Recent binutils allows the three-operand form of ".comm" on PE. This
27119 # definition is used unconditionally to initialise the default state of
27120 # the target option variable that governs usage of the feature.
27121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
27122 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
27123 if ${gcc_cv_as_comm_has_align+:} false; then :
27124 $as_echo_n "(cached) " >&6
27125 else
27126 gcc_cv_as_comm_has_align=no
27127 if test x$gcc_cv_as != x; then
27128 $as_echo '.comm foo,1,32' > conftest.s
27129 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27130 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27131 (eval $ac_try) 2>&5
27132 ac_status=$?
27133 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27134 test $ac_status = 0; }; }
27135 then
27136 gcc_cv_as_comm_has_align=yes
27137 else
27138 echo "configure: failed program was" >&5
27139 cat conftest.s >&5
27141 rm -f conftest.o conftest.s
27144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
27145 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
27149 cat >>confdefs.h <<_ACEOF
27150 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
27151 _ACEOF
27153 # Used for DWARF 2 in PE
27154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
27155 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
27156 if ${gcc_cv_as_ix86_pe_secrel32+:} false; then :
27157 $as_echo_n "(cached) " >&6
27158 else
27159 gcc_cv_as_ix86_pe_secrel32=no
27160 if test x$gcc_cv_as != x; then
27161 $as_echo '.text
27162 foo: nop
27163 .data
27164 .secrel32 foo' > conftest.s
27165 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27166 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27167 (eval $ac_try) 2>&5
27168 ac_status=$?
27169 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27170 test $ac_status = 0; }; }
27171 then
27172 if test x$gcc_cv_ld != x \
27173 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
27174 gcc_cv_as_ix86_pe_secrel32=yes
27176 rm -f conftest
27177 else
27178 echo "configure: failed program was" >&5
27179 cat conftest.s >&5
27181 rm -f conftest.o conftest.s
27184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
27185 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
27186 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
27188 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
27192 # Test if the assembler supports the extended form of the .section
27193 # directive that specifies section alignment. LTO support uses this,
27194 # but normally only after installation, so we warn but don't fail the
27195 # configure if LTO is enabled but the assembler does not support it.
27196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
27197 $as_echo_n "checking assembler for .section with alignment... " >&6; }
27198 if ${gcc_cv_as_section_has_align+:} false; then :
27199 $as_echo_n "(cached) " >&6
27200 else
27201 gcc_cv_as_section_has_align=no
27202 if test x$gcc_cv_as != x; then
27203 $as_echo '.section lto_test,"dr0"' > conftest.s
27204 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
27205 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27206 (eval $ac_try) 2>&5
27207 ac_status=$?
27208 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27209 test $ac_status = 0; }; }
27210 then
27211 gcc_cv_as_section_has_align=yes
27212 else
27213 echo "configure: failed program was" >&5
27214 cat conftest.s >&5
27216 rm -f conftest.o conftest.s
27219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
27220 $as_echo "$gcc_cv_as_section_has_align" >&6; }
27223 if test x$gcc_cv_as_section_has_align != xyes; then
27224 case ",$enable_languages," in
27225 *,lto,*)
27226 { $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
27227 $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;}
27229 esac
27232 esac
27233 case $target_os in
27234 darwin2* | darwin19*)
27235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for llvm assembler x86-pad-for-align option" >&5
27236 $as_echo_n "checking assembler for llvm assembler x86-pad-for-align option... " >&6; }
27237 if ${gcc_cv_as_mllvm_x86_pad_for_align+:} false; then :
27238 $as_echo_n "(cached) " >&6
27239 else
27240 gcc_cv_as_mllvm_x86_pad_for_align=no
27241 if test x$gcc_cv_as != x; then
27242 $as_echo '.text' > conftest.s
27243 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mllvm -x86-pad-for-align=false -o conftest.o conftest.s >&5'
27244 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27245 (eval $ac_try) 2>&5
27246 ac_status=$?
27247 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27248 test $ac_status = 0; }; }
27249 then
27250 gcc_cv_as_mllvm_x86_pad_for_align=yes
27251 else
27252 echo "configure: failed program was" >&5
27253 cat conftest.s >&5
27255 rm -f conftest.o conftest.s
27258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mllvm_x86_pad_for_align" >&5
27259 $as_echo "$gcc_cv_as_mllvm_x86_pad_for_align" >&6; }
27260 if test $gcc_cv_as_mllvm_x86_pad_for_align = yes; then
27262 $as_echo "#define HAVE_AS_MLLVM_X86_PAD_FOR_ALIGN 1" >>confdefs.h
27267 esac
27269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -xbrace_comment" >&5
27270 $as_echo_n "checking assembler for -xbrace_comment... " >&6; }
27271 if ${gcc_cv_as_ix86_xbrace_comment+:} false; then :
27272 $as_echo_n "(cached) " >&6
27273 else
27274 gcc_cv_as_ix86_xbrace_comment=no
27275 if test x$gcc_cv_as != x; then
27276 $as_echo '.text' > conftest.s
27277 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xbrace_comment=no -o conftest.o conftest.s >&5'
27278 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27279 (eval $ac_try) 2>&5
27280 ac_status=$?
27281 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27282 test $ac_status = 0; }; }
27283 then
27284 gcc_cv_as_ix86_xbrace_comment=yes
27285 else
27286 echo "configure: failed program was" >&5
27287 cat conftest.s >&5
27289 rm -f conftest.o conftest.s
27292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_xbrace_comment" >&5
27293 $as_echo "$gcc_cv_as_ix86_xbrace_comment" >&6; }
27294 if test $gcc_cv_as_ix86_xbrace_comment = yes; then
27296 $as_echo "#define HAVE_AS_XBRACE_COMMENT_OPTION 1" >>confdefs.h
27301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
27302 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
27303 if ${gcc_cv_as_ix86_filds+:} false; then :
27304 $as_echo_n "(cached) " >&6
27305 else
27306 gcc_cv_as_ix86_filds=no
27307 if test x$gcc_cv_as != x; then
27308 $as_echo 'filds (%ebp); fists (%ebp)' > conftest.s
27309 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27310 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27311 (eval $ac_try) 2>&5
27312 ac_status=$?
27313 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27314 test $ac_status = 0; }; }
27315 then
27316 gcc_cv_as_ix86_filds=yes
27317 else
27318 echo "configure: failed program was" >&5
27319 cat conftest.s >&5
27321 rm -f conftest.o conftest.s
27324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
27325 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
27326 if test $gcc_cv_as_ix86_filds = yes; then
27328 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
27333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
27334 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
27335 if ${gcc_cv_as_ix86_fildq+:} false; then :
27336 $as_echo_n "(cached) " >&6
27337 else
27338 gcc_cv_as_ix86_fildq=no
27339 if test x$gcc_cv_as != x; then
27340 $as_echo 'fildq (%ebp); fistpq (%ebp)' > conftest.s
27341 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27342 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27343 (eval $ac_try) 2>&5
27344 ac_status=$?
27345 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27346 test $ac_status = 0; }; }
27347 then
27348 gcc_cv_as_ix86_fildq=yes
27349 else
27350 echo "configure: failed program was" >&5
27351 cat conftest.s >&5
27353 rm -f conftest.o conftest.s
27356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
27357 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
27358 if test $gcc_cv_as_ix86_fildq = yes; then
27360 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
27365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
27366 $as_echo_n "checking assembler for cmov syntax... " >&6; }
27367 if ${gcc_cv_as_ix86_cmov_sun_syntax+:} false; then :
27368 $as_echo_n "(cached) " >&6
27369 else
27370 gcc_cv_as_ix86_cmov_sun_syntax=no
27371 if test x$gcc_cv_as != x; then
27372 $as_echo 'cmovl.l %edx, %eax' > conftest.s
27373 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27374 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27375 (eval $ac_try) 2>&5
27376 ac_status=$?
27377 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27378 test $ac_status = 0; }; }
27379 then
27380 gcc_cv_as_ix86_cmov_sun_syntax=yes
27381 else
27382 echo "configure: failed program was" >&5
27383 cat conftest.s >&5
27385 rm -f conftest.o conftest.s
27388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
27389 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
27390 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
27392 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
27397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
27398 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
27399 if ${gcc_cv_as_ix86_ffreep+:} false; then :
27400 $as_echo_n "(cached) " >&6
27401 else
27402 gcc_cv_as_ix86_ffreep=no
27403 if test x$gcc_cv_as != x; then
27404 $as_echo 'ffreep %st(1)' > conftest.s
27405 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27406 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27407 (eval $ac_try) 2>&5
27408 ac_status=$?
27409 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27410 test $ac_status = 0; }; }
27411 then
27412 gcc_cv_as_ix86_ffreep=yes
27413 else
27414 echo "configure: failed program was" >&5
27415 cat conftest.s >&5
27417 rm -f conftest.o conftest.s
27420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
27421 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
27422 if test $gcc_cv_as_ix86_ffreep = yes; then
27424 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
27429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
27430 $as_echo_n "checking assembler for .quad directive... " >&6; }
27431 if ${gcc_cv_as_ix86_quad+:} false; then :
27432 $as_echo_n "(cached) " >&6
27433 else
27434 gcc_cv_as_ix86_quad=no
27435 if test x$gcc_cv_as != x; then
27436 $as_echo '.quad 0' > conftest.s
27437 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27438 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27439 (eval $ac_try) 2>&5
27440 ac_status=$?
27441 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27442 test $ac_status = 0; }; }
27443 then
27444 gcc_cv_as_ix86_quad=yes
27445 else
27446 echo "configure: failed program was" >&5
27447 cat conftest.s >&5
27449 rm -f conftest.o conftest.s
27452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
27453 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
27454 if test $gcc_cv_as_ix86_quad = yes; then
27456 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
27461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
27462 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
27463 if ${gcc_cv_as_ix86_sahf+:} false; then :
27464 $as_echo_n "(cached) " >&6
27465 else
27466 gcc_cv_as_ix86_sahf=no
27467 if test x$gcc_cv_as != x; then
27468 $as_echo '.code64
27469 sahf' > conftest.s
27470 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27471 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27472 (eval $ac_try) 2>&5
27473 ac_status=$?
27474 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27475 test $ac_status = 0; }; }
27476 then
27477 gcc_cv_as_ix86_sahf=yes
27478 else
27479 echo "configure: failed program was" >&5
27480 cat conftest.s >&5
27482 rm -f conftest.o conftest.s
27485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
27486 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
27487 if test $gcc_cv_as_ix86_sahf = yes; then
27489 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
27494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for interunit movq mnemonic" >&5
27495 $as_echo_n "checking assembler for interunit movq mnemonic... " >&6; }
27496 if ${gcc_cv_as_ix86_interunit_movq+:} false; then :
27497 $as_echo_n "(cached) " >&6
27498 else
27499 gcc_cv_as_ix86_interunit_movq=no
27500 if test x$gcc_cv_as != x; then
27501 $as_echo '.code64
27502 movq %mm0, %rax
27503 movq %rax, %xmm0' > conftest.s
27504 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27505 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27506 (eval $ac_try) 2>&5
27507 ac_status=$?
27508 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27509 test $ac_status = 0; }; }
27510 then
27511 gcc_cv_as_ix86_interunit_movq=yes
27512 else
27513 echo "configure: failed program was" >&5
27514 cat conftest.s >&5
27516 rm -f conftest.o conftest.s
27519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_interunit_movq" >&5
27520 $as_echo "$gcc_cv_as_ix86_interunit_movq" >&6; }
27524 cat >>confdefs.h <<_ACEOF
27525 #define HAVE_AS_IX86_INTERUNIT_MOVQ `if test $gcc_cv_as_ix86_interunit_movq = yes; then echo 1; else echo 0; fi`
27526 _ACEOF
27529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
27530 $as_echo_n "checking assembler for hle prefixes... " >&6; }
27531 if ${gcc_cv_as_ix86_hle+:} false; then :
27532 $as_echo_n "(cached) " >&6
27533 else
27534 gcc_cv_as_ix86_hle=no
27535 if test x$gcc_cv_as != x; then
27536 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
27537 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27538 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27539 (eval $ac_try) 2>&5
27540 ac_status=$?
27541 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27542 test $ac_status = 0; }; }
27543 then
27544 gcc_cv_as_ix86_hle=yes
27545 else
27546 echo "configure: failed program was" >&5
27547 cat conftest.s >&5
27549 rm -f conftest.o conftest.s
27552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
27553 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
27554 if test $gcc_cv_as_ix86_hle = yes; then
27556 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
27561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
27562 $as_echo_n "checking assembler for swap suffix... " >&6; }
27563 if ${gcc_cv_as_ix86_swap+:} false; then :
27564 $as_echo_n "(cached) " >&6
27565 else
27566 gcc_cv_as_ix86_swap=no
27567 if test x$gcc_cv_as != x; then
27568 $as_echo 'movl.s %esp, %ebp' > conftest.s
27569 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27570 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27571 (eval $ac_try) 2>&5
27572 ac_status=$?
27573 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27574 test $ac_status = 0; }; }
27575 then
27576 gcc_cv_as_ix86_swap=yes
27577 else
27578 echo "configure: failed program was" >&5
27579 cat conftest.s >&5
27581 rm -f conftest.o conftest.s
27584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
27585 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
27586 if test $gcc_cv_as_ix86_swap = yes; then
27588 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
27593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
27594 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
27595 if ${gcc_cv_as_ix86_diff_sect_delta+:} false; then :
27596 $as_echo_n "(cached) " >&6
27597 else
27598 gcc_cv_as_ix86_diff_sect_delta=no
27599 if test x$gcc_cv_as != x; then
27600 $as_echo '.section .rodata
27601 .L1:
27602 .long .L2-.L1
27603 .long .L3-.L1
27604 .text
27605 .L3: nop
27606 .L2: nop' > conftest.s
27607 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27608 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27609 (eval $ac_try) 2>&5
27610 ac_status=$?
27611 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27612 test $ac_status = 0; }; }
27613 then
27614 gcc_cv_as_ix86_diff_sect_delta=yes
27615 else
27616 echo "configure: failed program was" >&5
27617 cat conftest.s >&5
27619 rm -f conftest.o conftest.s
27622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
27623 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
27624 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
27626 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
27631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
27632 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
27633 if ${gcc_cv_as_ix86_rep_lock_prefix+:} false; then :
27634 $as_echo_n "(cached) " >&6
27635 else
27636 gcc_cv_as_ix86_rep_lock_prefix=no
27637 if test x$gcc_cv_as != x; then
27638 $as_echo 'rep movsl
27639 rep ret
27640 rep nop
27641 rep bsf %ecx, %eax
27642 rep bsr %ecx, %eax
27643 lock addl %edi, (%eax,%esi)
27644 lock orl $0, (%esp)' > conftest.s
27645 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27646 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27647 (eval $ac_try) 2>&5
27648 ac_status=$?
27649 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27650 test $ac_status = 0; }; }
27651 then
27652 gcc_cv_as_ix86_rep_lock_prefix=yes
27653 else
27654 echo "configure: failed program was" >&5
27655 cat conftest.s >&5
27657 rm -f conftest.o conftest.s
27660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
27661 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
27662 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
27664 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
27669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ud2 mnemonic" >&5
27670 $as_echo_n "checking assembler for ud2 mnemonic... " >&6; }
27671 if ${gcc_cv_as_ix86_ud2+:} false; then :
27672 $as_echo_n "(cached) " >&6
27673 else
27674 gcc_cv_as_ix86_ud2=no
27675 if test x$gcc_cv_as != x; then
27676 $as_echo 'ud2' > conftest.s
27677 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27678 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27679 (eval $ac_try) 2>&5
27680 ac_status=$?
27681 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27682 test $ac_status = 0; }; }
27683 then
27684 gcc_cv_as_ix86_ud2=yes
27685 else
27686 echo "configure: failed program was" >&5
27687 cat conftest.s >&5
27689 rm -f conftest.o conftest.s
27692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ud2" >&5
27693 $as_echo "$gcc_cv_as_ix86_ud2" >&6; }
27694 if test $gcc_cv_as_ix86_ud2 = yes; then
27696 $as_echo "#define HAVE_AS_IX86_UD2 1" >>confdefs.h
27701 # Enforce 32-bit output with gas and gld.
27702 if test x$gas = xyes; then
27703 as_ix86_gas_32_opt="--32"
27705 if echo "$ld_ver" | grep GNU > /dev/null; then
27706 if $gcc_cv_ld -V 2>/dev/null | grep elf_i386_sol2 > /dev/null; then
27707 ld_ix86_gld_32_opt="-melf_i386_sol2"
27708 else
27709 ld_ix86_gld_32_opt="-melf_i386"
27713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
27714 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
27715 if ${gcc_cv_as_ix86_tlsgdplt+:} false; then :
27716 $as_echo_n "(cached) " >&6
27717 else
27718 gcc_cv_as_ix86_tlsgdplt=no
27719 if test x$gcc_cv_as != x; then
27720 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
27721 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27722 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27723 (eval $ac_try) 2>&5
27724 ac_status=$?
27725 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27726 test $ac_status = 0; }; }
27727 then
27728 if test x$gcc_cv_ld != x \
27729 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o -G > /dev/null 2>&1; then
27730 gcc_cv_as_ix86_tlsgdplt=yes
27732 rm -f conftest
27733 else
27734 echo "configure: failed program was" >&5
27735 cat conftest.s >&5
27737 rm -f conftest.o conftest.s
27740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
27741 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
27742 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
27744 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
27749 conftest_s='
27750 .section .tdata,"aw'$tls_section_flag'",@progbits
27751 tls_ld:
27752 .section .text,"ax",@progbits
27753 call tls_ld@tlsldmplt'
27755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
27756 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
27757 if ${gcc_cv_as_ix86_tlsldmplt+:} false; then :
27758 $as_echo_n "(cached) " >&6
27759 else
27760 gcc_cv_as_ix86_tlsldmplt=no
27761 if test x$gcc_cv_as != x; then
27762 $as_echo "$conftest_s" > conftest.s
27763 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27764 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27765 (eval $ac_try) 2>&5
27766 ac_status=$?
27767 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27768 test $ac_status = 0; }; }
27769 then
27770 if test x$gcc_cv_ld != x \
27771 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o -G > /dev/null 2>&1; then
27772 gcc_cv_as_ix86_tlsldmplt=yes
27774 rm -f conftest
27775 else
27776 echo "configure: failed program was" >&5
27777 cat conftest.s >&5
27779 rm -f conftest.o conftest.s
27782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
27783 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
27787 cat >>confdefs.h <<_ACEOF
27788 #define HAVE_AS_IX86_TLSLDMPLT `if test $gcc_cv_as_ix86_tlsldmplt = yes; then echo 1; else echo 0; fi`
27789 _ACEOF
27792 conftest_s='
27793 .section .text,"ax",@progbits
27794 .globl _start
27795 .type _start, @function
27796 _start:
27797 leal value@tlsldm(%ebx), %eax
27798 call ___tls_get_addr@plt
27800 .section .tdata,"aw'$tls_section_flag'",@progbits
27801 .type value, @object
27802 value:'
27803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM reloc" >&5
27804 $as_echo_n "checking assembler for R_386_TLS_LDM reloc... " >&6; }
27805 if ${gcc_cv_as_ix86_tlsldm+:} false; then :
27806 $as_echo_n "(cached) " >&6
27807 else
27808 gcc_cv_as_ix86_tlsldm=no
27809 if test x$gcc_cv_as != x; then
27810 $as_echo "$conftest_s" > conftest.s
27811 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27812 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27813 (eval $ac_try) 2>&5
27814 ac_status=$?
27815 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27816 test $ac_status = 0; }; }
27817 then
27818 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
27819 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o $ld_tls_libs -lc > /dev/null 2>&1; then
27820 if $gcc_cv_objdump -d conftest 2>/dev/null | grep nop > /dev/null \
27821 || dis conftest 2>/dev/null | grep nop > /dev/null; then
27822 gcc_cv_as_ix86_tlsldm=yes
27825 rm -f conftest
27826 else
27827 echo "configure: failed program was" >&5
27828 cat conftest.s >&5
27830 rm -f conftest.o conftest.s
27833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldm" >&5
27834 $as_echo "$gcc_cv_as_ix86_tlsldm" >&6; }
27838 cat >>confdefs.h <<_ACEOF
27839 #define HAVE_AS_IX86_TLSLDM `if test $gcc_cv_as_ix86_tlsldm = yes; then echo 1; else echo 0; fi`
27840 _ACEOF
27843 conftest_s='
27844 .data
27845 bar:
27846 .byte 1
27847 .text
27848 .global _start
27849 _start:
27850 cmpl $0, bar@GOT
27851 jmp *_start@GOT'
27852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_GOT32X reloc" >&5
27853 $as_echo_n "checking assembler for R_386_GOT32X reloc... " >&6; }
27854 if ${gcc_cv_as_ix86_got32x+:} false; then :
27855 $as_echo_n "(cached) " >&6
27856 else
27857 gcc_cv_as_ix86_got32x=no
27858 if test x$gcc_cv_as != x; then
27859 $as_echo "$conftest_s" > conftest.s
27860 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27861 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27862 (eval $ac_try) 2>&5
27863 ac_status=$?
27864 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27865 test $ac_status = 0; }; }
27866 then
27867 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
27868 && test x$gcc_cv_readelf != x \
27869 && $gcc_cv_readelf --relocs --wide conftest.o 2>&1 \
27870 | grep R_386_GOT32X > /dev/null 2>&1 \
27871 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o > /dev/null 2>&1; then
27872 if $gcc_cv_objdump -dw conftest 2>&1 \
27873 | grep 0xffffff > /dev/null 2>&1; then
27874 gcc_cv_as_ix86_got32x=no
27875 else
27876 gcc_cv_as_ix86_got32x=yes
27879 rm -f conftest
27880 else
27881 echo "configure: failed program was" >&5
27882 cat conftest.s >&5
27884 rm -f conftest.o conftest.s
27887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_got32x" >&5
27888 $as_echo "$gcc_cv_as_ix86_got32x" >&6; }
27892 cat >>confdefs.h <<_ACEOF
27893 #define HAVE_AS_IX86_GOT32X `if test x"$gcc_cv_as_ix86_got32x" = xyes; then echo 1; else echo 0; fi`
27894 _ACEOF
27897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
27898 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
27899 if ${gcc_cv_as_ix86_gotoff_in_data+:} false; then :
27900 $as_echo_n "(cached) " >&6
27901 else
27902 gcc_cv_as_ix86_gotoff_in_data=no
27903 if test x$gcc_cv_as != x; then
27904 $as_echo ' .text
27905 .L0:
27907 .data
27908 .long .L0@GOTOFF' > conftest.s
27909 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27910 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27911 (eval $ac_try) 2>&5
27912 ac_status=$?
27913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27914 test $ac_status = 0; }; }
27915 then
27916 gcc_cv_as_ix86_gotoff_in_data=yes
27917 else
27918 echo "configure: failed program was" >&5
27919 cat conftest.s >&5
27921 rm -f conftest.o conftest.s
27924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
27925 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
27929 cat >>confdefs.h <<_ACEOF
27930 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
27931 _ACEOF
27934 conftest_s='
27935 .section .text,"ax",@progbits
27936 .globl _start
27937 .type _start, @function
27938 _start:
27939 leal ld@tlsldm(%ecx), %eax
27940 call *___tls_get_addr@GOT(%ecx)
27941 leal gd@tlsgd(%ecx), %eax
27942 call *___tls_get_addr@GOT(%ecx)
27944 .section .tdata,"aw'$tls_section_flag'",@progbits
27945 .type ld, @object
27947 .byte 0
27948 .globl gd
27949 .type gd, @object
27951 .byte 0'
27952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for calling ___tls_get_addr via GOT" >&5
27953 $as_echo_n "checking assembler for calling ___tls_get_addr via GOT... " >&6; }
27954 if ${gcc_cv_as_ix86_tls_get_addr_via_got+:} false; then :
27955 $as_echo_n "(cached) " >&6
27956 else
27957 gcc_cv_as_ix86_tls_get_addr_via_got=no
27958 if test x$gcc_cv_as != x; then
27959 $as_echo "$conftest_s" > conftest.s
27960 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27961 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27962 (eval $ac_try) 2>&5
27963 ac_status=$?
27964 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27965 test $ac_status = 0; }; }
27966 then
27967 if test x$gcc_cv_ld != x \
27968 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o > /dev/null 2>&1; then
27969 gcc_cv_as_ix86_tls_get_addr_via_got=yes
27971 rm -f conftest
27972 else
27973 echo "configure: failed program was" >&5
27974 cat conftest.s >&5
27976 rm -f conftest.o conftest.s
27979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tls_get_addr_via_got" >&5
27980 $as_echo "$gcc_cv_as_ix86_tls_get_addr_via_got" >&6; }
27984 cat >>confdefs.h <<_ACEOF
27985 #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`
27986 _ACEOF
27990 ia64*-*-*)
27991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
27992 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
27993 if ${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+:} false; then :
27994 $as_echo_n "(cached) " >&6
27995 else
27996 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
27997 if test x$gcc_cv_as != x; then
27998 $as_echo ' .text
27999 addl r15 = @ltoffx(x#), gp
28001 ld8.mov r16 = [r15], x#
28002 ' > conftest.s
28003 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28004 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28005 (eval $ac_try) 2>&5
28006 ac_status=$?
28007 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28008 test $ac_status = 0; }; }
28009 then
28010 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
28011 else
28012 echo "configure: failed program was" >&5
28013 cat conftest.s >&5
28015 rm -f conftest.o conftest.s
28018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
28019 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
28020 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
28022 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
28029 powerpc*-*-*)
28031 case $target in
28032 *-*-darwin*)
28033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
28034 $as_echo_n "checking assembler for .machine directive support... " >&6; }
28035 if ${gcc_cv_as_machine_directive+:} false; then :
28036 $as_echo_n "(cached) " >&6
28037 else
28038 gcc_cv_as_machine_directive=no
28039 if test x$gcc_cv_as != x; then
28040 $as_echo ' .machine ppc7400' > conftest.s
28041 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28042 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28043 (eval $ac_try) 2>&5
28044 ac_status=$?
28045 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28046 test $ac_status = 0; }; }
28047 then
28048 gcc_cv_as_machine_directive=yes
28049 else
28050 echo "configure: failed program was" >&5
28051 cat conftest.s >&5
28053 rm -f conftest.o conftest.s
28056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
28057 $as_echo "$gcc_cv_as_machine_directive" >&6; }
28060 if test x$gcc_cv_as_machine_directive != xyes; then
28061 echo "*** This target requires an assembler supporting \".machine\"" >&2
28062 echo you can get it from: https://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
28063 test x$build = x$target && exit 1
28066 esac
28068 case $target in
28069 *-*-aix*) conftest_s=' .machine "pwr5"
28070 .csect .text[PR]
28071 mfcr 3,128';;
28072 *-*-darwin*) conftest_s=' .text
28073 mfcr r3,128';;
28074 *) conftest_s=' .machine power4
28075 .text
28076 mfcr 3,128';;
28077 esac
28079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
28080 $as_echo_n "checking assembler for mfcr field support... " >&6; }
28081 if ${gcc_cv_as_powerpc_mfcrf+:} false; then :
28082 $as_echo_n "(cached) " >&6
28083 else
28084 gcc_cv_as_powerpc_mfcrf=no
28085 if test x$gcc_cv_as != x; then
28086 $as_echo "$conftest_s" > conftest.s
28087 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28088 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28089 (eval $ac_try) 2>&5
28090 ac_status=$?
28091 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28092 test $ac_status = 0; }; }
28093 then
28094 gcc_cv_as_powerpc_mfcrf=yes
28095 else
28096 echo "configure: failed program was" >&5
28097 cat conftest.s >&5
28099 rm -f conftest.o conftest.s
28102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
28103 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
28104 if test $gcc_cv_as_powerpc_mfcrf = yes; then
28106 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
28111 case $target in
28112 *-*-aix*) conftest_s=' .csect .text[PR]
28113 LCF..0:
28114 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
28115 *-*-darwin*)
28116 conftest_s=' .text
28117 LCF0:
28118 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
28119 *) conftest_s=' .text
28120 .LCF0:
28121 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
28122 esac
28124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
28125 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
28126 if ${gcc_cv_as_powerpc_rel16+:} false; then :
28127 $as_echo_n "(cached) " >&6
28128 else
28129 gcc_cv_as_powerpc_rel16=no
28130 if test x$gcc_cv_as != x; then
28131 $as_echo "$conftest_s" > conftest.s
28132 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
28133 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28134 (eval $ac_try) 2>&5
28135 ac_status=$?
28136 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28137 test $ac_status = 0; }; }
28138 then
28139 gcc_cv_as_powerpc_rel16=yes
28140 else
28141 echo "configure: failed program was" >&5
28142 cat conftest.s >&5
28144 rm -f conftest.o conftest.s
28147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
28148 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
28149 if test $gcc_cv_as_powerpc_rel16 = yes; then
28151 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
28156 case $target in
28157 *-*-aix*) conftest_s=' .machine "pwr7"
28158 .csect .text[PR]
28159 lxvd2x 1,2,3';;
28160 *) conftest_s=' .machine power7
28161 .text
28162 lxvd2x 1,2,3';;
28163 esac
28165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
28166 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
28167 if ${gcc_cv_as_powerpc_vsx+:} false; then :
28168 $as_echo_n "(cached) " >&6
28169 else
28170 gcc_cv_as_powerpc_vsx=no
28171 if test x$gcc_cv_as != x; then
28172 $as_echo "$conftest_s" > conftest.s
28173 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
28174 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28175 (eval $ac_try) 2>&5
28176 ac_status=$?
28177 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28178 test $ac_status = 0; }; }
28179 then
28180 gcc_cv_as_powerpc_vsx=yes
28181 else
28182 echo "configure: failed program was" >&5
28183 cat conftest.s >&5
28185 rm -f conftest.o conftest.s
28188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
28189 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
28190 if test $gcc_cv_as_powerpc_vsx = yes; then
28192 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
28197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
28198 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
28199 if ${gcc_cv_as_powerpc_gnu_attribute+:} false; then :
28200 $as_echo_n "(cached) " >&6
28201 else
28202 gcc_cv_as_powerpc_gnu_attribute=no
28203 if test x$gcc_cv_as != x; then
28204 $as_echo '.gnu_attribute 4,1' > conftest.s
28205 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28206 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28207 (eval $ac_try) 2>&5
28208 ac_status=$?
28209 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28210 test $ac_status = 0; }; }
28211 then
28212 gcc_cv_as_powerpc_gnu_attribute=yes
28213 else
28214 echo "configure: failed program was" >&5
28215 cat conftest.s >&5
28217 rm -f conftest.o conftest.s
28220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
28221 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
28222 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
28224 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
28229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for prologue entry point marker support" >&5
28230 $as_echo_n "checking assembler for prologue entry point marker support... " >&6; }
28231 if ${gcc_cv_as_powerpc_entry_markers+:} false; then :
28232 $as_echo_n "(cached) " >&6
28233 else
28234 gcc_cv_as_powerpc_entry_markers=no
28235 if test x$gcc_cv_as != x; then
28236 $as_echo ' .reloc .,R_PPC64_ENTRY; nop' > conftest.s
28237 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a64 --fatal-warnings -o conftest.o conftest.s >&5'
28238 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28239 (eval $ac_try) 2>&5
28240 ac_status=$?
28241 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28242 test $ac_status = 0; }; }
28243 then
28244 gcc_cv_as_powerpc_entry_markers=yes
28245 else
28246 echo "configure: failed program was" >&5
28247 cat conftest.s >&5
28249 rm -f conftest.o conftest.s
28252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_entry_markers" >&5
28253 $as_echo "$gcc_cv_as_powerpc_entry_markers" >&6; }
28254 if test $gcc_cv_as_powerpc_entry_markers = yes; then
28256 $as_echo "#define HAVE_AS_ENTRY_MARKERS 1" >>confdefs.h
28261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for plt sequence marker support" >&5
28262 $as_echo_n "checking assembler for plt sequence marker support... " >&6; }
28263 if ${gcc_cv_as_powerpc_pltseq_markers+:} false; then :
28264 $as_echo_n "(cached) " >&6
28265 else
28266 gcc_cv_as_powerpc_pltseq_markers=no
28267 if test x$gcc_cv_as != x; then
28268 $as_echo ' .reloc .,R_PPC_PLTSEQ; nop' > conftest.s
28269 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 --fatal-warnings -o conftest.o conftest.s >&5'
28270 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28271 (eval $ac_try) 2>&5
28272 ac_status=$?
28273 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28274 test $ac_status = 0; }; }
28275 then
28276 gcc_cv_as_powerpc_pltseq_markers=yes
28277 else
28278 echo "configure: failed program was" >&5
28279 cat conftest.s >&5
28281 rm -f conftest.o conftest.s
28284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_pltseq_markers" >&5
28285 $as_echo "$gcc_cv_as_powerpc_pltseq_markers" >&6; }
28286 if test $gcc_cv_as_powerpc_pltseq_markers = yes; then
28288 $as_echo "#define HAVE_AS_PLTSEQ 1" >>confdefs.h
28293 case $target in
28294 *-*-aix*)
28295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX .ref support" >&5
28296 $as_echo_n "checking assembler for AIX .ref support... " >&6; }
28297 if ${gcc_cv_as_aix_ref+:} false; then :
28298 $as_echo_n "(cached) " >&6
28299 else
28300 gcc_cv_as_aix_ref=no
28301 if test x$gcc_cv_as != x; then
28302 $as_echo ' .csect stuff[rw]
28303 stuff:
28304 .long 1
28305 .extern sym
28306 .ref sym
28307 ' > conftest.s
28308 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28309 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28310 (eval $ac_try) 2>&5
28311 ac_status=$?
28312 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28313 test $ac_status = 0; }; }
28314 then
28315 gcc_cv_as_aix_ref=yes
28316 else
28317 echo "configure: failed program was" >&5
28318 cat conftest.s >&5
28320 rm -f conftest.o conftest.s
28323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
28324 $as_echo "$gcc_cv_as_aix_ref" >&6; }
28325 if test $gcc_cv_as_aix_ref = yes; then
28327 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
28332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX DWARF location lists section support" >&5
28333 $as_echo_n "checking assembler for AIX DWARF location lists section support... " >&6; }
28334 if ${gcc_cv_as_aix_dwloc+:} false; then :
28335 $as_echo_n "(cached) " >&6
28336 else
28337 gcc_cv_as_aix_dwloc=no
28338 if test x$gcc_cv_as != x; then
28339 $as_echo ' .dwsect 0xA0000
28340 Lframe..0:
28341 .vbyte 4,Lframe..0
28342 ' > conftest.s
28343 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28344 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28345 (eval $ac_try) 2>&5
28346 ac_status=$?
28347 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28348 test $ac_status = 0; }; }
28349 then
28350 gcc_cv_as_aix_dwloc=yes
28351 else
28352 echo "configure: failed program was" >&5
28353 cat conftest.s >&5
28355 rm -f conftest.o conftest.s
28358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_dwloc" >&5
28359 $as_echo "$gcc_cv_as_aix_dwloc" >&6; }
28360 if test $gcc_cv_as_aix_dwloc = yes; then
28362 $as_echo "#define HAVE_XCOFF_DWARF_EXTRAS 1" >>confdefs.h
28367 esac
28370 mips*-*-*)
28371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
28372 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
28373 if ${gcc_cv_as_mips_explicit_relocs+:} false; then :
28374 $as_echo_n "(cached) " >&6
28375 else
28376 gcc_cv_as_mips_explicit_relocs=no
28377 if test x$gcc_cv_as != x; then
28378 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
28379 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28380 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28381 (eval $ac_try) 2>&5
28382 ac_status=$?
28383 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28384 test $ac_status = 0; }; }
28385 then
28386 gcc_cv_as_mips_explicit_relocs=yes
28387 else
28388 echo "configure: failed program was" >&5
28389 cat conftest.s >&5
28391 rm -f conftest.o conftest.s
28394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
28395 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
28396 if test $gcc_cv_as_mips_explicit_relocs = yes; then
28397 if test x$target_cpu_default = x
28398 then target_cpu_default=MASK_EXPLICIT_RELOCS
28399 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
28404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
28405 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
28406 if ${gcc_cv_as_mips_no_shared+:} false; then :
28407 $as_echo_n "(cached) " >&6
28408 else
28409 gcc_cv_as_mips_no_shared=no
28410 if test x$gcc_cv_as != x; then
28411 $as_echo 'nop' > conftest.s
28412 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
28413 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28414 (eval $ac_try) 2>&5
28415 ac_status=$?
28416 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28417 test $ac_status = 0; }; }
28418 then
28419 gcc_cv_as_mips_no_shared=yes
28420 else
28421 echo "configure: failed program was" >&5
28422 cat conftest.s >&5
28424 rm -f conftest.o conftest.s
28427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
28428 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
28429 if test $gcc_cv_as_mips_no_shared = yes; then
28431 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
28436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
28437 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
28438 if ${gcc_cv_as_mips_gnu_attribute+:} false; then :
28439 $as_echo_n "(cached) " >&6
28440 else
28441 gcc_cv_as_mips_gnu_attribute=no
28442 if test x$gcc_cv_as != x; then
28443 $as_echo '.gnu_attribute 4,1' > conftest.s
28444 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28445 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28446 (eval $ac_try) 2>&5
28447 ac_status=$?
28448 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28449 test $ac_status = 0; }; }
28450 then
28451 gcc_cv_as_mips_gnu_attribute=yes
28452 else
28453 echo "configure: failed program was" >&5
28454 cat conftest.s >&5
28456 rm -f conftest.o conftest.s
28459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
28460 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
28461 if test $gcc_cv_as_mips_gnu_attribute = yes; then
28463 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
28468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .module support" >&5
28469 $as_echo_n "checking assembler for .module support... " >&6; }
28470 if ${gcc_cv_as_mips_dot_module+:} false; then :
28471 $as_echo_n "(cached) " >&6
28472 else
28473 gcc_cv_as_mips_dot_module=no
28474 if test x$gcc_cv_as != x; then
28475 $as_echo '.module mips2
28476 .module fp=xx' > conftest.s
28477 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -32 -o conftest.o conftest.s >&5'
28478 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28479 (eval $ac_try) 2>&5
28480 ac_status=$?
28481 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28482 test $ac_status = 0; }; }
28483 then
28484 gcc_cv_as_mips_dot_module=yes
28485 else
28486 echo "configure: failed program was" >&5
28487 cat conftest.s >&5
28489 rm -f conftest.o conftest.s
28492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dot_module" >&5
28493 $as_echo "$gcc_cv_as_mips_dot_module" >&6; }
28494 if test $gcc_cv_as_mips_dot_module = yes; then
28496 $as_echo "#define HAVE_AS_DOT_MODULE 1" >>confdefs.h
28500 if test x$gcc_cv_as_mips_dot_module = xno \
28501 && test x$with_fp_32 != x; then
28502 as_fn_error $? "Requesting --with-fp-32= requires assembler support for .module." "$LINENO" 5
28505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .micromips support" >&5
28506 $as_echo_n "checking assembler for .micromips support... " >&6; }
28507 if ${gcc_cv_as_micromips_support+:} false; then :
28508 $as_echo_n "(cached) " >&6
28509 else
28510 gcc_cv_as_micromips_support=no
28511 if test x$gcc_cv_as != x; then
28512 $as_echo '.set micromips' > conftest.s
28513 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
28514 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28515 (eval $ac_try) 2>&5
28516 ac_status=$?
28517 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28518 test $ac_status = 0; }; }
28519 then
28520 gcc_cv_as_micromips_support=yes
28521 else
28522 echo "configure: failed program was" >&5
28523 cat conftest.s >&5
28525 rm -f conftest.o conftest.s
28528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_micromips_support" >&5
28529 $as_echo "$gcc_cv_as_micromips_support" >&6; }
28530 if test $gcc_cv_as_micromips_support = yes; then
28532 $as_echo "#define HAVE_GAS_MICROMIPS 1" >>confdefs.h
28537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
28538 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
28539 if ${gcc_cv_as_mips_dtprelword+:} false; then :
28540 $as_echo_n "(cached) " >&6
28541 else
28542 gcc_cv_as_mips_dtprelword=no
28543 if test x$gcc_cv_as != x; then
28544 $as_echo '.section .tdata,"awT",@progbits
28546 .word 2
28547 .text
28548 .dtprelword x+0x8000' > conftest.s
28549 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28550 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28551 (eval $ac_try) 2>&5
28552 ac_status=$?
28553 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28554 test $ac_status = 0; }; }
28555 then
28556 gcc_cv_as_mips_dtprelword=yes
28557 else
28558 echo "configure: failed program was" >&5
28559 cat conftest.s >&5
28561 rm -f conftest.o conftest.s
28564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
28565 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
28566 if test $gcc_cv_as_mips_dtprelword = yes; then
28568 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
28573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
28574 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
28575 if ${gcc_cv_as_mips_dspr1_mult+:} false; then :
28576 $as_echo_n "(cached) " >&6
28577 else
28578 gcc_cv_as_mips_dspr1_mult=no
28579 if test x$gcc_cv_as != x; then
28580 $as_echo ' .set mips32r2
28581 .set nodspr2
28582 .set dsp
28583 madd $ac3,$4,$5
28584 maddu $ac3,$4,$5
28585 msub $ac3,$4,$5
28586 msubu $ac3,$4,$5
28587 mult $ac3,$4,$5
28588 multu $ac3,$4,$5' > conftest.s
28589 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28590 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28591 (eval $ac_try) 2>&5
28592 ac_status=$?
28593 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28594 test $ac_status = 0; }; }
28595 then
28596 gcc_cv_as_mips_dspr1_mult=yes
28597 else
28598 echo "configure: failed program was" >&5
28599 cat conftest.s >&5
28601 rm -f conftest.o conftest.s
28604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
28605 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
28606 if test $gcc_cv_as_mips_dspr1_mult = yes; then
28608 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
28613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
28614 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
28615 gcc_cv_as_ld_jalr_reloc=no
28616 if test $gcc_cv_as_mips_explicit_relocs = yes; then
28617 if test $in_tree_ld = yes ; then
28618 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 \
28619 && test $in_tree_ld_is_elf = yes; then
28620 gcc_cv_as_ld_jalr_reloc=yes
28622 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
28623 echo ' .ent x' > conftest.s
28624 echo 'x: lw $2,%got_disp(y)($3)' >> conftest.s
28625 echo ' lw $25,%call16(y)($28)' >> conftest.s
28626 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
28627 echo '1: jalr $25' >> conftest.s
28628 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
28629 echo '1: jalr $25' >> conftest.s
28630 echo ' .end x' >> conftest.s
28631 if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
28632 && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
28633 if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
28634 && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
28635 gcc_cv_as_ld_jalr_reloc=yes
28638 rm -f conftest.*
28641 if test $gcc_cv_as_ld_jalr_reloc = yes; then
28642 if test x$target_cpu_default = x; then
28643 target_cpu_default=MASK_RELAX_PIC_CALLS
28644 else
28645 target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
28648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
28649 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
28651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
28652 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
28653 if ${gcc_cv_ld_mips_personality_relaxation+:} false; then :
28654 $as_echo_n "(cached) " >&6
28655 else
28656 gcc_cv_ld_mips_personality_relaxation=no
28657 if test $in_tree_ld = yes ; then
28658 if test "$gcc_cv_gld_major_version" -eq 2 \
28659 -a "$gcc_cv_gld_minor_version" -ge 21 \
28660 -o "$gcc_cv_gld_major_version" -gt 2; then
28661 gcc_cv_ld_mips_personality_relaxation=yes
28663 elif test x$gcc_cv_as != x \
28664 -a x$gcc_cv_ld != x \
28665 -a x$gcc_cv_readelf != x ; then
28666 cat > conftest.s <<EOF
28667 .cfi_startproc
28668 .cfi_personality 0x80,indirect_ptr
28669 .ent test
28670 test:
28672 .end test
28673 .cfi_endproc
28675 .section .data,"aw",@progbits
28676 indirect_ptr:
28677 .dc.a personality
28679 if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
28680 && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
28681 if $gcc_cv_readelf -d conftest 2>&1 \
28682 | grep TEXTREL > /dev/null 2>&1; then
28684 elif $gcc_cv_readelf --relocs conftest 2>&1 \
28685 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
28687 else
28688 gcc_cv_ld_mips_personality_relaxation=yes
28692 rm -f conftest.s conftest.o conftest
28694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
28695 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
28696 if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
28698 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
28702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mnan= support" >&5
28703 $as_echo_n "checking assembler for -mnan= support... " >&6; }
28704 if ${gcc_cv_as_mips_nan+:} false; then :
28705 $as_echo_n "(cached) " >&6
28706 else
28707 gcc_cv_as_mips_nan=no
28708 if test x$gcc_cv_as != x; then
28709 $as_echo '' > conftest.s
28710 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mnan=2008 -o conftest.o conftest.s >&5'
28711 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28712 (eval $ac_try) 2>&5
28713 ac_status=$?
28714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28715 test $ac_status = 0; }; }
28716 then
28717 gcc_cv_as_mips_nan=yes
28718 else
28719 echo "configure: failed program was" >&5
28720 cat conftest.s >&5
28722 rm -f conftest.o conftest.s
28725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_nan" >&5
28726 $as_echo "$gcc_cv_as_mips_nan" >&6; }
28727 if test $gcc_cv_as_mips_nan = yes; then
28729 $as_echo "#define HAVE_AS_NAN 1" >>confdefs.h
28733 if test x$gcc_cv_as_mips_nan = xno \
28734 && test x$with_nan != x; then
28735 as_fn_error $? "Requesting --with-nan= requires assembler support for -mnan=" "$LINENO" 5
28738 msp430-*-*)
28739 # Earlier GAS versions generically support .gnu_attribute, but the
28740 # msp430 assembler will not do anything with it.
28741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
28742 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
28743 if ${gcc_cv_as_msp430_gnu_attribute+:} false; then :
28744 $as_echo_n "(cached) " >&6
28745 else
28746 gcc_cv_as_msp430_gnu_attribute=no
28747 if test x$gcc_cv_as != x; then
28748 $as_echo '.gnu_attribute 4,1' > conftest.s
28749 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28750 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28751 (eval $ac_try) 2>&5
28752 ac_status=$?
28753 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28754 test $ac_status = 0; }; }
28755 then
28756 gcc_cv_as_msp430_gnu_attribute=yes
28757 else
28758 echo "configure: failed program was" >&5
28759 cat conftest.s >&5
28761 rm -f conftest.o conftest.s
28764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_msp430_gnu_attribute" >&5
28765 $as_echo "$gcc_cv_as_msp430_gnu_attribute" >&6; }
28766 if test $gcc_cv_as_msp430_gnu_attribute = yes; then
28768 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
28772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .mspabi_attribute support" >&5
28773 $as_echo_n "checking assembler for .mspabi_attribute support... " >&6; }
28774 if ${gcc_cv_as_msp430_mspabi_attribute+:} false; then :
28775 $as_echo_n "(cached) " >&6
28776 else
28777 gcc_cv_as_msp430_mspabi_attribute=no
28778 if test x$gcc_cv_as != x; then
28779 $as_echo '.mspabi_attribute 4,2' > conftest.s
28780 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28781 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28782 (eval $ac_try) 2>&5
28783 ac_status=$?
28784 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28785 test $ac_status = 0; }; }
28786 then
28787 gcc_cv_as_msp430_mspabi_attribute=yes
28788 else
28789 echo "configure: failed program was" >&5
28790 cat conftest.s >&5
28792 rm -f conftest.o conftest.s
28795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_msp430_mspabi_attribute" >&5
28796 $as_echo "$gcc_cv_as_msp430_mspabi_attribute" >&6; }
28797 if test $gcc_cv_as_msp430_mspabi_attribute = yes; then
28799 $as_echo "#define HAVE_AS_MSPABI_ATTRIBUTE 1" >>confdefs.h
28803 if test x$enable_newlib_nano_formatted_io = xyes; then
28805 $as_echo "#define HAVE_NEWLIB_NANO_FORMATTED_IO 1" >>confdefs.h
28809 nios2-*-*)
28810 # Versions 2.33 and earlier lacked support for the %gotoff relocation
28811 # syntax that is documented in the ABI specification.
28812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for support for %gotoff relocations in constant data" >&5
28813 $as_echo_n "checking assembler for support for %gotoff relocations in constant data... " >&6; }
28814 if ${gcc_cv_as_nios2_gotoff_relocation+:} false; then :
28815 $as_echo_n "(cached) " >&6
28816 else
28817 gcc_cv_as_nios2_gotoff_relocation=no
28818 if test x$gcc_cv_as != x; then
28819 $as_echo ' .extern foo
28820 .data
28821 .long %gotoff(foo)' > conftest.s
28822 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28823 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28824 (eval $ac_try) 2>&5
28825 ac_status=$?
28826 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28827 test $ac_status = 0; }; }
28828 then
28829 gcc_cv_as_nios2_gotoff_relocation=yes
28830 else
28831 echo "configure: failed program was" >&5
28832 cat conftest.s >&5
28834 rm -f conftest.o conftest.s
28837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nios2_gotoff_relocation" >&5
28838 $as_echo "$gcc_cv_as_nios2_gotoff_relocation" >&6; }
28839 if test $gcc_cv_as_nios2_gotoff_relocation = yes; then
28841 $as_echo "#define HAVE_AS_NIOS2_GOTOFF_RELOCATION 1" >>confdefs.h
28846 riscv*-*-*)
28847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .attribute support" >&5
28848 $as_echo_n "checking assembler for .attribute support... " >&6; }
28849 if ${gcc_cv_as_riscv_attribute+:} false; then :
28850 $as_echo_n "(cached) " >&6
28851 else
28852 gcc_cv_as_riscv_attribute=no
28853 if test x$gcc_cv_as != x; then
28854 $as_echo '.attribute stack_align,4' > conftest.s
28855 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -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_riscv_attribute=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_riscv_attribute" >&5
28871 $as_echo "$gcc_cv_as_riscv_attribute" >&6; }
28872 if test $gcc_cv_as_riscv_attribute = yes; then
28874 $as_echo "#define HAVE_AS_RISCV_ATTRIBUTE 1" >>confdefs.h
28878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -misa-spec= support" >&5
28879 $as_echo_n "checking assembler for -misa-spec= support... " >&6; }
28880 if ${gcc_cv_as_riscv_isa_spec+:} false; then :
28881 $as_echo_n "(cached) " >&6
28882 else
28883 gcc_cv_as_riscv_isa_spec=no
28884 if test x$gcc_cv_as != x; then
28885 $as_echo '' > conftest.s
28886 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -misa-spec=2.2 -o conftest.o conftest.s >&5'
28887 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28888 (eval $ac_try) 2>&5
28889 ac_status=$?
28890 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28891 test $ac_status = 0; }; }
28892 then
28893 gcc_cv_as_riscv_isa_spec=yes
28894 else
28895 echo "configure: failed program was" >&5
28896 cat conftest.s >&5
28898 rm -f conftest.o conftest.s
28901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_riscv_isa_spec" >&5
28902 $as_echo "$gcc_cv_as_riscv_isa_spec" >&6; }
28903 if test $gcc_cv_as_riscv_isa_spec = yes; then
28905 $as_echo "#define HAVE_AS_MISA_SPEC 1" >>confdefs.h
28909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -march=rv32i_zifencei support" >&5
28910 $as_echo_n "checking assembler for -march=rv32i_zifencei support... " >&6; }
28911 if ${gcc_cv_as_riscv_march_zifencei+:} false; then :
28912 $as_echo_n "(cached) " >&6
28913 else
28914 gcc_cv_as_riscv_march_zifencei=no
28915 if test x$gcc_cv_as != x; then
28916 $as_echo '' > conftest.s
28917 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -march=rv32i_zifencei2p0 -o conftest.o conftest.s >&5'
28918 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28919 (eval $ac_try) 2>&5
28920 ac_status=$?
28921 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28922 test $ac_status = 0; }; }
28923 then
28924 gcc_cv_as_riscv_march_zifencei=yes
28925 else
28926 echo "configure: failed program was" >&5
28927 cat conftest.s >&5
28929 rm -f conftest.o conftest.s
28932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_riscv_march_zifencei" >&5
28933 $as_echo "$gcc_cv_as_riscv_march_zifencei" >&6; }
28934 if test $gcc_cv_as_riscv_march_zifencei = yes; then
28936 $as_echo "#define HAVE_AS_MARCH_ZIFENCEI 1" >>confdefs.h
28941 loongarch*-*-*)
28942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
28943 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
28944 if ${gcc_cv_as_loongarch_dtprelword+:} false; then :
28945 $as_echo_n "(cached) " >&6
28946 else
28947 gcc_cv_as_loongarch_dtprelword=no
28948 if test x$gcc_cv_as != x; then
28949 $as_echo '' > conftest.s
28950 if { ac_try='$gcc_cv_as $gcc_cv_as_flags 2,18,0 -o conftest.o conftest.s >&5'
28951 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28952 (eval $ac_try) 2>&5
28953 ac_status=$?
28954 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28955 test $ac_status = 0; }; }
28956 then
28957 .section .tdata,"awT",@progbits
28959 .word 2
28960 .text
28961 .dtprelword x+0x8000
28962 else
28963 echo "configure: failed program was" >&5
28964 cat conftest.s >&5
28966 rm -f conftest.o conftest.s
28969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_loongarch_dtprelword" >&5
28970 $as_echo "$gcc_cv_as_loongarch_dtprelword" >&6; }
28972 if test $gcc_cv_as_loongarch_dtprelword != yes; then
28974 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
28977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
28978 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
28979 if ${gcc_cv_as_loongarch_explicit_relocs+:} false; then :
28980 $as_echo_n "(cached) " >&6
28981 else
28982 gcc_cv_as_loongarch_explicit_relocs=no
28983 if test x$gcc_cv_as != x; then
28984 $as_echo 'a:pcalau12i $t0,%pc_hi20(a)' > conftest.s
28985 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28986 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28987 (eval $ac_try) 2>&5
28988 ac_status=$?
28989 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28990 test $ac_status = 0; }; }
28991 then
28992 gcc_cv_as_loongarch_explicit_relocs=yes
28993 else
28994 echo "configure: failed program was" >&5
28995 cat conftest.s >&5
28997 rm -f conftest.o conftest.s
29000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_loongarch_explicit_relocs" >&5
29001 $as_echo "$gcc_cv_as_loongarch_explicit_relocs" >&6; }
29002 if test $gcc_cv_as_loongarch_explicit_relocs = yes; then
29004 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
29008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame pcrel encoding support" >&5
29009 $as_echo_n "checking assembler for eh_frame pcrel encoding support... " >&6; }
29010 if ${gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support+:} false; then :
29011 $as_echo_n "(cached) " >&6
29012 else
29013 gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support=no
29014 if test x$gcc_cv_as != x; then
29015 $as_echo '.cfi_startproc
29016 .cfi_personality 0x9b,a
29017 .cfi_lsda 0x1b,b
29018 .cfi_endproc' > conftest.s
29019 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29020 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29021 (eval $ac_try) 2>&5
29022 ac_status=$?
29023 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29024 test $ac_status = 0; }; }
29025 then
29026 gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support=yes
29027 else
29028 echo "configure: failed program was" >&5
29029 cat conftest.s >&5
29031 rm -f conftest.o conftest.s
29034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support" >&5
29035 $as_echo "$gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support" >&6; }
29036 if test $gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support = yes; then
29038 $as_echo "#define HAVE_AS_EH_FRAME_PCREL_ENCODING_SUPPORT 1" >>confdefs.h
29043 s390*-*-*)
29044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
29045 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
29046 if ${gcc_cv_as_s390_gnu_attribute+:} false; then :
29047 $as_echo_n "(cached) " >&6
29048 else
29049 gcc_cv_as_s390_gnu_attribute=no
29050 if test x$gcc_cv_as != x; then
29051 $as_echo '.gnu_attribute 8,1' > conftest.s
29052 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29053 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29054 (eval $ac_try) 2>&5
29055 ac_status=$?
29056 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29057 test $ac_status = 0; }; }
29058 then
29059 gcc_cv_as_s390_gnu_attribute=yes
29060 else
29061 echo "configure: failed program was" >&5
29062 cat conftest.s >&5
29064 rm -f conftest.o conftest.s
29067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_gnu_attribute" >&5
29068 $as_echo "$gcc_cv_as_s390_gnu_attribute" >&6; }
29069 if test $gcc_cv_as_s390_gnu_attribute = yes; then
29071 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
29075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine and .machinemode support" >&5
29076 $as_echo_n "checking assembler for .machine and .machinemode support... " >&6; }
29077 if ${gcc_cv_as_s390_machine_machinemode+:} false; then :
29078 $as_echo_n "(cached) " >&6
29079 else
29080 gcc_cv_as_s390_machine_machinemode=no
29081 if test x$gcc_cv_as != x; then
29082 $as_echo ' .machinemode push
29083 .machinemode pop
29084 .machine push
29085 .machine pop' > conftest.s
29086 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29087 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29088 (eval $ac_try) 2>&5
29089 ac_status=$?
29090 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29091 test $ac_status = 0; }; }
29092 then
29093 gcc_cv_as_s390_machine_machinemode=yes
29094 else
29095 echo "configure: failed program was" >&5
29096 cat conftest.s >&5
29098 rm -f conftest.o conftest.s
29101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_machine_machinemode" >&5
29102 $as_echo "$gcc_cv_as_s390_machine_machinemode" >&6; }
29103 if test $gcc_cv_as_s390_machine_machinemode = yes; then
29105 $as_echo "#define HAVE_AS_MACHINE_MACHINEMODE 1" >>confdefs.h
29109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for architecture modifiers support" >&5
29110 $as_echo_n "checking assembler for architecture modifiers support... " >&6; }
29111 if ${gcc_cv_as_s390_architecture_modifiers+:} false; then :
29112 $as_echo_n "(cached) " >&6
29113 else
29114 gcc_cv_as_s390_architecture_modifiers=no
29115 if test x$gcc_cv_as != x; then
29116 $as_echo ' .machine z13+vx ' > conftest.s
29117 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29118 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29119 (eval $ac_try) 2>&5
29120 ac_status=$?
29121 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29122 test $ac_status = 0; }; }
29123 then
29124 gcc_cv_as_s390_architecture_modifiers=yes
29125 else
29126 echo "configure: failed program was" >&5
29127 cat conftest.s >&5
29129 rm -f conftest.o conftest.s
29132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_architecture_modifiers" >&5
29133 $as_echo "$gcc_cv_as_s390_architecture_modifiers" >&6; }
29134 if test $gcc_cv_as_s390_architecture_modifiers = yes; then
29136 $as_echo "#define HAVE_AS_ARCHITECTURE_MODIFIERS 1" >>confdefs.h
29140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector load/store alignment hints" >&5
29141 $as_echo_n "checking assembler for vector load/store alignment hints... " >&6; }
29142 if ${gcc_cv_as_s390_vector_loadstore_alignment_hints+:} false; then :
29143 $as_echo_n "(cached) " >&6
29144 else
29145 gcc_cv_as_s390_vector_loadstore_alignment_hints=no
29146 if test x$gcc_cv_as != x; then
29147 $as_echo ' vl %v24,0(%r15),3 ' > conftest.s
29148 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29149 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29150 (eval $ac_try) 2>&5
29151 ac_status=$?
29152 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29153 test $ac_status = 0; }; }
29154 then
29155 gcc_cv_as_s390_vector_loadstore_alignment_hints=yes
29156 else
29157 echo "configure: failed program was" >&5
29158 cat conftest.s >&5
29160 rm -f conftest.o conftest.s
29163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_vector_loadstore_alignment_hints" >&5
29164 $as_echo "$gcc_cv_as_s390_vector_loadstore_alignment_hints" >&6; }
29165 if test $gcc_cv_as_s390_vector_loadstore_alignment_hints = yes; then
29167 $as_echo "#define HAVE_AS_VECTOR_LOADSTORE_ALIGNMENT_HINTS 1" >>confdefs.h
29171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector load/store alignment hints on z13" >&5
29172 $as_echo_n "checking assembler for vector load/store alignment hints on z13... " >&6; }
29173 if ${gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13+:} false; then :
29174 $as_echo_n "(cached) " >&6
29175 else
29176 gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13=no
29177 if test x$gcc_cv_as != x; then
29178 $as_echo ' vl %v24,0(%r15),3 ' > conftest.s
29179 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mzarch -march=z13 -o conftest.o conftest.s >&5'
29180 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29181 (eval $ac_try) 2>&5
29182 ac_status=$?
29183 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29184 test $ac_status = 0; }; }
29185 then
29186 gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13=yes
29187 else
29188 echo "configure: failed program was" >&5
29189 cat conftest.s >&5
29191 rm -f conftest.o conftest.s
29194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13" >&5
29195 $as_echo "$gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13" >&6; }
29196 if test $gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13 = yes; then
29198 $as_echo "#define HAVE_AS_VECTOR_LOADSTORE_ALIGNMENT_HINTS_ON_Z13 1" >>confdefs.h
29204 esac
29206 # Mips, LoongArch and HP-UX need the GNU assembler.
29207 # Linux on IA64 might be able to use the Intel assembler.
29209 case "$target" in
29210 mips*-*-* | loongarch*-*-* | *-*-hpux* )
29211 if test x$gas_flag = xyes \
29212 || test x"$host" != x"$build" \
29213 || test ! -x "$gcc_cv_as" \
29214 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
29216 else
29217 echo "*** This configuration requires the GNU assembler" >&2
29218 exit 1
29221 esac
29223 # AMD GCN needs the LLVM assembler and linker.
29224 # Test that LLVM is at least 13.0.1.
29225 case "$target" in
29226 amdgcn-* | gcn-*)
29227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking llvm assembler version" >&5
29228 $as_echo_n "checking llvm assembler version... " >&6; }
29229 gcc_cv_as_version="unknown"
29230 if test x$gcc_cv_as != x; then
29231 gcc_cv_as_version=`$gcc_cv_as --version 2>&1 | sed -ne '/version/s/.* \([0-9]\)/\1/p' || echo error`
29232 case "$gcc_cv_as_version" in
29233 13.0.[1-9]*) ;; # 13.0.1+
29234 13.[1-9]*) ;; # 13.1+
29235 1[4-9]*) ;; # 14..19
29236 [2-9][0-9]*) ;; # 20..99
29237 [1-9][0-9][0-9]*) ;; # 100+
29238 error) as_fn_error $? "cannot determine LLVM version" "$LINENO" 5 ;;
29239 *) as_fn_error $? "LLVM 13.0.1 or later is required (found LLVM $gcc_cv_as_version)" "$LINENO" 5 ;;
29240 esac
29242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_version, ok" >&5
29243 $as_echo "$gcc_cv_as_version, ok" >&6; }
29245 esac
29247 case "$target" in
29248 arm*)
29249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembler for arm accepts context-specific architecture extensions" >&5
29250 $as_echo_n "checking assembler for assembler for arm accepts context-specific architecture extensions... " >&6; }
29251 if ${gcc_cv_as_arm_option_extensions+:} false; then :
29252 $as_echo_n "(cached) " >&6
29253 else
29254 gcc_cv_as_arm_option_extensions=no
29255 if test x$gcc_cv_as != x; then
29256 $as_echo '.text
29257 .thumb
29258 .syntax unified
29259 vmov.f32 s0, s1' > conftest.s
29260 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -march=armv8.1-m.main+mve -o conftest.o conftest.s >&5'
29261 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29262 (eval $ac_try) 2>&5
29263 ac_status=$?
29264 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29265 test $ac_status = 0; }; }
29266 then
29267 gcc_cv_as_arm_option_extensions=yes
29268 else
29269 echo "configure: failed program was" >&5
29270 cat conftest.s >&5
29272 rm -f conftest.o conftest.s
29275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_arm_option_extensions" >&5
29276 $as_echo "$gcc_cv_as_arm_option_extensions" >&6; }
29277 if test $gcc_cv_as_arm_option_extensions = yes; then
29279 $as_echo "#define HAVE_GAS_ARM_EXTENDED_ARCH 1" >>confdefs.h
29283 esac
29285 # ??? Not all targets support dwarf2 debug_line, even within a version
29286 # of gas. Moreover, we need to emit a valid instruction to trigger any
29287 # info to the output file. So, as supported targets are added to gas 2.11,
29288 # add some instruction here to (also) show we expect this might work.
29289 # ??? Once 2.11 is released, probably need to add first known working
29290 # version to the per-target configury.
29291 case "$cpu_type" in
29292 aarch64 | alpha | arc | arm | avr | bfin | cris | csky | i386 | loongarch | m32c \
29293 | m68k | microblaze | mips | nds32 | nios2 | pa | riscv | rs6000 | score | sparc \
29294 | visium | xstormy16 | xtensa)
29295 insn="nop"
29297 ia64 | s390)
29298 insn="nop 0"
29300 mmix)
29301 insn="swym 0"
29303 esac
29304 if test x"$insn" != x; then
29305 conftest_s="\
29306 .file 1 \"conftest.s\"
29307 .loc 1 3 0
29308 $insn"
29309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
29310 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
29311 if ${gcc_cv_as_dwarf2_debug_line+:} false; then :
29312 $as_echo_n "(cached) " >&6
29313 else
29314 gcc_cv_as_dwarf2_debug_line=no
29315 if test x$gcc_cv_as != x; then
29316 $as_echo "$conftest_s" > conftest.s
29317 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29318 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29319 (eval $ac_try) 2>&5
29320 ac_status=$?
29321 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29322 test $ac_status = 0; }; }
29323 then
29324 if test x$gcc_cv_objdump != x \
29325 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
29326 | grep debug_line > /dev/null 2>&1; then
29327 gcc_cv_as_dwarf2_debug_line=yes
29328 elif test x$gcc_cv_otool != x \
29329 && $gcc_cv_otool -l conftest.o 2> /dev/null \
29330 | grep debug_line > /dev/null 2>&1; then
29331 gcc_cv_as_dwarf2_debug_line=yes
29333 else
29334 echo "configure: failed program was" >&5
29335 cat conftest.s >&5
29337 rm -f conftest.o conftest.s
29340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
29341 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
29345 # The .debug_line file table must be in the exact order that
29346 # we specified the files, since these indices are also used
29347 # by DW_AT_decl_file. Approximate this test by testing if
29348 # the assembler bitches if the same index is assigned twice.
29349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
29350 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
29351 if ${gcc_cv_as_dwarf2_file_buggy+:} false; then :
29352 $as_echo_n "(cached) " >&6
29353 else
29354 gcc_cv_as_dwarf2_file_buggy=no
29355 if test x$gcc_cv_as != x; then
29356 $as_echo ' .file 1 "foo.s"
29357 .file 1 "bar.s"' > conftest.s
29358 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29359 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29360 (eval $ac_try) 2>&5
29361 ac_status=$?
29362 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29363 test $ac_status = 0; }; }
29364 then
29365 gcc_cv_as_dwarf2_file_buggy=yes
29366 else
29367 echo "configure: failed program was" >&5
29368 cat conftest.s >&5
29370 rm -f conftest.o conftest.s
29373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
29374 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
29378 if test $gcc_cv_as_dwarf2_debug_line = yes \
29379 && test $gcc_cv_as_dwarf2_file_buggy = no; then
29381 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
29384 if test $gcc_cv_as_leb128 = yes; then
29385 conftest_s="\
29386 .file 1 \"conftest.s\"
29387 .loc 1 3 0 view .LVU1
29388 $insn
29389 .data
29390 .uleb128 .LVU1
29391 .uleb128 .LVU1
29393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_view support" >&5
29394 $as_echo_n "checking assembler for dwarf2 debug_view support... " >&6; }
29395 if ${gcc_cv_as_dwarf2_debug_view+:} false; then :
29396 $as_echo_n "(cached) " >&6
29397 else
29398 gcc_cv_as_dwarf2_debug_view=no
29399 if test x$gcc_cv_as != x; then
29400 $as_echo "$conftest_s" > conftest.s
29401 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29402 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29403 (eval $ac_try) 2>&5
29404 ac_status=$?
29405 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29406 test $ac_status = 0; }; }
29407 then
29408 gcc_cv_as_dwarf2_debug_view=yes
29409 else
29410 echo "configure: failed program was" >&5
29411 cat conftest.s >&5
29413 rm -f conftest.o conftest.s
29416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_view" >&5
29417 $as_echo "$gcc_cv_as_dwarf2_debug_view" >&6; }
29418 if test $gcc_cv_as_dwarf2_debug_view = yes; then
29420 $as_echo "#define HAVE_AS_DWARF2_DEBUG_VIEW 1" >>confdefs.h
29427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
29428 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
29429 if ${gcc_cv_as_gdwarf2_flag+:} false; then :
29430 $as_echo_n "(cached) " >&6
29431 else
29432 gcc_cv_as_gdwarf2_flag=no
29433 if test x$gcc_cv_as != x; then
29434 $as_echo "$insn" > conftest.s
29435 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
29436 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29437 (eval $ac_try) 2>&5
29438 ac_status=$?
29439 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29440 test $ac_status = 0; }; }
29441 then
29442 gcc_cv_as_gdwarf2_flag=yes
29443 else
29444 echo "configure: failed program was" >&5
29445 cat conftest.s >&5
29447 rm -f conftest.o conftest.s
29450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
29451 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
29452 if test $gcc_cv_as_gdwarf2_flag = yes; then
29454 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
29459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf-5 option" >&5
29460 $as_echo_n "checking assembler for --gdwarf-5 option... " >&6; }
29461 if ${gcc_cv_as_gdwarf_5_flag+:} false; then :
29462 $as_echo_n "(cached) " >&6
29463 else
29464 gcc_cv_as_gdwarf_5_flag=no
29465 if test x$gcc_cv_as != x; then
29466 $as_echo "$insn" > conftest.s
29467 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf-5 -o conftest.o conftest.s >&5'
29468 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29469 (eval $ac_try) 2>&5
29470 ac_status=$?
29471 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29472 test $ac_status = 0; }; }
29473 then
29474 if test x$gcc_cv_objdump != x \
29475 && $gcc_cv_objdump -Wi conftest.o 2>&1 \
29476 | grep DW_TAG_compile_unit > /dev/null 2>&1; then
29477 gcc_cv_as_gdwarf_5_flag=yes;
29479 else
29480 echo "configure: failed program was" >&5
29481 cat conftest.s >&5
29483 rm -f conftest.o conftest.s
29486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf_5_flag" >&5
29487 $as_echo "$gcc_cv_as_gdwarf_5_flag" >&6; }
29488 if test $gcc_cv_as_gdwarf_5_flag = yes; then
29490 $as_echo "#define HAVE_AS_GDWARF_5_DEBUG_FLAG 1" >>confdefs.h
29495 case $target_os in
29496 win32 | pe | cygwin* | mingw32*)
29497 section_flags=\"dr\"
29498 function_type=".def foo; .scl 2; .type 32; .endef"
29499 function_size="";;
29501 section_flags=\"\",%progbits
29502 function_type=".type foo, %function"
29503 function_size=".size foo, .-foo";;
29504 esac
29505 dwarf4_debug_info_size=0x46
29506 dwarf4_high_pc_form=7
29507 dwarf4_debug_aranges_size=0x2c
29508 dwarf4_line_sz=9
29509 for dwarf4_addr_size in 8 4; do
29510 conftest_s="\
29511 .file \"a.c\"
29512 .text
29513 .Ltext0:
29514 .p2align 4
29515 .globl foo
29516 $function_type
29517 foo:
29518 .LFB0:
29519 .LM1:
29520 $insn
29521 .LM2:
29522 .LFE0:
29523 $function_size
29524 .Letext0:
29525 .section .debug_info,$section_flags
29526 .Ldebug_info0:
29527 .4byte $dwarf4_debug_info_size
29528 .2byte 0x4
29529 .4byte .Ldebug_abbrev0
29530 .byte 0x$dwarf4_addr_size
29531 .byte 0x1
29532 .ascii \"GNU C17\\0\"
29533 .byte 0xc
29534 .ascii \"a.c\\0\"
29535 .ascii \"/\\0\"
29536 .${dwarf4_addr_size}byte .Ltext0
29537 .${dwarf4_addr_size}byte .Letext0-.Ltext0
29538 .4byte .Ldebug_line0
29539 .byte 0x2
29540 .ascii \"foo\\0\"
29541 .byte 0x1
29542 .byte 0x2
29543 .byte 0x1
29544 .${dwarf4_addr_size}byte .LFB0
29545 .${dwarf4_addr_size}byte .LFE0-.LFB0
29546 .byte 0x1
29547 .byte 0x9c
29548 .byte 0
29549 .section .debug_abbrev,$section_flags
29550 .Ldebug_abbrev0:
29551 .byte 0x1
29552 .byte 0x11
29553 .byte 0x1
29554 .byte 0x25
29555 .byte 0x8
29556 .byte 0x13
29557 .byte 0xb
29558 .byte 0x3
29559 .byte 0x8
29560 .byte 0x1b
29561 .byte 0x8
29562 .byte 0x11
29563 .byte 0x1
29564 .byte 0x12
29565 .byte 0x$dwarf4_high_pc_form
29566 .byte 0x10
29567 .byte 0x17
29568 .byte 0
29569 .byte 0
29570 .byte 0x2
29571 .byte 0x2e
29572 .byte 0
29573 .byte 0x3f
29574 .byte 0x19
29575 .byte 0x3
29576 .byte 0x8
29577 .byte 0x3a
29578 .byte 0xb
29579 .byte 0x3b
29580 .byte 0xb
29581 .byte 0x39
29582 .byte 0xb
29583 .byte 0x11
29584 .byte 0x1
29585 .byte 0x12
29586 .byte 0x$dwarf4_high_pc_form
29587 .byte 0x40
29588 .byte 0x18
29589 .byte 0
29590 .byte 0
29591 .byte 0
29592 .section .debug_aranges,$section_flags
29593 .4byte $dwarf4_debug_aranges_size
29594 .2byte 0x2
29595 .4byte .Ldebug_info0
29596 .byte 0x8
29597 .byte 0
29598 .2byte 0
29599 .2byte 0
29600 .${dwarf4_addr_size}byte .Ltext0
29601 .${dwarf4_addr_size}byte .Letext0-.Ltext0
29602 .${dwarf4_addr_size}byte 0
29603 .${dwarf4_addr_size}byte 0
29604 .section .debug_line,$section_flags
29605 .Ldebug_line0:
29606 .4byte .LELT0-.LSLT0
29607 .LSLT0:
29608 .2byte 0x4
29609 .4byte .LELTP0-.LASLTP0
29610 .LASLTP0:
29611 .byte 0x1
29612 .byte 0x1
29613 .byte 0x1
29614 .byte 0xf6
29615 .byte 0xf2
29616 .byte 0xd
29617 .byte 0
29618 .byte 0x1
29619 .byte 0x1
29620 .byte 0x1
29621 .byte 0x1
29622 .byte 0
29623 .byte 0
29624 .byte 0
29625 .byte 0x1
29626 .byte 0
29627 .byte 0
29628 .byte 0x1
29629 .byte 0
29630 .ascii \"a.c\\0\"
29631 .byte 0
29632 .byte 0
29633 .byte 0
29634 .byte 0
29635 .LELTP0:
29636 .byte 0
29637 .byte 0x$dwarf4_line_sz
29638 .byte 0x2
29639 .${dwarf4_addr_size}byte .LM1
29640 .byte 0x18
29641 .byte 0x5
29642 .byte 0x1
29643 .byte 0
29644 .byte 0x$dwarf4_line_sz
29645 .byte 0x2
29646 .${dwarf4_addr_size}byte .LM2
29647 .byte 0x1
29648 .byte 0x5
29649 .byte 0x1
29650 .byte 0
29651 .byte 0x$dwarf4_line_sz
29652 .byte 0x2
29653 .${dwarf4_addr_size}byte .Letext0
29654 .byte 0
29655 .byte 0x1
29656 .byte 0x1
29657 .LELT0:
29658 .section .debug_str,$section_flags
29659 .ident \"GCC\"
29661 dwarf4_success=no
29662 if test $dwarf4_addr_size = 4; then
29663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembly of compiler generated 32-bit .debug_line" >&5
29664 $as_echo_n "checking assembler for assembly of compiler generated 32-bit .debug_line... " >&6; }
29665 if ${gcc_cv_as_debug_line_32_flag+:} false; then :
29666 $as_echo_n "(cached) " >&6
29667 else
29668 gcc_cv_as_debug_line_32_flag=no
29669 if test x$gcc_cv_as != x; then
29670 $as_echo "$conftest_s" > conftest.s
29671 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29672 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29673 (eval $ac_try) 2>&5
29674 ac_status=$?
29675 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29676 test $ac_status = 0; }; }
29677 then
29678 gcc_cv_as_debug_line_32_flag=yes
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_debug_line_32_flag" >&5
29687 $as_echo "$gcc_cv_as_debug_line_32_flag" >&6; }
29688 if test $gcc_cv_as_debug_line_32_flag = yes; then
29689 dwarf4_success=yes
29692 else
29693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembly of compiler generated 64-bit .debug_line" >&5
29694 $as_echo_n "checking assembler for assembly of compiler generated 64-bit .debug_line... " >&6; }
29695 if ${gcc_cv_as_debug_line_64_flag+:} false; then :
29696 $as_echo_n "(cached) " >&6
29697 else
29698 gcc_cv_as_debug_line_64_flag=no
29699 if test x$gcc_cv_as != x; then
29700 $as_echo "$conftest_s" > conftest.s
29701 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29702 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29703 (eval $ac_try) 2>&5
29704 ac_status=$?
29705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29706 test $ac_status = 0; }; }
29707 then
29708 gcc_cv_as_debug_line_64_flag=yes
29709 else
29710 echo "configure: failed program was" >&5
29711 cat conftest.s >&5
29713 rm -f conftest.o conftest.s
29716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_line_64_flag" >&5
29717 $as_echo "$gcc_cv_as_debug_line_64_flag" >&6; }
29718 if test $gcc_cv_as_debug_line_64_flag = yes; then
29719 dwarf4_success=yes
29723 if test $dwarf4_success = yes; then
29724 dwarf4_success=no
29725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf-4 not refusing compiler generated .debug_line" >&5
29726 $as_echo_n "checking assembler for --gdwarf-4 not refusing compiler generated .debug_line... " >&6; }
29727 if ${gcc_cv_as_dwarf_4_debug_line_flag+:} false; then :
29728 $as_echo_n "(cached) " >&6
29729 else
29730 gcc_cv_as_dwarf_4_debug_line_flag=no
29731 if test x$gcc_cv_as != x; then
29732 $as_echo "$conftest_s" > conftest.s
29733 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf-4 -o conftest.o conftest.s >&5'
29734 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29735 (eval $ac_try) 2>&5
29736 ac_status=$?
29737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29738 test $ac_status = 0; }; }
29739 then
29740 gcc_cv_as_dwarf_4_debug_line_flag=yes
29741 else
29742 echo "configure: failed program was" >&5
29743 cat conftest.s >&5
29745 rm -f conftest.o conftest.s
29748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf_4_debug_line_flag" >&5
29749 $as_echo "$gcc_cv_as_dwarf_4_debug_line_flag" >&6; }
29750 if test $gcc_cv_as_dwarf_4_debug_line_flag = yes; then
29751 dwarf4_success=yes
29754 break
29756 dwarf4_debug_info_size=0x36
29757 dwarf4_high_pc_form=6
29758 dwarf4_debug_aranges_size=0x1c
29759 dwarf4_line_sz=5
29760 done
29762 if test $dwarf4_success = yes; then
29763 conftest_s="\
29764 .file \"foo.c\"
29765 .text
29766 bar:
29767 #APP
29768 # 82 \"xxx.h\" 1
29769 $insn
29770 # 0 \"\" 2
29771 #NO_APP
29772 $insn
29773 foo:
29774 .file 1 \"foo.c\"
29775 $insn
29776 .file 2 \"foo.h\"
29779 dwarf4_success=no
29780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf-4 with the APP marker" >&5
29781 $as_echo_n "checking assembler for --gdwarf-4 with the APP marker... " >&6; }
29782 if ${gcc_cv_as_dwarf_4_app_flag+:} false; then :
29783 $as_echo_n "(cached) " >&6
29784 else
29785 gcc_cv_as_dwarf_4_app_flag=no
29786 if test x$gcc_cv_as != x; then
29787 $as_echo "$conftest_s" > conftest.s
29788 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf-4 -o conftest.o conftest.s >&5'
29789 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29790 (eval $ac_try) 2>&5
29791 ac_status=$?
29792 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29793 test $ac_status = 0; }; }
29794 then
29795 gcc_cv_as_dwarf_4_app_flag=yes
29796 else
29797 echo "configure: failed program was" >&5
29798 cat conftest.s >&5
29800 rm -f conftest.o conftest.s
29803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf_4_app_flag" >&5
29804 $as_echo "$gcc_cv_as_dwarf_4_app_flag" >&6; }
29805 if test $gcc_cv_as_dwarf_4_app_flag = yes; then
29806 dwarf4_success=yes
29811 if test $dwarf4_success = yes; then
29812 conftest_s="\
29813 .text
29814 .globl foo
29815 $function_type
29816 foo:
29817 $insn
29818 $function_size
29819 .file 1 \"foo.c\"
29821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working --gdwarf-4/--gdwarf-5 for all sources" >&5
29822 $as_echo_n "checking assembler for working --gdwarf-4/--gdwarf-5 for all sources... " >&6; }
29823 if ${gcc_cv_as_working_gdwarf_n_flag+:} false; then :
29824 $as_echo_n "(cached) " >&6
29825 else
29826 gcc_cv_as_working_gdwarf_n_flag=no
29827 if test x$gcc_cv_as != x; then
29828 $as_echo "$conftest_s" > conftest.s
29829 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf-4 -o conftest.o conftest.s >&5'
29830 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29831 (eval $ac_try) 2>&5
29832 ac_status=$?
29833 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29834 test $ac_status = 0; }; }
29835 then
29836 if test x$gcc_cv_objdump != x \
29837 && $gcc_cv_objdump -W conftest.o 2>&1 \
29838 | grep conftest.s > /dev/null 2>&1; then
29839 gcc_cv_as_working_gdwarf_n_flag=no
29840 else
29841 gcc_cv_as_working_gdwarf_n_flag=yes
29843 else
29844 echo "configure: failed program was" >&5
29845 cat conftest.s >&5
29847 rm -f conftest.o conftest.s
29850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_working_gdwarf_n_flag" >&5
29851 $as_echo "$gcc_cv_as_working_gdwarf_n_flag" >&6; }
29854 if test $gcc_cv_as_working_gdwarf_n_flag = yes; then
29856 $as_echo "#define HAVE_AS_WORKING_DWARF_N_FLAG 1" >>confdefs.h
29861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
29862 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
29863 if ${gcc_cv_as_debug_prefix_map_flag+:} false; then :
29864 $as_echo_n "(cached) " >&6
29865 else
29866 gcc_cv_as_debug_prefix_map_flag=no
29867 if test x$gcc_cv_as != x; then
29868 $as_echo "$insn" > conftest.s
29869 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
29870 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29871 (eval $ac_try) 2>&5
29872 ac_status=$?
29873 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29874 test $ac_status = 0; }; }
29875 then
29876 gcc_cv_as_debug_prefix_map_flag=yes
29877 else
29878 echo "configure: failed program was" >&5
29879 cat conftest.s >&5
29881 rm -f conftest.o conftest.s
29884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
29885 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
29886 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
29888 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
29894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compressed debug sections" >&5
29895 $as_echo_n "checking assembler for compressed debug sections... " >&6; }
29896 if ${gcc_cv_as_compress_debug+:} false; then :
29897 $as_echo_n "(cached) " >&6
29898 else
29899 gcc_cv_as_compress_debug=no
29900 if test x$gcc_cv_as != x; then
29901 $as_echo '' > conftest.s
29902 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29903 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29904 (eval $ac_try) 2>&5
29905 ac_status=$?
29906 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29907 test $ac_status = 0; }; }
29908 then
29909 # gas compiled without zlib cannot compress debug sections and warns
29910 # about it, but still exits successfully. So check for this, too.
29911 if $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null
29912 then
29913 gcc_cv_as_compress_debug=0
29914 elif $gcc_cv_as --compress-debug-sections=zlib -o conftest.o conftest.s > /dev/null 2>&1
29915 then
29916 gcc_cv_as_compress_debug=1
29917 gcc_cv_as_compress_debug_option="--compress-debug-sections"
29918 gcc_cv_as_no_compress_debug_option="--nocompress-debug-sections"
29919 # Since binutils 2.40, gas supports --compress-debug-sections=zstd.
29920 if $gcc_cv_as --compress-debug-sections=zstd -o conftest.o conftest.s > /dev/null 2>&1
29921 then
29922 gcc_cv_as_compress_debug=2
29924 else
29925 gcc_cv_as_compress_debug=0
29927 else
29928 echo "configure: failed program was" >&5
29929 cat conftest.s >&5
29931 rm -f conftest.o conftest.s
29934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_compress_debug" >&5
29935 $as_echo "$gcc_cv_as_compress_debug" >&6; }
29939 cat >>confdefs.h <<_ACEOF
29940 #define HAVE_AS_COMPRESS_DEBUG $gcc_cv_as_compress_debug
29941 _ACEOF
29944 cat >>confdefs.h <<_ACEOF
29945 #define AS_COMPRESS_DEBUG_OPTION "$gcc_cv_as_compress_debug_option"
29946 _ACEOF
29949 cat >>confdefs.h <<_ACEOF
29950 #define AS_NO_COMPRESS_DEBUG_OPTION "$gcc_cv_as_no_compress_debug_option"
29951 _ACEOF
29954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
29955 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
29956 if ${gcc_cv_as_lcomm_with_alignment+:} false; then :
29957 $as_echo_n "(cached) " >&6
29958 else
29959 gcc_cv_as_lcomm_with_alignment=no
29960 if test x$gcc_cv_as != x; then
29961 $as_echo '.lcomm bar,4,16' > conftest.s
29962 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29963 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29964 (eval $ac_try) 2>&5
29965 ac_status=$?
29966 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29967 test $ac_status = 0; }; }
29968 then
29969 gcc_cv_as_lcomm_with_alignment=yes
29970 else
29971 echo "configure: failed program was" >&5
29972 cat conftest.s >&5
29974 rm -f conftest.o conftest.s
29977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
29978 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
29979 if test $gcc_cv_as_lcomm_with_alignment = yes; then
29981 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
29986 if test x$with_sysroot = x && test x$host = x$target \
29987 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
29988 && test "$prefix" != "NONE"; then
29990 cat >>confdefs.h <<_ACEOF
29991 #define PREFIX_INCLUDE_DIR "$prefix/include"
29992 _ACEOF
29996 # Determine the version of glibc, if any, used on the target.
29997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target glibc version" >&5
29998 $as_echo_n "checking for target glibc version... " >&6; }
30000 # Check whether --with-glibc-version was given.
30001 if test "${with_glibc_version+set}" = set; then :
30002 withval=$with_glibc_version;
30003 if echo "$with_glibc_version" | grep '^[0-9][0-9]*\.[0-9][0-9]*$'; then
30004 glibc_version_major=`echo "$with_glibc_version" | sed -e 's/\..*//'`
30005 glibc_version_minor=`echo "$with_glibc_version" | sed -e 's/.*\.//'`
30006 else
30007 as_fn_error $? "option --with-glibc-version requires a version number M.N" "$LINENO" 5
30009 else
30011 glibc_version_major=0
30012 glibc_version_minor=0
30013 if test -f $target_header_dir/features.h \
30014 && glibc_version_major_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+[0-9]' $target_header_dir/features.h` \
30015 && glibc_version_minor_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+[0-9]' $target_header_dir/features.h`; then
30016 glibc_version_major=`echo "$glibc_version_major_define" | sed -e 's/.*__GLIBC__[ ]*//'`
30017 glibc_version_minor=`echo "$glibc_version_minor_define" | sed -e 's/.*__GLIBC_MINOR__[ ]*//'`
30021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc_version_major.$glibc_version_minor" >&5
30022 $as_echo "$glibc_version_major.$glibc_version_minor" >&6; }
30024 cat >>confdefs.h <<_ACEOF
30025 #define TARGET_GLIBC_MAJOR $glibc_version_major
30026 _ACEOF
30029 cat >>confdefs.h <<_ACEOF
30030 #define TARGET_GLIBC_MINOR $glibc_version_minor
30031 _ACEOF
30034 # Check whether --enable-gnu-unique-object was given.
30035 if test "${enable_gnu_unique_object+set}" = set; then :
30036 enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
30037 yes | no) ;;
30038 *) as_fn_error $? "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
30039 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
30040 esac
30041 else
30042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
30043 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
30044 if ${gcc_cv_as_gnu_unique_object+:} false; then :
30045 $as_echo_n "(cached) " >&6
30046 else
30047 gcc_cv_as_gnu_unique_object=no
30048 if test x$gcc_cv_as != x; then
30049 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
30050 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30051 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30052 (eval $ac_try) 2>&5
30053 ac_status=$?
30054 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30055 test $ac_status = 0; }; }
30056 then
30057 gcc_cv_as_gnu_unique_object=yes
30058 else
30059 echo "configure: failed program was" >&5
30060 cat conftest.s >&5
30062 rm -f conftest.o conftest.s
30065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
30066 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
30067 if test $gcc_cv_as_gnu_unique_object = yes; then
30068 # We need to unquote above to to use the definition from config.gcc.
30069 # Also check for ld.so support, i.e. glibc 2.11 or higher.
30071 if test $glibc_version_major -gt 2 \
30072 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 11 ); then :
30073 enable_gnu_unique_object=yes
30080 if test x$enable_gnu_unique_object = xyes; then
30082 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
30086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
30087 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
30088 if ${gcc_cv_as_line_zero+:} false; then :
30089 $as_echo_n "(cached) " >&6
30090 else
30091 gcc_cv_as_line_zero=no
30092 if test "x$gcc_cv_as" != x; then
30093 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
30094 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
30095 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30096 (eval $ac_try) 2>&5
30097 ac_status=$?
30098 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30099 test $ac_status = 0; }; } &&
30100 test "x`cat conftest.out`" = x
30101 then
30102 gcc_cv_as_line_zero=yes
30103 else
30104 echo "configure: failed program was" >&5
30105 cat conftest.s >&5
30106 echo "configure: error output was" >&5
30107 cat conftest.out >&5
30109 rm -f conftest.o conftest.s conftest.out
30112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
30113 $as_echo "$gcc_cv_as_line_zero" >&6; }
30114 if test "x$gcc_cv_as_line_zero" = xyes; then
30116 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
30120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for thin archives" >&5
30121 $as_echo_n "checking support for thin archives... " >&6; }
30122 thin_archive_support=no
30123 echo 'int main (void) { return 0; }' > conftest.c
30124 if ($AR --version | sed 1q | grep "GNU ar" \
30125 && $CC $CFLAGS -c conftest.c \
30126 && $AR rcT conftest.a conftest.o \
30127 && $CC $CFLAGS $LDFLAGS -o conftest conftest.a) >/dev/null 2>&1; then
30128 thin_archive_support=yes
30130 rm -f conftest.c conftest.o conftest.a conftest
30131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $thin_archive_support" >&5
30132 $as_echo "$thin_archive_support" >&6; }
30135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
30136 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
30137 gcc_cv_ld_eh_frame_hdr=no
30138 if test $in_tree_ld = yes ; then
30139 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 \
30140 && test $in_tree_ld_is_elf = yes; then
30141 gcc_cv_ld_eh_frame_hdr=yes
30143 elif test x$gcc_cv_ld != x; then
30144 if echo "$ld_ver" | grep GNU > /dev/null; then
30145 # Check if linker supports --eh-frame-hdr option
30146 if $gcc_cv_ld --help 2>&1 | grep eh-frame-hdr > /dev/null; then
30147 gcc_cv_ld_eh_frame_hdr=yes
30149 else
30150 case "$target" in
30151 *-*-solaris2*)
30152 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
30153 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2251; then
30154 gcc_cv_ld_eh_frame_hdr=yes
30157 esac
30161 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
30163 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
30166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
30167 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
30169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker CIEv3 in .eh_frame support" >&5
30170 $as_echo_n "checking linker CIEv3 in .eh_frame support... " >&6; }
30171 gcc_cv_ld_eh_frame_ciev3=no
30172 if test $in_tree_ld = yes ; then
30173 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 \
30174 && test $in_tree_ld_is_elf = yes; then
30175 gcc_cv_ld_eh_frame_ciev3=yes
30177 elif test x$gcc_cv_ld != x; then
30178 if echo "$ld_ver" | grep GNU > /dev/null; then
30179 gcc_cv_ld_eh_frame_ciev3=yes
30180 if test 0"$ld_date" -lt 20040513; then
30181 if test -n "$ld_date"; then
30182 # If there was date string, but was earlier than 2004-05-13, fail
30183 gcc_cv_ld_eh_frame_ciev3=no
30184 elif test "$ld_vers_major" -lt 2; then
30185 gcc_cv_ld_eh_frame_ciev3=no
30186 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
30187 gcc_cv_ld_eh_frame_ciev3=no
30190 else
30191 case "$target" in
30192 *-*-solaris2*)
30193 # Sun ld added support for CIE v3 in .eh_frame in Solaris 11.1.
30194 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2324; then
30195 gcc_cv_ld_eh_frame_ciev3=yes
30198 esac
30202 cat >>confdefs.h <<_ACEOF
30203 #define HAVE_LD_EH_FRAME_CIEV3 `if test x"$gcc_cv_ld_eh_frame_ciev3" = xyes; then echo 1; else echo 0; fi`
30204 _ACEOF
30206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_ciev3" >&5
30207 $as_echo "$gcc_cv_ld_eh_frame_ciev3" >&6; }
30209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
30210 $as_echo_n "checking linker position independent executable support... " >&6; }
30211 gcc_cv_ld_pie=no
30212 if test $in_tree_ld = yes ; then
30213 case "$target" in
30214 # Full PIE support on Solaris was only introduced in gld 2.26.
30215 *-*-solaris2*) gcc_gld_pie_min_version=26 ;;
30216 *) gcc_gld_pie_min_version=15 ;;
30217 esac
30218 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 \
30219 && test $in_tree_ld_is_elf = yes; then
30220 gcc_cv_ld_pie=yes
30222 elif test x$gcc_cv_ld != x; then
30223 # Check if linker supports -pie option
30224 if $gcc_cv_ld --help 2>&1 | grep -- -pie > /dev/null; then
30225 gcc_cv_ld_pie=yes
30226 case "$target" in
30227 *-*-solaris2*)
30228 if echo "$ld_ver" | grep GNU > /dev/null \
30229 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
30230 gcc_cv_ld_pie=no
30233 esac
30234 else
30235 case "$target" in
30236 *-*-solaris2.1[1-9]*)
30237 # Solaris 11.3 added PIE support.
30238 if $gcc_cv_ld -z help 2>&1 | grep -- type.*pie > /dev/null; then
30239 gcc_cv_ld_pie=yes
30242 esac
30245 if test x"$gcc_cv_ld_pie" = xyes; then
30247 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
30250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
30251 $as_echo "$gcc_cv_ld_pie" >&6; }
30253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PIE support with copy reloc" >&5
30254 $as_echo_n "checking linker PIE support with copy reloc... " >&6; }
30255 gcc_cv_ld_pie_copyreloc=no
30256 if test $gcc_cv_ld_pie = yes ; then
30257 if test $in_tree_ld = yes ; then
30258 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
30259 gcc_cv_ld_pie_copyreloc=yes
30261 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
30262 # Check if linker supports -pie option with copy reloc
30263 case "$target" in
30264 i?86-*-linux* | x86_64-*-linux*)
30265 cat > conftest1.s <<EOF
30266 .globl a_glob
30267 .data
30268 .type a_glob, @object
30269 .size a_glob, 4
30270 a_glob:
30271 .long 2
30273 cat > conftest2.s <<EOF
30274 .text
30275 .globl main
30276 .type main, @function
30277 main:
30278 movl %eax, a_glob(%rip)
30279 .size main, .-main
30280 .globl ptr
30281 .section .data.rel,"aw",@progbits
30282 .type ptr, @object
30283 ptr:
30284 .quad a_glob
30286 if $gcc_cv_as --64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
30287 && $gcc_cv_ld -shared -melf_x86_64 -o conftest1.so conftest1.o > /dev/null 2>&1 \
30288 && $gcc_cv_as --64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
30289 && $gcc_cv_ld -pie -melf_x86_64 -o conftest conftest2.o conftest1.so > /dev/null 2>&1; then
30290 gcc_cv_ld_pie_copyreloc=yes
30292 rm -f conftest conftest1.so conftest1.o conftest2.o conftest1.s conftest2.s
30294 esac
30298 cat >>confdefs.h <<_ACEOF
30299 #define HAVE_LD_PIE_COPYRELOC `if test x"$gcc_cv_ld_pie_copyreloc" = xyes; then echo 1; else echo 0; fi`
30300 _ACEOF
30302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie_copyreloc" >&5
30303 $as_echo "$gcc_cv_ld_pie_copyreloc" >&6; }
30305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
30306 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
30307 gcc_cv_ld_eh_gc_sections=no
30308 if test $in_tree_ld = yes ; then
30309 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 \
30310 && test $in_tree_ld_is_elf = yes; then
30311 gcc_cv_ld_eh_gc_sections=yes
30313 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
30314 cat > conftest.s <<EOF
30315 .section .text
30316 .globl _start
30317 .type _start, @function
30318 _start:
30319 .long foo
30320 .size _start, .-_start
30321 .section .text.foo,"ax",@progbits
30322 .type foo, @function
30323 foo:
30324 .long 0
30325 .size foo, .-foo
30326 .section .gcc_except_table.foo,"a",@progbits
30327 .L0:
30328 .long 0
30329 .section .eh_frame,"a",@progbits
30330 .long .L0
30332 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
30333 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
30334 | grep "gc-sections option ignored" > /dev/null; then
30335 gcc_cv_ld_eh_gc_sections=no
30336 elif $gcc_cv_objdump -h conftest 2> /dev/null \
30337 | grep gcc_except_table > /dev/null; then
30338 gcc_cv_ld_eh_gc_sections=yes
30339 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
30340 if test x$gcc_cv_as_comdat_group != xyes; then
30341 gcc_cv_ld_eh_gc_sections=no
30342 cat > conftest.s <<EOF
30343 .section .text
30344 .globl _start
30345 .type _start, @function
30346 _start:
30347 .long foo
30348 .size _start, .-_start
30349 .section .gnu.linkonce.t.foo,"ax",@progbits
30350 .type foo, @function
30351 foo:
30352 .long 0
30353 .size foo, .-foo
30354 .section .gcc_except_table.foo,"a",@progbits
30355 .L0:
30356 .long 0
30357 .section .eh_frame,"a",@progbits
30358 .long .L0
30360 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
30361 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
30362 | grep "gc-sections option ignored" > /dev/null; then
30363 gcc_cv_ld_eh_gc_sections=no
30364 elif $gcc_cv_objdump -h conftest 2> /dev/null \
30365 | grep gcc_except_table > /dev/null; then
30366 gcc_cv_ld_eh_gc_sections=yes
30372 rm -f conftest.s conftest.o conftest
30374 case "$target" in
30375 hppa*-*-linux*)
30376 # ??? This apparently exposes a binutils bug with PC-relative relocations.
30377 gcc_cv_ld_eh_gc_sections=no
30379 esac
30380 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
30382 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
30385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
30386 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
30388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
30389 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
30390 gcc_cv_ld_eh_gc_sections_bug=no
30391 if test $in_tree_ld = yes ; then
30392 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 \
30393 && test $in_tree_ld_is_elf = yes; then
30394 gcc_cv_ld_eh_gc_sections_bug=yes
30396 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
30397 gcc_cv_ld_eh_gc_sections_bug=yes
30398 cat > conftest.s <<EOF
30399 .section .text
30400 .globl _start
30401 .type _start, @function
30402 _start:
30403 .long foo
30404 .size _start, .-_start
30405 .section .text.startup.foo,"ax",@progbits
30406 .type foo, @function
30407 foo:
30408 .long 0
30409 .size foo, .-foo
30410 .section .gcc_except_table.foo,"a",@progbits
30411 .L0:
30412 .long 0
30413 .section .eh_frame,"a",@progbits
30414 .long .L0
30416 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
30417 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
30418 | grep "gc-sections option ignored" > /dev/null; then
30420 elif $gcc_cv_objdump -h conftest 2> /dev/null \
30421 | grep gcc_except_table > /dev/null; then
30422 gcc_cv_ld_eh_gc_sections_bug=no
30425 rm -f conftest.s conftest.o conftest
30427 if test x$gcc_cv_ld_eh_gc_sections_bug = xyes; then
30429 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
30432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
30433 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
30435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for compressed debug sections" >&5
30436 $as_echo_n "checking linker for compressed debug sections... " >&6; }
30437 # GNU ld/gold support --compressed-debug-sections=zlib since binutils 2.26.
30438 if $gcc_cv_ld --help 2>&1 | grep -- '--compress-debug-sections.*\<zlib-gabi\>' > /dev/null; then
30439 gcc_cv_ld_compress_debug=1
30440 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
30441 # Detect zstd debug section compression support
30442 if $gcc_cv_ld --help 2>&1 | grep -- '--compress-debug-sections.*\<zstd\>' > /dev/null; then
30443 gcc_cv_ld_compress_debug=2
30445 else
30446 case "${target}" in
30447 *-*-solaris2*)
30448 # Introduced in Solaris 11.2.
30449 if $gcc_cv_ld --help 2>&1 | grep -- '-z compress-sections' > /dev/null; then
30450 gcc_cv_ld_compress_debug=1
30451 gcc_cv_ld_compress_debug_option="-z compress-sections"
30452 else
30453 gcc_cv_ld_compress_debug=0
30457 # Assume linkers other than GNU ld don't support compessed debug
30458 # sections.
30459 gcc_cv_ld_compress_debug=0
30461 esac
30464 cat >>confdefs.h <<_ACEOF
30465 #define HAVE_LD_COMPRESS_DEBUG $gcc_cv_ld_compress_debug
30466 _ACEOF
30469 cat >>confdefs.h <<_ACEOF
30470 #define LD_COMPRESS_DEBUG_OPTION "$gcc_cv_ld_compress_debug_option"
30471 _ACEOF
30473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_compress_debug" >&5
30474 $as_echo "$gcc_cv_ld_compress_debug" >&6; }
30476 if test x"$ld64_flag" = x"yes"; then
30478 # Set defaults for possibly untestable items.
30479 gcc_cv_ld64_export_dynamic=0
30480 gcc_cv_ld64_platform_version=0
30482 if test "$build" = "$host"; then
30483 darwin_try_test=1
30484 else
30485 darwin_try_test=0
30488 # On Darwin, because of FAT library support, it is often possible to execute
30489 # exes from compatible archs even when the host differs from the build system.
30490 case "$build","$host" in
30491 x86_64-*-darwin*,i?86-*-darwin* | powerpc64*-*-darwin*,powerpc*-*-darwin*)
30492 darwin_try_test=1;;
30493 *) ;;
30494 esac
30496 # If the configurer specified a minimum ld64 version to be supported, then use
30497 # that to determine feature support.
30498 if test x"${gcc_cv_ld64_version}" != x; then
30499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ld64 specified version" >&5
30500 $as_echo_n "checking ld64 specified version... " >&6; }
30501 gcc_cv_ld64_major=`echo "$gcc_cv_ld64_version" | sed -e 's/\..*//'`
30502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_major" >&5
30503 $as_echo "$gcc_cv_ld64_major" >&6; }
30504 if test "$gcc_cv_ld64_major" -ge 236; then
30505 gcc_cv_ld64_export_dynamic=1
30507 if test "$gcc_cv_ld64_major" -ge 512; then
30508 gcc_cv_ld64_platform_version=1
30510 elif test -x "$gcc_cv_ld" -a "$darwin_try_test" -eq 1; then
30511 # If the version was not specified, try to find it.
30512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker version" >&5
30513 $as_echo_n "checking linker version... " >&6; }
30514 if test x"${gcc_cv_ld64_version}" = x; then
30515 gcc_cv_ld64_version=`$gcc_cv_ld -v 2>&1 | grep ld64 | sed s/.*ld64-// | awk '{print $1}'`
30517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_version" >&5
30518 $as_echo "$gcc_cv_ld64_version" >&6; }
30520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for -export_dynamic support" >&5
30521 $as_echo_n "checking linker for -export_dynamic support... " >&6; }
30522 gcc_cv_ld64_export_dynamic=1
30523 if $gcc_cv_ld -export_dynamic < /dev/null 2>&1 | grep 'unknown option' > /dev/null; then
30524 gcc_cv_ld64_export_dynamic=0
30526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_export_dynamic" >&5
30527 $as_echo "$gcc_cv_ld64_export_dynamic" >&6; }
30529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for -platform_version support" >&5
30530 $as_echo_n "checking linker for -platform_version support... " >&6; }
30531 gcc_cv_ld64_platform_version=1
30532 if $gcc_cv_ld -platform_version macos 10.5 0.0 < /dev/null 2>&1 | grep 'unknown option' > /dev/null; then
30533 gcc_cv_ld64_platform_version=0
30535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_platform_version" >&5
30536 $as_echo "$gcc_cv_ld64_platform_version" >&6; }
30539 if test x"${gcc_cv_ld64_version}" != x; then
30541 cat >>confdefs.h <<_ACEOF
30542 #define LD64_VERSION "${gcc_cv_ld64_version}"
30543 _ACEOF
30548 cat >>confdefs.h <<_ACEOF
30549 #define LD64_HAS_EXPORT_DYNAMIC $gcc_cv_ld64_export_dynamic
30550 _ACEOF
30554 cat >>confdefs.h <<_ACEOF
30555 #define LD64_HAS_PLATFORM_VERSION $gcc_cv_ld64_platform_version
30556 _ACEOF
30560 if test x"$dsymutil_flag" = x"yes"; then
30562 # If the user specified a dsymutil path, then we will already have the
30563 # version string, otherwise, pick it up.
30564 if test x"$gcc_cv_dsymutil" = x; then
30565 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dsymutil is a required tool for this system, but not found" >&5
30566 $as_echo "$as_me: WARNING: dsymutil is a required tool for this system, but not found" >&2;}
30567 dsymutil_vers="tool unspecified"
30568 elif test x"$dsymutil_vers" = x; then
30569 dsymutil_vers=`$gcc_cv_dsymutil -v /dev/null 2>&1`
30572 dsymutil_temp=`echo $dsymutil_vers | sed 1q`
30573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dsymutil version \"$dsymutil_temp\"" >&5
30574 $as_echo_n "checking dsymutil version \"$dsymutil_temp\"... " >&6; }
30575 if echo $dsymutil_temp | grep dwarfutils- > /dev/null; then
30576 dsymutil_kind=DWARFUTILS
30577 dsymutil_vers=`echo $dsymutil_temp | sed 's/.*dwarfutils-\([0-9\.]*\).*/\1/'`
30578 elif echo $dsymutil_temp | grep clang- > /dev/null; then
30579 dsymutil_kind=CLANG
30580 dsymutil_vers=`echo $dsymutil_temp | sed 's/.*clang-\([0-9\.]*\).*/\1/'`
30581 elif echo $dsymutil_temp | grep 'LLVM version ' > /dev/null; then
30582 dsymutil_kind=LLVM
30583 dsymutil_vers=`echo $dsymutil_temp | sed 's/.*LLVM\ version\ \([0-9\.]*\).*/\1/'`
30584 else
30585 dsymutil_kind=UNKNOWN
30586 dsymutil_vers="0.0"
30588 dsymutil_major=`expr "$dsymutil_vers" : '\([0-9]*\)'`
30589 dsymutil_minor=`expr "$dsymutil_vers" : '[0-9]*\.\([0-9]*\)'`
30590 dsymutil_tiny=`expr "$dsymutil_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
30591 if test x"${dsymutil_minor}" = x; then
30592 dsymutil_minor=0
30594 if test x"${dsymutil_tiny}" = x; then
30595 dsymutil_tiny=0
30598 cat >>confdefs.h <<_ACEOF
30599 #define DSYMUTIL_VERSION $dsymutil_kind,${dsymutil_major},${dsymutil_minor},${dsymutil_tiny}
30600 _ACEOF
30602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dsymutil_vers : $dsymutil_kind ${dsymutil_major} ${dsymutil_minor} ${dsymutil_tiny} " >&5
30603 $as_echo "$dsymutil_vers : $dsymutil_kind ${dsymutil_major} ${dsymutil_minor} ${dsymutil_tiny} " >&6; }
30606 case $target_os in
30607 win32 | pe | cygwin* | mingw32*)
30608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking broken PE linker dwarf5 support" >&5
30609 $as_echo_n "checking broken PE linker dwarf5 support... " >&6; }
30610 gcc_cv_ld_broken_pe_dwarf5=yes
30611 if test $in_tree_ld = yes ; then
30612 if grep -q '\.debug_loclists.*BLOCK.*__section_alignment__.*NOLOAD.*:' \
30613 $gcc_cv_ld_gld_srcdir/scripttempl/pe*.sc \
30614 && grep -q '\.debug_rnglists.*BLOCK.*__section_alignment__.*NOLOAD.*:' \
30615 $gcc_cv_ld_gld_srcdir/scripttempl/pe*.sc; then
30616 gcc_cv_ld_broken_pe_dwarf5=no
30618 else
30619 if $gcc_cv_ld --verbose 2>&1 | grep -q '\.debug_loclists.*BLOCK.*__section_alignment__.*NOLOAD.*:' \
30620 && $gcc_cv_ld --verbose 2>&1 | grep -q '\.debug_rnglists.*BLOCK.*__section_alignment__.*NOLOAD.*:'; then
30621 gcc_cv_ld_broken_pe_dwarf5=no
30624 if test x$gcc_cv_ld_broken_pe_dwarf5 = xyes; then
30626 $as_echo "#define HAVE_LD_BROKEN_PE_DWARF5 1" >>confdefs.h
30629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_broken_pe_dwarf5" >&5
30630 $as_echo "$gcc_cv_ld_broken_pe_dwarf5" >&6; }
30632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking PE linker --disable-dynamicbase support" >&5
30633 $as_echo_n "checking PE linker --disable-dynamicbase support... " >&6; }
30634 gcc_cv_ld_disable_dynamicbase=no
30635 if test $in_tree_ld = yes; then
30636 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 \
30637 gcc_cv_ld_disable_dynamicbase=yes
30639 else
30640 if $gcc_cv_ld --help 2>&1 | grep -q 'disable\-]dynamicbase' > /dev/null; then
30641 gcc_cv_ld_disable_dynamicbase=yes
30644 if test x"$gcc_cv_ld_disable_dynamicbase" = xyes; then
30646 $as_echo "#define HAVE_LD_PE_DISABLE_DYNAMICBASE 1" >>confdefs.h
30649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_disable_dynamicbase" >&5
30650 $as_echo "$gcc_cv_ld_disable_dynamicbase" >&6; }
30652 esac
30654 # --------
30655 # UNSORTED
30656 # --------
30658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
30659 $as_echo_n "checking linker --as-needed support... " >&6; }
30660 if ${gcc_cv_ld_as_needed+:} false; then :
30661 $as_echo_n "(cached) " >&6
30662 else
30663 gcc_cv_ld_as_needed=no
30664 gcc_cv_ld_as_needed_option='--as-needed'
30665 gcc_cv_ld_no_as_needed_option='--no-as-needed'
30666 if test $in_tree_ld = yes ; then
30667 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 \
30668 && test $in_tree_ld_is_elf = yes; then
30669 gcc_cv_ld_as_needed=yes
30670 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 28; then
30671 gcc_cv_ld_as_needed_option='--push-state --as-needed'
30672 gcc_cv_ld_no_as_needed_option='--pop-state'
30675 elif test x$gcc_cv_ld != x; then
30676 # Check if linker supports --as-needed and --no-as-needed options
30677 if $gcc_cv_ld --help 2>&1 | grep as-needed > /dev/null; then
30678 gcc_cv_ld_as_needed=yes
30679 if $gcc_cv_ld --help 2>&1 | grep push-state > /dev/null \
30680 && $gcc_cv_ld --help 2>&1 | grep pop-state > /dev/null \
30681 && echo "$ld_ver" | grep GNU > /dev/null \
30682 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 28; then
30683 # Use these options only when both ld.bfd and ld.gold support
30684 # --push-state/--pop-state, which unfortunately wasn't added
30685 # at the same time.
30686 gcc_cv_ld_as_needed_option='--push-state --as-needed'
30687 gcc_cv_ld_no_as_needed_option='--pop-state'
30690 case "$target:$gnu_ld" in
30691 *-*-solaris2*:no)
30692 # Solaris 2 ld always supports -z ignore/-z record. Prefer the native
30693 # forms.
30694 gcc_cv_ld_as_needed=yes
30695 gcc_cv_ld_as_needed_option="-z ignore"
30696 gcc_cv_ld_no_as_needed_option="-z record"
30698 esac
30700 # --as-needed/-z ignore can only be used if libgcc_s.so.1 uses
30701 # dl_iterate_phdr, i.e. since Solaris 11.
30702 case "$target" in
30703 *-*-solaris2.1[1-9]*)
30704 case "$target" in
30705 i?86-*-* | x86_64-*-*)
30706 if echo "$ld_ver" | grep GNU > /dev/null; then
30707 # Doesn't work with gld on Solaris/x86 due to PR ld/12320.
30708 gcc_cv_ld_as_needed=no
30711 esac
30713 *-*-solaris2*)
30714 gcc_cv_ld_as_needed=no
30716 esac
30719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
30720 $as_echo "$gcc_cv_ld_as_needed" >&6; }
30721 if test x"$gcc_cv_ld_as_needed" = xyes; then
30723 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
30726 cat >>confdefs.h <<_ACEOF
30727 #define LD_AS_NEEDED_OPTION "$gcc_cv_ld_as_needed_option"
30728 _ACEOF
30731 cat >>confdefs.h <<_ACEOF
30732 #define LD_NO_AS_NEEDED_OPTION "$gcc_cv_ld_no_as_needed_option"
30733 _ACEOF
30737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker mapfile support for clearing hardware capabilities" >&5
30738 $as_echo_n "checking linker mapfile support for clearing hardware capabilities... " >&6; }
30739 saved_LDFLAGS="$LDFLAGS"
30740 for clearcap_map in sol2-clearcapv2.map sol2-clearcap.map; do
30741 LDFLAGS="$saved_LDFLAGS -Wl,-M,${srcdir}/config/$clearcap_map"
30742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30743 /* end confdefs.h. */
30744 int main(void) {return 0;}
30745 _ACEOF
30746 if ac_fn_cxx_try_link "$LINENO"; then :
30747 gcc_cv_ld_clearcap=yes; break
30748 else
30749 gcc_cv_ld_clearcap=no
30751 rm -f core conftest.err conftest.$ac_objext \
30752 conftest$ac_exeext conftest.$ac_ext
30753 done
30754 LDFLAGS="$saved_LDFLAGS"
30755 if test "x$gcc_cv_ld_clearcap" = xyes; then
30757 $as_echo "#define HAVE_LD_CLEARCAP 1" >>confdefs.h
30759 ac_config_links="$ac_config_links clearcap.map:${srcdir}/config/$clearcap_map"
30762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_clearcap" >&5
30763 $as_echo "$gcc_cv_ld_clearcap" >&6; }
30765 case "$target" in
30766 powerpc*-*-*)
30767 case "$target" in
30768 *le-*-linux*)
30769 emul_name="-melf32lppc"
30772 emul_name="-melf32ppc"
30774 esac
30775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker .gnu.attributes long double support" >&5
30776 $as_echo_n "checking linker .gnu.attributes long double support... " >&6; }
30777 if ${gcc_cv_ld_ppc_attr+:} false; then :
30778 $as_echo_n "(cached) " >&6
30779 else
30780 gcc_cv_ld_ppc_attr=no
30781 if test x"$ld_is_gold" = xyes; then
30782 gcc_cv_ld_ppc_attr=yes
30783 elif test $in_tree_ld = yes ; then
30784 if test "$gcc_cv_gld_major_version" -eq 2 \
30785 -a "$gcc_cv_gld_minor_version" -ge 28 \
30786 -o "$gcc_cv_gld_major_version" -gt 2; then
30787 gcc_cv_ld_ppc_attr=yes
30789 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
30790 # check that merging the long double .gnu_attribute doesn't warn
30791 cat > conftest1.s <<EOF
30792 .gnu_attribute 4,1
30794 cat > conftest2.s <<EOF
30795 .gnu_attribute 4,9
30797 if $gcc_cv_as -a32 -o conftest1.o conftest1.s > /dev/null 2>&1 \
30798 && $gcc_cv_as -a32 -o conftest2.o conftest2.s > /dev/null 2>&1 \
30799 && $gcc_cv_ld $emul_name -r -o conftest.o conftest1.o conftest2.o > /dev/null 2> conftest.err \
30800 && test ! -s conftest.err; then
30801 gcc_cv_ld_ppc_attr=yes
30803 rm -f conftest.err conftest.o conftest1.o conftest2.o conftest1.s conftest2.s
30807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ppc_attr" >&5
30808 $as_echo "$gcc_cv_ld_ppc_attr" >&6; }
30809 if test x$gcc_cv_ld_ppc_attr = xyes; then
30811 $as_echo "#define HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE 1" >>confdefs.h
30815 esac
30817 case "$target:$tm_file" in
30818 powerpc64*-*-freebsd* | powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
30819 case "$target" in
30820 *le-*-linux*)
30821 emul_name="-melf64lppc"
30823 *-*-linux*)
30824 emul_name="-melf64ppc"
30826 *le-*-freebsd*)
30827 emul_name="-melf64lppc_fbsd"
30829 *-*-freebsd*)
30830 emul_name="-melf64ppc_fbsd"
30832 esac
30833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
30834 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
30835 if ${gcc_cv_ld_no_dot_syms+:} false; then :
30836 $as_echo_n "(cached) " >&6
30837 else
30838 gcc_cv_ld_no_dot_syms=no
30839 if test x"$ld_is_gold" = xyes; then
30840 gcc_cv_ld_no_dot_syms=yes
30841 elif test $in_tree_ld = yes ; then
30842 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
30843 gcc_cv_ld_no_dot_syms=yes
30845 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
30846 cat > conftest1.s <<EOF
30847 .text
30848 bl .foo
30850 cat > conftest2.s <<EOF
30851 .section ".opd","aw"
30852 .align 3
30853 .globl foo
30854 .type foo,@function
30855 foo:
30856 .quad .LEfoo,.TOC.@tocbase,0
30857 .text
30858 .LEfoo:
30860 .size foo,.-.LEfoo
30862 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
30863 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
30864 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
30865 gcc_cv_ld_no_dot_syms=yes
30867 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
30871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
30872 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
30873 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
30875 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
30879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
30880 $as_echo_n "checking linker large toc support... " >&6; }
30881 if ${gcc_cv_ld_large_toc+:} false; then :
30882 $as_echo_n "(cached) " >&6
30883 else
30884 gcc_cv_ld_large_toc=no
30885 if test x"$ld_is_gold" = xyes; then
30886 gcc_cv_ld_large_toc=yes
30887 elif test $in_tree_ld = yes ; then
30888 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
30889 gcc_cv_ld_large_toc=yes
30891 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
30892 cat > conftest.s <<EOF
30893 .section ".tbss","awT",@nobits
30894 .align 3
30895 ie0: .space 8
30896 .global _start
30897 .text
30898 _start:
30899 addis 9,13,ie0@got@tprel@ha
30900 ld 9,ie0@got@tprel@l(9)
30902 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
30903 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
30904 gcc_cv_ld_large_toc=yes
30906 rm -f conftest conftest.o conftest.s
30910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
30911 $as_echo "$gcc_cv_ld_large_toc" >&6; }
30912 if test x"$gcc_cv_ld_large_toc" = xyes; then
30914 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
30918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker toc pointer alignment" >&5
30919 $as_echo_n "checking linker toc pointer alignment... " >&6; }
30920 if ${gcc_cv_ld_toc_align+:} false; then :
30921 $as_echo_n "(cached) " >&6
30922 else
30923 if test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_nm != x; then
30924 cat > conftest.s <<EOF
30925 .global _start
30926 .text
30927 _start:
30928 addis 9,2,x@got@ha
30929 .section .data.rel.ro,"aw",@progbits
30930 .p2align 16
30931 .space 32768
30932 x: .quad .TOC.
30934 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
30935 && $gcc_cv_ld $emul_name -z norelro -o conftest conftest.o > /dev/null 2>&1; then
30936 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)) }'`
30938 rm -f conftest conftest.o conftest.s
30942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_toc_align" >&5
30943 $as_echo "$gcc_cv_ld_toc_align" >&6; }
30944 if test -n "$gcc_cv_ld_toc_align" && test $gcc_cv_ld_toc_align -gt 8; then
30946 cat >>confdefs.h <<_ACEOF
30947 #define POWERPC64_TOC_POINTER_ALIGNMENT $gcc_cv_ld_toc_align
30948 _ACEOF
30952 esac
30954 case "$target" in
30955 *-*-aix*)
30956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
30957 $as_echo_n "checking linker large toc support... " >&6; }
30958 if ${gcc_cv_ld_large_toc+:} false; then :
30959 $as_echo_n "(cached) " >&6
30960 else
30961 gcc_cv_ld_large_toc=no
30962 if test x$gcc_cv_as != x ; then
30963 cat > conftest.s <<EOF
30964 .toc
30965 LC..1:
30966 .tc a[TC],a[RW]
30967 .extern a[RW]
30968 .csect .text[PR]
30969 .largetoctest:
30970 addis 9,LC..1@u(2)
30971 ld 3,LC..1@l(9)
30973 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1; then
30974 gcc_cv_ld_large_toc=yes
30976 rm -f conftest conftest.o conftest.s
30980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
30981 $as_echo "$gcc_cv_ld_large_toc" >&6; }
30982 if test x"$gcc_cv_ld_large_toc" = xyes; then
30984 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
30988 esac
30990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
30991 $as_echo_n "checking linker --build-id support... " >&6; }
30992 if ${gcc_cv_ld_buildid+:} false; then :
30993 $as_echo_n "(cached) " >&6
30994 else
30995 gcc_cv_ld_buildid=no
30996 if test $in_tree_ld = yes ; then
30997 if test "$gcc_cv_gld_major_version" -eq 2 -a \
30998 "$gcc_cv_gld_minor_version" -ge 18 -o \
30999 "$gcc_cv_gld_major_version" -gt 2 \
31000 && test $in_tree_ld_is_elf = yes; then
31001 gcc_cv_ld_buildid=yes
31003 elif test x$gcc_cv_ld != x; then
31004 if $gcc_cv_ld --help 2>&1 | grep build-id > /dev/null; then
31005 gcc_cv_ld_buildid=yes
31009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
31010 $as_echo "$gcc_cv_ld_buildid" >&6; }
31011 if test x"$gcc_cv_ld_buildid" = xyes; then
31013 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
31017 # Check whether --enable-linker-build-id was given.
31018 if test "${enable_linker_build_id+set}" = set; then :
31019 enableval=$enable_linker_build_id;
31020 else
31021 enable_linker_build_id=no
31025 if test x"$enable_linker_build_id" = xyes; then
31026 if test x"$gcc_cv_ld_buildid" = xyes; then
31028 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
31030 else
31031 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
31032 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
31036 # In binutils 2.21, GNU ld gained support for new emulations fully
31037 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
31038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
31039 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
31040 if ${gcc_cv_ld_sol2_emulation+:} false; then :
31041 $as_echo_n "(cached) " >&6
31042 else
31043 gcc_cv_ld_sol2_emulation=no
31044 if test $in_tree_ld = yes ; then
31045 if test "$gcc_cv_gld_major_version" -eq 2 -a \
31046 "$gcc_cv_gld_minor_version" -ge 21 -o \
31047 "$gcc_cv_gld_major_version" -gt 2 \
31048 && test $in_tree_ld_is_elf = yes; then
31049 gcc_cv_ld_sol2_emulation=yes
31051 elif test x$gcc_cv_ld != x; then
31052 if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
31053 grep _sol2 > /dev/null; then
31054 gcc_cv_ld_sol2_emulation=yes
31058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
31059 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
31060 if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
31062 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
31066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
31067 $as_echo_n "checking linker --sysroot support... " >&6; }
31068 if ${gcc_cv_ld_sysroot+:} false; then :
31069 $as_echo_n "(cached) " >&6
31070 else
31071 gcc_cv_ld_sysroot=no
31072 if test $in_tree_ld = yes ; then
31073 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
31074 gcc_cv_ld_sysroot=yes
31076 elif test x$gcc_cv_ld != x; then
31077 if $gcc_cv_ld --help 2>&1 | grep sysroot > /dev/null; then
31078 gcc_cv_ld_sysroot=yes
31082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
31083 $as_echo "$gcc_cv_ld_sysroot" >&6; }
31084 if test x"$gcc_cv_ld_sysroot" = xyes; then
31086 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
31090 case $target in
31091 *-*-solaris2*)
31092 # Check for system-provided CRTs on Solaris 11.x and Solaris 12.
31093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking system-provided CRTs on Solaris" >&5
31094 $as_echo_n "checking system-provided CRTs on Solaris... " >&6; }
31095 if ${gcc_cv_solaris_crts+:} false; then :
31096 $as_echo_n "(cached) " >&6
31097 else
31098 gcc_cv_solaris_crts=no
31099 if test x$host != x$target; then
31100 if test "x$with_sysroot" = xyes; then
31101 target_sysroot="${test_exec_prefix}/${target_noncanonical}/sys-root"
31102 else
31103 target_sysroot="${with_sysroot}"
31106 target_libdir="$target_sysroot/usr/lib"
31107 # At the time they were added, gcrt1.o became a symlink for backwards
31108 # compatibility on x86, while crt1.o was added on sparc, so check for that.
31109 case $target in
31110 i?86-*-solaris2* | x86_64-*-solaris2*)
31111 if test -h "$target_libdir/gcrt1.o"; then gcc_cv_solaris_crts=yes; fi
31113 sparc*-*-solaris2*)
31114 if test -f "$target_libdir/crt1.o"; then gcc_cv_solaris_crts=yes; fi
31116 esac
31118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_solaris_crts" >&5
31119 $as_echo "$gcc_cv_solaris_crts" >&6; }
31121 esac
31122 if test x$gcc_cv_solaris_crts = xyes; then
31124 $as_echo "#define HAVE_SOLARIS_CRTS 1" >>confdefs.h
31128 # Check whether --enable-libssp was given.
31129 if test "${enable_libssp+set}" = set; then :
31130 enableval=$enable_libssp; case "${enableval}" in
31131 yes|no)
31134 as_fn_error $? "unknown libssp setting $enableval" "$LINENO" 5
31136 esac
31140 # Test for stack protector support in target C library.
31141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
31142 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
31143 if ${gcc_cv_libc_provides_ssp+:} false; then :
31144 $as_echo_n "(cached) " >&6
31145 else
31146 gcc_cv_libc_provides_ssp=no
31147 if test "x$enable_libssp" = "xno"; then
31148 gcc_cv_libc_provides_ssp=yes
31149 elif test "x$enable_libssp" = "xyes"; then
31150 gcc_cv_libc_provides_ssp=no
31151 else
31152 case "$target" in
31153 *-*-musl*)
31154 # All versions of musl provide stack protector
31155 gcc_cv_libc_provides_ssp=yes;;
31156 *-*-linux* | *-*-kfreebsd*-gnu)
31157 # glibc 2.4 and later provides __stack_chk_fail and
31158 # either __stack_chk_guard, or TLS access to stack guard canary.
31160 if test $glibc_version_major -gt 2 \
31161 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
31162 gcc_cv_libc_provides_ssp=yes
31163 else
31165 if test -f $target_header_dir/features.h \
31166 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
31167 $target_header_dir/features.h > /dev/null; then
31168 if $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
31169 $target_header_dir/features.h > /dev/null && \
31170 test -f $target_header_dir/bits/uClibc_config.h && \
31171 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
31172 $target_header_dir/bits/uClibc_config.h > /dev/null; then
31173 gcc_cv_libc_provides_ssp=yes
31175 # all versions of Bionic support stack protector
31176 elif test -f $target_header_dir/sys/cdefs.h \
31177 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
31178 $target_header_dir/sys/cdefs.h > /dev/null; then
31179 gcc_cv_libc_provides_ssp=yes
31183 *-*-gnu*)
31184 # Avoid complicated tests (see
31185 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
31186 # simply assert that glibc does provide this, which is true for all
31187 # realistically usable GNU/Hurd configurations.
31188 # All supported versions of musl provide it as well
31189 gcc_cv_libc_provides_ssp=yes;;
31190 *-*-darwin* | *-*-freebsd* | *-*-netbsd*)
31191 ac_fn_cxx_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
31192 if test "x$ac_cv_func___stack_chk_fail" = xyes; then :
31193 gcc_cv_libc_provides_ssp=yes
31194 else
31195 echo "no __stack_chk_fail on this target"
31199 *) gcc_cv_libc_provides_ssp=no ;;
31200 esac
31203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
31204 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
31206 if test x$gcc_cv_libc_provides_ssp = xyes; then
31208 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
31212 # Check whether --enable-default-ssp was given.
31213 # Check whether --enable-default-ssp was given.
31214 if test "${enable_default_ssp+set}" = set; then :
31215 enableval=$enable_default_ssp;
31216 if test x$gcc_cv_libc_provides_ssp = xyes; then
31217 case "$target" in
31218 ia64*-*-*) enable_default_ssp=no ;;
31219 *) enable_default_ssp=$enableval ;;
31220 esac
31221 else
31222 enable_default_ssp=no
31224 else
31225 enable_default_ssp=no
31228 if test x$enable_default_ssp = xyes ; then
31230 $as_echo "#define ENABLE_DEFAULT_SSP 1" >>confdefs.h
31235 # Test for <sys/sdt.h> on the target.
31237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
31238 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
31239 if ${gcc_cv_sys_sdt_h+:} false; then :
31240 $as_echo_n "(cached) " >&6
31241 else
31243 gcc_cv_sys_sdt_h=no
31244 if test -f $target_header_dir/sys/sdt.h; then
31245 gcc_cv_sys_sdt_h=yes
31249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_sys_sdt_h" >&5
31250 $as_echo "$gcc_cv_sys_sdt_h" >&6; }
31251 if test x$gcc_cv_sys_sdt_h = xyes; then :
31254 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
31259 # Check if TFmode long double should be used by default or not.
31260 # Some glibc targets used DFmode long double, but with glibc 2.4
31261 # and later they can use TFmode.
31262 case "$target" in
31263 powerpc*-*-linux* | \
31264 sparc*-*-linux* | \
31265 s390*-*-linux* | \
31266 alpha*-*-linux*)
31268 # Check whether --with-long-double-128 was given.
31269 if test "${with_long_double_128+set}" = set; then :
31270 withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
31271 else
31273 case "$target" in
31274 s390*-*-linux-musl*)
31275 gcc_cv_target_ldbl128=yes
31277 powerpc*-*-linux-musl*)
31278 gcc_cv_target_ldbl128=no
31282 if test $glibc_version_major -gt 2 \
31283 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
31284 gcc_cv_target_ldbl128=yes
31285 else
31287 gcc_cv_target_ldbl128=no
31288 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
31289 $target_header_dir/bits/wordsize.h > /dev/null 2>&1 \
31290 && gcc_cv_target_ldbl128=yes
31295 esac
31300 esac
31301 if test x$gcc_cv_target_ldbl128 = xyes; then
31303 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
31307 # Check if TFmode long double target should use the IBM extended double or IEEE
31308 # 128-bit floating point formats if long doubles are 128-bits long. The long
31309 # double type can only be switched on powerpc64 bit Linux systems where VSX is
31310 # supported. Other PowerPC systems do not build the IEEE 128-bit emulator in
31311 # libgcc.
31313 # Check whether --with-long-double-format was given.
31314 if test "${with_long_double_format+set}" = set; then :
31315 withval=$with_long_double_format;
31316 case "$target:$with_long_double_format" in
31317 powerpc64le-*-linux*:ieee | powerpc64le-*-linux*:ibm)
31320 powerpc64-*-linux*:ieee | powerpc64-*-linux*:ibm)
31321 # IEEE 128-bit emulation is only built on 64-bit VSX Linux systems
31322 case "$with_cpu" in
31323 power7 | power8 | power9 | power1*)
31327 as_fn_error $? "Configuration option --with-long-double-format is only \
31328 supported if the default cpu is power7 or newer" "$LINENO" 5
31329 with_long_double_format=""
31331 esac
31333 powerpc64*-*-linux*:*)
31334 as_fn_error $? "--with-long-double-format argument should be ibm or ieee" "$LINENO" 5
31335 with_long_double_format=""
31338 as_fn_error $? "Configure option --with-long-double-format is only supported \
31339 on 64-bit PowerPC VSX Linux systems" "$LINENO" 5
31340 with_long_double_format=""
31342 esac
31346 # Check if the target LIBC supports exporting the AT_PLATFORM and AT_HWCAP
31347 # values in the TCB. Currently, only GLIBC 2.23 and later support this.
31348 gcc_cv_libc_provides_hwcap_in_tcb=no
31349 case "$target" in
31350 powerpc*-*-linux*)
31352 if test $glibc_version_major -gt 2 \
31353 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 23 ); then :
31354 gcc_cv_libc_provides_hwcap_in_tcb=yes
31357 esac
31358 if test x$gcc_cv_libc_provides_hwcap_in_tcb = xyes; then
31360 $as_echo "#define TARGET_LIBC_PROVIDES_HWCAP_IN_TCB 1" >>confdefs.h
31364 # Check if the target LIBC handles PT_GNU_STACK.
31365 gcc_cv_libc_gnustack=unknown
31366 case "$target" in
31367 mips*-*-linux-musl*)
31368 gcc_cv_libc_gnustack=yes
31370 mips*-*-linux*)
31372 if test $glibc_version_major -gt 2 \
31373 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 31 ); then :
31374 gcc_cv_libc_gnustack=yes
31377 esac
31378 if test x$gcc_cv_libc_gnustack = xyes; then
31380 $as_echo "#define TARGET_LIBC_GNUSTACK 1" >>confdefs.h
31384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
31385 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
31386 gcc_cv_target_dl_iterate_phdr=unknown
31387 case "$target" in
31388 *-*-solaris2*)
31389 # <link.h> needs both a dl_iterate_phdr declaration and support for
31390 # compilation with largefile support.
31391 if grep dl_iterate_phdr $target_header_dir/link.h > /dev/null 2>&1 \
31392 && grep 'large file capable' $target_header_dir/link.h > /dev/null 2>&1; then
31393 gcc_cv_target_dl_iterate_phdr=yes
31394 else
31395 gcc_cv_target_dl_iterate_phdr=no
31398 *-*-dragonfly* | *-*-freebsd*)
31399 if grep dl_iterate_phdr $target_header_dir/sys/link_elf.h > /dev/null 2>&1; then
31400 gcc_cv_target_dl_iterate_phdr=yes
31401 else
31402 gcc_cv_target_dl_iterate_phdr=no
31405 *-linux-musl*)
31406 gcc_cv_target_dl_iterate_phdr=yes
31408 esac
31410 if test x$gcc_cv_target_dl_iterate_phdr = xyes; then
31412 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
31415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
31416 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
31418 # We no longer support different GC mechanisms. Emit an error if
31419 # the user configures with --with-gc.
31421 # Check whether --with-gc was given.
31422 if test "${with_gc+set}" = set; then :
31423 withval=$with_gc; as_fn_error $? "Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
31427 # Libraries to use on the host. This will normally be set by the top
31428 # level Makefile. Here we simply capture the value for our Makefile.
31429 if test -z "${HOST_LIBS+set}"; then
31430 HOST_LIBS=
31434 # Use the system's zlib library.
31436 # Use the system's zlib library.
31437 zlibdir="-L\$(top_builddir)/../zlib"
31438 zlibinc="-I\$(top_srcdir)/../zlib"
31440 # Check whether --with-system-zlib was given.
31441 if test "${with_system_zlib+set}" = set; then :
31442 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
31443 zlibdir=
31444 zlibinc=
31454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
31455 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
31456 # Check whether --enable-maintainer-mode was given.
31457 if test "${enable_maintainer_mode+set}" = set; then :
31458 enableval=$enable_maintainer_mode; maintainer_mode=$enableval
31459 else
31460 maintainer_mode=no
31464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
31465 $as_echo "$maintainer_mode" >&6; }
31467 if test "$maintainer_mode" = "yes"; then
31468 MAINT=''
31469 else
31470 MAINT='#'
31473 if test -z "$CTAGS"; then
31474 CTAGS=ctags
31477 if test -z "$ETAGS"; then
31478 ETAGS=etags
31481 if test -z "$CSCOPE"; then
31482 CSCOPE=cscope
31487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid linking multiple front-ends at once" >&5
31488 $as_echo_n "checking whether to avoid linking multiple front-ends at once... " >&6; }
31489 # Check whether --enable-link-mutex was given.
31490 if test "${enable_link_mutex+set}" = set; then :
31491 enableval=$enable_link_mutex; do_link_mutex=$enableval
31492 else
31493 do_link_mutex=no
31496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_mutex" >&5
31497 $as_echo "$do_link_mutex" >&6; }
31499 if test "$do_link_mutex" = "yes"; then
31500 DO_LINK_MUTEX=true
31501 { $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
31502 $as_echo "$as_me: WARNING: --enable-link-mutex is deprecated and will be removed in the next release, use --enable-link-serialization instead" >&2;}
31503 else
31504 DO_LINK_MUTEX=false
31509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to serialize linking of multiple front-ends" >&5
31510 $as_echo_n "checking whether to serialize linking of multiple front-ends... " >&6; }
31511 # Check whether --enable-link-serialization was given.
31512 if test "${enable_link_serialization+set}" = set; then :
31513 enableval=$enable_link_serialization; do_link_serialization=$enableval
31514 else
31515 do_link_serialization=no
31518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_serialization" >&5
31519 $as_echo "$do_link_serialization" >&6; }
31521 case "$do_link_serialization" in
31522 yes)
31523 DO_LINK_SERIALIZATION=1;;
31524 [1-9] | [1-9][0-9] | [1-9][0-9][0-9])
31525 DO_LINK_SERIALIZATION=$do_link_serialization;;
31527 DO_LINK_SERIALIZATION=;;
31529 as_fn_error $? "bad value ${do_link_serialization} given for --enable-link-serialization" "$LINENO" 5 ;;
31530 esac
31533 # --------------
31534 # Language hooks
31535 # --------------
31537 # Make empty files to contain the specs and options for each language.
31538 # Then add #include lines to for a compiler that has specs and/or options.
31540 subdirs=
31541 lang_opt_files=
31542 lang_specs_files=
31543 lang_tree_files=
31544 # These (without "all_") are set in each config-lang.in.
31545 # `language' must be a single word so is spelled singularly.
31546 all_languages=
31547 all_compilers=
31548 all_outputs='Makefile'
31549 # List of language configure and makefile fragments.
31550 all_lang_configurefrags=
31551 all_lang_makefrags=
31552 # Additional files for gengtype
31553 all_gtfiles="$target_gtfiles"
31555 # These are the languages that are set in --enable-languages,
31556 # and are available in the GCC tree.
31557 all_selected_languages=
31559 # Add the language fragments.
31560 # Languages are added via two mechanisms. Some information must be
31561 # recorded in makefile variables, these are defined in config-lang.in.
31562 # We accumulate them and plug them into the main Makefile.
31563 # The other mechanism is a set of hooks for each of the main targets
31564 # like `clean', `install', etc.
31566 language_hooks="Make-hooks"
31568 for lang in ${srcdir}/*/config-lang.in
31570 test "$lang" = "${srcdir}/*/config-lang.in" && continue
31572 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
31573 if test "x$lang_alias" = x
31574 then
31575 echo "$lang doesn't set \$language." 1>&2
31576 exit 1
31578 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
31579 subdirs="$subdirs $subdir"
31581 # $gcc_subdir is where the gcc integration files are to be found
31582 # for a language, both for internal compiler purposes (compiler
31583 # sources implementing front-end to GCC tree converters), and for
31584 # build infrastructure purposes (Make-lang.in, etc.)
31586 # This will be <subdir> (relative to $srcdir) if a line like
31587 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
31588 # is found in <langdir>/config-lang.in, and will remain <langdir>
31589 # otherwise.
31591 # Except for the language alias (fetched above), the regular
31592 # "config-lang.in" contents are always retrieved from $gcc_subdir,
31593 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
31594 # only this and the language alias.
31596 gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
31597 if [ "$gcc_subdir" = "" ]; then
31598 gcc_subdir="$subdir"
31601 case ",$enable_languages," in
31602 *,$lang_alias,*)
31603 all_selected_languages="$all_selected_languages $lang_alias"
31604 if test -f $srcdir/$gcc_subdir/lang-specs.h; then
31605 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
31608 esac
31610 language=
31611 boot_language=
31612 compilers=
31613 outputs=
31614 gtfiles=
31615 subdir_requires=
31616 . ${srcdir}/$gcc_subdir/config-lang.in
31617 if test "x$language" = x
31618 then
31619 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
31620 exit 1
31623 ok=:
31624 case ",$enable_languages," in
31625 *,$lang_alias,*) ;;
31627 for i in $subdir_requires; do
31628 test -f "${srcdir}/$i/config-lang.in" && continue
31629 ok=false
31630 break
31631 done
31633 esac
31634 $ok || continue
31636 all_lang_configurefrags="$all_lang_configurefrags \$(srcdir)/$gcc_subdir/config-lang.in"
31637 if test "x$language" = xc && test -n "$all_lang_makefrags"; then
31638 # Put c/Make-lang.in fragment first to match serialization languages order.
31639 all_lang_makefrags="\$(srcdir)/$gcc_subdir/Make-lang.in $all_lang_makefrags"
31640 else
31641 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
31643 if test -f $srcdir/$gcc_subdir/lang.opt; then
31644 lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
31645 all_opt_files="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
31647 if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
31648 lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
31650 all_languages="$all_languages $language"
31651 all_compilers="$all_compilers $compilers"
31652 all_outputs="$all_outputs $outputs"
31653 all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
31654 case ",$enable_languages," in
31655 *,lto,*)
31657 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
31659 enable_lto=yes
31662 *) ;;
31663 esac
31664 done
31666 check_languages=
31667 for language in $all_selected_languages
31669 check_languages="$check_languages check-$language"
31670 done
31672 selftest_languages=
31673 for language in $all_selected_languages
31675 selftest_languages="$selftest_languages selftest-$language"
31676 done
31678 # We link each language in with a set of hooks, reached indirectly via
31679 # lang.${target}. Only do so for selected languages.
31681 rm -f Make-hooks
31682 touch Make-hooks
31683 target_list="all.cross start.encap rest.encap tags \
31684 install-common install-man install-info install-dvi install-pdf \
31685 install-html dvi pdf html uninstall info man srcextra srcman srcinfo \
31686 mostlyclean clean distclean maintainer-clean install-plugin"
31688 for t in $target_list
31691 for lang in $all_selected_languages
31693 x="$x $lang.$t"
31694 done
31695 echo "lang.$t: $x" >> Make-hooks
31696 done
31698 echo "ifeq (\$(DO_LINK_SERIALIZATION),)" >> Make-hooks
31699 echo "SERIAL_LIST =" >> Make-hooks
31700 echo else >> Make-hooks
31701 lang_cnt=0
31702 lang_list=
31703 prev=c
31704 serialization_languages=c
31705 for lang in $all_selected_languages
31707 test $lang = c && continue
31708 if test $lang = lto; then
31709 serialization_languages="$serialization_languages lto1 lto2"
31710 else
31711 serialization_languages="$serialization_languages $lang"
31713 done
31714 for lang in $serialization_languages
31716 test $lang = c && continue
31717 lang_cnt=`expr $lang_cnt + 1`
31718 lang_list=" $prev$lang_list"
31719 prev=${lang}
31720 done
31721 echo "SERIAL_LIST = \$(wordlist \$(DO_LINK_SERIALIZATION),$lang_cnt,$lang_list)" >> Make-hooks
31722 echo endif >> Make-hooks
31723 echo "SERIAL_COUNT = `expr $lang_cnt + 1`" >> Make-hooks
31724 echo "INDEX.c = 0" >> Make-hooks
31725 lang_idx=1
31726 for lang in $serialization_languages
31728 test $lang = c && continue
31729 echo "$lang.prev = \$(if \$(word $lang_cnt,\$(SERIAL_LIST)),\$(\$(word $lang_cnt,\$(SERIAL_LIST)).serial))" >> Make-hooks
31730 echo "INDEX.$lang = $lang_idx" >> Make-hooks
31731 lang_cnt=`expr $lang_cnt - 1`
31732 lang_idx=`expr $lang_idx + 1`
31733 done
31735 # --------
31736 # Option include files
31737 # --------
31739 ${AWK} -f $srcdir/opt-include.awk $all_opt_files > option-includes.mk
31740 option_includes="option-includes.mk"
31743 # --------
31744 # UNSORTED
31745 # --------
31747 # Create .gdbinit.
31749 echo "dir ." > .gdbinit
31750 echo "dir ${srcdir}" >> .gdbinit
31751 if test x$gdb_needs_out_file_path = xyes
31752 then
31753 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
31755 if test "x$subdirs" != x; then
31756 for s in $subdirs
31758 echo "dir ${srcdir}/$s" >> .gdbinit
31759 done
31761 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
31762 echo "python import sys; sys.path.append('${srcdir}'); import gdbhooks" >> .gdbinit
31764 # Put a breakpoint on __asan_report_error to help with debugging buffer
31765 # overflow.
31766 case "$CFLAGS" in
31767 *-fsanitize=address*)
31768 echo "source ${srcdir}/gdbasan.in" >> .gdbinit
31770 esac
31772 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
31776 # Find a directory in which to install a shared libgcc.
31778 # Check whether --enable-version-specific-runtime-libs was given.
31779 if test "${enable_version_specific_runtime_libs+set}" = set; then :
31780 enableval=$enable_version_specific_runtime_libs;
31784 # Substitute configuration variables
31854 # Echo link setup.
31855 if test x${build} = x${host} ; then
31856 if test x${host} = x${target} ; then
31857 echo "Links are now set up to build a native compiler for ${target}." 1>&2
31858 else
31859 echo "Links are now set up to build a cross-compiler" 1>&2
31860 echo " from ${host} to ${target}." 1>&2
31862 else
31863 if test x${host} = x${target} ; then
31864 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
31865 echo " for ${target}." 1>&2
31866 else
31867 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
31868 echo " from ${host} to ${target}." 1>&2
31877 if test "x${ISLLIBS}" != "x" ; then
31879 $as_echo "#define HAVE_isl 1" >>confdefs.h
31883 # Check for plugin support
31884 # Check whether --enable-plugin was given.
31885 if test "${enable_plugin+set}" = set; then :
31886 enableval=$enable_plugin; enable_plugin=$enableval
31887 else
31888 enable_plugin=yes; default_plugin=yes
31892 pluginlibs=
31893 plugin_check=yes
31895 case "${host}" in
31896 *-*-mingw*)
31897 # Since plugin support under MinGW is not as straightforward as on
31898 # other platforms (e.g., we have to link import library, etc), we
31899 # only enable it if explicitly requested.
31900 if test x"$default_plugin" = x"yes"; then
31901 enable_plugin=no
31902 elif test x"$enable_plugin" = x"yes"; then
31903 # Use make's target variable to derive import library name.
31904 pluginlibs='-Wl,--export-all-symbols -Wl,--out-implib=$@.a'
31905 plugin_check=no
31908 *-*-darwin*)
31909 if test x$build = x$host; then
31910 export_sym_check="nm${exeext} -g"
31911 elif test x$host = x$target; then
31912 export_sym_check="$gcc_cv_nm -g"
31913 else
31914 export_sym_check=
31918 if test x$build = x$host; then
31919 export_sym_check="$ac_cv_prog_OBJDUMP -T"
31920 elif test x$host = x$target; then
31921 export_sym_check="$gcc_cv_objdump -T"
31922 else
31923 export_sym_check=
31926 esac
31928 if test x"$enable_plugin" = x"yes" -a x"$plugin_check" = x"yes"; then
31930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
31931 $as_echo_n "checking for exported symbols... " >&6; }
31932 if test "x$export_sym_check" != x; then
31933 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
31934 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest$ac_exeext > /dev/null 2>&1
31935 if $export_sym_check conftest$ac_exeext | grep foobar > /dev/null; then
31936 : # No need to use a flag
31937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31938 $as_echo "yes" >&6; }
31939 else
31940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31941 $as_echo "yes" >&6; }
31942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
31943 $as_echo_n "checking for -rdynamic... " >&6; }
31944 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest$ac_exeext > /dev/null 2>&1
31945 if $export_sym_check conftest$ac_exeext | grep foobar > /dev/null; then
31946 plugin_rdynamic=yes
31947 pluginlibs="-rdynamic"
31948 else
31949 plugin_rdynamic=no
31950 enable_plugin=no
31952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
31953 $as_echo "$plugin_rdynamic" >&6; }
31955 else
31956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
31957 $as_echo "unable to check" >&6; }
31960 # Check -ldl
31961 saved_LIBS="$LIBS"
31962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
31963 $as_echo_n "checking for library containing dlopen... " >&6; }
31964 if ${ac_cv_search_dlopen+:} false; then :
31965 $as_echo_n "(cached) " >&6
31966 else
31967 ac_func_search_save_LIBS=$LIBS
31968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31969 /* end confdefs.h. */
31971 /* Override any GCC internal prototype to avoid an error.
31972 Use char because int might match the return type of a GCC
31973 builtin and then its argument prototype would still apply. */
31974 #ifdef __cplusplus
31975 extern "C"
31976 #endif
31977 char dlopen ();
31979 main ()
31981 return dlopen ();
31983 return 0;
31985 _ACEOF
31986 for ac_lib in '' dl; do
31987 if test -z "$ac_lib"; then
31988 ac_res="none required"
31989 else
31990 ac_res=-l$ac_lib
31991 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
31993 if ac_fn_cxx_try_link "$LINENO"; then :
31994 ac_cv_search_dlopen=$ac_res
31996 rm -f core conftest.err conftest.$ac_objext \
31997 conftest$ac_exeext
31998 if ${ac_cv_search_dlopen+:} false; then :
31999 break
32001 done
32002 if ${ac_cv_search_dlopen+:} false; then :
32004 else
32005 ac_cv_search_dlopen=no
32007 rm conftest.$ac_ext
32008 LIBS=$ac_func_search_save_LIBS
32010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
32011 $as_echo "$ac_cv_search_dlopen" >&6; }
32012 ac_res=$ac_cv_search_dlopen
32013 if test "$ac_res" != no; then :
32014 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
32018 if test x"$ac_cv_search_dlopen" = x"-ldl"; then
32019 pluginlibs="$pluginlibs -ldl"
32021 LIBS="$saved_LIBS"
32023 # Check that we can build shared objects with -fPIC -shared
32024 saved_LDFLAGS="$LDFLAGS"
32025 saved_CFLAGS="$CFLAGS"
32026 saved_CXXFLAGS="$CXXFLAGS"
32027 case "${host}" in
32028 *-*-darwin*)
32029 CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
32030 CFLAGS="$CFLAGS -fPIC"
32031 CXXFLAGS=`echo $CXXFLAGS | sed s/-mdynamic-no-pic//g`
32032 CXXFLAGS="$CXXFLAGS -fPIC"
32033 LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
32036 CFLAGS="$CFLAGS -fPIC"
32037 CXXFLAGS="$CXXFLAGS -fPIC"
32038 LDFLAGS="$LDFLAGS -fPIC -shared"
32040 esac
32041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
32042 $as_echo_n "checking for -fPIC -shared... " >&6; }
32043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32044 /* end confdefs.h. */
32045 extern int X;
32047 main ()
32049 return X == 0;
32051 return 0;
32053 _ACEOF
32054 if ac_fn_cxx_try_link "$LINENO"; then :
32055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32056 $as_echo "yes" >&6; }; have_pic_shared=yes
32057 else
32058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32059 $as_echo "no" >&6; }; have_pic_shared=no
32061 rm -f core conftest.err conftest.$ac_objext \
32062 conftest$ac_exeext conftest.$ac_ext
32063 if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
32064 pluginlibs=
32065 enable_plugin=no
32067 LDFLAGS="$saved_LDFLAGS"
32068 CFLAGS="$saved_CFLAGS"
32069 CXXFLAGS="$saved_CXXFLAGS"
32071 # If plugin support had been requested but not available, fail.
32072 if test x"$enable_plugin" = x"no" ; then
32073 if test x"$default_plugin" != x"yes"; then
32074 as_fn_error $? "
32075 Building GCC with plugin support requires a host that supports
32076 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
32083 if test x"$enable_plugin" = x"yes"; then
32085 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
32090 # Enable --enable-host-shared
32091 # Check whether --enable-host-shared was given.
32092 if test "${enable_host_shared+set}" = set; then :
32093 enableval=$enable_host_shared; PICFLAG=-fPIC
32094 else
32095 PICFLAG=
32102 # Check whether --enable-libquadmath-support was given.
32103 if test "${enable_libquadmath_support+set}" = set; then :
32104 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
32105 else
32106 ENABLE_LIBQUADMATH_SUPPORT=yes
32109 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
32111 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
32116 # Specify what hash style to use by default.
32118 # Check whether --with-linker-hash-style was given.
32119 if test "${with_linker_hash_style+set}" = set; then :
32120 withval=$with_linker_hash_style; case x"$withval" in
32121 xsysv)
32122 LINKER_HASH_STYLE=sysv
32124 xgnu)
32125 LINKER_HASH_STYLE=gnu
32127 xboth)
32128 LINKER_HASH_STYLE=both
32131 as_fn_error $? "$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
32133 esac
32134 else
32135 LINKER_HASH_STYLE=''
32138 if test x"${LINKER_HASH_STYLE}" != x; then
32140 cat >>confdefs.h <<_ACEOF
32141 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
32142 _ACEOF
32146 # Specify what should be the default of -fdiagnostics-color option.
32148 # Check whether --with-diagnostics-color was given.
32149 if test "${with_diagnostics_color+set}" = set; then :
32150 withval=$with_diagnostics_color; case x"$withval" in
32151 xnever)
32152 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_NO
32154 xauto)
32155 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO
32157 xauto-if-env)
32158 DIAGNOSTICS_COLOR_DEFAULT=-1
32160 xalways)
32161 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_YES
32164 as_fn_error $? "$withval is an invalid option to --with-diagnostics-color" "$LINENO" 5
32166 esac
32167 else
32168 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO
32172 cat >>confdefs.h <<_ACEOF
32173 #define DIAGNOSTICS_COLOR_DEFAULT $DIAGNOSTICS_COLOR_DEFAULT
32174 _ACEOF
32177 # Specify what should be the default of -fdiagnostics-urls option.
32179 # Check whether --with-diagnostics-urls was given.
32180 if test "${with_diagnostics_urls+set}" = set; then :
32181 withval=$with_diagnostics_urls; case x"$withval" in
32182 xnever)
32183 DIAGNOSTICS_URLS_DEFAULT=DIAGNOSTICS_URL_NO
32185 xauto)
32186 DIAGNOSTICS_URLS_DEFAULT=DIAGNOSTICS_URL_AUTO
32188 xauto-if-env)
32189 DIAGNOSTICS_URLS_DEFAULT=-1
32191 xalways)
32192 DIAGNOSTICS_URLS_DEFAULT=DIAGNOSTICS_URL_YES
32195 as_fn_error $? "$withval is an invalid option to --with-diagnostics-urls" "$LINENO" 5
32197 esac
32198 else
32199 DIAGNOSTICS_URLS_DEFAULT=DIAGNOSTICS_URL_AUTO
32203 cat >>confdefs.h <<_ACEOF
32204 #define DIAGNOSTICS_URLS_DEFAULT $DIAGNOSTICS_URLS_DEFAULT
32205 _ACEOF
32208 # Generate gcc-driver-name.h containing GCC_DRIVER_NAME for the benefit
32209 # of jit/jit-playback.cc.
32210 gcc_driver_version=`eval "${get_gcc_base_ver} $srcdir/BASE-VER"`
32211 echo "gcc_driver_version: ${gcc_driver_version}"
32212 cat > gcc-driver-name.h <<EOF
32213 #define GCC_DRIVER_NAME "${target_noncanonical}-gcc-${gcc_driver_version}${exeext}"
32216 # Check whether --enable-default-pie was given.
32217 # Check whether --enable-default-pie was given.
32218 if test "${enable_default_pie+set}" = set; then :
32219 enableval=$enable_default_pie; enable_default_pie=$enableval
32220 else
32221 enable_default_pie=no
32224 if test x$enable_default_pie = xyes ; then
32226 $as_echo "#define ENABLE_DEFAULT_PIE 1" >>confdefs.h
32231 # Check if -fno-PIE works.
32232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fno-PIE option" >&5
32233 $as_echo_n "checking for -fno-PIE option... " >&6; }
32234 if ${gcc_cv_c_no_fpie+:} false; then :
32235 $as_echo_n "(cached) " >&6
32236 else
32237 saved_CXXFLAGS="$CXXFLAGS"
32238 CXXFLAGS="$CXXFLAGS -fno-PIE"
32239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32240 /* end confdefs.h. */
32241 int main(void) {return 0;}
32242 _ACEOF
32243 if ac_fn_cxx_try_compile "$LINENO"; then :
32244 gcc_cv_c_no_fpie=yes
32245 else
32246 gcc_cv_c_no_fpie=no
32248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32249 CXXFLAGS="$saved_CXXFLAGS"
32251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_no_fpie" >&5
32252 $as_echo "$gcc_cv_c_no_fpie" >&6; }
32253 if test "$gcc_cv_c_no_fpie" = "yes"; then
32254 NO_PIE_CFLAGS="-fno-PIE"
32258 # Check if -no-pie works.
32259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -no-pie option" >&5
32260 $as_echo_n "checking for -no-pie option... " >&6; }
32261 if ${gcc_cv_no_pie+:} false; then :
32262 $as_echo_n "(cached) " >&6
32263 else
32264 saved_LDFLAGS="$LDFLAGS"
32265 LDFLAGS="$LDFLAGS -no-pie"
32266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32267 /* end confdefs.h. */
32268 int main(void) {return 0;}
32269 _ACEOF
32270 if ac_fn_cxx_try_link "$LINENO"; then :
32271 gcc_cv_no_pie=yes
32272 else
32273 gcc_cv_no_pie=no
32275 rm -f core conftest.err conftest.$ac_objext \
32276 conftest$ac_exeext conftest.$ac_ext
32277 LDFLAGS="$saved_LDFLAGS"
32279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_no_pie" >&5
32280 $as_echo "$gcc_cv_no_pie" >&6; }
32281 if test "$gcc_cv_no_pie" = "yes"; then
32282 NO_PIE_FLAG="-no-pie"
32286 # Enable Intel CET on Intel CET enabled host if jit is enabled.
32287 # Check whether --enable-cet was given.
32288 if test "${enable_cet+set}" = set; then :
32289 enableval=$enable_cet;
32290 case "$enableval" in
32291 yes|no|auto) ;;
32292 *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
32293 esac
32295 else
32296 enable_cet=auto
32300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
32301 $as_echo_n "checking for CET support... " >&6; }
32303 case "$host" in
32304 i[34567]86-*-linux* | x86_64-*-linux*)
32305 may_have_cet=yes
32306 cet_save_CFLAGS="$CFLAGS"
32307 CFLAGS="$CFLAGS -fcf-protection"
32308 case "$enable_cet" in
32309 auto)
32310 # Check if target supports multi-byte NOPs
32311 # and if compiler and assembler support CET.
32312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32313 /* end confdefs.h. */
32316 main ()
32319 #if !defined(__SSE2__)
32320 #error target does not support multi-byte NOPs
32321 #else
32322 asm ("setssbsy");
32323 #endif
32326 return 0;
32328 _ACEOF
32329 if ac_fn_cxx_try_compile "$LINENO"; then :
32330 enable_cet=yes
32331 else
32332 enable_cet=no
32334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32336 yes)
32337 # Check if compiler and assembler support CET.
32338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32339 /* end confdefs.h. */
32342 main ()
32344 asm ("setssbsy");
32346 return 0;
32348 _ACEOF
32349 if ac_fn_cxx_try_compile "$LINENO"; then :
32350 support_cet=yes
32351 else
32352 support_cet=no
32354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32355 if test $support_cet = "no"; then
32356 if test x$enable_bootstrap != xno \
32357 && test -z "${with_build_subdir}" \
32358 && (test ! -f ../stage_current \
32359 || test `cat ../stage_current` != "stage1"); then
32360 # Require CET support only for the final GCC build.
32361 as_fn_error $? "compiler and assembler with CET support are required for --enable-cet" "$LINENO" 5
32362 else
32363 # Don't enable CET without CET support for non-bootstrap
32364 # build, in stage1 nor for build support.
32365 enable_cet=no
32369 esac
32370 CFLAGS="$cet_save_CFLAGS"
32373 may_have_cet=no
32374 enable_cet=no
32376 esac
32378 cet_save_CFLAGS="$CFLAGS"
32379 CFLAGS="$CFLAGS -fcf-protection=none"
32380 cet_save_LDFLAGS="$LDFLAGS"
32381 LDFLAGS="$LDFLAGS -Wl,-z,ibt,-z,shstk"
32382 if test x$may_have_cet = xyes; then
32383 # Check whether -fcf-protection=none -Wl,-z,ibt,-z,shstk work.
32384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32385 /* end confdefs.h. */
32388 main ()
32390 return 0;
32392 return 0;
32394 _ACEOF
32395 if ac_fn_cxx_try_link "$LINENO"; then :
32396 may_have_cet=yes
32397 else
32398 may_have_cet=no
32400 rm -f core conftest.err conftest.$ac_objext \
32401 conftest$ac_exeext conftest.$ac_ext
32404 if test x$may_have_cet = xyes; then
32405 if test x$cross_compiling = xno; then
32406 if test "$cross_compiling" = yes; then :
32407 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
32408 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
32409 as_fn_error $? "cannot run test program while cross compiling
32410 See \`config.log' for more details" "$LINENO" 5; }
32411 else
32412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32413 /* end confdefs.h. */
32416 main ()
32418 asm ("endbr32");
32419 return 0;
32422 _ACEOF
32423 if ac_fn_cxx_try_run "$LINENO"; then :
32424 have_multi_byte_nop=yes
32425 else
32426 have_multi_byte_nop=no
32428 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
32429 conftest.$ac_objext conftest.beam conftest.$ac_ext
32432 have_cet=no
32433 if test x$have_multi_byte_nop = xyes; then
32434 if test "$cross_compiling" = yes; then :
32435 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
32436 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
32437 as_fn_error $? "cannot run test program while cross compiling
32438 See \`config.log' for more details" "$LINENO" 5; }
32439 else
32440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32441 /* end confdefs.h. */
32443 static void
32444 foo (void)
32448 static void
32449 __attribute__ ((noinline, noclone))
32450 xxx (void (*f) (void))
32452 f ();
32455 static void
32456 __attribute__ ((noinline, noclone))
32457 bar (void)
32459 xxx (foo);
32463 main ()
32465 bar ();
32466 return 0;
32469 _ACEOF
32470 if ac_fn_cxx_try_run "$LINENO"; then :
32471 have_cet=no
32472 else
32473 have_cet=yes
32475 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
32476 conftest.$ac_objext conftest.beam conftest.$ac_ext
32480 if test x$enable_cet = xno -a x$have_cet = xyes; then
32481 as_fn_error $? "Intel CET must be enabled on Intel CET enabled host" "$LINENO" 5
32484 else
32485 # Enable CET in cross compiler if possible so that it will run on both
32486 # CET and non-CET hosts.
32487 have_cet=yes
32489 if test x$enable_cet = xyes; then
32490 CET_HOST_FLAGS="-fcf-protection"
32491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32492 $as_echo "yes" >&6; }
32493 else
32494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32495 $as_echo "no" >&6; }
32497 CFLAGS="$cet_save_CFLAGS"
32498 LDFLAGS="$cet_save_LDFLAGS"
32500 case x$enable_languages in
32501 *jit*)
32504 CET_HOST_FLAGS=
32506 esac
32509 # Check linker supports '-z bndplt'
32510 ld_bndplt_support=no
32511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -z bndplt option" >&5
32512 $as_echo_n "checking linker -z bndplt option... " >&6; }
32513 if test x"$ld_is_gold" = xno; then
32514 if test $in_tree_ld = yes ; then
32515 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
32516 ld_bndplt_support=yes
32518 elif test x$gcc_cv_ld != x; then
32519 # Check if linker supports -a bndplt option
32520 if $gcc_cv_ld --help 2>&1 | grep -- '-z bndplt' > /dev/null; then
32521 ld_bndplt_support=yes
32525 if test x"$ld_bndplt_support" = xyes; then
32527 $as_echo "#define HAVE_LD_BNDPLT_SUPPORT 1" >>confdefs.h
32530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_bndplt_support" >&5
32531 $as_echo "$ld_bndplt_support" >&6; }
32533 # Check linker supports '--push-state'/'--pop-state'
32534 ld_pushpopstate_support=no
32535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --push-state/--pop-state options" >&5
32536 $as_echo_n "checking linker --push-state/--pop-state options... " >&6; }
32537 if test x"$ld_is_gold" = xno; then
32538 if test $in_tree_ld = yes ; then
32539 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
32540 ld_pushpopstate_support=yes
32542 elif test x$gcc_cv_ld != x; then
32543 # Check if linker supports --push-state/--pop-state options
32544 if $gcc_cv_ld --help 2>&1 | grep -- '--push-state' > /dev/null; then
32545 ld_pushpopstate_support=yes
32549 if test x"$ld_pushpopstate_support" = xyes; then
32551 $as_echo "#define HAVE_LD_PUSHPOPSTATE_SUPPORT 1" >>confdefs.h
32554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_pushpopstate_support" >&5
32555 $as_echo "$ld_pushpopstate_support" >&6; }
32557 # On s390, float_t has historically been statically defined as double for no
32558 # good reason. To comply with the C standard in the light of this definition,
32559 # gcc has evaluated float expressions in double precision when in
32560 # standards-compatible mode or when given -fexcess-precision=standard. To enable
32561 # a smooth transition towards the new model used by most architectures, where
32562 # gcc describes its behavior via the macro __FLT_EVAL_METHOD__ and glibc derives
32563 # float_t from that, this behavior can be configured with
32564 # --enable-s390-excess-float-precision. When given as enabled, that flag selects
32565 # the old model. When omitted, native builds and cross compiles that have target
32566 # libc headers will detect whether libc clamps float_t to double and in that
32567 # case maintain the old model. Otherwise, they will default to the new model.
32568 # Check whether --enable-s390-excess-float-precision was given.
32569 if test "${enable_s390_excess_float_precision+set}" = set; then :
32570 enableval=$enable_s390_excess_float_precision;
32571 else
32572 enable_s390_excess_float_precision=auto
32576 case $target in
32577 s390*-linux*)
32578 if test x"$enable_s390_excess_float_precision" = xauto; then
32579 # Can we autodetect the behavior of the target libc?
32580 if test "$target" = "$host" -a "$host" = "$build"; then
32581 enable_s390_excess_float_precision=autodetect
32582 elif test "x$with_headers" != xno; then
32583 # cross build. are target headers available?
32584 # carefully coerce the build-system compiler to use target headers
32585 saved_CXXFLAGS="$CXXFLAGS"
32586 fixed_XGCC_FLAGS_FOR_TARGET=`echo "$XGCC_FLAGS_FOR_TARGET" | sed 's/-B/-idirafter/g'`
32587 CROSS_TEST_CXXFLAGS="-nostdinc $fixed_XGCC_FLAGS_FOR_TARGET"
32588 CXXFLAGS="$CROSS_TEST_CXXFLAGS"
32589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32590 /* end confdefs.h. */
32592 #include <math.h>
32594 _ACEOF
32595 if ac_fn_cxx_try_compile "$LINENO"; then :
32596 enable_s390_excess_float_precision=autodetect
32598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32599 CXXFLAGS="$saved_CXXFLAGS"
32602 if test x"$enable_s390_excess_float_precision" = xautodetect; then
32603 saved_CXXFLAGS="$CXXFLAGS"
32604 if ! test "$target" = "$host" -a "$host" = "$build"; then
32605 CXXFLAGS="$CROSS_TEST_CXXFLAGS"
32606 unset CROSS_TEST_CXXFLAGS
32608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glibc clamping float_t to double" >&5
32609 $as_echo_n "checking for glibc clamping float_t to double... " >&6; }
32610 if ${gcc_cv_float_t_clamped_to_double+:} false; then :
32611 $as_echo_n "(cached) " >&6
32612 else
32614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32615 /* end confdefs.h. */
32617 #define __FLT_EVAL_METHOD__ 0
32618 #include <math.h>
32619 int dummy[sizeof(float_t) == sizeof(double) ? 1 : -1];
32621 _ACEOF
32622 if ac_fn_cxx_try_compile "$LINENO"; then :
32623 gcc_cv_float_t_clamped_to_double=yes
32624 else
32625 gcc_cv_float_t_clamped_to_double=no
32627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_float_t_clamped_to_double" >&5
32630 $as_echo "$gcc_cv_float_t_clamped_to_double" >&6; }
32631 CXXFLAGS="$saved_CXXFLAGS"
32632 enable_s390_excess_float_precision="$gcc_cv_float_t_clamped_to_double"
32633 else
32634 # no way to detect behavior of target libc, default to new model
32635 enable_s390_excess_float_precision=no
32640 if test x"$enable_s390_excess_float_precision" = xyes; then
32642 $as_echo "#define ENABLE_S390_EXCESS_FLOAT_PRECISION 1" >>confdefs.h
32646 esac
32648 # Configure the subdirectories
32649 # AC_CONFIG_SUBDIRS($subdirs)
32651 # Create the Makefile
32652 # and configure language subdirectories
32653 ac_config_files="$ac_config_files $all_outputs"
32656 ac_config_commands="$ac_config_commands default"
32658 cat >confcache <<\_ACEOF
32659 # This file is a shell script that caches the results of configure
32660 # tests run on this system so they can be shared between configure
32661 # scripts and configure runs, see configure's option --config-cache.
32662 # It is not useful on other systems. If it contains results you don't
32663 # want to keep, you may remove or edit it.
32665 # config.status only pays attention to the cache file if you give it
32666 # the --recheck option to rerun configure.
32668 # `ac_cv_env_foo' variables (set or unset) will be overridden when
32669 # loading this file, other *unset* `ac_cv_foo' will be assigned the
32670 # following values.
32672 _ACEOF
32674 # The following way of writing the cache mishandles newlines in values,
32675 # but we know of no workaround that is simple, portable, and efficient.
32676 # So, we kill variables containing newlines.
32677 # Ultrix sh set writes to stderr and can't be redirected directly,
32678 # and sets the high bit in the cache file unless we assign to the vars.
32680 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
32681 eval ac_val=\$$ac_var
32682 case $ac_val in #(
32683 *${as_nl}*)
32684 case $ac_var in #(
32685 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
32686 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
32687 esac
32688 case $ac_var in #(
32689 _ | IFS | as_nl) ;; #(
32690 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
32691 *) { eval $ac_var=; unset $ac_var;} ;;
32692 esac ;;
32693 esac
32694 done
32696 (set) 2>&1 |
32697 case $as_nl`(ac_space=' '; set) 2>&1` in #(
32698 *${as_nl}ac_space=\ *)
32699 # `set' does not quote correctly, so add quotes: double-quote
32700 # substitution turns \\\\ into \\, and sed turns \\ into \.
32701 sed -n \
32702 "s/'/'\\\\''/g;
32703 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
32704 ;; #(
32706 # `set' quotes correctly as required by POSIX, so do not add quotes.
32707 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
32709 esac |
32710 sort
32712 sed '
32713 /^ac_cv_env_/b end
32714 t clear
32715 :clear
32716 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
32717 t end
32718 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
32719 :end' >>confcache
32720 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
32721 if test -w "$cache_file"; then
32722 if test "x$cache_file" != "x/dev/null"; then
32723 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
32724 $as_echo "$as_me: updating cache $cache_file" >&6;}
32725 if test ! -f "$cache_file" || test -h "$cache_file"; then
32726 cat confcache >"$cache_file"
32727 else
32728 case $cache_file in #(
32729 */* | ?:*)
32730 mv -f confcache "$cache_file"$$ &&
32731 mv -f "$cache_file"$$ "$cache_file" ;; #(
32733 mv -f confcache "$cache_file" ;;
32734 esac
32737 else
32738 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
32739 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
32742 rm -f confcache
32744 test "x$prefix" = xNONE && prefix=$ac_default_prefix
32745 # Let make expand exec_prefix.
32746 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
32748 DEFS=-DHAVE_CONFIG_H
32750 ac_libobjs=
32751 ac_ltlibobjs=
32753 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
32754 # 1. Remove the extension, and $U if already installed.
32755 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
32756 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
32757 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
32758 # will be set to the directory where LIBOBJS objects are built.
32759 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
32760 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
32761 done
32762 LIBOBJS=$ac_libobjs
32764 LTLIBOBJS=$ac_ltlibobjs
32769 : "${CONFIG_STATUS=./config.status}"
32770 ac_write_fail=0
32771 ac_clean_files_save=$ac_clean_files
32772 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
32773 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
32774 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
32775 as_write_fail=0
32776 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
32777 #! $SHELL
32778 # Generated by $as_me.
32779 # Run this file to recreate the current configuration.
32780 # Compiler output produced by configure, useful for debugging
32781 # configure, is in config.log if it exists.
32783 debug=false
32784 ac_cs_recheck=false
32785 ac_cs_silent=false
32787 SHELL=\${CONFIG_SHELL-$SHELL}
32788 export SHELL
32789 _ASEOF
32790 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
32791 ## -------------------- ##
32792 ## M4sh Initialization. ##
32793 ## -------------------- ##
32795 # Be more Bourne compatible
32796 DUALCASE=1; export DUALCASE # for MKS sh
32797 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
32798 emulate sh
32799 NULLCMD=:
32800 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
32801 # is contrary to our usage. Disable this feature.
32802 alias -g '${1+"$@"}'='"$@"'
32803 setopt NO_GLOB_SUBST
32804 else
32805 case `(set -o) 2>/dev/null` in #(
32806 *posix*) :
32807 set -o posix ;; #(
32808 *) :
32810 esac
32814 as_nl='
32816 export as_nl
32817 # Printing a long string crashes Solaris 7 /usr/bin/printf.
32818 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
32819 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
32820 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
32821 # Prefer a ksh shell builtin over an external printf program on Solaris,
32822 # but without wasting forks for bash or zsh.
32823 if test -z "$BASH_VERSION$ZSH_VERSION" \
32824 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
32825 as_echo='print -r --'
32826 as_echo_n='print -rn --'
32827 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
32828 as_echo='printf %s\n'
32829 as_echo_n='printf %s'
32830 else
32831 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
32832 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
32833 as_echo_n='/usr/ucb/echo -n'
32834 else
32835 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
32836 as_echo_n_body='eval
32837 arg=$1;
32838 case $arg in #(
32839 *"$as_nl"*)
32840 expr "X$arg" : "X\\(.*\\)$as_nl";
32841 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
32842 esac;
32843 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
32845 export as_echo_n_body
32846 as_echo_n='sh -c $as_echo_n_body as_echo'
32848 export as_echo_body
32849 as_echo='sh -c $as_echo_body as_echo'
32852 # The user is always right.
32853 if test "${PATH_SEPARATOR+set}" != set; then
32854 PATH_SEPARATOR=:
32855 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
32856 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
32857 PATH_SEPARATOR=';'
32862 # IFS
32863 # We need space, tab and new line, in precisely that order. Quoting is
32864 # there to prevent editors from complaining about space-tab.
32865 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
32866 # splitting by setting IFS to empty value.)
32867 IFS=" "" $as_nl"
32869 # Find who we are. Look in the path if we contain no directory separator.
32870 as_myself=
32871 case $0 in #((
32872 *[\\/]* ) as_myself=$0 ;;
32873 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32874 for as_dir in $PATH
32876 IFS=$as_save_IFS
32877 test -z "$as_dir" && as_dir=.
32878 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
32879 done
32880 IFS=$as_save_IFS
32883 esac
32884 # We did not find ourselves, most probably we were run as `sh COMMAND'
32885 # in which case we are not to be found in the path.
32886 if test "x$as_myself" = x; then
32887 as_myself=$0
32889 if test ! -f "$as_myself"; then
32890 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
32891 exit 1
32894 # Unset variables that we do not need and which cause bugs (e.g. in
32895 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
32896 # suppresses any "Segmentation fault" message there. '((' could
32897 # trigger a bug in pdksh 5.2.14.
32898 for as_var in BASH_ENV ENV MAIL MAILPATH
32899 do eval test x\${$as_var+set} = xset \
32900 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
32901 done
32902 PS1='$ '
32903 PS2='> '
32904 PS4='+ '
32906 # NLS nuisances.
32907 LC_ALL=C
32908 export LC_ALL
32909 LANGUAGE=C
32910 export LANGUAGE
32912 # CDPATH.
32913 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
32916 # as_fn_error STATUS ERROR [LINENO LOG_FD]
32917 # ----------------------------------------
32918 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
32919 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
32920 # script with STATUS, using 1 if that was 0.
32921 as_fn_error ()
32923 as_status=$1; test $as_status -eq 0 && as_status=1
32924 if test "$4"; then
32925 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
32926 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
32928 $as_echo "$as_me: error: $2" >&2
32929 as_fn_exit $as_status
32930 } # as_fn_error
32933 # as_fn_set_status STATUS
32934 # -----------------------
32935 # Set $? to STATUS, without forking.
32936 as_fn_set_status ()
32938 return $1
32939 } # as_fn_set_status
32941 # as_fn_exit STATUS
32942 # -----------------
32943 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
32944 as_fn_exit ()
32946 set +e
32947 as_fn_set_status $1
32948 exit $1
32949 } # as_fn_exit
32951 # as_fn_unset VAR
32952 # ---------------
32953 # Portably unset VAR.
32954 as_fn_unset ()
32956 { eval $1=; unset $1;}
32958 as_unset=as_fn_unset
32959 # as_fn_append VAR VALUE
32960 # ----------------------
32961 # Append the text in VALUE to the end of the definition contained in VAR. Take
32962 # advantage of any shell optimizations that allow amortized linear growth over
32963 # repeated appends, instead of the typical quadratic growth present in naive
32964 # implementations.
32965 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
32966 eval 'as_fn_append ()
32968 eval $1+=\$2
32970 else
32971 as_fn_append ()
32973 eval $1=\$$1\$2
32975 fi # as_fn_append
32977 # as_fn_arith ARG...
32978 # ------------------
32979 # Perform arithmetic evaluation on the ARGs, and store the result in the
32980 # global $as_val. Take advantage of shells that can avoid forks. The arguments
32981 # must be portable across $(()) and expr.
32982 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
32983 eval 'as_fn_arith ()
32985 as_val=$(( $* ))
32987 else
32988 as_fn_arith ()
32990 as_val=`expr "$@" || test $? -eq 1`
32992 fi # as_fn_arith
32995 if expr a : '\(a\)' >/dev/null 2>&1 &&
32996 test "X`expr 00001 : '.*\(...\)'`" = X001; then
32997 as_expr=expr
32998 else
32999 as_expr=false
33002 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
33003 as_basename=basename
33004 else
33005 as_basename=false
33008 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
33009 as_dirname=dirname
33010 else
33011 as_dirname=false
33014 as_me=`$as_basename -- "$0" ||
33015 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
33016 X"$0" : 'X\(//\)$' \| \
33017 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
33018 $as_echo X/"$0" |
33019 sed '/^.*\/\([^/][^/]*\)\/*$/{
33020 s//\1/
33023 /^X\/\(\/\/\)$/{
33024 s//\1/
33027 /^X\/\(\/\).*/{
33028 s//\1/
33031 s/.*/./; q'`
33033 # Avoid depending upon Character Ranges.
33034 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
33035 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
33036 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
33037 as_cr_digits='0123456789'
33038 as_cr_alnum=$as_cr_Letters$as_cr_digits
33040 ECHO_C= ECHO_N= ECHO_T=
33041 case `echo -n x` in #(((((
33042 -n*)
33043 case `echo 'xy\c'` in
33044 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
33045 xy) ECHO_C='\c';;
33046 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
33047 ECHO_T=' ';;
33048 esac;;
33050 ECHO_N='-n';;
33051 esac
33053 rm -f conf$$ conf$$.exe conf$$.file
33054 if test -d conf$$.dir; then
33055 rm -f conf$$.dir/conf$$.file
33056 else
33057 rm -f conf$$.dir
33058 mkdir conf$$.dir 2>/dev/null
33060 if (echo >conf$$.file) 2>/dev/null; then
33061 if ln -s conf$$.file conf$$ 2>/dev/null; then
33062 as_ln_s='ln -s'
33063 # ... but there are two gotchas:
33064 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
33065 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
33066 # In both cases, we have to default to `cp -pR'.
33067 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
33068 as_ln_s='cp -pR'
33069 elif ln conf$$.file conf$$ 2>/dev/null; then
33070 as_ln_s=ln
33071 else
33072 as_ln_s='cp -pR'
33074 else
33075 as_ln_s='cp -pR'
33077 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
33078 rmdir conf$$.dir 2>/dev/null
33081 # as_fn_mkdir_p
33082 # -------------
33083 # Create "$as_dir" as a directory, including parents if necessary.
33084 as_fn_mkdir_p ()
33087 case $as_dir in #(
33088 -*) as_dir=./$as_dir;;
33089 esac
33090 test -d "$as_dir" || eval $as_mkdir_p || {
33091 as_dirs=
33092 while :; do
33093 case $as_dir in #(
33094 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
33095 *) as_qdir=$as_dir;;
33096 esac
33097 as_dirs="'$as_qdir' $as_dirs"
33098 as_dir=`$as_dirname -- "$as_dir" ||
33099 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33100 X"$as_dir" : 'X\(//\)[^/]' \| \
33101 X"$as_dir" : 'X\(//\)$' \| \
33102 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
33103 $as_echo X"$as_dir" |
33104 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33105 s//\1/
33108 /^X\(\/\/\)[^/].*/{
33109 s//\1/
33112 /^X\(\/\/\)$/{
33113 s//\1/
33116 /^X\(\/\).*/{
33117 s//\1/
33120 s/.*/./; q'`
33121 test -d "$as_dir" && break
33122 done
33123 test -z "$as_dirs" || eval "mkdir $as_dirs"
33124 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
33127 } # as_fn_mkdir_p
33128 if mkdir -p . 2>/dev/null; then
33129 as_mkdir_p='mkdir -p "$as_dir"'
33130 else
33131 test -d ./-p && rmdir ./-p
33132 as_mkdir_p=false
33136 # as_fn_executable_p FILE
33137 # -----------------------
33138 # Test if FILE is an executable regular file.
33139 as_fn_executable_p ()
33141 test -f "$1" && test -x "$1"
33142 } # as_fn_executable_p
33143 as_test_x='test -x'
33144 as_executable_p=as_fn_executable_p
33146 # Sed expression to map a string onto a valid CPP name.
33147 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
33149 # Sed expression to map a string onto a valid variable name.
33150 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
33153 exec 6>&1
33154 ## ----------------------------------- ##
33155 ## Main body of $CONFIG_STATUS script. ##
33156 ## ----------------------------------- ##
33157 _ASEOF
33158 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
33160 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33161 # Save the log message, to keep $0 and so on meaningful, and to
33162 # report actual input values of CONFIG_FILES etc. instead of their
33163 # values after options handling.
33164 ac_log="
33165 This file was extended by $as_me, which was
33166 generated by GNU Autoconf 2.69. Invocation command line was
33168 CONFIG_FILES = $CONFIG_FILES
33169 CONFIG_HEADERS = $CONFIG_HEADERS
33170 CONFIG_LINKS = $CONFIG_LINKS
33171 CONFIG_COMMANDS = $CONFIG_COMMANDS
33172 $ $0 $@
33174 on `(hostname || uname -n) 2>/dev/null | sed 1q`
33177 _ACEOF
33179 case $ac_config_files in *"
33180 "*) set x $ac_config_files; shift; ac_config_files=$*;;
33181 esac
33183 case $ac_config_headers in *"
33184 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
33185 esac
33188 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33189 # Files that config.status was made for.
33190 config_files="$ac_config_files"
33191 config_headers="$ac_config_headers"
33192 config_links="$ac_config_links"
33193 config_commands="$ac_config_commands"
33195 _ACEOF
33197 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33198 ac_cs_usage="\
33199 \`$as_me' instantiates files and other configuration actions
33200 from templates according to the current configuration. Unless the files
33201 and actions are specified as TAGs, all are instantiated by default.
33203 Usage: $0 [OPTION]... [TAG]...
33205 -h, --help print this help, then exit
33206 -V, --version print version number and configuration settings, then exit
33207 --config print configuration, then exit
33208 -q, --quiet, --silent
33209 do not print progress messages
33210 -d, --debug don't remove temporary files
33211 --recheck update $as_me by reconfiguring in the same conditions
33212 --file=FILE[:TEMPLATE]
33213 instantiate the configuration file FILE
33214 --header=FILE[:TEMPLATE]
33215 instantiate the configuration header FILE
33217 Configuration files:
33218 $config_files
33220 Configuration headers:
33221 $config_headers
33223 Configuration links:
33224 $config_links
33226 Configuration commands:
33227 $config_commands
33229 Report bugs to the package provider."
33231 _ACEOF
33232 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33233 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
33234 ac_cs_version="\\
33235 config.status
33236 configured by $0, generated by GNU Autoconf 2.69,
33237 with options \\"\$ac_cs_config\\"
33239 Copyright (C) 2012 Free Software Foundation, Inc.
33240 This config.status script is free software; the Free Software Foundation
33241 gives unlimited permission to copy, distribute and modify it."
33243 ac_pwd='$ac_pwd'
33244 srcdir='$srcdir'
33245 AWK='$AWK'
33246 test -n "\$AWK" || AWK=awk
33247 _ACEOF
33249 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33250 # The default lists apply if the user does not specify any file.
33251 ac_need_defaults=:
33252 while test $# != 0
33254 case $1 in
33255 --*=?*)
33256 ac_option=`expr "X$1" : 'X\([^=]*\)='`
33257 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
33258 ac_shift=:
33260 --*=)
33261 ac_option=`expr "X$1" : 'X\([^=]*\)='`
33262 ac_optarg=
33263 ac_shift=:
33266 ac_option=$1
33267 ac_optarg=$2
33268 ac_shift=shift
33270 esac
33272 case $ac_option in
33273 # Handling of the options.
33274 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
33275 ac_cs_recheck=: ;;
33276 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
33277 $as_echo "$ac_cs_version"; exit ;;
33278 --config | --confi | --conf | --con | --co | --c )
33279 $as_echo "$ac_cs_config"; exit ;;
33280 --debug | --debu | --deb | --de | --d | -d )
33281 debug=: ;;
33282 --file | --fil | --fi | --f )
33283 $ac_shift
33284 case $ac_optarg in
33285 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
33286 '') as_fn_error $? "missing file argument" ;;
33287 esac
33288 as_fn_append CONFIG_FILES " '$ac_optarg'"
33289 ac_need_defaults=false;;
33290 --header | --heade | --head | --hea )
33291 $ac_shift
33292 case $ac_optarg in
33293 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
33294 esac
33295 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
33296 ac_need_defaults=false;;
33297 --he | --h)
33298 # Conflict between --help and --header
33299 as_fn_error $? "ambiguous option: \`$1'
33300 Try \`$0 --help' for more information.";;
33301 --help | --hel | -h )
33302 $as_echo "$ac_cs_usage"; exit ;;
33303 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
33304 | -silent | --silent | --silen | --sile | --sil | --si | --s)
33305 ac_cs_silent=: ;;
33307 # This is an error.
33308 -*) as_fn_error $? "unrecognized option: \`$1'
33309 Try \`$0 --help' for more information." ;;
33311 *) as_fn_append ac_config_targets " $1"
33312 ac_need_defaults=false ;;
33314 esac
33315 shift
33316 done
33318 ac_configure_extra_args=
33320 if $ac_cs_silent; then
33321 exec 6>/dev/null
33322 ac_configure_extra_args="$ac_configure_extra_args --silent"
33325 _ACEOF
33326 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33327 if \$ac_cs_recheck; then
33328 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
33329 shift
33330 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
33331 CONFIG_SHELL='$SHELL'
33332 export CONFIG_SHELL
33333 exec "\$@"
33336 _ACEOF
33337 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33338 exec 5>>config.log
33340 echo
33341 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
33342 ## Running $as_me. ##
33343 _ASBOX
33344 $as_echo "$ac_log"
33345 } >&5
33347 _ACEOF
33348 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33350 # INIT-COMMANDS
33352 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
33353 subdirs="$subdirs" ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
33354 subdirs='$subdirs'
33356 _ACEOF
33358 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33360 # Handling of arguments.
33361 for ac_config_target in $ac_config_targets
33363 case $ac_config_target in
33364 "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
33365 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
33366 "gccdepdir") CONFIG_COMMANDS="$CONFIG_COMMANDS gccdepdir" ;;
33367 "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
33368 "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
33369 "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
33370 "dsymutil") CONFIG_FILES="$CONFIG_FILES dsymutil:exec-tool.in" ;;
33371 "clearcap.map") CONFIG_LINKS="$CONFIG_LINKS clearcap.map:${srcdir}/config/$clearcap_map" ;;
33372 "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
33373 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
33375 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
33376 esac
33377 done
33380 # If the user did not use the arguments to specify the items to instantiate,
33381 # then the envvar interface is used. Set only those that are not.
33382 # We use the long form for the default assignment because of an extremely
33383 # bizarre bug on SunOS 4.1.3.
33384 if $ac_need_defaults; then
33385 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
33386 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
33387 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
33388 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
33391 # Have a temporary directory for convenience. Make it in the build tree
33392 # simply because there is no reason against having it here, and in addition,
33393 # creating and moving files from /tmp can sometimes cause problems.
33394 # Hook for its removal unless debugging.
33395 # Note that there is a small window in which the directory will not be cleaned:
33396 # after its creation but before its name has been assigned to `$tmp'.
33397 $debug ||
33399 tmp= ac_tmp=
33400 trap 'exit_status=$?
33401 : "${ac_tmp:=$tmp}"
33402 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
33404 trap 'as_fn_exit 1' 1 2 13 15
33406 # Create a (secure) tmp directory for tmp files.
33409 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
33410 test -d "$tmp"
33411 } ||
33413 tmp=./conf$$-$RANDOM
33414 (umask 077 && mkdir "$tmp")
33415 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
33416 ac_tmp=$tmp
33418 # Set up the scripts for CONFIG_FILES section.
33419 # No need to generate them if there are no CONFIG_FILES.
33420 # This happens for instance with `./config.status config.h'.
33421 if test -n "$CONFIG_FILES"; then
33423 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
33424 ac_cs_awk_getline=:
33425 ac_cs_awk_pipe_init=
33426 ac_cs_awk_read_file='
33427 while ((getline aline < (F[key])) > 0)
33428 print(aline)
33429 close(F[key])'
33430 ac_cs_awk_pipe_fini=
33431 else
33432 ac_cs_awk_getline=false
33433 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
33434 ac_cs_awk_read_file='
33435 print "|#_!!_#|"
33436 print "cat " F[key] " &&"
33437 '$ac_cs_awk_pipe_init
33438 # The final `:' finishes the AND list.
33439 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
33441 ac_cr=`echo X | tr X '\015'`
33442 # On cygwin, bash can eat \r inside `` if the user requested igncr.
33443 # But we know of no other shell where ac_cr would be empty at this
33444 # point, so we can use a bashism as a fallback.
33445 if test "x$ac_cr" = x; then
33446 eval ac_cr=\$\'\\r\'
33448 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
33449 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
33450 ac_cs_awk_cr='\\r'
33451 else
33452 ac_cs_awk_cr=$ac_cr
33455 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
33456 _ACEOF
33458 # Create commands to substitute file output variables.
33460 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
33461 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
33462 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
33463 echo "_ACAWK" &&
33464 echo "_ACEOF"
33465 } >conf$$files.sh &&
33466 . ./conf$$files.sh ||
33467 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
33468 rm -f conf$$files.sh
33471 echo "cat >conf$$subs.awk <<_ACEOF" &&
33472 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
33473 echo "_ACEOF"
33474 } >conf$$subs.sh ||
33475 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
33476 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
33477 ac_delim='%!_!# '
33478 for ac_last_try in false false false false false :; do
33479 . ./conf$$subs.sh ||
33480 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
33482 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
33483 if test $ac_delim_n = $ac_delim_num; then
33484 break
33485 elif $ac_last_try; then
33486 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
33487 else
33488 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
33490 done
33491 rm -f conf$$subs.sh
33493 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33494 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
33495 _ACEOF
33496 sed -n '
33498 s/^/S["/; s/!.*/"]=/
33501 s/^[^!]*!//
33502 :repl
33503 t repl
33504 s/'"$ac_delim"'$//
33505 t delim
33508 s/\(.\{148\}\)..*/\1/
33509 t more1
33510 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
33513 b repl
33514 :more1
33515 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
33518 s/.\{148\}//
33519 t nl
33520 :delim
33522 s/\(.\{148\}\)..*/\1/
33523 t more2
33524 s/["\\]/\\&/g; s/^/"/; s/$/"/
33527 :more2
33528 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
33531 s/.\{148\}//
33532 t delim
33533 ' <conf$$subs.awk | sed '
33534 /^[^""]/{
33536 s/\n//
33538 ' >>$CONFIG_STATUS || ac_write_fail=1
33539 rm -f conf$$subs.awk
33540 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33541 _ACAWK
33542 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
33543 for (key in S) S_is_set[key] = 1
33544 FS = "\a"
33545 \$ac_cs_awk_pipe_init
33548 line = $ 0
33549 nfields = split(line, field, "@")
33550 substed = 0
33551 len = length(field[1])
33552 for (i = 2; i < nfields; i++) {
33553 key = field[i]
33554 keylen = length(key)
33555 if (S_is_set[key]) {
33556 value = S[key]
33557 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
33558 len += length(value) + length(field[++i])
33559 substed = 1
33560 } else
33561 len += 1 + keylen
33563 if (nfields == 3 && !substed) {
33564 key = field[2]
33565 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
33566 \$ac_cs_awk_read_file
33567 next
33570 print line
33572 \$ac_cs_awk_pipe_fini
33573 _ACAWK
33574 _ACEOF
33575 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33576 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
33577 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
33578 else
33580 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
33581 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
33582 _ACEOF
33584 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
33585 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
33586 # trailing colons and then remove the whole line if VPATH becomes empty
33587 # (actually we leave an empty line to preserve line numbers).
33588 if test "x$srcdir" = x.; then
33589 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
33591 s///
33592 s/^/:/
33593 s/[ ]*$/:/
33594 s/:\$(srcdir):/:/g
33595 s/:\${srcdir}:/:/g
33596 s/:@srcdir@:/:/g
33597 s/^:*//
33598 s/:*$//
33600 s/\(=[ ]*\).*/\1/
33602 s/\n//
33603 s/^[^=]*=[ ]*$//
33607 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33608 fi # test -n "$CONFIG_FILES"
33610 # Set up the scripts for CONFIG_HEADERS section.
33611 # No need to generate them if there are no CONFIG_HEADERS.
33612 # This happens for instance with `./config.status Makefile'.
33613 if test -n "$CONFIG_HEADERS"; then
33614 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
33615 BEGIN {
33616 _ACEOF
33618 # Transform confdefs.h into an awk script `defines.awk', embedded as
33619 # here-document in config.status, that substitutes the proper values into
33620 # config.h.in to produce config.h.
33622 # Create a delimiter string that does not exist in confdefs.h, to ease
33623 # handling of long lines.
33624 ac_delim='%!_!# '
33625 for ac_last_try in false false :; do
33626 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
33627 if test -z "$ac_tt"; then
33628 break
33629 elif $ac_last_try; then
33630 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
33631 else
33632 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
33634 done
33636 # For the awk script, D is an array of macro values keyed by name,
33637 # likewise P contains macro parameters if any. Preserve backslash
33638 # newline sequences.
33640 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
33641 sed -n '
33642 s/.\{148\}/&'"$ac_delim"'/g
33643 t rset
33644 :rset
33645 s/^[ ]*#[ ]*define[ ][ ]*/ /
33646 t def
33648 :def
33649 s/\\$//
33650 t bsnl
33651 s/["\\]/\\&/g
33652 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
33653 D["\1"]=" \3"/p
33654 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
33656 :bsnl
33657 s/["\\]/\\&/g
33658 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
33659 D["\1"]=" \3\\\\\\n"\\/p
33660 t cont
33661 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
33662 t cont
33664 :cont
33666 s/.\{148\}/&'"$ac_delim"'/g
33667 t clear
33668 :clear
33669 s/\\$//
33670 t bsnlc
33671 s/["\\]/\\&/g; s/^/"/; s/$/"/p
33673 :bsnlc
33674 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
33675 b cont
33676 ' <confdefs.h | sed '
33677 s/'"$ac_delim"'/"\\\
33678 "/g' >>$CONFIG_STATUS || ac_write_fail=1
33680 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33681 for (key in D) D_is_set[key] = 1
33682 FS = "\a"
33684 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
33685 line = \$ 0
33686 split(line, arg, " ")
33687 if (arg[1] == "#") {
33688 defundef = arg[2]
33689 mac1 = arg[3]
33690 } else {
33691 defundef = substr(arg[1], 2)
33692 mac1 = arg[2]
33694 split(mac1, mac2, "(") #)
33695 macro = mac2[1]
33696 prefix = substr(line, 1, index(line, defundef) - 1)
33697 if (D_is_set[macro]) {
33698 # Preserve the white space surrounding the "#".
33699 print prefix "define", macro P[macro] D[macro]
33700 next
33701 } else {
33702 # Replace #undef with comments. This is necessary, for example,
33703 # in the case of _POSIX_SOURCE, which is predefined and required
33704 # on some systems where configure will not decide to define it.
33705 if (defundef == "undef") {
33706 print "/*", prefix defundef, macro, "*/"
33707 next
33711 { print }
33712 _ACAWK
33713 _ACEOF
33714 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33715 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
33716 fi # test -n "$CONFIG_HEADERS"
33719 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
33720 shift
33721 for ac_tag
33723 case $ac_tag in
33724 :[FHLC]) ac_mode=$ac_tag; continue;;
33725 esac
33726 case $ac_mode$ac_tag in
33727 :[FHL]*:*);;
33728 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
33729 :[FH]-) ac_tag=-:-;;
33730 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
33731 esac
33732 ac_save_IFS=$IFS
33733 IFS=:
33734 set x $ac_tag
33735 IFS=$ac_save_IFS
33736 shift
33737 ac_file=$1
33738 shift
33740 case $ac_mode in
33741 :L) ac_source=$1;;
33742 :[FH])
33743 ac_file_inputs=
33744 for ac_f
33746 case $ac_f in
33747 -) ac_f="$ac_tmp/stdin";;
33748 *) # Look for the file first in the build tree, then in the source tree
33749 # (if the path is not absolute). The absolute path cannot be DOS-style,
33750 # because $ac_f cannot contain `:'.
33751 test -f "$ac_f" ||
33752 case $ac_f in
33753 [\\/$]*) false;;
33754 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
33755 esac ||
33756 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
33757 esac
33758 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
33759 as_fn_append ac_file_inputs " '$ac_f'"
33760 done
33762 # Let's still pretend it is `configure' which instantiates (i.e., don't
33763 # use $as_me), people would be surprised to read:
33764 # /* config.h. Generated by config.status. */
33765 configure_input='Generated from '`
33766 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
33767 `' by configure.'
33768 if test x"$ac_file" != x-; then
33769 configure_input="$ac_file. $configure_input"
33770 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
33771 $as_echo "$as_me: creating $ac_file" >&6;}
33773 # Neutralize special characters interpreted by sed in replacement strings.
33774 case $configure_input in #(
33775 *\&* | *\|* | *\\* )
33776 ac_sed_conf_input=`$as_echo "$configure_input" |
33777 sed 's/[\\\\&|]/\\\\&/g'`;; #(
33778 *) ac_sed_conf_input=$configure_input;;
33779 esac
33781 case $ac_tag in
33782 *:-:* | *:-) cat >"$ac_tmp/stdin" \
33783 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
33784 esac
33786 esac
33788 ac_dir=`$as_dirname -- "$ac_file" ||
33789 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33790 X"$ac_file" : 'X\(//\)[^/]' \| \
33791 X"$ac_file" : 'X\(//\)$' \| \
33792 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
33793 $as_echo X"$ac_file" |
33794 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33795 s//\1/
33798 /^X\(\/\/\)[^/].*/{
33799 s//\1/
33802 /^X\(\/\/\)$/{
33803 s//\1/
33806 /^X\(\/\).*/{
33807 s//\1/
33810 s/.*/./; q'`
33811 as_dir="$ac_dir"; as_fn_mkdir_p
33812 ac_builddir=.
33814 case "$ac_dir" in
33815 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
33817 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
33818 # A ".." for each directory in $ac_dir_suffix.
33819 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
33820 case $ac_top_builddir_sub in
33821 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
33822 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
33823 esac ;;
33824 esac
33825 ac_abs_top_builddir=$ac_pwd
33826 ac_abs_builddir=$ac_pwd$ac_dir_suffix
33827 # for backward compatibility:
33828 ac_top_builddir=$ac_top_build_prefix
33830 case $srcdir in
33831 .) # We are building in place.
33832 ac_srcdir=.
33833 ac_top_srcdir=$ac_top_builddir_sub
33834 ac_abs_top_srcdir=$ac_pwd ;;
33835 [\\/]* | ?:[\\/]* ) # Absolute name.
33836 ac_srcdir=$srcdir$ac_dir_suffix;
33837 ac_top_srcdir=$srcdir
33838 ac_abs_top_srcdir=$srcdir ;;
33839 *) # Relative name.
33840 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
33841 ac_top_srcdir=$ac_top_build_prefix$srcdir
33842 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
33843 esac
33844 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
33847 case $ac_mode in
33850 # CONFIG_FILE
33853 _ACEOF
33855 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33856 # If the template does not know about datarootdir, expand it.
33857 # FIXME: This hack should be removed a few years after 2.60.
33858 ac_datarootdir_hack=; ac_datarootdir_seen=
33859 ac_sed_dataroot='
33860 /datarootdir/ {
33864 /@datadir@/p
33865 /@docdir@/p
33866 /@infodir@/p
33867 /@localedir@/p
33868 /@mandir@/p'
33869 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
33870 *datarootdir*) ac_datarootdir_seen=yes;;
33871 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
33872 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
33873 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
33874 _ACEOF
33875 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33876 ac_datarootdir_hack='
33877 s&@datadir@&$datadir&g
33878 s&@docdir@&$docdir&g
33879 s&@infodir@&$infodir&g
33880 s&@localedir@&$localedir&g
33881 s&@mandir@&$mandir&g
33882 s&\\\${datarootdir}&$datarootdir&g' ;;
33883 esac
33884 _ACEOF
33886 # Neutralize VPATH when `$srcdir' = `.'.
33887 # Shell code in configure.ac might set extrasub.
33888 # FIXME: do we really want to maintain this feature?
33889 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33890 ac_sed_extra="$ac_vpsub
33891 $extrasub
33892 _ACEOF
33893 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33895 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
33896 s|@configure_input@|$ac_sed_conf_input|;t t
33897 s&@top_builddir@&$ac_top_builddir_sub&;t t
33898 s&@top_build_prefix@&$ac_top_build_prefix&;t t
33899 s&@srcdir@&$ac_srcdir&;t t
33900 s&@abs_srcdir@&$ac_abs_srcdir&;t t
33901 s&@top_srcdir@&$ac_top_srcdir&;t t
33902 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
33903 s&@builddir@&$ac_builddir&;t t
33904 s&@abs_builddir@&$ac_abs_builddir&;t t
33905 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
33906 $ac_datarootdir_hack
33908 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
33909 if $ac_cs_awk_getline; then
33910 $AWK -f "$ac_tmp/subs.awk"
33911 else
33912 $AWK -f "$ac_tmp/subs.awk" | $SHELL
33913 fi \
33914 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
33916 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
33917 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
33918 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
33919 "$ac_tmp/out"`; test -z "$ac_out"; } &&
33920 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
33921 which seems to be undefined. Please make sure it is defined" >&5
33922 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
33923 which seems to be undefined. Please make sure it is defined" >&2;}
33925 rm -f "$ac_tmp/stdin"
33926 case $ac_file in
33927 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
33928 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
33929 esac \
33930 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
33934 # CONFIG_HEADER
33936 if test x"$ac_file" != x-; then
33938 $as_echo "/* $configure_input */" \
33939 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
33940 } >"$ac_tmp/config.h" \
33941 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
33942 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
33943 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
33944 $as_echo "$as_me: $ac_file is unchanged" >&6;}
33945 else
33946 rm -f "$ac_file"
33947 mv "$ac_tmp/config.h" "$ac_file" \
33948 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
33950 else
33951 $as_echo "/* $configure_input */" \
33952 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
33953 || as_fn_error $? "could not create -" "$LINENO" 5
33958 # CONFIG_LINK
33961 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
33963 else
33964 # Prefer the file from the source tree if names are identical.
33965 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
33966 ac_source=$srcdir/$ac_source
33969 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
33970 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
33972 if test ! -r "$ac_source"; then
33973 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
33975 rm -f "$ac_file"
33977 # Try a relative symlink, then a hard link, then a copy.
33978 case $ac_source in
33979 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
33980 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
33981 esac
33982 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
33983 ln "$ac_source" "$ac_file" 2>/dev/null ||
33984 cp -p "$ac_source" "$ac_file" ||
33985 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
33988 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
33989 $as_echo "$as_me: executing $ac_file commands" >&6;}
33991 esac
33994 case $ac_file$ac_mode in
33995 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
33996 "gccdepdir":C)
33997 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs build/$DEPDIR
33998 for lang in $subdirs c-family common analyzer rtl-ssa
34000 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs $lang/$DEPDIR
34001 done ;;
34002 "as":F) chmod +x as ;;
34003 "collect-ld":F) chmod +x collect-ld ;;
34004 "nm":F) chmod +x nm ;;
34005 "dsymutil":F) chmod +x dsymutil ;;
34006 "default":C)
34007 case ${CONFIG_HEADERS} in
34008 *auto-host.h:config.in*)
34009 echo > cstamp-h ;;
34010 esac
34011 # Make sure all the subdirs exist.
34012 for d in $subdirs doc build common c-family
34014 test -d $d || mkdir $d
34015 done
34018 esac
34019 done # for ac_tag
34022 as_fn_exit 0
34023 _ACEOF
34024 ac_clean_files=$ac_clean_files_save
34026 test $ac_write_fail = 0 ||
34027 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
34030 # configure is writing to config.log, and then calls config.status.
34031 # config.status does its own redirection, appending to config.log.
34032 # Unfortunately, on DOS this fails, as config.log is still kept open
34033 # by configure, so config.status won't be able to write to it; its
34034 # output is simply discarded. So we exec the FD to /dev/null,
34035 # effectively closing config.log, so it can be properly (re)opened and
34036 # appended to by config.status. When coming back to configure, we
34037 # need to make the FD available again.
34038 if test "$no_create" != yes; then
34039 ac_cs_success=:
34040 ac_config_status_args=
34041 test "$silent" = yes &&
34042 ac_config_status_args="$ac_config_status_args --quiet"
34043 exec 5>/dev/null
34044 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
34045 exec 5>>config.log
34046 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
34047 # would make configure fail if this is the last instruction.
34048 $ac_cs_success || as_fn_exit 1
34050 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
34051 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
34052 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}