libgo: bump major version
[official-gcc.git] / gcc / configure
blob6af7dbd06b0beb0c725bad9f5394f9336111df07
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
30 esac
34 as_nl='
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
174 esac
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
190 else
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1
201 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
202 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 PATH=/empty FPATH=/empty; export PATH FPATH
206 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
207 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
208 if (eval "$as_required") 2>/dev/null; then :
209 as_have_required=yes
210 else
211 as_have_required=no
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
215 else
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217 as_found=false
218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
220 IFS=$as_save_IFS
221 test -z "$as_dir" && as_dir=.
222 as_found=:
223 case $as_dir in #(
225 for as_base in sh bash ksh sh5; do
226 # Try only shells that exist, to save several forks.
227 as_shell=$as_dir/$as_base
228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230 CONFIG_SHELL=$as_shell as_have_required=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 break 2
235 done;;
236 esac
237 as_found=false
238 done
239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241 CONFIG_SHELL=$SHELL as_have_required=yes
242 fi; }
243 IFS=$as_save_IFS
246 if test "x$CONFIG_SHELL" != x; then :
247 export CONFIG_SHELL
248 # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
252 BASH_ENV=/dev/null
253 ENV=/dev/null
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255 case $- in # ((((
256 *v*x* | *x*v* ) as_opts=-vx ;;
257 *v* ) as_opts=-v ;;
258 *x* ) as_opts=-x ;;
259 * ) as_opts= ;;
260 esac
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265 exit 255
268 if test x$as_have_required = xno; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x${ZSH_VERSION+set} = xset ; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274 else
275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
280 exit 1
284 SHELL=${CONFIG_SHELL-/bin/sh}
285 export SHELL
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
293 # as_fn_unset VAR
294 # ---------------
295 # Portably unset VAR.
296 as_fn_unset ()
298 { eval $1=; unset $1;}
300 as_unset=as_fn_unset
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
305 as_fn_set_status ()
307 return $1
308 } # as_fn_set_status
310 # as_fn_exit STATUS
311 # -----------------
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313 as_fn_exit ()
315 set +e
316 as_fn_set_status $1
317 exit $1
318 } # as_fn_exit
320 # as_fn_mkdir_p
321 # -------------
322 # Create "$as_dir" as a directory, including parents if necessary.
323 as_fn_mkdir_p ()
326 case $as_dir in #(
327 -*) as_dir=./$as_dir;;
328 esac
329 test -d "$as_dir" || eval $as_mkdir_p || {
330 as_dirs=
331 while :; do
332 case $as_dir in #(
333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334 *) as_qdir=$as_dir;;
335 esac
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344 s//\1/
347 /^X\(\/\/\)[^/].*/{
348 s//\1/
351 /^X\(\/\/\)$/{
352 s//\1/
355 /^X\(\/\).*/{
356 s//\1/
359 s/.*/./; q'`
360 test -d "$as_dir" && break
361 done
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
366 } # as_fn_mkdir_p
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
373 test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
380 # implementations.
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
384 eval $1+=\$2
386 else
387 as_fn_append ()
389 eval $1=\$$1\$2
391 fi # as_fn_append
393 # as_fn_arith ARG...
394 # ------------------
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399 eval 'as_fn_arith ()
401 as_val=$(( $* ))
403 else
404 as_fn_arith ()
406 as_val=`expr "$@" || test $? -eq 1`
408 fi # as_fn_arith
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
416 as_fn_error ()
418 as_status=$1; test $as_status -eq 0 && as_status=1
419 if test "$4"; then
420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit $as_status
425 } # as_fn_error
427 if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
429 as_expr=expr
430 else
431 as_expr=false
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 as_basename=basename
436 else
437 as_basename=false
440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_dirname=dirname
442 else
443 as_dirname=false
446 as_me=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450 $as_echo X/"$0" |
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
452 s//\1/
455 /^X\/\(\/\/\)$/{
456 s//\1/
459 /^X\/\(\/\).*/{
460 s//\1/
463 s/.*/./; q'`
465 # Avoid depending upon Character Ranges.
466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits='0123456789'
470 as_cr_alnum=$as_cr_Letters$as_cr_digits
473 as_lineno_1=$LINENO as_lineno_1a=$LINENO
474 as_lineno_2=$LINENO as_lineno_2a=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
478 sed -n '
480 /[$]LINENO/=
481 ' <$as_myself |
482 sed '
483 s/[$]LINENO.*/&-/
484 t lineno
486 :lineno
488 :loop
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490 t loop
491 s/-\n.*//
492 ' >$as_me.lineno &&
493 chmod +x "$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec=no; export _as_can_reexec
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
503 . "./$as_me.lineno"
504 # Exit status is that of the last command.
505 exit
508 ECHO_C= ECHO_N= ECHO_T=
509 case `echo -n x` in #(((((
510 -n*)
511 case `echo 'xy\c'` in
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
513 xy) ECHO_C='\c';;
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
515 ECHO_T=' ';;
516 esac;;
518 ECHO_N='-n';;
519 esac
521 rm -f conf$$ conf$$.exe conf$$.file
522 if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
524 else
525 rm -f conf$$.dir
526 mkdir conf$$.dir 2>/dev/null
528 if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s='ln -s'
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534 # In both cases, we have to default to `cp -pR'.
535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536 as_ln_s='cp -pR'
537 elif ln conf$$.file conf$$ 2>/dev/null; then
538 as_ln_s=ln
539 else
540 as_ln_s='cp -pR'
542 else
543 as_ln_s='cp -pR'
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
548 if mkdir -p . 2>/dev/null; then
549 as_mkdir_p='mkdir -p "$as_dir"'
550 else
551 test -d ./-p && rmdir ./-p
552 as_mkdir_p=false
555 as_test_x='test -x'
556 as_executable_p=as_fn_executable_p
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
564 SHELL=${CONFIG_SHELL-/bin/sh}
567 test -n "$DJDIR" || exec 7<&0 </dev/null
568 exec 6>&1
570 # Name of the host.
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
576 # Initializations.
578 ac_default_prefix=/usr/local
579 ac_clean_files=
580 ac_config_libobj_dir=.
581 LIBOBJS=
582 cross_compiling=no
583 subdirs=
584 MFLAGS=
585 MAKEFLAGS=
587 # Identity of this package.
588 PACKAGE_NAME=
589 PACKAGE_TARNAME=
590 PACKAGE_VERSION=
591 PACKAGE_STRING=
592 PACKAGE_BUGREPORT=
593 PACKAGE_URL=
595 ac_unique_file="tree.cc"
596 # Factoring default headers for most tests.
597 ac_includes_default="\
598 #include <stdio.h>
599 #ifdef HAVE_SYS_TYPES_H
600 # include <sys/types.h>
601 #endif
602 #ifdef HAVE_SYS_STAT_H
603 # include <sys/stat.h>
604 #endif
605 #ifdef STDC_HEADERS
606 # include <stdlib.h>
607 # include <stddef.h>
608 #else
609 # ifdef HAVE_STDLIB_H
610 # include <stdlib.h>
611 # endif
612 #endif
613 #ifdef HAVE_STRING_H
614 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
615 # include <memory.h>
616 # endif
617 # include <string.h>
618 #endif
619 #ifdef HAVE_STRINGS_H
620 # include <strings.h>
621 #endif
622 #ifdef HAVE_INTTYPES_H
623 # include <inttypes.h>
624 #endif
625 #ifdef HAVE_STDINT_H
626 # include <stdint.h>
627 #endif
628 #ifdef HAVE_UNISTD_H
629 # include <unistd.h>
630 #endif"
632 ac_subst_vars='LTLIBOBJS
633 LIBOBJS
634 CET_HOST_FLAGS
635 NO_PIE_FLAG
636 NO_PIE_CFLAGS
637 enable_default_pie
638 PICFLAG
639 enable_host_shared
640 enable_plugin
641 pluginlibs
642 ISLINC
643 ISLLIBS
644 GMPINC
645 GMPLIBS
646 target_cpu_default
647 d_target_objs
648 fortran_target_objs
649 cxx_target_objs
650 c_target_objs
651 use_gcc_stdint
652 xm_defines
653 xm_include_list
654 xm_file_list
655 tm_d_include_list
656 tm_d_file_list
657 tm_p_include_list
658 tm_p_file_list
659 tm_defines
660 tm_include_list
661 tm_file_list
662 common_out_object_file
663 common_out_file
664 out_object_file
665 out_file
666 objc_boehm_gc
667 md_file
668 local_prefix
669 lang_tree_files
670 lang_specs_files
671 lang_opt_files
672 install
673 out_host_hook_obj
674 host_xm_defines
675 host_xm_include_list
676 host_xm_file_list
677 host_exeext
678 gcc_gxx_libcxx_include_dir_add_sysroot
679 gcc_gxx_libcxx_include_dir
680 gcc_gxx_include_dir_add_sysroot
681 gcc_gxx_include_dir
682 gcc_config_arguments
683 float_h_file
684 extra_programs
685 extra_objs
686 extra_headers_list
687 user_headers_inc_next_post
688 user_headers_inc_next_pre
689 extra_gcc_objs
690 TM_MULTILIB_EXCEPTIONS_CONFIG
691 TM_MULTILIB_CONFIG
692 TM_ENDIAN_CONFIG
693 tmake_file
694 xmake_file
695 cpp_install_dir
696 selftest_languages
697 check_languages
698 build_file_translate
699 build_xm_defines
700 build_xm_include_list
701 build_xm_file_list
702 build_install_headers_dir
703 build_exeext
704 all_selected_languages
705 all_languages
706 all_lang_makefrags
707 all_lang_configurefrags
708 all_gtfiles
709 all_compilers
710 srcdir
711 subdirs
712 dollar
713 gcc_tooldir
714 enable_lto
715 DO_LINK_SERIALIZATION
716 DO_LINK_MUTEX
717 CSCOPE
718 ETAGS
719 CTAGS
720 MAINT
721 zlibinc
722 zlibdir
723 HOST_LIBS
724 enable_default_ssp
725 thin_archive_support
726 ld_soname_option
727 ld_version_script_option
728 libgcc_visibility
729 ORIGINAL_DSYMUTIL_FOR_TARGET
730 gcc_cv_dsymutil
731 gcc_cv_otool
732 gcc_cv_readelf
733 gcc_cv_objdump
734 ORIGINAL_NM_FOR_TARGET
735 gcc_cv_nm
736 ORIGINAL_LD_GOLD_FOR_TARGET
737 ORIGINAL_LD_BFD_FOR_TARGET
738 ORIGINAL_LD_FOR_TARGET
739 ORIGINAL_PLUGIN_LD_FOR_TARGET
740 gcc_cv_ld
741 ORIGINAL_AS_FOR_TARGET
742 gcc_cv_as
743 enable_fast_install
744 objdir
745 OTOOL64
746 OTOOL
747 LIPO
748 NMEDIT
749 DSYMUTIL
750 STRIP
751 OBJDUMP
752 ac_ct_DUMPBIN
753 DUMPBIN
755 FGREP
757 LIBTOOL
758 collect2
759 STMP_FIXINC
760 BUILD_LDFLAGS
761 BUILD_CXXFLAGS
762 BUILD_CFLAGS
763 CXX_FOR_BUILD
764 CC_FOR_BUILD
765 inhibit_libc
766 BUILD_SYSTEM_HEADER_DIR
767 SYSTEM_HEADER_DIR
769 CROSS
770 CATOBJEXT
771 GENCAT
772 INSTOBJEXT
773 DATADIRNAME
774 CATALOGS
775 POSUB
776 GMSGFMT
777 XGETTEXT
778 INCINTL
779 LIBINTL_DEP
780 LIBINTL
781 USE_NLS
782 get_gcc_base_ver
783 HAVE_AUTO_BUILD
784 extra_opt_files
785 extra_modes_file
786 NATIVE_SYSTEM_HEADER_DIR
787 objext
788 manext
789 LIBICONV_DEP
790 LTLIBICONV
791 LIBICONV
792 ZSTD_LDFLAGS
793 ZSTD_CPPFLAGS
794 ZSTD_LIB
795 ZSTD_INCLUDE
796 DL_LIB
797 LDEXP_LIB
798 NETLIBS
799 EXTRA_GCC_LIBS
800 GNAT_LIBEXC
801 COLLECT2_LIBS
802 CXXDEPMODE
803 DEPDIR
804 am__leading_dot
805 doc_build_sys
808 BISON
809 FLEX
810 GENERATED_MANPAGES
811 BUILD_INFO
812 MAKEINFO
813 have_mktemp_command
814 make_compare_target
815 INSTALL_DATA
816 INSTALL_PROGRAM
817 INSTALL
818 ranlib_flags
819 RANLIB
821 LN_S
823 SET_MAKE
824 omp_device_property_deps
825 omp_device_properties
826 accel_dir_suffix
827 real_target_noncanonical
828 enable_as_accelerator
829 gnat_install_lib
830 REPORT_BUGS_TEXI
831 REPORT_BUGS_TO
832 PKGVERSION
833 CONFIGURE_SPECS
834 enable_gcov
835 enable_shared
836 enable_fixed_point
837 enable_decimal_float
838 with_float
839 with_cpu
840 enable_multiarch
841 enable_multilib
842 coverage_flags
843 valgrind_command
844 valgrind_path_defines
845 valgrind_path
846 TREECHECKING
847 nocommon_flag
848 noexception_flags
849 warn_cxxflags
850 warn_cflags
851 c_strict_warn
852 strict_warn
853 c_loose_warn
854 loose_warn
855 aliasing_flags
857 EGREP
858 GREP
859 CXXCPP
860 PICFLAG_FOR_TARGET
861 GDCFLAGS
863 GNATMAKE
864 GNATBIND
865 ac_ct_CXX
866 CXXFLAGS
868 OBJEXT
869 EXEEXT
870 ac_ct_CC
871 CPPFLAGS
872 LDFLAGS
873 CFLAGS
875 GENINSRC
876 CROSS_SYSTEM_HEADER_DIR
877 TARGET_SYSTEM_ROOT_DEFINE
878 TARGET_SYSTEM_ROOT
879 SYSROOT_CFLAGS_FOR_TARGET
880 target_subdir
881 host_subdir
882 build_subdir
883 build_libsubdir
884 target_noncanonical
885 host_noncanonical
886 target_os
887 target_vendor
888 target_cpu
889 target
890 host_os
891 host_vendor
892 host_cpu
893 host
894 build_os
895 build_vendor
896 build_cpu
897 build
898 target_alias
899 host_alias
900 build_alias
901 LIBS
902 ECHO_T
903 ECHO_N
904 ECHO_C
905 DEFS
906 mandir
907 localedir
908 libdir
909 psdir
910 pdfdir
911 dvidir
912 htmldir
913 infodir
914 docdir
915 oldincludedir
916 includedir
917 localstatedir
918 sharedstatedir
919 sysconfdir
920 datadir
921 datarootdir
922 libexecdir
923 sbindir
924 bindir
925 program_transform_name
926 prefix
927 exec_prefix
928 PACKAGE_URL
929 PACKAGE_BUGREPORT
930 PACKAGE_STRING
931 PACKAGE_VERSION
932 PACKAGE_TARNAME
933 PACKAGE_NAME
934 PATH_SEPARATOR
935 SHELL'
936 ac_subst_files='option_includes
937 language_hooks'
938 ac_user_opts='
939 enable_option_checking
940 with_build_libsubdir
941 with_local_prefix
942 with_native_system_header_dir
943 with_build_sysroot
944 with_sysroot
945 with_gxx_include_dir
946 with_gxx_libcxx_include_dir
947 with_cpp_install_dir
948 enable_generated_files_in_srcdir
949 with_gnu_ld
950 with_ld
951 with_demangler_in_ld
952 with_dsymutil
953 with_gnu_as
954 with_as
955 enable_largefile
956 enable_build_format_warnings
957 enable_werror_always
958 enable_checking
959 enable_coverage
960 enable_gather_detailed_mem_stats
961 enable_valgrind_annotations
962 enable_multilib
963 enable_multiarch
964 with_stack_clash_protection_guard_size
965 enable___cxa_atexit
966 enable_decimal_float
967 enable_fixed_point
968 enable_threads
969 enable_tls
970 enable_vtable_verify
971 enable_analyzer
972 enable_objc_gc
973 with_dwarf2
974 enable_shared
975 enable_gcov
976 with_specs
977 with_pkgversion
978 with_bugurl
979 with_documentation_root_url
980 with_changes_root_url
981 enable_languages
982 with_multilib_list
983 with_multilib_generator
984 with_zstd
985 with_zstd_include
986 with_zstd_lib
987 enable_rpath
988 with_libiconv_prefix
989 with_libiconv_type
990 enable_sjlj_exceptions
991 with_gcc_major_version_only
992 enable_secureplt
993 enable_mingw_wildcard
994 enable_large_address_aware
995 enable_leading_mingw64_underscores
996 enable_cld
997 enable_frame_pointer
998 enable_win32_registry
999 enable_static
1000 with_pic
1001 enable_fast_install
1002 enable_libtool_lock
1003 enable_ld
1004 enable_gold
1005 with_plugin_ld
1006 enable_gnu_indirect_function
1007 enable_initfini_array
1008 enable_comdat
1009 enable_newlib_nano_formatted_io
1010 enable_standard_branch_protection
1011 enable_fix_cortex_a53_835769
1012 enable_fix_cortex_a53_843419
1013 with_glibc_version
1014 enable_gnu_unique_object
1015 enable_linker_build_id
1016 enable_libssp
1017 enable_default_ssp
1018 with_long_double_128
1019 with_long_double_format
1020 with_gc
1021 with_system_zlib
1022 enable_maintainer_mode
1023 enable_link_mutex
1024 enable_link_serialization
1025 enable_version_specific_runtime_libs
1026 enable_plugin
1027 enable_host_shared
1028 enable_libquadmath_support
1029 with_linker_hash_style
1030 with_diagnostics_color
1031 with_diagnostics_urls
1032 enable_default_pie
1033 enable_cet
1034 enable_s390_excess_float_precision
1036 ac_precious_vars='build_alias
1037 host_alias
1038 target_alias
1040 CFLAGS
1041 LDFLAGS
1042 LIBS
1043 CPPFLAGS
1045 CXXFLAGS
1047 CXXCPP
1049 GMPLIBS
1050 GMPINC
1051 ISLLIBS
1052 ISLINC'
1055 # Initialize some variables set by options.
1056 ac_init_help=
1057 ac_init_version=false
1058 ac_unrecognized_opts=
1059 ac_unrecognized_sep=
1060 # The variables have the same names as the options, with
1061 # dashes changed to underlines.
1062 cache_file=/dev/null
1063 exec_prefix=NONE
1064 no_create=
1065 no_recursion=
1066 prefix=NONE
1067 program_prefix=NONE
1068 program_suffix=NONE
1069 program_transform_name=s,x,x,
1070 silent=
1071 site=
1072 srcdir=
1073 verbose=
1074 x_includes=NONE
1075 x_libraries=NONE
1077 # Installation directory options.
1078 # These are left unexpanded so users can "make install exec_prefix=/foo"
1079 # and all the variables that are supposed to be based on exec_prefix
1080 # by default will actually change.
1081 # Use braces instead of parens because sh, perl, etc. also accept them.
1082 # (The list follows the same order as the GNU Coding Standards.)
1083 bindir='${exec_prefix}/bin'
1084 sbindir='${exec_prefix}/sbin'
1085 libexecdir='${exec_prefix}/libexec'
1086 datarootdir='${prefix}/share'
1087 datadir='${datarootdir}'
1088 sysconfdir='${prefix}/etc'
1089 sharedstatedir='${prefix}/com'
1090 localstatedir='${prefix}/var'
1091 includedir='${prefix}/include'
1092 oldincludedir='/usr/include'
1093 docdir='${datarootdir}/doc/${PACKAGE}'
1094 infodir='${datarootdir}/info'
1095 htmldir='${docdir}'
1096 dvidir='${docdir}'
1097 pdfdir='${docdir}'
1098 psdir='${docdir}'
1099 libdir='${exec_prefix}/lib'
1100 localedir='${datarootdir}/locale'
1101 mandir='${datarootdir}/man'
1103 ac_prev=
1104 ac_dashdash=
1105 for ac_option
1107 # If the previous option needs an argument, assign it.
1108 if test -n "$ac_prev"; then
1109 eval $ac_prev=\$ac_option
1110 ac_prev=
1111 continue
1114 case $ac_option in
1115 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1116 *=) ac_optarg= ;;
1117 *) ac_optarg=yes ;;
1118 esac
1120 # Accept the important Cygnus configure options, so we can diagnose typos.
1122 case $ac_dashdash$ac_option in
1124 ac_dashdash=yes ;;
1126 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1127 ac_prev=bindir ;;
1128 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1129 bindir=$ac_optarg ;;
1131 -build | --build | --buil | --bui | --bu)
1132 ac_prev=build_alias ;;
1133 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1134 build_alias=$ac_optarg ;;
1136 -cache-file | --cache-file | --cache-fil | --cache-fi \
1137 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1138 ac_prev=cache_file ;;
1139 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1140 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1141 cache_file=$ac_optarg ;;
1143 --config-cache | -C)
1144 cache_file=config.cache ;;
1146 -datadir | --datadir | --datadi | --datad)
1147 ac_prev=datadir ;;
1148 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1149 datadir=$ac_optarg ;;
1151 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1152 | --dataroo | --dataro | --datar)
1153 ac_prev=datarootdir ;;
1154 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1155 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1156 datarootdir=$ac_optarg ;;
1158 -disable-* | --disable-*)
1159 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1160 # Reject names that are not valid shell variable names.
1161 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1162 as_fn_error $? "invalid feature name: $ac_useropt"
1163 ac_useropt_orig=$ac_useropt
1164 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1165 case $ac_user_opts in
1167 "enable_$ac_useropt"
1168 "*) ;;
1169 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1170 ac_unrecognized_sep=', ';;
1171 esac
1172 eval enable_$ac_useropt=no ;;
1174 -docdir | --docdir | --docdi | --doc | --do)
1175 ac_prev=docdir ;;
1176 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1177 docdir=$ac_optarg ;;
1179 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1180 ac_prev=dvidir ;;
1181 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1182 dvidir=$ac_optarg ;;
1184 -enable-* | --enable-*)
1185 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1186 # Reject names that are not valid shell variable names.
1187 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1188 as_fn_error $? "invalid feature name: $ac_useropt"
1189 ac_useropt_orig=$ac_useropt
1190 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1191 case $ac_user_opts in
1193 "enable_$ac_useropt"
1194 "*) ;;
1195 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1196 ac_unrecognized_sep=', ';;
1197 esac
1198 eval enable_$ac_useropt=\$ac_optarg ;;
1200 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1201 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1202 | --exec | --exe | --ex)
1203 ac_prev=exec_prefix ;;
1204 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1205 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1206 | --exec=* | --exe=* | --ex=*)
1207 exec_prefix=$ac_optarg ;;
1209 -gas | --gas | --ga | --g)
1210 # Obsolete; use --with-gas.
1211 with_gas=yes ;;
1213 -help | --help | --hel | --he | -h)
1214 ac_init_help=long ;;
1215 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1216 ac_init_help=recursive ;;
1217 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1218 ac_init_help=short ;;
1220 -host | --host | --hos | --ho)
1221 ac_prev=host_alias ;;
1222 -host=* | --host=* | --hos=* | --ho=*)
1223 host_alias=$ac_optarg ;;
1225 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1226 ac_prev=htmldir ;;
1227 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1228 | --ht=*)
1229 htmldir=$ac_optarg ;;
1231 -includedir | --includedir | --includedi | --included | --include \
1232 | --includ | --inclu | --incl | --inc)
1233 ac_prev=includedir ;;
1234 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1235 | --includ=* | --inclu=* | --incl=* | --inc=*)
1236 includedir=$ac_optarg ;;
1238 -infodir | --infodir | --infodi | --infod | --info | --inf)
1239 ac_prev=infodir ;;
1240 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1241 infodir=$ac_optarg ;;
1243 -libdir | --libdir | --libdi | --libd)
1244 ac_prev=libdir ;;
1245 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1246 libdir=$ac_optarg ;;
1248 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1249 | --libexe | --libex | --libe)
1250 ac_prev=libexecdir ;;
1251 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1252 | --libexe=* | --libex=* | --libe=*)
1253 libexecdir=$ac_optarg ;;
1255 -localedir | --localedir | --localedi | --localed | --locale)
1256 ac_prev=localedir ;;
1257 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1258 localedir=$ac_optarg ;;
1260 -localstatedir | --localstatedir | --localstatedi | --localstated \
1261 | --localstate | --localstat | --localsta | --localst | --locals)
1262 ac_prev=localstatedir ;;
1263 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1264 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1265 localstatedir=$ac_optarg ;;
1267 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1268 ac_prev=mandir ;;
1269 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1270 mandir=$ac_optarg ;;
1272 -nfp | --nfp | --nf)
1273 # Obsolete; use --without-fp.
1274 with_fp=no ;;
1276 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1277 | --no-cr | --no-c | -n)
1278 no_create=yes ;;
1280 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1281 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1282 no_recursion=yes ;;
1284 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1285 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1286 | --oldin | --oldi | --old | --ol | --o)
1287 ac_prev=oldincludedir ;;
1288 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1289 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1290 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1291 oldincludedir=$ac_optarg ;;
1293 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1294 ac_prev=prefix ;;
1295 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1296 prefix=$ac_optarg ;;
1298 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1299 | --program-pre | --program-pr | --program-p)
1300 ac_prev=program_prefix ;;
1301 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1302 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1303 program_prefix=$ac_optarg ;;
1305 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1306 | --program-suf | --program-su | --program-s)
1307 ac_prev=program_suffix ;;
1308 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1309 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1310 program_suffix=$ac_optarg ;;
1312 -program-transform-name | --program-transform-name \
1313 | --program-transform-nam | --program-transform-na \
1314 | --program-transform-n | --program-transform- \
1315 | --program-transform | --program-transfor \
1316 | --program-transfo | --program-transf \
1317 | --program-trans | --program-tran \
1318 | --progr-tra | --program-tr | --program-t)
1319 ac_prev=program_transform_name ;;
1320 -program-transform-name=* | --program-transform-name=* \
1321 | --program-transform-nam=* | --program-transform-na=* \
1322 | --program-transform-n=* | --program-transform-=* \
1323 | --program-transform=* | --program-transfor=* \
1324 | --program-transfo=* | --program-transf=* \
1325 | --program-trans=* | --program-tran=* \
1326 | --progr-tra=* | --program-tr=* | --program-t=*)
1327 program_transform_name=$ac_optarg ;;
1329 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1330 ac_prev=pdfdir ;;
1331 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1332 pdfdir=$ac_optarg ;;
1334 -psdir | --psdir | --psdi | --psd | --ps)
1335 ac_prev=psdir ;;
1336 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1337 psdir=$ac_optarg ;;
1339 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1340 | -silent | --silent | --silen | --sile | --sil)
1341 silent=yes ;;
1343 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1344 ac_prev=sbindir ;;
1345 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1346 | --sbi=* | --sb=*)
1347 sbindir=$ac_optarg ;;
1349 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1350 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1351 | --sharedst | --shareds | --shared | --share | --shar \
1352 | --sha | --sh)
1353 ac_prev=sharedstatedir ;;
1354 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1355 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1356 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1357 | --sha=* | --sh=*)
1358 sharedstatedir=$ac_optarg ;;
1360 -site | --site | --sit)
1361 ac_prev=site ;;
1362 -site=* | --site=* | --sit=*)
1363 site=$ac_optarg ;;
1365 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1366 ac_prev=srcdir ;;
1367 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1368 srcdir=$ac_optarg ;;
1370 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1371 | --syscon | --sysco | --sysc | --sys | --sy)
1372 ac_prev=sysconfdir ;;
1373 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1374 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1375 sysconfdir=$ac_optarg ;;
1377 -target | --target | --targe | --targ | --tar | --ta | --t)
1378 ac_prev=target_alias ;;
1379 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1380 target_alias=$ac_optarg ;;
1382 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1383 verbose=yes ;;
1385 -version | --version | --versio | --versi | --vers | -V)
1386 ac_init_version=: ;;
1388 -with-* | --with-*)
1389 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1390 # Reject names that are not valid shell variable names.
1391 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1392 as_fn_error $? "invalid package name: $ac_useropt"
1393 ac_useropt_orig=$ac_useropt
1394 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1395 case $ac_user_opts in
1397 "with_$ac_useropt"
1398 "*) ;;
1399 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1400 ac_unrecognized_sep=', ';;
1401 esac
1402 eval with_$ac_useropt=\$ac_optarg ;;
1404 -without-* | --without-*)
1405 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1406 # Reject names that are not valid shell variable names.
1407 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1408 as_fn_error $? "invalid package name: $ac_useropt"
1409 ac_useropt_orig=$ac_useropt
1410 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1411 case $ac_user_opts in
1413 "with_$ac_useropt"
1414 "*) ;;
1415 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1416 ac_unrecognized_sep=', ';;
1417 esac
1418 eval with_$ac_useropt=no ;;
1420 --x)
1421 # Obsolete; use --with-x.
1422 with_x=yes ;;
1424 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1425 | --x-incl | --x-inc | --x-in | --x-i)
1426 ac_prev=x_includes ;;
1427 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1428 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1429 x_includes=$ac_optarg ;;
1431 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1432 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1433 ac_prev=x_libraries ;;
1434 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1435 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1436 x_libraries=$ac_optarg ;;
1438 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1439 Try \`$0 --help' for more information"
1442 *=*)
1443 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1444 # Reject names that are not valid shell variable names.
1445 case $ac_envvar in #(
1446 '' | [0-9]* | *[!_$as_cr_alnum]* )
1447 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1448 esac
1449 eval $ac_envvar=\$ac_optarg
1450 export $ac_envvar ;;
1453 # FIXME: should be removed in autoconf 3.0.
1454 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1455 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1456 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1457 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1460 esac
1461 done
1463 if test -n "$ac_prev"; then
1464 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1465 as_fn_error $? "missing argument to $ac_option"
1468 if test -n "$ac_unrecognized_opts"; then
1469 case $enable_option_checking in
1470 no) ;;
1471 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1472 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1473 esac
1476 # Check all directory arguments for consistency.
1477 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1478 datadir sysconfdir sharedstatedir localstatedir includedir \
1479 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1480 libdir localedir mandir
1482 eval ac_val=\$$ac_var
1483 # Remove trailing slashes.
1484 case $ac_val in
1485 */ )
1486 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1487 eval $ac_var=\$ac_val;;
1488 esac
1489 # Be sure to have absolute directory names.
1490 case $ac_val in
1491 [\\/$]* | ?:[\\/]* ) continue;;
1492 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1493 esac
1494 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1495 done
1497 # There might be people who depend on the old broken behavior: `$host'
1498 # used to hold the argument of --host etc.
1499 # FIXME: To remove some day.
1500 build=$build_alias
1501 host=$host_alias
1502 target=$target_alias
1504 # FIXME: To remove some day.
1505 if test "x$host_alias" != x; then
1506 if test "x$build_alias" = x; then
1507 cross_compiling=maybe
1508 elif test "x$build_alias" != "x$host_alias"; then
1509 cross_compiling=yes
1513 ac_tool_prefix=
1514 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1516 test "$silent" = yes && exec 6>/dev/null
1519 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1520 ac_ls_di=`ls -di .` &&
1521 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1522 as_fn_error $? "working directory cannot be determined"
1523 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1524 as_fn_error $? "pwd does not report name of working directory"
1527 # Find the source files, if location was not specified.
1528 if test -z "$srcdir"; then
1529 ac_srcdir_defaulted=yes
1530 # Try the directory containing this script, then the parent directory.
1531 ac_confdir=`$as_dirname -- "$as_myself" ||
1532 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1533 X"$as_myself" : 'X\(//\)[^/]' \| \
1534 X"$as_myself" : 'X\(//\)$' \| \
1535 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1536 $as_echo X"$as_myself" |
1537 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1538 s//\1/
1541 /^X\(\/\/\)[^/].*/{
1542 s//\1/
1545 /^X\(\/\/\)$/{
1546 s//\1/
1549 /^X\(\/\).*/{
1550 s//\1/
1553 s/.*/./; q'`
1554 srcdir=$ac_confdir
1555 if test ! -r "$srcdir/$ac_unique_file"; then
1556 srcdir=..
1558 else
1559 ac_srcdir_defaulted=no
1561 if test ! -r "$srcdir/$ac_unique_file"; then
1562 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1563 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1565 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1566 ac_abs_confdir=`(
1567 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1568 pwd)`
1569 # When building in place, set srcdir=.
1570 if test "$ac_abs_confdir" = "$ac_pwd"; then
1571 srcdir=.
1573 # Remove unnecessary trailing slashes from srcdir.
1574 # Double slashes in file names in object file debugging info
1575 # mess up M-x gdb in Emacs.
1576 case $srcdir in
1577 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1578 esac
1579 for ac_var in $ac_precious_vars; do
1580 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1581 eval ac_env_${ac_var}_value=\$${ac_var}
1582 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1583 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1584 done
1587 # Report the --help message.
1589 if test "$ac_init_help" = "long"; then
1590 # Omit some internal or obsolete options to make the list less imposing.
1591 # This message is too long to be a string in the A/UX 3.1 sh.
1592 cat <<_ACEOF
1593 \`configure' configures this package to adapt to many kinds of systems.
1595 Usage: $0 [OPTION]... [VAR=VALUE]...
1597 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1598 VAR=VALUE. See below for descriptions of some of the useful variables.
1600 Defaults for the options are specified in brackets.
1602 Configuration:
1603 -h, --help display this help and exit
1604 --help=short display options specific to this package
1605 --help=recursive display the short help of all the included packages
1606 -V, --version display version information and exit
1607 -q, --quiet, --silent do not print \`checking ...' messages
1608 --cache-file=FILE cache test results in FILE [disabled]
1609 -C, --config-cache alias for \`--cache-file=config.cache'
1610 -n, --no-create do not create output files
1611 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1613 Installation directories:
1614 --prefix=PREFIX install architecture-independent files in PREFIX
1615 [$ac_default_prefix]
1616 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1617 [PREFIX]
1619 By default, \`make install' will install all the files in
1620 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1621 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1622 for instance \`--prefix=\$HOME'.
1624 For better control, use the options below.
1626 Fine tuning of the installation directories:
1627 --bindir=DIR user executables [EPREFIX/bin]
1628 --sbindir=DIR system admin executables [EPREFIX/sbin]
1629 --libexecdir=DIR program executables [EPREFIX/libexec]
1630 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1631 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1632 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1633 --libdir=DIR object code libraries [EPREFIX/lib]
1634 --includedir=DIR C header files [PREFIX/include]
1635 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1636 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1637 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1638 --infodir=DIR info documentation [DATAROOTDIR/info]
1639 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1640 --mandir=DIR man documentation [DATAROOTDIR/man]
1641 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1642 --htmldir=DIR html documentation [DOCDIR]
1643 --dvidir=DIR dvi documentation [DOCDIR]
1644 --pdfdir=DIR pdf documentation [DOCDIR]
1645 --psdir=DIR ps documentation [DOCDIR]
1646 _ACEOF
1648 cat <<\_ACEOF
1650 Program names:
1651 --program-prefix=PREFIX prepend PREFIX to installed program names
1652 --program-suffix=SUFFIX append SUFFIX to installed program names
1653 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1655 System types:
1656 --build=BUILD configure for building on BUILD [guessed]
1657 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1658 --target=TARGET configure for building compilers for TARGET [HOST]
1659 _ACEOF
1662 if test -n "$ac_init_help"; then
1664 cat <<\_ACEOF
1666 Optional Features:
1667 --disable-option-checking ignore unrecognized --enable/--with options
1668 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1669 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1670 --enable-generated-files-in-srcdir
1671 put copies of generated files in source dir intended
1672 for creating source tarballs for users without
1673 texinfo bison or flex
1674 --disable-largefile omit support for large files
1675 --disable-build-format-warnings
1676 don't use -Wformat while building GCC
1677 --enable-werror-always enable -Werror despite compiler version
1678 --enable-checking[=LIST]
1679 enable expensive run-time checks. With LIST, enable
1680 only specific categories of checks. Categories are:
1681 yes,no,all,none,release. Flags are:
1682 assert,df,extra,fold,gc,gcac,gimple,misc,
1683 rtlflag,rtl,runtime,tree,valgrind,types
1684 --enable-coverage[=LEVEL]
1685 enable compiler's code coverage collection. Use to
1686 measure compiler performance and locate unused parts
1687 of the compiler. With LEVEL, specify optimization.
1688 Values are opt, noopt, default is noopt
1689 --enable-gather-detailed-mem-stats
1690 enable detailed memory allocation stats gathering
1691 --enable-valgrind-annotations
1692 enable valgrind runtime interaction
1693 --enable-multilib enable library support for multiple ABIs
1694 --enable-multiarch enable support for multiarch paths
1695 --enable-__cxa_atexit enable __cxa_atexit for C++
1696 --enable-decimal-float={no,yes,bid,dpd}
1697 enable decimal float extension to C. Selecting 'bid'
1698 or 'dpd' choses which decimal floating point format
1699 to use
1700 --enable-fixed-point enable fixed-point arithmetic extension to C
1701 --enable-threads[=LIB] enable thread usage for target GCC, using LIB thread
1702 package
1703 --enable-tls enable or disable generation of tls code overriding
1704 the assembler check for tls support
1705 --enable-vtable-verify enable vtable verification feature
1706 --disable-analyzer disable -fanalyzer static analyzer
1707 --enable-objc-gc enable the use of Boehm's garbage collector with the
1708 GNU Objective-C runtime
1709 --disable-shared don't provide a shared libgcc
1710 --disable-gcov don't provide libgcov and related host tools
1711 --enable-languages=LIST specify which front-ends to build
1712 --disable-rpath do not hardcode runtime library paths
1713 --enable-sjlj-exceptions
1714 arrange to use setjmp/longjmp exception handling
1715 --enable-secureplt enable -msecure-plt by default for PowerPC
1716 --enable-mingw-wildcard Set whether to expand wildcard on command-line.
1717 Default to platform configuration
1718 --enable-large-address-aware
1719 Link mingw executables with --large-address-aware
1720 --enable-leading-mingw64-underscores
1721 enable leading underscores on 64 bit mingw targets
1722 --enable-cld enable -mcld by default for 32bit x86
1723 --enable-frame-pointer enable -fno-omit-frame-pointer by default for x86
1724 --disable-win32-registry
1725 disable lookup of installation paths in the Registry
1726 on Windows hosts
1727 --enable-win32-registry enable registry lookup (default)
1728 --enable-win32-registry=KEY
1729 use KEY instead of GCC version as the last portion
1730 of the registry key
1731 --enable-shared[=PKGS] build shared libraries [default=yes]
1732 --enable-static[=PKGS] build static libraries [default=yes]
1733 --enable-fast-install[=PKGS]
1734 optimize for fast installation [default=yes]
1735 --disable-libtool-lock avoid locking (might break parallel builds)
1736 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1737 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1738 --enable-gnu-indirect-function
1739 enable the use of the @gnu_indirect_function to
1740 glibc systems
1741 --enable-initfini-array use .init_array/.fini_array sections
1742 --enable-comdat enable COMDAT group support
1743 --enable-newlib-nano-formatted-io
1744 Use nano version formatted IO
1746 --enable-standard-branch-protection
1747 enable Branch Target Identification Mechanism and
1748 Return Address Signing by default for AArch64
1749 --disable-standard-branch-protection
1750 disable Branch Target Identification Mechanism and
1751 Return Address Signing by default for AArch64
1754 --enable-fix-cortex-a53-835769
1755 enable workaround for AArch64 Cortex-A53 erratum
1756 835769 by default
1757 --disable-fix-cortex-a53-835769
1758 disable workaround for AArch64 Cortex-A53 erratum
1759 835769 by default
1762 --enable-fix-cortex-a53-843419
1763 enable workaround for AArch64 Cortex-A53 erratum
1764 843419 by default
1765 --disable-fix-cortex-a53-843419
1766 disable workaround for AArch64 Cortex-A53 erratum
1767 843419 by default
1769 --enable-gnu-unique-object
1770 enable the use of the @gnu_unique_object ELF
1771 extension on glibc systems
1772 --enable-linker-build-id
1773 compiler will always pass --build-id to linker
1774 --enable-libssp enable linking against libssp
1775 --enable-default-ssp enable Stack Smashing Protection as default
1776 --enable-maintainer-mode
1777 enable make rules and dependencies not useful (and
1778 sometimes confusing) to the casual installer
1779 --enable-link-mutex avoid linking multiple front-ends at once to avoid
1780 thrashing on the build machine
1781 --enable-link-serialization
1782 avoid linking multiple GCC front-ends at once using
1783 make dependencies to avoid thrashing on the build
1784 machine
1785 --enable-version-specific-runtime-libs
1786 specify that runtime libraries should be installed
1787 in a compiler-specific directory
1788 --enable-plugin enable plugin support
1789 --enable-host-shared build host code as shared libraries
1790 --disable-libquadmath-support
1791 disable libquadmath support for Fortran
1792 --enable-default-pie enable Position Independent Executable as default
1793 --enable-cet enable Intel CET in host libraries [default=auto]
1794 --enable-s390-excess-float-precision
1795 on s390 targets, evaluate float with double
1796 precision when in standards-conforming mode
1798 Optional Packages:
1799 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1800 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1801 --with-build-libsubdir=DIR Directory where to find libraries for build system
1802 --with-local-prefix=DIR specifies directory to put local include
1803 --with-native-system-header-dir=dir
1804 use dir as the directory to look for standard
1805 system header files in. Defaults to /usr/include.
1806 --with-build-sysroot=sysroot
1807 use sysroot as the system root during the build
1808 --with-sysroot[=DIR] search for usr/lib, usr/include, et al, within DIR
1809 --with-gxx-include-dir=DIR
1810 specifies directory to put g++ header files
1811 --with-gxx-libcxx-include-dir=DIR
1812 specifies directory to find libc++ header files
1813 --with-cpp-install-dir=DIR
1814 install the user visible C preprocessor in DIR
1815 (relative to PREFIX) as well as PREFIX/bin
1816 --with-gnu-ld arrange to work with GNU ld
1817 --with-ld arrange to use the specified ld (full pathname)
1818 --with-demangler-in-ld try to use demangler in GNU ld
1819 --with-dsymutil arrange to use the specified dsymutil (full
1820 pathname)
1821 --with-gnu-as arrange to work with GNU as
1822 --with-as arrange to use the specified as (full pathname)
1823 --with-stack-clash-protection-guard-size=size
1824 Set the default stack clash protection guard size
1825 for specific targets as a power of two in bytes.
1826 --with-dwarf2 force the default debug format to be DWARF 2 (or
1827 later)
1828 --with-specs=SPECS add SPECS to driver command-line processing
1829 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1830 --with-bugurl=URL Direct users to URL to report a bug
1831 --with-documentation-root-url=URL
1832 Root for documentation URLs
1833 --with-changes-root-url=URL
1834 Root for GCC changes URLs
1835 --with-multilib-list select multilibs (AArch64, ARM, AVR, OR1K, RISC-V,
1836 SH and x86-64 only)
1837 --with-multilib-generator
1838 Multi-libs configuration string (RISC-V only)
1839 --with-zstd=PATH specify prefix directory for installed zstd library.
1840 Equivalent to --with-zstd-include=PATH/include plus
1841 --with-zstd-lib=PATH/lib
1842 --with-zstd-include=PATH
1843 specify directory for installed zstd include files
1844 --with-zstd-lib=PATH specify directory for the installed zstd library
1845 --with-gnu-ld assume the C compiler uses GNU ld default=no
1846 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1847 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1848 --with-libiconv-type=TYPE type of library to search for (auto/static/shared)
1849 --with-gcc-major-version-only
1850 use only GCC major number in filesystem paths
1851 --with-pic try to use only PIC/non-PIC objects [default=use
1852 both]
1853 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1854 --with-plugin-ld=[ARG] specify the plugin linker
1855 --with-glibc-version=M.N
1856 assume GCC used with glibc version M.N or later
1857 --with-long-double-128 use 128-bit long double by default
1858 --with-long-double-format={ieee,ibm}
1859 Specify whether PowerPC long double uses IEEE or IBM format
1861 --with-gc={page,zone} this option is not supported anymore. It used to
1862 choose the garbage collection mechanism to use with
1863 the compiler
1864 --with-system-zlib use installed libz
1865 --with-linker-hash-style={sysv,gnu,both}
1866 specify the linker hash style
1867 --with-diagnostics-color={never,auto,auto-if-env,always}
1868 specify the default of -fdiagnostics-color option
1869 auto-if-env stands for -fdiagnostics-color=auto if
1870 GCC_COLOR environment variable is present and
1871 -fdiagnostics-color=never otherwise
1872 --with-diagnostics-urls={never,auto,auto-if-env,always}
1873 specify the default of -fdiagnostics-urls option
1874 auto-if-env stands for -fdiagnostics-urls=auto if
1875 GCC_URLS or TERM_URLS environment variable is
1876 present and -fdiagnostics-urls=never otherwise
1878 Some influential environment variables:
1879 CC C compiler command
1880 CFLAGS C compiler flags
1881 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1882 nonstandard directory <lib dir>
1883 LIBS libraries to pass to the linker, e.g. -l<library>
1884 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1885 you have headers in a nonstandard directory <include dir>
1886 CXX C++ compiler command
1887 CXXFLAGS C++ compiler flags
1888 CXXCPP C++ preprocessor
1889 CPP C preprocessor
1890 GMPLIBS How to link GMP
1891 GMPINC How to find GMP include files
1892 ISLLIBS How to link isl
1893 ISLINC How to find isl include files
1895 Use these variables to override the choices made by `configure' or to help
1896 it to find libraries and programs with nonstandard names/locations.
1898 Report bugs to the package provider.
1899 _ACEOF
1900 ac_status=$?
1903 if test "$ac_init_help" = "recursive"; then
1904 # If there are subdirs, report their specific --help.
1905 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1906 test -d "$ac_dir" ||
1907 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1908 continue
1909 ac_builddir=.
1911 case "$ac_dir" in
1912 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1914 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1915 # A ".." for each directory in $ac_dir_suffix.
1916 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1917 case $ac_top_builddir_sub in
1918 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1919 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1920 esac ;;
1921 esac
1922 ac_abs_top_builddir=$ac_pwd
1923 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1924 # for backward compatibility:
1925 ac_top_builddir=$ac_top_build_prefix
1927 case $srcdir in
1928 .) # We are building in place.
1929 ac_srcdir=.
1930 ac_top_srcdir=$ac_top_builddir_sub
1931 ac_abs_top_srcdir=$ac_pwd ;;
1932 [\\/]* | ?:[\\/]* ) # Absolute name.
1933 ac_srcdir=$srcdir$ac_dir_suffix;
1934 ac_top_srcdir=$srcdir
1935 ac_abs_top_srcdir=$srcdir ;;
1936 *) # Relative name.
1937 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1938 ac_top_srcdir=$ac_top_build_prefix$srcdir
1939 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1940 esac
1941 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1943 cd "$ac_dir" || { ac_status=$?; continue; }
1944 # Check for guested configure.
1945 if test -f "$ac_srcdir/configure.gnu"; then
1946 echo &&
1947 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1948 elif test -f "$ac_srcdir/configure"; then
1949 echo &&
1950 $SHELL "$ac_srcdir/configure" --help=recursive
1951 else
1952 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1953 fi || ac_status=$?
1954 cd "$ac_pwd" || { ac_status=$?; break; }
1955 done
1958 test -n "$ac_init_help" && exit $ac_status
1959 if $ac_init_version; then
1960 cat <<\_ACEOF
1961 configure
1962 generated by GNU Autoconf 2.69
1964 Copyright (C) 2012 Free Software Foundation, Inc.
1965 This configure script is free software; the Free Software Foundation
1966 gives unlimited permission to copy, distribute and modify it.
1967 _ACEOF
1968 exit
1971 ## ------------------------ ##
1972 ## Autoconf initialization. ##
1973 ## ------------------------ ##
1975 # ac_fn_c_try_compile LINENO
1976 # --------------------------
1977 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1978 ac_fn_c_try_compile ()
1980 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1981 rm -f conftest.$ac_objext
1982 if { { ac_try="$ac_compile"
1983 case "(($ac_try" in
1984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1985 *) ac_try_echo=$ac_try;;
1986 esac
1987 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1988 $as_echo "$ac_try_echo"; } >&5
1989 (eval "$ac_compile") 2>conftest.err
1990 ac_status=$?
1991 if test -s conftest.err; then
1992 grep -v '^ *+' conftest.err >conftest.er1
1993 cat conftest.er1 >&5
1994 mv -f conftest.er1 conftest.err
1996 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1997 test $ac_status = 0; } && {
1998 test -z "$ac_c_werror_flag" ||
1999 test ! -s conftest.err
2000 } && test -s conftest.$ac_objext; then :
2001 ac_retval=0
2002 else
2003 $as_echo "$as_me: failed program was:" >&5
2004 sed 's/^/| /' conftest.$ac_ext >&5
2006 ac_retval=1
2008 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2009 as_fn_set_status $ac_retval
2011 } # ac_fn_c_try_compile
2013 # ac_fn_cxx_try_compile LINENO
2014 # ----------------------------
2015 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2016 ac_fn_cxx_try_compile ()
2018 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2019 rm -f conftest.$ac_objext
2020 if { { ac_try="$ac_compile"
2021 case "(($ac_try" in
2022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2023 *) ac_try_echo=$ac_try;;
2024 esac
2025 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2026 $as_echo "$ac_try_echo"; } >&5
2027 (eval "$ac_compile") 2>conftest.err
2028 ac_status=$?
2029 if test -s conftest.err; then
2030 grep -v '^ *+' conftest.err >conftest.er1
2031 cat conftest.er1 >&5
2032 mv -f conftest.er1 conftest.err
2034 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2035 test $ac_status = 0; } && {
2036 test -z "$ac_cxx_werror_flag" ||
2037 test ! -s conftest.err
2038 } && test -s conftest.$ac_objext; then :
2039 ac_retval=0
2040 else
2041 $as_echo "$as_me: failed program was:" >&5
2042 sed 's/^/| /' conftest.$ac_ext >&5
2044 ac_retval=1
2046 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2047 as_fn_set_status $ac_retval
2049 } # ac_fn_cxx_try_compile
2051 # ac_fn_cxx_try_cpp LINENO
2052 # ------------------------
2053 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2054 ac_fn_cxx_try_cpp ()
2056 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2057 if { { ac_try="$ac_cpp conftest.$ac_ext"
2058 case "(($ac_try" in
2059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2060 *) ac_try_echo=$ac_try;;
2061 esac
2062 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2063 $as_echo "$ac_try_echo"; } >&5
2064 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2065 ac_status=$?
2066 if test -s conftest.err; then
2067 grep -v '^ *+' conftest.err >conftest.er1
2068 cat conftest.er1 >&5
2069 mv -f conftest.er1 conftest.err
2071 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2072 test $ac_status = 0; } > conftest.i && {
2073 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2074 test ! -s conftest.err
2075 }; then :
2076 ac_retval=0
2077 else
2078 $as_echo "$as_me: failed program was:" >&5
2079 sed 's/^/| /' conftest.$ac_ext >&5
2081 ac_retval=1
2083 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2084 as_fn_set_status $ac_retval
2086 } # ac_fn_cxx_try_cpp
2088 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2089 # ---------------------------------------------------------
2090 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2091 # the include files in INCLUDES and setting the cache variable VAR
2092 # accordingly.
2093 ac_fn_cxx_check_header_mongrel ()
2095 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2096 if eval \${$3+:} false; then :
2097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2098 $as_echo_n "checking for $2... " >&6; }
2099 if eval \${$3+:} false; then :
2100 $as_echo_n "(cached) " >&6
2102 eval ac_res=\$$3
2103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2104 $as_echo "$ac_res" >&6; }
2105 else
2106 # Is the header compilable?
2107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2108 $as_echo_n "checking $2 usability... " >&6; }
2109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2110 /* end confdefs.h. */
2112 #include <$2>
2113 _ACEOF
2114 if ac_fn_cxx_try_compile "$LINENO"; then :
2115 ac_header_compiler=yes
2116 else
2117 ac_header_compiler=no
2119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2121 $as_echo "$ac_header_compiler" >&6; }
2123 # Is the header present?
2124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2125 $as_echo_n "checking $2 presence... " >&6; }
2126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2127 /* end confdefs.h. */
2128 #include <$2>
2129 _ACEOF
2130 if ac_fn_cxx_try_cpp "$LINENO"; then :
2131 ac_header_preproc=yes
2132 else
2133 ac_header_preproc=no
2135 rm -f conftest.err conftest.i conftest.$ac_ext
2136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2137 $as_echo "$ac_header_preproc" >&6; }
2139 # So? What about this header?
2140 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2141 yes:no: )
2142 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2143 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2144 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2145 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2147 no:yes:* )
2148 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2149 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2150 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2151 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2152 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2153 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2154 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2155 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2156 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2157 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2159 esac
2160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2161 $as_echo_n "checking for $2... " >&6; }
2162 if eval \${$3+:} false; then :
2163 $as_echo_n "(cached) " >&6
2164 else
2165 eval "$3=\$ac_header_compiler"
2167 eval ac_res=\$$3
2168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2169 $as_echo "$ac_res" >&6; }
2171 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2173 } # ac_fn_cxx_check_header_mongrel
2175 # ac_fn_cxx_try_run LINENO
2176 # ------------------------
2177 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2178 # that executables *can* be run.
2179 ac_fn_cxx_try_run ()
2181 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2182 if { { ac_try="$ac_link"
2183 case "(($ac_try" in
2184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2185 *) ac_try_echo=$ac_try;;
2186 esac
2187 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2188 $as_echo "$ac_try_echo"; } >&5
2189 (eval "$ac_link") 2>&5
2190 ac_status=$?
2191 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2192 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2193 { { case "(($ac_try" in
2194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2195 *) ac_try_echo=$ac_try;;
2196 esac
2197 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2198 $as_echo "$ac_try_echo"; } >&5
2199 (eval "$ac_try") 2>&5
2200 ac_status=$?
2201 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2202 test $ac_status = 0; }; }; then :
2203 ac_retval=0
2204 else
2205 $as_echo "$as_me: program exited with status $ac_status" >&5
2206 $as_echo "$as_me: failed program was:" >&5
2207 sed 's/^/| /' conftest.$ac_ext >&5
2209 ac_retval=$ac_status
2211 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2212 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2213 as_fn_set_status $ac_retval
2215 } # ac_fn_cxx_try_run
2217 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2218 # ---------------------------------------------------------
2219 # Tests whether HEADER exists and can be compiled using the include files in
2220 # INCLUDES, setting the cache variable VAR accordingly.
2221 ac_fn_cxx_check_header_compile ()
2223 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2225 $as_echo_n "checking for $2... " >&6; }
2226 if eval \${$3+:} false; then :
2227 $as_echo_n "(cached) " >&6
2228 else
2229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2230 /* end confdefs.h. */
2232 #include <$2>
2233 _ACEOF
2234 if ac_fn_cxx_try_compile "$LINENO"; then :
2235 eval "$3=yes"
2236 else
2237 eval "$3=no"
2239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2241 eval ac_res=\$$3
2242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2243 $as_echo "$ac_res" >&6; }
2244 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2246 } # ac_fn_cxx_check_header_compile
2248 # ac_fn_c_try_cpp LINENO
2249 # ----------------------
2250 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2251 ac_fn_c_try_cpp ()
2253 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2254 if { { ac_try="$ac_cpp conftest.$ac_ext"
2255 case "(($ac_try" in
2256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2257 *) ac_try_echo=$ac_try;;
2258 esac
2259 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2260 $as_echo "$ac_try_echo"; } >&5
2261 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2262 ac_status=$?
2263 if test -s conftest.err; then
2264 grep -v '^ *+' conftest.err >conftest.er1
2265 cat conftest.er1 >&5
2266 mv -f conftest.er1 conftest.err
2268 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2269 test $ac_status = 0; } > conftest.i && {
2270 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2271 test ! -s conftest.err
2272 }; then :
2273 ac_retval=0
2274 else
2275 $as_echo "$as_me: failed program was:" >&5
2276 sed 's/^/| /' conftest.$ac_ext >&5
2278 ac_retval=1
2280 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2281 as_fn_set_status $ac_retval
2283 } # ac_fn_c_try_cpp
2285 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2286 # ----------------------------------------------
2287 # Tries to find the compile-time value of EXPR in a program that includes
2288 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2289 # computed
2290 ac_fn_cxx_compute_int ()
2292 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2293 if test "$cross_compiling" = yes; then
2294 # Depending upon the size, compute the lo and hi bounds.
2295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2296 /* end confdefs.h. */
2299 main ()
2301 static int test_array [1 - 2 * !(($2) >= 0)];
2302 test_array [0] = 0;
2303 return test_array [0];
2306 return 0;
2308 _ACEOF
2309 if ac_fn_cxx_try_compile "$LINENO"; then :
2310 ac_lo=0 ac_mid=0
2311 while :; do
2312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2313 /* end confdefs.h. */
2316 main ()
2318 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2319 test_array [0] = 0;
2320 return test_array [0];
2323 return 0;
2325 _ACEOF
2326 if ac_fn_cxx_try_compile "$LINENO"; then :
2327 ac_hi=$ac_mid; break
2328 else
2329 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2330 if test $ac_lo -le $ac_mid; then
2331 ac_lo= ac_hi=
2332 break
2334 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2337 done
2338 else
2339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2340 /* end confdefs.h. */
2343 main ()
2345 static int test_array [1 - 2 * !(($2) < 0)];
2346 test_array [0] = 0;
2347 return test_array [0];
2350 return 0;
2352 _ACEOF
2353 if ac_fn_cxx_try_compile "$LINENO"; then :
2354 ac_hi=-1 ac_mid=-1
2355 while :; do
2356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2357 /* end confdefs.h. */
2360 main ()
2362 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2363 test_array [0] = 0;
2364 return test_array [0];
2367 return 0;
2369 _ACEOF
2370 if ac_fn_cxx_try_compile "$LINENO"; then :
2371 ac_lo=$ac_mid; break
2372 else
2373 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2374 if test $ac_mid -le $ac_hi; then
2375 ac_lo= ac_hi=
2376 break
2378 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2381 done
2382 else
2383 ac_lo= ac_hi=
2385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2388 # Binary search between lo and hi bounds.
2389 while test "x$ac_lo" != "x$ac_hi"; do
2390 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2392 /* end confdefs.h. */
2395 main ()
2397 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2398 test_array [0] = 0;
2399 return test_array [0];
2402 return 0;
2404 _ACEOF
2405 if ac_fn_cxx_try_compile "$LINENO"; then :
2406 ac_hi=$ac_mid
2407 else
2408 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2411 done
2412 case $ac_lo in #((
2413 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2414 '') ac_retval=1 ;;
2415 esac
2416 else
2417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2418 /* end confdefs.h. */
2420 static long int longval () { return $2; }
2421 static unsigned long int ulongval () { return $2; }
2422 #include <stdio.h>
2423 #include <stdlib.h>
2425 main ()
2428 FILE *f = fopen ("conftest.val", "w");
2429 if (! f)
2430 return 1;
2431 if (($2) < 0)
2433 long int i = longval ();
2434 if (i != ($2))
2435 return 1;
2436 fprintf (f, "%ld", i);
2438 else
2440 unsigned long int i = ulongval ();
2441 if (i != ($2))
2442 return 1;
2443 fprintf (f, "%lu", i);
2445 /* Do not output a trailing newline, as this causes \r\n confusion
2446 on some platforms. */
2447 return ferror (f) || fclose (f) != 0;
2450 return 0;
2452 _ACEOF
2453 if ac_fn_cxx_try_run "$LINENO"; then :
2454 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2455 else
2456 ac_retval=1
2458 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2459 conftest.$ac_objext conftest.beam conftest.$ac_ext
2460 rm -f conftest.val
2463 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2464 as_fn_set_status $ac_retval
2466 } # ac_fn_cxx_compute_int
2468 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2469 # ---------------------------------------------
2470 # Tests whether TYPE exists after having included INCLUDES, setting cache
2471 # variable VAR accordingly.
2472 ac_fn_cxx_check_type ()
2474 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2476 $as_echo_n "checking for $2... " >&6; }
2477 if eval \${$3+:} false; then :
2478 $as_echo_n "(cached) " >&6
2479 else
2480 eval "$3=no"
2481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2482 /* end confdefs.h. */
2485 main ()
2487 if (sizeof ($2))
2488 return 0;
2490 return 0;
2492 _ACEOF
2493 if ac_fn_cxx_try_compile "$LINENO"; then :
2494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2495 /* end confdefs.h. */
2498 main ()
2500 if (sizeof (($2)))
2501 return 0;
2503 return 0;
2505 _ACEOF
2506 if ac_fn_cxx_try_compile "$LINENO"; then :
2508 else
2509 eval "$3=yes"
2511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2515 eval ac_res=\$$3
2516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2517 $as_echo "$ac_res" >&6; }
2518 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2520 } # ac_fn_cxx_check_type
2522 # ac_fn_c_find_intX_t LINENO BITS VAR
2523 # -----------------------------------
2524 # Finds a signed integer type with width BITS, setting cache variable VAR
2525 # accordingly.
2526 ac_fn_c_find_intX_t ()
2528 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2530 $as_echo_n "checking for int$2_t... " >&6; }
2531 if eval \${$3+:} false; then :
2532 $as_echo_n "(cached) " >&6
2533 else
2534 eval "$3=no"
2535 # Order is important - never check a type that is potentially smaller
2536 # than half of the expected target width.
2537 for ac_type in int$2_t 'int' 'long int' \
2538 'long long int' 'short int' 'signed char'; do
2539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2540 /* end confdefs.h. */
2541 $ac_includes_default
2542 enum { N = $2 / 2 - 1 };
2544 main ()
2546 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2547 test_array [0] = 0;
2548 return test_array [0];
2551 return 0;
2553 _ACEOF
2554 if ac_fn_cxx_try_compile "$LINENO"; then :
2555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2556 /* end confdefs.h. */
2557 $ac_includes_default
2558 enum { N = $2 / 2 - 1 };
2560 main ()
2562 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2563 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2564 test_array [0] = 0;
2565 return test_array [0];
2568 return 0;
2570 _ACEOF
2571 if ac_fn_cxx_try_compile "$LINENO"; then :
2573 else
2574 case $ac_type in #(
2575 int$2_t) :
2576 eval "$3=yes" ;; #(
2577 *) :
2578 eval "$3=\$ac_type" ;;
2579 esac
2581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2584 if eval test \"x\$"$3"\" = x"no"; then :
2586 else
2587 break
2589 done
2591 eval ac_res=\$$3
2592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2593 $as_echo "$ac_res" >&6; }
2594 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2596 } # ac_fn_c_find_intX_t
2598 # ac_fn_cxx_try_link LINENO
2599 # -------------------------
2600 # Try to link conftest.$ac_ext, and return whether this succeeded.
2601 ac_fn_cxx_try_link ()
2603 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2604 rm -f conftest.$ac_objext conftest$ac_exeext
2605 if { { ac_try="$ac_link"
2606 case "(($ac_try" in
2607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2608 *) ac_try_echo=$ac_try;;
2609 esac
2610 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2611 $as_echo "$ac_try_echo"; } >&5
2612 (eval "$ac_link") 2>conftest.err
2613 ac_status=$?
2614 if test -s conftest.err; then
2615 grep -v '^ *+' conftest.err >conftest.er1
2616 cat conftest.er1 >&5
2617 mv -f conftest.er1 conftest.err
2619 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2620 test $ac_status = 0; } && {
2621 test -z "$ac_cxx_werror_flag" ||
2622 test ! -s conftest.err
2623 } && test -s conftest$ac_exeext && {
2624 test "$cross_compiling" = yes ||
2625 test -x conftest$ac_exeext
2626 }; then :
2627 ac_retval=0
2628 else
2629 $as_echo "$as_me: failed program was:" >&5
2630 sed 's/^/| /' conftest.$ac_ext >&5
2632 ac_retval=1
2634 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2635 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2636 # interfere with the next link command; also delete a directory that is
2637 # left behind by Apple's compiler. We do this before executing the actions.
2638 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2639 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2640 as_fn_set_status $ac_retval
2642 } # ac_fn_cxx_try_link
2644 # ac_fn_c_find_uintX_t LINENO BITS VAR
2645 # ------------------------------------
2646 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2647 # accordingly.
2648 ac_fn_c_find_uintX_t ()
2650 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2652 $as_echo_n "checking for uint$2_t... " >&6; }
2653 if eval \${$3+:} false; then :
2654 $as_echo_n "(cached) " >&6
2655 else
2656 eval "$3=no"
2657 # Order is important - never check a type that is potentially smaller
2658 # than half of the expected target width.
2659 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2660 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2662 /* end confdefs.h. */
2663 $ac_includes_default
2665 main ()
2667 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2668 test_array [0] = 0;
2669 return test_array [0];
2672 return 0;
2674 _ACEOF
2675 if ac_fn_cxx_try_compile "$LINENO"; then :
2676 case $ac_type in #(
2677 uint$2_t) :
2678 eval "$3=yes" ;; #(
2679 *) :
2680 eval "$3=\$ac_type" ;;
2681 esac
2683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2684 if eval test \"x\$"$3"\" = x"no"; then :
2686 else
2687 break
2689 done
2691 eval ac_res=\$$3
2692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2693 $as_echo "$ac_res" >&6; }
2694 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2696 } # ac_fn_c_find_uintX_t
2698 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2699 # ------------------------------------------------
2700 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2701 ac_fn_cxx_check_header_preproc ()
2703 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2705 $as_echo_n "checking for $2... " >&6; }
2706 if eval \${$3+:} false; then :
2707 $as_echo_n "(cached) " >&6
2708 else
2709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2710 /* end confdefs.h. */
2711 #include <$2>
2712 _ACEOF
2713 if ac_fn_cxx_try_cpp "$LINENO"; then :
2714 eval "$3=yes"
2715 else
2716 eval "$3=no"
2718 rm -f conftest.err conftest.i conftest.$ac_ext
2720 eval ac_res=\$$3
2721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2722 $as_echo "$ac_res" >&6; }
2723 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2725 } # ac_fn_cxx_check_header_preproc
2727 # ac_fn_cxx_check_func LINENO FUNC VAR
2728 # ------------------------------------
2729 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2730 ac_fn_cxx_check_func ()
2732 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2734 $as_echo_n "checking for $2... " >&6; }
2735 if eval \${$3+:} false; then :
2736 $as_echo_n "(cached) " >&6
2737 else
2738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2739 /* end confdefs.h. */
2740 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2741 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2742 #define $2 innocuous_$2
2744 /* System header to define __stub macros and hopefully few prototypes,
2745 which can conflict with char $2 (); below.
2746 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2747 <limits.h> exists even on freestanding compilers. */
2749 #ifdef __STDC__
2750 # include <limits.h>
2751 #else
2752 # include <assert.h>
2753 #endif
2755 #undef $2
2757 /* Override any GCC internal prototype to avoid an error.
2758 Use char because int might match the return type of a GCC
2759 builtin and then its argument prototype would still apply. */
2760 #ifdef __cplusplus
2761 extern "C"
2762 #endif
2763 char $2 ();
2764 /* The GNU C library defines this for functions which it implements
2765 to always fail with ENOSYS. Some functions are actually named
2766 something starting with __ and the normal name is an alias. */
2767 #if defined __stub_$2 || defined __stub___$2
2768 choke me
2769 #endif
2772 main ()
2774 return $2 ();
2776 return 0;
2778 _ACEOF
2779 if ac_fn_cxx_try_link "$LINENO"; then :
2780 eval "$3=yes"
2781 else
2782 eval "$3=no"
2784 rm -f core conftest.err conftest.$ac_objext \
2785 conftest$ac_exeext conftest.$ac_ext
2787 eval ac_res=\$$3
2788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2789 $as_echo "$ac_res" >&6; }
2790 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2792 } # ac_fn_cxx_check_func
2794 # ac_fn_cxx_check_decl LINENO SYMBOL VAR INCLUDES
2795 # -----------------------------------------------
2796 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2797 # accordingly.
2798 ac_fn_cxx_check_decl ()
2800 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2801 as_decl_name=`echo $2|sed 's/ *(.*//'`
2802 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2804 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2805 if eval \${$3+:} false; then :
2806 $as_echo_n "(cached) " >&6
2807 else
2808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2809 /* end confdefs.h. */
2812 main ()
2814 #ifndef $as_decl_name
2815 #ifdef __cplusplus
2816 (void) $as_decl_use;
2817 #else
2818 (void) $as_decl_name;
2819 #endif
2820 #endif
2823 return 0;
2825 _ACEOF
2826 if ac_fn_cxx_try_compile "$LINENO"; then :
2827 eval "$3=yes"
2828 else
2829 eval "$3=no"
2831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2833 eval ac_res=\$$3
2834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2835 $as_echo "$ac_res" >&6; }
2836 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2838 } # ac_fn_cxx_check_decl
2840 # ac_fn_c_try_link LINENO
2841 # -----------------------
2842 # Try to link conftest.$ac_ext, and return whether this succeeded.
2843 ac_fn_c_try_link ()
2845 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2846 rm -f conftest.$ac_objext conftest$ac_exeext
2847 if { { ac_try="$ac_link"
2848 case "(($ac_try" in
2849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2850 *) ac_try_echo=$ac_try;;
2851 esac
2852 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2853 $as_echo "$ac_try_echo"; } >&5
2854 (eval "$ac_link") 2>conftest.err
2855 ac_status=$?
2856 if test -s conftest.err; then
2857 grep -v '^ *+' conftest.err >conftest.er1
2858 cat conftest.er1 >&5
2859 mv -f conftest.er1 conftest.err
2861 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2862 test $ac_status = 0; } && {
2863 test -z "$ac_c_werror_flag" ||
2864 test ! -s conftest.err
2865 } && test -s conftest$ac_exeext && {
2866 test "$cross_compiling" = yes ||
2867 test -x conftest$ac_exeext
2868 }; then :
2869 ac_retval=0
2870 else
2871 $as_echo "$as_me: failed program was:" >&5
2872 sed 's/^/| /' conftest.$ac_ext >&5
2874 ac_retval=1
2876 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2877 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2878 # interfere with the next link command; also delete a directory that is
2879 # left behind by Apple's compiler. We do this before executing the actions.
2880 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2881 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2882 as_fn_set_status $ac_retval
2884 } # ac_fn_c_try_link
2886 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2887 # ----------------------------------------------
2888 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2889 ac_fn_c_check_header_preproc ()
2891 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2893 $as_echo_n "checking for $2... " >&6; }
2894 if eval \${$3+:} false; then :
2895 $as_echo_n "(cached) " >&6
2896 else
2897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2898 /* end confdefs.h. */
2899 #include <$2>
2900 _ACEOF
2901 if ac_fn_c_try_cpp "$LINENO"; then :
2902 eval "$3=yes"
2903 else
2904 eval "$3=no"
2906 rm -f conftest.err conftest.i conftest.$ac_ext
2908 eval ac_res=\$$3
2909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2910 $as_echo "$ac_res" >&6; }
2911 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2913 } # ac_fn_c_check_header_preproc
2915 # ac_fn_c_check_func LINENO FUNC VAR
2916 # ----------------------------------
2917 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2918 ac_fn_c_check_func ()
2920 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2922 $as_echo_n "checking for $2... " >&6; }
2923 if eval \${$3+:} false; then :
2924 $as_echo_n "(cached) " >&6
2925 else
2926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2927 /* end confdefs.h. */
2928 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2929 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2930 #define $2 innocuous_$2
2932 /* System header to define __stub macros and hopefully few prototypes,
2933 which can conflict with char $2 (); below.
2934 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2935 <limits.h> exists even on freestanding compilers. */
2937 #ifdef __STDC__
2938 # include <limits.h>
2939 #else
2940 # include <assert.h>
2941 #endif
2943 #undef $2
2945 /* Override any GCC internal prototype to avoid an error.
2946 Use char because int might match the return type of a GCC
2947 builtin and then its argument prototype would still apply. */
2948 #ifdef __cplusplus
2949 extern "C"
2950 #endif
2951 char $2 ();
2952 /* The GNU C library defines this for functions which it implements
2953 to always fail with ENOSYS. Some functions are actually named
2954 something starting with __ and the normal name is an alias. */
2955 #if defined __stub_$2 || defined __stub___$2
2956 choke me
2957 #endif
2960 main ()
2962 return $2 ();
2964 return 0;
2966 _ACEOF
2967 if ac_fn_c_try_link "$LINENO"; then :
2968 eval "$3=yes"
2969 else
2970 eval "$3=no"
2972 rm -f core conftest.err conftest.$ac_objext \
2973 conftest$ac_exeext conftest.$ac_ext
2975 eval ac_res=\$$3
2976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2977 $as_echo "$ac_res" >&6; }
2978 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2980 } # ac_fn_c_check_func
2981 cat >config.log <<_ACEOF
2982 This file contains any messages produced by compilers while
2983 running configure, to aid debugging if configure makes a mistake.
2985 It was created by $as_me, which was
2986 generated by GNU Autoconf 2.69. Invocation command line was
2988 $ $0 $@
2990 _ACEOF
2991 exec 5>>config.log
2993 cat <<_ASUNAME
2994 ## --------- ##
2995 ## Platform. ##
2996 ## --------- ##
2998 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2999 uname -m = `(uname -m) 2>/dev/null || echo unknown`
3000 uname -r = `(uname -r) 2>/dev/null || echo unknown`
3001 uname -s = `(uname -s) 2>/dev/null || echo unknown`
3002 uname -v = `(uname -v) 2>/dev/null || echo unknown`
3004 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3005 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3007 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3008 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3009 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3010 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3011 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3012 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3013 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3015 _ASUNAME
3017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3018 for as_dir in $PATH
3020 IFS=$as_save_IFS
3021 test -z "$as_dir" && as_dir=.
3022 $as_echo "PATH: $as_dir"
3023 done
3024 IFS=$as_save_IFS
3026 } >&5
3028 cat >&5 <<_ACEOF
3031 ## ----------- ##
3032 ## Core tests. ##
3033 ## ----------- ##
3035 _ACEOF
3038 # Keep a trace of the command line.
3039 # Strip out --no-create and --no-recursion so they do not pile up.
3040 # Strip out --silent because we don't want to record it for future runs.
3041 # Also quote any args containing shell meta-characters.
3042 # Make two passes to allow for proper duplicate-argument suppression.
3043 ac_configure_args=
3044 ac_configure_args0=
3045 ac_configure_args1=
3046 ac_must_keep_next=false
3047 for ac_pass in 1 2
3049 for ac_arg
3051 case $ac_arg in
3052 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3053 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3054 | -silent | --silent | --silen | --sile | --sil)
3055 continue ;;
3056 *\'*)
3057 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3058 esac
3059 case $ac_pass in
3060 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3062 as_fn_append ac_configure_args1 " '$ac_arg'"
3063 if test $ac_must_keep_next = true; then
3064 ac_must_keep_next=false # Got value, back to normal.
3065 else
3066 case $ac_arg in
3067 *=* | --config-cache | -C | -disable-* | --disable-* \
3068 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3069 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3070 | -with-* | --with-* | -without-* | --without-* | --x)
3071 case "$ac_configure_args0 " in
3072 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3073 esac
3075 -* ) ac_must_keep_next=true ;;
3076 esac
3078 as_fn_append ac_configure_args " '$ac_arg'"
3080 esac
3081 done
3082 done
3083 { ac_configure_args0=; unset ac_configure_args0;}
3084 { ac_configure_args1=; unset ac_configure_args1;}
3086 # When interrupted or exit'd, cleanup temporary files, and complete
3087 # config.log. We remove comments because anyway the quotes in there
3088 # would cause problems or look ugly.
3089 # WARNING: Use '\'' to represent an apostrophe within the trap.
3090 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3091 trap 'exit_status=$?
3092 # Save into config.log some information that might help in debugging.
3094 echo
3096 $as_echo "## ---------------- ##
3097 ## Cache variables. ##
3098 ## ---------------- ##"
3099 echo
3100 # The following way of writing the cache mishandles newlines in values,
3102 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3103 eval ac_val=\$$ac_var
3104 case $ac_val in #(
3105 *${as_nl}*)
3106 case $ac_var in #(
3107 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3108 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3109 esac
3110 case $ac_var in #(
3111 _ | IFS | as_nl) ;; #(
3112 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3113 *) { eval $ac_var=; unset $ac_var;} ;;
3114 esac ;;
3115 esac
3116 done
3117 (set) 2>&1 |
3118 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3119 *${as_nl}ac_space=\ *)
3120 sed -n \
3121 "s/'\''/'\''\\\\'\'''\''/g;
3122 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3123 ;; #(
3125 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3127 esac |
3128 sort
3130 echo
3132 $as_echo "## ----------------- ##
3133 ## Output variables. ##
3134 ## ----------------- ##"
3135 echo
3136 for ac_var in $ac_subst_vars
3138 eval ac_val=\$$ac_var
3139 case $ac_val in
3140 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3141 esac
3142 $as_echo "$ac_var='\''$ac_val'\''"
3143 done | sort
3144 echo
3146 if test -n "$ac_subst_files"; then
3147 $as_echo "## ------------------- ##
3148 ## File substitutions. ##
3149 ## ------------------- ##"
3150 echo
3151 for ac_var in $ac_subst_files
3153 eval ac_val=\$$ac_var
3154 case $ac_val in
3155 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3156 esac
3157 $as_echo "$ac_var='\''$ac_val'\''"
3158 done | sort
3159 echo
3162 if test -s confdefs.h; then
3163 $as_echo "## ----------- ##
3164 ## confdefs.h. ##
3165 ## ----------- ##"
3166 echo
3167 cat confdefs.h
3168 echo
3170 test "$ac_signal" != 0 &&
3171 $as_echo "$as_me: caught signal $ac_signal"
3172 $as_echo "$as_me: exit $exit_status"
3173 } >&5
3174 rm -f core *.core core.conftest.* &&
3175 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3176 exit $exit_status
3178 for ac_signal in 1 2 13 15; do
3179 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3180 done
3181 ac_signal=0
3183 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3184 rm -f -r conftest* confdefs.h
3186 $as_echo "/* confdefs.h */" > confdefs.h
3188 # Predefined preprocessor variables.
3190 cat >>confdefs.h <<_ACEOF
3191 #define PACKAGE_NAME "$PACKAGE_NAME"
3192 _ACEOF
3194 cat >>confdefs.h <<_ACEOF
3195 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3196 _ACEOF
3198 cat >>confdefs.h <<_ACEOF
3199 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3200 _ACEOF
3202 cat >>confdefs.h <<_ACEOF
3203 #define PACKAGE_STRING "$PACKAGE_STRING"
3204 _ACEOF
3206 cat >>confdefs.h <<_ACEOF
3207 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3208 _ACEOF
3210 cat >>confdefs.h <<_ACEOF
3211 #define PACKAGE_URL "$PACKAGE_URL"
3212 _ACEOF
3215 # Let the site file select an alternate cache file if it wants to.
3216 # Prefer an explicitly selected file to automatically selected ones.
3217 ac_site_file1=NONE
3218 ac_site_file2=NONE
3219 if test -n "$CONFIG_SITE"; then
3220 # We do not want a PATH search for config.site.
3221 case $CONFIG_SITE in #((
3222 -*) ac_site_file1=./$CONFIG_SITE;;
3223 */*) ac_site_file1=$CONFIG_SITE;;
3224 *) ac_site_file1=./$CONFIG_SITE;;
3225 esac
3226 elif test "x$prefix" != xNONE; then
3227 ac_site_file1=$prefix/share/config.site
3228 ac_site_file2=$prefix/etc/config.site
3229 else
3230 ac_site_file1=$ac_default_prefix/share/config.site
3231 ac_site_file2=$ac_default_prefix/etc/config.site
3233 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3235 test "x$ac_site_file" = xNONE && continue
3236 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3237 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3238 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3239 sed 's/^/| /' "$ac_site_file" >&5
3240 . "$ac_site_file" \
3241 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3242 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3243 as_fn_error $? "failed to load site script $ac_site_file
3244 See \`config.log' for more details" "$LINENO" 5; }
3246 done
3248 if test -r "$cache_file"; then
3249 # Some versions of bash will fail to source /dev/null (special files
3250 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3251 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3252 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3253 $as_echo "$as_me: loading cache $cache_file" >&6;}
3254 case $cache_file in
3255 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3256 *) . "./$cache_file";;
3257 esac
3259 else
3260 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3261 $as_echo "$as_me: creating cache $cache_file" >&6;}
3262 >$cache_file
3265 # Check that the precious variables saved in the cache have kept the same
3266 # value.
3267 ac_cache_corrupted=false
3268 for ac_var in $ac_precious_vars; do
3269 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3270 eval ac_new_set=\$ac_env_${ac_var}_set
3271 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3272 eval ac_new_val=\$ac_env_${ac_var}_value
3273 case $ac_old_set,$ac_new_set in
3274 set,)
3275 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3276 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3277 ac_cache_corrupted=: ;;
3278 ,set)
3279 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3280 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3281 ac_cache_corrupted=: ;;
3282 ,);;
3284 if test "x$ac_old_val" != "x$ac_new_val"; then
3285 # differences in whitespace do not lead to failure.
3286 ac_old_val_w=`echo x $ac_old_val`
3287 ac_new_val_w=`echo x $ac_new_val`
3288 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3289 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3290 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3291 ac_cache_corrupted=:
3292 else
3293 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3294 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3295 eval $ac_var=\$ac_old_val
3297 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3298 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3299 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3300 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3301 fi;;
3302 esac
3303 # Pass precious variables to config.status.
3304 if test "$ac_new_set" = set; then
3305 case $ac_new_val in
3306 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3307 *) ac_arg=$ac_var=$ac_new_val ;;
3308 esac
3309 case " $ac_configure_args " in
3310 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3311 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3312 esac
3314 done
3315 if $ac_cache_corrupted; then
3316 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3317 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3318 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3319 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3320 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3322 ## -------------------- ##
3323 ## Main body of script. ##
3324 ## -------------------- ##
3326 ac_ext=c
3327 ac_cpp='$CPP $CPPFLAGS'
3328 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3329 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3330 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3338 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3341 gcc_version=`cat $srcdir/BASE-VER`
3343 # Determine the host, build, and target systems
3344 ac_aux_dir=
3345 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3346 if test -f "$ac_dir/install-sh"; then
3347 ac_aux_dir=$ac_dir
3348 ac_install_sh="$ac_aux_dir/install-sh -c"
3349 break
3350 elif test -f "$ac_dir/install.sh"; then
3351 ac_aux_dir=$ac_dir
3352 ac_install_sh="$ac_aux_dir/install.sh -c"
3353 break
3354 elif test -f "$ac_dir/shtool"; then
3355 ac_aux_dir=$ac_dir
3356 ac_install_sh="$ac_aux_dir/shtool install -c"
3357 break
3359 done
3360 if test -z "$ac_aux_dir"; then
3361 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3364 # These three variables are undocumented and unsupported,
3365 # and are intended to be withdrawn in a future Autoconf release.
3366 # They can cause serious problems if a builder's source tree is in a directory
3367 # whose full name contains unusual characters.
3368 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3369 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3370 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3373 # Make sure we can run config.sub.
3374 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3375 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3378 $as_echo_n "checking build system type... " >&6; }
3379 if ${ac_cv_build+:} false; then :
3380 $as_echo_n "(cached) " >&6
3381 else
3382 ac_build_alias=$build_alias
3383 test "x$ac_build_alias" = x &&
3384 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3385 test "x$ac_build_alias" = x &&
3386 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3387 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3388 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3392 $as_echo "$ac_cv_build" >&6; }
3393 case $ac_cv_build in
3394 *-*-*) ;;
3395 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3396 esac
3397 build=$ac_cv_build
3398 ac_save_IFS=$IFS; IFS='-'
3399 set x $ac_cv_build
3400 shift
3401 build_cpu=$1
3402 build_vendor=$2
3403 shift; shift
3404 # Remember, the first character of IFS is used to create $*,
3405 # except with old shells:
3406 build_os=$*
3407 IFS=$ac_save_IFS
3408 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3412 $as_echo_n "checking host system type... " >&6; }
3413 if ${ac_cv_host+:} false; then :
3414 $as_echo_n "(cached) " >&6
3415 else
3416 if test "x$host_alias" = x; then
3417 ac_cv_host=$ac_cv_build
3418 else
3419 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3420 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3425 $as_echo "$ac_cv_host" >&6; }
3426 case $ac_cv_host in
3427 *-*-*) ;;
3428 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3429 esac
3430 host=$ac_cv_host
3431 ac_save_IFS=$IFS; IFS='-'
3432 set x $ac_cv_host
3433 shift
3434 host_cpu=$1
3435 host_vendor=$2
3436 shift; shift
3437 # Remember, the first character of IFS is used to create $*,
3438 # except with old shells:
3439 host_os=$*
3440 IFS=$ac_save_IFS
3441 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3445 $as_echo_n "checking target system type... " >&6; }
3446 if ${ac_cv_target+:} false; then :
3447 $as_echo_n "(cached) " >&6
3448 else
3449 if test "x$target_alias" = x; then
3450 ac_cv_target=$ac_cv_host
3451 else
3452 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3453 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3458 $as_echo "$ac_cv_target" >&6; }
3459 case $ac_cv_target in
3460 *-*-*) ;;
3461 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
3462 esac
3463 target=$ac_cv_target
3464 ac_save_IFS=$IFS; IFS='-'
3465 set x $ac_cv_target
3466 shift
3467 target_cpu=$1
3468 target_vendor=$2
3469 shift; shift
3470 # Remember, the first character of IFS is used to create $*,
3471 # except with old shells:
3472 target_os=$*
3473 IFS=$ac_save_IFS
3474 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3477 # The aliases save the names the user supplied, while $host etc.
3478 # will get canonicalized.
3479 test -n "$target_alias" &&
3480 test "$program_prefix$program_suffix$program_transform_name" = \
3481 NONENONEs,x,x, &&
3482 program_prefix=${target_alias}-
3484 # Determine the noncanonical host name, for Ada.
3485 case ${build_alias} in
3486 "") build_noncanonical=${build} ;;
3487 *) build_noncanonical=${build_alias} ;;
3488 esac
3490 case ${host_alias} in
3491 "") host_noncanonical=${build_noncanonical} ;;
3492 *) host_noncanonical=${host_alias} ;;
3493 esac
3498 # Determine the noncanonical target name, for directory use.
3499 case ${target_alias} in
3500 "") target_noncanonical=${host_noncanonical} ;;
3501 *) target_noncanonical=${target_alias} ;;
3502 esac
3507 # Used for constructing correct paths for offload compilers.
3508 real_target_noncanonical=${target_noncanonical}
3509 accel_dir_suffix=
3511 # Determine the target- and build-specific subdirectories
3513 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3514 # have matching libraries, they should use host libraries: Makefile.tpl
3515 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3516 # However, they still use the build modules, because the corresponding
3517 # host modules (e.g. bison) are only built for the host when bootstrap
3518 # finishes. So:
3519 # - build_subdir is where we find build modules, and never changes.
3520 # - build_libsubdir is where we find build libraries, and can be overridden.
3522 # Prefix 'build-' so this never conflicts with target_subdir.
3523 build_subdir="build-${build_noncanonical}"
3525 # Check whether --with-build-libsubdir was given.
3526 if test "${with_build_libsubdir+set}" = set; then :
3527 withval=$with_build_libsubdir; build_libsubdir="$withval"
3528 else
3529 build_libsubdir="$build_subdir"
3532 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3533 if ( test $srcdir = . && test -d gcc ) \
3534 || test -d $srcdir/../host-${host_noncanonical}; then
3535 host_subdir="host-${host_noncanonical}"
3536 else
3537 host_subdir=.
3539 # No prefix.
3540 target_subdir=${target_noncanonical}
3543 # Set program_transform_name
3544 test "$program_prefix" != NONE &&
3545 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3546 # Use a double $ so make ignores it.
3547 test "$program_suffix" != NONE &&
3548 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3549 # Double any \ or $.
3550 # By default was `s,x,x', remove it if useless.
3551 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3552 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3555 # Check for bogus environment variables.
3556 # Test if LIBRARY_PATH contains the notation for the current directory
3557 # since this would lead to problems installing/building glibc.
3558 # LIBRARY_PATH contains the current directory if one of the following
3559 # is true:
3560 # - one of the terminals (":" and ";") is the first or last sign
3561 # - two terminals occur directly after each other
3562 # - the path contains an element with a dot in it
3563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3564 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3565 case ${LIBRARY_PATH} in
3566 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3567 library_path_setting="contains current directory"
3570 library_path_setting="ok"
3572 esac
3573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3574 $as_echo "$library_path_setting" >&6; }
3575 if test "$library_path_setting" != "ok"; then
3576 as_fn_error $? "
3577 *** LIBRARY_PATH shouldn't contain the current directory when
3578 *** building gcc. Please change the environment variable
3579 *** and run configure again." "$LINENO" 5
3582 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3583 # since this would lead to problems installing/building glibc.
3584 # GCC_EXEC_PREFIX contains the current directory if one of the following
3585 # is true:
3586 # - one of the terminals (":" and ";") is the first or last sign
3587 # - two terminals occur directly after each other
3588 # - the path contains an element with a dot in it
3589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3590 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3591 case ${GCC_EXEC_PREFIX} in
3592 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3593 gcc_exec_prefix_setting="contains current directory"
3596 gcc_exec_prefix_setting="ok"
3598 esac
3599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3600 $as_echo "$gcc_exec_prefix_setting" >&6; }
3601 if test "$gcc_exec_prefix_setting" != "ok"; then
3602 as_fn_error $? "
3603 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3604 *** building gcc. Please change the environment variable
3605 *** and run configure again." "$LINENO" 5
3608 # -----------
3609 # Directories
3610 # -----------
3612 # Specify the local prefix
3613 local_prefix=
3615 # Check whether --with-local-prefix was given.
3616 if test "${with_local_prefix+set}" = set; then :
3617 withval=$with_local_prefix; case "${withval}" in
3618 yes) as_fn_error $? "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3619 no) ;;
3620 *) local_prefix=$with_local_prefix ;;
3621 esac
3625 # Default local prefix if it is empty
3626 if test x$local_prefix = x; then
3627 local_prefix=/usr/local
3631 # Check whether --with-native-system-header-dir was given.
3632 if test "${with_native_system_header_dir+set}" = set; then :
3633 withval=$with_native_system_header_dir;
3634 case ${with_native_system_header_dir} in
3635 yes|no) as_fn_error $? "bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
3636 /* | [A-Za-z]:[\\/]*) ;;
3637 *) as_fn_error $? "--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
3638 esac
3639 configured_native_system_header_dir="${withval}"
3641 else
3642 configured_native_system_header_dir=
3647 # Check whether --with-build-sysroot was given.
3648 if test "${with_build_sysroot+set}" = set; then :
3649 withval=$with_build_sysroot; if test x"$withval" != x ; then
3650 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
3652 else
3653 SYSROOT_CFLAGS_FOR_TARGET=
3658 if test "x$prefix" = xNONE; then
3659 test_prefix=/usr/local
3660 else
3661 test_prefix=$prefix
3663 if test "x$exec_prefix" = xNONE; then
3664 test_exec_prefix=$test_prefix
3665 else
3666 test_exec_prefix=$exec_prefix
3670 # Check whether --with-sysroot was given.
3671 if test "${with_sysroot+set}" = set; then :
3672 withval=$with_sysroot;
3673 case ${with_sysroot} in
3674 /) ;;
3675 */) with_sysroot=`echo $with_sysroot | sed 's,/$,,'` ;;
3676 esac
3677 case ${with_sysroot} in
3678 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
3679 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
3680 esac
3682 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
3683 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
3685 case ${TARGET_SYSTEM_ROOT} in
3686 "${test_prefix}"|"${test_prefix}/"*|\
3687 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
3688 '${prefix}'|'${prefix}/'*|\
3689 '${exec_prefix}'|'${exec_prefix}/'*)
3690 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
3691 TARGET_SYSTEM_ROOT_DEFINE="$t"
3693 esac
3695 else
3697 TARGET_SYSTEM_ROOT=
3698 TARGET_SYSTEM_ROOT_DEFINE=
3699 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
3707 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3708 # passed in by the toplevel make and thus we'd get different behavior
3709 # depending on where we built the sources.
3710 gcc_gxx_include_dir=
3711 # Specify the g++ header file directory
3713 # Check whether --with-gxx-include-dir was given.
3714 if test "${with_gxx_include_dir+set}" = set; then :
3715 withval=$with_gxx_include_dir; case "${withval}" in
3716 yes) as_fn_error $? "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3717 no) ;;
3718 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
3719 esac
3723 # If both --with-sysroot and --with-gxx-include-dir are passed, we interpolate
3724 # the former in the latter and, upon success, compute gcc_gxx_include_dir as
3725 # relative to the sysroot.
3726 gcc_gxx_include_dir_add_sysroot=0
3728 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3729 if test x${gcc_gxx_include_dir} = x; then
3730 if test x${enable_version_specific_runtime_libs} = xyes; then
3731 gcc_gxx_include_dir='${libsubdir}/include/c++'
3732 else
3733 libstdcxx_incdir='include/c++/$(version)'
3734 if test x$host != x$target; then
3735 libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3737 gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3739 elif test "${with_sysroot+set}" = set; then
3740 gcc_gxx_without_sysroot=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3741 if test "${gcc_gxx_without_sysroot}"; then
3742 gcc_gxx_include_dir="${gcc_gxx_without_sysroot}"
3743 gcc_gxx_include_dir_add_sysroot=1
3747 # Configuration for an alternate set of C++ headers.
3748 gcc_gxx_libcxx_include_dir=
3749 # Specify the alternate g++ header file directory
3751 # Check whether --with-gxx-libcxx-include-dir was given.
3752 if test "${with_gxx_libcxx_include_dir+set}" = set; then :
3753 withval=$with_gxx_libcxx_include_dir; case "${withval}" in
3754 yes) as_fn_error $? "bad value ${withval} given for libc++ include directory" "$LINENO" 5 ;;
3755 no) ;;
3756 *) gcc_gxx_libcxx_include_dir=$with_gxx_libcxx_include_dir ;;
3757 esac
3761 # If both --with-sysroot and --with-gxx-libcxx-include-dir are passed, we
3762 # check to see if the latter starts with the former and, upon success, compute
3763 # gcc_gxx_libcxx_include_dir as relative to the sysroot.
3764 gcc_gxx_libcxx_include_dir_add_sysroot=0
3766 if test x${gcc_gxx_libcxx_include_dir} != x; then
3768 $as_echo "#define ENABLE_STDLIB_OPTION 1" >>confdefs.h
3770 else
3771 $as_echo "#define ENABLE_STDLIB_OPTION 0" >>confdefs.h
3774 # ??? This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3775 if test x${gcc_gxx_libcxx_include_dir} = x; then
3776 if test x${enable_version_specific_runtime_libs} = xyes; then
3777 gcc_gxx_libcxx_include_dir='${libsubdir}/libc++_include/c++/v1'
3778 else
3779 libcxx_incdir='libc++_include/c++/$(version)/v1'
3780 if test x$host != x$target; then
3781 libcxx_incdir="$target_alias/$libcxx_incdir"
3783 gcc_gxx_libcxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libcxx_incdir"
3785 elif test "${with_sysroot+set}" = set; then
3786 gcc_gxx_libcxx_without_sysroot=`expr "${gcc_gxx_libcxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3787 if test "${gcc_gxx_libcxx_without_sysroot}"; then
3788 gcc_gxx_libcxx_include_dir="${gcc_gxx_libcxx_without_sysroot}"
3789 gcc_gxx_libcxx_include_dir_add_sysroot=1
3794 # Check whether --with-cpp_install_dir was given.
3795 if test "${with_cpp_install_dir+set}" = set; then :
3796 withval=$with_cpp_install_dir; if test x$withval = xyes; then
3797 as_fn_error $? "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3798 elif test x$withval != xno; then
3799 cpp_install_dir=$withval
3804 # We would like to our source tree to be readonly. However when releases or
3805 # pre-releases are generated, the flex/bison generated files as well as the
3806 # various formats of manuals need to be included along with the rest of the
3807 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3808 # just that.
3810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3811 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3812 # Check whether --enable-generated-files-in-srcdir was given.
3813 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3814 enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3815 else
3816 generated_files_in_srcdir=no
3820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3821 $as_echo "$generated_files_in_srcdir" >&6; }
3823 if test "$generated_files_in_srcdir" = "yes"; then
3824 GENINSRC=''
3825 else
3826 GENINSRC='#'
3830 # -------------------
3831 # Find default linker
3832 # -------------------
3834 # With GNU ld
3836 # Check whether --with-gnu-ld was given.
3837 if test "${with_gnu_ld+set}" = set; then :
3838 withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3839 else
3840 gnu_ld_flag=no
3844 case $target in
3845 *darwin*)
3846 ld64_flag=yes # Darwin can only use a ld64-compatible linker.
3847 dsymutil_flag=yes # Darwin uses dsymutil to link debug.
3850 ld64_flag=no
3851 dsymutil_flag=no
3853 esac
3855 # With pre-defined ld
3857 # Check whether --with-ld was given.
3858 if test "${with_ld+set}" = set; then :
3859 withval=$with_ld; DEFAULT_LINKER="$with_ld"
3862 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3863 if test ! -x "$DEFAULT_LINKER"; then
3864 as_fn_error $? "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3865 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3866 gnu_ld_flag=yes
3867 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep ld64- > /dev/null; then
3868 ld64_flag=yes
3871 cat >>confdefs.h <<_ACEOF
3872 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3873 _ACEOF
3877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3878 $as_echo_n "checking whether a default linker was specified... " >&6; }
3879 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3880 if test x"$gnu_ld_flag" = x"no"; then
3881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3882 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3883 else
3884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3885 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3887 else
3888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3889 $as_echo "no" >&6; }
3892 # With demangler in GNU ld
3894 # Check whether --with-demangler-in-ld was given.
3895 if test "${with_demangler_in_ld+set}" = set; then :
3896 withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3897 else
3898 demangler_in_ld=yes
3902 # Allow the user to specify a dsymutil executable (used on Darwin only, so far)
3904 # Check whether --with-dsymutil was given.
3905 if test "${with_dsymutil+set}" = set; then :
3906 withval=$with_dsymutil; DEFAULT_DSYMUTIL="$with_dsymutil"
3910 dsymutil_vers=
3911 if test x"${DEFAULT_DSYMUTIL+set}" = x"set"; then
3912 if test ! -x "$DEFAULT_DSYMUTIL"; then
3913 as_fn_error $? "cannot execute: $DEFAULT_DSYMUTIL: check --with-dsymutil or env. var. DEFAULT_DSYMUTIL" "$LINENO" 5
3914 else
3915 if dsymutil_vers=`$DEFAULT_DSYMUTIL -v /dev/null 2>&1`; then
3916 dsymutil_flag=yes
3920 cat >>confdefs.h <<_ACEOF
3921 #define DEFAULT_DSYMUTIL "$DEFAULT_DSYMUTIL"
3922 _ACEOF
3926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default dsymutil was specified" >&5
3927 $as_echo_n "checking whether a default dsymutil was specified... " >&6; }
3928 if test x"${DEFAULT_DSYMUTIL+set}" = x"set"; then
3929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_DSYMUTIL)" >&5
3930 $as_echo "yes ($DEFAULT_DSYMUTIL)" >&6; }
3931 else
3932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3933 $as_echo "no" >&6; }
3936 # ----------------------
3937 # Find default assembler
3938 # ----------------------
3940 # With GNU as
3942 # Check whether --with-gnu-as was given.
3943 if test "${with_gnu_as+set}" = set; then :
3944 withval=$with_gnu_as; gas_flag="$with_gnu_as"
3945 else
3946 gas_flag=no
3951 # Check whether --with-as was given.
3952 if test "${with_as+set}" = set; then :
3953 withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
3956 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3957 if test ! -x "$DEFAULT_ASSEMBLER"; then
3958 as_fn_error $? "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3959 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3960 gas_flag=yes
3963 cat >>confdefs.h <<_ACEOF
3964 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3965 _ACEOF
3969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3970 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3971 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3972 if test x"$gas_flag" = x"no"; then
3973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3974 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3975 else
3976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3977 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3979 else
3980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3981 $as_echo "no" >&6; }
3984 # ---------------
3985 # Find C compiler
3986 # ---------------
3988 # If a non-executable a.out is present (e.g. created by GNU as above even if
3989 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3990 # file, even when creating an executable, so an execution test fails.
3991 # Remove possible default executable files to avoid this.
3993 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3994 # Autoconf includes it.
3995 rm -f a.out a.exe b.out
3997 # Find the native compiler
3998 ac_ext=c
3999 ac_cpp='$CPP $CPPFLAGS'
4000 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4001 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4002 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4003 if test -n "$ac_tool_prefix"; then
4004 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4005 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4007 $as_echo_n "checking for $ac_word... " >&6; }
4008 if ${ac_cv_prog_CC+:} false; then :
4009 $as_echo_n "(cached) " >&6
4010 else
4011 if test -n "$CC"; then
4012 ac_cv_prog_CC="$CC" # Let the user override the test.
4013 else
4014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4015 for as_dir in $PATH
4017 IFS=$as_save_IFS
4018 test -z "$as_dir" && as_dir=.
4019 for ac_exec_ext in '' $ac_executable_extensions; do
4020 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4021 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4023 break 2
4025 done
4026 done
4027 IFS=$as_save_IFS
4031 CC=$ac_cv_prog_CC
4032 if test -n "$CC"; then
4033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4034 $as_echo "$CC" >&6; }
4035 else
4036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4037 $as_echo "no" >&6; }
4042 if test -z "$ac_cv_prog_CC"; then
4043 ac_ct_CC=$CC
4044 # Extract the first word of "gcc", so it can be a program name with args.
4045 set dummy gcc; ac_word=$2
4046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4047 $as_echo_n "checking for $ac_word... " >&6; }
4048 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4049 $as_echo_n "(cached) " >&6
4050 else
4051 if test -n "$ac_ct_CC"; then
4052 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4053 else
4054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4055 for as_dir in $PATH
4057 IFS=$as_save_IFS
4058 test -z "$as_dir" && as_dir=.
4059 for ac_exec_ext in '' $ac_executable_extensions; do
4060 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4061 ac_cv_prog_ac_ct_CC="gcc"
4062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4063 break 2
4065 done
4066 done
4067 IFS=$as_save_IFS
4071 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4072 if test -n "$ac_ct_CC"; then
4073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4074 $as_echo "$ac_ct_CC" >&6; }
4075 else
4076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4077 $as_echo "no" >&6; }
4080 if test "x$ac_ct_CC" = x; then
4081 CC=""
4082 else
4083 case $cross_compiling:$ac_tool_warned in
4084 yes:)
4085 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4086 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4087 ac_tool_warned=yes ;;
4088 esac
4089 CC=$ac_ct_CC
4091 else
4092 CC="$ac_cv_prog_CC"
4095 if test -z "$CC"; then
4096 if test -n "$ac_tool_prefix"; then
4097 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4098 set dummy ${ac_tool_prefix}cc; ac_word=$2
4099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4100 $as_echo_n "checking for $ac_word... " >&6; }
4101 if ${ac_cv_prog_CC+:} false; then :
4102 $as_echo_n "(cached) " >&6
4103 else
4104 if test -n "$CC"; then
4105 ac_cv_prog_CC="$CC" # Let the user override the test.
4106 else
4107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4108 for as_dir in $PATH
4110 IFS=$as_save_IFS
4111 test -z "$as_dir" && as_dir=.
4112 for ac_exec_ext in '' $ac_executable_extensions; do
4113 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4114 ac_cv_prog_CC="${ac_tool_prefix}cc"
4115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4116 break 2
4118 done
4119 done
4120 IFS=$as_save_IFS
4124 CC=$ac_cv_prog_CC
4125 if test -n "$CC"; then
4126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4127 $as_echo "$CC" >&6; }
4128 else
4129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4130 $as_echo "no" >&6; }
4136 if test -z "$CC"; then
4137 # Extract the first word of "cc", so it can be a program name with args.
4138 set dummy cc; ac_word=$2
4139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4140 $as_echo_n "checking for $ac_word... " >&6; }
4141 if ${ac_cv_prog_CC+:} false; then :
4142 $as_echo_n "(cached) " >&6
4143 else
4144 if test -n "$CC"; then
4145 ac_cv_prog_CC="$CC" # Let the user override the test.
4146 else
4147 ac_prog_rejected=no
4148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4149 for as_dir in $PATH
4151 IFS=$as_save_IFS
4152 test -z "$as_dir" && as_dir=.
4153 for ac_exec_ext in '' $ac_executable_extensions; do
4154 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4155 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4156 ac_prog_rejected=yes
4157 continue
4159 ac_cv_prog_CC="cc"
4160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4161 break 2
4163 done
4164 done
4165 IFS=$as_save_IFS
4167 if test $ac_prog_rejected = yes; then
4168 # We found a bogon in the path, so make sure we never use it.
4169 set dummy $ac_cv_prog_CC
4170 shift
4171 if test $# != 0; then
4172 # We chose a different compiler from the bogus one.
4173 # However, it has the same basename, so the bogon will be chosen
4174 # first if we set CC to just the basename; use the full file name.
4175 shift
4176 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4181 CC=$ac_cv_prog_CC
4182 if test -n "$CC"; then
4183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4184 $as_echo "$CC" >&6; }
4185 else
4186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4187 $as_echo "no" >&6; }
4192 if test -z "$CC"; then
4193 if test -n "$ac_tool_prefix"; then
4194 for ac_prog in cl.exe
4196 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4197 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4199 $as_echo_n "checking for $ac_word... " >&6; }
4200 if ${ac_cv_prog_CC+:} false; then :
4201 $as_echo_n "(cached) " >&6
4202 else
4203 if test -n "$CC"; then
4204 ac_cv_prog_CC="$CC" # Let the user override the test.
4205 else
4206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4207 for as_dir in $PATH
4209 IFS=$as_save_IFS
4210 test -z "$as_dir" && as_dir=.
4211 for ac_exec_ext in '' $ac_executable_extensions; do
4212 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4213 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4215 break 2
4217 done
4218 done
4219 IFS=$as_save_IFS
4223 CC=$ac_cv_prog_CC
4224 if test -n "$CC"; then
4225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4226 $as_echo "$CC" >&6; }
4227 else
4228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4229 $as_echo "no" >&6; }
4233 test -n "$CC" && break
4234 done
4236 if test -z "$CC"; then
4237 ac_ct_CC=$CC
4238 for ac_prog in cl.exe
4240 # Extract the first word of "$ac_prog", so it can be a program name with args.
4241 set dummy $ac_prog; ac_word=$2
4242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4243 $as_echo_n "checking for $ac_word... " >&6; }
4244 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4245 $as_echo_n "(cached) " >&6
4246 else
4247 if test -n "$ac_ct_CC"; then
4248 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4249 else
4250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4251 for as_dir in $PATH
4253 IFS=$as_save_IFS
4254 test -z "$as_dir" && as_dir=.
4255 for ac_exec_ext in '' $ac_executable_extensions; do
4256 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4257 ac_cv_prog_ac_ct_CC="$ac_prog"
4258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4259 break 2
4261 done
4262 done
4263 IFS=$as_save_IFS
4267 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4268 if test -n "$ac_ct_CC"; then
4269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4270 $as_echo "$ac_ct_CC" >&6; }
4271 else
4272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4273 $as_echo "no" >&6; }
4277 test -n "$ac_ct_CC" && break
4278 done
4280 if test "x$ac_ct_CC" = x; then
4281 CC=""
4282 else
4283 case $cross_compiling:$ac_tool_warned in
4284 yes:)
4285 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4286 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4287 ac_tool_warned=yes ;;
4288 esac
4289 CC=$ac_ct_CC
4296 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4297 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4298 as_fn_error $? "no acceptable C compiler found in \$PATH
4299 See \`config.log' for more details" "$LINENO" 5; }
4301 # Provide some information about the compiler.
4302 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4303 set X $ac_compile
4304 ac_compiler=$2
4305 for ac_option in --version -v -V -qversion; do
4306 { { ac_try="$ac_compiler $ac_option >&5"
4307 case "(($ac_try" in
4308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4309 *) ac_try_echo=$ac_try;;
4310 esac
4311 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4312 $as_echo "$ac_try_echo"; } >&5
4313 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4314 ac_status=$?
4315 if test -s conftest.err; then
4316 sed '10a\
4317 ... rest of stderr output deleted ...
4318 10q' conftest.err >conftest.er1
4319 cat conftest.er1 >&5
4321 rm -f conftest.er1 conftest.err
4322 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4323 test $ac_status = 0; }
4324 done
4326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4327 /* end confdefs.h. */
4330 main ()
4334 return 0;
4336 _ACEOF
4337 ac_clean_files_save=$ac_clean_files
4338 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4339 # Try to create an executable without -o first, disregard a.out.
4340 # It will help us diagnose broken compilers, and finding out an intuition
4341 # of exeext.
4342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4343 $as_echo_n "checking whether the C compiler works... " >&6; }
4344 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4346 # The possible output files:
4347 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4349 ac_rmfiles=
4350 for ac_file in $ac_files
4352 case $ac_file in
4353 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4354 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4355 esac
4356 done
4357 rm -f $ac_rmfiles
4359 if { { ac_try="$ac_link_default"
4360 case "(($ac_try" in
4361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4362 *) ac_try_echo=$ac_try;;
4363 esac
4364 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4365 $as_echo "$ac_try_echo"; } >&5
4366 (eval "$ac_link_default") 2>&5
4367 ac_status=$?
4368 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4369 test $ac_status = 0; }; then :
4370 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4371 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4372 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4373 # so that the user can short-circuit this test for compilers unknown to
4374 # Autoconf.
4375 for ac_file in $ac_files ''
4377 test -f "$ac_file" || continue
4378 case $ac_file in
4379 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4381 [ab].out )
4382 # We found the default executable, but exeext='' is most
4383 # certainly right.
4384 break;;
4385 *.* )
4386 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4387 then :; else
4388 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4390 # We set ac_cv_exeext here because the later test for it is not
4391 # safe: cross compilers may not add the suffix if given an `-o'
4392 # argument, so we may need to know it at that point already.
4393 # Even if this section looks crufty: it has the advantage of
4394 # actually working.
4395 break;;
4397 break;;
4398 esac
4399 done
4400 test "$ac_cv_exeext" = no && ac_cv_exeext=
4402 else
4403 ac_file=''
4405 if test -z "$ac_file"; then :
4406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4407 $as_echo "no" >&6; }
4408 $as_echo "$as_me: failed program was:" >&5
4409 sed 's/^/| /' conftest.$ac_ext >&5
4411 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4412 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4413 as_fn_error 77 "C compiler cannot create executables
4414 See \`config.log' for more details" "$LINENO" 5; }
4415 else
4416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4417 $as_echo "yes" >&6; }
4419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4420 $as_echo_n "checking for C compiler default output file name... " >&6; }
4421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4422 $as_echo "$ac_file" >&6; }
4423 ac_exeext=$ac_cv_exeext
4425 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4426 ac_clean_files=$ac_clean_files_save
4427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4428 $as_echo_n "checking for suffix of executables... " >&6; }
4429 if { { ac_try="$ac_link"
4430 case "(($ac_try" in
4431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4432 *) ac_try_echo=$ac_try;;
4433 esac
4434 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4435 $as_echo "$ac_try_echo"; } >&5
4436 (eval "$ac_link") 2>&5
4437 ac_status=$?
4438 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4439 test $ac_status = 0; }; then :
4440 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4441 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4442 # work properly (i.e., refer to `conftest.exe'), while it won't with
4443 # `rm'.
4444 for ac_file in conftest.exe conftest conftest.*; do
4445 test -f "$ac_file" || continue
4446 case $ac_file in
4447 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4448 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4449 break;;
4450 * ) break;;
4451 esac
4452 done
4453 else
4454 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4455 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4456 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4457 See \`config.log' for more details" "$LINENO" 5; }
4459 rm -f conftest conftest$ac_cv_exeext
4460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4461 $as_echo "$ac_cv_exeext" >&6; }
4463 rm -f conftest.$ac_ext
4464 EXEEXT=$ac_cv_exeext
4465 ac_exeext=$EXEEXT
4466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4467 /* end confdefs.h. */
4468 #include <stdio.h>
4470 main ()
4472 FILE *f = fopen ("conftest.out", "w");
4473 return ferror (f) || fclose (f) != 0;
4476 return 0;
4478 _ACEOF
4479 ac_clean_files="$ac_clean_files conftest.out"
4480 # Check that the compiler produces executables we can run. If not, either
4481 # the compiler is broken, or we cross compile.
4482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4483 $as_echo_n "checking whether we are cross compiling... " >&6; }
4484 if test "$cross_compiling" != yes; then
4485 { { ac_try="$ac_link"
4486 case "(($ac_try" in
4487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4488 *) ac_try_echo=$ac_try;;
4489 esac
4490 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4491 $as_echo "$ac_try_echo"; } >&5
4492 (eval "$ac_link") 2>&5
4493 ac_status=$?
4494 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4495 test $ac_status = 0; }
4496 if { ac_try='./conftest$ac_cv_exeext'
4497 { { case "(($ac_try" in
4498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4499 *) ac_try_echo=$ac_try;;
4500 esac
4501 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4502 $as_echo "$ac_try_echo"; } >&5
4503 (eval "$ac_try") 2>&5
4504 ac_status=$?
4505 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4506 test $ac_status = 0; }; }; then
4507 cross_compiling=no
4508 else
4509 if test "$cross_compiling" = maybe; then
4510 cross_compiling=yes
4511 else
4512 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4513 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4514 as_fn_error $? "cannot run C compiled programs.
4515 If you meant to cross compile, use \`--host'.
4516 See \`config.log' for more details" "$LINENO" 5; }
4520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4521 $as_echo "$cross_compiling" >&6; }
4523 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4524 ac_clean_files=$ac_clean_files_save
4525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4526 $as_echo_n "checking for suffix of object files... " >&6; }
4527 if ${ac_cv_objext+:} false; then :
4528 $as_echo_n "(cached) " >&6
4529 else
4530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4531 /* end confdefs.h. */
4534 main ()
4538 return 0;
4540 _ACEOF
4541 rm -f conftest.o conftest.obj
4542 if { { ac_try="$ac_compile"
4543 case "(($ac_try" in
4544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4545 *) ac_try_echo=$ac_try;;
4546 esac
4547 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4548 $as_echo "$ac_try_echo"; } >&5
4549 (eval "$ac_compile") 2>&5
4550 ac_status=$?
4551 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4552 test $ac_status = 0; }; then :
4553 for ac_file in conftest.o conftest.obj conftest.*; do
4554 test -f "$ac_file" || continue;
4555 case $ac_file in
4556 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4557 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4558 break;;
4559 esac
4560 done
4561 else
4562 $as_echo "$as_me: failed program was:" >&5
4563 sed 's/^/| /' conftest.$ac_ext >&5
4565 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4566 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4567 as_fn_error $? "cannot compute suffix of object files: cannot compile
4568 See \`config.log' for more details" "$LINENO" 5; }
4570 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4573 $as_echo "$ac_cv_objext" >&6; }
4574 OBJEXT=$ac_cv_objext
4575 ac_objext=$OBJEXT
4576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4577 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4578 if ${ac_cv_c_compiler_gnu+:} false; then :
4579 $as_echo_n "(cached) " >&6
4580 else
4581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4582 /* end confdefs.h. */
4585 main ()
4587 #ifndef __GNUC__
4588 choke me
4589 #endif
4592 return 0;
4594 _ACEOF
4595 if ac_fn_c_try_compile "$LINENO"; then :
4596 ac_compiler_gnu=yes
4597 else
4598 ac_compiler_gnu=no
4600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4601 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4605 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4606 if test $ac_compiler_gnu = yes; then
4607 GCC=yes
4608 else
4609 GCC=
4611 ac_test_CFLAGS=${CFLAGS+set}
4612 ac_save_CFLAGS=$CFLAGS
4613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4614 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4615 if ${ac_cv_prog_cc_g+:} false; then :
4616 $as_echo_n "(cached) " >&6
4617 else
4618 ac_save_c_werror_flag=$ac_c_werror_flag
4619 ac_c_werror_flag=yes
4620 ac_cv_prog_cc_g=no
4621 CFLAGS="-g"
4622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4623 /* end confdefs.h. */
4626 main ()
4630 return 0;
4632 _ACEOF
4633 if ac_fn_c_try_compile "$LINENO"; then :
4634 ac_cv_prog_cc_g=yes
4635 else
4636 CFLAGS=""
4637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4638 /* end confdefs.h. */
4641 main ()
4645 return 0;
4647 _ACEOF
4648 if ac_fn_c_try_compile "$LINENO"; then :
4650 else
4651 ac_c_werror_flag=$ac_save_c_werror_flag
4652 CFLAGS="-g"
4653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4654 /* end confdefs.h. */
4657 main ()
4661 return 0;
4663 _ACEOF
4664 if ac_fn_c_try_compile "$LINENO"; then :
4665 ac_cv_prog_cc_g=yes
4667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4672 ac_c_werror_flag=$ac_save_c_werror_flag
4674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4675 $as_echo "$ac_cv_prog_cc_g" >&6; }
4676 if test "$ac_test_CFLAGS" = set; then
4677 CFLAGS=$ac_save_CFLAGS
4678 elif test $ac_cv_prog_cc_g = yes; then
4679 if test "$GCC" = yes; then
4680 CFLAGS="-g -O2"
4681 else
4682 CFLAGS="-g"
4684 else
4685 if test "$GCC" = yes; then
4686 CFLAGS="-O2"
4687 else
4688 CFLAGS=
4691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4692 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4693 if ${ac_cv_prog_cc_c89+:} false; then :
4694 $as_echo_n "(cached) " >&6
4695 else
4696 ac_cv_prog_cc_c89=no
4697 ac_save_CC=$CC
4698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4699 /* end confdefs.h. */
4700 #include <stdarg.h>
4701 #include <stdio.h>
4702 struct stat;
4703 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4704 struct buf { int x; };
4705 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4706 static char *e (p, i)
4707 char **p;
4708 int i;
4710 return p[i];
4712 static char *f (char * (*g) (char **, int), char **p, ...)
4714 char *s;
4715 va_list v;
4716 va_start (v,p);
4717 s = g (p, va_arg (v,int));
4718 va_end (v);
4719 return s;
4722 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4723 function prototypes and stuff, but not '\xHH' hex character constants.
4724 These don't provoke an error unfortunately, instead are silently treated
4725 as 'x'. The following induces an error, until -std is added to get
4726 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4727 array size at least. It's necessary to write '\x00'==0 to get something
4728 that's true only with -std. */
4729 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4731 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4732 inside strings and character constants. */
4733 #define FOO(x) 'x'
4734 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4736 int test (int i, double x);
4737 struct s1 {int (*f) (int a);};
4738 struct s2 {int (*f) (double a);};
4739 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4740 int argc;
4741 char **argv;
4743 main ()
4745 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4747 return 0;
4749 _ACEOF
4750 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4751 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4753 CC="$ac_save_CC $ac_arg"
4754 if ac_fn_c_try_compile "$LINENO"; then :
4755 ac_cv_prog_cc_c89=$ac_arg
4757 rm -f core conftest.err conftest.$ac_objext
4758 test "x$ac_cv_prog_cc_c89" != "xno" && break
4759 done
4760 rm -f conftest.$ac_ext
4761 CC=$ac_save_CC
4764 # AC_CACHE_VAL
4765 case "x$ac_cv_prog_cc_c89" in
4767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4768 $as_echo "none needed" >&6; } ;;
4769 xno)
4770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4771 $as_echo "unsupported" >&6; } ;;
4773 CC="$CC $ac_cv_prog_cc_c89"
4774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4775 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4776 esac
4777 if test "x$ac_cv_prog_cc_c89" != xno; then :
4781 ac_ext=c
4782 ac_cpp='$CPP $CPPFLAGS'
4783 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4784 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4785 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4787 ac_ext=cpp
4788 ac_cpp='$CXXCPP $CPPFLAGS'
4789 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4790 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4791 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4792 if test -z "$CXX"; then
4793 if test -n "$CCC"; then
4794 CXX=$CCC
4795 else
4796 if test -n "$ac_tool_prefix"; then
4797 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4799 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4800 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4802 $as_echo_n "checking for $ac_word... " >&6; }
4803 if ${ac_cv_prog_CXX+:} false; then :
4804 $as_echo_n "(cached) " >&6
4805 else
4806 if test -n "$CXX"; then
4807 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4808 else
4809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4810 for as_dir in $PATH
4812 IFS=$as_save_IFS
4813 test -z "$as_dir" && as_dir=.
4814 for ac_exec_ext in '' $ac_executable_extensions; do
4815 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4816 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4818 break 2
4820 done
4821 done
4822 IFS=$as_save_IFS
4826 CXX=$ac_cv_prog_CXX
4827 if test -n "$CXX"; then
4828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4829 $as_echo "$CXX" >&6; }
4830 else
4831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4832 $as_echo "no" >&6; }
4836 test -n "$CXX" && break
4837 done
4839 if test -z "$CXX"; then
4840 ac_ct_CXX=$CXX
4841 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4843 # Extract the first word of "$ac_prog", so it can be a program name with args.
4844 set dummy $ac_prog; ac_word=$2
4845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4846 $as_echo_n "checking for $ac_word... " >&6; }
4847 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4848 $as_echo_n "(cached) " >&6
4849 else
4850 if test -n "$ac_ct_CXX"; then
4851 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4852 else
4853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4854 for as_dir in $PATH
4856 IFS=$as_save_IFS
4857 test -z "$as_dir" && as_dir=.
4858 for ac_exec_ext in '' $ac_executable_extensions; do
4859 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4860 ac_cv_prog_ac_ct_CXX="$ac_prog"
4861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4862 break 2
4864 done
4865 done
4866 IFS=$as_save_IFS
4870 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4871 if test -n "$ac_ct_CXX"; then
4872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4873 $as_echo "$ac_ct_CXX" >&6; }
4874 else
4875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4876 $as_echo "no" >&6; }
4880 test -n "$ac_ct_CXX" && break
4881 done
4883 if test "x$ac_ct_CXX" = x; then
4884 CXX="g++"
4885 else
4886 case $cross_compiling:$ac_tool_warned in
4887 yes:)
4888 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4889 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4890 ac_tool_warned=yes ;;
4891 esac
4892 CXX=$ac_ct_CXX
4898 # Provide some information about the compiler.
4899 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4900 set X $ac_compile
4901 ac_compiler=$2
4902 for ac_option in --version -v -V -qversion; do
4903 { { ac_try="$ac_compiler $ac_option >&5"
4904 case "(($ac_try" in
4905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4906 *) ac_try_echo=$ac_try;;
4907 esac
4908 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4909 $as_echo "$ac_try_echo"; } >&5
4910 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4911 ac_status=$?
4912 if test -s conftest.err; then
4913 sed '10a\
4914 ... rest of stderr output deleted ...
4915 10q' conftest.err >conftest.er1
4916 cat conftest.er1 >&5
4918 rm -f conftest.er1 conftest.err
4919 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4920 test $ac_status = 0; }
4921 done
4923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4924 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4925 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4926 $as_echo_n "(cached) " >&6
4927 else
4928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4929 /* end confdefs.h. */
4932 main ()
4934 #ifndef __GNUC__
4935 choke me
4936 #endif
4939 return 0;
4941 _ACEOF
4942 if ac_fn_cxx_try_compile "$LINENO"; then :
4943 ac_compiler_gnu=yes
4944 else
4945 ac_compiler_gnu=no
4947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4948 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4952 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4953 if test $ac_compiler_gnu = yes; then
4954 GXX=yes
4955 else
4956 GXX=
4958 ac_test_CXXFLAGS=${CXXFLAGS+set}
4959 ac_save_CXXFLAGS=$CXXFLAGS
4960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4961 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4962 if ${ac_cv_prog_cxx_g+:} false; then :
4963 $as_echo_n "(cached) " >&6
4964 else
4965 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4966 ac_cxx_werror_flag=yes
4967 ac_cv_prog_cxx_g=no
4968 CXXFLAGS="-g"
4969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4970 /* end confdefs.h. */
4973 main ()
4977 return 0;
4979 _ACEOF
4980 if ac_fn_cxx_try_compile "$LINENO"; then :
4981 ac_cv_prog_cxx_g=yes
4982 else
4983 CXXFLAGS=""
4984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4985 /* end confdefs.h. */
4988 main ()
4992 return 0;
4994 _ACEOF
4995 if ac_fn_cxx_try_compile "$LINENO"; then :
4997 else
4998 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4999 CXXFLAGS="-g"
5000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5001 /* end confdefs.h. */
5004 main ()
5008 return 0;
5010 _ACEOF
5011 if ac_fn_cxx_try_compile "$LINENO"; then :
5012 ac_cv_prog_cxx_g=yes
5014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5019 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5022 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5023 if test "$ac_test_CXXFLAGS" = set; then
5024 CXXFLAGS=$ac_save_CXXFLAGS
5025 elif test $ac_cv_prog_cxx_g = yes; then
5026 if test "$GXX" = yes; then
5027 CXXFLAGS="-g -O2"
5028 else
5029 CXXFLAGS="-g"
5031 else
5032 if test "$GXX" = yes; then
5033 CXXFLAGS="-O2"
5034 else
5035 CXXFLAGS=
5038 ac_ext=c
5039 ac_cpp='$CPP $CPPFLAGS'
5040 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5041 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5042 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5047 if test -n "$ac_tool_prefix"; then
5048 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5049 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5051 $as_echo_n "checking for $ac_word... " >&6; }
5052 if ${ac_cv_prog_GNATBIND+:} false; then :
5053 $as_echo_n "(cached) " >&6
5054 else
5055 if test -n "$GNATBIND"; then
5056 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
5057 else
5058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5059 for as_dir in $PATH
5061 IFS=$as_save_IFS
5062 test -z "$as_dir" && as_dir=.
5063 for ac_exec_ext in '' $ac_executable_extensions; do
5064 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5065 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5067 break 2
5069 done
5070 done
5071 IFS=$as_save_IFS
5075 GNATBIND=$ac_cv_prog_GNATBIND
5076 if test -n "$GNATBIND"; then
5077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5078 $as_echo "$GNATBIND" >&6; }
5079 else
5080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5081 $as_echo "no" >&6; }
5086 if test -z "$ac_cv_prog_GNATBIND"; then
5087 ac_ct_GNATBIND=$GNATBIND
5088 # Extract the first word of "gnatbind", so it can be a program name with args.
5089 set dummy gnatbind; ac_word=$2
5090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5091 $as_echo_n "checking for $ac_word... " >&6; }
5092 if ${ac_cv_prog_ac_ct_GNATBIND+:} false; then :
5093 $as_echo_n "(cached) " >&6
5094 else
5095 if test -n "$ac_ct_GNATBIND"; then
5096 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
5097 else
5098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5099 for as_dir in $PATH
5101 IFS=$as_save_IFS
5102 test -z "$as_dir" && as_dir=.
5103 for ac_exec_ext in '' $ac_executable_extensions; do
5104 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5105 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5107 break 2
5109 done
5110 done
5111 IFS=$as_save_IFS
5115 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5116 if test -n "$ac_ct_GNATBIND"; then
5117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5118 $as_echo "$ac_ct_GNATBIND" >&6; }
5119 else
5120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5121 $as_echo "no" >&6; }
5124 if test "x$ac_ct_GNATBIND" = x; then
5125 GNATBIND="no"
5126 else
5127 case $cross_compiling:$ac_tool_warned in
5128 yes:)
5129 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5130 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5131 ac_tool_warned=yes ;;
5132 esac
5133 GNATBIND=$ac_ct_GNATBIND
5135 else
5136 GNATBIND="$ac_cv_prog_GNATBIND"
5139 if test -n "$ac_tool_prefix"; then
5140 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5141 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5143 $as_echo_n "checking for $ac_word... " >&6; }
5144 if ${ac_cv_prog_GNATMAKE+:} false; then :
5145 $as_echo_n "(cached) " >&6
5146 else
5147 if test -n "$GNATMAKE"; then
5148 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5149 else
5150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5151 for as_dir in $PATH
5153 IFS=$as_save_IFS
5154 test -z "$as_dir" && as_dir=.
5155 for ac_exec_ext in '' $ac_executable_extensions; do
5156 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5157 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5159 break 2
5161 done
5162 done
5163 IFS=$as_save_IFS
5167 GNATMAKE=$ac_cv_prog_GNATMAKE
5168 if test -n "$GNATMAKE"; then
5169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5170 $as_echo "$GNATMAKE" >&6; }
5171 else
5172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5173 $as_echo "no" >&6; }
5178 if test -z "$ac_cv_prog_GNATMAKE"; then
5179 ac_ct_GNATMAKE=$GNATMAKE
5180 # Extract the first word of "gnatmake", so it can be a program name with args.
5181 set dummy gnatmake; ac_word=$2
5182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5183 $as_echo_n "checking for $ac_word... " >&6; }
5184 if ${ac_cv_prog_ac_ct_GNATMAKE+:} false; then :
5185 $as_echo_n "(cached) " >&6
5186 else
5187 if test -n "$ac_ct_GNATMAKE"; then
5188 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5189 else
5190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5191 for as_dir in $PATH
5193 IFS=$as_save_IFS
5194 test -z "$as_dir" && as_dir=.
5195 for ac_exec_ext in '' $ac_executable_extensions; do
5196 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5197 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5199 break 2
5201 done
5202 done
5203 IFS=$as_save_IFS
5207 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5208 if test -n "$ac_ct_GNATMAKE"; then
5209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5210 $as_echo "$ac_ct_GNATMAKE" >&6; }
5211 else
5212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5213 $as_echo "no" >&6; }
5216 if test "x$ac_ct_GNATMAKE" = x; then
5217 GNATMAKE="no"
5218 else
5219 case $cross_compiling:$ac_tool_warned in
5220 yes:)
5221 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5222 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5223 ac_tool_warned=yes ;;
5224 esac
5225 GNATMAKE=$ac_ct_GNATMAKE
5227 else
5228 GNATMAKE="$ac_cv_prog_GNATMAKE"
5231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada and is recent enough" >&5
5232 $as_echo_n "checking whether compiler driver understands Ada and is recent enough... " >&6; }
5233 if ${acx_cv_cc_gcc_supports_ada+:} false; then :
5234 $as_echo_n "(cached) " >&6
5235 else
5236 cat >conftest.adb <<EOF
5237 pragma Warnings (Off);
5238 with System.CRTL;
5239 pragma Warnings (On);
5240 use type System.CRTL.int64;
5241 procedure conftest is begin null; end conftest;
5243 acx_cv_cc_gcc_supports_ada=no
5244 # There is a bug in old released versions of GCC which causes the
5245 # driver to exit successfully when the appropriate language module
5246 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5247 # Therefore we must check for the error message as well as an
5248 # unsuccessful exit.
5249 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5250 # given a .adb file, but produce no object file. So we must check
5251 # if an object file was really produced to guard against this.
5252 errors=`(${CC} -I"$srcdir"/ada/libgnat -c conftest.adb) 2>&1 || echo failure`
5253 if test x"$errors" = x && test -f conftest.$ac_objext; then
5254 acx_cv_cc_gcc_supports_ada=yes
5256 rm -f conftest.*
5258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5259 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5261 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5262 have_gnat=yes
5263 else
5264 have_gnat=no
5269 if test -n "$ac_tool_prefix"; then
5270 # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
5271 set dummy ${ac_tool_prefix}gdc; ac_word=$2
5272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5273 $as_echo_n "checking for $ac_word... " >&6; }
5274 if ${ac_cv_prog_GDC+:} false; then :
5275 $as_echo_n "(cached) " >&6
5276 else
5277 if test -n "$GDC"; then
5278 ac_cv_prog_GDC="$GDC" # Let the user override the test.
5279 else
5280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5281 for as_dir in $PATH
5283 IFS=$as_save_IFS
5284 test -z "$as_dir" && as_dir=.
5285 for ac_exec_ext in '' $ac_executable_extensions; do
5286 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5287 ac_cv_prog_GDC="${ac_tool_prefix}gdc"
5288 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5289 break 2
5291 done
5292 done
5293 IFS=$as_save_IFS
5297 GDC=$ac_cv_prog_GDC
5298 if test -n "$GDC"; then
5299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5300 $as_echo "$GDC" >&6; }
5301 else
5302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5303 $as_echo "no" >&6; }
5308 if test -z "$ac_cv_prog_GDC"; then
5309 ac_ct_GDC=$GDC
5310 # Extract the first word of "gdc", so it can be a program name with args.
5311 set dummy gdc; ac_word=$2
5312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5313 $as_echo_n "checking for $ac_word... " >&6; }
5314 if ${ac_cv_prog_ac_ct_GDC+:} false; then :
5315 $as_echo_n "(cached) " >&6
5316 else
5317 if test -n "$ac_ct_GDC"; then
5318 ac_cv_prog_ac_ct_GDC="$ac_ct_GDC" # Let the user override the test.
5319 else
5320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5321 for as_dir in $PATH
5323 IFS=$as_save_IFS
5324 test -z "$as_dir" && as_dir=.
5325 for ac_exec_ext in '' $ac_executable_extensions; do
5326 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5327 ac_cv_prog_ac_ct_GDC="gdc"
5328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5329 break 2
5331 done
5332 done
5333 IFS=$as_save_IFS
5337 ac_ct_GDC=$ac_cv_prog_ac_ct_GDC
5338 if test -n "$ac_ct_GDC"; then
5339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GDC" >&5
5340 $as_echo "$ac_ct_GDC" >&6; }
5341 else
5342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5343 $as_echo "no" >&6; }
5346 if test "x$ac_ct_GDC" = x; then
5347 GDC="no"
5348 else
5349 case $cross_compiling:$ac_tool_warned in
5350 yes:)
5351 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5352 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5353 ac_tool_warned=yes ;;
5354 esac
5355 GDC=$ac_ct_GDC
5357 else
5358 GDC="$ac_cv_prog_GDC"
5361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the D compiler works" >&5
5362 $as_echo_n "checking whether the D compiler works... " >&6; }
5363 if ${acx_cv_d_compiler_works+:} false; then :
5364 $as_echo_n "(cached) " >&6
5365 else
5366 cat >conftest.d <<EOF
5367 module conftest; int main() { return 0; }
5369 acx_cv_d_compiler_works=no
5370 if test "x$GDC" != xno; then
5371 errors=`(${GDC} -I"$srcdir"/d -c conftest.d) 2>&1 || echo failure`
5372 if test x"$errors" = x && test -f conftest.$ac_objext; then
5373 acx_cv_d_compiler_works=yes
5375 rm -f conftest.*
5378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_d_compiler_works" >&5
5379 $as_echo "$acx_cv_d_compiler_works" >&6; }
5380 if test "x$GDC" != xno && test x$acx_cv_d_compiler_works != xno; then
5381 have_gdc=yes
5382 else
5383 have_gdc=no
5387 # Do configure tests with the C++ compiler, since that's what we build with.
5388 ac_ext=cpp
5389 ac_cpp='$CXXCPP $CPPFLAGS'
5390 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5391 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5392 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5395 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
5396 # optimizations to be activated explicitly by the toplevel.
5397 case "$CC" in
5398 */prev-gcc/xgcc*) ;;
5399 *) CFLAGS=`echo "$CFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" `
5400 CXXFLAGS=`echo "$CXXFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` ;;
5401 esac
5406 # Determine PICFLAG for target gnatlib.
5411 case "${target}" in
5412 # PIC is the default on some targets or must not be used.
5413 *-*-darwin*)
5414 # For darwin, common symbols are not allowed in MH_DYLIB files
5415 case "${CFLAGS}" in
5416 # If we are using a compiler supporting mdynamic-no-pic
5417 # and the option has been tested as safe to add, then cancel
5418 # it here, since the code generated is incompatible with shared
5419 # libs.
5420 *-mdynamic-no-pic*) PICFLAG_FOR_TARGET='-fno-common -mno-dynamic-no-pic' ;;
5421 *) PICFLAG_FOR_TARGET=-fno-common ;;
5422 esac
5424 alpha*-dec-osf5*)
5425 # PIC is the default.
5427 hppa*64*-*-hpux*)
5428 # PIC is the default for 64-bit PA HP-UX.
5430 i[34567]86-*-cygwin* | x86_64-*-cygwin*)
5432 i[34567]86-*-mingw* | x86_64-*-mingw*)
5434 i[34567]86-*-interix[3-9]*)
5435 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5436 # Instead, we relocate shared libraries at runtime.
5438 i[34567]86-*-nto-qnx*)
5439 # QNX uses GNU C++, but need to define -shared option too, otherwise
5440 # it will coredump.
5441 PICFLAG_FOR_TARGET='-fPIC -shared'
5443 i[34567]86-pc-msdosdjgpp*)
5444 # DJGPP does not support shared libraries at all.
5446 ia64*-*-hpux*)
5447 # On IA64 HP-UX, PIC is the default but the pic flag
5448 # sets the default TLS model and affects inlining.
5449 PICFLAG_FOR_TARGET=-fPIC
5451 loongarch*-*-*)
5452 PICFLAG_FOR_TARGET=-fpic
5454 mips-sgi-irix6*)
5455 # PIC is the default.
5457 rs6000-ibm-aix* | powerpc-ibm-aix*)
5458 # All AIX code is PIC.
5461 # Some targets support both -fPIC and -fpic, but prefer the latter.
5462 # FIXME: Why?
5463 i[34567]86-*-* | x86_64-*-*)
5464 PICFLAG_FOR_TARGET=-fpic
5466 # FIXME: Override -fPIC default in libgcc only?
5467 sh-*-linux* | sh[2346lbe]*-*-linux*)
5468 PICFLAG_FOR_TARGET=-fpic
5470 # FIXME: Simplify to sh*-*-netbsd*?
5471 sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
5472 sh64-*-netbsd* | sh64l*-*-netbsd*)
5473 PICFLAG_FOR_TARGET=-fpic
5475 # Default to -fPIC unless specified otherwise.
5477 PICFLAG_FOR_TARGET=-fPIC
5479 esac
5481 # If the user explicitly uses -fpic/-fPIC, keep that.
5482 case "${CFLAGS_FOR_TARGET}" in
5483 *-fpic*)
5484 PICFLAG_FOR_TARGET=-fpic
5486 *-fPIC*)
5487 PICFLAG_FOR_TARGET=-fPIC
5489 esac
5493 # -------------------------
5494 # Check C compiler features
5495 # -------------------------
5498 ac_ext=cpp
5499 ac_cpp='$CXXCPP $CPPFLAGS'
5500 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5501 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5502 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5504 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5505 if test -z "$CXXCPP"; then
5506 if ${ac_cv_prog_CXXCPP+:} false; then :
5507 $as_echo_n "(cached) " >&6
5508 else
5509 # Double quotes because CXXCPP needs to be expanded
5510 for CXXCPP in "$CXX -E" "/lib/cpp"
5512 ac_preproc_ok=false
5513 for ac_cxx_preproc_warn_flag in '' yes
5515 # Use a header file that comes with gcc, so configuring glibc
5516 # with a fresh cross-compiler works.
5517 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5518 # <limits.h> exists even on freestanding compilers.
5519 # On the NeXT, cc -E runs the code through the compiler's parser,
5520 # not just through cpp. "Syntax error" is here to catch this case.
5521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5522 /* end confdefs.h. */
5523 #ifdef __STDC__
5524 # include <limits.h>
5525 #else
5526 # include <assert.h>
5527 #endif
5528 Syntax error
5529 _ACEOF
5530 if ac_fn_cxx_try_cpp "$LINENO"; then :
5532 else
5533 # Broken: fails on valid input.
5534 continue
5536 rm -f conftest.err conftest.i conftest.$ac_ext
5538 # OK, works on sane cases. Now check whether nonexistent headers
5539 # can be detected and how.
5540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5541 /* end confdefs.h. */
5542 #include <ac_nonexistent.h>
5543 _ACEOF
5544 if ac_fn_cxx_try_cpp "$LINENO"; then :
5545 # Broken: success on invalid input.
5546 continue
5547 else
5548 # Passes both tests.
5549 ac_preproc_ok=:
5550 break
5552 rm -f conftest.err conftest.i conftest.$ac_ext
5554 done
5555 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5556 rm -f conftest.i conftest.err conftest.$ac_ext
5557 if $ac_preproc_ok; then :
5558 break
5561 done
5562 ac_cv_prog_CXXCPP=$CXXCPP
5565 CXXCPP=$ac_cv_prog_CXXCPP
5566 else
5567 ac_cv_prog_CXXCPP=$CXXCPP
5569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5570 $as_echo "$CXXCPP" >&6; }
5571 ac_preproc_ok=false
5572 for ac_cxx_preproc_warn_flag in '' yes
5574 # Use a header file that comes with gcc, so configuring glibc
5575 # with a fresh cross-compiler works.
5576 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5577 # <limits.h> exists even on freestanding compilers.
5578 # On the NeXT, cc -E runs the code through the compiler's parser,
5579 # not just through cpp. "Syntax error" is here to catch this case.
5580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5581 /* end confdefs.h. */
5582 #ifdef __STDC__
5583 # include <limits.h>
5584 #else
5585 # include <assert.h>
5586 #endif
5587 Syntax error
5588 _ACEOF
5589 if ac_fn_cxx_try_cpp "$LINENO"; then :
5591 else
5592 # Broken: fails on valid input.
5593 continue
5595 rm -f conftest.err conftest.i conftest.$ac_ext
5597 # OK, works on sane cases. Now check whether nonexistent headers
5598 # can be detected and how.
5599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5600 /* end confdefs.h. */
5601 #include <ac_nonexistent.h>
5602 _ACEOF
5603 if ac_fn_cxx_try_cpp "$LINENO"; then :
5604 # Broken: success on invalid input.
5605 continue
5606 else
5607 # Passes both tests.
5608 ac_preproc_ok=:
5609 break
5611 rm -f conftest.err conftest.i conftest.$ac_ext
5613 done
5614 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5615 rm -f conftest.i conftest.err conftest.$ac_ext
5616 if $ac_preproc_ok; then :
5618 else
5619 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5620 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5621 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
5622 See \`config.log' for more details" "$LINENO" 5; }
5625 ac_ext=cpp
5626 ac_cpp='$CXXCPP $CPPFLAGS'
5627 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5628 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5629 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5633 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5634 if ${ac_cv_path_GREP+:} false; then :
5635 $as_echo_n "(cached) " >&6
5636 else
5637 if test -z "$GREP"; then
5638 ac_path_GREP_found=false
5639 # Loop through the user's path and test for each of PROGNAME-LIST
5640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5641 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5643 IFS=$as_save_IFS
5644 test -z "$as_dir" && as_dir=.
5645 for ac_prog in grep ggrep; do
5646 for ac_exec_ext in '' $ac_executable_extensions; do
5647 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5648 as_fn_executable_p "$ac_path_GREP" || continue
5649 # Check for GNU ac_path_GREP and select it if it is found.
5650 # Check for GNU $ac_path_GREP
5651 case `"$ac_path_GREP" --version 2>&1` in
5652 *GNU*)
5653 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5655 ac_count=0
5656 $as_echo_n 0123456789 >"conftest.in"
5657 while :
5659 cat "conftest.in" "conftest.in" >"conftest.tmp"
5660 mv "conftest.tmp" "conftest.in"
5661 cp "conftest.in" "conftest.nl"
5662 $as_echo 'GREP' >> "conftest.nl"
5663 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5664 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5665 as_fn_arith $ac_count + 1 && ac_count=$as_val
5666 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5667 # Best one so far, save it but keep looking for a better one
5668 ac_cv_path_GREP="$ac_path_GREP"
5669 ac_path_GREP_max=$ac_count
5671 # 10*(2^10) chars as input seems more than enough
5672 test $ac_count -gt 10 && break
5673 done
5674 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5675 esac
5677 $ac_path_GREP_found && break 3
5678 done
5679 done
5680 done
5681 IFS=$as_save_IFS
5682 if test -z "$ac_cv_path_GREP"; then
5683 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5685 else
5686 ac_cv_path_GREP=$GREP
5690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5691 $as_echo "$ac_cv_path_GREP" >&6; }
5692 GREP="$ac_cv_path_GREP"
5695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5696 $as_echo_n "checking for egrep... " >&6; }
5697 if ${ac_cv_path_EGREP+:} false; then :
5698 $as_echo_n "(cached) " >&6
5699 else
5700 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5701 then ac_cv_path_EGREP="$GREP -E"
5702 else
5703 if test -z "$EGREP"; then
5704 ac_path_EGREP_found=false
5705 # Loop through the user's path and test for each of PROGNAME-LIST
5706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5707 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5709 IFS=$as_save_IFS
5710 test -z "$as_dir" && as_dir=.
5711 for ac_prog in egrep; do
5712 for ac_exec_ext in '' $ac_executable_extensions; do
5713 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5714 as_fn_executable_p "$ac_path_EGREP" || continue
5715 # Check for GNU ac_path_EGREP and select it if it is found.
5716 # Check for GNU $ac_path_EGREP
5717 case `"$ac_path_EGREP" --version 2>&1` in
5718 *GNU*)
5719 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5721 ac_count=0
5722 $as_echo_n 0123456789 >"conftest.in"
5723 while :
5725 cat "conftest.in" "conftest.in" >"conftest.tmp"
5726 mv "conftest.tmp" "conftest.in"
5727 cp "conftest.in" "conftest.nl"
5728 $as_echo 'EGREP' >> "conftest.nl"
5729 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5730 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5731 as_fn_arith $ac_count + 1 && ac_count=$as_val
5732 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5733 # Best one so far, save it but keep looking for a better one
5734 ac_cv_path_EGREP="$ac_path_EGREP"
5735 ac_path_EGREP_max=$ac_count
5737 # 10*(2^10) chars as input seems more than enough
5738 test $ac_count -gt 10 && break
5739 done
5740 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5741 esac
5743 $ac_path_EGREP_found && break 3
5744 done
5745 done
5746 done
5747 IFS=$as_save_IFS
5748 if test -z "$ac_cv_path_EGREP"; then
5749 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5751 else
5752 ac_cv_path_EGREP=$EGREP
5757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5758 $as_echo "$ac_cv_path_EGREP" >&6; }
5759 EGREP="$ac_cv_path_EGREP"
5762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5763 $as_echo_n "checking for ANSI C header files... " >&6; }
5764 if ${ac_cv_header_stdc+:} false; then :
5765 $as_echo_n "(cached) " >&6
5766 else
5767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5768 /* end confdefs.h. */
5769 #include <stdlib.h>
5770 #include <stdarg.h>
5771 #include <string.h>
5772 #include <float.h>
5775 main ()
5779 return 0;
5781 _ACEOF
5782 if ac_fn_cxx_try_compile "$LINENO"; then :
5783 ac_cv_header_stdc=yes
5784 else
5785 ac_cv_header_stdc=no
5787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5789 if test $ac_cv_header_stdc = yes; then
5790 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5792 /* end confdefs.h. */
5793 #include <string.h>
5795 _ACEOF
5796 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5797 $EGREP "memchr" >/dev/null 2>&1; then :
5799 else
5800 ac_cv_header_stdc=no
5802 rm -f conftest*
5806 if test $ac_cv_header_stdc = yes; then
5807 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5809 /* end confdefs.h. */
5810 #include <stdlib.h>
5812 _ACEOF
5813 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5814 $EGREP "free" >/dev/null 2>&1; then :
5816 else
5817 ac_cv_header_stdc=no
5819 rm -f conftest*
5823 if test $ac_cv_header_stdc = yes; then
5824 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5825 if test "$cross_compiling" = yes; then :
5827 else
5828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5829 /* end confdefs.h. */
5830 #include <ctype.h>
5831 #include <stdlib.h>
5832 #if ((' ' & 0x0FF) == 0x020)
5833 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5834 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5835 #else
5836 # define ISLOWER(c) \
5837 (('a' <= (c) && (c) <= 'i') \
5838 || ('j' <= (c) && (c) <= 'r') \
5839 || ('s' <= (c) && (c) <= 'z'))
5840 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5841 #endif
5843 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5845 main ()
5847 int i;
5848 for (i = 0; i < 256; i++)
5849 if (XOR (islower (i), ISLOWER (i))
5850 || toupper (i) != TOUPPER (i))
5851 return 2;
5852 return 0;
5854 _ACEOF
5855 if ac_fn_cxx_try_run "$LINENO"; then :
5857 else
5858 ac_cv_header_stdc=no
5860 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5861 conftest.$ac_objext conftest.beam conftest.$ac_ext
5866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5867 $as_echo "$ac_cv_header_stdc" >&6; }
5868 if test $ac_cv_header_stdc = yes; then
5870 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5874 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5875 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5876 inttypes.h stdint.h unistd.h
5877 do :
5878 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5879 ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5881 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5882 cat >>confdefs.h <<_ACEOF
5883 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5884 _ACEOF
5888 done
5892 ac_fn_cxx_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5893 if test "x$ac_cv_header_minix_config_h" = xyes; then :
5894 MINIX=yes
5895 else
5896 MINIX=
5900 if test "$MINIX" = yes; then
5902 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5905 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5908 $as_echo "#define _MINIX 1" >>confdefs.h
5913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5914 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5915 if ${ac_cv_safe_to_define___extensions__+:} false; then :
5916 $as_echo_n "(cached) " >&6
5917 else
5918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5919 /* end confdefs.h. */
5921 # define __EXTENSIONS__ 1
5922 $ac_includes_default
5924 main ()
5928 return 0;
5930 _ACEOF
5931 if ac_fn_cxx_try_compile "$LINENO"; then :
5932 ac_cv_safe_to_define___extensions__=yes
5933 else
5934 ac_cv_safe_to_define___extensions__=no
5936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5939 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5940 test $ac_cv_safe_to_define___extensions__ = yes &&
5941 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5943 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5945 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5947 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5949 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5953 ac_ext=c
5954 ac_cpp='$CPP $CPPFLAGS'
5955 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5956 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5957 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5959 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5960 # On Suns, sometimes $CPP names a directory.
5961 if test -n "$CPP" && test -d "$CPP"; then
5962 CPP=
5964 if test -z "$CPP"; then
5965 if ${ac_cv_prog_CPP+:} false; then :
5966 $as_echo_n "(cached) " >&6
5967 else
5968 # Double quotes because CPP needs to be expanded
5969 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5971 ac_preproc_ok=false
5972 for ac_c_preproc_warn_flag in '' yes
5974 # Use a header file that comes with gcc, so configuring glibc
5975 # with a fresh cross-compiler works.
5976 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5977 # <limits.h> exists even on freestanding compilers.
5978 # On the NeXT, cc -E runs the code through the compiler's parser,
5979 # not just through cpp. "Syntax error" is here to catch this case.
5980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5981 /* end confdefs.h. */
5982 #ifdef __STDC__
5983 # include <limits.h>
5984 #else
5985 # include <assert.h>
5986 #endif
5987 Syntax error
5988 _ACEOF
5989 if ac_fn_c_try_cpp "$LINENO"; then :
5991 else
5992 # Broken: fails on valid input.
5993 continue
5995 rm -f conftest.err conftest.i conftest.$ac_ext
5997 # OK, works on sane cases. Now check whether nonexistent headers
5998 # can be detected and how.
5999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6000 /* end confdefs.h. */
6001 #include <ac_nonexistent.h>
6002 _ACEOF
6003 if ac_fn_c_try_cpp "$LINENO"; then :
6004 # Broken: success on invalid input.
6005 continue
6006 else
6007 # Passes both tests.
6008 ac_preproc_ok=:
6009 break
6011 rm -f conftest.err conftest.i conftest.$ac_ext
6013 done
6014 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6015 rm -f conftest.i conftest.err conftest.$ac_ext
6016 if $ac_preproc_ok; then :
6017 break
6020 done
6021 ac_cv_prog_CPP=$CPP
6024 CPP=$ac_cv_prog_CPP
6025 else
6026 ac_cv_prog_CPP=$CPP
6028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6029 $as_echo "$CPP" >&6; }
6030 ac_preproc_ok=false
6031 for ac_c_preproc_warn_flag in '' yes
6033 # Use a header file that comes with gcc, so configuring glibc
6034 # with a fresh cross-compiler works.
6035 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6036 # <limits.h> exists even on freestanding compilers.
6037 # On the NeXT, cc -E runs the code through the compiler's parser,
6038 # not just through cpp. "Syntax error" is here to catch this case.
6039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6040 /* end confdefs.h. */
6041 #ifdef __STDC__
6042 # include <limits.h>
6043 #else
6044 # include <assert.h>
6045 #endif
6046 Syntax error
6047 _ACEOF
6048 if ac_fn_c_try_cpp "$LINENO"; then :
6050 else
6051 # Broken: fails on valid input.
6052 continue
6054 rm -f conftest.err conftest.i conftest.$ac_ext
6056 # OK, works on sane cases. Now check whether nonexistent headers
6057 # can be detected and how.
6058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6059 /* end confdefs.h. */
6060 #include <ac_nonexistent.h>
6061 _ACEOF
6062 if ac_fn_c_try_cpp "$LINENO"; then :
6063 # Broken: success on invalid input.
6064 continue
6065 else
6066 # Passes both tests.
6067 ac_preproc_ok=:
6068 break
6070 rm -f conftest.err conftest.i conftest.$ac_ext
6072 done
6073 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6074 rm -f conftest.i conftest.err conftest.$ac_ext
6075 if $ac_preproc_ok; then :
6077 else
6078 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6079 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6080 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6081 See \`config.log' for more details" "$LINENO" 5; }
6084 ac_ext=cpp
6085 ac_cpp='$CXXCPP $CPPFLAGS'
6086 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6087 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6088 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
6091 $as_echo_n "checking for inline... " >&6; }
6092 if ${ac_cv_c_inline+:} false; then :
6093 $as_echo_n "(cached) " >&6
6094 else
6095 ac_cv_c_inline=no
6096 for ac_kw in inline __inline__ __inline; do
6097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6098 /* end confdefs.h. */
6099 #ifndef __cplusplus
6100 typedef int foo_t;
6101 static $ac_kw foo_t static_foo () {return 0; }
6102 $ac_kw foo_t foo () {return 0; }
6103 #endif
6105 _ACEOF
6106 if ac_fn_cxx_try_compile "$LINENO"; then :
6107 ac_cv_c_inline=$ac_kw
6109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6110 test "$ac_cv_c_inline" != no && break
6111 done
6114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
6115 $as_echo "$ac_cv_c_inline" >&6; }
6117 case $ac_cv_c_inline in
6118 inline | yes) ;;
6120 case $ac_cv_c_inline in
6121 no) ac_val=;;
6122 *) ac_val=$ac_cv_c_inline;;
6123 esac
6124 cat >>confdefs.h <<_ACEOF
6125 #ifndef __cplusplus
6126 #define inline $ac_val
6127 #endif
6128 _ACEOF
6130 esac
6133 # Check whether --enable-largefile was given.
6134 if test "${enable_largefile+set}" = set; then :
6135 enableval=$enable_largefile;
6138 if test "$enable_largefile" != no; then
6140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6141 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6142 if ${ac_cv_sys_largefile_CC+:} false; then :
6143 $as_echo_n "(cached) " >&6
6144 else
6145 ac_cv_sys_largefile_CC=no
6146 if test "$GCC" != yes; then
6147 ac_save_CC=$CC
6148 while :; do
6149 # IRIX 6.2 and later do not support large files by default,
6150 # so use the C compiler's -n32 option if that helps.
6151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6152 /* end confdefs.h. */
6153 #include <sys/types.h>
6154 /* Check that off_t can represent 2**63 - 1 correctly.
6155 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6156 since some C++ compilers masquerading as C compilers
6157 incorrectly reject 9223372036854775807. */
6158 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6159 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6160 && LARGE_OFF_T % 2147483647 == 1)
6161 ? 1 : -1];
6163 main ()
6167 return 0;
6169 _ACEOF
6170 if ac_fn_cxx_try_compile "$LINENO"; then :
6171 break
6173 rm -f core conftest.err conftest.$ac_objext
6174 CC="$CC -n32"
6175 if ac_fn_cxx_try_compile "$LINENO"; then :
6176 ac_cv_sys_largefile_CC=' -n32'; break
6178 rm -f core conftest.err conftest.$ac_objext
6179 break
6180 done
6181 CC=$ac_save_CC
6182 rm -f conftest.$ac_ext
6185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6186 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6187 if test "$ac_cv_sys_largefile_CC" != no; then
6188 CC=$CC$ac_cv_sys_largefile_CC
6191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6192 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6193 if ${ac_cv_sys_file_offset_bits+:} false; then :
6194 $as_echo_n "(cached) " >&6
6195 else
6196 while :; do
6197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6198 /* end confdefs.h. */
6199 #include <sys/types.h>
6200 /* Check that off_t can represent 2**63 - 1 correctly.
6201 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6202 since some C++ compilers masquerading as C compilers
6203 incorrectly reject 9223372036854775807. */
6204 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6205 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6206 && LARGE_OFF_T % 2147483647 == 1)
6207 ? 1 : -1];
6209 main ()
6213 return 0;
6215 _ACEOF
6216 if ac_fn_cxx_try_compile "$LINENO"; then :
6217 ac_cv_sys_file_offset_bits=no; break
6219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6221 /* end confdefs.h. */
6222 #define _FILE_OFFSET_BITS 64
6223 #include <sys/types.h>
6224 /* Check that off_t can represent 2**63 - 1 correctly.
6225 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6226 since some C++ compilers masquerading as C compilers
6227 incorrectly reject 9223372036854775807. */
6228 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6229 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6230 && LARGE_OFF_T % 2147483647 == 1)
6231 ? 1 : -1];
6233 main ()
6237 return 0;
6239 _ACEOF
6240 if ac_fn_cxx_try_compile "$LINENO"; then :
6241 ac_cv_sys_file_offset_bits=64; break
6243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6244 ac_cv_sys_file_offset_bits=unknown
6245 break
6246 done
6248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6249 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6250 case $ac_cv_sys_file_offset_bits in #(
6251 no | unknown) ;;
6253 cat >>confdefs.h <<_ACEOF
6254 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6255 _ACEOF
6257 esac
6258 rm -rf conftest*
6259 if test $ac_cv_sys_file_offset_bits = unknown; then
6260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6261 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6262 if ${ac_cv_sys_large_files+:} false; then :
6263 $as_echo_n "(cached) " >&6
6264 else
6265 while :; do
6266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6267 /* end confdefs.h. */
6268 #include <sys/types.h>
6269 /* Check that off_t can represent 2**63 - 1 correctly.
6270 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6271 since some C++ compilers masquerading as C compilers
6272 incorrectly reject 9223372036854775807. */
6273 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6274 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6275 && LARGE_OFF_T % 2147483647 == 1)
6276 ? 1 : -1];
6278 main ()
6282 return 0;
6284 _ACEOF
6285 if ac_fn_cxx_try_compile "$LINENO"; then :
6286 ac_cv_sys_large_files=no; break
6288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6290 /* end confdefs.h. */
6291 #define _LARGE_FILES 1
6292 #include <sys/types.h>
6293 /* Check that off_t can represent 2**63 - 1 correctly.
6294 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6295 since some C++ compilers masquerading as C compilers
6296 incorrectly reject 9223372036854775807. */
6297 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6298 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6299 && LARGE_OFF_T % 2147483647 == 1)
6300 ? 1 : -1];
6302 main ()
6306 return 0;
6308 _ACEOF
6309 if ac_fn_cxx_try_compile "$LINENO"; then :
6310 ac_cv_sys_large_files=1; break
6312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6313 ac_cv_sys_large_files=unknown
6314 break
6315 done
6317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6318 $as_echo "$ac_cv_sys_large_files" >&6; }
6319 case $ac_cv_sys_large_files in #(
6320 no | unknown) ;;
6322 cat >>confdefs.h <<_ACEOF
6323 #define _LARGE_FILES $ac_cv_sys_large_files
6324 _ACEOF
6326 esac
6327 rm -rf conftest*
6333 # The cast to long int works around a bug in the HP C Compiler
6334 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6335 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6336 # This bug is HP SR number 8606223364.
6337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ino_t" >&5
6338 $as_echo_n "checking size of ino_t... " >&6; }
6339 if ${ac_cv_sizeof_ino_t+:} false; then :
6340 $as_echo_n "(cached) " >&6
6341 else
6342 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (ino_t))" "ac_cv_sizeof_ino_t" "$ac_includes_default"; then :
6344 else
6345 if test "$ac_cv_type_ino_t" = yes; then
6346 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6347 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6348 as_fn_error 77 "cannot compute sizeof (ino_t)
6349 See \`config.log' for more details" "$LINENO" 5; }
6350 else
6351 ac_cv_sizeof_ino_t=0
6356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ino_t" >&5
6357 $as_echo "$ac_cv_sizeof_ino_t" >&6; }
6361 cat >>confdefs.h <<_ACEOF
6362 #define SIZEOF_INO_T $ac_cv_sizeof_ino_t
6363 _ACEOF
6366 # The cast to long int works around a bug in the HP C Compiler
6367 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6368 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6369 # This bug is HP SR number 8606223364.
6370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of dev_t" >&5
6371 $as_echo_n "checking size of dev_t... " >&6; }
6372 if ${ac_cv_sizeof_dev_t+:} false; then :
6373 $as_echo_n "(cached) " >&6
6374 else
6375 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (dev_t))" "ac_cv_sizeof_dev_t" "$ac_includes_default"; then :
6377 else
6378 if test "$ac_cv_type_dev_t" = yes; then
6379 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6380 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6381 as_fn_error 77 "cannot compute sizeof (dev_t)
6382 See \`config.log' for more details" "$LINENO" 5; }
6383 else
6384 ac_cv_sizeof_dev_t=0
6389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_dev_t" >&5
6390 $as_echo "$ac_cv_sizeof_dev_t" >&6; }
6394 cat >>confdefs.h <<_ACEOF
6395 #define SIZEOF_DEV_T $ac_cv_sizeof_dev_t
6396 _ACEOF
6400 # Select the right stat being able to handle 64bit inodes, if needed.
6401 if test "$enable_largefile" != no; then
6402 case "$host, $build" in
6403 *-*-aix*,*|*,*-*-aix*)
6404 if test "$ac_cv_sizeof_ino_t" == "4" -a "$ac_cv_sizeof_dev_t" == 4; then
6406 $as_echo "#define HOST_STAT_FOR_64BIT_INODES stat64x" >>confdefs.h
6408 fi;;
6409 esac
6413 # sizeof(char) is 1 by definition.
6414 # The cast to long int works around a bug in the HP C Compiler
6415 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6416 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6417 # This bug is HP SR number 8606223364.
6418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
6419 $as_echo_n "checking size of void *... " >&6; }
6420 if ${ac_cv_sizeof_void_p+:} false; then :
6421 $as_echo_n "(cached) " >&6
6422 else
6423 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
6425 else
6426 if test "$ac_cv_type_void_p" = yes; then
6427 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6428 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6429 as_fn_error 77 "cannot compute sizeof (void *)
6430 See \`config.log' for more details" "$LINENO" 5; }
6431 else
6432 ac_cv_sizeof_void_p=0
6437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
6438 $as_echo "$ac_cv_sizeof_void_p" >&6; }
6442 cat >>confdefs.h <<_ACEOF
6443 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
6444 _ACEOF
6447 # The cast to long int works around a bug in the HP C Compiler
6448 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6449 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6450 # This bug is HP SR number 8606223364.
6451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
6452 $as_echo_n "checking size of short... " >&6; }
6453 if ${ac_cv_sizeof_short+:} false; then :
6454 $as_echo_n "(cached) " >&6
6455 else
6456 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
6458 else
6459 if test "$ac_cv_type_short" = yes; then
6460 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6461 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6462 as_fn_error 77 "cannot compute sizeof (short)
6463 See \`config.log' for more details" "$LINENO" 5; }
6464 else
6465 ac_cv_sizeof_short=0
6470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
6471 $as_echo "$ac_cv_sizeof_short" >&6; }
6475 cat >>confdefs.h <<_ACEOF
6476 #define SIZEOF_SHORT $ac_cv_sizeof_short
6477 _ACEOF
6480 # The cast to long int works around a bug in the HP C Compiler
6481 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6482 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6483 # This bug is HP SR number 8606223364.
6484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
6485 $as_echo_n "checking size of int... " >&6; }
6486 if ${ac_cv_sizeof_int+:} false; then :
6487 $as_echo_n "(cached) " >&6
6488 else
6489 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
6491 else
6492 if test "$ac_cv_type_int" = yes; then
6493 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6494 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6495 as_fn_error 77 "cannot compute sizeof (int)
6496 See \`config.log' for more details" "$LINENO" 5; }
6497 else
6498 ac_cv_sizeof_int=0
6503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
6504 $as_echo "$ac_cv_sizeof_int" >&6; }
6508 cat >>confdefs.h <<_ACEOF
6509 #define SIZEOF_INT $ac_cv_sizeof_int
6510 _ACEOF
6513 # The cast to long int works around a bug in the HP C Compiler
6514 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6515 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6516 # This bug is HP SR number 8606223364.
6517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6518 $as_echo_n "checking size of long... " >&6; }
6519 if ${ac_cv_sizeof_long+:} false; then :
6520 $as_echo_n "(cached) " >&6
6521 else
6522 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
6524 else
6525 if test "$ac_cv_type_long" = yes; then
6526 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6527 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6528 as_fn_error 77 "cannot compute sizeof (long)
6529 See \`config.log' for more details" "$LINENO" 5; }
6530 else
6531 ac_cv_sizeof_long=0
6536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6537 $as_echo "$ac_cv_sizeof_long" >&6; }
6541 cat >>confdefs.h <<_ACEOF
6542 #define SIZEOF_LONG $ac_cv_sizeof_long
6543 _ACEOF
6546 ac_fn_cxx_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
6547 if test "x$ac_cv_type_long_long" = xyes; then :
6549 cat >>confdefs.h <<_ACEOF
6550 #define HAVE_LONG_LONG 1
6551 _ACEOF
6553 # The cast to long int works around a bug in the HP C Compiler
6554 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6555 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6556 # This bug is HP SR number 8606223364.
6557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
6558 $as_echo_n "checking size of long long... " >&6; }
6559 if ${ac_cv_sizeof_long_long+:} false; then :
6560 $as_echo_n "(cached) " >&6
6561 else
6562 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
6564 else
6565 if test "$ac_cv_type_long_long" = yes; then
6566 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6567 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6568 as_fn_error 77 "cannot compute sizeof (long long)
6569 See \`config.log' for more details" "$LINENO" 5; }
6570 else
6571 ac_cv_sizeof_long_long=0
6576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
6577 $as_echo "$ac_cv_sizeof_long_long" >&6; }
6581 cat >>confdefs.h <<_ACEOF
6582 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6583 _ACEOF
6588 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
6589 case $ac_cv_c_int8_t in #(
6590 no|yes) ;; #(
6593 cat >>confdefs.h <<_ACEOF
6594 #define int8_t $ac_cv_c_int8_t
6595 _ACEOF
6597 esac
6599 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
6600 case $ac_cv_c_int16_t in #(
6601 no|yes) ;; #(
6604 cat >>confdefs.h <<_ACEOF
6605 #define int16_t $ac_cv_c_int16_t
6606 _ACEOF
6608 esac
6610 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
6611 case $ac_cv_c_int32_t in #(
6612 no|yes) ;; #(
6615 cat >>confdefs.h <<_ACEOF
6616 #define int32_t $ac_cv_c_int32_t
6617 _ACEOF
6619 esac
6621 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
6622 case $ac_cv_c_int64_t in #(
6623 no|yes) ;; #(
6626 cat >>confdefs.h <<_ACEOF
6627 #define int64_t $ac_cv_c_int64_t
6628 _ACEOF
6630 esac
6633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6634 $as_echo_n "checking for unsigned long long int... " >&6; }
6635 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
6636 $as_echo_n "(cached) " >&6
6637 else
6638 ac_cv_type_unsigned_long_long_int=yes
6639 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
6640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6641 /* end confdefs.h. */
6643 /* For now, do not test the preprocessor; as of 2007 there are too many
6644 implementations with broken preprocessors. Perhaps this can
6645 be revisited in 2012. In the meantime, code should not expect
6646 #if to work with literals wider than 32 bits. */
6647 /* Test literals. */
6648 long long int ll = 9223372036854775807ll;
6649 long long int nll = -9223372036854775807LL;
6650 unsigned long long int ull = 18446744073709551615ULL;
6651 /* Test constant expressions. */
6652 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6653 ? 1 : -1)];
6654 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6655 ? 1 : -1)];
6656 int i = 63;
6658 main ()
6660 /* Test availability of runtime routines for shift and division. */
6661 long long int llmax = 9223372036854775807ll;
6662 unsigned long long int ullmax = 18446744073709551615ull;
6663 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6664 | (llmax / ll) | (llmax % ll)
6665 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6666 | (ullmax / ull) | (ullmax % ull));
6668 return 0;
6671 _ACEOF
6672 if ac_fn_cxx_try_link "$LINENO"; then :
6674 else
6675 ac_cv_type_unsigned_long_long_int=no
6677 rm -f core conftest.err conftest.$ac_objext \
6678 conftest$ac_exeext conftest.$ac_ext
6681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6682 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6683 if test $ac_cv_type_unsigned_long_long_int = yes; then
6685 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6692 $as_echo_n "checking for long long int... " >&6; }
6693 if ${ac_cv_type_long_long_int+:} false; then :
6694 $as_echo_n "(cached) " >&6
6695 else
6696 ac_cv_type_long_long_int=yes
6697 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
6698 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
6699 if test $ac_cv_type_long_long_int = yes; then
6700 if test "$cross_compiling" = yes; then :
6702 else
6703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6704 /* end confdefs.h. */
6705 #include <limits.h>
6706 #ifndef LLONG_MAX
6707 # define HALF \
6708 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6709 # define LLONG_MAX (HALF - 1 + HALF)
6710 #endif
6712 main ()
6714 long long int n = 1;
6715 int i;
6716 for (i = 0; ; i++)
6718 long long int m = n << i;
6719 if (m >> i != n)
6720 return 1;
6721 if (LLONG_MAX / 2 < m)
6722 break;
6724 return 0;
6726 return 0;
6728 _ACEOF
6729 if ac_fn_cxx_try_run "$LINENO"; then :
6731 else
6732 ac_cv_type_long_long_int=no
6734 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6735 conftest.$ac_objext conftest.beam conftest.$ac_ext
6741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6742 $as_echo "$ac_cv_type_long_long_int" >&6; }
6743 if test $ac_cv_type_long_long_int = yes; then
6745 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6751 ac_fn_cxx_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6752 if test "x$ac_cv_type_intmax_t" = xyes; then :
6754 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6756 else
6757 test $ac_cv_type_long_long_int = yes \
6758 && ac_type='long long int' \
6759 || ac_type='long int'
6761 cat >>confdefs.h <<_ACEOF
6762 #define intmax_t $ac_type
6763 _ACEOF
6769 ac_fn_cxx_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6770 if test "x$ac_cv_type_intptr_t" = xyes; then :
6772 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6774 else
6775 for ac_type in 'int' 'long int' 'long long int'; do
6776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6777 /* end confdefs.h. */
6778 $ac_includes_default
6780 main ()
6782 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6783 test_array [0] = 0;
6784 return test_array [0];
6787 return 0;
6789 _ACEOF
6790 if ac_fn_cxx_try_compile "$LINENO"; then :
6792 cat >>confdefs.h <<_ACEOF
6793 #define intptr_t $ac_type
6794 _ACEOF
6796 ac_type=
6798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6799 test -z "$ac_type" && break
6800 done
6804 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
6805 case $ac_cv_c_uint8_t in #(
6806 no|yes) ;; #(
6809 $as_echo "#define _UINT8_T 1" >>confdefs.h
6812 cat >>confdefs.h <<_ACEOF
6813 #define uint8_t $ac_cv_c_uint8_t
6814 _ACEOF
6816 esac
6818 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6819 case $ac_cv_c_uint16_t in #(
6820 no|yes) ;; #(
6824 cat >>confdefs.h <<_ACEOF
6825 #define uint16_t $ac_cv_c_uint16_t
6826 _ACEOF
6828 esac
6830 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6831 case $ac_cv_c_uint32_t in #(
6832 no|yes) ;; #(
6835 $as_echo "#define _UINT32_T 1" >>confdefs.h
6838 cat >>confdefs.h <<_ACEOF
6839 #define uint32_t $ac_cv_c_uint32_t
6840 _ACEOF
6842 esac
6844 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
6845 case $ac_cv_c_uint64_t in #(
6846 no|yes) ;; #(
6849 $as_echo "#define _UINT64_T 1" >>confdefs.h
6852 cat >>confdefs.h <<_ACEOF
6853 #define uint64_t $ac_cv_c_uint64_t
6854 _ACEOF
6856 esac
6860 ac_fn_cxx_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6861 if test "x$ac_cv_type_uintmax_t" = xyes; then :
6863 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6865 else
6866 test $ac_cv_type_unsigned_long_long_int = yes \
6867 && ac_type='unsigned long long int' \
6868 || ac_type='unsigned long int'
6870 cat >>confdefs.h <<_ACEOF
6871 #define uintmax_t $ac_type
6872 _ACEOF
6878 ac_fn_cxx_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6879 if test "x$ac_cv_type_uintptr_t" = xyes; then :
6881 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6883 else
6884 for ac_type in 'unsigned int' 'unsigned long int' \
6885 'unsigned long long int'; do
6886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6887 /* end confdefs.h. */
6888 $ac_includes_default
6890 main ()
6892 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6893 test_array [0] = 0;
6894 return test_array [0];
6897 return 0;
6899 _ACEOF
6900 if ac_fn_cxx_try_compile "$LINENO"; then :
6902 cat >>confdefs.h <<_ACEOF
6903 #define uintptr_t $ac_type
6904 _ACEOF
6906 ac_type=
6908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6909 test -z "$ac_type" && break
6910 done
6926 if test x"$ac_cv_c_uint64_t" = x"no" -o x"$ac_cv_c_int64_t" = x"no"; then
6927 as_fn_error $? "uint64_t or int64_t not found" "$LINENO" 5
6930 # check what underlying integer type int64_t uses
6931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t underlying type" >&5
6932 $as_echo_n "checking for int64_t underlying type... " >&6; }
6933 if ${ac_cv_int64_t_type+:} false; then :
6934 $as_echo_n "(cached) " >&6
6935 else
6937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6938 /* end confdefs.h. */
6940 #ifdef HAVE_STDINT_H
6941 #include <stdint.h>
6942 #endif
6943 template <typename T> struct X { };
6944 template <>
6945 struct X<long> { typedef long t; };
6948 main ()
6950 X<int64_t>::t x;
6952 return 0;
6954 _ACEOF
6955 if ac_fn_cxx_try_compile "$LINENO"; then :
6956 ac_cv_int64_t_type=long
6957 else
6958 ac_cv_int64_t_type="long long"
6960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_int64_t_type" >&5
6963 $as_echo "$ac_cv_int64_t_type" >&6; }
6964 if test "$ac_cv_int64_t_type" = "long"; then
6966 $as_echo "#define INT64_T_IS_LONG 1" >>confdefs.h
6968 else
6969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6970 /* end confdefs.h. */
6972 #ifdef HAVE_STDINT_H
6973 #include <stdint.h>
6974 #endif
6975 template <typename T> struct X { };
6976 template <>
6977 struct X<long long> { typedef long long t; };
6980 main ()
6982 X<int64_t>::t x;
6984 return 0;
6986 _ACEOF
6987 if ac_fn_cxx_try_compile "$LINENO"; then :
6989 else
6990 as_fn_error $? "error verifying int64_t uses long long" "$LINENO" 5
6992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::swap in <utility>" >&5
6996 $as_echo_n "checking for std::swap in <utility>... " >&6; }
6997 if ${ac_cv_std_swap_in_utility+:} false; then :
6998 $as_echo_n "(cached) " >&6
6999 else
7001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7002 /* end confdefs.h. */
7004 #include <utility>
7007 main ()
7009 int a, b; std::swap(a,b);
7011 return 0;
7013 _ACEOF
7014 if ac_fn_cxx_try_compile "$LINENO"; then :
7015 ac_cv_std_swap_in_utility=yes
7016 else
7017 ac_cv_std_swap_in_utility=no
7019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_std_swap_in_utility" >&5
7022 $as_echo "$ac_cv_std_swap_in_utility" >&6; }
7023 if test $ac_cv_std_swap_in_utility = yes; then
7025 $as_echo "#define HAVE_SWAP_IN_UTILITY 1" >>confdefs.h
7029 # Check whether compiler is affected by placement new aliasing bug (PR 29286).
7030 # If the host compiler is affected by the bug, and we build with optimization
7031 # enabled (which happens e.g. when cross-compiling), the pool allocator may
7032 # get miscompiled. Use -fno-strict-aliasing to work around this problem.
7033 # Since there is no reliable feature check for the presence of this bug,
7034 # we simply use a GCC version number check. (This should never trigger for
7035 # stages 2 or 3 of a native bootstrap.)
7036 aliasing_flags=
7037 if test "$GCC" = yes; then
7038 saved_CXXFLAGS="$CXXFLAGS"
7040 # The following test compilation will succeed if and only if $CXX accepts
7041 # -fno-strict-aliasing *and* is older than GCC 4.3.
7042 CXXFLAGS="$CXXFLAGS -fno-strict-aliasing"
7043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX is affected by placement new aliasing bug" >&5
7044 $as_echo_n "checking whether $CXX is affected by placement new aliasing bug... " >&6; }
7045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7046 /* end confdefs.h. */
7048 #if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3)
7049 #error compiler not affected by placement new aliasing bug
7050 #endif
7052 _ACEOF
7053 if ac_fn_cxx_try_compile "$LINENO"; then :
7054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7055 $as_echo "yes" >&6; }; aliasing_flags='-fno-strict-aliasing'
7056 else
7057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7058 $as_echo "no" >&6; }
7060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7062 CXXFLAGS="$saved_CXXFLAGS"
7068 # ---------------------
7069 # Warnings and checking
7070 # ---------------------
7072 # Check $CC warning features (if it's GCC).
7073 # We want to use -pedantic, but we don't want warnings about
7074 # * 'long long'
7075 # * variadic macros
7076 # * overlong strings
7077 # * C++11 narrowing conversions in { }
7078 # So, we only use -pedantic if we can disable those warnings.
7080 # In stage 1, disable -Wformat warnings from old GCCs about new % codes
7081 # Check whether --enable-build-format-warnings was given.
7082 if test "${enable_build_format_warnings+set}" = set; then :
7083 enableval=$enable_build_format_warnings;
7084 else
7085 enable_build_format_warnings=yes
7088 if test $enable_build_format_warnings = no; then :
7089 wf_opt=-Wno-format
7090 else
7091 wf_opt=
7093 ac_ext=cpp
7094 ac_cpp='$CXXCPP $CPPFLAGS'
7095 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7096 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7097 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7099 loose_warn=
7100 save_CXXFLAGS="$CXXFLAGS"
7101 for real_option in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual $wf_opt; do
7102 # Do the check with the no- prefix removed since gcc silently
7103 # accepts any -Wno-* option on purpose
7104 case $real_option in
7105 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7106 *) option=$real_option ;;
7107 esac
7108 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
7111 $as_echo_n "checking whether $CXX supports $option... " >&6; }
7112 if eval \${$as_acx_Woption+:} false; then :
7113 $as_echo_n "(cached) " >&6
7114 else
7115 CXXFLAGS="$option"
7116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7117 /* end confdefs.h. */
7120 main ()
7124 return 0;
7126 _ACEOF
7127 if ac_fn_cxx_try_compile "$LINENO"; then :
7128 eval "$as_acx_Woption=yes"
7129 else
7130 eval "$as_acx_Woption=no"
7132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7135 eval ac_res=\$$as_acx_Woption
7136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7137 $as_echo "$ac_res" >&6; }
7138 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7139 loose_warn="$loose_warn${loose_warn:+ }$real_option"
7141 done
7142 CXXFLAGS="$save_CXXFLAGS"
7143 ac_ext=cpp
7144 ac_cpp='$CXXCPP $CPPFLAGS'
7145 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7146 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7147 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7151 ac_ext=c
7152 ac_cpp='$CPP $CPPFLAGS'
7153 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7154 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7155 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7157 c_loose_warn=
7158 save_CFLAGS="$CFLAGS"
7159 for real_option in -Wstrict-prototypes -Wmissing-prototypes ; do
7160 # Do the check with the no- prefix removed since gcc silently
7161 # accepts any -Wno-* option on purpose
7162 case $real_option in
7163 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7164 *) option=$real_option ;;
7165 esac
7166 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
7169 $as_echo_n "checking whether $CC supports $option... " >&6; }
7170 if eval \${$as_acx_Woption+:} false; then :
7171 $as_echo_n "(cached) " >&6
7172 else
7173 CFLAGS="$option"
7174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7175 /* end confdefs.h. */
7178 main ()
7182 return 0;
7184 _ACEOF
7185 if ac_fn_c_try_compile "$LINENO"; then :
7186 eval "$as_acx_Woption=yes"
7187 else
7188 eval "$as_acx_Woption=no"
7190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7193 eval ac_res=\$$as_acx_Woption
7194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7195 $as_echo "$ac_res" >&6; }
7196 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7197 c_loose_warn="$c_loose_warn${c_loose_warn:+ }$real_option"
7199 done
7200 CFLAGS="$save_CFLAGS"
7201 ac_ext=cpp
7202 ac_cpp='$CXXCPP $CPPFLAGS'
7203 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7204 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7205 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7208 ac_ext=cpp
7209 ac_cpp='$CXXCPP $CPPFLAGS'
7210 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7211 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7212 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7214 strict_warn=
7215 save_CXXFLAGS="$CXXFLAGS"
7216 for real_option in -Wmissing-format-attribute -Woverloaded-virtual; do
7217 # Do the check with the no- prefix removed since gcc silently
7218 # accepts any -Wno-* option on purpose
7219 case $real_option in
7220 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7221 *) option=$real_option ;;
7222 esac
7223 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
7226 $as_echo_n "checking whether $CXX supports $option... " >&6; }
7227 if eval \${$as_acx_Woption+:} false; then :
7228 $as_echo_n "(cached) " >&6
7229 else
7230 CXXFLAGS="$option"
7231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7232 /* end confdefs.h. */
7235 main ()
7239 return 0;
7241 _ACEOF
7242 if ac_fn_cxx_try_compile "$LINENO"; then :
7243 eval "$as_acx_Woption=yes"
7244 else
7245 eval "$as_acx_Woption=no"
7247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7250 eval ac_res=\$$as_acx_Woption
7251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7252 $as_echo "$ac_res" >&6; }
7253 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7254 strict_warn="$strict_warn${strict_warn:+ }$real_option"
7256 done
7257 CXXFLAGS="$save_CXXFLAGS"
7258 ac_ext=cpp
7259 ac_cpp='$CXXCPP $CPPFLAGS'
7260 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7261 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7262 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7265 ac_ext=c
7266 ac_cpp='$CPP $CPPFLAGS'
7267 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7268 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7269 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7271 c_strict_warn=
7272 save_CFLAGS="$CFLAGS"
7273 for real_option in -Wold-style-definition -Wc++-compat; do
7274 # Do the check with the no- prefix removed since gcc silently
7275 # accepts any -Wno-* option on purpose
7276 case $real_option in
7277 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7278 *) option=$real_option ;;
7279 esac
7280 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
7283 $as_echo_n "checking whether $CC supports $option... " >&6; }
7284 if eval \${$as_acx_Woption+:} false; then :
7285 $as_echo_n "(cached) " >&6
7286 else
7287 CFLAGS="$option"
7288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7289 /* end confdefs.h. */
7292 main ()
7296 return 0;
7298 _ACEOF
7299 if ac_fn_c_try_compile "$LINENO"; then :
7300 eval "$as_acx_Woption=yes"
7301 else
7302 eval "$as_acx_Woption=no"
7304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7307 eval ac_res=\$$as_acx_Woption
7308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7309 $as_echo "$ac_res" >&6; }
7310 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7311 c_strict_warn="$c_strict_warn${c_strict_warn:+ }$real_option"
7313 done
7314 CFLAGS="$save_CFLAGS"
7315 ac_ext=cpp
7316 ac_cpp='$CXXCPP $CPPFLAGS'
7317 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7318 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7319 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7322 ac_ext=cpp
7323 ac_cpp='$CXXCPP $CPPFLAGS'
7324 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7325 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7326 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7328 # Do the check with the no- prefix removed from the warning options
7329 # since gcc silently accepts any -Wno-* option on purpose
7330 if test "$GXX" = yes; then :
7331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
7332 $as_echo_n "checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
7333 if ${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+:} false; then :
7334 $as_echo_n "(cached) " >&6
7335 else
7336 save_CXXFLAGS="$CXXFLAGS"
7337 CXXFLAGS="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
7338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7339 /* end confdefs.h. */
7342 main ()
7346 return 0;
7348 _ACEOF
7349 if ac_fn_cxx_try_compile "$LINENO"; then :
7350 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=yes
7351 else
7352 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=no
7354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7355 CXXFLAGS="$save_CXXFLAGS"
7357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
7358 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
7359 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
7360 strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
7364 ac_ext=cpp
7365 ac_cpp='$CXXCPP $CPPFLAGS'
7366 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7367 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7368 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7371 ac_ext=cpp
7372 ac_cpp='$CXXCPP $CPPFLAGS'
7373 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7374 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7375 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7377 # Check whether --enable-werror-always was given.
7378 if test "${enable_werror_always+set}" = set; then :
7379 enableval=$enable_werror_always;
7380 else
7381 enable_werror_always=no
7384 if test $enable_werror_always = yes; then :
7385 strict_warn="$strict_warn${strict_warn:+ }-Werror"
7388 ac_ext=cpp
7389 ac_cpp='$CXXCPP $CPPFLAGS'
7390 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7391 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7392 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7396 # The above macros do nothing if the compiler is not GCC. However, the
7397 # Makefile has more goo to add other flags, so these variables are used
7398 # to enable warnings only for GCC.
7399 warn_cflags=
7400 warn_cxxflags=
7401 if test "x$GCC" = "xyes"; then
7402 warn_cflags='$(GCC_WARN_CFLAGS)'
7403 warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
7408 # Disable exceptions and RTTI if building with g++
7409 ac_ext=c
7410 ac_cpp='$CPP $CPPFLAGS'
7411 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7412 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7413 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7415 noexception_flags=
7416 save_CFLAGS="$CFLAGS"
7417 for real_option in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
7418 # Do the check with the no- prefix removed since gcc silently
7419 # accepts any -Wno-* option on purpose
7420 case $real_option in
7421 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7422 *) option=$real_option ;;
7423 esac
7424 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
7427 $as_echo_n "checking whether $CC supports $option... " >&6; }
7428 if eval \${$as_acx_Woption+:} false; then :
7429 $as_echo_n "(cached) " >&6
7430 else
7431 CFLAGS="$option"
7432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7433 /* end confdefs.h. */
7436 main ()
7440 return 0;
7442 _ACEOF
7443 if ac_fn_c_try_compile "$LINENO"; then :
7444 eval "$as_acx_Woption=yes"
7445 else
7446 eval "$as_acx_Woption=no"
7448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7451 eval ac_res=\$$as_acx_Woption
7452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7453 $as_echo "$ac_res" >&6; }
7454 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7455 noexception_flags="$noexception_flags${noexception_flags:+ }$real_option"
7457 done
7458 CFLAGS="$save_CFLAGS"
7459 ac_ext=cpp
7460 ac_cpp='$CXXCPP $CPPFLAGS'
7461 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7462 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7463 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7467 # Enable expensive internal checks
7468 is_release=
7469 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
7470 is_release=yes
7473 # Check whether --enable-checking was given.
7474 if test "${enable_checking+set}" = set; then :
7475 enableval=$enable_checking; ac_checking_flags="${enableval}"
7476 else
7478 # Determine the default checks.
7479 if test x$is_release = x ; then
7480 ac_checking_flags=yes,extra
7481 else
7482 ac_checking_flags=release
7486 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
7487 for check in release $ac_checking_flags
7489 case $check in
7490 # these set all the flags to specific states
7491 yes) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
7492 ac_fold_checking= ; ac_gc_checking=1 ; ac_extra_checking= ;
7493 ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
7494 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7495 ac_tree_checking=1 ; ac_valgrind_checking= ;
7496 ac_types_checking=1 ;;
7497 no|none) ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
7498 ac_fold_checking= ; ac_gc_checking= ; ac_extra_checking= ;
7499 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
7500 ac_rtlflag_checking= ; ac_runtime_checking= ;
7501 ac_tree_checking= ; ac_valgrind_checking= ;
7502 ac_types_checking= ;;
7503 all) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
7504 ac_fold_checking=1 ; ac_gc_checking=1 ; ac_extra_checking=1 ;
7505 ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
7506 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7507 ac_tree_checking=1 ; ac_valgrind_checking= ;
7508 ac_types_checking=1 ;;
7509 release) ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
7510 ac_fold_checking= ; ac_gc_checking= ; ac_extra_checking= ;
7511 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
7512 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
7513 ac_tree_checking= ; ac_valgrind_checking= ;
7514 ac_types_checking= ;;
7515 # these enable particular checks
7516 assert) ac_assert_checking=1 ;;
7517 df) ac_df_checking=1 ;;
7518 extra) ac_extra_checking=1 ;;
7519 fold) ac_fold_checking=1 ;;
7520 gc) ac_gc_checking=1 ;;
7521 gcac) ac_gc_always_collect=1 ;;
7522 gimple) ac_gimple_checking=1 ;;
7523 misc) ac_checking=1 ;;
7524 rtl) ac_rtl_checking=1 ;;
7525 rtlflag) ac_rtlflag_checking=1 ;;
7526 runtime) ac_runtime_checking=1 ;;
7527 tree) ac_tree_checking=1 ;;
7528 types) ac_types_checking=1 ;;
7529 valgrind) ac_valgrind_checking=1 ;;
7530 *) as_fn_error $? "unknown check category $check" "$LINENO" 5 ;;
7531 esac
7532 done
7533 IFS="$ac_save_IFS"
7535 nocommon_flag=""
7536 if test x$ac_checking != x ; then
7538 $as_echo "#define CHECKING_P 1" >>confdefs.h
7540 nocommon_flag=-fno-common
7541 else
7542 $as_echo "#define CHECKING_P 0" >>confdefs.h
7546 if test x$ac_extra_checking != x ; then
7548 $as_echo "#define ENABLE_EXTRA_CHECKING 1" >>confdefs.h
7550 else
7551 $as_echo "#define ENABLE_EXTRA_CHECKING 0" >>confdefs.h
7554 if test x$ac_df_checking != x ; then
7556 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
7559 if test x$ac_assert_checking != x ; then
7561 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
7564 if test x$ac_gimple_checking != x ; then
7566 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
7570 if test x$ac_runtime_checking != x ; then
7572 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
7575 if test x$ac_tree_checking != x ; then
7577 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
7579 TREECHECKING=yes
7581 if test x$ac_types_checking != x ; then
7583 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
7587 if test x$ac_rtl_checking != x ; then
7589 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
7592 if test x$ac_rtlflag_checking != x ; then
7594 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
7597 if test x$ac_gc_checking != x ; then
7599 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
7602 if test x$ac_gc_always_collect != x ; then
7604 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
7607 if test x$ac_fold_checking != x ; then
7609 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
7612 valgrind_path_defines=
7613 valgrind_command=
7615 ac_fn_cxx_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
7616 if test "x$ac_cv_header_valgrind_h" = xyes; then :
7617 have_valgrind_h=yes
7618 else
7619 have_valgrind_h=no
7624 # It is certainly possible that there's valgrind but no valgrind.h.
7625 # GCC relies on making annotations so we must have both.
7626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
7627 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
7628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7629 /* end confdefs.h. */
7630 #include <valgrind/memcheck.h>
7631 #ifndef VALGRIND_DISCARD
7632 #error VALGRIND_DISCARD not defined
7633 #endif
7634 _ACEOF
7635 if ac_fn_cxx_try_cpp "$LINENO"; then :
7636 gcc_cv_header_valgrind_memcheck_h=yes
7637 else
7638 gcc_cv_header_valgrind_memcheck_h=no
7640 rm -f conftest.err conftest.i conftest.$ac_ext
7641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
7642 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
7643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
7644 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
7645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7646 /* end confdefs.h. */
7647 #include <memcheck.h>
7648 #ifndef VALGRIND_DISCARD
7649 #error VALGRIND_DISCARD not defined
7650 #endif
7651 _ACEOF
7652 if ac_fn_cxx_try_cpp "$LINENO"; then :
7653 gcc_cv_header_memcheck_h=yes
7654 else
7655 gcc_cv_header_memcheck_h=no
7657 rm -f conftest.err conftest.i conftest.$ac_ext
7658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
7659 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
7660 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
7662 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
7665 if test $gcc_cv_header_memcheck_h = yes; then
7667 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
7671 if test x$ac_valgrind_checking != x ; then
7673 # Prepare PATH_SEPARATOR.
7674 # The user is always right.
7675 if test "${PATH_SEPARATOR+set}" != set; then
7676 echo "#! /bin/sh" >conf$$.sh
7677 echo "exit 0" >>conf$$.sh
7678 chmod +x conf$$.sh
7679 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7680 PATH_SEPARATOR=';'
7681 else
7682 PATH_SEPARATOR=:
7684 rm -f conf$$.sh
7687 # Find out how to test for executable files. Don't use a zero-byte file,
7688 # as systems may use methods other than mode bits to determine executability.
7689 cat >conf$$.file <<_ASEOF
7690 #! /bin/sh
7691 exit 0
7692 _ASEOF
7693 chmod +x conf$$.file
7694 if test -x conf$$.file >/dev/null 2>&1; then
7695 ac_executable_p="test -x"
7696 else
7697 ac_executable_p="test -f"
7699 rm -f conf$$.file
7701 # Extract the first word of "valgrind", so it can be a program name with args.
7702 set dummy valgrind; ac_word=$2
7703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7704 $as_echo_n "checking for $ac_word... " >&6; }
7705 if ${ac_cv_path_valgrind_path+:} false; then :
7706 $as_echo_n "(cached) " >&6
7707 else
7708 case "$valgrind_path" in
7709 [\\/]* | ?:[\\/]*)
7710 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
7713 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7714 for ac_dir in $PATH; do
7715 IFS="$ac_save_IFS"
7716 test -z "$ac_dir" && ac_dir=.
7717 for ac_exec_ext in '' $ac_executable_extensions; do
7718 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7719 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
7720 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
7721 break 2
7724 done
7725 done
7726 IFS="$ac_save_IFS"
7728 esac
7730 valgrind_path="$ac_cv_path_valgrind_path"
7731 if test -n "$valgrind_path"; then
7732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
7733 $as_echo "$valgrind_path" >&6; }
7734 else
7735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7736 $as_echo "no" >&6; }
7739 if test "x$valgrind_path" = "x" \
7740 || (test $have_valgrind_h = no \
7741 && test $gcc_cv_header_memcheck_h = no \
7742 && test $gcc_cv_header_valgrind_memcheck_h = no); then
7743 as_fn_error $? "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7745 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
7746 valgrind_command="$valgrind_path -q"
7748 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
7754 # Enable code coverage collection
7755 # Check whether --enable-coverage was given.
7756 if test "${enable_coverage+set}" = set; then :
7757 enableval=$enable_coverage; case "${enableval}" in
7758 yes|noopt)
7759 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0 -fkeep-static-functions"
7761 opt)
7762 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2 -fkeep-static-functions"
7765 # a.k.a. --disable-coverage
7766 coverage_flags=""
7769 as_fn_error $? "unknown coverage setting $enableval" "$LINENO" 5
7771 esac
7772 else
7773 coverage_flags=""
7778 # Check whether --enable-gather-detailed-mem-stats was given.
7779 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
7780 enableval=$enable_gather_detailed_mem_stats;
7781 else
7782 enable_gather_detailed_mem_stats=no
7785 gather_stats=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
7787 cat >>confdefs.h <<_ACEOF
7788 #define GATHER_STATISTICS $gather_stats
7789 _ACEOF
7792 # Check whether --enable-valgrind-annotations was given.
7793 if test "${enable_valgrind_annotations+set}" = set; then :
7794 enableval=$enable_valgrind_annotations;
7795 else
7796 enable_valgrind_annotations=no
7799 if test x$enable_valgrind_annotations != xno \
7800 || test x$ac_valgrind_checking != x; then
7801 if (test $have_valgrind_h = no \
7802 && test $gcc_cv_header_memcheck_h = no \
7803 && test $gcc_cv_header_valgrind_memcheck_h = no); then
7804 as_fn_error $? "*** Can't find valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7807 $as_echo "#define ENABLE_VALGRIND_ANNOTATIONS 1" >>confdefs.h
7811 # -------------------------------
7812 # Miscenalleous configure options
7813 # -------------------------------
7815 # Determine whether or not multilibs are enabled.
7816 # Check whether --enable-multilib was given.
7817 if test "${enable_multilib+set}" = set; then :
7818 enableval=$enable_multilib;
7819 else
7820 enable_multilib=yes
7825 # Determine whether or not multiarch is enabled.
7826 # Check whether --enable-multiarch was given.
7827 if test "${enable_multiarch+set}" = set; then :
7828 enableval=$enable_multiarch; case "${enableval}" in
7829 yes|no|auto) enable_multiarch=$enableval;;
7830 *) as_fn_error $? "bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
7831 esac
7832 else
7833 enable_multiarch=auto
7836 if test x${enable_multiarch} = xauto; then
7837 if test x${with_native_system_header_dir} != x; then
7838 ma_msg_suffix=", disabled auto check (configured with --native-system-header-dir)"
7839 enable_multiarch=no
7841 if test x$host != x$target && test "x$with_sysroot" = x; then
7842 ma_msg_suffix=", disabled auto check (cross build configured without --with-sysroot)"
7843 enable_multiarch=no
7846 if test x${enable_multiarch} = xyes; then
7848 $as_echo "#define ENABLE_MULTIARCH 1" >>confdefs.h
7851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
7852 $as_echo_n "checking for multiarch configuration... " >&6; }
7854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
7855 $as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
7857 # needed for setting the multiarch name for soft-float/hard-float ABIs
7861 # default stack clash protection guard size as power of twos in bytes.
7862 # Please keep these in sync with params.def.
7863 stk_clash_min=12
7864 stk_clash_max=30
7866 # Keep the default value when the option is not used to 0, this allows us to
7867 # distinguish between the cases where the user specifially set a value via
7868 # configure and when the normal default value is used.
7870 # Check whether --with-stack-clash-protection-guard-size was given.
7871 if test "${with_stack_clash_protection_guard_size+set}" = set; then :
7872 withval=$with_stack_clash_protection_guard_size; DEFAULT_STK_CLASH_GUARD_SIZE="$with_stack_clash_protection_guard_size"
7873 else
7874 DEFAULT_STK_CLASH_GUARD_SIZE=0
7877 if test $DEFAULT_STK_CLASH_GUARD_SIZE -ne 0 \
7878 && (test $DEFAULT_STK_CLASH_GUARD_SIZE -lt $stk_clash_min \
7879 || test $DEFAULT_STK_CLASH_GUARD_SIZE -gt $stk_clash_max); then
7880 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
7884 cat >>confdefs.h <<_ACEOF
7885 #define DEFAULT_STK_CLASH_GUARD_SIZE $DEFAULT_STK_CLASH_GUARD_SIZE
7886 _ACEOF
7889 # Enable __cxa_atexit for C++.
7890 # Check whether --enable-__cxa_atexit was given.
7891 if test "${enable___cxa_atexit+set}" = set; then :
7892 enableval=$enable___cxa_atexit;
7896 # Enable C extension for decimal float if target supports it.
7898 # Check whether --enable-decimal-float was given.
7899 if test "${enable_decimal_float+set}" = set; then :
7900 enableval=$enable_decimal_float;
7901 case $enable_decimal_float in
7902 yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
7903 *) as_fn_error $? "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7904 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7905 esac
7907 else
7909 case $target in
7910 aarch64* | \
7911 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
7912 i?86*-*-elfiamcu | i?86*-*-gnu* | x86_64*-*-gnu* | \
7913 i?86*-*-mingw* | x86_64*-*-mingw* | \
7914 i?86*-*-cygwin* | x86_64*-*-cygwin*)
7915 enable_decimal_float=yes
7918 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7919 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7920 enable_decimal_float=no
7922 esac
7927 # x86's use BID format instead of DPD
7928 case x$enable_decimal_float in
7929 xyes)
7930 case $target in
7931 aarch64* | i?86*-*-* | x86_64*-*-*)
7932 enable_decimal_float=bid
7935 enable_decimal_float=dpd
7937 esac
7938 default_decimal_float=$enable_decimal_float
7940 xno)
7941 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7942 # dependency on libdecnumber.
7943 default_decimal_float=dpd
7945 esac
7950 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7952 cat >>confdefs.h <<_ACEOF
7953 #define ENABLE_DECIMAL_FLOAT $dfp
7954 _ACEOF
7957 # Use default_decimal_float for dependency.
7958 enable_decimal_float=$default_decimal_float
7960 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7962 cat >>confdefs.h <<_ACEOF
7963 #define ENABLE_DECIMAL_BID_FORMAT $bid
7964 _ACEOF
7967 # Enable C extension for fixed-point arithmetic.
7968 # Check whether --enable-fixed-point was given.
7969 if test "${enable_fixed_point+set}" = set; then :
7970 enableval=$enable_fixed_point;
7971 else
7973 case $target in
7974 arm*)
7975 enable_fixed_point=yes
7978 mips*-*-*)
7979 enable_fixed_point=yes
7981 loongarch*-*-*)
7982 enable_fixed_point=yes
7985 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7986 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7987 enable_fixed_point=no
7989 esac
7995 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7997 cat >>confdefs.h <<_ACEOF
7998 #define ENABLE_FIXED_POINT $fixedpoint
7999 _ACEOF
8002 # Enable threads
8003 # Pass with no value to take the default
8004 # Pass with a value to specify a thread package
8005 # Check whether --enable-threads was given.
8006 if test "${enable_threads+set}" = set; then :
8007 enableval=$enable_threads;
8008 else
8009 enable_threads=''
8013 # Check whether --enable-tls was given.
8014 if test "${enable_tls+set}" = set; then :
8015 enableval=$enable_tls;
8016 case $enable_tls in
8017 yes | no) ;;
8018 *) as_fn_error $? "'$enable_tls' is an invalid value for --enable-tls.
8019 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
8020 esac
8022 else
8023 enable_tls=''
8027 # Check whether --enable-vtable-verify was given.
8028 if test "${enable_vtable_verify+set}" = set; then :
8029 enableval=$enable_vtable_verify;
8030 else
8031 enable_vtable_verify=no
8034 vtable_verify=`if test x$enable_vtable_verify = xyes; then echo 1; else echo 0; fi`
8036 cat >>confdefs.h <<_ACEOF
8037 #define ENABLE_VTABLE_VERIFY $vtable_verify
8038 _ACEOF
8041 # Check whether --enable-analyzer was given.
8042 if test "${enable_analyzer+set}" = set; then :
8043 enableval=$enable_analyzer; if test x$enable_analyzer = xno; then
8044 analyzer=0
8045 else
8046 analyzer=1
8048 else
8049 analyzer=1
8053 cat >>confdefs.h <<_ACEOF
8054 #define ENABLE_ANALYZER $analyzer
8055 _ACEOF
8058 # Check whether --enable-objc-gc was given.
8059 if test "${enable_objc_gc+set}" = set; then :
8060 enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
8061 objc_boehm_gc=''
8062 else
8063 objc_boehm_gc=1
8065 else
8066 objc_boehm_gc=''
8071 # Check whether --with-dwarf2 was given.
8072 if test "${with_dwarf2+set}" = set; then :
8073 withval=$with_dwarf2; dwarf2="$with_dwarf2"
8074 else
8075 dwarf2=no
8079 # Check whether --enable-shared was given.
8080 if test "${enable_shared+set}" = set; then :
8081 enableval=$enable_shared;
8082 case $enable_shared in
8083 yes | no) ;;
8085 enable_shared=no
8086 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
8087 for pkg in $enableval; do
8088 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
8089 enable_shared=yes
8091 done
8092 IFS="$ac_save_ifs"
8094 esac
8096 else
8097 enable_shared=yes
8102 # Check whether --enable-gcov was given.
8103 if test "${enable_gcov+set}" = set; then :
8104 enableval=$enable_gcov;
8105 else
8106 case $target in
8107 bpf-*-*)
8108 enable_gcov=no
8111 enable_gcov=yes
8113 esac
8120 # Check whether --with-specs was given.
8121 if test "${with_specs+set}" = set; then :
8122 withval=$with_specs; CONFIGURE_SPECS=$withval
8123 else
8124 CONFIGURE_SPECS=
8132 # Check whether --with-pkgversion was given.
8133 if test "${with_pkgversion+set}" = set; then :
8134 withval=$with_pkgversion; case "$withval" in
8135 yes) as_fn_error $? "package version not specified" "$LINENO" 5 ;;
8136 no) PKGVERSION= ;;
8137 *) PKGVERSION="($withval) " ;;
8138 esac
8139 else
8140 PKGVERSION="(GCC) "
8148 # Check whether --with-bugurl was given.
8149 if test "${with_bugurl+set}" = set; then :
8150 withval=$with_bugurl; case "$withval" in
8151 yes) as_fn_error $? "bug URL not specified" "$LINENO" 5 ;;
8152 no) BUGURL=
8154 *) BUGURL="$withval"
8156 esac
8157 else
8158 BUGURL="https://gcc.gnu.org/bugs/"
8162 case ${BUGURL} in
8164 REPORT_BUGS_TO=
8165 REPORT_BUGS_TEXI=
8168 REPORT_BUGS_TO="<$BUGURL>"
8169 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
8171 esac;
8176 # Allow overriding the default URL for documentation
8178 # Check whether --with-documentation-root-url was given.
8179 if test "${with_documentation_root_url+set}" = set; then :
8180 withval=$with_documentation_root_url; case "$withval" in
8181 yes) as_fn_error $? "documentation root URL not specified" "$LINENO" 5 ;;
8182 no) as_fn_error $? "documentation root URL not specified" "$LINENO" 5 ;;
8183 */) DOCUMENTATION_ROOT_URL="$withval" ;;
8184 *) as_fn_error $? "documentation root URL does not end with /" "$LINENO" 5 ;;
8185 esac
8186 else
8187 DOCUMENTATION_ROOT_URL="https://gcc.gnu.org/onlinedocs/"
8192 cat >>confdefs.h <<_ACEOF
8193 #define DOCUMENTATION_ROOT_URL "$DOCUMENTATION_ROOT_URL"
8194 _ACEOF
8197 # Allow overriding the default URL for GCC changes
8199 # Check whether --with-changes-root-url was given.
8200 if test "${with_changes_root_url+set}" = set; then :
8201 withval=$with_changes_root_url; case "$withval" in
8202 yes) as_fn_error $? "changes root URL not specified" "$LINENO" 5 ;;
8203 no) as_fn_error $? "changes root URL not specified" "$LINENO" 5 ;;
8204 */) CHANGES_ROOT_URL="$withval" ;;
8205 *) as_fn_error $? "changes root URL does not end with /" "$LINENO" 5 ;;
8206 esac
8207 else
8208 CHANGES_ROOT_URL="https://gcc.gnu.org/"
8213 cat >>confdefs.h <<_ACEOF
8214 #define CHANGES_ROOT_URL "$CHANGES_ROOT_URL"
8215 _ACEOF
8218 # Sanity check enable_languages in case someone does not run the toplevel
8219 # configure # script.
8220 # Check whether --enable-languages was given.
8221 if test "${enable_languages+set}" = set; then :
8222 enableval=$enable_languages; case ,${enable_languages}, in
8223 ,,|,yes,)
8224 # go safe -- we cannot be much sure without the toplevel
8225 # configure's
8226 # analysis of which target libs are present and usable
8227 enable_languages=c
8229 *,all,*)
8230 as_fn_error $? "only the toplevel supports --enable-languages=all" "$LINENO" 5
8232 *,c,*)
8235 enable_languages=c,${enable_languages}
8237 esac
8238 else
8239 enable_languages=c
8243 # If top-level libada has been disabled, then wire in install-gnatlib
8244 # invocation with `make install', so that one can build and install
8245 # the library manually with `make -C gcc all gnatlib gnattools install'.
8246 if test x"$enable_libada" = xno; then
8247 gnat_install_lib=gnat-install-lib
8248 else
8249 gnat_install_lib=
8253 if test x"$enable_as_accelerator_for" != x; then
8255 $as_echo "#define ACCEL_COMPILER 1" >>confdefs.h
8257 enable_as_accelerator=yes
8258 sedscript="s#${target_noncanonical}#${enable_as_accelerator_for}-accel-${target_noncanonical}#"
8259 program_transform_name=`echo $program_transform_name | sed $sedscript`
8260 accel_dir_suffix=/accel/${target_noncanonical}
8261 real_target_noncanonical=${enable_as_accelerator_for}
8267 for tgt in `echo $enable_offload_targets | sed 's/,/ /g'`; do
8268 tgt=`echo $tgt | sed 's/=.*//'`
8270 enable_offloading=1
8271 case "$tgt" in
8272 amdgcn*)
8273 omp_device_property=omp-device-properties-gcn
8274 omp_device_property_tmake_file="${omp_device_property_tmake_file} \$(srcdir)/config/gcn/t-omp-device"
8276 nvptx*)
8277 omp_device_property=omp-device-properties-nvptx
8278 omp_device_property_tmake_file="${omp_device_property_tmake_file} \$(srcdir)/config/nvptx/t-omp-device"
8281 as_fn_error $? "unknown offload target specified" "$LINENO" 5
8283 esac
8284 omp_device_properties="${omp_device_properties} ${tgt}=${omp_device_property}"
8285 omp_device_property_deps="${omp_device_property_deps} ${omp_device_property}"
8287 if test x"$offload_targets" = x; then
8288 offload_targets=$tgt
8289 else
8290 offload_targets="$offload_targets,$tgt"
8292 done
8297 cat >>confdefs.h <<_ACEOF
8298 #define OFFLOAD_TARGETS "$offload_targets"
8299 _ACEOF
8301 if test x"$enable_offloading" != x; then
8303 $as_echo "#define ENABLE_OFFLOADING 1" >>confdefs.h
8305 else
8307 $as_echo "#define ENABLE_OFFLOADING 0" >>confdefs.h
8311 if test "x$enable_offload_defaulted" = xyes; then
8313 $as_echo "#define OFFLOAD_DEFAULTED 1" >>confdefs.h
8318 # Check whether --with-multilib-list was given.
8319 if test "${with_multilib_list+set}" = set; then :
8320 withval=$with_multilib_list; :
8321 else
8322 with_multilib_list=default
8327 # Check whether --with-multilib-generator was given.
8328 if test "${with_multilib_generator+set}" = set; then :
8329 withval=$with_multilib_generator; :
8330 else
8331 with_multilib_generator=default
8335 # -------------------------
8336 # Checks for other programs
8337 # -------------------------
8339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8340 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8341 set x ${MAKE-make}
8342 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8343 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
8344 $as_echo_n "(cached) " >&6
8345 else
8346 cat >conftest.make <<\_ACEOF
8347 SHELL = /bin/sh
8348 all:
8349 @echo '@@@%%%=$(MAKE)=@@@%%%'
8350 _ACEOF
8351 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
8352 case `${MAKE-make} -f conftest.make 2>/dev/null` in
8353 *@@@%%%=?*=@@@%%%*)
8354 eval ac_cv_prog_make_${ac_make}_set=yes;;
8356 eval ac_cv_prog_make_${ac_make}_set=no;;
8357 esac
8358 rm -f conftest.make
8360 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8362 $as_echo "yes" >&6; }
8363 SET_MAKE=
8364 else
8365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8366 $as_echo "no" >&6; }
8367 SET_MAKE="MAKE=${MAKE-make}"
8371 # Find some useful tools
8372 for ac_prog in gawk mawk nawk awk
8374 # Extract the first word of "$ac_prog", so it can be a program name with args.
8375 set dummy $ac_prog; ac_word=$2
8376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8377 $as_echo_n "checking for $ac_word... " >&6; }
8378 if ${ac_cv_prog_AWK+:} false; then :
8379 $as_echo_n "(cached) " >&6
8380 else
8381 if test -n "$AWK"; then
8382 ac_cv_prog_AWK="$AWK" # Let the user override the test.
8383 else
8384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8385 for as_dir in $PATH
8387 IFS=$as_save_IFS
8388 test -z "$as_dir" && as_dir=.
8389 for ac_exec_ext in '' $ac_executable_extensions; do
8390 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8391 ac_cv_prog_AWK="$ac_prog"
8392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8393 break 2
8395 done
8396 done
8397 IFS=$as_save_IFS
8401 AWK=$ac_cv_prog_AWK
8402 if test -n "$AWK"; then
8403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8404 $as_echo "$AWK" >&6; }
8405 else
8406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8407 $as_echo "no" >&6; }
8411 test -n "$AWK" && break
8412 done
8414 # We need awk to create options.cc and options.h.
8415 # Bail out if it's missing.
8416 case ${AWK} in
8417 "") as_fn_error $? "can't build without awk, bailing out" "$LINENO" 5 ;;
8418 esac
8420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8421 $as_echo_n "checking whether ln -s works... " >&6; }
8422 if ${gcc_cv_prog_LN_S+:} false; then :
8423 $as_echo_n "(cached) " >&6
8424 else
8425 rm -f conftestdata_t
8426 echo >conftestdata_f
8427 if ln -s conftestdata_f conftestdata_t 2>/dev/null
8428 then
8429 gcc_cv_prog_LN_S="ln -s"
8430 else
8431 if ln conftestdata_f conftestdata_t 2>/dev/null
8432 then
8433 gcc_cv_prog_LN_S=ln
8434 else
8435 if cp -p conftestdata_f conftestdata_t 2>/dev/null
8436 then
8437 gcc_cv_prog_LN_S="cp -p"
8438 else
8439 gcc_cv_prog_LN_S=cp
8443 rm -f conftestdata_f conftestdata_t
8446 LN_S="$gcc_cv_prog_LN_S"
8447 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
8448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8449 $as_echo "yes" >&6; }
8450 else
8451 if test "$gcc_cv_prog_LN_S" = "ln"; then
8452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
8453 $as_echo "no, using ln" >&6; }
8454 else
8455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
8456 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
8460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
8461 $as_echo_n "checking whether ln works... " >&6; }
8462 if ${acx_cv_prog_LN+:} false; then :
8463 $as_echo_n "(cached) " >&6
8464 else
8465 rm -f conftestdata_t
8466 echo >conftestdata_f
8467 if ln conftestdata_f conftestdata_t 2>/dev/null
8468 then
8469 acx_cv_prog_LN=ln
8470 else
8471 acx_cv_prog_LN=no
8473 rm -f conftestdata_f conftestdata_t
8476 if test $acx_cv_prog_LN = no; then
8477 LN="$LN_S"
8478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
8479 $as_echo "no, using $LN" >&6; }
8480 else
8481 LN="$acx_cv_prog_LN"
8482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8483 $as_echo "yes" >&6; }
8486 if test -n "$ac_tool_prefix"; then
8487 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8488 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8490 $as_echo_n "checking for $ac_word... " >&6; }
8491 if ${ac_cv_prog_RANLIB+:} false; then :
8492 $as_echo_n "(cached) " >&6
8493 else
8494 if test -n "$RANLIB"; then
8495 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8496 else
8497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8498 for as_dir in $PATH
8500 IFS=$as_save_IFS
8501 test -z "$as_dir" && as_dir=.
8502 for ac_exec_ext in '' $ac_executable_extensions; do
8503 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8504 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8506 break 2
8508 done
8509 done
8510 IFS=$as_save_IFS
8514 RANLIB=$ac_cv_prog_RANLIB
8515 if test -n "$RANLIB"; then
8516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8517 $as_echo "$RANLIB" >&6; }
8518 else
8519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8520 $as_echo "no" >&6; }
8525 if test -z "$ac_cv_prog_RANLIB"; then
8526 ac_ct_RANLIB=$RANLIB
8527 # Extract the first word of "ranlib", so it can be a program name with args.
8528 set dummy ranlib; ac_word=$2
8529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8530 $as_echo_n "checking for $ac_word... " >&6; }
8531 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8532 $as_echo_n "(cached) " >&6
8533 else
8534 if test -n "$ac_ct_RANLIB"; then
8535 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8536 else
8537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8538 for as_dir in $PATH
8540 IFS=$as_save_IFS
8541 test -z "$as_dir" && as_dir=.
8542 for ac_exec_ext in '' $ac_executable_extensions; do
8543 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8544 ac_cv_prog_ac_ct_RANLIB="ranlib"
8545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8546 break 2
8548 done
8549 done
8550 IFS=$as_save_IFS
8554 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8555 if test -n "$ac_ct_RANLIB"; then
8556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8557 $as_echo "$ac_ct_RANLIB" >&6; }
8558 else
8559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8560 $as_echo "no" >&6; }
8563 if test "x$ac_ct_RANLIB" = x; then
8564 RANLIB=":"
8565 else
8566 case $cross_compiling:$ac_tool_warned in
8567 yes:)
8568 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8569 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8570 ac_tool_warned=yes ;;
8571 esac
8572 RANLIB=$ac_ct_RANLIB
8574 else
8575 RANLIB="$ac_cv_prog_RANLIB"
8578 ranlib_flags=""
8581 # Find a good install program. We prefer a C program (faster),
8582 # so one script is as good as another. But avoid the broken or
8583 # incompatible versions:
8584 # SysV /etc/install, /usr/sbin/install
8585 # SunOS /usr/etc/install
8586 # IRIX /sbin/install
8587 # AIX /bin/install
8588 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8589 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8590 # ./install, which can be erroneously created by make from ./install.sh.
8591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
8592 $as_echo_n "checking for a BSD compatible install... " >&6; }
8593 if test -z "$INSTALL"; then
8594 if ${ac_cv_path_install+:} false; then :
8595 $as_echo_n "(cached) " >&6
8596 else
8597 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
8598 for ac_dir in $PATH; do
8599 # Account for people who put trailing slashes in PATH elements.
8600 case "$ac_dir/" in
8601 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
8603 # OSF1 and SCO ODT 3.0 have their own names for install.
8604 for ac_prog in ginstall scoinst install; do
8605 if test -f $ac_dir/$ac_prog; then
8606 if test $ac_prog = install &&
8607 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
8608 # AIX install. It has an incompatible calling convention.
8609 # OSF/1 installbsd also uses dspmsg, but is usable.
8611 else
8612 ac_cv_path_install="$ac_dir/$ac_prog -c"
8613 break 2
8616 done
8618 esac
8619 done
8620 IFS="$ac_save_IFS"
8623 if test "${ac_cv_path_install+set}" = set; then
8624 INSTALL="$ac_cv_path_install"
8625 else
8626 # As a last resort, use the slow shell script. We don't cache a
8627 # path for INSTALL within a source directory, because that will
8628 # break other packages using the cache if that directory is
8629 # removed, or if the path is relative.
8630 INSTALL="$ac_install_sh"
8633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
8634 $as_echo "$INSTALL" >&6; }
8636 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8637 # It thinks the first close brace ends the variable substitution.
8638 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8640 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8643 # See if cmp has --ignore-initial.
8644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
8645 $as_echo_n "checking for cmp's capabilities... " >&6; }
8646 if ${gcc_cv_prog_cmp_skip+:} false; then :
8647 $as_echo_n "(cached) " >&6
8648 else
8649 echo abfoo >t1
8650 echo cdfoo >t2
8651 gcc_cv_prog_cmp_skip=slowcompare
8652 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
8653 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
8655 else
8656 gcc_cv_prog_cmp_skip=gnucompare
8659 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
8660 if cmp t1 t2 2 2 > /dev/null 2>&1; then
8661 if cmp t1 t2 1 1 > /dev/null 2>&1; then
8663 else
8664 gcc_cv_prog_cmp_skip=fastcompare
8668 rm t1 t2
8671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
8672 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
8673 make_compare_target=$gcc_cv_prog_cmp_skip
8677 # See if we have the mktemp command.
8678 # Extract the first word of "mktemp", so it can be a program name with args.
8679 set dummy mktemp; ac_word=$2
8680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8681 $as_echo_n "checking for $ac_word... " >&6; }
8682 if ${ac_cv_prog_have_mktemp_command+:} false; then :
8683 $as_echo_n "(cached) " >&6
8684 else
8685 if test -n "$have_mktemp_command"; then
8686 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
8687 else
8688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8689 for as_dir in $PATH
8691 IFS=$as_save_IFS
8692 test -z "$as_dir" && as_dir=.
8693 for ac_exec_ext in '' $ac_executable_extensions; do
8694 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8695 ac_cv_prog_have_mktemp_command="yes"
8696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8697 break 2
8699 done
8700 done
8701 IFS=$as_save_IFS
8703 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
8706 have_mktemp_command=$ac_cv_prog_have_mktemp_command
8707 if test -n "$have_mktemp_command"; then
8708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
8709 $as_echo "$have_mktemp_command" >&6; }
8710 else
8711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8712 $as_echo "no" >&6; }
8717 # See if makeinfo has been installed and is modern enough
8718 # that we can use it.
8720 # Extract the first word of "makeinfo", so it can be a program name with args.
8721 set dummy makeinfo; ac_word=$2
8722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8723 $as_echo_n "checking for $ac_word... " >&6; }
8724 if ${ac_cv_prog_MAKEINFO+:} false; then :
8725 $as_echo_n "(cached) " >&6
8726 else
8727 if test -n "$MAKEINFO"; then
8728 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
8729 else
8730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8731 for as_dir in $PATH
8733 IFS=$as_save_IFS
8734 test -z "$as_dir" && as_dir=.
8735 for ac_exec_ext in '' $ac_executable_extensions; do
8736 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8737 ac_cv_prog_MAKEINFO="makeinfo"
8738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8739 break 2
8741 done
8742 done
8743 IFS=$as_save_IFS
8747 MAKEINFO=$ac_cv_prog_MAKEINFO
8748 if test -n "$MAKEINFO"; then
8749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8750 $as_echo "$MAKEINFO" >&6; }
8751 else
8752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8753 $as_echo "no" >&6; }
8757 if test -n "$MAKEINFO"; then
8758 # Found it, now check the version.
8759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
8760 $as_echo_n "checking for modern makeinfo... " >&6; }
8761 if ${gcc_cv_prog_makeinfo_modern+:} false; then :
8762 $as_echo_n "(cached) " >&6
8763 else
8764 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
8765 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
8767 case $ac_prog_version in
8768 '') gcc_cv_prog_makeinfo_modern=no;;
8769 4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
8770 *) gcc_cv_prog_makeinfo_modern=no;;
8771 esac
8774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
8775 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
8776 else
8777 gcc_cv_prog_makeinfo_modern=no
8779 if test $gcc_cv_prog_makeinfo_modern = no; then
8780 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
8783 if test $gcc_cv_prog_makeinfo_modern = no; then
8784 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8785 *** Makeinfo is missing or too old.
8786 *** Info documentation will not be built." >&5
8787 $as_echo "$as_me: WARNING:
8788 *** Makeinfo is missing or too old.
8789 *** Info documentation will not be built." >&2;}
8790 BUILD_INFO=
8791 else
8792 BUILD_INFO=info
8796 # Is pod2man recent enough to regenerate manpages?
8797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
8798 $as_echo_n "checking for recent Pod::Man... " >&6; }
8799 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
8800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8801 $as_echo "yes" >&6; }
8802 GENERATED_MANPAGES=generated-manpages
8803 else
8804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8805 $as_echo "no" >&6; }
8806 GENERATED_MANPAGES=
8810 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
8812 # How about lex?
8813 for ac_prog in flex
8815 # Extract the first word of "$ac_prog", so it can be a program name with args.
8816 set dummy $ac_prog; ac_word=$2
8817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8818 $as_echo_n "checking for $ac_word... " >&6; }
8819 if ${ac_cv_prog_FLEX+:} false; then :
8820 $as_echo_n "(cached) " >&6
8821 else
8822 if test -n "$FLEX"; then
8823 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
8824 else
8825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8826 for as_dir in $PATH
8828 IFS=$as_save_IFS
8829 test -z "$as_dir" && as_dir=.
8830 for ac_exec_ext in '' $ac_executable_extensions; do
8831 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8832 ac_cv_prog_FLEX="$ac_prog"
8833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8834 break 2
8836 done
8837 done
8838 IFS=$as_save_IFS
8842 FLEX=$ac_cv_prog_FLEX
8843 if test -n "$FLEX"; then
8844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
8845 $as_echo "$FLEX" >&6; }
8846 else
8847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8848 $as_echo "no" >&6; }
8852 test -n "$FLEX" && break
8853 done
8854 test -n "$FLEX" || FLEX="$MISSING flex"
8857 # Bison?
8858 for ac_prog in bison
8860 # Extract the first word of "$ac_prog", so it can be a program name with args.
8861 set dummy $ac_prog; ac_word=$2
8862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8863 $as_echo_n "checking for $ac_word... " >&6; }
8864 if ${ac_cv_prog_BISON+:} false; then :
8865 $as_echo_n "(cached) " >&6
8866 else
8867 if test -n "$BISON"; then
8868 ac_cv_prog_BISON="$BISON" # Let the user override the test.
8869 else
8870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8871 for as_dir in $PATH
8873 IFS=$as_save_IFS
8874 test -z "$as_dir" && as_dir=.
8875 for ac_exec_ext in '' $ac_executable_extensions; do
8876 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8877 ac_cv_prog_BISON="$ac_prog"
8878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8879 break 2
8881 done
8882 done
8883 IFS=$as_save_IFS
8887 BISON=$ac_cv_prog_BISON
8888 if test -n "$BISON"; then
8889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
8890 $as_echo "$BISON" >&6; }
8891 else
8892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8893 $as_echo "no" >&6; }
8897 test -n "$BISON" && break
8898 done
8899 test -n "$BISON" || BISON="$MISSING bison"
8902 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
8903 # check for build == host before using them.
8905 # NM
8906 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
8907 && test -d ../binutils ; then
8908 NM='${objdir}/../binutils/nm-new'
8909 else
8910 # Extract the first word of "nm", so it can be a program name with args.
8911 set dummy nm; ac_word=$2
8912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8913 $as_echo_n "checking for $ac_word... " >&6; }
8914 if ${ac_cv_prog_NM+:} false; then :
8915 $as_echo_n "(cached) " >&6
8916 else
8917 if test -n "$NM"; then
8918 ac_cv_prog_NM="$NM" # Let the user override the test.
8919 else
8920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8921 for as_dir in $PATH
8923 IFS=$as_save_IFS
8924 test -z "$as_dir" && as_dir=.
8925 for ac_exec_ext in '' $ac_executable_extensions; do
8926 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8927 ac_cv_prog_NM="nm"
8928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8929 break 2
8931 done
8932 done
8933 IFS=$as_save_IFS
8935 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
8938 NM=$ac_cv_prog_NM
8939 if test -n "$NM"; then
8940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8941 $as_echo "$NM" >&6; }
8942 else
8943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8944 $as_echo "no" >&6; }
8950 # AR
8951 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
8952 && test -d ../binutils ; then
8953 AR='${objdir}/../binutils/ar'
8954 else
8955 # Extract the first word of "ar", so it can be a program name with args.
8956 set dummy ar; ac_word=$2
8957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8958 $as_echo_n "checking for $ac_word... " >&6; }
8959 if ${ac_cv_prog_AR+:} false; then :
8960 $as_echo_n "(cached) " >&6
8961 else
8962 if test -n "$AR"; then
8963 ac_cv_prog_AR="$AR" # Let the user override the test.
8964 else
8965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8966 for as_dir in $PATH
8968 IFS=$as_save_IFS
8969 test -z "$as_dir" && as_dir=.
8970 for ac_exec_ext in '' $ac_executable_extensions; do
8971 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8972 ac_cv_prog_AR="ar"
8973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8974 break 2
8976 done
8977 done
8978 IFS=$as_save_IFS
8980 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8983 AR=$ac_cv_prog_AR
8984 if test -n "$AR"; then
8985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8986 $as_echo "$AR" >&6; }
8987 else
8988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8989 $as_echo "no" >&6; }
8995 # The jit documentation looks better if built with sphinx, but can be
8996 # built with texinfo if sphinx is not available.
8997 # Set "doc_build_sys" to "sphinx" or "texinfo" accordingly.
8998 # Extract the first word of "sphinx-build", so it can be a program name with args.
8999 set dummy sphinx-build; ac_word=$2
9000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9001 $as_echo_n "checking for $ac_word... " >&6; }
9002 if ${ac_cv_prog_doc_build_sys+:} false; then :
9003 $as_echo_n "(cached) " >&6
9004 else
9005 if test -n "$doc_build_sys"; then
9006 ac_cv_prog_doc_build_sys="$doc_build_sys" # Let the user override the test.
9007 else
9008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9009 for as_dir in $PATH
9011 IFS=$as_save_IFS
9012 test -z "$as_dir" && as_dir=.
9013 for ac_exec_ext in '' $ac_executable_extensions; do
9014 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9015 ac_cv_prog_doc_build_sys="sphinx"
9016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9017 break 2
9019 done
9020 done
9021 IFS=$as_save_IFS
9023 test -z "$ac_cv_prog_doc_build_sys" && ac_cv_prog_doc_build_sys="texinfo"
9026 doc_build_sys=$ac_cv_prog_doc_build_sys
9027 if test -n "$doc_build_sys"; then
9028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doc_build_sys" >&5
9029 $as_echo "$doc_build_sys" >&6; }
9030 else
9031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9032 $as_echo "no" >&6; }
9037 # --------------------
9038 # Checks for C headers
9039 # --------------------
9041 # Need to reject headers which give warnings, so that the -Werror bootstrap
9042 # works later. *sigh* This needs to come before all header checks.
9044 ac_c_preproc_warn_flag=yes
9046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
9047 $as_echo_n "checking for ANSI C header files... " >&6; }
9048 if ${ac_cv_header_stdc+:} false; then :
9049 $as_echo_n "(cached) " >&6
9050 else
9051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9052 /* end confdefs.h. */
9053 #include <stdlib.h>
9054 #include <stdarg.h>
9055 #include <string.h>
9056 #include <float.h>
9059 main ()
9063 return 0;
9065 _ACEOF
9066 if ac_fn_cxx_try_compile "$LINENO"; then :
9067 ac_cv_header_stdc=yes
9068 else
9069 ac_cv_header_stdc=no
9071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9073 if test $ac_cv_header_stdc = yes; then
9074 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9076 /* end confdefs.h. */
9077 #include <string.h>
9079 _ACEOF
9080 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9081 $EGREP "memchr" >/dev/null 2>&1; then :
9083 else
9084 ac_cv_header_stdc=no
9086 rm -f conftest*
9090 if test $ac_cv_header_stdc = yes; then
9091 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9093 /* end confdefs.h. */
9094 #include <stdlib.h>
9096 _ACEOF
9097 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9098 $EGREP "free" >/dev/null 2>&1; then :
9100 else
9101 ac_cv_header_stdc=no
9103 rm -f conftest*
9107 if test $ac_cv_header_stdc = yes; then
9108 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9109 if test "$cross_compiling" = yes; then :
9111 else
9112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9113 /* end confdefs.h. */
9114 #include <ctype.h>
9115 #include <stdlib.h>
9116 #if ((' ' & 0x0FF) == 0x020)
9117 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9118 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9119 #else
9120 # define ISLOWER(c) \
9121 (('a' <= (c) && (c) <= 'i') \
9122 || ('j' <= (c) && (c) <= 'r') \
9123 || ('s' <= (c) && (c) <= 'z'))
9124 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9125 #endif
9127 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9129 main ()
9131 int i;
9132 for (i = 0; i < 256; i++)
9133 if (XOR (islower (i), ISLOWER (i))
9134 || toupper (i) != TOUPPER (i))
9135 return 2;
9136 return 0;
9138 _ACEOF
9139 if ac_fn_cxx_try_run "$LINENO"; then :
9141 else
9142 ac_cv_header_stdc=no
9144 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9145 conftest.$ac_objext conftest.beam conftest.$ac_ext
9150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9151 $as_echo "$ac_cv_header_stdc" >&6; }
9152 if test $ac_cv_header_stdc = yes; then
9154 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
9159 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
9160 if ${ac_cv_header_time+:} false; then :
9161 $as_echo_n "(cached) " >&6
9162 else
9163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9164 /* end confdefs.h. */
9165 #include <sys/types.h>
9166 #include <sys/time.h>
9167 #include <time.h>
9170 main ()
9172 if ((struct tm *) 0)
9173 return 0;
9175 return 0;
9177 _ACEOF
9178 if ac_fn_cxx_try_compile "$LINENO"; then :
9179 ac_cv_header_time=yes
9180 else
9181 ac_cv_header_time=no
9183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
9186 $as_echo "$ac_cv_header_time" >&6; }
9187 if test $ac_cv_header_time = yes; then
9189 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
9193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
9194 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
9195 if ${gcc_cv_header_string+:} false; then :
9196 $as_echo_n "(cached) " >&6
9197 else
9198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9199 /* end confdefs.h. */
9200 #include <string.h>
9201 #include <strings.h>
9203 main ()
9207 return 0;
9209 _ACEOF
9210 if ac_fn_cxx_try_compile "$LINENO"; then :
9211 gcc_cv_header_string=yes
9212 else
9213 gcc_cv_header_string=no
9215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
9218 $as_echo "$gcc_cv_header_string" >&6; }
9219 if test $gcc_cv_header_string = yes; then
9221 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
9225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
9226 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
9227 if ${ac_cv_header_sys_wait_h+:} false; then :
9228 $as_echo_n "(cached) " >&6
9229 else
9230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9231 /* end confdefs.h. */
9232 #include <sys/types.h>
9233 #include <sys/wait.h>
9234 #ifndef WEXITSTATUS
9235 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
9236 #endif
9237 #ifndef WIFEXITED
9238 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9239 #endif
9242 main ()
9244 int s;
9245 wait (&s);
9246 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9248 return 0;
9250 _ACEOF
9251 if ac_fn_cxx_try_compile "$LINENO"; then :
9252 ac_cv_header_sys_wait_h=yes
9253 else
9254 ac_cv_header_sys_wait_h=no
9256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
9259 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
9260 if test $ac_cv_header_sys_wait_h = yes; then
9262 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
9266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
9267 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
9268 if ${ac_cv_sys_tiocgwinsz_in_termios_h+:} false; then :
9269 $as_echo_n "(cached) " >&6
9270 else
9271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9272 /* end confdefs.h. */
9273 #include <sys/types.h>
9274 #include <termios.h>
9275 #ifdef TIOCGWINSZ
9277 #endif
9279 _ACEOF
9280 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9281 $EGREP "yes" >/dev/null 2>&1; then :
9282 ac_cv_sys_tiocgwinsz_in_termios_h=yes
9283 else
9284 ac_cv_sys_tiocgwinsz_in_termios_h=no
9286 rm -f conftest*
9289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
9290 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
9292 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
9293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
9294 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
9295 if ${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+:} false; then :
9296 $as_echo_n "(cached) " >&6
9297 else
9298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9299 /* end confdefs.h. */
9300 #include <sys/types.h>
9301 #include <sys/ioctl.h>
9302 #ifdef TIOCGWINSZ
9304 #endif
9306 _ACEOF
9307 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9308 $EGREP "yes" >/dev/null 2>&1; then :
9309 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
9310 else
9311 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
9313 rm -f conftest*
9316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
9317 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
9319 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
9321 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
9326 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
9327 fcntl.h ftw.h unistd.h sys/auxv.h sys/file.h sys/time.h sys/mman.h \
9328 sys/resource.h sys/param.h sys/times.h sys/stat.h sys/locking.h \
9329 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
9330 do :
9331 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9332 ac_fn_cxx_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
9333 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9334 cat >>confdefs.h <<_ACEOF
9335 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9336 _ACEOF
9339 done
9342 # Check for thread headers.
9343 ac_fn_cxx_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
9344 if test "x$ac_cv_header_thread_h" = xyes; then :
9345 have_thread_h=yes
9346 else
9347 have_thread_h=
9350 ac_fn_cxx_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
9351 if test "x$ac_cv_header_pthread_h" = xyes; then :
9352 have_pthread_h=yes
9353 else
9354 have_pthread_h=
9358 # These tests can't be done till we know if we have limits.h.
9359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
9360 $as_echo_n "checking for CHAR_BIT... " >&6; }
9361 if ${gcc_cv_decl_char_bit+:} false; then :
9362 $as_echo_n "(cached) " >&6
9363 else
9364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9365 /* end confdefs.h. */
9366 #ifdef HAVE_LIMITS_H
9367 #include <limits.h>
9368 #endif
9369 #ifdef CHAR_BIT
9370 found
9371 #endif
9372 _ACEOF
9373 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9374 $EGREP "found" >/dev/null 2>&1; then :
9375 gcc_cv_decl_char_bit=yes
9376 else
9377 gcc_cv_decl_char_bit=no
9379 rm -f conftest*
9383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
9384 $as_echo "$gcc_cv_decl_char_bit" >&6; }
9385 if test $gcc_cv_decl_char_bit = no; then
9386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
9387 $as_echo_n "checking number of bits in a byte... " >&6; }
9388 if ${gcc_cv_c_nbby+:} false; then :
9389 $as_echo_n "(cached) " >&6
9390 else
9392 gcc_cv_c_nbby=
9393 while test $i -lt 65; do
9394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9395 /* end confdefs.h. */
9398 main ()
9400 switch(0) {
9401 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
9402 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
9405 return 0;
9407 _ACEOF
9408 if ac_fn_cxx_try_compile "$LINENO"; then :
9409 gcc_cv_c_nbby=$i; break
9411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9412 i=`expr $i + 1`
9413 done
9414 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
9417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
9418 $as_echo "$gcc_cv_c_nbby" >&6; }
9419 if test $gcc_cv_c_nbby = failed; then
9420 as_fn_error $? "cannot determine number of bits in a byte" "$LINENO" 5
9421 else
9423 cat >>confdefs.h <<_ACEOF
9424 #define CHAR_BIT $gcc_cv_c_nbby
9425 _ACEOF
9429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
9430 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
9431 if ${ac_cv_c_bigendian+:} false; then :
9432 $as_echo_n "(cached) " >&6
9433 else
9434 ac_cv_c_bigendian=unknown
9435 # See if we're dealing with a universal compiler.
9436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9437 /* end confdefs.h. */
9438 #ifndef __APPLE_CC__
9439 not a universal capable compiler
9440 #endif
9441 typedef int dummy;
9443 _ACEOF
9444 if ac_fn_cxx_try_compile "$LINENO"; then :
9446 # Check for potential -arch flags. It is not universal unless
9447 # there are at least two -arch flags with different values.
9448 ac_arch=
9449 ac_prev=
9450 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
9451 if test -n "$ac_prev"; then
9452 case $ac_word in
9453 i?86 | x86_64 | ppc | ppc64)
9454 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
9455 ac_arch=$ac_word
9456 else
9457 ac_cv_c_bigendian=universal
9458 break
9461 esac
9462 ac_prev=
9463 elif test "x$ac_word" = "x-arch"; then
9464 ac_prev=arch
9466 done
9468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9469 if test $ac_cv_c_bigendian = unknown; then
9470 # See if sys/param.h defines the BYTE_ORDER macro.
9471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9472 /* end confdefs.h. */
9473 #include <sys/types.h>
9474 #include <sys/param.h>
9477 main ()
9479 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
9480 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
9481 && LITTLE_ENDIAN)
9482 bogus endian macros
9483 #endif
9486 return 0;
9488 _ACEOF
9489 if ac_fn_cxx_try_compile "$LINENO"; then :
9490 # It does; now see whether it defined to BIG_ENDIAN or not.
9491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9492 /* end confdefs.h. */
9493 #include <sys/types.h>
9494 #include <sys/param.h>
9497 main ()
9499 #if BYTE_ORDER != BIG_ENDIAN
9500 not big endian
9501 #endif
9504 return 0;
9506 _ACEOF
9507 if ac_fn_cxx_try_compile "$LINENO"; then :
9508 ac_cv_c_bigendian=yes
9509 else
9510 ac_cv_c_bigendian=no
9512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9516 if test $ac_cv_c_bigendian = unknown; then
9517 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
9518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9519 /* end confdefs.h. */
9520 #include <limits.h>
9523 main ()
9525 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
9526 bogus endian macros
9527 #endif
9530 return 0;
9532 _ACEOF
9533 if ac_fn_cxx_try_compile "$LINENO"; then :
9534 # It does; now see whether it defined to _BIG_ENDIAN or not.
9535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9536 /* end confdefs.h. */
9537 #include <limits.h>
9540 main ()
9542 #ifndef _BIG_ENDIAN
9543 not big endian
9544 #endif
9547 return 0;
9549 _ACEOF
9550 if ac_fn_cxx_try_compile "$LINENO"; then :
9551 ac_cv_c_bigendian=yes
9552 else
9553 ac_cv_c_bigendian=no
9555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9559 if test $ac_cv_c_bigendian = unknown; then
9560 # Compile a test program.
9561 if test "$cross_compiling" = yes; then :
9562 # Try to guess by grepping values from an object file.
9563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9564 /* end confdefs.h. */
9565 short int ascii_mm[] =
9566 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9567 short int ascii_ii[] =
9568 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9569 int use_ascii (int i) {
9570 return ascii_mm[i] + ascii_ii[i];
9572 short int ebcdic_ii[] =
9573 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9574 short int ebcdic_mm[] =
9575 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9576 int use_ebcdic (int i) {
9577 return ebcdic_mm[i] + ebcdic_ii[i];
9579 extern int foo;
9582 main ()
9584 return use_ascii (foo) == use_ebcdic (foo);
9586 return 0;
9588 _ACEOF
9589 if ac_fn_cxx_try_compile "$LINENO"; then :
9590 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
9591 ac_cv_c_bigendian=yes
9593 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
9594 if test "$ac_cv_c_bigendian" = unknown; then
9595 ac_cv_c_bigendian=no
9596 else
9597 # finding both strings is unlikely to happen, but who knows?
9598 ac_cv_c_bigendian=unknown
9602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9603 else
9604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9605 /* end confdefs.h. */
9606 $ac_includes_default
9608 main ()
9611 /* Are we little or big endian? From Harbison&Steele. */
9612 union
9614 long int l;
9615 char c[sizeof (long int)];
9616 } u;
9617 u.l = 1;
9618 return u.c[sizeof (long int) - 1] == 1;
9621 return 0;
9623 _ACEOF
9624 if ac_fn_cxx_try_run "$LINENO"; then :
9625 ac_cv_c_bigendian=no
9626 else
9627 ac_cv_c_bigendian=yes
9629 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9630 conftest.$ac_objext conftest.beam conftest.$ac_ext
9635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9636 $as_echo "$ac_cv_c_bigendian" >&6; }
9637 case $ac_cv_c_bigendian in #(
9638 yes)
9639 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9640 ;; #(
9642 ;; #(
9643 universal)
9645 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9647 ;; #(
9649 as_fn_error $? "unknown endianness
9650 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9651 esac
9654 # ----------------------
9655 # Checks for C++ headers
9656 # ----------------------
9658 ac_ext=cpp
9659 ac_cpp='$CXXCPP $CPPFLAGS'
9660 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9661 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9662 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
9664 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
9665 if test -z "$CXXCPP"; then
9666 if ${ac_cv_prog_CXXCPP+:} false; then :
9667 $as_echo_n "(cached) " >&6
9668 else
9669 # Double quotes because CXXCPP needs to be expanded
9670 for CXXCPP in "$CXX -E" "/lib/cpp"
9672 ac_preproc_ok=false
9673 for ac_cxx_preproc_warn_flag in '' yes
9675 # Use a header file that comes with gcc, so configuring glibc
9676 # with a fresh cross-compiler works.
9677 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9678 # <limits.h> exists even on freestanding compilers.
9679 # On the NeXT, cc -E runs the code through the compiler's parser,
9680 # not just through cpp. "Syntax error" is here to catch this case.
9681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9682 /* end confdefs.h. */
9683 #ifdef __STDC__
9684 # include <limits.h>
9685 #else
9686 # include <assert.h>
9687 #endif
9688 Syntax error
9689 _ACEOF
9690 if ac_fn_cxx_try_cpp "$LINENO"; then :
9692 else
9693 # Broken: fails on valid input.
9694 continue
9696 rm -f conftest.err conftest.i conftest.$ac_ext
9698 # OK, works on sane cases. Now check whether nonexistent headers
9699 # can be detected and how.
9700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9701 /* end confdefs.h. */
9702 #include <ac_nonexistent.h>
9703 _ACEOF
9704 if ac_fn_cxx_try_cpp "$LINENO"; then :
9705 # Broken: success on invalid input.
9706 continue
9707 else
9708 # Passes both tests.
9709 ac_preproc_ok=:
9710 break
9712 rm -f conftest.err conftest.i conftest.$ac_ext
9714 done
9715 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9716 rm -f conftest.i conftest.err conftest.$ac_ext
9717 if $ac_preproc_ok; then :
9718 break
9721 done
9722 ac_cv_prog_CXXCPP=$CXXCPP
9725 CXXCPP=$ac_cv_prog_CXXCPP
9726 else
9727 ac_cv_prog_CXXCPP=$CXXCPP
9729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
9730 $as_echo "$CXXCPP" >&6; }
9731 ac_preproc_ok=false
9732 for ac_cxx_preproc_warn_flag in '' yes
9734 # Use a header file that comes with gcc, so configuring glibc
9735 # with a fresh cross-compiler works.
9736 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9737 # <limits.h> exists even on freestanding compilers.
9738 # On the NeXT, cc -E runs the code through the compiler's parser,
9739 # not just through cpp. "Syntax error" is here to catch this case.
9740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9741 /* end confdefs.h. */
9742 #ifdef __STDC__
9743 # include <limits.h>
9744 #else
9745 # include <assert.h>
9746 #endif
9747 Syntax error
9748 _ACEOF
9749 if ac_fn_cxx_try_cpp "$LINENO"; then :
9751 else
9752 # Broken: fails on valid input.
9753 continue
9755 rm -f conftest.err conftest.i conftest.$ac_ext
9757 # OK, works on sane cases. Now check whether nonexistent headers
9758 # can be detected and how.
9759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9760 /* end confdefs.h. */
9761 #include <ac_nonexistent.h>
9762 _ACEOF
9763 if ac_fn_cxx_try_cpp "$LINENO"; then :
9764 # Broken: success on invalid input.
9765 continue
9766 else
9767 # Passes both tests.
9768 ac_preproc_ok=:
9769 break
9771 rm -f conftest.err conftest.i conftest.$ac_ext
9773 done
9774 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9775 rm -f conftest.i conftest.err conftest.$ac_ext
9776 if $ac_preproc_ok; then :
9778 else
9779 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9780 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9781 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9782 See \`config.log' for more details" >&5
9783 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9784 See \`config.log' for more details" >&2;}; }
9787 ac_ext=cpp
9788 ac_cpp='$CXXCPP $CPPFLAGS'
9789 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9790 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9791 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9794 for ac_header in unordered_map
9795 do :
9796 ac_fn_cxx_check_header_preproc "$LINENO" "unordered_map" "ac_cv_header_unordered_map"
9797 if test "x$ac_cv_header_unordered_map" = xyes; then :
9798 cat >>confdefs.h <<_ACEOF
9799 #define HAVE_UNORDERED_MAP 1
9800 _ACEOF
9803 done
9805 for ac_header in tr1/unordered_map
9806 do :
9807 ac_fn_cxx_check_header_preproc "$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
9808 if test "x$ac_cv_header_tr1_unordered_map" = xyes; then :
9809 cat >>confdefs.h <<_ACEOF
9810 #define HAVE_TR1_UNORDERED_MAP 1
9811 _ACEOF
9814 done
9816 for ac_header in ext/hash_map
9817 do :
9818 ac_fn_cxx_check_header_preproc "$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
9819 if test "x$ac_cv_header_ext_hash_map" = xyes; then :
9820 cat >>confdefs.h <<_ACEOF
9821 #define HAVE_EXT_HASH_MAP 1
9822 _ACEOF
9825 done
9828 # --------
9829 # Dependency checking.
9830 # --------
9832 rm -rf .tst 2>/dev/null
9833 mkdir .tst 2>/dev/null
9834 if test -d .tst; then
9835 am__leading_dot=.
9836 else
9837 am__leading_dot=_
9839 rmdir .tst 2>/dev/null
9841 DEPDIR="${am__leading_dot}deps"
9843 ac_config_commands="$ac_config_commands depdir"
9846 ac_config_commands="$ac_config_commands gccdepdir"
9849 depcc="$CXX" am_compiler_list=
9851 am_depcomp=$ac_aux_dir/depcomp
9852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
9853 $as_echo_n "checking dependency style of $depcc... " >&6; }
9854 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
9855 $as_echo_n "(cached) " >&6
9856 else
9857 if test -f "$am_depcomp"; then
9858 # We make a subdir and do the tests there. Otherwise we can end up
9859 # making bogus files that we don't know about and never remove. For
9860 # instance it was reported that on HP-UX the gcc test will end up
9861 # making a dummy file named `D' -- because `-MD' means `put the output
9862 # in D'.
9863 mkdir conftest.dir
9864 # Copy depcomp to subdir because otherwise we won't find it if we're
9865 # using a relative directory.
9866 cp "$am_depcomp" conftest.dir
9867 cd conftest.dir
9868 # We will build objects and dependencies in a subdirectory because
9869 # it helps to detect inapplicable dependency modes. For instance
9870 # both Tru64's cc and ICC support -MD to output dependencies as a
9871 # side effect of compilation, but ICC will put the dependencies in
9872 # the current directory while Tru64 will put them in the object
9873 # directory.
9874 mkdir sub
9876 am_cv_CXX_dependencies_compiler_type=none
9877 if test "$am_compiler_list" = ""; then
9878 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
9880 for depmode in $am_compiler_list; do
9881 if test $depmode = none; then break; fi
9883 $as_echo "$as_me:$LINENO: trying $depmode" >&5
9884 # Setup a source with many dependencies, because some compilers
9885 # like to wrap large dependency lists on column 80 (with \), and
9886 # we should not choose a depcomp mode which is confused by this.
9888 # We need to recreate these files for each test, as the compiler may
9889 # overwrite some of them when testing with obscure command lines.
9890 # This happens at least with the AIX C compiler.
9891 : > sub/conftest.c
9892 for i in 1 2 3 4 5 6; do
9893 echo '#include "conftst'$i'.h"' >> sub/conftest.c
9894 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
9895 # Solaris 8's {/usr,}/bin/sh.
9896 touch sub/conftst$i.h
9897 done
9898 echo "include sub/conftest.Po" > confmf
9900 # We check with `-c' and `-o' for the sake of the "dashmstdout"
9901 # mode. It turns out that the SunPro C++ compiler does not properly
9902 # handle `-M -o', and we need to detect this.
9903 depcmd="depmode=$depmode \
9904 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
9905 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
9906 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
9907 echo "| $depcmd" | sed -e 's/ */ /g' >&5
9908 if env $depcmd > conftest.err 2>&1 &&
9909 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
9910 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
9911 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
9912 # icc doesn't choke on unknown options, it will just issue warnings
9913 # or remarks (even with -Werror). So we grep stderr for any message
9914 # that says an option was ignored or not supported.
9915 # When given -MP, icc 7.0 and 7.1 complain thusly:
9916 # icc: Command line warning: ignoring option '-M'; no argument required
9917 # The diagnosis changed in icc 8.0:
9918 # icc: Command line remark: option '-MP' not supported
9919 if (grep 'ignoring option' conftest.err ||
9920 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
9921 am_cv_CXX_dependencies_compiler_type=$depmode
9922 $as_echo "$as_me:$LINENO: success" >&5
9923 break
9926 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
9927 sed -e 's/^/| /' < conftest.err >&5
9928 done
9930 cd ..
9931 rm -rf conftest.dir
9932 else
9933 am_cv_CXX_dependencies_compiler_type=none
9937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
9938 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
9939 if test x${am_cv_CXX_dependencies_compiler_type-none} = xnone
9940 then as_fn_error $? "no usable dependency style found" "$LINENO" 5
9941 else CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
9946 # --------
9947 # UNSORTED
9948 # --------
9951 # These libraries may be used by collect2.
9952 # We may need a special search path to get them linked.
9953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
9954 $as_echo_n "checking for collect2 libraries... " >&6; }
9955 if ${gcc_cv_collect2_libs+:} false; then :
9956 $as_echo_n "(cached) " >&6
9957 else
9958 save_LIBS="$LIBS"
9959 for libs in '' -lld -lmld \
9960 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
9961 '-L/usr/lib/cmplrs/cc3.11 -lmld'
9963 LIBS="$libs"
9964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9965 /* end confdefs.h. */
9967 /* Override any GCC internal prototype to avoid an error.
9968 Use char because int might match the return type of a GCC
9969 builtin and then its argument prototype would still apply. */
9970 #ifdef __cplusplus
9971 extern "C"
9972 #endif
9973 char ldopen ();
9975 main ()
9977 return ldopen ();
9979 return 0;
9981 _ACEOF
9982 if ac_fn_cxx_try_link "$LINENO"; then :
9983 gcc_cv_collect2_libs="$libs"; break
9985 rm -f core conftest.err conftest.$ac_objext \
9986 conftest$ac_exeext conftest.$ac_ext
9987 done
9988 LIBS="$save_LIBS"
9989 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
9991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
9992 $as_echo "$gcc_cv_collect2_libs" >&6; }
9993 case $gcc_cv_collect2_libs in
9994 "none required") ;;
9995 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
9996 esac
9999 # When building Ada code on Alpha, we need exc_resume which is usually in
10000 # -lexc. So test for it.
10001 save_LIBS="$LIBS"
10002 LIBS=
10003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
10004 $as_echo_n "checking for library containing exc_resume... " >&6; }
10005 if ${ac_cv_search_exc_resume+:} false; then :
10006 $as_echo_n "(cached) " >&6
10007 else
10008 ac_func_search_save_LIBS=$LIBS
10009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10010 /* end confdefs.h. */
10012 /* Override any GCC internal prototype to avoid an error.
10013 Use char because int might match the return type of a GCC
10014 builtin and then its argument prototype would still apply. */
10015 #ifdef __cplusplus
10016 extern "C"
10017 #endif
10018 char exc_resume ();
10020 main ()
10022 return exc_resume ();
10024 return 0;
10026 _ACEOF
10027 for ac_lib in '' exc; do
10028 if test -z "$ac_lib"; then
10029 ac_res="none required"
10030 else
10031 ac_res=-l$ac_lib
10032 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10034 if ac_fn_cxx_try_link "$LINENO"; then :
10035 ac_cv_search_exc_resume=$ac_res
10037 rm -f core conftest.err conftest.$ac_objext \
10038 conftest$ac_exeext
10039 if ${ac_cv_search_exc_resume+:} false; then :
10040 break
10042 done
10043 if ${ac_cv_search_exc_resume+:} false; then :
10045 else
10046 ac_cv_search_exc_resume=no
10048 rm conftest.$ac_ext
10049 LIBS=$ac_func_search_save_LIBS
10051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
10052 $as_echo "$ac_cv_search_exc_resume" >&6; }
10053 ac_res=$ac_cv_search_exc_resume
10054 if test "$ac_res" != no; then :
10055 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10059 GNAT_LIBEXC="$LIBS"
10060 LIBS="$save_LIBS"
10063 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
10064 save_LIBS="$LIBS"
10065 LIBS=
10066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
10067 $as_echo_n "checking for library containing kstat_open... " >&6; }
10068 if ${ac_cv_search_kstat_open+:} false; then :
10069 $as_echo_n "(cached) " >&6
10070 else
10071 ac_func_search_save_LIBS=$LIBS
10072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10073 /* end confdefs.h. */
10075 /* Override any GCC internal prototype to avoid an error.
10076 Use char because int might match the return type of a GCC
10077 builtin and then its argument prototype would still apply. */
10078 #ifdef __cplusplus
10079 extern "C"
10080 #endif
10081 char kstat_open ();
10083 main ()
10085 return kstat_open ();
10087 return 0;
10089 _ACEOF
10090 for ac_lib in '' kstat; do
10091 if test -z "$ac_lib"; then
10092 ac_res="none required"
10093 else
10094 ac_res=-l$ac_lib
10095 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10097 if ac_fn_cxx_try_link "$LINENO"; then :
10098 ac_cv_search_kstat_open=$ac_res
10100 rm -f core conftest.err conftest.$ac_objext \
10101 conftest$ac_exeext
10102 if ${ac_cv_search_kstat_open+:} false; then :
10103 break
10105 done
10106 if ${ac_cv_search_kstat_open+:} false; then :
10108 else
10109 ac_cv_search_kstat_open=no
10111 rm conftest.$ac_ext
10112 LIBS=$ac_func_search_save_LIBS
10114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
10115 $as_echo "$ac_cv_search_kstat_open" >&6; }
10116 ac_res=$ac_cv_search_kstat_open
10117 if test "$ac_res" != no; then :
10118 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10122 EXTRA_GCC_LIBS="$LIBS"
10123 LIBS="$save_LIBS"
10126 # Solaris needs libsocket and libnsl for socket functions before 11.4.
10127 # C++ needs those for libcody.
10128 save_LIBS="$LIBS"
10129 LIBS=
10131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
10132 $as_echo_n "checking for library containing gethostbyname... " >&6; }
10133 if ${ac_cv_search_gethostbyname+:} false; then :
10134 $as_echo_n "(cached) " >&6
10135 else
10136 ac_func_search_save_LIBS=$LIBS
10137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10138 /* end confdefs.h. */
10140 /* Override any GCC internal prototype to avoid an error.
10141 Use char because int might match the return type of a GCC
10142 builtin and then its argument prototype would still apply. */
10143 #ifdef __cplusplus
10144 extern "C"
10145 #endif
10146 char gethostbyname ();
10148 main ()
10150 return gethostbyname ();
10152 return 0;
10154 _ACEOF
10155 for ac_lib in '' nsl; do
10156 if test -z "$ac_lib"; then
10157 ac_res="none required"
10158 else
10159 ac_res=-l$ac_lib
10160 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10162 if ac_fn_cxx_try_link "$LINENO"; then :
10163 ac_cv_search_gethostbyname=$ac_res
10165 rm -f core conftest.err conftest.$ac_objext \
10166 conftest$ac_exeext
10167 if ${ac_cv_search_gethostbyname+:} false; then :
10168 break
10170 done
10171 if ${ac_cv_search_gethostbyname+:} false; then :
10173 else
10174 ac_cv_search_gethostbyname=no
10176 rm conftest.$ac_ext
10177 LIBS=$ac_func_search_save_LIBS
10179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
10180 $as_echo "$ac_cv_search_gethostbyname" >&6; }
10181 ac_res=$ac_cv_search_gethostbyname
10182 if test "$ac_res" != no; then :
10183 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
10188 $as_echo_n "checking for library containing socket... " >&6; }
10189 if ${ac_cv_search_socket+:} false; then :
10190 $as_echo_n "(cached) " >&6
10191 else
10192 ac_func_search_save_LIBS=$LIBS
10193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10194 /* end confdefs.h. */
10196 /* Override any GCC internal prototype to avoid an error.
10197 Use char because int might match the return type of a GCC
10198 builtin and then its argument prototype would still apply. */
10199 #ifdef __cplusplus
10200 extern "C"
10201 #endif
10202 char socket ();
10204 main ()
10206 return socket ();
10208 return 0;
10210 _ACEOF
10211 for ac_lib in '' socket; do
10212 if test -z "$ac_lib"; then
10213 ac_res="none required"
10214 else
10215 ac_res=-l$ac_lib
10216 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10218 if ac_fn_cxx_try_link "$LINENO"; then :
10219 ac_cv_search_socket=$ac_res
10221 rm -f core conftest.err conftest.$ac_objext \
10222 conftest$ac_exeext
10223 if ${ac_cv_search_socket+:} false; then :
10224 break
10226 done
10227 if ${ac_cv_search_socket+:} false; then :
10229 else
10230 ac_cv_search_socket=no
10232 rm conftest.$ac_ext
10233 LIBS=$ac_func_search_save_LIBS
10235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
10236 $as_echo "$ac_cv_search_socket" >&6; }
10237 ac_res=$ac_cv_search_socket
10238 if test "$ac_res" != no; then :
10239 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10241 else
10243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
10244 $as_echo_n "checking for socket in -lsocket... " >&6; }
10245 if ${ac_cv_lib_socket_socket+:} false; then :
10246 $as_echo_n "(cached) " >&6
10247 else
10248 ac_check_lib_save_LIBS=$LIBS
10249 LIBS="-lsocket -lnsl $LIBS"
10250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10251 /* end confdefs.h. */
10253 /* Override any GCC internal prototype to avoid an error.
10254 Use char because int might match the return type of a GCC
10255 builtin and then its argument prototype would still apply. */
10256 #ifdef __cplusplus
10257 extern "C"
10258 #endif
10259 char socket ();
10261 main ()
10263 return socket ();
10265 return 0;
10267 _ACEOF
10268 if ac_fn_cxx_try_link "$LINENO"; then :
10269 ac_cv_lib_socket_socket=yes
10270 else
10271 ac_cv_lib_socket_socket=no
10273 rm -f core conftest.err conftest.$ac_objext \
10274 conftest$ac_exeext conftest.$ac_ext
10275 LIBS=$ac_check_lib_save_LIBS
10277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
10278 $as_echo "$ac_cv_lib_socket_socket" >&6; }
10279 if test "x$ac_cv_lib_socket_socket" = xyes; then :
10280 LIBS="-lsocket -lnsl $LIBS"
10286 NETLIBS="$LIBS"
10287 LIBS="$save_LIBS"
10290 # Some systems put ldexp and frexp in libm instead of libc; assume
10291 # they're both in the same place. jcf-dump needs them.
10292 save_LIBS="$LIBS"
10293 LIBS=
10294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
10295 $as_echo_n "checking for library containing ldexp... " >&6; }
10296 if ${ac_cv_search_ldexp+:} false; then :
10297 $as_echo_n "(cached) " >&6
10298 else
10299 ac_func_search_save_LIBS=$LIBS
10300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10301 /* end confdefs.h. */
10303 /* Override any GCC internal prototype to avoid an error.
10304 Use char because int might match the return type of a GCC
10305 builtin and then its argument prototype would still apply. */
10306 #ifdef __cplusplus
10307 extern "C"
10308 #endif
10309 char ldexp ();
10311 main ()
10313 return ldexp ();
10315 return 0;
10317 _ACEOF
10318 for ac_lib in '' m; do
10319 if test -z "$ac_lib"; then
10320 ac_res="none required"
10321 else
10322 ac_res=-l$ac_lib
10323 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10325 if ac_fn_cxx_try_link "$LINENO"; then :
10326 ac_cv_search_ldexp=$ac_res
10328 rm -f core conftest.err conftest.$ac_objext \
10329 conftest$ac_exeext
10330 if ${ac_cv_search_ldexp+:} false; then :
10331 break
10333 done
10334 if ${ac_cv_search_ldexp+:} false; then :
10336 else
10337 ac_cv_search_ldexp=no
10339 rm conftest.$ac_ext
10340 LIBS=$ac_func_search_save_LIBS
10342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
10343 $as_echo "$ac_cv_search_ldexp" >&6; }
10344 ac_res=$ac_cv_search_ldexp
10345 if test "$ac_res" != no; then :
10346 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10350 LDEXP_LIB="$LIBS"
10351 LIBS="$save_LIBS"
10354 # Some systems need dlopen
10355 save_LIBS="$LIBS"
10356 LIBS=
10357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
10358 $as_echo_n "checking for library containing dlopen... " >&6; }
10359 if ${ac_cv_search_dlopen+:} false; then :
10360 $as_echo_n "(cached) " >&6
10361 else
10362 ac_func_search_save_LIBS=$LIBS
10363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10364 /* end confdefs.h. */
10366 /* Override any GCC internal prototype to avoid an error.
10367 Use char because int might match the return type of a GCC
10368 builtin and then its argument prototype would still apply. */
10369 #ifdef __cplusplus
10370 extern "C"
10371 #endif
10372 char dlopen ();
10374 main ()
10376 return dlopen ();
10378 return 0;
10380 _ACEOF
10381 for ac_lib in '' dl; do
10382 if test -z "$ac_lib"; then
10383 ac_res="none required"
10384 else
10385 ac_res=-l$ac_lib
10386 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10388 if ac_fn_cxx_try_link "$LINENO"; then :
10389 ac_cv_search_dlopen=$ac_res
10391 rm -f core conftest.err conftest.$ac_objext \
10392 conftest$ac_exeext
10393 if ${ac_cv_search_dlopen+:} false; then :
10394 break
10396 done
10397 if ${ac_cv_search_dlopen+:} false; then :
10399 else
10400 ac_cv_search_dlopen=no
10402 rm conftest.$ac_ext
10403 LIBS=$ac_func_search_save_LIBS
10405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
10406 $as_echo "$ac_cv_search_dlopen" >&6; }
10407 ac_res=$ac_cv_search_dlopen
10408 if test "$ac_res" != no; then :
10409 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10413 DL_LIB="$LIBS"
10414 LIBS="$save_LIBS"
10417 # Use <inttypes.h> only if it exists,
10418 # doesn't clash with <sys/types.h>, declares intmax_t and defines
10419 # PRId64
10420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
10421 $as_echo_n "checking for inttypes.h... " >&6; }
10422 if ${gcc_cv_header_inttypes_h+:} false; then :
10423 $as_echo_n "(cached) " >&6
10424 else
10425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10426 /* end confdefs.h. */
10427 #define __STDC_FORMAT_MACROS
10428 #include <sys/types.h>
10429 #include <inttypes.h>
10431 main ()
10433 intmax_t i = -1;
10434 #ifndef PRId64
10435 choke me
10436 #endif
10438 return 0;
10440 _ACEOF
10441 if ac_fn_cxx_try_compile "$LINENO"; then :
10442 gcc_cv_header_inttypes_h=yes
10443 else
10444 gcc_cv_header_inttypes_h=no
10446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
10450 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
10451 if test $gcc_cv_header_inttypes_h = yes; then
10453 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
10457 # Look for the ZSTD package.
10458 ZSTD_INCLUDE=
10459 ZSTD_LIB=
10462 ZSTD_CPPFLAGS=
10463 ZSTD_LDFLAGS=
10467 # Check whether --with-zstd was given.
10468 if test "${with_zstd+set}" = set; then :
10469 withval=$with_zstd;
10473 # Check whether --with-zstd-include was given.
10474 if test "${with_zstd_include+set}" = set; then :
10475 withval=$with_zstd_include;
10479 # Check whether --with-zstd-lib was given.
10480 if test "${with_zstd_lib+set}" = set; then :
10481 withval=$with_zstd_lib;
10484 case "x$with_zstd" in
10485 x) ;;
10486 xno)
10487 ZSTD_INCLUDE=
10488 ZSTD_LIB=
10490 *) ZSTD_INCLUDE=$with_zstd/include
10491 ZSTD_LIB=$with_zstd/lib
10493 esac
10495 if test "x$with_zstd" != xno; then
10496 if test "x$with_zstd_include" != x; then
10497 ZSTD_INCLUDE=$with_zstd_include
10499 if test "x$with_zstd_lib" != x; then
10500 ZSTD_LIB=$with_zstd_lib
10502 if test "x$ZSTD_INCLUDE" != x \
10503 && test "x$ZSTD_INCLUDE" != xno; then
10504 ZSTD_CPPFLAGS=-I$ZSTD_INCLUDE
10506 if test "x$ZSTD_LIB" != x \
10507 && test "x$ZSTD_LIB" != xno; then
10508 ZSTD_LDFLAGS=-L$ZSTD_LIB
10511 CXXFLAGS="$CXXFLAGS $ZSTD_CPPFLAGS"
10512 LDFLAGS="$LDFLAGS $ZSTD_LDFLAGS"
10514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zstd.h" >&5
10515 $as_echo_n "checking for zstd.h... " >&6; }
10516 if ${gcc_cv_header_zstd_h+:} false; then :
10517 $as_echo_n "(cached) " >&6
10518 else
10519 # We require version 1.3.0 or later. This is the first version that has
10520 # ZSTD_getFrameContentSize.
10521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10522 /* end confdefs.h. */
10523 #include <zstd.h>
10524 #if ZSTD_VERSION_NUMBER < 10300
10525 #error "need zstd 1.3.0 or better"
10526 #endif
10528 main ()
10532 return 0;
10534 _ACEOF
10535 if ac_fn_cxx_try_compile "$LINENO"; then :
10536 gcc_cv_header_zstd_h=yes
10537 else
10538 gcc_cv_header_zstd_h=no
10540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_zstd_h" >&5
10544 $as_echo "$gcc_cv_header_zstd_h" >&6; }
10545 if test $gcc_cv_header_zstd_h = yes; then
10547 $as_echo "#define HAVE_ZSTD_H 1" >>confdefs.h
10549 elif test "x$with_zstd" != x; then
10550 as_fn_error $? "Unable to find zstd.h. See config.log for details." "$LINENO" 5
10553 # LTO can use zstd compression algorithm
10554 save_LIBS="$LIBS"
10555 LIBS=
10556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ZSTD_compress" >&5
10557 $as_echo_n "checking for library containing ZSTD_compress... " >&6; }
10558 if ${ac_cv_search_ZSTD_compress+:} false; then :
10559 $as_echo_n "(cached) " >&6
10560 else
10561 ac_func_search_save_LIBS=$LIBS
10562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10563 /* end confdefs.h. */
10565 /* Override any GCC internal prototype to avoid an error.
10566 Use char because int might match the return type of a GCC
10567 builtin and then its argument prototype would still apply. */
10568 #ifdef __cplusplus
10569 extern "C"
10570 #endif
10571 char ZSTD_compress ();
10573 main ()
10575 return ZSTD_compress ();
10577 return 0;
10579 _ACEOF
10580 for ac_lib in '' zstd; do
10581 if test -z "$ac_lib"; then
10582 ac_res="none required"
10583 else
10584 ac_res=-l$ac_lib
10585 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10587 if ac_fn_cxx_try_link "$LINENO"; then :
10588 ac_cv_search_ZSTD_compress=$ac_res
10590 rm -f core conftest.err conftest.$ac_objext \
10591 conftest$ac_exeext
10592 if ${ac_cv_search_ZSTD_compress+:} false; then :
10593 break
10595 done
10596 if ${ac_cv_search_ZSTD_compress+:} false; then :
10598 else
10599 ac_cv_search_ZSTD_compress=no
10601 rm conftest.$ac_ext
10602 LIBS=$ac_func_search_save_LIBS
10604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ZSTD_compress" >&5
10605 $as_echo "$ac_cv_search_ZSTD_compress" >&6; }
10606 ac_res=$ac_cv_search_ZSTD_compress
10607 if test "$ac_res" != no; then :
10608 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10612 ZSTD_LIB="$LIBS"
10613 LIBS="$save_LIBS"
10619 for ac_func in times clock kill getrlimit setrlimit atoq \
10620 popen sysconf strsignal getrusage nl_langinfo \
10621 gettimeofday mbstowcs wcswidth mmap posix_fallocate setlocale \
10622 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
10623 do :
10624 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10625 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
10626 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10627 cat >>confdefs.h <<_ACEOF
10628 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10629 _ACEOF
10632 done
10635 if test x$ac_cv_func_mbstowcs = xyes; then
10636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
10637 $as_echo_n "checking whether mbstowcs works... " >&6; }
10638 if ${gcc_cv_func_mbstowcs_works+:} false; then :
10639 $as_echo_n "(cached) " >&6
10640 else
10641 if test "$cross_compiling" = yes; then :
10642 gcc_cv_func_mbstowcs_works=yes
10643 else
10644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10645 /* end confdefs.h. */
10646 #include <stdlib.h>
10647 int main()
10649 mbstowcs(0, "", 0);
10650 return 0;
10652 _ACEOF
10653 if ac_fn_cxx_try_run "$LINENO"; then :
10654 gcc_cv_func_mbstowcs_works=yes
10655 else
10656 gcc_cv_func_mbstowcs_works=no
10658 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10659 conftest.$ac_objext conftest.beam conftest.$ac_ext
10663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
10664 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
10665 if test x$gcc_cv_func_mbstowcs_works = xyes; then
10667 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
10672 ac_fn_cxx_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
10673 if test "x$ac_cv_type_ssize_t" = xyes; then :
10675 else
10677 cat >>confdefs.h <<_ACEOF
10678 #define ssize_t int
10679 _ACEOF
10683 ac_fn_cxx_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
10684 if test "x$ac_cv_type_caddr_t" = xyes; then :
10686 else
10688 cat >>confdefs.h <<_ACEOF
10689 #define caddr_t char *
10690 _ACEOF
10694 ac_fn_cxx_check_type "$LINENO" "sighander_t" "ac_cv_type_sighander_t" "signal.h
10696 if test "x$ac_cv_type_sighander_t" = xyes; then :
10698 $as_echo "#define HAVE_SIGHANDLER_T 1" >>confdefs.h
10704 ac_fn_cxx_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
10705 if test "x$ac_cv_header_sys_mman_h" = xyes; then :
10706 gcc_header_sys_mman_h=yes
10707 else
10708 gcc_header_sys_mman_h=no
10711 ac_fn_cxx_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
10712 if test "x$ac_cv_func_mmap" = xyes; then :
10713 gcc_func_mmap=yes
10714 else
10715 gcc_func_mmap=no
10718 if test "$gcc_header_sys_mman_h" != yes \
10719 || test "$gcc_func_mmap" != yes; then
10720 gcc_cv_func_mmap_file=no
10721 gcc_cv_func_mmap_dev_zero=no
10722 gcc_cv_func_mmap_anon=no
10723 else
10724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
10725 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
10726 if ${gcc_cv_func_mmap_file+:} false; then :
10727 $as_echo_n "(cached) " >&6
10728 else
10729 # Add a system to this blacklist if
10730 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
10731 # memory area containing the same data that you'd get if you applied
10732 # read() to the same fd. The only system known to have a problem here
10733 # is VMS, where text files have record structure.
10734 case "$host_os" in
10735 *vms* | ultrix*)
10736 gcc_cv_func_mmap_file=no ;;
10738 gcc_cv_func_mmap_file=yes;;
10739 esac
10741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
10742 $as_echo "$gcc_cv_func_mmap_file" >&6; }
10743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
10744 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
10745 if ${gcc_cv_func_mmap_dev_zero+:} false; then :
10746 $as_echo_n "(cached) " >&6
10747 else
10748 # Add a system to this blacklist if it has mmap() but /dev/zero
10749 # does not exist, or if mmapping /dev/zero does not give anonymous
10750 # zeroed pages with both the following properties:
10751 # 1. If you map N consecutive pages in with one call, and then
10752 # unmap any subset of those pages, the pages that were not
10753 # explicitly unmapped remain accessible.
10754 # 2. If you map two adjacent blocks of memory and then unmap them
10755 # both at once, they must both go away.
10756 # Systems known to be in this category are Windows (all variants),
10757 # VMS, and Darwin.
10758 case "$host_os" in
10759 *vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
10760 gcc_cv_func_mmap_dev_zero=no ;;
10762 gcc_cv_func_mmap_dev_zero=yes;;
10763 esac
10765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
10766 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
10768 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
10769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
10770 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
10771 if ${gcc_cv_decl_map_anon+:} false; then :
10772 $as_echo_n "(cached) " >&6
10773 else
10774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10775 /* end confdefs.h. */
10776 #include <sys/types.h>
10777 #include <sys/mman.h>
10778 #include <unistd.h>
10780 #ifndef MAP_ANONYMOUS
10781 #define MAP_ANONYMOUS MAP_ANON
10782 #endif
10785 main ()
10787 int n = MAP_ANONYMOUS;
10789 return 0;
10791 _ACEOF
10792 if ac_fn_cxx_try_compile "$LINENO"; then :
10793 gcc_cv_decl_map_anon=yes
10794 else
10795 gcc_cv_decl_map_anon=no
10797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
10800 $as_echo "$gcc_cv_decl_map_anon" >&6; }
10802 if test $gcc_cv_decl_map_anon = no; then
10803 gcc_cv_func_mmap_anon=no
10804 else
10805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
10806 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
10807 if ${gcc_cv_func_mmap_anon+:} false; then :
10808 $as_echo_n "(cached) " >&6
10809 else
10810 # Add a system to this blacklist if it has mmap() and MAP_ANON or
10811 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
10812 # doesn't give anonymous zeroed pages with the same properties listed
10813 # above for use of /dev/zero.
10814 # Systems known to be in this category are Windows, VMS, and SCO Unix.
10815 case "$host_os" in
10816 *vms* | cygwin* | pe | mingw* | sco* | udk* )
10817 gcc_cv_func_mmap_anon=no ;;
10819 gcc_cv_func_mmap_anon=yes;;
10820 esac
10822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
10823 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
10827 if test $gcc_cv_func_mmap_file = yes; then
10829 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
10832 if test $gcc_cv_func_mmap_dev_zero = yes; then
10834 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
10837 if test $gcc_cv_func_mmap_anon = yes; then
10839 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
10844 case "${host}" in
10845 *-*-*vms*)
10846 # Under VMS, vfork works very differently than on Unix. The standard test
10847 # won't work, and it isn't easily adaptable. It makes more sense to
10848 # just force it.
10849 ac_cv_func_vfork_works=yes
10851 esac
10852 ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
10853 if test "x$ac_cv_type_pid_t" = xyes; then :
10855 else
10857 cat >>confdefs.h <<_ACEOF
10858 #define pid_t int
10859 _ACEOF
10863 for ac_header in vfork.h
10864 do :
10865 ac_fn_cxx_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
10866 if test "x$ac_cv_header_vfork_h" = xyes; then :
10867 cat >>confdefs.h <<_ACEOF
10868 #define HAVE_VFORK_H 1
10869 _ACEOF
10872 done
10874 for ac_func in fork vfork
10875 do :
10876 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10877 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
10878 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10879 cat >>confdefs.h <<_ACEOF
10880 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10881 _ACEOF
10884 done
10886 if test "x$ac_cv_func_fork" = xyes; then
10887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
10888 $as_echo_n "checking for working fork... " >&6; }
10889 if ${ac_cv_func_fork_works+:} false; then :
10890 $as_echo_n "(cached) " >&6
10891 else
10892 if test "$cross_compiling" = yes; then :
10893 ac_cv_func_fork_works=cross
10894 else
10895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10896 /* end confdefs.h. */
10897 $ac_includes_default
10899 main ()
10902 /* By Ruediger Kuhlmann. */
10903 return fork () < 0;
10906 return 0;
10908 _ACEOF
10909 if ac_fn_cxx_try_run "$LINENO"; then :
10910 ac_cv_func_fork_works=yes
10911 else
10912 ac_cv_func_fork_works=no
10914 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10915 conftest.$ac_objext conftest.beam conftest.$ac_ext
10919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
10920 $as_echo "$ac_cv_func_fork_works" >&6; }
10922 else
10923 ac_cv_func_fork_works=$ac_cv_func_fork
10925 if test "x$ac_cv_func_fork_works" = xcross; then
10926 case $host in
10927 *-*-amigaos* | *-*-msdosdjgpp*)
10928 # Override, as these systems have only a dummy fork() stub
10929 ac_cv_func_fork_works=no
10932 ac_cv_func_fork_works=yes
10934 esac
10935 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
10936 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
10938 ac_cv_func_vfork_works=$ac_cv_func_vfork
10939 if test "x$ac_cv_func_vfork" = xyes; then
10940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
10941 $as_echo_n "checking for working vfork... " >&6; }
10942 if ${ac_cv_func_vfork_works+:} false; then :
10943 $as_echo_n "(cached) " >&6
10944 else
10945 if test "$cross_compiling" = yes; then :
10946 ac_cv_func_vfork_works=cross
10947 else
10948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10949 /* end confdefs.h. */
10950 /* Thanks to Paul Eggert for this test. */
10951 $ac_includes_default
10952 #include <sys/wait.h>
10953 #ifdef HAVE_VFORK_H
10954 # include <vfork.h>
10955 #endif
10956 /* On some sparc systems, changes by the child to local and incoming
10957 argument registers are propagated back to the parent. The compiler
10958 is told about this with #include <vfork.h>, but some compilers
10959 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
10960 static variable whose address is put into a register that is
10961 clobbered by the vfork. */
10962 static void
10963 #ifdef __cplusplus
10964 sparc_address_test (int arg)
10965 # else
10966 sparc_address_test (arg) int arg;
10967 #endif
10969 static pid_t child;
10970 if (!child) {
10971 child = vfork ();
10972 if (child < 0) {
10973 perror ("vfork");
10974 _exit(2);
10976 if (!child) {
10977 arg = getpid();
10978 write(-1, "", 0);
10979 _exit (arg);
10985 main ()
10987 pid_t parent = getpid ();
10988 pid_t child;
10990 sparc_address_test (0);
10992 child = vfork ();
10994 if (child == 0) {
10995 /* Here is another test for sparc vfork register problems. This
10996 test uses lots of local variables, at least as many local
10997 variables as main has allocated so far including compiler
10998 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
10999 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
11000 reuse the register of parent for one of the local variables,
11001 since it will think that parent can't possibly be used any more
11002 in this routine. Assigning to the local variable will thus
11003 munge parent in the parent process. */
11004 pid_t
11005 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
11006 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
11007 /* Convince the compiler that p..p7 are live; otherwise, it might
11008 use the same hardware register for all 8 local variables. */
11009 if (p != p1 || p != p2 || p != p3 || p != p4
11010 || p != p5 || p != p6 || p != p7)
11011 _exit(1);
11013 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
11014 from child file descriptors. If the child closes a descriptor
11015 before it execs or exits, this munges the parent's descriptor
11016 as well. Test for this by closing stdout in the child. */
11017 _exit(close(fileno(stdout)) != 0);
11018 } else {
11019 int status;
11020 struct stat st;
11022 while (wait(&status) != child)
11024 return (
11025 /* Was there some problem with vforking? */
11026 child < 0
11028 /* Did the child fail? (This shouldn't happen.) */
11029 || status
11031 /* Did the vfork/compiler bug occur? */
11032 || parent != getpid()
11034 /* Did the file descriptor bug occur? */
11035 || fstat(fileno(stdout), &st) != 0
11039 _ACEOF
11040 if ac_fn_cxx_try_run "$LINENO"; then :
11041 ac_cv_func_vfork_works=yes
11042 else
11043 ac_cv_func_vfork_works=no
11045 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11046 conftest.$ac_objext conftest.beam conftest.$ac_ext
11050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
11051 $as_echo "$ac_cv_func_vfork_works" >&6; }
11054 if test "x$ac_cv_func_fork_works" = xcross; then
11055 ac_cv_func_vfork_works=$ac_cv_func_vfork
11056 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
11057 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
11060 if test "x$ac_cv_func_vfork_works" = xyes; then
11062 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
11064 else
11066 $as_echo "#define vfork fork" >>confdefs.h
11069 if test "x$ac_cv_func_fork_works" = xyes; then
11071 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
11077 if test "X$prefix" = "XNONE"; then
11078 acl_final_prefix="$ac_default_prefix"
11079 else
11080 acl_final_prefix="$prefix"
11082 if test "X$exec_prefix" = "XNONE"; then
11083 acl_final_exec_prefix='${prefix}'
11084 else
11085 acl_final_exec_prefix="$exec_prefix"
11087 acl_save_prefix="$prefix"
11088 prefix="$acl_final_prefix"
11089 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
11090 prefix="$acl_save_prefix"
11093 # Check whether --with-gnu-ld was given.
11094 if test "${with_gnu_ld+set}" = set; then :
11095 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11096 else
11097 with_gnu_ld=no
11100 # Prepare PATH_SEPARATOR.
11101 # The user is always right.
11102 if test "${PATH_SEPARATOR+set}" != set; then
11103 echo "#! /bin/sh" >conf$$.sh
11104 echo "exit 0" >>conf$$.sh
11105 chmod +x conf$$.sh
11106 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11107 PATH_SEPARATOR=';'
11108 else
11109 PATH_SEPARATOR=:
11111 rm -f conf$$.sh
11113 ac_prog=ld
11114 if test "$GCC" = yes; then
11115 # Check if gcc -print-prog-name=ld gives a path.
11116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
11117 $as_echo_n "checking for ld used by GCC... " >&6; }
11118 case $host in
11119 *-*-mingw*)
11120 # gcc leaves a trailing carriage return which upsets mingw
11121 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11123 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11124 esac
11125 case $ac_prog in
11126 # Accept absolute paths.
11127 [\\/]* | [A-Za-z]:[\\/]*)
11128 re_direlt='/[^/][^/]*/\.\./'
11129 # Canonicalize the path of ld
11130 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
11131 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11132 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
11133 done
11134 test -z "$LD" && LD="$ac_prog"
11137 # If it fails, then pretend we aren't using GCC.
11138 ac_prog=ld
11141 # If it is relative, then search for the first ld in PATH.
11142 with_gnu_ld=unknown
11144 esac
11145 elif test "$with_gnu_ld" = yes; then
11146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11147 $as_echo_n "checking for GNU ld... " >&6; }
11148 else
11149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11150 $as_echo_n "checking for non-GNU ld... " >&6; }
11152 if ${acl_cv_path_LD+:} false; then :
11153 $as_echo_n "(cached) " >&6
11154 else
11155 if test -z "$LD"; then
11156 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
11157 for ac_dir in $PATH; do
11158 test -z "$ac_dir" && ac_dir=.
11159 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11160 acl_cv_path_LD="$ac_dir/$ac_prog"
11161 # Check to see if the program is GNU ld. I'd rather use --version,
11162 # but apparently some GNU ld's only accept -v.
11163 # Break only if it was the GNU/non-GNU ld that we prefer.
11164 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
11165 test "$with_gnu_ld" != no && break
11166 else
11167 test "$with_gnu_ld" != yes && break
11170 done
11171 IFS="$ac_save_ifs"
11172 else
11173 acl_cv_path_LD="$LD" # Let the user override the test with a path.
11177 LD="$acl_cv_path_LD"
11178 if test -n "$LD"; then
11179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11180 $as_echo "$LD" >&6; }
11181 else
11182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11183 $as_echo "no" >&6; }
11185 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
11186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11187 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11188 if ${acl_cv_prog_gnu_ld+:} false; then :
11189 $as_echo_n "(cached) " >&6
11190 else
11191 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
11192 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
11193 acl_cv_prog_gnu_ld=yes
11194 else
11195 acl_cv_prog_gnu_ld=no
11198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
11199 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
11200 with_gnu_ld=$acl_cv_prog_gnu_ld
11204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
11205 $as_echo_n "checking for shared library run path origin... " >&6; }
11206 if ${acl_cv_rpath+:} false; then :
11207 $as_echo_n "(cached) " >&6
11208 else
11210 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
11211 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
11212 . ./conftest.sh
11213 rm -f ./conftest.sh
11214 acl_cv_rpath=done
11217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
11218 $as_echo "$acl_cv_rpath" >&6; }
11219 wl="$acl_cv_wl"
11220 libext="$acl_cv_libext"
11221 shlibext="$acl_cv_shlibext"
11222 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
11223 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
11224 hardcode_direct="$acl_cv_hardcode_direct"
11225 hardcode_minus_L="$acl_cv_hardcode_minus_L"
11226 # Check whether --enable-rpath was given.
11227 if test "${enable_rpath+set}" = set; then :
11228 enableval=$enable_rpath; :
11229 else
11230 enable_rpath=yes
11240 use_additional=yes
11242 acl_save_prefix="$prefix"
11243 prefix="$acl_final_prefix"
11244 acl_save_exec_prefix="$exec_prefix"
11245 exec_prefix="$acl_final_exec_prefix"
11247 eval additional_includedir=\"$includedir\"
11248 eval additional_libdir=\"$libdir\"
11250 exec_prefix="$acl_save_exec_prefix"
11251 prefix="$acl_save_prefix"
11254 # Check whether --with-libiconv-prefix was given.
11255 if test "${with_libiconv_prefix+set}" = set; then :
11256 withval=$with_libiconv_prefix;
11257 if test "X$withval" = "Xno"; then
11258 use_additional=no
11259 else
11260 if test "X$withval" = "X"; then
11262 acl_save_prefix="$prefix"
11263 prefix="$acl_final_prefix"
11264 acl_save_exec_prefix="$exec_prefix"
11265 exec_prefix="$acl_final_exec_prefix"
11267 eval additional_includedir=\"$includedir\"
11268 eval additional_libdir=\"$libdir\"
11270 exec_prefix="$acl_save_exec_prefix"
11271 prefix="$acl_save_prefix"
11273 else
11274 additional_includedir="$withval/include"
11275 additional_libdir="$withval/lib"
11282 # Check whether --with-libiconv-type was given.
11283 if test "${with_libiconv_type+set}" = set; then :
11284 withval=$with_libiconv_type; with_libiconv_type=$withval
11285 else
11286 with_libiconv_type=auto
11289 lib_type=`eval echo \$with_libiconv_type`
11291 LIBICONV=
11292 LTLIBICONV=
11293 INCICONV=
11294 rpathdirs=
11295 ltrpathdirs=
11296 names_already_handled=
11297 names_next_round='iconv '
11298 while test -n "$names_next_round"; do
11299 names_this_round="$names_next_round"
11300 names_next_round=
11301 for name in $names_this_round; do
11302 already_handled=
11303 for n in $names_already_handled; do
11304 if test "$n" = "$name"; then
11305 already_handled=yes
11306 break
11308 done
11309 if test -z "$already_handled"; then
11310 names_already_handled="$names_already_handled $name"
11311 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
11312 eval value=\"\$HAVE_LIB$uppername\"
11313 if test -n "$value"; then
11314 if test "$value" = yes; then
11315 eval value=\"\$LIB$uppername\"
11316 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
11317 eval value=\"\$LTLIB$uppername\"
11318 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
11319 else
11322 else
11323 found_dir=
11324 found_la=
11325 found_so=
11326 found_a=
11327 if test $use_additional = yes; then
11328 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
11329 found_dir="$additional_libdir"
11330 found_so="$additional_libdir/lib$name.$shlibext"
11331 if test -f "$additional_libdir/lib$name.la"; then
11332 found_la="$additional_libdir/lib$name.la"
11334 elif test x$lib_type != xshared; then
11335 if test -f "$additional_libdir/lib$name.$libext"; then
11336 found_dir="$additional_libdir"
11337 found_a="$additional_libdir/lib$name.$libext"
11338 if test -f "$additional_libdir/lib$name.la"; then
11339 found_la="$additional_libdir/lib$name.la"
11344 if test "X$found_dir" = "X"; then
11345 for x in $LDFLAGS $LTLIBICONV; do
11347 acl_save_prefix="$prefix"
11348 prefix="$acl_final_prefix"
11349 acl_save_exec_prefix="$exec_prefix"
11350 exec_prefix="$acl_final_exec_prefix"
11351 eval x=\"$x\"
11352 exec_prefix="$acl_save_exec_prefix"
11353 prefix="$acl_save_prefix"
11355 case "$x" in
11356 -L*)
11357 dir=`echo "X$x" | sed -e 's/^X-L//'`
11358 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
11359 found_dir="$dir"
11360 found_so="$dir/lib$name.$shlibext"
11361 if test -f "$dir/lib$name.la"; then
11362 found_la="$dir/lib$name.la"
11364 elif test x$lib_type != xshared; then
11365 if test -f "$dir/lib$name.$libext"; then
11366 found_dir="$dir"
11367 found_a="$dir/lib$name.$libext"
11368 if test -f "$dir/lib$name.la"; then
11369 found_la="$dir/lib$name.la"
11374 esac
11375 if test "X$found_dir" != "X"; then
11376 break
11378 done
11380 if test "X$found_dir" != "X"; then
11381 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
11382 if test "X$found_so" != "X"; then
11383 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
11384 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11385 else
11386 haveit=
11387 for x in $ltrpathdirs; do
11388 if test "X$x" = "X$found_dir"; then
11389 haveit=yes
11390 break
11392 done
11393 if test -z "$haveit"; then
11394 ltrpathdirs="$ltrpathdirs $found_dir"
11396 if test "$hardcode_direct" = yes; then
11397 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11398 else
11399 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
11400 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11401 haveit=
11402 for x in $rpathdirs; do
11403 if test "X$x" = "X$found_dir"; then
11404 haveit=yes
11405 break
11407 done
11408 if test -z "$haveit"; then
11409 rpathdirs="$rpathdirs $found_dir"
11411 else
11412 haveit=
11413 for x in $LDFLAGS $LIBICONV; do
11415 acl_save_prefix="$prefix"
11416 prefix="$acl_final_prefix"
11417 acl_save_exec_prefix="$exec_prefix"
11418 exec_prefix="$acl_final_exec_prefix"
11419 eval x=\"$x\"
11420 exec_prefix="$acl_save_exec_prefix"
11421 prefix="$acl_save_prefix"
11423 if test "X$x" = "X-L$found_dir"; then
11424 haveit=yes
11425 break
11427 done
11428 if test -z "$haveit"; then
11429 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
11431 if test "$hardcode_minus_L" != no; then
11432 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11433 else
11434 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11439 else
11440 if test "X$found_a" != "X"; then
11441 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
11442 else
11443 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
11446 additional_includedir=
11447 case "$found_dir" in
11448 */lib | */lib/)
11449 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
11450 additional_includedir="$basedir/include"
11452 esac
11453 if test "X$additional_includedir" != "X"; then
11454 if test "X$additional_includedir" != "X/usr/include"; then
11455 haveit=
11456 if test "X$additional_includedir" = "X/usr/local/include"; then
11457 if test -n "$GCC"; then
11458 case $host_os in
11459 linux*) haveit=yes;;
11460 esac
11463 if test -z "$haveit"; then
11464 for x in $CPPFLAGS $INCICONV; do
11466 acl_save_prefix="$prefix"
11467 prefix="$acl_final_prefix"
11468 acl_save_exec_prefix="$exec_prefix"
11469 exec_prefix="$acl_final_exec_prefix"
11470 eval x=\"$x\"
11471 exec_prefix="$acl_save_exec_prefix"
11472 prefix="$acl_save_prefix"
11474 if test "X$x" = "X-I$additional_includedir"; then
11475 haveit=yes
11476 break
11478 done
11479 if test -z "$haveit"; then
11480 if test -d "$additional_includedir"; then
11481 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
11487 if test -n "$found_la"; then
11488 save_libdir="$libdir"
11489 case "$found_la" in
11490 */* | *\\*) . "$found_la" ;;
11491 *) . "./$found_la" ;;
11492 esac
11493 libdir="$save_libdir"
11494 for dep in $dependency_libs; do
11495 case "$dep" in
11496 -L*)
11497 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
11498 if test "X$additional_libdir" != "X/usr/lib"; then
11499 haveit=
11500 if test "X$additional_libdir" = "X/usr/local/lib"; then
11501 if test -n "$GCC"; then
11502 case $host_os in
11503 linux*) haveit=yes;;
11504 esac
11507 if test -z "$haveit"; then
11508 haveit=
11509 for x in $LDFLAGS $LIBICONV; do
11511 acl_save_prefix="$prefix"
11512 prefix="$acl_final_prefix"
11513 acl_save_exec_prefix="$exec_prefix"
11514 exec_prefix="$acl_final_exec_prefix"
11515 eval x=\"$x\"
11516 exec_prefix="$acl_save_exec_prefix"
11517 prefix="$acl_save_prefix"
11519 if test "X$x" = "X-L$additional_libdir"; then
11520 haveit=yes
11521 break
11523 done
11524 if test -z "$haveit"; then
11525 if test -d "$additional_libdir"; then
11526 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
11529 haveit=
11530 for x in $LDFLAGS $LTLIBICONV; do
11532 acl_save_prefix="$prefix"
11533 prefix="$acl_final_prefix"
11534 acl_save_exec_prefix="$exec_prefix"
11535 exec_prefix="$acl_final_exec_prefix"
11536 eval x=\"$x\"
11537 exec_prefix="$acl_save_exec_prefix"
11538 prefix="$acl_save_prefix"
11540 if test "X$x" = "X-L$additional_libdir"; then
11541 haveit=yes
11542 break
11544 done
11545 if test -z "$haveit"; then
11546 if test -d "$additional_libdir"; then
11547 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
11553 -R*)
11554 dir=`echo "X$dep" | sed -e 's/^X-R//'`
11555 if test "$enable_rpath" != no; then
11556 haveit=
11557 for x in $rpathdirs; do
11558 if test "X$x" = "X$dir"; then
11559 haveit=yes
11560 break
11562 done
11563 if test -z "$haveit"; then
11564 rpathdirs="$rpathdirs $dir"
11566 haveit=
11567 for x in $ltrpathdirs; do
11568 if test "X$x" = "X$dir"; then
11569 haveit=yes
11570 break
11572 done
11573 if test -z "$haveit"; then
11574 ltrpathdirs="$ltrpathdirs $dir"
11578 -l*)
11579 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11581 *.la)
11582 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11585 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
11586 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
11588 esac
11589 done
11591 else
11592 if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
11593 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11594 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
11595 else
11596 LIBICONV="${LIBICONV}${LIBICONV:+ }-l:lib$name.$libext"
11597 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l:lib$name.$libext"
11602 done
11603 done
11604 if test "X$rpathdirs" != "X"; then
11605 if test -n "$hardcode_libdir_separator"; then
11606 alldirs=
11607 for found_dir in $rpathdirs; do
11608 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
11609 done
11610 acl_save_libdir="$libdir"
11611 libdir="$alldirs"
11612 eval flag=\"$hardcode_libdir_flag_spec\"
11613 libdir="$acl_save_libdir"
11614 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11615 else
11616 for found_dir in $rpathdirs; do
11617 acl_save_libdir="$libdir"
11618 libdir="$found_dir"
11619 eval flag=\"$hardcode_libdir_flag_spec\"
11620 libdir="$acl_save_libdir"
11621 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11622 done
11625 if test "X$ltrpathdirs" != "X"; then
11626 for found_dir in $ltrpathdirs; do
11627 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
11628 done
11637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
11638 $as_echo_n "checking for iconv... " >&6; }
11639 if ${am_cv_func_iconv+:} false; then :
11640 $as_echo_n "(cached) " >&6
11641 else
11643 am_cv_func_iconv="no, consider installing GNU libiconv"
11644 am_cv_lib_iconv=no
11645 am_save_CPPFLAGS="$CPPFLAGS"
11646 CPPFLAGS="$CPPFLAGS $INCICONV"
11647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11648 /* end confdefs.h. */
11649 #include <stdlib.h>
11650 #include <iconv.h>
11652 main ()
11654 iconv_t cd = iconv_open("","");
11655 iconv(cd,NULL,NULL,NULL,NULL);
11656 iconv_close(cd);
11658 return 0;
11660 _ACEOF
11661 if ac_fn_cxx_try_link "$LINENO"; then :
11662 am_cv_func_iconv=yes
11664 rm -f core conftest.err conftest.$ac_objext \
11665 conftest$ac_exeext conftest.$ac_ext
11666 CPPFLAGS="$am_save_CPPFLAGS"
11668 if test "$am_cv_func_iconv" != yes && test -d ../libiconv; then
11669 for _libs in .libs _libs; do
11670 am_save_CPPFLAGS="$CPPFLAGS"
11671 am_save_LIBS="$LIBS"
11672 CPPFLAGS="$CPPFLAGS -I../libiconv/include"
11673 LIBS="$LIBS ../libiconv/lib/$_libs/libiconv.a"
11674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11675 /* end confdefs.h. */
11676 #include <stdlib.h>
11677 #include <iconv.h>
11679 main ()
11681 iconv_t cd = iconv_open("","");
11682 iconv(cd,NULL,NULL,NULL,NULL);
11683 iconv_close(cd);
11685 return 0;
11687 _ACEOF
11688 if ac_fn_cxx_try_link "$LINENO"; then :
11689 INCICONV="-I../libiconv/include"
11690 LIBICONV='${top_builddir}'/../libiconv/lib/$_libs/libiconv.a
11691 LTLIBICONV='${top_builddir}'/../libiconv/lib/libiconv.la
11692 am_cv_lib_iconv=yes
11693 am_cv_func_iconv=yes
11695 rm -f core conftest.err conftest.$ac_objext \
11696 conftest$ac_exeext conftest.$ac_ext
11697 CPPFLAGS="$am_save_CPPFLAGS"
11698 LIBS="$am_save_LIBS"
11699 if test "$am_cv_func_iconv" = "yes"; then
11700 break
11702 done
11705 if test "$am_cv_func_iconv" != yes; then
11706 am_save_CPPFLAGS="$CPPFLAGS"
11707 am_save_LIBS="$LIBS"
11708 CPPFLAGS="$CPPFLAGS $INCICONV"
11709 LIBS="$LIBS $LIBICONV"
11710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11711 /* end confdefs.h. */
11712 #include <stdlib.h>
11713 #include <iconv.h>
11715 main ()
11717 iconv_t cd = iconv_open("","");
11718 iconv(cd,NULL,NULL,NULL,NULL);
11719 iconv_close(cd);
11721 return 0;
11723 _ACEOF
11724 if ac_fn_cxx_try_link "$LINENO"; then :
11725 am_cv_lib_iconv=yes
11726 am_cv_func_iconv=yes
11728 rm -f core conftest.err conftest.$ac_objext \
11729 conftest$ac_exeext conftest.$ac_ext
11730 CPPFLAGS="$am_save_CPPFLAGS"
11731 LIBS="$am_save_LIBS"
11735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
11736 $as_echo "$am_cv_func_iconv" >&6; }
11737 if test "$am_cv_func_iconv" = yes; then
11739 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
11742 if test "$am_cv_lib_iconv" = yes; then
11744 for element in $INCICONV; do
11745 haveit=
11746 for x in $CPPFLAGS; do
11748 acl_save_prefix="$prefix"
11749 prefix="$acl_final_prefix"
11750 acl_save_exec_prefix="$exec_prefix"
11751 exec_prefix="$acl_final_exec_prefix"
11752 eval x=\"$x\"
11753 exec_prefix="$acl_save_exec_prefix"
11754 prefix="$acl_save_prefix"
11756 if test "X$x" = "X$element"; then
11757 haveit=yes
11758 break
11760 done
11761 if test -z "$haveit"; then
11762 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11764 done
11766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
11767 $as_echo_n "checking how to link with libiconv... " >&6; }
11768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
11769 $as_echo "$LIBICONV" >&6; }
11770 else
11771 LIBICONV=
11772 LTLIBICONV=
11777 if test "$am_cv_func_iconv" = yes; then
11778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
11779 $as_echo_n "checking for iconv declaration... " >&6; }
11780 if ${am_cv_proto_iconv+:} false; then :
11781 $as_echo_n "(cached) " >&6
11782 else
11784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11785 /* end confdefs.h. */
11787 #include <stdlib.h>
11788 #include <iconv.h>
11789 extern
11790 #ifdef __cplusplus
11792 #endif
11793 #if defined(__STDC__) || defined(__cplusplus)
11794 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
11795 #else
11796 size_t iconv();
11797 #endif
11800 main ()
11804 return 0;
11806 _ACEOF
11807 if ac_fn_cxx_try_compile "$LINENO"; then :
11808 am_cv_proto_iconv_arg1=""
11809 else
11810 am_cv_proto_iconv_arg1="const"
11812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11813 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);"
11816 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
11817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
11818 }$am_cv_proto_iconv" >&5
11819 $as_echo "${ac_t:-
11820 }$am_cv_proto_iconv" >&6; }
11822 cat >>confdefs.h <<_ACEOF
11823 #define ICONV_CONST $am_cv_proto_iconv_arg1
11824 _ACEOF
11829 # Until we have in-tree GNU iconv:
11830 LIBICONV_DEP=
11831 if test -f "$LTLIBICONV"; then
11832 LIBICONV_DEP=$LTLIBICONV
11837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
11838 $as_echo_n "checking for LC_MESSAGES... " >&6; }
11839 if ${am_cv_val_LC_MESSAGES+:} false; then :
11840 $as_echo_n "(cached) " >&6
11841 else
11842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11843 /* end confdefs.h. */
11844 #include <locale.h>
11846 main ()
11848 return LC_MESSAGES
11850 return 0;
11852 _ACEOF
11853 if ac_fn_cxx_try_link "$LINENO"; then :
11854 am_cv_val_LC_MESSAGES=yes
11855 else
11856 am_cv_val_LC_MESSAGES=no
11858 rm -f core conftest.err conftest.$ac_objext \
11859 conftest$ac_exeext conftest.$ac_ext
11861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
11862 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
11863 if test $am_cv_val_LC_MESSAGES = yes; then
11865 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
11871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
11872 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
11873 if ${am_cv_langinfo_codeset+:} false; then :
11874 $as_echo_n "(cached) " >&6
11875 else
11876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11877 /* end confdefs.h. */
11878 #include <langinfo.h>
11880 main ()
11882 char* cs = nl_langinfo(CODESET);
11884 return 0;
11886 _ACEOF
11887 if ac_fn_cxx_try_link "$LINENO"; then :
11888 am_cv_langinfo_codeset=yes
11889 else
11890 am_cv_langinfo_codeset=no
11892 rm -f core conftest.err conftest.$ac_objext \
11893 conftest$ac_exeext conftest.$ac_ext
11896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
11897 $as_echo "$am_cv_langinfo_codeset" >&6; }
11898 if test $am_cv_langinfo_codeset = yes; then
11900 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
11905 # We will need to find libiberty.h and ansidecl.h
11906 saved_CFLAGS="$CFLAGS"
11907 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
11908 saved_CXXFLAGS="$CXXFLAGS"
11909 CXXFLAGS="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
11911 # gcc_AC_CHECK_DECLS doesn't support overloaded functions, so use the
11912 # normal autoconf function for these. But force definition of
11913 # HAVE_DECL_BASENAME like gcc_AC_CHECK_DECLS does, to suppress the bizarre
11914 # basename handling in libiberty.h.
11915 as_ac_Symbol=`$as_echo "ac_cv_have_decl_basename(const char*)" | $as_tr_sh`
11916 ac_fn_cxx_check_decl "$LINENO" "basename(const char*)" "$as_ac_Symbol" "
11917 #undef HAVE_DECL_BASENAME
11918 #define HAVE_DECL_BASENAME 1
11919 #include \"ansidecl.h\"
11920 #include \"system.h\"
11922 if eval test \"x\$"$as_ac_Symbol"\" = x"yes"; then :
11923 ac_have_decl=1
11924 else
11925 ac_have_decl=0
11928 cat >>confdefs.h <<_ACEOF
11929 #define HAVE_DECL_BASENAME $ac_have_decl
11930 _ACEOF
11931 as_ac_Symbol=`$as_echo "ac_cv_have_decl_strstr(const char*,const char*)" | $as_tr_sh`
11932 ac_fn_cxx_check_decl "$LINENO" "strstr(const char*,const char*)" "$as_ac_Symbol" "
11933 #undef HAVE_DECL_BASENAME
11934 #define HAVE_DECL_BASENAME 1
11935 #include \"ansidecl.h\"
11936 #include \"system.h\"
11938 if eval test \"x\$"$as_ac_Symbol"\" = x"yes"; then :
11939 ac_have_decl=1
11940 else
11941 ac_have_decl=0
11944 cat >>confdefs.h <<_ACEOF
11945 #define HAVE_DECL_STRSTR $ac_have_decl
11946 _ACEOF
11949 for ac_func in getenv atol atoll asprintf sbrk abort atof getcwd getwd \
11950 madvise stpcpy strnlen strsignal strverscmp \
11951 strtol strtoul strtoll strtoull setenv unsetenv \
11952 errno snprintf vsnprintf vasprintf malloc realloc calloc \
11953 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
11955 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11957 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11958 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
11959 $as_echo_n "(cached) " >&6
11960 else
11961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11962 /* end confdefs.h. */
11963 #undef $ac_tr_decl
11964 #define $ac_tr_decl 1
11966 #include "ansidecl.h"
11967 #include "system.h"
11970 main ()
11972 #ifndef $ac_func
11973 char *(*pfn) = (char *(*)) $ac_func ;
11974 #endif
11976 return 0;
11978 _ACEOF
11979 if ac_fn_cxx_try_compile "$LINENO"; then :
11980 eval "gcc_cv_have_decl_$ac_func=yes"
11981 else
11982 eval "gcc_cv_have_decl_$ac_func=no"
11984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11987 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11989 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11990 #define $ac_tr_decl 1
11991 _ACEOF
11993 else
11994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11995 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11996 #define $ac_tr_decl 0
11997 _ACEOF
12001 done
12004 for ac_func in getrlimit setrlimit getrusage
12006 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12008 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12009 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
12010 $as_echo_n "(cached) " >&6
12011 else
12012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12013 /* end confdefs.h. */
12014 #undef $ac_tr_decl
12015 #define $ac_tr_decl 1
12017 #include "ansidecl.h"
12018 #include "system.h"
12019 #ifdef HAVE_SYS_RESOURCE_H
12020 #include <sys/resource.h>
12021 #endif
12025 main ()
12027 #ifndef $ac_func
12028 char *(*pfn) = (char *(*)) $ac_func ;
12029 #endif
12031 return 0;
12033 _ACEOF
12034 if ac_fn_cxx_try_compile "$LINENO"; then :
12035 eval "gcc_cv_have_decl_$ac_func=yes"
12036 else
12037 eval "gcc_cv_have_decl_$ac_func=no"
12039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12042 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12044 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
12045 #define $ac_tr_decl 1
12046 _ACEOF
12048 else
12049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12050 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
12051 #define $ac_tr_decl 0
12052 _ACEOF
12056 done
12059 for ac_func in mallinfo mallinfo2
12061 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12063 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12064 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
12065 $as_echo_n "(cached) " >&6
12066 else
12067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12068 /* end confdefs.h. */
12069 #undef $ac_tr_decl
12070 #define $ac_tr_decl 1
12072 #include "ansidecl.h"
12073 #include "system.h"
12074 #ifdef HAVE_MALLOC_H
12075 #include <malloc.h>
12076 #endif
12080 main ()
12082 #ifndef $ac_func
12083 char *(*pfn) = (char *(*)) $ac_func ;
12084 #endif
12086 return 0;
12088 _ACEOF
12089 if ac_fn_cxx_try_compile "$LINENO"; then :
12090 eval "gcc_cv_have_decl_$ac_func=yes"
12091 else
12092 eval "gcc_cv_have_decl_$ac_func=no"
12094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12097 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12099 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
12100 #define $ac_tr_decl 1
12101 _ACEOF
12103 else
12104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12105 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
12106 #define $ac_tr_decl 0
12107 _ACEOF
12111 done
12114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12115 /* end confdefs.h. */
12117 #include "ansidecl.h"
12118 #include "system.h"
12119 #ifdef HAVE_SYS_RESOURCE_H
12120 #include <sys/resource.h>
12121 #endif
12124 main ()
12126 rlim_t l = 0;
12128 return 0;
12130 _ACEOF
12131 if ac_fn_cxx_try_compile "$LINENO"; then :
12133 else
12135 $as_echo "#define rlim_t long" >>confdefs.h
12138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12140 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
12141 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
12142 # in collect2.cc, <fcntl.h> isn't visible, but the configure test below needs
12143 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
12144 for ac_func in ldgetname
12146 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12148 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12149 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
12150 $as_echo_n "(cached) " >&6
12151 else
12152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12153 /* end confdefs.h. */
12154 #undef $ac_tr_decl
12155 #define $ac_tr_decl 1
12157 #include "ansidecl.h"
12158 #include "system.h"
12159 #ifdef HAVE_LDFCN_H
12160 #undef FREAD
12161 #undef FWRITE
12162 #include <ldfcn.h>
12163 #endif
12167 main ()
12169 #ifndef $ac_func
12170 char *(*pfn) = (char *(*)) $ac_func ;
12171 #endif
12173 return 0;
12175 _ACEOF
12176 if ac_fn_cxx_try_compile "$LINENO"; then :
12177 eval "gcc_cv_have_decl_$ac_func=yes"
12178 else
12179 eval "gcc_cv_have_decl_$ac_func=no"
12181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12184 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12186 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
12187 #define $ac_tr_decl 1
12188 _ACEOF
12190 else
12191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12192 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
12193 #define $ac_tr_decl 0
12194 _ACEOF
12198 done
12201 for ac_func in times
12203 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12205 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12206 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
12207 $as_echo_n "(cached) " >&6
12208 else
12209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12210 /* end confdefs.h. */
12211 #undef $ac_tr_decl
12212 #define $ac_tr_decl 1
12214 #include "ansidecl.h"
12215 #include "system.h"
12216 #ifdef HAVE_SYS_TIMES_H
12217 #include <sys/times.h>
12218 #endif
12222 main ()
12224 #ifndef $ac_func
12225 char *(*pfn) = (char *(*)) $ac_func ;
12226 #endif
12228 return 0;
12230 _ACEOF
12231 if ac_fn_cxx_try_compile "$LINENO"; then :
12232 eval "gcc_cv_have_decl_$ac_func=yes"
12233 else
12234 eval "gcc_cv_have_decl_$ac_func=no"
12236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12239 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12241 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
12242 #define $ac_tr_decl 1
12243 _ACEOF
12245 else
12246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12247 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
12248 #define $ac_tr_decl 0
12249 _ACEOF
12253 done
12256 for ac_func in sigaltstack
12258 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12260 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12261 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
12262 $as_echo_n "(cached) " >&6
12263 else
12264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12265 /* end confdefs.h. */
12266 #undef $ac_tr_decl
12267 #define $ac_tr_decl 1
12269 #include "ansidecl.h"
12270 #include "system.h"
12271 #include <signal.h>
12275 main ()
12277 #ifndef $ac_func
12278 char *(*pfn) = (char *(*)) $ac_func ;
12279 #endif
12281 return 0;
12283 _ACEOF
12284 if ac_fn_cxx_try_compile "$LINENO"; then :
12285 eval "gcc_cv_have_decl_$ac_func=yes"
12286 else
12287 eval "gcc_cv_have_decl_$ac_func=no"
12289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12292 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12294 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
12295 #define $ac_tr_decl 1
12296 _ACEOF
12298 else
12299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12300 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
12301 #define $ac_tr_decl 0
12302 _ACEOF
12306 done
12309 # More time-related stuff.
12310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
12311 $as_echo_n "checking for struct tms... " >&6; }
12312 if ${ac_cv_struct_tms+:} false; then :
12313 $as_echo_n "(cached) " >&6
12314 else
12316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12317 /* end confdefs.h. */
12319 #include "ansidecl.h"
12320 #include "system.h"
12321 #ifdef HAVE_SYS_TIMES_H
12322 #include <sys/times.h>
12323 #endif
12326 main ()
12328 struct tms tms;
12330 return 0;
12332 _ACEOF
12333 if ac_fn_cxx_try_compile "$LINENO"; then :
12334 ac_cv_struct_tms=yes
12335 else
12336 ac_cv_struct_tms=no
12338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
12341 $as_echo "$ac_cv_struct_tms" >&6; }
12342 if test $ac_cv_struct_tms = yes; then
12344 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
12348 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
12349 # revisit after autoconf 2.50.
12350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
12351 $as_echo_n "checking for clock_t... " >&6; }
12352 if ${gcc_cv_type_clock_t+:} false; then :
12353 $as_echo_n "(cached) " >&6
12354 else
12356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12357 /* end confdefs.h. */
12359 #include "ansidecl.h"
12360 #include "system.h"
12363 main ()
12365 clock_t x;
12367 return 0;
12369 _ACEOF
12370 if ac_fn_cxx_try_compile "$LINENO"; then :
12371 gcc_cv_type_clock_t=yes
12372 else
12373 gcc_cv_type_clock_t=no
12375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
12378 $as_echo "$gcc_cv_type_clock_t" >&6; }
12379 if test $gcc_cv_type_clock_t = yes; then
12381 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
12385 # Check if F_SETLKW is supported by fcntl.
12386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
12387 $as_echo_n "checking for F_SETLKW... " >&6; }
12388 if ${ac_cv_f_setlkw+:} false; then :
12389 $as_echo_n "(cached) " >&6
12390 else
12392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12393 /* end confdefs.h. */
12395 #include <fcntl.h>
12397 main ()
12400 struct flock fl;
12401 fl.l_whence = 0;
12402 fl.l_start = 0;
12403 fl.l_len = 0;
12404 fl.l_pid = 0;
12405 return fcntl (1, F_SETLKW, &fl);
12407 return 0;
12409 _ACEOF
12410 if ac_fn_cxx_try_compile "$LINENO"; then :
12411 ac_cv_f_setlkw=yes
12412 else
12413 ac_cv_f_setlkw=no
12415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
12418 $as_echo "$ac_cv_f_setlkw" >&6; }
12419 if test $ac_cv_f_setlkw = yes; then
12421 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
12425 # Check if O_CLOEXEC is defined by fcntl
12426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for O_CLOEXEC" >&5
12427 $as_echo_n "checking for O_CLOEXEC... " >&6; }
12428 if ${ac_cv_o_cloexec+:} false; then :
12429 $as_echo_n "(cached) " >&6
12430 else
12432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12433 /* end confdefs.h. */
12435 #include <fcntl.h>
12437 main ()
12440 return open ("/dev/null", O_RDONLY | O_CLOEXEC);
12442 return 0;
12444 _ACEOF
12445 if ac_fn_cxx_try_compile "$LINENO"; then :
12446 ac_cv_o_cloexec=yes
12447 else
12448 ac_cv_o_cloexec=no
12450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_o_cloexec" >&5
12453 $as_echo "$ac_cv_o_cloexec" >&6; }
12454 if test $ac_cv_o_cloexec = yes; then
12456 $as_echo "#define HOST_HAS_O_CLOEXEC 1" >>confdefs.h
12460 # Check if O_NONBLOCK is defined by fcntl
12461 for ac_header in fcntl.h
12462 do :
12463 ac_fn_cxx_check_header_preproc "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h"
12464 if test "x$ac_cv_header_fcntl_h" = xyes; then :
12465 cat >>confdefs.h <<_ACEOF
12466 #define HAVE_FCNTL_H 1
12467 _ACEOF
12470 done
12472 ac_fn_cxx_check_decl "$LINENO" "O_NONBLOCK" "ac_cv_have_decl_O_NONBLOCK" "#include <fcntl.h>
12474 if test "x$ac_cv_have_decl_O_NONBLOCK" = xyes; then :
12478 if test $ac_cv_have_decl_O_NONBLOCK = yes; then
12480 $as_echo "#define HOST_HAS_O_NONBLOCK 1" >>confdefs.h
12485 # C++ Modules would like some networking features to provide the mapping
12486 # server. You can still use modules without them though.
12487 # The following network-related checks could probably do with some
12488 # Windows and other non-linux defenses and checking.
12490 # Local socket connectivity wants AF_UNIX networking
12491 # Check for AF_UNIX networking
12492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AF_UNIX" >&5
12493 $as_echo_n "checking for AF_UNIX... " >&6; }
12494 if ${ac_cv_af_unix+:} false; then :
12495 $as_echo_n "(cached) " >&6
12496 else
12498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12499 /* end confdefs.h. */
12501 #include <sys/types.h>
12502 #include <sys/socket.h>
12503 #include <sys/un.h>
12504 #include <netinet/in.h>
12506 main ()
12509 sockaddr_un un;
12510 un.sun_family = AF_UNSPEC;
12511 int fd = socket (AF_UNIX, SOCK_STREAM, 0);
12512 connect (fd, (sockaddr *)&un, sizeof (un));
12514 return 0;
12516 _ACEOF
12517 if ac_fn_cxx_try_compile "$LINENO"; then :
12518 ac_cv_af_unix=yes
12519 else
12520 ac_cv_af_unix=no
12522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_af_unix" >&5
12525 $as_echo "$ac_cv_af_unix" >&6; }
12526 if test $ac_cv_af_unix = yes; then
12528 $as_echo "#define HAVE_AF_UNIX 1" >>confdefs.h
12532 # Remote socket connectivity wants AF_INET6 networking
12533 # Check for AF_INET6 networking
12534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AF_INET6" >&5
12535 $as_echo_n "checking for AF_INET6... " >&6; }
12536 if ${ac_cv_af_inet6+:} false; then :
12537 $as_echo_n "(cached) " >&6
12538 else
12540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12541 /* end confdefs.h. */
12543 #include <sys/types.h>
12544 #include <sys/socket.h>
12545 #include <netinet/in.h>
12546 #include <netdb.h>
12548 main ()
12551 sockaddr_in6 in6;
12552 in6.sin6_family = AF_UNSPEC;
12553 struct addrinfo *addrs = 0;
12554 struct addrinfo hints;
12555 hints.ai_flags = 0;
12556 hints.ai_family = AF_INET6;
12557 hints.ai_socktype = SOCK_STREAM;
12558 hints.ai_protocol = 0;
12559 hints.ai_canonname = 0;
12560 hints.ai_addr = 0;
12561 hints.ai_next = 0;
12562 int e = getaddrinfo ("localhost", 0, &hints, &addrs);
12563 const char *str = gai_strerror (e);
12564 freeaddrinfo (addrs);
12565 int fd = socket (AF_INET6, SOCK_STREAM, 0);
12566 connect (fd, (sockaddr *)&in6, sizeof (in6));
12568 return 0;
12570 _ACEOF
12571 if ac_fn_cxx_try_compile "$LINENO"; then :
12572 ac_cv_af_inet6=yes
12573 else
12574 ac_cv_af_inet6=no
12576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_af_inet6" >&5
12579 $as_echo "$ac_cv_af_inet6" >&6; }
12580 if test $ac_cv_af_inet6 = yes; then
12582 $as_echo "#define HAVE_AF_INET6 1" >>confdefs.h
12586 # Check if _LK_LOCK is supported by _locking
12587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LK_LOCK" >&5
12588 $as_echo_n "checking for _LK_LOCK... " >&6; }
12589 if ${ac_cv_lk_lock+:} false; then :
12590 $as_echo_n "(cached) " >&6
12591 else
12593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12594 /* end confdefs.h. */
12596 #include <io.h>
12597 #include <sys/locking.h>
12599 main ()
12602 int fd;
12603 return _locking (fd, _LK_LOCK, 0);
12605 return 0;
12607 _ACEOF
12608 if ac_fn_cxx_try_compile "$LINENO"; then :
12609 ac_cv_lk_lock=yes
12610 else
12611 ac_cv_lk_lock=no
12613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lk_lock" >&5
12616 $as_echo "$ac_cv_lk_lock" >&6; }
12617 if test $ac_cv_lk_lock = yes; then
12619 $as_echo "#define HOST_HAS_LK_LOCK 1" >>confdefs.h
12623 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
12624 CFLAGS="$saved_CFLAGS"
12625 CXXFLAGS="$saved_CXXFLAGS"
12627 # mkdir takes a single argument on some systems.
12628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
12629 $as_echo_n "checking if mkdir takes one argument... " >&6; }
12630 if ${gcc_cv_mkdir_takes_one_arg+:} false; then :
12631 $as_echo_n "(cached) " >&6
12632 else
12633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12634 /* end confdefs.h. */
12636 #include <sys/types.h>
12637 #ifdef HAVE_SYS_STAT_H
12638 # include <sys/stat.h>
12639 #endif
12640 #ifdef HAVE_UNISTD_H
12641 # include <unistd.h>
12642 #endif
12643 #ifdef HAVE_DIRECT_H
12644 # include <direct.h>
12645 #endif
12647 main ()
12649 mkdir ("foo", 0);
12651 return 0;
12653 _ACEOF
12654 if ac_fn_cxx_try_compile "$LINENO"; then :
12655 gcc_cv_mkdir_takes_one_arg=no
12656 else
12657 gcc_cv_mkdir_takes_one_arg=yes
12659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
12662 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
12663 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
12665 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
12670 # File extensions
12671 manext='.1'
12672 objext='.o'
12676 # With Setjmp/Longjmp based exception handling.
12677 # Check whether --enable-sjlj-exceptions was given.
12678 if test "${enable_sjlj_exceptions+set}" = set; then :
12679 enableval=$enable_sjlj_exceptions; force_sjlj_exceptions=yes
12680 else
12681 case $target in
12682 lm32*-*-*)
12683 force_sjlj_exceptions=yes
12684 enableval=yes
12687 force_sjlj_exceptions=no
12689 esac
12692 if test $force_sjlj_exceptions = yes; then
12693 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
12695 cat >>confdefs.h <<_ACEOF
12696 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
12697 _ACEOF
12701 # --------------------------------------------------------
12702 # Build, host, and target specific configuration fragments
12703 # --------------------------------------------------------
12705 # Collect build-machine-specific information.
12706 . ${srcdir}/config.build || exit 1
12708 # Collect host-machine-specific information.
12709 . ${srcdir}/config.host || exit 1
12711 target_gtfiles=
12713 # Collect target-machine-specific information.
12714 . ${srcdir}/config.gcc || exit 1
12716 extra_objs="${host_extra_objs} ${extra_objs}"
12717 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
12719 # Default the target-machine variables that were not explicitly set.
12720 if test x"$tm_file" = x
12721 then tm_file=$cpu_type/$cpu_type.h; fi
12723 if test x"$extra_headers" = x
12724 then extra_headers=; fi
12726 if test x$md_file = x
12727 then md_file=$cpu_type/$cpu_type.md; fi
12729 if test x$out_file = x
12730 then out_file=$cpu_type/$cpu_type.cc; fi
12732 if test x"$tmake_file" = x
12733 then tmake_file=$cpu_type/t-$cpu_type
12736 # Support --enable-initfini-array.
12737 if test x$enable_initfini_array != xno; then
12738 tm_file="${tm_file} initfini-array.h"
12741 if test x"$dwarf2" = xyes
12742 then tm_file="$tm_file tm-dwarf2.h"
12745 # Say what files are being used for the output code and MD file.
12746 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
12747 echo "Using \`$srcdir/config/$md_file' as machine description file."
12749 # If any of the xm_file variables contain nonexistent files, warn
12750 # about them and drop them.
12753 for x in $build_xm_file; do
12754 if test -f $srcdir/config/$x
12755 then bx="$bx $x"
12756 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
12757 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12759 done
12760 build_xm_file="$bx"
12763 for x in $host_xm_file; do
12764 if test -f $srcdir/config/$x
12765 then hx="$hx $x"
12766 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
12767 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12769 done
12770 host_xm_file="$hx"
12773 for x in $xm_file; do
12774 if test -f $srcdir/config/$x
12775 then tx="$tx $x"
12776 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
12777 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12779 done
12780 xm_file="$tx"
12782 count=a
12783 for f in $tm_file; do
12784 count=${count}x
12785 done
12786 if test $count = ax; then
12787 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
12788 else
12789 echo "Using the following target machine macro files:"
12790 for f in $tm_file; do
12791 echo " $srcdir/config/$f"
12792 done
12795 if test x$use_long_long_for_widest_fast_int = xyes; then
12797 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
12801 gnu_ld_bool=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
12803 cat >>confdefs.h <<_ACEOF
12804 #define HAVE_GNU_LD $gnu_ld_bool
12805 _ACEOF
12808 gnu_as_bool=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
12810 cat >>confdefs.h <<_ACEOF
12811 #define HAVE_GNU_AS $gnu_as_bool
12812 _ACEOF
12815 count=a
12816 for f in $host_xm_file; do
12817 count=${count}x
12818 done
12819 if test $count = a; then
12821 elif test $count = ax; then
12822 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
12823 else
12824 echo "Using the following host machine macro files:"
12825 for f in $host_xm_file; do
12826 echo " $srcdir/config/$f"
12827 done
12829 echo "Using ${out_host_hook_obj} for host machine hooks."
12831 if test "$host_xm_file" != "$build_xm_file"; then
12832 count=a
12833 for f in $build_xm_file; do
12834 count=${count}x
12835 done
12836 if test $count = a; then
12838 elif test $count = ax; then
12839 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
12840 else
12841 echo "Using the following build machine macro files:"
12842 for f in $build_xm_file; do
12843 echo " $srcdir/config/$f"
12844 done
12848 if test -n "$configured_native_system_header_dir"; then
12849 native_system_header_dir=$configured_native_system_header_dir
12851 NATIVE_SYSTEM_HEADER_DIR="$native_system_header_dir"
12854 case ${host} in
12855 powerpc*-*-darwin*)
12856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
12857 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
12858 if ${gcc_cv_mcontext_underscores+:} false; then :
12859 $as_echo_n "(cached) " >&6
12860 else
12861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12862 /* end confdefs.h. */
12864 #include <sys/cdefs.h>
12865 #include <sys/signal.h>
12866 #include <ucontext.h>
12867 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
12869 _ACEOF
12870 if ac_fn_cxx_try_compile "$LINENO"; then :
12871 gcc_cv_mcontext_underscores=no
12872 else
12873 gcc_cv_mcontext_underscores=yes
12875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
12878 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
12879 if test $gcc_cv_mcontext_underscores = yes; then
12881 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
12885 esac
12887 # ---------
12888 # Threading
12889 # ---------
12891 # Check if a valid thread package
12892 case ${enable_threads} in
12893 "" | no)
12894 # No threads
12895 target_thread_file='single'
12897 yes)
12898 # default
12899 target_thread_file='single'
12901 aix | dce | lynx | mipssde | posix | rtems | \
12902 single | tpf | vxworks | win32 | mcf)
12903 target_thread_file=${enable_threads}
12906 echo "${enable_threads} is an unknown thread package" 1>&2
12907 exit 1
12909 esac
12911 if test x${thread_file} = x; then
12912 # No thread file set by target-specific clauses in config.gcc,
12913 # so use file chosen by default logic above
12914 thread_file=${target_thread_file}
12917 # --------
12918 # UNSORTED
12919 # --------
12921 use_cxa_atexit=no
12922 if test x$enable___cxa_atexit = xyes || \
12923 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
12924 if test x$host = x$target; then
12925 case $host in
12926 # mingw32 doesn't have __cxa_atexit but uses atexit registration
12927 # keyed to flag_use_cxa_atexit
12928 *-*-mingw32*)
12929 use_cxa_atexit=yes
12931 powerpc-ibm-aix*)
12932 use_cxa_atexit=yes
12935 ac_fn_cxx_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
12936 if test "x$ac_cv_func___cxa_atexit" = xyes; then :
12937 use_cxa_atexit=yes
12938 else
12939 echo "__cxa_atexit can't be enabled on this target"
12943 esac
12944 else
12945 # We can't check for __cxa_atexit when building a cross, so assume
12946 # it is available
12947 use_cxa_atexit=yes
12949 if test x$use_cxa_atexit = xyes; then
12951 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
12956 # Look for a file containing extra machine modes.
12957 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
12958 extra_modes_file='$(srcdir)'/config/${extra_modes}
12961 cat >>confdefs.h <<_ACEOF
12962 #define EXTRA_MODES_FILE "config/$extra_modes"
12963 _ACEOF
12967 # Convert extra_options into a form suitable for Makefile use.
12968 extra_opt_files=
12969 all_opt_files=
12970 for f in $extra_options; do
12971 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
12972 all_opt_files="$all_opt_files $srcdir/config/$f"
12973 done
12976 # auto-host.h is the file containing items generated by autoconf and is
12977 # the first file included by config.h.
12978 # If host=build, it is correct to have bconfig include auto-host.h
12979 # as well. If host!=build, we are in error and need to do more
12980 # work to find out the build config parameters.
12981 if test x$host = x$build
12982 then
12983 build_auto=auto-host.h
12984 HAVE_AUTO_BUILD='# '
12985 else
12986 # We create a subdir, then run autoconf in the subdir.
12987 # To prevent recursion we set host and build for the new
12988 # invocation of configure to the build for this invocation
12989 # of configure.
12990 tempdir=build.$$
12991 rm -rf $tempdir
12992 mkdir $tempdir
12993 cd $tempdir
12994 case ${srcdir} in
12995 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
12996 *) realsrcdir=../${srcdir};;
12997 esac
12998 # Clearing GMPINC is necessary to prevent host headers being
12999 # used by the build compiler. Defining GENERATOR_FILE stops
13000 # system.h from including gmp.h.
13001 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
13002 CXX="${CXX_FOR_BUILD}" CXXFLAGS="${CXXFLAGS_FOR_BUILD}" \
13003 LD="${LD_FOR_BUILD}" LDFLAGS="${LDFLAGS_FOR_BUILD}" \
13004 GMPINC="" CPPFLAGS="${CPPFLAGS_FOR_BUILD} -DGENERATOR_FILE" \
13005 ${realsrcdir}/configure \
13006 --enable-languages=${enable_languages-all} \
13007 ${enable_obsolete+--enable-obsolete="$enable_obsolete"} \
13008 ${enable_option_checking+--enable-option-checking="$enable_option_checking"} \
13009 --target=$target_alias --host=$build_alias \
13010 --build=$build_alias || exit # retaining $tempdir
13012 # We just finished tests for the build machine, so rename
13013 # the file auto-build.h in the gcc directory.
13014 mv auto-host.h ../auto-build.h
13015 cd ..
13016 rm -rf $tempdir
13017 build_auto=auto-build.h
13018 HAVE_AUTO_BUILD=
13023 tm_file="${tm_file} defaults.h"
13024 tm_p_file="${tm_p_file} tm-preds.h"
13025 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
13026 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
13027 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
13028 # put this back in temporarily.
13029 xm_file="auto-host.h ansidecl.h ${xm_file}"
13031 # --------
13032 # UNSORTED
13033 # --------
13035 # Compile in configure arguments.
13036 if test -f configargs.h ; then
13037 # Being re-configured.
13038 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
13039 gcc_reconf_arguments=`echo "$gcc_config_arguments" | sed -e 's/^.*\( : (reconfigured) .*$\)/\1/'`
13040 if [ "$gcc_reconf_arguments" != " : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS" ]; then
13041 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
13043 else
13044 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
13047 # Double all backslashes and backslash all quotes to turn
13048 # gcc_config_arguments into a C string.
13049 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
13050 $gcc_config_arguments
13052 gcc_config_arguments_str=`cat conftest.out`
13053 rm -f conftest.out
13055 cat > configargs.h <<EOF
13056 /* Generated automatically. */
13057 static const char configuration_arguments[] = "$gcc_config_arguments_str";
13058 static const char thread_model[] = "$thread_file";
13060 static const struct {
13061 const char *name, *value;
13062 } configure_default_options[] = $configure_default_options;
13065 gcc_BASEVER=`cat $srcdir/BASE-VER`
13066 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
13067 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
13068 if test -f $srcdir/REVISION ; then
13069 gcc_REVISION=`cat $srcdir/REVISION`
13070 else
13071 gcc_REVISION=""
13073 cat > plugin-version.h <<EOF
13074 #include "configargs.h"
13076 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
13077 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
13078 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
13079 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
13081 static char basever[] = "$gcc_BASEVER";
13082 static char datestamp[] = "$gcc_DATESTAMP";
13083 static char devphase[] = "$gcc_DEVPHASE";
13084 static char revision[] = "$gcc_REVISION";
13086 /* FIXME plugins: We should make the version information more precise.
13087 One way to do is to add a checksum. */
13089 static struct plugin_gcc_version gcc_version = {basever, datestamp,
13090 devphase, revision,
13091 configuration_arguments};
13094 # Determine what GCC version number to use in filesystem paths.
13096 get_gcc_base_ver="cat"
13098 # Check whether --with-gcc-major-version-only was given.
13099 if test "${with_gcc_major_version_only+set}" = set; then :
13100 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
13101 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
13109 # Internationalization
13110 # If we haven't got the data from the intl directory,
13111 # assume NLS is disabled.
13112 USE_NLS=no
13113 LIBINTL=
13114 LIBINTL_DEP=
13115 INCINTL=
13116 XGETTEXT=
13117 GMSGFMT=
13118 POSUB=
13120 if test -f ../intl/config.intl; then
13121 . ../intl/config.intl
13123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
13124 $as_echo_n "checking whether NLS is requested... " >&6; }
13125 if test x"$USE_NLS" != xyes; then
13126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13127 $as_echo "no" >&6; }
13128 else
13129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13130 $as_echo "yes" >&6; }
13132 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
13135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
13136 $as_echo_n "checking for catalogs to be installed... " >&6; }
13137 # Look for .po and .gmo files in the source directory.
13138 CATALOGS=
13139 XLINGUAS=
13140 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
13141 # If there aren't any .gmo files the shell will give us the
13142 # literal string "../path/to/srcdir/po/*.gmo" which has to be
13143 # weeded out.
13144 case "$cat" in *\**)
13145 continue;;
13146 esac
13147 # The quadruple backslash is collapsed to a double backslash
13148 # by the backticks, then collapsed again by the double quotes,
13149 # leaving us with one backslash in the sed expression (right
13150 # before the dot that mustn't act as a wildcard).
13151 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
13152 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
13153 # The user is allowed to set LINGUAS to a list of languages to
13154 # install catalogs for. If it's empty that means "all of them."
13155 if test "x$LINGUAS" = x; then
13156 CATALOGS="$CATALOGS $cat"
13157 XLINGUAS="$XLINGUAS $lang"
13158 else
13159 case "$LINGUAS" in *$lang*)
13160 CATALOGS="$CATALOGS $cat"
13161 XLINGUAS="$XLINGUAS $lang"
13163 esac
13165 done
13166 LINGUAS="$XLINGUAS"
13167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
13168 $as_echo "$LINGUAS" >&6; }
13171 DATADIRNAME=share
13173 INSTOBJEXT=.mo
13175 GENCAT=gencat
13177 CATOBJEXT=.gmo
13181 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
13182 # -liconv on the link line twice.
13183 case "$LIBINTL" in *$LIBICONV*)
13184 LIBICONV= ;;
13185 esac
13187 # Check whether --enable-secureplt was given.
13188 if test "${enable_secureplt+set}" = set; then :
13189 enableval=$enable_secureplt;
13193 # Check whether --enable-mingw-wildcard was given.
13194 if test "${enable_mingw_wildcard+set}" = set; then :
13195 enableval=$enable_mingw_wildcard;
13196 else
13197 enable_mingw_wildcard=platform
13200 if test x"$enable_mingw_wildcard" != xplatform ; then :
13202 cat >>confdefs.h <<_ACEOF
13203 #define MINGW_DOWILDCARD $(test x"$enable_mingw_wildcard" = xno; echo $?)
13204 _ACEOF
13208 # Check whether --enable-large-address-aware was given.
13209 if test "${enable_large_address_aware+set}" = set; then :
13210 enableval=$enable_large_address_aware;
13213 if test x"$enable_large_address_aware" = xyes; then :
13215 $as_echo "#define MINGW_DEFAULT_LARGE_ADDR_AWARE 1" >>confdefs.h
13219 # Check whether --enable-leading-mingw64-underscores was given.
13220 if test "${enable_leading_mingw64_underscores+set}" = set; then :
13221 enableval=$enable_leading_mingw64_underscores;
13224 if test x"$enable_leading_mingw64_underscores" = xyes ; then :
13226 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
13230 # Check whether --enable-cld was given.
13231 if test "${enable_cld+set}" = set; then :
13232 enableval=$enable_cld;
13233 else
13234 enable_cld=no
13238 # Check whether --enable-frame-pointer was given.
13239 if test "${enable_frame_pointer+set}" = set; then :
13240 enableval=$enable_frame_pointer;
13241 else
13243 case $target_os in
13244 linux* | gnu* | darwin[8912]* | cygwin* | mingw*)
13245 # Enable -fomit-frame-pointer by default for these systems with DWARF2.
13246 enable_frame_pointer=no
13249 enable_frame_pointer=yes
13251 esac
13256 case $target in
13257 i[34567]86-*-* | x86_64-*-*)
13258 if test "x$enable_cld" = xyes; then
13259 tm_defines="${tm_defines} USE_IX86_CLD=1"
13261 if test "x$enable_frame_pointer" = xyes; then
13262 tm_defines="${tm_defines} USE_IX86_FRAME_POINTER=1"
13265 esac
13267 # Windows32 Registry support for specifying GCC installation paths.
13268 # Check whether --enable-win32-registry was given.
13269 if test "${enable_win32_registry+set}" = set; then :
13270 enableval=$enable_win32_registry;
13274 case $host_os in
13275 win32 | pe | cygwin* | mingw32*)
13276 if test "x$enable_win32_registry" != xno; then
13277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
13278 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
13279 if ${ac_cv_search_RegOpenKeyExA+:} false; then :
13280 $as_echo_n "(cached) " >&6
13281 else
13282 ac_func_search_save_LIBS=$LIBS
13283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13284 /* end confdefs.h. */
13286 /* Override any GCC internal prototype to avoid an error.
13287 Use char because int might match the return type of a GCC
13288 builtin and then its argument prototype would still apply. */
13289 #ifdef __cplusplus
13290 extern "C"
13291 #endif
13292 char RegOpenKeyExA ();
13294 main ()
13296 return RegOpenKeyExA ();
13298 return 0;
13300 _ACEOF
13301 for ac_lib in '' advapi32; do
13302 if test -z "$ac_lib"; then
13303 ac_res="none required"
13304 else
13305 ac_res=-l$ac_lib
13306 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13308 if ac_fn_cxx_try_link "$LINENO"; then :
13309 ac_cv_search_RegOpenKeyExA=$ac_res
13311 rm -f core conftest.err conftest.$ac_objext \
13312 conftest$ac_exeext
13313 if ${ac_cv_search_RegOpenKeyExA+:} false; then :
13314 break
13316 done
13317 if ${ac_cv_search_RegOpenKeyExA+:} false; then :
13319 else
13320 ac_cv_search_RegOpenKeyExA=no
13322 rm conftest.$ac_ext
13323 LIBS=$ac_func_search_save_LIBS
13325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
13326 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
13327 ac_res=$ac_cv_search_RegOpenKeyExA
13328 if test "$ac_res" != no; then :
13329 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13331 else
13332 enable_win32_registry=no
13337 if test "x$enable_win32_registry" != xno; then
13339 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
13342 if test "x$enable_win32_registry" != xyes \
13343 && test "x$enable_win32_registry" != x; then
13345 cat >>confdefs.h <<_ACEOF
13346 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
13347 _ACEOF
13352 esac
13354 # Get an absolute path to the GCC top-level source directory
13355 holddir=`${PWDCMD-pwd}`
13356 cd $srcdir
13357 topdir=`${PWDCMD-pwd}`
13358 cd $holddir
13360 # Conditionalize the makefile for this host machine.
13361 xmake_file=
13362 for f in ${host_xmake_file}
13364 if test -f ${srcdir}/config/$f
13365 then
13366 xmake_file="${xmake_file} \$(srcdir)/config/$f"
13368 done
13370 # Conditionalize the makefile for this target machine.
13371 tmake_file_=
13372 for f in ${tmake_file}
13374 if test -f ${srcdir}/config/$f
13375 then
13376 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
13378 done
13379 tmake_file="${tmake_file_}${omp_device_property_tmake_file}"
13381 out_object_file=`basename $out_file .cc`.o
13382 common_out_object_file=`basename $common_out_file .cc`.o
13384 tm_file_list="options.h"
13385 tm_include_list="options.h insn-constants.h"
13386 for f in $tm_file; do
13387 case $f in
13388 ./* )
13389 f=`echo $f | sed 's/^..//'`
13390 tm_file_list="${tm_file_list} $f"
13391 tm_include_list="${tm_include_list} $f"
13393 defaults.h )
13394 tm_file_list="${tm_file_list} \$(srcdir)/$f"
13395 tm_include_list="${tm_include_list} $f"
13398 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
13399 tm_include_list="${tm_include_list} config/$f"
13401 esac
13402 done
13404 tm_p_file_list=
13405 tm_p_include_list=
13406 for f in $tm_p_file; do
13407 case $f in
13408 tm-preds.h )
13409 tm_p_file_list="${tm_p_file_list} $f"
13410 tm_p_include_list="${tm_p_include_list} $f"
13413 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
13414 tm_p_include_list="${tm_p_include_list} config/$f"
13415 esac
13416 done
13418 tm_d_file_list=
13419 tm_d_include_list=
13420 for f in $tm_d_file; do
13421 case $f in
13423 tm_d_file_list="${tm_d_file_list} \$(srcdir)/config/$f"
13424 tm_d_include_list="${tm_d_include_list} config/$f"
13426 esac
13427 done
13429 xm_file_list=
13430 xm_include_list=
13431 for f in $xm_file; do
13432 case $f in
13433 ansidecl.h )
13434 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
13435 xm_include_list="${xm_include_list} $f"
13437 auto-host.h )
13438 xm_file_list="${xm_file_list} $f"
13439 xm_include_list="${xm_include_list} $f"
13442 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
13443 xm_include_list="${xm_include_list} config/$f"
13445 esac
13446 done
13448 host_xm_file_list=
13449 host_xm_include_list=
13450 for f in $host_xm_file; do
13451 case $f in
13452 ansidecl.h )
13453 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
13454 host_xm_include_list="${host_xm_include_list} $f"
13456 auto-host.h )
13457 host_xm_file_list="${host_xm_file_list} $f"
13458 host_xm_include_list="${host_xm_include_list} $f"
13461 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
13462 host_xm_include_list="${host_xm_include_list} config/$f"
13464 esac
13465 done
13467 build_xm_file_list=
13468 for f in $build_xm_file; do
13469 case $f in
13470 ansidecl.h )
13471 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
13472 build_xm_include_list="${build_xm_include_list} $f"
13474 auto-build.h | auto-host.h )
13475 build_xm_file_list="${build_xm_file_list} $f"
13476 build_xm_include_list="${build_xm_include_list} $f"
13479 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
13480 build_xm_include_list="${build_xm_include_list} config/$f"
13482 esac
13483 done
13485 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
13486 # cross-compiler which does not use the native headers and libraries.
13487 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
13488 CROSS=
13489 ALL=all.internal
13490 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
13491 BUILD_SYSTEM_HEADER_DIR=$SYSTEM_HEADER_DIR
13493 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x ||
13494 test x$build != x$host || test "x$with_build_sysroot" != x; then
13495 if test "x$with_build_sysroot" != x; then
13496 BUILD_SYSTEM_HEADER_DIR=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
13497 else
13498 BUILD_SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
13501 if test x$host != x$target
13502 then
13503 CROSS="-DCROSS_DIRECTORY_STRUCTURE"
13504 ALL=all.cross
13505 SYSTEM_HEADER_DIR=$BUILD_SYSTEM_HEADER_DIR
13506 elif test "x$TARGET_SYSTEM_ROOT" != x; then
13507 SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
13510 if test "x$with_build_sysroot" != "x"; then
13511 target_header_dir="${with_build_sysroot}${native_system_header_dir}"
13512 elif test "x$with_sysroot" = x; then
13513 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-include"
13514 elif test "x$with_sysroot" = xyes; then
13515 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
13516 else
13517 target_header_dir="${with_sysroot}${native_system_header_dir}"
13519 else
13520 target_header_dir=${native_system_header_dir}
13523 # If this is a cross-compiler that does not
13524 # have its own set of headers then define
13525 # inhibit_libc
13527 # If this is using newlib, without having the headers available now,
13528 # then define inhibit_libc in LIBGCC2_CFLAGS.
13529 # This prevents libgcc2 from containing any code which requires libc
13530 # support.
13531 : ${inhibit_libc=false}
13532 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
13533 test x$with_newlib = xyes ; } &&
13534 { test "x$with_headers" = xno || test ! -f "$target_header_dir/stdio.h"; } ; then
13535 inhibit_libc=true
13539 # When building gcc with a cross-compiler, we need to adjust things so
13540 # that the generator programs are still built with the native compiler.
13541 # Also, we cannot run fixincludes.
13543 # These are the normal (build=host) settings:
13544 CC_FOR_BUILD='$(CC)'
13545 CXX_FOR_BUILD='$(CXX)'
13546 BUILD_CFLAGS='$(ALL_CFLAGS)'
13547 BUILD_CXXFLAGS='$(ALL_CXXFLAGS)'
13548 BUILD_LDFLAGS='$(LDFLAGS)'
13549 STMP_FIXINC=stmp-fixinc
13551 # And these apply if build != host, or we are generating coverage data
13552 if test x$build != x$host || test "x$coverage_flags" != x
13553 then
13554 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS-$@) $(CFLAGS_FOR_BUILD)'
13555 BUILD_CXXFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS-$@) $(CXXFLAGS_FOR_BUILD)'
13556 BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
13560 if test x$enable_fixincludes = xno;
13561 then
13562 STMP_FIXINC=''
13565 # Expand extra_headers to include complete path.
13566 # This substitutes for lots of t-* files.
13567 extra_headers_list=
13568 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
13569 for file in ${extra_headers} ; do
13570 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
13571 done
13573 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
13574 if test x"$use_gcc_tgmath" = xyes
13575 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
13578 # Define collect2 in Makefile.
13579 case $host_can_use_collect2 in
13580 no) collect2= ;;
13581 *) collect2='collect2$(exeext)' ;;
13582 esac
13585 # Add a definition of USE_COLLECT2 if system wants one.
13586 case $use_collect2 in
13587 no) use_collect2= ;;
13588 "") ;;
13590 host_xm_defines="${host_xm_defines} USE_COLLECT2"
13591 xm_defines="${xm_defines} USE_COLLECT2"
13592 case $host_can_use_collect2 in
13594 as_fn_error $? "collect2 is required but cannot be built on this system" "$LINENO" 5
13596 esac
13598 esac
13601 cat >>confdefs.h <<_ACEOF
13602 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
13603 _ACEOF
13606 # ---------------------------
13607 # Assembler & linker features
13608 # ---------------------------
13610 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
13611 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
13612 # However when ld-new is first executed from the build tree, libtool will
13613 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
13614 # to the build tree. While doing this we need to use the previous-stage
13615 # linker, or we have an infinite loop. The presence of a shell script as
13616 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
13617 # the gcc/collect-ld script. So we need to know how libtool works, or
13618 # exec-tool will fail.
13621 case `pwd` in
13622 *\ * | *\ *)
13623 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
13624 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
13625 esac
13629 macro_version='2.2.7a'
13630 macro_revision='1.3134'
13644 ltmain="$ac_aux_dir/ltmain.sh"
13646 # Backslashify metacharacters that are still active within
13647 # double-quoted strings.
13648 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
13650 # Same as above, but do not quote variable references.
13651 double_quote_subst='s/\(["`\\]\)/\\\1/g'
13653 # Sed substitution to delay expansion of an escaped shell variable in a
13654 # double_quote_subst'ed string.
13655 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
13657 # Sed substitution to delay expansion of an escaped single quote.
13658 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
13660 # Sed substitution to avoid accidental globbing in evaled expressions
13661 no_glob_subst='s/\*/\\\*/g'
13663 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13664 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
13665 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
13667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
13668 $as_echo_n "checking how to print strings... " >&6; }
13669 # Test print first, because it will be a builtin if present.
13670 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
13671 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
13672 ECHO='print -r --'
13673 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
13674 ECHO='printf %s\n'
13675 else
13676 # Use this function as a fallback that always works.
13677 func_fallback_echo ()
13679 eval 'cat <<_LTECHO_EOF
13681 _LTECHO_EOF'
13683 ECHO='func_fallback_echo'
13686 # func_echo_all arg...
13687 # Invoke $ECHO with all args, space-separated.
13688 func_echo_all ()
13690 $ECHO ""
13693 case "$ECHO" in
13694 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
13695 $as_echo "printf" >&6; } ;;
13696 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
13697 $as_echo "print -r" >&6; } ;;
13698 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
13699 $as_echo "cat" >&6; } ;;
13700 esac
13715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
13716 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
13717 if ${ac_cv_path_SED+:} false; then :
13718 $as_echo_n "(cached) " >&6
13719 else
13720 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
13721 for ac_i in 1 2 3 4 5 6 7; do
13722 ac_script="$ac_script$as_nl$ac_script"
13723 done
13724 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
13725 { ac_script=; unset ac_script;}
13726 if test -z "$SED"; then
13727 ac_path_SED_found=false
13728 # Loop through the user's path and test for each of PROGNAME-LIST
13729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13730 for as_dir in $PATH
13732 IFS=$as_save_IFS
13733 test -z "$as_dir" && as_dir=.
13734 for ac_prog in sed gsed; do
13735 for ac_exec_ext in '' $ac_executable_extensions; do
13736 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
13737 as_fn_executable_p "$ac_path_SED" || continue
13738 # Check for GNU ac_path_SED and select it if it is found.
13739 # Check for GNU $ac_path_SED
13740 case `"$ac_path_SED" --version 2>&1` in
13741 *GNU*)
13742 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
13744 ac_count=0
13745 $as_echo_n 0123456789 >"conftest.in"
13746 while :
13748 cat "conftest.in" "conftest.in" >"conftest.tmp"
13749 mv "conftest.tmp" "conftest.in"
13750 cp "conftest.in" "conftest.nl"
13751 $as_echo '' >> "conftest.nl"
13752 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
13753 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13754 as_fn_arith $ac_count + 1 && ac_count=$as_val
13755 if test $ac_count -gt ${ac_path_SED_max-0}; then
13756 # Best one so far, save it but keep looking for a better one
13757 ac_cv_path_SED="$ac_path_SED"
13758 ac_path_SED_max=$ac_count
13760 # 10*(2^10) chars as input seems more than enough
13761 test $ac_count -gt 10 && break
13762 done
13763 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13764 esac
13766 $ac_path_SED_found && break 3
13767 done
13768 done
13769 done
13770 IFS=$as_save_IFS
13771 if test -z "$ac_cv_path_SED"; then
13772 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
13774 else
13775 ac_cv_path_SED=$SED
13779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
13780 $as_echo "$ac_cv_path_SED" >&6; }
13781 SED="$ac_cv_path_SED"
13782 rm -f conftest.sed
13784 test -z "$SED" && SED=sed
13785 Xsed="$SED -e 1s/^X//"
13797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
13798 $as_echo_n "checking for fgrep... " >&6; }
13799 if ${ac_cv_path_FGREP+:} false; then :
13800 $as_echo_n "(cached) " >&6
13801 else
13802 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
13803 then ac_cv_path_FGREP="$GREP -F"
13804 else
13805 if test -z "$FGREP"; then
13806 ac_path_FGREP_found=false
13807 # Loop through the user's path and test for each of PROGNAME-LIST
13808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13809 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
13811 IFS=$as_save_IFS
13812 test -z "$as_dir" && as_dir=.
13813 for ac_prog in fgrep; do
13814 for ac_exec_ext in '' $ac_executable_extensions; do
13815 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
13816 as_fn_executable_p "$ac_path_FGREP" || continue
13817 # Check for GNU ac_path_FGREP and select it if it is found.
13818 # Check for GNU $ac_path_FGREP
13819 case `"$ac_path_FGREP" --version 2>&1` in
13820 *GNU*)
13821 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
13823 ac_count=0
13824 $as_echo_n 0123456789 >"conftest.in"
13825 while :
13827 cat "conftest.in" "conftest.in" >"conftest.tmp"
13828 mv "conftest.tmp" "conftest.in"
13829 cp "conftest.in" "conftest.nl"
13830 $as_echo 'FGREP' >> "conftest.nl"
13831 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
13832 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13833 as_fn_arith $ac_count + 1 && ac_count=$as_val
13834 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
13835 # Best one so far, save it but keep looking for a better one
13836 ac_cv_path_FGREP="$ac_path_FGREP"
13837 ac_path_FGREP_max=$ac_count
13839 # 10*(2^10) chars as input seems more than enough
13840 test $ac_count -gt 10 && break
13841 done
13842 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13843 esac
13845 $ac_path_FGREP_found && break 3
13846 done
13847 done
13848 done
13849 IFS=$as_save_IFS
13850 if test -z "$ac_cv_path_FGREP"; then
13851 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
13853 else
13854 ac_cv_path_FGREP=$FGREP
13859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
13860 $as_echo "$ac_cv_path_FGREP" >&6; }
13861 FGREP="$ac_cv_path_FGREP"
13864 test -z "$GREP" && GREP=grep
13884 # Check whether --with-gnu-ld was given.
13885 if test "${with_gnu_ld+set}" = set; then :
13886 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13887 else
13888 with_gnu_ld=no
13891 ac_prog=ld
13892 if test "$GCC" = yes; then
13893 # Check if gcc -print-prog-name=ld gives a path.
13894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13895 $as_echo_n "checking for ld used by $CC... " >&6; }
13896 case $host in
13897 *-*-mingw*)
13898 # gcc leaves a trailing carriage return which upsets mingw
13899 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13901 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13902 esac
13903 case $ac_prog in
13904 # Accept absolute paths.
13905 [\\/]* | ?:[\\/]*)
13906 re_direlt='/[^/][^/]*/\.\./'
13907 # Canonicalize the pathname of ld
13908 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13909 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13910 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13911 done
13912 test -z "$LD" && LD="$ac_prog"
13915 # If it fails, then pretend we aren't using GCC.
13916 ac_prog=ld
13919 # If it is relative, then search for the first ld in PATH.
13920 with_gnu_ld=unknown
13922 esac
13923 elif test "$with_gnu_ld" = yes; then
13924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13925 $as_echo_n "checking for GNU ld... " >&6; }
13926 else
13927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13928 $as_echo_n "checking for non-GNU ld... " >&6; }
13930 if ${lt_cv_path_LD+:} false; then :
13931 $as_echo_n "(cached) " >&6
13932 else
13933 if test -z "$LD"; then
13934 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13935 for ac_dir in $PATH; do
13936 IFS="$lt_save_ifs"
13937 test -z "$ac_dir" && ac_dir=.
13938 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13939 lt_cv_path_LD="$ac_dir/$ac_prog"
13940 # Check to see if the program is GNU ld. I'd rather use --version,
13941 # but apparently some variants of GNU ld only accept -v.
13942 # Break only if it was the GNU/non-GNU ld that we prefer.
13943 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13944 *GNU* | *'with BFD'*)
13945 test "$with_gnu_ld" != no && break
13948 test "$with_gnu_ld" != yes && break
13950 esac
13952 done
13953 IFS="$lt_save_ifs"
13954 else
13955 lt_cv_path_LD="$LD" # Let the user override the test with a path.
13959 LD="$lt_cv_path_LD"
13960 if test -n "$LD"; then
13961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13962 $as_echo "$LD" >&6; }
13963 else
13964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13965 $as_echo "no" >&6; }
13967 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13969 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13970 if ${lt_cv_prog_gnu_ld+:} false; then :
13971 $as_echo_n "(cached) " >&6
13972 else
13973 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13974 case `$LD -v 2>&1 </dev/null` in
13975 *GNU* | *'with BFD'*)
13976 lt_cv_prog_gnu_ld=yes
13979 lt_cv_prog_gnu_ld=no
13981 esac
13983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13984 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13985 with_gnu_ld=$lt_cv_prog_gnu_ld
13995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
13996 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
13997 if ${lt_cv_path_NM+:} false; then :
13998 $as_echo_n "(cached) " >&6
13999 else
14000 if test -n "$NM"; then
14001 # Let the user override the test.
14002 lt_cv_path_NM="$NM"
14003 else
14004 lt_nm_to_check="${ac_tool_prefix}nm"
14005 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
14006 lt_nm_to_check="$lt_nm_to_check nm"
14008 for lt_tmp_nm in $lt_nm_to_check; do
14009 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14010 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
14011 IFS="$lt_save_ifs"
14012 test -z "$ac_dir" && ac_dir=.
14013 tmp_nm="$ac_dir/$lt_tmp_nm"
14014 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
14015 # Check to see if the nm accepts a BSD-compat flag.
14016 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
14017 # nm: unknown option "B" ignored
14018 # Tru64's nm complains that /dev/null is an invalid object file
14019 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
14020 */dev/null* | *'Invalid file or object type'*)
14021 lt_cv_path_NM="$tmp_nm -B"
14022 break
14025 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
14026 */dev/null*)
14027 lt_cv_path_NM="$tmp_nm -p"
14028 break
14031 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
14032 continue # so that we can try to find one that supports BSD flags
14034 esac
14036 esac
14038 done
14039 IFS="$lt_save_ifs"
14040 done
14041 : ${lt_cv_path_NM=no}
14044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
14045 $as_echo "$lt_cv_path_NM" >&6; }
14046 if test "$lt_cv_path_NM" != "no"; then
14047 NM="$lt_cv_path_NM"
14048 else
14049 # Didn't find any BSD compatible name lister, look for dumpbin.
14050 if test -n "$DUMPBIN"; then :
14051 # Let the user override the test.
14052 else
14053 if test -n "$ac_tool_prefix"; then
14054 for ac_prog in dumpbin "link -dump"
14056 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
14057 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
14058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14059 $as_echo_n "checking for $ac_word... " >&6; }
14060 if ${ac_cv_prog_DUMPBIN+:} false; then :
14061 $as_echo_n "(cached) " >&6
14062 else
14063 if test -n "$DUMPBIN"; then
14064 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
14065 else
14066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14067 for as_dir in $PATH
14069 IFS=$as_save_IFS
14070 test -z "$as_dir" && as_dir=.
14071 for ac_exec_ext in '' $ac_executable_extensions; do
14072 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14073 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
14074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14075 break 2
14077 done
14078 done
14079 IFS=$as_save_IFS
14083 DUMPBIN=$ac_cv_prog_DUMPBIN
14084 if test -n "$DUMPBIN"; then
14085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
14086 $as_echo "$DUMPBIN" >&6; }
14087 else
14088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14089 $as_echo "no" >&6; }
14093 test -n "$DUMPBIN" && break
14094 done
14096 if test -z "$DUMPBIN"; then
14097 ac_ct_DUMPBIN=$DUMPBIN
14098 for ac_prog in dumpbin "link -dump"
14100 # Extract the first word of "$ac_prog", so it can be a program name with args.
14101 set dummy $ac_prog; ac_word=$2
14102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14103 $as_echo_n "checking for $ac_word... " >&6; }
14104 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
14105 $as_echo_n "(cached) " >&6
14106 else
14107 if test -n "$ac_ct_DUMPBIN"; then
14108 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
14109 else
14110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14111 for as_dir in $PATH
14113 IFS=$as_save_IFS
14114 test -z "$as_dir" && as_dir=.
14115 for ac_exec_ext in '' $ac_executable_extensions; do
14116 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14117 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
14118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14119 break 2
14121 done
14122 done
14123 IFS=$as_save_IFS
14127 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
14128 if test -n "$ac_ct_DUMPBIN"; then
14129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
14130 $as_echo "$ac_ct_DUMPBIN" >&6; }
14131 else
14132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14133 $as_echo "no" >&6; }
14137 test -n "$ac_ct_DUMPBIN" && break
14138 done
14140 if test "x$ac_ct_DUMPBIN" = x; then
14141 DUMPBIN=":"
14142 else
14143 case $cross_compiling:$ac_tool_warned in
14144 yes:)
14145 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14146 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14147 ac_tool_warned=yes ;;
14148 esac
14149 DUMPBIN=$ac_ct_DUMPBIN
14153 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
14154 *COFF*)
14155 DUMPBIN="$DUMPBIN -symbols"
14158 DUMPBIN=:
14160 esac
14163 if test "$DUMPBIN" != ":"; then
14164 NM="$DUMPBIN"
14167 test -z "$NM" && NM=nm
14174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
14175 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
14176 if ${lt_cv_nm_interface+:} false; then :
14177 $as_echo_n "(cached) " >&6
14178 else
14179 lt_cv_nm_interface="BSD nm"
14180 echo "int some_variable = 0;" > conftest.$ac_ext
14181 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
14182 (eval "$ac_compile" 2>conftest.err)
14183 cat conftest.err >&5
14184 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
14185 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
14186 cat conftest.err >&5
14187 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
14188 cat conftest.out >&5
14189 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
14190 lt_cv_nm_interface="MS dumpbin"
14192 rm -f conftest*
14194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
14195 $as_echo "$lt_cv_nm_interface" >&6; }
14197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
14198 $as_echo_n "checking whether ln -s works... " >&6; }
14199 LN_S=$as_ln_s
14200 if test "$LN_S" = "ln -s"; then
14201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14202 $as_echo "yes" >&6; }
14203 else
14204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
14205 $as_echo "no, using $LN_S" >&6; }
14208 # find the maximum length of command line arguments
14209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
14210 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
14211 if ${lt_cv_sys_max_cmd_len+:} false; then :
14212 $as_echo_n "(cached) " >&6
14213 else
14215 teststring="ABCD"
14217 case $build_os in
14218 msdosdjgpp*)
14219 # On DJGPP, this test can blow up pretty badly due to problems in libc
14220 # (any single argument exceeding 2000 bytes causes a buffer overrun
14221 # during glob expansion). Even if it were fixed, the result of this
14222 # check would be larger than it should be.
14223 lt_cv_sys_max_cmd_len=12288; # 12K is about right
14226 gnu*)
14227 # Under GNU Hurd, this test is not required because there is
14228 # no limit to the length of command line arguments.
14229 # Libtool will interpret -1 as no limit whatsoever
14230 lt_cv_sys_max_cmd_len=-1;
14233 cygwin* | mingw* | cegcc*)
14234 # On Win9x/ME, this test blows up -- it succeeds, but takes
14235 # about 5 minutes as the teststring grows exponentially.
14236 # Worse, since 9x/ME are not pre-emptively multitasking,
14237 # you end up with a "frozen" computer, even though with patience
14238 # the test eventually succeeds (with a max line length of 256k).
14239 # Instead, let's just punt: use the minimum linelength reported by
14240 # all of the supported platforms: 8192 (on NT/2K/XP).
14241 lt_cv_sys_max_cmd_len=8192;
14244 mint*)
14245 # On MiNT this can take a long time and run out of memory.
14246 lt_cv_sys_max_cmd_len=8192;
14249 amigaos*)
14250 # On AmigaOS with pdksh, this test takes hours, literally.
14251 # So we just punt and use a minimum line length of 8192.
14252 lt_cv_sys_max_cmd_len=8192;
14255 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
14256 # This has been around since 386BSD, at least. Likely further.
14257 if test -x /sbin/sysctl; then
14258 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
14259 elif test -x /usr/sbin/sysctl; then
14260 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
14261 else
14262 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
14264 # And add a safety zone
14265 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
14266 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
14269 interix*)
14270 # We know the value 262144 and hardcode it with a safety zone (like BSD)
14271 lt_cv_sys_max_cmd_len=196608
14274 osf*)
14275 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
14276 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
14277 # nice to cause kernel panics so lets avoid the loop below.
14278 # First set a reasonable default.
14279 lt_cv_sys_max_cmd_len=16384
14281 if test -x /sbin/sysconfig; then
14282 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
14283 *1*) lt_cv_sys_max_cmd_len=-1 ;;
14284 esac
14287 sco3.2v5*)
14288 lt_cv_sys_max_cmd_len=102400
14290 sysv5* | sco5v6* | sysv4.2uw2*)
14291 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
14292 if test -n "$kargmax"; then
14293 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
14294 else
14295 lt_cv_sys_max_cmd_len=32768
14299 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
14300 if test -n "$lt_cv_sys_max_cmd_len"; then
14301 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
14302 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
14303 else
14304 # Make teststring a little bigger before we do anything with it.
14305 # a 1K string should be a reasonable start.
14306 for i in 1 2 3 4 5 6 7 8 ; do
14307 teststring=$teststring$teststring
14308 done
14309 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
14310 # If test is not a shell built-in, we'll probably end up computing a
14311 # maximum length that is only half of the actual maximum length, but
14312 # we can't tell.
14313 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
14314 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
14315 test $i != 17 # 1/2 MB should be enough
14317 i=`expr $i + 1`
14318 teststring=$teststring$teststring
14319 done
14320 # Only check the string length outside the loop.
14321 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
14322 teststring=
14323 # Add a significant safety factor because C++ compilers can tack on
14324 # massive amounts of additional arguments before passing them to the
14325 # linker. It appears as though 1/2 is a usable value.
14326 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
14329 esac
14333 if test -n $lt_cv_sys_max_cmd_len ; then
14334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
14335 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
14336 else
14337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
14338 $as_echo "none" >&6; }
14340 max_cmd_len=$lt_cv_sys_max_cmd_len
14347 : ${CP="cp -f"}
14348 : ${MV="mv -f"}
14349 : ${RM="rm -f"}
14351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
14352 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
14353 # Try some XSI features
14354 xsi_shell=no
14355 ( _lt_dummy="a/b/c"
14356 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
14357 = c,a/b,, \
14358 && eval 'test $(( 1 + 1 )) -eq 2 \
14359 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
14360 && xsi_shell=yes
14361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
14362 $as_echo "$xsi_shell" >&6; }
14365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
14366 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
14367 lt_shell_append=no
14368 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
14369 >/dev/null 2>&1 \
14370 && lt_shell_append=yes
14371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
14372 $as_echo "$lt_shell_append" >&6; }
14375 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
14376 lt_unset=unset
14377 else
14378 lt_unset=false
14385 # test EBCDIC or ASCII
14386 case `echo X|tr X '\101'` in
14387 A) # ASCII based system
14388 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
14389 lt_SP2NL='tr \040 \012'
14390 lt_NL2SP='tr \015\012 \040\040'
14392 *) # EBCDIC based system
14393 lt_SP2NL='tr \100 \n'
14394 lt_NL2SP='tr \r\n \100\100'
14396 esac
14406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
14407 $as_echo_n "checking for $LD option to reload object files... " >&6; }
14408 if ${lt_cv_ld_reload_flag+:} false; then :
14409 $as_echo_n "(cached) " >&6
14410 else
14411 lt_cv_ld_reload_flag='-r'
14413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
14414 $as_echo "$lt_cv_ld_reload_flag" >&6; }
14415 reload_flag=$lt_cv_ld_reload_flag
14416 case $reload_flag in
14417 "" | " "*) ;;
14418 *) reload_flag=" $reload_flag" ;;
14419 esac
14420 reload_cmds='$LD$reload_flag -o $output$reload_objs'
14421 case $host_os in
14422 darwin*)
14423 if test "$GCC" = yes; then
14424 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
14425 else
14426 reload_cmds='$LD$reload_flag -o $output$reload_objs'
14429 esac
14439 if test -n "$ac_tool_prefix"; then
14440 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
14441 set dummy ${ac_tool_prefix}objdump; ac_word=$2
14442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14443 $as_echo_n "checking for $ac_word... " >&6; }
14444 if ${ac_cv_prog_OBJDUMP+:} false; then :
14445 $as_echo_n "(cached) " >&6
14446 else
14447 if test -n "$OBJDUMP"; then
14448 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
14449 else
14450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14451 for as_dir in $PATH
14453 IFS=$as_save_IFS
14454 test -z "$as_dir" && as_dir=.
14455 for ac_exec_ext in '' $ac_executable_extensions; do
14456 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14457 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
14458 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14459 break 2
14461 done
14462 done
14463 IFS=$as_save_IFS
14467 OBJDUMP=$ac_cv_prog_OBJDUMP
14468 if test -n "$OBJDUMP"; then
14469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
14470 $as_echo "$OBJDUMP" >&6; }
14471 else
14472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14473 $as_echo "no" >&6; }
14478 if test -z "$ac_cv_prog_OBJDUMP"; then
14479 ac_ct_OBJDUMP=$OBJDUMP
14480 # Extract the first word of "objdump", so it can be a program name with args.
14481 set dummy objdump; ac_word=$2
14482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14483 $as_echo_n "checking for $ac_word... " >&6; }
14484 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
14485 $as_echo_n "(cached) " >&6
14486 else
14487 if test -n "$ac_ct_OBJDUMP"; then
14488 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
14489 else
14490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14491 for as_dir in $PATH
14493 IFS=$as_save_IFS
14494 test -z "$as_dir" && as_dir=.
14495 for ac_exec_ext in '' $ac_executable_extensions; do
14496 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14497 ac_cv_prog_ac_ct_OBJDUMP="objdump"
14498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14499 break 2
14501 done
14502 done
14503 IFS=$as_save_IFS
14507 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
14508 if test -n "$ac_ct_OBJDUMP"; then
14509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
14510 $as_echo "$ac_ct_OBJDUMP" >&6; }
14511 else
14512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14513 $as_echo "no" >&6; }
14516 if test "x$ac_ct_OBJDUMP" = x; then
14517 OBJDUMP="false"
14518 else
14519 case $cross_compiling:$ac_tool_warned in
14520 yes:)
14521 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14522 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14523 ac_tool_warned=yes ;;
14524 esac
14525 OBJDUMP=$ac_ct_OBJDUMP
14527 else
14528 OBJDUMP="$ac_cv_prog_OBJDUMP"
14531 test -z "$OBJDUMP" && OBJDUMP=objdump
14541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
14542 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
14543 if ${lt_cv_deplibs_check_method+:} false; then :
14544 $as_echo_n "(cached) " >&6
14545 else
14546 lt_cv_file_magic_cmd='$MAGIC_CMD'
14547 lt_cv_file_magic_test_file=
14548 lt_cv_deplibs_check_method='unknown'
14549 # Need to set the preceding variable on all platforms that support
14550 # interlibrary dependencies.
14551 # 'none' -- dependencies not supported.
14552 # `unknown' -- same as none, but documents that we really don't know.
14553 # 'pass_all' -- all dependencies passed with no checks.
14554 # 'test_compile' -- check by making test program.
14555 # 'file_magic [[regex]]' -- check by looking for files in library path
14556 # which responds to the $file_magic_cmd with a given extended regex.
14557 # If you have `file' or equivalent on your system and you're not sure
14558 # whether `pass_all' will *always* work, you probably want this one.
14560 case $host_os in
14561 aix[4-9]*)
14562 lt_cv_deplibs_check_method=pass_all
14565 beos*)
14566 lt_cv_deplibs_check_method=pass_all
14569 bsdi[45]*)
14570 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
14571 lt_cv_file_magic_cmd='/usr/bin/file -L'
14572 lt_cv_file_magic_test_file=/shlib/libc.so
14575 cygwin*)
14576 # func_win32_libid is a shell function defined in ltmain.sh
14577 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
14578 lt_cv_file_magic_cmd='func_win32_libid'
14581 mingw* | pw32*)
14582 # Base MSYS/MinGW do not provide the 'file' command needed by
14583 # func_win32_libid shell function, so use a weaker test based on 'objdump',
14584 # unless we find 'file', for example because we are cross-compiling.
14585 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
14586 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
14587 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
14588 lt_cv_file_magic_cmd='func_win32_libid'
14589 else
14590 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
14591 lt_cv_file_magic_cmd='$OBJDUMP -f'
14595 cegcc*)
14596 # use the weaker test based on 'objdump'. See mingw*.
14597 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
14598 lt_cv_file_magic_cmd='$OBJDUMP -f'
14601 darwin* | rhapsody*)
14602 lt_cv_deplibs_check_method=pass_all
14605 freebsd* | dragonfly*)
14606 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
14607 case $host_cpu in
14608 i*86 )
14609 # Not sure whether the presence of OpenBSD here was a mistake.
14610 # Let's accept both of them until this is cleared up.
14611 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
14612 lt_cv_file_magic_cmd=/usr/bin/file
14613 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
14615 esac
14616 else
14617 lt_cv_deplibs_check_method=pass_all
14621 gnu*)
14622 lt_cv_deplibs_check_method=pass_all
14625 haiku*)
14626 lt_cv_deplibs_check_method=pass_all
14629 hpux10.20* | hpux11*)
14630 lt_cv_file_magic_cmd=/usr/bin/file
14631 case $host_cpu in
14632 ia64*)
14633 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
14634 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
14636 hppa*64*)
14637 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]'
14638 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
14641 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
14642 lt_cv_file_magic_test_file=/usr/lib/libc.sl
14644 esac
14647 interix[3-9]*)
14648 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
14649 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
14652 irix5* | irix6* | nonstopux*)
14653 case $LD in
14654 *-32|*"-32 ") libmagic=32-bit;;
14655 *-n32|*"-n32 ") libmagic=N32;;
14656 *-64|*"-64 ") libmagic=64-bit;;
14657 *) libmagic=never-match;;
14658 esac
14659 lt_cv_deplibs_check_method=pass_all
14662 # This must be Linux ELF.
14663 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
14664 lt_cv_deplibs_check_method=pass_all
14667 netbsd*)
14668 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
14669 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
14670 else
14671 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
14675 newos6*)
14676 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
14677 lt_cv_file_magic_cmd=/usr/bin/file
14678 lt_cv_file_magic_test_file=/usr/lib/libnls.so
14681 *nto* | *qnx*)
14682 lt_cv_deplibs_check_method=pass_all
14685 openbsd*)
14686 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14687 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
14688 else
14689 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
14693 osf3* | osf4* | osf5*)
14694 lt_cv_deplibs_check_method=pass_all
14697 rdos*)
14698 lt_cv_deplibs_check_method=pass_all
14701 solaris*)
14702 lt_cv_deplibs_check_method=pass_all
14705 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14706 lt_cv_deplibs_check_method=pass_all
14709 sysv4 | sysv4.3*)
14710 case $host_vendor in
14711 motorola)
14712 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]'
14713 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
14715 ncr)
14716 lt_cv_deplibs_check_method=pass_all
14718 sequent)
14719 lt_cv_file_magic_cmd='/bin/file'
14720 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
14722 sni)
14723 lt_cv_file_magic_cmd='/bin/file'
14724 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
14725 lt_cv_file_magic_test_file=/lib/libc.so
14727 siemens)
14728 lt_cv_deplibs_check_method=pass_all
14731 lt_cv_deplibs_check_method=pass_all
14733 esac
14736 tpf*)
14737 lt_cv_deplibs_check_method=pass_all
14739 vxworks*)
14740 # Assume VxWorks cross toolchains are built on Linux, possibly
14741 # as canadian for Windows hosts.
14742 lt_cv_deplibs_check_method=pass_all
14744 esac
14747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
14748 $as_echo "$lt_cv_deplibs_check_method" >&6; }
14749 file_magic_cmd=$lt_cv_file_magic_cmd
14750 deplibs_check_method=$lt_cv_deplibs_check_method
14751 test -z "$deplibs_check_method" && deplibs_check_method=unknown
14764 if test -n "$ac_tool_prefix"; then
14765 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14766 set dummy ${ac_tool_prefix}ar; ac_word=$2
14767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14768 $as_echo_n "checking for $ac_word... " >&6; }
14769 if ${ac_cv_prog_AR+:} false; then :
14770 $as_echo_n "(cached) " >&6
14771 else
14772 if test -n "$AR"; then
14773 ac_cv_prog_AR="$AR" # Let the user override the test.
14774 else
14775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14776 for as_dir in $PATH
14778 IFS=$as_save_IFS
14779 test -z "$as_dir" && as_dir=.
14780 for ac_exec_ext in '' $ac_executable_extensions; do
14781 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14782 ac_cv_prog_AR="${ac_tool_prefix}ar"
14783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14784 break 2
14786 done
14787 done
14788 IFS=$as_save_IFS
14792 AR=$ac_cv_prog_AR
14793 if test -n "$AR"; then
14794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
14795 $as_echo "$AR" >&6; }
14796 else
14797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14798 $as_echo "no" >&6; }
14803 if test -z "$ac_cv_prog_AR"; then
14804 ac_ct_AR=$AR
14805 # Extract the first word of "ar", so it can be a program name with args.
14806 set dummy ar; ac_word=$2
14807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14808 $as_echo_n "checking for $ac_word... " >&6; }
14809 if ${ac_cv_prog_ac_ct_AR+:} false; then :
14810 $as_echo_n "(cached) " >&6
14811 else
14812 if test -n "$ac_ct_AR"; then
14813 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14814 else
14815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14816 for as_dir in $PATH
14818 IFS=$as_save_IFS
14819 test -z "$as_dir" && as_dir=.
14820 for ac_exec_ext in '' $ac_executable_extensions; do
14821 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14822 ac_cv_prog_ac_ct_AR="ar"
14823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14824 break 2
14826 done
14827 done
14828 IFS=$as_save_IFS
14832 ac_ct_AR=$ac_cv_prog_ac_ct_AR
14833 if test -n "$ac_ct_AR"; then
14834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
14835 $as_echo "$ac_ct_AR" >&6; }
14836 else
14837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14838 $as_echo "no" >&6; }
14841 if test "x$ac_ct_AR" = x; then
14842 AR="false"
14843 else
14844 case $cross_compiling:$ac_tool_warned in
14845 yes:)
14846 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14847 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14848 ac_tool_warned=yes ;;
14849 esac
14850 AR=$ac_ct_AR
14852 else
14853 AR="$ac_cv_prog_AR"
14856 test -z "$AR" && AR=ar
14857 test -z "$AR_FLAGS" && AR_FLAGS=cru
14869 if test -n "$ac_tool_prefix"; then
14870 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14871 set dummy ${ac_tool_prefix}strip; ac_word=$2
14872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14873 $as_echo_n "checking for $ac_word... " >&6; }
14874 if ${ac_cv_prog_STRIP+:} false; then :
14875 $as_echo_n "(cached) " >&6
14876 else
14877 if test -n "$STRIP"; then
14878 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14879 else
14880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14881 for as_dir in $PATH
14883 IFS=$as_save_IFS
14884 test -z "$as_dir" && as_dir=.
14885 for ac_exec_ext in '' $ac_executable_extensions; do
14886 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14887 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14889 break 2
14891 done
14892 done
14893 IFS=$as_save_IFS
14897 STRIP=$ac_cv_prog_STRIP
14898 if test -n "$STRIP"; then
14899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
14900 $as_echo "$STRIP" >&6; }
14901 else
14902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14903 $as_echo "no" >&6; }
14908 if test -z "$ac_cv_prog_STRIP"; then
14909 ac_ct_STRIP=$STRIP
14910 # Extract the first word of "strip", so it can be a program name with args.
14911 set dummy strip; ac_word=$2
14912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14913 $as_echo_n "checking for $ac_word... " >&6; }
14914 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
14915 $as_echo_n "(cached) " >&6
14916 else
14917 if test -n "$ac_ct_STRIP"; then
14918 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14919 else
14920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14921 for as_dir in $PATH
14923 IFS=$as_save_IFS
14924 test -z "$as_dir" && as_dir=.
14925 for ac_exec_ext in '' $ac_executable_extensions; do
14926 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14927 ac_cv_prog_ac_ct_STRIP="strip"
14928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14929 break 2
14931 done
14932 done
14933 IFS=$as_save_IFS
14937 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14938 if test -n "$ac_ct_STRIP"; then
14939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
14940 $as_echo "$ac_ct_STRIP" >&6; }
14941 else
14942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14943 $as_echo "no" >&6; }
14946 if test "x$ac_ct_STRIP" = x; then
14947 STRIP=":"
14948 else
14949 case $cross_compiling:$ac_tool_warned in
14950 yes:)
14951 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14952 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14953 ac_tool_warned=yes ;;
14954 esac
14955 STRIP=$ac_ct_STRIP
14957 else
14958 STRIP="$ac_cv_prog_STRIP"
14961 test -z "$STRIP" && STRIP=:
14968 if test -n "$ac_tool_prefix"; then
14969 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
14970 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
14971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14972 $as_echo_n "checking for $ac_word... " >&6; }
14973 if ${ac_cv_prog_RANLIB+:} false; then :
14974 $as_echo_n "(cached) " >&6
14975 else
14976 if test -n "$RANLIB"; then
14977 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14978 else
14979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14980 for as_dir in $PATH
14982 IFS=$as_save_IFS
14983 test -z "$as_dir" && as_dir=.
14984 for ac_exec_ext in '' $ac_executable_extensions; do
14985 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14986 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
14987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14988 break 2
14990 done
14991 done
14992 IFS=$as_save_IFS
14996 RANLIB=$ac_cv_prog_RANLIB
14997 if test -n "$RANLIB"; then
14998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
14999 $as_echo "$RANLIB" >&6; }
15000 else
15001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15002 $as_echo "no" >&6; }
15007 if test -z "$ac_cv_prog_RANLIB"; then
15008 ac_ct_RANLIB=$RANLIB
15009 # Extract the first word of "ranlib", so it can be a program name with args.
15010 set dummy ranlib; ac_word=$2
15011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15012 $as_echo_n "checking for $ac_word... " >&6; }
15013 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
15014 $as_echo_n "(cached) " >&6
15015 else
15016 if test -n "$ac_ct_RANLIB"; then
15017 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
15018 else
15019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15020 for as_dir in $PATH
15022 IFS=$as_save_IFS
15023 test -z "$as_dir" && as_dir=.
15024 for ac_exec_ext in '' $ac_executable_extensions; do
15025 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15026 ac_cv_prog_ac_ct_RANLIB="ranlib"
15027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15028 break 2
15030 done
15031 done
15032 IFS=$as_save_IFS
15036 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
15037 if test -n "$ac_ct_RANLIB"; then
15038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
15039 $as_echo "$ac_ct_RANLIB" >&6; }
15040 else
15041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15042 $as_echo "no" >&6; }
15045 if test "x$ac_ct_RANLIB" = x; then
15046 RANLIB=":"
15047 else
15048 case $cross_compiling:$ac_tool_warned in
15049 yes:)
15050 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15051 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15052 ac_tool_warned=yes ;;
15053 esac
15054 RANLIB=$ac_ct_RANLIB
15056 else
15057 RANLIB="$ac_cv_prog_RANLIB"
15060 test -z "$RANLIB" && RANLIB=:
15067 # Determine commands to create old-style static archives.
15068 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
15069 old_postinstall_cmds='chmod 644 $oldlib'
15070 old_postuninstall_cmds=
15072 if test -n "$RANLIB"; then
15073 case $host_os in
15074 openbsd*)
15075 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
15078 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
15080 esac
15081 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
15084 case $host_os in
15085 darwin*)
15086 lock_old_archive_extraction=yes ;;
15088 lock_old_archive_extraction=no ;;
15089 esac
15129 # If no C compiler was specified, use CC.
15130 LTCC=${LTCC-"$CC"}
15132 # If no C compiler flags were specified, use CFLAGS.
15133 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15135 # Allow CC to be a program name with arguments.
15136 compiler=$CC
15139 # Check for command to grab the raw symbol name followed by C symbol from nm.
15140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
15141 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
15142 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
15143 $as_echo_n "(cached) " >&6
15144 else
15146 # These are sane defaults that work on at least a few old systems.
15147 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
15149 # Character class describing NM global symbol codes.
15150 symcode='[BCDEGRST]'
15152 # Regexp to match symbols that can be accessed directly from C.
15153 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
15155 # Define system-specific variables.
15156 case $host_os in
15157 aix*)
15158 symcode='[BCDT]'
15160 cygwin* | mingw* | pw32* | cegcc*)
15161 symcode='[ABCDGISTW]'
15163 hpux*)
15164 if test "$host_cpu" = ia64; then
15165 symcode='[ABCDEGRST]'
15168 irix* | nonstopux*)
15169 symcode='[BCDEGRST]'
15171 osf*)
15172 symcode='[BCDEGQRST]'
15174 solaris*)
15175 symcode='[BDRT]'
15177 sco3.2v5*)
15178 symcode='[DT]'
15180 sysv4.2uw2*)
15181 symcode='[DT]'
15183 sysv5* | sco5v6* | unixware* | OpenUNIX*)
15184 symcode='[ABDT]'
15186 sysv4)
15187 symcode='[DFNSTU]'
15189 esac
15191 # If we're using GNU nm, then use its standard symbol codes.
15192 case `$NM -V 2>&1` in
15193 *GNU* | *'with BFD'*)
15194 symcode='[ABCDGIRSTW]' ;;
15195 esac
15197 # Transform an extracted symbol line into a proper C declaration.
15198 # Some systems (esp. on ia64) link data and code symbols differently,
15199 # so use this general approach.
15200 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
15202 # Transform an extracted symbol line into symbol name and symbol address
15203 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
15204 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'"
15206 # Handle CRLF in mingw tool chain
15207 opt_cr=
15208 case $build_os in
15209 mingw*)
15210 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
15212 esac
15214 # Try without a prefix underscore, then with it.
15215 for ac_symprfx in "" "_"; do
15217 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
15218 symxfrm="\\1 $ac_symprfx\\2 \\2"
15220 # Write the raw and C identifiers.
15221 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
15222 # Fake it for dumpbin and say T for any non-static function
15223 # and D for any global variable.
15224 # Also find C++ and __fastcall symbols from MSVC++,
15225 # which start with @ or ?.
15226 lt_cv_sys_global_symbol_pipe="$AWK '"\
15227 " {last_section=section; section=\$ 3};"\
15228 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
15229 " \$ 0!~/External *\|/{next};"\
15230 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
15231 " {if(hide[section]) next};"\
15232 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
15233 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
15234 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
15235 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
15236 " ' prfx=^$ac_symprfx"
15237 else
15238 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
15241 # Check to see that the pipe works correctly.
15242 pipe_works=no
15244 rm -f conftest*
15245 cat > conftest.$ac_ext <<_LT_EOF
15246 #ifdef __cplusplus
15247 extern "C" {
15248 #endif
15249 char nm_test_var;
15250 void nm_test_func(void);
15251 void nm_test_func(void){}
15252 #ifdef __cplusplus
15254 #endif
15255 int main(){nm_test_var='a';nm_test_func();return(0);}
15256 _LT_EOF
15258 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15259 (eval $ac_compile) 2>&5
15260 ac_status=$?
15261 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15262 test $ac_status = 0; }; then
15263 # Now try to grab the symbols.
15264 nlist=conftest.nm
15265 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
15266 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
15267 ac_status=$?
15268 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15269 test $ac_status = 0; } && test -s "$nlist"; then
15270 # Try sorting and uniquifying the output.
15271 if sort "$nlist" | uniq > "$nlist"T; then
15272 mv -f "$nlist"T "$nlist"
15273 else
15274 rm -f "$nlist"T
15277 # Make sure that we snagged all the symbols we need.
15278 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
15279 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
15280 cat <<_LT_EOF > conftest.$ac_ext
15281 #ifdef __cplusplus
15282 extern "C" {
15283 #endif
15285 _LT_EOF
15286 # Now generate the symbol file.
15287 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
15289 cat <<_LT_EOF >> conftest.$ac_ext
15291 /* The mapping between symbol names and symbols. */
15292 const struct {
15293 const char *name;
15294 void *address;
15296 lt__PROGRAM__LTX_preloaded_symbols[] =
15298 { "@PROGRAM@", (void *) 0 },
15299 _LT_EOF
15300 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
15301 cat <<\_LT_EOF >> conftest.$ac_ext
15302 {0, (void *) 0}
15305 /* This works around a problem in FreeBSD linker */
15306 #ifdef FREEBSD_WORKAROUND
15307 static const void *lt_preloaded_setup() {
15308 return lt__PROGRAM__LTX_preloaded_symbols;
15310 #endif
15312 #ifdef __cplusplus
15314 #endif
15315 _LT_EOF
15316 # Now try linking the two files.
15317 mv conftest.$ac_objext conftstm.$ac_objext
15318 lt_save_LIBS="$LIBS"
15319 lt_save_CFLAGS="$CFLAGS"
15320 LIBS="conftstm.$ac_objext"
15321 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
15322 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15323 (eval $ac_link) 2>&5
15324 ac_status=$?
15325 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15326 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
15327 pipe_works=yes
15329 LIBS="$lt_save_LIBS"
15330 CFLAGS="$lt_save_CFLAGS"
15331 else
15332 echo "cannot find nm_test_func in $nlist" >&5
15334 else
15335 echo "cannot find nm_test_var in $nlist" >&5
15337 else
15338 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
15340 else
15341 echo "$progname: failed program was:" >&5
15342 cat conftest.$ac_ext >&5
15344 rm -rf conftest* conftst*
15346 # Do not use the global_symbol_pipe unless it works.
15347 if test "$pipe_works" = yes; then
15348 break
15349 else
15350 lt_cv_sys_global_symbol_pipe=
15352 done
15356 if test -z "$lt_cv_sys_global_symbol_pipe"; then
15357 lt_cv_sys_global_symbol_to_cdecl=
15359 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
15360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
15361 $as_echo "failed" >&6; }
15362 else
15363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
15364 $as_echo "ok" >&6; }
15388 # Check whether --enable-libtool-lock was given.
15389 if test "${enable_libtool_lock+set}" = set; then :
15390 enableval=$enable_libtool_lock;
15393 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
15395 # Some flags need to be propagated to the compiler or linker for good
15396 # libtool support.
15397 case $host in
15398 ia64-*-hpux*)
15399 # Find out which ABI we are using.
15400 echo 'int i;' > conftest.$ac_ext
15401 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15402 (eval $ac_compile) 2>&5
15403 ac_status=$?
15404 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15405 test $ac_status = 0; }; then
15406 case `/usr/bin/file conftest.$ac_objext` in
15407 *ELF-32*)
15408 HPUX_IA64_MODE="32"
15410 *ELF-64*)
15411 HPUX_IA64_MODE="64"
15413 esac
15415 rm -rf conftest*
15417 *-*-irix6*)
15418 # Find out which ABI we are using.
15419 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
15420 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15421 (eval $ac_compile) 2>&5
15422 ac_status=$?
15423 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15424 test $ac_status = 0; }; then
15425 if test "$lt_cv_prog_gnu_ld" = yes; then
15426 case `/usr/bin/file conftest.$ac_objext` in
15427 *32-bit*)
15428 LD="${LD-ld} -melf32bsmip"
15430 *N32*)
15431 LD="${LD-ld} -melf32bmipn32"
15433 *64-bit*)
15434 LD="${LD-ld} -melf64bmip"
15436 esac
15437 else
15438 case `/usr/bin/file conftest.$ac_objext` in
15439 *32-bit*)
15440 LD="${LD-ld} -32"
15442 *N32*)
15443 LD="${LD-ld} -n32"
15445 *64-bit*)
15446 LD="${LD-ld} -64"
15448 esac
15451 rm -rf conftest*
15454 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
15455 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
15456 # Find out which ABI we are using.
15457 echo 'int i;' > conftest.$ac_ext
15458 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15459 (eval $ac_compile) 2>&5
15460 ac_status=$?
15461 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15462 test $ac_status = 0; }; then
15463 case `/usr/bin/file conftest.o` in
15464 *32-bit*)
15465 case $host in
15466 x86_64-*kfreebsd*-gnu)
15467 LD="${LD-ld} -m elf_i386_fbsd"
15469 x86_64-*linux*)
15470 case `/usr/bin/file conftest.o` in
15471 *x86-64*)
15472 LD="${LD-ld} -m elf32_x86_64"
15475 LD="${LD-ld} -m elf_i386"
15477 esac
15479 powerpc64le-*linux*)
15480 LD="${LD-ld} -m elf32lppclinux"
15482 powerpc64-*linux*)
15483 LD="${LD-ld} -m elf32ppclinux"
15485 s390x-*linux*)
15486 LD="${LD-ld} -m elf_s390"
15488 sparc64-*linux*)
15489 LD="${LD-ld} -m elf32_sparc"
15491 esac
15493 *64-bit*)
15494 case $host in
15495 x86_64-*kfreebsd*-gnu)
15496 LD="${LD-ld} -m elf_x86_64_fbsd"
15498 x86_64-*linux*)
15499 LD="${LD-ld} -m elf_x86_64"
15501 powerpcle-*linux*)
15502 LD="${LD-ld} -m elf64lppc"
15504 powerpc-*linux*)
15505 LD="${LD-ld} -m elf64ppc"
15507 s390*-*linux*|s390*-*tpf*)
15508 LD="${LD-ld} -m elf64_s390"
15510 sparc*-*linux*)
15511 LD="${LD-ld} -m elf64_sparc"
15513 esac
15515 esac
15517 rm -rf conftest*
15520 *-*-sco3.2v5*)
15521 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
15522 SAVE_CFLAGS="$CFLAGS"
15523 CFLAGS="$CFLAGS -belf"
15524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
15525 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
15526 if ${lt_cv_cc_needs_belf+:} false; then :
15527 $as_echo_n "(cached) " >&6
15528 else
15529 ac_ext=c
15530 ac_cpp='$CPP $CPPFLAGS'
15531 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15532 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15533 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15536 /* end confdefs.h. */
15539 main ()
15543 return 0;
15545 _ACEOF
15546 if ac_fn_c_try_link "$LINENO"; then :
15547 lt_cv_cc_needs_belf=yes
15548 else
15549 lt_cv_cc_needs_belf=no
15551 rm -f core conftest.err conftest.$ac_objext \
15552 conftest$ac_exeext conftest.$ac_ext
15553 ac_ext=c
15554 ac_cpp='$CPP $CPPFLAGS'
15555 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15556 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15557 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
15561 $as_echo "$lt_cv_cc_needs_belf" >&6; }
15562 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
15563 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
15564 CFLAGS="$SAVE_CFLAGS"
15567 sparc*-*solaris*)
15568 # Find out which ABI we are using.
15569 echo 'int i;' > conftest.$ac_ext
15570 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15571 (eval $ac_compile) 2>&5
15572 ac_status=$?
15573 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15574 test $ac_status = 0; }; then
15575 case `/usr/bin/file conftest.o` in
15576 *64-bit*)
15577 case $lt_cv_prog_gnu_ld in
15578 yes*) LD="${LD-ld} -m elf64_sparc" ;;
15580 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
15581 LD="${LD-ld} -64"
15584 esac
15586 esac
15588 rm -rf conftest*
15590 esac
15592 need_locks="$enable_libtool_lock"
15595 case $host_os in
15596 rhapsody* | darwin*)
15597 if test -n "$ac_tool_prefix"; then
15598 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
15599 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
15600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15601 $as_echo_n "checking for $ac_word... " >&6; }
15602 if ${ac_cv_prog_DSYMUTIL+:} false; then :
15603 $as_echo_n "(cached) " >&6
15604 else
15605 if test -n "$DSYMUTIL"; then
15606 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
15607 else
15608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15609 for as_dir in $PATH
15611 IFS=$as_save_IFS
15612 test -z "$as_dir" && as_dir=.
15613 for ac_exec_ext in '' $ac_executable_extensions; do
15614 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15615 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
15616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15617 break 2
15619 done
15620 done
15621 IFS=$as_save_IFS
15625 DSYMUTIL=$ac_cv_prog_DSYMUTIL
15626 if test -n "$DSYMUTIL"; then
15627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
15628 $as_echo "$DSYMUTIL" >&6; }
15629 else
15630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15631 $as_echo "no" >&6; }
15636 if test -z "$ac_cv_prog_DSYMUTIL"; then
15637 ac_ct_DSYMUTIL=$DSYMUTIL
15638 # Extract the first word of "dsymutil", so it can be a program name with args.
15639 set dummy dsymutil; ac_word=$2
15640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15641 $as_echo_n "checking for $ac_word... " >&6; }
15642 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
15643 $as_echo_n "(cached) " >&6
15644 else
15645 if test -n "$ac_ct_DSYMUTIL"; then
15646 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
15647 else
15648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15649 for as_dir in $PATH
15651 IFS=$as_save_IFS
15652 test -z "$as_dir" && as_dir=.
15653 for ac_exec_ext in '' $ac_executable_extensions; do
15654 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15655 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
15656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15657 break 2
15659 done
15660 done
15661 IFS=$as_save_IFS
15665 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
15666 if test -n "$ac_ct_DSYMUTIL"; then
15667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
15668 $as_echo "$ac_ct_DSYMUTIL" >&6; }
15669 else
15670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15671 $as_echo "no" >&6; }
15674 if test "x$ac_ct_DSYMUTIL" = x; then
15675 DSYMUTIL=":"
15676 else
15677 case $cross_compiling:$ac_tool_warned in
15678 yes:)
15679 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15680 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15681 ac_tool_warned=yes ;;
15682 esac
15683 DSYMUTIL=$ac_ct_DSYMUTIL
15685 else
15686 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
15689 if test -n "$ac_tool_prefix"; then
15690 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
15691 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
15692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15693 $as_echo_n "checking for $ac_word... " >&6; }
15694 if ${ac_cv_prog_NMEDIT+:} false; then :
15695 $as_echo_n "(cached) " >&6
15696 else
15697 if test -n "$NMEDIT"; then
15698 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
15699 else
15700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15701 for as_dir in $PATH
15703 IFS=$as_save_IFS
15704 test -z "$as_dir" && as_dir=.
15705 for ac_exec_ext in '' $ac_executable_extensions; do
15706 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15707 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
15708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15709 break 2
15711 done
15712 done
15713 IFS=$as_save_IFS
15717 NMEDIT=$ac_cv_prog_NMEDIT
15718 if test -n "$NMEDIT"; then
15719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
15720 $as_echo "$NMEDIT" >&6; }
15721 else
15722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15723 $as_echo "no" >&6; }
15728 if test -z "$ac_cv_prog_NMEDIT"; then
15729 ac_ct_NMEDIT=$NMEDIT
15730 # Extract the first word of "nmedit", so it can be a program name with args.
15731 set dummy nmedit; ac_word=$2
15732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15733 $as_echo_n "checking for $ac_word... " >&6; }
15734 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
15735 $as_echo_n "(cached) " >&6
15736 else
15737 if test -n "$ac_ct_NMEDIT"; then
15738 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
15739 else
15740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15741 for as_dir in $PATH
15743 IFS=$as_save_IFS
15744 test -z "$as_dir" && as_dir=.
15745 for ac_exec_ext in '' $ac_executable_extensions; do
15746 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15747 ac_cv_prog_ac_ct_NMEDIT="nmedit"
15748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15749 break 2
15751 done
15752 done
15753 IFS=$as_save_IFS
15757 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
15758 if test -n "$ac_ct_NMEDIT"; then
15759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
15760 $as_echo "$ac_ct_NMEDIT" >&6; }
15761 else
15762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15763 $as_echo "no" >&6; }
15766 if test "x$ac_ct_NMEDIT" = x; then
15767 NMEDIT=":"
15768 else
15769 case $cross_compiling:$ac_tool_warned in
15770 yes:)
15771 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15772 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15773 ac_tool_warned=yes ;;
15774 esac
15775 NMEDIT=$ac_ct_NMEDIT
15777 else
15778 NMEDIT="$ac_cv_prog_NMEDIT"
15781 if test -n "$ac_tool_prefix"; then
15782 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
15783 set dummy ${ac_tool_prefix}lipo; ac_word=$2
15784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15785 $as_echo_n "checking for $ac_word... " >&6; }
15786 if ${ac_cv_prog_LIPO+:} false; then :
15787 $as_echo_n "(cached) " >&6
15788 else
15789 if test -n "$LIPO"; then
15790 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
15791 else
15792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15793 for as_dir in $PATH
15795 IFS=$as_save_IFS
15796 test -z "$as_dir" && as_dir=.
15797 for ac_exec_ext in '' $ac_executable_extensions; do
15798 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15799 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
15800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15801 break 2
15803 done
15804 done
15805 IFS=$as_save_IFS
15809 LIPO=$ac_cv_prog_LIPO
15810 if test -n "$LIPO"; then
15811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
15812 $as_echo "$LIPO" >&6; }
15813 else
15814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15815 $as_echo "no" >&6; }
15820 if test -z "$ac_cv_prog_LIPO"; then
15821 ac_ct_LIPO=$LIPO
15822 # Extract the first word of "lipo", so it can be a program name with args.
15823 set dummy lipo; ac_word=$2
15824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15825 $as_echo_n "checking for $ac_word... " >&6; }
15826 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
15827 $as_echo_n "(cached) " >&6
15828 else
15829 if test -n "$ac_ct_LIPO"; then
15830 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
15831 else
15832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15833 for as_dir in $PATH
15835 IFS=$as_save_IFS
15836 test -z "$as_dir" && as_dir=.
15837 for ac_exec_ext in '' $ac_executable_extensions; do
15838 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15839 ac_cv_prog_ac_ct_LIPO="lipo"
15840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15841 break 2
15843 done
15844 done
15845 IFS=$as_save_IFS
15849 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
15850 if test -n "$ac_ct_LIPO"; then
15851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
15852 $as_echo "$ac_ct_LIPO" >&6; }
15853 else
15854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15855 $as_echo "no" >&6; }
15858 if test "x$ac_ct_LIPO" = x; then
15859 LIPO=":"
15860 else
15861 case $cross_compiling:$ac_tool_warned in
15862 yes:)
15863 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15864 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15865 ac_tool_warned=yes ;;
15866 esac
15867 LIPO=$ac_ct_LIPO
15869 else
15870 LIPO="$ac_cv_prog_LIPO"
15873 if test -n "$ac_tool_prefix"; then
15874 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
15875 set dummy ${ac_tool_prefix}otool; ac_word=$2
15876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15877 $as_echo_n "checking for $ac_word... " >&6; }
15878 if ${ac_cv_prog_OTOOL+:} false; then :
15879 $as_echo_n "(cached) " >&6
15880 else
15881 if test -n "$OTOOL"; then
15882 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
15883 else
15884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15885 for as_dir in $PATH
15887 IFS=$as_save_IFS
15888 test -z "$as_dir" && as_dir=.
15889 for ac_exec_ext in '' $ac_executable_extensions; do
15890 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15891 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
15892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15893 break 2
15895 done
15896 done
15897 IFS=$as_save_IFS
15901 OTOOL=$ac_cv_prog_OTOOL
15902 if test -n "$OTOOL"; then
15903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
15904 $as_echo "$OTOOL" >&6; }
15905 else
15906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15907 $as_echo "no" >&6; }
15912 if test -z "$ac_cv_prog_OTOOL"; then
15913 ac_ct_OTOOL=$OTOOL
15914 # Extract the first word of "otool", so it can be a program name with args.
15915 set dummy otool; ac_word=$2
15916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15917 $as_echo_n "checking for $ac_word... " >&6; }
15918 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
15919 $as_echo_n "(cached) " >&6
15920 else
15921 if test -n "$ac_ct_OTOOL"; then
15922 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
15923 else
15924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15925 for as_dir in $PATH
15927 IFS=$as_save_IFS
15928 test -z "$as_dir" && as_dir=.
15929 for ac_exec_ext in '' $ac_executable_extensions; do
15930 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15931 ac_cv_prog_ac_ct_OTOOL="otool"
15932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15933 break 2
15935 done
15936 done
15937 IFS=$as_save_IFS
15941 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
15942 if test -n "$ac_ct_OTOOL"; then
15943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
15944 $as_echo "$ac_ct_OTOOL" >&6; }
15945 else
15946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15947 $as_echo "no" >&6; }
15950 if test "x$ac_ct_OTOOL" = x; then
15951 OTOOL=":"
15952 else
15953 case $cross_compiling:$ac_tool_warned in
15954 yes:)
15955 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15956 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15957 ac_tool_warned=yes ;;
15958 esac
15959 OTOOL=$ac_ct_OTOOL
15961 else
15962 OTOOL="$ac_cv_prog_OTOOL"
15965 if test -n "$ac_tool_prefix"; then
15966 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
15967 set dummy ${ac_tool_prefix}otool64; ac_word=$2
15968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15969 $as_echo_n "checking for $ac_word... " >&6; }
15970 if ${ac_cv_prog_OTOOL64+:} false; then :
15971 $as_echo_n "(cached) " >&6
15972 else
15973 if test -n "$OTOOL64"; then
15974 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
15975 else
15976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15977 for as_dir in $PATH
15979 IFS=$as_save_IFS
15980 test -z "$as_dir" && as_dir=.
15981 for ac_exec_ext in '' $ac_executable_extensions; do
15982 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15983 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
15984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15985 break 2
15987 done
15988 done
15989 IFS=$as_save_IFS
15993 OTOOL64=$ac_cv_prog_OTOOL64
15994 if test -n "$OTOOL64"; then
15995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
15996 $as_echo "$OTOOL64" >&6; }
15997 else
15998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15999 $as_echo "no" >&6; }
16004 if test -z "$ac_cv_prog_OTOOL64"; then
16005 ac_ct_OTOOL64=$OTOOL64
16006 # Extract the first word of "otool64", so it can be a program name with args.
16007 set dummy otool64; ac_word=$2
16008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16009 $as_echo_n "checking for $ac_word... " >&6; }
16010 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
16011 $as_echo_n "(cached) " >&6
16012 else
16013 if test -n "$ac_ct_OTOOL64"; then
16014 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
16015 else
16016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16017 for as_dir in $PATH
16019 IFS=$as_save_IFS
16020 test -z "$as_dir" && as_dir=.
16021 for ac_exec_ext in '' $ac_executable_extensions; do
16022 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16023 ac_cv_prog_ac_ct_OTOOL64="otool64"
16024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16025 break 2
16027 done
16028 done
16029 IFS=$as_save_IFS
16033 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
16034 if test -n "$ac_ct_OTOOL64"; then
16035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
16036 $as_echo "$ac_ct_OTOOL64" >&6; }
16037 else
16038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16039 $as_echo "no" >&6; }
16042 if test "x$ac_ct_OTOOL64" = x; then
16043 OTOOL64=":"
16044 else
16045 case $cross_compiling:$ac_tool_warned in
16046 yes:)
16047 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16048 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16049 ac_tool_warned=yes ;;
16050 esac
16051 OTOOL64=$ac_ct_OTOOL64
16053 else
16054 OTOOL64="$ac_cv_prog_OTOOL64"
16083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
16084 $as_echo_n "checking for -single_module linker flag... " >&6; }
16085 if ${lt_cv_apple_cc_single_mod+:} false; then :
16086 $as_echo_n "(cached) " >&6
16087 else
16088 lt_cv_apple_cc_single_mod=no
16089 if test -z "${LT_MULTI_MODULE}"; then
16090 # By default we will add the -single_module flag. You can override
16091 # by either setting the environment variable LT_MULTI_MODULE
16092 # non-empty at configure time, or by adding -multi_module to the
16093 # link flags.
16094 rm -rf libconftest.dylib*
16095 echo "int foo(void){return 1;}" > conftest.c
16096 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
16097 -dynamiclib -Wl,-single_module conftest.c" >&5
16098 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
16099 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
16100 _lt_result=$?
16101 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
16102 lt_cv_apple_cc_single_mod=yes
16103 else
16104 cat conftest.err >&5
16106 rm -rf libconftest.dylib*
16107 rm -f conftest.*
16110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
16111 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
16112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
16113 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
16114 if ${lt_cv_ld_exported_symbols_list+:} false; then :
16115 $as_echo_n "(cached) " >&6
16116 else
16117 lt_cv_ld_exported_symbols_list=no
16118 save_LDFLAGS=$LDFLAGS
16119 echo "_main" > conftest.sym
16120 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
16121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16122 /* end confdefs.h. */
16125 main ()
16129 return 0;
16131 _ACEOF
16132 if ac_fn_c_try_link "$LINENO"; then :
16133 lt_cv_ld_exported_symbols_list=yes
16134 else
16135 lt_cv_ld_exported_symbols_list=no
16137 rm -f core conftest.err conftest.$ac_objext \
16138 conftest$ac_exeext conftest.$ac_ext
16139 LDFLAGS="$save_LDFLAGS"
16142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
16143 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
16144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
16145 $as_echo_n "checking for -force_load linker flag... " >&6; }
16146 if ${lt_cv_ld_force_load+:} false; then :
16147 $as_echo_n "(cached) " >&6
16148 else
16149 lt_cv_ld_force_load=no
16150 cat > conftest.c << _LT_EOF
16151 int forced_loaded() { return 2;}
16152 _LT_EOF
16153 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
16154 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
16155 echo "$AR cru libconftest.a conftest.o" >&5
16156 $AR cru libconftest.a conftest.o 2>&5
16157 cat > conftest.c << _LT_EOF
16158 int main() { return 0;}
16159 _LT_EOF
16160 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
16161 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
16162 _lt_result=$?
16163 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
16164 lt_cv_ld_force_load=yes
16165 else
16166 cat conftest.err >&5
16168 rm -f conftest.err libconftest.a conftest conftest.c
16169 rm -rf conftest.dSYM
16172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
16173 $as_echo "$lt_cv_ld_force_load" >&6; }
16174 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
16175 # build without first building modern cctools / linker.
16176 case $host_cpu-$host_os in
16177 *-rhapsody* | *-darwin1.[012])
16178 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
16179 *-darwin1.*)
16180 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
16181 *-darwin*)
16182 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
16183 # deployment target is forced to an earlier version.
16184 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
16185 UNSET,*-darwin[89]*|UNSET,*-darwin[12][0123456789]*)
16187 10.[012][,.]*)
16188 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16192 esac
16194 esac
16195 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
16196 _lt_dar_single_mod='$single_module'
16198 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
16199 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
16200 else
16201 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
16203 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
16204 _lt_dsymutil='~$DSYMUTIL $lib || :'
16205 else
16206 _lt_dsymutil=
16209 esac
16212 for ac_header in dlfcn.h
16213 do :
16214 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
16215 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
16216 cat >>confdefs.h <<_ACEOF
16217 #define HAVE_DLFCN_H 1
16218 _ACEOF
16221 done
16227 # Set options
16231 enable_dlopen=no
16234 enable_win32_dll=no
16237 # Check whether --enable-shared was given.
16238 if test "${enable_shared+set}" = set; then :
16239 enableval=$enable_shared; p=${PACKAGE-default}
16240 case $enableval in
16241 yes) enable_shared=yes ;;
16242 no) enable_shared=no ;;
16244 enable_shared=no
16245 # Look at the argument we got. We use all the common list separators.
16246 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
16247 for pkg in $enableval; do
16248 IFS="$lt_save_ifs"
16249 if test "X$pkg" = "X$p"; then
16250 enable_shared=yes
16252 done
16253 IFS="$lt_save_ifs"
16255 esac
16256 else
16257 enable_shared=yes
16268 # Check whether --enable-static was given.
16269 if test "${enable_static+set}" = set; then :
16270 enableval=$enable_static; p=${PACKAGE-default}
16271 case $enableval in
16272 yes) enable_static=yes ;;
16273 no) enable_static=no ;;
16275 enable_static=no
16276 # Look at the argument we got. We use all the common list separators.
16277 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
16278 for pkg in $enableval; do
16279 IFS="$lt_save_ifs"
16280 if test "X$pkg" = "X$p"; then
16281 enable_static=yes
16283 done
16284 IFS="$lt_save_ifs"
16286 esac
16287 else
16288 enable_static=yes
16300 # Check whether --with-pic was given.
16301 if test "${with_pic+set}" = set; then :
16302 withval=$with_pic; pic_mode="$withval"
16303 else
16304 pic_mode=default
16308 test -z "$pic_mode" && pic_mode=default
16316 # Check whether --enable-fast-install was given.
16317 if test "${enable_fast_install+set}" = set; then :
16318 enableval=$enable_fast_install; p=${PACKAGE-default}
16319 case $enableval in
16320 yes) enable_fast_install=yes ;;
16321 no) enable_fast_install=no ;;
16323 enable_fast_install=no
16324 # Look at the argument we got. We use all the common list separators.
16325 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
16326 for pkg in $enableval; do
16327 IFS="$lt_save_ifs"
16328 if test "X$pkg" = "X$p"; then
16329 enable_fast_install=yes
16331 done
16332 IFS="$lt_save_ifs"
16334 esac
16335 else
16336 enable_fast_install=yes
16349 # This can be used to rebuild libtool when needed
16350 LIBTOOL_DEPS="$ltmain"
16352 # Always use our own libtool.
16353 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
16380 test -z "$LN_S" && LN_S="ln -s"
16395 if test -n "${ZSH_VERSION+set}" ; then
16396 setopt NO_GLOB_SUBST
16399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
16400 $as_echo_n "checking for objdir... " >&6; }
16401 if ${lt_cv_objdir+:} false; then :
16402 $as_echo_n "(cached) " >&6
16403 else
16404 rm -f .libs 2>/dev/null
16405 mkdir .libs 2>/dev/null
16406 if test -d .libs; then
16407 lt_cv_objdir=.libs
16408 else
16409 # MS-DOS does not allow filenames that begin with a dot.
16410 lt_cv_objdir=_libs
16412 rmdir .libs 2>/dev/null
16414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
16415 $as_echo "$lt_cv_objdir" >&6; }
16416 objdir=$lt_cv_objdir
16422 cat >>confdefs.h <<_ACEOF
16423 #define LT_OBJDIR "$lt_cv_objdir/"
16424 _ACEOF
16429 case $host_os in
16430 aix3*)
16431 # AIX sometimes has problems with the GCC collect2 program. For some
16432 # reason, if we set the COLLECT_NAMES environment variable, the problems
16433 # vanish in a puff of smoke.
16434 if test "X${COLLECT_NAMES+set}" != Xset; then
16435 COLLECT_NAMES=
16436 export COLLECT_NAMES
16439 esac
16441 # Global variables:
16442 ofile=libtool
16443 can_build_shared=yes
16445 # All known linkers require a `.a' archive for static linking (except MSVC,
16446 # which needs '.lib').
16447 libext=a
16449 with_gnu_ld="$lt_cv_prog_gnu_ld"
16451 old_CC="$CC"
16452 old_CFLAGS="$CFLAGS"
16454 # Set sane defaults for various variables
16455 test -z "$CC" && CC=cc
16456 test -z "$LTCC" && LTCC=$CC
16457 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
16458 test -z "$LD" && LD=ld
16459 test -z "$ac_objext" && ac_objext=o
16461 for cc_temp in $compiler""; do
16462 case $cc_temp in
16463 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16464 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16465 \-*) ;;
16466 *) break;;
16467 esac
16468 done
16469 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
16472 # Only perform the check for file, if the check method requires it
16473 test -z "$MAGIC_CMD" && MAGIC_CMD=file
16474 case $deplibs_check_method in
16475 file_magic*)
16476 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
16477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
16478 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
16479 if ${lt_cv_path_MAGIC_CMD+:} false; then :
16480 $as_echo_n "(cached) " >&6
16481 else
16482 case $MAGIC_CMD in
16483 [\\/*] | ?:[\\/]*)
16484 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
16487 lt_save_MAGIC_CMD="$MAGIC_CMD"
16488 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16489 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
16490 for ac_dir in $ac_dummy; do
16491 IFS="$lt_save_ifs"
16492 test -z "$ac_dir" && ac_dir=.
16493 if test -f $ac_dir/${ac_tool_prefix}file; then
16494 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
16495 if test -n "$file_magic_test_file"; then
16496 case $deplibs_check_method in
16497 "file_magic "*)
16498 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
16499 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16500 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
16501 $EGREP "$file_magic_regex" > /dev/null; then
16503 else
16504 cat <<_LT_EOF 1>&2
16506 *** Warning: the command libtool uses to detect shared libraries,
16507 *** $file_magic_cmd, produces output that libtool cannot recognize.
16508 *** The result is that libtool may fail to recognize shared libraries
16509 *** as such. This will affect the creation of libtool libraries that
16510 *** depend on shared libraries, but programs linked with such libtool
16511 *** libraries will work regardless of this problem. Nevertheless, you
16512 *** may want to report the problem to your system manager and/or to
16513 *** bug-libtool@gnu.org
16515 _LT_EOF
16516 fi ;;
16517 esac
16519 break
16521 done
16522 IFS="$lt_save_ifs"
16523 MAGIC_CMD="$lt_save_MAGIC_CMD"
16525 esac
16528 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16529 if test -n "$MAGIC_CMD"; then
16530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
16531 $as_echo "$MAGIC_CMD" >&6; }
16532 else
16533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16534 $as_echo "no" >&6; }
16541 if test -z "$lt_cv_path_MAGIC_CMD"; then
16542 if test -n "$ac_tool_prefix"; then
16543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
16544 $as_echo_n "checking for file... " >&6; }
16545 if ${lt_cv_path_MAGIC_CMD+:} false; then :
16546 $as_echo_n "(cached) " >&6
16547 else
16548 case $MAGIC_CMD in
16549 [\\/*] | ?:[\\/]*)
16550 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
16553 lt_save_MAGIC_CMD="$MAGIC_CMD"
16554 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16555 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
16556 for ac_dir in $ac_dummy; do
16557 IFS="$lt_save_ifs"
16558 test -z "$ac_dir" && ac_dir=.
16559 if test -f $ac_dir/file; then
16560 lt_cv_path_MAGIC_CMD="$ac_dir/file"
16561 if test -n "$file_magic_test_file"; then
16562 case $deplibs_check_method in
16563 "file_magic "*)
16564 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
16565 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16566 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
16567 $EGREP "$file_magic_regex" > /dev/null; then
16569 else
16570 cat <<_LT_EOF 1>&2
16572 *** Warning: the command libtool uses to detect shared libraries,
16573 *** $file_magic_cmd, produces output that libtool cannot recognize.
16574 *** The result is that libtool may fail to recognize shared libraries
16575 *** as such. This will affect the creation of libtool libraries that
16576 *** depend on shared libraries, but programs linked with such libtool
16577 *** libraries will work regardless of this problem. Nevertheless, you
16578 *** may want to report the problem to your system manager and/or to
16579 *** bug-libtool@gnu.org
16581 _LT_EOF
16582 fi ;;
16583 esac
16585 break
16587 done
16588 IFS="$lt_save_ifs"
16589 MAGIC_CMD="$lt_save_MAGIC_CMD"
16591 esac
16594 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16595 if test -n "$MAGIC_CMD"; then
16596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
16597 $as_echo "$MAGIC_CMD" >&6; }
16598 else
16599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16600 $as_echo "no" >&6; }
16604 else
16605 MAGIC_CMD=:
16611 esac
16613 # Use C for the default configuration in the libtool script
16615 lt_save_CC="$CC"
16616 ac_ext=c
16617 ac_cpp='$CPP $CPPFLAGS'
16618 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16619 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16620 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16623 # Source file extension for C test sources.
16624 ac_ext=c
16626 # Object file extension for compiled C test sources.
16627 objext=o
16628 objext=$objext
16630 # Code to be used in simple compile tests
16631 lt_simple_compile_test_code="int some_variable = 0;"
16633 # Code to be used in simple link tests
16634 lt_simple_link_test_code='int main(){return(0);}'
16642 # If no C compiler was specified, use CC.
16643 LTCC=${LTCC-"$CC"}
16645 # If no C compiler flags were specified, use CFLAGS.
16646 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16648 # Allow CC to be a program name with arguments.
16649 compiler=$CC
16651 # Save the default compiler, since it gets overwritten when the other
16652 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
16653 compiler_DEFAULT=$CC
16655 # save warnings/boilerplate of simple test code
16656 ac_outfile=conftest.$ac_objext
16657 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16658 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16659 _lt_compiler_boilerplate=`cat conftest.err`
16660 $RM conftest*
16662 ac_outfile=conftest.$ac_objext
16663 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16664 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16665 _lt_linker_boilerplate=`cat conftest.err`
16666 $RM -r conftest*
16669 ## CAVEAT EMPTOR:
16670 ## There is no encapsulation within the following macros, do not change
16671 ## the running order or otherwise move them around unless you know exactly
16672 ## what you are doing...
16673 if test -n "$compiler"; then
16675 lt_prog_compiler_no_builtin_flag=
16677 if test "$GCC" = yes; then
16678 case $cc_basename in
16679 nvcc*)
16680 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
16682 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
16683 esac
16685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16686 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
16687 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
16688 $as_echo_n "(cached) " >&6
16689 else
16690 lt_cv_prog_compiler_rtti_exceptions=no
16691 ac_outfile=conftest.$ac_objext
16692 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16693 lt_compiler_flag="-fno-rtti -fno-exceptions"
16694 # Insert the option either (1) after the last *FLAGS variable, or
16695 # (2) before a word containing "conftest.", or (3) at the end.
16696 # Note that $ac_compile itself does not contain backslashes and begins
16697 # with a dollar sign (not a hyphen), so the echo should work correctly.
16698 # The option is referenced via a variable to avoid confusing sed.
16699 lt_compile=`echo "$ac_compile" | $SED \
16700 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16701 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16702 -e 's:$: $lt_compiler_flag:'`
16703 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16704 (eval "$lt_compile" 2>conftest.err)
16705 ac_status=$?
16706 cat conftest.err >&5
16707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16708 if (exit $ac_status) && test -s "$ac_outfile"; then
16709 # The compiler can only warn and ignore the option if not recognized
16710 # So say no if there are warnings other than the usual output.
16711 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
16712 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16713 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16714 lt_cv_prog_compiler_rtti_exceptions=yes
16717 $RM conftest*
16720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16721 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16723 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16724 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
16725 else
16736 lt_prog_compiler_wl=
16737 lt_prog_compiler_pic=
16738 lt_prog_compiler_static=
16740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
16741 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16743 if test "$GCC" = yes; then
16744 lt_prog_compiler_wl='-Wl,'
16745 lt_prog_compiler_static='-static'
16747 case $host_os in
16748 aix*)
16749 # All AIX code is PIC.
16750 if test "$host_cpu" = ia64; then
16751 # AIX 5 now supports IA64 processor
16752 lt_prog_compiler_static='-Bstatic'
16754 lt_prog_compiler_pic='-fPIC'
16757 amigaos*)
16758 case $host_cpu in
16759 powerpc)
16760 # see comment about AmigaOS4 .so support
16761 lt_prog_compiler_pic='-fPIC'
16763 m68k)
16764 # FIXME: we need at least 68020 code to build shared libraries, but
16765 # adding the `-m68020' flag to GCC prevents building anything better,
16766 # like `-m68040'.
16767 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
16769 esac
16772 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16773 # PIC is the default for these OSes.
16776 mingw* | cygwin* | pw32* | os2* | cegcc*)
16777 # This hack is so that the source file can tell whether it is being
16778 # built for inclusion in a dll (and should export symbols for example).
16779 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16780 # (--disable-auto-import) libraries
16781 lt_prog_compiler_pic='-DDLL_EXPORT'
16784 darwin* | rhapsody*)
16785 # PIC is the default on this platform
16786 # Common symbols not allowed in MH_DYLIB files
16787 lt_prog_compiler_pic='-fno-common'
16790 haiku*)
16791 # PIC is the default for Haiku.
16792 # The "-static" flag exists, but is broken.
16793 lt_prog_compiler_static=
16796 hpux*)
16797 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
16798 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
16799 # sets the default TLS model and affects inlining.
16800 case $host_cpu in
16801 hppa*64*)
16802 # +Z the default
16805 lt_prog_compiler_pic='-fPIC'
16807 esac
16810 interix[3-9]*)
16811 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16812 # Instead, we relocate shared libraries at runtime.
16815 msdosdjgpp*)
16816 # Just because we use GCC doesn't mean we suddenly get shared libraries
16817 # on systems that don't support them.
16818 lt_prog_compiler_can_build_shared=no
16819 enable_shared=no
16822 *nto* | *qnx*)
16823 # QNX uses GNU C++, but need to define -shared option too, otherwise
16824 # it will coredump.
16825 lt_prog_compiler_pic='-fPIC -shared'
16828 sysv4*MP*)
16829 if test -d /usr/nec; then
16830 lt_prog_compiler_pic=-Kconform_pic
16835 lt_prog_compiler_pic='-fPIC'
16837 esac
16839 case $cc_basename in
16840 nvcc*) # Cuda Compiler Driver 2.2
16841 lt_prog_compiler_wl='-Xlinker '
16842 lt_prog_compiler_pic='-Xcompiler -fPIC'
16844 esac
16845 else
16846 # PORTME Check for flag to pass linker flags through the system compiler.
16847 case $host_os in
16848 aix*)
16849 lt_prog_compiler_wl='-Wl,'
16850 if test "$host_cpu" = ia64; then
16851 # AIX 5 now supports IA64 processor
16852 lt_prog_compiler_static='-Bstatic'
16853 else
16854 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
16858 mingw* | cygwin* | pw32* | os2* | cegcc*)
16859 # This hack is so that the source file can tell whether it is being
16860 # built for inclusion in a dll (and should export symbols for example).
16861 lt_prog_compiler_pic='-DDLL_EXPORT'
16864 hpux9* | hpux10* | hpux11*)
16865 lt_prog_compiler_wl='-Wl,'
16866 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16867 # not for PA HP-UX.
16868 case $host_cpu in
16869 hppa*64*|ia64*)
16870 # +Z the default
16873 lt_prog_compiler_pic='+Z'
16875 esac
16876 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16877 lt_prog_compiler_static='${wl}-a ${wl}archive'
16880 irix5* | irix6* | nonstopux*)
16881 lt_prog_compiler_wl='-Wl,'
16882 # PIC (with -KPIC) is the default.
16883 lt_prog_compiler_static='-non_shared'
16886 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16887 case $cc_basename in
16888 # old Intel for x86_64 which still supported -KPIC.
16889 ecc*)
16890 lt_prog_compiler_wl='-Wl,'
16891 lt_prog_compiler_pic='-KPIC'
16892 lt_prog_compiler_static='-static'
16894 # icc used to be incompatible with GCC.
16895 # ICC 10 doesn't accept -KPIC any more.
16896 icc* | ifort*)
16897 lt_prog_compiler_wl='-Wl,'
16898 lt_prog_compiler_pic='-fPIC'
16899 lt_prog_compiler_static='-static'
16901 # Lahey Fortran 8.1.
16902 lf95*)
16903 lt_prog_compiler_wl='-Wl,'
16904 lt_prog_compiler_pic='--shared'
16905 lt_prog_compiler_static='--static'
16907 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
16908 # Portland Group compilers (*not* the Pentium gcc compiler,
16909 # which looks to be a dead project)
16910 lt_prog_compiler_wl='-Wl,'
16911 lt_prog_compiler_pic='-fpic'
16912 lt_prog_compiler_static='-Bstatic'
16914 ccc*)
16915 lt_prog_compiler_wl='-Wl,'
16916 # All Alpha code is PIC.
16917 lt_prog_compiler_static='-non_shared'
16919 xl* | bgxl* | bgf* | mpixl*)
16920 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
16921 lt_prog_compiler_wl='-Wl,'
16922 lt_prog_compiler_pic='-qpic'
16923 lt_prog_compiler_static='-qstaticlink'
16926 case `$CC -V 2>&1 | sed 5q` in
16927 *Sun\ F* | *Sun*Fortran*)
16928 # Sun Fortran 8.3 passes all unrecognized flags to the linker
16929 lt_prog_compiler_pic='-KPIC'
16930 lt_prog_compiler_static='-Bstatic'
16931 lt_prog_compiler_wl=''
16933 *Sun\ C*)
16934 # Sun C 5.9
16935 lt_prog_compiler_pic='-KPIC'
16936 lt_prog_compiler_static='-Bstatic'
16937 lt_prog_compiler_wl='-Wl,'
16939 esac
16941 esac
16944 newsos6)
16945 lt_prog_compiler_pic='-KPIC'
16946 lt_prog_compiler_static='-Bstatic'
16949 *nto* | *qnx*)
16950 # QNX uses GNU C++, but need to define -shared option too, otherwise
16951 # it will coredump.
16952 lt_prog_compiler_pic='-fPIC -shared'
16955 osf3* | osf4* | osf5*)
16956 lt_prog_compiler_wl='-Wl,'
16957 # All OSF/1 code is PIC.
16958 lt_prog_compiler_static='-non_shared'
16961 rdos*)
16962 lt_prog_compiler_static='-non_shared'
16965 solaris*)
16966 lt_prog_compiler_pic='-KPIC'
16967 lt_prog_compiler_static='-Bstatic'
16968 case $cc_basename in
16969 f77* | f90* | f95*)
16970 lt_prog_compiler_wl='-Qoption ld ';;
16972 lt_prog_compiler_wl='-Wl,';;
16973 esac
16976 sunos4*)
16977 lt_prog_compiler_wl='-Qoption ld '
16978 lt_prog_compiler_pic='-PIC'
16979 lt_prog_compiler_static='-Bstatic'
16982 sysv4 | sysv4.2uw2* | sysv4.3*)
16983 lt_prog_compiler_wl='-Wl,'
16984 lt_prog_compiler_pic='-KPIC'
16985 lt_prog_compiler_static='-Bstatic'
16988 sysv4*MP*)
16989 if test -d /usr/nec ;then
16990 lt_prog_compiler_pic='-Kconform_pic'
16991 lt_prog_compiler_static='-Bstatic'
16995 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16996 lt_prog_compiler_wl='-Wl,'
16997 lt_prog_compiler_pic='-KPIC'
16998 lt_prog_compiler_static='-Bstatic'
17001 unicos*)
17002 lt_prog_compiler_wl='-Wl,'
17003 lt_prog_compiler_can_build_shared=no
17006 uts4*)
17007 lt_prog_compiler_pic='-pic'
17008 lt_prog_compiler_static='-Bstatic'
17012 lt_prog_compiler_can_build_shared=no
17014 esac
17017 case $host_os in
17018 # For platforms which do not support PIC, -DPIC is meaningless:
17019 *djgpp*)
17020 lt_prog_compiler_pic=
17023 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
17025 esac
17026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
17027 $as_echo "$lt_prog_compiler_pic" >&6; }
17035 # Check to make sure the PIC flag actually works.
17037 if test -n "$lt_prog_compiler_pic"; then
17038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
17039 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
17040 if ${lt_cv_prog_compiler_pic_works+:} false; then :
17041 $as_echo_n "(cached) " >&6
17042 else
17043 lt_cv_prog_compiler_pic_works=no
17044 ac_outfile=conftest.$ac_objext
17045 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17046 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
17047 # Insert the option either (1) after the last *FLAGS variable, or
17048 # (2) before a word containing "conftest.", or (3) at the end.
17049 # Note that $ac_compile itself does not contain backslashes and begins
17050 # with a dollar sign (not a hyphen), so the echo should work correctly.
17051 # The option is referenced via a variable to avoid confusing sed.
17052 lt_compile=`echo "$ac_compile" | $SED \
17053 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17054 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17055 -e 's:$: $lt_compiler_flag:'`
17056 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17057 (eval "$lt_compile" 2>conftest.err)
17058 ac_status=$?
17059 cat conftest.err >&5
17060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17061 if (exit $ac_status) && test -s "$ac_outfile"; then
17062 # The compiler can only warn and ignore the option if not recognized
17063 # So say no if there are warnings other than the usual output.
17064 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
17065 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17066 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17067 lt_cv_prog_compiler_pic_works=yes
17070 $RM conftest*
17073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
17074 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
17076 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
17077 case $lt_prog_compiler_pic in
17078 "" | " "*) ;;
17079 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
17080 esac
17081 else
17082 lt_prog_compiler_pic=
17083 lt_prog_compiler_can_build_shared=no
17094 # Check to make sure the static flag actually works.
17096 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
17097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17098 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
17099 if ${lt_cv_prog_compiler_static_works+:} false; then :
17100 $as_echo_n "(cached) " >&6
17101 else
17102 lt_cv_prog_compiler_static_works=no
17103 save_LDFLAGS="$LDFLAGS"
17104 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17105 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17106 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17107 # The linker can only warn and ignore the option if not recognized
17108 # So say no if there are warnings
17109 if test -s conftest.err; then
17110 # Append any errors to the config.log.
17111 cat conftest.err 1>&5
17112 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
17113 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17114 if diff conftest.exp conftest.er2 >/dev/null; then
17115 lt_cv_prog_compiler_static_works=yes
17117 else
17118 lt_cv_prog_compiler_static_works=yes
17121 $RM -r conftest*
17122 LDFLAGS="$save_LDFLAGS"
17125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
17126 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
17128 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
17130 else
17131 lt_prog_compiler_static=
17140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17141 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17142 if ${lt_cv_prog_compiler_c_o+:} false; then :
17143 $as_echo_n "(cached) " >&6
17144 else
17145 lt_cv_prog_compiler_c_o=no
17146 $RM -r conftest 2>/dev/null
17147 mkdir conftest
17148 cd conftest
17149 mkdir out
17150 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17152 lt_compiler_flag="-o out/conftest2.$ac_objext"
17153 # Insert the option either (1) after the last *FLAGS variable, or
17154 # (2) before a word containing "conftest.", or (3) at the end.
17155 # Note that $ac_compile itself does not contain backslashes and begins
17156 # with a dollar sign (not a hyphen), so the echo should work correctly.
17157 lt_compile=`echo "$ac_compile" | $SED \
17158 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17159 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17160 -e 's:$: $lt_compiler_flag:'`
17161 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17162 (eval "$lt_compile" 2>out/conftest.err)
17163 ac_status=$?
17164 cat out/conftest.err >&5
17165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17166 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17167 then
17168 # The compiler can only warn and ignore the option if not recognized
17169 # So say no if there are warnings
17170 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17171 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17172 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17173 lt_cv_prog_compiler_c_o=yes
17176 chmod u+w . 2>&5
17177 $RM conftest*
17178 # SGI C++ compiler will create directory out/ii_files/ for
17179 # template instantiation
17180 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17181 $RM out/* && rmdir out
17182 cd ..
17183 $RM -r conftest
17184 $RM conftest*
17187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
17188 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
17195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17196 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17197 if ${lt_cv_prog_compiler_c_o+:} false; then :
17198 $as_echo_n "(cached) " >&6
17199 else
17200 lt_cv_prog_compiler_c_o=no
17201 $RM -r conftest 2>/dev/null
17202 mkdir conftest
17203 cd conftest
17204 mkdir out
17205 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17207 lt_compiler_flag="-o out/conftest2.$ac_objext"
17208 # Insert the option either (1) after the last *FLAGS variable, or
17209 # (2) before a word containing "conftest.", or (3) at the end.
17210 # Note that $ac_compile itself does not contain backslashes and begins
17211 # with a dollar sign (not a hyphen), so the echo should work correctly.
17212 lt_compile=`echo "$ac_compile" | $SED \
17213 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17214 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17215 -e 's:$: $lt_compiler_flag:'`
17216 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17217 (eval "$lt_compile" 2>out/conftest.err)
17218 ac_status=$?
17219 cat out/conftest.err >&5
17220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17221 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17222 then
17223 # The compiler can only warn and ignore the option if not recognized
17224 # So say no if there are warnings
17225 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17226 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17227 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17228 lt_cv_prog_compiler_c_o=yes
17231 chmod u+w . 2>&5
17232 $RM conftest*
17233 # SGI C++ compiler will create directory out/ii_files/ for
17234 # template instantiation
17235 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17236 $RM out/* && rmdir out
17237 cd ..
17238 $RM -r conftest
17239 $RM conftest*
17242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
17243 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
17248 hard_links="nottested"
17249 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
17250 # do not overwrite the value of need_locks provided by the user
17251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
17252 $as_echo_n "checking if we can lock with hard links... " >&6; }
17253 hard_links=yes
17254 $RM conftest*
17255 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17256 touch conftest.a
17257 ln conftest.a conftest.b 2>&5 || hard_links=no
17258 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
17260 $as_echo "$hard_links" >&6; }
17261 if test "$hard_links" = no; then
17262 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17263 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17264 need_locks=warn
17266 else
17267 need_locks=no
17275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17276 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17278 runpath_var=
17279 allow_undefined_flag=
17280 always_export_symbols=no
17281 archive_cmds=
17282 archive_expsym_cmds=
17283 compiler_needs_object=no
17284 enable_shared_with_static_runtimes=no
17285 export_dynamic_flag_spec=
17286 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17287 hardcode_automatic=no
17288 hardcode_direct=no
17289 hardcode_direct_absolute=no
17290 hardcode_libdir_flag_spec=
17291 hardcode_libdir_flag_spec_ld=
17292 hardcode_libdir_separator=
17293 hardcode_minus_L=no
17294 hardcode_shlibpath_var=unsupported
17295 inherit_rpath=no
17296 link_all_deplibs=unknown
17297 module_cmds=
17298 module_expsym_cmds=
17299 old_archive_from_new_cmds=
17300 old_archive_from_expsyms_cmds=
17301 thread_safe_flag_spec=
17302 whole_archive_flag_spec=
17303 # include_expsyms should be a list of space-separated symbols to be *always*
17304 # included in the symbol list
17305 include_expsyms=
17306 # exclude_expsyms can be an extended regexp of symbols to exclude
17307 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17308 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17309 # as well as any symbol that contains `d'.
17310 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17311 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17312 # platforms (ab)use it in PIC code, but their linkers get confused if
17313 # the symbol is explicitly referenced. Since portable code cannot
17314 # rely on this symbol name, it's probably fine to never include it in
17315 # preloaded symbol tables.
17316 # Exclude shared library initialization/finalization symbols.
17317 extract_expsyms_cmds=
17319 case $host_os in
17320 cygwin* | mingw* | pw32* | cegcc*)
17321 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17322 # When not using gcc, we currently assume that we are using
17323 # Microsoft Visual C++.
17324 if test "$GCC" != yes; then
17325 with_gnu_ld=no
17328 interix*)
17329 # we just hope/assume this is gcc and not c89 (= MSVC++)
17330 with_gnu_ld=yes
17332 openbsd*)
17333 with_gnu_ld=no
17335 esac
17337 ld_shlibs=yes
17339 # On some targets, GNU ld is compatible enough with the native linker
17340 # that we're better off using the native interface for both.
17341 lt_use_gnu_ld_interface=no
17342 if test "$with_gnu_ld" = yes; then
17343 case $host_os in
17344 aix*)
17345 # The AIX port of GNU ld has always aspired to compatibility
17346 # with the native linker. However, as the warning in the GNU ld
17347 # block says, versions before 2.19.5* couldn't really create working
17348 # shared libraries, regardless of the interface used.
17349 case `$LD -v 2>&1` in
17350 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
17351 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
17352 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
17354 lt_use_gnu_ld_interface=yes
17356 esac
17359 lt_use_gnu_ld_interface=yes
17361 esac
17364 if test "$lt_use_gnu_ld_interface" = yes; then
17365 # If archive_cmds runs LD, not CC, wlarc should be empty
17366 wlarc='${wl}'
17368 # Set some defaults for GNU ld with shared library support. These
17369 # are reset later if shared libraries are not supported. Putting them
17370 # here allows them to be overridden if necessary.
17371 runpath_var=LD_RUN_PATH
17372 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17373 export_dynamic_flag_spec='${wl}--export-dynamic'
17374 # ancient GNU ld didn't support --whole-archive et. al.
17375 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
17376 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17377 else
17378 whole_archive_flag_spec=
17380 supports_anon_versioning=no
17381 case `$LD -v 2>&1` in
17382 *GNU\ gold*) supports_anon_versioning=yes ;;
17383 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17384 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17385 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17386 *\ 2.11.*) ;; # other 2.11 versions
17387 *) supports_anon_versioning=yes ;;
17388 esac
17390 # See if GNU ld supports shared libraries.
17391 case $host_os in
17392 aix[3-9]*)
17393 # On AIX/PPC, the GNU linker is very broken
17394 if test "$host_cpu" != ia64; then
17395 ld_shlibs=no
17396 cat <<_LT_EOF 1>&2
17398 *** Warning: the GNU linker, at least up to release 2.19, is reported
17399 *** to be unable to reliably create shared libraries on AIX.
17400 *** Therefore, libtool is disabling shared libraries support. If you
17401 *** really care for shared libraries, you may want to install binutils
17402 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
17403 *** You will then need to restart the configuration process.
17405 _LT_EOF
17409 amigaos*)
17410 case $host_cpu in
17411 powerpc)
17412 # see comment about AmigaOS4 .so support
17413 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17414 archive_expsym_cmds=''
17416 m68k)
17417 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)'
17418 hardcode_libdir_flag_spec='-L$libdir'
17419 hardcode_minus_L=yes
17421 esac
17424 beos*)
17425 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17426 allow_undefined_flag=unsupported
17427 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17428 # support --undefined. This deserves some investigation. FIXME
17429 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17430 else
17431 ld_shlibs=no
17435 cygwin* | mingw* | pw32* | cegcc*)
17436 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
17437 # as there is no search path for DLLs.
17438 hardcode_libdir_flag_spec='-L$libdir'
17439 export_dynamic_flag_spec='${wl}--export-all-symbols'
17440 allow_undefined_flag=unsupported
17441 always_export_symbols=no
17442 enable_shared_with_static_runtimes=yes
17443 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17445 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
17446 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17447 # If the export-symbols file already is a .def file (1st line
17448 # is EXPORTS), use it as is; otherwise, prepend...
17449 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17450 cp $export_symbols $output_objdir/$soname.def;
17451 else
17452 echo EXPORTS > $output_objdir/$soname.def;
17453 cat $export_symbols >> $output_objdir/$soname.def;
17455 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17456 else
17457 ld_shlibs=no
17461 haiku*)
17462 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17463 link_all_deplibs=yes
17466 interix[3-9]*)
17467 hardcode_direct=no
17468 hardcode_shlibpath_var=no
17469 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
17470 export_dynamic_flag_spec='${wl}-E'
17471 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17472 # Instead, shared libraries are loaded at an image base (0x10000000 by
17473 # default) and relocated if they conflict, which is a slow very memory
17474 # consuming and fragmenting process. To avoid this, we pick a random,
17475 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17476 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17477 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17478 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'
17481 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
17482 tmp_diet=no
17483 if test "$host_os" = linux-dietlibc; then
17484 case $cc_basename in
17485 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
17486 esac
17488 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
17489 && test "$tmp_diet" = no
17490 then
17491 tmp_addflag=' $pic_flag'
17492 tmp_sharedflag='-shared'
17493 case $cc_basename,$host_cpu in
17494 pgcc*) # Portland Group C compiler
17495 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'
17496 tmp_addflag=' $pic_flag'
17498 pgf77* | pgf90* | pgf95* | pgfortran*)
17499 # Portland Group f77 and f90 compilers
17500 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'
17501 tmp_addflag=' $pic_flag -Mnomain' ;;
17502 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17503 tmp_addflag=' -i_dynamic' ;;
17504 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17505 tmp_addflag=' -i_dynamic -nofor_main' ;;
17506 ifc* | ifort*) # Intel Fortran compiler
17507 tmp_addflag=' -nofor_main' ;;
17508 lf95*) # Lahey Fortran 8.1
17509 whole_archive_flag_spec=
17510 tmp_sharedflag='--shared' ;;
17511 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
17512 tmp_sharedflag='-qmkshrobj'
17513 tmp_addflag= ;;
17514 nvcc*) # Cuda Compiler Driver 2.2
17515 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'
17516 compiler_needs_object=yes
17518 esac
17519 case `$CC -V 2>&1 | sed 5q` in
17520 *Sun\ C*) # Sun C 5.9
17521 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'
17522 compiler_needs_object=yes
17523 tmp_sharedflag='-G' ;;
17524 *Sun\ F*) # Sun Fortran 8.3
17525 tmp_sharedflag='-G' ;;
17526 esac
17527 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17529 if test "x$supports_anon_versioning" = xyes; then
17530 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
17531 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17532 echo "local: *; };" >> $output_objdir/$libname.ver~
17533 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17536 case $cc_basename in
17537 xlf* | bgf* | bgxlf* | mpixlf*)
17538 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
17539 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
17540 hardcode_libdir_flag_spec=
17541 hardcode_libdir_flag_spec_ld='-rpath $libdir'
17542 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
17543 if test "x$supports_anon_versioning" = xyes; then
17544 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
17545 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17546 echo "local: *; };" >> $output_objdir/$libname.ver~
17547 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
17550 esac
17551 else
17552 ld_shlibs=no
17556 netbsd*)
17557 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17558 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17559 wlarc=
17560 else
17561 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17562 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17566 solaris*)
17567 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
17568 ld_shlibs=no
17569 cat <<_LT_EOF 1>&2
17571 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17572 *** create shared libraries on Solaris systems. Therefore, libtool
17573 *** is disabling shared libraries support. We urge you to upgrade GNU
17574 *** binutils to release 2.9.1 or newer. Another option is to modify
17575 *** your PATH or compiler configuration so that the native linker is
17576 *** used, and then restart.
17578 _LT_EOF
17579 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17580 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17581 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17582 else
17583 ld_shlibs=no
17587 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17588 case `$LD -v 2>&1` in
17589 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17590 ld_shlibs=no
17591 cat <<_LT_EOF 1>&2
17593 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17594 *** reliably create shared libraries on SCO systems. Therefore, libtool
17595 *** is disabling shared libraries support. We urge you to upgrade GNU
17596 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17597 *** your PATH or compiler configuration so that the native linker is
17598 *** used, and then restart.
17600 _LT_EOF
17603 # For security reasons, it is highly recommended that you always
17604 # use absolute paths for naming shared libraries, and exclude the
17605 # DT_RUNPATH tag from executables and libraries. But doing so
17606 # requires that you compile everything twice, which is a pain.
17607 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17608 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17609 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17610 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17611 else
17612 ld_shlibs=no
17615 esac
17618 sunos4*)
17619 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17620 wlarc=
17621 hardcode_direct=yes
17622 hardcode_shlibpath_var=no
17626 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17627 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17628 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17629 else
17630 ld_shlibs=no
17633 esac
17635 if test "$ld_shlibs" = no; then
17636 runpath_var=
17637 hardcode_libdir_flag_spec=
17638 export_dynamic_flag_spec=
17639 whole_archive_flag_spec=
17641 else
17642 # PORTME fill in a description of your system's linker (not GNU ld)
17643 case $host_os in
17644 aix3*)
17645 allow_undefined_flag=unsupported
17646 always_export_symbols=yes
17647 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'
17648 # Note: this linker hardcodes the directories in LIBPATH if there
17649 # are no directories specified by -L.
17650 hardcode_minus_L=yes
17651 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17652 # Neither direct hardcoding nor static linking is supported with a
17653 # broken collect2.
17654 hardcode_direct=unsupported
17658 aix[4-9]*)
17659 if test "$host_cpu" = ia64; then
17660 # On IA64, the linker does run time linking by default, so we don't
17661 # have to do anything special.
17662 aix_use_runtimelinking=no
17663 exp_sym_flag='-Bexport'
17664 no_entry_flag=""
17665 else
17666 # If we're using GNU nm, then we don't want the "-C" option.
17667 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17668 # Also, AIX nm treats weak defined symbols like other global
17669 # defined symbols, whereas GNU nm marks them as "W".
17670 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
17671 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'
17672 else
17673 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'
17675 aix_use_runtimelinking=no
17677 # Test if we are trying to use run time linking or normal
17678 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17679 # need to do runtime linking.
17680 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17681 for ld_flag in $LDFLAGS; do
17682 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17683 aix_use_runtimelinking=yes
17684 break
17686 done
17688 esac
17690 exp_sym_flag='-bexport'
17691 no_entry_flag='-bnoentry'
17694 # When large executables or shared objects are built, AIX ld can
17695 # have problems creating the table of contents. If linking a library
17696 # or program results in "error TOC overflow" add -mminimal-toc to
17697 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17698 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17700 archive_cmds=''
17701 hardcode_direct=yes
17702 hardcode_direct_absolute=yes
17703 hardcode_libdir_separator=':'
17704 link_all_deplibs=yes
17705 file_list_spec='${wl}-f,'
17707 if test "$GCC" = yes; then
17708 case $host_os in aix4.[012]|aix4.[012].*)
17709 # We only want to do this on AIX 4.2 and lower, the check
17710 # below for broken collect2 doesn't work under 4.3+
17711 collect2name=`${CC} -print-prog-name=collect2`
17712 if test -f "$collect2name" &&
17713 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
17714 then
17715 # We have reworked collect2
17717 else
17718 # We have old collect2
17719 hardcode_direct=unsupported
17720 # It fails to find uninstalled libraries when the uninstalled
17721 # path is not listed in the libpath. Setting hardcode_minus_L
17722 # to unsupported forces relinking
17723 hardcode_minus_L=yes
17724 hardcode_libdir_flag_spec='-L$libdir'
17725 hardcode_libdir_separator=
17728 esac
17729 shared_flag='-shared'
17730 if test "$aix_use_runtimelinking" = yes; then
17731 shared_flag="$shared_flag "'${wl}-G'
17733 else
17734 # not using gcc
17735 if test "$host_cpu" = ia64; then
17736 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17737 # chokes on -Wl,-G. The following line is correct:
17738 shared_flag='-G'
17739 else
17740 if test "$aix_use_runtimelinking" = yes; then
17741 shared_flag='${wl}-G'
17742 else
17743 shared_flag='${wl}-bM:SRE'
17748 export_dynamic_flag_spec='${wl}-bexpall'
17749 # It seems that -bexpall does not export symbols beginning with
17750 # underscore (_), so it is better to generate a list of symbols to export.
17751 always_export_symbols=yes
17752 if test "$aix_use_runtimelinking" = yes; then
17753 # Warning - without using the other runtime loading flags (-brtl),
17754 # -berok will link without error, but may produce a broken library.
17755 allow_undefined_flag='-berok'
17756 # Determine the default libpath from the value encoded in an
17757 # empty executable.
17758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17759 /* end confdefs.h. */
17762 main ()
17766 return 0;
17768 _ACEOF
17769 if ac_fn_c_try_link "$LINENO"; then :
17771 lt_aix_libpath_sed='
17772 /Import File Strings/,/^$/ {
17773 /^0/ {
17774 s/^0 *\(.*\)$/\1/
17778 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17779 # Check for a 64-bit object if we didn't find anything.
17780 if test -z "$aix_libpath"; then
17781 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17784 rm -f core conftest.err conftest.$ac_objext \
17785 conftest$ac_exeext conftest.$ac_ext
17786 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17788 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
17789 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"
17790 else
17791 if test "$host_cpu" = ia64; then
17792 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
17793 allow_undefined_flag="-z nodefs"
17794 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"
17795 else
17796 # Determine the default libpath from the value encoded in an
17797 # empty executable.
17798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17799 /* end confdefs.h. */
17802 main ()
17806 return 0;
17808 _ACEOF
17809 if ac_fn_c_try_link "$LINENO"; then :
17811 lt_aix_libpath_sed='
17812 /Import File Strings/,/^$/ {
17813 /^0/ {
17814 s/^0 *\(.*\)$/\1/
17818 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17819 # Check for a 64-bit object if we didn't find anything.
17820 if test -z "$aix_libpath"; then
17821 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17824 rm -f core conftest.err conftest.$ac_objext \
17825 conftest$ac_exeext conftest.$ac_ext
17826 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17828 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
17829 # Warning - without using the other run time loading flags,
17830 # -berok will link without error, but may produce a broken library.
17831 no_undefined_flag=' ${wl}-bernotok'
17832 allow_undefined_flag=' ${wl}-berok'
17833 if test "$with_gnu_ld" = yes; then
17834 # We only use this code for GNU lds that support --whole-archive.
17835 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
17836 else
17837 # Exported symbols can be pulled into shared objects from archives
17838 whole_archive_flag_spec='$convenience'
17840 archive_cmds_need_lc=yes
17841 # This is similar to how AIX traditionally builds its shared libraries.
17842 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'
17847 amigaos*)
17848 case $host_cpu in
17849 powerpc)
17850 # see comment about AmigaOS4 .so support
17851 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17852 archive_expsym_cmds=''
17854 m68k)
17855 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)'
17856 hardcode_libdir_flag_spec='-L$libdir'
17857 hardcode_minus_L=yes
17859 esac
17862 bsdi[45]*)
17863 export_dynamic_flag_spec=-rdynamic
17866 cygwin* | mingw* | pw32* | cegcc*)
17867 # When not using gcc, we currently assume that we are using
17868 # Microsoft Visual C++.
17869 # hardcode_libdir_flag_spec is actually meaningless, as there is
17870 # no search path for DLLs.
17871 hardcode_libdir_flag_spec=' '
17872 allow_undefined_flag=unsupported
17873 # Tell ltmain to make .lib files, not .a files.
17874 libext=lib
17875 # Tell ltmain to make .dll files, not .so files.
17876 shrext_cmds=".dll"
17877 # FIXME: Setting linknames here is a bad hack.
17878 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
17879 # The linker will automatically build a .lib file if we build a DLL.
17880 old_archive_from_new_cmds='true'
17881 # FIXME: Should let the user specify the lib program.
17882 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
17883 fix_srcfile_path='`cygpath -w "$srcfile"`'
17884 enable_shared_with_static_runtimes=yes
17887 darwin* | rhapsody*)
17890 archive_cmds_need_lc=no
17891 hardcode_direct=no
17892 hardcode_automatic=yes
17893 hardcode_shlibpath_var=unsupported
17894 if test "$lt_cv_ld_force_load" = "yes"; then
17895 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\"`'
17896 else
17897 whole_archive_flag_spec=''
17899 link_all_deplibs=yes
17900 allow_undefined_flag="$_lt_dar_allow_undefined"
17901 case $cc_basename in
17902 ifort*) _lt_dar_can_shared=yes ;;
17903 *) _lt_dar_can_shared=$GCC ;;
17904 esac
17905 if test "$_lt_dar_can_shared" = "yes"; then
17906 output_verbose_link_cmd=func_echo_all
17907 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
17908 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17909 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}"
17910 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}"
17912 else
17913 ld_shlibs=no
17918 dgux*)
17919 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17920 hardcode_libdir_flag_spec='-L$libdir'
17921 hardcode_shlibpath_var=no
17924 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17925 # support. Future versions do this automatically, but an explicit c++rt0.o
17926 # does not break anything, and helps significantly (at the cost of a little
17927 # extra space).
17928 freebsd2.2*)
17929 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17930 hardcode_libdir_flag_spec='-R$libdir'
17931 hardcode_direct=yes
17932 hardcode_shlibpath_var=no
17935 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17936 freebsd2.*)
17937 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17938 hardcode_direct=yes
17939 hardcode_minus_L=yes
17940 hardcode_shlibpath_var=no
17943 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17944 freebsd* | dragonfly*)
17945 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17946 hardcode_libdir_flag_spec='-R$libdir'
17947 hardcode_direct=yes
17948 hardcode_shlibpath_var=no
17951 hpux9*)
17952 if test "$GCC" = yes; then
17953 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'
17954 else
17955 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'
17957 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
17958 hardcode_libdir_separator=:
17959 hardcode_direct=yes
17961 # hardcode_minus_L: Not really in the search PATH,
17962 # but as the default location of the library.
17963 hardcode_minus_L=yes
17964 export_dynamic_flag_spec='${wl}-E'
17967 hpux10*)
17968 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
17969 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17970 else
17971 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17973 if test "$with_gnu_ld" = no; then
17974 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
17975 hardcode_libdir_flag_spec_ld='+b $libdir'
17976 hardcode_libdir_separator=:
17977 hardcode_direct=yes
17978 hardcode_direct_absolute=yes
17979 export_dynamic_flag_spec='${wl}-E'
17980 # hardcode_minus_L: Not really in the search PATH,
17981 # but as the default location of the library.
17982 hardcode_minus_L=yes
17986 hpux11*)
17987 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
17988 case $host_cpu in
17989 hppa*64*)
17990 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17992 ia64*)
17993 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17996 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17998 esac
17999 else
18000 case $host_cpu in
18001 hppa*64*)
18002 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18004 ia64*)
18005 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18009 # Older versions of the 11.00 compiler do not understand -b yet
18010 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
18011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
18012 $as_echo_n "checking if $CC understands -b... " >&6; }
18013 if ${lt_cv_prog_compiler__b+:} false; then :
18014 $as_echo_n "(cached) " >&6
18015 else
18016 lt_cv_prog_compiler__b=no
18017 save_LDFLAGS="$LDFLAGS"
18018 LDFLAGS="$LDFLAGS -b"
18019 echo "$lt_simple_link_test_code" > conftest.$ac_ext
18020 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18021 # The linker can only warn and ignore the option if not recognized
18022 # So say no if there are warnings
18023 if test -s conftest.err; then
18024 # Append any errors to the config.log.
18025 cat conftest.err 1>&5
18026 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
18027 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18028 if diff conftest.exp conftest.er2 >/dev/null; then
18029 lt_cv_prog_compiler__b=yes
18031 else
18032 lt_cv_prog_compiler__b=yes
18035 $RM -r conftest*
18036 LDFLAGS="$save_LDFLAGS"
18039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
18040 $as_echo "$lt_cv_prog_compiler__b" >&6; }
18042 if test x"$lt_cv_prog_compiler__b" = xyes; then
18043 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18044 else
18045 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18049 esac
18051 if test "$with_gnu_ld" = no; then
18052 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
18053 hardcode_libdir_separator=:
18055 case $host_cpu in
18056 hppa*64*|ia64*)
18057 hardcode_direct=no
18058 hardcode_shlibpath_var=no
18061 hardcode_direct=yes
18062 hardcode_direct_absolute=yes
18063 export_dynamic_flag_spec='${wl}-E'
18065 # hardcode_minus_L: Not really in the search PATH,
18066 # but as the default location of the library.
18067 hardcode_minus_L=yes
18069 esac
18073 irix5* | irix6* | nonstopux*)
18074 if test "$GCC" = yes; then
18075 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'
18076 # Try to use the -exported_symbol ld option, if it does not
18077 # work, assume that -exports_file does not work either and
18078 # implicitly export all symbols.
18079 save_LDFLAGS="$LDFLAGS"
18080 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
18081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18082 /* end confdefs.h. */
18083 int foo(void) {}
18084 _ACEOF
18085 if ac_fn_c_try_link "$LINENO"; then :
18086 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'
18089 rm -f core conftest.err conftest.$ac_objext \
18090 conftest$ac_exeext conftest.$ac_ext
18091 LDFLAGS="$save_LDFLAGS"
18092 else
18093 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'
18094 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'
18096 archive_cmds_need_lc='no'
18097 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
18098 hardcode_libdir_separator=:
18099 inherit_rpath=yes
18100 link_all_deplibs=yes
18103 netbsd*)
18104 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18105 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18106 else
18107 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18109 hardcode_libdir_flag_spec='-R$libdir'
18110 hardcode_direct=yes
18111 hardcode_shlibpath_var=no
18114 newsos6)
18115 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18116 hardcode_direct=yes
18117 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
18118 hardcode_libdir_separator=:
18119 hardcode_shlibpath_var=no
18122 *nto* | *qnx*)
18125 openbsd*)
18126 if test -f /usr/libexec/ld.so; then
18127 hardcode_direct=yes
18128 hardcode_shlibpath_var=no
18129 hardcode_direct_absolute=yes
18130 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18131 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18132 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18133 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
18134 export_dynamic_flag_spec='${wl}-E'
18135 else
18136 case $host_os in
18137 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18138 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18139 hardcode_libdir_flag_spec='-R$libdir'
18142 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18143 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
18145 esac
18147 else
18148 ld_shlibs=no
18152 os2*)
18153 hardcode_libdir_flag_spec='-L$libdir'
18154 hardcode_minus_L=yes
18155 allow_undefined_flag=unsupported
18156 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'
18157 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18160 osf3*)
18161 if test "$GCC" = yes; then
18162 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
18163 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'
18164 else
18165 allow_undefined_flag=' -expect_unresolved \*'
18166 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'
18168 archive_cmds_need_lc='no'
18169 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
18170 hardcode_libdir_separator=:
18173 osf4* | osf5*) # as osf3* with the addition of -msym flag
18174 if test "$GCC" = yes; then
18175 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
18176 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'
18177 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
18178 else
18179 allow_undefined_flag=' -expect_unresolved \*'
18180 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'
18181 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~
18182 $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'
18184 # Both c and cxx compiler support -rpath directly
18185 hardcode_libdir_flag_spec='-rpath $libdir'
18187 archive_cmds_need_lc='no'
18188 hardcode_libdir_separator=:
18191 solaris*)
18192 no_undefined_flag=' -z defs'
18193 if test "$GCC" = yes; then
18194 wlarc='${wl}'
18195 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18196 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18197 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
18198 else
18199 case `$CC -V 2>&1` in
18200 *"Compilers 5.0"*)
18201 wlarc=''
18202 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18203 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18204 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
18207 wlarc='${wl}'
18208 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
18209 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18210 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
18212 esac
18214 hardcode_libdir_flag_spec='-R$libdir'
18215 hardcode_shlibpath_var=no
18216 case $host_os in
18217 solaris2.[0-5] | solaris2.[0-5].*) ;;
18219 # The compiler driver will combine and reorder linker options,
18220 # but understands `-z linker_flag'. GCC discards it without `$wl',
18221 # but is careful enough not to reorder.
18222 # Supported since Solaris 2.6 (maybe 2.5.1?)
18223 if test "$GCC" = yes; then
18224 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18225 else
18226 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
18229 esac
18230 link_all_deplibs=yes
18233 sunos4*)
18234 if test "x$host_vendor" = xsequent; then
18235 # Use $CC to link under sequent, because it throws in some extra .o
18236 # files that make .init and .fini sections work.
18237 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18238 else
18239 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18241 hardcode_libdir_flag_spec='-L$libdir'
18242 hardcode_direct=yes
18243 hardcode_minus_L=yes
18244 hardcode_shlibpath_var=no
18247 sysv4)
18248 case $host_vendor in
18249 sni)
18250 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18251 hardcode_direct=yes # is this really true???
18253 siemens)
18254 ## LD is ld it makes a PLAMLIB
18255 ## CC just makes a GrossModule.
18256 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18257 reload_cmds='$CC -r -o $output$reload_objs'
18258 hardcode_direct=no
18260 motorola)
18261 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18262 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
18264 esac
18265 runpath_var='LD_RUN_PATH'
18266 hardcode_shlibpath_var=no
18269 sysv4.3*)
18270 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18271 hardcode_shlibpath_var=no
18272 export_dynamic_flag_spec='-Bexport'
18275 sysv4*MP*)
18276 if test -d /usr/nec; then
18277 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18278 hardcode_shlibpath_var=no
18279 runpath_var=LD_RUN_PATH
18280 hardcode_runpath_var=yes
18281 ld_shlibs=yes
18285 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18286 no_undefined_flag='${wl}-z,text'
18287 archive_cmds_need_lc=no
18288 hardcode_shlibpath_var=no
18289 runpath_var='LD_RUN_PATH'
18291 if test "$GCC" = yes; then
18292 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18293 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18294 else
18295 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18296 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18300 sysv5* | sco3.2v5* | sco5v6*)
18301 # Note: We can NOT use -z defs as we might desire, because we do not
18302 # link with -lc, and that would cause any symbols used from libc to
18303 # always be unresolved, which means just about no library would
18304 # ever link correctly. If we're not using GNU ld we use -z text
18305 # though, which does catch some bad symbols but isn't as heavy-handed
18306 # as -z defs.
18307 no_undefined_flag='${wl}-z,text'
18308 allow_undefined_flag='${wl}-z,nodefs'
18309 archive_cmds_need_lc=no
18310 hardcode_shlibpath_var=no
18311 hardcode_libdir_flag_spec='${wl}-R,$libdir'
18312 hardcode_libdir_separator=':'
18313 link_all_deplibs=yes
18314 export_dynamic_flag_spec='${wl}-Bexport'
18315 runpath_var='LD_RUN_PATH'
18317 if test "$GCC" = yes; then
18318 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18319 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18320 else
18321 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18322 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18326 uts4*)
18327 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18328 hardcode_libdir_flag_spec='-L$libdir'
18329 hardcode_shlibpath_var=no
18333 ld_shlibs=no
18335 esac
18337 if test x$host_vendor = xsni; then
18338 case $host in
18339 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18340 export_dynamic_flag_spec='${wl}-Blargedynsym'
18342 esac
18346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
18347 $as_echo "$ld_shlibs" >&6; }
18348 test "$ld_shlibs" = no && can_build_shared=no
18350 with_gnu_ld=$with_gnu_ld
18367 # Do we need to explicitly link libc?
18369 case "x$archive_cmds_need_lc" in
18370 x|xyes)
18371 # Assume -lc should be added
18372 archive_cmds_need_lc=yes
18374 if test "$enable_shared" = yes && test "$GCC" = yes; then
18375 case $archive_cmds in
18376 *'~'*)
18377 # FIXME: we may have to deal with multi-command sequences.
18379 '$CC '*)
18380 # Test whether the compiler implicitly links with -lc since on some
18381 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18382 # to ld, don't add -lc before -lgcc.
18383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
18384 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
18385 if ${lt_cv_archive_cmds_need_lc+:} false; then :
18386 $as_echo_n "(cached) " >&6
18387 else
18388 $RM conftest*
18389 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18391 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18392 (eval $ac_compile) 2>&5
18393 ac_status=$?
18394 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18395 test $ac_status = 0; } 2>conftest.err; then
18396 soname=conftest
18397 lib=conftest
18398 libobjs=conftest.$ac_objext
18399 deplibs=
18400 wl=$lt_prog_compiler_wl
18401 pic_flag=$lt_prog_compiler_pic
18402 compiler_flags=-v
18403 linker_flags=-v
18404 verstring=
18405 output_objdir=.
18406 libname=conftest
18407 lt_save_allow_undefined_flag=$allow_undefined_flag
18408 allow_undefined_flag=
18409 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
18410 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
18411 ac_status=$?
18412 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18413 test $ac_status = 0; }
18414 then
18415 lt_cv_archive_cmds_need_lc=no
18416 else
18417 lt_cv_archive_cmds_need_lc=yes
18419 allow_undefined_flag=$lt_save_allow_undefined_flag
18420 else
18421 cat conftest.err 1>&5
18423 $RM conftest*
18426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
18427 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
18428 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
18430 esac
18433 esac
18591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
18592 $as_echo_n "checking dynamic linker characteristics... " >&6; }
18594 if test "$GCC" = yes; then
18595 case $host_os in
18596 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
18597 *) lt_awk_arg="/^libraries:/" ;;
18598 esac
18599 case $host_os in
18600 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
18601 *) lt_sed_strip_eq="s,=/,/,g" ;;
18602 esac
18603 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
18604 case $lt_search_path_spec in
18605 *\;*)
18606 # if the path contains ";" then we assume it to be the separator
18607 # otherwise default to the standard path separator (i.e. ":") - it is
18608 # assumed that no part of a normal pathname contains ";" but that should
18609 # okay in the real world where ";" in dirpaths is itself problematic.
18610 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
18613 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
18615 esac
18616 # Ok, now we have the path, separated by spaces, we can step through it
18617 # and add multilib dir if necessary.
18618 lt_tmp_lt_search_path_spec=
18619 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
18620 for lt_sys_path in $lt_search_path_spec; do
18621 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
18622 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
18623 else
18624 test -d "$lt_sys_path" && \
18625 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
18627 done
18628 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
18629 BEGIN {RS=" "; FS="/|\n";} {
18630 lt_foo="";
18631 lt_count=0;
18632 for (lt_i = NF; lt_i > 0; lt_i--) {
18633 if ($lt_i != "" && $lt_i != ".") {
18634 if ($lt_i == "..") {
18635 lt_count++;
18636 } else {
18637 if (lt_count == 0) {
18638 lt_foo="/" $lt_i lt_foo;
18639 } else {
18640 lt_count--;
18645 if (lt_foo != "") { lt_freq[lt_foo]++; }
18646 if (lt_freq[lt_foo] == 1) { print lt_foo; }
18648 # AWK program above erroneously prepends '/' to C:/dos/paths
18649 # for these hosts.
18650 case $host_os in
18651 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
18652 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
18653 esac
18654 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
18655 else
18656 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18658 library_names_spec=
18659 libname_spec='lib$name'
18660 soname_spec=
18661 shrext_cmds=".so"
18662 postinstall_cmds=
18663 postuninstall_cmds=
18664 finish_cmds=
18665 finish_eval=
18666 shlibpath_var=
18667 shlibpath_overrides_runpath=unknown
18668 version_type=none
18669 dynamic_linker="$host_os ld.so"
18670 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18671 need_lib_prefix=unknown
18672 hardcode_into_libs=no
18674 # when you set need_version to no, make sure it does not cause -set_version
18675 # flags to be left without arguments
18676 need_version=unknown
18678 case $host_os in
18679 aix3*)
18680 version_type=linux
18681 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18682 shlibpath_var=LIBPATH
18684 # AIX 3 has no versioning support, so we append a major version to the name.
18685 soname_spec='${libname}${release}${shared_ext}$major'
18688 aix[4-9]*)
18689 version_type=linux
18690 need_lib_prefix=no
18691 need_version=no
18692 hardcode_into_libs=yes
18693 if test "$host_cpu" = ia64; then
18694 # AIX 5 supports IA64
18695 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18696 shlibpath_var=LD_LIBRARY_PATH
18697 else
18698 # With GCC up to 2.95.x, collect2 would create an import file
18699 # for dependence libraries. The import file would start with
18700 # the line `#! .'. This would cause the generated library to
18701 # depend on `.', always an invalid library. This was fixed in
18702 # development snapshots of GCC prior to 3.0.
18703 case $host_os in
18704 aix4 | aix4.[01] | aix4.[01].*)
18705 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18706 echo ' yes '
18707 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
18709 else
18710 can_build_shared=no
18713 esac
18714 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18715 # soname into executable. Probably we can add versioning support to
18716 # collect2, so additional links can be useful in future.
18717 if test "$aix_use_runtimelinking" = yes; then
18718 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18719 # instead of lib<name>.a to let people know that these are not
18720 # typical AIX shared libraries.
18721 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18722 else
18723 # We preserve .a as extension for shared libraries through AIX4.2
18724 # and later when we are not doing run time linking.
18725 library_names_spec='${libname}${release}.a $libname.a'
18726 soname_spec='${libname}${release}${shared_ext}$major'
18728 shlibpath_var=LIBPATH
18732 amigaos*)
18733 case $host_cpu in
18734 powerpc)
18735 # Since July 2007 AmigaOS4 officially supports .so libraries.
18736 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
18737 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18739 m68k)
18740 library_names_spec='$libname.ixlibrary $libname.a'
18741 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18742 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'
18744 esac
18747 beos*)
18748 library_names_spec='${libname}${shared_ext}'
18749 dynamic_linker="$host_os ld.so"
18750 shlibpath_var=LIBRARY_PATH
18753 bsdi[45]*)
18754 version_type=linux
18755 need_version=no
18756 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18757 soname_spec='${libname}${release}${shared_ext}$major'
18758 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18759 shlibpath_var=LD_LIBRARY_PATH
18760 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18761 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18762 # the default ld.so.conf also contains /usr/contrib/lib and
18763 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18764 # libtool to hard-code these into programs
18767 cygwin* | mingw* | pw32* | cegcc*)
18768 version_type=windows
18769 shrext_cmds=".dll"
18770 need_version=no
18771 need_lib_prefix=no
18773 case $GCC,$host_os in
18774 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
18775 library_names_spec='$libname.dll.a'
18776 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18777 postinstall_cmds='base_file=`basename \${file}`~
18778 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
18779 dldir=$destdir/`dirname \$dlpath`~
18780 test -d \$dldir || mkdir -p \$dldir~
18781 $install_prog $dir/$dlname \$dldir/$dlname~
18782 chmod a+x \$dldir/$dlname~
18783 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18784 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18786 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18787 dlpath=$dir/\$dldll~
18788 $RM \$dlpath'
18789 shlibpath_overrides_runpath=yes
18791 case $host_os in
18792 cygwin*)
18793 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18794 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18796 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
18798 mingw* | cegcc*)
18799 # MinGW DLLs use traditional 'lib' prefix
18800 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18802 pw32*)
18803 # pw32 DLLs use 'pw' prefix rather than 'lib'
18804 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18806 esac
18810 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18812 esac
18813 dynamic_linker='Win32 ld.exe'
18814 # FIXME: first we should search . and the directory the executable is in
18815 shlibpath_var=PATH
18818 darwin* | rhapsody*)
18819 dynamic_linker="$host_os dyld"
18820 version_type=darwin
18821 need_lib_prefix=no
18822 need_version=no
18823 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18824 soname_spec='${libname}${release}${major}$shared_ext'
18825 shlibpath_overrides_runpath=yes
18826 shlibpath_var=DYLD_LIBRARY_PATH
18827 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18829 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
18830 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18833 dgux*)
18834 version_type=linux
18835 need_lib_prefix=no
18836 need_version=no
18837 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18838 soname_spec='${libname}${release}${shared_ext}$major'
18839 shlibpath_var=LD_LIBRARY_PATH
18842 freebsd* | dragonfly*)
18843 # DragonFly does not have aout. When/if they implement a new
18844 # versioning mechanism, adjust this.
18845 if test -x /usr/bin/objformat; then
18846 objformat=`/usr/bin/objformat`
18847 else
18848 case $host_os in
18849 freebsd[23].*) objformat=aout ;;
18850 *) objformat=elf ;;
18851 esac
18853 version_type=freebsd-$objformat
18854 case $version_type in
18855 freebsd-elf*)
18856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18857 need_version=no
18858 need_lib_prefix=no
18860 freebsd-*)
18861 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18862 need_version=yes
18864 esac
18865 shlibpath_var=LD_LIBRARY_PATH
18866 case $host_os in
18867 freebsd2.*)
18868 shlibpath_overrides_runpath=yes
18870 freebsd3.[01]* | freebsdelf3.[01]*)
18871 shlibpath_overrides_runpath=yes
18872 hardcode_into_libs=yes
18874 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18875 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18876 shlibpath_overrides_runpath=no
18877 hardcode_into_libs=yes
18879 *) # from 4.6 on, and DragonFly
18880 shlibpath_overrides_runpath=yes
18881 hardcode_into_libs=yes
18883 esac
18886 haiku*)
18887 version_type=linux
18888 need_lib_prefix=no
18889 need_version=no
18890 dynamic_linker="$host_os runtime_loader"
18891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18892 soname_spec='${libname}${release}${shared_ext}$major'
18893 shlibpath_var=LIBRARY_PATH
18894 shlibpath_overrides_runpath=yes
18895 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
18896 hardcode_into_libs=yes
18899 hpux9* | hpux10* | hpux11*)
18900 # Give a soname corresponding to the major version so that dld.sl refuses to
18901 # link against other versions.
18902 version_type=sunos
18903 need_lib_prefix=no
18904 need_version=no
18905 case $host_cpu in
18906 ia64*)
18907 shrext_cmds='.so'
18908 hardcode_into_libs=yes
18909 dynamic_linker="$host_os dld.so"
18910 shlibpath_var=LD_LIBRARY_PATH
18911 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18913 soname_spec='${libname}${release}${shared_ext}$major'
18914 if test "X$HPUX_IA64_MODE" = X32; then
18915 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18916 else
18917 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18919 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18921 hppa*64*)
18922 shrext_cmds='.sl'
18923 hardcode_into_libs=yes
18924 dynamic_linker="$host_os dld.sl"
18925 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18926 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18928 soname_spec='${libname}${release}${shared_ext}$major'
18929 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18930 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18933 shrext_cmds='.sl'
18934 dynamic_linker="$host_os dld.sl"
18935 shlibpath_var=SHLIB_PATH
18936 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18937 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18938 soname_spec='${libname}${release}${shared_ext}$major'
18940 esac
18941 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
18942 postinstall_cmds='chmod 555 $lib'
18943 # or fails outright, so override atomically:
18944 install_override_mode=555
18947 interix[3-9]*)
18948 version_type=linux
18949 need_lib_prefix=no
18950 need_version=no
18951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18952 soname_spec='${libname}${release}${shared_ext}$major'
18953 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18954 shlibpath_var=LD_LIBRARY_PATH
18955 shlibpath_overrides_runpath=no
18956 hardcode_into_libs=yes
18959 irix5* | irix6* | nonstopux*)
18960 case $host_os in
18961 nonstopux*) version_type=nonstopux ;;
18963 if test "$lt_cv_prog_gnu_ld" = yes; then
18964 version_type=linux
18965 else
18966 version_type=irix
18967 fi ;;
18968 esac
18969 need_lib_prefix=no
18970 need_version=no
18971 soname_spec='${libname}${release}${shared_ext}$major'
18972 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18973 case $host_os in
18974 irix5* | nonstopux*)
18975 libsuff= shlibsuff=
18978 case $LD in # libtool.m4 will add one of these switches to LD
18979 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18980 libsuff= shlibsuff= libmagic=32-bit;;
18981 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18982 libsuff=32 shlibsuff=N32 libmagic=N32;;
18983 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18984 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18985 *) libsuff= shlibsuff= libmagic=never-match;;
18986 esac
18988 esac
18989 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18990 shlibpath_overrides_runpath=no
18991 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18992 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18993 hardcode_into_libs=yes
18996 # No shared lib support for Linux oldld, aout, or coff.
18997 linux*oldld* | linux*aout* | linux*coff*)
18998 dynamic_linker=no
19001 # This must be Linux ELF.
19003 # uclinux* changes (here and below) have been submitted to the libtool
19004 # project, but have not yet been accepted: they are GCC-local changes
19005 # for the time being. (See
19006 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
19007 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
19008 version_type=linux
19009 need_lib_prefix=no
19010 need_version=no
19011 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19012 soname_spec='${libname}${release}${shared_ext}$major'
19013 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19014 shlibpath_var=LD_LIBRARY_PATH
19015 shlibpath_overrides_runpath=no
19017 # Some binutils ld are patched to set DT_RUNPATH
19018 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
19019 $as_echo_n "(cached) " >&6
19020 else
19021 lt_cv_shlibpath_overrides_runpath=no
19022 save_LDFLAGS=$LDFLAGS
19023 save_libdir=$libdir
19024 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
19025 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
19026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19027 /* end confdefs.h. */
19030 main ()
19034 return 0;
19036 _ACEOF
19037 if ac_fn_c_try_link "$LINENO"; then :
19038 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
19039 lt_cv_shlibpath_overrides_runpath=yes
19042 rm -f core conftest.err conftest.$ac_objext \
19043 conftest$ac_exeext conftest.$ac_ext
19044 LDFLAGS=$save_LDFLAGS
19045 libdir=$save_libdir
19049 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
19051 # This implies no fast_install, which is unacceptable.
19052 # Some rework will be needed to allow for fast_install
19053 # before this can be enabled.
19054 hardcode_into_libs=yes
19056 # Append ld.so.conf contents to the search path
19057 if test -f /etc/ld.so.conf; then
19058 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' ' '`
19059 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19062 # We used to test for /lib/ld.so.1 and disable shared libraries on
19063 # powerpc, because MkLinux only supported shared libraries with the
19064 # GNU dynamic linker. Since this was broken with cross compilers,
19065 # most powerpc-linux boxes support dynamic linking these days and
19066 # people can always --disable-shared, the test was removed, and we
19067 # assume the GNU/Linux dynamic linker is in use.
19068 dynamic_linker='GNU/Linux ld.so'
19071 netbsd*)
19072 version_type=sunos
19073 need_lib_prefix=no
19074 need_version=no
19075 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19076 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19077 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19078 dynamic_linker='NetBSD (a.out) ld.so'
19079 else
19080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19081 soname_spec='${libname}${release}${shared_ext}$major'
19082 dynamic_linker='NetBSD ld.elf_so'
19084 shlibpath_var=LD_LIBRARY_PATH
19085 shlibpath_overrides_runpath=yes
19086 hardcode_into_libs=yes
19089 newsos6)
19090 version_type=linux
19091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19092 shlibpath_var=LD_LIBRARY_PATH
19093 shlibpath_overrides_runpath=yes
19096 *nto* | *qnx*)
19097 version_type=qnx
19098 need_lib_prefix=no
19099 need_version=no
19100 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19101 soname_spec='${libname}${release}${shared_ext}$major'
19102 shlibpath_var=LD_LIBRARY_PATH
19103 shlibpath_overrides_runpath=no
19104 hardcode_into_libs=yes
19105 dynamic_linker='ldqnx.so'
19108 openbsd*)
19109 version_type=sunos
19110 sys_lib_dlsearch_path_spec="/usr/lib"
19111 need_lib_prefix=no
19112 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19113 case $host_os in
19114 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19115 *) need_version=no ;;
19116 esac
19117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19118 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19119 shlibpath_var=LD_LIBRARY_PATH
19120 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19121 case $host_os in
19122 openbsd2.[89] | openbsd2.[89].*)
19123 shlibpath_overrides_runpath=no
19126 shlibpath_overrides_runpath=yes
19128 esac
19129 else
19130 shlibpath_overrides_runpath=yes
19134 os2*)
19135 libname_spec='$name'
19136 shrext_cmds=".dll"
19137 need_lib_prefix=no
19138 library_names_spec='$libname${shared_ext} $libname.a'
19139 dynamic_linker='OS/2 ld.exe'
19140 shlibpath_var=LIBPATH
19143 osf3* | osf4* | osf5*)
19144 version_type=osf
19145 need_lib_prefix=no
19146 need_version=no
19147 soname_spec='${libname}${release}${shared_ext}$major'
19148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19149 shlibpath_var=LD_LIBRARY_PATH
19150 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19151 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19154 rdos*)
19155 dynamic_linker=no
19158 solaris*)
19159 version_type=linux
19160 need_lib_prefix=no
19161 need_version=no
19162 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19163 soname_spec='${libname}${release}${shared_ext}$major'
19164 shlibpath_var=LD_LIBRARY_PATH
19165 shlibpath_overrides_runpath=yes
19166 hardcode_into_libs=yes
19167 # ldd complains unless libraries are executable
19168 postinstall_cmds='chmod +x $lib'
19171 sunos4*)
19172 version_type=sunos
19173 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19174 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19175 shlibpath_var=LD_LIBRARY_PATH
19176 shlibpath_overrides_runpath=yes
19177 if test "$with_gnu_ld" = yes; then
19178 need_lib_prefix=no
19180 need_version=yes
19183 sysv4 | sysv4.3*)
19184 version_type=linux
19185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19186 soname_spec='${libname}${release}${shared_ext}$major'
19187 shlibpath_var=LD_LIBRARY_PATH
19188 case $host_vendor in
19189 sni)
19190 shlibpath_overrides_runpath=no
19191 need_lib_prefix=no
19192 runpath_var=LD_RUN_PATH
19194 siemens)
19195 need_lib_prefix=no
19197 motorola)
19198 need_lib_prefix=no
19199 need_version=no
19200 shlibpath_overrides_runpath=no
19201 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19203 esac
19206 sysv4*MP*)
19207 if test -d /usr/nec ;then
19208 version_type=linux
19209 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19210 soname_spec='$libname${shared_ext}.$major'
19211 shlibpath_var=LD_LIBRARY_PATH
19215 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19216 version_type=freebsd-elf
19217 need_lib_prefix=no
19218 need_version=no
19219 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19220 soname_spec='${libname}${release}${shared_ext}$major'
19221 shlibpath_var=LD_LIBRARY_PATH
19222 shlibpath_overrides_runpath=yes
19223 hardcode_into_libs=yes
19224 if test "$with_gnu_ld" = yes; then
19225 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19226 else
19227 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19228 case $host_os in
19229 sco3.2v5*)
19230 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19232 esac
19234 sys_lib_dlsearch_path_spec='/usr/lib'
19237 tpf*)
19238 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
19239 version_type=linux
19240 need_lib_prefix=no
19241 need_version=no
19242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19243 shlibpath_var=LD_LIBRARY_PATH
19244 shlibpath_overrides_runpath=no
19245 hardcode_into_libs=yes
19248 uts4*)
19249 version_type=linux
19250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19251 soname_spec='${libname}${release}${shared_ext}$major'
19252 shlibpath_var=LD_LIBRARY_PATH
19255 # Shared libraries for VwWorks, >= 7 only at this stage
19256 # and (fpic) still incompatible with "large" code models
19257 # in a few configurations. Only for RTP mode in any case,
19258 # and upon explicit request at configure time.
19259 vxworks7*)
19260 dynamic_linker=no
19261 case ${with_multisubdir}-${enable_shared} in
19262 *large*)
19264 *mrtp*-yes)
19265 version_type=linux
19266 need_lib_prefix=no
19267 need_version=no
19268 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19269 soname_spec='${libname}${release}${shared_ext}$major'
19270 dynamic_linker="$host_os module_loader"
19272 esac
19275 dynamic_linker=no
19277 esac
19278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
19279 $as_echo "$dynamic_linker" >&6; }
19280 test "$dynamic_linker" = no && can_build_shared=no
19282 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19283 if test "$GCC" = yes; then
19284 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19287 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
19288 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
19290 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
19291 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
19385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
19386 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
19387 hardcode_action=
19388 if test -n "$hardcode_libdir_flag_spec" ||
19389 test -n "$runpath_var" ||
19390 test "X$hardcode_automatic" = "Xyes" ; then
19392 # We can hardcode non-existent directories.
19393 if test "$hardcode_direct" != no &&
19394 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19395 # have to relink, otherwise we might link with an installed library
19396 # when we should be linking with a yet-to-be-installed one
19397 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
19398 test "$hardcode_minus_L" != no; then
19399 # Linking always hardcodes the temporary library directory.
19400 hardcode_action=relink
19401 else
19402 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19403 hardcode_action=immediate
19405 else
19406 # We cannot hardcode anything, or else we can only hardcode existing
19407 # directories.
19408 hardcode_action=unsupported
19410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
19411 $as_echo "$hardcode_action" >&6; }
19413 if test "$hardcode_action" = relink ||
19414 test "$inherit_rpath" = yes; then
19415 # Fast installation is not supported
19416 enable_fast_install=no
19417 elif test "$shlibpath_overrides_runpath" = yes ||
19418 test "$enable_shared" = no; then
19419 # Fast installation is not necessary
19420 enable_fast_install=needless
19428 if test "x$enable_dlopen" != xyes; then
19429 enable_dlopen=unknown
19430 enable_dlopen_self=unknown
19431 enable_dlopen_self_static=unknown
19432 else
19433 lt_cv_dlopen=no
19434 lt_cv_dlopen_libs=
19436 case $host_os in
19437 beos*)
19438 lt_cv_dlopen="load_add_on"
19439 lt_cv_dlopen_libs=
19440 lt_cv_dlopen_self=yes
19443 mingw* | pw32* | cegcc*)
19444 lt_cv_dlopen="LoadLibrary"
19445 lt_cv_dlopen_libs=
19448 cygwin*)
19449 lt_cv_dlopen="dlopen"
19450 lt_cv_dlopen_libs=
19453 darwin*)
19454 # if libdl is installed we need to link against it
19455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
19456 $as_echo_n "checking for dlopen in -ldl... " >&6; }
19457 if ${ac_cv_lib_dl_dlopen+:} false; then :
19458 $as_echo_n "(cached) " >&6
19459 else
19460 ac_check_lib_save_LIBS=$LIBS
19461 LIBS="-ldl $LIBS"
19462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19463 /* end confdefs.h. */
19465 /* Override any GCC internal prototype to avoid an error.
19466 Use char because int might match the return type of a GCC
19467 builtin and then its argument prototype would still apply. */
19468 #ifdef __cplusplus
19469 extern "C"
19470 #endif
19471 char dlopen ();
19473 main ()
19475 return dlopen ();
19477 return 0;
19479 _ACEOF
19480 if ac_fn_c_try_link "$LINENO"; then :
19481 ac_cv_lib_dl_dlopen=yes
19482 else
19483 ac_cv_lib_dl_dlopen=no
19485 rm -f core conftest.err conftest.$ac_objext \
19486 conftest$ac_exeext conftest.$ac_ext
19487 LIBS=$ac_check_lib_save_LIBS
19489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
19490 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
19491 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
19492 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
19493 else
19495 lt_cv_dlopen="dyld"
19496 lt_cv_dlopen_libs=
19497 lt_cv_dlopen_self=yes
19504 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
19505 if test "x$ac_cv_func_shl_load" = xyes; then :
19506 lt_cv_dlopen="shl_load"
19507 else
19508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
19509 $as_echo_n "checking for shl_load in -ldld... " >&6; }
19510 if ${ac_cv_lib_dld_shl_load+:} false; then :
19511 $as_echo_n "(cached) " >&6
19512 else
19513 ac_check_lib_save_LIBS=$LIBS
19514 LIBS="-ldld $LIBS"
19515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19516 /* end confdefs.h. */
19518 /* Override any GCC internal prototype to avoid an error.
19519 Use char because int might match the return type of a GCC
19520 builtin and then its argument prototype would still apply. */
19521 #ifdef __cplusplus
19522 extern "C"
19523 #endif
19524 char shl_load ();
19526 main ()
19528 return shl_load ();
19530 return 0;
19532 _ACEOF
19533 if ac_fn_c_try_link "$LINENO"; then :
19534 ac_cv_lib_dld_shl_load=yes
19535 else
19536 ac_cv_lib_dld_shl_load=no
19538 rm -f core conftest.err conftest.$ac_objext \
19539 conftest$ac_exeext conftest.$ac_ext
19540 LIBS=$ac_check_lib_save_LIBS
19542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
19543 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
19544 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
19545 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
19546 else
19547 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
19548 if test "x$ac_cv_func_dlopen" = xyes; then :
19549 lt_cv_dlopen="dlopen"
19550 else
19551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
19552 $as_echo_n "checking for dlopen in -ldl... " >&6; }
19553 if ${ac_cv_lib_dl_dlopen+:} false; then :
19554 $as_echo_n "(cached) " >&6
19555 else
19556 ac_check_lib_save_LIBS=$LIBS
19557 LIBS="-ldl $LIBS"
19558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19559 /* end confdefs.h. */
19561 /* Override any GCC internal prototype to avoid an error.
19562 Use char because int might match the return type of a GCC
19563 builtin and then its argument prototype would still apply. */
19564 #ifdef __cplusplus
19565 extern "C"
19566 #endif
19567 char dlopen ();
19569 main ()
19571 return dlopen ();
19573 return 0;
19575 _ACEOF
19576 if ac_fn_c_try_link "$LINENO"; then :
19577 ac_cv_lib_dl_dlopen=yes
19578 else
19579 ac_cv_lib_dl_dlopen=no
19581 rm -f core conftest.err conftest.$ac_objext \
19582 conftest$ac_exeext conftest.$ac_ext
19583 LIBS=$ac_check_lib_save_LIBS
19585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
19586 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
19587 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
19588 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
19589 else
19590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
19591 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
19592 if ${ac_cv_lib_svld_dlopen+:} false; then :
19593 $as_echo_n "(cached) " >&6
19594 else
19595 ac_check_lib_save_LIBS=$LIBS
19596 LIBS="-lsvld $LIBS"
19597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19598 /* end confdefs.h. */
19600 /* Override any GCC internal prototype to avoid an error.
19601 Use char because int might match the return type of a GCC
19602 builtin and then its argument prototype would still apply. */
19603 #ifdef __cplusplus
19604 extern "C"
19605 #endif
19606 char dlopen ();
19608 main ()
19610 return dlopen ();
19612 return 0;
19614 _ACEOF
19615 if ac_fn_c_try_link "$LINENO"; then :
19616 ac_cv_lib_svld_dlopen=yes
19617 else
19618 ac_cv_lib_svld_dlopen=no
19620 rm -f core conftest.err conftest.$ac_objext \
19621 conftest$ac_exeext conftest.$ac_ext
19622 LIBS=$ac_check_lib_save_LIBS
19624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
19625 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
19626 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
19627 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
19628 else
19629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
19630 $as_echo_n "checking for dld_link in -ldld... " >&6; }
19631 if ${ac_cv_lib_dld_dld_link+:} false; then :
19632 $as_echo_n "(cached) " >&6
19633 else
19634 ac_check_lib_save_LIBS=$LIBS
19635 LIBS="-ldld $LIBS"
19636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19637 /* end confdefs.h. */
19639 /* Override any GCC internal prototype to avoid an error.
19640 Use char because int might match the return type of a GCC
19641 builtin and then its argument prototype would still apply. */
19642 #ifdef __cplusplus
19643 extern "C"
19644 #endif
19645 char dld_link ();
19647 main ()
19649 return dld_link ();
19651 return 0;
19653 _ACEOF
19654 if ac_fn_c_try_link "$LINENO"; then :
19655 ac_cv_lib_dld_dld_link=yes
19656 else
19657 ac_cv_lib_dld_dld_link=no
19659 rm -f core conftest.err conftest.$ac_objext \
19660 conftest$ac_exeext conftest.$ac_ext
19661 LIBS=$ac_check_lib_save_LIBS
19663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
19664 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
19665 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
19666 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
19685 esac
19687 if test "x$lt_cv_dlopen" != xno; then
19688 enable_dlopen=yes
19689 else
19690 enable_dlopen=no
19693 case $lt_cv_dlopen in
19694 dlopen)
19695 save_CPPFLAGS="$CPPFLAGS"
19696 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
19698 save_LDFLAGS="$LDFLAGS"
19699 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
19701 save_LIBS="$LIBS"
19702 LIBS="$lt_cv_dlopen_libs $LIBS"
19704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
19705 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
19706 if ${lt_cv_dlopen_self+:} false; then :
19707 $as_echo_n "(cached) " >&6
19708 else
19709 if test "$cross_compiling" = yes; then :
19710 lt_cv_dlopen_self=cross
19711 else
19712 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19713 lt_status=$lt_dlunknown
19714 cat > conftest.$ac_ext <<_LT_EOF
19715 #line 19715 "configure"
19716 #include "confdefs.h"
19718 #if HAVE_DLFCN_H
19719 #include <dlfcn.h>
19720 #endif
19722 #include <stdio.h>
19724 #ifdef RTLD_GLOBAL
19725 # define LT_DLGLOBAL RTLD_GLOBAL
19726 #else
19727 # ifdef DL_GLOBAL
19728 # define LT_DLGLOBAL DL_GLOBAL
19729 # else
19730 # define LT_DLGLOBAL 0
19731 # endif
19732 #endif
19734 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19735 find out it does not work in some platform. */
19736 #ifndef LT_DLLAZY_OR_NOW
19737 # ifdef RTLD_LAZY
19738 # define LT_DLLAZY_OR_NOW RTLD_LAZY
19739 # else
19740 # ifdef DL_LAZY
19741 # define LT_DLLAZY_OR_NOW DL_LAZY
19742 # else
19743 # ifdef RTLD_NOW
19744 # define LT_DLLAZY_OR_NOW RTLD_NOW
19745 # else
19746 # ifdef DL_NOW
19747 # define LT_DLLAZY_OR_NOW DL_NOW
19748 # else
19749 # define LT_DLLAZY_OR_NOW 0
19750 # endif
19751 # endif
19752 # endif
19753 # endif
19754 #endif
19756 /* When -fvisbility=hidden is used, assume the code has been annotated
19757 correspondingly for the symbols needed. */
19758 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
19759 void fnord () __attribute__((visibility("default")));
19760 #endif
19762 void fnord () { int i=42; }
19763 int main ()
19765 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19766 int status = $lt_dlunknown;
19768 if (self)
19770 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19771 else
19773 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19774 else puts (dlerror ());
19776 /* dlclose (self); */
19778 else
19779 puts (dlerror ());
19781 return status;
19783 _LT_EOF
19784 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
19785 (eval $ac_link) 2>&5
19786 ac_status=$?
19787 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19788 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
19789 (./conftest; exit; ) >&5 2>/dev/null
19790 lt_status=$?
19791 case x$lt_status in
19792 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
19793 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
19794 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
19795 esac
19796 else :
19797 # compilation failed
19798 lt_cv_dlopen_self=no
19801 rm -fr conftest*
19805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
19806 $as_echo "$lt_cv_dlopen_self" >&6; }
19808 if test "x$lt_cv_dlopen_self" = xyes; then
19809 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
19810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
19811 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
19812 if ${lt_cv_dlopen_self_static+:} false; then :
19813 $as_echo_n "(cached) " >&6
19814 else
19815 if test "$cross_compiling" = yes; then :
19816 lt_cv_dlopen_self_static=cross
19817 else
19818 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19819 lt_status=$lt_dlunknown
19820 cat > conftest.$ac_ext <<_LT_EOF
19821 #line 19821 "configure"
19822 #include "confdefs.h"
19824 #if HAVE_DLFCN_H
19825 #include <dlfcn.h>
19826 #endif
19828 #include <stdio.h>
19830 #ifdef RTLD_GLOBAL
19831 # define LT_DLGLOBAL RTLD_GLOBAL
19832 #else
19833 # ifdef DL_GLOBAL
19834 # define LT_DLGLOBAL DL_GLOBAL
19835 # else
19836 # define LT_DLGLOBAL 0
19837 # endif
19838 #endif
19840 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19841 find out it does not work in some platform. */
19842 #ifndef LT_DLLAZY_OR_NOW
19843 # ifdef RTLD_LAZY
19844 # define LT_DLLAZY_OR_NOW RTLD_LAZY
19845 # else
19846 # ifdef DL_LAZY
19847 # define LT_DLLAZY_OR_NOW DL_LAZY
19848 # else
19849 # ifdef RTLD_NOW
19850 # define LT_DLLAZY_OR_NOW RTLD_NOW
19851 # else
19852 # ifdef DL_NOW
19853 # define LT_DLLAZY_OR_NOW DL_NOW
19854 # else
19855 # define LT_DLLAZY_OR_NOW 0
19856 # endif
19857 # endif
19858 # endif
19859 # endif
19860 #endif
19862 /* When -fvisbility=hidden is used, assume the code has been annotated
19863 correspondingly for the symbols needed. */
19864 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
19865 void fnord () __attribute__((visibility("default")));
19866 #endif
19868 void fnord () { int i=42; }
19869 int main ()
19871 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19872 int status = $lt_dlunknown;
19874 if (self)
19876 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19877 else
19879 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19880 else puts (dlerror ());
19882 /* dlclose (self); */
19884 else
19885 puts (dlerror ());
19887 return status;
19889 _LT_EOF
19890 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
19891 (eval $ac_link) 2>&5
19892 ac_status=$?
19893 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19894 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
19895 (./conftest; exit; ) >&5 2>/dev/null
19896 lt_status=$?
19897 case x$lt_status in
19898 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
19899 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
19900 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
19901 esac
19902 else :
19903 # compilation failed
19904 lt_cv_dlopen_self_static=no
19907 rm -fr conftest*
19911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
19912 $as_echo "$lt_cv_dlopen_self_static" >&6; }
19915 CPPFLAGS="$save_CPPFLAGS"
19916 LDFLAGS="$save_LDFLAGS"
19917 LIBS="$save_LIBS"
19919 esac
19921 case $lt_cv_dlopen_self in
19922 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
19923 *) enable_dlopen_self=unknown ;;
19924 esac
19926 case $lt_cv_dlopen_self_static in
19927 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
19928 *) enable_dlopen_self_static=unknown ;;
19929 esac
19948 striplib=
19949 old_striplib=
19950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
19951 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
19952 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
19953 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
19954 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
19955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19956 $as_echo "yes" >&6; }
19957 else
19958 # FIXME - insert some real tests, host_os isn't really good enough
19959 case $host_os in
19960 darwin*)
19961 if test -n "$STRIP" ; then
19962 striplib="$STRIP -x"
19963 old_striplib="$STRIP -S"
19964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19965 $as_echo "yes" >&6; }
19966 else
19967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19968 $as_echo "no" >&6; }
19972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19973 $as_echo "no" >&6; }
19975 esac
19989 # Report which library types will actually be built
19990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
19991 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
19992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
19993 $as_echo "$can_build_shared" >&6; }
19995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
19996 $as_echo_n "checking whether to build shared libraries... " >&6; }
19997 test "$can_build_shared" = "no" && enable_shared=no
19999 # On AIX, shared libraries and static libraries use the same namespace, and
20000 # are all built from PIC.
20001 case $host_os in
20002 aix3*)
20003 test "$enable_shared" = yes && enable_static=no
20004 if test -n "$RANLIB"; then
20005 archive_cmds="$archive_cmds~\$RANLIB \$lib"
20006 postinstall_cmds='$RANLIB $lib'
20010 aix[4-9]*)
20011 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
20012 test "$enable_shared" = yes && enable_static=no
20015 esac
20016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
20017 $as_echo "$enable_shared" >&6; }
20019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
20020 $as_echo_n "checking whether to build static libraries... " >&6; }
20021 # Make sure either enable_shared or enable_static is yes.
20022 test "$enable_shared" = yes || enable_static=yes
20023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
20024 $as_echo "$enable_static" >&6; }
20030 ac_ext=cpp
20031 ac_cpp='$CXXCPP $CPPFLAGS'
20032 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20033 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20034 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20036 CC="$lt_save_CC"
20038 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
20039 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
20040 (test "X$CXX" != "Xg++"))) ; then
20041 ac_ext=cpp
20042 ac_cpp='$CXXCPP $CPPFLAGS'
20043 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20044 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20045 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
20047 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
20048 if test -z "$CXXCPP"; then
20049 if ${ac_cv_prog_CXXCPP+:} false; then :
20050 $as_echo_n "(cached) " >&6
20051 else
20052 # Double quotes because CXXCPP needs to be expanded
20053 for CXXCPP in "$CXX -E" "/lib/cpp"
20055 ac_preproc_ok=false
20056 for ac_cxx_preproc_warn_flag in '' yes
20058 # Use a header file that comes with gcc, so configuring glibc
20059 # with a fresh cross-compiler works.
20060 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20061 # <limits.h> exists even on freestanding compilers.
20062 # On the NeXT, cc -E runs the code through the compiler's parser,
20063 # not just through cpp. "Syntax error" is here to catch this case.
20064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20065 /* end confdefs.h. */
20066 #ifdef __STDC__
20067 # include <limits.h>
20068 #else
20069 # include <assert.h>
20070 #endif
20071 Syntax error
20072 _ACEOF
20073 if ac_fn_cxx_try_cpp "$LINENO"; then :
20075 else
20076 # Broken: fails on valid input.
20077 continue
20079 rm -f conftest.err conftest.i conftest.$ac_ext
20081 # OK, works on sane cases. Now check whether nonexistent headers
20082 # can be detected and how.
20083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20084 /* end confdefs.h. */
20085 #include <ac_nonexistent.h>
20086 _ACEOF
20087 if ac_fn_cxx_try_cpp "$LINENO"; then :
20088 # Broken: success on invalid input.
20089 continue
20090 else
20091 # Passes both tests.
20092 ac_preproc_ok=:
20093 break
20095 rm -f conftest.err conftest.i conftest.$ac_ext
20097 done
20098 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
20099 rm -f conftest.i conftest.err conftest.$ac_ext
20100 if $ac_preproc_ok; then :
20101 break
20104 done
20105 ac_cv_prog_CXXCPP=$CXXCPP
20108 CXXCPP=$ac_cv_prog_CXXCPP
20109 else
20110 ac_cv_prog_CXXCPP=$CXXCPP
20112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
20113 $as_echo "$CXXCPP" >&6; }
20114 ac_preproc_ok=false
20115 for ac_cxx_preproc_warn_flag in '' yes
20117 # Use a header file that comes with gcc, so configuring glibc
20118 # with a fresh cross-compiler works.
20119 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20120 # <limits.h> exists even on freestanding compilers.
20121 # On the NeXT, cc -E runs the code through the compiler's parser,
20122 # not just through cpp. "Syntax error" is here to catch this case.
20123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20124 /* end confdefs.h. */
20125 #ifdef __STDC__
20126 # include <limits.h>
20127 #else
20128 # include <assert.h>
20129 #endif
20130 Syntax error
20131 _ACEOF
20132 if ac_fn_cxx_try_cpp "$LINENO"; then :
20134 else
20135 # Broken: fails on valid input.
20136 continue
20138 rm -f conftest.err conftest.i conftest.$ac_ext
20140 # OK, works on sane cases. Now check whether nonexistent headers
20141 # can be detected and how.
20142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20143 /* end confdefs.h. */
20144 #include <ac_nonexistent.h>
20145 _ACEOF
20146 if ac_fn_cxx_try_cpp "$LINENO"; then :
20147 # Broken: success on invalid input.
20148 continue
20149 else
20150 # Passes both tests.
20151 ac_preproc_ok=:
20152 break
20154 rm -f conftest.err conftest.i conftest.$ac_ext
20156 done
20157 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
20158 rm -f conftest.i conftest.err conftest.$ac_ext
20159 if $ac_preproc_ok; then :
20161 else
20162 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20163 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20164 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
20165 See \`config.log' for more details" "$LINENO" 5; }
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 else
20175 _lt_caught_CXX_error=yes
20178 ac_ext=cpp
20179 ac_cpp='$CXXCPP $CPPFLAGS'
20180 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20181 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20182 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20184 archive_cmds_need_lc_CXX=no
20185 allow_undefined_flag_CXX=
20186 always_export_symbols_CXX=no
20187 archive_expsym_cmds_CXX=
20188 compiler_needs_object_CXX=no
20189 export_dynamic_flag_spec_CXX=
20190 hardcode_direct_CXX=no
20191 hardcode_direct_absolute_CXX=no
20192 hardcode_libdir_flag_spec_CXX=
20193 hardcode_libdir_flag_spec_ld_CXX=
20194 hardcode_libdir_separator_CXX=
20195 hardcode_minus_L_CXX=no
20196 hardcode_shlibpath_var_CXX=unsupported
20197 hardcode_automatic_CXX=no
20198 inherit_rpath_CXX=no
20199 module_cmds_CXX=
20200 module_expsym_cmds_CXX=
20201 link_all_deplibs_CXX=unknown
20202 old_archive_cmds_CXX=$old_archive_cmds
20203 reload_flag_CXX=$reload_flag
20204 reload_cmds_CXX=$reload_cmds
20205 no_undefined_flag_CXX=
20206 whole_archive_flag_spec_CXX=
20207 enable_shared_with_static_runtimes_CXX=no
20209 # Source file extension for C++ test sources.
20210 ac_ext=cpp
20212 # Object file extension for compiled C++ test sources.
20213 objext=o
20214 objext_CXX=$objext
20216 # No sense in running all these tests if we already determined that
20217 # the CXX compiler isn't working. Some variables (like enable_shared)
20218 # are currently assumed to apply to all compilers on this platform,
20219 # and will be corrupted by setting them based on a non-working compiler.
20220 if test "$_lt_caught_CXX_error" != yes; then
20221 # Code to be used in simple compile tests
20222 lt_simple_compile_test_code="int some_variable = 0;"
20224 # Code to be used in simple link tests
20225 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
20227 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20234 # If no C compiler was specified, use CC.
20235 LTCC=${LTCC-"$CC"}
20237 # If no C compiler flags were specified, use CFLAGS.
20238 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
20240 # Allow CC to be a program name with arguments.
20241 compiler=$CC
20244 # save warnings/boilerplate of simple test code
20245 ac_outfile=conftest.$ac_objext
20246 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
20247 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20248 _lt_compiler_boilerplate=`cat conftest.err`
20249 $RM conftest*
20251 ac_outfile=conftest.$ac_objext
20252 echo "$lt_simple_link_test_code" >conftest.$ac_ext
20253 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20254 _lt_linker_boilerplate=`cat conftest.err`
20255 $RM -r conftest*
20258 # Allow CC to be a program name with arguments.
20259 lt_save_CC=$CC
20260 lt_save_LD=$LD
20261 lt_save_GCC=$GCC
20262 GCC=$GXX
20263 lt_save_with_gnu_ld=$with_gnu_ld
20264 lt_save_path_LD=$lt_cv_path_LD
20265 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
20266 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
20267 else
20268 $as_unset lt_cv_prog_gnu_ld
20270 if test -n "${lt_cv_path_LDCXX+set}"; then
20271 lt_cv_path_LD=$lt_cv_path_LDCXX
20272 else
20273 $as_unset lt_cv_path_LD
20275 test -z "${LDCXX+set}" || LD=$LDCXX
20276 CC=${CXX-"c++"}
20277 compiler=$CC
20278 compiler_CXX=$CC
20279 for cc_temp in $compiler""; do
20280 case $cc_temp in
20281 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20282 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20283 \-*) ;;
20284 *) break;;
20285 esac
20286 done
20287 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
20290 if test -n "$compiler"; then
20291 # We don't want -fno-exception when compiling C++ code, so set the
20292 # no_builtin_flag separately
20293 if test "$GXX" = yes; then
20294 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
20295 else
20296 lt_prog_compiler_no_builtin_flag_CXX=
20299 if test "$GXX" = yes; then
20300 # Set up default GNU C++ configuration
20304 # Check whether --with-gnu-ld was given.
20305 if test "${with_gnu_ld+set}" = set; then :
20306 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
20307 else
20308 with_gnu_ld=no
20311 ac_prog=ld
20312 if test "$GCC" = yes; then
20313 # Check if gcc -print-prog-name=ld gives a path.
20314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
20315 $as_echo_n "checking for ld used by $CC... " >&6; }
20316 case $host in
20317 *-*-mingw*)
20318 # gcc leaves a trailing carriage return which upsets mingw
20319 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
20321 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
20322 esac
20323 case $ac_prog in
20324 # Accept absolute paths.
20325 [\\/]* | ?:[\\/]*)
20326 re_direlt='/[^/][^/]*/\.\./'
20327 # Canonicalize the pathname of ld
20328 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
20329 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
20330 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
20331 done
20332 test -z "$LD" && LD="$ac_prog"
20335 # If it fails, then pretend we aren't using GCC.
20336 ac_prog=ld
20339 # If it is relative, then search for the first ld in PATH.
20340 with_gnu_ld=unknown
20342 esac
20343 elif test "$with_gnu_ld" = yes; then
20344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
20345 $as_echo_n "checking for GNU ld... " >&6; }
20346 else
20347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
20348 $as_echo_n "checking for non-GNU ld... " >&6; }
20350 if ${lt_cv_path_LD+:} false; then :
20351 $as_echo_n "(cached) " >&6
20352 else
20353 if test -z "$LD"; then
20354 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
20355 for ac_dir in $PATH; do
20356 IFS="$lt_save_ifs"
20357 test -z "$ac_dir" && ac_dir=.
20358 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
20359 lt_cv_path_LD="$ac_dir/$ac_prog"
20360 # Check to see if the program is GNU ld. I'd rather use --version,
20361 # but apparently some variants of GNU ld only accept -v.
20362 # Break only if it was the GNU/non-GNU ld that we prefer.
20363 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
20364 *GNU* | *'with BFD'*)
20365 test "$with_gnu_ld" != no && break
20368 test "$with_gnu_ld" != yes && break
20370 esac
20372 done
20373 IFS="$lt_save_ifs"
20374 else
20375 lt_cv_path_LD="$LD" # Let the user override the test with a path.
20379 LD="$lt_cv_path_LD"
20380 if test -n "$LD"; then
20381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
20382 $as_echo "$LD" >&6; }
20383 else
20384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20385 $as_echo "no" >&6; }
20387 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
20388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
20389 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
20390 if ${lt_cv_prog_gnu_ld+:} false; then :
20391 $as_echo_n "(cached) " >&6
20392 else
20393 # I'd rather use --version here, but apparently some GNU lds only accept -v.
20394 case `$LD -v 2>&1 </dev/null` in
20395 *GNU* | *'with BFD'*)
20396 lt_cv_prog_gnu_ld=yes
20399 lt_cv_prog_gnu_ld=no
20401 esac
20403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
20404 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
20405 with_gnu_ld=$lt_cv_prog_gnu_ld
20413 # Check if GNU C++ uses GNU ld as the underlying linker, since the
20414 # archiving commands below assume that GNU ld is being used.
20415 if test "$with_gnu_ld" = yes; then
20416 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
20417 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'
20419 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
20420 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
20422 # If archive_cmds runs LD, not CC, wlarc should be empty
20423 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
20424 # investigate it a little bit more. (MM)
20425 wlarc='${wl}'
20427 # ancient GNU ld didn't support --whole-archive et. al.
20428 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
20429 $GREP 'no-whole-archive' > /dev/null; then
20430 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
20431 else
20432 whole_archive_flag_spec_CXX=
20434 else
20435 with_gnu_ld=no
20436 wlarc=
20438 # A generic and very simple default shared library creation
20439 # command for GNU C++ for the case where it uses the native
20440 # linker, instead of GNU ld. If possible, this setting should
20441 # overridden to take advantage of the native linker features on
20442 # the platform it is being used on.
20443 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
20446 # Commands to make compiler produce verbose output that lists
20447 # what "hidden" libraries, object files and flags are used when
20448 # linking a shared library.
20449 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20451 else
20452 GXX=no
20453 with_gnu_ld=no
20454 wlarc=
20457 # PORTME: fill in a description of your system's C++ link characteristics
20458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20459 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20460 ld_shlibs_CXX=yes
20461 case $host_os in
20462 aix3*)
20463 # FIXME: insert proper C++ library support
20464 ld_shlibs_CXX=no
20466 aix[4-9]*)
20467 if test "$host_cpu" = ia64; then
20468 # On IA64, the linker does run time linking by default, so we don't
20469 # have to do anything special.
20470 aix_use_runtimelinking=no
20471 exp_sym_flag='-Bexport'
20472 no_entry_flag=""
20473 else
20474 aix_use_runtimelinking=no
20476 # Test if we are trying to use run time linking or normal
20477 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
20478 # need to do runtime linking.
20479 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
20480 for ld_flag in $LDFLAGS; do
20481 case $ld_flag in
20482 *-brtl*)
20483 aix_use_runtimelinking=yes
20484 break
20486 esac
20487 done
20489 esac
20491 exp_sym_flag='-bexport'
20492 no_entry_flag='-bnoentry'
20495 # When large executables or shared objects are built, AIX ld can
20496 # have problems creating the table of contents. If linking a library
20497 # or program results in "error TOC overflow" add -mminimal-toc to
20498 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
20499 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
20501 archive_cmds_CXX=''
20502 hardcode_direct_CXX=yes
20503 hardcode_direct_absolute_CXX=yes
20504 hardcode_libdir_separator_CXX=':'
20505 link_all_deplibs_CXX=yes
20506 file_list_spec_CXX='${wl}-f,'
20508 if test "$GXX" = yes; then
20509 case $host_os in aix4.[012]|aix4.[012].*)
20510 # We only want to do this on AIX 4.2 and lower, the check
20511 # below for broken collect2 doesn't work under 4.3+
20512 collect2name=`${CC} -print-prog-name=collect2`
20513 if test -f "$collect2name" &&
20514 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
20515 then
20516 # We have reworked collect2
20518 else
20519 # We have old collect2
20520 hardcode_direct_CXX=unsupported
20521 # It fails to find uninstalled libraries when the uninstalled
20522 # path is not listed in the libpath. Setting hardcode_minus_L
20523 # to unsupported forces relinking
20524 hardcode_minus_L_CXX=yes
20525 hardcode_libdir_flag_spec_CXX='-L$libdir'
20526 hardcode_libdir_separator_CXX=
20528 esac
20529 shared_flag='-shared'
20530 if test "$aix_use_runtimelinking" = yes; then
20531 shared_flag="$shared_flag "'${wl}-G'
20533 else
20534 # not using gcc
20535 if test "$host_cpu" = ia64; then
20536 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
20537 # chokes on -Wl,-G. The following line is correct:
20538 shared_flag='-G'
20539 else
20540 if test "$aix_use_runtimelinking" = yes; then
20541 shared_flag='${wl}-G'
20542 else
20543 shared_flag='${wl}-bM:SRE'
20548 export_dynamic_flag_spec_CXX='${wl}-bexpall'
20549 # It seems that -bexpall does not export symbols beginning with
20550 # underscore (_), so it is better to generate a list of symbols to
20551 # export.
20552 always_export_symbols_CXX=yes
20553 if test "$aix_use_runtimelinking" = yes; then
20554 # Warning - without using the other runtime loading flags (-brtl),
20555 # -berok will link without error, but may produce a broken library.
20556 allow_undefined_flag_CXX='-berok'
20557 # Determine the default libpath from the value encoded in an empty
20558 # executable.
20559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20560 /* end confdefs.h. */
20563 main ()
20567 return 0;
20569 _ACEOF
20570 if ac_fn_cxx_try_link "$LINENO"; then :
20572 lt_aix_libpath_sed='
20573 /Import File Strings/,/^$/ {
20574 /^0/ {
20575 s/^0 *\(.*\)$/\1/
20579 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20580 # Check for a 64-bit object if we didn't find anything.
20581 if test -z "$aix_libpath"; then
20582 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20585 rm -f core conftest.err conftest.$ac_objext \
20586 conftest$ac_exeext conftest.$ac_ext
20587 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
20589 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
20591 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"
20592 else
20593 if test "$host_cpu" = ia64; then
20594 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
20595 allow_undefined_flag_CXX="-z nodefs"
20596 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"
20597 else
20598 # Determine the default libpath from the value encoded in an
20599 # empty executable.
20600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20601 /* end confdefs.h. */
20604 main ()
20608 return 0;
20610 _ACEOF
20611 if ac_fn_cxx_try_link "$LINENO"; then :
20613 lt_aix_libpath_sed='
20614 /Import File Strings/,/^$/ {
20615 /^0/ {
20616 s/^0 *\(.*\)$/\1/
20620 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20621 # Check for a 64-bit object if we didn't find anything.
20622 if test -z "$aix_libpath"; then
20623 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20626 rm -f core conftest.err conftest.$ac_objext \
20627 conftest$ac_exeext conftest.$ac_ext
20628 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
20630 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
20631 # Warning - without using the other run time loading flags,
20632 # -berok will link without error, but may produce a broken library.
20633 no_undefined_flag_CXX=' ${wl}-bernotok'
20634 allow_undefined_flag_CXX=' ${wl}-berok'
20635 if test "$with_gnu_ld" = yes; then
20636 # We only use this code for GNU lds that support --whole-archive.
20637 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
20638 else
20639 # Exported symbols can be pulled into shared objects from archives
20640 whole_archive_flag_spec_CXX='$convenience'
20642 archive_cmds_need_lc_CXX=yes
20643 # This is similar to how AIX traditionally builds its shared
20644 # libraries.
20645 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'
20650 beos*)
20651 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
20652 allow_undefined_flag_CXX=unsupported
20653 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
20654 # support --undefined. This deserves some investigation. FIXME
20655 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20656 else
20657 ld_shlibs_CXX=no
20661 chorus*)
20662 case $cc_basename in
20664 # FIXME: insert proper C++ library support
20665 ld_shlibs_CXX=no
20667 esac
20670 cygwin* | mingw* | pw32* | cegcc*)
20671 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
20672 # as there is no search path for DLLs.
20673 hardcode_libdir_flag_spec_CXX='-L$libdir'
20674 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
20675 allow_undefined_flag_CXX=unsupported
20676 always_export_symbols_CXX=no
20677 enable_shared_with_static_runtimes_CXX=yes
20679 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
20680 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'
20681 # If the export-symbols file already is a .def file (1st line
20682 # is EXPORTS), use it as is; otherwise, prepend...
20683 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
20684 cp $export_symbols $output_objdir/$soname.def;
20685 else
20686 echo EXPORTS > $output_objdir/$soname.def;
20687 cat $export_symbols >> $output_objdir/$soname.def;
20689 $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'
20690 else
20691 ld_shlibs_CXX=no
20694 darwin* | rhapsody*)
20697 archive_cmds_need_lc_CXX=no
20698 hardcode_direct_CXX=no
20699 hardcode_automatic_CXX=yes
20700 hardcode_shlibpath_var_CXX=unsupported
20701 if test "$lt_cv_ld_force_load" = "yes"; then
20702 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\"`'
20703 else
20704 whole_archive_flag_spec_CXX=''
20706 link_all_deplibs_CXX=yes
20707 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
20708 case $cc_basename in
20709 ifort*) _lt_dar_can_shared=yes ;;
20710 *) _lt_dar_can_shared=$GCC ;;
20711 esac
20712 if test "$_lt_dar_can_shared" = "yes"; then
20713 output_verbose_link_cmd=func_echo_all
20714 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}"
20715 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
20716 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}"
20717 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}"
20718 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
20719 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}"
20720 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}"
20723 else
20724 ld_shlibs_CXX=no
20729 dgux*)
20730 case $cc_basename in
20731 ec++*)
20732 # FIXME: insert proper C++ library support
20733 ld_shlibs_CXX=no
20735 ghcx*)
20736 # Green Hills C++ Compiler
20737 # FIXME: insert proper C++ library support
20738 ld_shlibs_CXX=no
20741 # FIXME: insert proper C++ library support
20742 ld_shlibs_CXX=no
20744 esac
20747 freebsd2.*)
20748 # C++ shared libraries reported to be fairly broken before
20749 # switch to ELF
20750 ld_shlibs_CXX=no
20753 freebsd-elf*)
20754 archive_cmds_need_lc_CXX=no
20757 freebsd* | dragonfly*)
20758 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
20759 # conventions
20760 ld_shlibs_CXX=yes
20763 gnu*)
20766 haiku*)
20767 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20768 link_all_deplibs_CXX=yes
20771 hpux9*)
20772 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
20773 hardcode_libdir_separator_CXX=:
20774 export_dynamic_flag_spec_CXX='${wl}-E'
20775 hardcode_direct_CXX=yes
20776 hardcode_minus_L_CXX=yes # Not in the search PATH,
20777 # but as the default
20778 # location of the library.
20780 case $cc_basename in
20781 CC*)
20782 # FIXME: insert proper C++ library support
20783 ld_shlibs_CXX=no
20785 aCC*)
20786 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'
20787 # Commands to make compiler produce verbose output that lists
20788 # what "hidden" libraries, object files and flags are used when
20789 # linking a shared library.
20791 # There doesn't appear to be a way to prevent this compiler from
20792 # explicitly linking system object files so we need to strip them
20793 # from the output so that they don't get included in the library
20794 # dependencies.
20795 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"'
20798 if test "$GXX" = yes; then
20799 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'
20800 else
20801 # FIXME: insert proper C++ library support
20802 ld_shlibs_CXX=no
20805 esac
20808 hpux10*|hpux11*)
20809 if test $with_gnu_ld = no; then
20810 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
20811 hardcode_libdir_separator_CXX=:
20813 case $host_cpu in
20814 hppa*64*|ia64*)
20817 export_dynamic_flag_spec_CXX='${wl}-E'
20819 esac
20821 case $host_cpu in
20822 hppa*64*|ia64*)
20823 hardcode_direct_CXX=no
20824 hardcode_shlibpath_var_CXX=no
20827 hardcode_direct_CXX=yes
20828 hardcode_direct_absolute_CXX=yes
20829 hardcode_minus_L_CXX=yes # Not in the search PATH,
20830 # but as the default
20831 # location of the library.
20833 esac
20835 case $cc_basename in
20836 CC*)
20837 # FIXME: insert proper C++ library support
20838 ld_shlibs_CXX=no
20840 aCC*)
20841 case $host_cpu in
20842 hppa*64*)
20843 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20845 ia64*)
20846 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20849 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20851 esac
20852 # Commands to make compiler produce verbose output that lists
20853 # what "hidden" libraries, object files and flags are used when
20854 # linking a shared library.
20856 # There doesn't appear to be a way to prevent this compiler from
20857 # explicitly linking system object files so we need to strip them
20858 # from the output so that they don't get included in the library
20859 # dependencies.
20860 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"'
20863 if test "$GXX" = yes; then
20864 if test $with_gnu_ld = no; then
20865 case $host_cpu in
20866 hppa*64*)
20867 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20869 ia64*)
20870 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20873 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'
20875 esac
20877 else
20878 # FIXME: insert proper C++ library support
20879 ld_shlibs_CXX=no
20882 esac
20885 interix[3-9]*)
20886 hardcode_direct_CXX=no
20887 hardcode_shlibpath_var_CXX=no
20888 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
20889 export_dynamic_flag_spec_CXX='${wl}-E'
20890 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
20891 # Instead, shared libraries are loaded at an image base (0x10000000 by
20892 # default) and relocated if they conflict, which is a slow very memory
20893 # consuming and fragmenting process. To avoid this, we pick a random,
20894 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
20895 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
20896 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'
20897 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'
20899 irix5* | irix6*)
20900 case $cc_basename in
20901 CC*)
20902 # SGI C++
20903 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'
20905 # Archives containing C++ object files must be created using
20906 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
20907 # necessary to make sure instantiated templates are included
20908 # in the archive.
20909 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
20912 if test "$GXX" = yes; then
20913 if test "$with_gnu_ld" = no; then
20914 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'
20915 else
20916 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'
20919 link_all_deplibs_CXX=yes
20921 esac
20922 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
20923 hardcode_libdir_separator_CXX=:
20924 inherit_rpath_CXX=yes
20927 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20928 case $cc_basename in
20929 KCC*)
20930 # Kuck and Associates, Inc. (KAI) C++ Compiler
20932 # KCC will only create a shared library if the output file
20933 # ends with ".so" (or ".sl" for HP-UX), so rename the library
20934 # to its proper name (with version) after linking.
20935 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'
20936 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'
20937 # Commands to make compiler produce verbose output that lists
20938 # what "hidden" libraries, object files and flags are used when
20939 # linking a shared library.
20941 # There doesn't appear to be a way to prevent this compiler from
20942 # explicitly linking system object files so we need to strip them
20943 # from the output so that they don't get included in the library
20944 # dependencies.
20945 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"'
20947 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
20948 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
20950 # Archives containing C++ object files must be created using
20951 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
20952 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
20954 icpc* | ecpc* )
20955 # Intel C++
20956 with_gnu_ld=yes
20957 # version 8.0 and above of icpc choke on multiply defined symbols
20958 # if we add $predep_objects and $postdep_objects, however 7.1 and
20959 # earlier do not add the objects themselves.
20960 case `$CC -V 2>&1` in
20961 *"Version 7."*)
20962 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
20963 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'
20965 *) # Version 8.0 or newer
20966 tmp_idyn=
20967 case $host_cpu in
20968 ia64*) tmp_idyn=' -i_dynamic';;
20969 esac
20970 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20971 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'
20973 esac
20974 archive_cmds_need_lc_CXX=no
20975 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
20976 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
20977 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
20979 pgCC* | pgcpp*)
20980 # Portland Group C++ compiler
20981 case `$CC -V` in
20982 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
20983 prelink_cmds_CXX='tpldir=Template.dir~
20984 rm -rf $tpldir~
20985 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
20986 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
20987 old_archive_cmds_CXX='tpldir=Template.dir~
20988 rm -rf $tpldir~
20989 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
20990 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
20991 $RANLIB $oldlib'
20992 archive_cmds_CXX='tpldir=Template.dir~
20993 rm -rf $tpldir~
20994 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
20995 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
20996 archive_expsym_cmds_CXX='tpldir=Template.dir~
20997 rm -rf $tpldir~
20998 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
20999 $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'
21001 *) # Version 6 and above use weak symbols
21002 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
21003 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'
21005 esac
21007 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
21008 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
21009 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'
21011 cxx*)
21012 # Compaq C++
21013 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
21014 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'
21016 runpath_var=LD_RUN_PATH
21017 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
21018 hardcode_libdir_separator_CXX=:
21020 # Commands to make compiler produce verbose output that lists
21021 # what "hidden" libraries, object files and flags are used when
21022 # linking a shared library.
21024 # There doesn't appear to be a way to prevent this compiler from
21025 # explicitly linking system object files so we need to strip them
21026 # from the output so that they don't get included in the library
21027 # dependencies.
21028 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'
21030 xl* | mpixl* | bgxl*)
21031 # IBM XL 8.0 on PPC, with GNU ld
21032 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
21033 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
21034 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21035 if test "x$supports_anon_versioning" = xyes; then
21036 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
21037 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21038 echo "local: *; };" >> $output_objdir/$libname.ver~
21039 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21043 case `$CC -V 2>&1 | sed 5q` in
21044 *Sun\ C*)
21045 # Sun C++ 5.9
21046 no_undefined_flag_CXX=' -zdefs'
21047 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
21048 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'
21049 hardcode_libdir_flag_spec_CXX='-R$libdir'
21050 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'
21051 compiler_needs_object_CXX=yes
21053 # Not sure whether something based on
21054 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
21055 # would be better.
21056 output_verbose_link_cmd='func_echo_all'
21058 # Archives containing C++ object files must be created using
21059 # "CC -xar", where "CC" is the Sun C++ compiler. This is
21060 # necessary to make sure instantiated templates are included
21061 # in the archive.
21062 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
21064 esac
21066 esac
21069 lynxos*)
21070 # FIXME: insert proper C++ library support
21071 ld_shlibs_CXX=no
21074 m88k*)
21075 # FIXME: insert proper C++ library support
21076 ld_shlibs_CXX=no
21079 mvs*)
21080 case $cc_basename in
21081 cxx*)
21082 # FIXME: insert proper C++ library support
21083 ld_shlibs_CXX=no
21086 # FIXME: insert proper C++ library support
21087 ld_shlibs_CXX=no
21089 esac
21092 netbsd*)
21093 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
21094 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
21095 wlarc=
21096 hardcode_libdir_flag_spec_CXX='-R$libdir'
21097 hardcode_direct_CXX=yes
21098 hardcode_shlibpath_var_CXX=no
21100 # Workaround some broken pre-1.5 toolchains
21101 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
21104 *nto* | *qnx*)
21105 ld_shlibs_CXX=yes
21108 openbsd2*)
21109 # C++ shared libraries are fairly broken
21110 ld_shlibs_CXX=no
21113 openbsd*)
21114 if test -f /usr/libexec/ld.so; then
21115 hardcode_direct_CXX=yes
21116 hardcode_shlibpath_var_CXX=no
21117 hardcode_direct_absolute_CXX=yes
21118 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
21119 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
21120 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21121 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
21122 export_dynamic_flag_spec_CXX='${wl}-E'
21123 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21125 output_verbose_link_cmd=func_echo_all
21126 else
21127 ld_shlibs_CXX=no
21131 osf3* | osf4* | osf5*)
21132 case $cc_basename in
21133 KCC*)
21134 # Kuck and Associates, Inc. (KAI) C++ Compiler
21136 # KCC will only create a shared library if the output file
21137 # ends with ".so" (or ".sl" for HP-UX), so rename the library
21138 # to its proper name (with version) after linking.
21139 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'
21141 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
21142 hardcode_libdir_separator_CXX=:
21144 # Archives containing C++ object files must be created using
21145 # the KAI C++ compiler.
21146 case $host in
21147 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
21148 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
21149 esac
21151 RCC*)
21152 # Rational C++ 2.4.1
21153 # FIXME: insert proper C++ library support
21154 ld_shlibs_CXX=no
21156 cxx*)
21157 case $host in
21158 osf3*)
21159 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
21160 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'
21161 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
21164 allow_undefined_flag_CXX=' -expect_unresolved \*'
21165 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'
21166 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
21167 echo "-hidden">> $lib.exp~
21168 $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~
21169 $RM $lib.exp'
21170 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
21172 esac
21174 hardcode_libdir_separator_CXX=:
21176 # Commands to make compiler produce verbose output that lists
21177 # what "hidden" libraries, object files and flags are used when
21178 # linking a shared library.
21180 # There doesn't appear to be a way to prevent this compiler from
21181 # explicitly linking system object files so we need to strip them
21182 # from the output so that they don't get included in the library
21183 # dependencies.
21184 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"'
21187 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
21188 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
21189 case $host in
21190 osf3*)
21191 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'
21194 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'
21196 esac
21198 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
21199 hardcode_libdir_separator_CXX=:
21201 # Commands to make compiler produce verbose output that lists
21202 # what "hidden" libraries, object files and flags are used when
21203 # linking a shared library.
21204 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
21206 else
21207 # FIXME: insert proper C++ library support
21208 ld_shlibs_CXX=no
21211 esac
21214 psos*)
21215 # FIXME: insert proper C++ library support
21216 ld_shlibs_CXX=no
21219 sunos4*)
21220 case $cc_basename in
21221 CC*)
21222 # Sun C++ 4.x
21223 # FIXME: insert proper C++ library support
21224 ld_shlibs_CXX=no
21226 lcc*)
21227 # Lucid
21228 # FIXME: insert proper C++ library support
21229 ld_shlibs_CXX=no
21232 # FIXME: insert proper C++ library support
21233 ld_shlibs_CXX=no
21235 esac
21238 solaris*)
21239 case $cc_basename in
21240 CC*)
21241 # Sun C++ 4.2, 5.x and Centerline C++
21242 archive_cmds_need_lc_CXX=yes
21243 no_undefined_flag_CXX=' -zdefs'
21244 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
21245 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
21246 $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'
21248 hardcode_libdir_flag_spec_CXX='-R$libdir'
21249 hardcode_shlibpath_var_CXX=no
21250 case $host_os in
21251 solaris2.[0-5] | solaris2.[0-5].*) ;;
21253 # The compiler driver will combine and reorder linker options,
21254 # but understands `-z linker_flag'.
21255 # Supported since Solaris 2.6 (maybe 2.5.1?)
21256 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
21258 esac
21259 link_all_deplibs_CXX=yes
21261 output_verbose_link_cmd='func_echo_all'
21263 # Archives containing C++ object files must be created using
21264 # "CC -xar", where "CC" is the Sun C++ compiler. This is
21265 # necessary to make sure instantiated templates are included
21266 # in the archive.
21267 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
21269 gcx*)
21270 # Green Hills C++ Compiler
21271 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
21273 # The C++ compiler must be used to create the archive.
21274 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
21277 # GNU C++ compiler with Solaris linker
21278 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
21279 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
21280 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
21281 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
21282 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
21283 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
21285 # Commands to make compiler produce verbose output that lists
21286 # what "hidden" libraries, object files and flags are used when
21287 # linking a shared library.
21288 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
21289 else
21290 # g++ 2.7 appears to require `-G' NOT `-shared' on this
21291 # platform.
21292 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
21293 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
21294 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
21296 # Commands to make compiler produce verbose output that lists
21297 # what "hidden" libraries, object files and flags are used when
21298 # linking a shared library.
21299 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
21302 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
21303 case $host_os in
21304 solaris2.[0-5] | solaris2.[0-5].*) ;;
21306 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
21308 esac
21311 esac
21314 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
21315 no_undefined_flag_CXX='${wl}-z,text'
21316 archive_cmds_need_lc_CXX=no
21317 hardcode_shlibpath_var_CXX=no
21318 runpath_var='LD_RUN_PATH'
21320 case $cc_basename in
21321 CC*)
21322 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21323 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21326 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21327 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21329 esac
21332 sysv5* | sco3.2v5* | sco5v6*)
21333 # Note: We can NOT use -z defs as we might desire, because we do not
21334 # link with -lc, and that would cause any symbols used from libc to
21335 # always be unresolved, which means just about no library would
21336 # ever link correctly. If we're not using GNU ld we use -z text
21337 # though, which does catch some bad symbols but isn't as heavy-handed
21338 # as -z defs.
21339 no_undefined_flag_CXX='${wl}-z,text'
21340 allow_undefined_flag_CXX='${wl}-z,nodefs'
21341 archive_cmds_need_lc_CXX=no
21342 hardcode_shlibpath_var_CXX=no
21343 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
21344 hardcode_libdir_separator_CXX=':'
21345 link_all_deplibs_CXX=yes
21346 export_dynamic_flag_spec_CXX='${wl}-Bexport'
21347 runpath_var='LD_RUN_PATH'
21349 case $cc_basename in
21350 CC*)
21351 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21352 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21353 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
21354 '"$old_archive_cmds_CXX"
21355 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
21356 '"$reload_cmds_CXX"
21359 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21360 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21362 esac
21365 tandem*)
21366 case $cc_basename in
21367 NCC*)
21368 # NonStop-UX NCC 3.20
21369 # FIXME: insert proper C++ library support
21370 ld_shlibs_CXX=no
21373 # FIXME: insert proper C++ library support
21374 ld_shlibs_CXX=no
21376 esac
21379 vxworks*)
21380 # For VxWorks ports, we assume the use of a GNU linker with
21381 # standard elf conventions.
21382 ld_shlibs_CXX=yes
21386 # FIXME: insert proper C++ library support
21387 ld_shlibs_CXX=no
21389 esac
21391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
21392 $as_echo "$ld_shlibs_CXX" >&6; }
21393 test "$ld_shlibs_CXX" = no && can_build_shared=no
21395 GCC_CXX="$GXX"
21396 LD_CXX="$LD"
21398 ## CAVEAT EMPTOR:
21399 ## There is no encapsulation within the following macros, do not change
21400 ## the running order or otherwise move them around unless you know exactly
21401 ## what you are doing...
21402 # Dependencies to place before and after the object being linked:
21403 predep_objects_CXX=
21404 postdep_objects_CXX=
21405 predeps_CXX=
21406 postdeps_CXX=
21407 compiler_lib_search_path_CXX=
21409 cat > conftest.$ac_ext <<_LT_EOF
21410 class Foo
21412 public:
21413 Foo (void) { a = 0; }
21414 private:
21415 int a;
21417 _LT_EOF
21419 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
21420 (eval $ac_compile) 2>&5
21421 ac_status=$?
21422 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21423 test $ac_status = 0; }; then
21424 # Parse the compiler output and extract the necessary
21425 # objects, libraries and library flags.
21427 # Sentinel used to keep track of whether or not we are before
21428 # the conftest object file.
21429 pre_test_object_deps_done=no
21431 for p in `eval "$output_verbose_link_cmd"`; do
21432 case $p in
21434 -L* | -R* | -l*)
21435 # Some compilers place space between "-{L,R}" and the path.
21436 # Remove the space.
21437 if test $p = "-L" ||
21438 test $p = "-R"; then
21439 prev=$p
21440 continue
21441 else
21442 prev=
21445 if test "$pre_test_object_deps_done" = no; then
21446 case $p in
21447 -L* | -R*)
21448 # Internal compiler library paths should come after those
21449 # provided the user. The postdeps already come after the
21450 # user supplied libs so there is no need to process them.
21451 if test -z "$compiler_lib_search_path_CXX"; then
21452 compiler_lib_search_path_CXX="${prev}${p}"
21453 else
21454 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
21457 # The "-l" case would never come before the object being
21458 # linked, so don't bother handling this case.
21459 esac
21460 else
21461 if test -z "$postdeps_CXX"; then
21462 postdeps_CXX="${prev}${p}"
21463 else
21464 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
21469 *.$objext)
21470 # This assumes that the test object file only shows up
21471 # once in the compiler output.
21472 if test "$p" = "conftest.$objext"; then
21473 pre_test_object_deps_done=yes
21474 continue
21477 if test "$pre_test_object_deps_done" = no; then
21478 if test -z "$predep_objects_CXX"; then
21479 predep_objects_CXX="$p"
21480 else
21481 predep_objects_CXX="$predep_objects_CXX $p"
21483 else
21484 if test -z "$postdep_objects_CXX"; then
21485 postdep_objects_CXX="$p"
21486 else
21487 postdep_objects_CXX="$postdep_objects_CXX $p"
21492 *) ;; # Ignore the rest.
21494 esac
21495 done
21497 # Clean up.
21498 rm -f a.out a.exe
21499 else
21500 echo "libtool.m4: error: problem compiling CXX test program"
21503 $RM -f confest.$objext
21505 # PORTME: override above test on systems where it is broken
21506 case $host_os in
21507 interix[3-9]*)
21508 # Interix 3.5 installs completely hosed .la files for C++, so rather than
21509 # hack all around it, let's just trust "g++" to DTRT.
21510 predep_objects_CXX=
21511 postdep_objects_CXX=
21512 postdeps_CXX=
21515 linux*)
21516 case `$CC -V 2>&1 | sed 5q` in
21517 *Sun\ C*)
21518 # Sun C++ 5.9
21520 # The more standards-conforming stlport4 library is
21521 # incompatible with the Cstd library. Avoid specifying
21522 # it if it's in CXXFLAGS. Ignore libCrun as
21523 # -library=stlport4 depends on it.
21524 case " $CXX $CXXFLAGS " in
21525 *" -library=stlport4 "*)
21526 solaris_use_stlport4=yes
21528 esac
21530 if test "$solaris_use_stlport4" != yes; then
21531 postdeps_CXX='-library=Cstd -library=Crun'
21534 esac
21537 solaris*)
21538 case $cc_basename in
21539 CC*)
21540 # The more standards-conforming stlport4 library is
21541 # incompatible with the Cstd library. Avoid specifying
21542 # it if it's in CXXFLAGS. Ignore libCrun as
21543 # -library=stlport4 depends on it.
21544 case " $CXX $CXXFLAGS " in
21545 *" -library=stlport4 "*)
21546 solaris_use_stlport4=yes
21548 esac
21550 # Adding this requires a known-good setup of shared libraries for
21551 # Sun compiler versions before 5.6, else PIC objects from an old
21552 # archive will be linked into the output, leading to subtle bugs.
21553 if test "$solaris_use_stlport4" != yes; then
21554 postdeps_CXX='-library=Cstd -library=Crun'
21557 esac
21559 esac
21562 case " $postdeps_CXX " in
21563 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
21564 esac
21565 compiler_lib_search_dirs_CXX=
21566 if test -n "${compiler_lib_search_path_CXX}"; then
21567 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
21600 lt_prog_compiler_wl_CXX=
21601 lt_prog_compiler_pic_CXX=
21602 lt_prog_compiler_static_CXX=
21604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
21605 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
21607 # C++ specific cases for pic, static, wl, etc.
21608 if test "$GXX" = yes; then
21609 lt_prog_compiler_wl_CXX='-Wl,'
21610 lt_prog_compiler_static_CXX='-static'
21612 case $host_os in
21613 aix*)
21614 # All AIX code is PIC.
21615 if test "$host_cpu" = ia64; then
21616 # AIX 5 now supports IA64 processor
21617 lt_prog_compiler_static_CXX='-Bstatic'
21619 lt_prog_compiler_pic_CXX='-fPIC'
21622 amigaos*)
21623 case $host_cpu in
21624 powerpc)
21625 # see comment about AmigaOS4 .so support
21626 lt_prog_compiler_pic_CXX='-fPIC'
21628 m68k)
21629 # FIXME: we need at least 68020 code to build shared libraries, but
21630 # adding the `-m68020' flag to GCC prevents building anything better,
21631 # like `-m68040'.
21632 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
21634 esac
21637 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21638 # PIC is the default for these OSes.
21640 mingw* | cygwin* | os2* | pw32* | cegcc*)
21641 # This hack is so that the source file can tell whether it is being
21642 # built for inclusion in a dll (and should export symbols for example).
21643 # Although the cygwin gcc ignores -fPIC, still need this for old-style
21644 # (--disable-auto-import) libraries
21645 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
21647 darwin* | rhapsody*)
21648 # PIC is the default on this platform
21649 # Common symbols not allowed in MH_DYLIB files
21650 lt_prog_compiler_pic_CXX='-fno-common'
21652 *djgpp*)
21653 # DJGPP does not support shared libraries at all
21654 lt_prog_compiler_pic_CXX=
21656 haiku*)
21657 # PIC is the default for Haiku.
21658 # The "-static" flag exists, but is broken.
21659 lt_prog_compiler_static_CXX=
21661 interix[3-9]*)
21662 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21663 # Instead, we relocate shared libraries at runtime.
21665 sysv4*MP*)
21666 if test -d /usr/nec; then
21667 lt_prog_compiler_pic_CXX=-Kconform_pic
21670 hpux*)
21671 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
21672 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
21673 # sets the default TLS model and affects inlining.
21674 case $host_cpu in
21675 hppa*64*)
21678 lt_prog_compiler_pic_CXX='-fPIC'
21680 esac
21682 *qnx* | *nto*)
21683 # QNX uses GNU C++, but need to define -shared option too, otherwise
21684 # it will coredump.
21685 lt_prog_compiler_pic_CXX='-fPIC -shared'
21688 lt_prog_compiler_pic_CXX='-fPIC'
21690 esac
21691 else
21692 case $host_os in
21693 aix[4-9]*)
21694 # All AIX code is PIC.
21695 if test "$host_cpu" = ia64; then
21696 # AIX 5 now supports IA64 processor
21697 lt_prog_compiler_static_CXX='-Bstatic'
21698 else
21699 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
21702 chorus*)
21703 case $cc_basename in
21704 cxch68*)
21705 # Green Hills C++ Compiler
21706 # _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"
21708 esac
21710 dgux*)
21711 case $cc_basename in
21712 ec++*)
21713 lt_prog_compiler_pic_CXX='-KPIC'
21715 ghcx*)
21716 # Green Hills C++ Compiler
21717 lt_prog_compiler_pic_CXX='-pic'
21721 esac
21723 freebsd* | dragonfly*)
21724 # FreeBSD uses GNU C++
21726 hpux9* | hpux10* | hpux11*)
21727 case $cc_basename in
21728 CC*)
21729 lt_prog_compiler_wl_CXX='-Wl,'
21730 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
21731 if test "$host_cpu" != ia64; then
21732 lt_prog_compiler_pic_CXX='+Z'
21735 aCC*)
21736 lt_prog_compiler_wl_CXX='-Wl,'
21737 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
21738 case $host_cpu in
21739 hppa*64*|ia64*)
21740 # +Z the default
21743 lt_prog_compiler_pic_CXX='+Z'
21745 esac
21749 esac
21751 interix*)
21752 # This is c89, which is MS Visual C++ (no shared libs)
21753 # Anyone wants to do a port?
21755 irix5* | irix6* | nonstopux*)
21756 case $cc_basename in
21757 CC*)
21758 lt_prog_compiler_wl_CXX='-Wl,'
21759 lt_prog_compiler_static_CXX='-non_shared'
21760 # CC pic flag -KPIC is the default.
21764 esac
21766 linux* | k*bsd*-gnu | kopensolaris*-gnu)
21767 case $cc_basename in
21768 KCC*)
21769 # KAI C++ Compiler
21770 lt_prog_compiler_wl_CXX='--backend -Wl,'
21771 lt_prog_compiler_pic_CXX='-fPIC'
21773 ecpc* )
21774 # old Intel C++ for x86_64 which still supported -KPIC.
21775 lt_prog_compiler_wl_CXX='-Wl,'
21776 lt_prog_compiler_pic_CXX='-KPIC'
21777 lt_prog_compiler_static_CXX='-static'
21779 icpc* )
21780 # Intel C++, used to be incompatible with GCC.
21781 # ICC 10 doesn't accept -KPIC any more.
21782 lt_prog_compiler_wl_CXX='-Wl,'
21783 lt_prog_compiler_pic_CXX='-fPIC'
21784 lt_prog_compiler_static_CXX='-static'
21786 pgCC* | pgcpp*)
21787 # Portland Group C++ compiler
21788 lt_prog_compiler_wl_CXX='-Wl,'
21789 lt_prog_compiler_pic_CXX='-fpic'
21790 lt_prog_compiler_static_CXX='-Bstatic'
21792 cxx*)
21793 # Compaq C++
21794 # Make sure the PIC flag is empty. It appears that all Alpha
21795 # Linux and Compaq Tru64 Unix objects are PIC.
21796 lt_prog_compiler_pic_CXX=
21797 lt_prog_compiler_static_CXX='-non_shared'
21799 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
21800 # IBM XL 8.0, 9.0 on PPC and BlueGene
21801 lt_prog_compiler_wl_CXX='-Wl,'
21802 lt_prog_compiler_pic_CXX='-qpic'
21803 lt_prog_compiler_static_CXX='-qstaticlink'
21806 case `$CC -V 2>&1 | sed 5q` in
21807 *Sun\ C*)
21808 # Sun C++ 5.9
21809 lt_prog_compiler_pic_CXX='-KPIC'
21810 lt_prog_compiler_static_CXX='-Bstatic'
21811 lt_prog_compiler_wl_CXX='-Qoption ld '
21813 esac
21815 esac
21817 lynxos*)
21819 m88k*)
21821 mvs*)
21822 case $cc_basename in
21823 cxx*)
21824 lt_prog_compiler_pic_CXX='-W c,exportall'
21828 esac
21830 netbsd*)
21832 *qnx* | *nto*)
21833 # QNX uses GNU C++, but need to define -shared option too, otherwise
21834 # it will coredump.
21835 lt_prog_compiler_pic_CXX='-fPIC -shared'
21837 osf3* | osf4* | osf5*)
21838 case $cc_basename in
21839 KCC*)
21840 lt_prog_compiler_wl_CXX='--backend -Wl,'
21842 RCC*)
21843 # Rational C++ 2.4.1
21844 lt_prog_compiler_pic_CXX='-pic'
21846 cxx*)
21847 # Digital/Compaq C++
21848 lt_prog_compiler_wl_CXX='-Wl,'
21849 # Make sure the PIC flag is empty. It appears that all Alpha
21850 # Linux and Compaq Tru64 Unix objects are PIC.
21851 lt_prog_compiler_pic_CXX=
21852 lt_prog_compiler_static_CXX='-non_shared'
21856 esac
21858 psos*)
21860 solaris*)
21861 case $cc_basename in
21862 CC*)
21863 # Sun C++ 4.2, 5.x and Centerline C++
21864 lt_prog_compiler_pic_CXX='-KPIC'
21865 lt_prog_compiler_static_CXX='-Bstatic'
21866 lt_prog_compiler_wl_CXX='-Qoption ld '
21868 gcx*)
21869 # Green Hills C++ Compiler
21870 lt_prog_compiler_pic_CXX='-PIC'
21874 esac
21876 sunos4*)
21877 case $cc_basename in
21878 CC*)
21879 # Sun C++ 4.x
21880 lt_prog_compiler_pic_CXX='-pic'
21881 lt_prog_compiler_static_CXX='-Bstatic'
21883 lcc*)
21884 # Lucid
21885 lt_prog_compiler_pic_CXX='-pic'
21889 esac
21891 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21892 case $cc_basename in
21893 CC*)
21894 lt_prog_compiler_wl_CXX='-Wl,'
21895 lt_prog_compiler_pic_CXX='-KPIC'
21896 lt_prog_compiler_static_CXX='-Bstatic'
21898 esac
21900 tandem*)
21901 case $cc_basename in
21902 NCC*)
21903 # NonStop-UX NCC 3.20
21904 lt_prog_compiler_pic_CXX='-KPIC'
21908 esac
21910 vxworks*)
21913 lt_prog_compiler_can_build_shared_CXX=no
21915 esac
21918 case $host_os in
21919 # For platforms which do not support PIC, -DPIC is meaningless:
21920 *djgpp*)
21921 lt_prog_compiler_pic_CXX=
21924 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
21926 esac
21927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
21928 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
21933 # Check to make sure the PIC flag actually works.
21935 if test -n "$lt_prog_compiler_pic_CXX"; then
21936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
21937 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
21938 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
21939 $as_echo_n "(cached) " >&6
21940 else
21941 lt_cv_prog_compiler_pic_works_CXX=no
21942 ac_outfile=conftest.$ac_objext
21943 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21944 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
21945 # Insert the option either (1) after the last *FLAGS variable, or
21946 # (2) before a word containing "conftest.", or (3) at the end.
21947 # Note that $ac_compile itself does not contain backslashes and begins
21948 # with a dollar sign (not a hyphen), so the echo should work correctly.
21949 # The option is referenced via a variable to avoid confusing sed.
21950 lt_compile=`echo "$ac_compile" | $SED \
21951 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21952 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21953 -e 's:$: $lt_compiler_flag:'`
21954 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
21955 (eval "$lt_compile" 2>conftest.err)
21956 ac_status=$?
21957 cat conftest.err >&5
21958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21959 if (exit $ac_status) && test -s "$ac_outfile"; then
21960 # The compiler can only warn and ignore the option if not recognized
21961 # So say no if there are warnings other than the usual output.
21962 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
21963 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21964 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
21965 lt_cv_prog_compiler_pic_works_CXX=yes
21968 $RM conftest*
21971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
21972 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
21974 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
21975 case $lt_prog_compiler_pic_CXX in
21976 "" | " "*) ;;
21977 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
21978 esac
21979 else
21980 lt_prog_compiler_pic_CXX=
21981 lt_prog_compiler_can_build_shared_CXX=no
21989 # Check to make sure the static flag actually works.
21991 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
21992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21993 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
21994 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
21995 $as_echo_n "(cached) " >&6
21996 else
21997 lt_cv_prog_compiler_static_works_CXX=no
21998 save_LDFLAGS="$LDFLAGS"
21999 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
22000 echo "$lt_simple_link_test_code" > conftest.$ac_ext
22001 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
22002 # The linker can only warn and ignore the option if not recognized
22003 # So say no if there are warnings
22004 if test -s conftest.err; then
22005 # Append any errors to the config.log.
22006 cat conftest.err 1>&5
22007 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
22008 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
22009 if diff conftest.exp conftest.er2 >/dev/null; then
22010 lt_cv_prog_compiler_static_works_CXX=yes
22012 else
22013 lt_cv_prog_compiler_static_works_CXX=yes
22016 $RM -r conftest*
22017 LDFLAGS="$save_LDFLAGS"
22020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
22021 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
22023 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
22025 else
22026 lt_prog_compiler_static_CXX=
22032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
22033 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
22034 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
22035 $as_echo_n "(cached) " >&6
22036 else
22037 lt_cv_prog_compiler_c_o_CXX=no
22038 $RM -r conftest 2>/dev/null
22039 mkdir conftest
22040 cd conftest
22041 mkdir out
22042 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
22044 lt_compiler_flag="-o out/conftest2.$ac_objext"
22045 # Insert the option either (1) after the last *FLAGS variable, or
22046 # (2) before a word containing "conftest.", or (3) at the end.
22047 # Note that $ac_compile itself does not contain backslashes and begins
22048 # with a dollar sign (not a hyphen), so the echo should work correctly.
22049 lt_compile=`echo "$ac_compile" | $SED \
22050 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
22051 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22052 -e 's:$: $lt_compiler_flag:'`
22053 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
22054 (eval "$lt_compile" 2>out/conftest.err)
22055 ac_status=$?
22056 cat out/conftest.err >&5
22057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22058 if (exit $ac_status) && test -s out/conftest2.$ac_objext
22059 then
22060 # The compiler can only warn and ignore the option if not recognized
22061 # So say no if there are warnings
22062 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
22063 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
22064 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
22065 lt_cv_prog_compiler_c_o_CXX=yes
22068 chmod u+w . 2>&5
22069 $RM conftest*
22070 # SGI C++ compiler will create directory out/ii_files/ for
22071 # template instantiation
22072 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
22073 $RM out/* && rmdir out
22074 cd ..
22075 $RM -r conftest
22076 $RM conftest*
22079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
22080 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
22084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
22085 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
22086 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
22087 $as_echo_n "(cached) " >&6
22088 else
22089 lt_cv_prog_compiler_c_o_CXX=no
22090 $RM -r conftest 2>/dev/null
22091 mkdir conftest
22092 cd conftest
22093 mkdir out
22094 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
22096 lt_compiler_flag="-o out/conftest2.$ac_objext"
22097 # Insert the option either (1) after the last *FLAGS variable, or
22098 # (2) before a word containing "conftest.", or (3) at the end.
22099 # Note that $ac_compile itself does not contain backslashes and begins
22100 # with a dollar sign (not a hyphen), so the echo should work correctly.
22101 lt_compile=`echo "$ac_compile" | $SED \
22102 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
22103 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22104 -e 's:$: $lt_compiler_flag:'`
22105 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
22106 (eval "$lt_compile" 2>out/conftest.err)
22107 ac_status=$?
22108 cat out/conftest.err >&5
22109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22110 if (exit $ac_status) && test -s out/conftest2.$ac_objext
22111 then
22112 # The compiler can only warn and ignore the option if not recognized
22113 # So say no if there are warnings
22114 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
22115 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
22116 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
22117 lt_cv_prog_compiler_c_o_CXX=yes
22120 chmod u+w . 2>&5
22121 $RM conftest*
22122 # SGI C++ compiler will create directory out/ii_files/ for
22123 # template instantiation
22124 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
22125 $RM out/* && rmdir out
22126 cd ..
22127 $RM -r conftest
22128 $RM conftest*
22131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
22132 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
22137 hard_links="nottested"
22138 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
22139 # do not overwrite the value of need_locks provided by the user
22140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
22141 $as_echo_n "checking if we can lock with hard links... " >&6; }
22142 hard_links=yes
22143 $RM conftest*
22144 ln conftest.a conftest.b 2>/dev/null && hard_links=no
22145 touch conftest.a
22146 ln conftest.a conftest.b 2>&5 || hard_links=no
22147 ln conftest.a conftest.b 2>/dev/null && hard_links=no
22148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
22149 $as_echo "$hard_links" >&6; }
22150 if test "$hard_links" = no; then
22151 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
22152 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
22153 need_locks=warn
22155 else
22156 need_locks=no
22161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
22162 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
22164 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
22165 case $host_os in
22166 aix[4-9]*)
22167 # If we're using GNU nm, then we don't want the "-C" option.
22168 # -C means demangle to AIX nm, but means don't demangle with GNU nm
22169 # Also, AIX nm treats weak defined symbols like other global defined
22170 # symbols, whereas GNU nm marks them as "W".
22171 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
22172 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'
22173 else
22174 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'
22177 pw32*)
22178 export_symbols_cmds_CXX="$ltdll_cmds"
22180 cygwin* | mingw* | cegcc*)
22181 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'
22184 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
22186 esac
22187 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
22189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
22190 $as_echo "$ld_shlibs_CXX" >&6; }
22191 test "$ld_shlibs_CXX" = no && can_build_shared=no
22193 with_gnu_ld_CXX=$with_gnu_ld
22201 # Do we need to explicitly link libc?
22203 case "x$archive_cmds_need_lc_CXX" in
22204 x|xyes)
22205 # Assume -lc should be added
22206 archive_cmds_need_lc_CXX=yes
22208 if test "$enable_shared" = yes && test "$GCC" = yes; then
22209 case $archive_cmds_CXX in
22210 *'~'*)
22211 # FIXME: we may have to deal with multi-command sequences.
22213 '$CC '*)
22214 # Test whether the compiler implicitly links with -lc since on some
22215 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22216 # to ld, don't add -lc before -lgcc.
22217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
22218 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
22219 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
22220 $as_echo_n "(cached) " >&6
22221 else
22222 $RM conftest*
22223 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
22225 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
22226 (eval $ac_compile) 2>&5
22227 ac_status=$?
22228 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22229 test $ac_status = 0; } 2>conftest.err; then
22230 soname=conftest
22231 lib=conftest
22232 libobjs=conftest.$ac_objext
22233 deplibs=
22234 wl=$lt_prog_compiler_wl_CXX
22235 pic_flag=$lt_prog_compiler_pic_CXX
22236 compiler_flags=-v
22237 linker_flags=-v
22238 verstring=
22239 output_objdir=.
22240 libname=conftest
22241 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
22242 allow_undefined_flag_CXX=
22243 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
22244 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
22245 ac_status=$?
22246 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22247 test $ac_status = 0; }
22248 then
22249 lt_cv_archive_cmds_need_lc_CXX=no
22250 else
22251 lt_cv_archive_cmds_need_lc_CXX=yes
22253 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
22254 else
22255 cat conftest.err 1>&5
22257 $RM conftest*
22260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
22261 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
22262 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
22264 esac
22267 esac
22332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
22333 $as_echo_n "checking dynamic linker characteristics... " >&6; }
22335 library_names_spec=
22336 libname_spec='lib$name'
22337 soname_spec=
22338 shrext_cmds=".so"
22339 postinstall_cmds=
22340 postuninstall_cmds=
22341 finish_cmds=
22342 finish_eval=
22343 shlibpath_var=
22344 shlibpath_overrides_runpath=unknown
22345 version_type=none
22346 dynamic_linker="$host_os ld.so"
22347 sys_lib_dlsearch_path_spec="/lib /usr/lib"
22348 need_lib_prefix=unknown
22349 hardcode_into_libs=no
22351 # when you set need_version to no, make sure it does not cause -set_version
22352 # flags to be left without arguments
22353 need_version=unknown
22355 case $host_os in
22356 aix3*)
22357 version_type=linux
22358 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22359 shlibpath_var=LIBPATH
22361 # AIX 3 has no versioning support, so we append a major version to the name.
22362 soname_spec='${libname}${release}${shared_ext}$major'
22365 aix[4-9]*)
22366 version_type=linux
22367 need_lib_prefix=no
22368 need_version=no
22369 hardcode_into_libs=yes
22370 if test "$host_cpu" = ia64; then
22371 # AIX 5 supports IA64
22372 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22373 shlibpath_var=LD_LIBRARY_PATH
22374 else
22375 # With GCC up to 2.95.x, collect2 would create an import file
22376 # for dependence libraries. The import file would start with
22377 # the line `#! .'. This would cause the generated library to
22378 # depend on `.', always an invalid library. This was fixed in
22379 # development snapshots of GCC prior to 3.0.
22380 case $host_os in
22381 aix4 | aix4.[01] | aix4.[01].*)
22382 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22383 echo ' yes '
22384 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
22386 else
22387 can_build_shared=no
22390 esac
22391 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22392 # soname into executable. Probably we can add versioning support to
22393 # collect2, so additional links can be useful in future.
22394 if test "$aix_use_runtimelinking" = yes; then
22395 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22396 # instead of lib<name>.a to let people know that these are not
22397 # typical AIX shared libraries.
22398 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22399 else
22400 # We preserve .a as extension for shared libraries through AIX4.2
22401 # and later when we are not doing run time linking.
22402 library_names_spec='${libname}${release}.a $libname.a'
22403 soname_spec='${libname}${release}${shared_ext}$major'
22405 shlibpath_var=LIBPATH
22409 amigaos*)
22410 case $host_cpu in
22411 powerpc)
22412 # Since July 2007 AmigaOS4 officially supports .so libraries.
22413 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
22414 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22416 m68k)
22417 library_names_spec='$libname.ixlibrary $libname.a'
22418 # Create ${libname}_ixlibrary.a entries in /sys/libs.
22419 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'
22421 esac
22424 beos*)
22425 library_names_spec='${libname}${shared_ext}'
22426 dynamic_linker="$host_os ld.so"
22427 shlibpath_var=LIBRARY_PATH
22430 bsdi[45]*)
22431 version_type=linux
22432 need_version=no
22433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22434 soname_spec='${libname}${release}${shared_ext}$major'
22435 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22436 shlibpath_var=LD_LIBRARY_PATH
22437 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22438 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22439 # the default ld.so.conf also contains /usr/contrib/lib and
22440 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22441 # libtool to hard-code these into programs
22444 cygwin* | mingw* | pw32* | cegcc*)
22445 version_type=windows
22446 shrext_cmds=".dll"
22447 need_version=no
22448 need_lib_prefix=no
22450 case $GCC,$host_os in
22451 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
22452 library_names_spec='$libname.dll.a'
22453 # DLL is installed to $(libdir)/../bin by postinstall_cmds
22454 postinstall_cmds='base_file=`basename \${file}`~
22455 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
22456 dldir=$destdir/`dirname \$dlpath`~
22457 test -d \$dldir || mkdir -p \$dldir~
22458 $install_prog $dir/$dlname \$dldir/$dlname~
22459 chmod a+x \$dldir/$dlname~
22460 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
22461 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
22463 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22464 dlpath=$dir/\$dldll~
22465 $RM \$dlpath'
22466 shlibpath_overrides_runpath=yes
22468 case $host_os in
22469 cygwin*)
22470 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22471 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22474 mingw* | cegcc*)
22475 # MinGW DLLs use traditional 'lib' prefix
22476 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22478 pw32*)
22479 # pw32 DLLs use 'pw' prefix rather than 'lib'
22480 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22482 esac
22486 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22488 esac
22489 dynamic_linker='Win32 ld.exe'
22490 # FIXME: first we should search . and the directory the executable is in
22491 shlibpath_var=PATH
22494 darwin* | rhapsody*)
22495 dynamic_linker="$host_os dyld"
22496 version_type=darwin
22497 need_lib_prefix=no
22498 need_version=no
22499 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22500 soname_spec='${libname}${release}${major}$shared_ext'
22501 shlibpath_overrides_runpath=yes
22502 shlibpath_var=DYLD_LIBRARY_PATH
22503 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
22505 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22508 dgux*)
22509 version_type=linux
22510 need_lib_prefix=no
22511 need_version=no
22512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22513 soname_spec='${libname}${release}${shared_ext}$major'
22514 shlibpath_var=LD_LIBRARY_PATH
22517 freebsd* | dragonfly*)
22518 # DragonFly does not have aout. When/if they implement a new
22519 # versioning mechanism, adjust this.
22520 if test -x /usr/bin/objformat; then
22521 objformat=`/usr/bin/objformat`
22522 else
22523 case $host_os in
22524 freebsd[23].*) objformat=aout ;;
22525 *) objformat=elf ;;
22526 esac
22528 version_type=freebsd-$objformat
22529 case $version_type in
22530 freebsd-elf*)
22531 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22532 need_version=no
22533 need_lib_prefix=no
22535 freebsd-*)
22536 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22537 need_version=yes
22539 esac
22540 shlibpath_var=LD_LIBRARY_PATH
22541 case $host_os in
22542 freebsd2.*)
22543 shlibpath_overrides_runpath=yes
22545 freebsd3.[01]* | freebsdelf3.[01]*)
22546 shlibpath_overrides_runpath=yes
22547 hardcode_into_libs=yes
22549 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
22550 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
22551 shlibpath_overrides_runpath=no
22552 hardcode_into_libs=yes
22554 *) # from 4.6 on, and DragonFly
22555 shlibpath_overrides_runpath=yes
22556 hardcode_into_libs=yes
22558 esac
22561 haiku*)
22562 version_type=linux
22563 need_lib_prefix=no
22564 need_version=no
22565 dynamic_linker="$host_os runtime_loader"
22566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22567 soname_spec='${libname}${release}${shared_ext}$major'
22568 shlibpath_var=LIBRARY_PATH
22569 shlibpath_overrides_runpath=yes
22570 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
22571 hardcode_into_libs=yes
22574 hpux9* | hpux10* | hpux11*)
22575 # Give a soname corresponding to the major version so that dld.sl refuses to
22576 # link against other versions.
22577 version_type=sunos
22578 need_lib_prefix=no
22579 need_version=no
22580 case $host_cpu in
22581 ia64*)
22582 shrext_cmds='.so'
22583 hardcode_into_libs=yes
22584 dynamic_linker="$host_os dld.so"
22585 shlibpath_var=LD_LIBRARY_PATH
22586 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22587 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22588 soname_spec='${libname}${release}${shared_ext}$major'
22589 if test "X$HPUX_IA64_MODE" = X32; then
22590 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22591 else
22592 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22594 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22596 hppa*64*)
22597 shrext_cmds='.sl'
22598 hardcode_into_libs=yes
22599 dynamic_linker="$host_os dld.sl"
22600 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22601 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22603 soname_spec='${libname}${release}${shared_ext}$major'
22604 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22605 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22608 shrext_cmds='.sl'
22609 dynamic_linker="$host_os dld.sl"
22610 shlibpath_var=SHLIB_PATH
22611 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22612 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22613 soname_spec='${libname}${release}${shared_ext}$major'
22615 esac
22616 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
22617 postinstall_cmds='chmod 555 $lib'
22618 # or fails outright, so override atomically:
22619 install_override_mode=555
22622 interix[3-9]*)
22623 version_type=linux
22624 need_lib_prefix=no
22625 need_version=no
22626 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22627 soname_spec='${libname}${release}${shared_ext}$major'
22628 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
22629 shlibpath_var=LD_LIBRARY_PATH
22630 shlibpath_overrides_runpath=no
22631 hardcode_into_libs=yes
22634 irix5* | irix6* | nonstopux*)
22635 case $host_os in
22636 nonstopux*) version_type=nonstopux ;;
22638 if test "$lt_cv_prog_gnu_ld" = yes; then
22639 version_type=linux
22640 else
22641 version_type=irix
22642 fi ;;
22643 esac
22644 need_lib_prefix=no
22645 need_version=no
22646 soname_spec='${libname}${release}${shared_ext}$major'
22647 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22648 case $host_os in
22649 irix5* | nonstopux*)
22650 libsuff= shlibsuff=
22653 case $LD in # libtool.m4 will add one of these switches to LD
22654 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22655 libsuff= shlibsuff= libmagic=32-bit;;
22656 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22657 libsuff=32 shlibsuff=N32 libmagic=N32;;
22658 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22659 libsuff=64 shlibsuff=64 libmagic=64-bit;;
22660 *) libsuff= shlibsuff= libmagic=never-match;;
22661 esac
22663 esac
22664 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22665 shlibpath_overrides_runpath=no
22666 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22667 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22668 hardcode_into_libs=yes
22671 # No shared lib support for Linux oldld, aout, or coff.
22672 linux*oldld* | linux*aout* | linux*coff*)
22673 dynamic_linker=no
22676 # This must be Linux ELF.
22678 # uclinux* changes (here and below) have been submitted to the libtool
22679 # project, but have not yet been accepted: they are GCC-local changes
22680 # for the time being. (See
22681 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
22682 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
22683 version_type=linux
22684 need_lib_prefix=no
22685 need_version=no
22686 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22687 soname_spec='${libname}${release}${shared_ext}$major'
22688 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22689 shlibpath_var=LD_LIBRARY_PATH
22690 shlibpath_overrides_runpath=no
22692 # Some binutils ld are patched to set DT_RUNPATH
22693 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
22694 $as_echo_n "(cached) " >&6
22695 else
22696 lt_cv_shlibpath_overrides_runpath=no
22697 save_LDFLAGS=$LDFLAGS
22698 save_libdir=$libdir
22699 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
22700 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
22701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22702 /* end confdefs.h. */
22705 main ()
22709 return 0;
22711 _ACEOF
22712 if ac_fn_cxx_try_link "$LINENO"; then :
22713 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
22714 lt_cv_shlibpath_overrides_runpath=yes
22717 rm -f core conftest.err conftest.$ac_objext \
22718 conftest$ac_exeext conftest.$ac_ext
22719 LDFLAGS=$save_LDFLAGS
22720 libdir=$save_libdir
22724 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
22726 # This implies no fast_install, which is unacceptable.
22727 # Some rework will be needed to allow for fast_install
22728 # before this can be enabled.
22729 hardcode_into_libs=yes
22731 # Append ld.so.conf contents to the search path
22732 if test -f /etc/ld.so.conf; then
22733 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' ' '`
22734 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22737 # We used to test for /lib/ld.so.1 and disable shared libraries on
22738 # powerpc, because MkLinux only supported shared libraries with the
22739 # GNU dynamic linker. Since this was broken with cross compilers,
22740 # most powerpc-linux boxes support dynamic linking these days and
22741 # people can always --disable-shared, the test was removed, and we
22742 # assume the GNU/Linux dynamic linker is in use.
22743 dynamic_linker='GNU/Linux ld.so'
22746 netbsd*)
22747 version_type=sunos
22748 need_lib_prefix=no
22749 need_version=no
22750 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
22751 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22752 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22753 dynamic_linker='NetBSD (a.out) ld.so'
22754 else
22755 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22756 soname_spec='${libname}${release}${shared_ext}$major'
22757 dynamic_linker='NetBSD ld.elf_so'
22759 shlibpath_var=LD_LIBRARY_PATH
22760 shlibpath_overrides_runpath=yes
22761 hardcode_into_libs=yes
22764 newsos6)
22765 version_type=linux
22766 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22767 shlibpath_var=LD_LIBRARY_PATH
22768 shlibpath_overrides_runpath=yes
22771 *nto* | *qnx*)
22772 version_type=qnx
22773 need_lib_prefix=no
22774 need_version=no
22775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22776 soname_spec='${libname}${release}${shared_ext}$major'
22777 shlibpath_var=LD_LIBRARY_PATH
22778 shlibpath_overrides_runpath=no
22779 hardcode_into_libs=yes
22780 dynamic_linker='ldqnx.so'
22783 openbsd*)
22784 version_type=sunos
22785 sys_lib_dlsearch_path_spec="/usr/lib"
22786 need_lib_prefix=no
22787 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
22788 case $host_os in
22789 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
22790 *) need_version=no ;;
22791 esac
22792 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22793 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22794 shlibpath_var=LD_LIBRARY_PATH
22795 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22796 case $host_os in
22797 openbsd2.[89] | openbsd2.[89].*)
22798 shlibpath_overrides_runpath=no
22801 shlibpath_overrides_runpath=yes
22803 esac
22804 else
22805 shlibpath_overrides_runpath=yes
22809 os2*)
22810 libname_spec='$name'
22811 shrext_cmds=".dll"
22812 need_lib_prefix=no
22813 library_names_spec='$libname${shared_ext} $libname.a'
22814 dynamic_linker='OS/2 ld.exe'
22815 shlibpath_var=LIBPATH
22818 osf3* | osf4* | osf5*)
22819 version_type=osf
22820 need_lib_prefix=no
22821 need_version=no
22822 soname_spec='${libname}${release}${shared_ext}$major'
22823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22824 shlibpath_var=LD_LIBRARY_PATH
22825 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22826 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
22829 rdos*)
22830 dynamic_linker=no
22833 solaris*)
22834 version_type=linux
22835 need_lib_prefix=no
22836 need_version=no
22837 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22838 soname_spec='${libname}${release}${shared_ext}$major'
22839 shlibpath_var=LD_LIBRARY_PATH
22840 shlibpath_overrides_runpath=yes
22841 hardcode_into_libs=yes
22842 # ldd complains unless libraries are executable
22843 postinstall_cmds='chmod +x $lib'
22846 sunos4*)
22847 version_type=sunos
22848 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22849 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22850 shlibpath_var=LD_LIBRARY_PATH
22851 shlibpath_overrides_runpath=yes
22852 if test "$with_gnu_ld" = yes; then
22853 need_lib_prefix=no
22855 need_version=yes
22858 sysv4 | sysv4.3*)
22859 version_type=linux
22860 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22861 soname_spec='${libname}${release}${shared_ext}$major'
22862 shlibpath_var=LD_LIBRARY_PATH
22863 case $host_vendor in
22864 sni)
22865 shlibpath_overrides_runpath=no
22866 need_lib_prefix=no
22867 runpath_var=LD_RUN_PATH
22869 siemens)
22870 need_lib_prefix=no
22872 motorola)
22873 need_lib_prefix=no
22874 need_version=no
22875 shlibpath_overrides_runpath=no
22876 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
22878 esac
22881 sysv4*MP*)
22882 if test -d /usr/nec ;then
22883 version_type=linux
22884 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
22885 soname_spec='$libname${shared_ext}.$major'
22886 shlibpath_var=LD_LIBRARY_PATH
22890 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
22891 version_type=freebsd-elf
22892 need_lib_prefix=no
22893 need_version=no
22894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22895 soname_spec='${libname}${release}${shared_ext}$major'
22896 shlibpath_var=LD_LIBRARY_PATH
22897 shlibpath_overrides_runpath=yes
22898 hardcode_into_libs=yes
22899 if test "$with_gnu_ld" = yes; then
22900 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
22901 else
22902 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
22903 case $host_os in
22904 sco3.2v5*)
22905 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
22907 esac
22909 sys_lib_dlsearch_path_spec='/usr/lib'
22912 tpf*)
22913 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
22914 version_type=linux
22915 need_lib_prefix=no
22916 need_version=no
22917 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22918 shlibpath_var=LD_LIBRARY_PATH
22919 shlibpath_overrides_runpath=no
22920 hardcode_into_libs=yes
22923 uts4*)
22924 version_type=linux
22925 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22926 soname_spec='${libname}${release}${shared_ext}$major'
22927 shlibpath_var=LD_LIBRARY_PATH
22930 # Shared libraries for VwWorks, >= 7 only at this stage
22931 # and (fpic) still incompatible with "large" code models
22932 # in a few configurations. Only for RTP mode in any case,
22933 # and upon explicit request at configure time.
22934 vxworks7*)
22935 dynamic_linker=no
22936 case ${with_multisubdir}-${enable_shared} in
22937 *large*)
22939 *mrtp*-yes)
22940 version_type=linux
22941 need_lib_prefix=no
22942 need_version=no
22943 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22944 soname_spec='${libname}${release}${shared_ext}$major'
22945 dynamic_linker="$host_os module_loader"
22947 esac
22950 dynamic_linker=no
22952 esac
22953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
22954 $as_echo "$dynamic_linker" >&6; }
22955 test "$dynamic_linker" = no && can_build_shared=no
22957 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22958 if test "$GCC" = yes; then
22959 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22962 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
22963 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
22965 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
22966 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
23006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
23007 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
23008 hardcode_action_CXX=
23009 if test -n "$hardcode_libdir_flag_spec_CXX" ||
23010 test -n "$runpath_var_CXX" ||
23011 test "X$hardcode_automatic_CXX" = "Xyes" ; then
23013 # We can hardcode non-existent directories.
23014 if test "$hardcode_direct_CXX" != no &&
23015 # If the only mechanism to avoid hardcoding is shlibpath_var, we
23016 # have to relink, otherwise we might link with an installed library
23017 # when we should be linking with a yet-to-be-installed one
23018 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
23019 test "$hardcode_minus_L_CXX" != no; then
23020 # Linking always hardcodes the temporary library directory.
23021 hardcode_action_CXX=relink
23022 else
23023 # We can link without hardcoding, and we can hardcode nonexisting dirs.
23024 hardcode_action_CXX=immediate
23026 else
23027 # We cannot hardcode anything, or else we can only hardcode existing
23028 # directories.
23029 hardcode_action_CXX=unsupported
23031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
23032 $as_echo "$hardcode_action_CXX" >&6; }
23034 if test "$hardcode_action_CXX" = relink ||
23035 test "$inherit_rpath_CXX" = yes; then
23036 # Fast installation is not supported
23037 enable_fast_install=no
23038 elif test "$shlibpath_overrides_runpath" = yes ||
23039 test "$enable_shared" = no; then
23040 # Fast installation is not necessary
23041 enable_fast_install=needless
23050 fi # test -n "$compiler"
23052 CC=$lt_save_CC
23053 LDCXX=$LD
23054 LD=$lt_save_LD
23055 GCC=$lt_save_GCC
23056 with_gnu_ld=$lt_save_with_gnu_ld
23057 lt_cv_path_LDCXX=$lt_cv_path_LD
23058 lt_cv_path_LD=$lt_save_path_LD
23059 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
23060 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
23061 fi # test "$_lt_caught_CXX_error" != yes
23063 ac_ext=cpp
23064 ac_cpp='$CXXCPP $CPPFLAGS'
23065 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23066 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23067 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23084 # Only expand once:
23090 # Identify the assembler which will work hand-in-glove with the newly
23091 # built GCC, so that we can examine its features. This is the assembler
23092 # which will be driven by the driver program.
23094 # If build != host, and we aren't building gas in-tree, we identify a
23095 # build->target assembler and hope that it will have the same features
23096 # as the host->target assembler we'll be using.
23097 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
23099 if ${gcc_cv_as+:} false; then :
23101 else
23103 if test -x "$DEFAULT_ASSEMBLER"; then
23104 gcc_cv_as="$DEFAULT_ASSEMBLER"
23105 elif test -f $gcc_cv_as_gas_srcdir/configure.ac \
23106 && test -f ../gas/Makefile \
23107 && test x$build = x$host; then
23108 gcc_cv_as=../gas/as-new$build_exeext
23109 elif test -x as$build_exeext; then
23110 # Build using assembler in the current directory.
23111 gcc_cv_as=./as$build_exeext
23112 elif ( set dummy $AS_FOR_TARGET; test -x $2 ); then
23113 gcc_cv_as="$AS_FOR_TARGET"
23114 else
23115 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
23116 set dummy $AS_FOR_TARGET; ac_word=$2
23117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23118 $as_echo_n "checking for $ac_word... " >&6; }
23119 if ${ac_cv_path_gcc_cv_as+:} false; then :
23120 $as_echo_n "(cached) " >&6
23121 else
23122 case $gcc_cv_as in
23123 [\\/]* | ?:[\\/]*)
23124 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
23127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23128 for as_dir in $PATH
23130 IFS=$as_save_IFS
23131 test -z "$as_dir" && as_dir=.
23132 for ac_exec_ext in '' $ac_executable_extensions; do
23133 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23134 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
23135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23136 break 2
23138 done
23139 done
23140 IFS=$as_save_IFS
23143 esac
23145 gcc_cv_as=$ac_cv_path_gcc_cv_as
23146 if test -n "$gcc_cv_as"; then
23147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
23148 $as_echo "$gcc_cv_as" >&6; }
23149 else
23150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23151 $as_echo "no" >&6; }
23158 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
23160 case "$ORIGINAL_AS_FOR_TARGET" in
23161 ./as | ./as$build_exeext) ;;
23162 *) ac_config_files="$ac_config_files as:exec-tool.in"
23164 esac
23166 default_ld=
23167 # Check whether --enable-ld was given.
23168 if test "${enable_ld+set}" = set; then :
23169 enableval=$enable_ld; case "${enableval}" in
23171 default_ld=ld.gold
23173 esac
23177 install_gold_as_default=no
23178 # Check whether --enable-gold was given.
23179 if test "${enable_gold+set}" = set; then :
23180 enableval=$enable_gold; case "${enableval}" in
23181 default)
23182 install_gold_as_default=yes
23184 yes)
23185 if test x${default_ld} != x; then
23186 install_gold_as_default=yes
23192 as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5
23194 esac
23198 # Identify the linker which will work hand-in-glove with the newly
23199 # built GCC, so that we can examine its features. This is the linker
23200 # which will be driven by the driver program.
23202 # If build != host, and we aren't building gas in-tree, we identify a
23203 # build->target linker and hope that it will have the same features
23204 # as the host->target linker we'll be using.
23205 gcc_cv_gld_major_version=
23206 gcc_cv_gld_minor_version=
23207 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
23208 gcc_cv_ld_gold_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gold
23209 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
23211 if ${gcc_cv_ld+:} false; then :
23213 else
23215 if test -x "$DEFAULT_LINKER"; then
23216 gcc_cv_ld="$DEFAULT_LINKER"
23217 elif test $install_gold_as_default = yes \
23218 && test -f $gcc_cv_ld_gold_srcdir/configure.ac \
23219 && test -f ../gold/Makefile \
23220 && test x$build = x$host; then
23221 gcc_cv_ld=../gold/ld-new$build_exeext
23222 elif test -f $gcc_cv_ld_gld_srcdir/configure.ac \
23223 && test -f ../ld/Makefile \
23224 && test x$build = x$host; then
23225 gcc_cv_ld=../ld/ld-new$build_exeext
23226 elif test -x collect-ld$build_exeext; then
23227 # Build using linker in the current directory.
23228 gcc_cv_ld=./collect-ld$build_exeext
23229 elif ( set dummy $LD_FOR_TARGET; test -x $2 ); then
23230 gcc_cv_ld="$LD_FOR_TARGET"
23231 else
23232 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
23233 set dummy $LD_FOR_TARGET; ac_word=$2
23234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23235 $as_echo_n "checking for $ac_word... " >&6; }
23236 if ${ac_cv_path_gcc_cv_ld+:} false; then :
23237 $as_echo_n "(cached) " >&6
23238 else
23239 case $gcc_cv_ld in
23240 [\\/]* | ?:[\\/]*)
23241 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
23244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23245 for as_dir in $PATH
23247 IFS=$as_save_IFS
23248 test -z "$as_dir" && as_dir=.
23249 for ac_exec_ext in '' $ac_executable_extensions; do
23250 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23251 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
23252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23253 break 2
23255 done
23256 done
23257 IFS=$as_save_IFS
23260 esac
23262 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
23263 if test -n "$gcc_cv_ld"; then
23264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
23265 $as_echo "$gcc_cv_ld" >&6; }
23266 else
23267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23268 $as_echo "no" >&6; }
23275 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
23276 PLUGIN_LD_SUFFIX=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
23277 # if the PLUGIN_LD is set ld-new, just have it as ld
23278 # as that is the installed named.
23279 if test x$PLUGIN_LD_SUFFIX = xld-new \
23280 || test x$PLUGIN_LD_SUFFIX = xcollect-ld ; then
23281 PLUGIN_LD_SUFFIX=ld
23284 # Check whether --with-plugin-ld was given.
23285 if test "${with_plugin_ld+set}" = set; then :
23286 withval=$with_plugin_ld; if test x"$withval" != x; then
23287 ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
23288 PLUGIN_LD_SUFFIX="$withval"
23294 cat >>confdefs.h <<_ACEOF
23295 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
23296 _ACEOF
23299 # Check to see if we are using gold instead of ld
23300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
23301 $as_echo_n "checking whether we are using gold... " >&6; }
23302 ld_is_gold=no
23303 if test x$gcc_cv_ld != x; then
23304 if $gcc_cv_ld --version 2>/dev/null | sed 1q \
23305 | grep "GNU gold" > /dev/null; then
23306 ld_is_gold=yes
23309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
23310 $as_echo "$ld_is_gold" >&6; }
23312 # Check to see if we are using mold instead of ld
23313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using mold" >&5
23314 $as_echo_n "checking whether we are using mold... " >&6; }
23315 ld_is_mold=no
23316 if test x$gcc_cv_ld != x; then
23317 if $gcc_cv_ld --version 2>/dev/null | sed 1q \
23318 | grep "mold" > /dev/null; then
23319 ld_is_mold=yes
23322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_mold" >&5
23323 $as_echo "$ld_is_mold" >&6; }
23326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gold linker with split stack support as non default" >&5
23327 $as_echo_n "checking gold linker with split stack support as non default... " >&6; }
23328 # Check to see if default ld is not gold, but gold is
23329 # available and has support for split stack. If gcc was configured
23330 # with gold then no checking is done.
23332 if test x$ld_is_gold = xno && which ${gcc_cv_ld}.gold >/dev/null 2>&1; then
23334 # For platforms other than powerpc64*, enable as appropriate.
23336 gold_non_default=no
23337 ld_gold=`which ${gcc_cv_ld}.gold`
23338 # Make sure this gold has minimal split stack support
23339 if $ld_gold --help 2>/dev/null | grep split-stack-adjust-size >/dev/null 2>&1; then
23340 ld_vers=`$ld_gold --version | sed 1q`
23341 gold_vers=`echo $ld_vers | sed -n \
23342 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
23343 case $target in
23344 # check that the gold version contains the complete split stack support
23345 # on powerpc64 big and little endian
23346 powerpc64*-*-*)
23347 case "$gold_vers" in
23348 2.25.[1-9]*|2.2[6-9][.0-9]*|2.[3-9][.0-9]*|[3-9].[.0-9]*) gold_non_default=yes
23350 *) gold_non_default=no
23352 esac
23354 esac
23356 if test $gold_non_default = yes; then
23358 $as_echo "#define HAVE_GOLD_NON_DEFAULT_SPLIT_STACK 1" >>confdefs.h
23362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_non_default" >&5
23363 $as_echo "$gold_non_default" >&6; }
23365 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
23367 case "$ORIGINAL_LD_FOR_TARGET" in
23368 ./collect-ld | ./collect-ld$build_exeext) ;;
23369 *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
23371 esac
23373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
23374 $as_echo_n "checking what linker to use... " >&6; }
23375 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext \
23376 || test "$gcc_cv_ld" = ../gold/ld-new$build_exeext; then
23377 # Single tree build which includes ld. We want to prefer it
23378 # over whatever linker top-level may have detected, since
23379 # we'll use what we're building after installation anyway.
23380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
23381 $as_echo "newly built ld" >&6; }
23382 in_tree_ld=yes
23383 in_tree_ld_is_elf=no
23384 if (grep 'EMUL = .*elf' ../ld/Makefile \
23385 || grep 'EMUL = .*linux' ../ld/Makefile \
23386 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
23387 in_tree_ld_is_elf=yes
23388 elif test "$ld_is_gold" = yes; then
23389 in_tree_ld_is_elf=yes
23391 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
23393 gcc_cv_gld_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
23394 if test x$gcc_cv_gld_version != x; then
23395 break
23397 done
23398 case $gcc_cv_gld_version in
23399 VERSION=[0-9]*) ;;
23400 *) as_fn_error $? "cannot find version of in-tree linker" "$LINENO" 5 ;;
23401 esac
23402 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
23403 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
23404 ORIGINAL_LD_BFD_FOR_TARGET=../ld/ld-new$build_exeext
23405 ORIGINAL_LD_GOLD_FOR_TARGET=../gold/ld-new$build_exeext
23406 else
23407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
23408 $as_echo "$gcc_cv_ld" >&6; }
23409 in_tree_ld=no
23410 gcc_cvs_ld_program=`dirname $gcc_cv_ld`/`basename $gcc_cv_ld $host_exeext`
23411 ORIGINAL_LD_BFD_FOR_TARGET=${gcc_cvs_ld_program}.bfd$host_exeext
23412 ORIGINAL_LD_GOLD_FOR_TARGET=${gcc_cvs_ld_program}.gold$host_exeext
23418 # Figure out what nm we will be using.
23419 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
23420 if ${gcc_cv_nm+:} false; then :
23422 else
23424 if test -f $gcc_cv_binutils_srcdir/configure.ac \
23425 && test -f ../binutils/Makefile \
23426 && test x$build = x$host; then
23427 gcc_cv_nm=../binutils/nm-new$build_exeext
23428 elif test -x nm$build_exeext; then
23429 gcc_cv_nm=./nm$build_exeext
23430 elif ( set dummy $NM_FOR_TARGET; test -x $2 ); then
23431 gcc_cv_nm="$NM_FOR_TARGET"
23432 else
23433 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
23434 set dummy $NM_FOR_TARGET; ac_word=$2
23435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23436 $as_echo_n "checking for $ac_word... " >&6; }
23437 if ${ac_cv_path_gcc_cv_nm+:} false; then :
23438 $as_echo_n "(cached) " >&6
23439 else
23440 case $gcc_cv_nm in
23441 [\\/]* | ?:[\\/]*)
23442 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
23445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23446 for as_dir in $PATH
23448 IFS=$as_save_IFS
23449 test -z "$as_dir" && as_dir=.
23450 for ac_exec_ext in '' $ac_executable_extensions; do
23451 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23452 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
23453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23454 break 2
23456 done
23457 done
23458 IFS=$as_save_IFS
23461 esac
23463 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
23464 if test -n "$gcc_cv_nm"; then
23465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
23466 $as_echo "$gcc_cv_nm" >&6; }
23467 else
23468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23469 $as_echo "no" >&6; }
23476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
23477 $as_echo_n "checking what nm to use... " >&6; }
23478 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
23479 # Single tree build which includes binutils.
23480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
23481 $as_echo "newly built nm" >&6; }
23482 in_tree_nm=yes
23483 else
23484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
23485 $as_echo "$gcc_cv_nm" >&6; }
23486 in_tree_nm=no
23489 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
23491 case "$ORIGINAL_NM_FOR_TARGET" in
23492 ./nm | ./nm$build_exeext) ;;
23493 *) ac_config_files="$ac_config_files nm:exec-tool.in"
23495 esac
23498 # Figure out what objdump we will be using.
23499 if ${gcc_cv_objdump+:} false; then :
23501 else
23503 if test -f $gcc_cv_binutils_srcdir/configure.ac \
23504 && test -f ../binutils/Makefile \
23505 && test x$build = x$host; then
23506 # Single tree build which includes binutils.
23507 gcc_cv_objdump=../binutils/objdump$build_exeext
23508 elif test -x objdump$build_exeext; then
23509 gcc_cv_objdump=./objdump$build_exeext
23510 elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $2 ); then
23511 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
23512 else
23513 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
23514 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
23515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23516 $as_echo_n "checking for $ac_word... " >&6; }
23517 if ${ac_cv_path_gcc_cv_objdump+:} false; then :
23518 $as_echo_n "(cached) " >&6
23519 else
23520 case $gcc_cv_objdump in
23521 [\\/]* | ?:[\\/]*)
23522 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
23525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23526 for as_dir in $PATH
23528 IFS=$as_save_IFS
23529 test -z "$as_dir" && as_dir=.
23530 for ac_exec_ext in '' $ac_executable_extensions; do
23531 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23532 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
23533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23534 break 2
23536 done
23537 done
23538 IFS=$as_save_IFS
23541 esac
23543 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
23544 if test -n "$gcc_cv_objdump"; then
23545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
23546 $as_echo "$gcc_cv_objdump" >&6; }
23547 else
23548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23549 $as_echo "no" >&6; }
23556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
23557 $as_echo_n "checking what objdump to use... " >&6; }
23558 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
23559 # Single tree build which includes binutils.
23560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
23561 $as_echo "newly built objdump" >&6; }
23562 elif test x$gcc_cv_objdump = x; then
23563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23564 $as_echo "not found" >&6; }
23565 else
23566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
23567 $as_echo "$gcc_cv_objdump" >&6; }
23570 # Figure out what readelf we will be using.
23571 if ${gcc_cv_readelf+:} false; then :
23573 else
23575 if test -f $gcc_cv_binutils_srcdir/configure.ac \
23576 && test -f ../binutils/Makefile \
23577 && test x$build = x$host; then
23578 # Single tree build which includes binutils.
23579 gcc_cv_readelf=../binutils/readelf$build_exeext
23580 elif test -x readelf$build_exeext; then
23581 gcc_cv_readelf=./readelf$build_exeext
23582 elif ( set dummy $READELF_FOR_TARGET; test -x $2 ); then
23583 gcc_cv_readelf="$READELF_FOR_TARGET"
23584 else
23585 # Extract the first word of "$READELF_FOR_TARGET", so it can be a program name with args.
23586 set dummy $READELF_FOR_TARGET; ac_word=$2
23587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23588 $as_echo_n "checking for $ac_word... " >&6; }
23589 if ${ac_cv_path_gcc_cv_readelf+:} false; then :
23590 $as_echo_n "(cached) " >&6
23591 else
23592 case $gcc_cv_readelf in
23593 [\\/]* | ?:[\\/]*)
23594 ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
23597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23598 for as_dir in $PATH
23600 IFS=$as_save_IFS
23601 test -z "$as_dir" && as_dir=.
23602 for ac_exec_ext in '' $ac_executable_extensions; do
23603 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23604 ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
23605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23606 break 2
23608 done
23609 done
23610 IFS=$as_save_IFS
23613 esac
23615 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
23616 if test -n "$gcc_cv_readelf"; then
23617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
23618 $as_echo "$gcc_cv_readelf" >&6; }
23619 else
23620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23621 $as_echo "no" >&6; }
23628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
23629 $as_echo_n "checking what readelf to use... " >&6; }
23630 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
23631 # Single tree build which includes binutils.
23632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
23633 $as_echo "newly built readelf" >&6; }
23634 elif test x$gcc_cv_readelf = x; then
23635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23636 $as_echo "not found" >&6; }
23637 else
23638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
23639 $as_echo "$gcc_cv_readelf" >&6; }
23642 # Figure out what otool we will be using.
23643 if ${gcc_cv_otool+:} false; then :
23645 else
23647 if test -x otool$build_exeext; then
23648 gcc_cv_otool=./otool$build_exeext
23649 elif ( set dummy $OTOOL_FOR_TARGET; test -x $2 ); then
23650 gcc_cv_otool="$OTOOL_FOR_TARGET"
23651 else
23652 # Extract the first word of "$OTOOL_FOR_TARGET", so it can be a program name with args.
23653 set dummy $OTOOL_FOR_TARGET; ac_word=$2
23654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23655 $as_echo_n "checking for $ac_word... " >&6; }
23656 if ${ac_cv_path_gcc_cv_otool+:} false; then :
23657 $as_echo_n "(cached) " >&6
23658 else
23659 case $gcc_cv_otool in
23660 [\\/]* | ?:[\\/]*)
23661 ac_cv_path_gcc_cv_otool="$gcc_cv_otool" # Let the user override the test with a path.
23664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23665 for as_dir in $PATH
23667 IFS=$as_save_IFS
23668 test -z "$as_dir" && as_dir=.
23669 for ac_exec_ext in '' $ac_executable_extensions; do
23670 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23671 ac_cv_path_gcc_cv_otool="$as_dir/$ac_word$ac_exec_ext"
23672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23673 break 2
23675 done
23676 done
23677 IFS=$as_save_IFS
23680 esac
23682 gcc_cv_otool=$ac_cv_path_gcc_cv_otool
23683 if test -n "$gcc_cv_otool"; then
23684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_otool" >&5
23685 $as_echo "$gcc_cv_otool" >&6; }
23686 else
23687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23688 $as_echo "no" >&6; }
23695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what otool to use" >&5
23696 $as_echo_n "checking what otool to use... " >&6; }
23697 if test x$gcc_cv_otool = x; then
23698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23699 $as_echo "not found" >&6; }
23700 else
23701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_otool" >&5
23702 $as_echo "$gcc_cv_otool" >&6; }
23705 # Figure out the dsymutil we will use.
23706 if ${gcc_cv_dsymutil+:} false; then :
23708 else
23710 if test -x "$DEFAULT_DSYMUTIL"; then
23711 gcc_cv_dsymutil="$DEFAULT_DSYMUTIL"
23712 elif test -x dsymutil$build_exeext; then
23713 gcc_cv_dsymutil=./dsymutil$build_exeext
23714 elif ( set dummy $DSYMUTIL_FOR_TARGET; test -x $2 ); then
23715 gcc_cv_dsymutil=$DSYMUTIL_FOR_TARGET
23716 elif ( set dummy $DSYMUTIL; test -x $2 ); then
23717 gcc_cv_dsymutil=$DSYMUTIL
23718 else
23719 # Extract the first word of "$DSYMUTIL_FOR_TARGET", so it can be a program name with args.
23720 set dummy $DSYMUTIL_FOR_TARGET; ac_word=$2
23721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23722 $as_echo_n "checking for $ac_word... " >&6; }
23723 if ${ac_cv_path_gcc_cv_dsymutil+:} false; then :
23724 $as_echo_n "(cached) " >&6
23725 else
23726 case $gcc_cv_dsymutil in
23727 [\\/]* | ?:[\\/]*)
23728 ac_cv_path_gcc_cv_dsymutil="$gcc_cv_dsymutil" # Let the user override the test with a path.
23731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23732 for as_dir in $PATH
23734 IFS=$as_save_IFS
23735 test -z "$as_dir" && as_dir=.
23736 for ac_exec_ext in '' $ac_executable_extensions; do
23737 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23738 ac_cv_path_gcc_cv_dsymutil="$as_dir/$ac_word$ac_exec_ext"
23739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23740 break 2
23742 done
23743 done
23744 IFS=$as_save_IFS
23747 esac
23749 gcc_cv_dsymutil=$ac_cv_path_gcc_cv_dsymutil
23750 if test -n "$gcc_cv_dsymutil"; then
23751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_dsymutil" >&5
23752 $as_echo "$gcc_cv_dsymutil" >&6; }
23753 else
23754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23755 $as_echo "no" >&6; }
23762 ORIGINAL_DSYMUTIL_FOR_TARGET=$gcc_cv_dsymutil
23764 case "$ORIGINAL_DSYMUTIL_FOR_TARGET" in
23765 ./dsymutil | ./dsymutil$build_exeext) ;;
23766 *) ac_config_files="$ac_config_files dsymutil:exec-tool.in"
23768 esac
23770 # Figure out what assembler alignment features are present.
23771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
23772 $as_echo_n "checking assembler flags... " >&6; }
23773 if ${gcc_cv_as_flags+:} false; then :
23774 $as_echo_n "(cached) " >&6
23775 else
23776 case "$target" in
23777 i[34567]86-*-linux*)
23778 gcc_cv_as_flags=--32
23780 x86_64-*-linux-gnux32)
23781 gcc_cv_as_flags=--x32
23783 x86_64-*-linux*)
23784 gcc_cv_as_flags=--64
23786 powerpc*-*-darwin*)
23787 gcc_cv_as_flags="-arch ppc"
23790 gcc_cv_as_flags=" "
23792 esac
23794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
23795 $as_echo "$gcc_cv_as_flags" >&6; }
23797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
23798 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
23799 if ${gcc_cv_as_balign_and_p2align+:} false; then :
23800 $as_echo_n "(cached) " >&6
23801 else
23802 gcc_cv_as_balign_and_p2align=no
23803 if test x$gcc_cv_as != x; then
23804 $as_echo '.balign 4
23805 .p2align 2' > conftest.s
23806 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23807 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23808 (eval $ac_try) 2>&5
23809 ac_status=$?
23810 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23811 test $ac_status = 0; }; }
23812 then
23813 gcc_cv_as_balign_and_p2align=yes
23814 else
23815 echo "configure: failed program was" >&5
23816 cat conftest.s >&5
23818 rm -f conftest.o conftest.s
23821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
23822 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
23823 if test $gcc_cv_as_balign_and_p2align = yes; then
23825 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
23830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
23831 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
23832 if ${gcc_cv_as_max_skip_p2align+:} false; then :
23833 $as_echo_n "(cached) " >&6
23834 else
23835 gcc_cv_as_max_skip_p2align=no
23836 if test x$gcc_cv_as != x; then
23837 $as_echo '.p2align 4,,7' > conftest.s
23838 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23839 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23840 (eval $ac_try) 2>&5
23841 ac_status=$?
23842 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23843 test $ac_status = 0; }; }
23844 then
23845 gcc_cv_as_max_skip_p2align=yes
23846 else
23847 echo "configure: failed program was" >&5
23848 cat conftest.s >&5
23850 rm -f conftest.o conftest.s
23853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
23854 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
23855 if test $gcc_cv_as_max_skip_p2align = yes; then
23857 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
23862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
23863 $as_echo_n "checking assembler for .literal16... " >&6; }
23864 if ${gcc_cv_as_literal16+:} false; then :
23865 $as_echo_n "(cached) " >&6
23866 else
23867 gcc_cv_as_literal16=no
23868 if test x$gcc_cv_as != x; then
23869 $as_echo '.literal16' > conftest.s
23870 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23871 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23872 (eval $ac_try) 2>&5
23873 ac_status=$?
23874 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23875 test $ac_status = 0; }; }
23876 then
23877 gcc_cv_as_literal16=yes
23878 else
23879 echo "configure: failed program was" >&5
23880 cat conftest.s >&5
23882 rm -f conftest.o conftest.s
23885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
23886 $as_echo "$gcc_cv_as_literal16" >&6; }
23887 if test $gcc_cv_as_literal16 = yes; then
23889 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
23894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
23895 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
23896 if ${gcc_cv_as_subsection_m1+:} false; then :
23897 $as_echo_n "(cached) " >&6
23898 else
23899 gcc_cv_as_subsection_m1=no
23900 if test x$gcc_cv_as != x; then
23901 $as_echo 'conftest_label1: .word 0
23902 .subsection -1
23903 conftest_label2: .word 0
23904 .previous' > conftest.s
23905 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23906 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23907 (eval $ac_try) 2>&5
23908 ac_status=$?
23909 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23910 test $ac_status = 0; }; }
23911 then
23912 if test x$gcc_cv_nm != x; then
23913 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
23914 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
23915 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
23916 then :
23917 else gcc_cv_as_subsection_m1=yes
23919 rm -f conftest.nm1 conftest.nm2
23921 else
23922 echo "configure: failed program was" >&5
23923 cat conftest.s >&5
23925 rm -f conftest.o conftest.s
23928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
23929 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
23930 if test $gcc_cv_as_subsection_m1 = yes; then
23932 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
23937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
23938 $as_echo_n "checking assembler for .weak... " >&6; }
23939 if ${gcc_cv_as_weak+:} false; then :
23940 $as_echo_n "(cached) " >&6
23941 else
23942 gcc_cv_as_weak=no
23943 if test x$gcc_cv_as != x; then
23944 $as_echo ' .weak foobar' > conftest.s
23945 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23946 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23947 (eval $ac_try) 2>&5
23948 ac_status=$?
23949 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23950 test $ac_status = 0; }; }
23951 then
23952 gcc_cv_as_weak=yes
23953 else
23954 echo "configure: failed program was" >&5
23955 cat conftest.s >&5
23957 rm -f conftest.o conftest.s
23960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
23961 $as_echo "$gcc_cv_as_weak" >&6; }
23962 if test $gcc_cv_as_weak = yes; then
23964 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
23969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
23970 $as_echo_n "checking assembler for .weakref... " >&6; }
23971 if ${gcc_cv_as_weakref+:} false; then :
23972 $as_echo_n "(cached) " >&6
23973 else
23974 gcc_cv_as_weakref=no
23975 if test x$gcc_cv_as != x; then
23976 $as_echo ' .weakref foobar, barfnot' > conftest.s
23977 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23978 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23979 (eval $ac_try) 2>&5
23980 ac_status=$?
23981 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23982 test $ac_status = 0; }; }
23983 then
23984 gcc_cv_as_weakref=yes
23985 else
23986 echo "configure: failed program was" >&5
23987 cat conftest.s >&5
23989 rm -f conftest.o conftest.s
23992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
23993 $as_echo "$gcc_cv_as_weakref" >&6; }
23994 if test $gcc_cv_as_weakref = yes; then
23996 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
24001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
24002 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
24003 if ${gcc_cv_as_nsubspa_comdat+:} false; then :
24004 $as_echo_n "(cached) " >&6
24005 else
24006 gcc_cv_as_nsubspa_comdat=no
24007 if test x$gcc_cv_as != x; then
24008 $as_echo ' .SPACE $TEXT$
24009 .NSUBSPA $CODE$,COMDAT' > conftest.s
24010 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24011 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24012 (eval $ac_try) 2>&5
24013 ac_status=$?
24014 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24015 test $ac_status = 0; }; }
24016 then
24017 gcc_cv_as_nsubspa_comdat=yes
24018 else
24019 echo "configure: failed program was" >&5
24020 cat conftest.s >&5
24022 rm -f conftest.o conftest.s
24025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
24026 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
24027 if test $gcc_cv_as_nsubspa_comdat = yes; then
24029 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
24034 # .hidden needs to be supported in both the assembler and the linker,
24035 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
24036 # This is irritatingly difficult to feature test for; we have to check the
24037 # date string after the version number. If we've got an in-tree
24038 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
24039 # to be safe.
24040 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
24041 case "${target}" in
24042 *-*-aix*)
24043 conftest_s=' .globl foobar,hidden'
24046 conftest_s=' .hidden foobar
24047 foobar:'
24049 esac
24050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
24051 $as_echo_n "checking assembler for .hidden... " >&6; }
24052 if ${gcc_cv_as_hidden+:} false; then :
24053 $as_echo_n "(cached) " >&6
24054 else
24055 gcc_cv_as_hidden=no
24056 if test x$gcc_cv_as != x; then
24057 $as_echo "$conftest_s" > conftest.s
24058 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24059 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24060 (eval $ac_try) 2>&5
24061 ac_status=$?
24062 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24063 test $ac_status = 0; }; }
24064 then
24065 gcc_cv_as_hidden=yes
24066 else
24067 echo "configure: failed program was" >&5
24068 cat conftest.s >&5
24070 rm -f conftest.o conftest.s
24073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
24074 $as_echo "$gcc_cv_as_hidden" >&6; }
24077 case "${target}" in
24078 *-*-darwin*)
24079 # Darwin as has some visibility support, though with a different syntax.
24080 gcc_cv_as_hidden=yes
24082 esac
24084 # gnu_indirect_function type is an extension proposed at
24085 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
24086 # selection of function implementation
24087 # Check whether --enable-gnu-indirect-function was given.
24088 if test "${enable_gnu_indirect_function+set}" = set; then :
24089 enableval=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
24090 yes | no) ;;
24091 *) as_fn_error $? "'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
24092 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
24093 esac
24094 else
24095 enable_gnu_indirect_function="$default_gnu_indirect_function"
24099 case "${target}" in
24100 riscv*-*-linux*)
24101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker ifunc IRELATIVE support" >&5
24102 $as_echo_n "checking linker ifunc IRELATIVE support... " >&6; }
24103 cat > conftest.s <<EOF
24104 .text
24105 .type foo_resolver, @function
24106 foo_resolver:
24108 .size foo_resolver, .-foo_resolver
24110 .globl foo
24111 .type foo, %gnu_indirect_function
24112 .set foo, foo_resolver
24114 .globl bar
24115 .type bar, @function
24116 bar:
24117 call foo
24119 .size bar, .-bar
24121 if test x$gcc_cv_as != x \
24122 && test x$gcc_cv_ld != x \
24123 && test x$gcc_cv_readelf != x \
24124 && $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
24125 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
24126 && $gcc_cv_readelf --relocs --wide conftest \
24127 | grep R_RISCV_IRELATIVE > /dev/null 2>&1; then
24128 enable_gnu_indirect_function=yes
24130 rm -f conftest conftest.o conftest.s
24131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gnu_indirect_function" >&5
24132 $as_echo "$enable_gnu_indirect_function" >&6; }
24134 esac
24136 gif=`if test x$enable_gnu_indirect_function = xyes; then echo 1; else echo 0; fi`
24138 cat >>confdefs.h <<_ACEOF
24139 #define HAVE_GNU_INDIRECT_FUNCTION $gif
24140 _ACEOF
24144 if test $in_tree_ld != yes ; then
24145 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
24146 if echo "$ld_ver" | grep GNU > /dev/null; then
24147 if test x"$ld_is_gold" = xyes; then
24148 # GNU gold --version looks like this:
24150 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
24152 # We extract the binutils version which is more familiar and specific
24153 # than the gold version.
24154 ld_vers=`echo $ld_ver | sed -n \
24155 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
24156 else
24157 # GNU ld --version looks like this:
24159 # GNU ld (GNU Binutils) 2.21.51.20110225
24160 ld_vers=`echo $ld_ver | sed -n \
24161 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
24163 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'`
24164 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
24165 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
24166 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
24167 else
24168 case "${target}" in
24169 *-*-solaris2*)
24170 # Solaris 2 ld -V output looks like this for a regular version:
24172 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
24174 # but test versions add stuff at the end:
24176 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
24178 # ld and ld.so.1 are guaranteed to be updated in lockstep, so ld version
24179 # numbers can be used in ld.so.1 feature checks even if a different
24180 # linker is configured.
24181 ld_ver=`$gcc_cv_ld -V 2>&1`
24182 if echo "$ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
24183 ld_vers=`echo $ld_ver | sed -n \
24184 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
24185 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
24186 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
24189 esac
24193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
24194 $as_echo_n "checking linker for .hidden support... " >&6; }
24195 if ${gcc_cv_ld_hidden+:} false; then :
24196 $as_echo_n "(cached) " >&6
24197 else
24198 if test $in_tree_ld = yes ; then
24199 gcc_cv_ld_hidden=no
24200 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 \
24201 && test $in_tree_ld_is_elf = yes; then
24202 gcc_cv_ld_hidden=yes
24204 else
24205 gcc_cv_ld_hidden=yes
24206 if test x"$ld_is_gold" = xyes; then
24208 elif test x"$ld_is_mold" = xyes; then
24210 elif echo "$ld_ver" | grep GNU > /dev/null; then
24211 if test 0"$ld_date" -lt 20020404; then
24212 if test -n "$ld_date"; then
24213 # If there was date string, but was earlier than 2002-04-04, fail
24214 gcc_cv_ld_hidden=no
24215 elif test -z "$ld_vers"; then
24216 # If there was no date string nor ld version number, something is wrong
24217 gcc_cv_ld_hidden=no
24218 else
24219 test -z "$ld_vers_patch" && ld_vers_patch=0
24220 if test "$ld_vers_major" -lt 2; then
24221 gcc_cv_ld_hidden=no
24222 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
24223 gcc_cv_ld_hidden="no"
24224 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
24225 gcc_cv_ld_hidden=no
24229 else
24230 case "${target}" in
24231 *-*-aix[789]*)
24232 gcc_cv_ld_hidden=yes
24234 *-*-darwin*)
24235 # Darwin ld has some visibility support.
24236 gcc_cv_ld_hidden=yes
24238 hppa64*-*-hpux* | ia64*-*-hpux*)
24239 gcc_cv_ld_hidden=yes
24241 *-*-solaris2*)
24242 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
24243 # .symbolic was only added in Solaris 9 12/02.
24244 gcc_cv_ld_hidden=yes
24247 gcc_cv_ld_hidden=no
24249 esac
24253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
24254 $as_echo "$gcc_cv_ld_hidden" >&6; }
24255 libgcc_visibility=no
24258 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
24259 libgcc_visibility=yes
24261 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
24265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
24266 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
24267 gcc_cv_ld_ro_rw_mix=unknown
24268 if test $in_tree_ld = yes ; then
24269 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 \
24270 && test $in_tree_ld_is_elf = yes; then
24271 gcc_cv_ld_ro_rw_mix=read-write
24273 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
24274 echo '.section myfoosect, "a"' > conftest1.s
24275 echo '.section myfoosect, "aw"' > conftest2.s
24276 echo '.byte 1' >> conftest2.s
24277 echo '.section myfoosect, "a"' > conftest3.s
24278 echo '.byte 0' >> conftest3.s
24279 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
24280 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
24281 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
24282 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
24283 conftest2.o conftest3.o > /dev/null 2>&1; then
24284 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
24285 | sed -e '/myfoosect/!d' -e N`
24286 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
24287 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
24288 gcc_cv_ld_ro_rw_mix=read-only
24289 else
24290 gcc_cv_ld_ro_rw_mix=read-write
24294 rm -f conftest.* conftest[123].*
24296 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
24298 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
24301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
24302 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
24304 # Check whether --enable-initfini-array was given.
24305 if test "${enable_initfini_array+set}" = set; then :
24306 enableval=$enable_initfini_array;
24307 else
24309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
24310 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
24311 if ${gcc_cv_initfini_array+:} false; then :
24312 $as_echo_n "(cached) " >&6
24313 else
24314 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
24315 case "${target}" in
24316 ia64-*)
24317 if test "$cross_compiling" = yes; then :
24318 gcc_cv_initfini_array=no
24319 else
24320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24321 /* end confdefs.h. */
24323 #ifndef __ELF__
24324 #error Not an ELF OS
24325 #endif
24326 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
24327 if it can be used. */
24328 static int x = -1;
24329 int main (void) { return x; }
24330 int foo (void) { x = 0; }
24331 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
24333 _ACEOF
24334 if ac_fn_cxx_try_run "$LINENO"; then :
24335 gcc_cv_initfini_array=yes
24336 else
24337 gcc_cv_initfini_array=no
24339 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24340 conftest.$ac_objext conftest.beam conftest.$ac_ext
24344 gcc_cv_initfini_array=no
24345 if test $in_tree_ld = yes ; then
24346 if test "$gcc_cv_gld_major_version" -eq 2 \
24347 -a "$gcc_cv_gld_minor_version" -ge 22 \
24348 -o "$gcc_cv_gld_major_version" -gt 2 \
24349 && test $in_tree_ld_is_elf = yes; then
24350 gcc_cv_initfini_array=yes
24352 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
24353 case $target:$gas in
24354 *:yes)
24355 sh_flags='"a"'
24356 sh_type='%progbits'
24358 i?86-*-solaris2*:no | x86_64-*-solaris2*:no)
24359 sh_flags='"a"'
24360 sh_type='@progbits'
24362 sparc*-*-solaris2*:no)
24363 sh_flags='#alloc'
24364 sh_type='#progbits'
24365 sh_quote='"'
24367 esac
24368 case "$target:$gnu_ld" in
24369 *:yes)
24370 cat > conftest.s <<EOF
24371 .section .dtors,$sh_flags,$sh_type
24372 .balign 4
24373 .byte 'A', 'A', 'A', 'A'
24374 .section .ctors,$sh_flags,$sh_type
24375 .balign 4
24376 .byte 'B', 'B', 'B', 'B'
24377 .section .fini_array.65530,$sh_flags,$sh_type
24378 .balign 4
24379 .byte 'C', 'C', 'C', 'C'
24380 .section .init_array.65530,$sh_flags,$sh_type
24381 .balign 4
24382 .byte 'D', 'D', 'D', 'D'
24383 .section .dtors.64528,$sh_flags,$sh_type
24384 .balign 4
24385 .byte 'E', 'E', 'E', 'E'
24386 .section .ctors.64528,$sh_flags,$sh_type
24387 .balign 4
24388 .byte 'F', 'F', 'F', 'F'
24389 .section .fini_array.01005,$sh_flags,$sh_type
24390 .balign 4
24391 .byte 'G', 'G', 'G', 'G'
24392 .section .init_array.01005,$sh_flags,$sh_type
24393 .balign 4
24394 .byte 'H', 'H', 'H', 'H'
24395 .text
24396 .globl _start
24397 _start:
24399 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
24400 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
24401 && $gcc_cv_objdump -s -j .init_array conftest \
24402 | grep HHHHFFFFDDDDBBBB > /dev/null 2>&1 \
24403 && $gcc_cv_objdump -s -j .fini_array conftest \
24404 | grep GGGGEEEECCCCAAAA > /dev/null 2>&1; then
24405 gcc_cv_initfini_array=yes
24408 *-*-solaris2*:no)
24409 # When Solaris ld added constructor priority support, it was
24410 # decided to only handle .init_array.N/.fini_array.N since
24411 # there was no need for backwards compatibility with
24412 # .ctors.N/.dtors.N. .ctors/.dtors remain as separate
24413 # sections with correct execution order resp. to
24414 # .init_array/.fini_array, while gld merges them into
24415 # .init_array/.fini_array.
24416 cat > conftest.s <<EOF
24417 .section $sh_quote.fini_array.65530$sh_quote,$sh_flags,$sh_type
24418 .align 4
24419 .byte 'C', 'C', 'C', 'C', 'C', 'C', 'C', 'C'
24420 .section $sh_quote.init_array.65530$sh_quote,$sh_flags,$sh_type
24421 .align 4
24422 .byte 'D', 'D', 'D', 'D', 'D', 'D', 'D', 'D'
24423 .section $sh_quote.fini_array.01005$sh_quote,$sh_flags,$sh_type
24424 .align 4
24425 .byte 'G', 'G', 'G', 'G', 'G', 'G', 'G', 'G'
24426 .section $sh_quote.init_array.01005$sh_quote,$sh_flags,$sh_type
24427 .align 4
24428 .byte 'H', 'H', 'H', 'H', 'H', 'H', 'H', 'H'
24429 .text
24430 .globl _start
24431 _start:
24433 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
24434 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
24435 && $gcc_cv_objdump -s -j .init_array conftest \
24436 | grep HHHHHHHHDDDDDDDD > /dev/null 2>&1 \
24437 && $gcc_cv_objdump -s -j .fini_array conftest \
24438 | grep GGGGGGGGCCCCCCCC > /dev/null 2>&1; then
24439 gcc_cv_initfini_array=yes
24442 esac
24443 rm -f conftest conftest.*
24445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24446 /* end confdefs.h. */
24448 #ifndef __ELF__
24449 # error Not an ELF OS
24450 #endif
24451 #include <stdlib.h>
24452 #if defined __GLIBC_PREREQ
24453 # if __GLIBC_PREREQ (2, 4)
24454 # else
24455 # error GLIBC 2.4 required
24456 # endif
24457 #else
24458 # if defined __sun__ && defined __svr4__
24459 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
24460 # else
24461 # error The C library not known to support .init_array/.fini_array
24462 # endif
24463 #endif
24465 _ACEOF
24466 if ac_fn_cxx_try_cpp "$LINENO"; then :
24468 else
24469 gcc_cv_initfini_array=no
24471 rm -f conftest.err conftest.i conftest.$ac_ext;;
24472 esac
24473 else
24474 case "${target}" in
24475 aarch64*-linux-gnu*)
24476 # AArch64 postdates glibc support for .init_array/.fini_array,
24477 # so we don't need the preprocessor test above.
24478 gcc_cv_initfini_array=yes
24482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
24483 $as_echo_n "checking cross compile... guessing... " >&6; }
24484 gcc_cv_initfini_array=no
24486 esac
24489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
24490 $as_echo "$gcc_cv_initfini_array" >&6; }
24491 enable_initfini_array=$gcc_cv_initfini_array
24496 cat >>confdefs.h <<_ACEOF
24497 #define HAVE_INITFINI_ARRAY_SUPPORT `if test $enable_initfini_array = yes; then echo 1; else echo 0; fi`
24498 _ACEOF
24502 # Check if we have .[us]leb128, and support symbol arithmetic with it.
24503 # Older versions of GAS and some non-GNU assemblers, have a bugs handling
24504 # these directives, even when they appear to accept them.
24505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
24506 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
24507 if ${gcc_cv_as_leb128+:} false; then :
24508 $as_echo_n "(cached) " >&6
24509 else
24510 gcc_cv_as_leb128=no
24511 if test x$gcc_cv_as != x; then
24512 $as_echo ' .data
24513 .uleb128 L2 - L1
24515 .uleb128 1280
24516 .sleb128 -1010
24518 .uleb128 0x8000000000000000
24519 ' > conftest.s
24520 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24521 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24522 (eval $ac_try) 2>&5
24523 ac_status=$?
24524 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24525 test $ac_status = 0; }; }
24526 then
24528 if test "x$gcc_cv_objdump" != x; then
24529 if $gcc_cv_objdump -s conftest.o 2>/dev/null \
24530 | grep '04800a8e 78808080 80808080 808001' >/dev/null; then
24531 gcc_cv_as_leb128=yes
24533 elif test "x$gcc_cv_otool" != x; then
24534 if $gcc_cv_otool -d conftest.o 2>/dev/null \
24535 | grep '04 80 0a 8e 78 80 80 80 80 80 80 80 80 80 01' >/dev/null; then
24536 gcc_cv_as_leb128=yes
24538 else
24539 # play safe, assume the assembler is broken.
24543 else
24544 echo "configure: failed program was" >&5
24545 cat conftest.s >&5
24547 rm -f conftest.o conftest.s
24550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
24551 $as_echo "$gcc_cv_as_leb128" >&6; }
24552 if test $gcc_cv_as_leb128 = yes; then
24554 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
24557 if test $gcc_cv_as_leb128 != yes; then
24559 $as_echo "#define HAVE_AS_LEB128 0" >>confdefs.h
24563 # Determine if an .eh_frame section is read-only.
24564 gcc_fn_eh_frame_ro () {
24565 $gcc_cv_as $1 -o conftest.o conftest.s > /dev/null 2>&1 && \
24566 $gcc_cv_objdump -h conftest.o 2>/dev/null | \
24567 sed -e '/.eh_frame/!d' -e N | grep READONLY > /dev/null
24570 # Check if we have assembler support for unwind directives.
24571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
24572 $as_echo_n "checking assembler for cfi directives... " >&6; }
24573 if ${gcc_cv_as_cfi_directive+:} false; then :
24574 $as_echo_n "(cached) " >&6
24575 else
24576 gcc_cv_as_cfi_directive=no
24577 if test x$gcc_cv_as != x; then
24578 $as_echo ' .text
24579 .cfi_startproc
24580 .cfi_offset 0, 0
24581 .cfi_same_value 1
24582 .cfi_def_cfa 1, 2
24583 .cfi_escape 1, 2, 3, 4, 5
24584 .cfi_endproc' > conftest.s
24585 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24586 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24587 (eval $ac_try) 2>&5
24588 ac_status=$?
24589 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24590 test $ac_status = 0; }; }
24591 then
24592 case "$target" in
24593 *-*-solaris*)
24594 # If the linker used on Solaris (like Sun ld) isn't capable of merging
24595 # read-only and read-write sections, we need to make sure that the
24596 # assembler used emits read-write .eh_frame sections.
24597 if test "x$gcc_cv_ld_ro_rw_mix" = xread-write; then
24598 gcc_cv_as_cfi_directive=yes
24599 elif test "x$gcc_cv_objdump" = x; then
24600 # No objdump, err on the side of caution.
24601 gcc_cv_as_cfi_directive=no
24602 else
24603 if test x$gas = xyes; then
24604 as_32_opt="--32"
24605 as_64_opt="--64"
24606 else
24607 as_32_opt="-m32"
24608 as_64_opt="-m64"
24610 case "$target" in
24611 sparc*-*-solaris2.*)
24612 # On Solaris/SPARC, .eh_frame sections should always be read-write.
24613 if gcc_fn_eh_frame_ro $as_32_opt \
24614 || gcc_fn_eh_frame_ro $as_64_opt; then
24615 gcc_cv_as_cfi_directive=no
24616 else
24617 gcc_cv_as_cfi_directive=yes
24620 i?86-*-solaris2.* | x86_64-*-solaris2.*)
24621 # On Solaris/x86, make sure that GCC and assembler agree on using
24622 # read-only .eh_frame sections for 64-bit.
24623 if gcc_fn_eh_frame_ro $as_32_opt; then
24624 gcc_cv_as_cfi_directive=no
24625 elif gcc_fn_eh_frame_ro $as_64_opt; then
24626 gcc_cv_as_cfi_directive=yes
24627 else
24628 gcc_cv_as_cfi_directive=no
24631 esac
24634 *-*-*)
24635 gcc_cv_as_cfi_directive=yes
24637 esac
24638 else
24639 echo "configure: failed program was" >&5
24640 cat conftest.s >&5
24642 rm -f conftest.o conftest.s
24645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
24646 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
24649 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then
24650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
24651 $as_echo_n "checking assembler for working cfi advance... " >&6; }
24652 if ${gcc_cv_as_cfi_advance_working+:} false; then :
24653 $as_echo_n "(cached) " >&6
24654 else
24655 gcc_cv_as_cfi_advance_working=no
24656 if test x$gcc_cv_as != x; then
24657 $as_echo ' .text
24658 .cfi_startproc
24659 .cfi_adjust_cfa_offset 64
24660 .skip 75040, 0
24661 .cfi_adjust_cfa_offset 128
24662 .cfi_endproc' > conftest.s
24663 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24664 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24665 (eval $ac_try) 2>&5
24666 ac_status=$?
24667 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24668 test $ac_status = 0; }; }
24669 then
24671 if $gcc_cv_objdump -Wf conftest.o 2>/dev/null \
24672 | grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev/null; then
24673 gcc_cv_as_cfi_advance_working=yes
24676 else
24677 echo "configure: failed program was" >&5
24678 cat conftest.s >&5
24680 rm -f conftest.o conftest.s
24683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
24684 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
24687 else
24688 # no objdump, err on the side of caution
24689 gcc_cv_as_cfi_advance_working=no
24693 cat >>confdefs.h <<_ACEOF
24694 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
24695 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
24696 _ACEOF
24700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
24701 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
24702 if ${gcc_cv_as_cfi_personality_directive+:} false; then :
24703 $as_echo_n "(cached) " >&6
24704 else
24705 gcc_cv_as_cfi_personality_directive=no
24706 if test x$gcc_cv_as != x; then
24707 $as_echo ' .text
24708 .cfi_startproc
24709 .cfi_personality 0, symbol
24710 .cfi_endproc' > conftest.s
24711 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24712 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24713 (eval $ac_try) 2>&5
24714 ac_status=$?
24715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24716 test $ac_status = 0; }; }
24717 then
24718 gcc_cv_as_cfi_personality_directive=yes
24719 else
24720 echo "configure: failed program was" >&5
24721 cat conftest.s >&5
24723 rm -f conftest.o conftest.s
24726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
24727 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
24731 cat >>confdefs.h <<_ACEOF
24732 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes; then echo 1; else echo 0; fi`
24733 _ACEOF
24736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
24737 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
24738 if ${gcc_cv_as_cfi_sections_directive+:} false; then :
24739 $as_echo_n "(cached) " >&6
24740 else
24741 gcc_cv_as_cfi_sections_directive=no
24742 if test x$gcc_cv_as != x; then
24743 $as_echo ' .text
24744 .cfi_sections .debug_frame, .eh_frame
24745 .cfi_startproc
24746 .cfi_endproc' > conftest.s
24747 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24748 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24749 (eval $ac_try) 2>&5
24750 ac_status=$?
24751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24752 test $ac_status = 0; }; }
24753 then
24754 case $target_os in
24755 win32 | pe | cygwin* | mingw32*)
24756 # Need to check that we generated the correct relocation for the
24757 # .debug_frame section. This was fixed for binutils 2.21.
24758 gcc_cv_as_cfi_sections_directive=no
24759 if test "x$gcc_cv_objdump" != x; then
24760 if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
24761 grep secrel > /dev/null; then
24762 gcc_cv_as_cfi_sections_directive=yes
24767 gcc_cv_as_cfi_sections_directive=yes
24769 esac
24770 else
24771 echo "configure: failed program was" >&5
24772 cat conftest.s >&5
24774 rm -f conftest.o conftest.s
24777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
24778 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
24783 cat >>confdefs.h <<_ACEOF
24784 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes; then echo 1; else echo 0; fi`
24785 _ACEOF
24788 # GAS versions up to and including 2.11.0 may mis-optimize
24789 # .eh_frame data.
24790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
24791 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
24792 if ${gcc_cv_as_eh_frame+:} false; then :
24793 $as_echo_n "(cached) " >&6
24794 else
24795 gcc_cv_as_eh_frame=no
24796 if test x$gcc_cv_as != x; then
24797 $as_echo ' .text
24798 .LFB1:
24799 .4byte 0
24800 .L1:
24801 .4byte 0
24802 .LFE1:
24803 .section .eh_frame,"aw",@progbits
24804 __FRAME_BEGIN__:
24805 .4byte .LECIE1-.LSCIE1
24806 .LSCIE1:
24807 .4byte 0x0
24808 .byte 0x1
24809 .ascii "z\0"
24810 .byte 0x1
24811 .byte 0x78
24812 .byte 0x1a
24813 .byte 0x0
24814 .byte 0x4
24815 .4byte 1
24816 .p2align 1
24817 .LECIE1:
24818 .LSFDE1:
24819 .4byte .LEFDE1-.LASFDE1
24820 .LASFDE1:
24821 .4byte .LASFDE1-__FRAME_BEGIN__
24822 .4byte .LFB1
24823 .4byte .LFE1-.LFB1
24824 .byte 0x4
24825 .4byte .LFE1-.LFB1
24826 .byte 0x4
24827 .4byte .L1-.LFB1
24828 .LEFDE1:' > conftest.s
24829 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24830 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24831 (eval $ac_try) 2>&5
24832 ac_status=$?
24833 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24834 test $ac_status = 0; }; }
24835 then
24836 cat > conftest.lit <<EOF
24837 0000 10000000 00000000 017a0001 781a0004 .........z..x...
24838 0010 01000000 12000000 18000000 00000000 ................
24839 0020 08000000 04080000 0044 .........D
24841 cat > conftest.big <<EOF
24842 0000 00000010 00000000 017a0001 781a0004 .........z..x...
24843 0010 00000001 00000012 00000018 00000000 ................
24844 0020 00000008 04000000 0844 .........D
24846 # If the assembler didn't choke, and we can objdump,
24847 # and we got the correct data, then succeed.
24848 # The text in the here-document typically retains its unix-style line
24849 # endings, while the output of objdump will use host line endings.
24850 # Therefore, use diff -b for the comparisons.
24851 if test x$gcc_cv_objdump != x \
24852 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
24853 | tail -3 > conftest.got \
24854 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
24855 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
24856 then
24857 gcc_cv_as_eh_frame=yes
24858 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
24859 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24860 (eval $ac_try) 2>&5
24861 ac_status=$?
24862 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24863 test $ac_status = 0; }; }; then
24864 gcc_cv_as_eh_frame=buggy
24865 else
24866 # Uh oh, what do we do now?
24867 gcc_cv_as_eh_frame=no
24869 else
24870 echo "configure: failed program was" >&5
24871 cat conftest.s >&5
24873 rm -f conftest.o conftest.s
24876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
24877 $as_echo "$gcc_cv_as_eh_frame" >&6; }
24881 if test $gcc_cv_as_eh_frame = buggy; then
24883 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
24887 # Test if the assembler supports the section flag 'e' or #exclude for
24888 # specifying an excluded section.
24889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section exclude flag" >&5
24890 $as_echo_n "checking assembler for section exclude flag... " >&6; }
24891 if ${gcc_cv_as_section_exclude_e+:} false; then :
24892 $as_echo_n "(cached) " >&6
24893 else
24894 gcc_cv_as_section_exclude_e=no
24895 if test x$gcc_cv_as != x; then
24896 $as_echo '.section foo1,"e"
24897 .byte 0,0,0,0' > conftest.s
24898 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24899 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24900 (eval $ac_try) 2>&5
24901 ac_status=$?
24902 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24903 test $ac_status = 0; }; }
24904 then
24905 gcc_cv_as_section_exclude_e=yes
24906 else
24907 echo "configure: failed program was" >&5
24908 cat conftest.s >&5
24910 rm -f conftest.o conftest.s
24913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_exclude_e" >&5
24914 $as_echo "$gcc_cv_as_section_exclude_e" >&6; }
24917 if test $gcc_cv_as_section_exclude_e = no; then
24918 case "${target}" in
24919 # Solaris as uses #exclude instead.
24920 *-*-solaris2*)
24921 case "${target}" in
24922 sparc*-*-solaris2*)
24923 conftest_s='.section "foo1", #exclude'
24925 i?86-*-solaris2* | x86_64-*-solaris2*)
24926 conftest_s='.section foo1, #exclude'
24928 esac
24930 esac
24931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section exclude flag" >&5
24932 $as_echo_n "checking assembler for section exclude flag... " >&6; }
24933 if ${gcc_cv_as_section_exclude_hash+:} false; then :
24934 $as_echo_n "(cached) " >&6
24935 else
24936 gcc_cv_as_section_exclude_hash=no
24937 if test x$gcc_cv_as != x; then
24938 $as_echo "$conftest_s
24939 .byte 0,0,0,0" > conftest.s
24940 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24941 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24942 (eval $ac_try) 2>&5
24943 ac_status=$?
24944 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24945 test $ac_status = 0; }; }
24946 then
24947 gcc_cv_as_section_exclude_hash=yes
24948 else
24949 echo "configure: failed program was" >&5
24950 cat conftest.s >&5
24952 rm -f conftest.o conftest.s
24955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_exclude_hash" >&5
24956 $as_echo "$gcc_cv_as_section_exclude_hash" >&6; }
24961 cat >>confdefs.h <<_ACEOF
24962 #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`
24963 _ACEOF
24966 # Test if the assembler supports the section flag 'R' for specifying
24967 # section with SHF_GNU_RETAIN.
24968 case "${target}" in
24969 # Solaris may use GNU assembler with Solairs ld. Even if GNU
24970 # assembler supports the section flag 'R', it doesn't mean that
24971 # Solairs ld supports it.
24972 *-*-solaris2*)
24973 gcc_cv_as_shf_gnu_retain=no
24976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section 'R' flag" >&5
24977 $as_echo_n "checking assembler for section 'R' flag... " >&6; }
24978 if ${gcc_cv_as_shf_gnu_retain+:} false; then :
24979 $as_echo_n "(cached) " >&6
24980 else
24981 gcc_cv_as_shf_gnu_retain=no
24982 if test x$gcc_cv_as != x; then
24983 $as_echo '.section .foo,"awR",%progbits
24984 .byte 0' > conftest.s
24985 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24986 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24987 (eval $ac_try) 2>&5
24988 ac_status=$?
24989 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24990 test $ac_status = 0; }; }
24991 then
24992 gcc_cv_as_shf_gnu_retain=yes
24993 else
24994 echo "configure: failed program was" >&5
24995 cat conftest.s >&5
24997 rm -f conftest.o conftest.s
25000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_gnu_retain" >&5
25001 $as_echo "$gcc_cv_as_shf_gnu_retain" >&6; }
25005 esac
25007 cat >>confdefs.h <<_ACEOF
25008 #define HAVE_GAS_SHF_GNU_RETAIN `if test $gcc_cv_as_shf_gnu_retain = yes; then echo 1; else echo 0; fi`
25009 _ACEOF
25012 # Test if the assembler supports the section flag 'o' for specifying
25013 # section with link-order.
25014 case "${target}" in
25015 # Solaris may use GNU assembler with Solairs ld. Even if GNU
25016 # assembler supports the section flag 'o', it doesn't mean that
25017 # Solairs ld supports it.
25018 *-*-solaris2*)
25019 gcc_cv_as_section_link_order=no
25022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section 'o' flag" >&5
25023 $as_echo_n "checking assembler for section 'o' flag... " >&6; }
25024 if ${gcc_cv_as_section_link_order+:} false; then :
25025 $as_echo_n "(cached) " >&6
25026 else
25027 gcc_cv_as_section_link_order=no
25028 if test x$gcc_cv_as != x; then
25029 $as_echo '.section .foo,"a"
25030 .byte 0
25031 .section __patchable_function_entries,"awo",%progbits,.foo
25032 .byte 0' > conftest.s
25033 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25034 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25035 (eval $ac_try) 2>&5
25036 ac_status=$?
25037 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25038 test $ac_status = 0; }; }
25039 then
25040 gcc_cv_as_section_link_order=yes
25041 else
25042 echo "configure: failed program was" >&5
25043 cat conftest.s >&5
25045 rm -f conftest.o conftest.s
25048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_link_order" >&5
25049 $as_echo "$gcc_cv_as_section_link_order" >&6; }
25053 esac
25055 cat >>confdefs.h <<_ACEOF
25056 #define HAVE_GAS_SECTION_LINK_ORDER `if test $gcc_cv_as_section_link_order = yes; then echo 1; else echo 0; fi`
25057 _ACEOF
25060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
25061 $as_echo_n "checking assembler for section merging support... " >&6; }
25062 if ${gcc_cv_as_shf_merge+:} false; then :
25063 $as_echo_n "(cached) " >&6
25064 else
25065 gcc_cv_as_shf_merge=no
25066 if test x$gcc_cv_as != x; then
25067 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
25068 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25069 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25070 (eval $ac_try) 2>&5
25071 ac_status=$?
25072 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25073 test $ac_status = 0; }; }
25074 then
25075 gcc_cv_as_shf_merge=yes
25076 else
25077 echo "configure: failed program was" >&5
25078 cat conftest.s >&5
25080 rm -f conftest.o conftest.s
25083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
25084 $as_echo "$gcc_cv_as_shf_merge" >&6; }
25087 if test $gcc_cv_as_shf_merge = no; then
25088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
25089 $as_echo_n "checking assembler for section merging support... " >&6; }
25090 if ${gcc_cv_as_shf_merge+:} false; then :
25091 $as_echo_n "(cached) " >&6
25092 else
25093 gcc_cv_as_shf_merge=no
25094 if test x$gcc_cv_as != x; then
25095 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
25096 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25097 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25098 (eval $ac_try) 2>&5
25099 ac_status=$?
25100 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25101 test $ac_status = 0; }; }
25102 then
25103 gcc_cv_as_shf_merge=yes
25104 else
25105 echo "configure: failed program was" >&5
25106 cat conftest.s >&5
25108 rm -f conftest.o conftest.s
25111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
25112 $as_echo "$gcc_cv_as_shf_merge" >&6; }
25117 cat >>confdefs.h <<_ACEOF
25118 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
25119 _ACEOF
25122 gcc_cv_ld_aligned_shf_merge=yes
25123 case "$target" in
25124 # SHF_MERGE support is broken in Solaris ld up to Solaris 11.3/SPARC for
25125 # alignment > 1.
25126 sparc*-*-solaris2.11*)
25127 if test x"$gnu_ld" = xno \
25128 && test "$ld_vers_major" -lt 2 && test "$ld_vers_minor" -lt 3159; then
25129 gcc_cv_ld_aligned_shf_merge=no
25132 esac
25134 cat >>confdefs.h <<_ACEOF
25135 #define HAVE_LD_ALIGNED_SHF_MERGE `if test $gcc_cv_ld_aligned_shf_merge = yes; then echo 1; else echo 0; fi`
25136 _ACEOF
25139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
25140 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
25141 if ${gcc_cv_as_comdat_group+:} false; then :
25142 $as_echo_n "(cached) " >&6
25143 else
25144 gcc_cv_as_comdat_group=no
25145 if test x$gcc_cv_as != x; then
25146 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
25147 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25148 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25149 (eval $ac_try) 2>&5
25150 ac_status=$?
25151 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25152 test $ac_status = 0; }; }
25153 then
25154 gcc_cv_as_comdat_group=yes
25155 else
25156 echo "configure: failed program was" >&5
25157 cat conftest.s >&5
25159 rm -f conftest.o conftest.s
25162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
25163 $as_echo "$gcc_cv_as_comdat_group" >&6; }
25166 if test $gcc_cv_as_comdat_group = yes; then
25167 gcc_cv_as_comdat_group_percent=no
25168 gcc_cv_as_comdat_group_group=no
25169 else
25170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
25171 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
25172 if ${gcc_cv_as_comdat_group_percent+:} false; then :
25173 $as_echo_n "(cached) " >&6
25174 else
25175 gcc_cv_as_comdat_group_percent=no
25176 if test x$gcc_cv_as != x; then
25177 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
25178 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25179 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25180 (eval $ac_try) 2>&5
25181 ac_status=$?
25182 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25183 test $ac_status = 0; }; }
25184 then
25185 gcc_cv_as_comdat_group_percent=yes
25186 else
25187 echo "configure: failed program was" >&5
25188 cat conftest.s >&5
25190 rm -f conftest.o conftest.s
25193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
25194 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
25197 if test $gcc_cv_as_comdat_group_percent = yes; then
25198 gcc_cv_as_comdat_group_group=no
25199 else
25200 case "${target}" in
25201 # Sun as uses a completely different syntax.
25202 *-*-solaris2*)
25203 case "${target}" in
25204 sparc*-*-solaris2*)
25205 conftest_s='
25206 .group foo,".text%foo",#comdat
25207 .section ".text%foo", #alloc,#execinstr,#progbits
25208 .globl foo
25209 foo:
25212 i?86-*-solaris2* | x86_64-*-solaris2*)
25213 conftest_s='
25214 .group foo,.text%foo,#comdat
25215 .section .text%foo, "ax", @progbits
25216 .globl foo
25217 foo:
25220 esac
25221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
25222 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
25223 if ${gcc_cv_as_comdat_group_group+:} false; then :
25224 $as_echo_n "(cached) " >&6
25225 else
25226 gcc_cv_as_comdat_group_group=no
25227 if test x$gcc_cv_as != x; then
25228 $as_echo "$conftest_s" > conftest.s
25229 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25230 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25231 (eval $ac_try) 2>&5
25232 ac_status=$?
25233 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25234 test $ac_status = 0; }; }
25235 then
25236 gcc_cv_as_comdat_group_group=yes
25237 else
25238 echo "configure: failed program was" >&5
25239 cat conftest.s >&5
25241 rm -f conftest.o conftest.s
25244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
25245 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
25249 esac
25250 if test -z "${gcc_cv_as_comdat_group_group+set}"; then
25251 gcc_cv_as_comdat_group_group=no
25255 if test x"$ld_is_gold" = xyes; then
25256 comdat_group=yes
25257 elif test x"$ld_is_mold" = xyes; then
25258 comdat_group=yes
25259 elif test $in_tree_ld = yes ; then
25260 comdat_group=no
25261 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 \
25262 && test $in_tree_ld_is_elf = yes; then
25263 comdat_group=yes
25265 elif echo "$ld_ver" | grep GNU > /dev/null; then
25266 comdat_group=yes
25267 if test 0"$ld_date" -lt 20050308; then
25268 if test -n "$ld_date"; then
25269 # If there was date string, but was earlier than 2005-03-08, fail
25270 comdat_group=no
25271 elif test "$ld_vers_major" -lt 2; then
25272 comdat_group=no
25273 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
25274 comdat_group=no
25277 else
25278 case "${target}" in
25279 *-*-solaris2.1[1-9]*)
25280 comdat_group=no
25281 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
25282 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
25283 # version 1.688.
25285 # If using Sun as for COMDAT group as emitted by GCC, one needs at
25286 # least ld version 1.2267.
25287 if test "$ld_vers_major" -gt 1; then
25288 comdat_group=yes
25289 elif test "x$gas_flag" = xyes && test "$ld_vers_minor" -ge 1688; then
25290 comdat_group=yes
25291 elif test "$ld_vers_minor" -ge 2267; then
25292 comdat_group=yes
25296 # Assume linkers other than GNU ld don't support COMDAT group.
25297 comdat_group=no
25299 esac
25301 # Allow overriding the automatic COMDAT group tests above.
25302 # Check whether --enable-comdat was given.
25303 if test "${enable_comdat+set}" = set; then :
25304 enableval=$enable_comdat; comdat_group="$enable_comdat"
25307 if test $comdat_group = no; then
25308 gcc_cv_as_comdat_group=no
25309 gcc_cv_as_comdat_group_percent=no
25310 gcc_cv_as_comdat_group_group=no
25313 cat >>confdefs.h <<_ACEOF
25314 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
25315 || test $gcc_cv_as_comdat_group_percent = yes \
25316 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
25317 _ACEOF
25320 # Restrict this test to Solaris/x86: other targets define this statically.
25321 case "${target}" in
25322 i?86-*-solaris2* | x86_64-*-solaris2*)
25323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for hidden thunks in linkonce sections" >&5
25324 $as_echo_n "checking support for hidden thunks in linkonce sections... " >&6; }
25325 if test $in_tree_ld = yes || echo "$ld_ver" | grep GNU > /dev/null; then
25326 hidden_linkonce=yes
25327 else
25328 case "${target}" in
25329 # Full support for hidden thunks in linkonce sections only appeared in
25330 # Solaris 11/OpenSolaris.
25331 *-*-solaris2.1[1-9]*)
25332 hidden_linkonce=yes
25335 hidden_linkonce=no
25337 esac
25339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hidden_linkonce" >&5
25340 $as_echo "$hidden_linkonce" >&6; }
25342 cat >>confdefs.h <<_ACEOF
25343 #define USE_HIDDEN_LINKONCE `if test $hidden_linkonce = yes; then echo 1; else echo 0; fi`
25344 _ACEOF
25347 esac
25349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table is_stmt support" >&5
25350 $as_echo_n "checking assembler for line table is_stmt support... " >&6; }
25351 if ${gcc_cv_as_is_stmt+:} false; then :
25352 $as_echo_n "(cached) " >&6
25353 else
25354 gcc_cv_as_is_stmt=no
25355 if test x$gcc_cv_as != x; then
25356 $as_echo ' .text
25357 .file 1 "conf.c"
25358 .loc 1 1 0 is_stmt 1' > conftest.s
25359 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25360 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25361 (eval $ac_try) 2>&5
25362 ac_status=$?
25363 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25364 test $ac_status = 0; }; }
25365 then
25366 gcc_cv_as_is_stmt=yes
25367 else
25368 echo "configure: failed program was" >&5
25369 cat conftest.s >&5
25371 rm -f conftest.o conftest.s
25374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_is_stmt" >&5
25375 $as_echo "$gcc_cv_as_is_stmt" >&6; }
25376 if test $gcc_cv_as_is_stmt = yes; then
25378 $as_echo "#define HAVE_GAS_LOC_STMT 1" >>confdefs.h
25383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
25384 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
25385 if ${gcc_cv_as_discriminator+:} false; then :
25386 $as_echo_n "(cached) " >&6
25387 else
25388 gcc_cv_as_discriminator=no
25389 if test x$gcc_cv_as != x; then
25390 $as_echo ' .text
25391 .file 1 "conf.c"
25392 .loc 1 1 0 discriminator 1' > conftest.s
25393 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25394 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25395 (eval $ac_try) 2>&5
25396 ac_status=$?
25397 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25398 test $ac_status = 0; }; }
25399 then
25400 gcc_cv_as_discriminator=yes
25401 else
25402 echo "configure: failed program was" >&5
25403 cat conftest.s >&5
25405 rm -f conftest.o conftest.s
25408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
25409 $as_echo "$gcc_cv_as_discriminator" >&6; }
25410 if test $gcc_cv_as_discriminator = yes; then
25412 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
25417 # Catch the newlib flag of the same name so we can gate GCC features on it.
25418 # Check whether --enable-newlib-nano-formatted-io was given.
25419 if test "${enable_newlib_nano_formatted_io+set}" = set; then :
25420 enableval=$enable_newlib_nano_formatted_io; case "${enableval}" in
25421 yes|no)
25424 as_fn_error $? "unknown newlib-nano-formatted-io setting $enableval" "$LINENO" 5
25426 esac
25430 # Thread-local storage - the check is heavily parameterized.
25431 conftest_s=
25432 tls_as_opt=
25433 case "$target" in
25434 alpha*-*-*)
25435 conftest_s='
25436 .section ".tdata","awT",@progbits
25437 foo: .long 25
25438 .text
25439 ldq $27,__tls_get_addr($29) !literal!1
25440 lda $16,foo($29) !tlsgd!1
25441 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
25442 ldq $27,__tls_get_addr($29) !literal!2
25443 lda $16,foo($29) !tlsldm!2
25444 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
25445 ldq $1,foo($29) !gotdtprel
25446 ldah $2,foo($29) !dtprelhi
25447 lda $3,foo($2) !dtprello
25448 lda $4,foo($29) !dtprel
25449 ldq $1,foo($29) !gottprel
25450 ldah $2,foo($29) !tprelhi
25451 lda $3,foo($2) !tprello
25452 lda $4,foo($29) !tprel'
25453 tls_as_opt=--fatal-warnings
25455 arc*-*-*)
25456 conftest_s='
25457 add_s r0,r0, @foo@tpoff'
25459 cris-*-*|crisv32-*-*)
25460 conftest_s='
25461 .section ".tdata","awT",@progbits
25462 x: .long 25
25463 .text
25464 move.d x:IE,$r10
25465 nop'
25466 tls_as_opt=--fatal-warnings
25468 frv*-*-*)
25469 conftest_s='
25470 .section ".tdata","awT",@progbits
25471 x: .long 25
25472 .text
25473 call #gettlsoff(x)'
25475 hppa*-*-linux*)
25476 conftest_s='
25477 t1: .reg %r20
25478 t2: .reg %r21
25479 gp: .reg %r19
25480 .section ".tdata","awT",@progbits
25481 foo: .long 25
25482 .text
25483 .align 4
25484 addil LT%foo-$tls_gdidx$,gp
25485 ldo RT%foo-$tls_gdidx$(%r1),%arg0
25486 b __tls_get_addr
25488 addil LT%foo-$tls_ldidx$,gp
25489 b __tls_get_addr
25490 ldo RT%foo-$tls_ldidx$(%r1),%arg0
25491 addil LR%foo-$tls_dtpoff$,%ret0
25492 ldo RR%foo-$tls_dtpoff$(%r1),%t1
25493 mfctl %cr27,%t1
25494 addil LT%foo-$tls_ieoff$,gp
25495 ldw RT%foo-$tls_ieoff$(%r1),%t2
25496 add %t1,%t2,%t3
25497 mfctl %cr27,%t1
25498 addil LR%foo-$tls_leoff$,%t1
25499 ldo RR%foo-$tls_leoff$(%r1),%t2'
25500 tls_as_opt=--fatal-warnings
25502 arm*-*-*)
25503 conftest_s='
25504 .section ".tdata","awT",%progbits
25505 foo: .long 25
25506 .text
25507 .word foo(gottpoff)
25508 .word foo(tpoff)
25509 .word foo(tlsgd)
25510 .word foo(tlsldm)
25511 .word foo(tlsldo)'
25513 i[34567]86-*-* | x86_64-*-*)
25514 case "$target" in
25515 i[34567]86-*-solaris2.* | x86_64-*-solaris2.*)
25516 on_solaris=yes
25519 on_solaris=no
25521 esac
25522 if test x$on_solaris = xyes && test x$gas_flag = xno; then
25523 conftest_s='
25524 .section .tdata,"awt",@progbits'
25525 tls_section_flag=t
25527 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
25529 else
25530 conftest_s='
25531 .section ".tdata","awT",@progbits'
25532 tls_section_flag=T
25533 tls_as_opt="--fatal-warnings"
25535 case "$target" in
25536 i[34567]86-*-*)
25537 if test x$on_solaris = xyes; then
25538 case $gas_flag in
25539 yes) tls_as_opt="$tls_as_opt --32" ;;
25540 esac
25542 conftest_s="$conftest_s
25543 foo: .long 25
25544 .text
25545 movl %gs:0, %eax
25546 leal foo@tlsgd(,%ebx,1), %eax
25547 leal foo@tlsldm(%ebx), %eax
25548 leal foo@dtpoff(%eax), %edx
25549 movl foo@gottpoff(%ebx), %eax
25550 subl foo@gottpoff(%ebx), %eax
25551 addl foo@gotntpoff(%ebx), %eax
25552 movl foo@indntpoff, %eax
25553 movl \$foo@tpoff, %eax
25554 subl \$foo@tpoff, %eax
25555 leal foo@ntpoff(%ecx), %eax"
25557 x86_64-*-*)
25558 if test x$on_solaris = xyes; then
25559 case $gas_flag in
25560 yes) tls_as_opt="$tls_as_opt --64" ;;
25561 no) tls_as_opt="$tls_as_opt -xarch=amd64" ;;
25562 esac
25564 conftest_s="$conftest_s
25565 foo: .long 25
25566 .text
25567 movq %fs:0, %rax
25568 leaq foo@tlsgd(%rip), %rdi
25569 leaq foo@tlsld(%rip), %rdi
25570 leaq foo@dtpoff(%rax), %rdx
25571 movq foo@gottpoff(%rip), %rax
25572 movq \$foo@tpoff, %rax"
25574 esac
25576 ia64-*-*)
25577 conftest_s='
25578 .section ".tdata","awT",@progbits
25579 foo: data8 25
25580 .text
25581 addl r16 = @ltoff(@dtpmod(foo#)), gp
25582 addl r17 = @ltoff(@dtprel(foo#)), gp
25583 addl r18 = @ltoff(@tprel(foo#)), gp
25584 addl r19 = @dtprel(foo#), gp
25585 adds r21 = @dtprel(foo#), r13
25586 movl r23 = @dtprel(foo#)
25587 addl r20 = @tprel(foo#), gp
25588 adds r22 = @tprel(foo#), r13
25589 movl r24 = @tprel(foo#)'
25590 tls_as_opt=--fatal-warnings
25592 loongarch*-*-*)
25593 conftest_s='
25594 .section .tdata,"awT",@progbits
25595 x: .word 2
25596 .text
25597 la.tls.gd $a0,x
25598 bl __tls_get_addr'
25599 tls_first_major=0
25600 tls_first_minor=0
25601 tls_as_opt='--fatal-warnings'
25603 microblaze*-*-*)
25604 conftest_s='
25605 .section .tdata,"awT",@progbits
25607 .word 2
25608 .text
25609 addik r5,r20,x@TLSGD
25610 addik r5,r20,x@TLSLDM'
25611 tls_as_opt='--fatal-warnings'
25613 mips*-*-*)
25614 conftest_s='
25615 .section .tdata,"awT",@progbits
25617 .word 2
25618 .text
25619 addiu $4, $28, %tlsgd(x)
25620 addiu $4, $28, %tlsldm(x)
25621 lui $4, %dtprel_hi(x)
25622 addiu $4, $4, %dtprel_lo(x)
25623 lw $4, %gottprel(x)($28)
25624 lui $4, %tprel_hi(x)
25625 addiu $4, $4, %tprel_lo(x)'
25626 tls_as_opt='-32 --fatal-warnings'
25628 m68k-*-*)
25629 conftest_s='
25630 .section .tdata,"awT",@progbits
25632 .word 2
25633 .text
25634 foo:
25635 move.l x@TLSGD(%a5),%a0
25636 move.l x@TLSLDM(%a5),%a0
25637 move.l x@TLSLDO(%a5),%a0
25638 move.l x@TLSIE(%a5),%a0
25639 move.l x@TLSLE(%a5),%a0'
25640 tls_as_opt='--fatal-warnings'
25642 nios2-*-*)
25643 conftest_s='
25644 .section ".tdata","awT",@progbits'
25645 tls_as_opt="--fatal-warnings"
25647 aarch64*-*-*)
25648 conftest_s='
25649 .section ".tdata","awT",%progbits
25650 foo: .long 25
25651 .text
25652 adrp x0, :tlsgd:x
25653 add x0, x0, #:tlsgd_lo12:x
25654 bl __tls_get_addr
25655 nop'
25656 tls_as_opt='--fatal-warnings'
25658 or1k*-*-*)
25659 conftest_s='
25660 .section ".tdata","awT",@progbits
25661 foo: .long 25
25662 .text
25663 l.movhi r3, tpoffha(foo)
25664 l.add r3, r3, r10
25665 l.lwz r4, tpofflo(foo)(r3)'
25666 tls_as_opt=--fatal-warnings
25668 powerpc-ibm-aix*)
25669 conftest_s='
25670 .extern __get_tpointer
25671 .toc
25672 LC..1:
25673 .tc a[TC],a[TL]@le
25674 .csect .text[PR]
25675 .tlstest:
25676 lwz 9,LC..1(2)
25677 bla __get_tpointer
25678 lwzx 3,9,3
25679 .globl a
25680 .csect a[TL],4
25682 .space 4'
25684 powerpc64*-*-*)
25685 conftest_s='
25686 .section ".tdata","awT",@progbits
25687 .align 3
25688 ld0: .space 8
25689 ld1: .space 8
25690 x1: .space 8
25691 x2: .space 8
25692 x3: .space 8
25693 .text
25694 addi 3,2,ld0@got@tlsgd
25695 bl .__tls_get_addr
25697 addi 3,2,ld1@toc
25698 bl .__tls_get_addr
25700 addi 3,2,x1@got@tlsld
25701 bl .__tls_get_addr
25703 addi 9,3,x1@dtprel
25704 bl .__tls_get_addr
25706 addis 9,3,x2@dtprel@ha
25707 addi 9,9,x2@dtprel@l
25708 bl .__tls_get_addr
25710 ld 9,x3@got@dtprel(2)
25711 add 9,9,3
25712 bl .__tls_get_addr
25713 nop'
25714 tls_as_opt="-a64 --fatal-warnings"
25716 powerpc*-*-*)
25717 conftest_s='
25718 .section ".tdata","awT",@progbits
25719 .align 2
25720 ld0: .space 4
25721 ld1: .space 4
25722 x1: .space 4
25723 x2: .space 4
25724 x3: .space 4
25725 .text
25726 addi 3,31,ld0@got@tlsgd
25727 bl __tls_get_addr
25728 addi 3,31,x1@got@tlsld
25729 bl __tls_get_addr
25730 addi 9,3,x1@dtprel
25731 addis 9,3,x2@dtprel@ha
25732 addi 9,9,x2@dtprel@l
25733 lwz 9,x3@got@tprel(31)
25734 add 9,9,x@tls
25735 addi 9,2,x1@tprel
25736 addis 9,2,x2@tprel@ha
25737 addi 9,9,x2@tprel@l'
25738 tls_as_opt="-a32 --fatal-warnings"
25740 riscv*-*-*)
25741 conftest_s='
25742 .section .tdata,"awT",@progbits
25743 x: .word 2
25744 .text
25745 la.tls.gd a0,x
25746 call __tls_get_addr'
25747 tls_as_opt='--fatal-warnings'
25749 s390-*-*)
25750 conftest_s='
25751 .section ".tdata","awT",@progbits
25752 foo: .long 25
25753 .text
25754 .long foo@TLSGD
25755 .long foo@TLSLDM
25756 .long foo@DTPOFF
25757 .long foo@NTPOFF
25758 .long foo@GOTNTPOFF
25759 .long foo@INDNTPOFF
25760 l %r1,foo@GOTNTPOFF(%r12)
25761 l %r1,0(%r1):tls_load:foo
25762 bas %r14,0(%r1,%r13):tls_gdcall:foo
25763 bas %r14,0(%r1,%r13):tls_ldcall:foo'
25764 tls_as_opt="-m31 --fatal-warnings"
25766 s390x-*-*)
25767 conftest_s='
25768 .section ".tdata","awT",@progbits
25769 foo: .long 25
25770 .text
25771 .quad foo@TLSGD
25772 .quad foo@TLSLDM
25773 .quad foo@DTPOFF
25774 .quad foo@NTPOFF
25775 .quad foo@GOTNTPOFF
25776 lg %r1,foo@GOTNTPOFF(%r12)
25777 larl %r1,foo@INDNTPOFF
25778 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
25779 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
25780 tls_as_opt="-m64 -Aesame --fatal-warnings"
25782 sh-*-* | sh[123456789lbe]*-*-*)
25783 conftest_s='
25784 .section ".tdata","awT",@progbits
25785 foo: .long 25
25786 .text
25787 .long foo@TLSGD
25788 .long foo@TLSLDM
25789 .long foo@DTPOFF
25790 .long foo@GOTTPOFF
25791 .long foo@TPOFF'
25792 tls_as_opt=--fatal-warnings
25794 sparc*-*-*)
25795 case "$target" in
25796 sparc*-sun-solaris2.*)
25797 on_solaris=yes
25800 on_solaris=no
25802 esac
25803 if test x$on_solaris = xyes && test x$gas_flag = xno; then
25804 conftest_s='
25805 .section ".tdata",#alloc,#write,#tls'
25806 else
25807 conftest_s='
25808 .section ".tdata","awT",@progbits'
25809 tls_as_opt="-32 --fatal-warnings"
25811 conftest_s="$conftest_s
25812 foo: .long 25
25813 .text
25814 sethi %tgd_hi22(foo), %o0
25815 add %o0, %tgd_lo10(foo), %o1
25816 add %l7, %o1, %o0, %tgd_add(foo)
25817 call __tls_get_addr, %tgd_call(foo)
25818 sethi %tldm_hi22(foo), %l1
25819 add %l1, %tldm_lo10(foo), %l2
25820 add %l7, %l2, %o0, %tldm_add(foo)
25821 call __tls_get_addr, %tldm_call(foo)
25822 sethi %tldo_hix22(foo), %l3
25823 xor %l3, %tldo_lox10(foo), %l4
25824 add %o0, %l4, %l5, %tldo_add(foo)
25825 sethi %tie_hi22(foo), %o3
25826 add %o3, %tie_lo10(foo), %o3
25827 ld [%l7 + %o3], %o2, %tie_ld(foo)
25828 add %g7, %o2, %o4, %tie_add(foo)
25829 sethi %tle_hix22(foo), %l1
25830 xor %l1, %tle_lox10(foo), %o5
25831 ld [%g7 + %o5], %o1"
25833 xtensa*-*-*)
25834 conftest_s='
25835 .section ".tdata","awT",@progbits
25836 foo: .long 25
25837 .text
25838 movi a8, foo@TLSFUNC
25839 movi a10, foo@TLSARG
25840 callx8.tls a8, foo@TLSCALL'
25842 esac
25843 set_have_as_tls=no
25844 if test "x$enable_tls" = xno ; then
25845 : # TLS explicitly disabled.
25846 elif test "x$enable_tls" = xyes ; then
25847 set_have_as_tls=yes # TLS explicitly enabled.
25848 elif test -z "$conftest_s"; then
25849 : # If we don't have a check, assume no support.
25850 else
25851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
25852 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
25853 if ${gcc_cv_as_tls+:} false; then :
25854 $as_echo_n "(cached) " >&6
25855 else
25856 gcc_cv_as_tls=no
25857 if test x$gcc_cv_as != x; then
25858 $as_echo "$conftest_s" > conftest.s
25859 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
25860 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25861 (eval $ac_try) 2>&5
25862 ac_status=$?
25863 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25864 test $ac_status = 0; }; }
25865 then
25866 gcc_cv_as_tls=yes
25867 else
25868 echo "configure: failed program was" >&5
25869 cat conftest.s >&5
25871 rm -f conftest.o conftest.s
25874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
25875 $as_echo "$gcc_cv_as_tls" >&6; }
25876 if test $gcc_cv_as_tls = yes; then
25877 set_have_as_tls=yes
25881 if test $set_have_as_tls = yes ; then
25883 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
25887 # Target-specific assembler checks.
25889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
25890 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
25891 gcc_cv_ld_static_dynamic=no
25892 gcc_cv_ld_static_option='-Bstatic'
25893 gcc_cv_ld_dynamic_option='-Bdynamic'
25894 if test $in_tree_ld = yes ; then
25895 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
25896 gcc_cv_ld_static_dynamic=yes
25898 elif test x$gcc_cv_ld != x; then
25899 # Check if linker supports -Bstatic/-Bdynamic option
25900 if $gcc_cv_ld --help 2>&1 | grep -- -Bstatic > /dev/null \
25901 && $gcc_cv_ld --help 2>&1 | grep -- -Bdynamic > /dev/null; then
25902 gcc_cv_ld_static_dynamic=yes
25903 else
25904 case "$target" in
25905 # AIX ld uses -b flags
25906 *-*-aix4.[23]* | *-*-aix[5-9]*)
25907 gcc_cv_ld_static_dynamic=yes
25908 gcc_cv_ld_static_option="-bstatic"
25909 gcc_cv_ld_dynamic_option="-bdynamic"
25911 # HP-UX ld uses -a flags to select between shared and archive.
25912 *-*-hpux*)
25913 if test x"$gnu_ld" = xno; then
25914 gcc_cv_ld_static_dynamic=yes
25915 gcc_cv_ld_static_option="-aarchive_shared"
25916 gcc_cv_ld_dynamic_option="-adefault"
25919 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
25920 *-*-solaris2*)
25921 gcc_cv_ld_static_dynamic=yes
25923 esac
25926 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
25928 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
25931 cat >>confdefs.h <<_ACEOF
25932 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
25933 _ACEOF
25936 cat >>confdefs.h <<_ACEOF
25937 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
25938 _ACEOF
25941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
25942 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
25944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --version-script option" >&5
25945 $as_echo_n "checking linker --version-script option... " >&6; }
25946 gcc_cv_ld_version_script=no
25947 ld_version_script_option=''
25948 if test $in_tree_ld = yes || test x"$gnu_ld" = xyes; then
25949 gcc_cv_ld_version_script=yes
25950 ld_version_script_option='--version-script'
25951 elif test x$gcc_cv_ld != x; then
25952 case "$target" in
25953 # Solaris 2 ld always supports -M. It also supports a subset of
25954 # --version-script since Solaris 11.4, but requires
25955 # -z gnu-version-script-compat to activate.
25956 *-*-solaris2*)
25957 gcc_cv_ld_version_script=yes
25958 ld_version_script_option='-M'
25960 esac
25962 # Don't AC_DEFINE result, only used in jit/Make-lang.in so far.
25963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_version_script" >&5
25964 $as_echo "$gcc_cv_ld_version_script" >&6; }
25967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker soname option" >&5
25968 $as_echo_n "checking linker soname option... " >&6; }
25969 gcc_cv_ld_soname=no
25970 if test $in_tree_ld = yes || test x"$gnu_ld" = xyes; then
25971 gcc_cv_ld_soname=yes
25972 ld_soname_option='-soname'
25973 elif test x$gcc_cv_ld != x; then
25974 case "$target" in
25975 *-*-darwin*)
25976 gcc_cv_ld_soname=yes
25977 ld_soname_option='-install_name'
25979 # Solaris 2 ld always supports -h. It also supports --soname for GNU
25980 # ld compatiblity since some Solaris 10 update.
25981 *-*-solaris2*)
25982 gcc_cv_ld_soname=yes
25983 ld_soname_option='-h'
25985 esac
25987 # Don't AC_DEFINE result, only used in jit/Make-lang.in so far.
25988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_soname" >&5
25989 $as_echo "$gcc_cv_ld_soname" >&6; }
25992 if test x"$demangler_in_ld" = xyes; then
25993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
25994 $as_echo_n "checking linker --demangle support... " >&6; }
25995 gcc_cv_ld_demangle=no
25996 if test $in_tree_ld = yes; then
25997 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 \
25998 gcc_cv_ld_demangle=yes
26000 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
26001 # Check if the GNU linker supports --demangle option
26002 if $gcc_cv_ld --help 2>&1 | grep no-demangle > /dev/null; then
26003 gcc_cv_ld_demangle=yes
26006 if test x"$gcc_cv_ld_demangle" = xyes; then
26008 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
26011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
26012 $as_echo "$gcc_cv_ld_demangle" >&6; }
26015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
26016 $as_echo_n "checking linker plugin support... " >&6; }
26017 gcc_cv_lto_plugin=0
26018 if test -f liblto_plugin.la; then
26019 save_ld_ver="$ld_ver"
26020 save_ld_vers_major="$ld_vers_major"
26021 save_ld_vers_minor="$ld_vers_minor"
26022 save_ld_is_gold="$ld_is_gold"
26024 ld_is_gold=no
26026 if test $in_tree_ld = yes -a x"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x"$gcc_cv_ld"; then
26027 ld_ver="GNU ld"
26028 # FIXME: ld_is_gold?
26029 ld_vers_major="$gcc_cv_gld_major_version"
26030 ld_vers_minor="$gcc_cv_gld_minor_version"
26031 else
26032 # Determine plugin linker version.
26033 # FIXME: Partial duplicate from above, generalize.
26034 ld_ver=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
26035 if echo "$ld_ver" | grep GNU > /dev/null; then
26036 if echo "$ld_ver" | grep "GNU gold" > /dev/null; then
26037 ld_is_gold=yes
26038 ld_vers=`echo $ld_ver | sed -n \
26039 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
26040 else
26041 ld_vers=`echo $ld_ver | sed -n \
26042 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
26044 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
26045 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
26049 # Determine plugin support.
26050 if echo "$ld_ver" | grep GNU > /dev/null; then
26051 # Require GNU ld or gold 2.21+ for plugin support by default.
26052 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
26053 gcc_cv_lto_plugin=2
26054 elif test "$ld_is_mold" = yes; then
26055 gcc_cv_lto_plugin=2
26056 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
26057 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
26058 gcc_cv_lto_plugin=1
26062 ld_ver="$save_ld_ver"
26063 ld_vers_major="$save_ld_vers_major"
26064 ld_vers_minor="$save_ld_vers_minor"
26065 ld_is_gold="$save_ld_is_gold"
26068 cat >>confdefs.h <<_ACEOF
26069 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
26070 _ACEOF
26072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
26073 $as_echo "$gcc_cv_lto_plugin" >&6; }
26075 # Target OS-specific assembler checks.
26077 case "$target_os" in
26078 darwin*)
26079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mmacosx-version-min option" >&5
26080 $as_echo_n "checking assembler for -mmacosx-version-min option... " >&6; }
26081 if ${gcc_cv_as_mmacosx_version_min+:} false; then :
26082 $as_echo_n "(cached) " >&6
26083 else
26084 gcc_cv_as_mmacosx_version_min=no
26085 if test x$gcc_cv_as != x; then
26086 $as_echo '.text' > conftest.s
26087 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mmacosx-version-min=10.1 -o conftest.o conftest.s >&5'
26088 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26089 (eval $ac_try) 2>&5
26090 ac_status=$?
26091 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26092 test $ac_status = 0; }; }
26093 then
26094 gcc_cv_as_mmacosx_version_min=yes
26095 else
26096 echo "configure: failed program was" >&5
26097 cat conftest.s >&5
26099 rm -f conftest.o conftest.s
26102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mmacosx_version_min" >&5
26103 $as_echo "$gcc_cv_as_mmacosx_version_min" >&6; }
26104 if test $gcc_cv_as_mmacosx_version_min = yes; then
26106 $as_echo "#define HAVE_AS_MMACOSX_VERSION_MIN_OPTION 1" >>confdefs.h
26111 esac
26113 # Target CPU-specific assembler checks.
26115 case "$target" in
26116 aarch64*-*-*)
26117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mabi option" >&5
26118 $as_echo_n "checking assembler for -mabi option... " >&6; }
26119 if ${gcc_cv_as_aarch64_mabi+:} false; then :
26120 $as_echo_n "(cached) " >&6
26121 else
26122 gcc_cv_as_aarch64_mabi=no
26123 if test x$gcc_cv_as != x; then
26124 $as_echo '.text' > conftest.s
26125 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mabi=lp64 -o conftest.o conftest.s >&5'
26126 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26127 (eval $ac_try) 2>&5
26128 ac_status=$?
26129 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26130 test $ac_status = 0; }; }
26131 then
26132 gcc_cv_as_aarch64_mabi=yes
26133 else
26134 echo "configure: failed program was" >&5
26135 cat conftest.s >&5
26137 rm -f conftest.o conftest.s
26140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_mabi" >&5
26141 $as_echo "$gcc_cv_as_aarch64_mabi" >&6; }
26144 if test x$gcc_cv_as_aarch64_mabi = xyes; then
26146 $as_echo "#define HAVE_AS_MABI_OPTION 1" >>confdefs.h
26148 else
26149 if test x$with_abi = xilp32; then
26150 as_fn_error $? "Assembler does not support -mabi=ilp32.\
26151 Upgrade the Assembler." "$LINENO" 5
26153 if test x"$with_multilib_list" = xdefault; then
26154 TM_MULTILIB_CONFIG=lp64
26155 else
26156 aarch64_multilibs=`echo $with_multilib_list | sed -e 's/,/ /g'`
26157 for aarch64_multilib in ${aarch64_multilibs}; do
26158 case ${aarch64_multilib} in
26159 ilp32)
26160 as_fn_error $? "Assembler does not support -mabi=ilp32.\
26161 Upgrade the Assembler." "$LINENO" 5
26165 esac
26166 done
26169 # Check if we have binutils support for relocations types needed by -fpic
26170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -fpic relocs" >&5
26171 $as_echo_n "checking assembler for -fpic relocs... " >&6; }
26172 if ${gcc_cv_as_aarch64_picreloc+:} false; then :
26173 $as_echo_n "(cached) " >&6
26174 else
26175 gcc_cv_as_aarch64_picreloc=no
26176 if test x$gcc_cv_as != x; then
26177 $as_echo '
26178 .text
26179 ldr x0, [x2, #:gotpage_lo15:globalsym]
26180 ' > conftest.s
26181 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26182 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26183 (eval $ac_try) 2>&5
26184 ac_status=$?
26185 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26186 test $ac_status = 0; }; }
26187 then
26188 gcc_cv_as_aarch64_picreloc=yes
26189 else
26190 echo "configure: failed program was" >&5
26191 cat conftest.s >&5
26193 rm -f conftest.o conftest.s
26196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_picreloc" >&5
26197 $as_echo "$gcc_cv_as_aarch64_picreloc" >&6; }
26198 if test $gcc_cv_as_aarch64_picreloc = yes; then
26200 $as_echo "#define HAVE_AS_SMALL_PIC_RELOCS 1" >>confdefs.h
26204 # Enable Branch Target Identification Mechanism and Return Address
26205 # Signing by default.
26206 # Check whether --enable-standard-branch-protection was given.
26207 if test "${enable_standard_branch_protection+set}" = set; then :
26208 enableval=$enable_standard_branch_protection;
26209 case $enableval in
26210 yes)
26211 tm_defines="${tm_defines} TARGET_ENABLE_BTI=1 TARGET_ENABLE_PAC_RET=1"
26216 as_fn_error $? "'$enableval' is an invalid value for --enable-standard-branch-protection.\
26217 Valid choices are 'yes' and 'no'." "$LINENO" 5
26219 esac
26223 # Enable default workaround for AArch64 Cortex-A53 erratum 835769.
26224 # Check whether --enable-fix-cortex-a53-835769 was given.
26225 if test "${enable_fix_cortex_a53_835769+set}" = set; then :
26226 enableval=$enable_fix_cortex_a53_835769;
26227 case $enableval in
26228 yes)
26229 tm_defines="${tm_defines} TARGET_FIX_ERR_A53_835769_DEFAULT=1"
26234 as_fn_error $? "'$enableval' is an invalid value for --enable-fix-cortex-a53-835769.\
26235 Valid choices are 'yes' and 'no'." "$LINENO" 5
26238 esac
26242 # Enable default workaround for AArch64 Cortex-A53 erratum 843419.
26243 # Check whether --enable-fix-cortex-a53-843419 was given.
26244 if test "${enable_fix_cortex_a53_843419+set}" = set; then :
26245 enableval=$enable_fix_cortex_a53_843419;
26246 case $enableval in
26247 yes)
26248 tm_defines="${tm_defines} TARGET_FIX_ERR_A53_843419_DEFAULT=1"
26253 as_fn_error $? "'$enableval' is an invalid value for --enable-fix-cortex-a53-843419.\
26254 Valid choices are 'yes' and 'no'." "$LINENO" 5
26257 esac
26263 # All TARGET_ABI_OSF targets.
26264 alpha*-*-linux* | alpha*-*-*bsd*)
26265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
26266 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
26267 if ${gcc_cv_as_alpha_explicit_relocs+:} false; then :
26268 $as_echo_n "(cached) " >&6
26269 else
26270 gcc_cv_as_alpha_explicit_relocs=no
26271 if test x$gcc_cv_as != x; then
26272 $as_echo ' .set nomacro
26273 .text
26274 extbl $3, $2, $3 !lituse_bytoff!1
26275 ldq $2, a($29) !literal!1
26276 ldq $4, b($29) !literal!2
26277 ldq_u $3, 0($2) !lituse_base!1
26278 ldq $27, f($29) !literal!5
26279 jsr $26, ($27), f !lituse_jsr!5
26280 ldah $29, 0($26) !gpdisp!3
26281 lda $0, c($29) !gprel
26282 ldah $1, d($29) !gprelhigh
26283 lda $1, d($1) !gprellow
26284 lda $29, 0($29) !gpdisp!3' > conftest.s
26285 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26286 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26287 (eval $ac_try) 2>&5
26288 ac_status=$?
26289 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26290 test $ac_status = 0; }; }
26291 then
26292 gcc_cv_as_alpha_explicit_relocs=yes
26293 else
26294 echo "configure: failed program was" >&5
26295 cat conftest.s >&5
26297 rm -f conftest.o conftest.s
26300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
26301 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
26302 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
26304 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
26308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
26309 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
26310 if ${gcc_cv_as_alpha_jsrdirect_relocs+:} false; then :
26311 $as_echo_n "(cached) " >&6
26312 else
26313 gcc_cv_as_alpha_jsrdirect_relocs=no
26314 if test x$gcc_cv_as != x; then
26315 $as_echo ' .set nomacro
26316 .text
26317 ldq $27, a($29) !literal!1
26318 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
26319 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26320 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26321 (eval $ac_try) 2>&5
26322 ac_status=$?
26323 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26324 test $ac_status = 0; }; }
26325 then
26326 gcc_cv_as_alpha_jsrdirect_relocs=yes
26327 else
26328 echo "configure: failed program was" >&5
26329 cat conftest.s >&5
26331 rm -f conftest.o conftest.s
26334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
26335 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
26336 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
26338 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
26344 avr-*-*)
26345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --mlink-relax option" >&5
26346 $as_echo_n "checking assembler for --mlink-relax option... " >&6; }
26347 if ${gcc_cv_as_avr_mlink_relax+:} false; then :
26348 $as_echo_n "(cached) " >&6
26349 else
26350 gcc_cv_as_avr_mlink_relax=no
26351 if test x$gcc_cv_as != x; then
26352 $as_echo '.text' > conftest.s
26353 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --mlink-relax -o conftest.o conftest.s >&5'
26354 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26355 (eval $ac_try) 2>&5
26356 ac_status=$?
26357 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26358 test $ac_status = 0; }; }
26359 then
26360 gcc_cv_as_avr_mlink_relax=yes
26361 else
26362 echo "configure: failed program was" >&5
26363 cat conftest.s >&5
26365 rm -f conftest.o conftest.s
26368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mlink_relax" >&5
26369 $as_echo "$gcc_cv_as_avr_mlink_relax" >&6; }
26370 if test $gcc_cv_as_avr_mlink_relax = yes; then
26372 $as_echo "#define HAVE_AS_AVR_MLINK_RELAX_OPTION 1" >>confdefs.h
26377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mrmw option" >&5
26378 $as_echo_n "checking assembler for -mrmw option... " >&6; }
26379 if ${gcc_cv_as_avr_mrmw+:} false; then :
26380 $as_echo_n "(cached) " >&6
26381 else
26382 gcc_cv_as_avr_mrmw=no
26383 if test x$gcc_cv_as != x; then
26384 $as_echo '.text' > conftest.s
26385 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mrmw -o conftest.o conftest.s >&5'
26386 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26387 (eval $ac_try) 2>&5
26388 ac_status=$?
26389 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26390 test $ac_status = 0; }; }
26391 then
26392 gcc_cv_as_avr_mrmw=yes
26393 else
26394 echo "configure: failed program was" >&5
26395 cat conftest.s >&5
26397 rm -f conftest.o conftest.s
26400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mrmw" >&5
26401 $as_echo "$gcc_cv_as_avr_mrmw" >&6; }
26402 if test $gcc_cv_as_avr_mrmw = yes; then
26404 $as_echo "#define HAVE_AS_AVR_MRMW_OPTION 1" >>confdefs.h
26409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for __gcc_isr pseudo instruction" >&5
26410 $as_echo_n "checking assembler for __gcc_isr pseudo instruction... " >&6; }
26411 if ${gcc_cv_as_avr_mgccisr+:} false; then :
26412 $as_echo_n "(cached) " >&6
26413 else
26414 gcc_cv_as_avr_mgccisr=no
26415 if test x$gcc_cv_as != x; then
26416 $as_echo '.text
26417 __gcc_isr 1
26418 __gcc_isr 2
26419 __gcc_isr 0,r24
26420 ' > conftest.s
26421 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mgcc-isr -o conftest.o conftest.s >&5'
26422 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26423 (eval $ac_try) 2>&5
26424 ac_status=$?
26425 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26426 test $ac_status = 0; }; }
26427 then
26428 gcc_cv_as_avr_mgccisr=yes
26429 else
26430 echo "configure: failed program was" >&5
26431 cat conftest.s >&5
26433 rm -f conftest.o conftest.s
26436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mgccisr" >&5
26437 $as_echo "$gcc_cv_as_avr_mgccisr" >&6; }
26438 if test $gcc_cv_as_avr_mgccisr = yes; then
26440 $as_echo "#define HAVE_AS_AVR_MGCCISR_OPTION 1" >>confdefs.h
26445 # Check how default linker description file implements .rodata for
26446 # avrxmega3 (PR21472). avr-gcc assumes .rodata is *not* loaded to
26447 # RAM so avr-gcc skips __do_copy_data for .rodata objects.
26448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking binutils for avrxmega3 .rodata support" >&5
26449 $as_echo_n "checking binutils for avrxmega3 .rodata support... " >&6; }
26450 cat > conftest.s <<EOF
26451 .section .rodata,"a",@progbits
26452 .global xxvaryy
26453 ;; avr-nm should print "... R xxvaryy", not "... D xxvaryy".
26454 xxvaryy:
26455 .word 1
26457 rm -f conftest.nm
26458 { ac_try='$gcc_cv_as -mmcu=avrxmega3 conftest.s -o conftest.o'
26459 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26460 (eval $ac_try) 2>&5
26461 ac_status=$?
26462 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26463 test $ac_status = 0; }; }
26464 { ac_try='$gcc_cv_ld -mavrxmega3 conftest.o -o conftest.elf'
26465 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26466 (eval $ac_try) 2>&5
26467 ac_status=$?
26468 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26469 test $ac_status = 0; }; }
26470 { ac_try='$gcc_cv_nm conftest.elf > conftest.nm'
26471 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26472 (eval $ac_try) 2>&5
26473 ac_status=$?
26474 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26475 test $ac_status = 0; }; }
26476 if test -s conftest.nm
26477 then
26478 if grep ' R xxvaryy' conftest.nm > /dev/null; then
26479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26480 $as_echo "yes" >&6; }
26482 $as_echo "#define HAVE_LD_AVR_AVRXMEGA3_RODATA_IN_FLASH 1" >>confdefs.h
26484 else
26485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: avrxmega3 .rodata located in RAM" >&5
26486 $as_echo "no: avrxmega3 .rodata located in RAM" >&6; }
26487 echo "$as_me: nm output was" >&5
26488 cat conftest.nm >&5
26489 avr_ld_ver="`$gcc_cv_ld -v | sed -e 's:^.* ::'`"
26490 { $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
26491 $as_echo "$as_me: WARNING: support for avrxmega3 .rodata in flash needs Binutils 2.29 or higher (have $avr_ld_ver)" >&2;}
26493 else
26494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: test failed" >&5
26495 $as_echo "test failed" >&6; }
26496 echo "$as_me: failed program was" >&5
26497 cat conftest.s >&5
26498 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: see \`config.log' for details" >&5
26499 $as_echo "$as_me: WARNING: see \`config.log' for details" >&2;}
26501 rm -f conftest.s conftest.o conftest.elf conftest.nm
26504 cris-*-*)
26505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
26506 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
26507 if ${gcc_cv_as_cris_no_mul_bug+:} false; then :
26508 $as_echo_n "(cached) " >&6
26509 else
26510 gcc_cv_as_cris_no_mul_bug=no
26511 if test x$gcc_cv_as != x; then
26512 $as_echo '.text' > conftest.s
26513 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
26514 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26515 (eval $ac_try) 2>&5
26516 ac_status=$?
26517 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26518 test $ac_status = 0; }; }
26519 then
26520 gcc_cv_as_cris_no_mul_bug=yes
26521 else
26522 echo "configure: failed program was" >&5
26523 cat conftest.s >&5
26525 rm -f conftest.o conftest.s
26528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
26529 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
26530 if test $gcc_cv_as_cris_no_mul_bug = yes; then
26532 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
26538 sparc*-*-*)
26539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
26540 $as_echo_n "checking assembler for -relax option... " >&6; }
26541 if ${gcc_cv_as_sparc_relax+:} false; then :
26542 $as_echo_n "(cached) " >&6
26543 else
26544 gcc_cv_as_sparc_relax=no
26545 if test x$gcc_cv_as != x; then
26546 $as_echo '.text' > conftest.s
26547 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
26548 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26549 (eval $ac_try) 2>&5
26550 ac_status=$?
26551 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26552 test $ac_status = 0; }; }
26553 then
26554 gcc_cv_as_sparc_relax=yes
26555 else
26556 echo "configure: failed program was" >&5
26557 cat conftest.s >&5
26559 rm -f conftest.o conftest.s
26562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
26563 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
26564 if test $gcc_cv_as_sparc_relax = yes; then
26566 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
26571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
26572 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
26573 if ${gcc_cv_as_sparc_gotdata_op+:} false; then :
26574 $as_echo_n "(cached) " >&6
26575 else
26576 gcc_cv_as_sparc_gotdata_op=no
26577 if test x$gcc_cv_as != x; then
26578 $as_echo '.text
26579 .align 4
26580 foo:
26582 bar:
26583 sethi %gdop_hix22(foo), %g1
26584 xor %g1, %gdop_lox10(foo), %g1
26585 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
26586 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
26587 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26588 (eval $ac_try) 2>&5
26589 ac_status=$?
26590 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26591 test $ac_status = 0; }; }
26592 then
26593 if test x$gcc_cv_ld != x \
26594 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
26595 if test x$gcc_cv_objdump != x; then
26596 if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
26597 | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
26598 gcc_cv_as_sparc_gotdata_op=no
26599 else
26600 gcc_cv_as_sparc_gotdata_op=yes
26604 rm -f conftest
26605 else
26606 echo "configure: failed program was" >&5
26607 cat conftest.s >&5
26609 rm -f conftest.o conftest.s
26612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
26613 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
26614 if test $gcc_cv_as_sparc_gotdata_op = yes; then
26616 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
26621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
26622 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
26623 if ${gcc_cv_as_sparc_ua_pcrel+:} false; then :
26624 $as_echo_n "(cached) " >&6
26625 else
26626 gcc_cv_as_sparc_ua_pcrel=no
26627 if test x$gcc_cv_as != x; then
26628 $as_echo '.text
26629 foo:
26631 .data
26632 .align 4
26633 .byte 0
26634 .uaword %r_disp32(foo)' > conftest.s
26635 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
26636 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26637 (eval $ac_try) 2>&5
26638 ac_status=$?
26639 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26640 test $ac_status = 0; }; }
26641 then
26642 if test x$gcc_cv_ld != x \
26643 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
26644 gcc_cv_as_sparc_ua_pcrel=yes
26646 rm -f conftest
26647 else
26648 echo "configure: failed program was" >&5
26649 cat conftest.s >&5
26651 rm -f conftest.o conftest.s
26654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
26655 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
26656 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
26658 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
26661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
26662 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
26663 if ${gcc_cv_as_sparc_ua_pcrel_hidden+:} false; then :
26664 $as_echo_n "(cached) " >&6
26665 else
26666 gcc_cv_as_sparc_ua_pcrel_hidden=no
26667 if test x$gcc_cv_as != x; then
26668 $as_echo '.data
26669 .align 4
26670 .byte 0x31
26671 .uaword %r_disp32(foo)
26672 .byte 0x32, 0x33, 0x34
26673 .global foo
26674 .hidden foo
26675 foo:
26676 .skip 4' > conftest.s
26677 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
26678 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26679 (eval $ac_try) 2>&5
26680 ac_status=$?
26681 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26682 test $ac_status = 0; }; }
26683 then
26684 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
26685 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
26686 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
26687 | grep ' 31000000 07323334' > /dev/null 2>&1; then
26688 if $gcc_cv_objdump -R conftest 2> /dev/null \
26689 | grep 'DISP32' > /dev/null 2>&1; then
26691 else
26692 gcc_cv_as_sparc_ua_pcrel_hidden=yes
26695 rm -f conftest
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_ua_pcrel_hidden" >&5
26704 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
26705 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
26707 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
26713 # unaligned pcrel relocs
26715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
26716 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
26717 if ${gcc_cv_as_sparc_offsetable_lo10+:} false; then :
26718 $as_echo_n "(cached) " >&6
26719 else
26720 gcc_cv_as_sparc_offsetable_lo10=no
26721 if test x$gcc_cv_as != x; then
26722 $as_echo '.text
26723 or %g1, %lo(ab) + 12, %g1
26724 or %g1, %lo(ab + 12), %g1' > conftest.s
26725 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
26726 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26727 (eval $ac_try) 2>&5
26728 ac_status=$?
26729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26730 test $ac_status = 0; }; }
26731 then
26732 if test x$gcc_cv_objdump != x \
26733 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
26734 | grep ' 82106000 82106000' > /dev/null 2>&1; then
26735 gcc_cv_as_sparc_offsetable_lo10=yes
26737 else
26738 echo "configure: failed program was" >&5
26739 cat conftest.s >&5
26741 rm -f conftest.o conftest.s
26744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
26745 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
26746 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
26748 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
26753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
26754 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
26755 if ${gcc_cv_as_sparc_fmaf+:} false; then :
26756 $as_echo_n "(cached) " >&6
26757 else
26758 gcc_cv_as_sparc_fmaf=no
26759 if test x$gcc_cv_as != x; then
26760 $as_echo '.text
26761 .register %g2, #scratch
26762 .register %g3, #scratch
26763 .align 4
26764 fmaddd %f0, %f2, %f4, %f6
26765 addxccc %g1, %g2, %g3
26766 fsrl32 %f2, %f4, %f8
26767 fnaddd %f10, %f12, %f14' > conftest.s
26768 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
26769 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26770 (eval $ac_try) 2>&5
26771 ac_status=$?
26772 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26773 test $ac_status = 0; }; }
26774 then
26775 gcc_cv_as_sparc_fmaf=yes
26776 else
26777 echo "configure: failed program was" >&5
26778 cat conftest.s >&5
26780 rm -f conftest.o conftest.s
26783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
26784 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
26785 if test $gcc_cv_as_sparc_fmaf = yes; then
26787 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
26792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
26793 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
26794 if ${gcc_cv_as_sparc_sparc4+:} false; then :
26795 $as_echo_n "(cached) " >&6
26796 else
26797 gcc_cv_as_sparc_sparc4=no
26798 if test x$gcc_cv_as != x; then
26799 $as_echo '.text
26800 .register %g2, #scratch
26801 .register %g3, #scratch
26802 .align 4
26803 cxbe %g2, %g3, 1f
26804 1: cwbneg %g2, %g3, 1f
26805 1: sha1
26807 aes_kexpand0 %f4, %f6, %f8
26808 des_round %f38, %f40, %f42, %f44
26809 camellia_f %f54, %f56, %f58, %f60
26810 kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
26811 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
26812 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26813 (eval $ac_try) 2>&5
26814 ac_status=$?
26815 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26816 test $ac_status = 0; }; }
26817 then
26818 gcc_cv_as_sparc_sparc4=yes
26819 else
26820 echo "configure: failed program was" >&5
26821 cat conftest.s >&5
26823 rm -f conftest.o conftest.s
26826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
26827 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
26828 if test $gcc_cv_as_sparc_sparc4 = yes; then
26830 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
26835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC5 and VIS 4.0 instructions" >&5
26836 $as_echo_n "checking assembler for SPARC5 and VIS 4.0 instructions... " >&6; }
26837 if ${gcc_cv_as_sparc_sparc5+:} false; then :
26838 $as_echo_n "(cached) " >&6
26839 else
26840 gcc_cv_as_sparc_sparc5=no
26841 if test x$gcc_cv_as != x; then
26842 $as_echo '.text
26843 .register %g2, #scratch
26844 .register %g3, #scratch
26845 .align 4
26846 subxc %g1, %g2, %g3
26847 fpadd8 %f0, %f2, %f4' > conftest.s
26848 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc5 -o conftest.o conftest.s >&5'
26849 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26850 (eval $ac_try) 2>&5
26851 ac_status=$?
26852 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26853 test $ac_status = 0; }; }
26854 then
26855 gcc_cv_as_sparc_sparc5=yes
26856 else
26857 echo "configure: failed program was" >&5
26858 cat conftest.s >&5
26860 rm -f conftest.o conftest.s
26863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc5" >&5
26864 $as_echo "$gcc_cv_as_sparc_sparc5" >&6; }
26865 if test $gcc_cv_as_sparc_sparc5 = yes; then
26867 $as_echo "#define HAVE_AS_SPARC5_VIS4 1" >>confdefs.h
26872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC6 instructions" >&5
26873 $as_echo_n "checking assembler for SPARC6 instructions... " >&6; }
26874 if ${gcc_cv_as_sparc_sparc6+:} false; then :
26875 $as_echo_n "(cached) " >&6
26876 else
26877 gcc_cv_as_sparc_sparc6=no
26878 if test x$gcc_cv_as != x; then
26879 $as_echo '.text
26880 .register %g2, #scratch
26881 .register %g3, #scratch
26882 .align 4
26883 rd %entropy, %g1
26884 fpsll64x %f0, %f2, %f4' > conftest.s
26885 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc6 -o conftest.o conftest.s >&5'
26886 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26887 (eval $ac_try) 2>&5
26888 ac_status=$?
26889 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26890 test $ac_status = 0; }; }
26891 then
26892 gcc_cv_as_sparc_sparc6=yes
26893 else
26894 echo "configure: failed program was" >&5
26895 cat conftest.s >&5
26897 rm -f conftest.o conftest.s
26900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc6" >&5
26901 $as_echo "$gcc_cv_as_sparc_sparc6" >&6; }
26902 if test $gcc_cv_as_sparc_sparc6 = yes; then
26904 $as_echo "#define HAVE_AS_SPARC6 1" >>confdefs.h
26909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for LEON instructions" >&5
26910 $as_echo_n "checking assembler for LEON instructions... " >&6; }
26911 if ${gcc_cv_as_sparc_leon+:} false; then :
26912 $as_echo_n "(cached) " >&6
26913 else
26914 gcc_cv_as_sparc_leon=no
26915 if test x$gcc_cv_as != x; then
26916 $as_echo '.text
26917 .register %g2, #scratch
26918 .register %g3, #scratch
26919 .align 4
26920 smac %g2, %g3, %g1
26921 umac %g2, %g3, %g1
26922 casa [%g2] 0xb, %g3, %g1' > conftest.s
26923 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -Aleon -o conftest.o conftest.s >&5'
26924 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26925 (eval $ac_try) 2>&5
26926 ac_status=$?
26927 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26928 test $ac_status = 0; }; }
26929 then
26930 gcc_cv_as_sparc_leon=yes
26931 else
26932 echo "configure: failed program was" >&5
26933 cat conftest.s >&5
26935 rm -f conftest.o conftest.s
26938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_leon" >&5
26939 $as_echo "$gcc_cv_as_sparc_leon" >&6; }
26940 if test $gcc_cv_as_sparc_leon = yes; then
26942 $as_echo "#define HAVE_AS_LEON 1" >>confdefs.h
26948 i[34567]86-*-* | x86_64-*-*)
26949 case $target_os in
26950 cygwin*)
26951 # Full C++ conformance when using a shared libstdc++-v3 requires some
26952 # support from the Cygwin DLL, which in more recent versions exports
26953 # wrappers to aid in interposing and redirecting operators new, delete,
26954 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
26955 # are configuring for a version of Cygwin that exports the wrappers.
26956 if test x$host = x$target && test x$host_cpu = xi686; then
26957 ac_fn_cxx_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
26958 if test "x$ac_cv_func___wrap__Znaj" = xyes; then :
26959 gcc_ac_cygwin_dll_wrappers=yes
26960 else
26961 gcc_ac_cygwin_dll_wrappers=no
26964 else
26965 # Can't check presence of libc functions during cross-compile, so
26966 # we just have to assume we're building for an up-to-date target.
26967 gcc_ac_cygwin_dll_wrappers=yes
26970 cat >>confdefs.h <<_ACEOF
26971 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
26972 _ACEOF
26974 esac
26975 case $target_os in
26976 cygwin* | pe | mingw32*)
26977 # Recent binutils allows the three-operand form of ".comm" on PE. This
26978 # definition is used unconditionally to initialise the default state of
26979 # the target option variable that governs usage of the feature.
26980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
26981 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
26982 if ${gcc_cv_as_comm_has_align+:} false; then :
26983 $as_echo_n "(cached) " >&6
26984 else
26985 gcc_cv_as_comm_has_align=no
26986 if test x$gcc_cv_as != x; then
26987 $as_echo '.comm foo,1,32' > conftest.s
26988 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26989 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26990 (eval $ac_try) 2>&5
26991 ac_status=$?
26992 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26993 test $ac_status = 0; }; }
26994 then
26995 gcc_cv_as_comm_has_align=yes
26996 else
26997 echo "configure: failed program was" >&5
26998 cat conftest.s >&5
27000 rm -f conftest.o conftest.s
27003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
27004 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
27008 cat >>confdefs.h <<_ACEOF
27009 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
27010 _ACEOF
27012 # Used for DWARF 2 in PE
27013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
27014 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
27015 if ${gcc_cv_as_ix86_pe_secrel32+:} false; then :
27016 $as_echo_n "(cached) " >&6
27017 else
27018 gcc_cv_as_ix86_pe_secrel32=no
27019 if test x$gcc_cv_as != x; then
27020 $as_echo '.text
27021 foo: nop
27022 .data
27023 .secrel32 foo' > conftest.s
27024 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27025 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27026 (eval $ac_try) 2>&5
27027 ac_status=$?
27028 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27029 test $ac_status = 0; }; }
27030 then
27031 if test x$gcc_cv_ld != x \
27032 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
27033 gcc_cv_as_ix86_pe_secrel32=yes
27035 rm -f conftest
27036 else
27037 echo "configure: failed program was" >&5
27038 cat conftest.s >&5
27040 rm -f conftest.o conftest.s
27043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
27044 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
27045 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
27047 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
27051 # Test if the assembler supports the extended form of the .section
27052 # directive that specifies section alignment. LTO support uses this,
27053 # but normally only after installation, so we warn but don't fail the
27054 # configure if LTO is enabled but the assembler does not support it.
27055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
27056 $as_echo_n "checking assembler for .section with alignment... " >&6; }
27057 if ${gcc_cv_as_section_has_align+:} false; then :
27058 $as_echo_n "(cached) " >&6
27059 else
27060 gcc_cv_as_section_has_align=no
27061 if test x$gcc_cv_as != x; then
27062 $as_echo '.section lto_test,"dr0"' > conftest.s
27063 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
27064 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27065 (eval $ac_try) 2>&5
27066 ac_status=$?
27067 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27068 test $ac_status = 0; }; }
27069 then
27070 gcc_cv_as_section_has_align=yes
27071 else
27072 echo "configure: failed program was" >&5
27073 cat conftest.s >&5
27075 rm -f conftest.o conftest.s
27078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
27079 $as_echo "$gcc_cv_as_section_has_align" >&6; }
27082 if test x$gcc_cv_as_section_has_align != xyes; then
27083 case ",$enable_languages," in
27084 *,lto,*)
27085 { $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
27086 $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;}
27088 esac
27091 esac
27092 case $target_os in
27093 darwin2* | darwin19*)
27094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for llvm assembler x86-pad-for-align option" >&5
27095 $as_echo_n "checking assembler for llvm assembler x86-pad-for-align option... " >&6; }
27096 if ${gcc_cv_as_mllvm_x86_pad_for_align+:} false; then :
27097 $as_echo_n "(cached) " >&6
27098 else
27099 gcc_cv_as_mllvm_x86_pad_for_align=no
27100 if test x$gcc_cv_as != x; then
27101 $as_echo '.text' > conftest.s
27102 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mllvm -x86-pad-for-align=false -o conftest.o conftest.s >&5'
27103 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27104 (eval $ac_try) 2>&5
27105 ac_status=$?
27106 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27107 test $ac_status = 0; }; }
27108 then
27109 gcc_cv_as_mllvm_x86_pad_for_align=yes
27110 else
27111 echo "configure: failed program was" >&5
27112 cat conftest.s >&5
27114 rm -f conftest.o conftest.s
27117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mllvm_x86_pad_for_align" >&5
27118 $as_echo "$gcc_cv_as_mllvm_x86_pad_for_align" >&6; }
27119 if test $gcc_cv_as_mllvm_x86_pad_for_align = yes; then
27121 $as_echo "#define HAVE_AS_MLLVM_X86_PAD_FOR_ALIGN 1" >>confdefs.h
27126 esac
27128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -xbrace_comment" >&5
27129 $as_echo_n "checking assembler for -xbrace_comment... " >&6; }
27130 if ${gcc_cv_as_ix86_xbrace_comment+:} false; then :
27131 $as_echo_n "(cached) " >&6
27132 else
27133 gcc_cv_as_ix86_xbrace_comment=no
27134 if test x$gcc_cv_as != x; then
27135 $as_echo '.text' > conftest.s
27136 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xbrace_comment=no -o conftest.o conftest.s >&5'
27137 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27138 (eval $ac_try) 2>&5
27139 ac_status=$?
27140 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27141 test $ac_status = 0; }; }
27142 then
27143 gcc_cv_as_ix86_xbrace_comment=yes
27144 else
27145 echo "configure: failed program was" >&5
27146 cat conftest.s >&5
27148 rm -f conftest.o conftest.s
27151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_xbrace_comment" >&5
27152 $as_echo "$gcc_cv_as_ix86_xbrace_comment" >&6; }
27153 if test $gcc_cv_as_ix86_xbrace_comment = yes; then
27155 $as_echo "#define HAVE_AS_XBRACE_COMMENT_OPTION 1" >>confdefs.h
27160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
27161 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
27162 if ${gcc_cv_as_ix86_filds+:} false; then :
27163 $as_echo_n "(cached) " >&6
27164 else
27165 gcc_cv_as_ix86_filds=no
27166 if test x$gcc_cv_as != x; then
27167 $as_echo 'filds (%ebp); fists (%ebp)' > conftest.s
27168 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27169 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27170 (eval $ac_try) 2>&5
27171 ac_status=$?
27172 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27173 test $ac_status = 0; }; }
27174 then
27175 gcc_cv_as_ix86_filds=yes
27176 else
27177 echo "configure: failed program was" >&5
27178 cat conftest.s >&5
27180 rm -f conftest.o conftest.s
27183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
27184 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
27185 if test $gcc_cv_as_ix86_filds = yes; then
27187 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
27192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
27193 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
27194 if ${gcc_cv_as_ix86_fildq+:} false; then :
27195 $as_echo_n "(cached) " >&6
27196 else
27197 gcc_cv_as_ix86_fildq=no
27198 if test x$gcc_cv_as != x; then
27199 $as_echo 'fildq (%ebp); fistpq (%ebp)' > conftest.s
27200 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27201 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27202 (eval $ac_try) 2>&5
27203 ac_status=$?
27204 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27205 test $ac_status = 0; }; }
27206 then
27207 gcc_cv_as_ix86_fildq=yes
27208 else
27209 echo "configure: failed program was" >&5
27210 cat conftest.s >&5
27212 rm -f conftest.o conftest.s
27215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
27216 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
27217 if test $gcc_cv_as_ix86_fildq = yes; then
27219 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
27224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
27225 $as_echo_n "checking assembler for cmov syntax... " >&6; }
27226 if ${gcc_cv_as_ix86_cmov_sun_syntax+:} false; then :
27227 $as_echo_n "(cached) " >&6
27228 else
27229 gcc_cv_as_ix86_cmov_sun_syntax=no
27230 if test x$gcc_cv_as != x; then
27231 $as_echo 'cmovl.l %edx, %eax' > conftest.s
27232 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27233 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27234 (eval $ac_try) 2>&5
27235 ac_status=$?
27236 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27237 test $ac_status = 0; }; }
27238 then
27239 gcc_cv_as_ix86_cmov_sun_syntax=yes
27240 else
27241 echo "configure: failed program was" >&5
27242 cat conftest.s >&5
27244 rm -f conftest.o conftest.s
27247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
27248 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
27249 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
27251 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
27256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
27257 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
27258 if ${gcc_cv_as_ix86_ffreep+:} false; then :
27259 $as_echo_n "(cached) " >&6
27260 else
27261 gcc_cv_as_ix86_ffreep=no
27262 if test x$gcc_cv_as != x; then
27263 $as_echo 'ffreep %st(1)' > conftest.s
27264 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27265 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27266 (eval $ac_try) 2>&5
27267 ac_status=$?
27268 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27269 test $ac_status = 0; }; }
27270 then
27271 gcc_cv_as_ix86_ffreep=yes
27272 else
27273 echo "configure: failed program was" >&5
27274 cat conftest.s >&5
27276 rm -f conftest.o conftest.s
27279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
27280 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
27281 if test $gcc_cv_as_ix86_ffreep = yes; then
27283 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
27288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
27289 $as_echo_n "checking assembler for .quad directive... " >&6; }
27290 if ${gcc_cv_as_ix86_quad+:} false; then :
27291 $as_echo_n "(cached) " >&6
27292 else
27293 gcc_cv_as_ix86_quad=no
27294 if test x$gcc_cv_as != x; then
27295 $as_echo '.quad 0' > conftest.s
27296 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27297 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27298 (eval $ac_try) 2>&5
27299 ac_status=$?
27300 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27301 test $ac_status = 0; }; }
27302 then
27303 gcc_cv_as_ix86_quad=yes
27304 else
27305 echo "configure: failed program was" >&5
27306 cat conftest.s >&5
27308 rm -f conftest.o conftest.s
27311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
27312 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
27313 if test $gcc_cv_as_ix86_quad = yes; then
27315 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
27320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
27321 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
27322 if ${gcc_cv_as_ix86_sahf+:} false; then :
27323 $as_echo_n "(cached) " >&6
27324 else
27325 gcc_cv_as_ix86_sahf=no
27326 if test x$gcc_cv_as != x; then
27327 $as_echo '.code64
27328 sahf' > conftest.s
27329 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27330 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27331 (eval $ac_try) 2>&5
27332 ac_status=$?
27333 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27334 test $ac_status = 0; }; }
27335 then
27336 gcc_cv_as_ix86_sahf=yes
27337 else
27338 echo "configure: failed program was" >&5
27339 cat conftest.s >&5
27341 rm -f conftest.o conftest.s
27344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
27345 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
27346 if test $gcc_cv_as_ix86_sahf = yes; then
27348 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
27353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for interunit movq mnemonic" >&5
27354 $as_echo_n "checking assembler for interunit movq mnemonic... " >&6; }
27355 if ${gcc_cv_as_ix86_interunit_movq+:} false; then :
27356 $as_echo_n "(cached) " >&6
27357 else
27358 gcc_cv_as_ix86_interunit_movq=no
27359 if test x$gcc_cv_as != x; then
27360 $as_echo '.code64
27361 movq %mm0, %rax
27362 movq %rax, %xmm0' > conftest.s
27363 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27364 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27365 (eval $ac_try) 2>&5
27366 ac_status=$?
27367 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27368 test $ac_status = 0; }; }
27369 then
27370 gcc_cv_as_ix86_interunit_movq=yes
27371 else
27372 echo "configure: failed program was" >&5
27373 cat conftest.s >&5
27375 rm -f conftest.o conftest.s
27378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_interunit_movq" >&5
27379 $as_echo "$gcc_cv_as_ix86_interunit_movq" >&6; }
27383 cat >>confdefs.h <<_ACEOF
27384 #define HAVE_AS_IX86_INTERUNIT_MOVQ `if test $gcc_cv_as_ix86_interunit_movq = yes; then echo 1; else echo 0; fi`
27385 _ACEOF
27388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
27389 $as_echo_n "checking assembler for hle prefixes... " >&6; }
27390 if ${gcc_cv_as_ix86_hle+:} false; then :
27391 $as_echo_n "(cached) " >&6
27392 else
27393 gcc_cv_as_ix86_hle=no
27394 if test x$gcc_cv_as != x; then
27395 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
27396 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27397 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27398 (eval $ac_try) 2>&5
27399 ac_status=$?
27400 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27401 test $ac_status = 0; }; }
27402 then
27403 gcc_cv_as_ix86_hle=yes
27404 else
27405 echo "configure: failed program was" >&5
27406 cat conftest.s >&5
27408 rm -f conftest.o conftest.s
27411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
27412 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
27413 if test $gcc_cv_as_ix86_hle = yes; then
27415 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
27420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
27421 $as_echo_n "checking assembler for swap suffix... " >&6; }
27422 if ${gcc_cv_as_ix86_swap+:} false; then :
27423 $as_echo_n "(cached) " >&6
27424 else
27425 gcc_cv_as_ix86_swap=no
27426 if test x$gcc_cv_as != x; then
27427 $as_echo 'movl.s %esp, %ebp' > conftest.s
27428 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27429 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27430 (eval $ac_try) 2>&5
27431 ac_status=$?
27432 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27433 test $ac_status = 0; }; }
27434 then
27435 gcc_cv_as_ix86_swap=yes
27436 else
27437 echo "configure: failed program was" >&5
27438 cat conftest.s >&5
27440 rm -f conftest.o conftest.s
27443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
27444 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
27445 if test $gcc_cv_as_ix86_swap = yes; then
27447 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
27452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
27453 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
27454 if ${gcc_cv_as_ix86_diff_sect_delta+:} false; then :
27455 $as_echo_n "(cached) " >&6
27456 else
27457 gcc_cv_as_ix86_diff_sect_delta=no
27458 if test x$gcc_cv_as != x; then
27459 $as_echo '.section .rodata
27460 .L1:
27461 .long .L2-.L1
27462 .long .L3-.L1
27463 .text
27464 .L3: nop
27465 .L2: nop' > conftest.s
27466 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27467 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27468 (eval $ac_try) 2>&5
27469 ac_status=$?
27470 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27471 test $ac_status = 0; }; }
27472 then
27473 gcc_cv_as_ix86_diff_sect_delta=yes
27474 else
27475 echo "configure: failed program was" >&5
27476 cat conftest.s >&5
27478 rm -f conftest.o conftest.s
27481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
27482 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
27483 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
27485 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
27490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
27491 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
27492 if ${gcc_cv_as_ix86_rep_lock_prefix+:} false; then :
27493 $as_echo_n "(cached) " >&6
27494 else
27495 gcc_cv_as_ix86_rep_lock_prefix=no
27496 if test x$gcc_cv_as != x; then
27497 $as_echo 'rep movsl
27498 rep ret
27499 rep nop
27500 rep bsf %ecx, %eax
27501 rep bsr %ecx, %eax
27502 lock addl %edi, (%eax,%esi)
27503 lock orl $0, (%esp)' > 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_rep_lock_prefix=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_rep_lock_prefix" >&5
27520 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
27521 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
27523 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
27528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ud2 mnemonic" >&5
27529 $as_echo_n "checking assembler for ud2 mnemonic... " >&6; }
27530 if ${gcc_cv_as_ix86_ud2+:} false; then :
27531 $as_echo_n "(cached) " >&6
27532 else
27533 gcc_cv_as_ix86_ud2=no
27534 if test x$gcc_cv_as != x; then
27535 $as_echo 'ud2' > conftest.s
27536 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27537 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27538 (eval $ac_try) 2>&5
27539 ac_status=$?
27540 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27541 test $ac_status = 0; }; }
27542 then
27543 gcc_cv_as_ix86_ud2=yes
27544 else
27545 echo "configure: failed program was" >&5
27546 cat conftest.s >&5
27548 rm -f conftest.o conftest.s
27551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ud2" >&5
27552 $as_echo "$gcc_cv_as_ix86_ud2" >&6; }
27553 if test $gcc_cv_as_ix86_ud2 = yes; then
27555 $as_echo "#define HAVE_AS_IX86_UD2 1" >>confdefs.h
27560 # Enforce 32-bit output with gas and gld.
27561 if test x$gas = xyes; then
27562 as_ix86_gas_32_opt="--32"
27564 if echo "$ld_ver" | grep GNU > /dev/null; then
27565 if $gcc_cv_ld -V 2>/dev/null | grep elf_i386_sol2 > /dev/null; then
27566 ld_ix86_gld_32_opt="-melf_i386_sol2"
27567 else
27568 ld_ix86_gld_32_opt="-melf_i386"
27572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
27573 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
27574 if ${gcc_cv_as_ix86_tlsgdplt+:} false; then :
27575 $as_echo_n "(cached) " >&6
27576 else
27577 gcc_cv_as_ix86_tlsgdplt=no
27578 if test x$gcc_cv_as != x; then
27579 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
27580 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27581 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27582 (eval $ac_try) 2>&5
27583 ac_status=$?
27584 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27585 test $ac_status = 0; }; }
27586 then
27587 if test x$gcc_cv_ld != x \
27588 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o -G > /dev/null 2>&1; then
27589 gcc_cv_as_ix86_tlsgdplt=yes
27591 rm -f conftest
27592 else
27593 echo "configure: failed program was" >&5
27594 cat conftest.s >&5
27596 rm -f conftest.o conftest.s
27599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
27600 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
27601 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
27603 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
27608 conftest_s='
27609 .section .tdata,"aw'$tls_section_flag'",@progbits
27610 tls_ld:
27611 .section .text,"ax",@progbits
27612 call tls_ld@tlsldmplt'
27614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
27615 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
27616 if ${gcc_cv_as_ix86_tlsldmplt+:} false; then :
27617 $as_echo_n "(cached) " >&6
27618 else
27619 gcc_cv_as_ix86_tlsldmplt=no
27620 if test x$gcc_cv_as != x; then
27621 $as_echo "$conftest_s" > conftest.s
27622 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27623 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27624 (eval $ac_try) 2>&5
27625 ac_status=$?
27626 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27627 test $ac_status = 0; }; }
27628 then
27629 if test x$gcc_cv_ld != x \
27630 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o -G > /dev/null 2>&1; then
27631 gcc_cv_as_ix86_tlsldmplt=yes
27633 rm -f conftest
27634 else
27635 echo "configure: failed program was" >&5
27636 cat conftest.s >&5
27638 rm -f conftest.o conftest.s
27641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
27642 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
27646 cat >>confdefs.h <<_ACEOF
27647 #define HAVE_AS_IX86_TLSLDMPLT `if test $gcc_cv_as_ix86_tlsldmplt = yes; then echo 1; else echo 0; fi`
27648 _ACEOF
27651 conftest_s='
27652 .section .text,"ax",@progbits
27653 .globl _start
27654 .type _start, @function
27655 _start:
27656 leal value@tlsldm(%ebx), %eax
27657 call ___tls_get_addr@plt
27659 .section .tdata,"aw'$tls_section_flag'",@progbits
27660 .type value, @object
27661 value:'
27662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM reloc" >&5
27663 $as_echo_n "checking assembler for R_386_TLS_LDM reloc... " >&6; }
27664 if ${gcc_cv_as_ix86_tlsldm+:} false; then :
27665 $as_echo_n "(cached) " >&6
27666 else
27667 gcc_cv_as_ix86_tlsldm=no
27668 if test x$gcc_cv_as != x; then
27669 $as_echo "$conftest_s" > conftest.s
27670 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27671 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27672 (eval $ac_try) 2>&5
27673 ac_status=$?
27674 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27675 test $ac_status = 0; }; }
27676 then
27677 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
27678 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o $ld_tls_libs -lc > /dev/null 2>&1; then
27679 if $gcc_cv_objdump -d conftest 2>/dev/null | grep nop > /dev/null \
27680 || dis conftest 2>/dev/null | grep nop > /dev/null; then
27681 gcc_cv_as_ix86_tlsldm=yes
27684 rm -f conftest
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_tlsldm" >&5
27693 $as_echo "$gcc_cv_as_ix86_tlsldm" >&6; }
27697 cat >>confdefs.h <<_ACEOF
27698 #define HAVE_AS_IX86_TLSLDM `if test $gcc_cv_as_ix86_tlsldm = yes; then echo 1; else echo 0; fi`
27699 _ACEOF
27702 conftest_s='
27703 .data
27704 bar:
27705 .byte 1
27706 .text
27707 .global _start
27708 _start:
27709 cmpl $0, bar@GOT
27710 jmp *_start@GOT'
27711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_GOT32X reloc" >&5
27712 $as_echo_n "checking assembler for R_386_GOT32X reloc... " >&6; }
27713 if ${gcc_cv_as_ix86_got32x+:} false; then :
27714 $as_echo_n "(cached) " >&6
27715 else
27716 gcc_cv_as_ix86_got32x=no
27717 if test x$gcc_cv_as != x; then
27718 $as_echo "$conftest_s" > conftest.s
27719 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27720 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27721 (eval $ac_try) 2>&5
27722 ac_status=$?
27723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27724 test $ac_status = 0; }; }
27725 then
27726 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
27727 && test x$gcc_cv_readelf != x \
27728 && $gcc_cv_readelf --relocs --wide conftest.o 2>&1 \
27729 | grep R_386_GOT32X > /dev/null 2>&1 \
27730 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o > /dev/null 2>&1; then
27731 if $gcc_cv_objdump -dw conftest 2>&1 \
27732 | grep 0xffffff > /dev/null 2>&1; then
27733 gcc_cv_as_ix86_got32x=no
27734 else
27735 gcc_cv_as_ix86_got32x=yes
27738 rm -f conftest
27739 else
27740 echo "configure: failed program was" >&5
27741 cat conftest.s >&5
27743 rm -f conftest.o conftest.s
27746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_got32x" >&5
27747 $as_echo "$gcc_cv_as_ix86_got32x" >&6; }
27751 cat >>confdefs.h <<_ACEOF
27752 #define HAVE_AS_IX86_GOT32X `if test x"$gcc_cv_as_ix86_got32x" = xyes; then echo 1; else echo 0; fi`
27753 _ACEOF
27756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
27757 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
27758 if ${gcc_cv_as_ix86_gotoff_in_data+:} false; then :
27759 $as_echo_n "(cached) " >&6
27760 else
27761 gcc_cv_as_ix86_gotoff_in_data=no
27762 if test x$gcc_cv_as != x; then
27763 $as_echo ' .text
27764 .L0:
27766 .data
27767 .long .L0@GOTOFF' > conftest.s
27768 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27769 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27770 (eval $ac_try) 2>&5
27771 ac_status=$?
27772 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27773 test $ac_status = 0; }; }
27774 then
27775 gcc_cv_as_ix86_gotoff_in_data=yes
27776 else
27777 echo "configure: failed program was" >&5
27778 cat conftest.s >&5
27780 rm -f conftest.o conftest.s
27783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
27784 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
27788 cat >>confdefs.h <<_ACEOF
27789 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
27790 _ACEOF
27793 conftest_s='
27794 .section .text,"ax",@progbits
27795 .globl _start
27796 .type _start, @function
27797 _start:
27798 leal ld@tlsldm(%ecx), %eax
27799 call *___tls_get_addr@GOT(%ecx)
27800 leal gd@tlsgd(%ecx), %eax
27801 call *___tls_get_addr@GOT(%ecx)
27803 .section .tdata,"aw'$tls_section_flag'",@progbits
27804 .type ld, @object
27806 .byte 0
27807 .globl gd
27808 .type gd, @object
27810 .byte 0'
27811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for calling ___tls_get_addr via GOT" >&5
27812 $as_echo_n "checking assembler for calling ___tls_get_addr via GOT... " >&6; }
27813 if ${gcc_cv_as_ix86_tls_get_addr_via_got+:} false; then :
27814 $as_echo_n "(cached) " >&6
27815 else
27816 gcc_cv_as_ix86_tls_get_addr_via_got=no
27817 if test x$gcc_cv_as != x; then
27818 $as_echo "$conftest_s" > conftest.s
27819 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27820 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27821 (eval $ac_try) 2>&5
27822 ac_status=$?
27823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27824 test $ac_status = 0; }; }
27825 then
27826 if test x$gcc_cv_ld != x \
27827 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o > /dev/null 2>&1; then
27828 gcc_cv_as_ix86_tls_get_addr_via_got=yes
27830 rm -f conftest
27831 else
27832 echo "configure: failed program was" >&5
27833 cat conftest.s >&5
27835 rm -f conftest.o conftest.s
27838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tls_get_addr_via_got" >&5
27839 $as_echo "$gcc_cv_as_ix86_tls_get_addr_via_got" >&6; }
27843 cat >>confdefs.h <<_ACEOF
27844 #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`
27845 _ACEOF
27849 ia64*-*-*)
27850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
27851 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
27852 if ${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+:} false; then :
27853 $as_echo_n "(cached) " >&6
27854 else
27855 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
27856 if test x$gcc_cv_as != x; then
27857 $as_echo ' .text
27858 addl r15 = @ltoffx(x#), gp
27860 ld8.mov r16 = [r15], x#
27861 ' > conftest.s
27862 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27863 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27864 (eval $ac_try) 2>&5
27865 ac_status=$?
27866 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27867 test $ac_status = 0; }; }
27868 then
27869 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
27870 else
27871 echo "configure: failed program was" >&5
27872 cat conftest.s >&5
27874 rm -f conftest.o conftest.s
27877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
27878 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
27879 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
27881 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
27888 powerpc*-*-*)
27890 case $target in
27891 *-*-darwin*)
27892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
27893 $as_echo_n "checking assembler for .machine directive support... " >&6; }
27894 if ${gcc_cv_as_machine_directive+:} false; then :
27895 $as_echo_n "(cached) " >&6
27896 else
27897 gcc_cv_as_machine_directive=no
27898 if test x$gcc_cv_as != x; then
27899 $as_echo ' .machine ppc7400' > conftest.s
27900 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27901 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27902 (eval $ac_try) 2>&5
27903 ac_status=$?
27904 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27905 test $ac_status = 0; }; }
27906 then
27907 gcc_cv_as_machine_directive=yes
27908 else
27909 echo "configure: failed program was" >&5
27910 cat conftest.s >&5
27912 rm -f conftest.o conftest.s
27915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
27916 $as_echo "$gcc_cv_as_machine_directive" >&6; }
27919 if test x$gcc_cv_as_machine_directive != xyes; then
27920 echo "*** This target requires an assembler supporting \".machine\"" >&2
27921 echo you can get it from: https://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
27922 test x$build = x$target && exit 1
27925 esac
27927 case $target in
27928 *-*-aix*) conftest_s=' .machine "pwr5"
27929 .csect .text[PR]
27930 mfcr 3,128';;
27931 *-*-darwin*) conftest_s=' .text
27932 mfcr r3,128';;
27933 *) conftest_s=' .machine power4
27934 .text
27935 mfcr 3,128';;
27936 esac
27938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
27939 $as_echo_n "checking assembler for mfcr field support... " >&6; }
27940 if ${gcc_cv_as_powerpc_mfcrf+:} false; then :
27941 $as_echo_n "(cached) " >&6
27942 else
27943 gcc_cv_as_powerpc_mfcrf=no
27944 if test x$gcc_cv_as != x; then
27945 $as_echo "$conftest_s" > conftest.s
27946 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27947 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27948 (eval $ac_try) 2>&5
27949 ac_status=$?
27950 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27951 test $ac_status = 0; }; }
27952 then
27953 gcc_cv_as_powerpc_mfcrf=yes
27954 else
27955 echo "configure: failed program was" >&5
27956 cat conftest.s >&5
27958 rm -f conftest.o conftest.s
27961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
27962 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
27963 if test $gcc_cv_as_powerpc_mfcrf = yes; then
27965 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
27970 case $target in
27971 *-*-aix*) conftest_s=' .csect .text[PR]
27972 LCF..0:
27973 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
27974 *-*-darwin*)
27975 conftest_s=' .text
27976 LCF0:
27977 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
27978 *) conftest_s=' .text
27979 .LCF0:
27980 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
27981 esac
27983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
27984 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
27985 if ${gcc_cv_as_powerpc_rel16+:} false; then :
27986 $as_echo_n "(cached) " >&6
27987 else
27988 gcc_cv_as_powerpc_rel16=no
27989 if test x$gcc_cv_as != x; then
27990 $as_echo "$conftest_s" > conftest.s
27991 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
27992 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27993 (eval $ac_try) 2>&5
27994 ac_status=$?
27995 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27996 test $ac_status = 0; }; }
27997 then
27998 gcc_cv_as_powerpc_rel16=yes
27999 else
28000 echo "configure: failed program was" >&5
28001 cat conftest.s >&5
28003 rm -f conftest.o conftest.s
28006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
28007 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
28008 if test $gcc_cv_as_powerpc_rel16 = yes; then
28010 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
28015 case $target in
28016 *-*-aix*) conftest_s=' .machine "pwr7"
28017 .csect .text[PR]
28018 lxvd2x 1,2,3';;
28019 *) conftest_s=' .machine power7
28020 .text
28021 lxvd2x 1,2,3';;
28022 esac
28024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
28025 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
28026 if ${gcc_cv_as_powerpc_vsx+:} false; then :
28027 $as_echo_n "(cached) " >&6
28028 else
28029 gcc_cv_as_powerpc_vsx=no
28030 if test x$gcc_cv_as != x; then
28031 $as_echo "$conftest_s" > conftest.s
28032 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
28033 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28034 (eval $ac_try) 2>&5
28035 ac_status=$?
28036 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28037 test $ac_status = 0; }; }
28038 then
28039 gcc_cv_as_powerpc_vsx=yes
28040 else
28041 echo "configure: failed program was" >&5
28042 cat conftest.s >&5
28044 rm -f conftest.o conftest.s
28047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
28048 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
28049 if test $gcc_cv_as_powerpc_vsx = yes; then
28051 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
28056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
28057 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
28058 if ${gcc_cv_as_powerpc_gnu_attribute+:} false; then :
28059 $as_echo_n "(cached) " >&6
28060 else
28061 gcc_cv_as_powerpc_gnu_attribute=no
28062 if test x$gcc_cv_as != x; then
28063 $as_echo '.gnu_attribute 4,1' > conftest.s
28064 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28065 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28066 (eval $ac_try) 2>&5
28067 ac_status=$?
28068 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28069 test $ac_status = 0; }; }
28070 then
28071 gcc_cv_as_powerpc_gnu_attribute=yes
28072 else
28073 echo "configure: failed program was" >&5
28074 cat conftest.s >&5
28076 rm -f conftest.o conftest.s
28079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
28080 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
28081 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
28083 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
28088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for prologue entry point marker support" >&5
28089 $as_echo_n "checking assembler for prologue entry point marker support... " >&6; }
28090 if ${gcc_cv_as_powerpc_entry_markers+:} false; then :
28091 $as_echo_n "(cached) " >&6
28092 else
28093 gcc_cv_as_powerpc_entry_markers=no
28094 if test x$gcc_cv_as != x; then
28095 $as_echo ' .reloc .,R_PPC64_ENTRY; nop' > conftest.s
28096 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a64 --fatal-warnings -o conftest.o conftest.s >&5'
28097 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28098 (eval $ac_try) 2>&5
28099 ac_status=$?
28100 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28101 test $ac_status = 0; }; }
28102 then
28103 gcc_cv_as_powerpc_entry_markers=yes
28104 else
28105 echo "configure: failed program was" >&5
28106 cat conftest.s >&5
28108 rm -f conftest.o conftest.s
28111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_entry_markers" >&5
28112 $as_echo "$gcc_cv_as_powerpc_entry_markers" >&6; }
28113 if test $gcc_cv_as_powerpc_entry_markers = yes; then
28115 $as_echo "#define HAVE_AS_ENTRY_MARKERS 1" >>confdefs.h
28120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for plt sequence marker support" >&5
28121 $as_echo_n "checking assembler for plt sequence marker support... " >&6; }
28122 if ${gcc_cv_as_powerpc_pltseq_markers+:} false; then :
28123 $as_echo_n "(cached) " >&6
28124 else
28125 gcc_cv_as_powerpc_pltseq_markers=no
28126 if test x$gcc_cv_as != x; then
28127 $as_echo ' .reloc .,R_PPC_PLTSEQ; nop' > conftest.s
28128 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 --fatal-warnings -o conftest.o conftest.s >&5'
28129 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28130 (eval $ac_try) 2>&5
28131 ac_status=$?
28132 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28133 test $ac_status = 0; }; }
28134 then
28135 gcc_cv_as_powerpc_pltseq_markers=yes
28136 else
28137 echo "configure: failed program was" >&5
28138 cat conftest.s >&5
28140 rm -f conftest.o conftest.s
28143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_pltseq_markers" >&5
28144 $as_echo "$gcc_cv_as_powerpc_pltseq_markers" >&6; }
28145 if test $gcc_cv_as_powerpc_pltseq_markers = yes; then
28147 $as_echo "#define HAVE_AS_PLTSEQ 1" >>confdefs.h
28152 case $target in
28153 *-*-aix*)
28154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX .ref support" >&5
28155 $as_echo_n "checking assembler for AIX .ref support... " >&6; }
28156 if ${gcc_cv_as_aix_ref+:} false; then :
28157 $as_echo_n "(cached) " >&6
28158 else
28159 gcc_cv_as_aix_ref=no
28160 if test x$gcc_cv_as != x; then
28161 $as_echo ' .csect stuff[rw]
28162 stuff:
28163 .long 1
28164 .extern sym
28165 .ref sym
28166 ' > conftest.s
28167 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28168 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28169 (eval $ac_try) 2>&5
28170 ac_status=$?
28171 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28172 test $ac_status = 0; }; }
28173 then
28174 gcc_cv_as_aix_ref=yes
28175 else
28176 echo "configure: failed program was" >&5
28177 cat conftest.s >&5
28179 rm -f conftest.o conftest.s
28182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
28183 $as_echo "$gcc_cv_as_aix_ref" >&6; }
28184 if test $gcc_cv_as_aix_ref = yes; then
28186 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
28191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX DWARF location lists section support" >&5
28192 $as_echo_n "checking assembler for AIX DWARF location lists section support... " >&6; }
28193 if ${gcc_cv_as_aix_dwloc+:} false; then :
28194 $as_echo_n "(cached) " >&6
28195 else
28196 gcc_cv_as_aix_dwloc=no
28197 if test x$gcc_cv_as != x; then
28198 $as_echo ' .dwsect 0xA0000
28199 Lframe..0:
28200 .vbyte 4,Lframe..0
28201 ' > conftest.s
28202 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28203 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28204 (eval $ac_try) 2>&5
28205 ac_status=$?
28206 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28207 test $ac_status = 0; }; }
28208 then
28209 gcc_cv_as_aix_dwloc=yes
28210 else
28211 echo "configure: failed program was" >&5
28212 cat conftest.s >&5
28214 rm -f conftest.o conftest.s
28217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_dwloc" >&5
28218 $as_echo "$gcc_cv_as_aix_dwloc" >&6; }
28219 if test $gcc_cv_as_aix_dwloc = yes; then
28221 $as_echo "#define HAVE_XCOFF_DWARF_EXTRAS 1" >>confdefs.h
28226 esac
28229 mips*-*-*)
28230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
28231 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
28232 if ${gcc_cv_as_mips_explicit_relocs+:} false; then :
28233 $as_echo_n "(cached) " >&6
28234 else
28235 gcc_cv_as_mips_explicit_relocs=no
28236 if test x$gcc_cv_as != x; then
28237 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
28238 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28239 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28240 (eval $ac_try) 2>&5
28241 ac_status=$?
28242 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28243 test $ac_status = 0; }; }
28244 then
28245 gcc_cv_as_mips_explicit_relocs=yes
28246 else
28247 echo "configure: failed program was" >&5
28248 cat conftest.s >&5
28250 rm -f conftest.o conftest.s
28253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
28254 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
28255 if test $gcc_cv_as_mips_explicit_relocs = yes; then
28256 if test x$target_cpu_default = x
28257 then target_cpu_default=MASK_EXPLICIT_RELOCS
28258 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
28263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
28264 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
28265 if ${gcc_cv_as_mips_no_shared+:} false; then :
28266 $as_echo_n "(cached) " >&6
28267 else
28268 gcc_cv_as_mips_no_shared=no
28269 if test x$gcc_cv_as != x; then
28270 $as_echo 'nop' > conftest.s
28271 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
28272 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28273 (eval $ac_try) 2>&5
28274 ac_status=$?
28275 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28276 test $ac_status = 0; }; }
28277 then
28278 gcc_cv_as_mips_no_shared=yes
28279 else
28280 echo "configure: failed program was" >&5
28281 cat conftest.s >&5
28283 rm -f conftest.o conftest.s
28286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
28287 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
28288 if test $gcc_cv_as_mips_no_shared = yes; then
28290 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
28295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
28296 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
28297 if ${gcc_cv_as_mips_gnu_attribute+:} false; then :
28298 $as_echo_n "(cached) " >&6
28299 else
28300 gcc_cv_as_mips_gnu_attribute=no
28301 if test x$gcc_cv_as != x; then
28302 $as_echo '.gnu_attribute 4,1' > conftest.s
28303 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28304 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28305 (eval $ac_try) 2>&5
28306 ac_status=$?
28307 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28308 test $ac_status = 0; }; }
28309 then
28310 gcc_cv_as_mips_gnu_attribute=yes
28311 else
28312 echo "configure: failed program was" >&5
28313 cat conftest.s >&5
28315 rm -f conftest.o conftest.s
28318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
28319 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
28320 if test $gcc_cv_as_mips_gnu_attribute = yes; then
28322 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
28327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .module support" >&5
28328 $as_echo_n "checking assembler for .module support... " >&6; }
28329 if ${gcc_cv_as_mips_dot_module+:} false; then :
28330 $as_echo_n "(cached) " >&6
28331 else
28332 gcc_cv_as_mips_dot_module=no
28333 if test x$gcc_cv_as != x; then
28334 $as_echo '.module mips2
28335 .module fp=xx' > conftest.s
28336 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -32 -o conftest.o conftest.s >&5'
28337 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28338 (eval $ac_try) 2>&5
28339 ac_status=$?
28340 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28341 test $ac_status = 0; }; }
28342 then
28343 gcc_cv_as_mips_dot_module=yes
28344 else
28345 echo "configure: failed program was" >&5
28346 cat conftest.s >&5
28348 rm -f conftest.o conftest.s
28351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dot_module" >&5
28352 $as_echo "$gcc_cv_as_mips_dot_module" >&6; }
28353 if test $gcc_cv_as_mips_dot_module = yes; then
28355 $as_echo "#define HAVE_AS_DOT_MODULE 1" >>confdefs.h
28359 if test x$gcc_cv_as_mips_dot_module = xno \
28360 && test x$with_fp_32 != x; then
28361 as_fn_error $? "Requesting --with-fp-32= requires assembler support for .module." "$LINENO" 5
28364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .micromips support" >&5
28365 $as_echo_n "checking assembler for .micromips support... " >&6; }
28366 if ${gcc_cv_as_micromips_support+:} false; then :
28367 $as_echo_n "(cached) " >&6
28368 else
28369 gcc_cv_as_micromips_support=no
28370 if test x$gcc_cv_as != x; then
28371 $as_echo '.set micromips' > conftest.s
28372 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
28373 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28374 (eval $ac_try) 2>&5
28375 ac_status=$?
28376 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28377 test $ac_status = 0; }; }
28378 then
28379 gcc_cv_as_micromips_support=yes
28380 else
28381 echo "configure: failed program was" >&5
28382 cat conftest.s >&5
28384 rm -f conftest.o conftest.s
28387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_micromips_support" >&5
28388 $as_echo "$gcc_cv_as_micromips_support" >&6; }
28389 if test $gcc_cv_as_micromips_support = yes; then
28391 $as_echo "#define HAVE_GAS_MICROMIPS 1" >>confdefs.h
28396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
28397 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
28398 if ${gcc_cv_as_mips_dtprelword+:} false; then :
28399 $as_echo_n "(cached) " >&6
28400 else
28401 gcc_cv_as_mips_dtprelword=no
28402 if test x$gcc_cv_as != x; then
28403 $as_echo '.section .tdata,"awT",@progbits
28405 .word 2
28406 .text
28407 .dtprelword x+0x8000' > conftest.s
28408 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28409 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28410 (eval $ac_try) 2>&5
28411 ac_status=$?
28412 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28413 test $ac_status = 0; }; }
28414 then
28415 gcc_cv_as_mips_dtprelword=yes
28416 else
28417 echo "configure: failed program was" >&5
28418 cat conftest.s >&5
28420 rm -f conftest.o conftest.s
28423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
28424 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
28425 if test $gcc_cv_as_mips_dtprelword = yes; then
28427 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
28432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
28433 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
28434 if ${gcc_cv_as_mips_dspr1_mult+:} false; then :
28435 $as_echo_n "(cached) " >&6
28436 else
28437 gcc_cv_as_mips_dspr1_mult=no
28438 if test x$gcc_cv_as != x; then
28439 $as_echo ' .set mips32r2
28440 .set nodspr2
28441 .set dsp
28442 madd $ac3,$4,$5
28443 maddu $ac3,$4,$5
28444 msub $ac3,$4,$5
28445 msubu $ac3,$4,$5
28446 mult $ac3,$4,$5
28447 multu $ac3,$4,$5' > conftest.s
28448 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28449 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28450 (eval $ac_try) 2>&5
28451 ac_status=$?
28452 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28453 test $ac_status = 0; }; }
28454 then
28455 gcc_cv_as_mips_dspr1_mult=yes
28456 else
28457 echo "configure: failed program was" >&5
28458 cat conftest.s >&5
28460 rm -f conftest.o conftest.s
28463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
28464 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
28465 if test $gcc_cv_as_mips_dspr1_mult = yes; then
28467 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
28472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
28473 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
28474 gcc_cv_as_ld_jalr_reloc=no
28475 if test $gcc_cv_as_mips_explicit_relocs = yes; then
28476 if test $in_tree_ld = yes ; then
28477 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 \
28478 && test $in_tree_ld_is_elf = yes; then
28479 gcc_cv_as_ld_jalr_reloc=yes
28481 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
28482 echo ' .ent x' > conftest.s
28483 echo 'x: lw $2,%got_disp(y)($3)' >> conftest.s
28484 echo ' lw $25,%call16(y)($28)' >> conftest.s
28485 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
28486 echo '1: jalr $25' >> conftest.s
28487 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
28488 echo '1: jalr $25' >> conftest.s
28489 echo ' .end x' >> conftest.s
28490 if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
28491 && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
28492 if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
28493 && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
28494 gcc_cv_as_ld_jalr_reloc=yes
28497 rm -f conftest.*
28500 if test $gcc_cv_as_ld_jalr_reloc = yes; then
28501 if test x$target_cpu_default = x; then
28502 target_cpu_default=MASK_RELAX_PIC_CALLS
28503 else
28504 target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
28507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
28508 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
28510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
28511 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
28512 if ${gcc_cv_ld_mips_personality_relaxation+:} false; then :
28513 $as_echo_n "(cached) " >&6
28514 else
28515 gcc_cv_ld_mips_personality_relaxation=no
28516 if test $in_tree_ld = yes ; then
28517 if test "$gcc_cv_gld_major_version" -eq 2 \
28518 -a "$gcc_cv_gld_minor_version" -ge 21 \
28519 -o "$gcc_cv_gld_major_version" -gt 2; then
28520 gcc_cv_ld_mips_personality_relaxation=yes
28522 elif test x$gcc_cv_as != x \
28523 -a x$gcc_cv_ld != x \
28524 -a x$gcc_cv_readelf != x ; then
28525 cat > conftest.s <<EOF
28526 .cfi_startproc
28527 .cfi_personality 0x80,indirect_ptr
28528 .ent test
28529 test:
28531 .end test
28532 .cfi_endproc
28534 .section .data,"aw",@progbits
28535 indirect_ptr:
28536 .dc.a personality
28538 if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
28539 && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
28540 if $gcc_cv_readelf -d conftest 2>&1 \
28541 | grep TEXTREL > /dev/null 2>&1; then
28543 elif $gcc_cv_readelf --relocs conftest 2>&1 \
28544 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
28546 else
28547 gcc_cv_ld_mips_personality_relaxation=yes
28551 rm -f conftest.s conftest.o conftest
28553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
28554 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
28555 if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
28557 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
28561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mnan= support" >&5
28562 $as_echo_n "checking assembler for -mnan= support... " >&6; }
28563 if ${gcc_cv_as_mips_nan+:} false; then :
28564 $as_echo_n "(cached) " >&6
28565 else
28566 gcc_cv_as_mips_nan=no
28567 if test x$gcc_cv_as != x; then
28568 $as_echo '' > conftest.s
28569 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mnan=2008 -o conftest.o conftest.s >&5'
28570 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28571 (eval $ac_try) 2>&5
28572 ac_status=$?
28573 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28574 test $ac_status = 0; }; }
28575 then
28576 gcc_cv_as_mips_nan=yes
28577 else
28578 echo "configure: failed program was" >&5
28579 cat conftest.s >&5
28581 rm -f conftest.o conftest.s
28584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_nan" >&5
28585 $as_echo "$gcc_cv_as_mips_nan" >&6; }
28586 if test $gcc_cv_as_mips_nan = yes; then
28588 $as_echo "#define HAVE_AS_NAN 1" >>confdefs.h
28592 if test x$gcc_cv_as_mips_nan = xno \
28593 && test x$with_nan != x; then
28594 as_fn_error $? "Requesting --with-nan= requires assembler support for -mnan=" "$LINENO" 5
28597 msp430-*-*)
28598 # Earlier GAS versions generically support .gnu_attribute, but the
28599 # msp430 assembler will not do anything with it.
28600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
28601 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
28602 if ${gcc_cv_as_msp430_gnu_attribute+:} false; then :
28603 $as_echo_n "(cached) " >&6
28604 else
28605 gcc_cv_as_msp430_gnu_attribute=no
28606 if test x$gcc_cv_as != x; then
28607 $as_echo '.gnu_attribute 4,1' > conftest.s
28608 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28609 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28610 (eval $ac_try) 2>&5
28611 ac_status=$?
28612 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28613 test $ac_status = 0; }; }
28614 then
28615 gcc_cv_as_msp430_gnu_attribute=yes
28616 else
28617 echo "configure: failed program was" >&5
28618 cat conftest.s >&5
28620 rm -f conftest.o conftest.s
28623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_msp430_gnu_attribute" >&5
28624 $as_echo "$gcc_cv_as_msp430_gnu_attribute" >&6; }
28625 if test $gcc_cv_as_msp430_gnu_attribute = yes; then
28627 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
28631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .mspabi_attribute support" >&5
28632 $as_echo_n "checking assembler for .mspabi_attribute support... " >&6; }
28633 if ${gcc_cv_as_msp430_mspabi_attribute+:} false; then :
28634 $as_echo_n "(cached) " >&6
28635 else
28636 gcc_cv_as_msp430_mspabi_attribute=no
28637 if test x$gcc_cv_as != x; then
28638 $as_echo '.mspabi_attribute 4,2' > conftest.s
28639 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28640 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28641 (eval $ac_try) 2>&5
28642 ac_status=$?
28643 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28644 test $ac_status = 0; }; }
28645 then
28646 gcc_cv_as_msp430_mspabi_attribute=yes
28647 else
28648 echo "configure: failed program was" >&5
28649 cat conftest.s >&5
28651 rm -f conftest.o conftest.s
28654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_msp430_mspabi_attribute" >&5
28655 $as_echo "$gcc_cv_as_msp430_mspabi_attribute" >&6; }
28656 if test $gcc_cv_as_msp430_mspabi_attribute = yes; then
28658 $as_echo "#define HAVE_AS_MSPABI_ATTRIBUTE 1" >>confdefs.h
28662 if test x$enable_newlib_nano_formatted_io = xyes; then
28664 $as_echo "#define HAVE_NEWLIB_NANO_FORMATTED_IO 1" >>confdefs.h
28668 nios2-*-*)
28669 # Versions 2.33 and earlier lacked support for the %gotoff relocation
28670 # syntax that is documented in the ABI specification.
28671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for support for %gotoff relocations in constant data" >&5
28672 $as_echo_n "checking assembler for support for %gotoff relocations in constant data... " >&6; }
28673 if ${gcc_cv_as_nios2_gotoff_relocation+:} false; then :
28674 $as_echo_n "(cached) " >&6
28675 else
28676 gcc_cv_as_nios2_gotoff_relocation=no
28677 if test x$gcc_cv_as != x; then
28678 $as_echo ' .extern foo
28679 .data
28680 .long %gotoff(foo)' > conftest.s
28681 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28682 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28683 (eval $ac_try) 2>&5
28684 ac_status=$?
28685 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28686 test $ac_status = 0; }; }
28687 then
28688 gcc_cv_as_nios2_gotoff_relocation=yes
28689 else
28690 echo "configure: failed program was" >&5
28691 cat conftest.s >&5
28693 rm -f conftest.o conftest.s
28696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nios2_gotoff_relocation" >&5
28697 $as_echo "$gcc_cv_as_nios2_gotoff_relocation" >&6; }
28698 if test $gcc_cv_as_nios2_gotoff_relocation = yes; then
28700 $as_echo "#define HAVE_AS_NIOS2_GOTOFF_RELOCATION 1" >>confdefs.h
28705 riscv*-*-*)
28706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .attribute support" >&5
28707 $as_echo_n "checking assembler for .attribute support... " >&6; }
28708 if ${gcc_cv_as_riscv_attribute+:} false; then :
28709 $as_echo_n "(cached) " >&6
28710 else
28711 gcc_cv_as_riscv_attribute=no
28712 if test x$gcc_cv_as != x; then
28713 $as_echo '.attribute stack_align,4' > conftest.s
28714 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28715 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28716 (eval $ac_try) 2>&5
28717 ac_status=$?
28718 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28719 test $ac_status = 0; }; }
28720 then
28721 gcc_cv_as_riscv_attribute=yes
28722 else
28723 echo "configure: failed program was" >&5
28724 cat conftest.s >&5
28726 rm -f conftest.o conftest.s
28729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_riscv_attribute" >&5
28730 $as_echo "$gcc_cv_as_riscv_attribute" >&6; }
28731 if test $gcc_cv_as_riscv_attribute = yes; then
28733 $as_echo "#define HAVE_AS_RISCV_ATTRIBUTE 1" >>confdefs.h
28737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -misa-spec= support" >&5
28738 $as_echo_n "checking assembler for -misa-spec= support... " >&6; }
28739 if ${gcc_cv_as_riscv_isa_spec+:} false; then :
28740 $as_echo_n "(cached) " >&6
28741 else
28742 gcc_cv_as_riscv_isa_spec=no
28743 if test x$gcc_cv_as != x; then
28744 $as_echo '' > conftest.s
28745 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -misa-spec=2.2 -o conftest.o conftest.s >&5'
28746 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28747 (eval $ac_try) 2>&5
28748 ac_status=$?
28749 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28750 test $ac_status = 0; }; }
28751 then
28752 gcc_cv_as_riscv_isa_spec=yes
28753 else
28754 echo "configure: failed program was" >&5
28755 cat conftest.s >&5
28757 rm -f conftest.o conftest.s
28760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_riscv_isa_spec" >&5
28761 $as_echo "$gcc_cv_as_riscv_isa_spec" >&6; }
28762 if test $gcc_cv_as_riscv_isa_spec = yes; then
28764 $as_echo "#define HAVE_AS_MISA_SPEC 1" >>confdefs.h
28768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -march=rv32i_zifencei support" >&5
28769 $as_echo_n "checking assembler for -march=rv32i_zifencei support... " >&6; }
28770 if ${gcc_cv_as_riscv_march_zifencei+:} false; then :
28771 $as_echo_n "(cached) " >&6
28772 else
28773 gcc_cv_as_riscv_march_zifencei=no
28774 if test x$gcc_cv_as != x; then
28775 $as_echo '' > conftest.s
28776 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -march=rv32i_zifencei2p0 -o conftest.o conftest.s >&5'
28777 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28778 (eval $ac_try) 2>&5
28779 ac_status=$?
28780 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28781 test $ac_status = 0; }; }
28782 then
28783 gcc_cv_as_riscv_march_zifencei=yes
28784 else
28785 echo "configure: failed program was" >&5
28786 cat conftest.s >&5
28788 rm -f conftest.o conftest.s
28791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_riscv_march_zifencei" >&5
28792 $as_echo "$gcc_cv_as_riscv_march_zifencei" >&6; }
28793 if test $gcc_cv_as_riscv_march_zifencei = yes; then
28795 $as_echo "#define HAVE_AS_MARCH_ZIFENCEI 1" >>confdefs.h
28800 loongarch*-*-*)
28801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
28802 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
28803 if ${gcc_cv_as_loongarch_dtprelword+:} false; then :
28804 $as_echo_n "(cached) " >&6
28805 else
28806 gcc_cv_as_loongarch_dtprelword=no
28807 if test x$gcc_cv_as != x; then
28808 $as_echo '' > conftest.s
28809 if { ac_try='$gcc_cv_as $gcc_cv_as_flags 2,18,0 -o conftest.o conftest.s >&5'
28810 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28811 (eval $ac_try) 2>&5
28812 ac_status=$?
28813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28814 test $ac_status = 0; }; }
28815 then
28816 .section .tdata,"awT",@progbits
28818 .word 2
28819 .text
28820 .dtprelword x+0x8000
28821 else
28822 echo "configure: failed program was" >&5
28823 cat conftest.s >&5
28825 rm -f conftest.o conftest.s
28828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_loongarch_dtprelword" >&5
28829 $as_echo "$gcc_cv_as_loongarch_dtprelword" >&6; }
28831 if test $gcc_cv_as_loongarch_dtprelword != yes; then
28833 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
28836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
28837 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
28838 if ${gcc_cv_as_loongarch_explicit_relocs+:} false; then :
28839 $as_echo_n "(cached) " >&6
28840 else
28841 gcc_cv_as_loongarch_explicit_relocs=no
28842 if test x$gcc_cv_as != x; then
28843 $as_echo 'a:pcalau12i $t0,%pc_hi20(a)' > conftest.s
28844 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28845 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28846 (eval $ac_try) 2>&5
28847 ac_status=$?
28848 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28849 test $ac_status = 0; }; }
28850 then
28851 gcc_cv_as_loongarch_explicit_relocs=yes
28852 else
28853 echo "configure: failed program was" >&5
28854 cat conftest.s >&5
28856 rm -f conftest.o conftest.s
28859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_loongarch_explicit_relocs" >&5
28860 $as_echo "$gcc_cv_as_loongarch_explicit_relocs" >&6; }
28861 if test $gcc_cv_as_loongarch_explicit_relocs = yes; then
28863 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
28867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame pcrel encoding support" >&5
28868 $as_echo_n "checking assembler for eh_frame pcrel encoding support... " >&6; }
28869 if ${gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support+:} false; then :
28870 $as_echo_n "(cached) " >&6
28871 else
28872 gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support=no
28873 if test x$gcc_cv_as != x; then
28874 $as_echo '.cfi_startproc
28875 .cfi_personality 0x9b,a
28876 .cfi_lsda 0x1b,b
28877 .cfi_endproc' > conftest.s
28878 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28879 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28880 (eval $ac_try) 2>&5
28881 ac_status=$?
28882 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28883 test $ac_status = 0; }; }
28884 then
28885 gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support=yes
28886 else
28887 echo "configure: failed program was" >&5
28888 cat conftest.s >&5
28890 rm -f conftest.o conftest.s
28893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support" >&5
28894 $as_echo "$gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support" >&6; }
28895 if test $gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support = yes; then
28897 $as_echo "#define HAVE_AS_EH_FRAME_PCREL_ENCODING_SUPPORT 1" >>confdefs.h
28902 s390*-*-*)
28903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
28904 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
28905 if ${gcc_cv_as_s390_gnu_attribute+:} false; then :
28906 $as_echo_n "(cached) " >&6
28907 else
28908 gcc_cv_as_s390_gnu_attribute=no
28909 if test x$gcc_cv_as != x; then
28910 $as_echo '.gnu_attribute 8,1' > conftest.s
28911 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28912 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28913 (eval $ac_try) 2>&5
28914 ac_status=$?
28915 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28916 test $ac_status = 0; }; }
28917 then
28918 gcc_cv_as_s390_gnu_attribute=yes
28919 else
28920 echo "configure: failed program was" >&5
28921 cat conftest.s >&5
28923 rm -f conftest.o conftest.s
28926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_gnu_attribute" >&5
28927 $as_echo "$gcc_cv_as_s390_gnu_attribute" >&6; }
28928 if test $gcc_cv_as_s390_gnu_attribute = yes; then
28930 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
28934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine and .machinemode support" >&5
28935 $as_echo_n "checking assembler for .machine and .machinemode support... " >&6; }
28936 if ${gcc_cv_as_s390_machine_machinemode+:} false; then :
28937 $as_echo_n "(cached) " >&6
28938 else
28939 gcc_cv_as_s390_machine_machinemode=no
28940 if test x$gcc_cv_as != x; then
28941 $as_echo ' .machinemode push
28942 .machinemode pop
28943 .machine push
28944 .machine pop' > conftest.s
28945 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28946 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28947 (eval $ac_try) 2>&5
28948 ac_status=$?
28949 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28950 test $ac_status = 0; }; }
28951 then
28952 gcc_cv_as_s390_machine_machinemode=yes
28953 else
28954 echo "configure: failed program was" >&5
28955 cat conftest.s >&5
28957 rm -f conftest.o conftest.s
28960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_machine_machinemode" >&5
28961 $as_echo "$gcc_cv_as_s390_machine_machinemode" >&6; }
28962 if test $gcc_cv_as_s390_machine_machinemode = yes; then
28964 $as_echo "#define HAVE_AS_MACHINE_MACHINEMODE 1" >>confdefs.h
28968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for architecture modifiers support" >&5
28969 $as_echo_n "checking assembler for architecture modifiers support... " >&6; }
28970 if ${gcc_cv_as_s390_architecture_modifiers+:} false; then :
28971 $as_echo_n "(cached) " >&6
28972 else
28973 gcc_cv_as_s390_architecture_modifiers=no
28974 if test x$gcc_cv_as != x; then
28975 $as_echo ' .machine z13+vx ' > conftest.s
28976 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28977 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28978 (eval $ac_try) 2>&5
28979 ac_status=$?
28980 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28981 test $ac_status = 0; }; }
28982 then
28983 gcc_cv_as_s390_architecture_modifiers=yes
28984 else
28985 echo "configure: failed program was" >&5
28986 cat conftest.s >&5
28988 rm -f conftest.o conftest.s
28991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_architecture_modifiers" >&5
28992 $as_echo "$gcc_cv_as_s390_architecture_modifiers" >&6; }
28993 if test $gcc_cv_as_s390_architecture_modifiers = yes; then
28995 $as_echo "#define HAVE_AS_ARCHITECTURE_MODIFIERS 1" >>confdefs.h
28999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector load/store alignment hints" >&5
29000 $as_echo_n "checking assembler for vector load/store alignment hints... " >&6; }
29001 if ${gcc_cv_as_s390_vector_loadstore_alignment_hints+:} false; then :
29002 $as_echo_n "(cached) " >&6
29003 else
29004 gcc_cv_as_s390_vector_loadstore_alignment_hints=no
29005 if test x$gcc_cv_as != x; then
29006 $as_echo ' vl %v24,0(%r15),3 ' > conftest.s
29007 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29008 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29009 (eval $ac_try) 2>&5
29010 ac_status=$?
29011 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29012 test $ac_status = 0; }; }
29013 then
29014 gcc_cv_as_s390_vector_loadstore_alignment_hints=yes
29015 else
29016 echo "configure: failed program was" >&5
29017 cat conftest.s >&5
29019 rm -f conftest.o conftest.s
29022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_vector_loadstore_alignment_hints" >&5
29023 $as_echo "$gcc_cv_as_s390_vector_loadstore_alignment_hints" >&6; }
29024 if test $gcc_cv_as_s390_vector_loadstore_alignment_hints = yes; then
29026 $as_echo "#define HAVE_AS_VECTOR_LOADSTORE_ALIGNMENT_HINTS 1" >>confdefs.h
29030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector load/store alignment hints on z13" >&5
29031 $as_echo_n "checking assembler for vector load/store alignment hints on z13... " >&6; }
29032 if ${gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13+:} false; then :
29033 $as_echo_n "(cached) " >&6
29034 else
29035 gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13=no
29036 if test x$gcc_cv_as != x; then
29037 $as_echo ' vl %v24,0(%r15),3 ' > conftest.s
29038 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mzarch -march=z13 -o conftest.o conftest.s >&5'
29039 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29040 (eval $ac_try) 2>&5
29041 ac_status=$?
29042 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29043 test $ac_status = 0; }; }
29044 then
29045 gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13=yes
29046 else
29047 echo "configure: failed program was" >&5
29048 cat conftest.s >&5
29050 rm -f conftest.o conftest.s
29053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13" >&5
29054 $as_echo "$gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13" >&6; }
29055 if test $gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13 = yes; then
29057 $as_echo "#define HAVE_AS_VECTOR_LOADSTORE_ALIGNMENT_HINTS_ON_Z13 1" >>confdefs.h
29063 esac
29065 # Mips, LoongArch and HP-UX need the GNU assembler.
29066 # Linux on IA64 might be able to use the Intel assembler.
29068 case "$target" in
29069 mips*-*-* | loongarch*-*-* | *-*-hpux* )
29070 if test x$gas_flag = xyes \
29071 || test x"$host" != x"$build" \
29072 || test ! -x "$gcc_cv_as" \
29073 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
29075 else
29076 echo "*** This configuration requires the GNU assembler" >&2
29077 exit 1
29080 esac
29082 # AMD GCN needs the LLVM assembler and linker.
29083 # Test that LLVM is at least 13.0.1.
29084 case "$target" in
29085 amdgcn-* | gcn-*)
29086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking llvm assembler version" >&5
29087 $as_echo_n "checking llvm assembler version... " >&6; }
29088 gcc_cv_as_version="unknown"
29089 if test x$gcc_cv_as != x; then
29090 gcc_cv_as_version=`$gcc_cv_as --version 2>&1 | sed -ne '/version/s/.* \([0-9]\)/\1/p' || echo error`
29091 case "$gcc_cv_as_version" in
29092 13.0.[1-9]*) ;; # 13.0.1+
29093 13.[1-9]*) ;; # 13.1+
29094 1[4-9]*) ;; # 14..19
29095 [2-9][0-9]*) ;; # 20..99
29096 [1-9][0-9][0-9]*) ;; # 100+
29097 error) as_fn_error $? "cannot determine LLVM version" "$LINENO" 5 ;;
29098 *) as_fn_error $? "LLVM 13.0.1 or later is required (found LLVM $gcc_cv_as_version)" "$LINENO" 5 ;;
29099 esac
29101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_version, ok" >&5
29102 $as_echo "$gcc_cv_as_version, ok" >&6; }
29104 esac
29106 case "$target" in
29107 arm*)
29108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembler for arm accepts context-specific architecture extensions" >&5
29109 $as_echo_n "checking assembler for assembler for arm accepts context-specific architecture extensions... " >&6; }
29110 if ${gcc_cv_as_arm_option_extensions+:} false; then :
29111 $as_echo_n "(cached) " >&6
29112 else
29113 gcc_cv_as_arm_option_extensions=no
29114 if test x$gcc_cv_as != x; then
29115 $as_echo '.text
29116 .thumb
29117 .syntax unified
29118 vmov.f32 s0, s1' > conftest.s
29119 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -march=armv8.1-m.main+mve -o conftest.o conftest.s >&5'
29120 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29121 (eval $ac_try) 2>&5
29122 ac_status=$?
29123 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29124 test $ac_status = 0; }; }
29125 then
29126 gcc_cv_as_arm_option_extensions=yes
29127 else
29128 echo "configure: failed program was" >&5
29129 cat conftest.s >&5
29131 rm -f conftest.o conftest.s
29134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_arm_option_extensions" >&5
29135 $as_echo "$gcc_cv_as_arm_option_extensions" >&6; }
29136 if test $gcc_cv_as_arm_option_extensions = yes; then
29138 $as_echo "#define HAVE_GAS_ARM_EXTENDED_ARCH 1" >>confdefs.h
29142 esac
29144 # ??? Not all targets support dwarf2 debug_line, even within a version
29145 # of gas. Moreover, we need to emit a valid instruction to trigger any
29146 # info to the output file. So, as supported targets are added to gas 2.11,
29147 # add some instruction here to (also) show we expect this might work.
29148 # ??? Once 2.11 is released, probably need to add first known working
29149 # version to the per-target configury.
29150 case "$cpu_type" in
29151 aarch64 | alpha | arc | arm | avr | bfin | cris | csky | i386 | loongarch | m32c \
29152 | m68k | microblaze | mips | nds32 | nios2 | pa | riscv | rs6000 | score | sparc \
29153 | visium | xstormy16 | xtensa)
29154 insn="nop"
29156 ia64 | s390)
29157 insn="nop 0"
29159 mmix)
29160 insn="swym 0"
29162 esac
29163 if test x"$insn" != x; then
29164 conftest_s="\
29165 .file 1 \"conftest.s\"
29166 .loc 1 3 0
29167 $insn"
29168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
29169 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
29170 if ${gcc_cv_as_dwarf2_debug_line+:} false; then :
29171 $as_echo_n "(cached) " >&6
29172 else
29173 gcc_cv_as_dwarf2_debug_line=no
29174 if test x$gcc_cv_as != x; then
29175 $as_echo "$conftest_s" > conftest.s
29176 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29177 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29178 (eval $ac_try) 2>&5
29179 ac_status=$?
29180 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29181 test $ac_status = 0; }; }
29182 then
29183 if test x$gcc_cv_objdump != x \
29184 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
29185 | grep debug_line > /dev/null 2>&1; then
29186 gcc_cv_as_dwarf2_debug_line=yes
29187 elif test x$gcc_cv_otool != x \
29188 && $gcc_cv_otool -l conftest.o 2> /dev/null \
29189 | grep debug_line > /dev/null 2>&1; then
29190 gcc_cv_as_dwarf2_debug_line=yes
29192 else
29193 echo "configure: failed program was" >&5
29194 cat conftest.s >&5
29196 rm -f conftest.o conftest.s
29199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
29200 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
29204 # The .debug_line file table must be in the exact order that
29205 # we specified the files, since these indices are also used
29206 # by DW_AT_decl_file. Approximate this test by testing if
29207 # the assembler bitches if the same index is assigned twice.
29208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
29209 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
29210 if ${gcc_cv_as_dwarf2_file_buggy+:} false; then :
29211 $as_echo_n "(cached) " >&6
29212 else
29213 gcc_cv_as_dwarf2_file_buggy=no
29214 if test x$gcc_cv_as != x; then
29215 $as_echo ' .file 1 "foo.s"
29216 .file 1 "bar.s"' > conftest.s
29217 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29218 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29219 (eval $ac_try) 2>&5
29220 ac_status=$?
29221 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29222 test $ac_status = 0; }; }
29223 then
29224 gcc_cv_as_dwarf2_file_buggy=yes
29225 else
29226 echo "configure: failed program was" >&5
29227 cat conftest.s >&5
29229 rm -f conftest.o conftest.s
29232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
29233 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
29237 if test $gcc_cv_as_dwarf2_debug_line = yes \
29238 && test $gcc_cv_as_dwarf2_file_buggy = no; then
29240 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
29243 if test $gcc_cv_as_leb128 = yes; then
29244 conftest_s="\
29245 .file 1 \"conftest.s\"
29246 .loc 1 3 0 view .LVU1
29247 $insn
29248 .data
29249 .uleb128 .LVU1
29250 .uleb128 .LVU1
29252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_view support" >&5
29253 $as_echo_n "checking assembler for dwarf2 debug_view support... " >&6; }
29254 if ${gcc_cv_as_dwarf2_debug_view+:} false; then :
29255 $as_echo_n "(cached) " >&6
29256 else
29257 gcc_cv_as_dwarf2_debug_view=no
29258 if test x$gcc_cv_as != x; then
29259 $as_echo "$conftest_s" > conftest.s
29260 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -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_dwarf2_debug_view=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_dwarf2_debug_view" >&5
29276 $as_echo "$gcc_cv_as_dwarf2_debug_view" >&6; }
29277 if test $gcc_cv_as_dwarf2_debug_view = yes; then
29279 $as_echo "#define HAVE_AS_DWARF2_DEBUG_VIEW 1" >>confdefs.h
29286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
29287 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
29288 if ${gcc_cv_as_gdwarf2_flag+:} false; then :
29289 $as_echo_n "(cached) " >&6
29290 else
29291 gcc_cv_as_gdwarf2_flag=no
29292 if test x$gcc_cv_as != x; then
29293 $as_echo "$insn" > conftest.s
29294 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
29295 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29296 (eval $ac_try) 2>&5
29297 ac_status=$?
29298 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29299 test $ac_status = 0; }; }
29300 then
29301 gcc_cv_as_gdwarf2_flag=yes
29302 else
29303 echo "configure: failed program was" >&5
29304 cat conftest.s >&5
29306 rm -f conftest.o conftest.s
29309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
29310 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
29311 if test $gcc_cv_as_gdwarf2_flag = yes; then
29313 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
29318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf-5 option" >&5
29319 $as_echo_n "checking assembler for --gdwarf-5 option... " >&6; }
29320 if ${gcc_cv_as_gdwarf_5_flag+:} false; then :
29321 $as_echo_n "(cached) " >&6
29322 else
29323 gcc_cv_as_gdwarf_5_flag=no
29324 if test x$gcc_cv_as != x; then
29325 $as_echo "$insn" > conftest.s
29326 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf-5 -o conftest.o conftest.s >&5'
29327 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29328 (eval $ac_try) 2>&5
29329 ac_status=$?
29330 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29331 test $ac_status = 0; }; }
29332 then
29333 if test x$gcc_cv_objdump != x \
29334 && $gcc_cv_objdump -Wi conftest.o 2>&1 \
29335 | grep DW_TAG_compile_unit > /dev/null 2>&1; then
29336 gcc_cv_as_gdwarf_5_flag=yes;
29338 else
29339 echo "configure: failed program was" >&5
29340 cat conftest.s >&5
29342 rm -f conftest.o conftest.s
29345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf_5_flag" >&5
29346 $as_echo "$gcc_cv_as_gdwarf_5_flag" >&6; }
29347 if test $gcc_cv_as_gdwarf_5_flag = yes; then
29349 $as_echo "#define HAVE_AS_GDWARF_5_DEBUG_FLAG 1" >>confdefs.h
29354 case $target_os in
29355 win32 | pe | cygwin* | mingw32*)
29356 section_flags=\"dr\"
29357 function_type=".def foo; .scl 2; .type 32; .endef"
29358 function_size="";;
29360 section_flags=\"\",%progbits
29361 function_type=".type foo, %function"
29362 function_size=".size foo, .-foo";;
29363 esac
29364 dwarf4_debug_info_size=0x46
29365 dwarf4_high_pc_form=7
29366 dwarf4_debug_aranges_size=0x2c
29367 dwarf4_line_sz=9
29368 for dwarf4_addr_size in 8 4; do
29369 conftest_s="\
29370 .file \"a.c\"
29371 .text
29372 .Ltext0:
29373 .p2align 4
29374 .globl foo
29375 $function_type
29376 foo:
29377 .LFB0:
29378 .LM1:
29379 $insn
29380 .LM2:
29381 .LFE0:
29382 $function_size
29383 .Letext0:
29384 .section .debug_info,$section_flags
29385 .Ldebug_info0:
29386 .4byte $dwarf4_debug_info_size
29387 .2byte 0x4
29388 .4byte .Ldebug_abbrev0
29389 .byte 0x$dwarf4_addr_size
29390 .byte 0x1
29391 .ascii \"GNU C17\\0\"
29392 .byte 0xc
29393 .ascii \"a.c\\0\"
29394 .ascii \"/\\0\"
29395 .${dwarf4_addr_size}byte .Ltext0
29396 .${dwarf4_addr_size}byte .Letext0-.Ltext0
29397 .4byte .Ldebug_line0
29398 .byte 0x2
29399 .ascii \"foo\\0\"
29400 .byte 0x1
29401 .byte 0x2
29402 .byte 0x1
29403 .${dwarf4_addr_size}byte .LFB0
29404 .${dwarf4_addr_size}byte .LFE0-.LFB0
29405 .byte 0x1
29406 .byte 0x9c
29407 .byte 0
29408 .section .debug_abbrev,$section_flags
29409 .Ldebug_abbrev0:
29410 .byte 0x1
29411 .byte 0x11
29412 .byte 0x1
29413 .byte 0x25
29414 .byte 0x8
29415 .byte 0x13
29416 .byte 0xb
29417 .byte 0x3
29418 .byte 0x8
29419 .byte 0x1b
29420 .byte 0x8
29421 .byte 0x11
29422 .byte 0x1
29423 .byte 0x12
29424 .byte 0x$dwarf4_high_pc_form
29425 .byte 0x10
29426 .byte 0x17
29427 .byte 0
29428 .byte 0
29429 .byte 0x2
29430 .byte 0x2e
29431 .byte 0
29432 .byte 0x3f
29433 .byte 0x19
29434 .byte 0x3
29435 .byte 0x8
29436 .byte 0x3a
29437 .byte 0xb
29438 .byte 0x3b
29439 .byte 0xb
29440 .byte 0x39
29441 .byte 0xb
29442 .byte 0x11
29443 .byte 0x1
29444 .byte 0x12
29445 .byte 0x$dwarf4_high_pc_form
29446 .byte 0x40
29447 .byte 0x18
29448 .byte 0
29449 .byte 0
29450 .byte 0
29451 .section .debug_aranges,$section_flags
29452 .4byte $dwarf4_debug_aranges_size
29453 .2byte 0x2
29454 .4byte .Ldebug_info0
29455 .byte 0x8
29456 .byte 0
29457 .2byte 0
29458 .2byte 0
29459 .${dwarf4_addr_size}byte .Ltext0
29460 .${dwarf4_addr_size}byte .Letext0-.Ltext0
29461 .${dwarf4_addr_size}byte 0
29462 .${dwarf4_addr_size}byte 0
29463 .section .debug_line,$section_flags
29464 .Ldebug_line0:
29465 .4byte .LELT0-.LSLT0
29466 .LSLT0:
29467 .2byte 0x4
29468 .4byte .LELTP0-.LASLTP0
29469 .LASLTP0:
29470 .byte 0x1
29471 .byte 0x1
29472 .byte 0x1
29473 .byte 0xf6
29474 .byte 0xf2
29475 .byte 0xd
29476 .byte 0
29477 .byte 0x1
29478 .byte 0x1
29479 .byte 0x1
29480 .byte 0x1
29481 .byte 0
29482 .byte 0
29483 .byte 0
29484 .byte 0x1
29485 .byte 0
29486 .byte 0
29487 .byte 0x1
29488 .byte 0
29489 .ascii \"a.c\\0\"
29490 .byte 0
29491 .byte 0
29492 .byte 0
29493 .byte 0
29494 .LELTP0:
29495 .byte 0
29496 .byte 0x$dwarf4_line_sz
29497 .byte 0x2
29498 .${dwarf4_addr_size}byte .LM1
29499 .byte 0x18
29500 .byte 0x5
29501 .byte 0x1
29502 .byte 0
29503 .byte 0x$dwarf4_line_sz
29504 .byte 0x2
29505 .${dwarf4_addr_size}byte .LM2
29506 .byte 0x1
29507 .byte 0x5
29508 .byte 0x1
29509 .byte 0
29510 .byte 0x$dwarf4_line_sz
29511 .byte 0x2
29512 .${dwarf4_addr_size}byte .Letext0
29513 .byte 0
29514 .byte 0x1
29515 .byte 0x1
29516 .LELT0:
29517 .section .debug_str,$section_flags
29518 .ident \"GCC\"
29520 dwarf4_success=no
29521 if test $dwarf4_addr_size = 4; then
29522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembly of compiler generated 32-bit .debug_line" >&5
29523 $as_echo_n "checking assembler for assembly of compiler generated 32-bit .debug_line... " >&6; }
29524 if ${gcc_cv_as_debug_line_32_flag+:} false; then :
29525 $as_echo_n "(cached) " >&6
29526 else
29527 gcc_cv_as_debug_line_32_flag=no
29528 if test x$gcc_cv_as != x; then
29529 $as_echo "$conftest_s" > conftest.s
29530 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29531 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29532 (eval $ac_try) 2>&5
29533 ac_status=$?
29534 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29535 test $ac_status = 0; }; }
29536 then
29537 gcc_cv_as_debug_line_32_flag=yes
29538 else
29539 echo "configure: failed program was" >&5
29540 cat conftest.s >&5
29542 rm -f conftest.o conftest.s
29545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_line_32_flag" >&5
29546 $as_echo "$gcc_cv_as_debug_line_32_flag" >&6; }
29547 if test $gcc_cv_as_debug_line_32_flag = yes; then
29548 dwarf4_success=yes
29551 else
29552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembly of compiler generated 64-bit .debug_line" >&5
29553 $as_echo_n "checking assembler for assembly of compiler generated 64-bit .debug_line... " >&6; }
29554 if ${gcc_cv_as_debug_line_64_flag+:} false; then :
29555 $as_echo_n "(cached) " >&6
29556 else
29557 gcc_cv_as_debug_line_64_flag=no
29558 if test x$gcc_cv_as != x; then
29559 $as_echo "$conftest_s" > conftest.s
29560 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29561 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29562 (eval $ac_try) 2>&5
29563 ac_status=$?
29564 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29565 test $ac_status = 0; }; }
29566 then
29567 gcc_cv_as_debug_line_64_flag=yes
29568 else
29569 echo "configure: failed program was" >&5
29570 cat conftest.s >&5
29572 rm -f conftest.o conftest.s
29575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_line_64_flag" >&5
29576 $as_echo "$gcc_cv_as_debug_line_64_flag" >&6; }
29577 if test $gcc_cv_as_debug_line_64_flag = yes; then
29578 dwarf4_success=yes
29582 if test $dwarf4_success = yes; then
29583 dwarf4_success=no
29584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf-4 not refusing compiler generated .debug_line" >&5
29585 $as_echo_n "checking assembler for --gdwarf-4 not refusing compiler generated .debug_line... " >&6; }
29586 if ${gcc_cv_as_dwarf_4_debug_line_flag+:} false; then :
29587 $as_echo_n "(cached) " >&6
29588 else
29589 gcc_cv_as_dwarf_4_debug_line_flag=no
29590 if test x$gcc_cv_as != x; then
29591 $as_echo "$conftest_s" > conftest.s
29592 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf-4 -o conftest.o conftest.s >&5'
29593 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29594 (eval $ac_try) 2>&5
29595 ac_status=$?
29596 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29597 test $ac_status = 0; }; }
29598 then
29599 gcc_cv_as_dwarf_4_debug_line_flag=yes
29600 else
29601 echo "configure: failed program was" >&5
29602 cat conftest.s >&5
29604 rm -f conftest.o conftest.s
29607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf_4_debug_line_flag" >&5
29608 $as_echo "$gcc_cv_as_dwarf_4_debug_line_flag" >&6; }
29609 if test $gcc_cv_as_dwarf_4_debug_line_flag = yes; then
29610 dwarf4_success=yes
29613 break
29615 dwarf4_debug_info_size=0x36
29616 dwarf4_high_pc_form=6
29617 dwarf4_debug_aranges_size=0x1c
29618 dwarf4_line_sz=5
29619 done
29621 if test $dwarf4_success = yes; then
29622 conftest_s="\
29623 .file \"foo.c\"
29624 .text
29625 bar:
29626 #APP
29627 # 82 \"xxx.h\" 1
29628 $insn
29629 # 0 \"\" 2
29630 #NO_APP
29631 $insn
29632 foo:
29633 .file 1 \"foo.c\"
29634 $insn
29635 .file 2 \"foo.h\"
29638 dwarf4_success=no
29639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf-4 with the APP marker" >&5
29640 $as_echo_n "checking assembler for --gdwarf-4 with the APP marker... " >&6; }
29641 if ${gcc_cv_as_dwarf_4_app_flag+:} false; then :
29642 $as_echo_n "(cached) " >&6
29643 else
29644 gcc_cv_as_dwarf_4_app_flag=no
29645 if test x$gcc_cv_as != x; then
29646 $as_echo "$conftest_s" > conftest.s
29647 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf-4 -o conftest.o conftest.s >&5'
29648 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29649 (eval $ac_try) 2>&5
29650 ac_status=$?
29651 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29652 test $ac_status = 0; }; }
29653 then
29654 gcc_cv_as_dwarf_4_app_flag=yes
29655 else
29656 echo "configure: failed program was" >&5
29657 cat conftest.s >&5
29659 rm -f conftest.o conftest.s
29662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf_4_app_flag" >&5
29663 $as_echo "$gcc_cv_as_dwarf_4_app_flag" >&6; }
29664 if test $gcc_cv_as_dwarf_4_app_flag = yes; then
29665 dwarf4_success=yes
29670 if test $dwarf4_success = yes; then
29671 conftest_s="\
29672 .text
29673 .globl foo
29674 $function_type
29675 foo:
29676 $insn
29677 $function_size
29678 .file 1 \"foo.c\"
29680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working --gdwarf-4/--gdwarf-5 for all sources" >&5
29681 $as_echo_n "checking assembler for working --gdwarf-4/--gdwarf-5 for all sources... " >&6; }
29682 if ${gcc_cv_as_working_gdwarf_n_flag+:} false; then :
29683 $as_echo_n "(cached) " >&6
29684 else
29685 gcc_cv_as_working_gdwarf_n_flag=no
29686 if test x$gcc_cv_as != x; then
29687 $as_echo "$conftest_s" > conftest.s
29688 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf-4 -o conftest.o conftest.s >&5'
29689 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29690 (eval $ac_try) 2>&5
29691 ac_status=$?
29692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29693 test $ac_status = 0; }; }
29694 then
29695 if test x$gcc_cv_objdump != x \
29696 && $gcc_cv_objdump -W conftest.o 2>&1 \
29697 | grep conftest.s > /dev/null 2>&1; then
29698 gcc_cv_as_working_gdwarf_n_flag=no
29699 else
29700 gcc_cv_as_working_gdwarf_n_flag=yes
29702 else
29703 echo "configure: failed program was" >&5
29704 cat conftest.s >&5
29706 rm -f conftest.o conftest.s
29709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_working_gdwarf_n_flag" >&5
29710 $as_echo "$gcc_cv_as_working_gdwarf_n_flag" >&6; }
29713 if test $gcc_cv_as_working_gdwarf_n_flag = yes; then
29715 $as_echo "#define HAVE_AS_WORKING_DWARF_N_FLAG 1" >>confdefs.h
29720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
29721 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
29722 if ${gcc_cv_as_debug_prefix_map_flag+:} false; then :
29723 $as_echo_n "(cached) " >&6
29724 else
29725 gcc_cv_as_debug_prefix_map_flag=no
29726 if test x$gcc_cv_as != x; then
29727 $as_echo "$insn" > conftest.s
29728 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
29729 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29730 (eval $ac_try) 2>&5
29731 ac_status=$?
29732 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29733 test $ac_status = 0; }; }
29734 then
29735 gcc_cv_as_debug_prefix_map_flag=yes
29736 else
29737 echo "configure: failed program was" >&5
29738 cat conftest.s >&5
29740 rm -f conftest.o conftest.s
29743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
29744 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
29745 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
29747 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
29753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compressed debug sections" >&5
29754 $as_echo_n "checking assembler for compressed debug sections... " >&6; }
29755 if ${gcc_cv_as_compress_debug+:} false; then :
29756 $as_echo_n "(cached) " >&6
29757 else
29758 gcc_cv_as_compress_debug=no
29759 if test x$gcc_cv_as != x; then
29760 $as_echo '' > conftest.s
29761 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29762 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29763 (eval $ac_try) 2>&5
29764 ac_status=$?
29765 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29766 test $ac_status = 0; }; }
29767 then
29768 # gas compiled without zlib cannot compress debug sections and warns
29769 # about it, but still exits successfully. So check for this, too.
29770 if $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null
29771 then
29772 gcc_cv_as_compress_debug=0
29773 elif $gcc_cv_as --compress-debug-sections=zlib -o conftest.o conftest.s > /dev/null 2>&1
29774 then
29775 gcc_cv_as_compress_debug=1
29776 gcc_cv_as_compress_debug_option="--compress-debug-sections"
29777 gcc_cv_as_no_compress_debug_option="--nocompress-debug-sections"
29778 # Since binutils 2.40, gas supports --compress-debug-sections=zstd.
29779 if $gcc_cv_as --compress-debug-sections=zstd -o conftest.o conftest.s > /dev/null 2>&1
29780 then
29781 gcc_cv_as_compress_debug=2
29783 else
29784 gcc_cv_as_compress_debug=0
29786 else
29787 echo "configure: failed program was" >&5
29788 cat conftest.s >&5
29790 rm -f conftest.o conftest.s
29793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_compress_debug" >&5
29794 $as_echo "$gcc_cv_as_compress_debug" >&6; }
29798 cat >>confdefs.h <<_ACEOF
29799 #define HAVE_AS_COMPRESS_DEBUG $gcc_cv_as_compress_debug
29800 _ACEOF
29803 cat >>confdefs.h <<_ACEOF
29804 #define AS_COMPRESS_DEBUG_OPTION "$gcc_cv_as_compress_debug_option"
29805 _ACEOF
29808 cat >>confdefs.h <<_ACEOF
29809 #define AS_NO_COMPRESS_DEBUG_OPTION "$gcc_cv_as_no_compress_debug_option"
29810 _ACEOF
29813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
29814 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
29815 if ${gcc_cv_as_lcomm_with_alignment+:} false; then :
29816 $as_echo_n "(cached) " >&6
29817 else
29818 gcc_cv_as_lcomm_with_alignment=no
29819 if test x$gcc_cv_as != x; then
29820 $as_echo '.lcomm bar,4,16' > conftest.s
29821 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29822 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29823 (eval $ac_try) 2>&5
29824 ac_status=$?
29825 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29826 test $ac_status = 0; }; }
29827 then
29828 gcc_cv_as_lcomm_with_alignment=yes
29829 else
29830 echo "configure: failed program was" >&5
29831 cat conftest.s >&5
29833 rm -f conftest.o conftest.s
29836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
29837 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
29838 if test $gcc_cv_as_lcomm_with_alignment = yes; then
29840 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
29845 if test x$with_sysroot = x && test x$host = x$target \
29846 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
29847 && test "$prefix" != "NONE"; then
29849 cat >>confdefs.h <<_ACEOF
29850 #define PREFIX_INCLUDE_DIR "$prefix/include"
29851 _ACEOF
29855 # Determine the version of glibc, if any, used on the target.
29856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target glibc version" >&5
29857 $as_echo_n "checking for target glibc version... " >&6; }
29859 # Check whether --with-glibc-version was given.
29860 if test "${with_glibc_version+set}" = set; then :
29861 withval=$with_glibc_version;
29862 if echo "$with_glibc_version" | grep '^[0-9][0-9]*\.[0-9][0-9]*$'; then
29863 glibc_version_major=`echo "$with_glibc_version" | sed -e 's/\..*//'`
29864 glibc_version_minor=`echo "$with_glibc_version" | sed -e 's/.*\.//'`
29865 else
29866 as_fn_error $? "option --with-glibc-version requires a version number M.N" "$LINENO" 5
29868 else
29870 glibc_version_major=0
29871 glibc_version_minor=0
29872 if test -f $target_header_dir/features.h \
29873 && glibc_version_major_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+[0-9]' $target_header_dir/features.h` \
29874 && glibc_version_minor_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+[0-9]' $target_header_dir/features.h`; then
29875 glibc_version_major=`echo "$glibc_version_major_define" | sed -e 's/.*__GLIBC__[ ]*//'`
29876 glibc_version_minor=`echo "$glibc_version_minor_define" | sed -e 's/.*__GLIBC_MINOR__[ ]*//'`
29880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc_version_major.$glibc_version_minor" >&5
29881 $as_echo "$glibc_version_major.$glibc_version_minor" >&6; }
29883 cat >>confdefs.h <<_ACEOF
29884 #define TARGET_GLIBC_MAJOR $glibc_version_major
29885 _ACEOF
29888 cat >>confdefs.h <<_ACEOF
29889 #define TARGET_GLIBC_MINOR $glibc_version_minor
29890 _ACEOF
29893 # Check whether --enable-gnu-unique-object was given.
29894 if test "${enable_gnu_unique_object+set}" = set; then :
29895 enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
29896 yes | no) ;;
29897 *) as_fn_error $? "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
29898 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
29899 esac
29900 else
29901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
29902 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
29903 if ${gcc_cv_as_gnu_unique_object+:} false; then :
29904 $as_echo_n "(cached) " >&6
29905 else
29906 gcc_cv_as_gnu_unique_object=no
29907 if test x$gcc_cv_as != x; then
29908 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
29909 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29910 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29911 (eval $ac_try) 2>&5
29912 ac_status=$?
29913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29914 test $ac_status = 0; }; }
29915 then
29916 gcc_cv_as_gnu_unique_object=yes
29917 else
29918 echo "configure: failed program was" >&5
29919 cat conftest.s >&5
29921 rm -f conftest.o conftest.s
29924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
29925 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
29926 if test $gcc_cv_as_gnu_unique_object = yes; then
29927 # We need to unquote above to to use the definition from config.gcc.
29928 # Also check for ld.so support, i.e. glibc 2.11 or higher.
29930 if test $glibc_version_major -gt 2 \
29931 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 11 ); then :
29932 enable_gnu_unique_object=yes
29939 if test x$enable_gnu_unique_object = xyes; then
29941 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
29945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
29946 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
29947 if ${gcc_cv_as_line_zero+:} false; then :
29948 $as_echo_n "(cached) " >&6
29949 else
29950 gcc_cv_as_line_zero=no
29951 if test "x$gcc_cv_as" != x; then
29952 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
29953 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
29954 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29955 (eval $ac_try) 2>&5
29956 ac_status=$?
29957 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29958 test $ac_status = 0; }; } &&
29959 test "x`cat conftest.out`" = x
29960 then
29961 gcc_cv_as_line_zero=yes
29962 else
29963 echo "configure: failed program was" >&5
29964 cat conftest.s >&5
29965 echo "configure: error output was" >&5
29966 cat conftest.out >&5
29968 rm -f conftest.o conftest.s conftest.out
29971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
29972 $as_echo "$gcc_cv_as_line_zero" >&6; }
29973 if test "x$gcc_cv_as_line_zero" = xyes; then
29975 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
29979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for thin archives" >&5
29980 $as_echo_n "checking support for thin archives... " >&6; }
29981 thin_archive_support=no
29982 echo 'int main (void) { return 0; }' > conftest.c
29983 if ($AR --version | sed 1q | grep "GNU ar" \
29984 && $CC $CFLAGS -c conftest.c \
29985 && $AR rcT conftest.a conftest.o \
29986 && $CC $CFLAGS $LDFLAGS -o conftest conftest.a) >/dev/null 2>&1; then
29987 thin_archive_support=yes
29989 rm -f conftest.c conftest.o conftest.a conftest
29990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $thin_archive_support" >&5
29991 $as_echo "$thin_archive_support" >&6; }
29994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
29995 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
29996 gcc_cv_ld_eh_frame_hdr=no
29997 if test $in_tree_ld = yes ; then
29998 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 \
29999 && test $in_tree_ld_is_elf = yes; then
30000 gcc_cv_ld_eh_frame_hdr=yes
30002 elif test x$gcc_cv_ld != x; then
30003 if echo "$ld_ver" | grep GNU > /dev/null; then
30004 # Check if linker supports --eh-frame-hdr option
30005 if $gcc_cv_ld --help 2>&1 | grep eh-frame-hdr > /dev/null; then
30006 gcc_cv_ld_eh_frame_hdr=yes
30008 else
30009 case "$target" in
30010 *-*-solaris2*)
30011 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
30012 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2251; then
30013 gcc_cv_ld_eh_frame_hdr=yes
30016 esac
30020 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
30022 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
30025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
30026 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
30028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker CIEv3 in .eh_frame support" >&5
30029 $as_echo_n "checking linker CIEv3 in .eh_frame support... " >&6; }
30030 gcc_cv_ld_eh_frame_ciev3=no
30031 if test $in_tree_ld = yes ; then
30032 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 \
30033 && test $in_tree_ld_is_elf = yes; then
30034 gcc_cv_ld_eh_frame_ciev3=yes
30036 elif test x$gcc_cv_ld != x; then
30037 if echo "$ld_ver" | grep GNU > /dev/null; then
30038 gcc_cv_ld_eh_frame_ciev3=yes
30039 if test 0"$ld_date" -lt 20040513; then
30040 if test -n "$ld_date"; then
30041 # If there was date string, but was earlier than 2004-05-13, fail
30042 gcc_cv_ld_eh_frame_ciev3=no
30043 elif test "$ld_vers_major" -lt 2; then
30044 gcc_cv_ld_eh_frame_ciev3=no
30045 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
30046 gcc_cv_ld_eh_frame_ciev3=no
30049 else
30050 case "$target" in
30051 *-*-solaris2*)
30052 # Sun ld added support for CIE v3 in .eh_frame in Solaris 11.1.
30053 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2324; then
30054 gcc_cv_ld_eh_frame_ciev3=yes
30057 esac
30061 cat >>confdefs.h <<_ACEOF
30062 #define HAVE_LD_EH_FRAME_CIEV3 `if test x"$gcc_cv_ld_eh_frame_ciev3" = xyes; then echo 1; else echo 0; fi`
30063 _ACEOF
30065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_ciev3" >&5
30066 $as_echo "$gcc_cv_ld_eh_frame_ciev3" >&6; }
30068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
30069 $as_echo_n "checking linker position independent executable support... " >&6; }
30070 gcc_cv_ld_pie=no
30071 if test $in_tree_ld = yes ; then
30072 case "$target" in
30073 # Full PIE support on Solaris was only introduced in gld 2.26.
30074 *-*-solaris2*) gcc_gld_pie_min_version=26 ;;
30075 *) gcc_gld_pie_min_version=15 ;;
30076 esac
30077 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 \
30078 && test $in_tree_ld_is_elf = yes; then
30079 gcc_cv_ld_pie=yes
30081 elif test x$gcc_cv_ld != x; then
30082 # Check if linker supports -pie option
30083 if $gcc_cv_ld --help 2>&1 | grep -- -pie > /dev/null; then
30084 gcc_cv_ld_pie=yes
30085 case "$target" in
30086 *-*-solaris2*)
30087 if echo "$ld_ver" | grep GNU > /dev/null \
30088 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
30089 gcc_cv_ld_pie=no
30092 esac
30093 else
30094 case "$target" in
30095 *-*-solaris2.1[1-9]*)
30096 # Solaris 11.3 added PIE support.
30097 if $gcc_cv_ld -z help 2>&1 | grep -- type.*pie > /dev/null; then
30098 gcc_cv_ld_pie=yes
30101 esac
30104 if test x"$gcc_cv_ld_pie" = xyes; then
30106 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
30109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
30110 $as_echo "$gcc_cv_ld_pie" >&6; }
30112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PIE support with copy reloc" >&5
30113 $as_echo_n "checking linker PIE support with copy reloc... " >&6; }
30114 gcc_cv_ld_pie_copyreloc=no
30115 if test $gcc_cv_ld_pie = yes ; then
30116 if test $in_tree_ld = yes ; then
30117 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
30118 gcc_cv_ld_pie_copyreloc=yes
30120 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
30121 # Check if linker supports -pie option with copy reloc
30122 case "$target" in
30123 i?86-*-linux* | x86_64-*-linux*)
30124 cat > conftest1.s <<EOF
30125 .globl a_glob
30126 .data
30127 .type a_glob, @object
30128 .size a_glob, 4
30129 a_glob:
30130 .long 2
30132 cat > conftest2.s <<EOF
30133 .text
30134 .globl main
30135 .type main, @function
30136 main:
30137 movl %eax, a_glob(%rip)
30138 .size main, .-main
30139 .globl ptr
30140 .section .data.rel,"aw",@progbits
30141 .type ptr, @object
30142 ptr:
30143 .quad a_glob
30145 if $gcc_cv_as --64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
30146 && $gcc_cv_ld -shared -melf_x86_64 -o conftest1.so conftest1.o > /dev/null 2>&1 \
30147 && $gcc_cv_as --64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
30148 && $gcc_cv_ld -pie -melf_x86_64 -o conftest conftest2.o conftest1.so > /dev/null 2>&1; then
30149 gcc_cv_ld_pie_copyreloc=yes
30151 rm -f conftest conftest1.so conftest1.o conftest2.o conftest1.s conftest2.s
30153 esac
30157 cat >>confdefs.h <<_ACEOF
30158 #define HAVE_LD_PIE_COPYRELOC `if test x"$gcc_cv_ld_pie_copyreloc" = xyes; then echo 1; else echo 0; fi`
30159 _ACEOF
30161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie_copyreloc" >&5
30162 $as_echo "$gcc_cv_ld_pie_copyreloc" >&6; }
30164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
30165 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
30166 gcc_cv_ld_eh_gc_sections=no
30167 if test $in_tree_ld = yes ; then
30168 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 \
30169 && test $in_tree_ld_is_elf = yes; then
30170 gcc_cv_ld_eh_gc_sections=yes
30172 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
30173 cat > conftest.s <<EOF
30174 .section .text
30175 .globl _start
30176 .type _start, @function
30177 _start:
30178 .long foo
30179 .size _start, .-_start
30180 .section .text.foo,"ax",@progbits
30181 .type foo, @function
30182 foo:
30183 .long 0
30184 .size foo, .-foo
30185 .section .gcc_except_table.foo,"a",@progbits
30186 .L0:
30187 .long 0
30188 .section .eh_frame,"a",@progbits
30189 .long .L0
30191 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
30192 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
30193 | grep "gc-sections option ignored" > /dev/null; then
30194 gcc_cv_ld_eh_gc_sections=no
30195 elif $gcc_cv_objdump -h conftest 2> /dev/null \
30196 | grep gcc_except_table > /dev/null; then
30197 gcc_cv_ld_eh_gc_sections=yes
30198 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
30199 if test x$gcc_cv_as_comdat_group != xyes; then
30200 gcc_cv_ld_eh_gc_sections=no
30201 cat > conftest.s <<EOF
30202 .section .text
30203 .globl _start
30204 .type _start, @function
30205 _start:
30206 .long foo
30207 .size _start, .-_start
30208 .section .gnu.linkonce.t.foo,"ax",@progbits
30209 .type foo, @function
30210 foo:
30211 .long 0
30212 .size foo, .-foo
30213 .section .gcc_except_table.foo,"a",@progbits
30214 .L0:
30215 .long 0
30216 .section .eh_frame,"a",@progbits
30217 .long .L0
30219 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
30220 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
30221 | grep "gc-sections option ignored" > /dev/null; then
30222 gcc_cv_ld_eh_gc_sections=no
30223 elif $gcc_cv_objdump -h conftest 2> /dev/null \
30224 | grep gcc_except_table > /dev/null; then
30225 gcc_cv_ld_eh_gc_sections=yes
30231 rm -f conftest.s conftest.o conftest
30233 case "$target" in
30234 hppa*-*-linux*)
30235 # ??? This apparently exposes a binutils bug with PC-relative relocations.
30236 gcc_cv_ld_eh_gc_sections=no
30238 esac
30239 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
30241 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
30244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
30245 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
30247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
30248 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
30249 gcc_cv_ld_eh_gc_sections_bug=no
30250 if test $in_tree_ld = yes ; then
30251 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 \
30252 && test $in_tree_ld_is_elf = yes; then
30253 gcc_cv_ld_eh_gc_sections_bug=yes
30255 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
30256 gcc_cv_ld_eh_gc_sections_bug=yes
30257 cat > conftest.s <<EOF
30258 .section .text
30259 .globl _start
30260 .type _start, @function
30261 _start:
30262 .long foo
30263 .size _start, .-_start
30264 .section .text.startup.foo,"ax",@progbits
30265 .type foo, @function
30266 foo:
30267 .long 0
30268 .size foo, .-foo
30269 .section .gcc_except_table.foo,"a",@progbits
30270 .L0:
30271 .long 0
30272 .section .eh_frame,"a",@progbits
30273 .long .L0
30275 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
30276 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
30277 | grep "gc-sections option ignored" > /dev/null; then
30279 elif $gcc_cv_objdump -h conftest 2> /dev/null \
30280 | grep gcc_except_table > /dev/null; then
30281 gcc_cv_ld_eh_gc_sections_bug=no
30284 rm -f conftest.s conftest.o conftest
30286 if test x$gcc_cv_ld_eh_gc_sections_bug = xyes; then
30288 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
30291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
30292 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
30294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for compressed debug sections" >&5
30295 $as_echo_n "checking linker for compressed debug sections... " >&6; }
30296 # GNU ld/gold support --compressed-debug-sections=zlib since binutils 2.26.
30297 if $gcc_cv_ld --help 2>&1 | grep -- '--compress-debug-sections.*\<zlib-gabi\>' > /dev/null; then
30298 gcc_cv_ld_compress_debug=1
30299 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
30300 # Detect zstd debug section compression support
30301 if $gcc_cv_ld --help 2>&1 | grep -- '--compress-debug-sections.*\<zstd\>' > /dev/null; then
30302 gcc_cv_ld_compress_debug=2
30304 else
30305 case "${target}" in
30306 *-*-solaris2*)
30307 # Introduced in Solaris 11.2.
30308 if $gcc_cv_ld --help 2>&1 | grep -- '-z compress-sections' > /dev/null; then
30309 gcc_cv_ld_compress_debug=1
30310 gcc_cv_ld_compress_debug_option="-z compress-sections"
30311 else
30312 gcc_cv_ld_compress_debug=0
30316 # Assume linkers other than GNU ld don't support compessed debug
30317 # sections.
30318 gcc_cv_ld_compress_debug=0
30320 esac
30323 cat >>confdefs.h <<_ACEOF
30324 #define HAVE_LD_COMPRESS_DEBUG $gcc_cv_ld_compress_debug
30325 _ACEOF
30328 cat >>confdefs.h <<_ACEOF
30329 #define LD_COMPRESS_DEBUG_OPTION "$gcc_cv_ld_compress_debug_option"
30330 _ACEOF
30332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_compress_debug" >&5
30333 $as_echo "$gcc_cv_ld_compress_debug" >&6; }
30335 if test x"$ld64_flag" = x"yes"; then
30337 # Set defaults for possibly untestable items.
30338 gcc_cv_ld64_export_dynamic=0
30339 gcc_cv_ld64_platform_version=0
30341 if test "$build" = "$host"; then
30342 darwin_try_test=1
30343 else
30344 darwin_try_test=0
30347 # On Darwin, because of FAT library support, it is often possible to execute
30348 # exes from compatible archs even when the host differs from the build system.
30349 case "$build","$host" in
30350 x86_64-*-darwin*,i?86-*-darwin* | powerpc64*-*-darwin*,powerpc*-*-darwin*)
30351 darwin_try_test=1;;
30352 *) ;;
30353 esac
30355 # If the configurer specified a minimum ld64 version to be supported, then use
30356 # that to determine feature support.
30357 if test x"${gcc_cv_ld64_version}" != x; then
30358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ld64 specified version" >&5
30359 $as_echo_n "checking ld64 specified version... " >&6; }
30360 gcc_cv_ld64_major=`echo "$gcc_cv_ld64_version" | sed -e 's/\..*//'`
30361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_major" >&5
30362 $as_echo "$gcc_cv_ld64_major" >&6; }
30363 if test "$gcc_cv_ld64_major" -ge 236; then
30364 gcc_cv_ld64_export_dynamic=1
30366 if test "$gcc_cv_ld64_major" -ge 512; then
30367 gcc_cv_ld64_platform_version=1
30369 elif test -x "$gcc_cv_ld" -a "$darwin_try_test" -eq 1; then
30370 # If the version was not specified, try to find it.
30371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker version" >&5
30372 $as_echo_n "checking linker version... " >&6; }
30373 if test x"${gcc_cv_ld64_version}" = x; then
30374 gcc_cv_ld64_version=`$gcc_cv_ld -v 2>&1 | grep ld64 | sed s/.*ld64-// | awk '{print $1}'`
30376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_version" >&5
30377 $as_echo "$gcc_cv_ld64_version" >&6; }
30379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for -export_dynamic support" >&5
30380 $as_echo_n "checking linker for -export_dynamic support... " >&6; }
30381 gcc_cv_ld64_export_dynamic=1
30382 if $gcc_cv_ld -export_dynamic < /dev/null 2>&1 | grep 'unknown option' > /dev/null; then
30383 gcc_cv_ld64_export_dynamic=0
30385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_export_dynamic" >&5
30386 $as_echo "$gcc_cv_ld64_export_dynamic" >&6; }
30388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for -platform_version support" >&5
30389 $as_echo_n "checking linker for -platform_version support... " >&6; }
30390 gcc_cv_ld64_platform_version=1
30391 if $gcc_cv_ld -platform_version macos 10.5 0.0 < /dev/null 2>&1 | grep 'unknown option' > /dev/null; then
30392 gcc_cv_ld64_platform_version=0
30394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_platform_version" >&5
30395 $as_echo "$gcc_cv_ld64_platform_version" >&6; }
30398 if test x"${gcc_cv_ld64_version}" != x; then
30400 cat >>confdefs.h <<_ACEOF
30401 #define LD64_VERSION "${gcc_cv_ld64_version}"
30402 _ACEOF
30407 cat >>confdefs.h <<_ACEOF
30408 #define LD64_HAS_EXPORT_DYNAMIC $gcc_cv_ld64_export_dynamic
30409 _ACEOF
30413 cat >>confdefs.h <<_ACEOF
30414 #define LD64_HAS_PLATFORM_VERSION $gcc_cv_ld64_platform_version
30415 _ACEOF
30419 if test x"$dsymutil_flag" = x"yes"; then
30421 # If the user specified a dsymutil path, then we will already have the
30422 # version string, otherwise, pick it up.
30423 if test x"$gcc_cv_dsymutil" = x; then
30424 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dsymutil is a required tool for this system, but not found" >&5
30425 $as_echo "$as_me: WARNING: dsymutil is a required tool for this system, but not found" >&2;}
30426 dsymutil_vers="tool unspecified"
30427 elif test x"$dsymutil_vers" = x; then
30428 dsymutil_vers=`$gcc_cv_dsymutil -v /dev/null 2>&1`
30431 dsymutil_temp=`echo $dsymutil_vers | sed 1q`
30432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dsymutil version \"$dsymutil_temp\"" >&5
30433 $as_echo_n "checking dsymutil version \"$dsymutil_temp\"... " >&6; }
30434 if echo $dsymutil_temp | grep dwarfutils- > /dev/null; then
30435 dsymutil_kind=DWARFUTILS
30436 dsymutil_vers=`echo $dsymutil_temp | sed 's/.*dwarfutils-\([0-9\.]*\).*/\1/'`
30437 elif echo $dsymutil_temp | grep clang- > /dev/null; then
30438 dsymutil_kind=CLANG
30439 dsymutil_vers=`echo $dsymutil_temp | sed 's/.*clang-\([0-9\.]*\).*/\1/'`
30440 elif echo $dsymutil_temp | grep 'LLVM version ' > /dev/null; then
30441 dsymutil_kind=LLVM
30442 dsymutil_vers=`echo $dsymutil_temp | sed 's/.*LLVM\ version\ \([0-9\.]*\).*/\1/'`
30443 else
30444 dsymutil_kind=UNKNOWN
30445 dsymutil_vers="0.0"
30447 dsymutil_major=`expr "$dsymutil_vers" : '\([0-9]*\)'`
30448 dsymutil_minor=`expr "$dsymutil_vers" : '[0-9]*\.\([0-9]*\)'`
30449 dsymutil_tiny=`expr "$dsymutil_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
30450 if test x"${dsymutil_minor}" = x; then
30451 dsymutil_minor=0
30453 if test x"${dsymutil_tiny}" = x; then
30454 dsymutil_tiny=0
30457 cat >>confdefs.h <<_ACEOF
30458 #define DSYMUTIL_VERSION $dsymutil_kind,${dsymutil_major},${dsymutil_minor},${dsymutil_tiny}
30459 _ACEOF
30461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dsymutil_vers : $dsymutil_kind ${dsymutil_major} ${dsymutil_minor} ${dsymutil_tiny} " >&5
30462 $as_echo "$dsymutil_vers : $dsymutil_kind ${dsymutil_major} ${dsymutil_minor} ${dsymutil_tiny} " >&6; }
30465 case $target_os in
30466 win32 | pe | cygwin* | mingw32*)
30467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking broken PE linker dwarf5 support" >&5
30468 $as_echo_n "checking broken PE linker dwarf5 support... " >&6; }
30469 gcc_cv_ld_broken_pe_dwarf5=yes
30470 if test $in_tree_ld = yes ; then
30471 if grep -q '\.debug_loclists.*BLOCK.*__section_alignment__.*NOLOAD.*:' \
30472 $gcc_cv_ld_gld_srcdir/scripttempl/pe*.sc \
30473 && grep -q '\.debug_rnglists.*BLOCK.*__section_alignment__.*NOLOAD.*:' \
30474 $gcc_cv_ld_gld_srcdir/scripttempl/pe*.sc; then
30475 gcc_cv_ld_broken_pe_dwarf5=no
30477 else
30478 if $gcc_cv_ld --verbose 2>&1 | grep -q '\.debug_loclists.*BLOCK.*__section_alignment__.*NOLOAD.*:' \
30479 && $gcc_cv_ld --verbose 2>&1 | grep -q '\.debug_rnglists.*BLOCK.*__section_alignment__.*NOLOAD.*:'; then
30480 gcc_cv_ld_broken_pe_dwarf5=no
30483 if test x$gcc_cv_ld_broken_pe_dwarf5 = xyes; then
30485 $as_echo "#define HAVE_LD_BROKEN_PE_DWARF5 1" >>confdefs.h
30488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_broken_pe_dwarf5" >&5
30489 $as_echo "$gcc_cv_ld_broken_pe_dwarf5" >&6; }
30491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking PE linker --disable-dynamicbase support" >&5
30492 $as_echo_n "checking PE linker --disable-dynamicbase support... " >&6; }
30493 gcc_cv_ld_disable_dynamicbase=no
30494 if test $in_tree_ld = yes; then
30495 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 \
30496 gcc_cv_ld_disable_dynamicbase=yes
30498 else
30499 if $gcc_cv_ld --help 2>&1 | grep -q 'disable\-]dynamicbase' > /dev/null; then
30500 gcc_cv_ld_disable_dynamicbase=yes
30503 if test x"$gcc_cv_ld_disable_dynamicbase" = xyes; then
30505 $as_echo "#define HAVE_LD_PE_DISABLE_DYNAMICBASE 1" >>confdefs.h
30508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_disable_dynamicbase" >&5
30509 $as_echo "$gcc_cv_ld_disable_dynamicbase" >&6; }
30511 esac
30513 # --------
30514 # UNSORTED
30515 # --------
30517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
30518 $as_echo_n "checking linker --as-needed support... " >&6; }
30519 if ${gcc_cv_ld_as_needed+:} false; then :
30520 $as_echo_n "(cached) " >&6
30521 else
30522 gcc_cv_ld_as_needed=no
30523 gcc_cv_ld_as_needed_option='--as-needed'
30524 gcc_cv_ld_no_as_needed_option='--no-as-needed'
30525 if test $in_tree_ld = yes ; then
30526 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 \
30527 && test $in_tree_ld_is_elf = yes; then
30528 gcc_cv_ld_as_needed=yes
30529 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 28; then
30530 gcc_cv_ld_as_needed_option='--push-state --as-needed'
30531 gcc_cv_ld_no_as_needed_option='--pop-state'
30534 elif test x$gcc_cv_ld != x; then
30535 # Check if linker supports --as-needed and --no-as-needed options
30536 if $gcc_cv_ld --help 2>&1 | grep as-needed > /dev/null; then
30537 gcc_cv_ld_as_needed=yes
30538 if $gcc_cv_ld --help 2>&1 | grep push-state > /dev/null \
30539 && $gcc_cv_ld --help 2>&1 | grep pop-state > /dev/null \
30540 && echo "$ld_ver" | grep GNU > /dev/null \
30541 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 28; then
30542 # Use these options only when both ld.bfd and ld.gold support
30543 # --push-state/--pop-state, which unfortunately wasn't added
30544 # at the same time.
30545 gcc_cv_ld_as_needed_option='--push-state --as-needed'
30546 gcc_cv_ld_no_as_needed_option='--pop-state'
30549 case "$target:$gnu_ld" in
30550 *-*-solaris2*:no)
30551 # Solaris 2 ld always supports -z ignore/-z record. Prefer the native
30552 # forms.
30553 gcc_cv_ld_as_needed=yes
30554 gcc_cv_ld_as_needed_option="-z ignore"
30555 gcc_cv_ld_no_as_needed_option="-z record"
30557 esac
30559 # --as-needed/-z ignore can only be used if libgcc_s.so.1 uses
30560 # dl_iterate_phdr, i.e. since Solaris 11.
30561 case "$target" in
30562 *-*-solaris2.1[1-9]*)
30563 case "$target" in
30564 i?86-*-* | x86_64-*-*)
30565 if echo "$ld_ver" | grep GNU > /dev/null; then
30566 # Doesn't work with gld on Solaris/x86 due to PR ld/12320.
30567 gcc_cv_ld_as_needed=no
30570 esac
30572 *-*-solaris2*)
30573 gcc_cv_ld_as_needed=no
30575 esac
30578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
30579 $as_echo "$gcc_cv_ld_as_needed" >&6; }
30580 if test x"$gcc_cv_ld_as_needed" = xyes; then
30582 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
30585 cat >>confdefs.h <<_ACEOF
30586 #define LD_AS_NEEDED_OPTION "$gcc_cv_ld_as_needed_option"
30587 _ACEOF
30590 cat >>confdefs.h <<_ACEOF
30591 #define LD_NO_AS_NEEDED_OPTION "$gcc_cv_ld_no_as_needed_option"
30592 _ACEOF
30596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker mapfile support for clearing hardware capabilities" >&5
30597 $as_echo_n "checking linker mapfile support for clearing hardware capabilities... " >&6; }
30598 saved_LDFLAGS="$LDFLAGS"
30599 for clearcap_map in sol2-clearcapv2.map sol2-clearcap.map; do
30600 LDFLAGS="$saved_LDFLAGS -Wl,-M,${srcdir}/config/$clearcap_map"
30601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30602 /* end confdefs.h. */
30603 int main(void) {return 0;}
30604 _ACEOF
30605 if ac_fn_cxx_try_link "$LINENO"; then :
30606 gcc_cv_ld_clearcap=yes; break
30607 else
30608 gcc_cv_ld_clearcap=no
30610 rm -f core conftest.err conftest.$ac_objext \
30611 conftest$ac_exeext conftest.$ac_ext
30612 done
30613 LDFLAGS="$saved_LDFLAGS"
30614 if test "x$gcc_cv_ld_clearcap" = xyes; then
30616 $as_echo "#define HAVE_LD_CLEARCAP 1" >>confdefs.h
30618 ac_config_links="$ac_config_links clearcap.map:${srcdir}/config/$clearcap_map"
30621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_clearcap" >&5
30622 $as_echo "$gcc_cv_ld_clearcap" >&6; }
30624 case "$target" in
30625 powerpc*-*-*)
30626 case "$target" in
30627 *le-*-linux*)
30628 emul_name="-melf32lppc"
30631 emul_name="-melf32ppc"
30633 esac
30634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker .gnu.attributes long double support" >&5
30635 $as_echo_n "checking linker .gnu.attributes long double support... " >&6; }
30636 if ${gcc_cv_ld_ppc_attr+:} false; then :
30637 $as_echo_n "(cached) " >&6
30638 else
30639 gcc_cv_ld_ppc_attr=no
30640 if test x"$ld_is_gold" = xyes; then
30641 gcc_cv_ld_ppc_attr=yes
30642 elif test $in_tree_ld = yes ; then
30643 if test "$gcc_cv_gld_major_version" -eq 2 \
30644 -a "$gcc_cv_gld_minor_version" -ge 28 \
30645 -o "$gcc_cv_gld_major_version" -gt 2; then
30646 gcc_cv_ld_ppc_attr=yes
30648 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
30649 # check that merging the long double .gnu_attribute doesn't warn
30650 cat > conftest1.s <<EOF
30651 .gnu_attribute 4,1
30653 cat > conftest2.s <<EOF
30654 .gnu_attribute 4,9
30656 if $gcc_cv_as -a32 -o conftest1.o conftest1.s > /dev/null 2>&1 \
30657 && $gcc_cv_as -a32 -o conftest2.o conftest2.s > /dev/null 2>&1 \
30658 && $gcc_cv_ld $emul_name -r -o conftest.o conftest1.o conftest2.o > /dev/null 2> conftest.err \
30659 && test ! -s conftest.err; then
30660 gcc_cv_ld_ppc_attr=yes
30662 rm -f conftest.err conftest.o conftest1.o conftest2.o conftest1.s conftest2.s
30666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ppc_attr" >&5
30667 $as_echo "$gcc_cv_ld_ppc_attr" >&6; }
30668 if test x$gcc_cv_ld_ppc_attr = xyes; then
30670 $as_echo "#define HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE 1" >>confdefs.h
30674 esac
30676 case "$target:$tm_file" in
30677 powerpc64*-*-freebsd* | powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
30678 case "$target" in
30679 *le-*-linux*)
30680 emul_name="-melf64lppc"
30682 *-*-linux*)
30683 emul_name="-melf64ppc"
30685 *le-*-freebsd*)
30686 emul_name="-melf64lppc_fbsd"
30688 *-*-freebsd*)
30689 emul_name="-melf64ppc_fbsd"
30691 esac
30692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
30693 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
30694 if ${gcc_cv_ld_no_dot_syms+:} false; then :
30695 $as_echo_n "(cached) " >&6
30696 else
30697 gcc_cv_ld_no_dot_syms=no
30698 if test x"$ld_is_gold" = xyes; then
30699 gcc_cv_ld_no_dot_syms=yes
30700 elif test $in_tree_ld = yes ; then
30701 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 16 -o "$gcc_cv_gld_major_version" -gt 2; then
30702 gcc_cv_ld_no_dot_syms=yes
30704 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
30705 cat > conftest1.s <<EOF
30706 .text
30707 bl .foo
30709 cat > conftest2.s <<EOF
30710 .section ".opd","aw"
30711 .align 3
30712 .globl foo
30713 .type foo,@function
30714 foo:
30715 .quad .LEfoo,.TOC.@tocbase,0
30716 .text
30717 .LEfoo:
30719 .size foo,.-.LEfoo
30721 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
30722 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
30723 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
30724 gcc_cv_ld_no_dot_syms=yes
30726 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
30730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
30731 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
30732 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
30734 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
30738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
30739 $as_echo_n "checking linker large toc support... " >&6; }
30740 if ${gcc_cv_ld_large_toc+:} false; then :
30741 $as_echo_n "(cached) " >&6
30742 else
30743 gcc_cv_ld_large_toc=no
30744 if test x"$ld_is_gold" = xyes; then
30745 gcc_cv_ld_large_toc=yes
30746 elif test $in_tree_ld = yes ; then
30747 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
30748 gcc_cv_ld_large_toc=yes
30750 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
30751 cat > conftest.s <<EOF
30752 .section ".tbss","awT",@nobits
30753 .align 3
30754 ie0: .space 8
30755 .global _start
30756 .text
30757 _start:
30758 addis 9,13,ie0@got@tprel@ha
30759 ld 9,ie0@got@tprel@l(9)
30761 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
30762 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
30763 gcc_cv_ld_large_toc=yes
30765 rm -f conftest conftest.o conftest.s
30769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
30770 $as_echo "$gcc_cv_ld_large_toc" >&6; }
30771 if test x"$gcc_cv_ld_large_toc" = xyes; then
30773 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
30777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker toc pointer alignment" >&5
30778 $as_echo_n "checking linker toc pointer alignment... " >&6; }
30779 if ${gcc_cv_ld_toc_align+:} false; then :
30780 $as_echo_n "(cached) " >&6
30781 else
30782 if test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_nm != x; then
30783 cat > conftest.s <<EOF
30784 .global _start
30785 .text
30786 _start:
30787 addis 9,2,x@got@ha
30788 .section .data.rel.ro,"aw",@progbits
30789 .p2align 16
30790 .space 32768
30791 x: .quad .TOC.
30793 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
30794 && $gcc_cv_ld $emul_name -z norelro -o conftest conftest.o > /dev/null 2>&1; then
30795 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)) }'`
30797 rm -f conftest conftest.o conftest.s
30801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_toc_align" >&5
30802 $as_echo "$gcc_cv_ld_toc_align" >&6; }
30803 if test -n "$gcc_cv_ld_toc_align" && test $gcc_cv_ld_toc_align -gt 8; then
30805 cat >>confdefs.h <<_ACEOF
30806 #define POWERPC64_TOC_POINTER_ALIGNMENT $gcc_cv_ld_toc_align
30807 _ACEOF
30811 esac
30813 case "$target" in
30814 *-*-aix*)
30815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
30816 $as_echo_n "checking linker large toc support... " >&6; }
30817 if ${gcc_cv_ld_large_toc+:} false; then :
30818 $as_echo_n "(cached) " >&6
30819 else
30820 gcc_cv_ld_large_toc=no
30821 if test x$gcc_cv_as != x ; then
30822 cat > conftest.s <<EOF
30823 .toc
30824 LC..1:
30825 .tc a[TC],a[RW]
30826 .extern a[RW]
30827 .csect .text[PR]
30828 .largetoctest:
30829 addis 9,LC..1@u(2)
30830 ld 3,LC..1@l(9)
30832 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1; then
30833 gcc_cv_ld_large_toc=yes
30835 rm -f conftest conftest.o conftest.s
30839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
30840 $as_echo "$gcc_cv_ld_large_toc" >&6; }
30841 if test x"$gcc_cv_ld_large_toc" = xyes; then
30843 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
30847 esac
30849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
30850 $as_echo_n "checking linker --build-id support... " >&6; }
30851 if ${gcc_cv_ld_buildid+:} false; then :
30852 $as_echo_n "(cached) " >&6
30853 else
30854 gcc_cv_ld_buildid=no
30855 if test $in_tree_ld = yes ; then
30856 if test "$gcc_cv_gld_major_version" -eq 2 -a \
30857 "$gcc_cv_gld_minor_version" -ge 18 -o \
30858 "$gcc_cv_gld_major_version" -gt 2 \
30859 && test $in_tree_ld_is_elf = yes; then
30860 gcc_cv_ld_buildid=yes
30862 elif test x$gcc_cv_ld != x; then
30863 if $gcc_cv_ld --help 2>&1 | grep build-id > /dev/null; then
30864 gcc_cv_ld_buildid=yes
30868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
30869 $as_echo "$gcc_cv_ld_buildid" >&6; }
30870 if test x"$gcc_cv_ld_buildid" = xyes; then
30872 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
30876 # Check whether --enable-linker-build-id was given.
30877 if test "${enable_linker_build_id+set}" = set; then :
30878 enableval=$enable_linker_build_id;
30879 else
30880 enable_linker_build_id=no
30884 if test x"$enable_linker_build_id" = xyes; then
30885 if test x"$gcc_cv_ld_buildid" = xyes; then
30887 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
30889 else
30890 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
30891 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
30895 # In binutils 2.21, GNU ld gained support for new emulations fully
30896 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
30897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
30898 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
30899 if ${gcc_cv_ld_sol2_emulation+:} false; then :
30900 $as_echo_n "(cached) " >&6
30901 else
30902 gcc_cv_ld_sol2_emulation=no
30903 if test $in_tree_ld = yes ; then
30904 if test "$gcc_cv_gld_major_version" -eq 2 -a \
30905 "$gcc_cv_gld_minor_version" -ge 21 -o \
30906 "$gcc_cv_gld_major_version" -gt 2 \
30907 && test $in_tree_ld_is_elf = yes; then
30908 gcc_cv_ld_sol2_emulation=yes
30910 elif test x$gcc_cv_ld != x; then
30911 if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
30912 grep _sol2 > /dev/null; then
30913 gcc_cv_ld_sol2_emulation=yes
30917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
30918 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
30919 if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
30921 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
30925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
30926 $as_echo_n "checking linker --sysroot support... " >&6; }
30927 if ${gcc_cv_ld_sysroot+:} false; then :
30928 $as_echo_n "(cached) " >&6
30929 else
30930 gcc_cv_ld_sysroot=no
30931 if test $in_tree_ld = yes ; then
30932 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
30933 gcc_cv_ld_sysroot=yes
30935 elif test x$gcc_cv_ld != x; then
30936 if $gcc_cv_ld --help 2>&1 | grep sysroot > /dev/null; then
30937 gcc_cv_ld_sysroot=yes
30941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
30942 $as_echo "$gcc_cv_ld_sysroot" >&6; }
30943 if test x"$gcc_cv_ld_sysroot" = xyes; then
30945 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
30949 case $target in
30950 *-*-solaris2*)
30951 # Check for system-provided CRTs on Solaris 11.x and Solaris 12.
30952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking system-provided CRTs on Solaris" >&5
30953 $as_echo_n "checking system-provided CRTs on Solaris... " >&6; }
30954 if ${gcc_cv_solaris_crts+:} false; then :
30955 $as_echo_n "(cached) " >&6
30956 else
30957 gcc_cv_solaris_crts=no
30958 if test x$host != x$target; then
30959 if test "x$with_sysroot" = xyes; then
30960 target_sysroot="${test_exec_prefix}/${target_noncanonical}/sys-root"
30961 else
30962 target_sysroot="${with_sysroot}"
30965 target_libdir="$target_sysroot/usr/lib"
30966 # At the time they were added, gcrt1.o became a symlink for backwards
30967 # compatibility on x86, while crt1.o was added on sparc, so check for that.
30968 case $target in
30969 i?86-*-solaris2* | x86_64-*-solaris2*)
30970 if test -h "$target_libdir/gcrt1.o"; then gcc_cv_solaris_crts=yes; fi
30972 sparc*-*-solaris2*)
30973 if test -f "$target_libdir/crt1.o"; then gcc_cv_solaris_crts=yes; fi
30975 esac
30977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_solaris_crts" >&5
30978 $as_echo "$gcc_cv_solaris_crts" >&6; }
30980 esac
30981 if test x$gcc_cv_solaris_crts = xyes; then
30983 $as_echo "#define HAVE_SOLARIS_CRTS 1" >>confdefs.h
30987 # Check whether --enable-libssp was given.
30988 if test "${enable_libssp+set}" = set; then :
30989 enableval=$enable_libssp; case "${enableval}" in
30990 yes|no)
30993 as_fn_error $? "unknown libssp setting $enableval" "$LINENO" 5
30995 esac
30999 # Test for stack protector support in target C library.
31000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
31001 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
31002 if ${gcc_cv_libc_provides_ssp+:} false; then :
31003 $as_echo_n "(cached) " >&6
31004 else
31005 gcc_cv_libc_provides_ssp=no
31006 if test "x$enable_libssp" = "xno"; then
31007 gcc_cv_libc_provides_ssp=yes
31008 elif test "x$enable_libssp" = "xyes"; then
31009 gcc_cv_libc_provides_ssp=no
31010 else
31011 case "$target" in
31012 *-*-musl*)
31013 # All versions of musl provide stack protector
31014 gcc_cv_libc_provides_ssp=yes;;
31015 *-*-linux* | *-*-kfreebsd*-gnu)
31016 # glibc 2.4 and later provides __stack_chk_fail and
31017 # either __stack_chk_guard, or TLS access to stack guard canary.
31019 if test $glibc_version_major -gt 2 \
31020 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
31021 gcc_cv_libc_provides_ssp=yes
31022 else
31024 if test -f $target_header_dir/features.h \
31025 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
31026 $target_header_dir/features.h > /dev/null; then
31027 if $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
31028 $target_header_dir/features.h > /dev/null && \
31029 test -f $target_header_dir/bits/uClibc_config.h && \
31030 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
31031 $target_header_dir/bits/uClibc_config.h > /dev/null; then
31032 gcc_cv_libc_provides_ssp=yes
31034 # all versions of Bionic support stack protector
31035 elif test -f $target_header_dir/sys/cdefs.h \
31036 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
31037 $target_header_dir/sys/cdefs.h > /dev/null; then
31038 gcc_cv_libc_provides_ssp=yes
31042 *-*-gnu*)
31043 # Avoid complicated tests (see
31044 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
31045 # simply assert that glibc does provide this, which is true for all
31046 # realistically usable GNU/Hurd configurations.
31047 # All supported versions of musl provide it as well
31048 gcc_cv_libc_provides_ssp=yes;;
31049 *-*-darwin* | *-*-freebsd* | *-*-netbsd*)
31050 ac_fn_cxx_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
31051 if test "x$ac_cv_func___stack_chk_fail" = xyes; then :
31052 gcc_cv_libc_provides_ssp=yes
31053 else
31054 echo "no __stack_chk_fail on this target"
31058 *) gcc_cv_libc_provides_ssp=no ;;
31059 esac
31062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
31063 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
31065 if test x$gcc_cv_libc_provides_ssp = xyes; then
31067 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
31071 # Check whether --enable-default-ssp was given.
31072 # Check whether --enable-default-ssp was given.
31073 if test "${enable_default_ssp+set}" = set; then :
31074 enableval=$enable_default_ssp;
31075 if test x$gcc_cv_libc_provides_ssp = xyes; then
31076 case "$target" in
31077 ia64*-*-*) enable_default_ssp=no ;;
31078 *) enable_default_ssp=$enableval ;;
31079 esac
31080 else
31081 enable_default_ssp=no
31083 else
31084 enable_default_ssp=no
31087 if test x$enable_default_ssp = xyes ; then
31089 $as_echo "#define ENABLE_DEFAULT_SSP 1" >>confdefs.h
31094 # Test for <sys/sdt.h> on the target.
31096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
31097 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
31098 if ${gcc_cv_sys_sdt_h+:} false; then :
31099 $as_echo_n "(cached) " >&6
31100 else
31102 gcc_cv_sys_sdt_h=no
31103 if test -f $target_header_dir/sys/sdt.h; then
31104 gcc_cv_sys_sdt_h=yes
31108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_sys_sdt_h" >&5
31109 $as_echo "$gcc_cv_sys_sdt_h" >&6; }
31110 if test x$gcc_cv_sys_sdt_h = xyes; then :
31113 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
31118 # Check if TFmode long double should be used by default or not.
31119 # Some glibc targets used DFmode long double, but with glibc 2.4
31120 # and later they can use TFmode.
31121 case "$target" in
31122 powerpc*-*-linux* | \
31123 sparc*-*-linux* | \
31124 s390*-*-linux* | \
31125 alpha*-*-linux*)
31127 # Check whether --with-long-double-128 was given.
31128 if test "${with_long_double_128+set}" = set; then :
31129 withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
31130 else
31132 case "$target" in
31133 s390*-*-linux-musl*)
31134 gcc_cv_target_ldbl128=yes
31136 powerpc*-*-linux-musl*)
31137 gcc_cv_target_ldbl128=no
31141 if test $glibc_version_major -gt 2 \
31142 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
31143 gcc_cv_target_ldbl128=yes
31144 else
31146 gcc_cv_target_ldbl128=no
31147 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
31148 $target_header_dir/bits/wordsize.h > /dev/null 2>&1 \
31149 && gcc_cv_target_ldbl128=yes
31154 esac
31159 esac
31160 if test x$gcc_cv_target_ldbl128 = xyes; then
31162 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
31166 # Check if TFmode long double target should use the IBM extended double or IEEE
31167 # 128-bit floating point formats if long doubles are 128-bits long. The long
31168 # double type can only be switched on powerpc64 bit Linux systems where VSX is
31169 # supported. Other PowerPC systems do not build the IEEE 128-bit emulator in
31170 # libgcc.
31172 # Check whether --with-long-double-format was given.
31173 if test "${with_long_double_format+set}" = set; then :
31174 withval=$with_long_double_format;
31175 case "$target:$with_long_double_format" in
31176 powerpc64le-*-linux*:ieee | powerpc64le-*-linux*:ibm)
31179 powerpc64-*-linux*:ieee | powerpc64-*-linux*:ibm)
31180 # IEEE 128-bit emulation is only built on 64-bit VSX Linux systems
31181 case "$with_cpu" in
31182 power7 | power8 | power9 | power1*)
31186 as_fn_error $? "Configuration option --with-long-double-format is only \
31187 supported if the default cpu is power7 or newer" "$LINENO" 5
31188 with_long_double_format=""
31190 esac
31192 powerpc64*-*-linux*:*)
31193 as_fn_error $? "--with-long-double-format argument should be ibm or ieee" "$LINENO" 5
31194 with_long_double_format=""
31197 as_fn_error $? "Configure option --with-long-double-format is only supported \
31198 on 64-bit PowerPC VSX Linux systems" "$LINENO" 5
31199 with_long_double_format=""
31201 esac
31205 # Check if the target LIBC supports exporting the AT_PLATFORM and AT_HWCAP
31206 # values in the TCB. Currently, only GLIBC 2.23 and later support this.
31207 gcc_cv_libc_provides_hwcap_in_tcb=no
31208 case "$target" in
31209 powerpc*-*-linux*)
31211 if test $glibc_version_major -gt 2 \
31212 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 23 ); then :
31213 gcc_cv_libc_provides_hwcap_in_tcb=yes
31216 esac
31217 if test x$gcc_cv_libc_provides_hwcap_in_tcb = xyes; then
31219 $as_echo "#define TARGET_LIBC_PROVIDES_HWCAP_IN_TCB 1" >>confdefs.h
31223 # Check if the target LIBC handles PT_GNU_STACK.
31224 gcc_cv_libc_gnustack=unknown
31225 case "$target" in
31226 mips*-*-linux-musl*)
31227 gcc_cv_libc_gnustack=yes
31229 mips*-*-linux*)
31231 if test $glibc_version_major -gt 2 \
31232 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 31 ); then :
31233 gcc_cv_libc_gnustack=yes
31236 esac
31237 if test x$gcc_cv_libc_gnustack = xyes; then
31239 $as_echo "#define TARGET_LIBC_GNUSTACK 1" >>confdefs.h
31243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
31244 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
31245 gcc_cv_target_dl_iterate_phdr=unknown
31246 case "$target" in
31247 *-*-solaris2*)
31248 # <link.h> needs both a dl_iterate_phdr declaration and support for
31249 # compilation with largefile support.
31250 if grep dl_iterate_phdr $target_header_dir/link.h > /dev/null 2>&1 \
31251 && grep 'large file capable' $target_header_dir/link.h > /dev/null 2>&1; then
31252 gcc_cv_target_dl_iterate_phdr=yes
31253 else
31254 gcc_cv_target_dl_iterate_phdr=no
31257 *-*-dragonfly* | *-*-freebsd*)
31258 if grep dl_iterate_phdr $target_header_dir/sys/link_elf.h > /dev/null 2>&1; then
31259 gcc_cv_target_dl_iterate_phdr=yes
31260 else
31261 gcc_cv_target_dl_iterate_phdr=no
31264 *-linux-musl*)
31265 gcc_cv_target_dl_iterate_phdr=yes
31267 esac
31269 if test x$gcc_cv_target_dl_iterate_phdr = xyes; then
31271 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
31274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
31275 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
31277 # We no longer support different GC mechanisms. Emit an error if
31278 # the user configures with --with-gc.
31280 # Check whether --with-gc was given.
31281 if test "${with_gc+set}" = set; then :
31282 withval=$with_gc; as_fn_error $? "Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
31286 # Libraries to use on the host. This will normally be set by the top
31287 # level Makefile. Here we simply capture the value for our Makefile.
31288 if test -z "${HOST_LIBS+set}"; then
31289 HOST_LIBS=
31293 # Use the system's zlib library.
31295 # Use the system's zlib library.
31296 zlibdir="-L\$(top_builddir)/../zlib"
31297 zlibinc="-I\$(top_srcdir)/../zlib"
31299 # Check whether --with-system-zlib was given.
31300 if test "${with_system_zlib+set}" = set; then :
31301 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
31302 zlibdir=
31303 zlibinc=
31313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
31314 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
31315 # Check whether --enable-maintainer-mode was given.
31316 if test "${enable_maintainer_mode+set}" = set; then :
31317 enableval=$enable_maintainer_mode; maintainer_mode=$enableval
31318 else
31319 maintainer_mode=no
31323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
31324 $as_echo "$maintainer_mode" >&6; }
31326 if test "$maintainer_mode" = "yes"; then
31327 MAINT=''
31328 else
31329 MAINT='#'
31332 if test -z "$CTAGS"; then
31333 CTAGS=ctags
31336 if test -z "$ETAGS"; then
31337 ETAGS=etags
31340 if test -z "$CSCOPE"; then
31341 CSCOPE=cscope
31346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid linking multiple front-ends at once" >&5
31347 $as_echo_n "checking whether to avoid linking multiple front-ends at once... " >&6; }
31348 # Check whether --enable-link-mutex was given.
31349 if test "${enable_link_mutex+set}" = set; then :
31350 enableval=$enable_link_mutex; do_link_mutex=$enableval
31351 else
31352 do_link_mutex=no
31355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_mutex" >&5
31356 $as_echo "$do_link_mutex" >&6; }
31358 if test "$do_link_mutex" = "yes"; then
31359 DO_LINK_MUTEX=true
31360 else
31361 DO_LINK_MUTEX=false
31366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to serialize linking of multiple front-ends" >&5
31367 $as_echo_n "checking whether to serialize linking of multiple front-ends... " >&6; }
31368 # Check whether --enable-link-serialization was given.
31369 if test "${enable_link_serialization+set}" = set; then :
31370 enableval=$enable_link_serialization; do_link_serialization=$enableval
31371 else
31372 do_link_serialization=no
31375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_serialization" >&5
31376 $as_echo "$do_link_serialization" >&6; }
31378 case "$do_link_serialization" in
31379 yes)
31380 DO_LINK_SERIALIZATION=1;;
31381 [1-9] | [1-9][0-9] | [1-9][0-9][0-9])
31382 DO_LINK_SERIALIZATION=$do_link_serialization;;
31384 DO_LINK_SERIALIZATION=;;
31386 as_fn_error $? "bad value ${do_link_serialization} given for --enable-link-serialization" "$LINENO" 5 ;;
31387 esac
31390 # --------------
31391 # Language hooks
31392 # --------------
31394 # Make empty files to contain the specs and options for each language.
31395 # Then add #include lines to for a compiler that has specs and/or options.
31397 subdirs=
31398 lang_opt_files=
31399 lang_specs_files=
31400 lang_tree_files=
31401 # These (without "all_") are set in each config-lang.in.
31402 # `language' must be a single word so is spelled singularly.
31403 all_languages=
31404 all_compilers=
31405 all_outputs='Makefile'
31406 # List of language configure and makefile fragments.
31407 all_lang_configurefrags=
31408 all_lang_makefrags=
31409 # Additional files for gengtype
31410 all_gtfiles="$target_gtfiles"
31412 # These are the languages that are set in --enable-languages,
31413 # and are available in the GCC tree.
31414 all_selected_languages=
31416 # Add the language fragments.
31417 # Languages are added via two mechanisms. Some information must be
31418 # recorded in makefile variables, these are defined in config-lang.in.
31419 # We accumulate them and plug them into the main Makefile.
31420 # The other mechanism is a set of hooks for each of the main targets
31421 # like `clean', `install', etc.
31423 language_hooks="Make-hooks"
31425 for lang in ${srcdir}/*/config-lang.in
31427 test "$lang" = "${srcdir}/*/config-lang.in" && continue
31429 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
31430 if test "x$lang_alias" = x
31431 then
31432 echo "$lang doesn't set \$language." 1>&2
31433 exit 1
31435 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
31436 subdirs="$subdirs $subdir"
31438 # $gcc_subdir is where the gcc integration files are to be found
31439 # for a language, both for internal compiler purposes (compiler
31440 # sources implementing front-end to GCC tree converters), and for
31441 # build infrastructure purposes (Make-lang.in, etc.)
31443 # This will be <subdir> (relative to $srcdir) if a line like
31444 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
31445 # is found in <langdir>/config-lang.in, and will remain <langdir>
31446 # otherwise.
31448 # Except for the language alias (fetched above), the regular
31449 # "config-lang.in" contents are always retrieved from $gcc_subdir,
31450 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
31451 # only this and the language alias.
31453 gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
31454 if [ "$gcc_subdir" = "" ]; then
31455 gcc_subdir="$subdir"
31458 case ",$enable_languages," in
31459 *,$lang_alias,*)
31460 all_selected_languages="$all_selected_languages $lang_alias"
31461 if test -f $srcdir/$gcc_subdir/lang-specs.h; then
31462 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
31465 esac
31467 language=
31468 boot_language=
31469 compilers=
31470 outputs=
31471 gtfiles=
31472 subdir_requires=
31473 . ${srcdir}/$gcc_subdir/config-lang.in
31474 if test "x$language" = x
31475 then
31476 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
31477 exit 1
31480 ok=:
31481 case ",$enable_languages," in
31482 *,$lang_alias,*) ;;
31484 for i in $subdir_requires; do
31485 test -f "${srcdir}/$i/config-lang.in" && continue
31486 ok=false
31487 break
31488 done
31490 esac
31491 $ok || continue
31493 all_lang_configurefrags="$all_lang_configurefrags \$(srcdir)/$gcc_subdir/config-lang.in"
31494 if test "x$language" = xc && test -n "$all_lang_makefrags"; then
31495 # Put c/Make-lang.in fragment first to match serialization languages order.
31496 all_lang_makefrags="\$(srcdir)/$gcc_subdir/Make-lang.in $all_lang_makefrags"
31497 else
31498 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
31500 if test -f $srcdir/$gcc_subdir/lang.opt; then
31501 lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
31502 all_opt_files="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
31504 if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
31505 lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
31507 all_languages="$all_languages $language"
31508 all_compilers="$all_compilers $compilers"
31509 all_outputs="$all_outputs $outputs"
31510 all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
31511 case ",$enable_languages," in
31512 *,lto,*)
31514 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
31516 enable_lto=yes
31519 *) ;;
31520 esac
31521 done
31523 check_languages=
31524 for language in $all_selected_languages
31526 check_languages="$check_languages check-$language"
31527 done
31529 selftest_languages=
31530 for language in $all_selected_languages
31532 selftest_languages="$selftest_languages selftest-$language"
31533 done
31535 # We link each language in with a set of hooks, reached indirectly via
31536 # lang.${target}. Only do so for selected languages.
31538 rm -f Make-hooks
31539 touch Make-hooks
31540 target_list="all.cross start.encap rest.encap tags \
31541 install-common install-man install-info install-dvi install-pdf \
31542 install-html dvi pdf html uninstall info man srcextra srcman srcinfo \
31543 mostlyclean clean distclean maintainer-clean install-plugin"
31545 for t in $target_list
31548 for lang in $all_selected_languages
31550 x="$x $lang.$t"
31551 done
31552 echo "lang.$t: $x" >> Make-hooks
31553 done
31555 echo "ifeq (\$(DO_LINK_SERIALIZATION),)" >> Make-hooks
31556 echo "SERIAL_LIST =" >> Make-hooks
31557 echo else >> Make-hooks
31558 lang_cnt=0
31559 lang_list=
31560 prev=c
31561 serialization_languages=c
31562 for lang in $all_selected_languages
31564 test $lang = c && continue
31565 if test $lang = lto; then
31566 serialization_languages="$serialization_languages lto1 lto2"
31567 else
31568 serialization_languages="$serialization_languages $lang"
31570 done
31571 for lang in $serialization_languages
31573 test $lang = c && continue
31574 lang_cnt=`expr $lang_cnt + 1`
31575 lang_list=" $prev$lang_list"
31576 prev=${lang}
31577 done
31578 echo "SERIAL_LIST = \$(wordlist \$(DO_LINK_SERIALIZATION),$lang_cnt,$lang_list)" >> Make-hooks
31579 echo endif >> Make-hooks
31580 echo "SERIAL_COUNT = `expr $lang_cnt + 1`" >> Make-hooks
31581 echo "INDEX.c = 0" >> Make-hooks
31582 lang_idx=1
31583 for lang in $serialization_languages
31585 test $lang = c && continue
31586 echo "$lang.prev = \$(if \$(word $lang_cnt,\$(SERIAL_LIST)),\$(\$(word $lang_cnt,\$(SERIAL_LIST)).serial))" >> Make-hooks
31587 echo "INDEX.$lang = $lang_idx" >> Make-hooks
31588 lang_cnt=`expr $lang_cnt - 1`
31589 lang_idx=`expr $lang_idx + 1`
31590 done
31592 # --------
31593 # Option include files
31594 # --------
31596 ${AWK} -f $srcdir/opt-include.awk $all_opt_files > option-includes.mk
31597 option_includes="option-includes.mk"
31600 # --------
31601 # UNSORTED
31602 # --------
31604 # Create .gdbinit.
31606 echo "dir ." > .gdbinit
31607 echo "dir ${srcdir}" >> .gdbinit
31608 if test x$gdb_needs_out_file_path = xyes
31609 then
31610 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
31612 if test "x$subdirs" != x; then
31613 for s in $subdirs
31615 echo "dir ${srcdir}/$s" >> .gdbinit
31616 done
31618 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
31619 echo "python import sys; sys.path.append('${srcdir}'); import gdbhooks" >> .gdbinit
31621 # Put a breakpoint on __asan_report_error to help with debugging buffer
31622 # overflow.
31623 case "$CFLAGS" in
31624 *-fsanitize=address*)
31625 echo "source ${srcdir}/gdbasan.in" >> .gdbinit
31627 esac
31629 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
31633 # Find a directory in which to install a shared libgcc.
31635 # Check whether --enable-version-specific-runtime-libs was given.
31636 if test "${enable_version_specific_runtime_libs+set}" = set; then :
31637 enableval=$enable_version_specific_runtime_libs;
31641 # Substitute configuration variables
31711 # Echo link setup.
31712 if test x${build} = x${host} ; then
31713 if test x${host} = x${target} ; then
31714 echo "Links are now set up to build a native compiler for ${target}." 1>&2
31715 else
31716 echo "Links are now set up to build a cross-compiler" 1>&2
31717 echo " from ${host} to ${target}." 1>&2
31719 else
31720 if test x${host} = x${target} ; then
31721 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
31722 echo " for ${target}." 1>&2
31723 else
31724 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
31725 echo " from ${host} to ${target}." 1>&2
31734 if test "x${ISLLIBS}" != "x" ; then
31736 $as_echo "#define HAVE_isl 1" >>confdefs.h
31740 # Check for plugin support
31741 # Check whether --enable-plugin was given.
31742 if test "${enable_plugin+set}" = set; then :
31743 enableval=$enable_plugin; enable_plugin=$enableval
31744 else
31745 enable_plugin=yes; default_plugin=yes
31749 pluginlibs=
31750 plugin_check=yes
31752 case "${host}" in
31753 *-*-mingw*)
31754 # Since plugin support under MinGW is not as straightforward as on
31755 # other platforms (e.g., we have to link import library, etc), we
31756 # only enable it if explicitly requested.
31757 if test x"$default_plugin" = x"yes"; then
31758 enable_plugin=no
31759 elif test x"$enable_plugin" = x"yes"; then
31760 # Use make's target variable to derive import library name.
31761 pluginlibs='-Wl,--export-all-symbols -Wl,--out-implib=$@.a'
31762 plugin_check=no
31765 *-*-darwin*)
31766 if test x$build = x$host; then
31767 export_sym_check="nm${exeext} -g"
31768 elif test x$host = x$target; then
31769 export_sym_check="$gcc_cv_nm -g"
31770 else
31771 export_sym_check=
31775 if test x$build = x$host; then
31776 export_sym_check="$ac_cv_prog_OBJDUMP -T"
31777 elif test x$host = x$target; then
31778 export_sym_check="$gcc_cv_objdump -T"
31779 else
31780 export_sym_check=
31783 esac
31785 if test x"$enable_plugin" = x"yes" -a x"$plugin_check" = x"yes"; then
31787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
31788 $as_echo_n "checking for exported symbols... " >&6; }
31789 if test "x$export_sym_check" != x; then
31790 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
31791 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest$ac_exeext > /dev/null 2>&1
31792 if $export_sym_check conftest$ac_exeext | grep foobar > /dev/null; then
31793 : # No need to use a flag
31794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31795 $as_echo "yes" >&6; }
31796 else
31797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31798 $as_echo "yes" >&6; }
31799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
31800 $as_echo_n "checking for -rdynamic... " >&6; }
31801 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest$ac_exeext > /dev/null 2>&1
31802 if $export_sym_check conftest$ac_exeext | grep foobar > /dev/null; then
31803 plugin_rdynamic=yes
31804 pluginlibs="-rdynamic"
31805 else
31806 plugin_rdynamic=no
31807 enable_plugin=no
31809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
31810 $as_echo "$plugin_rdynamic" >&6; }
31812 else
31813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
31814 $as_echo "unable to check" >&6; }
31817 # Check -ldl
31818 saved_LIBS="$LIBS"
31819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
31820 $as_echo_n "checking for library containing dlopen... " >&6; }
31821 if ${ac_cv_search_dlopen+:} false; then :
31822 $as_echo_n "(cached) " >&6
31823 else
31824 ac_func_search_save_LIBS=$LIBS
31825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31826 /* end confdefs.h. */
31828 /* Override any GCC internal prototype to avoid an error.
31829 Use char because int might match the return type of a GCC
31830 builtin and then its argument prototype would still apply. */
31831 #ifdef __cplusplus
31832 extern "C"
31833 #endif
31834 char dlopen ();
31836 main ()
31838 return dlopen ();
31840 return 0;
31842 _ACEOF
31843 for ac_lib in '' dl; do
31844 if test -z "$ac_lib"; then
31845 ac_res="none required"
31846 else
31847 ac_res=-l$ac_lib
31848 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
31850 if ac_fn_cxx_try_link "$LINENO"; then :
31851 ac_cv_search_dlopen=$ac_res
31853 rm -f core conftest.err conftest.$ac_objext \
31854 conftest$ac_exeext
31855 if ${ac_cv_search_dlopen+:} false; then :
31856 break
31858 done
31859 if ${ac_cv_search_dlopen+:} false; then :
31861 else
31862 ac_cv_search_dlopen=no
31864 rm conftest.$ac_ext
31865 LIBS=$ac_func_search_save_LIBS
31867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
31868 $as_echo "$ac_cv_search_dlopen" >&6; }
31869 ac_res=$ac_cv_search_dlopen
31870 if test "$ac_res" != no; then :
31871 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
31875 if test x"$ac_cv_search_dlopen" = x"-ldl"; then
31876 pluginlibs="$pluginlibs -ldl"
31878 LIBS="$saved_LIBS"
31880 # Check that we can build shared objects with -fPIC -shared
31881 saved_LDFLAGS="$LDFLAGS"
31882 saved_CFLAGS="$CFLAGS"
31883 saved_CXXFLAGS="$CXXFLAGS"
31884 case "${host}" in
31885 *-*-darwin*)
31886 CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
31887 CFLAGS="$CFLAGS -fPIC"
31888 CXXFLAGS=`echo $CXXFLAGS | sed s/-mdynamic-no-pic//g`
31889 CXXFLAGS="$CXXFLAGS -fPIC"
31890 LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
31893 CFLAGS="$CFLAGS -fPIC"
31894 CXXFLAGS="$CXXFLAGS -fPIC"
31895 LDFLAGS="$LDFLAGS -fPIC -shared"
31897 esac
31898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
31899 $as_echo_n "checking for -fPIC -shared... " >&6; }
31900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31901 /* end confdefs.h. */
31902 extern int X;
31904 main ()
31906 return X == 0;
31908 return 0;
31910 _ACEOF
31911 if ac_fn_cxx_try_link "$LINENO"; then :
31912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31913 $as_echo "yes" >&6; }; have_pic_shared=yes
31914 else
31915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31916 $as_echo "no" >&6; }; have_pic_shared=no
31918 rm -f core conftest.err conftest.$ac_objext \
31919 conftest$ac_exeext conftest.$ac_ext
31920 if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
31921 pluginlibs=
31922 enable_plugin=no
31924 LDFLAGS="$saved_LDFLAGS"
31925 CFLAGS="$saved_CFLAGS"
31926 CXXFLAGS="$saved_CXXFLAGS"
31928 # If plugin support had been requested but not available, fail.
31929 if test x"$enable_plugin" = x"no" ; then
31930 if test x"$default_plugin" != x"yes"; then
31931 as_fn_error $? "
31932 Building GCC with plugin support requires a host that supports
31933 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
31940 if test x"$enable_plugin" = x"yes"; then
31942 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
31947 # Enable --enable-host-shared
31948 # Check whether --enable-host-shared was given.
31949 if test "${enable_host_shared+set}" = set; then :
31950 enableval=$enable_host_shared; PICFLAG=-fPIC
31951 else
31952 PICFLAG=
31959 # Check whether --enable-libquadmath-support was given.
31960 if test "${enable_libquadmath_support+set}" = set; then :
31961 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
31962 else
31963 ENABLE_LIBQUADMATH_SUPPORT=yes
31966 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
31968 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
31973 # Specify what hash style to use by default.
31975 # Check whether --with-linker-hash-style was given.
31976 if test "${with_linker_hash_style+set}" = set; then :
31977 withval=$with_linker_hash_style; case x"$withval" in
31978 xsysv)
31979 LINKER_HASH_STYLE=sysv
31981 xgnu)
31982 LINKER_HASH_STYLE=gnu
31984 xboth)
31985 LINKER_HASH_STYLE=both
31988 as_fn_error $? "$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
31990 esac
31991 else
31992 LINKER_HASH_STYLE=''
31995 if test x"${LINKER_HASH_STYLE}" != x; then
31997 cat >>confdefs.h <<_ACEOF
31998 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
31999 _ACEOF
32003 # Specify what should be the default of -fdiagnostics-color option.
32005 # Check whether --with-diagnostics-color was given.
32006 if test "${with_diagnostics_color+set}" = set; then :
32007 withval=$with_diagnostics_color; case x"$withval" in
32008 xnever)
32009 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_NO
32011 xauto)
32012 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO
32014 xauto-if-env)
32015 DIAGNOSTICS_COLOR_DEFAULT=-1
32017 xalways)
32018 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_YES
32021 as_fn_error $? "$withval is an invalid option to --with-diagnostics-color" "$LINENO" 5
32023 esac
32024 else
32025 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO
32029 cat >>confdefs.h <<_ACEOF
32030 #define DIAGNOSTICS_COLOR_DEFAULT $DIAGNOSTICS_COLOR_DEFAULT
32031 _ACEOF
32034 # Specify what should be the default of -fdiagnostics-urls option.
32036 # Check whether --with-diagnostics-urls was given.
32037 if test "${with_diagnostics_urls+set}" = set; then :
32038 withval=$with_diagnostics_urls; case x"$withval" in
32039 xnever)
32040 DIAGNOSTICS_URLS_DEFAULT=DIAGNOSTICS_URL_NO
32042 xauto)
32043 DIAGNOSTICS_URLS_DEFAULT=DIAGNOSTICS_URL_AUTO
32045 xauto-if-env)
32046 DIAGNOSTICS_URLS_DEFAULT=-1
32048 xalways)
32049 DIAGNOSTICS_URLS_DEFAULT=DIAGNOSTICS_URL_YES
32052 as_fn_error $? "$withval is an invalid option to --with-diagnostics-urls" "$LINENO" 5
32054 esac
32055 else
32056 DIAGNOSTICS_URLS_DEFAULT=DIAGNOSTICS_URL_AUTO
32060 cat >>confdefs.h <<_ACEOF
32061 #define DIAGNOSTICS_URLS_DEFAULT $DIAGNOSTICS_URLS_DEFAULT
32062 _ACEOF
32065 # Generate gcc-driver-name.h containing GCC_DRIVER_NAME for the benefit
32066 # of jit/jit-playback.cc.
32067 gcc_driver_version=`eval "${get_gcc_base_ver} $srcdir/BASE-VER"`
32068 echo "gcc_driver_version: ${gcc_driver_version}"
32069 cat > gcc-driver-name.h <<EOF
32070 #define GCC_DRIVER_NAME "${target_noncanonical}-gcc-${gcc_driver_version}${exeext}"
32073 # Check whether --enable-default-pie was given.
32074 # Check whether --enable-default-pie was given.
32075 if test "${enable_default_pie+set}" = set; then :
32076 enableval=$enable_default_pie; enable_default_pie=$enableval
32077 else
32078 enable_default_pie=no
32081 if test x$enable_default_pie = xyes ; then
32083 $as_echo "#define ENABLE_DEFAULT_PIE 1" >>confdefs.h
32088 # Check if -fno-PIE works.
32089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fno-PIE option" >&5
32090 $as_echo_n "checking for -fno-PIE option... " >&6; }
32091 if ${gcc_cv_c_no_fpie+:} false; then :
32092 $as_echo_n "(cached) " >&6
32093 else
32094 saved_CXXFLAGS="$CXXFLAGS"
32095 CXXFLAGS="$CXXFLAGS -fno-PIE"
32096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32097 /* end confdefs.h. */
32098 int main(void) {return 0;}
32099 _ACEOF
32100 if ac_fn_cxx_try_compile "$LINENO"; then :
32101 gcc_cv_c_no_fpie=yes
32102 else
32103 gcc_cv_c_no_fpie=no
32105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32106 CXXFLAGS="$saved_CXXFLAGS"
32108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_no_fpie" >&5
32109 $as_echo "$gcc_cv_c_no_fpie" >&6; }
32110 if test "$gcc_cv_c_no_fpie" = "yes"; then
32111 NO_PIE_CFLAGS="-fno-PIE"
32115 # Check if -no-pie works.
32116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -no-pie option" >&5
32117 $as_echo_n "checking for -no-pie option... " >&6; }
32118 if ${gcc_cv_no_pie+:} false; then :
32119 $as_echo_n "(cached) " >&6
32120 else
32121 saved_LDFLAGS="$LDFLAGS"
32122 LDFLAGS="$LDFLAGS -no-pie"
32123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32124 /* end confdefs.h. */
32125 int main(void) {return 0;}
32126 _ACEOF
32127 if ac_fn_cxx_try_link "$LINENO"; then :
32128 gcc_cv_no_pie=yes
32129 else
32130 gcc_cv_no_pie=no
32132 rm -f core conftest.err conftest.$ac_objext \
32133 conftest$ac_exeext conftest.$ac_ext
32134 LDFLAGS="$saved_LDFLAGS"
32136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_no_pie" >&5
32137 $as_echo "$gcc_cv_no_pie" >&6; }
32138 if test "$gcc_cv_no_pie" = "yes"; then
32139 NO_PIE_FLAG="-no-pie"
32143 # Enable Intel CET on Intel CET enabled host if jit is enabled.
32144 # Check whether --enable-cet was given.
32145 if test "${enable_cet+set}" = set; then :
32146 enableval=$enable_cet;
32147 case "$enableval" in
32148 yes|no|auto) ;;
32149 *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
32150 esac
32152 else
32153 enable_cet=auto
32157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
32158 $as_echo_n "checking for CET support... " >&6; }
32160 case "$host" in
32161 i[34567]86-*-linux* | x86_64-*-linux*)
32162 may_have_cet=yes
32163 cet_save_CFLAGS="$CFLAGS"
32164 CFLAGS="$CFLAGS -fcf-protection"
32165 case "$enable_cet" in
32166 auto)
32167 # Check if target supports multi-byte NOPs
32168 # and if compiler and assembler support CET.
32169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32170 /* end confdefs.h. */
32173 main ()
32176 #if !defined(__SSE2__)
32177 #error target does not support multi-byte NOPs
32178 #else
32179 asm ("setssbsy");
32180 #endif
32183 return 0;
32185 _ACEOF
32186 if ac_fn_cxx_try_compile "$LINENO"; then :
32187 enable_cet=yes
32188 else
32189 enable_cet=no
32191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32193 yes)
32194 # Check if compiler and assembler support CET.
32195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32196 /* end confdefs.h. */
32199 main ()
32201 asm ("setssbsy");
32203 return 0;
32205 _ACEOF
32206 if ac_fn_cxx_try_compile "$LINENO"; then :
32207 support_cet=yes
32208 else
32209 support_cet=no
32211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32212 if test $support_cet = "no"; then
32213 if test x$enable_bootstrap != xno \
32214 && test -z "${with_build_subdir}" \
32215 && (test ! -f ../stage_current \
32216 || test `cat ../stage_current` != "stage1"); then
32217 # Require CET support only for the final GCC build.
32218 as_fn_error $? "compiler and assembler with CET support are required for --enable-cet" "$LINENO" 5
32219 else
32220 # Don't enable CET without CET support for non-bootstrap
32221 # build, in stage1 nor for build support.
32222 enable_cet=no
32226 esac
32227 CFLAGS="$cet_save_CFLAGS"
32230 may_have_cet=no
32231 enable_cet=no
32233 esac
32235 cet_save_CFLAGS="$CFLAGS"
32236 CFLAGS="$CFLAGS -fcf-protection=none"
32237 cet_save_LDFLAGS="$LDFLAGS"
32238 LDFLAGS="$LDFLAGS -Wl,-z,ibt,-z,shstk"
32239 if test x$may_have_cet = xyes; then
32240 # Check whether -fcf-protection=none -Wl,-z,ibt,-z,shstk work.
32241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32242 /* end confdefs.h. */
32245 main ()
32247 return 0;
32249 return 0;
32251 _ACEOF
32252 if ac_fn_cxx_try_link "$LINENO"; then :
32253 may_have_cet=yes
32254 else
32255 may_have_cet=no
32257 rm -f core conftest.err conftest.$ac_objext \
32258 conftest$ac_exeext conftest.$ac_ext
32261 if test x$may_have_cet = xyes; then
32262 if test x$cross_compiling = xno; then
32263 if test "$cross_compiling" = yes; then :
32264 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
32265 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
32266 as_fn_error $? "cannot run test program while cross compiling
32267 See \`config.log' for more details" "$LINENO" 5; }
32268 else
32269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32270 /* end confdefs.h. */
32273 main ()
32275 asm ("endbr32");
32276 return 0;
32279 _ACEOF
32280 if ac_fn_cxx_try_run "$LINENO"; then :
32281 have_multi_byte_nop=yes
32282 else
32283 have_multi_byte_nop=no
32285 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
32286 conftest.$ac_objext conftest.beam conftest.$ac_ext
32289 have_cet=no
32290 if test x$have_multi_byte_nop = xyes; then
32291 if test "$cross_compiling" = yes; then :
32292 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
32293 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
32294 as_fn_error $? "cannot run test program while cross compiling
32295 See \`config.log' for more details" "$LINENO" 5; }
32296 else
32297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32298 /* end confdefs.h. */
32300 static void
32301 foo (void)
32305 static void
32306 __attribute__ ((noinline, noclone))
32307 xxx (void (*f) (void))
32309 f ();
32312 static void
32313 __attribute__ ((noinline, noclone))
32314 bar (void)
32316 xxx (foo);
32320 main ()
32322 bar ();
32323 return 0;
32326 _ACEOF
32327 if ac_fn_cxx_try_run "$LINENO"; then :
32328 have_cet=no
32329 else
32330 have_cet=yes
32332 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
32333 conftest.$ac_objext conftest.beam conftest.$ac_ext
32337 if test x$enable_cet = xno -a x$have_cet = xyes; then
32338 as_fn_error $? "Intel CET must be enabled on Intel CET enabled host" "$LINENO" 5
32341 else
32342 # Enable CET in cross compiler if possible so that it will run on both
32343 # CET and non-CET hosts.
32344 have_cet=yes
32346 if test x$enable_cet = xyes; then
32347 CET_HOST_FLAGS="-fcf-protection"
32348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32349 $as_echo "yes" >&6; }
32350 else
32351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32352 $as_echo "no" >&6; }
32354 CFLAGS="$cet_save_CFLAGS"
32355 LDFLAGS="$cet_save_LDFLAGS"
32357 case x$enable_languages in
32358 *jit*)
32361 CET_HOST_FLAGS=
32363 esac
32366 # Check linker supports '-z bndplt'
32367 ld_bndplt_support=no
32368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -z bndplt option" >&5
32369 $as_echo_n "checking linker -z bndplt option... " >&6; }
32370 if test x"$ld_is_gold" = xno; then
32371 if test $in_tree_ld = yes ; then
32372 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
32373 ld_bndplt_support=yes
32375 elif test x$gcc_cv_ld != x; then
32376 # Check if linker supports -a bndplt option
32377 if $gcc_cv_ld --help 2>&1 | grep -- '-z bndplt' > /dev/null; then
32378 ld_bndplt_support=yes
32382 if test x"$ld_bndplt_support" = xyes; then
32384 $as_echo "#define HAVE_LD_BNDPLT_SUPPORT 1" >>confdefs.h
32387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_bndplt_support" >&5
32388 $as_echo "$ld_bndplt_support" >&6; }
32390 # Check linker supports '--push-state'/'--pop-state'
32391 ld_pushpopstate_support=no
32392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --push-state/--pop-state options" >&5
32393 $as_echo_n "checking linker --push-state/--pop-state options... " >&6; }
32394 if test x"$ld_is_gold" = xno; then
32395 if test $in_tree_ld = yes ; then
32396 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
32397 ld_pushpopstate_support=yes
32399 elif test x$gcc_cv_ld != x; then
32400 # Check if linker supports --push-state/--pop-state options
32401 if $gcc_cv_ld --help 2>&1 | grep -- '--push-state' > /dev/null; then
32402 ld_pushpopstate_support=yes
32406 if test x"$ld_pushpopstate_support" = xyes; then
32408 $as_echo "#define HAVE_LD_PUSHPOPSTATE_SUPPORT 1" >>confdefs.h
32411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_pushpopstate_support" >&5
32412 $as_echo "$ld_pushpopstate_support" >&6; }
32414 # On s390, float_t has historically been statically defined as double for no
32415 # good reason. To comply with the C standard in the light of this definition,
32416 # gcc has evaluated float expressions in double precision when in
32417 # standards-compatible mode or when given -fexcess-precision=standard. To enable
32418 # a smooth transition towards the new model used by most architectures, where
32419 # gcc describes its behavior via the macro __FLT_EVAL_METHOD__ and glibc derives
32420 # float_t from that, this behavior can be configured with
32421 # --enable-s390-excess-float-precision. When given as enabled, that flag selects
32422 # the old model. When omitted, native builds and cross compiles that have target
32423 # libc headers will detect whether libc clamps float_t to double and in that
32424 # case maintain the old model. Otherwise, they will default to the new model.
32425 # Check whether --enable-s390-excess-float-precision was given.
32426 if test "${enable_s390_excess_float_precision+set}" = set; then :
32427 enableval=$enable_s390_excess_float_precision;
32428 else
32429 enable_s390_excess_float_precision=auto
32433 case $target in
32434 s390*-linux*)
32435 if test x"$enable_s390_excess_float_precision" = xauto; then
32436 # Can we autodetect the behavior of the target libc?
32437 if test "$target" = "$host" -a "$host" = "$build"; then
32438 enable_s390_excess_float_precision=autodetect
32439 elif test "x$with_headers" != xno; then
32440 # cross build. are target headers available?
32441 # carefully coerce the build-system compiler to use target headers
32442 saved_CXXFLAGS="$CXXFLAGS"
32443 fixed_XGCC_FLAGS_FOR_TARGET=`echo "$XGCC_FLAGS_FOR_TARGET" | sed 's/-B/-idirafter/g'`
32444 CROSS_TEST_CXXFLAGS="-nostdinc $fixed_XGCC_FLAGS_FOR_TARGET"
32445 CXXFLAGS="$CROSS_TEST_CXXFLAGS"
32446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32447 /* end confdefs.h. */
32449 #include <math.h>
32451 _ACEOF
32452 if ac_fn_cxx_try_compile "$LINENO"; then :
32453 enable_s390_excess_float_precision=autodetect
32455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32456 CXXFLAGS="$saved_CXXFLAGS"
32459 if test x"$enable_s390_excess_float_precision" = xautodetect; then
32460 saved_CXXFLAGS="$CXXFLAGS"
32461 if ! test "$target" = "$host" -a "$host" = "$build"; then
32462 CXXFLAGS="$CROSS_TEST_CXXFLAGS"
32463 unset CROSS_TEST_CXXFLAGS
32465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glibc clamping float_t to double" >&5
32466 $as_echo_n "checking for glibc clamping float_t to double... " >&6; }
32467 if ${gcc_cv_float_t_clamped_to_double+:} false; then :
32468 $as_echo_n "(cached) " >&6
32469 else
32471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32472 /* end confdefs.h. */
32474 #define __FLT_EVAL_METHOD__ 0
32475 #include <math.h>
32476 int dummy[sizeof(float_t) == sizeof(double) ? 1 : -1];
32478 _ACEOF
32479 if ac_fn_cxx_try_compile "$LINENO"; then :
32480 gcc_cv_float_t_clamped_to_double=yes
32481 else
32482 gcc_cv_float_t_clamped_to_double=no
32484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_float_t_clamped_to_double" >&5
32487 $as_echo "$gcc_cv_float_t_clamped_to_double" >&6; }
32488 CXXFLAGS="$saved_CXXFLAGS"
32489 enable_s390_excess_float_precision="$gcc_cv_float_t_clamped_to_double"
32490 else
32491 # no way to detect behavior of target libc, default to new model
32492 enable_s390_excess_float_precision=no
32497 if test x"$enable_s390_excess_float_precision" = xyes; then
32499 $as_echo "#define ENABLE_S390_EXCESS_FLOAT_PRECISION 1" >>confdefs.h
32503 esac
32505 # Configure the subdirectories
32506 # AC_CONFIG_SUBDIRS($subdirs)
32508 # Create the Makefile
32509 # and configure language subdirectories
32510 ac_config_files="$ac_config_files $all_outputs"
32513 ac_config_commands="$ac_config_commands default"
32515 cat >confcache <<\_ACEOF
32516 # This file is a shell script that caches the results of configure
32517 # tests run on this system so they can be shared between configure
32518 # scripts and configure runs, see configure's option --config-cache.
32519 # It is not useful on other systems. If it contains results you don't
32520 # want to keep, you may remove or edit it.
32522 # config.status only pays attention to the cache file if you give it
32523 # the --recheck option to rerun configure.
32525 # `ac_cv_env_foo' variables (set or unset) will be overridden when
32526 # loading this file, other *unset* `ac_cv_foo' will be assigned the
32527 # following values.
32529 _ACEOF
32531 # The following way of writing the cache mishandles newlines in values,
32532 # but we know of no workaround that is simple, portable, and efficient.
32533 # So, we kill variables containing newlines.
32534 # Ultrix sh set writes to stderr and can't be redirected directly,
32535 # and sets the high bit in the cache file unless we assign to the vars.
32537 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
32538 eval ac_val=\$$ac_var
32539 case $ac_val in #(
32540 *${as_nl}*)
32541 case $ac_var in #(
32542 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
32543 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
32544 esac
32545 case $ac_var in #(
32546 _ | IFS | as_nl) ;; #(
32547 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
32548 *) { eval $ac_var=; unset $ac_var;} ;;
32549 esac ;;
32550 esac
32551 done
32553 (set) 2>&1 |
32554 case $as_nl`(ac_space=' '; set) 2>&1` in #(
32555 *${as_nl}ac_space=\ *)
32556 # `set' does not quote correctly, so add quotes: double-quote
32557 # substitution turns \\\\ into \\, and sed turns \\ into \.
32558 sed -n \
32559 "s/'/'\\\\''/g;
32560 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
32561 ;; #(
32563 # `set' quotes correctly as required by POSIX, so do not add quotes.
32564 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
32566 esac |
32567 sort
32569 sed '
32570 /^ac_cv_env_/b end
32571 t clear
32572 :clear
32573 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
32574 t end
32575 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
32576 :end' >>confcache
32577 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
32578 if test -w "$cache_file"; then
32579 if test "x$cache_file" != "x/dev/null"; then
32580 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
32581 $as_echo "$as_me: updating cache $cache_file" >&6;}
32582 if test ! -f "$cache_file" || test -h "$cache_file"; then
32583 cat confcache >"$cache_file"
32584 else
32585 case $cache_file in #(
32586 */* | ?:*)
32587 mv -f confcache "$cache_file"$$ &&
32588 mv -f "$cache_file"$$ "$cache_file" ;; #(
32590 mv -f confcache "$cache_file" ;;
32591 esac
32594 else
32595 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
32596 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
32599 rm -f confcache
32601 test "x$prefix" = xNONE && prefix=$ac_default_prefix
32602 # Let make expand exec_prefix.
32603 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
32605 DEFS=-DHAVE_CONFIG_H
32607 ac_libobjs=
32608 ac_ltlibobjs=
32610 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
32611 # 1. Remove the extension, and $U if already installed.
32612 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
32613 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
32614 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
32615 # will be set to the directory where LIBOBJS objects are built.
32616 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
32617 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
32618 done
32619 LIBOBJS=$ac_libobjs
32621 LTLIBOBJS=$ac_ltlibobjs
32626 : "${CONFIG_STATUS=./config.status}"
32627 ac_write_fail=0
32628 ac_clean_files_save=$ac_clean_files
32629 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
32630 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
32631 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
32632 as_write_fail=0
32633 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
32634 #! $SHELL
32635 # Generated by $as_me.
32636 # Run this file to recreate the current configuration.
32637 # Compiler output produced by configure, useful for debugging
32638 # configure, is in config.log if it exists.
32640 debug=false
32641 ac_cs_recheck=false
32642 ac_cs_silent=false
32644 SHELL=\${CONFIG_SHELL-$SHELL}
32645 export SHELL
32646 _ASEOF
32647 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
32648 ## -------------------- ##
32649 ## M4sh Initialization. ##
32650 ## -------------------- ##
32652 # Be more Bourne compatible
32653 DUALCASE=1; export DUALCASE # for MKS sh
32654 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
32655 emulate sh
32656 NULLCMD=:
32657 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
32658 # is contrary to our usage. Disable this feature.
32659 alias -g '${1+"$@"}'='"$@"'
32660 setopt NO_GLOB_SUBST
32661 else
32662 case `(set -o) 2>/dev/null` in #(
32663 *posix*) :
32664 set -o posix ;; #(
32665 *) :
32667 esac
32671 as_nl='
32673 export as_nl
32674 # Printing a long string crashes Solaris 7 /usr/bin/printf.
32675 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
32676 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
32677 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
32678 # Prefer a ksh shell builtin over an external printf program on Solaris,
32679 # but without wasting forks for bash or zsh.
32680 if test -z "$BASH_VERSION$ZSH_VERSION" \
32681 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
32682 as_echo='print -r --'
32683 as_echo_n='print -rn --'
32684 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
32685 as_echo='printf %s\n'
32686 as_echo_n='printf %s'
32687 else
32688 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
32689 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
32690 as_echo_n='/usr/ucb/echo -n'
32691 else
32692 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
32693 as_echo_n_body='eval
32694 arg=$1;
32695 case $arg in #(
32696 *"$as_nl"*)
32697 expr "X$arg" : "X\\(.*\\)$as_nl";
32698 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
32699 esac;
32700 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
32702 export as_echo_n_body
32703 as_echo_n='sh -c $as_echo_n_body as_echo'
32705 export as_echo_body
32706 as_echo='sh -c $as_echo_body as_echo'
32709 # The user is always right.
32710 if test "${PATH_SEPARATOR+set}" != set; then
32711 PATH_SEPARATOR=:
32712 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
32713 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
32714 PATH_SEPARATOR=';'
32719 # IFS
32720 # We need space, tab and new line, in precisely that order. Quoting is
32721 # there to prevent editors from complaining about space-tab.
32722 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
32723 # splitting by setting IFS to empty value.)
32724 IFS=" "" $as_nl"
32726 # Find who we are. Look in the path if we contain no directory separator.
32727 as_myself=
32728 case $0 in #((
32729 *[\\/]* ) as_myself=$0 ;;
32730 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32731 for as_dir in $PATH
32733 IFS=$as_save_IFS
32734 test -z "$as_dir" && as_dir=.
32735 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
32736 done
32737 IFS=$as_save_IFS
32740 esac
32741 # We did not find ourselves, most probably we were run as `sh COMMAND'
32742 # in which case we are not to be found in the path.
32743 if test "x$as_myself" = x; then
32744 as_myself=$0
32746 if test ! -f "$as_myself"; then
32747 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
32748 exit 1
32751 # Unset variables that we do not need and which cause bugs (e.g. in
32752 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
32753 # suppresses any "Segmentation fault" message there. '((' could
32754 # trigger a bug in pdksh 5.2.14.
32755 for as_var in BASH_ENV ENV MAIL MAILPATH
32756 do eval test x\${$as_var+set} = xset \
32757 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
32758 done
32759 PS1='$ '
32760 PS2='> '
32761 PS4='+ '
32763 # NLS nuisances.
32764 LC_ALL=C
32765 export LC_ALL
32766 LANGUAGE=C
32767 export LANGUAGE
32769 # CDPATH.
32770 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
32773 # as_fn_error STATUS ERROR [LINENO LOG_FD]
32774 # ----------------------------------------
32775 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
32776 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
32777 # script with STATUS, using 1 if that was 0.
32778 as_fn_error ()
32780 as_status=$1; test $as_status -eq 0 && as_status=1
32781 if test "$4"; then
32782 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
32783 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
32785 $as_echo "$as_me: error: $2" >&2
32786 as_fn_exit $as_status
32787 } # as_fn_error
32790 # as_fn_set_status STATUS
32791 # -----------------------
32792 # Set $? to STATUS, without forking.
32793 as_fn_set_status ()
32795 return $1
32796 } # as_fn_set_status
32798 # as_fn_exit STATUS
32799 # -----------------
32800 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
32801 as_fn_exit ()
32803 set +e
32804 as_fn_set_status $1
32805 exit $1
32806 } # as_fn_exit
32808 # as_fn_unset VAR
32809 # ---------------
32810 # Portably unset VAR.
32811 as_fn_unset ()
32813 { eval $1=; unset $1;}
32815 as_unset=as_fn_unset
32816 # as_fn_append VAR VALUE
32817 # ----------------------
32818 # Append the text in VALUE to the end of the definition contained in VAR. Take
32819 # advantage of any shell optimizations that allow amortized linear growth over
32820 # repeated appends, instead of the typical quadratic growth present in naive
32821 # implementations.
32822 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
32823 eval 'as_fn_append ()
32825 eval $1+=\$2
32827 else
32828 as_fn_append ()
32830 eval $1=\$$1\$2
32832 fi # as_fn_append
32834 # as_fn_arith ARG...
32835 # ------------------
32836 # Perform arithmetic evaluation on the ARGs, and store the result in the
32837 # global $as_val. Take advantage of shells that can avoid forks. The arguments
32838 # must be portable across $(()) and expr.
32839 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
32840 eval 'as_fn_arith ()
32842 as_val=$(( $* ))
32844 else
32845 as_fn_arith ()
32847 as_val=`expr "$@" || test $? -eq 1`
32849 fi # as_fn_arith
32852 if expr a : '\(a\)' >/dev/null 2>&1 &&
32853 test "X`expr 00001 : '.*\(...\)'`" = X001; then
32854 as_expr=expr
32855 else
32856 as_expr=false
32859 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
32860 as_basename=basename
32861 else
32862 as_basename=false
32865 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
32866 as_dirname=dirname
32867 else
32868 as_dirname=false
32871 as_me=`$as_basename -- "$0" ||
32872 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
32873 X"$0" : 'X\(//\)$' \| \
32874 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
32875 $as_echo X/"$0" |
32876 sed '/^.*\/\([^/][^/]*\)\/*$/{
32877 s//\1/
32880 /^X\/\(\/\/\)$/{
32881 s//\1/
32884 /^X\/\(\/\).*/{
32885 s//\1/
32888 s/.*/./; q'`
32890 # Avoid depending upon Character Ranges.
32891 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
32892 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
32893 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
32894 as_cr_digits='0123456789'
32895 as_cr_alnum=$as_cr_Letters$as_cr_digits
32897 ECHO_C= ECHO_N= ECHO_T=
32898 case `echo -n x` in #(((((
32899 -n*)
32900 case `echo 'xy\c'` in
32901 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
32902 xy) ECHO_C='\c';;
32903 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
32904 ECHO_T=' ';;
32905 esac;;
32907 ECHO_N='-n';;
32908 esac
32910 rm -f conf$$ conf$$.exe conf$$.file
32911 if test -d conf$$.dir; then
32912 rm -f conf$$.dir/conf$$.file
32913 else
32914 rm -f conf$$.dir
32915 mkdir conf$$.dir 2>/dev/null
32917 if (echo >conf$$.file) 2>/dev/null; then
32918 if ln -s conf$$.file conf$$ 2>/dev/null; then
32919 as_ln_s='ln -s'
32920 # ... but there are two gotchas:
32921 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
32922 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
32923 # In both cases, we have to default to `cp -pR'.
32924 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
32925 as_ln_s='cp -pR'
32926 elif ln conf$$.file conf$$ 2>/dev/null; then
32927 as_ln_s=ln
32928 else
32929 as_ln_s='cp -pR'
32931 else
32932 as_ln_s='cp -pR'
32934 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
32935 rmdir conf$$.dir 2>/dev/null
32938 # as_fn_mkdir_p
32939 # -------------
32940 # Create "$as_dir" as a directory, including parents if necessary.
32941 as_fn_mkdir_p ()
32944 case $as_dir in #(
32945 -*) as_dir=./$as_dir;;
32946 esac
32947 test -d "$as_dir" || eval $as_mkdir_p || {
32948 as_dirs=
32949 while :; do
32950 case $as_dir in #(
32951 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
32952 *) as_qdir=$as_dir;;
32953 esac
32954 as_dirs="'$as_qdir' $as_dirs"
32955 as_dir=`$as_dirname -- "$as_dir" ||
32956 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32957 X"$as_dir" : 'X\(//\)[^/]' \| \
32958 X"$as_dir" : 'X\(//\)$' \| \
32959 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
32960 $as_echo X"$as_dir" |
32961 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32962 s//\1/
32965 /^X\(\/\/\)[^/].*/{
32966 s//\1/
32969 /^X\(\/\/\)$/{
32970 s//\1/
32973 /^X\(\/\).*/{
32974 s//\1/
32977 s/.*/./; q'`
32978 test -d "$as_dir" && break
32979 done
32980 test -z "$as_dirs" || eval "mkdir $as_dirs"
32981 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
32984 } # as_fn_mkdir_p
32985 if mkdir -p . 2>/dev/null; then
32986 as_mkdir_p='mkdir -p "$as_dir"'
32987 else
32988 test -d ./-p && rmdir ./-p
32989 as_mkdir_p=false
32993 # as_fn_executable_p FILE
32994 # -----------------------
32995 # Test if FILE is an executable regular file.
32996 as_fn_executable_p ()
32998 test -f "$1" && test -x "$1"
32999 } # as_fn_executable_p
33000 as_test_x='test -x'
33001 as_executable_p=as_fn_executable_p
33003 # Sed expression to map a string onto a valid CPP name.
33004 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
33006 # Sed expression to map a string onto a valid variable name.
33007 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
33010 exec 6>&1
33011 ## ----------------------------------- ##
33012 ## Main body of $CONFIG_STATUS script. ##
33013 ## ----------------------------------- ##
33014 _ASEOF
33015 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
33017 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33018 # Save the log message, to keep $0 and so on meaningful, and to
33019 # report actual input values of CONFIG_FILES etc. instead of their
33020 # values after options handling.
33021 ac_log="
33022 This file was extended by $as_me, which was
33023 generated by GNU Autoconf 2.69. Invocation command line was
33025 CONFIG_FILES = $CONFIG_FILES
33026 CONFIG_HEADERS = $CONFIG_HEADERS
33027 CONFIG_LINKS = $CONFIG_LINKS
33028 CONFIG_COMMANDS = $CONFIG_COMMANDS
33029 $ $0 $@
33031 on `(hostname || uname -n) 2>/dev/null | sed 1q`
33034 _ACEOF
33036 case $ac_config_files in *"
33037 "*) set x $ac_config_files; shift; ac_config_files=$*;;
33038 esac
33040 case $ac_config_headers in *"
33041 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
33042 esac
33045 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33046 # Files that config.status was made for.
33047 config_files="$ac_config_files"
33048 config_headers="$ac_config_headers"
33049 config_links="$ac_config_links"
33050 config_commands="$ac_config_commands"
33052 _ACEOF
33054 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33055 ac_cs_usage="\
33056 \`$as_me' instantiates files and other configuration actions
33057 from templates according to the current configuration. Unless the files
33058 and actions are specified as TAGs, all are instantiated by default.
33060 Usage: $0 [OPTION]... [TAG]...
33062 -h, --help print this help, then exit
33063 -V, --version print version number and configuration settings, then exit
33064 --config print configuration, then exit
33065 -q, --quiet, --silent
33066 do not print progress messages
33067 -d, --debug don't remove temporary files
33068 --recheck update $as_me by reconfiguring in the same conditions
33069 --file=FILE[:TEMPLATE]
33070 instantiate the configuration file FILE
33071 --header=FILE[:TEMPLATE]
33072 instantiate the configuration header FILE
33074 Configuration files:
33075 $config_files
33077 Configuration headers:
33078 $config_headers
33080 Configuration links:
33081 $config_links
33083 Configuration commands:
33084 $config_commands
33086 Report bugs to the package provider."
33088 _ACEOF
33089 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33090 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
33091 ac_cs_version="\\
33092 config.status
33093 configured by $0, generated by GNU Autoconf 2.69,
33094 with options \\"\$ac_cs_config\\"
33096 Copyright (C) 2012 Free Software Foundation, Inc.
33097 This config.status script is free software; the Free Software Foundation
33098 gives unlimited permission to copy, distribute and modify it."
33100 ac_pwd='$ac_pwd'
33101 srcdir='$srcdir'
33102 AWK='$AWK'
33103 test -n "\$AWK" || AWK=awk
33104 _ACEOF
33106 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33107 # The default lists apply if the user does not specify any file.
33108 ac_need_defaults=:
33109 while test $# != 0
33111 case $1 in
33112 --*=?*)
33113 ac_option=`expr "X$1" : 'X\([^=]*\)='`
33114 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
33115 ac_shift=:
33117 --*=)
33118 ac_option=`expr "X$1" : 'X\([^=]*\)='`
33119 ac_optarg=
33120 ac_shift=:
33123 ac_option=$1
33124 ac_optarg=$2
33125 ac_shift=shift
33127 esac
33129 case $ac_option in
33130 # Handling of the options.
33131 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
33132 ac_cs_recheck=: ;;
33133 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
33134 $as_echo "$ac_cs_version"; exit ;;
33135 --config | --confi | --conf | --con | --co | --c )
33136 $as_echo "$ac_cs_config"; exit ;;
33137 --debug | --debu | --deb | --de | --d | -d )
33138 debug=: ;;
33139 --file | --fil | --fi | --f )
33140 $ac_shift
33141 case $ac_optarg in
33142 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
33143 '') as_fn_error $? "missing file argument" ;;
33144 esac
33145 as_fn_append CONFIG_FILES " '$ac_optarg'"
33146 ac_need_defaults=false;;
33147 --header | --heade | --head | --hea )
33148 $ac_shift
33149 case $ac_optarg in
33150 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
33151 esac
33152 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
33153 ac_need_defaults=false;;
33154 --he | --h)
33155 # Conflict between --help and --header
33156 as_fn_error $? "ambiguous option: \`$1'
33157 Try \`$0 --help' for more information.";;
33158 --help | --hel | -h )
33159 $as_echo "$ac_cs_usage"; exit ;;
33160 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
33161 | -silent | --silent | --silen | --sile | --sil | --si | --s)
33162 ac_cs_silent=: ;;
33164 # This is an error.
33165 -*) as_fn_error $? "unrecognized option: \`$1'
33166 Try \`$0 --help' for more information." ;;
33168 *) as_fn_append ac_config_targets " $1"
33169 ac_need_defaults=false ;;
33171 esac
33172 shift
33173 done
33175 ac_configure_extra_args=
33177 if $ac_cs_silent; then
33178 exec 6>/dev/null
33179 ac_configure_extra_args="$ac_configure_extra_args --silent"
33182 _ACEOF
33183 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33184 if \$ac_cs_recheck; then
33185 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
33186 shift
33187 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
33188 CONFIG_SHELL='$SHELL'
33189 export CONFIG_SHELL
33190 exec "\$@"
33193 _ACEOF
33194 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33195 exec 5>>config.log
33197 echo
33198 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
33199 ## Running $as_me. ##
33200 _ASBOX
33201 $as_echo "$ac_log"
33202 } >&5
33204 _ACEOF
33205 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33207 # INIT-COMMANDS
33209 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
33210 subdirs="$subdirs" ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
33211 subdirs='$subdirs'
33213 _ACEOF
33215 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33217 # Handling of arguments.
33218 for ac_config_target in $ac_config_targets
33220 case $ac_config_target in
33221 "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
33222 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
33223 "gccdepdir") CONFIG_COMMANDS="$CONFIG_COMMANDS gccdepdir" ;;
33224 "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
33225 "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
33226 "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
33227 "dsymutil") CONFIG_FILES="$CONFIG_FILES dsymutil:exec-tool.in" ;;
33228 "clearcap.map") CONFIG_LINKS="$CONFIG_LINKS clearcap.map:${srcdir}/config/$clearcap_map" ;;
33229 "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
33230 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
33232 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
33233 esac
33234 done
33237 # If the user did not use the arguments to specify the items to instantiate,
33238 # then the envvar interface is used. Set only those that are not.
33239 # We use the long form for the default assignment because of an extremely
33240 # bizarre bug on SunOS 4.1.3.
33241 if $ac_need_defaults; then
33242 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
33243 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
33244 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
33245 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
33248 # Have a temporary directory for convenience. Make it in the build tree
33249 # simply because there is no reason against having it here, and in addition,
33250 # creating and moving files from /tmp can sometimes cause problems.
33251 # Hook for its removal unless debugging.
33252 # Note that there is a small window in which the directory will not be cleaned:
33253 # after its creation but before its name has been assigned to `$tmp'.
33254 $debug ||
33256 tmp= ac_tmp=
33257 trap 'exit_status=$?
33258 : "${ac_tmp:=$tmp}"
33259 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
33261 trap 'as_fn_exit 1' 1 2 13 15
33263 # Create a (secure) tmp directory for tmp files.
33266 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
33267 test -d "$tmp"
33268 } ||
33270 tmp=./conf$$-$RANDOM
33271 (umask 077 && mkdir "$tmp")
33272 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
33273 ac_tmp=$tmp
33275 # Set up the scripts for CONFIG_FILES section.
33276 # No need to generate them if there are no CONFIG_FILES.
33277 # This happens for instance with `./config.status config.h'.
33278 if test -n "$CONFIG_FILES"; then
33280 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
33281 ac_cs_awk_getline=:
33282 ac_cs_awk_pipe_init=
33283 ac_cs_awk_read_file='
33284 while ((getline aline < (F[key])) > 0)
33285 print(aline)
33286 close(F[key])'
33287 ac_cs_awk_pipe_fini=
33288 else
33289 ac_cs_awk_getline=false
33290 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
33291 ac_cs_awk_read_file='
33292 print "|#_!!_#|"
33293 print "cat " F[key] " &&"
33294 '$ac_cs_awk_pipe_init
33295 # The final `:' finishes the AND list.
33296 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
33298 ac_cr=`echo X | tr X '\015'`
33299 # On cygwin, bash can eat \r inside `` if the user requested igncr.
33300 # But we know of no other shell where ac_cr would be empty at this
33301 # point, so we can use a bashism as a fallback.
33302 if test "x$ac_cr" = x; then
33303 eval ac_cr=\$\'\\r\'
33305 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
33306 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
33307 ac_cs_awk_cr='\\r'
33308 else
33309 ac_cs_awk_cr=$ac_cr
33312 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
33313 _ACEOF
33315 # Create commands to substitute file output variables.
33317 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
33318 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
33319 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
33320 echo "_ACAWK" &&
33321 echo "_ACEOF"
33322 } >conf$$files.sh &&
33323 . ./conf$$files.sh ||
33324 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
33325 rm -f conf$$files.sh
33328 echo "cat >conf$$subs.awk <<_ACEOF" &&
33329 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
33330 echo "_ACEOF"
33331 } >conf$$subs.sh ||
33332 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
33333 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
33334 ac_delim='%!_!# '
33335 for ac_last_try in false false false false false :; do
33336 . ./conf$$subs.sh ||
33337 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
33339 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
33340 if test $ac_delim_n = $ac_delim_num; then
33341 break
33342 elif $ac_last_try; then
33343 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
33344 else
33345 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
33347 done
33348 rm -f conf$$subs.sh
33350 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33351 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
33352 _ACEOF
33353 sed -n '
33355 s/^/S["/; s/!.*/"]=/
33358 s/^[^!]*!//
33359 :repl
33360 t repl
33361 s/'"$ac_delim"'$//
33362 t delim
33365 s/\(.\{148\}\)..*/\1/
33366 t more1
33367 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
33370 b repl
33371 :more1
33372 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
33375 s/.\{148\}//
33376 t nl
33377 :delim
33379 s/\(.\{148\}\)..*/\1/
33380 t more2
33381 s/["\\]/\\&/g; s/^/"/; s/$/"/
33384 :more2
33385 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
33388 s/.\{148\}//
33389 t delim
33390 ' <conf$$subs.awk | sed '
33391 /^[^""]/{
33393 s/\n//
33395 ' >>$CONFIG_STATUS || ac_write_fail=1
33396 rm -f conf$$subs.awk
33397 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33398 _ACAWK
33399 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
33400 for (key in S) S_is_set[key] = 1
33401 FS = "\a"
33402 \$ac_cs_awk_pipe_init
33405 line = $ 0
33406 nfields = split(line, field, "@")
33407 substed = 0
33408 len = length(field[1])
33409 for (i = 2; i < nfields; i++) {
33410 key = field[i]
33411 keylen = length(key)
33412 if (S_is_set[key]) {
33413 value = S[key]
33414 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
33415 len += length(value) + length(field[++i])
33416 substed = 1
33417 } else
33418 len += 1 + keylen
33420 if (nfields == 3 && !substed) {
33421 key = field[2]
33422 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
33423 \$ac_cs_awk_read_file
33424 next
33427 print line
33429 \$ac_cs_awk_pipe_fini
33430 _ACAWK
33431 _ACEOF
33432 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33433 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
33434 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
33435 else
33437 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
33438 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
33439 _ACEOF
33441 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
33442 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
33443 # trailing colons and then remove the whole line if VPATH becomes empty
33444 # (actually we leave an empty line to preserve line numbers).
33445 if test "x$srcdir" = x.; then
33446 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
33448 s///
33449 s/^/:/
33450 s/[ ]*$/:/
33451 s/:\$(srcdir):/:/g
33452 s/:\${srcdir}:/:/g
33453 s/:@srcdir@:/:/g
33454 s/^:*//
33455 s/:*$//
33457 s/\(=[ ]*\).*/\1/
33459 s/\n//
33460 s/^[^=]*=[ ]*$//
33464 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33465 fi # test -n "$CONFIG_FILES"
33467 # Set up the scripts for CONFIG_HEADERS section.
33468 # No need to generate them if there are no CONFIG_HEADERS.
33469 # This happens for instance with `./config.status Makefile'.
33470 if test -n "$CONFIG_HEADERS"; then
33471 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
33472 BEGIN {
33473 _ACEOF
33475 # Transform confdefs.h into an awk script `defines.awk', embedded as
33476 # here-document in config.status, that substitutes the proper values into
33477 # config.h.in to produce config.h.
33479 # Create a delimiter string that does not exist in confdefs.h, to ease
33480 # handling of long lines.
33481 ac_delim='%!_!# '
33482 for ac_last_try in false false :; do
33483 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
33484 if test -z "$ac_tt"; then
33485 break
33486 elif $ac_last_try; then
33487 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
33488 else
33489 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
33491 done
33493 # For the awk script, D is an array of macro values keyed by name,
33494 # likewise P contains macro parameters if any. Preserve backslash
33495 # newline sequences.
33497 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
33498 sed -n '
33499 s/.\{148\}/&'"$ac_delim"'/g
33500 t rset
33501 :rset
33502 s/^[ ]*#[ ]*define[ ][ ]*/ /
33503 t def
33505 :def
33506 s/\\$//
33507 t bsnl
33508 s/["\\]/\\&/g
33509 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
33510 D["\1"]=" \3"/p
33511 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
33513 :bsnl
33514 s/["\\]/\\&/g
33515 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
33516 D["\1"]=" \3\\\\\\n"\\/p
33517 t cont
33518 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
33519 t cont
33521 :cont
33523 s/.\{148\}/&'"$ac_delim"'/g
33524 t clear
33525 :clear
33526 s/\\$//
33527 t bsnlc
33528 s/["\\]/\\&/g; s/^/"/; s/$/"/p
33530 :bsnlc
33531 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
33532 b cont
33533 ' <confdefs.h | sed '
33534 s/'"$ac_delim"'/"\\\
33535 "/g' >>$CONFIG_STATUS || ac_write_fail=1
33537 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33538 for (key in D) D_is_set[key] = 1
33539 FS = "\a"
33541 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
33542 line = \$ 0
33543 split(line, arg, " ")
33544 if (arg[1] == "#") {
33545 defundef = arg[2]
33546 mac1 = arg[3]
33547 } else {
33548 defundef = substr(arg[1], 2)
33549 mac1 = arg[2]
33551 split(mac1, mac2, "(") #)
33552 macro = mac2[1]
33553 prefix = substr(line, 1, index(line, defundef) - 1)
33554 if (D_is_set[macro]) {
33555 # Preserve the white space surrounding the "#".
33556 print prefix "define", macro P[macro] D[macro]
33557 next
33558 } else {
33559 # Replace #undef with comments. This is necessary, for example,
33560 # in the case of _POSIX_SOURCE, which is predefined and required
33561 # on some systems where configure will not decide to define it.
33562 if (defundef == "undef") {
33563 print "/*", prefix defundef, macro, "*/"
33564 next
33568 { print }
33569 _ACAWK
33570 _ACEOF
33571 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33572 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
33573 fi # test -n "$CONFIG_HEADERS"
33576 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
33577 shift
33578 for ac_tag
33580 case $ac_tag in
33581 :[FHLC]) ac_mode=$ac_tag; continue;;
33582 esac
33583 case $ac_mode$ac_tag in
33584 :[FHL]*:*);;
33585 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
33586 :[FH]-) ac_tag=-:-;;
33587 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
33588 esac
33589 ac_save_IFS=$IFS
33590 IFS=:
33591 set x $ac_tag
33592 IFS=$ac_save_IFS
33593 shift
33594 ac_file=$1
33595 shift
33597 case $ac_mode in
33598 :L) ac_source=$1;;
33599 :[FH])
33600 ac_file_inputs=
33601 for ac_f
33603 case $ac_f in
33604 -) ac_f="$ac_tmp/stdin";;
33605 *) # Look for the file first in the build tree, then in the source tree
33606 # (if the path is not absolute). The absolute path cannot be DOS-style,
33607 # because $ac_f cannot contain `:'.
33608 test -f "$ac_f" ||
33609 case $ac_f in
33610 [\\/$]*) false;;
33611 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
33612 esac ||
33613 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
33614 esac
33615 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
33616 as_fn_append ac_file_inputs " '$ac_f'"
33617 done
33619 # Let's still pretend it is `configure' which instantiates (i.e., don't
33620 # use $as_me), people would be surprised to read:
33621 # /* config.h. Generated by config.status. */
33622 configure_input='Generated from '`
33623 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
33624 `' by configure.'
33625 if test x"$ac_file" != x-; then
33626 configure_input="$ac_file. $configure_input"
33627 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
33628 $as_echo "$as_me: creating $ac_file" >&6;}
33630 # Neutralize special characters interpreted by sed in replacement strings.
33631 case $configure_input in #(
33632 *\&* | *\|* | *\\* )
33633 ac_sed_conf_input=`$as_echo "$configure_input" |
33634 sed 's/[\\\\&|]/\\\\&/g'`;; #(
33635 *) ac_sed_conf_input=$configure_input;;
33636 esac
33638 case $ac_tag in
33639 *:-:* | *:-) cat >"$ac_tmp/stdin" \
33640 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
33641 esac
33643 esac
33645 ac_dir=`$as_dirname -- "$ac_file" ||
33646 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33647 X"$ac_file" : 'X\(//\)[^/]' \| \
33648 X"$ac_file" : 'X\(//\)$' \| \
33649 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
33650 $as_echo X"$ac_file" |
33651 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33652 s//\1/
33655 /^X\(\/\/\)[^/].*/{
33656 s//\1/
33659 /^X\(\/\/\)$/{
33660 s//\1/
33663 /^X\(\/\).*/{
33664 s//\1/
33667 s/.*/./; q'`
33668 as_dir="$ac_dir"; as_fn_mkdir_p
33669 ac_builddir=.
33671 case "$ac_dir" in
33672 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
33674 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
33675 # A ".." for each directory in $ac_dir_suffix.
33676 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
33677 case $ac_top_builddir_sub in
33678 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
33679 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
33680 esac ;;
33681 esac
33682 ac_abs_top_builddir=$ac_pwd
33683 ac_abs_builddir=$ac_pwd$ac_dir_suffix
33684 # for backward compatibility:
33685 ac_top_builddir=$ac_top_build_prefix
33687 case $srcdir in
33688 .) # We are building in place.
33689 ac_srcdir=.
33690 ac_top_srcdir=$ac_top_builddir_sub
33691 ac_abs_top_srcdir=$ac_pwd ;;
33692 [\\/]* | ?:[\\/]* ) # Absolute name.
33693 ac_srcdir=$srcdir$ac_dir_suffix;
33694 ac_top_srcdir=$srcdir
33695 ac_abs_top_srcdir=$srcdir ;;
33696 *) # Relative name.
33697 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
33698 ac_top_srcdir=$ac_top_build_prefix$srcdir
33699 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
33700 esac
33701 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
33704 case $ac_mode in
33707 # CONFIG_FILE
33710 _ACEOF
33712 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33713 # If the template does not know about datarootdir, expand it.
33714 # FIXME: This hack should be removed a few years after 2.60.
33715 ac_datarootdir_hack=; ac_datarootdir_seen=
33716 ac_sed_dataroot='
33717 /datarootdir/ {
33721 /@datadir@/p
33722 /@docdir@/p
33723 /@infodir@/p
33724 /@localedir@/p
33725 /@mandir@/p'
33726 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
33727 *datarootdir*) ac_datarootdir_seen=yes;;
33728 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
33729 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
33730 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
33731 _ACEOF
33732 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33733 ac_datarootdir_hack='
33734 s&@datadir@&$datadir&g
33735 s&@docdir@&$docdir&g
33736 s&@infodir@&$infodir&g
33737 s&@localedir@&$localedir&g
33738 s&@mandir@&$mandir&g
33739 s&\\\${datarootdir}&$datarootdir&g' ;;
33740 esac
33741 _ACEOF
33743 # Neutralize VPATH when `$srcdir' = `.'.
33744 # Shell code in configure.ac might set extrasub.
33745 # FIXME: do we really want to maintain this feature?
33746 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33747 ac_sed_extra="$ac_vpsub
33748 $extrasub
33749 _ACEOF
33750 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33752 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
33753 s|@configure_input@|$ac_sed_conf_input|;t t
33754 s&@top_builddir@&$ac_top_builddir_sub&;t t
33755 s&@top_build_prefix@&$ac_top_build_prefix&;t t
33756 s&@srcdir@&$ac_srcdir&;t t
33757 s&@abs_srcdir@&$ac_abs_srcdir&;t t
33758 s&@top_srcdir@&$ac_top_srcdir&;t t
33759 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
33760 s&@builddir@&$ac_builddir&;t t
33761 s&@abs_builddir@&$ac_abs_builddir&;t t
33762 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
33763 $ac_datarootdir_hack
33765 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
33766 if $ac_cs_awk_getline; then
33767 $AWK -f "$ac_tmp/subs.awk"
33768 else
33769 $AWK -f "$ac_tmp/subs.awk" | $SHELL
33770 fi \
33771 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
33773 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
33774 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
33775 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
33776 "$ac_tmp/out"`; test -z "$ac_out"; } &&
33777 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
33778 which seems to be undefined. Please make sure it is defined" >&5
33779 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
33780 which seems to be undefined. Please make sure it is defined" >&2;}
33782 rm -f "$ac_tmp/stdin"
33783 case $ac_file in
33784 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
33785 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
33786 esac \
33787 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
33791 # CONFIG_HEADER
33793 if test x"$ac_file" != x-; then
33795 $as_echo "/* $configure_input */" \
33796 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
33797 } >"$ac_tmp/config.h" \
33798 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
33799 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
33800 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
33801 $as_echo "$as_me: $ac_file is unchanged" >&6;}
33802 else
33803 rm -f "$ac_file"
33804 mv "$ac_tmp/config.h" "$ac_file" \
33805 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
33807 else
33808 $as_echo "/* $configure_input */" \
33809 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
33810 || as_fn_error $? "could not create -" "$LINENO" 5
33815 # CONFIG_LINK
33818 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
33820 else
33821 # Prefer the file from the source tree if names are identical.
33822 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
33823 ac_source=$srcdir/$ac_source
33826 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
33827 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
33829 if test ! -r "$ac_source"; then
33830 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
33832 rm -f "$ac_file"
33834 # Try a relative symlink, then a hard link, then a copy.
33835 case $ac_source in
33836 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
33837 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
33838 esac
33839 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
33840 ln "$ac_source" "$ac_file" 2>/dev/null ||
33841 cp -p "$ac_source" "$ac_file" ||
33842 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
33845 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
33846 $as_echo "$as_me: executing $ac_file commands" >&6;}
33848 esac
33851 case $ac_file$ac_mode in
33852 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
33853 "gccdepdir":C)
33854 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs build/$DEPDIR
33855 for lang in $subdirs c-family common analyzer rtl-ssa
33857 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs $lang/$DEPDIR
33858 done ;;
33859 "as":F) chmod +x as ;;
33860 "collect-ld":F) chmod +x collect-ld ;;
33861 "nm":F) chmod +x nm ;;
33862 "dsymutil":F) chmod +x dsymutil ;;
33863 "default":C)
33864 case ${CONFIG_HEADERS} in
33865 *auto-host.h:config.in*)
33866 echo > cstamp-h ;;
33867 esac
33868 # Make sure all the subdirs exist.
33869 for d in $subdirs doc build common c-family
33871 test -d $d || mkdir $d
33872 done
33875 esac
33876 done # for ac_tag
33879 as_fn_exit 0
33880 _ACEOF
33881 ac_clean_files=$ac_clean_files_save
33883 test $ac_write_fail = 0 ||
33884 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
33887 # configure is writing to config.log, and then calls config.status.
33888 # config.status does its own redirection, appending to config.log.
33889 # Unfortunately, on DOS this fails, as config.log is still kept open
33890 # by configure, so config.status won't be able to write to it; its
33891 # output is simply discarded. So we exec the FD to /dev/null,
33892 # effectively closing config.log, so it can be properly (re)opened and
33893 # appended to by config.status. When coming back to configure, we
33894 # need to make the FD available again.
33895 if test "$no_create" != yes; then
33896 ac_cs_success=:
33897 ac_config_status_args=
33898 test "$silent" = yes &&
33899 ac_config_status_args="$ac_config_status_args --quiet"
33900 exec 5>/dev/null
33901 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
33902 exec 5>>config.log
33903 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
33904 # would make configure fail if this is the last instruction.
33905 $ac_cs_success || as_fn_exit 1
33907 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
33908 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
33909 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}