Hackfix and re-enable strtoull and wcstoull, see bug #3798.
[sdcc.git] / sdcc / support / cpp / gcc / configure
blobc1dbf50ed7dcee5500164bb22f139b5d4bdf9957
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="gcc.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 ld_soname_option
726 ld_version_script_option
727 libgcc_visibility
728 ORIGINAL_DSYMUTIL_FOR_TARGET
729 gcc_cv_dsymutil
730 gcc_cv_otool
731 gcc_cv_readelf
732 gcc_cv_objdump
733 ORIGINAL_NM_FOR_TARGET
734 gcc_cv_nm
735 ORIGINAL_LD_GOLD_FOR_TARGET
736 ORIGINAL_LD_BFD_FOR_TARGET
737 ORIGINAL_LD_FOR_TARGET
738 ORIGINAL_PLUGIN_LD_FOR_TARGET
739 gcc_cv_ld
740 ORIGINAL_AS_FOR_TARGET
741 gcc_cv_as
742 enable_fast_install
743 objdir
744 OTOOL64
745 OTOOL
746 LIPO
747 NMEDIT
748 DSYMUTIL
749 STRIP
750 OBJDUMP
751 ac_ct_DUMPBIN
752 DUMPBIN
754 FGREP
756 LIBTOOL
757 collect2
758 STMP_FIXINC
759 BUILD_LDFLAGS
760 BUILD_CXXFLAGS
761 BUILD_CFLAGS
762 CXX_FOR_BUILD
763 CC_FOR_BUILD
764 inhibit_libc
765 BUILD_SYSTEM_HEADER_DIR
766 SYSTEM_HEADER_DIR
768 CROSS
769 CATOBJEXT
770 GENCAT
771 INSTOBJEXT
772 DATADIRNAME
773 CATALOGS
774 POSUB
775 GMSGFMT
776 XGETTEXT
777 INCINTL
778 LIBINTL_DEP
779 LIBINTL
780 USE_NLS
781 get_gcc_base_ver
782 HAVE_AUTO_BUILD
783 extra_opt_files
784 extra_modes_file
785 NATIVE_SYSTEM_HEADER_DIR
786 objext
787 manext
788 LIBICONV_DEP
789 LTLIBICONV
790 LIBICONV
791 ZSTD_LDFLAGS
792 ZSTD_CPPFLAGS
793 ZSTD_LIB
794 ZSTD_INCLUDE
795 DL_LIB
796 LDEXP_LIB
797 NETLIBS
798 EXTRA_GCC_LIBS
799 GNAT_LIBEXC
800 COLLECT2_LIBS
801 CXXDEPMODE
802 DEPDIR
803 am__leading_dot
804 doc_build_sys
807 BISON
808 FLEX
809 GENERATED_MANPAGES
810 BUILD_INFO
811 MAKEINFO
812 have_mktemp_command
813 make_compare_target
814 INSTALL_DATA
815 INSTALL_PROGRAM
816 INSTALL
817 ranlib_flags
818 RANLIB
820 LN_S
822 SET_MAKE
823 omp_device_property_deps
824 omp_device_properties
825 accel_dir_suffix
826 real_target_noncanonical
827 enable_as_accelerator
828 gnat_install_lib
829 REPORT_BUGS_TEXI
830 REPORT_BUGS_TO
831 PKGVERSION
832 CONFIGURE_SPECS
833 enable_gcov
834 enable_shared
835 enable_fixed_point
836 enable_decimal_float
837 with_float
838 with_cpu
839 enable_multiarch
840 enable_multilib
841 coverage_flags
842 valgrind_command
843 valgrind_path_defines
844 valgrind_path
845 TREECHECKING
846 nocommon_flag
847 noexception_flags
848 warn_cxxflags
849 warn_cflags
850 c_strict_warn
851 strict_warn
852 c_loose_warn
853 loose_warn
854 aliasing_flags
856 EGREP
857 GREP
858 CXXCPP
859 PICFLAG_FOR_TARGET
860 GDCFLAGS
861 ac_ct_CXX
862 CXXFLAGS
864 OBJEXT
865 EXEEXT
866 ac_ct_CC
867 CPPFLAGS
868 LDFLAGS
869 CFLAGS
871 GENINSRC
872 CROSS_SYSTEM_HEADER_DIR
873 TARGET_SYSTEM_ROOT_DEFINE
874 TARGET_SYSTEM_ROOT
875 SYSROOT_CFLAGS_FOR_TARGET
876 target_subdir
877 host_subdir
878 build_subdir
879 build_libsubdir
880 target_noncanonical
881 host_noncanonical
882 target_os
883 target_vendor
884 target_cpu
885 target
886 host_os
887 host_vendor
888 host_cpu
889 host
890 build_os
891 build_vendor
892 build_cpu
893 build
894 target_alias
895 host_alias
896 build_alias
897 LIBS
898 ECHO_T
899 ECHO_N
900 ECHO_C
901 DEFS
902 mandir
903 localedir
904 libdir
905 psdir
906 pdfdir
907 dvidir
908 htmldir
909 infodir
910 docdir
911 oldincludedir
912 includedir
913 localstatedir
914 sharedstatedir
915 sysconfdir
916 datadir
917 datarootdir
918 libexecdir
919 sbindir
920 bindir
921 program_transform_name
922 prefix
923 exec_prefix
924 PACKAGE_URL
925 PACKAGE_BUGREPORT
926 PACKAGE_STRING
927 PACKAGE_VERSION
928 PACKAGE_TARNAME
929 PACKAGE_NAME
930 PATH_SEPARATOR
931 SHELL'
932 ac_subst_files='option_includes
933 language_hooks'
934 ac_user_opts='
935 enable_option_checking
936 with_build_libsubdir
937 with_local_prefix
938 with_native_system_header_dir
939 with_build_sysroot
940 with_sysroot
941 with_gxx_include_dir
942 with_gxx_libcxx_include_dir
943 with_cpp_install_dir
944 enable_generated_files_in_srcdir
945 with_gnu_ld
946 with_ld
947 with_demangler_in_ld
948 with_dsymutil
949 with_gnu_as
950 with_as
951 enable_largefile
952 enable_build_format_warnings
953 enable_werror_always
954 enable_checking
955 enable_coverage
956 enable_gather_detailed_mem_stats
957 enable_valgrind_annotations
958 enable_multilib
959 enable_multiarch
960 with_stack_clash_protection_guard_size
961 enable___cxa_atexit
962 enable_decimal_float
963 enable_fixed_point
964 enable_threads
965 enable_tls
966 enable_vtable_verify
967 enable_analyzer
968 enable_objc_gc
969 with_dwarf2
970 enable_shared
971 enable_gcov
972 with_specs
973 with_pkgversion
974 with_bugurl
975 with_documentation_root_url
976 with_changes_root_url
977 enable_languages
978 with_multilib_list
979 with_multilib_generator
980 with_zstd
981 with_zstd_include
982 with_zstd_lib
983 enable_rpath
984 with_libiconv_prefix
985 with_libiconv_type
986 enable_sjlj_exceptions
987 with_gcc_major_version_only
988 enable_secureplt
989 enable_mingw_wildcard
990 enable_large_address_aware
991 enable_leading_mingw64_underscores
992 enable_cld
993 enable_frame_pointer
994 enable_win32_registry
995 enable_static
996 with_pic
997 enable_fast_install
998 enable_libtool_lock
999 enable_ld
1000 enable_gold
1001 with_plugin_ld
1002 enable_gnu_indirect_function
1003 enable_initfini_array
1004 enable_newlib_nano_formatted_io
1005 enable_linker_build_id
1006 enable_libssp
1007 enable_default_ssp
1008 with_long_double_128
1009 with_long_double_format
1010 with_gc
1011 with_system_zlib
1012 enable_maintainer_mode
1013 enable_link_mutex
1014 enable_link_serialization
1015 enable_version_specific_runtime_libs
1016 enable_host_shared
1017 enable_libquadmath_support
1018 with_linker_hash_style
1019 with_diagnostics_color
1020 with_diagnostics_urls
1021 enable_default_pie
1022 enable_cet
1023 enable_s390_excess_float_precision
1025 ac_precious_vars='build_alias
1026 host_alias
1027 target_alias
1029 CFLAGS
1030 LDFLAGS
1031 LIBS
1032 CPPFLAGS
1034 CXXFLAGS
1036 CXXCPP
1038 GMPLIBS
1039 GMPINC
1040 ISLLIBS
1041 ISLINC'
1044 # Initialize some variables set by options.
1045 ac_init_help=
1046 ac_init_version=false
1047 ac_unrecognized_opts=
1048 ac_unrecognized_sep=
1049 # The variables have the same names as the options, with
1050 # dashes changed to underlines.
1051 cache_file=/dev/null
1052 exec_prefix=NONE
1053 no_create=
1054 no_recursion=
1055 prefix=NONE
1056 program_prefix=NONE
1057 program_suffix=NONE
1058 program_transform_name=s,x,x,
1059 silent=
1060 site=
1061 srcdir=
1062 verbose=
1063 x_includes=NONE
1064 x_libraries=NONE
1066 # Installation directory options.
1067 # These are left unexpanded so users can "make install exec_prefix=/foo"
1068 # and all the variables that are supposed to be based on exec_prefix
1069 # by default will actually change.
1070 # Use braces instead of parens because sh, perl, etc. also accept them.
1071 # (The list follows the same order as the GNU Coding Standards.)
1072 bindir='${exec_prefix}/bin'
1073 sbindir='${exec_prefix}/sbin'
1074 libexecdir='${exec_prefix}/libexec'
1075 datarootdir='${prefix}/share'
1076 datadir='${datarootdir}'
1077 sysconfdir='${prefix}/etc'
1078 sharedstatedir='${prefix}/com'
1079 localstatedir='${prefix}/var'
1080 includedir='${prefix}/include'
1081 oldincludedir='/usr/include'
1082 docdir='${datarootdir}/doc/${PACKAGE}'
1083 infodir='${datarootdir}/info'
1084 htmldir='${docdir}'
1085 dvidir='${docdir}'
1086 pdfdir='${docdir}'
1087 psdir='${docdir}'
1088 libdir='${exec_prefix}/lib'
1089 localedir='${datarootdir}/locale'
1090 mandir='${datarootdir}/man'
1092 ac_prev=
1093 ac_dashdash=
1094 for ac_option
1096 # If the previous option needs an argument, assign it.
1097 if test -n "$ac_prev"; then
1098 eval $ac_prev=\$ac_option
1099 ac_prev=
1100 continue
1103 case $ac_option in
1104 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1105 *=) ac_optarg= ;;
1106 *) ac_optarg=yes ;;
1107 esac
1109 # Accept the important Cygnus configure options, so we can diagnose typos.
1111 case $ac_dashdash$ac_option in
1113 ac_dashdash=yes ;;
1115 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1116 ac_prev=bindir ;;
1117 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1118 bindir=$ac_optarg ;;
1120 -build | --build | --buil | --bui | --bu)
1121 ac_prev=build_alias ;;
1122 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1123 build_alias=$ac_optarg ;;
1125 -cache-file | --cache-file | --cache-fil | --cache-fi \
1126 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1127 ac_prev=cache_file ;;
1128 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1129 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1130 cache_file=$ac_optarg ;;
1132 --config-cache | -C)
1133 cache_file=config.cache ;;
1135 -datadir | --datadir | --datadi | --datad)
1136 ac_prev=datadir ;;
1137 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1138 datadir=$ac_optarg ;;
1140 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1141 | --dataroo | --dataro | --datar)
1142 ac_prev=datarootdir ;;
1143 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1144 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1145 datarootdir=$ac_optarg ;;
1147 -disable-* | --disable-*)
1148 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1149 # Reject names that are not valid shell variable names.
1150 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1151 as_fn_error $? "invalid feature name: $ac_useropt"
1152 ac_useropt_orig=$ac_useropt
1153 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1154 case $ac_user_opts in
1156 "enable_$ac_useropt"
1157 "*) ;;
1158 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1159 ac_unrecognized_sep=', ';;
1160 esac
1161 eval enable_$ac_useropt=no ;;
1163 -docdir | --docdir | --docdi | --doc | --do)
1164 ac_prev=docdir ;;
1165 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1166 docdir=$ac_optarg ;;
1168 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1169 ac_prev=dvidir ;;
1170 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1171 dvidir=$ac_optarg ;;
1173 -enable-* | --enable-*)
1174 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1175 # Reject names that are not valid shell variable names.
1176 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1177 as_fn_error $? "invalid feature name: $ac_useropt"
1178 ac_useropt_orig=$ac_useropt
1179 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1180 case $ac_user_opts in
1182 "enable_$ac_useropt"
1183 "*) ;;
1184 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1185 ac_unrecognized_sep=', ';;
1186 esac
1187 eval enable_$ac_useropt=\$ac_optarg ;;
1189 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1190 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1191 | --exec | --exe | --ex)
1192 ac_prev=exec_prefix ;;
1193 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1194 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1195 | --exec=* | --exe=* | --ex=*)
1196 exec_prefix=$ac_optarg ;;
1198 -gas | --gas | --ga | --g)
1199 # Obsolete; use --with-gas.
1200 with_gas=yes ;;
1202 -help | --help | --hel | --he | -h)
1203 ac_init_help=long ;;
1204 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1205 ac_init_help=recursive ;;
1206 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1207 ac_init_help=short ;;
1209 -host | --host | --hos | --ho)
1210 ac_prev=host_alias ;;
1211 -host=* | --host=* | --hos=* | --ho=*)
1212 host_alias=$ac_optarg ;;
1214 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1215 ac_prev=htmldir ;;
1216 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1217 | --ht=*)
1218 htmldir=$ac_optarg ;;
1220 -includedir | --includedir | --includedi | --included | --include \
1221 | --includ | --inclu | --incl | --inc)
1222 ac_prev=includedir ;;
1223 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1224 | --includ=* | --inclu=* | --incl=* | --inc=*)
1225 includedir=$ac_optarg ;;
1227 -infodir | --infodir | --infodi | --infod | --info | --inf)
1228 ac_prev=infodir ;;
1229 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1230 infodir=$ac_optarg ;;
1232 -libdir | --libdir | --libdi | --libd)
1233 ac_prev=libdir ;;
1234 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1235 libdir=$ac_optarg ;;
1237 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1238 | --libexe | --libex | --libe)
1239 ac_prev=libexecdir ;;
1240 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1241 | --libexe=* | --libex=* | --libe=*)
1242 libexecdir=$ac_optarg ;;
1244 -localedir | --localedir | --localedi | --localed | --locale)
1245 ac_prev=localedir ;;
1246 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1247 localedir=$ac_optarg ;;
1249 -localstatedir | --localstatedir | --localstatedi | --localstated \
1250 | --localstate | --localstat | --localsta | --localst | --locals)
1251 ac_prev=localstatedir ;;
1252 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1253 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1254 localstatedir=$ac_optarg ;;
1256 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1257 ac_prev=mandir ;;
1258 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1259 mandir=$ac_optarg ;;
1261 -nfp | --nfp | --nf)
1262 # Obsolete; use --without-fp.
1263 with_fp=no ;;
1265 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1266 | --no-cr | --no-c | -n)
1267 no_create=yes ;;
1269 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1270 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1271 no_recursion=yes ;;
1273 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1274 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1275 | --oldin | --oldi | --old | --ol | --o)
1276 ac_prev=oldincludedir ;;
1277 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1278 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1279 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1280 oldincludedir=$ac_optarg ;;
1282 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1283 ac_prev=prefix ;;
1284 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1285 prefix=$ac_optarg ;;
1287 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1288 | --program-pre | --program-pr | --program-p)
1289 ac_prev=program_prefix ;;
1290 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1291 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1292 program_prefix=$ac_optarg ;;
1294 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1295 | --program-suf | --program-su | --program-s)
1296 ac_prev=program_suffix ;;
1297 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1298 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1299 program_suffix=$ac_optarg ;;
1301 -program-transform-name | --program-transform-name \
1302 | --program-transform-nam | --program-transform-na \
1303 | --program-transform-n | --program-transform- \
1304 | --program-transform | --program-transfor \
1305 | --program-transfo | --program-transf \
1306 | --program-trans | --program-tran \
1307 | --progr-tra | --program-tr | --program-t)
1308 ac_prev=program_transform_name ;;
1309 -program-transform-name=* | --program-transform-name=* \
1310 | --program-transform-nam=* | --program-transform-na=* \
1311 | --program-transform-n=* | --program-transform-=* \
1312 | --program-transform=* | --program-transfor=* \
1313 | --program-transfo=* | --program-transf=* \
1314 | --program-trans=* | --program-tran=* \
1315 | --progr-tra=* | --program-tr=* | --program-t=*)
1316 program_transform_name=$ac_optarg ;;
1318 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1319 ac_prev=pdfdir ;;
1320 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1321 pdfdir=$ac_optarg ;;
1323 -psdir | --psdir | --psdi | --psd | --ps)
1324 ac_prev=psdir ;;
1325 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1326 psdir=$ac_optarg ;;
1328 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1329 | -silent | --silent | --silen | --sile | --sil)
1330 silent=yes ;;
1332 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1333 ac_prev=sbindir ;;
1334 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1335 | --sbi=* | --sb=*)
1336 sbindir=$ac_optarg ;;
1338 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1339 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1340 | --sharedst | --shareds | --shared | --share | --shar \
1341 | --sha | --sh)
1342 ac_prev=sharedstatedir ;;
1343 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1344 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1345 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1346 | --sha=* | --sh=*)
1347 sharedstatedir=$ac_optarg ;;
1349 -site | --site | --sit)
1350 ac_prev=site ;;
1351 -site=* | --site=* | --sit=*)
1352 site=$ac_optarg ;;
1354 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1355 ac_prev=srcdir ;;
1356 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1357 srcdir=$ac_optarg ;;
1359 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1360 | --syscon | --sysco | --sysc | --sys | --sy)
1361 ac_prev=sysconfdir ;;
1362 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1363 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1364 sysconfdir=$ac_optarg ;;
1366 -target | --target | --targe | --targ | --tar | --ta | --t)
1367 ac_prev=target_alias ;;
1368 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1369 target_alias=$ac_optarg ;;
1371 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1372 verbose=yes ;;
1374 -version | --version | --versio | --versi | --vers | -V)
1375 ac_init_version=: ;;
1377 -with-* | --with-*)
1378 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1379 # Reject names that are not valid shell variable names.
1380 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1381 as_fn_error $? "invalid package name: $ac_useropt"
1382 ac_useropt_orig=$ac_useropt
1383 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1384 case $ac_user_opts in
1386 "with_$ac_useropt"
1387 "*) ;;
1388 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1389 ac_unrecognized_sep=', ';;
1390 esac
1391 eval with_$ac_useropt=\$ac_optarg ;;
1393 -without-* | --without-*)
1394 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1395 # Reject names that are not valid shell variable names.
1396 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1397 as_fn_error $? "invalid package name: $ac_useropt"
1398 ac_useropt_orig=$ac_useropt
1399 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1400 case $ac_user_opts in
1402 "with_$ac_useropt"
1403 "*) ;;
1404 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1405 ac_unrecognized_sep=', ';;
1406 esac
1407 eval with_$ac_useropt=no ;;
1409 --x)
1410 # Obsolete; use --with-x.
1411 with_x=yes ;;
1413 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1414 | --x-incl | --x-inc | --x-in | --x-i)
1415 ac_prev=x_includes ;;
1416 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1417 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1418 x_includes=$ac_optarg ;;
1420 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1421 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1422 ac_prev=x_libraries ;;
1423 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1424 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1425 x_libraries=$ac_optarg ;;
1427 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1428 Try \`$0 --help' for more information"
1431 *=*)
1432 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1433 # Reject names that are not valid shell variable names.
1434 case $ac_envvar in #(
1435 '' | [0-9]* | *[!_$as_cr_alnum]* )
1436 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1437 esac
1438 eval $ac_envvar=\$ac_optarg
1439 export $ac_envvar ;;
1442 # FIXME: should be removed in autoconf 3.0.
1443 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1444 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1445 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1446 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1449 esac
1450 done
1452 if test -n "$ac_prev"; then
1453 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1454 as_fn_error $? "missing argument to $ac_option"
1457 if test -n "$ac_unrecognized_opts"; then
1458 case $enable_option_checking in
1459 no) ;;
1460 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1461 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1462 esac
1465 # Check all directory arguments for consistency.
1466 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1467 datadir sysconfdir sharedstatedir localstatedir includedir \
1468 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1469 libdir localedir mandir
1471 eval ac_val=\$$ac_var
1472 # Remove trailing slashes.
1473 case $ac_val in
1474 */ )
1475 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1476 eval $ac_var=\$ac_val;;
1477 esac
1478 # Be sure to have absolute directory names.
1479 case $ac_val in
1480 [\\/$]* | ?:[\\/]* ) continue;;
1481 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1482 esac
1483 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1484 done
1486 # There might be people who depend on the old broken behavior: `$host'
1487 # used to hold the argument of --host etc.
1488 # FIXME: To remove some day.
1489 build=$build_alias
1490 host=$host_alias
1491 target=$target_alias
1493 # FIXME: To remove some day.
1494 if test "x$host_alias" != x; then
1495 if test "x$build_alias" = x; then
1496 cross_compiling=maybe
1497 elif test "x$build_alias" != "x$host_alias"; then
1498 cross_compiling=yes
1502 ac_tool_prefix=
1503 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1505 test "$silent" = yes && exec 6>/dev/null
1508 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1509 ac_ls_di=`ls -di .` &&
1510 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1511 as_fn_error $? "working directory cannot be determined"
1512 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1513 as_fn_error $? "pwd does not report name of working directory"
1516 # Find the source files, if location was not specified.
1517 if test -z "$srcdir"; then
1518 ac_srcdir_defaulted=yes
1519 # Try the directory containing this script, then the parent directory.
1520 ac_confdir=`$as_dirname -- "$as_myself" ||
1521 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1522 X"$as_myself" : 'X\(//\)[^/]' \| \
1523 X"$as_myself" : 'X\(//\)$' \| \
1524 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1525 $as_echo X"$as_myself" |
1526 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1527 s//\1/
1530 /^X\(\/\/\)[^/].*/{
1531 s//\1/
1534 /^X\(\/\/\)$/{
1535 s//\1/
1538 /^X\(\/\).*/{
1539 s//\1/
1542 s/.*/./; q'`
1543 srcdir=$ac_confdir
1544 if test ! -r "$srcdir/$ac_unique_file"; then
1545 srcdir=..
1547 else
1548 ac_srcdir_defaulted=no
1550 if test ! -r "$srcdir/$ac_unique_file"; then
1551 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1552 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1554 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1555 ac_abs_confdir=`(
1556 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1557 pwd)`
1558 # When building in place, set srcdir=.
1559 if test "$ac_abs_confdir" = "$ac_pwd"; then
1560 srcdir=.
1562 # Remove unnecessary trailing slashes from srcdir.
1563 # Double slashes in file names in object file debugging info
1564 # mess up M-x gdb in Emacs.
1565 case $srcdir in
1566 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1567 esac
1568 for ac_var in $ac_precious_vars; do
1569 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1570 eval ac_env_${ac_var}_value=\$${ac_var}
1571 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1572 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1573 done
1576 # Report the --help message.
1578 if test "$ac_init_help" = "long"; then
1579 # Omit some internal or obsolete options to make the list less imposing.
1580 # This message is too long to be a string in the A/UX 3.1 sh.
1581 cat <<_ACEOF
1582 \`configure' configures this package to adapt to many kinds of systems.
1584 Usage: $0 [OPTION]... [VAR=VALUE]...
1586 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1587 VAR=VALUE. See below for descriptions of some of the useful variables.
1589 Defaults for the options are specified in brackets.
1591 Configuration:
1592 -h, --help display this help and exit
1593 --help=short display options specific to this package
1594 --help=recursive display the short help of all the included packages
1595 -V, --version display version information and exit
1596 -q, --quiet, --silent do not print \`checking ...' messages
1597 --cache-file=FILE cache test results in FILE [disabled]
1598 -C, --config-cache alias for \`--cache-file=config.cache'
1599 -n, --no-create do not create output files
1600 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1602 Installation directories:
1603 --prefix=PREFIX install architecture-independent files in PREFIX
1604 [$ac_default_prefix]
1605 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1606 [PREFIX]
1608 By default, \`make install' will install all the files in
1609 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1610 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1611 for instance \`--prefix=\$HOME'.
1613 For better control, use the options below.
1615 Fine tuning of the installation directories:
1616 --bindir=DIR user executables [EPREFIX/bin]
1617 --sbindir=DIR system admin executables [EPREFIX/sbin]
1618 --libexecdir=DIR program executables [EPREFIX/libexec]
1619 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1620 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1621 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1622 --libdir=DIR object code libraries [EPREFIX/lib]
1623 --includedir=DIR C header files [PREFIX/include]
1624 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1625 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1626 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1627 --infodir=DIR info documentation [DATAROOTDIR/info]
1628 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1629 --mandir=DIR man documentation [DATAROOTDIR/man]
1630 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1631 --htmldir=DIR html documentation [DOCDIR]
1632 --dvidir=DIR dvi documentation [DOCDIR]
1633 --pdfdir=DIR pdf documentation [DOCDIR]
1634 --psdir=DIR ps documentation [DOCDIR]
1635 _ACEOF
1637 cat <<\_ACEOF
1639 Program names:
1640 --program-prefix=PREFIX prepend PREFIX to installed program names
1641 --program-suffix=SUFFIX append SUFFIX to installed program names
1642 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1644 System types:
1645 --build=BUILD configure for building on BUILD [guessed]
1646 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1647 --target=TARGET configure for building compilers for TARGET [HOST]
1648 _ACEOF
1651 if test -n "$ac_init_help"; then
1653 cat <<\_ACEOF
1655 Optional Features:
1656 --disable-option-checking ignore unrecognized --enable/--with options
1657 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1658 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1659 --enable-generated-files-in-srcdir
1660 put copies of generated files in source dir intended
1661 for creating source tarballs for users without
1662 texinfo bison or flex
1663 --disable-largefile omit support for large files
1664 --disable-build-format-warnings
1665 don't use -Wformat while building GCC
1666 --enable-werror-always enable -Werror despite compiler version
1667 --enable-checking[=LIST]
1668 enable expensive run-time checks. With LIST, enable
1669 only specific categories of checks. Categories are:
1670 yes,no,all,none,release. Flags are:
1671 assert,df,extra,fold,gc,gcac,gimple,misc,
1672 rtlflag,rtl,runtime,tree,valgrind,types
1673 --enable-coverage[=LEVEL]
1674 enable compiler's code coverage collection. Use to
1675 measure compiler performance and locate unused parts
1676 of the compiler. With LEVEL, specify optimization.
1677 Values are opt, noopt, default is noopt
1678 --enable-gather-detailed-mem-stats
1679 enable detailed memory allocation stats gathering
1680 --enable-valgrind-annotations
1681 enable valgrind runtime interaction
1682 --enable-multilib enable library support for multiple ABIs
1683 --enable-multiarch enable support for multiarch paths
1684 --enable-__cxa_atexit enable __cxa_atexit for C++
1685 --enable-decimal-float={no,yes,bid,dpd}
1686 enable decimal float extension to C. Selecting 'bid'
1687 or 'dpd' choses which decimal floating point format
1688 to use
1689 --enable-fixed-point enable fixed-point arithmetic extension to C
1690 --enable-threads[=LIB] enable thread usage for target GCC, using LIB thread
1691 package
1692 --enable-tls enable or disable generation of tls code overriding
1693 the assembler check for tls support
1694 --enable-vtable-verify enable vtable verification feature
1695 --disable-analyzer disable -fanalyzer static analyzer
1696 --enable-objc-gc enable the use of Boehm's garbage collector with the
1697 GNU Objective-C runtime
1698 --disable-shared don't provide a shared libgcc
1699 --disable-gcov don't provide libgcov and related host tools
1700 --enable-languages=LIST specify which front-ends to build
1701 --disable-rpath do not hardcode runtime library paths
1702 --enable-sjlj-exceptions
1703 arrange to use setjmp/longjmp exception handling
1704 --enable-secureplt enable -msecure-plt by default for PowerPC
1705 --enable-mingw-wildcard Set whether to expand wildcard on command-line.
1706 Default to platform configuration
1707 --enable-large-address-aware
1708 Link mingw executables with --large-address-aware
1709 --enable-leading-mingw64-underscores
1710 enable leading underscores on 64 bit mingw targets
1711 --enable-cld enable -mcld by default for 32bit x86
1712 --enable-frame-pointer enable -fno-omit-frame-pointer by default for x86
1713 --disable-win32-registry
1714 disable lookup of installation paths in the Registry
1715 on Windows hosts
1716 --enable-win32-registry enable registry lookup (default)
1717 --enable-win32-registry=KEY
1718 use KEY instead of GCC version as the last portion
1719 of the registry key
1720 --enable-shared[=PKGS] build shared libraries [default=yes]
1721 --enable-static[=PKGS] build static libraries [default=yes]
1722 --enable-fast-install[=PKGS]
1723 optimize for fast installation [default=yes]
1724 --disable-libtool-lock avoid locking (might break parallel builds)
1725 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1726 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1727 --enable-gnu-indirect-function
1728 enable the use of the @gnu_indirect_function to
1729 glibc systems
1730 --enable-initfini-array use .init_array/.fini_array sections
1731 --enable-newlib-nano-formatted-io
1732 Use nano version formatted IO
1733 --enable-linker-build-id
1734 compiler will always pass --build-id to linker
1735 --enable-libssp enable linking against libssp
1736 --enable-default-ssp enable Stack Smashing Protection as default
1737 --enable-maintainer-mode
1738 enable make rules and dependencies not useful (and
1739 sometimes confusing) to the casual installer
1740 --enable-link-mutex avoid linking multiple front-ends at once to avoid
1741 thrashing on the build machine
1742 --enable-link-serialization
1743 avoid linking multiple GCC front-ends at once using
1744 make dependencies to avoid thrashing on the build
1745 machine
1746 --enable-version-specific-runtime-libs
1747 specify that runtime libraries should be installed
1748 in a compiler-specific directory
1749 --enable-host-shared build host code as shared libraries
1750 --disable-libquadmath-support
1751 disable libquadmath support for Fortran
1752 --enable-default-pie enable Position Independent Executable as default
1753 --enable-cet enable Intel CET in host libraries [default=auto]
1754 --enable-s390-excess-float-precision
1755 on s390 targets, evaluate float with double
1756 precision when in standards-conforming mode
1758 Optional Packages:
1759 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1760 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1761 --with-build-libsubdir=DIR Directory where to find libraries for build system
1762 --with-local-prefix=DIR specifies directory to put local include
1763 --with-native-system-header-dir=dir
1764 use dir as the directory to look for standard
1765 system header files in. Defaults to /usr/include.
1766 --with-build-sysroot=sysroot
1767 use sysroot as the system root during the build
1768 --with-sysroot[=DIR] search for usr/lib, usr/include, et al, within DIR
1769 --with-gxx-include-dir=DIR
1770 specifies directory to put g++ header files
1771 --with-gxx-libcxx-include-dir=DIR
1772 specifies directory to find libc++ header files
1773 --with-cpp-install-dir=DIR
1774 install the user visible C preprocessor in DIR
1775 (relative to PREFIX) as well as PREFIX/bin
1776 --with-gnu-ld arrange to work with GNU ld
1777 --with-ld arrange to use the specified ld (full pathname)
1778 --with-demangler-in-ld try to use demangler in GNU ld
1779 --with-dsymutil arrange to use the specified dsymutil (full
1780 pathname)
1781 --with-gnu-as arrange to work with GNU as
1782 --with-as arrange to use the specified as (full pathname)
1783 --with-stack-clash-protection-guard-size=size
1784 Set the default stack clash protection guard size
1785 for specific targets as a power of two in bytes.
1786 --with-dwarf2 force the default debug format to be DWARF 2
1787 --with-specs=SPECS add SPECS to driver command-line processing
1788 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1789 --with-bugurl=URL Direct users to URL to report a bug
1790 --with-documentation-root-url=URL
1791 Root for documentation URLs
1792 --with-changes-root-url=URL
1793 Root for GCC changes URLs
1794 --with-multilib-list select multilibs (AArch64, ARM, AVR, OR1K, RISC-V,
1795 SH and x86-64 only)
1796 --with-multilib-generator
1797 Multi-libs configuration string (RISC-V only)
1798 --with-zstd=PATH specify prefix directory for installed zstd library.
1799 Equivalent to --with-zstd-include=PATH/include plus
1800 --with-zstd-lib=PATH/lib
1801 --with-zstd-include=PATH
1802 specify directory for installed zstd include files
1803 --with-zstd-lib=PATH specify directory for the installed zstd library
1804 --with-gnu-ld assume the C compiler uses GNU ld default=no
1805 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1806 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1807 --with-libiconv-type=TYPE type of library to search for (auto/static/shared)
1808 --with-gcc-major-version-only
1809 use only GCC major number in filesystem paths
1810 --with-pic try to use only PIC/non-PIC objects [default=use
1811 both]
1812 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1813 --with-plugin-ld=[ARG] specify the plugin linker
1814 --with-long-double-128 use 128-bit long double by default
1815 --with-long-double-format={ieee,ibm}
1816 Specify whether PowerPC long double uses IEEE or IBM format
1818 --with-gc={page,zone} this option is not supported anymore. It used to
1819 choose the garbage collection mechanism to use with
1820 the compiler
1821 --with-system-zlib use installed libz
1822 --with-linker-hash-style={sysv,gnu,both}
1823 specify the linker hash style
1824 --with-diagnostics-color={never,auto,auto-if-env,always}
1825 specify the default of -fdiagnostics-color option
1826 auto-if-env stands for -fdiagnostics-color=auto if
1827 GCC_COLOR environment variable is present and
1828 -fdiagnostics-color=never otherwise
1829 --with-diagnostics-urls={never,auto,auto-if-env,always}
1830 specify the default of -fdiagnostics-urls option
1831 auto-if-env stands for -fdiagnostics-urls=auto if
1832 GCC_URLS or TERM_URLS environment variable is
1833 present and -fdiagnostics-urls=never otherwise
1835 Some influential environment variables:
1836 CC C compiler command
1837 CFLAGS C compiler flags
1838 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1839 nonstandard directory <lib dir>
1840 LIBS libraries to pass to the linker, e.g. -l<library>
1841 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1842 you have headers in a nonstandard directory <include dir>
1843 CXX C++ compiler command
1844 CXXFLAGS C++ compiler flags
1845 CXXCPP C++ preprocessor
1846 CPP C preprocessor
1847 GMPLIBS How to link GMP
1848 GMPINC How to find GMP include files
1849 ISLLIBS How to link isl
1850 ISLINC How to find isl include files
1852 Use these variables to override the choices made by `configure' or to help
1853 it to find libraries and programs with nonstandard names/locations.
1855 Report bugs to the package provider.
1856 _ACEOF
1857 ac_status=$?
1860 if test "$ac_init_help" = "recursive"; then
1861 # If there are subdirs, report their specific --help.
1862 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1863 test -d "$ac_dir" ||
1864 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1865 continue
1866 ac_builddir=.
1868 case "$ac_dir" in
1869 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1871 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1872 # A ".." for each directory in $ac_dir_suffix.
1873 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1874 case $ac_top_builddir_sub in
1875 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1876 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1877 esac ;;
1878 esac
1879 ac_abs_top_builddir=$ac_pwd
1880 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1881 # for backward compatibility:
1882 ac_top_builddir=$ac_top_build_prefix
1884 case $srcdir in
1885 .) # We are building in place.
1886 ac_srcdir=.
1887 ac_top_srcdir=$ac_top_builddir_sub
1888 ac_abs_top_srcdir=$ac_pwd ;;
1889 [\\/]* | ?:[\\/]* ) # Absolute name.
1890 ac_srcdir=$srcdir$ac_dir_suffix;
1891 ac_top_srcdir=$srcdir
1892 ac_abs_top_srcdir=$srcdir ;;
1893 *) # Relative name.
1894 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1895 ac_top_srcdir=$ac_top_build_prefix$srcdir
1896 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1897 esac
1898 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1900 cd "$ac_dir" || { ac_status=$?; continue; }
1901 # Check for guested configure.
1902 if test -f "$ac_srcdir/configure.gnu"; then
1903 echo &&
1904 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1905 elif test -f "$ac_srcdir/configure"; then
1906 echo &&
1907 $SHELL "$ac_srcdir/configure" --help=recursive
1908 else
1909 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1910 fi || ac_status=$?
1911 cd "$ac_pwd" || { ac_status=$?; break; }
1912 done
1915 test -n "$ac_init_help" && exit $ac_status
1916 if $ac_init_version; then
1917 cat <<\_ACEOF
1918 configure
1919 generated by GNU Autoconf 2.69
1921 Copyright (C) 2012 Free Software Foundation, Inc.
1922 This configure script is free software; the Free Software Foundation
1923 gives unlimited permission to copy, distribute and modify it.
1924 _ACEOF
1925 exit
1928 ## ------------------------ ##
1929 ## Autoconf initialization. ##
1930 ## ------------------------ ##
1932 # ac_fn_c_try_compile LINENO
1933 # --------------------------
1934 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1935 ac_fn_c_try_compile ()
1937 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1938 rm -f conftest.$ac_objext
1939 if { { ac_try="$ac_compile"
1940 case "(($ac_try" in
1941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1942 *) ac_try_echo=$ac_try;;
1943 esac
1944 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1945 $as_echo "$ac_try_echo"; } >&5
1946 (eval "$ac_compile") 2>conftest.err
1947 ac_status=$?
1948 if test -s conftest.err; then
1949 grep -v '^ *+' conftest.err >conftest.er1
1950 cat conftest.er1 >&5
1951 mv -f conftest.er1 conftest.err
1953 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1954 test $ac_status = 0; } && {
1955 test -z "$ac_c_werror_flag" ||
1956 test ! -s conftest.err
1957 } && test -s conftest.$ac_objext; then :
1958 ac_retval=0
1959 else
1960 $as_echo "$as_me: failed program was:" >&5
1961 sed 's/^/| /' conftest.$ac_ext >&5
1963 ac_retval=1
1965 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1966 as_fn_set_status $ac_retval
1968 } # ac_fn_c_try_compile
1970 # ac_fn_cxx_try_compile LINENO
1971 # ----------------------------
1972 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1973 ac_fn_cxx_try_compile ()
1975 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1976 rm -f conftest.$ac_objext
1977 if { { ac_try="$ac_compile"
1978 case "(($ac_try" in
1979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1980 *) ac_try_echo=$ac_try;;
1981 esac
1982 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1983 $as_echo "$ac_try_echo"; } >&5
1984 (eval "$ac_compile") 2>conftest.err
1985 ac_status=$?
1986 if test -s conftest.err; then
1987 grep -v '^ *+' conftest.err >conftest.er1
1988 cat conftest.er1 >&5
1989 mv -f conftest.er1 conftest.err
1991 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1992 test $ac_status = 0; } && {
1993 test -z "$ac_cxx_werror_flag" ||
1994 test ! -s conftest.err
1995 } && test -s conftest.$ac_objext; then :
1996 ac_retval=0
1997 else
1998 $as_echo "$as_me: failed program was:" >&5
1999 sed 's/^/| /' conftest.$ac_ext >&5
2001 ac_retval=1
2003 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2004 as_fn_set_status $ac_retval
2006 } # ac_fn_cxx_try_compile
2008 # ac_fn_cxx_try_cpp LINENO
2009 # ------------------------
2010 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2011 ac_fn_cxx_try_cpp ()
2013 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2014 if { { ac_try="$ac_cpp conftest.$ac_ext"
2015 case "(($ac_try" in
2016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2017 *) ac_try_echo=$ac_try;;
2018 esac
2019 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2020 $as_echo "$ac_try_echo"; } >&5
2021 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2022 ac_status=$?
2023 if test -s conftest.err; then
2024 grep -v '^ *+' conftest.err >conftest.er1
2025 cat conftest.er1 >&5
2026 mv -f conftest.er1 conftest.err
2028 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2029 test $ac_status = 0; } > conftest.i && {
2030 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2031 test ! -s conftest.err
2032 }; then :
2033 ac_retval=0
2034 else
2035 $as_echo "$as_me: failed program was:" >&5
2036 sed 's/^/| /' conftest.$ac_ext >&5
2038 ac_retval=1
2040 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2041 as_fn_set_status $ac_retval
2043 } # ac_fn_cxx_try_cpp
2045 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2046 # ---------------------------------------------------------
2047 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2048 # the include files in INCLUDES and setting the cache variable VAR
2049 # accordingly.
2050 ac_fn_cxx_check_header_mongrel ()
2052 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2053 if eval \${$3+:} false; then :
2054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2055 $as_echo_n "checking for $2... " >&6; }
2056 if eval \${$3+:} false; then :
2057 $as_echo_n "(cached) " >&6
2059 eval ac_res=\$$3
2060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2061 $as_echo "$ac_res" >&6; }
2062 else
2063 # Is the header compilable?
2064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2065 $as_echo_n "checking $2 usability... " >&6; }
2066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2067 /* end confdefs.h. */
2069 #include <$2>
2070 _ACEOF
2071 if ac_fn_cxx_try_compile "$LINENO"; then :
2072 ac_header_compiler=yes
2073 else
2074 ac_header_compiler=no
2076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2078 $as_echo "$ac_header_compiler" >&6; }
2080 # Is the header present?
2081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2082 $as_echo_n "checking $2 presence... " >&6; }
2083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2084 /* end confdefs.h. */
2085 #include <$2>
2086 _ACEOF
2087 if ac_fn_cxx_try_cpp "$LINENO"; then :
2088 ac_header_preproc=yes
2089 else
2090 ac_header_preproc=no
2092 rm -f conftest.err conftest.i conftest.$ac_ext
2093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2094 $as_echo "$ac_header_preproc" >&6; }
2096 # So? What about this header?
2097 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2098 yes:no: )
2099 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2100 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2101 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2102 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2104 no:yes:* )
2105 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2106 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2107 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2108 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2109 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2110 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2111 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2112 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2113 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2114 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2116 esac
2117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2118 $as_echo_n "checking for $2... " >&6; }
2119 if eval \${$3+:} false; then :
2120 $as_echo_n "(cached) " >&6
2121 else
2122 eval "$3=\$ac_header_compiler"
2124 eval ac_res=\$$3
2125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2126 $as_echo "$ac_res" >&6; }
2128 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2130 } # ac_fn_cxx_check_header_mongrel
2132 # ac_fn_cxx_try_run LINENO
2133 # ------------------------
2134 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2135 # that executables *can* be run.
2136 ac_fn_cxx_try_run ()
2138 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2139 if { { ac_try="$ac_link"
2140 case "(($ac_try" in
2141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2142 *) ac_try_echo=$ac_try;;
2143 esac
2144 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2145 $as_echo "$ac_try_echo"; } >&5
2146 (eval "$ac_link") 2>&5
2147 ac_status=$?
2148 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2149 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2150 { { case "(($ac_try" in
2151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2152 *) ac_try_echo=$ac_try;;
2153 esac
2154 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2155 $as_echo "$ac_try_echo"; } >&5
2156 (eval "$ac_try") 2>&5
2157 ac_status=$?
2158 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2159 test $ac_status = 0; }; }; then :
2160 ac_retval=0
2161 else
2162 $as_echo "$as_me: program exited with status $ac_status" >&5
2163 $as_echo "$as_me: failed program was:" >&5
2164 sed 's/^/| /' conftest.$ac_ext >&5
2166 ac_retval=$ac_status
2168 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2169 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2170 as_fn_set_status $ac_retval
2172 } # ac_fn_cxx_try_run
2174 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2175 # ---------------------------------------------------------
2176 # Tests whether HEADER exists and can be compiled using the include files in
2177 # INCLUDES, setting the cache variable VAR accordingly.
2178 ac_fn_cxx_check_header_compile ()
2180 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2182 $as_echo_n "checking for $2... " >&6; }
2183 if eval \${$3+:} false; then :
2184 $as_echo_n "(cached) " >&6
2185 else
2186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2187 /* end confdefs.h. */
2189 #include <$2>
2190 _ACEOF
2191 if ac_fn_cxx_try_compile "$LINENO"; then :
2192 eval "$3=yes"
2193 else
2194 eval "$3=no"
2196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2198 eval ac_res=\$$3
2199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2200 $as_echo "$ac_res" >&6; }
2201 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2203 } # ac_fn_cxx_check_header_compile
2205 # ac_fn_c_try_cpp LINENO
2206 # ----------------------
2207 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2208 ac_fn_c_try_cpp ()
2210 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2211 if { { ac_try="$ac_cpp conftest.$ac_ext"
2212 case "(($ac_try" in
2213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2214 *) ac_try_echo=$ac_try;;
2215 esac
2216 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2217 $as_echo "$ac_try_echo"; } >&5
2218 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2219 ac_status=$?
2220 if test -s conftest.err; then
2221 grep -v '^ *+' conftest.err >conftest.er1
2222 cat conftest.er1 >&5
2223 mv -f conftest.er1 conftest.err
2225 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2226 test $ac_status = 0; } > conftest.i && {
2227 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2228 test ! -s conftest.err
2229 }; then :
2230 ac_retval=0
2231 else
2232 $as_echo "$as_me: failed program was:" >&5
2233 sed 's/^/| /' conftest.$ac_ext >&5
2235 ac_retval=1
2237 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2238 as_fn_set_status $ac_retval
2240 } # ac_fn_c_try_cpp
2242 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2243 # ----------------------------------------------
2244 # Tries to find the compile-time value of EXPR in a program that includes
2245 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2246 # computed
2247 ac_fn_cxx_compute_int ()
2249 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2250 if test "$cross_compiling" = yes; then
2251 # Depending upon the size, compute the lo and hi bounds.
2252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2253 /* end confdefs.h. */
2256 main ()
2258 static int test_array [1 - 2 * !(($2) >= 0)];
2259 test_array [0] = 0;
2260 return test_array [0];
2263 return 0;
2265 _ACEOF
2266 if ac_fn_cxx_try_compile "$LINENO"; then :
2267 ac_lo=0 ac_mid=0
2268 while :; do
2269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2270 /* end confdefs.h. */
2273 main ()
2275 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2276 test_array [0] = 0;
2277 return test_array [0];
2280 return 0;
2282 _ACEOF
2283 if ac_fn_cxx_try_compile "$LINENO"; then :
2284 ac_hi=$ac_mid; break
2285 else
2286 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2287 if test $ac_lo -le $ac_mid; then
2288 ac_lo= ac_hi=
2289 break
2291 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2294 done
2295 else
2296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2297 /* end confdefs.h. */
2300 main ()
2302 static int test_array [1 - 2 * !(($2) < 0)];
2303 test_array [0] = 0;
2304 return test_array [0];
2307 return 0;
2309 _ACEOF
2310 if ac_fn_cxx_try_compile "$LINENO"; then :
2311 ac_hi=-1 ac_mid=-1
2312 while :; do
2313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2314 /* end confdefs.h. */
2317 main ()
2319 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2320 test_array [0] = 0;
2321 return test_array [0];
2324 return 0;
2326 _ACEOF
2327 if ac_fn_cxx_try_compile "$LINENO"; then :
2328 ac_lo=$ac_mid; break
2329 else
2330 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2331 if test $ac_mid -le $ac_hi; then
2332 ac_lo= ac_hi=
2333 break
2335 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2338 done
2339 else
2340 ac_lo= ac_hi=
2342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2345 # Binary search between lo and hi bounds.
2346 while test "x$ac_lo" != "x$ac_hi"; do
2347 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2349 /* end confdefs.h. */
2352 main ()
2354 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2355 test_array [0] = 0;
2356 return test_array [0];
2359 return 0;
2361 _ACEOF
2362 if ac_fn_cxx_try_compile "$LINENO"; then :
2363 ac_hi=$ac_mid
2364 else
2365 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2368 done
2369 case $ac_lo in #((
2370 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2371 '') ac_retval=1 ;;
2372 esac
2373 else
2374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2375 /* end confdefs.h. */
2377 static long int longval () { return $2; }
2378 static unsigned long int ulongval () { return $2; }
2379 #include <stdio.h>
2380 #include <stdlib.h>
2382 main ()
2385 FILE *f = fopen ("conftest.val", "w");
2386 if (! f)
2387 return 1;
2388 if (($2) < 0)
2390 long int i = longval ();
2391 if (i != ($2))
2392 return 1;
2393 fprintf (f, "%ld", i);
2395 else
2397 unsigned long int i = ulongval ();
2398 if (i != ($2))
2399 return 1;
2400 fprintf (f, "%lu", i);
2402 /* Do not output a trailing newline, as this causes \r\n confusion
2403 on some platforms. */
2404 return ferror (f) || fclose (f) != 0;
2407 return 0;
2409 _ACEOF
2410 if ac_fn_cxx_try_run "$LINENO"; then :
2411 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2412 else
2413 ac_retval=1
2415 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2416 conftest.$ac_objext conftest.beam conftest.$ac_ext
2417 rm -f conftest.val
2420 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2421 as_fn_set_status $ac_retval
2423 } # ac_fn_cxx_compute_int
2425 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2426 # ---------------------------------------------
2427 # Tests whether TYPE exists after having included INCLUDES, setting cache
2428 # variable VAR accordingly.
2429 ac_fn_cxx_check_type ()
2431 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2433 $as_echo_n "checking for $2... " >&6; }
2434 if eval \${$3+:} false; then :
2435 $as_echo_n "(cached) " >&6
2436 else
2437 eval "$3=no"
2438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2439 /* end confdefs.h. */
2442 main ()
2444 if (sizeof ($2))
2445 return 0;
2447 return 0;
2449 _ACEOF
2450 if ac_fn_cxx_try_compile "$LINENO"; then :
2451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2452 /* end confdefs.h. */
2455 main ()
2457 if (sizeof (($2)))
2458 return 0;
2460 return 0;
2462 _ACEOF
2463 if ac_fn_cxx_try_compile "$LINENO"; then :
2465 else
2466 eval "$3=yes"
2468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2472 eval ac_res=\$$3
2473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2474 $as_echo "$ac_res" >&6; }
2475 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2477 } # ac_fn_cxx_check_type
2479 # ac_fn_c_find_intX_t LINENO BITS VAR
2480 # -----------------------------------
2481 # Finds a signed integer type with width BITS, setting cache variable VAR
2482 # accordingly.
2483 ac_fn_c_find_intX_t ()
2485 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2487 $as_echo_n "checking for int$2_t... " >&6; }
2488 if eval \${$3+:} false; then :
2489 $as_echo_n "(cached) " >&6
2490 else
2491 eval "$3=no"
2492 # Order is important - never check a type that is potentially smaller
2493 # than half of the expected target width.
2494 for ac_type in int$2_t 'int' 'long int' \
2495 'long long int' 'short int' 'signed char'; do
2496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2497 /* end confdefs.h. */
2498 $ac_includes_default
2499 enum { N = $2 / 2 - 1 };
2501 main ()
2503 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2504 test_array [0] = 0;
2505 return test_array [0];
2508 return 0;
2510 _ACEOF
2511 if ac_fn_cxx_try_compile "$LINENO"; then :
2512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2513 /* end confdefs.h. */
2514 $ac_includes_default
2515 enum { N = $2 / 2 - 1 };
2517 main ()
2519 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2520 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2521 test_array [0] = 0;
2522 return test_array [0];
2525 return 0;
2527 _ACEOF
2528 if ac_fn_cxx_try_compile "$LINENO"; then :
2530 else
2531 case $ac_type in #(
2532 int$2_t) :
2533 eval "$3=yes" ;; #(
2534 *) :
2535 eval "$3=\$ac_type" ;;
2536 esac
2538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2541 if eval test \"x\$"$3"\" = x"no"; then :
2543 else
2544 break
2546 done
2548 eval ac_res=\$$3
2549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2550 $as_echo "$ac_res" >&6; }
2551 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2553 } # ac_fn_c_find_intX_t
2555 # ac_fn_cxx_try_link LINENO
2556 # -------------------------
2557 # Try to link conftest.$ac_ext, and return whether this succeeded.
2558 ac_fn_cxx_try_link ()
2560 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2561 rm -f conftest.$ac_objext conftest$ac_exeext
2562 if { { ac_try="$ac_link"
2563 case "(($ac_try" in
2564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2565 *) ac_try_echo=$ac_try;;
2566 esac
2567 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2568 $as_echo "$ac_try_echo"; } >&5
2569 (eval "$ac_link") 2>conftest.err
2570 ac_status=$?
2571 if test -s conftest.err; then
2572 grep -v '^ *+' conftest.err >conftest.er1
2573 cat conftest.er1 >&5
2574 mv -f conftest.er1 conftest.err
2576 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2577 test $ac_status = 0; } && {
2578 test -z "$ac_cxx_werror_flag" ||
2579 test ! -s conftest.err
2580 } && test -s conftest$ac_exeext && {
2581 test "$cross_compiling" = yes ||
2582 test -x conftest$ac_exeext
2583 }; then :
2584 ac_retval=0
2585 else
2586 $as_echo "$as_me: failed program was:" >&5
2587 sed 's/^/| /' conftest.$ac_ext >&5
2589 ac_retval=1
2591 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2592 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2593 # interfere with the next link command; also delete a directory that is
2594 # left behind by Apple's compiler. We do this before executing the actions.
2595 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2596 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2597 as_fn_set_status $ac_retval
2599 } # ac_fn_cxx_try_link
2601 # ac_fn_c_find_uintX_t LINENO BITS VAR
2602 # ------------------------------------
2603 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2604 # accordingly.
2605 ac_fn_c_find_uintX_t ()
2607 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2609 $as_echo_n "checking for uint$2_t... " >&6; }
2610 if eval \${$3+:} false; then :
2611 $as_echo_n "(cached) " >&6
2612 else
2613 eval "$3=no"
2614 # Order is important - never check a type that is potentially smaller
2615 # than half of the expected target width.
2616 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2617 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2619 /* end confdefs.h. */
2620 $ac_includes_default
2622 main ()
2624 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2625 test_array [0] = 0;
2626 return test_array [0];
2629 return 0;
2631 _ACEOF
2632 if ac_fn_cxx_try_compile "$LINENO"; then :
2633 case $ac_type in #(
2634 uint$2_t) :
2635 eval "$3=yes" ;; #(
2636 *) :
2637 eval "$3=\$ac_type" ;;
2638 esac
2640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2641 if eval test \"x\$"$3"\" = x"no"; then :
2643 else
2644 break
2646 done
2648 eval ac_res=\$$3
2649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2650 $as_echo "$ac_res" >&6; }
2651 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2653 } # ac_fn_c_find_uintX_t
2655 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2656 # ------------------------------------------------
2657 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2658 ac_fn_cxx_check_header_preproc ()
2660 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2662 $as_echo_n "checking for $2... " >&6; }
2663 if eval \${$3+:} false; then :
2664 $as_echo_n "(cached) " >&6
2665 else
2666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2667 /* end confdefs.h. */
2668 #include <$2>
2669 _ACEOF
2670 if ac_fn_cxx_try_cpp "$LINENO"; then :
2671 eval "$3=yes"
2672 else
2673 eval "$3=no"
2675 rm -f conftest.err conftest.i conftest.$ac_ext
2677 eval ac_res=\$$3
2678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2679 $as_echo "$ac_res" >&6; }
2680 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2682 } # ac_fn_cxx_check_header_preproc
2684 # ac_fn_cxx_check_func LINENO FUNC VAR
2685 # ------------------------------------
2686 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2687 ac_fn_cxx_check_func ()
2689 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2691 $as_echo_n "checking for $2... " >&6; }
2692 if eval \${$3+:} false; then :
2693 $as_echo_n "(cached) " >&6
2694 else
2695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2696 /* end confdefs.h. */
2697 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2698 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2699 #define $2 innocuous_$2
2701 /* System header to define __stub macros and hopefully few prototypes,
2702 which can conflict with char $2 (); below.
2703 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2704 <limits.h> exists even on freestanding compilers. */
2706 #ifdef __STDC__
2707 # include <limits.h>
2708 #else
2709 # include <assert.h>
2710 #endif
2712 #undef $2
2714 /* Override any GCC internal prototype to avoid an error.
2715 Use char because int might match the return type of a GCC
2716 builtin and then its argument prototype would still apply. */
2717 #ifdef __cplusplus
2718 extern "C"
2719 #endif
2720 char $2 ();
2721 /* The GNU C library defines this for functions which it implements
2722 to always fail with ENOSYS. Some functions are actually named
2723 something starting with __ and the normal name is an alias. */
2724 #if defined __stub_$2 || defined __stub___$2
2725 choke me
2726 #endif
2729 main ()
2731 return $2 ();
2733 return 0;
2735 _ACEOF
2736 if ac_fn_cxx_try_link "$LINENO"; then :
2737 eval "$3=yes"
2738 else
2739 eval "$3=no"
2741 rm -f core conftest.err conftest.$ac_objext \
2742 conftest$ac_exeext conftest.$ac_ext
2744 eval ac_res=\$$3
2745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2746 $as_echo "$ac_res" >&6; }
2747 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2749 } # ac_fn_cxx_check_func
2751 # ac_fn_cxx_check_decl LINENO SYMBOL VAR INCLUDES
2752 # -----------------------------------------------
2753 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2754 # accordingly.
2755 ac_fn_cxx_check_decl ()
2757 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2758 as_decl_name=`echo $2|sed 's/ *(.*//'`
2759 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2761 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2762 if eval \${$3+:} false; then :
2763 $as_echo_n "(cached) " >&6
2764 else
2765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2766 /* end confdefs.h. */
2769 main ()
2771 #ifndef $as_decl_name
2772 #ifdef __cplusplus
2773 (void) $as_decl_use;
2774 #else
2775 (void) $as_decl_name;
2776 #endif
2777 #endif
2780 return 0;
2782 _ACEOF
2783 if ac_fn_cxx_try_compile "$LINENO"; then :
2784 eval "$3=yes"
2785 else
2786 eval "$3=no"
2788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2790 eval ac_res=\$$3
2791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2792 $as_echo "$ac_res" >&6; }
2793 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2795 } # ac_fn_cxx_check_decl
2797 # ac_fn_c_try_link LINENO
2798 # -----------------------
2799 # Try to link conftest.$ac_ext, and return whether this succeeded.
2800 ac_fn_c_try_link ()
2802 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2803 rm -f conftest.$ac_objext conftest$ac_exeext
2804 if { { ac_try="$ac_link"
2805 case "(($ac_try" in
2806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2807 *) ac_try_echo=$ac_try;;
2808 esac
2809 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2810 $as_echo "$ac_try_echo"; } >&5
2811 (eval "$ac_link") 2>conftest.err
2812 ac_status=$?
2813 if test -s conftest.err; then
2814 grep -v '^ *+' conftest.err >conftest.er1
2815 cat conftest.er1 >&5
2816 mv -f conftest.er1 conftest.err
2818 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2819 test $ac_status = 0; } && {
2820 test -z "$ac_c_werror_flag" ||
2821 test ! -s conftest.err
2822 } && test -s conftest$ac_exeext && {
2823 test "$cross_compiling" = yes ||
2824 test -x conftest$ac_exeext
2825 }; then :
2826 ac_retval=0
2827 else
2828 $as_echo "$as_me: failed program was:" >&5
2829 sed 's/^/| /' conftest.$ac_ext >&5
2831 ac_retval=1
2833 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2834 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2835 # interfere with the next link command; also delete a directory that is
2836 # left behind by Apple's compiler. We do this before executing the actions.
2837 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2838 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2839 as_fn_set_status $ac_retval
2841 } # ac_fn_c_try_link
2843 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2844 # ----------------------------------------------
2845 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2846 ac_fn_c_check_header_preproc ()
2848 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2850 $as_echo_n "checking for $2... " >&6; }
2851 if eval \${$3+:} false; then :
2852 $as_echo_n "(cached) " >&6
2853 else
2854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2855 /* end confdefs.h. */
2856 #include <$2>
2857 _ACEOF
2858 if ac_fn_c_try_cpp "$LINENO"; then :
2859 eval "$3=yes"
2860 else
2861 eval "$3=no"
2863 rm -f conftest.err conftest.i conftest.$ac_ext
2865 eval ac_res=\$$3
2866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2867 $as_echo "$ac_res" >&6; }
2868 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2870 } # ac_fn_c_check_header_preproc
2872 # ac_fn_c_check_func LINENO FUNC VAR
2873 # ----------------------------------
2874 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2875 ac_fn_c_check_func ()
2877 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2879 $as_echo_n "checking for $2... " >&6; }
2880 if eval \${$3+:} false; then :
2881 $as_echo_n "(cached) " >&6
2882 else
2883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2884 /* end confdefs.h. */
2885 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2886 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2887 #define $2 innocuous_$2
2889 /* System header to define __stub macros and hopefully few prototypes,
2890 which can conflict with char $2 (); below.
2891 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2892 <limits.h> exists even on freestanding compilers. */
2894 #ifdef __STDC__
2895 # include <limits.h>
2896 #else
2897 # include <assert.h>
2898 #endif
2900 #undef $2
2902 /* Override any GCC internal prototype to avoid an error.
2903 Use char because int might match the return type of a GCC
2904 builtin and then its argument prototype would still apply. */
2905 #ifdef __cplusplus
2906 extern "C"
2907 #endif
2908 char $2 ();
2909 /* The GNU C library defines this for functions which it implements
2910 to always fail with ENOSYS. Some functions are actually named
2911 something starting with __ and the normal name is an alias. */
2912 #if defined __stub_$2 || defined __stub___$2
2913 choke me
2914 #endif
2917 main ()
2919 return $2 ();
2921 return 0;
2923 _ACEOF
2924 if ac_fn_c_try_link "$LINENO"; then :
2925 eval "$3=yes"
2926 else
2927 eval "$3=no"
2929 rm -f core conftest.err conftest.$ac_objext \
2930 conftest$ac_exeext conftest.$ac_ext
2932 eval ac_res=\$$3
2933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2934 $as_echo "$ac_res" >&6; }
2935 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2937 } # ac_fn_c_check_func
2938 cat >config.log <<_ACEOF
2939 This file contains any messages produced by compilers while
2940 running configure, to aid debugging if configure makes a mistake.
2942 It was created by $as_me, which was
2943 generated by GNU Autoconf 2.69. Invocation command line was
2945 $ $0 $@
2947 _ACEOF
2948 exec 5>>config.log
2950 cat <<_ASUNAME
2951 ## --------- ##
2952 ## Platform. ##
2953 ## --------- ##
2955 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2956 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2957 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2958 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2959 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2961 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2962 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2964 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2965 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2966 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2967 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2968 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2969 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2970 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2972 _ASUNAME
2974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2975 for as_dir in $PATH
2977 IFS=$as_save_IFS
2978 test -z "$as_dir" && as_dir=.
2979 $as_echo "PATH: $as_dir"
2980 done
2981 IFS=$as_save_IFS
2983 } >&5
2985 cat >&5 <<_ACEOF
2988 ## ----------- ##
2989 ## Core tests. ##
2990 ## ----------- ##
2992 _ACEOF
2995 # Keep a trace of the command line.
2996 # Strip out --no-create and --no-recursion so they do not pile up.
2997 # Strip out --silent because we don't want to record it for future runs.
2998 # Also quote any args containing shell meta-characters.
2999 # Make two passes to allow for proper duplicate-argument suppression.
3000 ac_configure_args=
3001 ac_configure_args0=
3002 ac_configure_args1=
3003 ac_must_keep_next=false
3004 for ac_pass in 1 2
3006 for ac_arg
3008 case $ac_arg in
3009 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3010 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3011 | -silent | --silent | --silen | --sile | --sil)
3012 continue ;;
3013 *\'*)
3014 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3015 esac
3016 case $ac_pass in
3017 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3019 as_fn_append ac_configure_args1 " '$ac_arg'"
3020 if test $ac_must_keep_next = true; then
3021 ac_must_keep_next=false # Got value, back to normal.
3022 else
3023 case $ac_arg in
3024 *=* | --config-cache | -C | -disable-* | --disable-* \
3025 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3026 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3027 | -with-* | --with-* | -without-* | --without-* | --x)
3028 case "$ac_configure_args0 " in
3029 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3030 esac
3032 -* ) ac_must_keep_next=true ;;
3033 esac
3035 as_fn_append ac_configure_args " '$ac_arg'"
3037 esac
3038 done
3039 done
3040 { ac_configure_args0=; unset ac_configure_args0;}
3041 { ac_configure_args1=; unset ac_configure_args1;}
3043 # When interrupted or exit'd, cleanup temporary files, and complete
3044 # config.log. We remove comments because anyway the quotes in there
3045 # would cause problems or look ugly.
3046 # WARNING: Use '\'' to represent an apostrophe within the trap.
3047 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3048 trap 'exit_status=$?
3049 # Save into config.log some information that might help in debugging.
3051 echo
3053 $as_echo "## ---------------- ##
3054 ## Cache variables. ##
3055 ## ---------------- ##"
3056 echo
3057 # The following way of writing the cache mishandles newlines in values,
3059 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3060 eval ac_val=\$$ac_var
3061 case $ac_val in #(
3062 *${as_nl}*)
3063 case $ac_var in #(
3064 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3065 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3066 esac
3067 case $ac_var in #(
3068 _ | IFS | as_nl) ;; #(
3069 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3070 *) { eval $ac_var=; unset $ac_var;} ;;
3071 esac ;;
3072 esac
3073 done
3074 (set) 2>&1 |
3075 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3076 *${as_nl}ac_space=\ *)
3077 sed -n \
3078 "s/'\''/'\''\\\\'\'''\''/g;
3079 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3080 ;; #(
3082 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3084 esac |
3085 sort
3087 echo
3089 $as_echo "## ----------------- ##
3090 ## Output variables. ##
3091 ## ----------------- ##"
3092 echo
3093 for ac_var in $ac_subst_vars
3095 eval ac_val=\$$ac_var
3096 case $ac_val in
3097 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3098 esac
3099 $as_echo "$ac_var='\''$ac_val'\''"
3100 done | sort
3101 echo
3103 if test -n "$ac_subst_files"; then
3104 $as_echo "## ------------------- ##
3105 ## File substitutions. ##
3106 ## ------------------- ##"
3107 echo
3108 for ac_var in $ac_subst_files
3110 eval ac_val=\$$ac_var
3111 case $ac_val in
3112 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3113 esac
3114 $as_echo "$ac_var='\''$ac_val'\''"
3115 done | sort
3116 echo
3119 if test -s confdefs.h; then
3120 $as_echo "## ----------- ##
3121 ## confdefs.h. ##
3122 ## ----------- ##"
3123 echo
3124 cat confdefs.h
3125 echo
3127 test "$ac_signal" != 0 &&
3128 $as_echo "$as_me: caught signal $ac_signal"
3129 $as_echo "$as_me: exit $exit_status"
3130 } >&5
3131 rm -f core *.core core.conftest.* &&
3132 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3133 exit $exit_status
3135 for ac_signal in 1 2 13 15; do
3136 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3137 done
3138 ac_signal=0
3140 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3141 rm -f -r conftest* confdefs.h
3143 $as_echo "/* confdefs.h */" > confdefs.h
3145 # Predefined preprocessor variables.
3147 cat >>confdefs.h <<_ACEOF
3148 #define PACKAGE_NAME "$PACKAGE_NAME"
3149 _ACEOF
3151 cat >>confdefs.h <<_ACEOF
3152 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3153 _ACEOF
3155 cat >>confdefs.h <<_ACEOF
3156 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3157 _ACEOF
3159 cat >>confdefs.h <<_ACEOF
3160 #define PACKAGE_STRING "$PACKAGE_STRING"
3161 _ACEOF
3163 cat >>confdefs.h <<_ACEOF
3164 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3165 _ACEOF
3167 cat >>confdefs.h <<_ACEOF
3168 #define PACKAGE_URL "$PACKAGE_URL"
3169 _ACEOF
3172 # Let the site file select an alternate cache file if it wants to.
3173 # Prefer an explicitly selected file to automatically selected ones.
3174 ac_site_file1=NONE
3175 ac_site_file2=NONE
3176 if test -n "$CONFIG_SITE"; then
3177 # We do not want a PATH search for config.site.
3178 case $CONFIG_SITE in #((
3179 -*) ac_site_file1=./$CONFIG_SITE;;
3180 */*) ac_site_file1=$CONFIG_SITE;;
3181 *) ac_site_file1=./$CONFIG_SITE;;
3182 esac
3183 elif test "x$prefix" != xNONE; then
3184 ac_site_file1=$prefix/share/config.site
3185 ac_site_file2=$prefix/etc/config.site
3186 else
3187 ac_site_file1=$ac_default_prefix/share/config.site
3188 ac_site_file2=$ac_default_prefix/etc/config.site
3190 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3192 test "x$ac_site_file" = xNONE && continue
3193 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3194 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3195 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3196 sed 's/^/| /' "$ac_site_file" >&5
3197 . "$ac_site_file" \
3198 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3199 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3200 as_fn_error $? "failed to load site script $ac_site_file
3201 See \`config.log' for more details" "$LINENO" 5; }
3203 done
3205 if test -r "$cache_file"; then
3206 # Some versions of bash will fail to source /dev/null (special files
3207 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3208 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3209 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3210 $as_echo "$as_me: loading cache $cache_file" >&6;}
3211 case $cache_file in
3212 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3213 *) . "./$cache_file";;
3214 esac
3216 else
3217 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3218 $as_echo "$as_me: creating cache $cache_file" >&6;}
3219 >$cache_file
3222 # Check that the precious variables saved in the cache have kept the same
3223 # value.
3224 ac_cache_corrupted=false
3225 for ac_var in $ac_precious_vars; do
3226 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3227 eval ac_new_set=\$ac_env_${ac_var}_set
3228 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3229 eval ac_new_val=\$ac_env_${ac_var}_value
3230 case $ac_old_set,$ac_new_set in
3231 set,)
3232 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3233 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3234 ac_cache_corrupted=: ;;
3235 ,set)
3236 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3237 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3238 ac_cache_corrupted=: ;;
3239 ,);;
3241 if test "x$ac_old_val" != "x$ac_new_val"; then
3242 # differences in whitespace do not lead to failure.
3243 ac_old_val_w=`echo x $ac_old_val`
3244 ac_new_val_w=`echo x $ac_new_val`
3245 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3246 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3247 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3248 ac_cache_corrupted=:
3249 else
3250 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3251 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3252 eval $ac_var=\$ac_old_val
3254 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3255 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3256 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3257 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3258 fi;;
3259 esac
3260 # Pass precious variables to config.status.
3261 if test "$ac_new_set" = set; then
3262 case $ac_new_val in
3263 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3264 *) ac_arg=$ac_var=$ac_new_val ;;
3265 esac
3266 case " $ac_configure_args " in
3267 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3268 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3269 esac
3271 done
3272 if $ac_cache_corrupted; then
3273 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3274 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3275 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3276 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3277 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3279 ## -------------------- ##
3280 ## Main body of script. ##
3281 ## -------------------- ##
3283 ac_ext=c
3284 ac_cpp='$CPP $CPPFLAGS'
3285 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3286 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3287 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3294 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3297 gcc_version=`cat $srcdir/BASE-VER`
3299 # Determine the host, build, and target systems
3300 ac_aux_dir=
3301 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3302 if test -f "$ac_dir/install-sh"; then
3303 ac_aux_dir=$ac_dir
3304 ac_install_sh="$ac_aux_dir/install-sh -c"
3305 break
3306 elif test -f "$ac_dir/install.sh"; then
3307 ac_aux_dir=$ac_dir
3308 ac_install_sh="$ac_aux_dir/install.sh -c"
3309 break
3310 elif test -f "$ac_dir/shtool"; then
3311 ac_aux_dir=$ac_dir
3312 ac_install_sh="$ac_aux_dir/shtool install -c"
3313 break
3315 done
3316 if test -z "$ac_aux_dir"; then
3317 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3320 # These three variables are undocumented and unsupported,
3321 # and are intended to be withdrawn in a future Autoconf release.
3322 # They can cause serious problems if a builder's source tree is in a directory
3323 # whose full name contains unusual characters.
3324 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3325 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3326 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3329 # Make sure we can run config.sub.
3330 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3331 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3334 $as_echo_n "checking build system type... " >&6; }
3335 if ${ac_cv_build+:} false; then :
3336 $as_echo_n "(cached) " >&6
3337 else
3338 ac_build_alias=$build_alias
3339 test "x$ac_build_alias" = x &&
3340 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3341 test "x$ac_build_alias" = x &&
3342 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3343 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3344 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3348 $as_echo "$ac_cv_build" >&6; }
3349 case $ac_cv_build in
3350 *-*-*) ;;
3351 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3352 esac
3353 build=$ac_cv_build
3354 ac_save_IFS=$IFS; IFS='-'
3355 set x $ac_cv_build
3356 shift
3357 build_cpu=$1
3358 build_vendor=$2
3359 shift; shift
3360 # Remember, the first character of IFS is used to create $*,
3361 # except with old shells:
3362 build_os=$*
3363 IFS=$ac_save_IFS
3364 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3368 $as_echo_n "checking host system type... " >&6; }
3369 if ${ac_cv_host+:} false; then :
3370 $as_echo_n "(cached) " >&6
3371 else
3372 if test "x$host_alias" = x; then
3373 ac_cv_host=$ac_cv_build
3374 else
3375 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3376 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3381 $as_echo "$ac_cv_host" >&6; }
3382 case $ac_cv_host in
3383 *-*-*) ;;
3384 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3385 esac
3386 host=$ac_cv_host
3387 ac_save_IFS=$IFS; IFS='-'
3388 set x $ac_cv_host
3389 shift
3390 host_cpu=$1
3391 host_vendor=$2
3392 shift; shift
3393 # Remember, the first character of IFS is used to create $*,
3394 # except with old shells:
3395 host_os=$*
3396 IFS=$ac_save_IFS
3397 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3401 $as_echo_n "checking target system type... " >&6; }
3402 if ${ac_cv_target+:} false; then :
3403 $as_echo_n "(cached) " >&6
3404 else
3405 if test "x$target_alias" = x; then
3406 ac_cv_target=$ac_cv_host
3407 else
3408 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3409 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3414 $as_echo "$ac_cv_target" >&6; }
3415 case $ac_cv_target in
3416 *-*-*) ;;
3417 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
3418 esac
3419 target=$ac_cv_target
3420 ac_save_IFS=$IFS; IFS='-'
3421 set x $ac_cv_target
3422 shift
3423 target_cpu=$1
3424 target_vendor=$2
3425 shift; shift
3426 # Remember, the first character of IFS is used to create $*,
3427 # except with old shells:
3428 target_os=$*
3429 IFS=$ac_save_IFS
3430 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3433 # The aliases save the names the user supplied, while $host etc.
3434 # will get canonicalized.
3435 test -n "$target_alias" &&
3436 test "$program_prefix$program_suffix$program_transform_name" = \
3437 NONENONEs,x,x, &&
3438 program_prefix=${target_alias}-
3440 # Determine the noncanonical host name, for Ada.
3441 case ${build_alias} in
3442 "") build_noncanonical=${build} ;;
3443 *) build_noncanonical=${build_alias} ;;
3444 esac
3446 case ${host_alias} in
3447 "") host_noncanonical=${build_noncanonical} ;;
3448 *) host_noncanonical=${host_alias} ;;
3449 esac
3454 # Determine the noncanonical target name, for directory use.
3455 case ${target_alias} in
3456 "") target_noncanonical=${host_noncanonical} ;;
3457 *) target_noncanonical=${target_alias} ;;
3458 esac
3463 # Used for constructing correct paths for offload compilers.
3464 real_target_noncanonical=${target_noncanonical}
3465 accel_dir_suffix=
3467 # Determine the target- and build-specific subdirectories
3469 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3470 # have matching libraries, they should use host libraries: Makefile.tpl
3471 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3472 # However, they still use the build modules, because the corresponding
3473 # host modules (e.g. bison) are only built for the host when bootstrap
3474 # finishes. So:
3475 # - build_subdir is where we find build modules, and never changes.
3476 # - build_libsubdir is where we find build libraries, and can be overridden.
3478 # Prefix 'build-' so this never conflicts with target_subdir.
3479 build_subdir="build-${build_noncanonical}"
3481 # Check whether --with-build-libsubdir was given.
3482 if test "${with_build_libsubdir+set}" = set; then :
3483 withval=$with_build_libsubdir; build_libsubdir="$withval"
3484 else
3485 build_libsubdir="$build_subdir"
3488 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3489 if ( test $srcdir = . && test -d gcc ) \
3490 || test -d $srcdir/../host-${host_noncanonical}; then
3491 host_subdir="host-${host_noncanonical}"
3492 else
3493 host_subdir=.
3495 # No prefix.
3496 target_subdir=${target_noncanonical}
3499 # Set program_transform_name
3500 test "$program_prefix" != NONE &&
3501 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3502 # Use a double $ so make ignores it.
3503 test "$program_suffix" != NONE &&
3504 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3505 # Double any \ or $.
3506 # By default was `s,x,x', remove it if useless.
3507 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3508 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3511 # Check for bogus environment variables.
3512 # Test if LIBRARY_PATH contains the notation for the current directory
3513 # since this would lead to problems installing/building glibc.
3514 # LIBRARY_PATH contains the current directory if one of the following
3515 # is true:
3516 # - one of the terminals (":" and ";") is the first or last sign
3517 # - two terminals occur directly after each other
3518 # - the path contains an element with a dot in it
3519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3520 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3521 case ${LIBRARY_PATH} in
3522 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3523 library_path_setting="contains current directory"
3526 library_path_setting="ok"
3528 esac
3529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3530 $as_echo "$library_path_setting" >&6; }
3531 if test "$library_path_setting" != "ok"; then
3532 as_fn_error $? "
3533 *** LIBRARY_PATH shouldn't contain the current directory when
3534 *** building gcc. Please change the environment variable
3535 *** and run configure again." "$LINENO" 5
3538 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3539 # since this would lead to problems installing/building glibc.
3540 # GCC_EXEC_PREFIX contains the current directory if one of the following
3541 # is true:
3542 # - one of the terminals (":" and ";") is the first or last sign
3543 # - two terminals occur directly after each other
3544 # - the path contains an element with a dot in it
3545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3546 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3547 case ${GCC_EXEC_PREFIX} in
3548 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3549 gcc_exec_prefix_setting="contains current directory"
3552 gcc_exec_prefix_setting="ok"
3554 esac
3555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3556 $as_echo "$gcc_exec_prefix_setting" >&6; }
3557 if test "$gcc_exec_prefix_setting" != "ok"; then
3558 as_fn_error $? "
3559 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3560 *** building gcc. Please change the environment variable
3561 *** and run configure again." "$LINENO" 5
3564 # -----------
3565 # Directories
3566 # -----------
3568 # Specify the local prefix
3569 local_prefix=
3571 # Check whether --with-local-prefix was given.
3572 if test "${with_local_prefix+set}" = set; then :
3573 withval=$with_local_prefix; case "${withval}" in
3574 yes) as_fn_error $? "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3575 no) ;;
3576 *) local_prefix=$with_local_prefix ;;
3577 esac
3581 # Default local prefix if it is empty
3582 if test x$local_prefix = x; then
3583 local_prefix=/usr/local
3587 # Check whether --with-native-system-header-dir was given.
3588 if test "${with_native_system_header_dir+set}" = set; then :
3589 withval=$with_native_system_header_dir;
3590 case ${with_native_system_header_dir} in
3591 yes|no) as_fn_error $? "bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
3592 /* | [A-Za-z]:[\\/]*) ;;
3593 *) as_fn_error $? "--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
3594 esac
3595 configured_native_system_header_dir="${withval}"
3597 else
3598 configured_native_system_header_dir=
3603 # Check whether --with-build-sysroot was given.
3604 if test "${with_build_sysroot+set}" = set; then :
3605 withval=$with_build_sysroot; if test x"$withval" != x ; then
3606 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
3608 else
3609 SYSROOT_CFLAGS_FOR_TARGET=
3614 if test "x$prefix" = xNONE; then
3615 test_prefix=/usr/local
3616 else
3617 test_prefix=$prefix
3619 if test "x$exec_prefix" = xNONE; then
3620 test_exec_prefix=$test_prefix
3621 else
3622 test_exec_prefix=$exec_prefix
3626 # Check whether --with-sysroot was given.
3627 if test "${with_sysroot+set}" = set; then :
3628 withval=$with_sysroot;
3629 case ${with_sysroot} in
3630 /) ;;
3631 */) with_sysroot=`echo $with_sysroot | sed 's,/$,,'` ;;
3632 esac
3633 case ${with_sysroot} in
3634 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
3635 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
3636 esac
3638 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
3639 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
3641 case ${TARGET_SYSTEM_ROOT} in
3642 "${test_prefix}"|"${test_prefix}/"*|\
3643 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
3644 '${prefix}'|'${prefix}/'*|\
3645 '${exec_prefix}'|'${exec_prefix}/'*)
3646 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
3647 TARGET_SYSTEM_ROOT_DEFINE="$t"
3649 esac
3651 else
3653 TARGET_SYSTEM_ROOT=
3654 TARGET_SYSTEM_ROOT_DEFINE=
3655 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
3663 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3664 # passed in by the toplevel make and thus we'd get different behavior
3665 # depending on where we built the sources.
3666 gcc_gxx_include_dir=
3667 # Specify the g++ header file directory
3669 # Check whether --with-gxx-include-dir was given.
3670 if test "${with_gxx_include_dir+set}" = set; then :
3671 withval=$with_gxx_include_dir; case "${withval}" in
3672 yes) as_fn_error $? "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3673 no) ;;
3674 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
3675 esac
3679 # If both --with-sysroot and --with-gxx-include-dir are passed, we interpolate
3680 # the former in the latter and, upon success, compute gcc_gxx_include_dir as
3681 # relative to the sysroot.
3682 gcc_gxx_include_dir_add_sysroot=0
3684 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3685 if test x${gcc_gxx_include_dir} = x; then
3686 if test x${enable_version_specific_runtime_libs} = xyes; then
3687 gcc_gxx_include_dir='${libsubdir}/include/c++'
3688 else
3689 libstdcxx_incdir='include/c++/$(version)'
3690 if test x$host != x$target; then
3691 libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3693 gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3695 elif test "${with_sysroot+set}" = set; then
3696 gcc_gxx_without_sysroot=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3697 if test "${gcc_gxx_without_sysroot}"; then
3698 gcc_gxx_include_dir="${gcc_gxx_without_sysroot}"
3699 gcc_gxx_include_dir_add_sysroot=1
3703 # Configuration for an alternate set of C++ headers.
3704 gcc_gxx_libcxx_include_dir=
3705 # Specify the alternate g++ header file directory
3707 # Check whether --with-gxx-libcxx-include-dir was given.
3708 if test "${with_gxx_libcxx_include_dir+set}" = set; then :
3709 withval=$with_gxx_libcxx_include_dir; case "${withval}" in
3710 yes) as_fn_error $? "bad value ${withval} given for libc++ include directory" "$LINENO" 5 ;;
3711 no) ;;
3712 *) gcc_gxx_libcxx_include_dir=$with_gxx_libcxx_include_dir ;;
3713 esac
3717 # If both --with-sysroot and --with-gxx-libcxx-include-dir are passed, we
3718 # check to see if the latter starts with the former and, upon success, compute
3719 # gcc_gxx_libcxx_include_dir as relative to the sysroot.
3720 gcc_gxx_libcxx_include_dir_add_sysroot=0
3722 if test x${gcc_gxx_libcxx_include_dir} != x; then
3724 $as_echo "#define ENABLE_STDLIB_OPTION 1" >>confdefs.h
3726 else
3727 $as_echo "#define ENABLE_STDLIB_OPTION 0" >>confdefs.h
3730 # ??? This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3731 if test x${gcc_gxx_libcxx_include_dir} = x; then
3732 if test x${enable_version_specific_runtime_libs} = xyes; then
3733 gcc_gxx_libcxx_include_dir='${libsubdir}/libc++_include/c++/v1'
3734 else
3735 libcxx_incdir='libc++_include/c++/$(version)/v1'
3736 if test x$host != x$target; then
3737 libcxx_incdir="$target_alias/$libcxx_incdir"
3739 gcc_gxx_libcxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libcxx_incdir"
3741 elif test "${with_sysroot+set}" = set; then
3742 gcc_gxx_libcxx_without_sysroot=`expr "${gcc_gxx_libcxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3743 if test "${gcc_gxx_libcxx_without_sysroot}"; then
3744 gcc_gxx_libcxx_include_dir="${gcc_gxx_libcxx_without_sysroot}"
3745 gcc_gxx_libcxx_include_dir_add_sysroot=1
3750 # Check whether --with-cpp_install_dir was given.
3751 if test "${with_cpp_install_dir+set}" = set; then :
3752 withval=$with_cpp_install_dir; if test x$withval = xyes; then
3753 as_fn_error $? "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3754 elif test x$withval != xno; then
3755 cpp_install_dir=$withval
3760 # We would like to our source tree to be readonly. However when releases or
3761 # pre-releases are generated, the flex/bison generated files as well as the
3762 # various formats of manuals need to be included along with the rest of the
3763 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3764 # just that.
3766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3767 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3768 # Check whether --enable-generated-files-in-srcdir was given.
3769 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3770 enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3771 else
3772 generated_files_in_srcdir=no
3776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3777 $as_echo "$generated_files_in_srcdir" >&6; }
3779 if test "$generated_files_in_srcdir" = "yes"; then
3780 GENINSRC=''
3781 else
3782 GENINSRC='#'
3786 # -------------------
3787 # Find default linker
3788 # -------------------
3790 # With GNU ld
3792 # Check whether --with-gnu-ld was given.
3793 if test "${with_gnu_ld+set}" = set; then :
3794 withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3795 else
3796 gnu_ld_flag=no
3800 case $target in
3801 *darwin*)
3802 ld64_flag=yes # Darwin can only use a ld64-compatible linker.
3803 dsymutil_flag=yes # Darwin uses dsymutil to link debug.
3806 ld64_flag=no
3807 dsymutil_flag=no
3809 esac
3811 # With pre-defined ld
3813 # Check whether --with-ld was given.
3814 if test "${with_ld+set}" = set; then :
3815 withval=$with_ld; DEFAULT_LINKER="$with_ld"
3818 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3819 if test ! -x "$DEFAULT_LINKER"; then
3820 as_fn_error $? "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3821 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3822 gnu_ld_flag=yes
3823 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep ld64- > /dev/null; then
3824 ld64_flag=yes
3827 cat >>confdefs.h <<_ACEOF
3828 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3829 _ACEOF
3833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3834 $as_echo_n "checking whether a default linker was specified... " >&6; }
3835 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3836 if test x"$gnu_ld_flag" = x"no"; then
3837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3838 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3839 else
3840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3841 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3843 else
3844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3845 $as_echo "no" >&6; }
3848 # With demangler in GNU ld
3850 # Check whether --with-demangler-in-ld was given.
3851 if test "${with_demangler_in_ld+set}" = set; then :
3852 withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3853 else
3854 demangler_in_ld=yes
3858 # Allow the user to specify a dsymutil executable (used on Darwin only, so far)
3860 # Check whether --with-dsymutil was given.
3861 if test "${with_dsymutil+set}" = set; then :
3862 withval=$with_dsymutil; DEFAULT_DSYMUTIL="$with_dsymutil"
3866 dsymutil_vers=
3867 if test x"${DEFAULT_DSYMUTIL+set}" = x"set"; then
3868 if test ! -x "$DEFAULT_DSYMUTIL"; then
3869 as_fn_error $? "cannot execute: $DEFAULT_DSYMUTIL: check --with-dsymutil or env. var. DEFAULT_DSYMUTIL" "$LINENO" 5
3870 else
3871 if dsymutil_vers=`$DEFAULT_DSYMUTIL -v /dev/null 2>&1`; then
3872 dsymutil_flag=yes
3876 cat >>confdefs.h <<_ACEOF
3877 #define DEFAULT_DSYMUTIL "$DEFAULT_DSYMUTIL"
3878 _ACEOF
3882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default dsymutil was specified" >&5
3883 $as_echo_n "checking whether a default dsymutil was specified... " >&6; }
3884 if test x"${DEFAULT_DSYMUTIL+set}" = x"set"; then
3885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_DSYMUTIL)" >&5
3886 $as_echo "yes ($DEFAULT_DSYMUTIL)" >&6; }
3887 else
3888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3889 $as_echo "no" >&6; }
3892 # ----------------------
3893 # Find default assembler
3894 # ----------------------
3896 # With GNU as
3898 # Check whether --with-gnu-as was given.
3899 if test "${with_gnu_as+set}" = set; then :
3900 withval=$with_gnu_as; gas_flag="$with_gnu_as"
3901 else
3902 gas_flag=no
3907 # Check whether --with-as was given.
3908 if test "${with_as+set}" = set; then :
3909 withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
3912 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3913 if test ! -x "$DEFAULT_ASSEMBLER"; then
3914 as_fn_error $? "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3915 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3916 gas_flag=yes
3919 cat >>confdefs.h <<_ACEOF
3920 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3921 _ACEOF
3925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3926 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3927 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3928 if test x"$gas_flag" = x"no"; then
3929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3930 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3931 else
3932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3933 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3935 else
3936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3937 $as_echo "no" >&6; }
3940 # ---------------
3941 # Find C compiler
3942 # ---------------
3944 # If a non-executable a.out is present (e.g. created by GNU as above even if
3945 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3946 # file, even when creating an executable, so an execution test fails.
3947 # Remove possible default executable files to avoid this.
3949 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3950 # Autoconf includes it.
3951 rm -f a.out a.exe b.out
3953 # Find the native compiler
3954 ac_ext=c
3955 ac_cpp='$CPP $CPPFLAGS'
3956 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3957 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3958 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3959 if test -n "$ac_tool_prefix"; then
3960 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3961 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3963 $as_echo_n "checking for $ac_word... " >&6; }
3964 if ${ac_cv_prog_CC+:} false; then :
3965 $as_echo_n "(cached) " >&6
3966 else
3967 if test -n "$CC"; then
3968 ac_cv_prog_CC="$CC" # Let the user override the test.
3969 else
3970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3971 for as_dir in $PATH
3973 IFS=$as_save_IFS
3974 test -z "$as_dir" && as_dir=.
3975 for ac_exec_ext in '' $ac_executable_extensions; do
3976 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3977 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3979 break 2
3981 done
3982 done
3983 IFS=$as_save_IFS
3987 CC=$ac_cv_prog_CC
3988 if test -n "$CC"; then
3989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3990 $as_echo "$CC" >&6; }
3991 else
3992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3993 $as_echo "no" >&6; }
3998 if test -z "$ac_cv_prog_CC"; then
3999 ac_ct_CC=$CC
4000 # Extract the first word of "gcc", so it can be a program name with args.
4001 set dummy gcc; ac_word=$2
4002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4003 $as_echo_n "checking for $ac_word... " >&6; }
4004 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4005 $as_echo_n "(cached) " >&6
4006 else
4007 if test -n "$ac_ct_CC"; then
4008 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4009 else
4010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4011 for as_dir in $PATH
4013 IFS=$as_save_IFS
4014 test -z "$as_dir" && as_dir=.
4015 for ac_exec_ext in '' $ac_executable_extensions; do
4016 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4017 ac_cv_prog_ac_ct_CC="gcc"
4018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4019 break 2
4021 done
4022 done
4023 IFS=$as_save_IFS
4027 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4028 if test -n "$ac_ct_CC"; then
4029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4030 $as_echo "$ac_ct_CC" >&6; }
4031 else
4032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4033 $as_echo "no" >&6; }
4036 if test "x$ac_ct_CC" = x; then
4037 CC=""
4038 else
4039 case $cross_compiling:$ac_tool_warned in
4040 yes:)
4041 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4042 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4043 ac_tool_warned=yes ;;
4044 esac
4045 CC=$ac_ct_CC
4047 else
4048 CC="$ac_cv_prog_CC"
4051 if test -z "$CC"; then
4052 if test -n "$ac_tool_prefix"; then
4053 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4054 set dummy ${ac_tool_prefix}cc; ac_word=$2
4055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4056 $as_echo_n "checking for $ac_word... " >&6; }
4057 if ${ac_cv_prog_CC+:} false; then :
4058 $as_echo_n "(cached) " >&6
4059 else
4060 if test -n "$CC"; then
4061 ac_cv_prog_CC="$CC" # Let the user override the test.
4062 else
4063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4064 for as_dir in $PATH
4066 IFS=$as_save_IFS
4067 test -z "$as_dir" && as_dir=.
4068 for ac_exec_ext in '' $ac_executable_extensions; do
4069 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4070 ac_cv_prog_CC="${ac_tool_prefix}cc"
4071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4072 break 2
4074 done
4075 done
4076 IFS=$as_save_IFS
4080 CC=$ac_cv_prog_CC
4081 if test -n "$CC"; then
4082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4083 $as_echo "$CC" >&6; }
4084 else
4085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4086 $as_echo "no" >&6; }
4092 if test -z "$CC"; then
4093 # Extract the first word of "cc", so it can be a program name with args.
4094 set dummy cc; ac_word=$2
4095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4096 $as_echo_n "checking for $ac_word... " >&6; }
4097 if ${ac_cv_prog_CC+:} false; then :
4098 $as_echo_n "(cached) " >&6
4099 else
4100 if test -n "$CC"; then
4101 ac_cv_prog_CC="$CC" # Let the user override the test.
4102 else
4103 ac_prog_rejected=no
4104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4105 for as_dir in $PATH
4107 IFS=$as_save_IFS
4108 test -z "$as_dir" && as_dir=.
4109 for ac_exec_ext in '' $ac_executable_extensions; do
4110 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4111 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4112 ac_prog_rejected=yes
4113 continue
4115 ac_cv_prog_CC="cc"
4116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4117 break 2
4119 done
4120 done
4121 IFS=$as_save_IFS
4123 if test $ac_prog_rejected = yes; then
4124 # We found a bogon in the path, so make sure we never use it.
4125 set dummy $ac_cv_prog_CC
4126 shift
4127 if test $# != 0; then
4128 # We chose a different compiler from the bogus one.
4129 # However, it has the same basename, so the bogon will be chosen
4130 # first if we set CC to just the basename; use the full file name.
4131 shift
4132 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4137 CC=$ac_cv_prog_CC
4138 if test -n "$CC"; then
4139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4140 $as_echo "$CC" >&6; }
4141 else
4142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4143 $as_echo "no" >&6; }
4148 if test -z "$CC"; then
4149 if test -n "$ac_tool_prefix"; then
4150 for ac_prog in cl.exe
4152 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4153 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4155 $as_echo_n "checking for $ac_word... " >&6; }
4156 if ${ac_cv_prog_CC+:} false; then :
4157 $as_echo_n "(cached) " >&6
4158 else
4159 if test -n "$CC"; then
4160 ac_cv_prog_CC="$CC" # Let the user override the test.
4161 else
4162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4163 for as_dir in $PATH
4165 IFS=$as_save_IFS
4166 test -z "$as_dir" && as_dir=.
4167 for ac_exec_ext in '' $ac_executable_extensions; do
4168 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4169 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4171 break 2
4173 done
4174 done
4175 IFS=$as_save_IFS
4179 CC=$ac_cv_prog_CC
4180 if test -n "$CC"; then
4181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4182 $as_echo "$CC" >&6; }
4183 else
4184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4185 $as_echo "no" >&6; }
4189 test -n "$CC" && break
4190 done
4192 if test -z "$CC"; then
4193 ac_ct_CC=$CC
4194 for ac_prog in cl.exe
4196 # Extract the first word of "$ac_prog", so it can be a program name with args.
4197 set dummy $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_ac_ct_CC+:} false; then :
4201 $as_echo_n "(cached) " >&6
4202 else
4203 if test -n "$ac_ct_CC"; then
4204 ac_cv_prog_ac_ct_CC="$ac_ct_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_ac_ct_CC="$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 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4224 if test -n "$ac_ct_CC"; then
4225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4226 $as_echo "$ac_ct_CC" >&6; }
4227 else
4228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4229 $as_echo "no" >&6; }
4233 test -n "$ac_ct_CC" && break
4234 done
4236 if test "x$ac_ct_CC" = x; then
4237 CC=""
4238 else
4239 case $cross_compiling:$ac_tool_warned in
4240 yes:)
4241 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4242 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4243 ac_tool_warned=yes ;;
4244 esac
4245 CC=$ac_ct_CC
4252 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4253 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4254 as_fn_error $? "no acceptable C compiler found in \$PATH
4255 See \`config.log' for more details" "$LINENO" 5; }
4257 # Provide some information about the compiler.
4258 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4259 set X $ac_compile
4260 ac_compiler=$2
4261 for ac_option in --version -v -V -qversion; do
4262 { { ac_try="$ac_compiler $ac_option >&5"
4263 case "(($ac_try" in
4264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4265 *) ac_try_echo=$ac_try;;
4266 esac
4267 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4268 $as_echo "$ac_try_echo"; } >&5
4269 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4270 ac_status=$?
4271 if test -s conftest.err; then
4272 sed '10a\
4273 ... rest of stderr output deleted ...
4274 10q' conftest.err >conftest.er1
4275 cat conftest.er1 >&5
4277 rm -f conftest.er1 conftest.err
4278 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4279 test $ac_status = 0; }
4280 done
4282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4283 /* end confdefs.h. */
4286 main ()
4290 return 0;
4292 _ACEOF
4293 ac_clean_files_save=$ac_clean_files
4294 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4295 # Try to create an executable without -o first, disregard a.out.
4296 # It will help us diagnose broken compilers, and finding out an intuition
4297 # of exeext.
4298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4299 $as_echo_n "checking whether the C compiler works... " >&6; }
4300 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4302 # The possible output files:
4303 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4305 ac_rmfiles=
4306 for ac_file in $ac_files
4308 case $ac_file in
4309 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4310 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4311 esac
4312 done
4313 rm -f $ac_rmfiles
4315 if { { ac_try="$ac_link_default"
4316 case "(($ac_try" in
4317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4318 *) ac_try_echo=$ac_try;;
4319 esac
4320 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4321 $as_echo "$ac_try_echo"; } >&5
4322 (eval "$ac_link_default") 2>&5
4323 ac_status=$?
4324 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4325 test $ac_status = 0; }; then :
4326 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4327 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4328 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4329 # so that the user can short-circuit this test for compilers unknown to
4330 # Autoconf.
4331 for ac_file in $ac_files ''
4333 test -f "$ac_file" || continue
4334 case $ac_file in
4335 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4337 [ab].out )
4338 # We found the default executable, but exeext='' is most
4339 # certainly right.
4340 break;;
4341 *.* )
4342 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4343 then :; else
4344 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4346 # We set ac_cv_exeext here because the later test for it is not
4347 # safe: cross compilers may not add the suffix if given an `-o'
4348 # argument, so we may need to know it at that point already.
4349 # Even if this section looks crufty: it has the advantage of
4350 # actually working.
4351 break;;
4353 break;;
4354 esac
4355 done
4356 test "$ac_cv_exeext" = no && ac_cv_exeext=
4358 else
4359 ac_file=''
4361 if test -z "$ac_file"; then :
4362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4363 $as_echo "no" >&6; }
4364 $as_echo "$as_me: failed program was:" >&5
4365 sed 's/^/| /' conftest.$ac_ext >&5
4367 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4368 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4369 as_fn_error 77 "C compiler cannot create executables
4370 See \`config.log' for more details" "$LINENO" 5; }
4371 else
4372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4373 $as_echo "yes" >&6; }
4375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4376 $as_echo_n "checking for C compiler default output file name... " >&6; }
4377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4378 $as_echo "$ac_file" >&6; }
4379 ac_exeext=$ac_cv_exeext
4381 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4382 ac_clean_files=$ac_clean_files_save
4383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4384 $as_echo_n "checking for suffix of executables... " >&6; }
4385 if { { ac_try="$ac_link"
4386 case "(($ac_try" in
4387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4388 *) ac_try_echo=$ac_try;;
4389 esac
4390 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4391 $as_echo "$ac_try_echo"; } >&5
4392 (eval "$ac_link") 2>&5
4393 ac_status=$?
4394 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4395 test $ac_status = 0; }; then :
4396 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4397 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4398 # work properly (i.e., refer to `conftest.exe'), while it won't with
4399 # `rm'.
4400 for ac_file in conftest.exe conftest conftest.*; do
4401 test -f "$ac_file" || continue
4402 case $ac_file in
4403 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4404 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4405 break;;
4406 * ) break;;
4407 esac
4408 done
4409 else
4410 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4411 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4412 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4413 See \`config.log' for more details" "$LINENO" 5; }
4415 rm -f conftest conftest$ac_cv_exeext
4416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4417 $as_echo "$ac_cv_exeext" >&6; }
4419 rm -f conftest.$ac_ext
4420 EXEEXT=$ac_cv_exeext
4421 ac_exeext=$EXEEXT
4422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4423 /* end confdefs.h. */
4424 #include <stdio.h>
4426 main ()
4428 FILE *f = fopen ("conftest.out", "w");
4429 return ferror (f) || fclose (f) != 0;
4432 return 0;
4434 _ACEOF
4435 ac_clean_files="$ac_clean_files conftest.out"
4436 # Check that the compiler produces executables we can run. If not, either
4437 # the compiler is broken, or we cross compile.
4438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4439 $as_echo_n "checking whether we are cross compiling... " >&6; }
4440 if test "$cross_compiling" != yes; then
4441 { { ac_try="$ac_link"
4442 case "(($ac_try" in
4443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4444 *) ac_try_echo=$ac_try;;
4445 esac
4446 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4447 $as_echo "$ac_try_echo"; } >&5
4448 (eval "$ac_link") 2>&5
4449 ac_status=$?
4450 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4451 test $ac_status = 0; }
4452 if { ac_try='./conftest$ac_cv_exeext'
4453 { { case "(($ac_try" in
4454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4455 *) ac_try_echo=$ac_try;;
4456 esac
4457 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4458 $as_echo "$ac_try_echo"; } >&5
4459 (eval "$ac_try") 2>&5
4460 ac_status=$?
4461 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4462 test $ac_status = 0; }; }; then
4463 cross_compiling=no
4464 else
4465 if test "$cross_compiling" = maybe; then
4466 cross_compiling=yes
4467 else
4468 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4469 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4470 as_fn_error $? "cannot run C compiled programs.
4471 If you meant to cross compile, use \`--host'.
4472 See \`config.log' for more details" "$LINENO" 5; }
4476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4477 $as_echo "$cross_compiling" >&6; }
4479 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4480 ac_clean_files=$ac_clean_files_save
4481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4482 $as_echo_n "checking for suffix of object files... " >&6; }
4483 if ${ac_cv_objext+:} false; then :
4484 $as_echo_n "(cached) " >&6
4485 else
4486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4487 /* end confdefs.h. */
4490 main ()
4494 return 0;
4496 _ACEOF
4497 rm -f conftest.o conftest.obj
4498 if { { ac_try="$ac_compile"
4499 case "(($ac_try" in
4500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4501 *) ac_try_echo=$ac_try;;
4502 esac
4503 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4504 $as_echo "$ac_try_echo"; } >&5
4505 (eval "$ac_compile") 2>&5
4506 ac_status=$?
4507 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4508 test $ac_status = 0; }; then :
4509 for ac_file in conftest.o conftest.obj conftest.*; do
4510 test -f "$ac_file" || continue;
4511 case $ac_file in
4512 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4513 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4514 break;;
4515 esac
4516 done
4517 else
4518 $as_echo "$as_me: failed program was:" >&5
4519 sed 's/^/| /' conftest.$ac_ext >&5
4521 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4522 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4523 as_fn_error $? "cannot compute suffix of object files: cannot compile
4524 See \`config.log' for more details" "$LINENO" 5; }
4526 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4529 $as_echo "$ac_cv_objext" >&6; }
4530 OBJEXT=$ac_cv_objext
4531 ac_objext=$OBJEXT
4532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4533 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4534 if ${ac_cv_c_compiler_gnu+:} false; then :
4535 $as_echo_n "(cached) " >&6
4536 else
4537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4538 /* end confdefs.h. */
4541 main ()
4543 #ifndef __GNUC__
4544 choke me
4545 #endif
4548 return 0;
4550 _ACEOF
4551 if ac_fn_c_try_compile "$LINENO"; then :
4552 ac_compiler_gnu=yes
4553 else
4554 ac_compiler_gnu=no
4556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4557 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4561 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4562 if test $ac_compiler_gnu = yes; then
4563 GCC=yes
4564 else
4565 GCC=
4567 ac_test_CFLAGS=${CFLAGS+set}
4568 ac_save_CFLAGS=$CFLAGS
4569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4570 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4571 if ${ac_cv_prog_cc_g+:} false; then :
4572 $as_echo_n "(cached) " >&6
4573 else
4574 ac_save_c_werror_flag=$ac_c_werror_flag
4575 ac_c_werror_flag=yes
4576 ac_cv_prog_cc_g=no
4577 CFLAGS="-g"
4578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4579 /* end confdefs.h. */
4582 main ()
4586 return 0;
4588 _ACEOF
4589 if ac_fn_c_try_compile "$LINENO"; then :
4590 ac_cv_prog_cc_g=yes
4591 else
4592 CFLAGS=""
4593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4594 /* end confdefs.h. */
4597 main ()
4601 return 0;
4603 _ACEOF
4604 if ac_fn_c_try_compile "$LINENO"; then :
4606 else
4607 ac_c_werror_flag=$ac_save_c_werror_flag
4608 CFLAGS="-g"
4609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4610 /* end confdefs.h. */
4613 main ()
4617 return 0;
4619 _ACEOF
4620 if ac_fn_c_try_compile "$LINENO"; then :
4621 ac_cv_prog_cc_g=yes
4623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4628 ac_c_werror_flag=$ac_save_c_werror_flag
4630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4631 $as_echo "$ac_cv_prog_cc_g" >&6; }
4632 if test "$ac_test_CFLAGS" = set; then
4633 CFLAGS=$ac_save_CFLAGS
4634 elif test $ac_cv_prog_cc_g = yes; then
4635 if test "$GCC" = yes; then
4636 CFLAGS="-g -O2"
4637 else
4638 CFLAGS="-g"
4640 else
4641 if test "$GCC" = yes; then
4642 CFLAGS="-O2"
4643 else
4644 CFLAGS=
4647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4648 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4649 if ${ac_cv_prog_cc_c89+:} false; then :
4650 $as_echo_n "(cached) " >&6
4651 else
4652 ac_cv_prog_cc_c89=no
4653 ac_save_CC=$CC
4654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4655 /* end confdefs.h. */
4656 #include <stdarg.h>
4657 #include <stdio.h>
4658 struct stat;
4659 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4660 struct buf { int x; };
4661 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4662 static char *e (p, i)
4663 char **p;
4664 int i;
4666 return p[i];
4668 static char *f (char * (*g) (char **, int), char **p, ...)
4670 char *s;
4671 va_list v;
4672 va_start (v,p);
4673 s = g (p, va_arg (v,int));
4674 va_end (v);
4675 return s;
4678 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4679 function prototypes and stuff, but not '\xHH' hex character constants.
4680 These don't provoke an error unfortunately, instead are silently treated
4681 as 'x'. The following induces an error, until -std is added to get
4682 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4683 array size at least. It's necessary to write '\x00'==0 to get something
4684 that's true only with -std. */
4685 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4687 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4688 inside strings and character constants. */
4689 #define FOO(x) 'x'
4690 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4692 int test (int i, double x);
4693 struct s1 {int (*f) (int a);};
4694 struct s2 {int (*f) (double a);};
4695 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4696 int argc;
4697 char **argv;
4699 main ()
4701 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4703 return 0;
4705 _ACEOF
4706 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4707 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4709 CC="$ac_save_CC $ac_arg"
4710 if ac_fn_c_try_compile "$LINENO"; then :
4711 ac_cv_prog_cc_c89=$ac_arg
4713 rm -f core conftest.err conftest.$ac_objext
4714 test "x$ac_cv_prog_cc_c89" != "xno" && break
4715 done
4716 rm -f conftest.$ac_ext
4717 CC=$ac_save_CC
4720 # AC_CACHE_VAL
4721 case "x$ac_cv_prog_cc_c89" in
4723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4724 $as_echo "none needed" >&6; } ;;
4725 xno)
4726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4727 $as_echo "unsupported" >&6; } ;;
4729 CC="$CC $ac_cv_prog_cc_c89"
4730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4731 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4732 esac
4733 if test "x$ac_cv_prog_cc_c89" != xno; then :
4737 ac_ext=c
4738 ac_cpp='$CPP $CPPFLAGS'
4739 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4740 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4741 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4743 ac_ext=cpp
4744 ac_cpp='$CXXCPP $CPPFLAGS'
4745 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4746 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4747 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4748 if test -z "$CXX"; then
4749 if test -n "$CCC"; then
4750 CXX=$CCC
4751 else
4752 if test -n "$ac_tool_prefix"; then
4753 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4755 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4756 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4758 $as_echo_n "checking for $ac_word... " >&6; }
4759 if ${ac_cv_prog_CXX+:} false; then :
4760 $as_echo_n "(cached) " >&6
4761 else
4762 if test -n "$CXX"; then
4763 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4764 else
4765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4766 for as_dir in $PATH
4768 IFS=$as_save_IFS
4769 test -z "$as_dir" && as_dir=.
4770 for ac_exec_ext in '' $ac_executable_extensions; do
4771 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4772 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4774 break 2
4776 done
4777 done
4778 IFS=$as_save_IFS
4782 CXX=$ac_cv_prog_CXX
4783 if test -n "$CXX"; then
4784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4785 $as_echo "$CXX" >&6; }
4786 else
4787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4788 $as_echo "no" >&6; }
4792 test -n "$CXX" && break
4793 done
4795 if test -z "$CXX"; then
4796 ac_ct_CXX=$CXX
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_prog", so it can be a program name with args.
4800 set dummy $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_ac_ct_CXX+:} false; then :
4804 $as_echo_n "(cached) " >&6
4805 else
4806 if test -n "$ac_ct_CXX"; then
4807 ac_cv_prog_ac_ct_CXX="$ac_ct_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_ac_ct_CXX="$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 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4827 if test -n "$ac_ct_CXX"; then
4828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4829 $as_echo "$ac_ct_CXX" >&6; }
4830 else
4831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4832 $as_echo "no" >&6; }
4836 test -n "$ac_ct_CXX" && break
4837 done
4839 if test "x$ac_ct_CXX" = x; then
4840 CXX="g++"
4841 else
4842 case $cross_compiling:$ac_tool_warned in
4843 yes:)
4844 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4845 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4846 ac_tool_warned=yes ;;
4847 esac
4848 CXX=$ac_ct_CXX
4854 # Provide some information about the compiler.
4855 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4856 set X $ac_compile
4857 ac_compiler=$2
4858 for ac_option in --version -v -V -qversion; do
4859 { { ac_try="$ac_compiler $ac_option >&5"
4860 case "(($ac_try" in
4861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4862 *) ac_try_echo=$ac_try;;
4863 esac
4864 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4865 $as_echo "$ac_try_echo"; } >&5
4866 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4867 ac_status=$?
4868 if test -s conftest.err; then
4869 sed '10a\
4870 ... rest of stderr output deleted ...
4871 10q' conftest.err >conftest.er1
4872 cat conftest.er1 >&5
4874 rm -f conftest.er1 conftest.err
4875 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4876 test $ac_status = 0; }
4877 done
4879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4880 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4881 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4882 $as_echo_n "(cached) " >&6
4883 else
4884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4885 /* end confdefs.h. */
4888 main ()
4890 #ifndef __GNUC__
4891 choke me
4892 #endif
4895 return 0;
4897 _ACEOF
4898 if ac_fn_cxx_try_compile "$LINENO"; then :
4899 ac_compiler_gnu=yes
4900 else
4901 ac_compiler_gnu=no
4903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4904 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4908 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4909 if test $ac_compiler_gnu = yes; then
4910 GXX=yes
4911 else
4912 GXX=
4914 ac_test_CXXFLAGS=${CXXFLAGS+set}
4915 ac_save_CXXFLAGS=$CXXFLAGS
4916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4917 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4918 if ${ac_cv_prog_cxx_g+:} false; then :
4919 $as_echo_n "(cached) " >&6
4920 else
4921 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4922 ac_cxx_werror_flag=yes
4923 ac_cv_prog_cxx_g=no
4924 CXXFLAGS="-g"
4925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4926 /* end confdefs.h. */
4929 main ()
4933 return 0;
4935 _ACEOF
4936 if ac_fn_cxx_try_compile "$LINENO"; then :
4937 ac_cv_prog_cxx_g=yes
4938 else
4939 CXXFLAGS=""
4940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4941 /* end confdefs.h. */
4944 main ()
4948 return 0;
4950 _ACEOF
4951 if ac_fn_cxx_try_compile "$LINENO"; then :
4953 else
4954 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4955 CXXFLAGS="-g"
4956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4957 /* end confdefs.h. */
4960 main ()
4964 return 0;
4966 _ACEOF
4967 if ac_fn_cxx_try_compile "$LINENO"; then :
4968 ac_cv_prog_cxx_g=yes
4970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4975 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4978 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4979 if test "$ac_test_CXXFLAGS" = set; then
4980 CXXFLAGS=$ac_save_CXXFLAGS
4981 elif test $ac_cv_prog_cxx_g = yes; then
4982 if test "$GXX" = yes; then
4983 CXXFLAGS="-g -O2"
4984 else
4985 CXXFLAGS="-g"
4987 else
4988 if test "$GXX" = yes; then
4989 CXXFLAGS="-O2"
4990 else
4991 CXXFLAGS=
4994 ac_ext=c
4995 ac_cpp='$CPP $CPPFLAGS'
4996 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4997 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4998 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5000 # ACX_PROG_GNAT([-I"$srcdir"/ada/libgnat])
5001 # ACX_PROG_GDC([-I"$srcdir"/d])
5003 # Do configure tests with the C++ compiler, since that's what we build with.
5004 ac_ext=cpp
5005 ac_cpp='$CXXCPP $CPPFLAGS'
5006 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5007 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5008 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5011 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
5012 # optimizations to be activated explicitly by the toplevel.
5013 case "$CC" in
5014 */prev-gcc/xgcc*) ;;
5015 *) CFLAGS=`echo "$CFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" `
5016 CXXFLAGS=`echo "$CXXFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` ;;
5017 esac
5022 # Determine PICFLAG for target gnatlib.
5027 case "${target}" in
5028 # PIC is the default on some targets or must not be used.
5029 *-*-darwin*)
5030 # For darwin, common symbols are not allowed in MH_DYLIB files
5031 case "${CFLAGS}" in
5032 # If we are using a compiler supporting mdynamic-no-pic
5033 # and the option has been tested as safe to add, then cancel
5034 # it here, since the code generated is incompatible with shared
5035 # libs.
5036 *-mdynamic-no-pic*) PICFLAG_FOR_TARGET='-fno-common -mno-dynamic-no-pic' ;;
5037 *) PICFLAG_FOR_TARGET=-fno-common ;;
5038 esac
5040 alpha*-dec-osf5*)
5041 # PIC is the default.
5043 hppa*64*-*-hpux*)
5044 # PIC is the default for 64-bit PA HP-UX.
5046 i[34567]86-*-cygwin* | x86_64-*-cygwin*)
5048 i[34567]86-*-mingw* | x86_64-*-mingw*)
5050 i[34567]86-*-interix[3-9]*)
5051 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5052 # Instead, we relocate shared libraries at runtime.
5054 i[34567]86-*-nto-qnx*)
5055 # QNX uses GNU C++, but need to define -shared option too, otherwise
5056 # it will coredump.
5057 PICFLAG_FOR_TARGET='-fPIC -shared'
5059 i[34567]86-pc-msdosdjgpp*)
5060 # DJGPP does not support shared libraries at all.
5062 ia64*-*-hpux*)
5063 # On IA64 HP-UX, PIC is the default but the pic flag
5064 # sets the default TLS model and affects inlining.
5065 PICFLAG_FOR_TARGET=-fPIC
5067 loongarch*-*-*)
5068 PICFLAG_FOR_TARGET=-fpic
5070 mips-sgi-irix6*)
5071 # PIC is the default.
5073 rs6000-ibm-aix* | powerpc-ibm-aix*)
5074 # All AIX code is PIC.
5077 # Some targets support both -fPIC and -fpic, but prefer the latter.
5078 # FIXME: Why?
5079 i[34567]86-*-* | x86_64-*-*)
5080 PICFLAG_FOR_TARGET=-fpic
5082 # FIXME: Override -fPIC default in libgcc only?
5083 sh-*-linux* | sh[2346lbe]*-*-linux*)
5084 PICFLAG_FOR_TARGET=-fpic
5086 # FIXME: Simplify to sh*-*-netbsd*?
5087 sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
5088 sh64-*-netbsd* | sh64l*-*-netbsd*)
5089 PICFLAG_FOR_TARGET=-fpic
5091 # Default to -fPIC unless specified otherwise.
5093 PICFLAG_FOR_TARGET=-fPIC
5095 esac
5097 # If the user explicitly uses -fpic/-fPIC, keep that.
5098 case "${CFLAGS_FOR_TARGET}" in
5099 *-fpic*)
5100 PICFLAG_FOR_TARGET=-fpic
5102 *-fPIC*)
5103 PICFLAG_FOR_TARGET=-fPIC
5105 esac
5109 # -------------------------
5110 # Check C compiler features
5111 # -------------------------
5114 ac_ext=cpp
5115 ac_cpp='$CXXCPP $CPPFLAGS'
5116 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5117 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5118 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5120 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5121 if test -z "$CXXCPP"; then
5122 if ${ac_cv_prog_CXXCPP+:} false; then :
5123 $as_echo_n "(cached) " >&6
5124 else
5125 # Double quotes because CXXCPP needs to be expanded
5126 for CXXCPP in "$CXX -E" "/lib/cpp"
5128 ac_preproc_ok=false
5129 for ac_cxx_preproc_warn_flag in '' yes
5131 # Use a header file that comes with gcc, so configuring glibc
5132 # with a fresh cross-compiler works.
5133 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5134 # <limits.h> exists even on freestanding compilers.
5135 # On the NeXT, cc -E runs the code through the compiler's parser,
5136 # not just through cpp. "Syntax error" is here to catch this case.
5137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5138 /* end confdefs.h. */
5139 #ifdef __STDC__
5140 # include <limits.h>
5141 #else
5142 # include <assert.h>
5143 #endif
5144 Syntax error
5145 _ACEOF
5146 if ac_fn_cxx_try_cpp "$LINENO"; then :
5148 else
5149 # Broken: fails on valid input.
5150 continue
5152 rm -f conftest.err conftest.i conftest.$ac_ext
5154 # OK, works on sane cases. Now check whether nonexistent headers
5155 # can be detected and how.
5156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5157 /* end confdefs.h. */
5158 #include <ac_nonexistent.h>
5159 _ACEOF
5160 if ac_fn_cxx_try_cpp "$LINENO"; then :
5161 # Broken: success on invalid input.
5162 continue
5163 else
5164 # Passes both tests.
5165 ac_preproc_ok=:
5166 break
5168 rm -f conftest.err conftest.i conftest.$ac_ext
5170 done
5171 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5172 rm -f conftest.i conftest.err conftest.$ac_ext
5173 if $ac_preproc_ok; then :
5174 break
5177 done
5178 ac_cv_prog_CXXCPP=$CXXCPP
5181 CXXCPP=$ac_cv_prog_CXXCPP
5182 else
5183 ac_cv_prog_CXXCPP=$CXXCPP
5185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5186 $as_echo "$CXXCPP" >&6; }
5187 ac_preproc_ok=false
5188 for ac_cxx_preproc_warn_flag in '' yes
5190 # Use a header file that comes with gcc, so configuring glibc
5191 # with a fresh cross-compiler works.
5192 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5193 # <limits.h> exists even on freestanding compilers.
5194 # On the NeXT, cc -E runs the code through the compiler's parser,
5195 # not just through cpp. "Syntax error" is here to catch this case.
5196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5197 /* end confdefs.h. */
5198 #ifdef __STDC__
5199 # include <limits.h>
5200 #else
5201 # include <assert.h>
5202 #endif
5203 Syntax error
5204 _ACEOF
5205 if ac_fn_cxx_try_cpp "$LINENO"; then :
5207 else
5208 # Broken: fails on valid input.
5209 continue
5211 rm -f conftest.err conftest.i conftest.$ac_ext
5213 # OK, works on sane cases. Now check whether nonexistent headers
5214 # can be detected and how.
5215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5216 /* end confdefs.h. */
5217 #include <ac_nonexistent.h>
5218 _ACEOF
5219 if ac_fn_cxx_try_cpp "$LINENO"; then :
5220 # Broken: success on invalid input.
5221 continue
5222 else
5223 # Passes both tests.
5224 ac_preproc_ok=:
5225 break
5227 rm -f conftest.err conftest.i conftest.$ac_ext
5229 done
5230 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5231 rm -f conftest.i conftest.err conftest.$ac_ext
5232 if $ac_preproc_ok; then :
5234 else
5235 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5236 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5237 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
5238 See \`config.log' for more details" "$LINENO" 5; }
5241 ac_ext=cpp
5242 ac_cpp='$CXXCPP $CPPFLAGS'
5243 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5244 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5245 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5249 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5250 if ${ac_cv_path_GREP+:} false; then :
5251 $as_echo_n "(cached) " >&6
5252 else
5253 if test -z "$GREP"; then
5254 ac_path_GREP_found=false
5255 # Loop through the user's path and test for each of PROGNAME-LIST
5256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5257 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5259 IFS=$as_save_IFS
5260 test -z "$as_dir" && as_dir=.
5261 for ac_prog in grep ggrep; do
5262 for ac_exec_ext in '' $ac_executable_extensions; do
5263 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5264 as_fn_executable_p "$ac_path_GREP" || continue
5265 # Check for GNU ac_path_GREP and select it if it is found.
5266 # Check for GNU $ac_path_GREP
5267 case `"$ac_path_GREP" --version 2>&1` in
5268 *GNU*)
5269 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5271 ac_count=0
5272 $as_echo_n 0123456789 >"conftest.in"
5273 while :
5275 cat "conftest.in" "conftest.in" >"conftest.tmp"
5276 mv "conftest.tmp" "conftest.in"
5277 cp "conftest.in" "conftest.nl"
5278 $as_echo 'GREP' >> "conftest.nl"
5279 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5280 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5281 as_fn_arith $ac_count + 1 && ac_count=$as_val
5282 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5283 # Best one so far, save it but keep looking for a better one
5284 ac_cv_path_GREP="$ac_path_GREP"
5285 ac_path_GREP_max=$ac_count
5287 # 10*(2^10) chars as input seems more than enough
5288 test $ac_count -gt 10 && break
5289 done
5290 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5291 esac
5293 $ac_path_GREP_found && break 3
5294 done
5295 done
5296 done
5297 IFS=$as_save_IFS
5298 if test -z "$ac_cv_path_GREP"; then
5299 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5301 else
5302 ac_cv_path_GREP=$GREP
5306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5307 $as_echo "$ac_cv_path_GREP" >&6; }
5308 GREP="$ac_cv_path_GREP"
5311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5312 $as_echo_n "checking for egrep... " >&6; }
5313 if ${ac_cv_path_EGREP+:} false; then :
5314 $as_echo_n "(cached) " >&6
5315 else
5316 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5317 then ac_cv_path_EGREP="$GREP -E"
5318 else
5319 if test -z "$EGREP"; then
5320 ac_path_EGREP_found=false
5321 # Loop through the user's path and test for each of PROGNAME-LIST
5322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5323 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5325 IFS=$as_save_IFS
5326 test -z "$as_dir" && as_dir=.
5327 for ac_prog in egrep; do
5328 for ac_exec_ext in '' $ac_executable_extensions; do
5329 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5330 as_fn_executable_p "$ac_path_EGREP" || continue
5331 # Check for GNU ac_path_EGREP and select it if it is found.
5332 # Check for GNU $ac_path_EGREP
5333 case `"$ac_path_EGREP" --version 2>&1` in
5334 *GNU*)
5335 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5337 ac_count=0
5338 $as_echo_n 0123456789 >"conftest.in"
5339 while :
5341 cat "conftest.in" "conftest.in" >"conftest.tmp"
5342 mv "conftest.tmp" "conftest.in"
5343 cp "conftest.in" "conftest.nl"
5344 $as_echo 'EGREP' >> "conftest.nl"
5345 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5346 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5347 as_fn_arith $ac_count + 1 && ac_count=$as_val
5348 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5349 # Best one so far, save it but keep looking for a better one
5350 ac_cv_path_EGREP="$ac_path_EGREP"
5351 ac_path_EGREP_max=$ac_count
5353 # 10*(2^10) chars as input seems more than enough
5354 test $ac_count -gt 10 && break
5355 done
5356 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5357 esac
5359 $ac_path_EGREP_found && break 3
5360 done
5361 done
5362 done
5363 IFS=$as_save_IFS
5364 if test -z "$ac_cv_path_EGREP"; then
5365 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5367 else
5368 ac_cv_path_EGREP=$EGREP
5373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5374 $as_echo "$ac_cv_path_EGREP" >&6; }
5375 EGREP="$ac_cv_path_EGREP"
5378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5379 $as_echo_n "checking for ANSI C header files... " >&6; }
5380 if ${ac_cv_header_stdc+:} false; then :
5381 $as_echo_n "(cached) " >&6
5382 else
5383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5384 /* end confdefs.h. */
5385 #include <stdlib.h>
5386 #include <stdarg.h>
5387 #include <string.h>
5388 #include <float.h>
5391 main ()
5395 return 0;
5397 _ACEOF
5398 if ac_fn_cxx_try_compile "$LINENO"; then :
5399 ac_cv_header_stdc=yes
5400 else
5401 ac_cv_header_stdc=no
5403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5405 if test $ac_cv_header_stdc = yes; then
5406 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5408 /* end confdefs.h. */
5409 #include <string.h>
5411 _ACEOF
5412 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5413 $EGREP "memchr" >/dev/null 2>&1; then :
5415 else
5416 ac_cv_header_stdc=no
5418 rm -f conftest*
5422 if test $ac_cv_header_stdc = yes; then
5423 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5425 /* end confdefs.h. */
5426 #include <stdlib.h>
5428 _ACEOF
5429 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5430 $EGREP "free" >/dev/null 2>&1; then :
5432 else
5433 ac_cv_header_stdc=no
5435 rm -f conftest*
5439 if test $ac_cv_header_stdc = yes; then
5440 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5441 if test "$cross_compiling" = yes; then :
5443 else
5444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5445 /* end confdefs.h. */
5446 #include <ctype.h>
5447 #include <stdlib.h>
5448 #if ((' ' & 0x0FF) == 0x020)
5449 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5450 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5451 #else
5452 # define ISLOWER(c) \
5453 (('a' <= (c) && (c) <= 'i') \
5454 || ('j' <= (c) && (c) <= 'r') \
5455 || ('s' <= (c) && (c) <= 'z'))
5456 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5457 #endif
5459 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5461 main ()
5463 int i;
5464 for (i = 0; i < 256; i++)
5465 if (XOR (islower (i), ISLOWER (i))
5466 || toupper (i) != TOUPPER (i))
5467 return 2;
5468 return 0;
5470 _ACEOF
5471 if ac_fn_cxx_try_run "$LINENO"; then :
5473 else
5474 ac_cv_header_stdc=no
5476 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5477 conftest.$ac_objext conftest.beam conftest.$ac_ext
5482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5483 $as_echo "$ac_cv_header_stdc" >&6; }
5484 if test $ac_cv_header_stdc = yes; then
5486 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5490 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5491 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5492 inttypes.h stdint.h unistd.h
5493 do :
5494 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5495 ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5497 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5498 cat >>confdefs.h <<_ACEOF
5499 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5500 _ACEOF
5504 done
5508 ac_fn_cxx_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5509 if test "x$ac_cv_header_minix_config_h" = xyes; then :
5510 MINIX=yes
5511 else
5512 MINIX=
5516 if test "$MINIX" = yes; then
5518 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5521 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5524 $as_echo "#define _MINIX 1" >>confdefs.h
5529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5530 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5531 if ${ac_cv_safe_to_define___extensions__+:} false; then :
5532 $as_echo_n "(cached) " >&6
5533 else
5534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5535 /* end confdefs.h. */
5537 # define __EXTENSIONS__ 1
5538 $ac_includes_default
5540 main ()
5544 return 0;
5546 _ACEOF
5547 if ac_fn_cxx_try_compile "$LINENO"; then :
5548 ac_cv_safe_to_define___extensions__=yes
5549 else
5550 ac_cv_safe_to_define___extensions__=no
5552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5555 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5556 test $ac_cv_safe_to_define___extensions__ = yes &&
5557 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5559 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5561 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5563 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5565 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5569 ac_ext=c
5570 ac_cpp='$CPP $CPPFLAGS'
5571 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5572 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5573 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5575 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5576 # On Suns, sometimes $CPP names a directory.
5577 if test -n "$CPP" && test -d "$CPP"; then
5578 CPP=
5580 if test -z "$CPP"; then
5581 if ${ac_cv_prog_CPP+:} false; then :
5582 $as_echo_n "(cached) " >&6
5583 else
5584 # Double quotes because CPP needs to be expanded
5585 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5587 ac_preproc_ok=false
5588 for ac_c_preproc_warn_flag in '' yes
5590 # Use a header file that comes with gcc, so configuring glibc
5591 # with a fresh cross-compiler works.
5592 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5593 # <limits.h> exists even on freestanding compilers.
5594 # On the NeXT, cc -E runs the code through the compiler's parser,
5595 # not just through cpp. "Syntax error" is here to catch this case.
5596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5597 /* end confdefs.h. */
5598 #ifdef __STDC__
5599 # include <limits.h>
5600 #else
5601 # include <assert.h>
5602 #endif
5603 Syntax error
5604 _ACEOF
5605 if ac_fn_c_try_cpp "$LINENO"; then :
5607 else
5608 # Broken: fails on valid input.
5609 continue
5611 rm -f conftest.err conftest.i conftest.$ac_ext
5613 # OK, works on sane cases. Now check whether nonexistent headers
5614 # can be detected and how.
5615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5616 /* end confdefs.h. */
5617 #include <ac_nonexistent.h>
5618 _ACEOF
5619 if ac_fn_c_try_cpp "$LINENO"; then :
5620 # Broken: success on invalid input.
5621 continue
5622 else
5623 # Passes both tests.
5624 ac_preproc_ok=:
5625 break
5627 rm -f conftest.err conftest.i conftest.$ac_ext
5629 done
5630 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5631 rm -f conftest.i conftest.err conftest.$ac_ext
5632 if $ac_preproc_ok; then :
5633 break
5636 done
5637 ac_cv_prog_CPP=$CPP
5640 CPP=$ac_cv_prog_CPP
5641 else
5642 ac_cv_prog_CPP=$CPP
5644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5645 $as_echo "$CPP" >&6; }
5646 ac_preproc_ok=false
5647 for ac_c_preproc_warn_flag in '' yes
5649 # Use a header file that comes with gcc, so configuring glibc
5650 # with a fresh cross-compiler works.
5651 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5652 # <limits.h> exists even on freestanding compilers.
5653 # On the NeXT, cc -E runs the code through the compiler's parser,
5654 # not just through cpp. "Syntax error" is here to catch this case.
5655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5656 /* end confdefs.h. */
5657 #ifdef __STDC__
5658 # include <limits.h>
5659 #else
5660 # include <assert.h>
5661 #endif
5662 Syntax error
5663 _ACEOF
5664 if ac_fn_c_try_cpp "$LINENO"; then :
5666 else
5667 # Broken: fails on valid input.
5668 continue
5670 rm -f conftest.err conftest.i conftest.$ac_ext
5672 # OK, works on sane cases. Now check whether nonexistent headers
5673 # can be detected and how.
5674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5675 /* end confdefs.h. */
5676 #include <ac_nonexistent.h>
5677 _ACEOF
5678 if ac_fn_c_try_cpp "$LINENO"; then :
5679 # Broken: success on invalid input.
5680 continue
5681 else
5682 # Passes both tests.
5683 ac_preproc_ok=:
5684 break
5686 rm -f conftest.err conftest.i conftest.$ac_ext
5688 done
5689 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5690 rm -f conftest.i conftest.err conftest.$ac_ext
5691 if $ac_preproc_ok; then :
5693 else
5694 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5695 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5696 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5697 See \`config.log' for more details" "$LINENO" 5; }
5700 ac_ext=cpp
5701 ac_cpp='$CXXCPP $CPPFLAGS'
5702 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5703 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5704 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5707 $as_echo_n "checking for inline... " >&6; }
5708 if ${ac_cv_c_inline+:} false; then :
5709 $as_echo_n "(cached) " >&6
5710 else
5711 ac_cv_c_inline=no
5712 for ac_kw in inline __inline__ __inline; do
5713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5714 /* end confdefs.h. */
5715 #ifndef __cplusplus
5716 typedef int foo_t;
5717 static $ac_kw foo_t static_foo () {return 0; }
5718 $ac_kw foo_t foo () {return 0; }
5719 #endif
5721 _ACEOF
5722 if ac_fn_cxx_try_compile "$LINENO"; then :
5723 ac_cv_c_inline=$ac_kw
5725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5726 test "$ac_cv_c_inline" != no && break
5727 done
5730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5731 $as_echo "$ac_cv_c_inline" >&6; }
5733 case $ac_cv_c_inline in
5734 inline | yes) ;;
5736 case $ac_cv_c_inline in
5737 no) ac_val=;;
5738 *) ac_val=$ac_cv_c_inline;;
5739 esac
5740 cat >>confdefs.h <<_ACEOF
5741 #ifndef __cplusplus
5742 #define inline $ac_val
5743 #endif
5744 _ACEOF
5746 esac
5749 # Check whether --enable-largefile was given.
5750 if test "${enable_largefile+set}" = set; then :
5751 enableval=$enable_largefile;
5754 if test "$enable_largefile" != no; then
5756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5757 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5758 if ${ac_cv_sys_largefile_CC+:} false; then :
5759 $as_echo_n "(cached) " >&6
5760 else
5761 ac_cv_sys_largefile_CC=no
5762 if test "$GCC" != yes; then
5763 ac_save_CC=$CC
5764 while :; do
5765 # IRIX 6.2 and later do not support large files by default,
5766 # so use the C compiler's -n32 option if that helps.
5767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5768 /* end confdefs.h. */
5769 #include <sys/types.h>
5770 /* Check that off_t can represent 2**63 - 1 correctly.
5771 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5772 since some C++ compilers masquerading as C compilers
5773 incorrectly reject 9223372036854775807. */
5774 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5775 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5776 && LARGE_OFF_T % 2147483647 == 1)
5777 ? 1 : -1];
5779 main ()
5783 return 0;
5785 _ACEOF
5786 if ac_fn_cxx_try_compile "$LINENO"; then :
5787 break
5789 rm -f core conftest.err conftest.$ac_objext
5790 CC="$CC -n32"
5791 if ac_fn_cxx_try_compile "$LINENO"; then :
5792 ac_cv_sys_largefile_CC=' -n32'; break
5794 rm -f core conftest.err conftest.$ac_objext
5795 break
5796 done
5797 CC=$ac_save_CC
5798 rm -f conftest.$ac_ext
5801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5802 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5803 if test "$ac_cv_sys_largefile_CC" != no; then
5804 CC=$CC$ac_cv_sys_largefile_CC
5807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5808 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5809 if ${ac_cv_sys_file_offset_bits+:} false; then :
5810 $as_echo_n "(cached) " >&6
5811 else
5812 while :; do
5813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5814 /* end confdefs.h. */
5815 #include <sys/types.h>
5816 /* Check that off_t can represent 2**63 - 1 correctly.
5817 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5818 since some C++ compilers masquerading as C compilers
5819 incorrectly reject 9223372036854775807. */
5820 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5821 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5822 && LARGE_OFF_T % 2147483647 == 1)
5823 ? 1 : -1];
5825 main ()
5829 return 0;
5831 _ACEOF
5832 if ac_fn_cxx_try_compile "$LINENO"; then :
5833 ac_cv_sys_file_offset_bits=no; break
5835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5837 /* end confdefs.h. */
5838 #define _FILE_OFFSET_BITS 64
5839 #include <sys/types.h>
5840 /* Check that off_t can represent 2**63 - 1 correctly.
5841 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5842 since some C++ compilers masquerading as C compilers
5843 incorrectly reject 9223372036854775807. */
5844 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5845 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5846 && LARGE_OFF_T % 2147483647 == 1)
5847 ? 1 : -1];
5849 main ()
5853 return 0;
5855 _ACEOF
5856 if ac_fn_cxx_try_compile "$LINENO"; then :
5857 ac_cv_sys_file_offset_bits=64; break
5859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5860 ac_cv_sys_file_offset_bits=unknown
5861 break
5862 done
5864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5865 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5866 case $ac_cv_sys_file_offset_bits in #(
5867 no | unknown) ;;
5869 cat >>confdefs.h <<_ACEOF
5870 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5871 _ACEOF
5873 esac
5874 rm -rf conftest*
5875 if test $ac_cv_sys_file_offset_bits = unknown; then
5876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5877 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5878 if ${ac_cv_sys_large_files+:} false; then :
5879 $as_echo_n "(cached) " >&6
5880 else
5881 while :; do
5882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5883 /* end confdefs.h. */
5884 #include <sys/types.h>
5885 /* Check that off_t can represent 2**63 - 1 correctly.
5886 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5887 since some C++ compilers masquerading as C compilers
5888 incorrectly reject 9223372036854775807. */
5889 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5890 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5891 && LARGE_OFF_T % 2147483647 == 1)
5892 ? 1 : -1];
5894 main ()
5898 return 0;
5900 _ACEOF
5901 if ac_fn_cxx_try_compile "$LINENO"; then :
5902 ac_cv_sys_large_files=no; break
5904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5906 /* end confdefs.h. */
5907 #define _LARGE_FILES 1
5908 #include <sys/types.h>
5909 /* Check that off_t can represent 2**63 - 1 correctly.
5910 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5911 since some C++ compilers masquerading as C compilers
5912 incorrectly reject 9223372036854775807. */
5913 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5914 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5915 && LARGE_OFF_T % 2147483647 == 1)
5916 ? 1 : -1];
5918 main ()
5922 return 0;
5924 _ACEOF
5925 if ac_fn_cxx_try_compile "$LINENO"; then :
5926 ac_cv_sys_large_files=1; break
5928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5929 ac_cv_sys_large_files=unknown
5930 break
5931 done
5933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5934 $as_echo "$ac_cv_sys_large_files" >&6; }
5935 case $ac_cv_sys_large_files in #(
5936 no | unknown) ;;
5938 cat >>confdefs.h <<_ACEOF
5939 #define _LARGE_FILES $ac_cv_sys_large_files
5940 _ACEOF
5942 esac
5943 rm -rf conftest*
5949 # The cast to long int works around a bug in the HP C Compiler
5950 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5951 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5952 # This bug is HP SR number 8606223364.
5953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ino_t" >&5
5954 $as_echo_n "checking size of ino_t... " >&6; }
5955 if ${ac_cv_sizeof_ino_t+:} false; then :
5956 $as_echo_n "(cached) " >&6
5957 else
5958 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (ino_t))" "ac_cv_sizeof_ino_t" "$ac_includes_default"; then :
5960 else
5961 if test "$ac_cv_type_ino_t" = yes; then
5962 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5963 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5964 as_fn_error 77 "cannot compute sizeof (ino_t)
5965 See \`config.log' for more details" "$LINENO" 5; }
5966 else
5967 ac_cv_sizeof_ino_t=0
5972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ino_t" >&5
5973 $as_echo "$ac_cv_sizeof_ino_t" >&6; }
5977 cat >>confdefs.h <<_ACEOF
5978 #define SIZEOF_INO_T $ac_cv_sizeof_ino_t
5979 _ACEOF
5982 # The cast to long int works around a bug in the HP C Compiler
5983 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5984 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5985 # This bug is HP SR number 8606223364.
5986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of dev_t" >&5
5987 $as_echo_n "checking size of dev_t... " >&6; }
5988 if ${ac_cv_sizeof_dev_t+:} false; then :
5989 $as_echo_n "(cached) " >&6
5990 else
5991 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (dev_t))" "ac_cv_sizeof_dev_t" "$ac_includes_default"; then :
5993 else
5994 if test "$ac_cv_type_dev_t" = yes; then
5995 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5996 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5997 as_fn_error 77 "cannot compute sizeof (dev_t)
5998 See \`config.log' for more details" "$LINENO" 5; }
5999 else
6000 ac_cv_sizeof_dev_t=0
6005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_dev_t" >&5
6006 $as_echo "$ac_cv_sizeof_dev_t" >&6; }
6010 cat >>confdefs.h <<_ACEOF
6011 #define SIZEOF_DEV_T $ac_cv_sizeof_dev_t
6012 _ACEOF
6016 # Select the right stat being able to handle 64bit inodes, if needed.
6017 if test "$enable_largefile" != no; then
6018 case "$host, $build" in
6019 *-*-aix*,*|*,*-*-aix*)
6020 if test "$ac_cv_sizeof_ino_t" == "4" -a "$ac_cv_sizeof_dev_t" == 4; then
6022 $as_echo "#define HOST_STAT_FOR_64BIT_INODES stat64x" >>confdefs.h
6024 fi;;
6025 esac
6029 # sizeof(char) is 1 by definition.
6030 # The cast to long int works around a bug in the HP C Compiler
6031 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6032 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6033 # This bug is HP SR number 8606223364.
6034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
6035 $as_echo_n "checking size of void *... " >&6; }
6036 if ${ac_cv_sizeof_void_p+:} false; then :
6037 $as_echo_n "(cached) " >&6
6038 else
6039 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
6041 else
6042 if test "$ac_cv_type_void_p" = yes; then
6043 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6044 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6045 as_fn_error 77 "cannot compute sizeof (void *)
6046 See \`config.log' for more details" "$LINENO" 5; }
6047 else
6048 ac_cv_sizeof_void_p=0
6053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
6054 $as_echo "$ac_cv_sizeof_void_p" >&6; }
6058 cat >>confdefs.h <<_ACEOF
6059 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
6060 _ACEOF
6063 # The cast to long int works around a bug in the HP C Compiler
6064 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6065 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6066 # This bug is HP SR number 8606223364.
6067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
6068 $as_echo_n "checking size of short... " >&6; }
6069 if ${ac_cv_sizeof_short+:} false; then :
6070 $as_echo_n "(cached) " >&6
6071 else
6072 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
6074 else
6075 if test "$ac_cv_type_short" = yes; then
6076 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6077 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6078 as_fn_error 77 "cannot compute sizeof (short)
6079 See \`config.log' for more details" "$LINENO" 5; }
6080 else
6081 ac_cv_sizeof_short=0
6086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
6087 $as_echo "$ac_cv_sizeof_short" >&6; }
6091 cat >>confdefs.h <<_ACEOF
6092 #define SIZEOF_SHORT $ac_cv_sizeof_short
6093 _ACEOF
6096 # The cast to long int works around a bug in the HP C Compiler
6097 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6098 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6099 # This bug is HP SR number 8606223364.
6100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
6101 $as_echo_n "checking size of int... " >&6; }
6102 if ${ac_cv_sizeof_int+:} false; then :
6103 $as_echo_n "(cached) " >&6
6104 else
6105 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
6107 else
6108 if test "$ac_cv_type_int" = yes; then
6109 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6110 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6111 as_fn_error 77 "cannot compute sizeof (int)
6112 See \`config.log' for more details" "$LINENO" 5; }
6113 else
6114 ac_cv_sizeof_int=0
6119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
6120 $as_echo "$ac_cv_sizeof_int" >&6; }
6124 cat >>confdefs.h <<_ACEOF
6125 #define SIZEOF_INT $ac_cv_sizeof_int
6126 _ACEOF
6129 # The cast to long int works around a bug in the HP C Compiler
6130 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6131 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6132 # This bug is HP SR number 8606223364.
6133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6134 $as_echo_n "checking size of long... " >&6; }
6135 if ${ac_cv_sizeof_long+:} false; then :
6136 $as_echo_n "(cached) " >&6
6137 else
6138 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
6140 else
6141 if test "$ac_cv_type_long" = yes; then
6142 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6143 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6144 as_fn_error 77 "cannot compute sizeof (long)
6145 See \`config.log' for more details" "$LINENO" 5; }
6146 else
6147 ac_cv_sizeof_long=0
6152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6153 $as_echo "$ac_cv_sizeof_long" >&6; }
6157 cat >>confdefs.h <<_ACEOF
6158 #define SIZEOF_LONG $ac_cv_sizeof_long
6159 _ACEOF
6162 ac_fn_cxx_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
6163 if test "x$ac_cv_type_long_long" = xyes; then :
6165 cat >>confdefs.h <<_ACEOF
6166 #define HAVE_LONG_LONG 1
6167 _ACEOF
6169 # The cast to long int works around a bug in the HP C Compiler
6170 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6171 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6172 # This bug is HP SR number 8606223364.
6173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
6174 $as_echo_n "checking size of long long... " >&6; }
6175 if ${ac_cv_sizeof_long_long+:} false; then :
6176 $as_echo_n "(cached) " >&6
6177 else
6178 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
6180 else
6181 if test "$ac_cv_type_long_long" = yes; then
6182 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6183 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6184 as_fn_error 77 "cannot compute sizeof (long long)
6185 See \`config.log' for more details" "$LINENO" 5; }
6186 else
6187 ac_cv_sizeof_long_long=0
6192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
6193 $as_echo "$ac_cv_sizeof_long_long" >&6; }
6197 cat >>confdefs.h <<_ACEOF
6198 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6199 _ACEOF
6204 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
6205 case $ac_cv_c_int8_t in #(
6206 no|yes) ;; #(
6209 cat >>confdefs.h <<_ACEOF
6210 #define int8_t $ac_cv_c_int8_t
6211 _ACEOF
6213 esac
6215 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
6216 case $ac_cv_c_int16_t in #(
6217 no|yes) ;; #(
6220 cat >>confdefs.h <<_ACEOF
6221 #define int16_t $ac_cv_c_int16_t
6222 _ACEOF
6224 esac
6226 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
6227 case $ac_cv_c_int32_t in #(
6228 no|yes) ;; #(
6231 cat >>confdefs.h <<_ACEOF
6232 #define int32_t $ac_cv_c_int32_t
6233 _ACEOF
6235 esac
6237 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
6238 case $ac_cv_c_int64_t in #(
6239 no|yes) ;; #(
6242 cat >>confdefs.h <<_ACEOF
6243 #define int64_t $ac_cv_c_int64_t
6244 _ACEOF
6246 esac
6249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6250 $as_echo_n "checking for unsigned long long int... " >&6; }
6251 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
6252 $as_echo_n "(cached) " >&6
6253 else
6254 ac_cv_type_unsigned_long_long_int=yes
6255 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
6256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6257 /* end confdefs.h. */
6259 /* For now, do not test the preprocessor; as of 2007 there are too many
6260 implementations with broken preprocessors. Perhaps this can
6261 be revisited in 2012. In the meantime, code should not expect
6262 #if to work with literals wider than 32 bits. */
6263 /* Test literals. */
6264 long long int ll = 9223372036854775807ll;
6265 long long int nll = -9223372036854775807LL;
6266 unsigned long long int ull = 18446744073709551615ULL;
6267 /* Test constant expressions. */
6268 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6269 ? 1 : -1)];
6270 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6271 ? 1 : -1)];
6272 int i = 63;
6274 main ()
6276 /* Test availability of runtime routines for shift and division. */
6277 long long int llmax = 9223372036854775807ll;
6278 unsigned long long int ullmax = 18446744073709551615ull;
6279 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6280 | (llmax / ll) | (llmax % ll)
6281 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6282 | (ullmax / ull) | (ullmax % ull));
6284 return 0;
6287 _ACEOF
6288 if ac_fn_cxx_try_link "$LINENO"; then :
6290 else
6291 ac_cv_type_unsigned_long_long_int=no
6293 rm -f core conftest.err conftest.$ac_objext \
6294 conftest$ac_exeext conftest.$ac_ext
6297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6298 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6299 if test $ac_cv_type_unsigned_long_long_int = yes; then
6301 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6308 $as_echo_n "checking for long long int... " >&6; }
6309 if ${ac_cv_type_long_long_int+:} false; then :
6310 $as_echo_n "(cached) " >&6
6311 else
6312 ac_cv_type_long_long_int=yes
6313 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
6314 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
6315 if test $ac_cv_type_long_long_int = yes; then
6316 if test "$cross_compiling" = yes; then :
6318 else
6319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6320 /* end confdefs.h. */
6321 #include <limits.h>
6322 #ifndef LLONG_MAX
6323 # define HALF \
6324 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6325 # define LLONG_MAX (HALF - 1 + HALF)
6326 #endif
6328 main ()
6330 long long int n = 1;
6331 int i;
6332 for (i = 0; ; i++)
6334 long long int m = n << i;
6335 if (m >> i != n)
6336 return 1;
6337 if (LLONG_MAX / 2 < m)
6338 break;
6340 return 0;
6342 return 0;
6344 _ACEOF
6345 if ac_fn_cxx_try_run "$LINENO"; then :
6347 else
6348 ac_cv_type_long_long_int=no
6350 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6351 conftest.$ac_objext conftest.beam conftest.$ac_ext
6357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6358 $as_echo "$ac_cv_type_long_long_int" >&6; }
6359 if test $ac_cv_type_long_long_int = yes; then
6361 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6367 ac_fn_cxx_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6368 if test "x$ac_cv_type_intmax_t" = xyes; then :
6370 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6372 else
6373 test $ac_cv_type_long_long_int = yes \
6374 && ac_type='long long int' \
6375 || ac_type='long int'
6377 cat >>confdefs.h <<_ACEOF
6378 #define intmax_t $ac_type
6379 _ACEOF
6385 ac_fn_cxx_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6386 if test "x$ac_cv_type_intptr_t" = xyes; then :
6388 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6390 else
6391 for ac_type in 'int' 'long int' 'long long int'; do
6392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6393 /* end confdefs.h. */
6394 $ac_includes_default
6396 main ()
6398 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6399 test_array [0] = 0;
6400 return test_array [0];
6403 return 0;
6405 _ACEOF
6406 if ac_fn_cxx_try_compile "$LINENO"; then :
6408 cat >>confdefs.h <<_ACEOF
6409 #define intptr_t $ac_type
6410 _ACEOF
6412 ac_type=
6414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6415 test -z "$ac_type" && break
6416 done
6420 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
6421 case $ac_cv_c_uint8_t in #(
6422 no|yes) ;; #(
6425 $as_echo "#define _UINT8_T 1" >>confdefs.h
6428 cat >>confdefs.h <<_ACEOF
6429 #define uint8_t $ac_cv_c_uint8_t
6430 _ACEOF
6432 esac
6434 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6435 case $ac_cv_c_uint16_t in #(
6436 no|yes) ;; #(
6440 cat >>confdefs.h <<_ACEOF
6441 #define uint16_t $ac_cv_c_uint16_t
6442 _ACEOF
6444 esac
6446 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6447 case $ac_cv_c_uint32_t in #(
6448 no|yes) ;; #(
6451 $as_echo "#define _UINT32_T 1" >>confdefs.h
6454 cat >>confdefs.h <<_ACEOF
6455 #define uint32_t $ac_cv_c_uint32_t
6456 _ACEOF
6458 esac
6460 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
6461 case $ac_cv_c_uint64_t in #(
6462 no|yes) ;; #(
6465 $as_echo "#define _UINT64_T 1" >>confdefs.h
6468 cat >>confdefs.h <<_ACEOF
6469 #define uint64_t $ac_cv_c_uint64_t
6470 _ACEOF
6472 esac
6476 ac_fn_cxx_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6477 if test "x$ac_cv_type_uintmax_t" = xyes; then :
6479 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6481 else
6482 test $ac_cv_type_unsigned_long_long_int = yes \
6483 && ac_type='unsigned long long int' \
6484 || ac_type='unsigned long int'
6486 cat >>confdefs.h <<_ACEOF
6487 #define uintmax_t $ac_type
6488 _ACEOF
6494 ac_fn_cxx_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6495 if test "x$ac_cv_type_uintptr_t" = xyes; then :
6497 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6499 else
6500 for ac_type in 'unsigned int' 'unsigned long int' \
6501 'unsigned long long int'; do
6502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6503 /* end confdefs.h. */
6504 $ac_includes_default
6506 main ()
6508 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6509 test_array [0] = 0;
6510 return test_array [0];
6513 return 0;
6515 _ACEOF
6516 if ac_fn_cxx_try_compile "$LINENO"; then :
6518 cat >>confdefs.h <<_ACEOF
6519 #define uintptr_t $ac_type
6520 _ACEOF
6522 ac_type=
6524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6525 test -z "$ac_type" && break
6526 done
6542 if test x"$ac_cv_c_uint64_t" = x"no" -o x"$ac_cv_c_int64_t" = x"no"; then
6543 as_fn_error $? "uint64_t or int64_t not found" "$LINENO" 5
6546 # check what underlying integer type int64_t uses
6547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t underlying type" >&5
6548 $as_echo_n "checking for int64_t underlying type... " >&6; }
6549 if ${ac_cv_int64_t_type+:} false; then :
6550 $as_echo_n "(cached) " >&6
6551 else
6553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6554 /* end confdefs.h. */
6556 #ifdef HAVE_STDINT_H
6557 #include <stdint.h>
6558 #endif
6559 template <typename T> struct X { };
6560 template <>
6561 struct X<long> { typedef long t; };
6564 main ()
6566 X<int64_t>::t x;
6568 return 0;
6570 _ACEOF
6571 if ac_fn_cxx_try_compile "$LINENO"; then :
6572 ac_cv_int64_t_type=long
6573 else
6574 ac_cv_int64_t_type="long long"
6576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_int64_t_type" >&5
6579 $as_echo "$ac_cv_int64_t_type" >&6; }
6580 if test "$ac_cv_int64_t_type" = "long"; then
6582 $as_echo "#define INT64_T_IS_LONG 1" >>confdefs.h
6584 else
6585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6586 /* end confdefs.h. */
6588 #ifdef HAVE_STDINT_H
6589 #include <stdint.h>
6590 #endif
6591 template <typename T> struct X { };
6592 template <>
6593 struct X<long long> { typedef long long t; };
6596 main ()
6598 X<int64_t>::t x;
6600 return 0;
6602 _ACEOF
6603 if ac_fn_cxx_try_compile "$LINENO"; then :
6605 else
6606 as_fn_error $? "error verifying int64_t uses long long" "$LINENO" 5
6608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::swap in <utility>" >&5
6612 $as_echo_n "checking for std::swap in <utility>... " >&6; }
6613 if ${ac_cv_std_swap_in_utility+:} false; then :
6614 $as_echo_n "(cached) " >&6
6615 else
6617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6618 /* end confdefs.h. */
6620 #include <utility>
6623 main ()
6625 int a, b; std::swap(a,b);
6627 return 0;
6629 _ACEOF
6630 if ac_fn_cxx_try_compile "$LINENO"; then :
6631 ac_cv_std_swap_in_utility=yes
6632 else
6633 ac_cv_std_swap_in_utility=no
6635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_std_swap_in_utility" >&5
6638 $as_echo "$ac_cv_std_swap_in_utility" >&6; }
6639 if test $ac_cv_std_swap_in_utility = yes; then
6641 $as_echo "#define HAVE_SWAP_IN_UTILITY 1" >>confdefs.h
6645 # Check whether compiler is affected by placement new aliasing bug (PR 29286).
6646 # If the host compiler is affected by the bug, and we build with optimization
6647 # enabled (which happens e.g. when cross-compiling), the pool allocator may
6648 # get miscompiled. Use -fno-strict-aliasing to work around this problem.
6649 # Since there is no reliable feature check for the presence of this bug,
6650 # we simply use a GCC version number check. (This should never trigger for
6651 # stages 2 or 3 of a native bootstrap.)
6652 aliasing_flags=
6653 if test "$GCC" = yes; then
6654 saved_CXXFLAGS="$CXXFLAGS"
6656 # The following test compilation will succeed if and only if $CXX accepts
6657 # -fno-strict-aliasing *and* is older than GCC 4.3.
6658 CXXFLAGS="$CXXFLAGS -fno-strict-aliasing"
6659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX is affected by placement new aliasing bug" >&5
6660 $as_echo_n "checking whether $CXX is affected by placement new aliasing bug... " >&6; }
6661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6662 /* end confdefs.h. */
6664 #if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3)
6665 #error compiler not affected by placement new aliasing bug
6666 #endif
6668 _ACEOF
6669 if ac_fn_cxx_try_compile "$LINENO"; then :
6670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6671 $as_echo "yes" >&6; }; aliasing_flags='-fno-strict-aliasing'
6672 else
6673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6674 $as_echo "no" >&6; }
6676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6678 CXXFLAGS="$saved_CXXFLAGS"
6684 # ---------------------
6685 # Warnings and checking
6686 # ---------------------
6688 # Check $CC warning features (if it's GCC).
6689 # We want to use -pedantic, but we don't want warnings about
6690 # * 'long long'
6691 # * variadic macros
6692 # * overlong strings
6693 # * C++11 narrowing conversions in { }
6694 # So, we only use -pedantic if we can disable those warnings.
6696 # In stage 1, disable -Wformat warnings from old GCCs about new % codes
6697 # Check whether --enable-build-format-warnings was given.
6698 if test "${enable_build_format_warnings+set}" = set; then :
6699 enableval=$enable_build_format_warnings;
6700 else
6701 enable_build_format_warnings=yes
6704 if test $enable_build_format_warnings = no; then :
6705 wf_opt=-Wno-format
6706 else
6707 wf_opt=
6709 ac_ext=cpp
6710 ac_cpp='$CXXCPP $CPPFLAGS'
6711 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6712 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6713 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6715 loose_warn=
6716 save_CXXFLAGS="$CXXFLAGS"
6717 for real_option in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual $wf_opt; do
6718 # Do the check with the no- prefix removed since gcc silently
6719 # accepts any -Wno-* option on purpose
6720 case $real_option in
6721 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6722 *) option=$real_option ;;
6723 esac
6724 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6727 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6728 if eval \${$as_acx_Woption+:} false; then :
6729 $as_echo_n "(cached) " >&6
6730 else
6731 CXXFLAGS="$option"
6732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6733 /* end confdefs.h. */
6736 main ()
6740 return 0;
6742 _ACEOF
6743 if ac_fn_cxx_try_compile "$LINENO"; then :
6744 eval "$as_acx_Woption=yes"
6745 else
6746 eval "$as_acx_Woption=no"
6748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6751 eval ac_res=\$$as_acx_Woption
6752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6753 $as_echo "$ac_res" >&6; }
6754 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6755 loose_warn="$loose_warn${loose_warn:+ }$real_option"
6757 done
6758 CXXFLAGS="$save_CXXFLAGS"
6759 ac_ext=cpp
6760 ac_cpp='$CXXCPP $CPPFLAGS'
6761 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6762 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6763 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6767 ac_ext=c
6768 ac_cpp='$CPP $CPPFLAGS'
6769 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6770 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6771 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6773 c_loose_warn=
6774 save_CFLAGS="$CFLAGS"
6775 for real_option in -Wstrict-prototypes -Wmissing-prototypes ; do
6776 # Do the check with the no- prefix removed since gcc silently
6777 # accepts any -Wno-* option on purpose
6778 case $real_option in
6779 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6780 *) option=$real_option ;;
6781 esac
6782 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6785 $as_echo_n "checking whether $CC supports $option... " >&6; }
6786 if eval \${$as_acx_Woption+:} false; then :
6787 $as_echo_n "(cached) " >&6
6788 else
6789 CFLAGS="$option"
6790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6791 /* end confdefs.h. */
6794 main ()
6798 return 0;
6800 _ACEOF
6801 if ac_fn_c_try_compile "$LINENO"; then :
6802 eval "$as_acx_Woption=yes"
6803 else
6804 eval "$as_acx_Woption=no"
6806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6809 eval ac_res=\$$as_acx_Woption
6810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6811 $as_echo "$ac_res" >&6; }
6812 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6813 c_loose_warn="$c_loose_warn${c_loose_warn:+ }$real_option"
6815 done
6816 CFLAGS="$save_CFLAGS"
6817 ac_ext=cpp
6818 ac_cpp='$CXXCPP $CPPFLAGS'
6819 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6820 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6821 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6824 ac_ext=cpp
6825 ac_cpp='$CXXCPP $CPPFLAGS'
6826 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6827 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6828 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6830 strict_warn=
6831 save_CXXFLAGS="$CXXFLAGS"
6832 for real_option in -Wmissing-format-attribute -Woverloaded-virtual; do
6833 # Do the check with the no- prefix removed since gcc silently
6834 # accepts any -Wno-* option on purpose
6835 case $real_option in
6836 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6837 *) option=$real_option ;;
6838 esac
6839 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6842 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6843 if eval \${$as_acx_Woption+:} false; then :
6844 $as_echo_n "(cached) " >&6
6845 else
6846 CXXFLAGS="$option"
6847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6848 /* end confdefs.h. */
6851 main ()
6855 return 0;
6857 _ACEOF
6858 if ac_fn_cxx_try_compile "$LINENO"; then :
6859 eval "$as_acx_Woption=yes"
6860 else
6861 eval "$as_acx_Woption=no"
6863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6866 eval ac_res=\$$as_acx_Woption
6867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6868 $as_echo "$ac_res" >&6; }
6869 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6870 strict_warn="$strict_warn${strict_warn:+ }$real_option"
6872 done
6873 CXXFLAGS="$save_CXXFLAGS"
6874 ac_ext=cpp
6875 ac_cpp='$CXXCPP $CPPFLAGS'
6876 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6877 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6878 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6881 ac_ext=c
6882 ac_cpp='$CPP $CPPFLAGS'
6883 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6884 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6885 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6887 c_strict_warn=
6888 save_CFLAGS="$CFLAGS"
6889 for real_option in -Wold-style-definition -Wc++-compat; do
6890 # Do the check with the no- prefix removed since gcc silently
6891 # accepts any -Wno-* option on purpose
6892 case $real_option in
6893 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6894 *) option=$real_option ;;
6895 esac
6896 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6899 $as_echo_n "checking whether $CC supports $option... " >&6; }
6900 if eval \${$as_acx_Woption+:} false; then :
6901 $as_echo_n "(cached) " >&6
6902 else
6903 CFLAGS="$option"
6904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6905 /* end confdefs.h. */
6908 main ()
6912 return 0;
6914 _ACEOF
6915 if ac_fn_c_try_compile "$LINENO"; then :
6916 eval "$as_acx_Woption=yes"
6917 else
6918 eval "$as_acx_Woption=no"
6920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6923 eval ac_res=\$$as_acx_Woption
6924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6925 $as_echo "$ac_res" >&6; }
6926 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6927 c_strict_warn="$c_strict_warn${c_strict_warn:+ }$real_option"
6929 done
6930 CFLAGS="$save_CFLAGS"
6931 ac_ext=cpp
6932 ac_cpp='$CXXCPP $CPPFLAGS'
6933 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6934 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6935 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6938 ac_ext=cpp
6939 ac_cpp='$CXXCPP $CPPFLAGS'
6940 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6941 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6942 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6944 # Do the check with the no- prefix removed from the warning options
6945 # since gcc silently accepts any -Wno-* option on purpose
6946 if test "$GXX" = yes; then :
6947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
6948 $as_echo_n "checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
6949 if ${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+:} false; then :
6950 $as_echo_n "(cached) " >&6
6951 else
6952 save_CXXFLAGS="$CXXFLAGS"
6953 CXXFLAGS="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
6954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6955 /* end confdefs.h. */
6958 main ()
6962 return 0;
6964 _ACEOF
6965 if ac_fn_cxx_try_compile "$LINENO"; then :
6966 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=yes
6967 else
6968 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=no
6970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6971 CXXFLAGS="$save_CXXFLAGS"
6973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
6974 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
6975 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
6976 strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6980 ac_ext=cpp
6981 ac_cpp='$CXXCPP $CPPFLAGS'
6982 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6983 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6984 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6987 ac_ext=cpp
6988 ac_cpp='$CXXCPP $CPPFLAGS'
6989 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6990 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6991 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6993 # Check whether --enable-werror-always was given.
6994 if test "${enable_werror_always+set}" = set; then :
6995 enableval=$enable_werror_always;
6996 else
6997 enable_werror_always=no
7000 if test $enable_werror_always = yes; then :
7001 strict_warn="$strict_warn${strict_warn:+ }-Werror"
7004 ac_ext=cpp
7005 ac_cpp='$CXXCPP $CPPFLAGS'
7006 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7007 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7008 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7012 # The above macros do nothing if the compiler is not GCC. However, the
7013 # Makefile has more goo to add other flags, so these variables are used
7014 # to enable warnings only for GCC.
7015 warn_cflags=
7016 warn_cxxflags=
7017 if test "x$GCC" = "xyes"; then
7018 warn_cflags='$(GCC_WARN_CFLAGS)'
7019 warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
7024 # Disable exceptions and RTTI if building with g++
7025 ac_ext=c
7026 ac_cpp='$CPP $CPPFLAGS'
7027 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7028 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7029 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7031 noexception_flags=
7032 save_CFLAGS="$CFLAGS"
7033 for real_option in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
7034 # Do the check with the no- prefix removed since gcc silently
7035 # accepts any -Wno-* option on purpose
7036 case $real_option in
7037 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7038 *) option=$real_option ;;
7039 esac
7040 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
7043 $as_echo_n "checking whether $CC supports $option... " >&6; }
7044 if eval \${$as_acx_Woption+:} false; then :
7045 $as_echo_n "(cached) " >&6
7046 else
7047 CFLAGS="$option"
7048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7049 /* end confdefs.h. */
7052 main ()
7056 return 0;
7058 _ACEOF
7059 if ac_fn_c_try_compile "$LINENO"; then :
7060 eval "$as_acx_Woption=yes"
7061 else
7062 eval "$as_acx_Woption=no"
7064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7067 eval ac_res=\$$as_acx_Woption
7068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7069 $as_echo "$ac_res" >&6; }
7070 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7071 noexception_flags="$noexception_flags${noexception_flags:+ }$real_option"
7073 done
7074 CFLAGS="$save_CFLAGS"
7075 ac_ext=cpp
7076 ac_cpp='$CXXCPP $CPPFLAGS'
7077 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7078 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7079 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7083 # Enable expensive internal checks
7084 is_release=
7085 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
7086 is_release=yes
7089 # Check whether --enable-checking was given.
7090 if test "${enable_checking+set}" = set; then :
7091 enableval=$enable_checking; ac_checking_flags="${enableval}"
7092 else
7094 # Determine the default checks.
7095 if test x$is_release = x ; then
7096 ac_checking_flags=yes,extra
7097 else
7098 ac_checking_flags=release
7102 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
7103 for check in release $ac_checking_flags
7105 case $check in
7106 # these set all the flags to specific states
7107 yes) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
7108 ac_fold_checking= ; ac_gc_checking=1 ; ac_extra_checking= ;
7109 ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
7110 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7111 ac_tree_checking=1 ; ac_valgrind_checking= ;
7112 ac_types_checking=1 ;;
7113 no|none) ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
7114 ac_fold_checking= ; ac_gc_checking= ; ac_extra_checking= ;
7115 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
7116 ac_rtlflag_checking= ; ac_runtime_checking= ;
7117 ac_tree_checking= ; ac_valgrind_checking= ;
7118 ac_types_checking= ;;
7119 all) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
7120 ac_fold_checking=1 ; ac_gc_checking=1 ; ac_extra_checking=1 ;
7121 ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
7122 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7123 ac_tree_checking=1 ; ac_valgrind_checking= ;
7124 ac_types_checking=1 ;;
7125 release) ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
7126 ac_fold_checking= ; ac_gc_checking= ; ac_extra_checking= ;
7127 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
7128 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
7129 ac_tree_checking= ; ac_valgrind_checking= ;
7130 ac_types_checking= ;;
7131 # these enable particular checks
7132 assert) ac_assert_checking=1 ;;
7133 df) ac_df_checking=1 ;;
7134 extra) ac_extra_checking=1 ;;
7135 fold) ac_fold_checking=1 ;;
7136 gc) ac_gc_checking=1 ;;
7137 gcac) ac_gc_always_collect=1 ;;
7138 gimple) ac_gimple_checking=1 ;;
7139 misc) ac_checking=1 ;;
7140 rtl) ac_rtl_checking=1 ;;
7141 rtlflag) ac_rtlflag_checking=1 ;;
7142 runtime) ac_runtime_checking=1 ;;
7143 tree) ac_tree_checking=1 ;;
7144 types) ac_types_checking=1 ;;
7145 valgrind) ac_valgrind_checking=1 ;;
7146 *) as_fn_error $? "unknown check category $check" "$LINENO" 5 ;;
7147 esac
7148 done
7149 IFS="$ac_save_IFS"
7151 nocommon_flag=""
7152 if test x$ac_checking != x ; then
7154 $as_echo "#define CHECKING_P 1" >>confdefs.h
7156 nocommon_flag=-fno-common
7157 else
7158 $as_echo "#define CHECKING_P 0" >>confdefs.h
7162 if test x$ac_extra_checking != x ; then
7164 $as_echo "#define ENABLE_EXTRA_CHECKING 1" >>confdefs.h
7166 else
7167 $as_echo "#define ENABLE_EXTRA_CHECKING 0" >>confdefs.h
7170 if test x$ac_df_checking != x ; then
7172 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
7175 if test x$ac_assert_checking != x ; then
7177 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
7180 if test x$ac_gimple_checking != x ; then
7182 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
7186 if test x$ac_runtime_checking != x ; then
7188 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
7191 if test x$ac_tree_checking != x ; then
7193 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
7195 TREECHECKING=yes
7197 if test x$ac_types_checking != x ; then
7199 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
7203 if test x$ac_rtl_checking != x ; then
7205 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
7208 if test x$ac_rtlflag_checking != x ; then
7210 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
7213 if test x$ac_gc_checking != x ; then
7215 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
7218 if test x$ac_gc_always_collect != x ; then
7220 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
7223 if test x$ac_fold_checking != x ; then
7225 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
7228 valgrind_path_defines=
7229 valgrind_command=
7231 ac_fn_cxx_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
7232 if test "x$ac_cv_header_valgrind_h" = xyes; then :
7233 have_valgrind_h=yes
7234 else
7235 have_valgrind_h=no
7240 # It is certainly possible that there's valgrind but no valgrind.h.
7241 # GCC relies on making annotations so we must have both.
7242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
7243 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
7244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7245 /* end confdefs.h. */
7246 #include <valgrind/memcheck.h>
7247 #ifndef VALGRIND_DISCARD
7248 #error VALGRIND_DISCARD not defined
7249 #endif
7250 _ACEOF
7251 if ac_fn_cxx_try_cpp "$LINENO"; then :
7252 gcc_cv_header_valgrind_memcheck_h=yes
7253 else
7254 gcc_cv_header_valgrind_memcheck_h=no
7256 rm -f conftest.err conftest.i conftest.$ac_ext
7257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
7258 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
7259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
7260 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
7261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7262 /* end confdefs.h. */
7263 #include <memcheck.h>
7264 #ifndef VALGRIND_DISCARD
7265 #error VALGRIND_DISCARD not defined
7266 #endif
7267 _ACEOF
7268 if ac_fn_cxx_try_cpp "$LINENO"; then :
7269 gcc_cv_header_memcheck_h=yes
7270 else
7271 gcc_cv_header_memcheck_h=no
7273 rm -f conftest.err conftest.i conftest.$ac_ext
7274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
7275 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
7276 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
7278 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
7281 if test $gcc_cv_header_memcheck_h = yes; then
7283 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
7287 if test x$ac_valgrind_checking != x ; then
7289 # Prepare PATH_SEPARATOR.
7290 # The user is always right.
7291 if test "${PATH_SEPARATOR+set}" != set; then
7292 echo "#! /bin/sh" >conf$$.sh
7293 echo "exit 0" >>conf$$.sh
7294 chmod +x conf$$.sh
7295 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7296 PATH_SEPARATOR=';'
7297 else
7298 PATH_SEPARATOR=:
7300 rm -f conf$$.sh
7303 # Find out how to test for executable files. Don't use a zero-byte file,
7304 # as systems may use methods other than mode bits to determine executability.
7305 cat >conf$$.file <<_ASEOF
7306 #! /bin/sh
7307 exit 0
7308 _ASEOF
7309 chmod +x conf$$.file
7310 if test -x conf$$.file >/dev/null 2>&1; then
7311 ac_executable_p="test -x"
7312 else
7313 ac_executable_p="test -f"
7315 rm -f conf$$.file
7317 # Extract the first word of "valgrind", so it can be a program name with args.
7318 set dummy valgrind; ac_word=$2
7319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7320 $as_echo_n "checking for $ac_word... " >&6; }
7321 if ${ac_cv_path_valgrind_path+:} false; then :
7322 $as_echo_n "(cached) " >&6
7323 else
7324 case "$valgrind_path" in
7325 [\\/]* | ?:[\\/]*)
7326 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
7329 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7330 for ac_dir in $PATH; do
7331 IFS="$ac_save_IFS"
7332 test -z "$ac_dir" && ac_dir=.
7333 for ac_exec_ext in '' $ac_executable_extensions; do
7334 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7335 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
7336 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
7337 break 2
7340 done
7341 done
7342 IFS="$ac_save_IFS"
7344 esac
7346 valgrind_path="$ac_cv_path_valgrind_path"
7347 if test -n "$valgrind_path"; then
7348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
7349 $as_echo "$valgrind_path" >&6; }
7350 else
7351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7352 $as_echo "no" >&6; }
7355 if test "x$valgrind_path" = "x" \
7356 || (test $have_valgrind_h = no \
7357 && test $gcc_cv_header_memcheck_h = no \
7358 && test $gcc_cv_header_valgrind_memcheck_h = no); then
7359 as_fn_error $? "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7361 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
7362 valgrind_command="$valgrind_path -q"
7364 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
7370 # Enable code coverage collection
7371 # Check whether --enable-coverage was given.
7372 if test "${enable_coverage+set}" = set; then :
7373 enableval=$enable_coverage; case "${enableval}" in
7374 yes|noopt)
7375 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0 -fkeep-static-functions"
7377 opt)
7378 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2 -fkeep-static-functions"
7381 # a.k.a. --disable-coverage
7382 coverage_flags=""
7385 as_fn_error $? "unknown coverage setting $enableval" "$LINENO" 5
7387 esac
7388 else
7389 coverage_flags=""
7394 # Check whether --enable-gather-detailed-mem-stats was given.
7395 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
7396 enableval=$enable_gather_detailed_mem_stats;
7397 else
7398 enable_gather_detailed_mem_stats=no
7401 gather_stats=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
7403 cat >>confdefs.h <<_ACEOF
7404 #define GATHER_STATISTICS $gather_stats
7405 _ACEOF
7408 # Check whether --enable-valgrind-annotations was given.
7409 if test "${enable_valgrind_annotations+set}" = set; then :
7410 enableval=$enable_valgrind_annotations;
7411 else
7412 enable_valgrind_annotations=no
7415 if test x$enable_valgrind_annotations != xno \
7416 || test x$ac_valgrind_checking != x; then
7417 if (test $have_valgrind_h = no \
7418 && test $gcc_cv_header_memcheck_h = no \
7419 && test $gcc_cv_header_valgrind_memcheck_h = no); then
7420 as_fn_error $? "*** Can't find valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7423 $as_echo "#define ENABLE_VALGRIND_ANNOTATIONS 1" >>confdefs.h
7427 # -------------------------------
7428 # Miscenalleous configure options
7429 # -------------------------------
7431 # Determine whether or not multilibs are enabled.
7432 # Check whether --enable-multilib was given.
7433 if test "${enable_multilib+set}" = set; then :
7434 enableval=$enable_multilib;
7435 else
7436 enable_multilib=yes
7441 # Determine whether or not multiarch is enabled.
7442 # Check whether --enable-multiarch was given.
7443 if test "${enable_multiarch+set}" = set; then :
7444 enableval=$enable_multiarch; case "${enableval}" in
7445 yes|no|auto) enable_multiarch=$enableval;;
7446 *) as_fn_error $? "bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
7447 esac
7448 else
7449 enable_multiarch=auto
7452 if test x${enable_multiarch} = xauto; then
7453 if test x${with_native_system_header_dir} != x; then
7454 ma_msg_suffix=", disabled auto check (configured with --native-system-header-dir)"
7455 enable_multiarch=no
7457 if test x$host != x$target && test "x$with_sysroot" = x; then
7458 ma_msg_suffix=", disabled auto check (cross build configured without --with-sysroot)"
7459 enable_multiarch=no
7462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
7463 $as_echo_n "checking for multiarch configuration... " >&6; }
7465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
7466 $as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
7468 # needed for setting the multiarch name for soft-float/hard-float ABIs
7472 # default stack clash protection guard size as power of twos in bytes.
7473 # Please keep these in sync with params.def.
7474 stk_clash_min=12
7475 stk_clash_max=30
7477 # Keep the default value when the option is not used to 0, this allows us to
7478 # distinguish between the cases where the user specifially set a value via
7479 # configure and when the normal default value is used.
7481 # Check whether --with-stack-clash-protection-guard-size was given.
7482 if test "${with_stack_clash_protection_guard_size+set}" = set; then :
7483 withval=$with_stack_clash_protection_guard_size; DEFAULT_STK_CLASH_GUARD_SIZE="$with_stack_clash_protection_guard_size"
7484 else
7485 DEFAULT_STK_CLASH_GUARD_SIZE=0
7488 if test $DEFAULT_STK_CLASH_GUARD_SIZE -ne 0 \
7489 && (test $DEFAULT_STK_CLASH_GUARD_SIZE -lt $stk_clash_min \
7490 || test $DEFAULT_STK_CLASH_GUARD_SIZE -gt $stk_clash_max); then
7491 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
7495 cat >>confdefs.h <<_ACEOF
7496 #define DEFAULT_STK_CLASH_GUARD_SIZE $DEFAULT_STK_CLASH_GUARD_SIZE
7497 _ACEOF
7500 # Enable __cxa_atexit for C++.
7501 # Check whether --enable-__cxa_atexit was given.
7502 if test "${enable___cxa_atexit+set}" = set; then :
7503 enableval=$enable___cxa_atexit;
7507 # Enable C extension for decimal float if target supports it.
7509 # Check whether --enable-decimal-float was given.
7510 if test "${enable_decimal_float+set}" = set; then :
7511 enableval=$enable_decimal_float;
7512 case $enable_decimal_float in
7513 yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
7514 *) as_fn_error $? "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7515 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7516 esac
7518 else
7520 case $target in
7521 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
7522 i?86*-*-elfiamcu | i?86*-*-gnu* | x86_64*-*-gnu* | \
7523 i?86*-*-mingw* | x86_64*-*-mingw* | \
7524 i?86*-*-cygwin* | x86_64*-*-cygwin*)
7525 enable_decimal_float=yes
7528 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7529 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7530 enable_decimal_float=no
7532 esac
7537 # x86's use BID format instead of DPD
7538 case x$enable_decimal_float in
7539 xyes)
7540 case $target in
7541 i?86*-*-* | x86_64*-*-*)
7542 enable_decimal_float=bid
7545 enable_decimal_float=dpd
7547 esac
7548 default_decimal_float=$enable_decimal_float
7550 xno)
7551 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7552 # dependency on libdecnumber.
7553 default_decimal_float=dpd
7555 esac
7560 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7562 cat >>confdefs.h <<_ACEOF
7563 #define ENABLE_DECIMAL_FLOAT $dfp
7564 _ACEOF
7567 # Use default_decimal_float for dependency.
7568 enable_decimal_float=$default_decimal_float
7570 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7572 cat >>confdefs.h <<_ACEOF
7573 #define ENABLE_DECIMAL_BID_FORMAT $bid
7574 _ACEOF
7577 # Enable C extension for fixed-point arithmetic.
7578 # Check whether --enable-fixed-point was given.
7579 if test "${enable_fixed_point+set}" = set; then :
7580 enableval=$enable_fixed_point;
7581 else
7583 case $target in
7584 arm*)
7585 enable_fixed_point=yes
7588 mips*-*-*)
7589 enable_fixed_point=yes
7591 loongarch*-*-*)
7592 enable_fixed_point=yes
7595 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7596 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7597 enable_fixed_point=no
7599 esac
7605 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7607 cat >>confdefs.h <<_ACEOF
7608 #define ENABLE_FIXED_POINT $fixedpoint
7609 _ACEOF
7612 # Enable threads
7613 # Pass with no value to take the default
7614 # Pass with a value to specify a thread package
7615 # Check whether --enable-threads was given.
7616 if test "${enable_threads+set}" = set; then :
7617 enableval=$enable_threads;
7618 else
7619 enable_threads=''
7623 # Check whether --enable-tls was given.
7624 if test "${enable_tls+set}" = set; then :
7625 enableval=$enable_tls;
7626 case $enable_tls in
7627 yes | no) ;;
7628 *) as_fn_error $? "'$enable_tls' is an invalid value for --enable-tls.
7629 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7630 esac
7632 else
7633 enable_tls=''
7637 # Check whether --enable-vtable-verify was given.
7638 if test "${enable_vtable_verify+set}" = set; then :
7639 enableval=$enable_vtable_verify;
7640 else
7641 enable_vtable_verify=no
7644 vtable_verify=`if test x$enable_vtable_verify = xyes; then echo 1; else echo 0; fi`
7646 cat >>confdefs.h <<_ACEOF
7647 #define ENABLE_VTABLE_VERIFY $vtable_verify
7648 _ACEOF
7651 # Check whether --enable-analyzer was given.
7652 if test "${enable_analyzer+set}" = set; then :
7653 enableval=$enable_analyzer; if test x$enable_analyzer = xno; then
7654 analyzer=0
7655 else
7656 analyzer=1
7658 else
7659 analyzer=1
7663 cat >>confdefs.h <<_ACEOF
7664 #define ENABLE_ANALYZER $analyzer
7665 _ACEOF
7668 # Check whether --enable-objc-gc was given.
7669 if test "${enable_objc_gc+set}" = set; then :
7670 enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
7671 objc_boehm_gc=''
7672 else
7673 objc_boehm_gc=1
7675 else
7676 objc_boehm_gc=''
7681 # Check whether --with-dwarf2 was given.
7682 if test "${with_dwarf2+set}" = set; then :
7683 withval=$with_dwarf2; dwarf2="$with_dwarf2"
7684 else
7685 dwarf2=no
7689 # Check whether --enable-shared was given.
7690 if test "${enable_shared+set}" = set; then :
7691 enableval=$enable_shared;
7692 case $enable_shared in
7693 yes | no) ;;
7695 enable_shared=no
7696 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7697 for pkg in $enableval; do
7698 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7699 enable_shared=yes
7701 done
7702 IFS="$ac_save_ifs"
7704 esac
7706 else
7707 enable_shared=yes
7712 # Check whether --enable-gcov was given.
7713 if test "${enable_gcov+set}" = set; then :
7714 enableval=$enable_gcov;
7715 else
7716 case $target in
7717 bpf-*-*)
7718 enable_gcov=no
7721 enable_gcov=yes
7723 esac
7730 # Check whether --with-specs was given.
7731 if test "${with_specs+set}" = set; then :
7732 withval=$with_specs; CONFIGURE_SPECS=$withval
7733 else
7734 CONFIGURE_SPECS=
7742 # Check whether --with-pkgversion was given.
7743 if test "${with_pkgversion+set}" = set; then :
7744 withval=$with_pkgversion; case "$withval" in
7745 yes) as_fn_error $? "package version not specified" "$LINENO" 5 ;;
7746 no) PKGVERSION= ;;
7747 *) PKGVERSION="($withval) " ;;
7748 esac
7749 else
7750 PKGVERSION="(GCC) "
7758 # Check whether --with-bugurl was given.
7759 if test "${with_bugurl+set}" = set; then :
7760 withval=$with_bugurl; case "$withval" in
7761 yes) as_fn_error $? "bug URL not specified" "$LINENO" 5 ;;
7762 no) BUGURL=
7764 *) BUGURL="$withval"
7766 esac
7767 else
7768 BUGURL="http://sourceforge.net/tracker/?atid=100599&group_id=599&func=browse"
7772 case ${BUGURL} in
7774 REPORT_BUGS_TO=
7775 REPORT_BUGS_TEXI=
7778 REPORT_BUGS_TO="<$BUGURL>"
7779 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
7781 esac;
7786 # Allow overriding the default URL for documentation
7788 # Check whether --with-documentation-root-url was given.
7789 if test "${with_documentation_root_url+set}" = set; then :
7790 withval=$with_documentation_root_url; case "$withval" in
7791 yes) as_fn_error $? "documentation root URL not specified" "$LINENO" 5 ;;
7792 no) as_fn_error $? "documentation root URL not specified" "$LINENO" 5 ;;
7793 */) DOCUMENTATION_ROOT_URL="$withval" ;;
7794 *) as_fn_error $? "documentation root URL does not end with /" "$LINENO" 5 ;;
7795 esac
7796 else
7797 DOCUMENTATION_ROOT_URL="https://gcc.gnu.org/onlinedocs/"
7802 cat >>confdefs.h <<_ACEOF
7803 #define DOCUMENTATION_ROOT_URL "$DOCUMENTATION_ROOT_URL"
7804 _ACEOF
7807 # Allow overriding the default URL for GCC changes
7809 # Check whether --with-changes-root-url was given.
7810 if test "${with_changes_root_url+set}" = set; then :
7811 withval=$with_changes_root_url; case "$withval" in
7812 yes) as_fn_error $? "changes root URL not specified" "$LINENO" 5 ;;
7813 no) as_fn_error $? "changes root URL not specified" "$LINENO" 5 ;;
7814 */) CHANGES_ROOT_URL="$withval" ;;
7815 *) as_fn_error $? "changes root URL does not end with /" "$LINENO" 5 ;;
7816 esac
7817 else
7818 CHANGES_ROOT_URL="https://gcc.gnu.org/"
7823 cat >>confdefs.h <<_ACEOF
7824 #define CHANGES_ROOT_URL "$CHANGES_ROOT_URL"
7825 _ACEOF
7828 # Sanity check enable_languages in case someone does not run the toplevel
7829 # configure # script.
7830 # Check whether --enable-languages was given.
7831 if test "${enable_languages+set}" = set; then :
7832 enableval=$enable_languages; case ,${enable_languages}, in
7833 ,,|,yes,)
7834 # go safe -- we cannot be much sure without the toplevel
7835 # configure's
7836 # analysis of which target libs are present and usable
7837 enable_languages=c
7839 *,all,*)
7840 as_fn_error $? "only the toplevel supports --enable-languages=all" "$LINENO" 5
7842 *,c,*)
7845 enable_languages=c,${enable_languages}
7847 esac
7848 else
7849 enable_languages=c
7853 # If top-level libada has been disabled, then wire in install-gnatlib
7854 # invocation with `make install', so that one can build and install
7855 # the library manually with `make -C gcc all gnatlib gnattools install'.
7856 if test x"$enable_libada" = xno; then
7857 gnat_install_lib=gnat-install-lib
7858 else
7859 gnat_install_lib=
7863 if test x"$enable_as_accelerator_for" != x; then
7865 $as_echo "#define ACCEL_COMPILER 1" >>confdefs.h
7867 enable_as_accelerator=yes
7868 case "${target}" in
7869 *-intelmicemul-*)
7870 # In this case we expect offload compiler to be built as native, so we
7871 # need to rename the driver to avoid clashes with host's drivers.
7872 program_transform_name="s&^&${target}-&" ;;
7873 esac
7874 sedscript="s#${target_noncanonical}#${enable_as_accelerator_for}-accel-${target_noncanonical}#"
7875 program_transform_name=`echo $program_transform_name | sed $sedscript`
7876 accel_dir_suffix=/accel/${target_noncanonical}
7877 real_target_noncanonical=${enable_as_accelerator_for}
7883 for tgt in `echo $enable_offload_targets | sed 's/,/ /g'`; do
7884 tgt=`echo $tgt | sed 's/=.*//'`
7886 enable_offloading=1
7887 case "$tgt" in
7888 *-intelmic-* | *-intelmicemul-*)
7889 omp_device_property=omp-device-properties-i386
7890 omp_device_property_tmake_file="${omp_device_property_tmake_file} \$(srcdir)/config/i386/t-omp-device"
7892 amdgcn*)
7893 omp_device_property=omp-device-properties-gcn
7894 omp_device_property_tmake_file="${omp_device_property_tmake_file} \$(srcdir)/config/gcn/t-omp-device"
7896 nvptx*)
7897 omp_device_property=omp-device-properties-nvptx
7898 omp_device_property_tmake_file="${omp_device_property_tmake_file} \$(srcdir)/config/nvptx/t-omp-device"
7901 as_fn_error $? "unknown offload target specified" "$LINENO" 5
7903 esac
7904 omp_device_properties="${omp_device_properties} ${tgt}=${omp_device_property}"
7905 omp_device_property_deps="${omp_device_property_deps} ${omp_device_property}"
7907 if test x"$offload_targets" = x; then
7908 offload_targets=$tgt
7909 else
7910 offload_targets="$offload_targets,$tgt"
7912 done
7917 cat >>confdefs.h <<_ACEOF
7918 #define OFFLOAD_TARGETS "$offload_targets"
7919 _ACEOF
7921 if test x"$enable_offloading" != x; then
7923 $as_echo "#define ENABLE_OFFLOADING 1" >>confdefs.h
7925 else
7927 $as_echo "#define ENABLE_OFFLOADING 0" >>confdefs.h
7931 if test "x$enable_offload_defaulted" = xyes; then
7933 $as_echo "#define OFFLOAD_DEFAULTED 1" >>confdefs.h
7938 # Check whether --with-multilib-list was given.
7939 if test "${with_multilib_list+set}" = set; then :
7940 withval=$with_multilib_list; :
7941 else
7942 with_multilib_list=default
7947 # Check whether --with-multilib-generator was given.
7948 if test "${with_multilib_generator+set}" = set; then :
7949 withval=$with_multilib_generator; :
7950 else
7951 with_multilib_generator=default
7955 # -------------------------
7956 # Checks for other programs
7957 # -------------------------
7959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7960 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7961 set x ${MAKE-make}
7962 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7963 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
7964 $as_echo_n "(cached) " >&6
7965 else
7966 cat >conftest.make <<\_ACEOF
7967 SHELL = /bin/sh
7968 all:
7969 @echo '@@@%%%=$(MAKE)=@@@%%%'
7970 _ACEOF
7971 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
7972 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7973 *@@@%%%=?*=@@@%%%*)
7974 eval ac_cv_prog_make_${ac_make}_set=yes;;
7976 eval ac_cv_prog_make_${ac_make}_set=no;;
7977 esac
7978 rm -f conftest.make
7980 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7982 $as_echo "yes" >&6; }
7983 SET_MAKE=
7984 else
7985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7986 $as_echo "no" >&6; }
7987 SET_MAKE="MAKE=${MAKE-make}"
7991 # Find some useful tools
7992 for ac_prog in gawk mawk nawk awk
7994 # Extract the first word of "$ac_prog", so it can be a program name with args.
7995 set dummy $ac_prog; ac_word=$2
7996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7997 $as_echo_n "checking for $ac_word... " >&6; }
7998 if ${ac_cv_prog_AWK+:} false; then :
7999 $as_echo_n "(cached) " >&6
8000 else
8001 if test -n "$AWK"; then
8002 ac_cv_prog_AWK="$AWK" # Let the user override the test.
8003 else
8004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8005 for as_dir in $PATH
8007 IFS=$as_save_IFS
8008 test -z "$as_dir" && as_dir=.
8009 for ac_exec_ext in '' $ac_executable_extensions; do
8010 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8011 ac_cv_prog_AWK="$ac_prog"
8012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8013 break 2
8015 done
8016 done
8017 IFS=$as_save_IFS
8021 AWK=$ac_cv_prog_AWK
8022 if test -n "$AWK"; then
8023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8024 $as_echo "$AWK" >&6; }
8025 else
8026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8027 $as_echo "no" >&6; }
8031 test -n "$AWK" && break
8032 done
8034 # We need awk to create options.cc and options.h.
8035 # Bail out if it's missing.
8036 case ${AWK} in
8037 "") as_fn_error $? "can't build without awk, bailing out" "$LINENO" 5 ;;
8038 esac
8040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8041 $as_echo_n "checking whether ln -s works... " >&6; }
8042 if ${gcc_cv_prog_LN_S+:} false; then :
8043 $as_echo_n "(cached) " >&6
8044 else
8045 rm -f conftestdata_t
8046 echo >conftestdata_f
8047 if ln -s conftestdata_f conftestdata_t 2>/dev/null
8048 then
8049 gcc_cv_prog_LN_S="ln -s"
8050 else
8051 if ln conftestdata_f conftestdata_t 2>/dev/null
8052 then
8053 gcc_cv_prog_LN_S=ln
8054 else
8055 if cp -p conftestdata_f conftestdata_t 2>/dev/null
8056 then
8057 gcc_cv_prog_LN_S="cp -p"
8058 else
8059 gcc_cv_prog_LN_S=cp
8063 rm -f conftestdata_f conftestdata_t
8066 LN_S="$gcc_cv_prog_LN_S"
8067 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
8068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8069 $as_echo "yes" >&6; }
8070 else
8071 if test "$gcc_cv_prog_LN_S" = "ln"; then
8072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
8073 $as_echo "no, using ln" >&6; }
8074 else
8075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
8076 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
8080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
8081 $as_echo_n "checking whether ln works... " >&6; }
8082 if ${acx_cv_prog_LN+:} false; then :
8083 $as_echo_n "(cached) " >&6
8084 else
8085 rm -f conftestdata_t
8086 echo >conftestdata_f
8087 if ln conftestdata_f conftestdata_t 2>/dev/null
8088 then
8089 acx_cv_prog_LN=ln
8090 else
8091 acx_cv_prog_LN=no
8093 rm -f conftestdata_f conftestdata_t
8096 if test $acx_cv_prog_LN = no; then
8097 LN="$LN_S"
8098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
8099 $as_echo "no, using $LN" >&6; }
8100 else
8101 LN="$acx_cv_prog_LN"
8102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8103 $as_echo "yes" >&6; }
8106 if test -n "$ac_tool_prefix"; then
8107 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8108 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8110 $as_echo_n "checking for $ac_word... " >&6; }
8111 if ${ac_cv_prog_RANLIB+:} false; then :
8112 $as_echo_n "(cached) " >&6
8113 else
8114 if test -n "$RANLIB"; then
8115 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8116 else
8117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8118 for as_dir in $PATH
8120 IFS=$as_save_IFS
8121 test -z "$as_dir" && as_dir=.
8122 for ac_exec_ext in '' $ac_executable_extensions; do
8123 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8124 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8125 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8126 break 2
8128 done
8129 done
8130 IFS=$as_save_IFS
8134 RANLIB=$ac_cv_prog_RANLIB
8135 if test -n "$RANLIB"; then
8136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8137 $as_echo "$RANLIB" >&6; }
8138 else
8139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8140 $as_echo "no" >&6; }
8145 if test -z "$ac_cv_prog_RANLIB"; then
8146 ac_ct_RANLIB=$RANLIB
8147 # Extract the first word of "ranlib", so it can be a program name with args.
8148 set dummy ranlib; ac_word=$2
8149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8150 $as_echo_n "checking for $ac_word... " >&6; }
8151 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8152 $as_echo_n "(cached) " >&6
8153 else
8154 if test -n "$ac_ct_RANLIB"; then
8155 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8156 else
8157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8158 for as_dir in $PATH
8160 IFS=$as_save_IFS
8161 test -z "$as_dir" && as_dir=.
8162 for ac_exec_ext in '' $ac_executable_extensions; do
8163 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8164 ac_cv_prog_ac_ct_RANLIB="ranlib"
8165 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8166 break 2
8168 done
8169 done
8170 IFS=$as_save_IFS
8174 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8175 if test -n "$ac_ct_RANLIB"; then
8176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8177 $as_echo "$ac_ct_RANLIB" >&6; }
8178 else
8179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8180 $as_echo "no" >&6; }
8183 if test "x$ac_ct_RANLIB" = x; then
8184 RANLIB=":"
8185 else
8186 case $cross_compiling:$ac_tool_warned in
8187 yes:)
8188 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8189 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8190 ac_tool_warned=yes ;;
8191 esac
8192 RANLIB=$ac_ct_RANLIB
8194 else
8195 RANLIB="$ac_cv_prog_RANLIB"
8198 ranlib_flags=""
8201 # Find a good install program. We prefer a C program (faster),
8202 # so one script is as good as another. But avoid the broken or
8203 # incompatible versions:
8204 # SysV /etc/install, /usr/sbin/install
8205 # SunOS /usr/etc/install
8206 # IRIX /sbin/install
8207 # AIX /bin/install
8208 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8209 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8210 # ./install, which can be erroneously created by make from ./install.sh.
8211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
8212 $as_echo_n "checking for a BSD compatible install... " >&6; }
8213 if test -z "$INSTALL"; then
8214 if ${ac_cv_path_install+:} false; then :
8215 $as_echo_n "(cached) " >&6
8216 else
8217 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
8218 for ac_dir in $PATH; do
8219 # Account for people who put trailing slashes in PATH elements.
8220 case "$ac_dir/" in
8221 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
8223 # OSF1 and SCO ODT 3.0 have their own names for install.
8224 for ac_prog in ginstall scoinst install; do
8225 if test -f $ac_dir/$ac_prog; then
8226 if test $ac_prog = install &&
8227 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
8228 # AIX install. It has an incompatible calling convention.
8229 # OSF/1 installbsd also uses dspmsg, but is usable.
8231 else
8232 ac_cv_path_install="$ac_dir/$ac_prog -c"
8233 break 2
8236 done
8238 esac
8239 done
8240 IFS="$ac_save_IFS"
8243 if test "${ac_cv_path_install+set}" = set; then
8244 INSTALL="$ac_cv_path_install"
8245 else
8246 # As a last resort, use the slow shell script. We don't cache a
8247 # path for INSTALL within a source directory, because that will
8248 # break other packages using the cache if that directory is
8249 # removed, or if the path is relative.
8250 INSTALL="$ac_install_sh"
8253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
8254 $as_echo "$INSTALL" >&6; }
8256 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8257 # It thinks the first close brace ends the variable substitution.
8258 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8260 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8263 # See if cmp has --ignore-initial.
8264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
8265 $as_echo_n "checking for cmp's capabilities... " >&6; }
8266 if ${gcc_cv_prog_cmp_skip+:} false; then :
8267 $as_echo_n "(cached) " >&6
8268 else
8269 echo abfoo >t1
8270 echo cdfoo >t2
8271 gcc_cv_prog_cmp_skip=slowcompare
8272 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
8273 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
8275 else
8276 gcc_cv_prog_cmp_skip=gnucompare
8279 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
8280 if cmp t1 t2 2 2 > /dev/null 2>&1; then
8281 if cmp t1 t2 1 1 > /dev/null 2>&1; then
8283 else
8284 gcc_cv_prog_cmp_skip=fastcompare
8288 rm t1 t2
8291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
8292 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
8293 make_compare_target=$gcc_cv_prog_cmp_skip
8297 # See if we have the mktemp command.
8298 # Extract the first word of "mktemp", so it can be a program name with args.
8299 set dummy mktemp; ac_word=$2
8300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8301 $as_echo_n "checking for $ac_word... " >&6; }
8302 if ${ac_cv_prog_have_mktemp_command+:} false; then :
8303 $as_echo_n "(cached) " >&6
8304 else
8305 if test -n "$have_mktemp_command"; then
8306 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
8307 else
8308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8309 for as_dir in $PATH
8311 IFS=$as_save_IFS
8312 test -z "$as_dir" && as_dir=.
8313 for ac_exec_ext in '' $ac_executable_extensions; do
8314 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8315 ac_cv_prog_have_mktemp_command="yes"
8316 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8317 break 2
8319 done
8320 done
8321 IFS=$as_save_IFS
8323 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
8326 have_mktemp_command=$ac_cv_prog_have_mktemp_command
8327 if test -n "$have_mktemp_command"; then
8328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
8329 $as_echo "$have_mktemp_command" >&6; }
8330 else
8331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8332 $as_echo "no" >&6; }
8337 # See if makeinfo has been installed and is modern enough
8338 # that we can use it.
8340 # Extract the first word of "makeinfo", so it can be a program name with args.
8341 set dummy makeinfo; ac_word=$2
8342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8343 $as_echo_n "checking for $ac_word... " >&6; }
8344 if ${ac_cv_prog_MAKEINFO+:} false; then :
8345 $as_echo_n "(cached) " >&6
8346 else
8347 if test -n "$MAKEINFO"; then
8348 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
8349 else
8350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8351 for as_dir in $PATH
8353 IFS=$as_save_IFS
8354 test -z "$as_dir" && as_dir=.
8355 for ac_exec_ext in '' $ac_executable_extensions; do
8356 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8357 ac_cv_prog_MAKEINFO="makeinfo"
8358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8359 break 2
8361 done
8362 done
8363 IFS=$as_save_IFS
8367 MAKEINFO=$ac_cv_prog_MAKEINFO
8368 if test -n "$MAKEINFO"; then
8369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8370 $as_echo "$MAKEINFO" >&6; }
8371 else
8372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8373 $as_echo "no" >&6; }
8377 if test -n "$MAKEINFO"; then
8378 # Found it, now check the version.
8379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
8380 $as_echo_n "checking for modern makeinfo... " >&6; }
8381 if ${gcc_cv_prog_makeinfo_modern+:} false; then :
8382 $as_echo_n "(cached) " >&6
8383 else
8384 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
8385 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
8387 case $ac_prog_version in
8388 '') gcc_cv_prog_makeinfo_modern=no;;
8389 4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
8390 *) gcc_cv_prog_makeinfo_modern=no;;
8391 esac
8394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
8395 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
8396 else
8397 gcc_cv_prog_makeinfo_modern=no
8399 if test $gcc_cv_prog_makeinfo_modern = no; then
8400 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
8403 if test $gcc_cv_prog_makeinfo_modern = no; then
8404 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8405 *** Makeinfo is missing or too old.
8406 *** Info documentation will not be built." >&5
8407 $as_echo "$as_me: WARNING:
8408 *** Makeinfo is missing or too old.
8409 *** Info documentation will not be built." >&2;}
8410 BUILD_INFO=
8411 else
8412 BUILD_INFO=info
8416 # Is pod2man recent enough to regenerate manpages?
8417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
8418 $as_echo_n "checking for recent Pod::Man... " >&6; }
8419 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
8420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8421 $as_echo "yes" >&6; }
8422 GENERATED_MANPAGES=generated-manpages
8423 else
8424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8425 $as_echo "no" >&6; }
8426 GENERATED_MANPAGES=
8430 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
8432 # How about lex?
8433 for ac_prog in flex
8435 # Extract the first word of "$ac_prog", so it can be a program name with args.
8436 set dummy $ac_prog; ac_word=$2
8437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8438 $as_echo_n "checking for $ac_word... " >&6; }
8439 if ${ac_cv_prog_FLEX+:} false; then :
8440 $as_echo_n "(cached) " >&6
8441 else
8442 if test -n "$FLEX"; then
8443 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
8444 else
8445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8446 for as_dir in $PATH
8448 IFS=$as_save_IFS
8449 test -z "$as_dir" && as_dir=.
8450 for ac_exec_ext in '' $ac_executable_extensions; do
8451 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8452 ac_cv_prog_FLEX="$ac_prog"
8453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8454 break 2
8456 done
8457 done
8458 IFS=$as_save_IFS
8462 FLEX=$ac_cv_prog_FLEX
8463 if test -n "$FLEX"; then
8464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
8465 $as_echo "$FLEX" >&6; }
8466 else
8467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8468 $as_echo "no" >&6; }
8472 test -n "$FLEX" && break
8473 done
8474 test -n "$FLEX" || FLEX="$MISSING flex"
8477 # Bison?
8478 for ac_prog in bison
8480 # Extract the first word of "$ac_prog", so it can be a program name with args.
8481 set dummy $ac_prog; ac_word=$2
8482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8483 $as_echo_n "checking for $ac_word... " >&6; }
8484 if ${ac_cv_prog_BISON+:} false; then :
8485 $as_echo_n "(cached) " >&6
8486 else
8487 if test -n "$BISON"; then
8488 ac_cv_prog_BISON="$BISON" # Let the user override the test.
8489 else
8490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8491 for as_dir in $PATH
8493 IFS=$as_save_IFS
8494 test -z "$as_dir" && as_dir=.
8495 for ac_exec_ext in '' $ac_executable_extensions; do
8496 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8497 ac_cv_prog_BISON="$ac_prog"
8498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8499 break 2
8501 done
8502 done
8503 IFS=$as_save_IFS
8507 BISON=$ac_cv_prog_BISON
8508 if test -n "$BISON"; then
8509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
8510 $as_echo "$BISON" >&6; }
8511 else
8512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8513 $as_echo "no" >&6; }
8517 test -n "$BISON" && break
8518 done
8519 test -n "$BISON" || BISON="$MISSING bison"
8522 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
8523 # check for build == host before using them.
8525 # NM
8526 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
8527 && test -d ../binutils ; then
8528 NM='${objdir}/../binutils/nm-new'
8529 else
8530 # Extract the first word of "nm", so it can be a program name with args.
8531 set dummy nm; ac_word=$2
8532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8533 $as_echo_n "checking for $ac_word... " >&6; }
8534 if ${ac_cv_prog_NM+:} false; then :
8535 $as_echo_n "(cached) " >&6
8536 else
8537 if test -n "$NM"; then
8538 ac_cv_prog_NM="$NM" # Let the user override the test.
8539 else
8540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8541 for as_dir in $PATH
8543 IFS=$as_save_IFS
8544 test -z "$as_dir" && as_dir=.
8545 for ac_exec_ext in '' $ac_executable_extensions; do
8546 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8547 ac_cv_prog_NM="nm"
8548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8549 break 2
8551 done
8552 done
8553 IFS=$as_save_IFS
8555 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
8558 NM=$ac_cv_prog_NM
8559 if test -n "$NM"; then
8560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8561 $as_echo "$NM" >&6; }
8562 else
8563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8564 $as_echo "no" >&6; }
8570 # AR
8571 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
8572 && test -d ../binutils ; then
8573 AR='${objdir}/../binutils/ar'
8574 else
8575 # Extract the first word of "ar", so it can be a program name with args.
8576 set dummy ar; ac_word=$2
8577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8578 $as_echo_n "checking for $ac_word... " >&6; }
8579 if ${ac_cv_prog_AR+:} false; then :
8580 $as_echo_n "(cached) " >&6
8581 else
8582 if test -n "$AR"; then
8583 ac_cv_prog_AR="$AR" # Let the user override the test.
8584 else
8585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8586 for as_dir in $PATH
8588 IFS=$as_save_IFS
8589 test -z "$as_dir" && as_dir=.
8590 for ac_exec_ext in '' $ac_executable_extensions; do
8591 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8592 ac_cv_prog_AR="ar"
8593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8594 break 2
8596 done
8597 done
8598 IFS=$as_save_IFS
8600 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8603 AR=$ac_cv_prog_AR
8604 if test -n "$AR"; then
8605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8606 $as_echo "$AR" >&6; }
8607 else
8608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8609 $as_echo "no" >&6; }
8615 # The jit documentation looks better if built with sphinx, but can be
8616 # built with texinfo if sphinx is not available.
8617 # Set "doc_build_sys" to "sphinx" or "texinfo" accordingly.
8618 # Extract the first word of "sphinx-build", so it can be a program name with args.
8619 set dummy sphinx-build; ac_word=$2
8620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8621 $as_echo_n "checking for $ac_word... " >&6; }
8622 if ${ac_cv_prog_doc_build_sys+:} false; then :
8623 $as_echo_n "(cached) " >&6
8624 else
8625 if test -n "$doc_build_sys"; then
8626 ac_cv_prog_doc_build_sys="$doc_build_sys" # Let the user override the test.
8627 else
8628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8629 for as_dir in $PATH
8631 IFS=$as_save_IFS
8632 test -z "$as_dir" && as_dir=.
8633 for ac_exec_ext in '' $ac_executable_extensions; do
8634 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8635 ac_cv_prog_doc_build_sys="sphinx"
8636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8637 break 2
8639 done
8640 done
8641 IFS=$as_save_IFS
8643 test -z "$ac_cv_prog_doc_build_sys" && ac_cv_prog_doc_build_sys="texinfo"
8646 doc_build_sys=$ac_cv_prog_doc_build_sys
8647 if test -n "$doc_build_sys"; then
8648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doc_build_sys" >&5
8649 $as_echo "$doc_build_sys" >&6; }
8650 else
8651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8652 $as_echo "no" >&6; }
8657 # --------------------
8658 # Checks for C headers
8659 # --------------------
8661 # Need to reject headers which give warnings, so that the -Werror bootstrap
8662 # works later. *sigh* This needs to come before all header checks.
8664 ac_c_preproc_warn_flag=yes
8666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8667 $as_echo_n "checking for ANSI C header files... " >&6; }
8668 if ${ac_cv_header_stdc+:} false; then :
8669 $as_echo_n "(cached) " >&6
8670 else
8671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8672 /* end confdefs.h. */
8673 #include <stdlib.h>
8674 #include <stdarg.h>
8675 #include <string.h>
8676 #include <float.h>
8679 main ()
8683 return 0;
8685 _ACEOF
8686 if ac_fn_cxx_try_compile "$LINENO"; then :
8687 ac_cv_header_stdc=yes
8688 else
8689 ac_cv_header_stdc=no
8691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8693 if test $ac_cv_header_stdc = yes; then
8694 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8696 /* end confdefs.h. */
8697 #include <string.h>
8699 _ACEOF
8700 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8701 $EGREP "memchr" >/dev/null 2>&1; then :
8703 else
8704 ac_cv_header_stdc=no
8706 rm -f conftest*
8710 if test $ac_cv_header_stdc = yes; then
8711 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8713 /* end confdefs.h. */
8714 #include <stdlib.h>
8716 _ACEOF
8717 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8718 $EGREP "free" >/dev/null 2>&1; then :
8720 else
8721 ac_cv_header_stdc=no
8723 rm -f conftest*
8727 if test $ac_cv_header_stdc = yes; then
8728 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8729 if test "$cross_compiling" = yes; then :
8731 else
8732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8733 /* end confdefs.h. */
8734 #include <ctype.h>
8735 #include <stdlib.h>
8736 #if ((' ' & 0x0FF) == 0x020)
8737 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8738 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8739 #else
8740 # define ISLOWER(c) \
8741 (('a' <= (c) && (c) <= 'i') \
8742 || ('j' <= (c) && (c) <= 'r') \
8743 || ('s' <= (c) && (c) <= 'z'))
8744 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8745 #endif
8747 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8749 main ()
8751 int i;
8752 for (i = 0; i < 256; i++)
8753 if (XOR (islower (i), ISLOWER (i))
8754 || toupper (i) != TOUPPER (i))
8755 return 2;
8756 return 0;
8758 _ACEOF
8759 if ac_fn_cxx_try_run "$LINENO"; then :
8761 else
8762 ac_cv_header_stdc=no
8764 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8765 conftest.$ac_objext conftest.beam conftest.$ac_ext
8770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8771 $as_echo "$ac_cv_header_stdc" >&6; }
8772 if test $ac_cv_header_stdc = yes; then
8774 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8779 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8780 if ${ac_cv_header_time+:} false; then :
8781 $as_echo_n "(cached) " >&6
8782 else
8783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8784 /* end confdefs.h. */
8785 #include <sys/types.h>
8786 #include <sys/time.h>
8787 #include <time.h>
8790 main ()
8792 if ((struct tm *) 0)
8793 return 0;
8795 return 0;
8797 _ACEOF
8798 if ac_fn_cxx_try_compile "$LINENO"; then :
8799 ac_cv_header_time=yes
8800 else
8801 ac_cv_header_time=no
8803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8806 $as_echo "$ac_cv_header_time" >&6; }
8807 if test $ac_cv_header_time = yes; then
8809 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8814 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8815 if ${gcc_cv_header_string+:} false; then :
8816 $as_echo_n "(cached) " >&6
8817 else
8818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8819 /* end confdefs.h. */
8820 #include <string.h>
8821 #include <strings.h>
8823 main ()
8827 return 0;
8829 _ACEOF
8830 if ac_fn_cxx_try_compile "$LINENO"; then :
8831 gcc_cv_header_string=yes
8832 else
8833 gcc_cv_header_string=no
8835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8838 $as_echo "$gcc_cv_header_string" >&6; }
8839 if test $gcc_cv_header_string = yes; then
8841 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8846 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8847 if ${ac_cv_header_sys_wait_h+:} false; then :
8848 $as_echo_n "(cached) " >&6
8849 else
8850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8851 /* end confdefs.h. */
8852 #include <sys/types.h>
8853 #include <sys/wait.h>
8854 #ifndef WEXITSTATUS
8855 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8856 #endif
8857 #ifndef WIFEXITED
8858 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8859 #endif
8862 main ()
8864 int s;
8865 wait (&s);
8866 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8868 return 0;
8870 _ACEOF
8871 if ac_fn_cxx_try_compile "$LINENO"; then :
8872 ac_cv_header_sys_wait_h=yes
8873 else
8874 ac_cv_header_sys_wait_h=no
8876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8879 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8880 if test $ac_cv_header_sys_wait_h = yes; then
8882 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
8887 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
8888 if ${ac_cv_sys_tiocgwinsz_in_termios_h+:} false; then :
8889 $as_echo_n "(cached) " >&6
8890 else
8891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8892 /* end confdefs.h. */
8893 #include <sys/types.h>
8894 #include <termios.h>
8895 #ifdef TIOCGWINSZ
8897 #endif
8899 _ACEOF
8900 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8901 $EGREP "yes" >/dev/null 2>&1; then :
8902 ac_cv_sys_tiocgwinsz_in_termios_h=yes
8903 else
8904 ac_cv_sys_tiocgwinsz_in_termios_h=no
8906 rm -f conftest*
8909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
8910 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
8912 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
8913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
8914 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
8915 if ${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+:} false; then :
8916 $as_echo_n "(cached) " >&6
8917 else
8918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8919 /* end confdefs.h. */
8920 #include <sys/types.h>
8921 #include <sys/ioctl.h>
8922 #ifdef TIOCGWINSZ
8924 #endif
8926 _ACEOF
8927 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8928 $EGREP "yes" >/dev/null 2>&1; then :
8929 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
8930 else
8931 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
8933 rm -f conftest*
8936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
8937 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
8939 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
8941 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
8946 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8947 fcntl.h ftw.h unistd.h sys/file.h sys/time.h sys/mman.h \
8948 sys/resource.h sys/param.h sys/times.h sys/stat.h sys/locking.h \
8949 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8950 do :
8951 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8952 ac_fn_cxx_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
8953 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8954 cat >>confdefs.h <<_ACEOF
8955 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8956 _ACEOF
8959 done
8962 # Check for thread headers.
8963 ac_fn_cxx_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
8964 if test "x$ac_cv_header_thread_h" = xyes; then :
8965 have_thread_h=yes
8966 else
8967 have_thread_h=
8970 ac_fn_cxx_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8971 if test "x$ac_cv_header_pthread_h" = xyes; then :
8972 have_pthread_h=yes
8973 else
8974 have_pthread_h=
8978 # These tests can't be done till we know if we have limits.h.
8979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8980 $as_echo_n "checking for CHAR_BIT... " >&6; }
8981 if ${gcc_cv_decl_char_bit+:} false; then :
8982 $as_echo_n "(cached) " >&6
8983 else
8984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8985 /* end confdefs.h. */
8986 #ifdef HAVE_LIMITS_H
8987 #include <limits.h>
8988 #endif
8989 #ifdef CHAR_BIT
8990 found
8991 #endif
8992 _ACEOF
8993 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8994 $EGREP "found" >/dev/null 2>&1; then :
8995 gcc_cv_decl_char_bit=yes
8996 else
8997 gcc_cv_decl_char_bit=no
8999 rm -f conftest*
9003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
9004 $as_echo "$gcc_cv_decl_char_bit" >&6; }
9005 if test $gcc_cv_decl_char_bit = no; then
9006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
9007 $as_echo_n "checking number of bits in a byte... " >&6; }
9008 if ${gcc_cv_c_nbby+:} false; then :
9009 $as_echo_n "(cached) " >&6
9010 else
9012 gcc_cv_c_nbby=
9013 while test $i -lt 65; do
9014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9015 /* end confdefs.h. */
9018 main ()
9020 switch(0) {
9021 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
9022 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
9025 return 0;
9027 _ACEOF
9028 if ac_fn_cxx_try_compile "$LINENO"; then :
9029 gcc_cv_c_nbby=$i; break
9031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9032 i=`expr $i + 1`
9033 done
9034 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
9037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
9038 $as_echo "$gcc_cv_c_nbby" >&6; }
9039 if test $gcc_cv_c_nbby = failed; then
9040 as_fn_error $? "cannot determine number of bits in a byte" "$LINENO" 5
9041 else
9043 cat >>confdefs.h <<_ACEOF
9044 #define CHAR_BIT $gcc_cv_c_nbby
9045 _ACEOF
9049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
9050 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
9051 if ${ac_cv_c_bigendian+:} false; then :
9052 $as_echo_n "(cached) " >&6
9053 else
9054 ac_cv_c_bigendian=unknown
9055 # See if we're dealing with a universal compiler.
9056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9057 /* end confdefs.h. */
9058 #ifndef __APPLE_CC__
9059 not a universal capable compiler
9060 #endif
9061 typedef int dummy;
9063 _ACEOF
9064 if ac_fn_cxx_try_compile "$LINENO"; then :
9066 # Check for potential -arch flags. It is not universal unless
9067 # there are at least two -arch flags with different values.
9068 ac_arch=
9069 ac_prev=
9070 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
9071 if test -n "$ac_prev"; then
9072 case $ac_word in
9073 i?86 | x86_64 | ppc | ppc64)
9074 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
9075 ac_arch=$ac_word
9076 else
9077 ac_cv_c_bigendian=universal
9078 break
9081 esac
9082 ac_prev=
9083 elif test "x$ac_word" = "x-arch"; then
9084 ac_prev=arch
9086 done
9088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9089 if test $ac_cv_c_bigendian = unknown; then
9090 # See if sys/param.h defines the BYTE_ORDER macro.
9091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9092 /* end confdefs.h. */
9093 #include <sys/types.h>
9094 #include <sys/param.h>
9097 main ()
9099 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
9100 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
9101 && LITTLE_ENDIAN)
9102 bogus endian macros
9103 #endif
9106 return 0;
9108 _ACEOF
9109 if ac_fn_cxx_try_compile "$LINENO"; then :
9110 # It does; now see whether it defined to BIG_ENDIAN or not.
9111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9112 /* end confdefs.h. */
9113 #include <sys/types.h>
9114 #include <sys/param.h>
9117 main ()
9119 #if BYTE_ORDER != BIG_ENDIAN
9120 not big endian
9121 #endif
9124 return 0;
9126 _ACEOF
9127 if ac_fn_cxx_try_compile "$LINENO"; then :
9128 ac_cv_c_bigendian=yes
9129 else
9130 ac_cv_c_bigendian=no
9132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9136 if test $ac_cv_c_bigendian = unknown; then
9137 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
9138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9139 /* end confdefs.h. */
9140 #include <limits.h>
9143 main ()
9145 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
9146 bogus endian macros
9147 #endif
9150 return 0;
9152 _ACEOF
9153 if ac_fn_cxx_try_compile "$LINENO"; then :
9154 # It does; now see whether it defined to _BIG_ENDIAN or not.
9155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9156 /* end confdefs.h. */
9157 #include <limits.h>
9160 main ()
9162 #ifndef _BIG_ENDIAN
9163 not big endian
9164 #endif
9167 return 0;
9169 _ACEOF
9170 if ac_fn_cxx_try_compile "$LINENO"; then :
9171 ac_cv_c_bigendian=yes
9172 else
9173 ac_cv_c_bigendian=no
9175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9179 if test $ac_cv_c_bigendian = unknown; then
9180 # Compile a test program.
9181 if test "$cross_compiling" = yes; then :
9182 # Try to guess by grepping values from an object file.
9183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9184 /* end confdefs.h. */
9185 short int ascii_mm[] =
9186 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9187 short int ascii_ii[] =
9188 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9189 int use_ascii (int i) {
9190 return ascii_mm[i] + ascii_ii[i];
9192 short int ebcdic_ii[] =
9193 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9194 short int ebcdic_mm[] =
9195 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9196 int use_ebcdic (int i) {
9197 return ebcdic_mm[i] + ebcdic_ii[i];
9199 extern int foo;
9202 main ()
9204 return use_ascii (foo) == use_ebcdic (foo);
9206 return 0;
9208 _ACEOF
9209 if ac_fn_cxx_try_compile "$LINENO"; then :
9210 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
9211 ac_cv_c_bigendian=yes
9213 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
9214 if test "$ac_cv_c_bigendian" = unknown; then
9215 ac_cv_c_bigendian=no
9216 else
9217 # finding both strings is unlikely to happen, but who knows?
9218 ac_cv_c_bigendian=unknown
9222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9223 else
9224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9225 /* end confdefs.h. */
9226 $ac_includes_default
9228 main ()
9231 /* Are we little or big endian? From Harbison&Steele. */
9232 union
9234 long int l;
9235 char c[sizeof (long int)];
9236 } u;
9237 u.l = 1;
9238 return u.c[sizeof (long int) - 1] == 1;
9241 return 0;
9243 _ACEOF
9244 if ac_fn_cxx_try_run "$LINENO"; then :
9245 ac_cv_c_bigendian=no
9246 else
9247 ac_cv_c_bigendian=yes
9249 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9250 conftest.$ac_objext conftest.beam conftest.$ac_ext
9255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9256 $as_echo "$ac_cv_c_bigendian" >&6; }
9257 case $ac_cv_c_bigendian in #(
9258 yes)
9259 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9260 ;; #(
9262 ;; #(
9263 universal)
9265 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9267 ;; #(
9269 as_fn_error $? "unknown endianness
9270 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9271 esac
9274 # ----------------------
9275 # Checks for C++ headers
9276 # ----------------------
9278 ac_ext=cpp
9279 ac_cpp='$CXXCPP $CPPFLAGS'
9280 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9281 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9282 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
9284 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
9285 if test -z "$CXXCPP"; then
9286 if ${ac_cv_prog_CXXCPP+:} false; then :
9287 $as_echo_n "(cached) " >&6
9288 else
9289 # Double quotes because CXXCPP needs to be expanded
9290 for CXXCPP in "$CXX -E" "/lib/cpp"
9292 ac_preproc_ok=false
9293 for ac_cxx_preproc_warn_flag in '' yes
9295 # Use a header file that comes with gcc, so configuring glibc
9296 # with a fresh cross-compiler works.
9297 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9298 # <limits.h> exists even on freestanding compilers.
9299 # On the NeXT, cc -E runs the code through the compiler's parser,
9300 # not just through cpp. "Syntax error" is here to catch this case.
9301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9302 /* end confdefs.h. */
9303 #ifdef __STDC__
9304 # include <limits.h>
9305 #else
9306 # include <assert.h>
9307 #endif
9308 Syntax error
9309 _ACEOF
9310 if ac_fn_cxx_try_cpp "$LINENO"; then :
9312 else
9313 # Broken: fails on valid input.
9314 continue
9316 rm -f conftest.err conftest.i conftest.$ac_ext
9318 # OK, works on sane cases. Now check whether nonexistent headers
9319 # can be detected and how.
9320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9321 /* end confdefs.h. */
9322 #include <ac_nonexistent.h>
9323 _ACEOF
9324 if ac_fn_cxx_try_cpp "$LINENO"; then :
9325 # Broken: success on invalid input.
9326 continue
9327 else
9328 # Passes both tests.
9329 ac_preproc_ok=:
9330 break
9332 rm -f conftest.err conftest.i conftest.$ac_ext
9334 done
9335 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9336 rm -f conftest.i conftest.err conftest.$ac_ext
9337 if $ac_preproc_ok; then :
9338 break
9341 done
9342 ac_cv_prog_CXXCPP=$CXXCPP
9345 CXXCPP=$ac_cv_prog_CXXCPP
9346 else
9347 ac_cv_prog_CXXCPP=$CXXCPP
9349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
9350 $as_echo "$CXXCPP" >&6; }
9351 ac_preproc_ok=false
9352 for ac_cxx_preproc_warn_flag in '' yes
9354 # Use a header file that comes with gcc, so configuring glibc
9355 # with a fresh cross-compiler works.
9356 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9357 # <limits.h> exists even on freestanding compilers.
9358 # On the NeXT, cc -E runs the code through the compiler's parser,
9359 # not just through cpp. "Syntax error" is here to catch this case.
9360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9361 /* end confdefs.h. */
9362 #ifdef __STDC__
9363 # include <limits.h>
9364 #else
9365 # include <assert.h>
9366 #endif
9367 Syntax error
9368 _ACEOF
9369 if ac_fn_cxx_try_cpp "$LINENO"; then :
9371 else
9372 # Broken: fails on valid input.
9373 continue
9375 rm -f conftest.err conftest.i conftest.$ac_ext
9377 # OK, works on sane cases. Now check whether nonexistent headers
9378 # can be detected and how.
9379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9380 /* end confdefs.h. */
9381 #include <ac_nonexistent.h>
9382 _ACEOF
9383 if ac_fn_cxx_try_cpp "$LINENO"; then :
9384 # Broken: success on invalid input.
9385 continue
9386 else
9387 # Passes both tests.
9388 ac_preproc_ok=:
9389 break
9391 rm -f conftest.err conftest.i conftest.$ac_ext
9393 done
9394 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9395 rm -f conftest.i conftest.err conftest.$ac_ext
9396 if $ac_preproc_ok; then :
9398 else
9399 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9400 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9401 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9402 See \`config.log' for more details" >&5
9403 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9404 See \`config.log' for more details" >&2;}; }
9407 ac_ext=cpp
9408 ac_cpp='$CXXCPP $CPPFLAGS'
9409 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9410 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9411 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9414 for ac_header in unordered_map
9415 do :
9416 ac_fn_cxx_check_header_preproc "$LINENO" "unordered_map" "ac_cv_header_unordered_map"
9417 if test "x$ac_cv_header_unordered_map" = xyes; then :
9418 cat >>confdefs.h <<_ACEOF
9419 #define HAVE_UNORDERED_MAP 1
9420 _ACEOF
9423 done
9425 for ac_header in tr1/unordered_map
9426 do :
9427 ac_fn_cxx_check_header_preproc "$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
9428 if test "x$ac_cv_header_tr1_unordered_map" = xyes; then :
9429 cat >>confdefs.h <<_ACEOF
9430 #define HAVE_TR1_UNORDERED_MAP 1
9431 _ACEOF
9434 done
9436 for ac_header in ext/hash_map
9437 do :
9438 ac_fn_cxx_check_header_preproc "$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
9439 if test "x$ac_cv_header_ext_hash_map" = xyes; then :
9440 cat >>confdefs.h <<_ACEOF
9441 #define HAVE_EXT_HASH_MAP 1
9442 _ACEOF
9445 done
9448 # --------
9449 # Dependency checking.
9450 # --------
9452 rm -rf .tst 2>/dev/null
9453 mkdir .tst 2>/dev/null
9454 if test -d .tst; then
9455 am__leading_dot=.
9456 else
9457 am__leading_dot=_
9459 rmdir .tst 2>/dev/null
9461 DEPDIR="${am__leading_dot}deps"
9463 ac_config_commands="$ac_config_commands depdir"
9466 ac_config_commands="$ac_config_commands gccdepdir"
9469 depcc="$CXX" am_compiler_list=
9471 am_depcomp=$ac_aux_dir/depcomp
9472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
9473 $as_echo_n "checking dependency style of $depcc... " >&6; }
9474 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
9475 $as_echo_n "(cached) " >&6
9476 else
9477 if test -f "$am_depcomp"; then
9478 # We make a subdir and do the tests there. Otherwise we can end up
9479 # making bogus files that we don't know about and never remove. For
9480 # instance it was reported that on HP-UX the gcc test will end up
9481 # making a dummy file named `D' -- because `-MD' means `put the output
9482 # in D'.
9483 mkdir conftest.dir
9484 # Copy depcomp to subdir because otherwise we won't find it if we're
9485 # using a relative directory.
9486 cp "$am_depcomp" conftest.dir
9487 cd conftest.dir
9488 # We will build objects and dependencies in a subdirectory because
9489 # it helps to detect inapplicable dependency modes. For instance
9490 # both Tru64's cc and ICC support -MD to output dependencies as a
9491 # side effect of compilation, but ICC will put the dependencies in
9492 # the current directory while Tru64 will put them in the object
9493 # directory.
9494 mkdir sub
9496 am_cv_CXX_dependencies_compiler_type=none
9497 if test "$am_compiler_list" = ""; then
9498 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
9500 for depmode in $am_compiler_list; do
9501 if test $depmode = none; then break; fi
9503 $as_echo "$as_me:$LINENO: trying $depmode" >&5
9504 # Setup a source with many dependencies, because some compilers
9505 # like to wrap large dependency lists on column 80 (with \), and
9506 # we should not choose a depcomp mode which is confused by this.
9508 # We need to recreate these files for each test, as the compiler may
9509 # overwrite some of them when testing with obscure command lines.
9510 # This happens at least with the AIX C compiler.
9511 : > sub/conftest.c
9512 for i in 1 2 3 4 5 6; do
9513 echo '#include "conftst'$i'.h"' >> sub/conftest.c
9514 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
9515 # Solaris 8's {/usr,}/bin/sh.
9516 touch sub/conftst$i.h
9517 done
9518 echo "include sub/conftest.Po" > confmf
9520 # We check with `-c' and `-o' for the sake of the "dashmstdout"
9521 # mode. It turns out that the SunPro C++ compiler does not properly
9522 # handle `-M -o', and we need to detect this.
9523 depcmd="depmode=$depmode \
9524 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
9525 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
9526 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
9527 echo "| $depcmd" | sed -e 's/ */ /g' >&5
9528 if env $depcmd > conftest.err 2>&1 &&
9529 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
9530 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
9531 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
9532 # icc doesn't choke on unknown options, it will just issue warnings
9533 # or remarks (even with -Werror). So we grep stderr for any message
9534 # that says an option was ignored or not supported.
9535 # When given -MP, icc 7.0 and 7.1 complain thusly:
9536 # icc: Command line warning: ignoring option '-M'; no argument required
9537 # The diagnosis changed in icc 8.0:
9538 # icc: Command line remark: option '-MP' not supported
9539 if (grep 'ignoring option' conftest.err ||
9540 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
9541 am_cv_CXX_dependencies_compiler_type=$depmode
9542 $as_echo "$as_me:$LINENO: success" >&5
9543 break
9546 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
9547 sed -e 's/^/| /' < conftest.err >&5
9548 done
9550 cd ..
9551 rm -rf conftest.dir
9552 else
9553 am_cv_CXX_dependencies_compiler_type=none
9557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
9558 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
9559 if test x${am_cv_CXX_dependencies_compiler_type-none} = xnone
9560 then as_fn_error $? "no usable dependency style found" "$LINENO" 5
9561 else CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
9566 # --------
9567 # UNSORTED
9568 # --------
9571 # These libraries may be used by collect2.
9572 # We may need a special search path to get them linked.
9573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
9574 $as_echo_n "checking for collect2 libraries... " >&6; }
9575 if ${gcc_cv_collect2_libs+:} false; then :
9576 $as_echo_n "(cached) " >&6
9577 else
9578 save_LIBS="$LIBS"
9579 for libs in '' -lld -lmld \
9580 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
9581 '-L/usr/lib/cmplrs/cc3.11 -lmld'
9583 LIBS="$libs"
9584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9585 /* end confdefs.h. */
9587 /* Override any GCC internal prototype to avoid an error.
9588 Use char because int might match the return type of a GCC
9589 builtin and then its argument prototype would still apply. */
9590 #ifdef __cplusplus
9591 extern "C"
9592 #endif
9593 char ldopen ();
9595 main ()
9597 return ldopen ();
9599 return 0;
9601 _ACEOF
9602 if ac_fn_cxx_try_link "$LINENO"; then :
9603 gcc_cv_collect2_libs="$libs"; break
9605 rm -f core conftest.err conftest.$ac_objext \
9606 conftest$ac_exeext conftest.$ac_ext
9607 done
9608 LIBS="$save_LIBS"
9609 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
9611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
9612 $as_echo "$gcc_cv_collect2_libs" >&6; }
9613 case $gcc_cv_collect2_libs in
9614 "none required") ;;
9615 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
9616 esac
9619 # When building Ada code on Alpha, we need exc_resume which is usually in
9620 # -lexc. So test for it.
9621 save_LIBS="$LIBS"
9622 LIBS=
9623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
9624 $as_echo_n "checking for library containing exc_resume... " >&6; }
9625 if ${ac_cv_search_exc_resume+:} false; then :
9626 $as_echo_n "(cached) " >&6
9627 else
9628 ac_func_search_save_LIBS=$LIBS
9629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9630 /* end confdefs.h. */
9632 /* Override any GCC internal prototype to avoid an error.
9633 Use char because int might match the return type of a GCC
9634 builtin and then its argument prototype would still apply. */
9635 #ifdef __cplusplus
9636 extern "C"
9637 #endif
9638 char exc_resume ();
9640 main ()
9642 return exc_resume ();
9644 return 0;
9646 _ACEOF
9647 for ac_lib in '' exc; do
9648 if test -z "$ac_lib"; then
9649 ac_res="none required"
9650 else
9651 ac_res=-l$ac_lib
9652 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9654 if ac_fn_cxx_try_link "$LINENO"; then :
9655 ac_cv_search_exc_resume=$ac_res
9657 rm -f core conftest.err conftest.$ac_objext \
9658 conftest$ac_exeext
9659 if ${ac_cv_search_exc_resume+:} false; then :
9660 break
9662 done
9663 if ${ac_cv_search_exc_resume+:} false; then :
9665 else
9666 ac_cv_search_exc_resume=no
9668 rm conftest.$ac_ext
9669 LIBS=$ac_func_search_save_LIBS
9671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
9672 $as_echo "$ac_cv_search_exc_resume" >&6; }
9673 ac_res=$ac_cv_search_exc_resume
9674 if test "$ac_res" != no; then :
9675 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9679 GNAT_LIBEXC="$LIBS"
9680 LIBS="$save_LIBS"
9683 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
9684 save_LIBS="$LIBS"
9685 LIBS=
9686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
9687 $as_echo_n "checking for library containing kstat_open... " >&6; }
9688 if ${ac_cv_search_kstat_open+:} false; then :
9689 $as_echo_n "(cached) " >&6
9690 else
9691 ac_func_search_save_LIBS=$LIBS
9692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9693 /* end confdefs.h. */
9695 /* Override any GCC internal prototype to avoid an error.
9696 Use char because int might match the return type of a GCC
9697 builtin and then its argument prototype would still apply. */
9698 #ifdef __cplusplus
9699 extern "C"
9700 #endif
9701 char kstat_open ();
9703 main ()
9705 return kstat_open ();
9707 return 0;
9709 _ACEOF
9710 for ac_lib in '' kstat; do
9711 if test -z "$ac_lib"; then
9712 ac_res="none required"
9713 else
9714 ac_res=-l$ac_lib
9715 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9717 if ac_fn_cxx_try_link "$LINENO"; then :
9718 ac_cv_search_kstat_open=$ac_res
9720 rm -f core conftest.err conftest.$ac_objext \
9721 conftest$ac_exeext
9722 if ${ac_cv_search_kstat_open+:} false; then :
9723 break
9725 done
9726 if ${ac_cv_search_kstat_open+:} false; then :
9728 else
9729 ac_cv_search_kstat_open=no
9731 rm conftest.$ac_ext
9732 LIBS=$ac_func_search_save_LIBS
9734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
9735 $as_echo "$ac_cv_search_kstat_open" >&6; }
9736 ac_res=$ac_cv_search_kstat_open
9737 if test "$ac_res" != no; then :
9738 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9742 EXTRA_GCC_LIBS="$LIBS"
9743 LIBS="$save_LIBS"
9746 # Solaris needs libsocket and libnsl for socket functions before 11.4.
9747 # C++ needs those for libcody.
9748 save_LIBS="$LIBS"
9749 LIBS=
9751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
9752 $as_echo_n "checking for library containing gethostbyname... " >&6; }
9753 if ${ac_cv_search_gethostbyname+:} false; then :
9754 $as_echo_n "(cached) " >&6
9755 else
9756 ac_func_search_save_LIBS=$LIBS
9757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9758 /* end confdefs.h. */
9760 /* Override any GCC internal prototype to avoid an error.
9761 Use char because int might match the return type of a GCC
9762 builtin and then its argument prototype would still apply. */
9763 #ifdef __cplusplus
9764 extern "C"
9765 #endif
9766 char gethostbyname ();
9768 main ()
9770 return gethostbyname ();
9772 return 0;
9774 _ACEOF
9775 for ac_lib in '' nsl; do
9776 if test -z "$ac_lib"; then
9777 ac_res="none required"
9778 else
9779 ac_res=-l$ac_lib
9780 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9782 if ac_fn_cxx_try_link "$LINENO"; then :
9783 ac_cv_search_gethostbyname=$ac_res
9785 rm -f core conftest.err conftest.$ac_objext \
9786 conftest$ac_exeext
9787 if ${ac_cv_search_gethostbyname+:} false; then :
9788 break
9790 done
9791 if ${ac_cv_search_gethostbyname+:} false; then :
9793 else
9794 ac_cv_search_gethostbyname=no
9796 rm conftest.$ac_ext
9797 LIBS=$ac_func_search_save_LIBS
9799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
9800 $as_echo "$ac_cv_search_gethostbyname" >&6; }
9801 ac_res=$ac_cv_search_gethostbyname
9802 if test "$ac_res" != no; then :
9803 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
9808 $as_echo_n "checking for library containing socket... " >&6; }
9809 if ${ac_cv_search_socket+:} false; then :
9810 $as_echo_n "(cached) " >&6
9811 else
9812 ac_func_search_save_LIBS=$LIBS
9813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9814 /* end confdefs.h. */
9816 /* Override any GCC internal prototype to avoid an error.
9817 Use char because int might match the return type of a GCC
9818 builtin and then its argument prototype would still apply. */
9819 #ifdef __cplusplus
9820 extern "C"
9821 #endif
9822 char socket ();
9824 main ()
9826 return socket ();
9828 return 0;
9830 _ACEOF
9831 for ac_lib in '' socket; do
9832 if test -z "$ac_lib"; then
9833 ac_res="none required"
9834 else
9835 ac_res=-l$ac_lib
9836 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9838 if ac_fn_cxx_try_link "$LINENO"; then :
9839 ac_cv_search_socket=$ac_res
9841 rm -f core conftest.err conftest.$ac_objext \
9842 conftest$ac_exeext
9843 if ${ac_cv_search_socket+:} false; then :
9844 break
9846 done
9847 if ${ac_cv_search_socket+:} false; then :
9849 else
9850 ac_cv_search_socket=no
9852 rm conftest.$ac_ext
9853 LIBS=$ac_func_search_save_LIBS
9855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
9856 $as_echo "$ac_cv_search_socket" >&6; }
9857 ac_res=$ac_cv_search_socket
9858 if test "$ac_res" != no; then :
9859 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9861 else
9863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
9864 $as_echo_n "checking for socket in -lsocket... " >&6; }
9865 if ${ac_cv_lib_socket_socket+:} false; then :
9866 $as_echo_n "(cached) " >&6
9867 else
9868 ac_check_lib_save_LIBS=$LIBS
9869 LIBS="-lsocket -lnsl $LIBS"
9870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9871 /* end confdefs.h. */
9873 /* Override any GCC internal prototype to avoid an error.
9874 Use char because int might match the return type of a GCC
9875 builtin and then its argument prototype would still apply. */
9876 #ifdef __cplusplus
9877 extern "C"
9878 #endif
9879 char socket ();
9881 main ()
9883 return socket ();
9885 return 0;
9887 _ACEOF
9888 if ac_fn_cxx_try_link "$LINENO"; then :
9889 ac_cv_lib_socket_socket=yes
9890 else
9891 ac_cv_lib_socket_socket=no
9893 rm -f core conftest.err conftest.$ac_objext \
9894 conftest$ac_exeext conftest.$ac_ext
9895 LIBS=$ac_check_lib_save_LIBS
9897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
9898 $as_echo "$ac_cv_lib_socket_socket" >&6; }
9899 if test "x$ac_cv_lib_socket_socket" = xyes; then :
9900 LIBS="-lsocket -lnsl $LIBS"
9906 NETLIBS="$LIBS"
9907 LIBS="$save_LIBS"
9910 # Some systems put ldexp and frexp in libm instead of libc; assume
9911 # they're both in the same place. jcf-dump needs them.
9912 save_LIBS="$LIBS"
9913 LIBS=
9914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
9915 $as_echo_n "checking for library containing ldexp... " >&6; }
9916 if ${ac_cv_search_ldexp+:} false; then :
9917 $as_echo_n "(cached) " >&6
9918 else
9919 ac_func_search_save_LIBS=$LIBS
9920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9921 /* end confdefs.h. */
9923 /* Override any GCC internal prototype to avoid an error.
9924 Use char because int might match the return type of a GCC
9925 builtin and then its argument prototype would still apply. */
9926 #ifdef __cplusplus
9927 extern "C"
9928 #endif
9929 char ldexp ();
9931 main ()
9933 return ldexp ();
9935 return 0;
9937 _ACEOF
9938 for ac_lib in '' m; do
9939 if test -z "$ac_lib"; then
9940 ac_res="none required"
9941 else
9942 ac_res=-l$ac_lib
9943 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9945 if ac_fn_cxx_try_link "$LINENO"; then :
9946 ac_cv_search_ldexp=$ac_res
9948 rm -f core conftest.err conftest.$ac_objext \
9949 conftest$ac_exeext
9950 if ${ac_cv_search_ldexp+:} false; then :
9951 break
9953 done
9954 if ${ac_cv_search_ldexp+:} false; then :
9956 else
9957 ac_cv_search_ldexp=no
9959 rm conftest.$ac_ext
9960 LIBS=$ac_func_search_save_LIBS
9962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
9963 $as_echo "$ac_cv_search_ldexp" >&6; }
9964 ac_res=$ac_cv_search_ldexp
9965 if test "$ac_res" != no; then :
9966 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9970 LDEXP_LIB="$LIBS"
9971 LIBS="$save_LIBS"
9974 # Some systems need dlopen
9975 save_LIBS="$LIBS"
9976 LIBS=
9977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
9978 $as_echo_n "checking for library containing dlopen... " >&6; }
9979 if ${ac_cv_search_dlopen+:} false; then :
9980 $as_echo_n "(cached) " >&6
9981 else
9982 ac_func_search_save_LIBS=$LIBS
9983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9984 /* end confdefs.h. */
9986 /* Override any GCC internal prototype to avoid an error.
9987 Use char because int might match the return type of a GCC
9988 builtin and then its argument prototype would still apply. */
9989 #ifdef __cplusplus
9990 extern "C"
9991 #endif
9992 char dlopen ();
9994 main ()
9996 return dlopen ();
9998 return 0;
10000 _ACEOF
10001 for ac_lib in '' dl; do
10002 if test -z "$ac_lib"; then
10003 ac_res="none required"
10004 else
10005 ac_res=-l$ac_lib
10006 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10008 if ac_fn_cxx_try_link "$LINENO"; then :
10009 ac_cv_search_dlopen=$ac_res
10011 rm -f core conftest.err conftest.$ac_objext \
10012 conftest$ac_exeext
10013 if ${ac_cv_search_dlopen+:} false; then :
10014 break
10016 done
10017 if ${ac_cv_search_dlopen+:} false; then :
10019 else
10020 ac_cv_search_dlopen=no
10022 rm conftest.$ac_ext
10023 LIBS=$ac_func_search_save_LIBS
10025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
10026 $as_echo "$ac_cv_search_dlopen" >&6; }
10027 ac_res=$ac_cv_search_dlopen
10028 if test "$ac_res" != no; then :
10029 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10033 DL_LIB="$LIBS"
10034 LIBS="$save_LIBS"
10037 # Use <inttypes.h> only if it exists,
10038 # doesn't clash with <sys/types.h>, declares intmax_t and defines
10039 # PRId64
10040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
10041 $as_echo_n "checking for inttypes.h... " >&6; }
10042 if ${gcc_cv_header_inttypes_h+:} false; then :
10043 $as_echo_n "(cached) " >&6
10044 else
10045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10046 /* end confdefs.h. */
10047 #define __STDC_FORMAT_MACROS
10048 #include <sys/types.h>
10049 #include <inttypes.h>
10051 main ()
10053 intmax_t i = -1;
10054 #ifndef PRId64
10055 choke me
10056 #endif
10058 return 0;
10060 _ACEOF
10061 if ac_fn_cxx_try_compile "$LINENO"; then :
10062 gcc_cv_header_inttypes_h=yes
10063 else
10064 gcc_cv_header_inttypes_h=no
10066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
10070 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
10071 if test $gcc_cv_header_inttypes_h = yes; then
10073 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
10077 # Look for the ZSTD package.
10078 ZSTD_INCLUDE=
10079 ZSTD_LIB=
10082 ZSTD_CPPFLAGS=
10083 ZSTD_LDFLAGS=
10087 # Check whether --with-zstd was given.
10088 if test "${with_zstd+set}" = set; then :
10089 withval=$with_zstd;
10093 # Check whether --with-zstd-include was given.
10094 if test "${with_zstd_include+set}" = set; then :
10095 withval=$with_zstd_include;
10099 # Check whether --with-zstd-lib was given.
10100 if test "${with_zstd_lib+set}" = set; then :
10101 withval=$with_zstd_lib;
10104 case "x$with_zstd" in
10105 x) ;;
10106 xno)
10107 ZSTD_INCLUDE=
10108 ZSTD_LIB=
10110 *) ZSTD_INCLUDE=$with_zstd/include
10111 ZSTD_LIB=$with_zstd/lib
10113 esac
10115 if test "x$with_zstd" != xno; then
10116 if test "x$with_zstd_include" != x; then
10117 ZSTD_INCLUDE=$with_zstd_include
10119 if test "x$with_zstd_lib" != x; then
10120 ZSTD_LIB=$with_zstd_lib
10122 if test "x$ZSTD_INCLUDE" != x \
10123 && test "x$ZSTD_INCLUDE" != xno; then
10124 ZSTD_CPPFLAGS=-I$ZSTD_INCLUDE
10126 if test "x$ZSTD_LIB" != x \
10127 && test "x$ZSTD_LIB" != xno; then
10128 ZSTD_LDFLAGS=-L$ZSTD_LIB
10131 CXXFLAGS="$CXXFLAGS $ZSTD_CPPFLAGS"
10132 LDFLAGS="$LDFLAGS $ZSTD_LDFLAGS"
10134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zstd.h" >&5
10135 $as_echo_n "checking for zstd.h... " >&6; }
10136 if ${gcc_cv_header_zstd_h+:} false; then :
10137 $as_echo_n "(cached) " >&6
10138 else
10139 # We require version 1.3.0 or later. This is the first version that has
10140 # ZSTD_getFrameContentSize.
10141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10142 /* end confdefs.h. */
10143 #include <zstd.h>
10144 #if ZSTD_VERSION_NUMBER < 10300
10145 #error "need zstd 1.3.0 or better"
10146 #endif
10148 main ()
10152 return 0;
10154 _ACEOF
10155 if ac_fn_cxx_try_compile "$LINENO"; then :
10156 gcc_cv_header_zstd_h=yes
10157 else
10158 gcc_cv_header_zstd_h=no
10160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_zstd_h" >&5
10164 $as_echo "$gcc_cv_header_zstd_h" >&6; }
10165 if test $gcc_cv_header_zstd_h = yes; then
10167 $as_echo "#define HAVE_ZSTD_H 1" >>confdefs.h
10169 elif test "x$with_zstd" != x; then
10170 as_fn_error $? "Unable to find zstd.h. See config.log for details." "$LINENO" 5
10173 # LTO can use zstd compression algorithm
10174 save_LIBS="$LIBS"
10175 LIBS=
10176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ZSTD_compress" >&5
10177 $as_echo_n "checking for library containing ZSTD_compress... " >&6; }
10178 if ${ac_cv_search_ZSTD_compress+:} false; then :
10179 $as_echo_n "(cached) " >&6
10180 else
10181 ac_func_search_save_LIBS=$LIBS
10182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10183 /* end confdefs.h. */
10185 /* Override any GCC internal prototype to avoid an error.
10186 Use char because int might match the return type of a GCC
10187 builtin and then its argument prototype would still apply. */
10188 #ifdef __cplusplus
10189 extern "C"
10190 #endif
10191 char ZSTD_compress ();
10193 main ()
10195 return ZSTD_compress ();
10197 return 0;
10199 _ACEOF
10200 for ac_lib in '' zstd; do
10201 if test -z "$ac_lib"; then
10202 ac_res="none required"
10203 else
10204 ac_res=-l$ac_lib
10205 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10207 if ac_fn_cxx_try_link "$LINENO"; then :
10208 ac_cv_search_ZSTD_compress=$ac_res
10210 rm -f core conftest.err conftest.$ac_objext \
10211 conftest$ac_exeext
10212 if ${ac_cv_search_ZSTD_compress+:} false; then :
10213 break
10215 done
10216 if ${ac_cv_search_ZSTD_compress+:} false; then :
10218 else
10219 ac_cv_search_ZSTD_compress=no
10221 rm conftest.$ac_ext
10222 LIBS=$ac_func_search_save_LIBS
10224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ZSTD_compress" >&5
10225 $as_echo "$ac_cv_search_ZSTD_compress" >&6; }
10226 ac_res=$ac_cv_search_ZSTD_compress
10227 if test "$ac_res" != no; then :
10228 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10232 ZSTD_LIB="$LIBS"
10233 LIBS="$save_LIBS"
10239 for ac_func in times clock kill getrlimit setrlimit atoq \
10240 popen sysconf strsignal getrusage nl_langinfo \
10241 gettimeofday mbstowcs wcswidth mmap posix_fallocate setlocale \
10242 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
10243 do :
10244 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10245 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
10246 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10247 cat >>confdefs.h <<_ACEOF
10248 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10249 _ACEOF
10252 done
10255 if test x$ac_cv_func_mbstowcs = xyes; then
10256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
10257 $as_echo_n "checking whether mbstowcs works... " >&6; }
10258 if ${gcc_cv_func_mbstowcs_works+:} false; then :
10259 $as_echo_n "(cached) " >&6
10260 else
10261 if test "$cross_compiling" = yes; then :
10262 gcc_cv_func_mbstowcs_works=yes
10263 else
10264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10265 /* end confdefs.h. */
10266 #include <stdlib.h>
10267 int main()
10269 mbstowcs(0, "", 0);
10270 return 0;
10272 _ACEOF
10273 if ac_fn_cxx_try_run "$LINENO"; then :
10274 gcc_cv_func_mbstowcs_works=yes
10275 else
10276 gcc_cv_func_mbstowcs_works=no
10278 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10279 conftest.$ac_objext conftest.beam conftest.$ac_ext
10283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
10284 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
10285 if test x$gcc_cv_func_mbstowcs_works = xyes; then
10287 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
10292 ac_fn_cxx_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
10293 if test "x$ac_cv_type_ssize_t" = xyes; then :
10295 else
10297 cat >>confdefs.h <<_ACEOF
10298 #define ssize_t int
10299 _ACEOF
10303 ac_fn_cxx_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
10304 if test "x$ac_cv_type_caddr_t" = xyes; then :
10306 else
10308 cat >>confdefs.h <<_ACEOF
10309 #define caddr_t char *
10310 _ACEOF
10314 ac_fn_cxx_check_type "$LINENO" "sighander_t" "ac_cv_type_sighander_t" "signal.h
10316 if test "x$ac_cv_type_sighander_t" = xyes; then :
10318 $as_echo "#define HAVE_SIGHANDLER_T 1" >>confdefs.h
10324 ac_fn_cxx_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
10325 if test "x$ac_cv_header_sys_mman_h" = xyes; then :
10326 gcc_header_sys_mman_h=yes
10327 else
10328 gcc_header_sys_mman_h=no
10331 ac_fn_cxx_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
10332 if test "x$ac_cv_func_mmap" = xyes; then :
10333 gcc_func_mmap=yes
10334 else
10335 gcc_func_mmap=no
10338 if test "$gcc_header_sys_mman_h" != yes \
10339 || test "$gcc_func_mmap" != yes; then
10340 gcc_cv_func_mmap_file=no
10341 gcc_cv_func_mmap_dev_zero=no
10342 gcc_cv_func_mmap_anon=no
10343 else
10344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
10345 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
10346 if ${gcc_cv_func_mmap_file+:} false; then :
10347 $as_echo_n "(cached) " >&6
10348 else
10349 # Add a system to this blacklist if
10350 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
10351 # memory area containing the same data that you'd get if you applied
10352 # read() to the same fd. The only system known to have a problem here
10353 # is VMS, where text files have record structure.
10354 case "$host_os" in
10355 *vms* | ultrix*)
10356 gcc_cv_func_mmap_file=no ;;
10358 gcc_cv_func_mmap_file=yes;;
10359 esac
10361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
10362 $as_echo "$gcc_cv_func_mmap_file" >&6; }
10363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
10364 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
10365 if ${gcc_cv_func_mmap_dev_zero+:} false; then :
10366 $as_echo_n "(cached) " >&6
10367 else
10368 # Add a system to this blacklist if it has mmap() but /dev/zero
10369 # does not exist, or if mmapping /dev/zero does not give anonymous
10370 # zeroed pages with both the following properties:
10371 # 1. If you map N consecutive pages in with one call, and then
10372 # unmap any subset of those pages, the pages that were not
10373 # explicitly unmapped remain accessible.
10374 # 2. If you map two adjacent blocks of memory and then unmap them
10375 # both at once, they must both go away.
10376 # Systems known to be in this category are Windows (all variants),
10377 # VMS, and Darwin.
10378 case "$host_os" in
10379 *vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
10380 gcc_cv_func_mmap_dev_zero=no ;;
10382 gcc_cv_func_mmap_dev_zero=yes;;
10383 esac
10385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
10386 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
10388 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
10389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
10390 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
10391 if ${gcc_cv_decl_map_anon+:} false; then :
10392 $as_echo_n "(cached) " >&6
10393 else
10394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10395 /* end confdefs.h. */
10396 #include <sys/types.h>
10397 #include <sys/mman.h>
10398 #include <unistd.h>
10400 #ifndef MAP_ANONYMOUS
10401 #define MAP_ANONYMOUS MAP_ANON
10402 #endif
10405 main ()
10407 int n = MAP_ANONYMOUS;
10409 return 0;
10411 _ACEOF
10412 if ac_fn_cxx_try_compile "$LINENO"; then :
10413 gcc_cv_decl_map_anon=yes
10414 else
10415 gcc_cv_decl_map_anon=no
10417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
10420 $as_echo "$gcc_cv_decl_map_anon" >&6; }
10422 if test $gcc_cv_decl_map_anon = no; then
10423 gcc_cv_func_mmap_anon=no
10424 else
10425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
10426 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
10427 if ${gcc_cv_func_mmap_anon+:} false; then :
10428 $as_echo_n "(cached) " >&6
10429 else
10430 # Add a system to this blacklist if it has mmap() and MAP_ANON or
10431 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
10432 # doesn't give anonymous zeroed pages with the same properties listed
10433 # above for use of /dev/zero.
10434 # Systems known to be in this category are Windows, VMS, and SCO Unix.
10435 case "$host_os" in
10436 *vms* | cygwin* | pe | mingw* | sco* | udk* )
10437 gcc_cv_func_mmap_anon=no ;;
10439 gcc_cv_func_mmap_anon=yes;;
10440 esac
10442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
10443 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
10447 if test $gcc_cv_func_mmap_file = yes; then
10449 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
10452 if test $gcc_cv_func_mmap_dev_zero = yes; then
10454 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
10457 if test $gcc_cv_func_mmap_anon = yes; then
10459 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
10464 case "${host}" in
10465 *-*-*vms*)
10466 # Under VMS, vfork works very differently than on Unix. The standard test
10467 # won't work, and it isn't easily adaptable. It makes more sense to
10468 # just force it.
10469 ac_cv_func_vfork_works=yes
10471 esac
10472 ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
10473 if test "x$ac_cv_type_pid_t" = xyes; then :
10475 else
10477 cat >>confdefs.h <<_ACEOF
10478 #define pid_t int
10479 _ACEOF
10483 for ac_header in vfork.h
10484 do :
10485 ac_fn_cxx_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
10486 if test "x$ac_cv_header_vfork_h" = xyes; then :
10487 cat >>confdefs.h <<_ACEOF
10488 #define HAVE_VFORK_H 1
10489 _ACEOF
10492 done
10494 for ac_func in fork vfork
10495 do :
10496 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10497 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
10498 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10499 cat >>confdefs.h <<_ACEOF
10500 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10501 _ACEOF
10504 done
10506 if test "x$ac_cv_func_fork" = xyes; then
10507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
10508 $as_echo_n "checking for working fork... " >&6; }
10509 if ${ac_cv_func_fork_works+:} false; then :
10510 $as_echo_n "(cached) " >&6
10511 else
10512 if test "$cross_compiling" = yes; then :
10513 ac_cv_func_fork_works=cross
10514 else
10515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10516 /* end confdefs.h. */
10517 $ac_includes_default
10519 main ()
10522 /* By Ruediger Kuhlmann. */
10523 return fork () < 0;
10526 return 0;
10528 _ACEOF
10529 if ac_fn_cxx_try_run "$LINENO"; then :
10530 ac_cv_func_fork_works=yes
10531 else
10532 ac_cv_func_fork_works=no
10534 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10535 conftest.$ac_objext conftest.beam conftest.$ac_ext
10539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
10540 $as_echo "$ac_cv_func_fork_works" >&6; }
10542 else
10543 ac_cv_func_fork_works=$ac_cv_func_fork
10545 if test "x$ac_cv_func_fork_works" = xcross; then
10546 case $host in
10547 *-*-amigaos* | *-*-msdosdjgpp*)
10548 # Override, as these systems have only a dummy fork() stub
10549 ac_cv_func_fork_works=no
10552 ac_cv_func_fork_works=yes
10554 esac
10555 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
10556 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
10558 ac_cv_func_vfork_works=$ac_cv_func_vfork
10559 if test "x$ac_cv_func_vfork" = xyes; then
10560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
10561 $as_echo_n "checking for working vfork... " >&6; }
10562 if ${ac_cv_func_vfork_works+:} false; then :
10563 $as_echo_n "(cached) " >&6
10564 else
10565 if test "$cross_compiling" = yes; then :
10566 ac_cv_func_vfork_works=cross
10567 else
10568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10569 /* end confdefs.h. */
10570 /* Thanks to Paul Eggert for this test. */
10571 $ac_includes_default
10572 #include <sys/wait.h>
10573 #ifdef HAVE_VFORK_H
10574 # include <vfork.h>
10575 #endif
10576 /* On some sparc systems, changes by the child to local and incoming
10577 argument registers are propagated back to the parent. The compiler
10578 is told about this with #include <vfork.h>, but some compilers
10579 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
10580 static variable whose address is put into a register that is
10581 clobbered by the vfork. */
10582 static void
10583 #ifdef __cplusplus
10584 sparc_address_test (int arg)
10585 # else
10586 sparc_address_test (arg) int arg;
10587 #endif
10589 static pid_t child;
10590 if (!child) {
10591 child = vfork ();
10592 if (child < 0) {
10593 perror ("vfork");
10594 _exit(2);
10596 if (!child) {
10597 arg = getpid();
10598 write(-1, "", 0);
10599 _exit (arg);
10605 main ()
10607 pid_t parent = getpid ();
10608 pid_t child;
10610 sparc_address_test (0);
10612 child = vfork ();
10614 if (child == 0) {
10615 /* Here is another test for sparc vfork register problems. This
10616 test uses lots of local variables, at least as many local
10617 variables as main has allocated so far including compiler
10618 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
10619 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
10620 reuse the register of parent for one of the local variables,
10621 since it will think that parent can't possibly be used any more
10622 in this routine. Assigning to the local variable will thus
10623 munge parent in the parent process. */
10624 pid_t
10625 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10626 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10627 /* Convince the compiler that p..p7 are live; otherwise, it might
10628 use the same hardware register for all 8 local variables. */
10629 if (p != p1 || p != p2 || p != p3 || p != p4
10630 || p != p5 || p != p6 || p != p7)
10631 _exit(1);
10633 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10634 from child file descriptors. If the child closes a descriptor
10635 before it execs or exits, this munges the parent's descriptor
10636 as well. Test for this by closing stdout in the child. */
10637 _exit(close(fileno(stdout)) != 0);
10638 } else {
10639 int status;
10640 struct stat st;
10642 while (wait(&status) != child)
10644 return (
10645 /* Was there some problem with vforking? */
10646 child < 0
10648 /* Did the child fail? (This shouldn't happen.) */
10649 || status
10651 /* Did the vfork/compiler bug occur? */
10652 || parent != getpid()
10654 /* Did the file descriptor bug occur? */
10655 || fstat(fileno(stdout), &st) != 0
10659 _ACEOF
10660 if ac_fn_cxx_try_run "$LINENO"; then :
10661 ac_cv_func_vfork_works=yes
10662 else
10663 ac_cv_func_vfork_works=no
10665 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10666 conftest.$ac_objext conftest.beam conftest.$ac_ext
10670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
10671 $as_echo "$ac_cv_func_vfork_works" >&6; }
10674 if test "x$ac_cv_func_fork_works" = xcross; then
10675 ac_cv_func_vfork_works=$ac_cv_func_vfork
10676 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10677 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10680 if test "x$ac_cv_func_vfork_works" = xyes; then
10682 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
10684 else
10686 $as_echo "#define vfork fork" >>confdefs.h
10689 if test "x$ac_cv_func_fork_works" = xyes; then
10691 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
10697 if test "X$prefix" = "XNONE"; then
10698 acl_final_prefix="$ac_default_prefix"
10699 else
10700 acl_final_prefix="$prefix"
10702 if test "X$exec_prefix" = "XNONE"; then
10703 acl_final_exec_prefix='${prefix}'
10704 else
10705 acl_final_exec_prefix="$exec_prefix"
10707 acl_save_prefix="$prefix"
10708 prefix="$acl_final_prefix"
10709 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10710 prefix="$acl_save_prefix"
10713 # Check whether --with-gnu-ld was given.
10714 if test "${with_gnu_ld+set}" = set; then :
10715 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10716 else
10717 with_gnu_ld=no
10720 # Prepare PATH_SEPARATOR.
10721 # The user is always right.
10722 if test "${PATH_SEPARATOR+set}" != set; then
10723 echo "#! /bin/sh" >conf$$.sh
10724 echo "exit 0" >>conf$$.sh
10725 chmod +x conf$$.sh
10726 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10727 PATH_SEPARATOR=';'
10728 else
10729 PATH_SEPARATOR=:
10731 rm -f conf$$.sh
10733 ac_prog=ld
10734 if test "$GCC" = yes; then
10735 # Check if gcc -print-prog-name=ld gives a path.
10736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
10737 $as_echo_n "checking for ld used by GCC... " >&6; }
10738 case $host in
10739 *-*-mingw*)
10740 # gcc leaves a trailing carriage return which upsets mingw
10741 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10743 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10744 esac
10745 case $ac_prog in
10746 # Accept absolute paths.
10747 [\\/]* | [A-Za-z]:[\\/]*)
10748 re_direlt='/[^/][^/]*/\.\./'
10749 # Canonicalize the path of ld
10750 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10751 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10752 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10753 done
10754 test -z "$LD" && LD="$ac_prog"
10757 # If it fails, then pretend we aren't using GCC.
10758 ac_prog=ld
10761 # If it is relative, then search for the first ld in PATH.
10762 with_gnu_ld=unknown
10764 esac
10765 elif test "$with_gnu_ld" = yes; then
10766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
10767 $as_echo_n "checking for GNU ld... " >&6; }
10768 else
10769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
10770 $as_echo_n "checking for non-GNU ld... " >&6; }
10772 if ${acl_cv_path_LD+:} false; then :
10773 $as_echo_n "(cached) " >&6
10774 else
10775 if test -z "$LD"; then
10776 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10777 for ac_dir in $PATH; do
10778 test -z "$ac_dir" && ac_dir=.
10779 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10780 acl_cv_path_LD="$ac_dir/$ac_prog"
10781 # Check to see if the program is GNU ld. I'd rather use --version,
10782 # but apparently some GNU ld's only accept -v.
10783 # Break only if it was the GNU/non-GNU ld that we prefer.
10784 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
10785 test "$with_gnu_ld" != no && break
10786 else
10787 test "$with_gnu_ld" != yes && break
10790 done
10791 IFS="$ac_save_ifs"
10792 else
10793 acl_cv_path_LD="$LD" # Let the user override the test with a path.
10797 LD="$acl_cv_path_LD"
10798 if test -n "$LD"; then
10799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10800 $as_echo "$LD" >&6; }
10801 else
10802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10803 $as_echo "no" >&6; }
10805 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
10806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
10807 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
10808 if ${acl_cv_prog_gnu_ld+:} false; then :
10809 $as_echo_n "(cached) " >&6
10810 else
10811 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10812 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
10813 acl_cv_prog_gnu_ld=yes
10814 else
10815 acl_cv_prog_gnu_ld=no
10818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
10819 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
10820 with_gnu_ld=$acl_cv_prog_gnu_ld
10824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
10825 $as_echo_n "checking for shared library run path origin... " >&6; }
10826 if ${acl_cv_rpath+:} false; then :
10827 $as_echo_n "(cached) " >&6
10828 else
10830 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10831 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10832 . ./conftest.sh
10833 rm -f ./conftest.sh
10834 acl_cv_rpath=done
10837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
10838 $as_echo "$acl_cv_rpath" >&6; }
10839 wl="$acl_cv_wl"
10840 libext="$acl_cv_libext"
10841 shlibext="$acl_cv_shlibext"
10842 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10843 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10844 hardcode_direct="$acl_cv_hardcode_direct"
10845 hardcode_minus_L="$acl_cv_hardcode_minus_L"
10846 # Check whether --enable-rpath was given.
10847 if test "${enable_rpath+set}" = set; then :
10848 enableval=$enable_rpath; :
10849 else
10850 enable_rpath=yes
10860 use_additional=yes
10862 acl_save_prefix="$prefix"
10863 prefix="$acl_final_prefix"
10864 acl_save_exec_prefix="$exec_prefix"
10865 exec_prefix="$acl_final_exec_prefix"
10867 eval additional_includedir=\"$includedir\"
10868 eval additional_libdir=\"$libdir\"
10870 exec_prefix="$acl_save_exec_prefix"
10871 prefix="$acl_save_prefix"
10874 # Check whether --with-libiconv-prefix was given.
10875 if test "${with_libiconv_prefix+set}" = set; then :
10876 withval=$with_libiconv_prefix;
10877 if test "X$withval" = "Xno"; then
10878 use_additional=no
10879 else
10880 if test "X$withval" = "X"; then
10882 acl_save_prefix="$prefix"
10883 prefix="$acl_final_prefix"
10884 acl_save_exec_prefix="$exec_prefix"
10885 exec_prefix="$acl_final_exec_prefix"
10887 eval additional_includedir=\"$includedir\"
10888 eval additional_libdir=\"$libdir\"
10890 exec_prefix="$acl_save_exec_prefix"
10891 prefix="$acl_save_prefix"
10893 else
10894 additional_includedir="$withval/include"
10895 additional_libdir="$withval/lib"
10902 # Check whether --with-libiconv-type was given.
10903 if test "${with_libiconv_type+set}" = set; then :
10904 withval=$with_libiconv_type; with_libiconv_type=$withval
10905 else
10906 with_libiconv_type=auto
10909 lib_type=`eval echo \$with_libiconv_type`
10911 LIBICONV=
10912 LTLIBICONV=
10913 INCICONV=
10914 rpathdirs=
10915 ltrpathdirs=
10916 names_already_handled=
10917 names_next_round='iconv '
10918 while test -n "$names_next_round"; do
10919 names_this_round="$names_next_round"
10920 names_next_round=
10921 for name in $names_this_round; do
10922 already_handled=
10923 for n in $names_already_handled; do
10924 if test "$n" = "$name"; then
10925 already_handled=yes
10926 break
10928 done
10929 if test -z "$already_handled"; then
10930 names_already_handled="$names_already_handled $name"
10931 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10932 eval value=\"\$HAVE_LIB$uppername\"
10933 if test -n "$value"; then
10934 if test "$value" = yes; then
10935 eval value=\"\$LIB$uppername\"
10936 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
10937 eval value=\"\$LTLIB$uppername\"
10938 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
10939 else
10942 else
10943 found_dir=
10944 found_la=
10945 found_so=
10946 found_a=
10947 if test $use_additional = yes; then
10948 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
10949 found_dir="$additional_libdir"
10950 found_so="$additional_libdir/lib$name.$shlibext"
10951 if test -f "$additional_libdir/lib$name.la"; then
10952 found_la="$additional_libdir/lib$name.la"
10954 elif test x$lib_type != xshared; then
10955 if test -f "$additional_libdir/lib$name.$libext"; then
10956 found_dir="$additional_libdir"
10957 found_a="$additional_libdir/lib$name.$libext"
10958 if test -f "$additional_libdir/lib$name.la"; then
10959 found_la="$additional_libdir/lib$name.la"
10964 if test "X$found_dir" = "X"; then
10965 for x in $LDFLAGS $LTLIBICONV; do
10967 acl_save_prefix="$prefix"
10968 prefix="$acl_final_prefix"
10969 acl_save_exec_prefix="$exec_prefix"
10970 exec_prefix="$acl_final_exec_prefix"
10971 eval x=\"$x\"
10972 exec_prefix="$acl_save_exec_prefix"
10973 prefix="$acl_save_prefix"
10975 case "$x" in
10976 -L*)
10977 dir=`echo "X$x" | sed -e 's/^X-L//'`
10978 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
10979 found_dir="$dir"
10980 found_so="$dir/lib$name.$shlibext"
10981 if test -f "$dir/lib$name.la"; then
10982 found_la="$dir/lib$name.la"
10984 elif test x$lib_type != xshared; then
10985 if test -f "$dir/lib$name.$libext"; then
10986 found_dir="$dir"
10987 found_a="$dir/lib$name.$libext"
10988 if test -f "$dir/lib$name.la"; then
10989 found_la="$dir/lib$name.la"
10994 esac
10995 if test "X$found_dir" != "X"; then
10996 break
10998 done
11000 if test "X$found_dir" != "X"; then
11001 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
11002 if test "X$found_so" != "X"; then
11003 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
11004 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11005 else
11006 haveit=
11007 for x in $ltrpathdirs; do
11008 if test "X$x" = "X$found_dir"; then
11009 haveit=yes
11010 break
11012 done
11013 if test -z "$haveit"; then
11014 ltrpathdirs="$ltrpathdirs $found_dir"
11016 if test "$hardcode_direct" = yes; then
11017 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11018 else
11019 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
11020 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11021 haveit=
11022 for x in $rpathdirs; do
11023 if test "X$x" = "X$found_dir"; then
11024 haveit=yes
11025 break
11027 done
11028 if test -z "$haveit"; then
11029 rpathdirs="$rpathdirs $found_dir"
11031 else
11032 haveit=
11033 for x in $LDFLAGS $LIBICONV; do
11035 acl_save_prefix="$prefix"
11036 prefix="$acl_final_prefix"
11037 acl_save_exec_prefix="$exec_prefix"
11038 exec_prefix="$acl_final_exec_prefix"
11039 eval x=\"$x\"
11040 exec_prefix="$acl_save_exec_prefix"
11041 prefix="$acl_save_prefix"
11043 if test "X$x" = "X-L$found_dir"; then
11044 haveit=yes
11045 break
11047 done
11048 if test -z "$haveit"; then
11049 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
11051 if test "$hardcode_minus_L" != no; then
11052 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11053 else
11054 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11059 else
11060 if test "X$found_a" != "X"; then
11061 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
11062 else
11063 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
11066 additional_includedir=
11067 case "$found_dir" in
11068 */lib | */lib/)
11069 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
11070 additional_includedir="$basedir/include"
11072 esac
11073 if test "X$additional_includedir" != "X"; then
11074 if test "X$additional_includedir" != "X/usr/include"; then
11075 haveit=
11076 if test "X$additional_includedir" = "X/usr/local/include"; then
11077 if test -n "$GCC"; then
11078 case $host_os in
11079 linux*) haveit=yes;;
11080 esac
11083 if test -z "$haveit"; then
11084 for x in $CPPFLAGS $INCICONV; do
11086 acl_save_prefix="$prefix"
11087 prefix="$acl_final_prefix"
11088 acl_save_exec_prefix="$exec_prefix"
11089 exec_prefix="$acl_final_exec_prefix"
11090 eval x=\"$x\"
11091 exec_prefix="$acl_save_exec_prefix"
11092 prefix="$acl_save_prefix"
11094 if test "X$x" = "X-I$additional_includedir"; then
11095 haveit=yes
11096 break
11098 done
11099 if test -z "$haveit"; then
11100 if test -d "$additional_includedir"; then
11101 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
11107 if test -n "$found_la"; then
11108 save_libdir="$libdir"
11109 case "$found_la" in
11110 */* | *\\*) . "$found_la" ;;
11111 *) . "./$found_la" ;;
11112 esac
11113 libdir="$save_libdir"
11114 for dep in $dependency_libs; do
11115 case "$dep" in
11116 -L*)
11117 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
11118 if test "X$additional_libdir" != "X/usr/lib"; then
11119 haveit=
11120 if test "X$additional_libdir" = "X/usr/local/lib"; then
11121 if test -n "$GCC"; then
11122 case $host_os in
11123 linux*) haveit=yes;;
11124 esac
11127 if test -z "$haveit"; then
11128 haveit=
11129 for x in $LDFLAGS $LIBICONV; do
11131 acl_save_prefix="$prefix"
11132 prefix="$acl_final_prefix"
11133 acl_save_exec_prefix="$exec_prefix"
11134 exec_prefix="$acl_final_exec_prefix"
11135 eval x=\"$x\"
11136 exec_prefix="$acl_save_exec_prefix"
11137 prefix="$acl_save_prefix"
11139 if test "X$x" = "X-L$additional_libdir"; then
11140 haveit=yes
11141 break
11143 done
11144 if test -z "$haveit"; then
11145 if test -d "$additional_libdir"; then
11146 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
11149 haveit=
11150 for x in $LDFLAGS $LTLIBICONV; do
11152 acl_save_prefix="$prefix"
11153 prefix="$acl_final_prefix"
11154 acl_save_exec_prefix="$exec_prefix"
11155 exec_prefix="$acl_final_exec_prefix"
11156 eval x=\"$x\"
11157 exec_prefix="$acl_save_exec_prefix"
11158 prefix="$acl_save_prefix"
11160 if test "X$x" = "X-L$additional_libdir"; then
11161 haveit=yes
11162 break
11164 done
11165 if test -z "$haveit"; then
11166 if test -d "$additional_libdir"; then
11167 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
11173 -R*)
11174 dir=`echo "X$dep" | sed -e 's/^X-R//'`
11175 if test "$enable_rpath" != no; then
11176 haveit=
11177 for x in $rpathdirs; do
11178 if test "X$x" = "X$dir"; then
11179 haveit=yes
11180 break
11182 done
11183 if test -z "$haveit"; then
11184 rpathdirs="$rpathdirs $dir"
11186 haveit=
11187 for x in $ltrpathdirs; do
11188 if test "X$x" = "X$dir"; then
11189 haveit=yes
11190 break
11192 done
11193 if test -z "$haveit"; then
11194 ltrpathdirs="$ltrpathdirs $dir"
11198 -l*)
11199 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11201 *.la)
11202 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11205 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
11206 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
11208 esac
11209 done
11211 else
11212 if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
11213 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11214 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
11215 else
11216 LIBICONV="${LIBICONV}${LIBICONV:+ }-l:lib$name.$libext"
11217 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l:lib$name.$libext"
11222 done
11223 done
11224 if test "X$rpathdirs" != "X"; then
11225 if test -n "$hardcode_libdir_separator"; then
11226 alldirs=
11227 for found_dir in $rpathdirs; do
11228 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
11229 done
11230 acl_save_libdir="$libdir"
11231 libdir="$alldirs"
11232 eval flag=\"$hardcode_libdir_flag_spec\"
11233 libdir="$acl_save_libdir"
11234 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11235 else
11236 for found_dir in $rpathdirs; do
11237 acl_save_libdir="$libdir"
11238 libdir="$found_dir"
11239 eval flag=\"$hardcode_libdir_flag_spec\"
11240 libdir="$acl_save_libdir"
11241 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11242 done
11245 if test "X$ltrpathdirs" != "X"; then
11246 for found_dir in $ltrpathdirs; do
11247 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
11248 done
11257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
11258 $as_echo_n "checking for iconv... " >&6; }
11259 if ${am_cv_func_iconv+:} false; then :
11260 $as_echo_n "(cached) " >&6
11261 else
11263 am_cv_func_iconv="no, consider installing GNU libiconv"
11264 am_cv_lib_iconv=no
11265 am_save_CPPFLAGS="$CPPFLAGS"
11266 CPPFLAGS="$CPPFLAGS $INCICONV"
11267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11268 /* end confdefs.h. */
11269 #include <stdlib.h>
11270 #include <iconv.h>
11272 main ()
11274 iconv_t cd = iconv_open("","");
11275 iconv(cd,NULL,NULL,NULL,NULL);
11276 iconv_close(cd);
11278 return 0;
11280 _ACEOF
11281 if ac_fn_cxx_try_link "$LINENO"; then :
11282 am_cv_func_iconv=yes
11284 rm -f core conftest.err conftest.$ac_objext \
11285 conftest$ac_exeext conftest.$ac_ext
11286 CPPFLAGS="$am_save_CPPFLAGS"
11288 if test "$am_cv_func_iconv" != yes && test -d ../libiconv; then
11289 for _libs in .libs _libs; do
11290 am_save_CPPFLAGS="$CPPFLAGS"
11291 am_save_LIBS="$LIBS"
11292 CPPFLAGS="$CPPFLAGS -I../libiconv/include"
11293 LIBS="$LIBS ../libiconv/lib/$_libs/libiconv.a"
11294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11295 /* end confdefs.h. */
11296 #include <stdlib.h>
11297 #include <iconv.h>
11299 main ()
11301 iconv_t cd = iconv_open("","");
11302 iconv(cd,NULL,NULL,NULL,NULL);
11303 iconv_close(cd);
11305 return 0;
11307 _ACEOF
11308 if ac_fn_cxx_try_link "$LINENO"; then :
11309 INCICONV="-I../libiconv/include"
11310 LIBICONV='${top_builddir}'/../libiconv/lib/$_libs/libiconv.a
11311 LTLIBICONV='${top_builddir}'/../libiconv/lib/libiconv.la
11312 am_cv_lib_iconv=yes
11313 am_cv_func_iconv=yes
11315 rm -f core conftest.err conftest.$ac_objext \
11316 conftest$ac_exeext conftest.$ac_ext
11317 CPPFLAGS="$am_save_CPPFLAGS"
11318 LIBS="$am_save_LIBS"
11319 if test "$am_cv_func_iconv" = "yes"; then
11320 break
11322 done
11325 if test "$am_cv_func_iconv" != yes; then
11326 am_save_CPPFLAGS="$CPPFLAGS"
11327 am_save_LIBS="$LIBS"
11328 CPPFLAGS="$CPPFLAGS $INCICONV"
11329 LIBS="$LIBS $LIBICONV"
11330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11331 /* end confdefs.h. */
11332 #include <stdlib.h>
11333 #include <iconv.h>
11335 main ()
11337 iconv_t cd = iconv_open("","");
11338 iconv(cd,NULL,NULL,NULL,NULL);
11339 iconv_close(cd);
11341 return 0;
11343 _ACEOF
11344 if ac_fn_cxx_try_link "$LINENO"; then :
11345 am_cv_lib_iconv=yes
11346 am_cv_func_iconv=yes
11348 rm -f core conftest.err conftest.$ac_objext \
11349 conftest$ac_exeext conftest.$ac_ext
11350 CPPFLAGS="$am_save_CPPFLAGS"
11351 LIBS="$am_save_LIBS"
11355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
11356 $as_echo "$am_cv_func_iconv" >&6; }
11357 if test "$am_cv_func_iconv" = yes; then
11359 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
11362 if test "$am_cv_lib_iconv" = yes; then
11364 for element in $INCICONV; do
11365 haveit=
11366 for x in $CPPFLAGS; do
11368 acl_save_prefix="$prefix"
11369 prefix="$acl_final_prefix"
11370 acl_save_exec_prefix="$exec_prefix"
11371 exec_prefix="$acl_final_exec_prefix"
11372 eval x=\"$x\"
11373 exec_prefix="$acl_save_exec_prefix"
11374 prefix="$acl_save_prefix"
11376 if test "X$x" = "X$element"; then
11377 haveit=yes
11378 break
11380 done
11381 if test -z "$haveit"; then
11382 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11384 done
11386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
11387 $as_echo_n "checking how to link with libiconv... " >&6; }
11388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
11389 $as_echo "$LIBICONV" >&6; }
11390 else
11391 LIBICONV=
11392 LTLIBICONV=
11397 if test "$am_cv_func_iconv" = yes; then
11398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
11399 $as_echo_n "checking for iconv declaration... " >&6; }
11400 if ${am_cv_proto_iconv+:} false; then :
11401 $as_echo_n "(cached) " >&6
11402 else
11404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11405 /* end confdefs.h. */
11407 #include <stdlib.h>
11408 #include <iconv.h>
11409 extern
11410 #ifdef __cplusplus
11412 #endif
11413 #if defined(__STDC__) || defined(__cplusplus)
11414 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
11415 #else
11416 size_t iconv();
11417 #endif
11420 main ()
11424 return 0;
11426 _ACEOF
11427 if ac_fn_cxx_try_compile "$LINENO"; then :
11428 am_cv_proto_iconv_arg1=""
11429 else
11430 am_cv_proto_iconv_arg1="const"
11432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11433 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);"
11436 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
11437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
11438 }$am_cv_proto_iconv" >&5
11439 $as_echo "${ac_t:-
11440 }$am_cv_proto_iconv" >&6; }
11442 cat >>confdefs.h <<_ACEOF
11443 #define ICONV_CONST $am_cv_proto_iconv_arg1
11444 _ACEOF
11449 # Until we have in-tree GNU iconv:
11450 LIBICONV_DEP=
11451 if test -f "$LTLIBICONV"; then
11452 LIBICONV_DEP=$LTLIBICONV
11457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
11458 $as_echo_n "checking for LC_MESSAGES... " >&6; }
11459 if ${am_cv_val_LC_MESSAGES+:} false; then :
11460 $as_echo_n "(cached) " >&6
11461 else
11462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11463 /* end confdefs.h. */
11464 #include <locale.h>
11466 main ()
11468 return LC_MESSAGES
11470 return 0;
11472 _ACEOF
11473 if ac_fn_cxx_try_link "$LINENO"; then :
11474 am_cv_val_LC_MESSAGES=yes
11475 else
11476 am_cv_val_LC_MESSAGES=no
11478 rm -f core conftest.err conftest.$ac_objext \
11479 conftest$ac_exeext conftest.$ac_ext
11481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
11482 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
11483 if test $am_cv_val_LC_MESSAGES = yes; then
11485 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
11491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
11492 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
11493 if ${am_cv_langinfo_codeset+:} false; then :
11494 $as_echo_n "(cached) " >&6
11495 else
11496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11497 /* end confdefs.h. */
11498 #include <langinfo.h>
11500 main ()
11502 char* cs = nl_langinfo(CODESET);
11504 return 0;
11506 _ACEOF
11507 if ac_fn_cxx_try_link "$LINENO"; then :
11508 am_cv_langinfo_codeset=yes
11509 else
11510 am_cv_langinfo_codeset=no
11512 rm -f core conftest.err conftest.$ac_objext \
11513 conftest$ac_exeext conftest.$ac_ext
11516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
11517 $as_echo "$am_cv_langinfo_codeset" >&6; }
11518 if test $am_cv_langinfo_codeset = yes; then
11520 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
11525 # We will need to find libiberty.h and ansidecl.h
11526 saved_CFLAGS="$CFLAGS"
11527 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC -I${top_srcdir}/../../sdbinutils/include"
11528 saved_CXXFLAGS="$CXXFLAGS"
11529 CXXFLAGS="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC -I${srcdir}/../../sdbinutils/include"
11531 # gcc_AC_CHECK_DECLS doesn't support overloaded functions, so use the
11532 # normal autoconf function for these. But force definition of
11533 # HAVE_DECL_BASENAME like gcc_AC_CHECK_DECLS does, to suppress the bizarre
11534 # basename handling in libiberty.h.
11535 as_ac_Symbol=`$as_echo "ac_cv_have_decl_basename(const char*)" | $as_tr_sh`
11536 ac_fn_cxx_check_decl "$LINENO" "basename(const char*)" "$as_ac_Symbol" "
11537 #undef HAVE_DECL_BASENAME
11538 #define HAVE_DECL_BASENAME 1
11539 #include \"ansidecl.h\"
11540 #include \"system.h\"
11542 if eval test \"x\$"$as_ac_Symbol"\" = x"yes"; then :
11543 ac_have_decl=1
11544 else
11545 ac_have_decl=0
11548 cat >>confdefs.h <<_ACEOF
11549 #define HAVE_DECL_BASENAME $ac_have_decl
11550 _ACEOF
11551 as_ac_Symbol=`$as_echo "ac_cv_have_decl_strstr(const char*,const char*)" | $as_tr_sh`
11552 ac_fn_cxx_check_decl "$LINENO" "strstr(const char*,const char*)" "$as_ac_Symbol" "
11553 #undef HAVE_DECL_BASENAME
11554 #define HAVE_DECL_BASENAME 1
11555 #include \"ansidecl.h\"
11556 #include \"system.h\"
11558 if eval test \"x\$"$as_ac_Symbol"\" = x"yes"; then :
11559 ac_have_decl=1
11560 else
11561 ac_have_decl=0
11564 cat >>confdefs.h <<_ACEOF
11565 #define HAVE_DECL_STRSTR $ac_have_decl
11566 _ACEOF
11569 for ac_func in getenv atol atoll asprintf sbrk abort atof getcwd getwd \
11570 madvise stpcpy strnlen strsignal strverscmp \
11571 strtol strtoul strtoll strtoull setenv unsetenv \
11572 errno snprintf vsnprintf vasprintf malloc realloc calloc \
11573 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
11575 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11577 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11578 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
11579 $as_echo_n "(cached) " >&6
11580 else
11581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11582 /* end confdefs.h. */
11583 #undef $ac_tr_decl
11584 #define $ac_tr_decl 1
11586 #include "ansidecl.h"
11587 #include "system.h"
11590 main ()
11592 #ifndef $ac_func
11593 char *(*pfn) = (char *(*)) $ac_func ;
11594 #endif
11596 return 0;
11598 _ACEOF
11599 if ac_fn_cxx_try_compile "$LINENO"; then :
11600 eval "gcc_cv_have_decl_$ac_func=yes"
11601 else
11602 eval "gcc_cv_have_decl_$ac_func=no"
11604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11607 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11609 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11610 #define $ac_tr_decl 1
11611 _ACEOF
11613 else
11614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11615 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11616 #define $ac_tr_decl 0
11617 _ACEOF
11621 done
11624 for ac_func in getrlimit setrlimit getrusage
11626 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11628 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11629 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
11630 $as_echo_n "(cached) " >&6
11631 else
11632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11633 /* end confdefs.h. */
11634 #undef $ac_tr_decl
11635 #define $ac_tr_decl 1
11637 #include "ansidecl.h"
11638 #include "system.h"
11639 #ifdef HAVE_SYS_RESOURCE_H
11640 #include <sys/resource.h>
11641 #endif
11645 main ()
11647 #ifndef $ac_func
11648 char *(*pfn) = (char *(*)) $ac_func ;
11649 #endif
11651 return 0;
11653 _ACEOF
11654 if ac_fn_cxx_try_compile "$LINENO"; then :
11655 eval "gcc_cv_have_decl_$ac_func=yes"
11656 else
11657 eval "gcc_cv_have_decl_$ac_func=no"
11659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11662 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11664 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11665 #define $ac_tr_decl 1
11666 _ACEOF
11668 else
11669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11670 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11671 #define $ac_tr_decl 0
11672 _ACEOF
11676 done
11679 for ac_func in mallinfo mallinfo2
11681 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11683 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11684 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
11685 $as_echo_n "(cached) " >&6
11686 else
11687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11688 /* end confdefs.h. */
11689 #undef $ac_tr_decl
11690 #define $ac_tr_decl 1
11692 #include "ansidecl.h"
11693 #include "system.h"
11694 #ifdef HAVE_MALLOC_H
11695 #include <malloc.h>
11696 #endif
11700 main ()
11702 #ifndef $ac_func
11703 char *(*pfn) = (char *(*)) $ac_func ;
11704 #endif
11706 return 0;
11708 _ACEOF
11709 if ac_fn_cxx_try_compile "$LINENO"; then :
11710 eval "gcc_cv_have_decl_$ac_func=yes"
11711 else
11712 eval "gcc_cv_have_decl_$ac_func=no"
11714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11717 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11719 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11720 #define $ac_tr_decl 1
11721 _ACEOF
11723 else
11724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11725 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11726 #define $ac_tr_decl 0
11727 _ACEOF
11731 done
11734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11735 /* end confdefs.h. */
11737 #include "ansidecl.h"
11738 #include "system.h"
11739 #ifdef HAVE_SYS_RESOURCE_H
11740 #include <sys/resource.h>
11741 #endif
11744 main ()
11746 rlim_t l = 0;
11748 return 0;
11750 _ACEOF
11751 if ac_fn_cxx_try_compile "$LINENO"; then :
11753 else
11755 $as_echo "#define rlim_t long" >>confdefs.h
11758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11760 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
11761 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
11762 # in collect2.cc, <fcntl.h> isn't visible, but the configure test below needs
11763 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
11764 for ac_func in ldgetname
11766 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11768 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11769 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
11770 $as_echo_n "(cached) " >&6
11771 else
11772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11773 /* end confdefs.h. */
11774 #undef $ac_tr_decl
11775 #define $ac_tr_decl 1
11777 #include "ansidecl.h"
11778 #include "system.h"
11779 #ifdef HAVE_LDFCN_H
11780 #undef FREAD
11781 #undef FWRITE
11782 #include <ldfcn.h>
11783 #endif
11787 main ()
11789 #ifndef $ac_func
11790 char *(*pfn) = (char *(*)) $ac_func ;
11791 #endif
11793 return 0;
11795 _ACEOF
11796 if ac_fn_cxx_try_compile "$LINENO"; then :
11797 eval "gcc_cv_have_decl_$ac_func=yes"
11798 else
11799 eval "gcc_cv_have_decl_$ac_func=no"
11801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11804 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11806 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11807 #define $ac_tr_decl 1
11808 _ACEOF
11810 else
11811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11812 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11813 #define $ac_tr_decl 0
11814 _ACEOF
11818 done
11821 for ac_func in times
11823 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11825 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11826 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
11827 $as_echo_n "(cached) " >&6
11828 else
11829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11830 /* end confdefs.h. */
11831 #undef $ac_tr_decl
11832 #define $ac_tr_decl 1
11834 #include "ansidecl.h"
11835 #include "system.h"
11836 #ifdef HAVE_SYS_TIMES_H
11837 #include <sys/times.h>
11838 #endif
11842 main ()
11844 #ifndef $ac_func
11845 char *(*pfn) = (char *(*)) $ac_func ;
11846 #endif
11848 return 0;
11850 _ACEOF
11851 if ac_fn_cxx_try_compile "$LINENO"; then :
11852 eval "gcc_cv_have_decl_$ac_func=yes"
11853 else
11854 eval "gcc_cv_have_decl_$ac_func=no"
11856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11859 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11861 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11862 #define $ac_tr_decl 1
11863 _ACEOF
11865 else
11866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11867 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11868 #define $ac_tr_decl 0
11869 _ACEOF
11873 done
11876 for ac_func in sigaltstack
11878 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11880 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11881 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
11882 $as_echo_n "(cached) " >&6
11883 else
11884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11885 /* end confdefs.h. */
11886 #undef $ac_tr_decl
11887 #define $ac_tr_decl 1
11889 #include "ansidecl.h"
11890 #include "system.h"
11891 #include <signal.h>
11895 main ()
11897 #ifndef $ac_func
11898 char *(*pfn) = (char *(*)) $ac_func ;
11899 #endif
11901 return 0;
11903 _ACEOF
11904 if ac_fn_cxx_try_compile "$LINENO"; then :
11905 eval "gcc_cv_have_decl_$ac_func=yes"
11906 else
11907 eval "gcc_cv_have_decl_$ac_func=no"
11909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11912 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11914 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11915 #define $ac_tr_decl 1
11916 _ACEOF
11918 else
11919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11920 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11921 #define $ac_tr_decl 0
11922 _ACEOF
11926 done
11929 # More time-related stuff.
11930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
11931 $as_echo_n "checking for struct tms... " >&6; }
11932 if ${ac_cv_struct_tms+:} false; then :
11933 $as_echo_n "(cached) " >&6
11934 else
11936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11937 /* end confdefs.h. */
11939 #include "ansidecl.h"
11940 #include "system.h"
11941 #ifdef HAVE_SYS_TIMES_H
11942 #include <sys/times.h>
11943 #endif
11946 main ()
11948 struct tms tms;
11950 return 0;
11952 _ACEOF
11953 if ac_fn_cxx_try_compile "$LINENO"; then :
11954 ac_cv_struct_tms=yes
11955 else
11956 ac_cv_struct_tms=no
11958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
11961 $as_echo "$ac_cv_struct_tms" >&6; }
11962 if test $ac_cv_struct_tms = yes; then
11964 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
11968 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
11969 # revisit after autoconf 2.50.
11970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
11971 $as_echo_n "checking for clock_t... " >&6; }
11972 if ${gcc_cv_type_clock_t+:} false; then :
11973 $as_echo_n "(cached) " >&6
11974 else
11976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11977 /* end confdefs.h. */
11979 #include "ansidecl.h"
11980 #include "system.h"
11983 main ()
11985 clock_t x;
11987 return 0;
11989 _ACEOF
11990 if ac_fn_cxx_try_compile "$LINENO"; then :
11991 gcc_cv_type_clock_t=yes
11992 else
11993 gcc_cv_type_clock_t=no
11995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
11998 $as_echo "$gcc_cv_type_clock_t" >&6; }
11999 if test $gcc_cv_type_clock_t = yes; then
12001 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
12005 # Check if F_SETLKW is supported by fcntl.
12006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
12007 $as_echo_n "checking for F_SETLKW... " >&6; }
12008 if ${ac_cv_f_setlkw+:} false; then :
12009 $as_echo_n "(cached) " >&6
12010 else
12012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12013 /* end confdefs.h. */
12015 #include <fcntl.h>
12017 main ()
12020 struct flock fl;
12021 fl.l_whence = 0;
12022 fl.l_start = 0;
12023 fl.l_len = 0;
12024 fl.l_pid = 0;
12025 return fcntl (1, F_SETLKW, &fl);
12027 return 0;
12029 _ACEOF
12030 if ac_fn_cxx_try_compile "$LINENO"; then :
12031 ac_cv_f_setlkw=yes
12032 else
12033 ac_cv_f_setlkw=no
12035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
12038 $as_echo "$ac_cv_f_setlkw" >&6; }
12039 if test $ac_cv_f_setlkw = yes; then
12041 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
12045 # Check if O_CLOEXEC is defined by fcntl
12046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for O_CLOEXEC" >&5
12047 $as_echo_n "checking for O_CLOEXEC... " >&6; }
12048 if ${ac_cv_o_cloexec+:} false; then :
12049 $as_echo_n "(cached) " >&6
12050 else
12052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12053 /* end confdefs.h. */
12055 #include <fcntl.h>
12057 main ()
12060 return open ("/dev/null", O_RDONLY | O_CLOEXEC);
12062 return 0;
12064 _ACEOF
12065 if ac_fn_cxx_try_compile "$LINENO"; then :
12066 ac_cv_o_cloexec=yes
12067 else
12068 ac_cv_o_cloexec=no
12070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_o_cloexec" >&5
12073 $as_echo "$ac_cv_o_cloexec" >&6; }
12074 if test $ac_cv_o_cloexec = yes; then
12076 $as_echo "#define HOST_HAS_O_CLOEXEC 1" >>confdefs.h
12080 # C++ Modules would like some networking features to provide the mapping
12081 # server. You can still use modules without them though.
12082 # The following network-related checks could probably do with some
12083 # Windows and other non-linux defenses and checking.
12085 # Local socket connectivity wants AF_UNIX networking
12086 # Check for AF_UNIX networking
12087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AF_UNIX" >&5
12088 $as_echo_n "checking for AF_UNIX... " >&6; }
12089 if ${ac_cv_af_unix+:} false; then :
12090 $as_echo_n "(cached) " >&6
12091 else
12093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12094 /* end confdefs.h. */
12096 #include <sys/types.h>
12097 #include <sys/socket.h>
12098 #include <sys/un.h>
12099 #include <netinet/in.h>
12101 main ()
12104 sockaddr_un un;
12105 un.sun_family = AF_UNSPEC;
12106 int fd = socket (AF_UNIX, SOCK_STREAM, 0);
12107 connect (fd, (sockaddr *)&un, sizeof (un));
12109 return 0;
12111 _ACEOF
12112 if ac_fn_cxx_try_compile "$LINENO"; then :
12113 ac_cv_af_unix=yes
12114 else
12115 ac_cv_af_unix=no
12117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_af_unix" >&5
12120 $as_echo "$ac_cv_af_unix" >&6; }
12121 if test $ac_cv_af_unix = yes; then
12123 $as_echo "#define HAVE_AF_UNIX 1" >>confdefs.h
12127 # Remote socket connectivity wants AF_INET6 networking
12128 # Check for AF_INET6 networking
12129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AF_INET6" >&5
12130 $as_echo_n "checking for AF_INET6... " >&6; }
12131 if ${ac_cv_af_inet6+:} false; then :
12132 $as_echo_n "(cached) " >&6
12133 else
12135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12136 /* end confdefs.h. */
12138 #include <sys/types.h>
12139 #include <sys/socket.h>
12140 #include <netinet/in.h>
12141 #include <netdb.h>
12143 main ()
12146 sockaddr_in6 in6;
12147 in6.sin6_family = AF_UNSPEC;
12148 struct addrinfo *addrs = 0;
12149 struct addrinfo hints;
12150 hints.ai_flags = 0;
12151 hints.ai_family = AF_INET6;
12152 hints.ai_socktype = SOCK_STREAM;
12153 hints.ai_protocol = 0;
12154 hints.ai_canonname = 0;
12155 hints.ai_addr = 0;
12156 hints.ai_next = 0;
12157 int e = getaddrinfo ("localhost", 0, &hints, &addrs);
12158 const char *str = gai_strerror (e);
12159 freeaddrinfo (addrs);
12160 int fd = socket (AF_INET6, SOCK_STREAM, 0);
12161 connect (fd, (sockaddr *)&in6, sizeof (in6));
12163 return 0;
12165 _ACEOF
12166 if ac_fn_cxx_try_compile "$LINENO"; then :
12167 ac_cv_af_inet6=yes
12168 else
12169 ac_cv_af_inet6=no
12171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_af_inet6" >&5
12174 $as_echo "$ac_cv_af_inet6" >&6; }
12175 if test $ac_cv_af_inet6 = yes; then
12177 $as_echo "#define HAVE_AF_INET6 1" >>confdefs.h
12181 # Check if _LK_LOCK is supported by _locking
12182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LK_LOCK" >&5
12183 $as_echo_n "checking for _LK_LOCK... " >&6; }
12184 if ${ac_cv_lk_lock+:} false; then :
12185 $as_echo_n "(cached) " >&6
12186 else
12188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12189 /* end confdefs.h. */
12191 #include <io.h>
12192 #include <sys/locking.h>
12194 main ()
12197 int fd;
12198 return _locking (fd, _LK_LOCK, 0);
12200 return 0;
12202 _ACEOF
12203 if ac_fn_cxx_try_compile "$LINENO"; then :
12204 ac_cv_lk_lock=yes
12205 else
12206 ac_cv_lk_lock=no
12208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lk_lock" >&5
12211 $as_echo "$ac_cv_lk_lock" >&6; }
12212 if test $ac_cv_lk_lock = yes; then
12214 $as_echo "#define HOST_HAS_LK_LOCK 1" >>confdefs.h
12218 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
12219 CFLAGS="$saved_CFLAGS"
12220 CXXFLAGS="$saved_CXXFLAGS"
12222 # mkdir takes a single argument on some systems.
12223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
12224 $as_echo_n "checking if mkdir takes one argument... " >&6; }
12225 if ${gcc_cv_mkdir_takes_one_arg+:} false; then :
12226 $as_echo_n "(cached) " >&6
12227 else
12228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12229 /* end confdefs.h. */
12231 #include <sys/types.h>
12232 #ifdef HAVE_SYS_STAT_H
12233 # include <sys/stat.h>
12234 #endif
12235 #ifdef HAVE_UNISTD_H
12236 # include <unistd.h>
12237 #endif
12238 #ifdef HAVE_DIRECT_H
12239 # include <direct.h>
12240 #endif
12242 main ()
12244 mkdir ("foo", 0);
12246 return 0;
12248 _ACEOF
12249 if ac_fn_cxx_try_compile "$LINENO"; then :
12250 gcc_cv_mkdir_takes_one_arg=no
12251 else
12252 gcc_cv_mkdir_takes_one_arg=yes
12254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
12257 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
12258 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
12260 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
12265 # File extensions
12266 manext='.1'
12267 objext='.o'
12271 # With Setjmp/Longjmp based exception handling.
12272 # Check whether --enable-sjlj-exceptions was given.
12273 if test "${enable_sjlj_exceptions+set}" = set; then :
12274 enableval=$enable_sjlj_exceptions; case $target in
12275 *-*-hpux10*)
12276 if test $enableval != yes; then
12277 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
12278 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
12279 enableval=yes
12282 esac
12283 force_sjlj_exceptions=yes
12284 else
12285 case $target in
12286 *-*-hpux10*)
12287 force_sjlj_exceptions=yes
12288 enableval=yes
12290 lm32*-*-*)
12291 force_sjlj_exceptions=yes
12292 enableval=yes
12295 force_sjlj_exceptions=no
12297 esac
12300 if test $force_sjlj_exceptions = yes; then
12301 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
12303 cat >>confdefs.h <<_ACEOF
12304 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
12305 _ACEOF
12309 # --------------------------------------------------------
12310 # Build, host, and target specific configuration fragments
12311 # --------------------------------------------------------
12313 # Collect build-machine-specific information.
12314 . ${srcdir}/config.build || exit 1
12316 # Collect host-machine-specific information.
12317 . ${srcdir}/config.host || exit 1
12319 target_gtfiles=
12321 # Collect target-machine-specific information.
12322 . ${srcdir}/config.gcc || exit 1
12324 extra_objs="${host_extra_objs} ${extra_objs}"
12325 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
12327 # Default the target-machine variables that were not explicitly set.
12328 if test x"$tm_file" = x
12329 then tm_file=$cpu_type/$cpu_type.h; fi
12331 if test x"$extra_headers" = x
12332 then extra_headers=; fi
12334 if test x$md_file = x
12335 then md_file=$cpu_type/$cpu_type.md; fi
12337 if test x$out_file = x
12338 then out_file=$cpu_type/$cpu_type.cc; fi
12340 if test x"$tmake_file" = x
12341 then tmake_file=$cpu_type/t-$cpu_type
12344 # Support --enable-initfini-array.
12345 if test x$enable_initfini_array != xno; then
12346 tm_file="${tm_file} initfini-array.h"
12349 if test x"$dwarf2" = xyes
12350 then tm_file="$tm_file tm-dwarf2.h"
12353 # Say what files are being used for the output code and MD file.
12354 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
12355 echo "Using \`$srcdir/config/$md_file' as machine description file."
12357 # If any of the xm_file variables contain nonexistent files, warn
12358 # about them and drop them.
12361 for x in $build_xm_file; do
12362 if test -f $srcdir/config/$x
12363 then bx="$bx $x"
12364 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
12365 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12367 done
12368 build_xm_file="$bx"
12371 for x in $host_xm_file; do
12372 if test -f $srcdir/config/$x
12373 then hx="$hx $x"
12374 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
12375 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12377 done
12378 host_xm_file="$hx"
12381 for x in $xm_file; do
12382 if test -f $srcdir/config/$x
12383 then tx="$tx $x"
12384 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
12385 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12387 done
12388 xm_file="$tx"
12390 count=a
12391 for f in $tm_file; do
12392 count=${count}x
12393 done
12394 if test $count = ax; then
12395 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
12396 else
12397 echo "Using the following target machine macro files:"
12398 for f in $tm_file; do
12399 echo " $srcdir/config/$f"
12400 done
12403 if test x$use_long_long_for_widest_fast_int = xyes; then
12405 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
12409 gnu_ld_bool=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
12411 cat >>confdefs.h <<_ACEOF
12412 #define HAVE_GNU_LD $gnu_ld_bool
12413 _ACEOF
12416 gnu_as_bool=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
12418 cat >>confdefs.h <<_ACEOF
12419 #define HAVE_GNU_AS $gnu_as_bool
12420 _ACEOF
12423 count=a
12424 for f in $host_xm_file; do
12425 count=${count}x
12426 done
12427 if test $count = a; then
12429 elif test $count = ax; then
12430 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
12431 else
12432 echo "Using the following host machine macro files:"
12433 for f in $host_xm_file; do
12434 echo " $srcdir/config/$f"
12435 done
12437 echo "Using ${out_host_hook_obj} for host machine hooks."
12439 if test "$host_xm_file" != "$build_xm_file"; then
12440 count=a
12441 for f in $build_xm_file; do
12442 count=${count}x
12443 done
12444 if test $count = a; then
12446 elif test $count = ax; then
12447 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
12448 else
12449 echo "Using the following build machine macro files:"
12450 for f in $build_xm_file; do
12451 echo " $srcdir/config/$f"
12452 done
12456 if test -n "$configured_native_system_header_dir"; then
12457 native_system_header_dir=$configured_native_system_header_dir
12459 NATIVE_SYSTEM_HEADER_DIR="$native_system_header_dir"
12462 case ${host} in
12463 powerpc*-*-darwin*)
12464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
12465 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
12466 if ${gcc_cv_mcontext_underscores+:} false; then :
12467 $as_echo_n "(cached) " >&6
12468 else
12469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12470 /* end confdefs.h. */
12472 #include <sys/cdefs.h>
12473 #include <sys/signal.h>
12474 #include <ucontext.h>
12475 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
12477 _ACEOF
12478 if ac_fn_cxx_try_compile "$LINENO"; then :
12479 gcc_cv_mcontext_underscores=no
12480 else
12481 gcc_cv_mcontext_underscores=yes
12483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
12486 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
12487 if test $gcc_cv_mcontext_underscores = yes; then
12489 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
12493 esac
12495 # ---------
12496 # Threading
12497 # ---------
12499 # Check if a valid thread package
12500 case ${enable_threads} in
12501 "" | no)
12502 # No threads
12503 target_thread_file='single'
12505 yes)
12506 # default
12507 target_thread_file='single'
12509 aix | dce | lynx | mipssde | posix | rtems | \
12510 single | tpf | vxworks | win32)
12511 target_thread_file=${enable_threads}
12514 echo "${enable_threads} is an unknown thread package" 1>&2
12515 exit 1
12517 esac
12519 if test x${thread_file} = x; then
12520 # No thread file set by target-specific clauses in config.gcc,
12521 # so use file chosen by default logic above
12522 thread_file=${target_thread_file}
12525 # --------
12526 # UNSORTED
12527 # --------
12529 use_cxa_atexit=no
12530 if test x$enable___cxa_atexit = xyes || \
12531 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
12532 if test x$host = x$target; then
12533 case $host in
12534 # mingw32 doesn't have __cxa_atexit but uses atexit registration
12535 # keyed to flag_use_cxa_atexit
12536 *-*-mingw32*)
12537 use_cxa_atexit=yes
12539 powerpc-ibm-aix*)
12540 use_cxa_atexit=yes
12543 ac_fn_cxx_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
12544 if test "x$ac_cv_func___cxa_atexit" = xyes; then :
12545 use_cxa_atexit=yes
12546 else
12547 echo "__cxa_atexit can't be enabled on this target"
12551 esac
12552 else
12553 # We can't check for __cxa_atexit when building a cross, so assume
12554 # it is available
12555 use_cxa_atexit=yes
12557 if test x$use_cxa_atexit = xyes; then
12559 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
12564 # Look for a file containing extra machine modes.
12565 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
12566 extra_modes_file='$(srcdir)'/config/${extra_modes}
12569 cat >>confdefs.h <<_ACEOF
12570 #define EXTRA_MODES_FILE "config/$extra_modes"
12571 _ACEOF
12575 # Convert extra_options into a form suitable for Makefile use.
12576 extra_opt_files=
12577 all_opt_files=
12578 for f in $extra_options; do
12579 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
12580 all_opt_files="$all_opt_files $srcdir/config/$f"
12581 done
12584 # auto-host.h is the file containing items generated by autoconf and is
12585 # the first file included by config.h.
12586 # If host=build, it is correct to have bconfig include auto-host.h
12587 # as well. If host!=build, we are in error and need to do more
12588 # work to find out the build config parameters.
12589 if test x$host = x$build
12590 then
12591 build_auto=auto-host.h
12592 HAVE_AUTO_BUILD='# '
12593 else
12594 # We create a subdir, then run autoconf in the subdir.
12595 # To prevent recursion we set host and build for the new
12596 # invocation of configure to the build for this invocation
12597 # of configure.
12598 tempdir=build.$$
12599 rm -rf $tempdir
12600 mkdir $tempdir
12601 cd $tempdir
12602 case ${srcdir} in
12603 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
12604 *) realsrcdir=../${srcdir};;
12605 esac
12606 # Clearing GMPINC is necessary to prevent host headers being
12607 # used by the build compiler. Defining GENERATOR_FILE stops
12608 # system.h from including gmp.h.
12609 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
12610 CXX="${CXX_FOR_BUILD}" CXXFLAGS="${CXXFLAGS_FOR_BUILD}" \
12611 LD="${LD_FOR_BUILD}" LDFLAGS="${LDFLAGS_FOR_BUILD}" \
12612 GMPINC="" CPPFLAGS="${CPPFLAGS_FOR_BUILD} -DGENERATOR_FILE" \
12613 ${realsrcdir}/configure \
12614 --enable-languages=${enable_languages-all} \
12615 ${enable_obsolete+--enable-obsolete="$enable_obsolete"} \
12616 ${enable_option_checking+--enable-option-checking="$enable_option_checking"} \
12617 --target=$target_alias --host=$build_alias \
12618 --build=$build_alias || exit # retaining $tempdir
12620 # We just finished tests for the build machine, so rename
12621 # the file auto-build.h in the gcc directory.
12622 mv auto-host.h ../auto-build.h
12623 cd ..
12624 rm -rf $tempdir
12625 build_auto=auto-build.h
12626 HAVE_AUTO_BUILD=
12631 tm_file="${tm_file} defaults.h"
12632 tm_p_file="${tm_p_file} tm-preds.h"
12633 tm_d_file="${tm_d_file} defaults.h"
12634 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
12635 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
12636 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
12637 # put this back in temporarily.
12638 xm_file="auto-host.h ansidecl.h ${xm_file}"
12640 # --------
12641 # UNSORTED
12642 # --------
12644 # Compile in configure arguments.
12645 if test -f configargs.h ; then
12646 # Being re-configured.
12647 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
12648 gcc_reconf_arguments=`echo "$gcc_config_arguments" | sed -e 's/^.*\( : (reconfigured) .*$\)/\1/'`
12649 if [ "$gcc_reconf_arguments" != " : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS" ]; then
12650 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
12652 else
12653 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
12656 # Double all backslashes and backslash all quotes to turn
12657 # gcc_config_arguments into a C string.
12658 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
12659 $gcc_config_arguments
12661 gcc_config_arguments_str=`cat conftest.out`
12662 rm -f conftest.out
12664 cat > configargs.h <<EOF
12665 /* Generated automatically. */
12666 static const char configuration_arguments[] = "$gcc_config_arguments_str";
12667 static const char thread_model[] = "$thread_file";
12669 static const struct {
12670 const char *name, *value;
12671 } configure_default_options[] = $configure_default_options;
12674 gcc_BASEVER=`cat $srcdir/BASE-VER`
12675 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
12676 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
12677 if test -f $srcdir/REVISION ; then
12678 gcc_REVISION=`cat $srcdir/REVISION`
12679 else
12680 gcc_REVISION=""
12682 cat > plugin-version.h <<EOF
12683 #include "configargs.h"
12685 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
12686 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
12687 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
12688 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
12690 static char basever[] = "$gcc_BASEVER";
12691 static char datestamp[] = "$gcc_DATESTAMP";
12692 static char devphase[] = "$gcc_DEVPHASE";
12693 static char revision[] = "$gcc_REVISION";
12695 /* FIXME plugins: We should make the version information more precise.
12696 One way to do is to add a checksum. */
12698 static struct plugin_gcc_version gcc_version = {basever, datestamp,
12699 devphase, revision,
12700 configuration_arguments};
12703 # Determine what GCC version number to use in filesystem paths.
12705 get_gcc_base_ver="cat"
12707 # Check whether --with-gcc-major-version-only was given.
12708 if test "${with_gcc_major_version_only+set}" = set; then :
12709 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
12710 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
12718 # Internationalization
12719 # If we haven't got the data from the intl directory,
12720 # assume NLS is disabled.
12721 USE_NLS=no
12722 LIBINTL=
12723 LIBINTL_DEP=
12724 INCINTL=
12725 XGETTEXT=
12726 GMSGFMT=
12727 POSUB=
12729 if test -f ../intl/config.intl; then
12730 . ../intl/config.intl
12732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
12733 $as_echo_n "checking whether NLS is requested... " >&6; }
12734 if test x"$USE_NLS" != xyes; then
12735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12736 $as_echo "no" >&6; }
12737 else
12738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12739 $as_echo "yes" >&6; }
12741 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
12744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
12745 $as_echo_n "checking for catalogs to be installed... " >&6; }
12746 # Look for .po and .gmo files in the source directory.
12747 CATALOGS=
12748 XLINGUAS=
12749 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
12750 # If there aren't any .gmo files the shell will give us the
12751 # literal string "../path/to/srcdir/po/*.gmo" which has to be
12752 # weeded out.
12753 case "$cat" in *\**)
12754 continue;;
12755 esac
12756 # The quadruple backslash is collapsed to a double backslash
12757 # by the backticks, then collapsed again by the double quotes,
12758 # leaving us with one backslash in the sed expression (right
12759 # before the dot that mustn't act as a wildcard).
12760 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
12761 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
12762 # The user is allowed to set LINGUAS to a list of languages to
12763 # install catalogs for. If it's empty that means "all of them."
12764 if test "x$LINGUAS" = x; then
12765 CATALOGS="$CATALOGS $cat"
12766 XLINGUAS="$XLINGUAS $lang"
12767 else
12768 case "$LINGUAS" in *$lang*)
12769 CATALOGS="$CATALOGS $cat"
12770 XLINGUAS="$XLINGUAS $lang"
12772 esac
12774 done
12775 LINGUAS="$XLINGUAS"
12776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
12777 $as_echo "$LINGUAS" >&6; }
12780 DATADIRNAME=share
12782 INSTOBJEXT=.mo
12784 GENCAT=gencat
12786 CATOBJEXT=.gmo
12790 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
12791 # -liconv on the link line twice.
12792 case "$LIBINTL" in *$LIBICONV*)
12793 LIBICONV= ;;
12794 esac
12796 # Check whether --enable-secureplt was given.
12797 if test "${enable_secureplt+set}" = set; then :
12798 enableval=$enable_secureplt;
12802 # Check whether --enable-mingw-wildcard was given.
12803 if test "${enable_mingw_wildcard+set}" = set; then :
12804 enableval=$enable_mingw_wildcard;
12805 else
12806 enable_mingw_wildcard=platform
12809 if test x"$enable_mingw_wildcard" != xplatform ; then :
12811 cat >>confdefs.h <<_ACEOF
12812 #define MINGW_DOWILDCARD $(test x"$enable_mingw_wildcard" = xno; echo $?)
12813 _ACEOF
12817 # Check whether --enable-large-address-aware was given.
12818 if test "${enable_large_address_aware+set}" = set; then :
12819 enableval=$enable_large_address_aware;
12822 if test x"$enable_large_address_aware" = xyes; then :
12824 $as_echo "#define MINGW_DEFAULT_LARGE_ADDR_AWARE 1" >>confdefs.h
12828 # Check whether --enable-leading-mingw64-underscores was given.
12829 if test "${enable_leading_mingw64_underscores+set}" = set; then :
12830 enableval=$enable_leading_mingw64_underscores;
12833 if test x"$enable_leading_mingw64_underscores" = xyes ; then :
12835 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
12839 # Check whether --enable-cld was given.
12840 if test "${enable_cld+set}" = set; then :
12841 enableval=$enable_cld;
12842 else
12843 enable_cld=no
12847 # Check whether --enable-frame-pointer was given.
12848 if test "${enable_frame_pointer+set}" = set; then :
12849 enableval=$enable_frame_pointer;
12850 else
12852 case $target_os in
12853 linux* | gnu* | darwin[8912]* | cygwin* | mingw*)
12854 # Enable -fomit-frame-pointer by default for these systems with DWARF2.
12855 enable_frame_pointer=no
12858 enable_frame_pointer=yes
12860 esac
12865 case $target in
12866 i[34567]86-*-* | x86_64-*-*)
12867 if test "x$enable_cld" = xyes; then
12868 tm_defines="${tm_defines} USE_IX86_CLD=1"
12870 if test "x$enable_frame_pointer" = xyes; then
12871 tm_defines="${tm_defines} USE_IX86_FRAME_POINTER=1"
12874 esac
12876 # Windows32 Registry support for specifying GCC installation paths.
12877 # Check whether --enable-win32-registry was given.
12878 if test "${enable_win32_registry+set}" = set; then :
12879 enableval=$enable_win32_registry;
12883 case $host_os in
12884 win32 | pe | cygwin* | mingw32*)
12885 if test "x$enable_win32_registry" != xno; then
12886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
12887 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
12888 if ${ac_cv_search_RegOpenKeyExA+:} false; then :
12889 $as_echo_n "(cached) " >&6
12890 else
12891 ac_func_search_save_LIBS=$LIBS
12892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12893 /* end confdefs.h. */
12895 /* Override any GCC internal prototype to avoid an error.
12896 Use char because int might match the return type of a GCC
12897 builtin and then its argument prototype would still apply. */
12898 #ifdef __cplusplus
12899 extern "C"
12900 #endif
12901 char RegOpenKeyExA ();
12903 main ()
12905 return RegOpenKeyExA ();
12907 return 0;
12909 _ACEOF
12910 for ac_lib in '' advapi32; do
12911 if test -z "$ac_lib"; then
12912 ac_res="none required"
12913 else
12914 ac_res=-l$ac_lib
12915 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12917 if ac_fn_cxx_try_link "$LINENO"; then :
12918 ac_cv_search_RegOpenKeyExA=$ac_res
12920 rm -f core conftest.err conftest.$ac_objext \
12921 conftest$ac_exeext
12922 if ${ac_cv_search_RegOpenKeyExA+:} false; then :
12923 break
12925 done
12926 if ${ac_cv_search_RegOpenKeyExA+:} false; then :
12928 else
12929 ac_cv_search_RegOpenKeyExA=no
12931 rm conftest.$ac_ext
12932 LIBS=$ac_func_search_save_LIBS
12934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
12935 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
12936 ac_res=$ac_cv_search_RegOpenKeyExA
12937 if test "$ac_res" != no; then :
12938 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12940 else
12941 enable_win32_registry=no
12946 if test "x$enable_win32_registry" != xno; then
12948 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
12951 if test "x$enable_win32_registry" != xyes \
12952 && test "x$enable_win32_registry" != x; then
12954 cat >>confdefs.h <<_ACEOF
12955 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
12956 _ACEOF
12961 esac
12963 # Get an absolute path to the GCC top-level source directory
12964 holddir=`${PWDCMD-pwd}`
12965 cd $srcdir
12966 topdir=`${PWDCMD-pwd}`
12967 cd $holddir
12969 # Conditionalize the makefile for this host machine.
12970 xmake_file=
12971 for f in ${host_xmake_file}
12973 if test -f ${srcdir}/config/$f
12974 then
12975 xmake_file="${xmake_file} \$(srcdir)/config/$f"
12977 done
12979 # Conditionalize the makefile for this target machine.
12980 tmake_file_=
12981 for f in ${tmake_file}
12983 if test -f ${srcdir}/config/$f
12984 then
12985 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
12987 done
12988 tmake_file="${tmake_file_}${omp_device_property_tmake_file}"
12990 out_object_file=`basename $out_file .cc`.o
12991 common_out_file=default-common.cc
12992 common_out_object_file=`basename $common_out_file .cc`.o
12994 tm_file_list="options.h"
12995 tm_include_list="options.h insn-constants.h"
12996 for f in $tm_file; do
12997 case $f in
12998 ./* )
12999 f=`echo $f | sed 's/^..//'`
13000 tm_file_list="${tm_file_list} $f"
13001 tm_include_list="${tm_include_list} $f"
13003 defaults.h )
13004 tm_file_list="${tm_file_list} \$(srcdir)/$f"
13005 tm_include_list="${tm_include_list} $f"
13008 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
13009 tm_include_list="${tm_include_list} config/$f"
13011 esac
13012 done
13014 tm_p_file_list=
13015 tm_p_include_list=
13016 for f in $tm_p_file; do
13017 case $f in
13018 tm-preds.h )
13019 tm_p_file_list="${tm_p_file_list} $f"
13020 tm_p_include_list="${tm_p_include_list} $f"
13023 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
13024 tm_p_include_list="${tm_p_include_list} config/$f"
13025 esac
13026 done
13028 tm_d_file_list=
13029 tm_d_include_list="options.h insn-constants.h"
13030 for f in $tm_d_file; do
13031 case $f in
13032 defaults.h )
13033 tm_d_file_list="${tm_d_file_list} \$(srcdir)/$f"
13034 tm_d_include_list="${tm_d_include_list} $f"
13037 tm_d_file_list="${tm_d_file_list} \$(srcdir)/config/$f"
13038 tm_d_include_list="${tm_d_include_list} config/$f"
13040 esac
13041 done
13043 xm_file_list=
13044 xm_include_list=
13045 for f in $xm_file; do
13046 case $f in
13047 ansidecl.h )
13048 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
13049 xm_include_list="${xm_include_list} $f"
13051 auto-host.h )
13052 xm_file_list="${xm_file_list} $f"
13053 xm_include_list="${xm_include_list} $f"
13056 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
13057 xm_include_list="${xm_include_list} config/$f"
13059 esac
13060 done
13062 host_xm_file_list=
13063 host_xm_include_list=
13064 for f in $host_xm_file; do
13065 case $f in
13066 ansidecl.h )
13067 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
13068 host_xm_include_list="${host_xm_include_list} $f"
13070 auto-host.h )
13071 host_xm_file_list="${host_xm_file_list} $f"
13072 host_xm_include_list="${host_xm_include_list} $f"
13075 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
13076 host_xm_include_list="${host_xm_include_list} config/$f"
13078 esac
13079 done
13081 build_xm_file_list=
13082 for f in $build_xm_file; do
13083 case $f in
13084 ansidecl.h )
13085 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
13086 build_xm_include_list="${build_xm_include_list} $f"
13088 auto-build.h | auto-host.h )
13089 build_xm_file_list="${build_xm_file_list} $f"
13090 build_xm_include_list="${build_xm_include_list} $f"
13093 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
13094 build_xm_include_list="${build_xm_include_list} config/$f"
13096 esac
13097 done
13099 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
13100 # cross-compiler which does not use the native headers and libraries.
13101 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
13102 CROSS=
13103 ALL=all.internal
13104 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
13105 BUILD_SYSTEM_HEADER_DIR=$SYSTEM_HEADER_DIR
13107 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x ||
13108 test x$build != x$host || test "x$with_build_sysroot" != x; then
13109 if test "x$with_build_sysroot" != x; then
13110 BUILD_SYSTEM_HEADER_DIR=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
13111 else
13112 BUILD_SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
13115 if test x$host != x$target
13116 then
13117 CROSS="-DCROSS_DIRECTORY_STRUCTURE"
13118 ALL=all.cross
13119 SYSTEM_HEADER_DIR=$BUILD_SYSTEM_HEADER_DIR
13120 elif test "x$TARGET_SYSTEM_ROOT" != x; then
13121 SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
13124 if test "x$with_build_sysroot" != "x"; then
13125 target_header_dir="${with_build_sysroot}${native_system_header_dir}"
13126 elif test "x$with_sysroot" = x; then
13127 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-include"
13128 elif test "x$with_sysroot" = xyes; then
13129 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
13130 else
13131 target_header_dir="${with_sysroot}${native_system_header_dir}"
13133 else
13134 target_header_dir=${native_system_header_dir}
13137 # If this is a cross-compiler that does not
13138 # have its own set of headers then define
13139 # inhibit_libc
13141 # If this is using newlib, without having the headers available now,
13142 # then define inhibit_libc in LIBGCC2_CFLAGS.
13143 # This prevents libgcc2 from containing any code which requires libc
13144 # support.
13145 : ${inhibit_libc=false}
13146 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
13147 test x$with_newlib = xyes ; } &&
13148 { test "x$with_headers" = xno || test ! -f "$target_header_dir/stdio.h"; } ; then
13149 inhibit_libc=true
13153 # When building gcc with a cross-compiler, we need to adjust things so
13154 # that the generator programs are still built with the native compiler.
13155 # Also, we cannot run fixincludes.
13157 # These are the normal (build=host) settings:
13158 CC_FOR_BUILD='$(CC)'
13159 CXX_FOR_BUILD='$(CXX)'
13160 BUILD_CFLAGS='$(ALL_CFLAGS)'
13161 BUILD_CXXFLAGS='$(ALL_CXXFLAGS)'
13162 BUILD_LDFLAGS='$(LDFLAGS)'
13163 STMP_FIXINC=stmp-fixinc
13165 # And these apply if build != host, or we are generating coverage data
13166 if test x$build != x$host || test "x$coverage_flags" != x
13167 then
13168 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS-$@) $(CFLAGS_FOR_BUILD)'
13169 BUILD_CXXFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS-$@) $(CXXFLAGS_FOR_BUILD)'
13170 BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
13173 # Expand extra_headers to include complete path.
13174 # This substitutes for lots of t-* files.
13175 extra_headers_list=
13176 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
13177 for file in ${extra_headers} ; do
13178 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
13179 done
13181 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
13182 if test x"$use_gcc_tgmath" = xyes
13183 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
13186 # Define collect2 in Makefile.
13187 case $host_can_use_collect2 in
13188 no) collect2= ;;
13189 *) collect2='collect2$(exeext)' ;;
13190 esac
13193 # Add a definition of USE_COLLECT2 if system wants one.
13194 case $use_collect2 in
13195 no) use_collect2= ;;
13196 "") ;;
13198 host_xm_defines="${host_xm_defines} USE_COLLECT2"
13199 xm_defines="${xm_defines} USE_COLLECT2"
13200 case $host_can_use_collect2 in
13202 as_fn_error $? "collect2 is required but cannot be built on this system" "$LINENO" 5
13204 esac
13206 esac
13209 cat >>confdefs.h <<_ACEOF
13210 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
13211 _ACEOF
13214 # ---------------------------
13215 # Assembler & linker features
13216 # ---------------------------
13218 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
13219 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
13220 # However when ld-new is first executed from the build tree, libtool will
13221 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
13222 # to the build tree. While doing this we need to use the previous-stage
13223 # linker, or we have an infinite loop. The presence of a shell script as
13224 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
13225 # the gcc/collect-ld script. So we need to know how libtool works, or
13226 # exec-tool will fail.
13229 case `pwd` in
13230 *\ * | *\ *)
13231 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
13232 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
13233 esac
13237 macro_version='2.2.7a'
13238 macro_revision='1.3134'
13252 ltmain="$ac_aux_dir/ltmain.sh"
13254 # Backslashify metacharacters that are still active within
13255 # double-quoted strings.
13256 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
13258 # Same as above, but do not quote variable references.
13259 double_quote_subst='s/\(["`\\]\)/\\\1/g'
13261 # Sed substitution to delay expansion of an escaped shell variable in a
13262 # double_quote_subst'ed string.
13263 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
13265 # Sed substitution to delay expansion of an escaped single quote.
13266 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
13268 # Sed substitution to avoid accidental globbing in evaled expressions
13269 no_glob_subst='s/\*/\\\*/g'
13271 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13272 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
13273 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
13275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
13276 $as_echo_n "checking how to print strings... " >&6; }
13277 # Test print first, because it will be a builtin if present.
13278 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
13279 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
13280 ECHO='print -r --'
13281 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
13282 ECHO='printf %s\n'
13283 else
13284 # Use this function as a fallback that always works.
13285 func_fallback_echo ()
13287 eval 'cat <<_LTECHO_EOF
13289 _LTECHO_EOF'
13291 ECHO='func_fallback_echo'
13294 # func_echo_all arg...
13295 # Invoke $ECHO with all args, space-separated.
13296 func_echo_all ()
13298 $ECHO ""
13301 case "$ECHO" in
13302 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
13303 $as_echo "printf" >&6; } ;;
13304 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
13305 $as_echo "print -r" >&6; } ;;
13306 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
13307 $as_echo "cat" >&6; } ;;
13308 esac
13323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
13324 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
13325 if ${ac_cv_path_SED+:} false; then :
13326 $as_echo_n "(cached) " >&6
13327 else
13328 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
13329 for ac_i in 1 2 3 4 5 6 7; do
13330 ac_script="$ac_script$as_nl$ac_script"
13331 done
13332 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
13333 { ac_script=; unset ac_script;}
13334 if test -z "$SED"; then
13335 ac_path_SED_found=false
13336 # Loop through the user's path and test for each of PROGNAME-LIST
13337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13338 for as_dir in $PATH
13340 IFS=$as_save_IFS
13341 test -z "$as_dir" && as_dir=.
13342 for ac_prog in sed gsed; do
13343 for ac_exec_ext in '' $ac_executable_extensions; do
13344 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
13345 as_fn_executable_p "$ac_path_SED" || continue
13346 # Check for GNU ac_path_SED and select it if it is found.
13347 # Check for GNU $ac_path_SED
13348 case `"$ac_path_SED" --version 2>&1` in
13349 *GNU*)
13350 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
13352 ac_count=0
13353 $as_echo_n 0123456789 >"conftest.in"
13354 while :
13356 cat "conftest.in" "conftest.in" >"conftest.tmp"
13357 mv "conftest.tmp" "conftest.in"
13358 cp "conftest.in" "conftest.nl"
13359 $as_echo '' >> "conftest.nl"
13360 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
13361 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13362 as_fn_arith $ac_count + 1 && ac_count=$as_val
13363 if test $ac_count -gt ${ac_path_SED_max-0}; then
13364 # Best one so far, save it but keep looking for a better one
13365 ac_cv_path_SED="$ac_path_SED"
13366 ac_path_SED_max=$ac_count
13368 # 10*(2^10) chars as input seems more than enough
13369 test $ac_count -gt 10 && break
13370 done
13371 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13372 esac
13374 $ac_path_SED_found && break 3
13375 done
13376 done
13377 done
13378 IFS=$as_save_IFS
13379 if test -z "$ac_cv_path_SED"; then
13380 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
13382 else
13383 ac_cv_path_SED=$SED
13387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
13388 $as_echo "$ac_cv_path_SED" >&6; }
13389 SED="$ac_cv_path_SED"
13390 rm -f conftest.sed
13392 test -z "$SED" && SED=sed
13393 Xsed="$SED -e 1s/^X//"
13405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
13406 $as_echo_n "checking for fgrep... " >&6; }
13407 if ${ac_cv_path_FGREP+:} false; then :
13408 $as_echo_n "(cached) " >&6
13409 else
13410 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
13411 then ac_cv_path_FGREP="$GREP -F"
13412 else
13413 if test -z "$FGREP"; then
13414 ac_path_FGREP_found=false
13415 # Loop through the user's path and test for each of PROGNAME-LIST
13416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13417 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
13419 IFS=$as_save_IFS
13420 test -z "$as_dir" && as_dir=.
13421 for ac_prog in fgrep; do
13422 for ac_exec_ext in '' $ac_executable_extensions; do
13423 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
13424 as_fn_executable_p "$ac_path_FGREP" || continue
13425 # Check for GNU ac_path_FGREP and select it if it is found.
13426 # Check for GNU $ac_path_FGREP
13427 case `"$ac_path_FGREP" --version 2>&1` in
13428 *GNU*)
13429 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
13431 ac_count=0
13432 $as_echo_n 0123456789 >"conftest.in"
13433 while :
13435 cat "conftest.in" "conftest.in" >"conftest.tmp"
13436 mv "conftest.tmp" "conftest.in"
13437 cp "conftest.in" "conftest.nl"
13438 $as_echo 'FGREP' >> "conftest.nl"
13439 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
13440 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13441 as_fn_arith $ac_count + 1 && ac_count=$as_val
13442 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
13443 # Best one so far, save it but keep looking for a better one
13444 ac_cv_path_FGREP="$ac_path_FGREP"
13445 ac_path_FGREP_max=$ac_count
13447 # 10*(2^10) chars as input seems more than enough
13448 test $ac_count -gt 10 && break
13449 done
13450 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13451 esac
13453 $ac_path_FGREP_found && break 3
13454 done
13455 done
13456 done
13457 IFS=$as_save_IFS
13458 if test -z "$ac_cv_path_FGREP"; then
13459 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
13461 else
13462 ac_cv_path_FGREP=$FGREP
13467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
13468 $as_echo "$ac_cv_path_FGREP" >&6; }
13469 FGREP="$ac_cv_path_FGREP"
13472 test -z "$GREP" && GREP=grep
13492 # Check whether --with-gnu-ld was given.
13493 if test "${with_gnu_ld+set}" = set; then :
13494 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13495 else
13496 with_gnu_ld=no
13499 ac_prog=ld
13500 if test "$GCC" = yes; then
13501 # Check if gcc -print-prog-name=ld gives a path.
13502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13503 $as_echo_n "checking for ld used by $CC... " >&6; }
13504 case $host in
13505 *-*-mingw*)
13506 # gcc leaves a trailing carriage return which upsets mingw
13507 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13509 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13510 esac
13511 case $ac_prog in
13512 # Accept absolute paths.
13513 [\\/]* | ?:[\\/]*)
13514 re_direlt='/[^/][^/]*/\.\./'
13515 # Canonicalize the pathname of ld
13516 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13517 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13518 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13519 done
13520 test -z "$LD" && LD="$ac_prog"
13523 # If it fails, then pretend we aren't using GCC.
13524 ac_prog=ld
13527 # If it is relative, then search for the first ld in PATH.
13528 with_gnu_ld=unknown
13530 esac
13531 elif test "$with_gnu_ld" = yes; then
13532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13533 $as_echo_n "checking for GNU ld... " >&6; }
13534 else
13535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13536 $as_echo_n "checking for non-GNU ld... " >&6; }
13538 if ${lt_cv_path_LD+:} false; then :
13539 $as_echo_n "(cached) " >&6
13540 else
13541 if test -z "$LD"; then
13542 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13543 for ac_dir in $PATH; do
13544 IFS="$lt_save_ifs"
13545 test -z "$ac_dir" && ac_dir=.
13546 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13547 lt_cv_path_LD="$ac_dir/$ac_prog"
13548 # Check to see if the program is GNU ld. I'd rather use --version,
13549 # but apparently some variants of GNU ld only accept -v.
13550 # Break only if it was the GNU/non-GNU ld that we prefer.
13551 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13552 *GNU* | *'with BFD'*)
13553 test "$with_gnu_ld" != no && break
13556 test "$with_gnu_ld" != yes && break
13558 esac
13560 done
13561 IFS="$lt_save_ifs"
13562 else
13563 lt_cv_path_LD="$LD" # Let the user override the test with a path.
13567 LD="$lt_cv_path_LD"
13568 if test -n "$LD"; then
13569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13570 $as_echo "$LD" >&6; }
13571 else
13572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13573 $as_echo "no" >&6; }
13575 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13577 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13578 if ${lt_cv_prog_gnu_ld+:} false; then :
13579 $as_echo_n "(cached) " >&6
13580 else
13581 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13582 case `$LD -v 2>&1 </dev/null` in
13583 *GNU* | *'with BFD'*)
13584 lt_cv_prog_gnu_ld=yes
13587 lt_cv_prog_gnu_ld=no
13589 esac
13591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13592 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13593 with_gnu_ld=$lt_cv_prog_gnu_ld
13603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
13604 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
13605 if ${lt_cv_path_NM+:} false; then :
13606 $as_echo_n "(cached) " >&6
13607 else
13608 if test -n "$NM"; then
13609 # Let the user override the test.
13610 lt_cv_path_NM="$NM"
13611 else
13612 lt_nm_to_check="${ac_tool_prefix}nm"
13613 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
13614 lt_nm_to_check="$lt_nm_to_check nm"
13616 for lt_tmp_nm in $lt_nm_to_check; do
13617 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13618 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
13619 IFS="$lt_save_ifs"
13620 test -z "$ac_dir" && ac_dir=.
13621 tmp_nm="$ac_dir/$lt_tmp_nm"
13622 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
13623 # Check to see if the nm accepts a BSD-compat flag.
13624 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
13625 # nm: unknown option "B" ignored
13626 # Tru64's nm complains that /dev/null is an invalid object file
13627 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
13628 */dev/null* | *'Invalid file or object type'*)
13629 lt_cv_path_NM="$tmp_nm -B"
13630 break
13633 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
13634 */dev/null*)
13635 lt_cv_path_NM="$tmp_nm -p"
13636 break
13639 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
13640 continue # so that we can try to find one that supports BSD flags
13642 esac
13644 esac
13646 done
13647 IFS="$lt_save_ifs"
13648 done
13649 : ${lt_cv_path_NM=no}
13652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
13653 $as_echo "$lt_cv_path_NM" >&6; }
13654 if test "$lt_cv_path_NM" != "no"; then
13655 NM="$lt_cv_path_NM"
13656 else
13657 # Didn't find any BSD compatible name lister, look for dumpbin.
13658 if test -n "$DUMPBIN"; then :
13659 # Let the user override the test.
13660 else
13661 if test -n "$ac_tool_prefix"; then
13662 for ac_prog in dumpbin "link -dump"
13664 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13665 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13667 $as_echo_n "checking for $ac_word... " >&6; }
13668 if ${ac_cv_prog_DUMPBIN+:} false; then :
13669 $as_echo_n "(cached) " >&6
13670 else
13671 if test -n "$DUMPBIN"; then
13672 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
13673 else
13674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13675 for as_dir in $PATH
13677 IFS=$as_save_IFS
13678 test -z "$as_dir" && as_dir=.
13679 for ac_exec_ext in '' $ac_executable_extensions; do
13680 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13681 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
13682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13683 break 2
13685 done
13686 done
13687 IFS=$as_save_IFS
13691 DUMPBIN=$ac_cv_prog_DUMPBIN
13692 if test -n "$DUMPBIN"; then
13693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
13694 $as_echo "$DUMPBIN" >&6; }
13695 else
13696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13697 $as_echo "no" >&6; }
13701 test -n "$DUMPBIN" && break
13702 done
13704 if test -z "$DUMPBIN"; then
13705 ac_ct_DUMPBIN=$DUMPBIN
13706 for ac_prog in dumpbin "link -dump"
13708 # Extract the first word of "$ac_prog", so it can be a program name with args.
13709 set dummy $ac_prog; ac_word=$2
13710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13711 $as_echo_n "checking for $ac_word... " >&6; }
13712 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
13713 $as_echo_n "(cached) " >&6
13714 else
13715 if test -n "$ac_ct_DUMPBIN"; then
13716 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
13717 else
13718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13719 for as_dir in $PATH
13721 IFS=$as_save_IFS
13722 test -z "$as_dir" && as_dir=.
13723 for ac_exec_ext in '' $ac_executable_extensions; do
13724 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13725 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
13726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13727 break 2
13729 done
13730 done
13731 IFS=$as_save_IFS
13735 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
13736 if test -n "$ac_ct_DUMPBIN"; then
13737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
13738 $as_echo "$ac_ct_DUMPBIN" >&6; }
13739 else
13740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13741 $as_echo "no" >&6; }
13745 test -n "$ac_ct_DUMPBIN" && break
13746 done
13748 if test "x$ac_ct_DUMPBIN" = x; then
13749 DUMPBIN=":"
13750 else
13751 case $cross_compiling:$ac_tool_warned in
13752 yes:)
13753 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13754 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13755 ac_tool_warned=yes ;;
13756 esac
13757 DUMPBIN=$ac_ct_DUMPBIN
13761 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
13762 *COFF*)
13763 DUMPBIN="$DUMPBIN -symbols"
13766 DUMPBIN=:
13768 esac
13771 if test "$DUMPBIN" != ":"; then
13772 NM="$DUMPBIN"
13775 test -z "$NM" && NM=nm
13782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
13783 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
13784 if ${lt_cv_nm_interface+:} false; then :
13785 $as_echo_n "(cached) " >&6
13786 else
13787 lt_cv_nm_interface="BSD nm"
13788 echo "int some_variable = 0;" > conftest.$ac_ext
13789 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
13790 (eval "$ac_compile" 2>conftest.err)
13791 cat conftest.err >&5
13792 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
13793 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
13794 cat conftest.err >&5
13795 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
13796 cat conftest.out >&5
13797 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
13798 lt_cv_nm_interface="MS dumpbin"
13800 rm -f conftest*
13802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
13803 $as_echo "$lt_cv_nm_interface" >&6; }
13805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
13806 $as_echo_n "checking whether ln -s works... " >&6; }
13807 LN_S=$as_ln_s
13808 if test "$LN_S" = "ln -s"; then
13809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13810 $as_echo "yes" >&6; }
13811 else
13812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
13813 $as_echo "no, using $LN_S" >&6; }
13816 # find the maximum length of command line arguments
13817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
13818 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
13819 if ${lt_cv_sys_max_cmd_len+:} false; then :
13820 $as_echo_n "(cached) " >&6
13821 else
13823 teststring="ABCD"
13825 case $build_os in
13826 msdosdjgpp*)
13827 # On DJGPP, this test can blow up pretty badly due to problems in libc
13828 # (any single argument exceeding 2000 bytes causes a buffer overrun
13829 # during glob expansion). Even if it were fixed, the result of this
13830 # check would be larger than it should be.
13831 lt_cv_sys_max_cmd_len=12288; # 12K is about right
13834 gnu*)
13835 # Under GNU Hurd, this test is not required because there is
13836 # no limit to the length of command line arguments.
13837 # Libtool will interpret -1 as no limit whatsoever
13838 lt_cv_sys_max_cmd_len=-1;
13841 cygwin* | mingw* | cegcc*)
13842 # On Win9x/ME, this test blows up -- it succeeds, but takes
13843 # about 5 minutes as the teststring grows exponentially.
13844 # Worse, since 9x/ME are not pre-emptively multitasking,
13845 # you end up with a "frozen" computer, even though with patience
13846 # the test eventually succeeds (with a max line length of 256k).
13847 # Instead, let's just punt: use the minimum linelength reported by
13848 # all of the supported platforms: 8192 (on NT/2K/XP).
13849 lt_cv_sys_max_cmd_len=8192;
13852 mint*)
13853 # On MiNT this can take a long time and run out of memory.
13854 lt_cv_sys_max_cmd_len=8192;
13857 amigaos*)
13858 # On AmigaOS with pdksh, this test takes hours, literally.
13859 # So we just punt and use a minimum line length of 8192.
13860 lt_cv_sys_max_cmd_len=8192;
13863 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
13864 # This has been around since 386BSD, at least. Likely further.
13865 if test -x /sbin/sysctl; then
13866 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13867 elif test -x /usr/sbin/sysctl; then
13868 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13869 else
13870 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
13872 # And add a safety zone
13873 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13874 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13877 interix*)
13878 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13879 lt_cv_sys_max_cmd_len=196608
13882 osf*)
13883 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13884 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13885 # nice to cause kernel panics so lets avoid the loop below.
13886 # First set a reasonable default.
13887 lt_cv_sys_max_cmd_len=16384
13889 if test -x /sbin/sysconfig; then
13890 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13891 *1*) lt_cv_sys_max_cmd_len=-1 ;;
13892 esac
13895 sco3.2v5*)
13896 lt_cv_sys_max_cmd_len=102400
13898 sysv5* | sco5v6* | sysv4.2uw2*)
13899 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13900 if test -n "$kargmax"; then
13901 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
13902 else
13903 lt_cv_sys_max_cmd_len=32768
13907 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
13908 if test -n "$lt_cv_sys_max_cmd_len"; then
13909 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13910 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13911 else
13912 # Make teststring a little bigger before we do anything with it.
13913 # a 1K string should be a reasonable start.
13914 for i in 1 2 3 4 5 6 7 8 ; do
13915 teststring=$teststring$teststring
13916 done
13917 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13918 # If test is not a shell built-in, we'll probably end up computing a
13919 # maximum length that is only half of the actual maximum length, but
13920 # we can't tell.
13921 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
13922 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
13923 test $i != 17 # 1/2 MB should be enough
13925 i=`expr $i + 1`
13926 teststring=$teststring$teststring
13927 done
13928 # Only check the string length outside the loop.
13929 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
13930 teststring=
13931 # Add a significant safety factor because C++ compilers can tack on
13932 # massive amounts of additional arguments before passing them to the
13933 # linker. It appears as though 1/2 is a usable value.
13934 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13937 esac
13941 if test -n $lt_cv_sys_max_cmd_len ; then
13942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
13943 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
13944 else
13945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
13946 $as_echo "none" >&6; }
13948 max_cmd_len=$lt_cv_sys_max_cmd_len
13955 : ${CP="cp -f"}
13956 : ${MV="mv -f"}
13957 : ${RM="rm -f"}
13959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
13960 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
13961 # Try some XSI features
13962 xsi_shell=no
13963 ( _lt_dummy="a/b/c"
13964 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
13965 = c,a/b,, \
13966 && eval 'test $(( 1 + 1 )) -eq 2 \
13967 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
13968 && xsi_shell=yes
13969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
13970 $as_echo "$xsi_shell" >&6; }
13973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
13974 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
13975 lt_shell_append=no
13976 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
13977 >/dev/null 2>&1 \
13978 && lt_shell_append=yes
13979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
13980 $as_echo "$lt_shell_append" >&6; }
13983 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13984 lt_unset=unset
13985 else
13986 lt_unset=false
13993 # test EBCDIC or ASCII
13994 case `echo X|tr X '\101'` in
13995 A) # ASCII based system
13996 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
13997 lt_SP2NL='tr \040 \012'
13998 lt_NL2SP='tr \015\012 \040\040'
14000 *) # EBCDIC based system
14001 lt_SP2NL='tr \100 \n'
14002 lt_NL2SP='tr \r\n \100\100'
14004 esac
14014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
14015 $as_echo_n "checking for $LD option to reload object files... " >&6; }
14016 if ${lt_cv_ld_reload_flag+:} false; then :
14017 $as_echo_n "(cached) " >&6
14018 else
14019 lt_cv_ld_reload_flag='-r'
14021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
14022 $as_echo "$lt_cv_ld_reload_flag" >&6; }
14023 reload_flag=$lt_cv_ld_reload_flag
14024 case $reload_flag in
14025 "" | " "*) ;;
14026 *) reload_flag=" $reload_flag" ;;
14027 esac
14028 reload_cmds='$LD$reload_flag -o $output$reload_objs'
14029 case $host_os in
14030 darwin*)
14031 if test "$GCC" = yes; then
14032 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
14033 else
14034 reload_cmds='$LD$reload_flag -o $output$reload_objs'
14037 esac
14047 if test -n "$ac_tool_prefix"; then
14048 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
14049 set dummy ${ac_tool_prefix}objdump; ac_word=$2
14050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14051 $as_echo_n "checking for $ac_word... " >&6; }
14052 if ${ac_cv_prog_OBJDUMP+:} false; then :
14053 $as_echo_n "(cached) " >&6
14054 else
14055 if test -n "$OBJDUMP"; then
14056 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
14057 else
14058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14059 for as_dir in $PATH
14061 IFS=$as_save_IFS
14062 test -z "$as_dir" && as_dir=.
14063 for ac_exec_ext in '' $ac_executable_extensions; do
14064 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14065 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
14066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14067 break 2
14069 done
14070 done
14071 IFS=$as_save_IFS
14075 OBJDUMP=$ac_cv_prog_OBJDUMP
14076 if test -n "$OBJDUMP"; then
14077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
14078 $as_echo "$OBJDUMP" >&6; }
14079 else
14080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14081 $as_echo "no" >&6; }
14086 if test -z "$ac_cv_prog_OBJDUMP"; then
14087 ac_ct_OBJDUMP=$OBJDUMP
14088 # Extract the first word of "objdump", so it can be a program name with args.
14089 set dummy objdump; ac_word=$2
14090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14091 $as_echo_n "checking for $ac_word... " >&6; }
14092 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
14093 $as_echo_n "(cached) " >&6
14094 else
14095 if test -n "$ac_ct_OBJDUMP"; then
14096 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
14097 else
14098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14099 for as_dir in $PATH
14101 IFS=$as_save_IFS
14102 test -z "$as_dir" && as_dir=.
14103 for ac_exec_ext in '' $ac_executable_extensions; do
14104 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14105 ac_cv_prog_ac_ct_OBJDUMP="objdump"
14106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14107 break 2
14109 done
14110 done
14111 IFS=$as_save_IFS
14115 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
14116 if test -n "$ac_ct_OBJDUMP"; then
14117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
14118 $as_echo "$ac_ct_OBJDUMP" >&6; }
14119 else
14120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14121 $as_echo "no" >&6; }
14124 if test "x$ac_ct_OBJDUMP" = x; then
14125 OBJDUMP="false"
14126 else
14127 case $cross_compiling:$ac_tool_warned in
14128 yes:)
14129 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14130 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14131 ac_tool_warned=yes ;;
14132 esac
14133 OBJDUMP=$ac_ct_OBJDUMP
14135 else
14136 OBJDUMP="$ac_cv_prog_OBJDUMP"
14139 test -z "$OBJDUMP" && OBJDUMP=objdump
14149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
14150 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
14151 if ${lt_cv_deplibs_check_method+:} false; then :
14152 $as_echo_n "(cached) " >&6
14153 else
14154 lt_cv_file_magic_cmd='$MAGIC_CMD'
14155 lt_cv_file_magic_test_file=
14156 lt_cv_deplibs_check_method='unknown'
14157 # Need to set the preceding variable on all platforms that support
14158 # interlibrary dependencies.
14159 # 'none' -- dependencies not supported.
14160 # `unknown' -- same as none, but documents that we really don't know.
14161 # 'pass_all' -- all dependencies passed with no checks.
14162 # 'test_compile' -- check by making test program.
14163 # 'file_magic [[regex]]' -- check by looking for files in library path
14164 # which responds to the $file_magic_cmd with a given extended regex.
14165 # If you have `file' or equivalent on your system and you're not sure
14166 # whether `pass_all' will *always* work, you probably want this one.
14168 case $host_os in
14169 aix[4-9]*)
14170 lt_cv_deplibs_check_method=pass_all
14173 beos*)
14174 lt_cv_deplibs_check_method=pass_all
14177 bsdi[45]*)
14178 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
14179 lt_cv_file_magic_cmd='/usr/bin/file -L'
14180 lt_cv_file_magic_test_file=/shlib/libc.so
14183 cygwin*)
14184 # func_win32_libid is a shell function defined in ltmain.sh
14185 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
14186 lt_cv_file_magic_cmd='func_win32_libid'
14189 mingw* | pw32*)
14190 # Base MSYS/MinGW do not provide the 'file' command needed by
14191 # func_win32_libid shell function, so use a weaker test based on 'objdump',
14192 # unless we find 'file', for example because we are cross-compiling.
14193 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
14194 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
14195 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
14196 lt_cv_file_magic_cmd='func_win32_libid'
14197 else
14198 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
14199 lt_cv_file_magic_cmd='$OBJDUMP -f'
14203 cegcc*)
14204 # use the weaker test based on 'objdump'. See mingw*.
14205 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
14206 lt_cv_file_magic_cmd='$OBJDUMP -f'
14209 darwin* | rhapsody*)
14210 lt_cv_deplibs_check_method=pass_all
14213 freebsd* | dragonfly*)
14214 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
14215 case $host_cpu in
14216 i*86 )
14217 # Not sure whether the presence of OpenBSD here was a mistake.
14218 # Let's accept both of them until this is cleared up.
14219 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
14220 lt_cv_file_magic_cmd=/usr/bin/file
14221 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
14223 esac
14224 else
14225 lt_cv_deplibs_check_method=pass_all
14229 gnu*)
14230 lt_cv_deplibs_check_method=pass_all
14233 haiku*)
14234 lt_cv_deplibs_check_method=pass_all
14237 hpux10.20* | hpux11*)
14238 lt_cv_file_magic_cmd=/usr/bin/file
14239 case $host_cpu in
14240 ia64*)
14241 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
14242 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
14244 hppa*64*)
14245 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]'
14246 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
14249 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
14250 lt_cv_file_magic_test_file=/usr/lib/libc.sl
14252 esac
14255 interix[3-9]*)
14256 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
14257 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
14260 irix5* | irix6* | nonstopux*)
14261 case $LD in
14262 *-32|*"-32 ") libmagic=32-bit;;
14263 *-n32|*"-n32 ") libmagic=N32;;
14264 *-64|*"-64 ") libmagic=64-bit;;
14265 *) libmagic=never-match;;
14266 esac
14267 lt_cv_deplibs_check_method=pass_all
14270 # This must be Linux ELF.
14271 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
14272 lt_cv_deplibs_check_method=pass_all
14275 netbsd*)
14276 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
14277 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
14278 else
14279 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
14283 newos6*)
14284 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
14285 lt_cv_file_magic_cmd=/usr/bin/file
14286 lt_cv_file_magic_test_file=/usr/lib/libnls.so
14289 *nto* | *qnx*)
14290 lt_cv_deplibs_check_method=pass_all
14293 openbsd*)
14294 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14295 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
14296 else
14297 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
14301 osf3* | osf4* | osf5*)
14302 lt_cv_deplibs_check_method=pass_all
14305 rdos*)
14306 lt_cv_deplibs_check_method=pass_all
14309 solaris*)
14310 lt_cv_deplibs_check_method=pass_all
14313 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14314 lt_cv_deplibs_check_method=pass_all
14317 sysv4 | sysv4.3*)
14318 case $host_vendor in
14319 motorola)
14320 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]'
14321 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
14323 ncr)
14324 lt_cv_deplibs_check_method=pass_all
14326 sequent)
14327 lt_cv_file_magic_cmd='/bin/file'
14328 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
14330 sni)
14331 lt_cv_file_magic_cmd='/bin/file'
14332 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
14333 lt_cv_file_magic_test_file=/lib/libc.so
14335 siemens)
14336 lt_cv_deplibs_check_method=pass_all
14339 lt_cv_deplibs_check_method=pass_all
14341 esac
14344 tpf*)
14345 lt_cv_deplibs_check_method=pass_all
14347 esac
14350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
14351 $as_echo "$lt_cv_deplibs_check_method" >&6; }
14352 file_magic_cmd=$lt_cv_file_magic_cmd
14353 deplibs_check_method=$lt_cv_deplibs_check_method
14354 test -z "$deplibs_check_method" && deplibs_check_method=unknown
14367 if test -n "$ac_tool_prefix"; then
14368 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14369 set dummy ${ac_tool_prefix}ar; ac_word=$2
14370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14371 $as_echo_n "checking for $ac_word... " >&6; }
14372 if ${ac_cv_prog_AR+:} false; then :
14373 $as_echo_n "(cached) " >&6
14374 else
14375 if test -n "$AR"; then
14376 ac_cv_prog_AR="$AR" # Let the user override the test.
14377 else
14378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14379 for as_dir in $PATH
14381 IFS=$as_save_IFS
14382 test -z "$as_dir" && as_dir=.
14383 for ac_exec_ext in '' $ac_executable_extensions; do
14384 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14385 ac_cv_prog_AR="${ac_tool_prefix}ar"
14386 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14387 break 2
14389 done
14390 done
14391 IFS=$as_save_IFS
14395 AR=$ac_cv_prog_AR
14396 if test -n "$AR"; then
14397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
14398 $as_echo "$AR" >&6; }
14399 else
14400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14401 $as_echo "no" >&6; }
14406 if test -z "$ac_cv_prog_AR"; then
14407 ac_ct_AR=$AR
14408 # Extract the first word of "ar", so it can be a program name with args.
14409 set dummy ar; ac_word=$2
14410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14411 $as_echo_n "checking for $ac_word... " >&6; }
14412 if ${ac_cv_prog_ac_ct_AR+:} false; then :
14413 $as_echo_n "(cached) " >&6
14414 else
14415 if test -n "$ac_ct_AR"; then
14416 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14417 else
14418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14419 for as_dir in $PATH
14421 IFS=$as_save_IFS
14422 test -z "$as_dir" && as_dir=.
14423 for ac_exec_ext in '' $ac_executable_extensions; do
14424 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14425 ac_cv_prog_ac_ct_AR="ar"
14426 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14427 break 2
14429 done
14430 done
14431 IFS=$as_save_IFS
14435 ac_ct_AR=$ac_cv_prog_ac_ct_AR
14436 if test -n "$ac_ct_AR"; then
14437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
14438 $as_echo "$ac_ct_AR" >&6; }
14439 else
14440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14441 $as_echo "no" >&6; }
14444 if test "x$ac_ct_AR" = x; then
14445 AR="false"
14446 else
14447 case $cross_compiling:$ac_tool_warned in
14448 yes:)
14449 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14450 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14451 ac_tool_warned=yes ;;
14452 esac
14453 AR=$ac_ct_AR
14455 else
14456 AR="$ac_cv_prog_AR"
14459 test -z "$AR" && AR=ar
14460 test -z "$AR_FLAGS" && AR_FLAGS=cru
14472 if test -n "$ac_tool_prefix"; then
14473 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14474 set dummy ${ac_tool_prefix}strip; ac_word=$2
14475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14476 $as_echo_n "checking for $ac_word... " >&6; }
14477 if ${ac_cv_prog_STRIP+:} false; then :
14478 $as_echo_n "(cached) " >&6
14479 else
14480 if test -n "$STRIP"; then
14481 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14482 else
14483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14484 for as_dir in $PATH
14486 IFS=$as_save_IFS
14487 test -z "$as_dir" && as_dir=.
14488 for ac_exec_ext in '' $ac_executable_extensions; do
14489 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14490 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14492 break 2
14494 done
14495 done
14496 IFS=$as_save_IFS
14500 STRIP=$ac_cv_prog_STRIP
14501 if test -n "$STRIP"; then
14502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
14503 $as_echo "$STRIP" >&6; }
14504 else
14505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14506 $as_echo "no" >&6; }
14511 if test -z "$ac_cv_prog_STRIP"; then
14512 ac_ct_STRIP=$STRIP
14513 # Extract the first word of "strip", so it can be a program name with args.
14514 set dummy strip; ac_word=$2
14515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14516 $as_echo_n "checking for $ac_word... " >&6; }
14517 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
14518 $as_echo_n "(cached) " >&6
14519 else
14520 if test -n "$ac_ct_STRIP"; then
14521 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14522 else
14523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14524 for as_dir in $PATH
14526 IFS=$as_save_IFS
14527 test -z "$as_dir" && as_dir=.
14528 for ac_exec_ext in '' $ac_executable_extensions; do
14529 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14530 ac_cv_prog_ac_ct_STRIP="strip"
14531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14532 break 2
14534 done
14535 done
14536 IFS=$as_save_IFS
14540 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14541 if test -n "$ac_ct_STRIP"; then
14542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
14543 $as_echo "$ac_ct_STRIP" >&6; }
14544 else
14545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14546 $as_echo "no" >&6; }
14549 if test "x$ac_ct_STRIP" = x; then
14550 STRIP=":"
14551 else
14552 case $cross_compiling:$ac_tool_warned in
14553 yes:)
14554 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14555 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14556 ac_tool_warned=yes ;;
14557 esac
14558 STRIP=$ac_ct_STRIP
14560 else
14561 STRIP="$ac_cv_prog_STRIP"
14564 test -z "$STRIP" && STRIP=:
14571 if test -n "$ac_tool_prefix"; then
14572 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
14573 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
14574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14575 $as_echo_n "checking for $ac_word... " >&6; }
14576 if ${ac_cv_prog_RANLIB+:} false; then :
14577 $as_echo_n "(cached) " >&6
14578 else
14579 if test -n "$RANLIB"; then
14580 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14581 else
14582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14583 for as_dir in $PATH
14585 IFS=$as_save_IFS
14586 test -z "$as_dir" && as_dir=.
14587 for ac_exec_ext in '' $ac_executable_extensions; do
14588 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14589 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
14590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14591 break 2
14593 done
14594 done
14595 IFS=$as_save_IFS
14599 RANLIB=$ac_cv_prog_RANLIB
14600 if test -n "$RANLIB"; then
14601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
14602 $as_echo "$RANLIB" >&6; }
14603 else
14604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14605 $as_echo "no" >&6; }
14610 if test -z "$ac_cv_prog_RANLIB"; then
14611 ac_ct_RANLIB=$RANLIB
14612 # Extract the first word of "ranlib", so it can be a program name with args.
14613 set dummy ranlib; ac_word=$2
14614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14615 $as_echo_n "checking for $ac_word... " >&6; }
14616 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
14617 $as_echo_n "(cached) " >&6
14618 else
14619 if test -n "$ac_ct_RANLIB"; then
14620 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14621 else
14622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14623 for as_dir in $PATH
14625 IFS=$as_save_IFS
14626 test -z "$as_dir" && as_dir=.
14627 for ac_exec_ext in '' $ac_executable_extensions; do
14628 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14629 ac_cv_prog_ac_ct_RANLIB="ranlib"
14630 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14631 break 2
14633 done
14634 done
14635 IFS=$as_save_IFS
14639 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14640 if test -n "$ac_ct_RANLIB"; then
14641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
14642 $as_echo "$ac_ct_RANLIB" >&6; }
14643 else
14644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14645 $as_echo "no" >&6; }
14648 if test "x$ac_ct_RANLIB" = x; then
14649 RANLIB=":"
14650 else
14651 case $cross_compiling:$ac_tool_warned in
14652 yes:)
14653 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14654 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14655 ac_tool_warned=yes ;;
14656 esac
14657 RANLIB=$ac_ct_RANLIB
14659 else
14660 RANLIB="$ac_cv_prog_RANLIB"
14663 test -z "$RANLIB" && RANLIB=:
14670 # Determine commands to create old-style static archives.
14671 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
14672 old_postinstall_cmds='chmod 644 $oldlib'
14673 old_postuninstall_cmds=
14675 if test -n "$RANLIB"; then
14676 case $host_os in
14677 openbsd*)
14678 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
14681 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
14683 esac
14684 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
14687 case $host_os in
14688 darwin*)
14689 lock_old_archive_extraction=yes ;;
14691 lock_old_archive_extraction=no ;;
14692 esac
14732 # If no C compiler was specified, use CC.
14733 LTCC=${LTCC-"$CC"}
14735 # If no C compiler flags were specified, use CFLAGS.
14736 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14738 # Allow CC to be a program name with arguments.
14739 compiler=$CC
14742 # Check for command to grab the raw symbol name followed by C symbol from nm.
14743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
14744 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
14745 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
14746 $as_echo_n "(cached) " >&6
14747 else
14749 # These are sane defaults that work on at least a few old systems.
14750 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
14752 # Character class describing NM global symbol codes.
14753 symcode='[BCDEGRST]'
14755 # Regexp to match symbols that can be accessed directly from C.
14756 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
14758 # Define system-specific variables.
14759 case $host_os in
14760 aix*)
14761 symcode='[BCDT]'
14763 cygwin* | mingw* | pw32* | cegcc*)
14764 symcode='[ABCDGISTW]'
14766 hpux*)
14767 if test "$host_cpu" = ia64; then
14768 symcode='[ABCDEGRST]'
14771 irix* | nonstopux*)
14772 symcode='[BCDEGRST]'
14774 osf*)
14775 symcode='[BCDEGQRST]'
14777 solaris*)
14778 symcode='[BDRT]'
14780 sco3.2v5*)
14781 symcode='[DT]'
14783 sysv4.2uw2*)
14784 symcode='[DT]'
14786 sysv5* | sco5v6* | unixware* | OpenUNIX*)
14787 symcode='[ABDT]'
14789 sysv4)
14790 symcode='[DFNSTU]'
14792 esac
14794 # If we're using GNU nm, then use its standard symbol codes.
14795 case `$NM -V 2>&1` in
14796 *GNU* | *'with BFD'*)
14797 symcode='[ABCDGIRSTW]' ;;
14798 esac
14800 # Transform an extracted symbol line into a proper C declaration.
14801 # Some systems (esp. on ia64) link data and code symbols differently,
14802 # so use this general approach.
14803 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
14805 # Transform an extracted symbol line into symbol name and symbol address
14806 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
14807 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'"
14809 # Handle CRLF in mingw tool chain
14810 opt_cr=
14811 case $build_os in
14812 mingw*)
14813 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
14815 esac
14817 # Try without a prefix underscore, then with it.
14818 for ac_symprfx in "" "_"; do
14820 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
14821 symxfrm="\\1 $ac_symprfx\\2 \\2"
14823 # Write the raw and C identifiers.
14824 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
14825 # Fake it for dumpbin and say T for any non-static function
14826 # and D for any global variable.
14827 # Also find C++ and __fastcall symbols from MSVC++,
14828 # which start with @ or ?.
14829 lt_cv_sys_global_symbol_pipe="$AWK '"\
14830 " {last_section=section; section=\$ 3};"\
14831 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
14832 " \$ 0!~/External *\|/{next};"\
14833 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
14834 " {if(hide[section]) next};"\
14835 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
14836 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
14837 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
14838 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
14839 " ' prfx=^$ac_symprfx"
14840 else
14841 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
14844 # Check to see that the pipe works correctly.
14845 pipe_works=no
14847 rm -f conftest*
14848 cat > conftest.$ac_ext <<_LT_EOF
14849 #ifdef __cplusplus
14850 extern "C" {
14851 #endif
14852 char nm_test_var;
14853 void nm_test_func(void);
14854 void nm_test_func(void){}
14855 #ifdef __cplusplus
14857 #endif
14858 int main(){nm_test_var='a';nm_test_func();return(0);}
14859 _LT_EOF
14861 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14862 (eval $ac_compile) 2>&5
14863 ac_status=$?
14864 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14865 test $ac_status = 0; }; then
14866 # Now try to grab the symbols.
14867 nlist=conftest.nm
14868 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
14869 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
14870 ac_status=$?
14871 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14872 test $ac_status = 0; } && test -s "$nlist"; then
14873 # Try sorting and uniquifying the output.
14874 if sort "$nlist" | uniq > "$nlist"T; then
14875 mv -f "$nlist"T "$nlist"
14876 else
14877 rm -f "$nlist"T
14880 # Make sure that we snagged all the symbols we need.
14881 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
14882 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
14883 cat <<_LT_EOF > conftest.$ac_ext
14884 #ifdef __cplusplus
14885 extern "C" {
14886 #endif
14888 _LT_EOF
14889 # Now generate the symbol file.
14890 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
14892 cat <<_LT_EOF >> conftest.$ac_ext
14894 /* The mapping between symbol names and symbols. */
14895 const struct {
14896 const char *name;
14897 void *address;
14899 lt__PROGRAM__LTX_preloaded_symbols[] =
14901 { "@PROGRAM@", (void *) 0 },
14902 _LT_EOF
14903 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
14904 cat <<\_LT_EOF >> conftest.$ac_ext
14905 {0, (void *) 0}
14908 /* This works around a problem in FreeBSD linker */
14909 #ifdef FREEBSD_WORKAROUND
14910 static const void *lt_preloaded_setup() {
14911 return lt__PROGRAM__LTX_preloaded_symbols;
14913 #endif
14915 #ifdef __cplusplus
14917 #endif
14918 _LT_EOF
14919 # Now try linking the two files.
14920 mv conftest.$ac_objext conftstm.$ac_objext
14921 lt_save_LIBS="$LIBS"
14922 lt_save_CFLAGS="$CFLAGS"
14923 LIBS="conftstm.$ac_objext"
14924 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
14925 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14926 (eval $ac_link) 2>&5
14927 ac_status=$?
14928 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14929 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
14930 pipe_works=yes
14932 LIBS="$lt_save_LIBS"
14933 CFLAGS="$lt_save_CFLAGS"
14934 else
14935 echo "cannot find nm_test_func in $nlist" >&5
14937 else
14938 echo "cannot find nm_test_var in $nlist" >&5
14940 else
14941 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
14943 else
14944 echo "$progname: failed program was:" >&5
14945 cat conftest.$ac_ext >&5
14947 rm -rf conftest* conftst*
14949 # Do not use the global_symbol_pipe unless it works.
14950 if test "$pipe_works" = yes; then
14951 break
14952 else
14953 lt_cv_sys_global_symbol_pipe=
14955 done
14959 if test -z "$lt_cv_sys_global_symbol_pipe"; then
14960 lt_cv_sys_global_symbol_to_cdecl=
14962 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
14963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
14964 $as_echo "failed" >&6; }
14965 else
14966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
14967 $as_echo "ok" >&6; }
14991 # Check whether --enable-libtool-lock was given.
14992 if test "${enable_libtool_lock+set}" = set; then :
14993 enableval=$enable_libtool_lock;
14996 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14998 # Some flags need to be propagated to the compiler or linker for good
14999 # libtool support.
15000 case $host in
15001 ia64-*-hpux*)
15002 # Find out which ABI we are using.
15003 echo 'int i;' > conftest.$ac_ext
15004 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15005 (eval $ac_compile) 2>&5
15006 ac_status=$?
15007 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15008 test $ac_status = 0; }; then
15009 case `/usr/bin/file conftest.$ac_objext` in
15010 *ELF-32*)
15011 HPUX_IA64_MODE="32"
15013 *ELF-64*)
15014 HPUX_IA64_MODE="64"
15016 esac
15018 rm -rf conftest*
15020 *-*-irix6*)
15021 # Find out which ABI we are using.
15022 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
15023 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15024 (eval $ac_compile) 2>&5
15025 ac_status=$?
15026 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15027 test $ac_status = 0; }; then
15028 if test "$lt_cv_prog_gnu_ld" = yes; then
15029 case `/usr/bin/file conftest.$ac_objext` in
15030 *32-bit*)
15031 LD="${LD-ld} -melf32bsmip"
15033 *N32*)
15034 LD="${LD-ld} -melf32bmipn32"
15036 *64-bit*)
15037 LD="${LD-ld} -melf64bmip"
15039 esac
15040 else
15041 case `/usr/bin/file conftest.$ac_objext` in
15042 *32-bit*)
15043 LD="${LD-ld} -32"
15045 *N32*)
15046 LD="${LD-ld} -n32"
15048 *64-bit*)
15049 LD="${LD-ld} -64"
15051 esac
15054 rm -rf conftest*
15057 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
15058 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
15059 # Find out which ABI we are using.
15060 echo 'int i;' > conftest.$ac_ext
15061 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15062 (eval $ac_compile) 2>&5
15063 ac_status=$?
15064 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15065 test $ac_status = 0; }; then
15066 case `/usr/bin/file conftest.o` in
15067 *32-bit*)
15068 case $host in
15069 x86_64-*kfreebsd*-gnu)
15070 LD="${LD-ld} -m elf_i386_fbsd"
15072 x86_64-*linux*)
15073 case `/usr/bin/file conftest.o` in
15074 *x86-64*)
15075 LD="${LD-ld} -m elf32_x86_64"
15078 LD="${LD-ld} -m elf_i386"
15080 esac
15082 powerpc64le-*linux*)
15083 LD="${LD-ld} -m elf32lppclinux"
15085 powerpc64-*linux*)
15086 LD="${LD-ld} -m elf32ppclinux"
15088 s390x-*linux*)
15089 LD="${LD-ld} -m elf_s390"
15091 sparc64-*linux*)
15092 LD="${LD-ld} -m elf32_sparc"
15094 esac
15096 *64-bit*)
15097 case $host in
15098 x86_64-*kfreebsd*-gnu)
15099 LD="${LD-ld} -m elf_x86_64_fbsd"
15101 x86_64-*linux*)
15102 LD="${LD-ld} -m elf_x86_64"
15104 powerpcle-*linux*)
15105 LD="${LD-ld} -m elf64lppc"
15107 powerpc-*linux*)
15108 LD="${LD-ld} -m elf64ppc"
15110 s390*-*linux*|s390*-*tpf*)
15111 LD="${LD-ld} -m elf64_s390"
15113 sparc*-*linux*)
15114 LD="${LD-ld} -m elf64_sparc"
15116 esac
15118 esac
15120 rm -rf conftest*
15123 *-*-sco3.2v5*)
15124 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
15125 SAVE_CFLAGS="$CFLAGS"
15126 CFLAGS="$CFLAGS -belf"
15127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
15128 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
15129 if ${lt_cv_cc_needs_belf+:} false; then :
15130 $as_echo_n "(cached) " >&6
15131 else
15132 ac_ext=c
15133 ac_cpp='$CPP $CPPFLAGS'
15134 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15135 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15136 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15139 /* end confdefs.h. */
15142 main ()
15146 return 0;
15148 _ACEOF
15149 if ac_fn_c_try_link "$LINENO"; then :
15150 lt_cv_cc_needs_belf=yes
15151 else
15152 lt_cv_cc_needs_belf=no
15154 rm -f core conftest.err conftest.$ac_objext \
15155 conftest$ac_exeext conftest.$ac_ext
15156 ac_ext=c
15157 ac_cpp='$CPP $CPPFLAGS'
15158 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15159 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15160 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
15164 $as_echo "$lt_cv_cc_needs_belf" >&6; }
15165 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
15166 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
15167 CFLAGS="$SAVE_CFLAGS"
15170 sparc*-*solaris*)
15171 # Find out which ABI we are using.
15172 echo 'int i;' > conftest.$ac_ext
15173 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15174 (eval $ac_compile) 2>&5
15175 ac_status=$?
15176 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15177 test $ac_status = 0; }; then
15178 case `/usr/bin/file conftest.o` in
15179 *64-bit*)
15180 case $lt_cv_prog_gnu_ld in
15181 yes*) LD="${LD-ld} -m elf64_sparc" ;;
15183 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
15184 LD="${LD-ld} -64"
15187 esac
15189 esac
15191 rm -rf conftest*
15193 esac
15195 need_locks="$enable_libtool_lock"
15198 case $host_os in
15199 rhapsody* | darwin*)
15200 if test -n "$ac_tool_prefix"; then
15201 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
15202 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
15203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15204 $as_echo_n "checking for $ac_word... " >&6; }
15205 if ${ac_cv_prog_DSYMUTIL+:} false; then :
15206 $as_echo_n "(cached) " >&6
15207 else
15208 if test -n "$DSYMUTIL"; then
15209 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
15210 else
15211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15212 for as_dir in $PATH
15214 IFS=$as_save_IFS
15215 test -z "$as_dir" && as_dir=.
15216 for ac_exec_ext in '' $ac_executable_extensions; do
15217 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15218 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
15219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15220 break 2
15222 done
15223 done
15224 IFS=$as_save_IFS
15228 DSYMUTIL=$ac_cv_prog_DSYMUTIL
15229 if test -n "$DSYMUTIL"; then
15230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
15231 $as_echo "$DSYMUTIL" >&6; }
15232 else
15233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15234 $as_echo "no" >&6; }
15239 if test -z "$ac_cv_prog_DSYMUTIL"; then
15240 ac_ct_DSYMUTIL=$DSYMUTIL
15241 # Extract the first word of "dsymutil", so it can be a program name with args.
15242 set dummy dsymutil; ac_word=$2
15243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15244 $as_echo_n "checking for $ac_word... " >&6; }
15245 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
15246 $as_echo_n "(cached) " >&6
15247 else
15248 if test -n "$ac_ct_DSYMUTIL"; then
15249 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
15250 else
15251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15252 for as_dir in $PATH
15254 IFS=$as_save_IFS
15255 test -z "$as_dir" && as_dir=.
15256 for ac_exec_ext in '' $ac_executable_extensions; do
15257 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15258 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
15259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15260 break 2
15262 done
15263 done
15264 IFS=$as_save_IFS
15268 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
15269 if test -n "$ac_ct_DSYMUTIL"; then
15270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
15271 $as_echo "$ac_ct_DSYMUTIL" >&6; }
15272 else
15273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15274 $as_echo "no" >&6; }
15277 if test "x$ac_ct_DSYMUTIL" = x; then
15278 DSYMUTIL=":"
15279 else
15280 case $cross_compiling:$ac_tool_warned in
15281 yes:)
15282 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15283 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15284 ac_tool_warned=yes ;;
15285 esac
15286 DSYMUTIL=$ac_ct_DSYMUTIL
15288 else
15289 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
15292 if test -n "$ac_tool_prefix"; then
15293 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
15294 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
15295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15296 $as_echo_n "checking for $ac_word... " >&6; }
15297 if ${ac_cv_prog_NMEDIT+:} false; then :
15298 $as_echo_n "(cached) " >&6
15299 else
15300 if test -n "$NMEDIT"; then
15301 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
15302 else
15303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15304 for as_dir in $PATH
15306 IFS=$as_save_IFS
15307 test -z "$as_dir" && as_dir=.
15308 for ac_exec_ext in '' $ac_executable_extensions; do
15309 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15310 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
15311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15312 break 2
15314 done
15315 done
15316 IFS=$as_save_IFS
15320 NMEDIT=$ac_cv_prog_NMEDIT
15321 if test -n "$NMEDIT"; then
15322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
15323 $as_echo "$NMEDIT" >&6; }
15324 else
15325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15326 $as_echo "no" >&6; }
15331 if test -z "$ac_cv_prog_NMEDIT"; then
15332 ac_ct_NMEDIT=$NMEDIT
15333 # Extract the first word of "nmedit", so it can be a program name with args.
15334 set dummy nmedit; ac_word=$2
15335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15336 $as_echo_n "checking for $ac_word... " >&6; }
15337 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
15338 $as_echo_n "(cached) " >&6
15339 else
15340 if test -n "$ac_ct_NMEDIT"; then
15341 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
15342 else
15343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15344 for as_dir in $PATH
15346 IFS=$as_save_IFS
15347 test -z "$as_dir" && as_dir=.
15348 for ac_exec_ext in '' $ac_executable_extensions; do
15349 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15350 ac_cv_prog_ac_ct_NMEDIT="nmedit"
15351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15352 break 2
15354 done
15355 done
15356 IFS=$as_save_IFS
15360 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
15361 if test -n "$ac_ct_NMEDIT"; then
15362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
15363 $as_echo "$ac_ct_NMEDIT" >&6; }
15364 else
15365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15366 $as_echo "no" >&6; }
15369 if test "x$ac_ct_NMEDIT" = x; then
15370 NMEDIT=":"
15371 else
15372 case $cross_compiling:$ac_tool_warned in
15373 yes:)
15374 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15375 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15376 ac_tool_warned=yes ;;
15377 esac
15378 NMEDIT=$ac_ct_NMEDIT
15380 else
15381 NMEDIT="$ac_cv_prog_NMEDIT"
15384 if test -n "$ac_tool_prefix"; then
15385 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
15386 set dummy ${ac_tool_prefix}lipo; ac_word=$2
15387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15388 $as_echo_n "checking for $ac_word... " >&6; }
15389 if ${ac_cv_prog_LIPO+:} false; then :
15390 $as_echo_n "(cached) " >&6
15391 else
15392 if test -n "$LIPO"; then
15393 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
15394 else
15395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15396 for as_dir in $PATH
15398 IFS=$as_save_IFS
15399 test -z "$as_dir" && as_dir=.
15400 for ac_exec_ext in '' $ac_executable_extensions; do
15401 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15402 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
15403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15404 break 2
15406 done
15407 done
15408 IFS=$as_save_IFS
15412 LIPO=$ac_cv_prog_LIPO
15413 if test -n "$LIPO"; then
15414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
15415 $as_echo "$LIPO" >&6; }
15416 else
15417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15418 $as_echo "no" >&6; }
15423 if test -z "$ac_cv_prog_LIPO"; then
15424 ac_ct_LIPO=$LIPO
15425 # Extract the first word of "lipo", so it can be a program name with args.
15426 set dummy lipo; ac_word=$2
15427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15428 $as_echo_n "checking for $ac_word... " >&6; }
15429 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
15430 $as_echo_n "(cached) " >&6
15431 else
15432 if test -n "$ac_ct_LIPO"; then
15433 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
15434 else
15435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15436 for as_dir in $PATH
15438 IFS=$as_save_IFS
15439 test -z "$as_dir" && as_dir=.
15440 for ac_exec_ext in '' $ac_executable_extensions; do
15441 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15442 ac_cv_prog_ac_ct_LIPO="lipo"
15443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15444 break 2
15446 done
15447 done
15448 IFS=$as_save_IFS
15452 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
15453 if test -n "$ac_ct_LIPO"; then
15454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
15455 $as_echo "$ac_ct_LIPO" >&6; }
15456 else
15457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15458 $as_echo "no" >&6; }
15461 if test "x$ac_ct_LIPO" = x; then
15462 LIPO=":"
15463 else
15464 case $cross_compiling:$ac_tool_warned in
15465 yes:)
15466 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15467 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15468 ac_tool_warned=yes ;;
15469 esac
15470 LIPO=$ac_ct_LIPO
15472 else
15473 LIPO="$ac_cv_prog_LIPO"
15476 if test -n "$ac_tool_prefix"; then
15477 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
15478 set dummy ${ac_tool_prefix}otool; ac_word=$2
15479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15480 $as_echo_n "checking for $ac_word... " >&6; }
15481 if ${ac_cv_prog_OTOOL+:} false; then :
15482 $as_echo_n "(cached) " >&6
15483 else
15484 if test -n "$OTOOL"; then
15485 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
15486 else
15487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15488 for as_dir in $PATH
15490 IFS=$as_save_IFS
15491 test -z "$as_dir" && as_dir=.
15492 for ac_exec_ext in '' $ac_executable_extensions; do
15493 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15494 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
15495 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15496 break 2
15498 done
15499 done
15500 IFS=$as_save_IFS
15504 OTOOL=$ac_cv_prog_OTOOL
15505 if test -n "$OTOOL"; then
15506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
15507 $as_echo "$OTOOL" >&6; }
15508 else
15509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15510 $as_echo "no" >&6; }
15515 if test -z "$ac_cv_prog_OTOOL"; then
15516 ac_ct_OTOOL=$OTOOL
15517 # Extract the first word of "otool", so it can be a program name with args.
15518 set dummy otool; ac_word=$2
15519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15520 $as_echo_n "checking for $ac_word... " >&6; }
15521 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
15522 $as_echo_n "(cached) " >&6
15523 else
15524 if test -n "$ac_ct_OTOOL"; then
15525 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
15526 else
15527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15528 for as_dir in $PATH
15530 IFS=$as_save_IFS
15531 test -z "$as_dir" && as_dir=.
15532 for ac_exec_ext in '' $ac_executable_extensions; do
15533 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15534 ac_cv_prog_ac_ct_OTOOL="otool"
15535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15536 break 2
15538 done
15539 done
15540 IFS=$as_save_IFS
15544 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
15545 if test -n "$ac_ct_OTOOL"; then
15546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
15547 $as_echo "$ac_ct_OTOOL" >&6; }
15548 else
15549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15550 $as_echo "no" >&6; }
15553 if test "x$ac_ct_OTOOL" = x; then
15554 OTOOL=":"
15555 else
15556 case $cross_compiling:$ac_tool_warned in
15557 yes:)
15558 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15559 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15560 ac_tool_warned=yes ;;
15561 esac
15562 OTOOL=$ac_ct_OTOOL
15564 else
15565 OTOOL="$ac_cv_prog_OTOOL"
15568 if test -n "$ac_tool_prefix"; then
15569 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
15570 set dummy ${ac_tool_prefix}otool64; ac_word=$2
15571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15572 $as_echo_n "checking for $ac_word... " >&6; }
15573 if ${ac_cv_prog_OTOOL64+:} false; then :
15574 $as_echo_n "(cached) " >&6
15575 else
15576 if test -n "$OTOOL64"; then
15577 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
15578 else
15579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15580 for as_dir in $PATH
15582 IFS=$as_save_IFS
15583 test -z "$as_dir" && as_dir=.
15584 for ac_exec_ext in '' $ac_executable_extensions; do
15585 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15586 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
15587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15588 break 2
15590 done
15591 done
15592 IFS=$as_save_IFS
15596 OTOOL64=$ac_cv_prog_OTOOL64
15597 if test -n "$OTOOL64"; then
15598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
15599 $as_echo "$OTOOL64" >&6; }
15600 else
15601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15602 $as_echo "no" >&6; }
15607 if test -z "$ac_cv_prog_OTOOL64"; then
15608 ac_ct_OTOOL64=$OTOOL64
15609 # Extract the first word of "otool64", so it can be a program name with args.
15610 set dummy otool64; ac_word=$2
15611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15612 $as_echo_n "checking for $ac_word... " >&6; }
15613 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
15614 $as_echo_n "(cached) " >&6
15615 else
15616 if test -n "$ac_ct_OTOOL64"; then
15617 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
15618 else
15619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15620 for as_dir in $PATH
15622 IFS=$as_save_IFS
15623 test -z "$as_dir" && as_dir=.
15624 for ac_exec_ext in '' $ac_executable_extensions; do
15625 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15626 ac_cv_prog_ac_ct_OTOOL64="otool64"
15627 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15628 break 2
15630 done
15631 done
15632 IFS=$as_save_IFS
15636 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
15637 if test -n "$ac_ct_OTOOL64"; then
15638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
15639 $as_echo "$ac_ct_OTOOL64" >&6; }
15640 else
15641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15642 $as_echo "no" >&6; }
15645 if test "x$ac_ct_OTOOL64" = x; then
15646 OTOOL64=":"
15647 else
15648 case $cross_compiling:$ac_tool_warned in
15649 yes:)
15650 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15651 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15652 ac_tool_warned=yes ;;
15653 esac
15654 OTOOL64=$ac_ct_OTOOL64
15656 else
15657 OTOOL64="$ac_cv_prog_OTOOL64"
15686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
15687 $as_echo_n "checking for -single_module linker flag... " >&6; }
15688 if ${lt_cv_apple_cc_single_mod+:} false; then :
15689 $as_echo_n "(cached) " >&6
15690 else
15691 lt_cv_apple_cc_single_mod=no
15692 if test -z "${LT_MULTI_MODULE}"; then
15693 # By default we will add the -single_module flag. You can override
15694 # by either setting the environment variable LT_MULTI_MODULE
15695 # non-empty at configure time, or by adding -multi_module to the
15696 # link flags.
15697 rm -rf libconftest.dylib*
15698 echo "int foo(void){return 1;}" > conftest.c
15699 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
15700 -dynamiclib -Wl,-single_module conftest.c" >&5
15701 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
15702 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
15703 _lt_result=$?
15704 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
15705 lt_cv_apple_cc_single_mod=yes
15706 else
15707 cat conftest.err >&5
15709 rm -rf libconftest.dylib*
15710 rm -f conftest.*
15713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
15714 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
15715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
15716 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
15717 if ${lt_cv_ld_exported_symbols_list+:} false; then :
15718 $as_echo_n "(cached) " >&6
15719 else
15720 lt_cv_ld_exported_symbols_list=no
15721 save_LDFLAGS=$LDFLAGS
15722 echo "_main" > conftest.sym
15723 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
15724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15725 /* end confdefs.h. */
15728 main ()
15732 return 0;
15734 _ACEOF
15735 if ac_fn_c_try_link "$LINENO"; then :
15736 lt_cv_ld_exported_symbols_list=yes
15737 else
15738 lt_cv_ld_exported_symbols_list=no
15740 rm -f core conftest.err conftest.$ac_objext \
15741 conftest$ac_exeext conftest.$ac_ext
15742 LDFLAGS="$save_LDFLAGS"
15745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
15746 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
15747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
15748 $as_echo_n "checking for -force_load linker flag... " >&6; }
15749 if ${lt_cv_ld_force_load+:} false; then :
15750 $as_echo_n "(cached) " >&6
15751 else
15752 lt_cv_ld_force_load=no
15753 cat > conftest.c << _LT_EOF
15754 int forced_loaded() { return 2;}
15755 _LT_EOF
15756 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
15757 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
15758 echo "$AR cru libconftest.a conftest.o" >&5
15759 $AR cru libconftest.a conftest.o 2>&5
15760 cat > conftest.c << _LT_EOF
15761 int main() { return 0;}
15762 _LT_EOF
15763 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
15764 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
15765 _lt_result=$?
15766 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
15767 lt_cv_ld_force_load=yes
15768 else
15769 cat conftest.err >&5
15771 rm -f conftest.err libconftest.a conftest conftest.c
15772 rm -rf conftest.dSYM
15775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
15776 $as_echo "$lt_cv_ld_force_load" >&6; }
15777 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
15778 # build without first building modern cctools / linker.
15779 case $host_cpu-$host_os in
15780 *-rhapsody* | *-darwin1.[012])
15781 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
15782 *-darwin1.*)
15783 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
15784 *-darwin*)
15785 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
15786 # deployment target is forced to an earlier version.
15787 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
15788 UNSET,*-darwin[89]*|UNSET,*-darwin[12][0123456789]*)
15790 10.[012][,.]*)
15791 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15795 esac
15797 esac
15798 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
15799 _lt_dar_single_mod='$single_module'
15801 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
15802 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
15803 else
15804 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
15806 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
15807 _lt_dsymutil='~$DSYMUTIL $lib || :'
15808 else
15809 _lt_dsymutil=
15812 esac
15815 for ac_header in dlfcn.h
15816 do :
15817 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
15818 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
15819 cat >>confdefs.h <<_ACEOF
15820 #define HAVE_DLFCN_H 1
15821 _ACEOF
15824 done
15830 # Set options
15834 enable_dlopen=no
15837 enable_win32_dll=no
15840 # Check whether --enable-shared was given.
15841 if test "${enable_shared+set}" = set; then :
15842 enableval=$enable_shared; p=${PACKAGE-default}
15843 case $enableval in
15844 yes) enable_shared=yes ;;
15845 no) enable_shared=no ;;
15847 enable_shared=no
15848 # Look at the argument we got. We use all the common list separators.
15849 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15850 for pkg in $enableval; do
15851 IFS="$lt_save_ifs"
15852 if test "X$pkg" = "X$p"; then
15853 enable_shared=yes
15855 done
15856 IFS="$lt_save_ifs"
15858 esac
15859 else
15860 enable_shared=yes
15871 # Check whether --enable-static was given.
15872 if test "${enable_static+set}" = set; then :
15873 enableval=$enable_static; p=${PACKAGE-default}
15874 case $enableval in
15875 yes) enable_static=yes ;;
15876 no) enable_static=no ;;
15878 enable_static=no
15879 # Look at the argument we got. We use all the common list separators.
15880 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15881 for pkg in $enableval; do
15882 IFS="$lt_save_ifs"
15883 if test "X$pkg" = "X$p"; then
15884 enable_static=yes
15886 done
15887 IFS="$lt_save_ifs"
15889 esac
15890 else
15891 enable_static=yes
15903 # Check whether --with-pic was given.
15904 if test "${with_pic+set}" = set; then :
15905 withval=$with_pic; pic_mode="$withval"
15906 else
15907 pic_mode=default
15911 test -z "$pic_mode" && pic_mode=default
15919 # Check whether --enable-fast-install was given.
15920 if test "${enable_fast_install+set}" = set; then :
15921 enableval=$enable_fast_install; p=${PACKAGE-default}
15922 case $enableval in
15923 yes) enable_fast_install=yes ;;
15924 no) enable_fast_install=no ;;
15926 enable_fast_install=no
15927 # Look at the argument we got. We use all the common list separators.
15928 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15929 for pkg in $enableval; do
15930 IFS="$lt_save_ifs"
15931 if test "X$pkg" = "X$p"; then
15932 enable_fast_install=yes
15934 done
15935 IFS="$lt_save_ifs"
15937 esac
15938 else
15939 enable_fast_install=yes
15952 # This can be used to rebuild libtool when needed
15953 LIBTOOL_DEPS="$ltmain"
15955 # Always use our own libtool.
15956 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
15983 test -z "$LN_S" && LN_S="ln -s"
15998 if test -n "${ZSH_VERSION+set}" ; then
15999 setopt NO_GLOB_SUBST
16002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
16003 $as_echo_n "checking for objdir... " >&6; }
16004 if ${lt_cv_objdir+:} false; then :
16005 $as_echo_n "(cached) " >&6
16006 else
16007 rm -f .libs 2>/dev/null
16008 mkdir .libs 2>/dev/null
16009 if test -d .libs; then
16010 lt_cv_objdir=.libs
16011 else
16012 # MS-DOS does not allow filenames that begin with a dot.
16013 lt_cv_objdir=_libs
16015 rmdir .libs 2>/dev/null
16017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
16018 $as_echo "$lt_cv_objdir" >&6; }
16019 objdir=$lt_cv_objdir
16025 cat >>confdefs.h <<_ACEOF
16026 #define LT_OBJDIR "$lt_cv_objdir/"
16027 _ACEOF
16032 case $host_os in
16033 aix3*)
16034 # AIX sometimes has problems with the GCC collect2 program. For some
16035 # reason, if we set the COLLECT_NAMES environment variable, the problems
16036 # vanish in a puff of smoke.
16037 if test "X${COLLECT_NAMES+set}" != Xset; then
16038 COLLECT_NAMES=
16039 export COLLECT_NAMES
16042 esac
16044 # Global variables:
16045 ofile=libtool
16046 can_build_shared=yes
16048 # All known linkers require a `.a' archive for static linking (except MSVC,
16049 # which needs '.lib').
16050 libext=a
16052 with_gnu_ld="$lt_cv_prog_gnu_ld"
16054 old_CC="$CC"
16055 old_CFLAGS="$CFLAGS"
16057 # Set sane defaults for various variables
16058 test -z "$CC" && CC=cc
16059 test -z "$LTCC" && LTCC=$CC
16060 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
16061 test -z "$LD" && LD=ld
16062 test -z "$ac_objext" && ac_objext=o
16064 for cc_temp in $compiler""; do
16065 case $cc_temp in
16066 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16067 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16068 \-*) ;;
16069 *) break;;
16070 esac
16071 done
16072 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
16075 # Only perform the check for file, if the check method requires it
16076 test -z "$MAGIC_CMD" && MAGIC_CMD=file
16077 case $deplibs_check_method in
16078 file_magic*)
16079 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
16080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
16081 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
16082 if ${lt_cv_path_MAGIC_CMD+:} false; then :
16083 $as_echo_n "(cached) " >&6
16084 else
16085 case $MAGIC_CMD in
16086 [\\/*] | ?:[\\/]*)
16087 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
16090 lt_save_MAGIC_CMD="$MAGIC_CMD"
16091 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16092 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
16093 for ac_dir in $ac_dummy; do
16094 IFS="$lt_save_ifs"
16095 test -z "$ac_dir" && ac_dir=.
16096 if test -f $ac_dir/${ac_tool_prefix}file; then
16097 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
16098 if test -n "$file_magic_test_file"; then
16099 case $deplibs_check_method in
16100 "file_magic "*)
16101 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
16102 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16103 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
16104 $EGREP "$file_magic_regex" > /dev/null; then
16106 else
16107 cat <<_LT_EOF 1>&2
16109 *** Warning: the command libtool uses to detect shared libraries,
16110 *** $file_magic_cmd, produces output that libtool cannot recognize.
16111 *** The result is that libtool may fail to recognize shared libraries
16112 *** as such. This will affect the creation of libtool libraries that
16113 *** depend on shared libraries, but programs linked with such libtool
16114 *** libraries will work regardless of this problem. Nevertheless, you
16115 *** may want to report the problem to your system manager and/or to
16116 *** bug-libtool@gnu.org
16118 _LT_EOF
16119 fi ;;
16120 esac
16122 break
16124 done
16125 IFS="$lt_save_ifs"
16126 MAGIC_CMD="$lt_save_MAGIC_CMD"
16128 esac
16131 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16132 if test -n "$MAGIC_CMD"; then
16133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
16134 $as_echo "$MAGIC_CMD" >&6; }
16135 else
16136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16137 $as_echo "no" >&6; }
16144 if test -z "$lt_cv_path_MAGIC_CMD"; then
16145 if test -n "$ac_tool_prefix"; then
16146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
16147 $as_echo_n "checking for file... " >&6; }
16148 if ${lt_cv_path_MAGIC_CMD+:} false; then :
16149 $as_echo_n "(cached) " >&6
16150 else
16151 case $MAGIC_CMD in
16152 [\\/*] | ?:[\\/]*)
16153 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
16156 lt_save_MAGIC_CMD="$MAGIC_CMD"
16157 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16158 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
16159 for ac_dir in $ac_dummy; do
16160 IFS="$lt_save_ifs"
16161 test -z "$ac_dir" && ac_dir=.
16162 if test -f $ac_dir/file; then
16163 lt_cv_path_MAGIC_CMD="$ac_dir/file"
16164 if test -n "$file_magic_test_file"; then
16165 case $deplibs_check_method in
16166 "file_magic "*)
16167 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
16168 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16169 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
16170 $EGREP "$file_magic_regex" > /dev/null; then
16172 else
16173 cat <<_LT_EOF 1>&2
16175 *** Warning: the command libtool uses to detect shared libraries,
16176 *** $file_magic_cmd, produces output that libtool cannot recognize.
16177 *** The result is that libtool may fail to recognize shared libraries
16178 *** as such. This will affect the creation of libtool libraries that
16179 *** depend on shared libraries, but programs linked with such libtool
16180 *** libraries will work regardless of this problem. Nevertheless, you
16181 *** may want to report the problem to your system manager and/or to
16182 *** bug-libtool@gnu.org
16184 _LT_EOF
16185 fi ;;
16186 esac
16188 break
16190 done
16191 IFS="$lt_save_ifs"
16192 MAGIC_CMD="$lt_save_MAGIC_CMD"
16194 esac
16197 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16198 if test -n "$MAGIC_CMD"; then
16199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
16200 $as_echo "$MAGIC_CMD" >&6; }
16201 else
16202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16203 $as_echo "no" >&6; }
16207 else
16208 MAGIC_CMD=:
16214 esac
16216 # Use C for the default configuration in the libtool script
16218 lt_save_CC="$CC"
16219 ac_ext=c
16220 ac_cpp='$CPP $CPPFLAGS'
16221 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16222 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16223 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16226 # Source file extension for C test sources.
16227 ac_ext=c
16229 # Object file extension for compiled C test sources.
16230 objext=o
16231 objext=$objext
16233 # Code to be used in simple compile tests
16234 lt_simple_compile_test_code="int some_variable = 0;"
16236 # Code to be used in simple link tests
16237 lt_simple_link_test_code='int main(){return(0);}'
16245 # If no C compiler was specified, use CC.
16246 LTCC=${LTCC-"$CC"}
16248 # If no C compiler flags were specified, use CFLAGS.
16249 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16251 # Allow CC to be a program name with arguments.
16252 compiler=$CC
16254 # Save the default compiler, since it gets overwritten when the other
16255 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
16256 compiler_DEFAULT=$CC
16258 # save warnings/boilerplate of simple test code
16259 ac_outfile=conftest.$ac_objext
16260 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16261 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16262 _lt_compiler_boilerplate=`cat conftest.err`
16263 $RM conftest*
16265 ac_outfile=conftest.$ac_objext
16266 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16267 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16268 _lt_linker_boilerplate=`cat conftest.err`
16269 $RM -r conftest*
16272 ## CAVEAT EMPTOR:
16273 ## There is no encapsulation within the following macros, do not change
16274 ## the running order or otherwise move them around unless you know exactly
16275 ## what you are doing...
16276 if test -n "$compiler"; then
16278 lt_prog_compiler_no_builtin_flag=
16280 if test "$GCC" = yes; then
16281 case $cc_basename in
16282 nvcc*)
16283 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
16285 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
16286 esac
16288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16289 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
16290 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
16291 $as_echo_n "(cached) " >&6
16292 else
16293 lt_cv_prog_compiler_rtti_exceptions=no
16294 ac_outfile=conftest.$ac_objext
16295 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16296 lt_compiler_flag="-fno-rtti -fno-exceptions"
16297 # Insert the option either (1) after the last *FLAGS variable, or
16298 # (2) before a word containing "conftest.", or (3) at the end.
16299 # Note that $ac_compile itself does not contain backslashes and begins
16300 # with a dollar sign (not a hyphen), so the echo should work correctly.
16301 # The option is referenced via a variable to avoid confusing sed.
16302 lt_compile=`echo "$ac_compile" | $SED \
16303 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16304 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16305 -e 's:$: $lt_compiler_flag:'`
16306 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16307 (eval "$lt_compile" 2>conftest.err)
16308 ac_status=$?
16309 cat conftest.err >&5
16310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16311 if (exit $ac_status) && test -s "$ac_outfile"; then
16312 # The compiler can only warn and ignore the option if not recognized
16313 # So say no if there are warnings other than the usual output.
16314 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
16315 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16316 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16317 lt_cv_prog_compiler_rtti_exceptions=yes
16320 $RM conftest*
16323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16324 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16326 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16327 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
16328 else
16339 lt_prog_compiler_wl=
16340 lt_prog_compiler_pic=
16341 lt_prog_compiler_static=
16343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
16344 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16346 if test "$GCC" = yes; then
16347 lt_prog_compiler_wl='-Wl,'
16348 lt_prog_compiler_static='-static'
16350 case $host_os in
16351 aix*)
16352 # All AIX code is PIC.
16353 if test "$host_cpu" = ia64; then
16354 # AIX 5 now supports IA64 processor
16355 lt_prog_compiler_static='-Bstatic'
16357 lt_prog_compiler_pic='-fPIC'
16360 amigaos*)
16361 case $host_cpu in
16362 powerpc)
16363 # see comment about AmigaOS4 .so support
16364 lt_prog_compiler_pic='-fPIC'
16366 m68k)
16367 # FIXME: we need at least 68020 code to build shared libraries, but
16368 # adding the `-m68020' flag to GCC prevents building anything better,
16369 # like `-m68040'.
16370 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
16372 esac
16375 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16376 # PIC is the default for these OSes.
16379 mingw* | cygwin* | pw32* | os2* | cegcc*)
16380 # This hack is so that the source file can tell whether it is being
16381 # built for inclusion in a dll (and should export symbols for example).
16382 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16383 # (--disable-auto-import) libraries
16384 lt_prog_compiler_pic='-DDLL_EXPORT'
16387 darwin* | rhapsody*)
16388 # PIC is the default on this platform
16389 # Common symbols not allowed in MH_DYLIB files
16390 lt_prog_compiler_pic='-fno-common'
16393 haiku*)
16394 # PIC is the default for Haiku.
16395 # The "-static" flag exists, but is broken.
16396 lt_prog_compiler_static=
16399 hpux*)
16400 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
16401 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
16402 # sets the default TLS model and affects inlining.
16403 case $host_cpu in
16404 hppa*64*)
16405 # +Z the default
16408 lt_prog_compiler_pic='-fPIC'
16410 esac
16413 interix[3-9]*)
16414 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16415 # Instead, we relocate shared libraries at runtime.
16418 msdosdjgpp*)
16419 # Just because we use GCC doesn't mean we suddenly get shared libraries
16420 # on systems that don't support them.
16421 lt_prog_compiler_can_build_shared=no
16422 enable_shared=no
16425 *nto* | *qnx*)
16426 # QNX uses GNU C++, but need to define -shared option too, otherwise
16427 # it will coredump.
16428 lt_prog_compiler_pic='-fPIC -shared'
16431 sysv4*MP*)
16432 if test -d /usr/nec; then
16433 lt_prog_compiler_pic=-Kconform_pic
16438 lt_prog_compiler_pic='-fPIC'
16440 esac
16442 case $cc_basename in
16443 nvcc*) # Cuda Compiler Driver 2.2
16444 lt_prog_compiler_wl='-Xlinker '
16445 lt_prog_compiler_pic='-Xcompiler -fPIC'
16447 esac
16448 else
16449 # PORTME Check for flag to pass linker flags through the system compiler.
16450 case $host_os in
16451 aix*)
16452 lt_prog_compiler_wl='-Wl,'
16453 if test "$host_cpu" = ia64; then
16454 # AIX 5 now supports IA64 processor
16455 lt_prog_compiler_static='-Bstatic'
16456 else
16457 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
16461 mingw* | cygwin* | pw32* | os2* | cegcc*)
16462 # This hack is so that the source file can tell whether it is being
16463 # built for inclusion in a dll (and should export symbols for example).
16464 lt_prog_compiler_pic='-DDLL_EXPORT'
16467 hpux9* | hpux10* | hpux11*)
16468 lt_prog_compiler_wl='-Wl,'
16469 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16470 # not for PA HP-UX.
16471 case $host_cpu in
16472 hppa*64*|ia64*)
16473 # +Z the default
16476 lt_prog_compiler_pic='+Z'
16478 esac
16479 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16480 lt_prog_compiler_static='${wl}-a ${wl}archive'
16483 irix5* | irix6* | nonstopux*)
16484 lt_prog_compiler_wl='-Wl,'
16485 # PIC (with -KPIC) is the default.
16486 lt_prog_compiler_static='-non_shared'
16489 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16490 case $cc_basename in
16491 # old Intel for x86_64 which still supported -KPIC.
16492 ecc*)
16493 lt_prog_compiler_wl='-Wl,'
16494 lt_prog_compiler_pic='-KPIC'
16495 lt_prog_compiler_static='-static'
16497 # icc used to be incompatible with GCC.
16498 # ICC 10 doesn't accept -KPIC any more.
16499 icc* | ifort*)
16500 lt_prog_compiler_wl='-Wl,'
16501 lt_prog_compiler_pic='-fPIC'
16502 lt_prog_compiler_static='-static'
16504 # Lahey Fortran 8.1.
16505 lf95*)
16506 lt_prog_compiler_wl='-Wl,'
16507 lt_prog_compiler_pic='--shared'
16508 lt_prog_compiler_static='--static'
16510 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
16511 # Portland Group compilers (*not* the Pentium gcc compiler,
16512 # which looks to be a dead project)
16513 lt_prog_compiler_wl='-Wl,'
16514 lt_prog_compiler_pic='-fpic'
16515 lt_prog_compiler_static='-Bstatic'
16517 ccc*)
16518 lt_prog_compiler_wl='-Wl,'
16519 # All Alpha code is PIC.
16520 lt_prog_compiler_static='-non_shared'
16522 xl* | bgxl* | bgf* | mpixl*)
16523 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
16524 lt_prog_compiler_wl='-Wl,'
16525 lt_prog_compiler_pic='-qpic'
16526 lt_prog_compiler_static='-qstaticlink'
16529 case `$CC -V 2>&1 | sed 5q` in
16530 *Sun\ F* | *Sun*Fortran*)
16531 # Sun Fortran 8.3 passes all unrecognized flags to the linker
16532 lt_prog_compiler_pic='-KPIC'
16533 lt_prog_compiler_static='-Bstatic'
16534 lt_prog_compiler_wl=''
16536 *Sun\ C*)
16537 # Sun C 5.9
16538 lt_prog_compiler_pic='-KPIC'
16539 lt_prog_compiler_static='-Bstatic'
16540 lt_prog_compiler_wl='-Wl,'
16542 esac
16544 esac
16547 newsos6)
16548 lt_prog_compiler_pic='-KPIC'
16549 lt_prog_compiler_static='-Bstatic'
16552 *nto* | *qnx*)
16553 # QNX uses GNU C++, but need to define -shared option too, otherwise
16554 # it will coredump.
16555 lt_prog_compiler_pic='-fPIC -shared'
16558 osf3* | osf4* | osf5*)
16559 lt_prog_compiler_wl='-Wl,'
16560 # All OSF/1 code is PIC.
16561 lt_prog_compiler_static='-non_shared'
16564 rdos*)
16565 lt_prog_compiler_static='-non_shared'
16568 solaris*)
16569 lt_prog_compiler_pic='-KPIC'
16570 lt_prog_compiler_static='-Bstatic'
16571 case $cc_basename in
16572 f77* | f90* | f95*)
16573 lt_prog_compiler_wl='-Qoption ld ';;
16575 lt_prog_compiler_wl='-Wl,';;
16576 esac
16579 sunos4*)
16580 lt_prog_compiler_wl='-Qoption ld '
16581 lt_prog_compiler_pic='-PIC'
16582 lt_prog_compiler_static='-Bstatic'
16585 sysv4 | sysv4.2uw2* | sysv4.3*)
16586 lt_prog_compiler_wl='-Wl,'
16587 lt_prog_compiler_pic='-KPIC'
16588 lt_prog_compiler_static='-Bstatic'
16591 sysv4*MP*)
16592 if test -d /usr/nec ;then
16593 lt_prog_compiler_pic='-Kconform_pic'
16594 lt_prog_compiler_static='-Bstatic'
16598 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16599 lt_prog_compiler_wl='-Wl,'
16600 lt_prog_compiler_pic='-KPIC'
16601 lt_prog_compiler_static='-Bstatic'
16604 unicos*)
16605 lt_prog_compiler_wl='-Wl,'
16606 lt_prog_compiler_can_build_shared=no
16609 uts4*)
16610 lt_prog_compiler_pic='-pic'
16611 lt_prog_compiler_static='-Bstatic'
16615 lt_prog_compiler_can_build_shared=no
16617 esac
16620 case $host_os in
16621 # For platforms which do not support PIC, -DPIC is meaningless:
16622 *djgpp*)
16623 lt_prog_compiler_pic=
16626 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
16628 esac
16629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
16630 $as_echo "$lt_prog_compiler_pic" >&6; }
16638 # Check to make sure the PIC flag actually works.
16640 if test -n "$lt_prog_compiler_pic"; then
16641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
16642 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
16643 if ${lt_cv_prog_compiler_pic_works+:} false; then :
16644 $as_echo_n "(cached) " >&6
16645 else
16646 lt_cv_prog_compiler_pic_works=no
16647 ac_outfile=conftest.$ac_objext
16648 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16649 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
16650 # Insert the option either (1) after the last *FLAGS variable, or
16651 # (2) before a word containing "conftest.", or (3) at the end.
16652 # Note that $ac_compile itself does not contain backslashes and begins
16653 # with a dollar sign (not a hyphen), so the echo should work correctly.
16654 # The option is referenced via a variable to avoid confusing sed.
16655 lt_compile=`echo "$ac_compile" | $SED \
16656 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16657 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16658 -e 's:$: $lt_compiler_flag:'`
16659 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16660 (eval "$lt_compile" 2>conftest.err)
16661 ac_status=$?
16662 cat conftest.err >&5
16663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16664 if (exit $ac_status) && test -s "$ac_outfile"; then
16665 # The compiler can only warn and ignore the option if not recognized
16666 # So say no if there are warnings other than the usual output.
16667 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
16668 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16669 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16670 lt_cv_prog_compiler_pic_works=yes
16673 $RM conftest*
16676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
16677 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
16679 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
16680 case $lt_prog_compiler_pic in
16681 "" | " "*) ;;
16682 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
16683 esac
16684 else
16685 lt_prog_compiler_pic=
16686 lt_prog_compiler_can_build_shared=no
16697 # Check to make sure the static flag actually works.
16699 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
16700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16701 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16702 if ${lt_cv_prog_compiler_static_works+:} false; then :
16703 $as_echo_n "(cached) " >&6
16704 else
16705 lt_cv_prog_compiler_static_works=no
16706 save_LDFLAGS="$LDFLAGS"
16707 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16708 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16709 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16710 # The linker can only warn and ignore the option if not recognized
16711 # So say no if there are warnings
16712 if test -s conftest.err; then
16713 # Append any errors to the config.log.
16714 cat conftest.err 1>&5
16715 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16716 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16717 if diff conftest.exp conftest.er2 >/dev/null; then
16718 lt_cv_prog_compiler_static_works=yes
16720 else
16721 lt_cv_prog_compiler_static_works=yes
16724 $RM -r conftest*
16725 LDFLAGS="$save_LDFLAGS"
16728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
16729 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
16731 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
16733 else
16734 lt_prog_compiler_static=
16743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16744 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16745 if ${lt_cv_prog_compiler_c_o+:} false; then :
16746 $as_echo_n "(cached) " >&6
16747 else
16748 lt_cv_prog_compiler_c_o=no
16749 $RM -r conftest 2>/dev/null
16750 mkdir conftest
16751 cd conftest
16752 mkdir out
16753 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16755 lt_compiler_flag="-o out/conftest2.$ac_objext"
16756 # Insert the option either (1) after the last *FLAGS variable, or
16757 # (2) before a word containing "conftest.", or (3) at the end.
16758 # Note that $ac_compile itself does not contain backslashes and begins
16759 # with a dollar sign (not a hyphen), so the echo should work correctly.
16760 lt_compile=`echo "$ac_compile" | $SED \
16761 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16762 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16763 -e 's:$: $lt_compiler_flag:'`
16764 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16765 (eval "$lt_compile" 2>out/conftest.err)
16766 ac_status=$?
16767 cat out/conftest.err >&5
16768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16769 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16770 then
16771 # The compiler can only warn and ignore the option if not recognized
16772 # So say no if there are warnings
16773 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16774 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16775 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16776 lt_cv_prog_compiler_c_o=yes
16779 chmod u+w . 2>&5
16780 $RM conftest*
16781 # SGI C++ compiler will create directory out/ii_files/ for
16782 # template instantiation
16783 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16784 $RM out/* && rmdir out
16785 cd ..
16786 $RM -r conftest
16787 $RM conftest*
16790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
16791 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
16798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16799 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16800 if ${lt_cv_prog_compiler_c_o+:} false; then :
16801 $as_echo_n "(cached) " >&6
16802 else
16803 lt_cv_prog_compiler_c_o=no
16804 $RM -r conftest 2>/dev/null
16805 mkdir conftest
16806 cd conftest
16807 mkdir out
16808 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16810 lt_compiler_flag="-o out/conftest2.$ac_objext"
16811 # Insert the option either (1) after the last *FLAGS variable, or
16812 # (2) before a word containing "conftest.", or (3) at the end.
16813 # Note that $ac_compile itself does not contain backslashes and begins
16814 # with a dollar sign (not a hyphen), so the echo should work correctly.
16815 lt_compile=`echo "$ac_compile" | $SED \
16816 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16817 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16818 -e 's:$: $lt_compiler_flag:'`
16819 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16820 (eval "$lt_compile" 2>out/conftest.err)
16821 ac_status=$?
16822 cat out/conftest.err >&5
16823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16824 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16825 then
16826 # The compiler can only warn and ignore the option if not recognized
16827 # So say no if there are warnings
16828 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16829 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16830 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16831 lt_cv_prog_compiler_c_o=yes
16834 chmod u+w . 2>&5
16835 $RM conftest*
16836 # SGI C++ compiler will create directory out/ii_files/ for
16837 # template instantiation
16838 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16839 $RM out/* && rmdir out
16840 cd ..
16841 $RM -r conftest
16842 $RM conftest*
16845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
16846 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
16851 hard_links="nottested"
16852 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
16853 # do not overwrite the value of need_locks provided by the user
16854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16855 $as_echo_n "checking if we can lock with hard links... " >&6; }
16856 hard_links=yes
16857 $RM conftest*
16858 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16859 touch conftest.a
16860 ln conftest.a conftest.b 2>&5 || hard_links=no
16861 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16863 $as_echo "$hard_links" >&6; }
16864 if test "$hard_links" = no; then
16865 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16866 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16867 need_locks=warn
16869 else
16870 need_locks=no
16878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16879 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16881 runpath_var=
16882 allow_undefined_flag=
16883 always_export_symbols=no
16884 archive_cmds=
16885 archive_expsym_cmds=
16886 compiler_needs_object=no
16887 enable_shared_with_static_runtimes=no
16888 export_dynamic_flag_spec=
16889 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16890 hardcode_automatic=no
16891 hardcode_direct=no
16892 hardcode_direct_absolute=no
16893 hardcode_libdir_flag_spec=
16894 hardcode_libdir_flag_spec_ld=
16895 hardcode_libdir_separator=
16896 hardcode_minus_L=no
16897 hardcode_shlibpath_var=unsupported
16898 inherit_rpath=no
16899 link_all_deplibs=unknown
16900 module_cmds=
16901 module_expsym_cmds=
16902 old_archive_from_new_cmds=
16903 old_archive_from_expsyms_cmds=
16904 thread_safe_flag_spec=
16905 whole_archive_flag_spec=
16906 # include_expsyms should be a list of space-separated symbols to be *always*
16907 # included in the symbol list
16908 include_expsyms=
16909 # exclude_expsyms can be an extended regexp of symbols to exclude
16910 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16911 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16912 # as well as any symbol that contains `d'.
16913 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16914 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16915 # platforms (ab)use it in PIC code, but their linkers get confused if
16916 # the symbol is explicitly referenced. Since portable code cannot
16917 # rely on this symbol name, it's probably fine to never include it in
16918 # preloaded symbol tables.
16919 # Exclude shared library initialization/finalization symbols.
16920 extract_expsyms_cmds=
16922 case $host_os in
16923 cygwin* | mingw* | pw32* | cegcc*)
16924 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16925 # When not using gcc, we currently assume that we are using
16926 # Microsoft Visual C++.
16927 if test "$GCC" != yes; then
16928 with_gnu_ld=no
16931 interix*)
16932 # we just hope/assume this is gcc and not c89 (= MSVC++)
16933 with_gnu_ld=yes
16935 openbsd*)
16936 with_gnu_ld=no
16938 esac
16940 ld_shlibs=yes
16942 # On some targets, GNU ld is compatible enough with the native linker
16943 # that we're better off using the native interface for both.
16944 lt_use_gnu_ld_interface=no
16945 if test "$with_gnu_ld" = yes; then
16946 case $host_os in
16947 aix*)
16948 # The AIX port of GNU ld has always aspired to compatibility
16949 # with the native linker. However, as the warning in the GNU ld
16950 # block says, versions before 2.19.5* couldn't really create working
16951 # shared libraries, regardless of the interface used.
16952 case `$LD -v 2>&1` in
16953 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
16954 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
16955 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
16957 lt_use_gnu_ld_interface=yes
16959 esac
16962 lt_use_gnu_ld_interface=yes
16964 esac
16967 if test "$lt_use_gnu_ld_interface" = yes; then
16968 # If archive_cmds runs LD, not CC, wlarc should be empty
16969 wlarc='${wl}'
16971 # Set some defaults for GNU ld with shared library support. These
16972 # are reset later if shared libraries are not supported. Putting them
16973 # here allows them to be overridden if necessary.
16974 runpath_var=LD_RUN_PATH
16975 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16976 export_dynamic_flag_spec='${wl}--export-dynamic'
16977 # ancient GNU ld didn't support --whole-archive et. al.
16978 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
16979 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16980 else
16981 whole_archive_flag_spec=
16983 supports_anon_versioning=no
16984 case `$LD -v 2>&1` in
16985 *GNU\ gold*) supports_anon_versioning=yes ;;
16986 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16987 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16988 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16989 *\ 2.11.*) ;; # other 2.11 versions
16990 *) supports_anon_versioning=yes ;;
16991 esac
16993 # See if GNU ld supports shared libraries.
16994 case $host_os in
16995 aix[3-9]*)
16996 # On AIX/PPC, the GNU linker is very broken
16997 if test "$host_cpu" != ia64; then
16998 ld_shlibs=no
16999 cat <<_LT_EOF 1>&2
17001 *** Warning: the GNU linker, at least up to release 2.19, is reported
17002 *** to be unable to reliably create shared libraries on AIX.
17003 *** Therefore, libtool is disabling shared libraries support. If you
17004 *** really care for shared libraries, you may want to install binutils
17005 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
17006 *** You will then need to restart the configuration process.
17008 _LT_EOF
17012 amigaos*)
17013 case $host_cpu in
17014 powerpc)
17015 # see comment about AmigaOS4 .so support
17016 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17017 archive_expsym_cmds=''
17019 m68k)
17020 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)'
17021 hardcode_libdir_flag_spec='-L$libdir'
17022 hardcode_minus_L=yes
17024 esac
17027 beos*)
17028 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17029 allow_undefined_flag=unsupported
17030 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17031 # support --undefined. This deserves some investigation. FIXME
17032 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17033 else
17034 ld_shlibs=no
17038 cygwin* | mingw* | pw32* | cegcc*)
17039 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
17040 # as there is no search path for DLLs.
17041 hardcode_libdir_flag_spec='-L$libdir'
17042 export_dynamic_flag_spec='${wl}--export-all-symbols'
17043 allow_undefined_flag=unsupported
17044 always_export_symbols=no
17045 enable_shared_with_static_runtimes=yes
17046 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17048 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
17049 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17050 # If the export-symbols file already is a .def file (1st line
17051 # is EXPORTS), use it as is; otherwise, prepend...
17052 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17053 cp $export_symbols $output_objdir/$soname.def;
17054 else
17055 echo EXPORTS > $output_objdir/$soname.def;
17056 cat $export_symbols >> $output_objdir/$soname.def;
17058 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17059 else
17060 ld_shlibs=no
17064 haiku*)
17065 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17066 link_all_deplibs=yes
17069 interix[3-9]*)
17070 hardcode_direct=no
17071 hardcode_shlibpath_var=no
17072 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
17073 export_dynamic_flag_spec='${wl}-E'
17074 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17075 # Instead, shared libraries are loaded at an image base (0x10000000 by
17076 # default) and relocated if they conflict, which is a slow very memory
17077 # consuming and fragmenting process. To avoid this, we pick a random,
17078 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17079 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17080 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17081 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'
17084 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
17085 tmp_diet=no
17086 if test "$host_os" = linux-dietlibc; then
17087 case $cc_basename in
17088 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
17089 esac
17091 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
17092 && test "$tmp_diet" = no
17093 then
17094 tmp_addflag=' $pic_flag'
17095 tmp_sharedflag='-shared'
17096 case $cc_basename,$host_cpu in
17097 pgcc*) # Portland Group C compiler
17098 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'
17099 tmp_addflag=' $pic_flag'
17101 pgf77* | pgf90* | pgf95* | pgfortran*)
17102 # Portland Group f77 and f90 compilers
17103 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'
17104 tmp_addflag=' $pic_flag -Mnomain' ;;
17105 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17106 tmp_addflag=' -i_dynamic' ;;
17107 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17108 tmp_addflag=' -i_dynamic -nofor_main' ;;
17109 ifc* | ifort*) # Intel Fortran compiler
17110 tmp_addflag=' -nofor_main' ;;
17111 lf95*) # Lahey Fortran 8.1
17112 whole_archive_flag_spec=
17113 tmp_sharedflag='--shared' ;;
17114 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
17115 tmp_sharedflag='-qmkshrobj'
17116 tmp_addflag= ;;
17117 nvcc*) # Cuda Compiler Driver 2.2
17118 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'
17119 compiler_needs_object=yes
17121 esac
17122 case `$CC -V 2>&1 | sed 5q` in
17123 *Sun\ C*) # Sun C 5.9
17124 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'
17125 compiler_needs_object=yes
17126 tmp_sharedflag='-G' ;;
17127 *Sun\ F*) # Sun Fortran 8.3
17128 tmp_sharedflag='-G' ;;
17129 esac
17130 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17132 if test "x$supports_anon_versioning" = xyes; then
17133 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
17134 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17135 echo "local: *; };" >> $output_objdir/$libname.ver~
17136 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17139 case $cc_basename in
17140 xlf* | bgf* | bgxlf* | mpixlf*)
17141 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
17142 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
17143 hardcode_libdir_flag_spec=
17144 hardcode_libdir_flag_spec_ld='-rpath $libdir'
17145 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
17146 if test "x$supports_anon_versioning" = xyes; then
17147 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
17148 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17149 echo "local: *; };" >> $output_objdir/$libname.ver~
17150 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
17153 esac
17154 else
17155 ld_shlibs=no
17159 netbsd*)
17160 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17161 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17162 wlarc=
17163 else
17164 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17165 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17169 solaris*)
17170 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
17171 ld_shlibs=no
17172 cat <<_LT_EOF 1>&2
17174 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17175 *** create shared libraries on Solaris systems. Therefore, libtool
17176 *** is disabling shared libraries support. We urge you to upgrade GNU
17177 *** binutils to release 2.9.1 or newer. Another option is to modify
17178 *** your PATH or compiler configuration so that the native linker is
17179 *** used, and then restart.
17181 _LT_EOF
17182 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17183 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17184 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17185 else
17186 ld_shlibs=no
17190 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17191 case `$LD -v 2>&1` in
17192 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17193 ld_shlibs=no
17194 cat <<_LT_EOF 1>&2
17196 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17197 *** reliably create shared libraries on SCO systems. Therefore, libtool
17198 *** is disabling shared libraries support. We urge you to upgrade GNU
17199 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17200 *** your PATH or compiler configuration so that the native linker is
17201 *** used, and then restart.
17203 _LT_EOF
17206 # For security reasons, it is highly recommended that you always
17207 # use absolute paths for naming shared libraries, and exclude the
17208 # DT_RUNPATH tag from executables and libraries. But doing so
17209 # requires that you compile everything twice, which is a pain.
17210 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17211 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17212 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17213 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17214 else
17215 ld_shlibs=no
17218 esac
17221 sunos4*)
17222 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17223 wlarc=
17224 hardcode_direct=yes
17225 hardcode_shlibpath_var=no
17229 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17230 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17231 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17232 else
17233 ld_shlibs=no
17236 esac
17238 if test "$ld_shlibs" = no; then
17239 runpath_var=
17240 hardcode_libdir_flag_spec=
17241 export_dynamic_flag_spec=
17242 whole_archive_flag_spec=
17244 else
17245 # PORTME fill in a description of your system's linker (not GNU ld)
17246 case $host_os in
17247 aix3*)
17248 allow_undefined_flag=unsupported
17249 always_export_symbols=yes
17250 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'
17251 # Note: this linker hardcodes the directories in LIBPATH if there
17252 # are no directories specified by -L.
17253 hardcode_minus_L=yes
17254 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17255 # Neither direct hardcoding nor static linking is supported with a
17256 # broken collect2.
17257 hardcode_direct=unsupported
17261 aix[4-9]*)
17262 if test "$host_cpu" = ia64; then
17263 # On IA64, the linker does run time linking by default, so we don't
17264 # have to do anything special.
17265 aix_use_runtimelinking=no
17266 exp_sym_flag='-Bexport'
17267 no_entry_flag=""
17268 else
17269 # If we're using GNU nm, then we don't want the "-C" option.
17270 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17271 # Also, AIX nm treats weak defined symbols like other global
17272 # defined symbols, whereas GNU nm marks them as "W".
17273 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
17274 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'
17275 else
17276 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'
17278 aix_use_runtimelinking=no
17280 # Test if we are trying to use run time linking or normal
17281 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17282 # need to do runtime linking.
17283 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17284 for ld_flag in $LDFLAGS; do
17285 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17286 aix_use_runtimelinking=yes
17287 break
17289 done
17291 esac
17293 exp_sym_flag='-bexport'
17294 no_entry_flag='-bnoentry'
17297 # When large executables or shared objects are built, AIX ld can
17298 # have problems creating the table of contents. If linking a library
17299 # or program results in "error TOC overflow" add -mminimal-toc to
17300 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17301 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17303 archive_cmds=''
17304 hardcode_direct=yes
17305 hardcode_direct_absolute=yes
17306 hardcode_libdir_separator=':'
17307 link_all_deplibs=yes
17308 file_list_spec='${wl}-f,'
17310 if test "$GCC" = yes; then
17311 case $host_os in aix4.[012]|aix4.[012].*)
17312 # We only want to do this on AIX 4.2 and lower, the check
17313 # below for broken collect2 doesn't work under 4.3+
17314 collect2name=`${CC} -print-prog-name=collect2`
17315 if test -f "$collect2name" &&
17316 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
17317 then
17318 # We have reworked collect2
17320 else
17321 # We have old collect2
17322 hardcode_direct=unsupported
17323 # It fails to find uninstalled libraries when the uninstalled
17324 # path is not listed in the libpath. Setting hardcode_minus_L
17325 # to unsupported forces relinking
17326 hardcode_minus_L=yes
17327 hardcode_libdir_flag_spec='-L$libdir'
17328 hardcode_libdir_separator=
17331 esac
17332 shared_flag='-shared'
17333 if test "$aix_use_runtimelinking" = yes; then
17334 shared_flag="$shared_flag "'${wl}-G'
17336 else
17337 # not using gcc
17338 if test "$host_cpu" = ia64; then
17339 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17340 # chokes on -Wl,-G. The following line is correct:
17341 shared_flag='-G'
17342 else
17343 if test "$aix_use_runtimelinking" = yes; then
17344 shared_flag='${wl}-G'
17345 else
17346 shared_flag='${wl}-bM:SRE'
17351 export_dynamic_flag_spec='${wl}-bexpall'
17352 # It seems that -bexpall does not export symbols beginning with
17353 # underscore (_), so it is better to generate a list of symbols to export.
17354 always_export_symbols=yes
17355 if test "$aix_use_runtimelinking" = yes; then
17356 # Warning - without using the other runtime loading flags (-brtl),
17357 # -berok will link without error, but may produce a broken library.
17358 allow_undefined_flag='-berok'
17359 # Determine the default libpath from the value encoded in an
17360 # empty executable.
17361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17362 /* end confdefs.h. */
17365 main ()
17369 return 0;
17371 _ACEOF
17372 if ac_fn_c_try_link "$LINENO"; then :
17374 lt_aix_libpath_sed='
17375 /Import File Strings/,/^$/ {
17376 /^0/ {
17377 s/^0 *\(.*\)$/\1/
17381 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17382 # Check for a 64-bit object if we didn't find anything.
17383 if test -z "$aix_libpath"; then
17384 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17387 rm -f core conftest.err conftest.$ac_objext \
17388 conftest$ac_exeext conftest.$ac_ext
17389 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17391 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
17392 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"
17393 else
17394 if test "$host_cpu" = ia64; then
17395 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
17396 allow_undefined_flag="-z nodefs"
17397 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"
17398 else
17399 # Determine the default libpath from the value encoded in an
17400 # empty executable.
17401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17402 /* end confdefs.h. */
17405 main ()
17409 return 0;
17411 _ACEOF
17412 if ac_fn_c_try_link "$LINENO"; then :
17414 lt_aix_libpath_sed='
17415 /Import File Strings/,/^$/ {
17416 /^0/ {
17417 s/^0 *\(.*\)$/\1/
17421 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17422 # Check for a 64-bit object if we didn't find anything.
17423 if test -z "$aix_libpath"; then
17424 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17427 rm -f core conftest.err conftest.$ac_objext \
17428 conftest$ac_exeext conftest.$ac_ext
17429 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17431 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
17432 # Warning - without using the other run time loading flags,
17433 # -berok will link without error, but may produce a broken library.
17434 no_undefined_flag=' ${wl}-bernotok'
17435 allow_undefined_flag=' ${wl}-berok'
17436 if test "$with_gnu_ld" = yes; then
17437 # We only use this code for GNU lds that support --whole-archive.
17438 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
17439 else
17440 # Exported symbols can be pulled into shared objects from archives
17441 whole_archive_flag_spec='$convenience'
17443 archive_cmds_need_lc=yes
17444 # This is similar to how AIX traditionally builds its shared libraries.
17445 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'
17450 amigaos*)
17451 case $host_cpu in
17452 powerpc)
17453 # see comment about AmigaOS4 .so support
17454 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17455 archive_expsym_cmds=''
17457 m68k)
17458 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)'
17459 hardcode_libdir_flag_spec='-L$libdir'
17460 hardcode_minus_L=yes
17462 esac
17465 bsdi[45]*)
17466 export_dynamic_flag_spec=-rdynamic
17469 cygwin* | mingw* | pw32* | cegcc*)
17470 # When not using gcc, we currently assume that we are using
17471 # Microsoft Visual C++.
17472 # hardcode_libdir_flag_spec is actually meaningless, as there is
17473 # no search path for DLLs.
17474 hardcode_libdir_flag_spec=' '
17475 allow_undefined_flag=unsupported
17476 # Tell ltmain to make .lib files, not .a files.
17477 libext=lib
17478 # Tell ltmain to make .dll files, not .so files.
17479 shrext_cmds=".dll"
17480 # FIXME: Setting linknames here is a bad hack.
17481 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
17482 # The linker will automatically build a .lib file if we build a DLL.
17483 old_archive_from_new_cmds='true'
17484 # FIXME: Should let the user specify the lib program.
17485 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
17486 fix_srcfile_path='`cygpath -w "$srcfile"`'
17487 enable_shared_with_static_runtimes=yes
17490 darwin* | rhapsody*)
17493 archive_cmds_need_lc=no
17494 hardcode_direct=no
17495 hardcode_automatic=yes
17496 hardcode_shlibpath_var=unsupported
17497 if test "$lt_cv_ld_force_load" = "yes"; then
17498 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\"`'
17499 else
17500 whole_archive_flag_spec=''
17502 link_all_deplibs=yes
17503 allow_undefined_flag="$_lt_dar_allow_undefined"
17504 case $cc_basename in
17505 ifort*) _lt_dar_can_shared=yes ;;
17506 *) _lt_dar_can_shared=$GCC ;;
17507 esac
17508 if test "$_lt_dar_can_shared" = "yes"; then
17509 output_verbose_link_cmd=func_echo_all
17510 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
17511 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17512 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}"
17513 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}"
17515 else
17516 ld_shlibs=no
17521 dgux*)
17522 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17523 hardcode_libdir_flag_spec='-L$libdir'
17524 hardcode_shlibpath_var=no
17527 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17528 # support. Future versions do this automatically, but an explicit c++rt0.o
17529 # does not break anything, and helps significantly (at the cost of a little
17530 # extra space).
17531 freebsd2.2*)
17532 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17533 hardcode_libdir_flag_spec='-R$libdir'
17534 hardcode_direct=yes
17535 hardcode_shlibpath_var=no
17538 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17539 freebsd2.*)
17540 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17541 hardcode_direct=yes
17542 hardcode_minus_L=yes
17543 hardcode_shlibpath_var=no
17546 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17547 freebsd* | dragonfly*)
17548 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17549 hardcode_libdir_flag_spec='-R$libdir'
17550 hardcode_direct=yes
17551 hardcode_shlibpath_var=no
17554 hpux9*)
17555 if test "$GCC" = yes; then
17556 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'
17557 else
17558 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'
17560 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
17561 hardcode_libdir_separator=:
17562 hardcode_direct=yes
17564 # hardcode_minus_L: Not really in the search PATH,
17565 # but as the default location of the library.
17566 hardcode_minus_L=yes
17567 export_dynamic_flag_spec='${wl}-E'
17570 hpux10*)
17571 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
17572 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17573 else
17574 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17576 if test "$with_gnu_ld" = no; then
17577 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
17578 hardcode_libdir_flag_spec_ld='+b $libdir'
17579 hardcode_libdir_separator=:
17580 hardcode_direct=yes
17581 hardcode_direct_absolute=yes
17582 export_dynamic_flag_spec='${wl}-E'
17583 # hardcode_minus_L: Not really in the search PATH,
17584 # but as the default location of the library.
17585 hardcode_minus_L=yes
17589 hpux11*)
17590 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
17591 case $host_cpu in
17592 hppa*64*)
17593 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17595 ia64*)
17596 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17599 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17601 esac
17602 else
17603 case $host_cpu in
17604 hppa*64*)
17605 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17607 ia64*)
17608 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17612 # Older versions of the 11.00 compiler do not understand -b yet
17613 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
17614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
17615 $as_echo_n "checking if $CC understands -b... " >&6; }
17616 if ${lt_cv_prog_compiler__b+:} false; then :
17617 $as_echo_n "(cached) " >&6
17618 else
17619 lt_cv_prog_compiler__b=no
17620 save_LDFLAGS="$LDFLAGS"
17621 LDFLAGS="$LDFLAGS -b"
17622 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17623 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17624 # The linker can only warn and ignore the option if not recognized
17625 # So say no if there are warnings
17626 if test -s conftest.err; then
17627 # Append any errors to the config.log.
17628 cat conftest.err 1>&5
17629 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
17630 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17631 if diff conftest.exp conftest.er2 >/dev/null; then
17632 lt_cv_prog_compiler__b=yes
17634 else
17635 lt_cv_prog_compiler__b=yes
17638 $RM -r conftest*
17639 LDFLAGS="$save_LDFLAGS"
17642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
17643 $as_echo "$lt_cv_prog_compiler__b" >&6; }
17645 if test x"$lt_cv_prog_compiler__b" = xyes; then
17646 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17647 else
17648 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17652 esac
17654 if test "$with_gnu_ld" = no; then
17655 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
17656 hardcode_libdir_separator=:
17658 case $host_cpu in
17659 hppa*64*|ia64*)
17660 hardcode_direct=no
17661 hardcode_shlibpath_var=no
17664 hardcode_direct=yes
17665 hardcode_direct_absolute=yes
17666 export_dynamic_flag_spec='${wl}-E'
17668 # hardcode_minus_L: Not really in the search PATH,
17669 # but as the default location of the library.
17670 hardcode_minus_L=yes
17672 esac
17676 irix5* | irix6* | nonstopux*)
17677 if test "$GCC" = yes; then
17678 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'
17679 # Try to use the -exported_symbol ld option, if it does not
17680 # work, assume that -exports_file does not work either and
17681 # implicitly export all symbols.
17682 save_LDFLAGS="$LDFLAGS"
17683 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
17684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17685 /* end confdefs.h. */
17686 int foo(void) {}
17687 _ACEOF
17688 if ac_fn_c_try_link "$LINENO"; then :
17689 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'
17692 rm -f core conftest.err conftest.$ac_objext \
17693 conftest$ac_exeext conftest.$ac_ext
17694 LDFLAGS="$save_LDFLAGS"
17695 else
17696 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'
17697 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'
17699 archive_cmds_need_lc='no'
17700 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17701 hardcode_libdir_separator=:
17702 inherit_rpath=yes
17703 link_all_deplibs=yes
17706 netbsd*)
17707 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17708 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17709 else
17710 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17712 hardcode_libdir_flag_spec='-R$libdir'
17713 hardcode_direct=yes
17714 hardcode_shlibpath_var=no
17717 newsos6)
17718 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17719 hardcode_direct=yes
17720 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17721 hardcode_libdir_separator=:
17722 hardcode_shlibpath_var=no
17725 *nto* | *qnx*)
17728 openbsd*)
17729 if test -f /usr/libexec/ld.so; then
17730 hardcode_direct=yes
17731 hardcode_shlibpath_var=no
17732 hardcode_direct_absolute=yes
17733 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17734 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17735 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17736 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
17737 export_dynamic_flag_spec='${wl}-E'
17738 else
17739 case $host_os in
17740 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17741 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17742 hardcode_libdir_flag_spec='-R$libdir'
17745 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17746 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
17748 esac
17750 else
17751 ld_shlibs=no
17755 os2*)
17756 hardcode_libdir_flag_spec='-L$libdir'
17757 hardcode_minus_L=yes
17758 allow_undefined_flag=unsupported
17759 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'
17760 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17763 osf3*)
17764 if test "$GCC" = yes; then
17765 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
17766 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'
17767 else
17768 allow_undefined_flag=' -expect_unresolved \*'
17769 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'
17771 archive_cmds_need_lc='no'
17772 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17773 hardcode_libdir_separator=:
17776 osf4* | osf5*) # as osf3* with the addition of -msym flag
17777 if test "$GCC" = yes; then
17778 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
17779 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'
17780 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17781 else
17782 allow_undefined_flag=' -expect_unresolved \*'
17783 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'
17784 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~
17785 $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'
17787 # Both c and cxx compiler support -rpath directly
17788 hardcode_libdir_flag_spec='-rpath $libdir'
17790 archive_cmds_need_lc='no'
17791 hardcode_libdir_separator=:
17794 solaris*)
17795 no_undefined_flag=' -z defs'
17796 if test "$GCC" = yes; then
17797 wlarc='${wl}'
17798 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17799 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17800 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
17801 else
17802 case `$CC -V 2>&1` in
17803 *"Compilers 5.0"*)
17804 wlarc=''
17805 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17806 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17807 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
17810 wlarc='${wl}'
17811 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
17812 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17813 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
17815 esac
17817 hardcode_libdir_flag_spec='-R$libdir'
17818 hardcode_shlibpath_var=no
17819 case $host_os in
17820 solaris2.[0-5] | solaris2.[0-5].*) ;;
17822 # The compiler driver will combine and reorder linker options,
17823 # but understands `-z linker_flag'. GCC discards it without `$wl',
17824 # but is careful enough not to reorder.
17825 # Supported since Solaris 2.6 (maybe 2.5.1?)
17826 if test "$GCC" = yes; then
17827 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17828 else
17829 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
17832 esac
17833 link_all_deplibs=yes
17836 sunos4*)
17837 if test "x$host_vendor" = xsequent; then
17838 # Use $CC to link under sequent, because it throws in some extra .o
17839 # files that make .init and .fini sections work.
17840 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17841 else
17842 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17844 hardcode_libdir_flag_spec='-L$libdir'
17845 hardcode_direct=yes
17846 hardcode_minus_L=yes
17847 hardcode_shlibpath_var=no
17850 sysv4)
17851 case $host_vendor in
17852 sni)
17853 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17854 hardcode_direct=yes # is this really true???
17856 siemens)
17857 ## LD is ld it makes a PLAMLIB
17858 ## CC just makes a GrossModule.
17859 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17860 reload_cmds='$CC -r -o $output$reload_objs'
17861 hardcode_direct=no
17863 motorola)
17864 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17865 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
17867 esac
17868 runpath_var='LD_RUN_PATH'
17869 hardcode_shlibpath_var=no
17872 sysv4.3*)
17873 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17874 hardcode_shlibpath_var=no
17875 export_dynamic_flag_spec='-Bexport'
17878 sysv4*MP*)
17879 if test -d /usr/nec; then
17880 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17881 hardcode_shlibpath_var=no
17882 runpath_var=LD_RUN_PATH
17883 hardcode_runpath_var=yes
17884 ld_shlibs=yes
17888 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17889 no_undefined_flag='${wl}-z,text'
17890 archive_cmds_need_lc=no
17891 hardcode_shlibpath_var=no
17892 runpath_var='LD_RUN_PATH'
17894 if test "$GCC" = yes; then
17895 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17896 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17897 else
17898 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17899 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17903 sysv5* | sco3.2v5* | sco5v6*)
17904 # Note: We can NOT use -z defs as we might desire, because we do not
17905 # link with -lc, and that would cause any symbols used from libc to
17906 # always be unresolved, which means just about no library would
17907 # ever link correctly. If we're not using GNU ld we use -z text
17908 # though, which does catch some bad symbols but isn't as heavy-handed
17909 # as -z defs.
17910 no_undefined_flag='${wl}-z,text'
17911 allow_undefined_flag='${wl}-z,nodefs'
17912 archive_cmds_need_lc=no
17913 hardcode_shlibpath_var=no
17914 hardcode_libdir_flag_spec='${wl}-R,$libdir'
17915 hardcode_libdir_separator=':'
17916 link_all_deplibs=yes
17917 export_dynamic_flag_spec='${wl}-Bexport'
17918 runpath_var='LD_RUN_PATH'
17920 if test "$GCC" = yes; then
17921 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17922 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17923 else
17924 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17925 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17929 uts4*)
17930 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17931 hardcode_libdir_flag_spec='-L$libdir'
17932 hardcode_shlibpath_var=no
17936 ld_shlibs=no
17938 esac
17940 if test x$host_vendor = xsni; then
17941 case $host in
17942 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17943 export_dynamic_flag_spec='${wl}-Blargedynsym'
17945 esac
17949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
17950 $as_echo "$ld_shlibs" >&6; }
17951 test "$ld_shlibs" = no && can_build_shared=no
17953 with_gnu_ld=$with_gnu_ld
17970 # Do we need to explicitly link libc?
17972 case "x$archive_cmds_need_lc" in
17973 x|xyes)
17974 # Assume -lc should be added
17975 archive_cmds_need_lc=yes
17977 if test "$enable_shared" = yes && test "$GCC" = yes; then
17978 case $archive_cmds in
17979 *'~'*)
17980 # FIXME: we may have to deal with multi-command sequences.
17982 '$CC '*)
17983 # Test whether the compiler implicitly links with -lc since on some
17984 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17985 # to ld, don't add -lc before -lgcc.
17986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17987 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17988 if ${lt_cv_archive_cmds_need_lc+:} false; then :
17989 $as_echo_n "(cached) " >&6
17990 else
17991 $RM conftest*
17992 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17994 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17995 (eval $ac_compile) 2>&5
17996 ac_status=$?
17997 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17998 test $ac_status = 0; } 2>conftest.err; then
17999 soname=conftest
18000 lib=conftest
18001 libobjs=conftest.$ac_objext
18002 deplibs=
18003 wl=$lt_prog_compiler_wl
18004 pic_flag=$lt_prog_compiler_pic
18005 compiler_flags=-v
18006 linker_flags=-v
18007 verstring=
18008 output_objdir=.
18009 libname=conftest
18010 lt_save_allow_undefined_flag=$allow_undefined_flag
18011 allow_undefined_flag=
18012 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
18013 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
18014 ac_status=$?
18015 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18016 test $ac_status = 0; }
18017 then
18018 lt_cv_archive_cmds_need_lc=no
18019 else
18020 lt_cv_archive_cmds_need_lc=yes
18022 allow_undefined_flag=$lt_save_allow_undefined_flag
18023 else
18024 cat conftest.err 1>&5
18026 $RM conftest*
18029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
18030 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
18031 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
18033 esac
18036 esac
18194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
18195 $as_echo_n "checking dynamic linker characteristics... " >&6; }
18197 if test "$GCC" = yes; then
18198 case $host_os in
18199 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
18200 *) lt_awk_arg="/^libraries:/" ;;
18201 esac
18202 case $host_os in
18203 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
18204 *) lt_sed_strip_eq="s,=/,/,g" ;;
18205 esac
18206 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
18207 case $lt_search_path_spec in
18208 *\;*)
18209 # if the path contains ";" then we assume it to be the separator
18210 # otherwise default to the standard path separator (i.e. ":") - it is
18211 # assumed that no part of a normal pathname contains ";" but that should
18212 # okay in the real world where ";" in dirpaths is itself problematic.
18213 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
18216 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
18218 esac
18219 # Ok, now we have the path, separated by spaces, we can step through it
18220 # and add multilib dir if necessary.
18221 lt_tmp_lt_search_path_spec=
18222 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
18223 for lt_sys_path in $lt_search_path_spec; do
18224 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
18225 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
18226 else
18227 test -d "$lt_sys_path" && \
18228 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
18230 done
18231 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
18232 BEGIN {RS=" "; FS="/|\n";} {
18233 lt_foo="";
18234 lt_count=0;
18235 for (lt_i = NF; lt_i > 0; lt_i--) {
18236 if ($lt_i != "" && $lt_i != ".") {
18237 if ($lt_i == "..") {
18238 lt_count++;
18239 } else {
18240 if (lt_count == 0) {
18241 lt_foo="/" $lt_i lt_foo;
18242 } else {
18243 lt_count--;
18248 if (lt_foo != "") { lt_freq[lt_foo]++; }
18249 if (lt_freq[lt_foo] == 1) { print lt_foo; }
18251 # AWK program above erroneously prepends '/' to C:/dos/paths
18252 # for these hosts.
18253 case $host_os in
18254 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
18255 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
18256 esac
18257 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
18258 else
18259 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18261 library_names_spec=
18262 libname_spec='lib$name'
18263 soname_spec=
18264 shrext_cmds=".so"
18265 postinstall_cmds=
18266 postuninstall_cmds=
18267 finish_cmds=
18268 finish_eval=
18269 shlibpath_var=
18270 shlibpath_overrides_runpath=unknown
18271 version_type=none
18272 dynamic_linker="$host_os ld.so"
18273 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18274 need_lib_prefix=unknown
18275 hardcode_into_libs=no
18277 # when you set need_version to no, make sure it does not cause -set_version
18278 # flags to be left without arguments
18279 need_version=unknown
18281 case $host_os in
18282 aix3*)
18283 version_type=linux
18284 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18285 shlibpath_var=LIBPATH
18287 # AIX 3 has no versioning support, so we append a major version to the name.
18288 soname_spec='${libname}${release}${shared_ext}$major'
18291 aix[4-9]*)
18292 version_type=linux
18293 need_lib_prefix=no
18294 need_version=no
18295 hardcode_into_libs=yes
18296 if test "$host_cpu" = ia64; then
18297 # AIX 5 supports IA64
18298 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18299 shlibpath_var=LD_LIBRARY_PATH
18300 else
18301 # With GCC up to 2.95.x, collect2 would create an import file
18302 # for dependence libraries. The import file would start with
18303 # the line `#! .'. This would cause the generated library to
18304 # depend on `.', always an invalid library. This was fixed in
18305 # development snapshots of GCC prior to 3.0.
18306 case $host_os in
18307 aix4 | aix4.[01] | aix4.[01].*)
18308 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18309 echo ' yes '
18310 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
18312 else
18313 can_build_shared=no
18316 esac
18317 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18318 # soname into executable. Probably we can add versioning support to
18319 # collect2, so additional links can be useful in future.
18320 if test "$aix_use_runtimelinking" = yes; then
18321 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18322 # instead of lib<name>.a to let people know that these are not
18323 # typical AIX shared libraries.
18324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18325 else
18326 # We preserve .a as extension for shared libraries through AIX4.2
18327 # and later when we are not doing run time linking.
18328 library_names_spec='${libname}${release}.a $libname.a'
18329 soname_spec='${libname}${release}${shared_ext}$major'
18331 shlibpath_var=LIBPATH
18335 amigaos*)
18336 case $host_cpu in
18337 powerpc)
18338 # Since July 2007 AmigaOS4 officially supports .so libraries.
18339 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
18340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18342 m68k)
18343 library_names_spec='$libname.ixlibrary $libname.a'
18344 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18345 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'
18347 esac
18350 beos*)
18351 library_names_spec='${libname}${shared_ext}'
18352 dynamic_linker="$host_os ld.so"
18353 shlibpath_var=LIBRARY_PATH
18356 bsdi[45]*)
18357 version_type=linux
18358 need_version=no
18359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18360 soname_spec='${libname}${release}${shared_ext}$major'
18361 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18362 shlibpath_var=LD_LIBRARY_PATH
18363 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18364 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18365 # the default ld.so.conf also contains /usr/contrib/lib and
18366 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18367 # libtool to hard-code these into programs
18370 cygwin* | mingw* | pw32* | cegcc*)
18371 version_type=windows
18372 shrext_cmds=".dll"
18373 need_version=no
18374 need_lib_prefix=no
18376 case $GCC,$host_os in
18377 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
18378 library_names_spec='$libname.dll.a'
18379 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18380 postinstall_cmds='base_file=`basename \${file}`~
18381 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
18382 dldir=$destdir/`dirname \$dlpath`~
18383 test -d \$dldir || mkdir -p \$dldir~
18384 $install_prog $dir/$dlname \$dldir/$dlname~
18385 chmod a+x \$dldir/$dlname~
18386 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18387 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18389 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18390 dlpath=$dir/\$dldll~
18391 $RM \$dlpath'
18392 shlibpath_overrides_runpath=yes
18394 case $host_os in
18395 cygwin*)
18396 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18397 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18399 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
18401 mingw* | cegcc*)
18402 # MinGW DLLs use traditional 'lib' prefix
18403 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18405 pw32*)
18406 # pw32 DLLs use 'pw' prefix rather than 'lib'
18407 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18409 esac
18413 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18415 esac
18416 dynamic_linker='Win32 ld.exe'
18417 # FIXME: first we should search . and the directory the executable is in
18418 shlibpath_var=PATH
18421 darwin* | rhapsody*)
18422 dynamic_linker="$host_os dyld"
18423 version_type=darwin
18424 need_lib_prefix=no
18425 need_version=no
18426 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18427 soname_spec='${libname}${release}${major}$shared_ext'
18428 shlibpath_overrides_runpath=yes
18429 shlibpath_var=DYLD_LIBRARY_PATH
18430 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18432 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
18433 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18436 dgux*)
18437 version_type=linux
18438 need_lib_prefix=no
18439 need_version=no
18440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18441 soname_spec='${libname}${release}${shared_ext}$major'
18442 shlibpath_var=LD_LIBRARY_PATH
18445 freebsd* | dragonfly*)
18446 # DragonFly does not have aout. When/if they implement a new
18447 # versioning mechanism, adjust this.
18448 if test -x /usr/bin/objformat; then
18449 objformat=`/usr/bin/objformat`
18450 else
18451 case $host_os in
18452 freebsd[23].*) objformat=aout ;;
18453 *) objformat=elf ;;
18454 esac
18456 version_type=freebsd-$objformat
18457 case $version_type in
18458 freebsd-elf*)
18459 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18460 need_version=no
18461 need_lib_prefix=no
18463 freebsd-*)
18464 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18465 need_version=yes
18467 esac
18468 shlibpath_var=LD_LIBRARY_PATH
18469 case $host_os in
18470 freebsd2.*)
18471 shlibpath_overrides_runpath=yes
18473 freebsd3.[01]* | freebsdelf3.[01]*)
18474 shlibpath_overrides_runpath=yes
18475 hardcode_into_libs=yes
18477 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18478 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18479 shlibpath_overrides_runpath=no
18480 hardcode_into_libs=yes
18482 *) # from 4.6 on, and DragonFly
18483 shlibpath_overrides_runpath=yes
18484 hardcode_into_libs=yes
18486 esac
18489 haiku*)
18490 version_type=linux
18491 need_lib_prefix=no
18492 need_version=no
18493 dynamic_linker="$host_os runtime_loader"
18494 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18495 soname_spec='${libname}${release}${shared_ext}$major'
18496 shlibpath_var=LIBRARY_PATH
18497 shlibpath_overrides_runpath=yes
18498 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
18499 hardcode_into_libs=yes
18502 hpux9* | hpux10* | hpux11*)
18503 # Give a soname corresponding to the major version so that dld.sl refuses to
18504 # link against other versions.
18505 version_type=sunos
18506 need_lib_prefix=no
18507 need_version=no
18508 case $host_cpu in
18509 ia64*)
18510 shrext_cmds='.so'
18511 hardcode_into_libs=yes
18512 dynamic_linker="$host_os dld.so"
18513 shlibpath_var=LD_LIBRARY_PATH
18514 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18515 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18516 soname_spec='${libname}${release}${shared_ext}$major'
18517 if test "X$HPUX_IA64_MODE" = X32; then
18518 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18519 else
18520 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18522 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18524 hppa*64*)
18525 shrext_cmds='.sl'
18526 hardcode_into_libs=yes
18527 dynamic_linker="$host_os dld.sl"
18528 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18529 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18531 soname_spec='${libname}${release}${shared_ext}$major'
18532 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18533 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18536 shrext_cmds='.sl'
18537 dynamic_linker="$host_os dld.sl"
18538 shlibpath_var=SHLIB_PATH
18539 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18541 soname_spec='${libname}${release}${shared_ext}$major'
18543 esac
18544 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
18545 postinstall_cmds='chmod 555 $lib'
18546 # or fails outright, so override atomically:
18547 install_override_mode=555
18550 interix[3-9]*)
18551 version_type=linux
18552 need_lib_prefix=no
18553 need_version=no
18554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18555 soname_spec='${libname}${release}${shared_ext}$major'
18556 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18557 shlibpath_var=LD_LIBRARY_PATH
18558 shlibpath_overrides_runpath=no
18559 hardcode_into_libs=yes
18562 irix5* | irix6* | nonstopux*)
18563 case $host_os in
18564 nonstopux*) version_type=nonstopux ;;
18566 if test "$lt_cv_prog_gnu_ld" = yes; then
18567 version_type=linux
18568 else
18569 version_type=irix
18570 fi ;;
18571 esac
18572 need_lib_prefix=no
18573 need_version=no
18574 soname_spec='${libname}${release}${shared_ext}$major'
18575 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18576 case $host_os in
18577 irix5* | nonstopux*)
18578 libsuff= shlibsuff=
18581 case $LD in # libtool.m4 will add one of these switches to LD
18582 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18583 libsuff= shlibsuff= libmagic=32-bit;;
18584 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18585 libsuff=32 shlibsuff=N32 libmagic=N32;;
18586 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18587 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18588 *) libsuff= shlibsuff= libmagic=never-match;;
18589 esac
18591 esac
18592 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18593 shlibpath_overrides_runpath=no
18594 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18595 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18596 hardcode_into_libs=yes
18599 # No shared lib support for Linux oldld, aout, or coff.
18600 linux*oldld* | linux*aout* | linux*coff*)
18601 dynamic_linker=no
18604 # This must be Linux ELF.
18606 # uclinux* changes (here and below) have been submitted to the libtool
18607 # project, but have not yet been accepted: they are GCC-local changes
18608 # for the time being. (See
18609 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
18610 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
18611 version_type=linux
18612 need_lib_prefix=no
18613 need_version=no
18614 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18615 soname_spec='${libname}${release}${shared_ext}$major'
18616 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18617 shlibpath_var=LD_LIBRARY_PATH
18618 shlibpath_overrides_runpath=no
18620 # Some binutils ld are patched to set DT_RUNPATH
18621 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
18622 $as_echo_n "(cached) " >&6
18623 else
18624 lt_cv_shlibpath_overrides_runpath=no
18625 save_LDFLAGS=$LDFLAGS
18626 save_libdir=$libdir
18627 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
18628 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
18629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18630 /* end confdefs.h. */
18633 main ()
18637 return 0;
18639 _ACEOF
18640 if ac_fn_c_try_link "$LINENO"; then :
18641 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
18642 lt_cv_shlibpath_overrides_runpath=yes
18645 rm -f core conftest.err conftest.$ac_objext \
18646 conftest$ac_exeext conftest.$ac_ext
18647 LDFLAGS=$save_LDFLAGS
18648 libdir=$save_libdir
18652 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
18654 # This implies no fast_install, which is unacceptable.
18655 # Some rework will be needed to allow for fast_install
18656 # before this can be enabled.
18657 hardcode_into_libs=yes
18659 # Append ld.so.conf contents to the search path
18660 if test -f /etc/ld.so.conf; then
18661 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' ' '`
18662 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18665 # We used to test for /lib/ld.so.1 and disable shared libraries on
18666 # powerpc, because MkLinux only supported shared libraries with the
18667 # GNU dynamic linker. Since this was broken with cross compilers,
18668 # most powerpc-linux boxes support dynamic linking these days and
18669 # people can always --disable-shared, the test was removed, and we
18670 # assume the GNU/Linux dynamic linker is in use.
18671 dynamic_linker='GNU/Linux ld.so'
18674 netbsd*)
18675 version_type=sunos
18676 need_lib_prefix=no
18677 need_version=no
18678 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18679 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18680 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18681 dynamic_linker='NetBSD (a.out) ld.so'
18682 else
18683 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18684 soname_spec='${libname}${release}${shared_ext}$major'
18685 dynamic_linker='NetBSD ld.elf_so'
18687 shlibpath_var=LD_LIBRARY_PATH
18688 shlibpath_overrides_runpath=yes
18689 hardcode_into_libs=yes
18692 newsos6)
18693 version_type=linux
18694 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18695 shlibpath_var=LD_LIBRARY_PATH
18696 shlibpath_overrides_runpath=yes
18699 *nto* | *qnx*)
18700 version_type=qnx
18701 need_lib_prefix=no
18702 need_version=no
18703 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18704 soname_spec='${libname}${release}${shared_ext}$major'
18705 shlibpath_var=LD_LIBRARY_PATH
18706 shlibpath_overrides_runpath=no
18707 hardcode_into_libs=yes
18708 dynamic_linker='ldqnx.so'
18711 openbsd*)
18712 version_type=sunos
18713 sys_lib_dlsearch_path_spec="/usr/lib"
18714 need_lib_prefix=no
18715 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18716 case $host_os in
18717 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18718 *) need_version=no ;;
18719 esac
18720 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18721 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18722 shlibpath_var=LD_LIBRARY_PATH
18723 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18724 case $host_os in
18725 openbsd2.[89] | openbsd2.[89].*)
18726 shlibpath_overrides_runpath=no
18729 shlibpath_overrides_runpath=yes
18731 esac
18732 else
18733 shlibpath_overrides_runpath=yes
18737 os2*)
18738 libname_spec='$name'
18739 shrext_cmds=".dll"
18740 need_lib_prefix=no
18741 library_names_spec='$libname${shared_ext} $libname.a'
18742 dynamic_linker='OS/2 ld.exe'
18743 shlibpath_var=LIBPATH
18746 osf3* | osf4* | osf5*)
18747 version_type=osf
18748 need_lib_prefix=no
18749 need_version=no
18750 soname_spec='${libname}${release}${shared_ext}$major'
18751 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18752 shlibpath_var=LD_LIBRARY_PATH
18753 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18754 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18757 rdos*)
18758 dynamic_linker=no
18761 solaris*)
18762 version_type=linux
18763 need_lib_prefix=no
18764 need_version=no
18765 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18766 soname_spec='${libname}${release}${shared_ext}$major'
18767 shlibpath_var=LD_LIBRARY_PATH
18768 shlibpath_overrides_runpath=yes
18769 hardcode_into_libs=yes
18770 # ldd complains unless libraries are executable
18771 postinstall_cmds='chmod +x $lib'
18774 sunos4*)
18775 version_type=sunos
18776 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18777 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18778 shlibpath_var=LD_LIBRARY_PATH
18779 shlibpath_overrides_runpath=yes
18780 if test "$with_gnu_ld" = yes; then
18781 need_lib_prefix=no
18783 need_version=yes
18786 sysv4 | sysv4.3*)
18787 version_type=linux
18788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18789 soname_spec='${libname}${release}${shared_ext}$major'
18790 shlibpath_var=LD_LIBRARY_PATH
18791 case $host_vendor in
18792 sni)
18793 shlibpath_overrides_runpath=no
18794 need_lib_prefix=no
18795 runpath_var=LD_RUN_PATH
18797 siemens)
18798 need_lib_prefix=no
18800 motorola)
18801 need_lib_prefix=no
18802 need_version=no
18803 shlibpath_overrides_runpath=no
18804 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18806 esac
18809 sysv4*MP*)
18810 if test -d /usr/nec ;then
18811 version_type=linux
18812 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18813 soname_spec='$libname${shared_ext}.$major'
18814 shlibpath_var=LD_LIBRARY_PATH
18818 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18819 version_type=freebsd-elf
18820 need_lib_prefix=no
18821 need_version=no
18822 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18823 soname_spec='${libname}${release}${shared_ext}$major'
18824 shlibpath_var=LD_LIBRARY_PATH
18825 shlibpath_overrides_runpath=yes
18826 hardcode_into_libs=yes
18827 if test "$with_gnu_ld" = yes; then
18828 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18829 else
18830 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18831 case $host_os in
18832 sco3.2v5*)
18833 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18835 esac
18837 sys_lib_dlsearch_path_spec='/usr/lib'
18840 tpf*)
18841 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
18842 version_type=linux
18843 need_lib_prefix=no
18844 need_version=no
18845 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18846 shlibpath_var=LD_LIBRARY_PATH
18847 shlibpath_overrides_runpath=no
18848 hardcode_into_libs=yes
18851 uts4*)
18852 version_type=linux
18853 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18854 soname_spec='${libname}${release}${shared_ext}$major'
18855 shlibpath_var=LD_LIBRARY_PATH
18859 dynamic_linker=no
18861 esac
18862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18863 $as_echo "$dynamic_linker" >&6; }
18864 test "$dynamic_linker" = no && can_build_shared=no
18866 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18867 if test "$GCC" = yes; then
18868 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18871 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18872 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18874 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18875 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18970 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18971 hardcode_action=
18972 if test -n "$hardcode_libdir_flag_spec" ||
18973 test -n "$runpath_var" ||
18974 test "X$hardcode_automatic" = "Xyes" ; then
18976 # We can hardcode non-existent directories.
18977 if test "$hardcode_direct" != no &&
18978 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18979 # have to relink, otherwise we might link with an installed library
18980 # when we should be linking with a yet-to-be-installed one
18981 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
18982 test "$hardcode_minus_L" != no; then
18983 # Linking always hardcodes the temporary library directory.
18984 hardcode_action=relink
18985 else
18986 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18987 hardcode_action=immediate
18989 else
18990 # We cannot hardcode anything, or else we can only hardcode existing
18991 # directories.
18992 hardcode_action=unsupported
18994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
18995 $as_echo "$hardcode_action" >&6; }
18997 if test "$hardcode_action" = relink ||
18998 test "$inherit_rpath" = yes; then
18999 # Fast installation is not supported
19000 enable_fast_install=no
19001 elif test "$shlibpath_overrides_runpath" = yes ||
19002 test "$enable_shared" = no; then
19003 # Fast installation is not necessary
19004 enable_fast_install=needless
19012 if test "x$enable_dlopen" != xyes; then
19013 enable_dlopen=unknown
19014 enable_dlopen_self=unknown
19015 enable_dlopen_self_static=unknown
19016 else
19017 lt_cv_dlopen=no
19018 lt_cv_dlopen_libs=
19020 case $host_os in
19021 beos*)
19022 lt_cv_dlopen="load_add_on"
19023 lt_cv_dlopen_libs=
19024 lt_cv_dlopen_self=yes
19027 mingw* | pw32* | cegcc*)
19028 lt_cv_dlopen="LoadLibrary"
19029 lt_cv_dlopen_libs=
19032 cygwin*)
19033 lt_cv_dlopen="dlopen"
19034 lt_cv_dlopen_libs=
19037 darwin*)
19038 # if libdl is installed we need to link against it
19039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
19040 $as_echo_n "checking for dlopen in -ldl... " >&6; }
19041 if ${ac_cv_lib_dl_dlopen+:} false; then :
19042 $as_echo_n "(cached) " >&6
19043 else
19044 ac_check_lib_save_LIBS=$LIBS
19045 LIBS="-ldl $LIBS"
19046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19047 /* end confdefs.h. */
19049 /* Override any GCC internal prototype to avoid an error.
19050 Use char because int might match the return type of a GCC
19051 builtin and then its argument prototype would still apply. */
19052 #ifdef __cplusplus
19053 extern "C"
19054 #endif
19055 char dlopen ();
19057 main ()
19059 return dlopen ();
19061 return 0;
19063 _ACEOF
19064 if ac_fn_c_try_link "$LINENO"; then :
19065 ac_cv_lib_dl_dlopen=yes
19066 else
19067 ac_cv_lib_dl_dlopen=no
19069 rm -f core conftest.err conftest.$ac_objext \
19070 conftest$ac_exeext conftest.$ac_ext
19071 LIBS=$ac_check_lib_save_LIBS
19073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
19074 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
19075 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
19076 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
19077 else
19079 lt_cv_dlopen="dyld"
19080 lt_cv_dlopen_libs=
19081 lt_cv_dlopen_self=yes
19088 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
19089 if test "x$ac_cv_func_shl_load" = xyes; then :
19090 lt_cv_dlopen="shl_load"
19091 else
19092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
19093 $as_echo_n "checking for shl_load in -ldld... " >&6; }
19094 if ${ac_cv_lib_dld_shl_load+:} false; then :
19095 $as_echo_n "(cached) " >&6
19096 else
19097 ac_check_lib_save_LIBS=$LIBS
19098 LIBS="-ldld $LIBS"
19099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19100 /* end confdefs.h. */
19102 /* Override any GCC internal prototype to avoid an error.
19103 Use char because int might match the return type of a GCC
19104 builtin and then its argument prototype would still apply. */
19105 #ifdef __cplusplus
19106 extern "C"
19107 #endif
19108 char shl_load ();
19110 main ()
19112 return shl_load ();
19114 return 0;
19116 _ACEOF
19117 if ac_fn_c_try_link "$LINENO"; then :
19118 ac_cv_lib_dld_shl_load=yes
19119 else
19120 ac_cv_lib_dld_shl_load=no
19122 rm -f core conftest.err conftest.$ac_objext \
19123 conftest$ac_exeext conftest.$ac_ext
19124 LIBS=$ac_check_lib_save_LIBS
19126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
19127 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
19128 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
19129 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
19130 else
19131 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
19132 if test "x$ac_cv_func_dlopen" = xyes; then :
19133 lt_cv_dlopen="dlopen"
19134 else
19135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
19136 $as_echo_n "checking for dlopen in -ldl... " >&6; }
19137 if ${ac_cv_lib_dl_dlopen+:} false; then :
19138 $as_echo_n "(cached) " >&6
19139 else
19140 ac_check_lib_save_LIBS=$LIBS
19141 LIBS="-ldl $LIBS"
19142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19143 /* end confdefs.h. */
19145 /* Override any GCC internal prototype to avoid an error.
19146 Use char because int might match the return type of a GCC
19147 builtin and then its argument prototype would still apply. */
19148 #ifdef __cplusplus
19149 extern "C"
19150 #endif
19151 char dlopen ();
19153 main ()
19155 return dlopen ();
19157 return 0;
19159 _ACEOF
19160 if ac_fn_c_try_link "$LINENO"; then :
19161 ac_cv_lib_dl_dlopen=yes
19162 else
19163 ac_cv_lib_dl_dlopen=no
19165 rm -f core conftest.err conftest.$ac_objext \
19166 conftest$ac_exeext conftest.$ac_ext
19167 LIBS=$ac_check_lib_save_LIBS
19169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
19170 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
19171 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
19172 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
19173 else
19174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
19175 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
19176 if ${ac_cv_lib_svld_dlopen+:} false; then :
19177 $as_echo_n "(cached) " >&6
19178 else
19179 ac_check_lib_save_LIBS=$LIBS
19180 LIBS="-lsvld $LIBS"
19181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19182 /* end confdefs.h. */
19184 /* Override any GCC internal prototype to avoid an error.
19185 Use char because int might match the return type of a GCC
19186 builtin and then its argument prototype would still apply. */
19187 #ifdef __cplusplus
19188 extern "C"
19189 #endif
19190 char dlopen ();
19192 main ()
19194 return dlopen ();
19196 return 0;
19198 _ACEOF
19199 if ac_fn_c_try_link "$LINENO"; then :
19200 ac_cv_lib_svld_dlopen=yes
19201 else
19202 ac_cv_lib_svld_dlopen=no
19204 rm -f core conftest.err conftest.$ac_objext \
19205 conftest$ac_exeext conftest.$ac_ext
19206 LIBS=$ac_check_lib_save_LIBS
19208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
19209 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
19210 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
19211 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
19212 else
19213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
19214 $as_echo_n "checking for dld_link in -ldld... " >&6; }
19215 if ${ac_cv_lib_dld_dld_link+:} false; then :
19216 $as_echo_n "(cached) " >&6
19217 else
19218 ac_check_lib_save_LIBS=$LIBS
19219 LIBS="-ldld $LIBS"
19220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19221 /* end confdefs.h. */
19223 /* Override any GCC internal prototype to avoid an error.
19224 Use char because int might match the return type of a GCC
19225 builtin and then its argument prototype would still apply. */
19226 #ifdef __cplusplus
19227 extern "C"
19228 #endif
19229 char dld_link ();
19231 main ()
19233 return dld_link ();
19235 return 0;
19237 _ACEOF
19238 if ac_fn_c_try_link "$LINENO"; then :
19239 ac_cv_lib_dld_dld_link=yes
19240 else
19241 ac_cv_lib_dld_dld_link=no
19243 rm -f core conftest.err conftest.$ac_objext \
19244 conftest$ac_exeext conftest.$ac_ext
19245 LIBS=$ac_check_lib_save_LIBS
19247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
19248 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
19249 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
19250 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
19269 esac
19271 if test "x$lt_cv_dlopen" != xno; then
19272 enable_dlopen=yes
19273 else
19274 enable_dlopen=no
19277 case $lt_cv_dlopen in
19278 dlopen)
19279 save_CPPFLAGS="$CPPFLAGS"
19280 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
19282 save_LDFLAGS="$LDFLAGS"
19283 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
19285 save_LIBS="$LIBS"
19286 LIBS="$lt_cv_dlopen_libs $LIBS"
19288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
19289 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
19290 if ${lt_cv_dlopen_self+:} false; then :
19291 $as_echo_n "(cached) " >&6
19292 else
19293 if test "$cross_compiling" = yes; then :
19294 lt_cv_dlopen_self=cross
19295 else
19296 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19297 lt_status=$lt_dlunknown
19298 cat > conftest.$ac_ext <<_LT_EOF
19299 #line 19299 "configure"
19300 #include "confdefs.h"
19302 #if HAVE_DLFCN_H
19303 #include <dlfcn.h>
19304 #endif
19306 #include <stdio.h>
19308 #ifdef RTLD_GLOBAL
19309 # define LT_DLGLOBAL RTLD_GLOBAL
19310 #else
19311 # ifdef DL_GLOBAL
19312 # define LT_DLGLOBAL DL_GLOBAL
19313 # else
19314 # define LT_DLGLOBAL 0
19315 # endif
19316 #endif
19318 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19319 find out it does not work in some platform. */
19320 #ifndef LT_DLLAZY_OR_NOW
19321 # ifdef RTLD_LAZY
19322 # define LT_DLLAZY_OR_NOW RTLD_LAZY
19323 # else
19324 # ifdef DL_LAZY
19325 # define LT_DLLAZY_OR_NOW DL_LAZY
19326 # else
19327 # ifdef RTLD_NOW
19328 # define LT_DLLAZY_OR_NOW RTLD_NOW
19329 # else
19330 # ifdef DL_NOW
19331 # define LT_DLLAZY_OR_NOW DL_NOW
19332 # else
19333 # define LT_DLLAZY_OR_NOW 0
19334 # endif
19335 # endif
19336 # endif
19337 # endif
19338 #endif
19340 /* When -fvisbility=hidden is used, assume the code has been annotated
19341 correspondingly for the symbols needed. */
19342 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
19343 void fnord () __attribute__((visibility("default")));
19344 #endif
19346 void fnord () { int i=42; }
19347 int main ()
19349 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19350 int status = $lt_dlunknown;
19352 if (self)
19354 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19355 else
19357 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19358 else puts (dlerror ());
19360 /* dlclose (self); */
19362 else
19363 puts (dlerror ());
19365 return status;
19367 _LT_EOF
19368 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
19369 (eval $ac_link) 2>&5
19370 ac_status=$?
19371 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19372 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
19373 (./conftest; exit; ) >&5 2>/dev/null
19374 lt_status=$?
19375 case x$lt_status in
19376 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
19377 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
19378 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
19379 esac
19380 else :
19381 # compilation failed
19382 lt_cv_dlopen_self=no
19385 rm -fr conftest*
19389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
19390 $as_echo "$lt_cv_dlopen_self" >&6; }
19392 if test "x$lt_cv_dlopen_self" = xyes; then
19393 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
19394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
19395 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
19396 if ${lt_cv_dlopen_self_static+:} false; then :
19397 $as_echo_n "(cached) " >&6
19398 else
19399 if test "$cross_compiling" = yes; then :
19400 lt_cv_dlopen_self_static=cross
19401 else
19402 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19403 lt_status=$lt_dlunknown
19404 cat > conftest.$ac_ext <<_LT_EOF
19405 #line 19405 "configure"
19406 #include "confdefs.h"
19408 #if HAVE_DLFCN_H
19409 #include <dlfcn.h>
19410 #endif
19412 #include <stdio.h>
19414 #ifdef RTLD_GLOBAL
19415 # define LT_DLGLOBAL RTLD_GLOBAL
19416 #else
19417 # ifdef DL_GLOBAL
19418 # define LT_DLGLOBAL DL_GLOBAL
19419 # else
19420 # define LT_DLGLOBAL 0
19421 # endif
19422 #endif
19424 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19425 find out it does not work in some platform. */
19426 #ifndef LT_DLLAZY_OR_NOW
19427 # ifdef RTLD_LAZY
19428 # define LT_DLLAZY_OR_NOW RTLD_LAZY
19429 # else
19430 # ifdef DL_LAZY
19431 # define LT_DLLAZY_OR_NOW DL_LAZY
19432 # else
19433 # ifdef RTLD_NOW
19434 # define LT_DLLAZY_OR_NOW RTLD_NOW
19435 # else
19436 # ifdef DL_NOW
19437 # define LT_DLLAZY_OR_NOW DL_NOW
19438 # else
19439 # define LT_DLLAZY_OR_NOW 0
19440 # endif
19441 # endif
19442 # endif
19443 # endif
19444 #endif
19446 /* When -fvisbility=hidden is used, assume the code has been annotated
19447 correspondingly for the symbols needed. */
19448 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
19449 void fnord () __attribute__((visibility("default")));
19450 #endif
19452 void fnord () { int i=42; }
19453 int main ()
19455 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19456 int status = $lt_dlunknown;
19458 if (self)
19460 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19461 else
19463 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19464 else puts (dlerror ());
19466 /* dlclose (self); */
19468 else
19469 puts (dlerror ());
19471 return status;
19473 _LT_EOF
19474 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
19475 (eval $ac_link) 2>&5
19476 ac_status=$?
19477 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19478 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
19479 (./conftest; exit; ) >&5 2>/dev/null
19480 lt_status=$?
19481 case x$lt_status in
19482 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
19483 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
19484 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
19485 esac
19486 else :
19487 # compilation failed
19488 lt_cv_dlopen_self_static=no
19491 rm -fr conftest*
19495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
19496 $as_echo "$lt_cv_dlopen_self_static" >&6; }
19499 CPPFLAGS="$save_CPPFLAGS"
19500 LDFLAGS="$save_LDFLAGS"
19501 LIBS="$save_LIBS"
19503 esac
19505 case $lt_cv_dlopen_self in
19506 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
19507 *) enable_dlopen_self=unknown ;;
19508 esac
19510 case $lt_cv_dlopen_self_static in
19511 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
19512 *) enable_dlopen_self_static=unknown ;;
19513 esac
19532 striplib=
19533 old_striplib=
19534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
19535 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
19536 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
19537 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
19538 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
19539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19540 $as_echo "yes" >&6; }
19541 else
19542 # FIXME - insert some real tests, host_os isn't really good enough
19543 case $host_os in
19544 darwin*)
19545 if test -n "$STRIP" ; then
19546 striplib="$STRIP -x"
19547 old_striplib="$STRIP -S"
19548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19549 $as_echo "yes" >&6; }
19550 else
19551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19552 $as_echo "no" >&6; }
19556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19557 $as_echo "no" >&6; }
19559 esac
19573 # Report which library types will actually be built
19574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
19575 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
19576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
19577 $as_echo "$can_build_shared" >&6; }
19579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
19580 $as_echo_n "checking whether to build shared libraries... " >&6; }
19581 test "$can_build_shared" = "no" && enable_shared=no
19583 # On AIX, shared libraries and static libraries use the same namespace, and
19584 # are all built from PIC.
19585 case $host_os in
19586 aix3*)
19587 test "$enable_shared" = yes && enable_static=no
19588 if test -n "$RANLIB"; then
19589 archive_cmds="$archive_cmds~\$RANLIB \$lib"
19590 postinstall_cmds='$RANLIB $lib'
19594 aix[4-9]*)
19595 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
19596 test "$enable_shared" = yes && enable_static=no
19599 esac
19600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
19601 $as_echo "$enable_shared" >&6; }
19603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
19604 $as_echo_n "checking whether to build static libraries... " >&6; }
19605 # Make sure either enable_shared or enable_static is yes.
19606 test "$enable_shared" = yes || enable_static=yes
19607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
19608 $as_echo "$enable_static" >&6; }
19614 ac_ext=cpp
19615 ac_cpp='$CXXCPP $CPPFLAGS'
19616 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19617 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19618 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19620 CC="$lt_save_CC"
19622 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
19623 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
19624 (test "X$CXX" != "Xg++"))) ; then
19625 ac_ext=cpp
19626 ac_cpp='$CXXCPP $CPPFLAGS'
19627 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19628 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19629 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
19631 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
19632 if test -z "$CXXCPP"; then
19633 if ${ac_cv_prog_CXXCPP+:} false; then :
19634 $as_echo_n "(cached) " >&6
19635 else
19636 # Double quotes because CXXCPP needs to be expanded
19637 for CXXCPP in "$CXX -E" "/lib/cpp"
19639 ac_preproc_ok=false
19640 for ac_cxx_preproc_warn_flag in '' yes
19642 # Use a header file that comes with gcc, so configuring glibc
19643 # with a fresh cross-compiler works.
19644 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19645 # <limits.h> exists even on freestanding compilers.
19646 # On the NeXT, cc -E runs the code through the compiler's parser,
19647 # not just through cpp. "Syntax error" is here to catch this case.
19648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19649 /* end confdefs.h. */
19650 #ifdef __STDC__
19651 # include <limits.h>
19652 #else
19653 # include <assert.h>
19654 #endif
19655 Syntax error
19656 _ACEOF
19657 if ac_fn_cxx_try_cpp "$LINENO"; then :
19659 else
19660 # Broken: fails on valid input.
19661 continue
19663 rm -f conftest.err conftest.i conftest.$ac_ext
19665 # OK, works on sane cases. Now check whether nonexistent headers
19666 # can be detected and how.
19667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19668 /* end confdefs.h. */
19669 #include <ac_nonexistent.h>
19670 _ACEOF
19671 if ac_fn_cxx_try_cpp "$LINENO"; then :
19672 # Broken: success on invalid input.
19673 continue
19674 else
19675 # Passes both tests.
19676 ac_preproc_ok=:
19677 break
19679 rm -f conftest.err conftest.i conftest.$ac_ext
19681 done
19682 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
19683 rm -f conftest.i conftest.err conftest.$ac_ext
19684 if $ac_preproc_ok; then :
19685 break
19688 done
19689 ac_cv_prog_CXXCPP=$CXXCPP
19692 CXXCPP=$ac_cv_prog_CXXCPP
19693 else
19694 ac_cv_prog_CXXCPP=$CXXCPP
19696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
19697 $as_echo "$CXXCPP" >&6; }
19698 ac_preproc_ok=false
19699 for ac_cxx_preproc_warn_flag in '' yes
19701 # Use a header file that comes with gcc, so configuring glibc
19702 # with a fresh cross-compiler works.
19703 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19704 # <limits.h> exists even on freestanding compilers.
19705 # On the NeXT, cc -E runs the code through the compiler's parser,
19706 # not just through cpp. "Syntax error" is here to catch this case.
19707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19708 /* end confdefs.h. */
19709 #ifdef __STDC__
19710 # include <limits.h>
19711 #else
19712 # include <assert.h>
19713 #endif
19714 Syntax error
19715 _ACEOF
19716 if ac_fn_cxx_try_cpp "$LINENO"; then :
19718 else
19719 # Broken: fails on valid input.
19720 continue
19722 rm -f conftest.err conftest.i conftest.$ac_ext
19724 # OK, works on sane cases. Now check whether nonexistent headers
19725 # can be detected and how.
19726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19727 /* end confdefs.h. */
19728 #include <ac_nonexistent.h>
19729 _ACEOF
19730 if ac_fn_cxx_try_cpp "$LINENO"; then :
19731 # Broken: success on invalid input.
19732 continue
19733 else
19734 # Passes both tests.
19735 ac_preproc_ok=:
19736 break
19738 rm -f conftest.err conftest.i conftest.$ac_ext
19740 done
19741 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
19742 rm -f conftest.i conftest.err conftest.$ac_ext
19743 if $ac_preproc_ok; then :
19745 else
19746 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19747 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19748 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
19749 See \`config.log' for more details" "$LINENO" 5; }
19752 ac_ext=cpp
19753 ac_cpp='$CXXCPP $CPPFLAGS'
19754 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19755 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19756 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19758 else
19759 _lt_caught_CXX_error=yes
19762 ac_ext=cpp
19763 ac_cpp='$CXXCPP $CPPFLAGS'
19764 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19765 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19766 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19768 archive_cmds_need_lc_CXX=no
19769 allow_undefined_flag_CXX=
19770 always_export_symbols_CXX=no
19771 archive_expsym_cmds_CXX=
19772 compiler_needs_object_CXX=no
19773 export_dynamic_flag_spec_CXX=
19774 hardcode_direct_CXX=no
19775 hardcode_direct_absolute_CXX=no
19776 hardcode_libdir_flag_spec_CXX=
19777 hardcode_libdir_flag_spec_ld_CXX=
19778 hardcode_libdir_separator_CXX=
19779 hardcode_minus_L_CXX=no
19780 hardcode_shlibpath_var_CXX=unsupported
19781 hardcode_automatic_CXX=no
19782 inherit_rpath_CXX=no
19783 module_cmds_CXX=
19784 module_expsym_cmds_CXX=
19785 link_all_deplibs_CXX=unknown
19786 old_archive_cmds_CXX=$old_archive_cmds
19787 reload_flag_CXX=$reload_flag
19788 reload_cmds_CXX=$reload_cmds
19789 no_undefined_flag_CXX=
19790 whole_archive_flag_spec_CXX=
19791 enable_shared_with_static_runtimes_CXX=no
19793 # Source file extension for C++ test sources.
19794 ac_ext=cpp
19796 # Object file extension for compiled C++ test sources.
19797 objext=o
19798 objext_CXX=$objext
19800 # No sense in running all these tests if we already determined that
19801 # the CXX compiler isn't working. Some variables (like enable_shared)
19802 # are currently assumed to apply to all compilers on this platform,
19803 # and will be corrupted by setting them based on a non-working compiler.
19804 if test "$_lt_caught_CXX_error" != yes; then
19805 # Code to be used in simple compile tests
19806 lt_simple_compile_test_code="int some_variable = 0;"
19808 # Code to be used in simple link tests
19809 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
19811 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19818 # If no C compiler was specified, use CC.
19819 LTCC=${LTCC-"$CC"}
19821 # If no C compiler flags were specified, use CFLAGS.
19822 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19824 # Allow CC to be a program name with arguments.
19825 compiler=$CC
19828 # save warnings/boilerplate of simple test code
19829 ac_outfile=conftest.$ac_objext
19830 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19831 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19832 _lt_compiler_boilerplate=`cat conftest.err`
19833 $RM conftest*
19835 ac_outfile=conftest.$ac_objext
19836 echo "$lt_simple_link_test_code" >conftest.$ac_ext
19837 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19838 _lt_linker_boilerplate=`cat conftest.err`
19839 $RM -r conftest*
19842 # Allow CC to be a program name with arguments.
19843 lt_save_CC=$CC
19844 lt_save_LD=$LD
19845 lt_save_GCC=$GCC
19846 GCC=$GXX
19847 lt_save_with_gnu_ld=$with_gnu_ld
19848 lt_save_path_LD=$lt_cv_path_LD
19849 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
19850 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
19851 else
19852 $as_unset lt_cv_prog_gnu_ld
19854 if test -n "${lt_cv_path_LDCXX+set}"; then
19855 lt_cv_path_LD=$lt_cv_path_LDCXX
19856 else
19857 $as_unset lt_cv_path_LD
19859 test -z "${LDCXX+set}" || LD=$LDCXX
19860 CC=${CXX-"c++"}
19861 compiler=$CC
19862 compiler_CXX=$CC
19863 for cc_temp in $compiler""; do
19864 case $cc_temp in
19865 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19866 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19867 \-*) ;;
19868 *) break;;
19869 esac
19870 done
19871 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
19874 if test -n "$compiler"; then
19875 # We don't want -fno-exception when compiling C++ code, so set the
19876 # no_builtin_flag separately
19877 if test "$GXX" = yes; then
19878 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
19879 else
19880 lt_prog_compiler_no_builtin_flag_CXX=
19883 if test "$GXX" = yes; then
19884 # Set up default GNU C++ configuration
19888 # Check whether --with-gnu-ld was given.
19889 if test "${with_gnu_ld+set}" = set; then :
19890 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
19891 else
19892 with_gnu_ld=no
19895 ac_prog=ld
19896 if test "$GCC" = yes; then
19897 # Check if gcc -print-prog-name=ld gives a path.
19898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
19899 $as_echo_n "checking for ld used by $CC... " >&6; }
19900 case $host in
19901 *-*-mingw*)
19902 # gcc leaves a trailing carriage return which upsets mingw
19903 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
19905 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
19906 esac
19907 case $ac_prog in
19908 # Accept absolute paths.
19909 [\\/]* | ?:[\\/]*)
19910 re_direlt='/[^/][^/]*/\.\./'
19911 # Canonicalize the pathname of ld
19912 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
19913 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
19914 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
19915 done
19916 test -z "$LD" && LD="$ac_prog"
19919 # If it fails, then pretend we aren't using GCC.
19920 ac_prog=ld
19923 # If it is relative, then search for the first ld in PATH.
19924 with_gnu_ld=unknown
19926 esac
19927 elif test "$with_gnu_ld" = yes; then
19928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
19929 $as_echo_n "checking for GNU ld... " >&6; }
19930 else
19931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
19932 $as_echo_n "checking for non-GNU ld... " >&6; }
19934 if ${lt_cv_path_LD+:} false; then :
19935 $as_echo_n "(cached) " >&6
19936 else
19937 if test -z "$LD"; then
19938 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
19939 for ac_dir in $PATH; do
19940 IFS="$lt_save_ifs"
19941 test -z "$ac_dir" && ac_dir=.
19942 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
19943 lt_cv_path_LD="$ac_dir/$ac_prog"
19944 # Check to see if the program is GNU ld. I'd rather use --version,
19945 # but apparently some variants of GNU ld only accept -v.
19946 # Break only if it was the GNU/non-GNU ld that we prefer.
19947 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
19948 *GNU* | *'with BFD'*)
19949 test "$with_gnu_ld" != no && break
19952 test "$with_gnu_ld" != yes && break
19954 esac
19956 done
19957 IFS="$lt_save_ifs"
19958 else
19959 lt_cv_path_LD="$LD" # Let the user override the test with a path.
19963 LD="$lt_cv_path_LD"
19964 if test -n "$LD"; then
19965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
19966 $as_echo "$LD" >&6; }
19967 else
19968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19969 $as_echo "no" >&6; }
19971 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
19972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
19973 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
19974 if ${lt_cv_prog_gnu_ld+:} false; then :
19975 $as_echo_n "(cached) " >&6
19976 else
19977 # I'd rather use --version here, but apparently some GNU lds only accept -v.
19978 case `$LD -v 2>&1 </dev/null` in
19979 *GNU* | *'with BFD'*)
19980 lt_cv_prog_gnu_ld=yes
19983 lt_cv_prog_gnu_ld=no
19985 esac
19987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
19988 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
19989 with_gnu_ld=$lt_cv_prog_gnu_ld
19997 # Check if GNU C++ uses GNU ld as the underlying linker, since the
19998 # archiving commands below assume that GNU ld is being used.
19999 if test "$with_gnu_ld" = yes; then
20000 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
20001 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'
20003 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
20004 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
20006 # If archive_cmds runs LD, not CC, wlarc should be empty
20007 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
20008 # investigate it a little bit more. (MM)
20009 wlarc='${wl}'
20011 # ancient GNU ld didn't support --whole-archive et. al.
20012 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
20013 $GREP 'no-whole-archive' > /dev/null; then
20014 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
20015 else
20016 whole_archive_flag_spec_CXX=
20018 else
20019 with_gnu_ld=no
20020 wlarc=
20022 # A generic and very simple default shared library creation
20023 # command for GNU C++ for the case where it uses the native
20024 # linker, instead of GNU ld. If possible, this setting should
20025 # overridden to take advantage of the native linker features on
20026 # the platform it is being used on.
20027 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
20030 # Commands to make compiler produce verbose output that lists
20031 # what "hidden" libraries, object files and flags are used when
20032 # linking a shared library.
20033 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20035 else
20036 GXX=no
20037 with_gnu_ld=no
20038 wlarc=
20041 # PORTME: fill in a description of your system's C++ link characteristics
20042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20043 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20044 ld_shlibs_CXX=yes
20045 case $host_os in
20046 aix3*)
20047 # FIXME: insert proper C++ library support
20048 ld_shlibs_CXX=no
20050 aix[4-9]*)
20051 if test "$host_cpu" = ia64; then
20052 # On IA64, the linker does run time linking by default, so we don't
20053 # have to do anything special.
20054 aix_use_runtimelinking=no
20055 exp_sym_flag='-Bexport'
20056 no_entry_flag=""
20057 else
20058 aix_use_runtimelinking=no
20060 # Test if we are trying to use run time linking or normal
20061 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
20062 # need to do runtime linking.
20063 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
20064 for ld_flag in $LDFLAGS; do
20065 case $ld_flag in
20066 *-brtl*)
20067 aix_use_runtimelinking=yes
20068 break
20070 esac
20071 done
20073 esac
20075 exp_sym_flag='-bexport'
20076 no_entry_flag='-bnoentry'
20079 # When large executables or shared objects are built, AIX ld can
20080 # have problems creating the table of contents. If linking a library
20081 # or program results in "error TOC overflow" add -mminimal-toc to
20082 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
20083 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
20085 archive_cmds_CXX=''
20086 hardcode_direct_CXX=yes
20087 hardcode_direct_absolute_CXX=yes
20088 hardcode_libdir_separator_CXX=':'
20089 link_all_deplibs_CXX=yes
20090 file_list_spec_CXX='${wl}-f,'
20092 if test "$GXX" = yes; then
20093 case $host_os in aix4.[012]|aix4.[012].*)
20094 # We only want to do this on AIX 4.2 and lower, the check
20095 # below for broken collect2 doesn't work under 4.3+
20096 collect2name=`${CC} -print-prog-name=collect2`
20097 if test -f "$collect2name" &&
20098 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
20099 then
20100 # We have reworked collect2
20102 else
20103 # We have old collect2
20104 hardcode_direct_CXX=unsupported
20105 # It fails to find uninstalled libraries when the uninstalled
20106 # path is not listed in the libpath. Setting hardcode_minus_L
20107 # to unsupported forces relinking
20108 hardcode_minus_L_CXX=yes
20109 hardcode_libdir_flag_spec_CXX='-L$libdir'
20110 hardcode_libdir_separator_CXX=
20112 esac
20113 shared_flag='-shared'
20114 if test "$aix_use_runtimelinking" = yes; then
20115 shared_flag="$shared_flag "'${wl}-G'
20117 else
20118 # not using gcc
20119 if test "$host_cpu" = ia64; then
20120 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
20121 # chokes on -Wl,-G. The following line is correct:
20122 shared_flag='-G'
20123 else
20124 if test "$aix_use_runtimelinking" = yes; then
20125 shared_flag='${wl}-G'
20126 else
20127 shared_flag='${wl}-bM:SRE'
20132 export_dynamic_flag_spec_CXX='${wl}-bexpall'
20133 # It seems that -bexpall does not export symbols beginning with
20134 # underscore (_), so it is better to generate a list of symbols to
20135 # export.
20136 always_export_symbols_CXX=yes
20137 if test "$aix_use_runtimelinking" = yes; then
20138 # Warning - without using the other runtime loading flags (-brtl),
20139 # -berok will link without error, but may produce a broken library.
20140 allow_undefined_flag_CXX='-berok'
20141 # Determine the default libpath from the value encoded in an empty
20142 # executable.
20143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20144 /* end confdefs.h. */
20147 main ()
20151 return 0;
20153 _ACEOF
20154 if ac_fn_cxx_try_link "$LINENO"; then :
20156 lt_aix_libpath_sed='
20157 /Import File Strings/,/^$/ {
20158 /^0/ {
20159 s/^0 *\(.*\)$/\1/
20163 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20164 # Check for a 64-bit object if we didn't find anything.
20165 if test -z "$aix_libpath"; then
20166 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20169 rm -f core conftest.err conftest.$ac_objext \
20170 conftest$ac_exeext conftest.$ac_ext
20171 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
20173 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
20175 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"
20176 else
20177 if test "$host_cpu" = ia64; then
20178 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
20179 allow_undefined_flag_CXX="-z nodefs"
20180 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"
20181 else
20182 # Determine the default libpath from the value encoded in an
20183 # empty executable.
20184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20185 /* end confdefs.h. */
20188 main ()
20192 return 0;
20194 _ACEOF
20195 if ac_fn_cxx_try_link "$LINENO"; then :
20197 lt_aix_libpath_sed='
20198 /Import File Strings/,/^$/ {
20199 /^0/ {
20200 s/^0 *\(.*\)$/\1/
20204 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20205 # Check for a 64-bit object if we didn't find anything.
20206 if test -z "$aix_libpath"; then
20207 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20210 rm -f core conftest.err conftest.$ac_objext \
20211 conftest$ac_exeext conftest.$ac_ext
20212 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
20214 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
20215 # Warning - without using the other run time loading flags,
20216 # -berok will link without error, but may produce a broken library.
20217 no_undefined_flag_CXX=' ${wl}-bernotok'
20218 allow_undefined_flag_CXX=' ${wl}-berok'
20219 if test "$with_gnu_ld" = yes; then
20220 # We only use this code for GNU lds that support --whole-archive.
20221 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
20222 else
20223 # Exported symbols can be pulled into shared objects from archives
20224 whole_archive_flag_spec_CXX='$convenience'
20226 archive_cmds_need_lc_CXX=yes
20227 # This is similar to how AIX traditionally builds its shared
20228 # libraries.
20229 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'
20234 beos*)
20235 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
20236 allow_undefined_flag_CXX=unsupported
20237 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
20238 # support --undefined. This deserves some investigation. FIXME
20239 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20240 else
20241 ld_shlibs_CXX=no
20245 chorus*)
20246 case $cc_basename in
20248 # FIXME: insert proper C++ library support
20249 ld_shlibs_CXX=no
20251 esac
20254 cygwin* | mingw* | pw32* | cegcc*)
20255 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
20256 # as there is no search path for DLLs.
20257 hardcode_libdir_flag_spec_CXX='-L$libdir'
20258 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
20259 allow_undefined_flag_CXX=unsupported
20260 always_export_symbols_CXX=no
20261 enable_shared_with_static_runtimes_CXX=yes
20263 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
20264 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'
20265 # If the export-symbols file already is a .def file (1st line
20266 # is EXPORTS), use it as is; otherwise, prepend...
20267 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
20268 cp $export_symbols $output_objdir/$soname.def;
20269 else
20270 echo EXPORTS > $output_objdir/$soname.def;
20271 cat $export_symbols >> $output_objdir/$soname.def;
20273 $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'
20274 else
20275 ld_shlibs_CXX=no
20278 darwin* | rhapsody*)
20281 archive_cmds_need_lc_CXX=no
20282 hardcode_direct_CXX=no
20283 hardcode_automatic_CXX=yes
20284 hardcode_shlibpath_var_CXX=unsupported
20285 if test "$lt_cv_ld_force_load" = "yes"; then
20286 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\"`'
20287 else
20288 whole_archive_flag_spec_CXX=''
20290 link_all_deplibs_CXX=yes
20291 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
20292 case $cc_basename in
20293 ifort*) _lt_dar_can_shared=yes ;;
20294 *) _lt_dar_can_shared=$GCC ;;
20295 esac
20296 if test "$_lt_dar_can_shared" = "yes"; then
20297 output_verbose_link_cmd=func_echo_all
20298 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}"
20299 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
20300 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}"
20301 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}"
20302 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
20303 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}"
20304 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}"
20307 else
20308 ld_shlibs_CXX=no
20313 dgux*)
20314 case $cc_basename in
20315 ec++*)
20316 # FIXME: insert proper C++ library support
20317 ld_shlibs_CXX=no
20319 ghcx*)
20320 # Green Hills C++ Compiler
20321 # FIXME: insert proper C++ library support
20322 ld_shlibs_CXX=no
20325 # FIXME: insert proper C++ library support
20326 ld_shlibs_CXX=no
20328 esac
20331 freebsd2.*)
20332 # C++ shared libraries reported to be fairly broken before
20333 # switch to ELF
20334 ld_shlibs_CXX=no
20337 freebsd-elf*)
20338 archive_cmds_need_lc_CXX=no
20341 freebsd* | dragonfly*)
20342 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
20343 # conventions
20344 ld_shlibs_CXX=yes
20347 gnu*)
20350 haiku*)
20351 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20352 link_all_deplibs_CXX=yes
20355 hpux9*)
20356 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
20357 hardcode_libdir_separator_CXX=:
20358 export_dynamic_flag_spec_CXX='${wl}-E'
20359 hardcode_direct_CXX=yes
20360 hardcode_minus_L_CXX=yes # Not in the search PATH,
20361 # but as the default
20362 # location of the library.
20364 case $cc_basename in
20365 CC*)
20366 # FIXME: insert proper C++ library support
20367 ld_shlibs_CXX=no
20369 aCC*)
20370 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'
20371 # Commands to make compiler produce verbose output that lists
20372 # what "hidden" libraries, object files and flags are used when
20373 # linking a shared library.
20375 # There doesn't appear to be a way to prevent this compiler from
20376 # explicitly linking system object files so we need to strip them
20377 # from the output so that they don't get included in the library
20378 # dependencies.
20379 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"'
20382 if test "$GXX" = yes; then
20383 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'
20384 else
20385 # FIXME: insert proper C++ library support
20386 ld_shlibs_CXX=no
20389 esac
20392 hpux10*|hpux11*)
20393 if test $with_gnu_ld = no; then
20394 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
20395 hardcode_libdir_separator_CXX=:
20397 case $host_cpu in
20398 hppa*64*|ia64*)
20401 export_dynamic_flag_spec_CXX='${wl}-E'
20403 esac
20405 case $host_cpu in
20406 hppa*64*|ia64*)
20407 hardcode_direct_CXX=no
20408 hardcode_shlibpath_var_CXX=no
20411 hardcode_direct_CXX=yes
20412 hardcode_direct_absolute_CXX=yes
20413 hardcode_minus_L_CXX=yes # Not in the search PATH,
20414 # but as the default
20415 # location of the library.
20417 esac
20419 case $cc_basename in
20420 CC*)
20421 # FIXME: insert proper C++ library support
20422 ld_shlibs_CXX=no
20424 aCC*)
20425 case $host_cpu in
20426 hppa*64*)
20427 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20429 ia64*)
20430 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20433 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20435 esac
20436 # Commands to make compiler produce verbose output that lists
20437 # what "hidden" libraries, object files and flags are used when
20438 # linking a shared library.
20440 # There doesn't appear to be a way to prevent this compiler from
20441 # explicitly linking system object files so we need to strip them
20442 # from the output so that they don't get included in the library
20443 # dependencies.
20444 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"'
20447 if test "$GXX" = yes; then
20448 if test $with_gnu_ld = no; then
20449 case $host_cpu in
20450 hppa*64*)
20451 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20453 ia64*)
20454 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20457 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'
20459 esac
20461 else
20462 # FIXME: insert proper C++ library support
20463 ld_shlibs_CXX=no
20466 esac
20469 interix[3-9]*)
20470 hardcode_direct_CXX=no
20471 hardcode_shlibpath_var_CXX=no
20472 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
20473 export_dynamic_flag_spec_CXX='${wl}-E'
20474 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
20475 # Instead, shared libraries are loaded at an image base (0x10000000 by
20476 # default) and relocated if they conflict, which is a slow very memory
20477 # consuming and fragmenting process. To avoid this, we pick a random,
20478 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
20479 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
20480 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'
20481 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'
20483 irix5* | irix6*)
20484 case $cc_basename in
20485 CC*)
20486 # SGI C++
20487 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'
20489 # Archives containing C++ object files must be created using
20490 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
20491 # necessary to make sure instantiated templates are included
20492 # in the archive.
20493 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
20496 if test "$GXX" = yes; then
20497 if test "$with_gnu_ld" = no; then
20498 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'
20499 else
20500 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'
20503 link_all_deplibs_CXX=yes
20505 esac
20506 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
20507 hardcode_libdir_separator_CXX=:
20508 inherit_rpath_CXX=yes
20511 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20512 case $cc_basename in
20513 KCC*)
20514 # Kuck and Associates, Inc. (KAI) C++ Compiler
20516 # KCC will only create a shared library if the output file
20517 # ends with ".so" (or ".sl" for HP-UX), so rename the library
20518 # to its proper name (with version) after linking.
20519 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'
20520 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'
20521 # Commands to make compiler produce verbose output that lists
20522 # what "hidden" libraries, object files and flags are used when
20523 # linking a shared library.
20525 # There doesn't appear to be a way to prevent this compiler from
20526 # explicitly linking system object files so we need to strip them
20527 # from the output so that they don't get included in the library
20528 # dependencies.
20529 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"'
20531 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
20532 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
20534 # Archives containing C++ object files must be created using
20535 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
20536 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
20538 icpc* | ecpc* )
20539 # Intel C++
20540 with_gnu_ld=yes
20541 # version 8.0 and above of icpc choke on multiply defined symbols
20542 # if we add $predep_objects and $postdep_objects, however 7.1 and
20543 # earlier do not add the objects themselves.
20544 case `$CC -V 2>&1` in
20545 *"Version 7."*)
20546 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
20547 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'
20549 *) # Version 8.0 or newer
20550 tmp_idyn=
20551 case $host_cpu in
20552 ia64*) tmp_idyn=' -i_dynamic';;
20553 esac
20554 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20555 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'
20557 esac
20558 archive_cmds_need_lc_CXX=no
20559 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
20560 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
20561 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
20563 pgCC* | pgcpp*)
20564 # Portland Group C++ compiler
20565 case `$CC -V` in
20566 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
20567 prelink_cmds_CXX='tpldir=Template.dir~
20568 rm -rf $tpldir~
20569 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
20570 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
20571 old_archive_cmds_CXX='tpldir=Template.dir~
20572 rm -rf $tpldir~
20573 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
20574 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
20575 $RANLIB $oldlib'
20576 archive_cmds_CXX='tpldir=Template.dir~
20577 rm -rf $tpldir~
20578 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
20579 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
20580 archive_expsym_cmds_CXX='tpldir=Template.dir~
20581 rm -rf $tpldir~
20582 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
20583 $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'
20585 *) # Version 6 and above use weak symbols
20586 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
20587 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'
20589 esac
20591 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
20592 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
20593 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'
20595 cxx*)
20596 # Compaq C++
20597 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
20598 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'
20600 runpath_var=LD_RUN_PATH
20601 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
20602 hardcode_libdir_separator_CXX=:
20604 # Commands to make compiler produce verbose output that lists
20605 # what "hidden" libraries, object files and flags are used when
20606 # linking a shared library.
20608 # There doesn't appear to be a way to prevent this compiler from
20609 # explicitly linking system object files so we need to strip them
20610 # from the output so that they don't get included in the library
20611 # dependencies.
20612 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'
20614 xl* | mpixl* | bgxl*)
20615 # IBM XL 8.0 on PPC, with GNU ld
20616 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
20617 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
20618 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20619 if test "x$supports_anon_versioning" = xyes; then
20620 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
20621 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
20622 echo "local: *; };" >> $output_objdir/$libname.ver~
20623 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
20627 case `$CC -V 2>&1 | sed 5q` in
20628 *Sun\ C*)
20629 # Sun C++ 5.9
20630 no_undefined_flag_CXX=' -zdefs'
20631 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20632 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'
20633 hardcode_libdir_flag_spec_CXX='-R$libdir'
20634 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'
20635 compiler_needs_object_CXX=yes
20637 # Not sure whether something based on
20638 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
20639 # would be better.
20640 output_verbose_link_cmd='func_echo_all'
20642 # Archives containing C++ object files must be created using
20643 # "CC -xar", where "CC" is the Sun C++ compiler. This is
20644 # necessary to make sure instantiated templates are included
20645 # in the archive.
20646 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
20648 esac
20650 esac
20653 lynxos*)
20654 # FIXME: insert proper C++ library support
20655 ld_shlibs_CXX=no
20658 m88k*)
20659 # FIXME: insert proper C++ library support
20660 ld_shlibs_CXX=no
20663 mvs*)
20664 case $cc_basename in
20665 cxx*)
20666 # FIXME: insert proper C++ library support
20667 ld_shlibs_CXX=no
20670 # FIXME: insert proper C++ library support
20671 ld_shlibs_CXX=no
20673 esac
20676 netbsd*)
20677 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20678 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
20679 wlarc=
20680 hardcode_libdir_flag_spec_CXX='-R$libdir'
20681 hardcode_direct_CXX=yes
20682 hardcode_shlibpath_var_CXX=no
20684 # Workaround some broken pre-1.5 toolchains
20685 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
20688 *nto* | *qnx*)
20689 ld_shlibs_CXX=yes
20692 openbsd2*)
20693 # C++ shared libraries are fairly broken
20694 ld_shlibs_CXX=no
20697 openbsd*)
20698 if test -f /usr/libexec/ld.so; then
20699 hardcode_direct_CXX=yes
20700 hardcode_shlibpath_var_CXX=no
20701 hardcode_direct_absolute_CXX=yes
20702 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
20703 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
20704 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20705 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
20706 export_dynamic_flag_spec_CXX='${wl}-E'
20707 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
20709 output_verbose_link_cmd=func_echo_all
20710 else
20711 ld_shlibs_CXX=no
20715 osf3* | osf4* | osf5*)
20716 case $cc_basename in
20717 KCC*)
20718 # Kuck and Associates, Inc. (KAI) C++ Compiler
20720 # KCC will only create a shared library if the output file
20721 # ends with ".so" (or ".sl" for HP-UX), so rename the library
20722 # to its proper name (with version) after linking.
20723 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'
20725 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
20726 hardcode_libdir_separator_CXX=:
20728 # Archives containing C++ object files must be created using
20729 # the KAI C++ compiler.
20730 case $host in
20731 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
20732 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
20733 esac
20735 RCC*)
20736 # Rational C++ 2.4.1
20737 # FIXME: insert proper C++ library support
20738 ld_shlibs_CXX=no
20740 cxx*)
20741 case $host in
20742 osf3*)
20743 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
20744 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'
20745 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
20748 allow_undefined_flag_CXX=' -expect_unresolved \*'
20749 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'
20750 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
20751 echo "-hidden">> $lib.exp~
20752 $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~
20753 $RM $lib.exp'
20754 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
20756 esac
20758 hardcode_libdir_separator_CXX=:
20760 # Commands to make compiler produce verbose output that lists
20761 # what "hidden" libraries, object files and flags are used when
20762 # linking a shared library.
20764 # There doesn't appear to be a way to prevent this compiler from
20765 # explicitly linking system object files so we need to strip them
20766 # from the output so that they don't get included in the library
20767 # dependencies.
20768 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"'
20771 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
20772 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
20773 case $host in
20774 osf3*)
20775 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'
20778 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'
20780 esac
20782 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
20783 hardcode_libdir_separator_CXX=:
20785 # Commands to make compiler produce verbose output that lists
20786 # what "hidden" libraries, object files and flags are used when
20787 # linking a shared library.
20788 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20790 else
20791 # FIXME: insert proper C++ library support
20792 ld_shlibs_CXX=no
20795 esac
20798 psos*)
20799 # FIXME: insert proper C++ library support
20800 ld_shlibs_CXX=no
20803 sunos4*)
20804 case $cc_basename in
20805 CC*)
20806 # Sun C++ 4.x
20807 # FIXME: insert proper C++ library support
20808 ld_shlibs_CXX=no
20810 lcc*)
20811 # Lucid
20812 # FIXME: insert proper C++ library support
20813 ld_shlibs_CXX=no
20816 # FIXME: insert proper C++ library support
20817 ld_shlibs_CXX=no
20819 esac
20822 solaris*)
20823 case $cc_basename in
20824 CC*)
20825 # Sun C++ 4.2, 5.x and Centerline C++
20826 archive_cmds_need_lc_CXX=yes
20827 no_undefined_flag_CXX=' -zdefs'
20828 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20829 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20830 $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'
20832 hardcode_libdir_flag_spec_CXX='-R$libdir'
20833 hardcode_shlibpath_var_CXX=no
20834 case $host_os in
20835 solaris2.[0-5] | solaris2.[0-5].*) ;;
20837 # The compiler driver will combine and reorder linker options,
20838 # but understands `-z linker_flag'.
20839 # Supported since Solaris 2.6 (maybe 2.5.1?)
20840 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
20842 esac
20843 link_all_deplibs_CXX=yes
20845 output_verbose_link_cmd='func_echo_all'
20847 # Archives containing C++ object files must be created using
20848 # "CC -xar", where "CC" is the Sun C++ compiler. This is
20849 # necessary to make sure instantiated templates are included
20850 # in the archive.
20851 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
20853 gcx*)
20854 # Green Hills C++ Compiler
20855 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20857 # The C++ compiler must be used to create the archive.
20858 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
20861 # GNU C++ compiler with Solaris linker
20862 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
20863 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
20864 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
20865 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20866 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20867 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
20869 # Commands to make compiler produce verbose output that lists
20870 # what "hidden" libraries, object files and flags are used when
20871 # linking a shared library.
20872 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20873 else
20874 # g++ 2.7 appears to require `-G' NOT `-shared' on this
20875 # platform.
20876 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20877 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20878 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
20880 # Commands to make compiler produce verbose output that lists
20881 # what "hidden" libraries, object files and flags are used when
20882 # linking a shared library.
20883 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20886 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
20887 case $host_os in
20888 solaris2.[0-5] | solaris2.[0-5].*) ;;
20890 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
20892 esac
20895 esac
20898 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
20899 no_undefined_flag_CXX='${wl}-z,text'
20900 archive_cmds_need_lc_CXX=no
20901 hardcode_shlibpath_var_CXX=no
20902 runpath_var='LD_RUN_PATH'
20904 case $cc_basename in
20905 CC*)
20906 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20907 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20910 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20911 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20913 esac
20916 sysv5* | sco3.2v5* | sco5v6*)
20917 # Note: We can NOT use -z defs as we might desire, because we do not
20918 # link with -lc, and that would cause any symbols used from libc to
20919 # always be unresolved, which means just about no library would
20920 # ever link correctly. If we're not using GNU ld we use -z text
20921 # though, which does catch some bad symbols but isn't as heavy-handed
20922 # as -z defs.
20923 no_undefined_flag_CXX='${wl}-z,text'
20924 allow_undefined_flag_CXX='${wl}-z,nodefs'
20925 archive_cmds_need_lc_CXX=no
20926 hardcode_shlibpath_var_CXX=no
20927 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
20928 hardcode_libdir_separator_CXX=':'
20929 link_all_deplibs_CXX=yes
20930 export_dynamic_flag_spec_CXX='${wl}-Bexport'
20931 runpath_var='LD_RUN_PATH'
20933 case $cc_basename in
20934 CC*)
20935 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20936 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20937 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
20938 '"$old_archive_cmds_CXX"
20939 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
20940 '"$reload_cmds_CXX"
20943 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20944 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20946 esac
20949 tandem*)
20950 case $cc_basename in
20951 NCC*)
20952 # NonStop-UX NCC 3.20
20953 # FIXME: insert proper C++ library support
20954 ld_shlibs_CXX=no
20957 # FIXME: insert proper C++ library support
20958 ld_shlibs_CXX=no
20960 esac
20963 vxworks*)
20964 # FIXME: insert proper C++ library support
20965 ld_shlibs_CXX=no
20969 # FIXME: insert proper C++ library support
20970 ld_shlibs_CXX=no
20972 esac
20974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20975 $as_echo "$ld_shlibs_CXX" >&6; }
20976 test "$ld_shlibs_CXX" = no && can_build_shared=no
20978 GCC_CXX="$GXX"
20979 LD_CXX="$LD"
20981 ## CAVEAT EMPTOR:
20982 ## There is no encapsulation within the following macros, do not change
20983 ## the running order or otherwise move them around unless you know exactly
20984 ## what you are doing...
20985 # Dependencies to place before and after the object being linked:
20986 predep_objects_CXX=
20987 postdep_objects_CXX=
20988 predeps_CXX=
20989 postdeps_CXX=
20990 compiler_lib_search_path_CXX=
20992 cat > conftest.$ac_ext <<_LT_EOF
20993 class Foo
20995 public:
20996 Foo (void) { a = 0; }
20997 private:
20998 int a;
21000 _LT_EOF
21002 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
21003 (eval $ac_compile) 2>&5
21004 ac_status=$?
21005 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21006 test $ac_status = 0; }; then
21007 # Parse the compiler output and extract the necessary
21008 # objects, libraries and library flags.
21010 # Sentinel used to keep track of whether or not we are before
21011 # the conftest object file.
21012 pre_test_object_deps_done=no
21014 for p in `eval "$output_verbose_link_cmd"`; do
21015 case $p in
21017 -L* | -R* | -l*)
21018 # Some compilers place space between "-{L,R}" and the path.
21019 # Remove the space.
21020 if test $p = "-L" ||
21021 test $p = "-R"; then
21022 prev=$p
21023 continue
21024 else
21025 prev=
21028 if test "$pre_test_object_deps_done" = no; then
21029 case $p in
21030 -L* | -R*)
21031 # Internal compiler library paths should come after those
21032 # provided the user. The postdeps already come after the
21033 # user supplied libs so there is no need to process them.
21034 if test -z "$compiler_lib_search_path_CXX"; then
21035 compiler_lib_search_path_CXX="${prev}${p}"
21036 else
21037 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
21040 # The "-l" case would never come before the object being
21041 # linked, so don't bother handling this case.
21042 esac
21043 else
21044 if test -z "$postdeps_CXX"; then
21045 postdeps_CXX="${prev}${p}"
21046 else
21047 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
21052 *.$objext)
21053 # This assumes that the test object file only shows up
21054 # once in the compiler output.
21055 if test "$p" = "conftest.$objext"; then
21056 pre_test_object_deps_done=yes
21057 continue
21060 if test "$pre_test_object_deps_done" = no; then
21061 if test -z "$predep_objects_CXX"; then
21062 predep_objects_CXX="$p"
21063 else
21064 predep_objects_CXX="$predep_objects_CXX $p"
21066 else
21067 if test -z "$postdep_objects_CXX"; then
21068 postdep_objects_CXX="$p"
21069 else
21070 postdep_objects_CXX="$postdep_objects_CXX $p"
21075 *) ;; # Ignore the rest.
21077 esac
21078 done
21080 # Clean up.
21081 rm -f a.out a.exe
21082 else
21083 echo "libtool.m4: error: problem compiling CXX test program"
21086 $RM -f confest.$objext
21088 # PORTME: override above test on systems where it is broken
21089 case $host_os in
21090 interix[3-9]*)
21091 # Interix 3.5 installs completely hosed .la files for C++, so rather than
21092 # hack all around it, let's just trust "g++" to DTRT.
21093 predep_objects_CXX=
21094 postdep_objects_CXX=
21095 postdeps_CXX=
21098 linux*)
21099 case `$CC -V 2>&1 | sed 5q` in
21100 *Sun\ C*)
21101 # Sun C++ 5.9
21103 # The more standards-conforming stlport4 library is
21104 # incompatible with the Cstd library. Avoid specifying
21105 # it if it's in CXXFLAGS. Ignore libCrun as
21106 # -library=stlport4 depends on it.
21107 case " $CXX $CXXFLAGS " in
21108 *" -library=stlport4 "*)
21109 solaris_use_stlport4=yes
21111 esac
21113 if test "$solaris_use_stlport4" != yes; then
21114 postdeps_CXX='-library=Cstd -library=Crun'
21117 esac
21120 solaris*)
21121 case $cc_basename in
21122 CC*)
21123 # The more standards-conforming stlport4 library is
21124 # incompatible with the Cstd library. Avoid specifying
21125 # it if it's in CXXFLAGS. Ignore libCrun as
21126 # -library=stlport4 depends on it.
21127 case " $CXX $CXXFLAGS " in
21128 *" -library=stlport4 "*)
21129 solaris_use_stlport4=yes
21131 esac
21133 # Adding this requires a known-good setup of shared libraries for
21134 # Sun compiler versions before 5.6, else PIC objects from an old
21135 # archive will be linked into the output, leading to subtle bugs.
21136 if test "$solaris_use_stlport4" != yes; then
21137 postdeps_CXX='-library=Cstd -library=Crun'
21140 esac
21142 esac
21145 case " $postdeps_CXX " in
21146 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
21147 esac
21148 compiler_lib_search_dirs_CXX=
21149 if test -n "${compiler_lib_search_path_CXX}"; then
21150 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
21183 lt_prog_compiler_wl_CXX=
21184 lt_prog_compiler_pic_CXX=
21185 lt_prog_compiler_static_CXX=
21187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
21188 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
21190 # C++ specific cases for pic, static, wl, etc.
21191 if test "$GXX" = yes; then
21192 lt_prog_compiler_wl_CXX='-Wl,'
21193 lt_prog_compiler_static_CXX='-static'
21195 case $host_os in
21196 aix*)
21197 # All AIX code is PIC.
21198 if test "$host_cpu" = ia64; then
21199 # AIX 5 now supports IA64 processor
21200 lt_prog_compiler_static_CXX='-Bstatic'
21202 lt_prog_compiler_pic_CXX='-fPIC'
21205 amigaos*)
21206 case $host_cpu in
21207 powerpc)
21208 # see comment about AmigaOS4 .so support
21209 lt_prog_compiler_pic_CXX='-fPIC'
21211 m68k)
21212 # FIXME: we need at least 68020 code to build shared libraries, but
21213 # adding the `-m68020' flag to GCC prevents building anything better,
21214 # like `-m68040'.
21215 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
21217 esac
21220 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21221 # PIC is the default for these OSes.
21223 mingw* | cygwin* | os2* | pw32* | cegcc*)
21224 # This hack is so that the source file can tell whether it is being
21225 # built for inclusion in a dll (and should export symbols for example).
21226 # Although the cygwin gcc ignores -fPIC, still need this for old-style
21227 # (--disable-auto-import) libraries
21228 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
21230 darwin* | rhapsody*)
21231 # PIC is the default on this platform
21232 # Common symbols not allowed in MH_DYLIB files
21233 lt_prog_compiler_pic_CXX='-fno-common'
21235 *djgpp*)
21236 # DJGPP does not support shared libraries at all
21237 lt_prog_compiler_pic_CXX=
21239 haiku*)
21240 # PIC is the default for Haiku.
21241 # The "-static" flag exists, but is broken.
21242 lt_prog_compiler_static_CXX=
21244 interix[3-9]*)
21245 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21246 # Instead, we relocate shared libraries at runtime.
21248 sysv4*MP*)
21249 if test -d /usr/nec; then
21250 lt_prog_compiler_pic_CXX=-Kconform_pic
21253 hpux*)
21254 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
21255 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
21256 # sets the default TLS model and affects inlining.
21257 case $host_cpu in
21258 hppa*64*)
21261 lt_prog_compiler_pic_CXX='-fPIC'
21263 esac
21265 *qnx* | *nto*)
21266 # QNX uses GNU C++, but need to define -shared option too, otherwise
21267 # it will coredump.
21268 lt_prog_compiler_pic_CXX='-fPIC -shared'
21271 lt_prog_compiler_pic_CXX='-fPIC'
21273 esac
21274 else
21275 case $host_os in
21276 aix[4-9]*)
21277 # All AIX code is PIC.
21278 if test "$host_cpu" = ia64; then
21279 # AIX 5 now supports IA64 processor
21280 lt_prog_compiler_static_CXX='-Bstatic'
21281 else
21282 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
21285 chorus*)
21286 case $cc_basename in
21287 cxch68*)
21288 # Green Hills C++ Compiler
21289 # _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"
21291 esac
21293 dgux*)
21294 case $cc_basename in
21295 ec++*)
21296 lt_prog_compiler_pic_CXX='-KPIC'
21298 ghcx*)
21299 # Green Hills C++ Compiler
21300 lt_prog_compiler_pic_CXX='-pic'
21304 esac
21306 freebsd* | dragonfly*)
21307 # FreeBSD uses GNU C++
21309 hpux9* | hpux10* | hpux11*)
21310 case $cc_basename in
21311 CC*)
21312 lt_prog_compiler_wl_CXX='-Wl,'
21313 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
21314 if test "$host_cpu" != ia64; then
21315 lt_prog_compiler_pic_CXX='+Z'
21318 aCC*)
21319 lt_prog_compiler_wl_CXX='-Wl,'
21320 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
21321 case $host_cpu in
21322 hppa*64*|ia64*)
21323 # +Z the default
21326 lt_prog_compiler_pic_CXX='+Z'
21328 esac
21332 esac
21334 interix*)
21335 # This is c89, which is MS Visual C++ (no shared libs)
21336 # Anyone wants to do a port?
21338 irix5* | irix6* | nonstopux*)
21339 case $cc_basename in
21340 CC*)
21341 lt_prog_compiler_wl_CXX='-Wl,'
21342 lt_prog_compiler_static_CXX='-non_shared'
21343 # CC pic flag -KPIC is the default.
21347 esac
21349 linux* | k*bsd*-gnu | kopensolaris*-gnu)
21350 case $cc_basename in
21351 KCC*)
21352 # KAI C++ Compiler
21353 lt_prog_compiler_wl_CXX='--backend -Wl,'
21354 lt_prog_compiler_pic_CXX='-fPIC'
21356 ecpc* )
21357 # old Intel C++ for x86_64 which still supported -KPIC.
21358 lt_prog_compiler_wl_CXX='-Wl,'
21359 lt_prog_compiler_pic_CXX='-KPIC'
21360 lt_prog_compiler_static_CXX='-static'
21362 icpc* )
21363 # Intel C++, used to be incompatible with GCC.
21364 # ICC 10 doesn't accept -KPIC any more.
21365 lt_prog_compiler_wl_CXX='-Wl,'
21366 lt_prog_compiler_pic_CXX='-fPIC'
21367 lt_prog_compiler_static_CXX='-static'
21369 pgCC* | pgcpp*)
21370 # Portland Group C++ compiler
21371 lt_prog_compiler_wl_CXX='-Wl,'
21372 lt_prog_compiler_pic_CXX='-fpic'
21373 lt_prog_compiler_static_CXX='-Bstatic'
21375 cxx*)
21376 # Compaq C++
21377 # Make sure the PIC flag is empty. It appears that all Alpha
21378 # Linux and Compaq Tru64 Unix objects are PIC.
21379 lt_prog_compiler_pic_CXX=
21380 lt_prog_compiler_static_CXX='-non_shared'
21382 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
21383 # IBM XL 8.0, 9.0 on PPC and BlueGene
21384 lt_prog_compiler_wl_CXX='-Wl,'
21385 lt_prog_compiler_pic_CXX='-qpic'
21386 lt_prog_compiler_static_CXX='-qstaticlink'
21389 case `$CC -V 2>&1 | sed 5q` in
21390 *Sun\ C*)
21391 # Sun C++ 5.9
21392 lt_prog_compiler_pic_CXX='-KPIC'
21393 lt_prog_compiler_static_CXX='-Bstatic'
21394 lt_prog_compiler_wl_CXX='-Qoption ld '
21396 esac
21398 esac
21400 lynxos*)
21402 m88k*)
21404 mvs*)
21405 case $cc_basename in
21406 cxx*)
21407 lt_prog_compiler_pic_CXX='-W c,exportall'
21411 esac
21413 netbsd*)
21415 *qnx* | *nto*)
21416 # QNX uses GNU C++, but need to define -shared option too, otherwise
21417 # it will coredump.
21418 lt_prog_compiler_pic_CXX='-fPIC -shared'
21420 osf3* | osf4* | osf5*)
21421 case $cc_basename in
21422 KCC*)
21423 lt_prog_compiler_wl_CXX='--backend -Wl,'
21425 RCC*)
21426 # Rational C++ 2.4.1
21427 lt_prog_compiler_pic_CXX='-pic'
21429 cxx*)
21430 # Digital/Compaq C++
21431 lt_prog_compiler_wl_CXX='-Wl,'
21432 # Make sure the PIC flag is empty. It appears that all Alpha
21433 # Linux and Compaq Tru64 Unix objects are PIC.
21434 lt_prog_compiler_pic_CXX=
21435 lt_prog_compiler_static_CXX='-non_shared'
21439 esac
21441 psos*)
21443 solaris*)
21444 case $cc_basename in
21445 CC*)
21446 # Sun C++ 4.2, 5.x and Centerline C++
21447 lt_prog_compiler_pic_CXX='-KPIC'
21448 lt_prog_compiler_static_CXX='-Bstatic'
21449 lt_prog_compiler_wl_CXX='-Qoption ld '
21451 gcx*)
21452 # Green Hills C++ Compiler
21453 lt_prog_compiler_pic_CXX='-PIC'
21457 esac
21459 sunos4*)
21460 case $cc_basename in
21461 CC*)
21462 # Sun C++ 4.x
21463 lt_prog_compiler_pic_CXX='-pic'
21464 lt_prog_compiler_static_CXX='-Bstatic'
21466 lcc*)
21467 # Lucid
21468 lt_prog_compiler_pic_CXX='-pic'
21472 esac
21474 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21475 case $cc_basename in
21476 CC*)
21477 lt_prog_compiler_wl_CXX='-Wl,'
21478 lt_prog_compiler_pic_CXX='-KPIC'
21479 lt_prog_compiler_static_CXX='-Bstatic'
21481 esac
21483 tandem*)
21484 case $cc_basename in
21485 NCC*)
21486 # NonStop-UX NCC 3.20
21487 lt_prog_compiler_pic_CXX='-KPIC'
21491 esac
21493 vxworks*)
21496 lt_prog_compiler_can_build_shared_CXX=no
21498 esac
21501 case $host_os in
21502 # For platforms which do not support PIC, -DPIC is meaningless:
21503 *djgpp*)
21504 lt_prog_compiler_pic_CXX=
21507 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
21509 esac
21510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
21511 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
21516 # Check to make sure the PIC flag actually works.
21518 if test -n "$lt_prog_compiler_pic_CXX"; then
21519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
21520 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
21521 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
21522 $as_echo_n "(cached) " >&6
21523 else
21524 lt_cv_prog_compiler_pic_works_CXX=no
21525 ac_outfile=conftest.$ac_objext
21526 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21527 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
21528 # Insert the option either (1) after the last *FLAGS variable, or
21529 # (2) before a word containing "conftest.", or (3) at the end.
21530 # Note that $ac_compile itself does not contain backslashes and begins
21531 # with a dollar sign (not a hyphen), so the echo should work correctly.
21532 # The option is referenced via a variable to avoid confusing sed.
21533 lt_compile=`echo "$ac_compile" | $SED \
21534 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21535 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21536 -e 's:$: $lt_compiler_flag:'`
21537 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
21538 (eval "$lt_compile" 2>conftest.err)
21539 ac_status=$?
21540 cat conftest.err >&5
21541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21542 if (exit $ac_status) && test -s "$ac_outfile"; then
21543 # The compiler can only warn and ignore the option if not recognized
21544 # So say no if there are warnings other than the usual output.
21545 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
21546 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21547 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
21548 lt_cv_prog_compiler_pic_works_CXX=yes
21551 $RM conftest*
21554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
21555 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
21557 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
21558 case $lt_prog_compiler_pic_CXX in
21559 "" | " "*) ;;
21560 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
21561 esac
21562 else
21563 lt_prog_compiler_pic_CXX=
21564 lt_prog_compiler_can_build_shared_CXX=no
21572 # Check to make sure the static flag actually works.
21574 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
21575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21576 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
21577 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
21578 $as_echo_n "(cached) " >&6
21579 else
21580 lt_cv_prog_compiler_static_works_CXX=no
21581 save_LDFLAGS="$LDFLAGS"
21582 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21583 echo "$lt_simple_link_test_code" > conftest.$ac_ext
21584 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21585 # The linker can only warn and ignore the option if not recognized
21586 # So say no if there are warnings
21587 if test -s conftest.err; then
21588 # Append any errors to the config.log.
21589 cat conftest.err 1>&5
21590 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
21591 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21592 if diff conftest.exp conftest.er2 >/dev/null; then
21593 lt_cv_prog_compiler_static_works_CXX=yes
21595 else
21596 lt_cv_prog_compiler_static_works_CXX=yes
21599 $RM -r conftest*
21600 LDFLAGS="$save_LDFLAGS"
21603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
21604 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
21606 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
21608 else
21609 lt_prog_compiler_static_CXX=
21615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
21616 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
21617 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
21618 $as_echo_n "(cached) " >&6
21619 else
21620 lt_cv_prog_compiler_c_o_CXX=no
21621 $RM -r conftest 2>/dev/null
21622 mkdir conftest
21623 cd conftest
21624 mkdir out
21625 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21627 lt_compiler_flag="-o out/conftest2.$ac_objext"
21628 # Insert the option either (1) after the last *FLAGS variable, or
21629 # (2) before a word containing "conftest.", or (3) at the end.
21630 # Note that $ac_compile itself does not contain backslashes and begins
21631 # with a dollar sign (not a hyphen), so the echo should work correctly.
21632 lt_compile=`echo "$ac_compile" | $SED \
21633 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21634 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21635 -e 's:$: $lt_compiler_flag:'`
21636 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
21637 (eval "$lt_compile" 2>out/conftest.err)
21638 ac_status=$?
21639 cat out/conftest.err >&5
21640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21641 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21642 then
21643 # The compiler can only warn and ignore the option if not recognized
21644 # So say no if there are warnings
21645 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
21646 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21647 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21648 lt_cv_prog_compiler_c_o_CXX=yes
21651 chmod u+w . 2>&5
21652 $RM conftest*
21653 # SGI C++ compiler will create directory out/ii_files/ for
21654 # template instantiation
21655 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
21656 $RM out/* && rmdir out
21657 cd ..
21658 $RM -r conftest
21659 $RM conftest*
21662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
21663 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
21667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
21668 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
21669 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
21670 $as_echo_n "(cached) " >&6
21671 else
21672 lt_cv_prog_compiler_c_o_CXX=no
21673 $RM -r conftest 2>/dev/null
21674 mkdir conftest
21675 cd conftest
21676 mkdir out
21677 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21679 lt_compiler_flag="-o out/conftest2.$ac_objext"
21680 # Insert the option either (1) after the last *FLAGS variable, or
21681 # (2) before a word containing "conftest.", or (3) at the end.
21682 # Note that $ac_compile itself does not contain backslashes and begins
21683 # with a dollar sign (not a hyphen), so the echo should work correctly.
21684 lt_compile=`echo "$ac_compile" | $SED \
21685 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21686 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21687 -e 's:$: $lt_compiler_flag:'`
21688 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
21689 (eval "$lt_compile" 2>out/conftest.err)
21690 ac_status=$?
21691 cat out/conftest.err >&5
21692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21693 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21694 then
21695 # The compiler can only warn and ignore the option if not recognized
21696 # So say no if there are warnings
21697 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
21698 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21699 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21700 lt_cv_prog_compiler_c_o_CXX=yes
21703 chmod u+w . 2>&5
21704 $RM conftest*
21705 # SGI C++ compiler will create directory out/ii_files/ for
21706 # template instantiation
21707 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
21708 $RM out/* && rmdir out
21709 cd ..
21710 $RM -r conftest
21711 $RM conftest*
21714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
21715 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
21720 hard_links="nottested"
21721 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
21722 # do not overwrite the value of need_locks provided by the user
21723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
21724 $as_echo_n "checking if we can lock with hard links... " >&6; }
21725 hard_links=yes
21726 $RM conftest*
21727 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21728 touch conftest.a
21729 ln conftest.a conftest.b 2>&5 || hard_links=no
21730 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
21732 $as_echo "$hard_links" >&6; }
21733 if test "$hard_links" = no; then
21734 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21735 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21736 need_locks=warn
21738 else
21739 need_locks=no
21744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21745 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
21747 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21748 case $host_os in
21749 aix[4-9]*)
21750 # If we're using GNU nm, then we don't want the "-C" option.
21751 # -C means demangle to AIX nm, but means don't demangle with GNU nm
21752 # Also, AIX nm treats weak defined symbols like other global defined
21753 # symbols, whereas GNU nm marks them as "W".
21754 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
21755 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'
21756 else
21757 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'
21760 pw32*)
21761 export_symbols_cmds_CXX="$ltdll_cmds"
21763 cygwin* | mingw* | cegcc*)
21764 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'
21767 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21769 esac
21770 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
21772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
21773 $as_echo "$ld_shlibs_CXX" >&6; }
21774 test "$ld_shlibs_CXX" = no && can_build_shared=no
21776 with_gnu_ld_CXX=$with_gnu_ld
21784 # Do we need to explicitly link libc?
21786 case "x$archive_cmds_need_lc_CXX" in
21787 x|xyes)
21788 # Assume -lc should be added
21789 archive_cmds_need_lc_CXX=yes
21791 if test "$enable_shared" = yes && test "$GCC" = yes; then
21792 case $archive_cmds_CXX in
21793 *'~'*)
21794 # FIXME: we may have to deal with multi-command sequences.
21796 '$CC '*)
21797 # Test whether the compiler implicitly links with -lc since on some
21798 # systems, -lgcc has to come before -lc. If gcc already passes -lc
21799 # to ld, don't add -lc before -lgcc.
21800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
21801 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
21802 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
21803 $as_echo_n "(cached) " >&6
21804 else
21805 $RM conftest*
21806 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21808 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
21809 (eval $ac_compile) 2>&5
21810 ac_status=$?
21811 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21812 test $ac_status = 0; } 2>conftest.err; then
21813 soname=conftest
21814 lib=conftest
21815 libobjs=conftest.$ac_objext
21816 deplibs=
21817 wl=$lt_prog_compiler_wl_CXX
21818 pic_flag=$lt_prog_compiler_pic_CXX
21819 compiler_flags=-v
21820 linker_flags=-v
21821 verstring=
21822 output_objdir=.
21823 libname=conftest
21824 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
21825 allow_undefined_flag_CXX=
21826 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
21827 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
21828 ac_status=$?
21829 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21830 test $ac_status = 0; }
21831 then
21832 lt_cv_archive_cmds_need_lc_CXX=no
21833 else
21834 lt_cv_archive_cmds_need_lc_CXX=yes
21836 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
21837 else
21838 cat conftest.err 1>&5
21840 $RM conftest*
21843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
21844 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
21845 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
21847 esac
21850 esac
21915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
21916 $as_echo_n "checking dynamic linker characteristics... " >&6; }
21918 library_names_spec=
21919 libname_spec='lib$name'
21920 soname_spec=
21921 shrext_cmds=".so"
21922 postinstall_cmds=
21923 postuninstall_cmds=
21924 finish_cmds=
21925 finish_eval=
21926 shlibpath_var=
21927 shlibpath_overrides_runpath=unknown
21928 version_type=none
21929 dynamic_linker="$host_os ld.so"
21930 sys_lib_dlsearch_path_spec="/lib /usr/lib"
21931 need_lib_prefix=unknown
21932 hardcode_into_libs=no
21934 # when you set need_version to no, make sure it does not cause -set_version
21935 # flags to be left without arguments
21936 need_version=unknown
21938 case $host_os in
21939 aix3*)
21940 version_type=linux
21941 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
21942 shlibpath_var=LIBPATH
21944 # AIX 3 has no versioning support, so we append a major version to the name.
21945 soname_spec='${libname}${release}${shared_ext}$major'
21948 aix[4-9]*)
21949 version_type=linux
21950 need_lib_prefix=no
21951 need_version=no
21952 hardcode_into_libs=yes
21953 if test "$host_cpu" = ia64; then
21954 # AIX 5 supports IA64
21955 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
21956 shlibpath_var=LD_LIBRARY_PATH
21957 else
21958 # With GCC up to 2.95.x, collect2 would create an import file
21959 # for dependence libraries. The import file would start with
21960 # the line `#! .'. This would cause the generated library to
21961 # depend on `.', always an invalid library. This was fixed in
21962 # development snapshots of GCC prior to 3.0.
21963 case $host_os in
21964 aix4 | aix4.[01] | aix4.[01].*)
21965 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
21966 echo ' yes '
21967 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
21969 else
21970 can_build_shared=no
21973 esac
21974 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
21975 # soname into executable. Probably we can add versioning support to
21976 # collect2, so additional links can be useful in future.
21977 if test "$aix_use_runtimelinking" = yes; then
21978 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
21979 # instead of lib<name>.a to let people know that these are not
21980 # typical AIX shared libraries.
21981 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21982 else
21983 # We preserve .a as extension for shared libraries through AIX4.2
21984 # and later when we are not doing run time linking.
21985 library_names_spec='${libname}${release}.a $libname.a'
21986 soname_spec='${libname}${release}${shared_ext}$major'
21988 shlibpath_var=LIBPATH
21992 amigaos*)
21993 case $host_cpu in
21994 powerpc)
21995 # Since July 2007 AmigaOS4 officially supports .so libraries.
21996 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
21997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21999 m68k)
22000 library_names_spec='$libname.ixlibrary $libname.a'
22001 # Create ${libname}_ixlibrary.a entries in /sys/libs.
22002 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'
22004 esac
22007 beos*)
22008 library_names_spec='${libname}${shared_ext}'
22009 dynamic_linker="$host_os ld.so"
22010 shlibpath_var=LIBRARY_PATH
22013 bsdi[45]*)
22014 version_type=linux
22015 need_version=no
22016 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22017 soname_spec='${libname}${release}${shared_ext}$major'
22018 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22019 shlibpath_var=LD_LIBRARY_PATH
22020 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22021 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22022 # the default ld.so.conf also contains /usr/contrib/lib and
22023 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22024 # libtool to hard-code these into programs
22027 cygwin* | mingw* | pw32* | cegcc*)
22028 version_type=windows
22029 shrext_cmds=".dll"
22030 need_version=no
22031 need_lib_prefix=no
22033 case $GCC,$host_os in
22034 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
22035 library_names_spec='$libname.dll.a'
22036 # DLL is installed to $(libdir)/../bin by postinstall_cmds
22037 postinstall_cmds='base_file=`basename \${file}`~
22038 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
22039 dldir=$destdir/`dirname \$dlpath`~
22040 test -d \$dldir || mkdir -p \$dldir~
22041 $install_prog $dir/$dlname \$dldir/$dlname~
22042 chmod a+x \$dldir/$dlname~
22043 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
22044 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
22046 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22047 dlpath=$dir/\$dldll~
22048 $RM \$dlpath'
22049 shlibpath_overrides_runpath=yes
22051 case $host_os in
22052 cygwin*)
22053 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22054 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22057 mingw* | cegcc*)
22058 # MinGW DLLs use traditional 'lib' prefix
22059 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22061 pw32*)
22062 # pw32 DLLs use 'pw' prefix rather than 'lib'
22063 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22065 esac
22069 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22071 esac
22072 dynamic_linker='Win32 ld.exe'
22073 # FIXME: first we should search . and the directory the executable is in
22074 shlibpath_var=PATH
22077 darwin* | rhapsody*)
22078 dynamic_linker="$host_os dyld"
22079 version_type=darwin
22080 need_lib_prefix=no
22081 need_version=no
22082 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22083 soname_spec='${libname}${release}${major}$shared_ext'
22084 shlibpath_overrides_runpath=yes
22085 shlibpath_var=DYLD_LIBRARY_PATH
22086 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
22088 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22091 dgux*)
22092 version_type=linux
22093 need_lib_prefix=no
22094 need_version=no
22095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22096 soname_spec='${libname}${release}${shared_ext}$major'
22097 shlibpath_var=LD_LIBRARY_PATH
22100 freebsd* | dragonfly*)
22101 # DragonFly does not have aout. When/if they implement a new
22102 # versioning mechanism, adjust this.
22103 if test -x /usr/bin/objformat; then
22104 objformat=`/usr/bin/objformat`
22105 else
22106 case $host_os in
22107 freebsd[23].*) objformat=aout ;;
22108 *) objformat=elf ;;
22109 esac
22111 version_type=freebsd-$objformat
22112 case $version_type in
22113 freebsd-elf*)
22114 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22115 need_version=no
22116 need_lib_prefix=no
22118 freebsd-*)
22119 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22120 need_version=yes
22122 esac
22123 shlibpath_var=LD_LIBRARY_PATH
22124 case $host_os in
22125 freebsd2.*)
22126 shlibpath_overrides_runpath=yes
22128 freebsd3.[01]* | freebsdelf3.[01]*)
22129 shlibpath_overrides_runpath=yes
22130 hardcode_into_libs=yes
22132 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
22133 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
22134 shlibpath_overrides_runpath=no
22135 hardcode_into_libs=yes
22137 *) # from 4.6 on, and DragonFly
22138 shlibpath_overrides_runpath=yes
22139 hardcode_into_libs=yes
22141 esac
22144 haiku*)
22145 version_type=linux
22146 need_lib_prefix=no
22147 need_version=no
22148 dynamic_linker="$host_os runtime_loader"
22149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22150 soname_spec='${libname}${release}${shared_ext}$major'
22151 shlibpath_var=LIBRARY_PATH
22152 shlibpath_overrides_runpath=yes
22153 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
22154 hardcode_into_libs=yes
22157 hpux9* | hpux10* | hpux11*)
22158 # Give a soname corresponding to the major version so that dld.sl refuses to
22159 # link against other versions.
22160 version_type=sunos
22161 need_lib_prefix=no
22162 need_version=no
22163 case $host_cpu in
22164 ia64*)
22165 shrext_cmds='.so'
22166 hardcode_into_libs=yes
22167 dynamic_linker="$host_os dld.so"
22168 shlibpath_var=LD_LIBRARY_PATH
22169 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22171 soname_spec='${libname}${release}${shared_ext}$major'
22172 if test "X$HPUX_IA64_MODE" = X32; then
22173 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22174 else
22175 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22177 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22179 hppa*64*)
22180 shrext_cmds='.sl'
22181 hardcode_into_libs=yes
22182 dynamic_linker="$host_os dld.sl"
22183 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22184 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22186 soname_spec='${libname}${release}${shared_ext}$major'
22187 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22188 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22191 shrext_cmds='.sl'
22192 dynamic_linker="$host_os dld.sl"
22193 shlibpath_var=SHLIB_PATH
22194 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22196 soname_spec='${libname}${release}${shared_ext}$major'
22198 esac
22199 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
22200 postinstall_cmds='chmod 555 $lib'
22201 # or fails outright, so override atomically:
22202 install_override_mode=555
22205 interix[3-9]*)
22206 version_type=linux
22207 need_lib_prefix=no
22208 need_version=no
22209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22210 soname_spec='${libname}${release}${shared_ext}$major'
22211 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
22212 shlibpath_var=LD_LIBRARY_PATH
22213 shlibpath_overrides_runpath=no
22214 hardcode_into_libs=yes
22217 irix5* | irix6* | nonstopux*)
22218 case $host_os in
22219 nonstopux*) version_type=nonstopux ;;
22221 if test "$lt_cv_prog_gnu_ld" = yes; then
22222 version_type=linux
22223 else
22224 version_type=irix
22225 fi ;;
22226 esac
22227 need_lib_prefix=no
22228 need_version=no
22229 soname_spec='${libname}${release}${shared_ext}$major'
22230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22231 case $host_os in
22232 irix5* | nonstopux*)
22233 libsuff= shlibsuff=
22236 case $LD in # libtool.m4 will add one of these switches to LD
22237 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22238 libsuff= shlibsuff= libmagic=32-bit;;
22239 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22240 libsuff=32 shlibsuff=N32 libmagic=N32;;
22241 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22242 libsuff=64 shlibsuff=64 libmagic=64-bit;;
22243 *) libsuff= shlibsuff= libmagic=never-match;;
22244 esac
22246 esac
22247 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22248 shlibpath_overrides_runpath=no
22249 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22250 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22251 hardcode_into_libs=yes
22254 # No shared lib support for Linux oldld, aout, or coff.
22255 linux*oldld* | linux*aout* | linux*coff*)
22256 dynamic_linker=no
22259 # This must be Linux ELF.
22261 # uclinux* changes (here and below) have been submitted to the libtool
22262 # project, but have not yet been accepted: they are GCC-local changes
22263 # for the time being. (See
22264 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
22265 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
22266 version_type=linux
22267 need_lib_prefix=no
22268 need_version=no
22269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22270 soname_spec='${libname}${release}${shared_ext}$major'
22271 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22272 shlibpath_var=LD_LIBRARY_PATH
22273 shlibpath_overrides_runpath=no
22275 # Some binutils ld are patched to set DT_RUNPATH
22276 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
22277 $as_echo_n "(cached) " >&6
22278 else
22279 lt_cv_shlibpath_overrides_runpath=no
22280 save_LDFLAGS=$LDFLAGS
22281 save_libdir=$libdir
22282 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
22283 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
22284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22285 /* end confdefs.h. */
22288 main ()
22292 return 0;
22294 _ACEOF
22295 if ac_fn_cxx_try_link "$LINENO"; then :
22296 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
22297 lt_cv_shlibpath_overrides_runpath=yes
22300 rm -f core conftest.err conftest.$ac_objext \
22301 conftest$ac_exeext conftest.$ac_ext
22302 LDFLAGS=$save_LDFLAGS
22303 libdir=$save_libdir
22307 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
22309 # This implies no fast_install, which is unacceptable.
22310 # Some rework will be needed to allow for fast_install
22311 # before this can be enabled.
22312 hardcode_into_libs=yes
22314 # Append ld.so.conf contents to the search path
22315 if test -f /etc/ld.so.conf; then
22316 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' ' '`
22317 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22320 # We used to test for /lib/ld.so.1 and disable shared libraries on
22321 # powerpc, because MkLinux only supported shared libraries with the
22322 # GNU dynamic linker. Since this was broken with cross compilers,
22323 # most powerpc-linux boxes support dynamic linking these days and
22324 # people can always --disable-shared, the test was removed, and we
22325 # assume the GNU/Linux dynamic linker is in use.
22326 dynamic_linker='GNU/Linux ld.so'
22329 netbsd*)
22330 version_type=sunos
22331 need_lib_prefix=no
22332 need_version=no
22333 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
22334 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22335 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22336 dynamic_linker='NetBSD (a.out) ld.so'
22337 else
22338 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22339 soname_spec='${libname}${release}${shared_ext}$major'
22340 dynamic_linker='NetBSD ld.elf_so'
22342 shlibpath_var=LD_LIBRARY_PATH
22343 shlibpath_overrides_runpath=yes
22344 hardcode_into_libs=yes
22347 newsos6)
22348 version_type=linux
22349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22350 shlibpath_var=LD_LIBRARY_PATH
22351 shlibpath_overrides_runpath=yes
22354 *nto* | *qnx*)
22355 version_type=qnx
22356 need_lib_prefix=no
22357 need_version=no
22358 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22359 soname_spec='${libname}${release}${shared_ext}$major'
22360 shlibpath_var=LD_LIBRARY_PATH
22361 shlibpath_overrides_runpath=no
22362 hardcode_into_libs=yes
22363 dynamic_linker='ldqnx.so'
22366 openbsd*)
22367 version_type=sunos
22368 sys_lib_dlsearch_path_spec="/usr/lib"
22369 need_lib_prefix=no
22370 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
22371 case $host_os in
22372 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
22373 *) need_version=no ;;
22374 esac
22375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22376 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22377 shlibpath_var=LD_LIBRARY_PATH
22378 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22379 case $host_os in
22380 openbsd2.[89] | openbsd2.[89].*)
22381 shlibpath_overrides_runpath=no
22384 shlibpath_overrides_runpath=yes
22386 esac
22387 else
22388 shlibpath_overrides_runpath=yes
22392 os2*)
22393 libname_spec='$name'
22394 shrext_cmds=".dll"
22395 need_lib_prefix=no
22396 library_names_spec='$libname${shared_ext} $libname.a'
22397 dynamic_linker='OS/2 ld.exe'
22398 shlibpath_var=LIBPATH
22401 osf3* | osf4* | osf5*)
22402 version_type=osf
22403 need_lib_prefix=no
22404 need_version=no
22405 soname_spec='${libname}${release}${shared_ext}$major'
22406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22407 shlibpath_var=LD_LIBRARY_PATH
22408 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22409 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
22412 rdos*)
22413 dynamic_linker=no
22416 solaris*)
22417 version_type=linux
22418 need_lib_prefix=no
22419 need_version=no
22420 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22421 soname_spec='${libname}${release}${shared_ext}$major'
22422 shlibpath_var=LD_LIBRARY_PATH
22423 shlibpath_overrides_runpath=yes
22424 hardcode_into_libs=yes
22425 # ldd complains unless libraries are executable
22426 postinstall_cmds='chmod +x $lib'
22429 sunos4*)
22430 version_type=sunos
22431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22432 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22433 shlibpath_var=LD_LIBRARY_PATH
22434 shlibpath_overrides_runpath=yes
22435 if test "$with_gnu_ld" = yes; then
22436 need_lib_prefix=no
22438 need_version=yes
22441 sysv4 | sysv4.3*)
22442 version_type=linux
22443 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22444 soname_spec='${libname}${release}${shared_ext}$major'
22445 shlibpath_var=LD_LIBRARY_PATH
22446 case $host_vendor in
22447 sni)
22448 shlibpath_overrides_runpath=no
22449 need_lib_prefix=no
22450 runpath_var=LD_RUN_PATH
22452 siemens)
22453 need_lib_prefix=no
22455 motorola)
22456 need_lib_prefix=no
22457 need_version=no
22458 shlibpath_overrides_runpath=no
22459 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
22461 esac
22464 sysv4*MP*)
22465 if test -d /usr/nec ;then
22466 version_type=linux
22467 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
22468 soname_spec='$libname${shared_ext}.$major'
22469 shlibpath_var=LD_LIBRARY_PATH
22473 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
22474 version_type=freebsd-elf
22475 need_lib_prefix=no
22476 need_version=no
22477 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22478 soname_spec='${libname}${release}${shared_ext}$major'
22479 shlibpath_var=LD_LIBRARY_PATH
22480 shlibpath_overrides_runpath=yes
22481 hardcode_into_libs=yes
22482 if test "$with_gnu_ld" = yes; then
22483 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
22484 else
22485 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
22486 case $host_os in
22487 sco3.2v5*)
22488 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
22490 esac
22492 sys_lib_dlsearch_path_spec='/usr/lib'
22495 tpf*)
22496 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
22497 version_type=linux
22498 need_lib_prefix=no
22499 need_version=no
22500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22501 shlibpath_var=LD_LIBRARY_PATH
22502 shlibpath_overrides_runpath=no
22503 hardcode_into_libs=yes
22506 uts4*)
22507 version_type=linux
22508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22509 soname_spec='${libname}${release}${shared_ext}$major'
22510 shlibpath_var=LD_LIBRARY_PATH
22514 dynamic_linker=no
22516 esac
22517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
22518 $as_echo "$dynamic_linker" >&6; }
22519 test "$dynamic_linker" = no && can_build_shared=no
22521 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22522 if test "$GCC" = yes; then
22523 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22526 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
22527 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
22529 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
22530 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
22570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
22571 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
22572 hardcode_action_CXX=
22573 if test -n "$hardcode_libdir_flag_spec_CXX" ||
22574 test -n "$runpath_var_CXX" ||
22575 test "X$hardcode_automatic_CXX" = "Xyes" ; then
22577 # We can hardcode non-existent directories.
22578 if test "$hardcode_direct_CXX" != no &&
22579 # If the only mechanism to avoid hardcoding is shlibpath_var, we
22580 # have to relink, otherwise we might link with an installed library
22581 # when we should be linking with a yet-to-be-installed one
22582 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
22583 test "$hardcode_minus_L_CXX" != no; then
22584 # Linking always hardcodes the temporary library directory.
22585 hardcode_action_CXX=relink
22586 else
22587 # We can link without hardcoding, and we can hardcode nonexisting dirs.
22588 hardcode_action_CXX=immediate
22590 else
22591 # We cannot hardcode anything, or else we can only hardcode existing
22592 # directories.
22593 hardcode_action_CXX=unsupported
22595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
22596 $as_echo "$hardcode_action_CXX" >&6; }
22598 if test "$hardcode_action_CXX" = relink ||
22599 test "$inherit_rpath_CXX" = yes; then
22600 # Fast installation is not supported
22601 enable_fast_install=no
22602 elif test "$shlibpath_overrides_runpath" = yes ||
22603 test "$enable_shared" = no; then
22604 # Fast installation is not necessary
22605 enable_fast_install=needless
22614 fi # test -n "$compiler"
22616 CC=$lt_save_CC
22617 LDCXX=$LD
22618 LD=$lt_save_LD
22619 GCC=$lt_save_GCC
22620 with_gnu_ld=$lt_save_with_gnu_ld
22621 lt_cv_path_LDCXX=$lt_cv_path_LD
22622 lt_cv_path_LD=$lt_save_path_LD
22623 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
22624 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
22625 fi # test "$_lt_caught_CXX_error" != yes
22627 ac_ext=cpp
22628 ac_cpp='$CXXCPP $CPPFLAGS'
22629 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22630 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22631 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22648 # Only expand once:
22654 # Identify the assembler which will work hand-in-glove with the newly
22655 # built GCC, so that we can examine its features. This is the assembler
22656 # which will be driven by the driver program.
22658 # If build != host, and we aren't building gas in-tree, we identify a
22659 # build->target assembler and hope that it will have the same features
22660 # as the host->target assembler we'll be using.
22661 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
22663 if ${gcc_cv_as+:} false; then :
22665 else
22667 if test -x "$DEFAULT_ASSEMBLER"; then
22668 gcc_cv_as="$DEFAULT_ASSEMBLER"
22669 elif test -f $gcc_cv_as_gas_srcdir/configure.ac \
22670 && test -f ../gas/Makefile \
22671 && test x$build = x$host; then
22672 gcc_cv_as=../gas/as-new$build_exeext
22673 elif test -x as$build_exeext; then
22674 # Build using assembler in the current directory.
22675 gcc_cv_as=./as$build_exeext
22676 elif ( set dummy $AS_FOR_TARGET; test -x $2 ); then
22677 gcc_cv_as="$AS_FOR_TARGET"
22678 else
22679 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
22680 set dummy $AS_FOR_TARGET; ac_word=$2
22681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22682 $as_echo_n "checking for $ac_word... " >&6; }
22683 if ${ac_cv_path_gcc_cv_as+:} false; then :
22684 $as_echo_n "(cached) " >&6
22685 else
22686 case $gcc_cv_as in
22687 [\\/]* | ?:[\\/]*)
22688 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
22691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22692 for as_dir in $PATH
22694 IFS=$as_save_IFS
22695 test -z "$as_dir" && as_dir=.
22696 for ac_exec_ext in '' $ac_executable_extensions; do
22697 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22698 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
22699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22700 break 2
22702 done
22703 done
22704 IFS=$as_save_IFS
22707 esac
22709 gcc_cv_as=$ac_cv_path_gcc_cv_as
22710 if test -n "$gcc_cv_as"; then
22711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
22712 $as_echo "$gcc_cv_as" >&6; }
22713 else
22714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22715 $as_echo "no" >&6; }
22722 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
22724 case "$ORIGINAL_AS_FOR_TARGET" in
22725 ./as | ./as$build_exeext) ;;
22726 *) ac_config_files="$ac_config_files as:exec-tool.in"
22728 esac
22730 default_ld=
22731 # Check whether --enable-ld was given.
22732 if test "${enable_ld+set}" = set; then :
22733 enableval=$enable_ld; case "${enableval}" in
22735 default_ld=ld.gold
22737 esac
22741 install_gold_as_default=no
22742 # Check whether --enable-gold was given.
22743 if test "${enable_gold+set}" = set; then :
22744 enableval=$enable_gold; case "${enableval}" in
22745 default)
22746 install_gold_as_default=yes
22748 yes)
22749 if test x${default_ld} != x; then
22750 install_gold_as_default=yes
22756 as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5
22758 esac
22762 # Identify the linker which will work hand-in-glove with the newly
22763 # built GCC, so that we can examine its features. This is the linker
22764 # which will be driven by the driver program.
22766 # If build != host, and we aren't building gas in-tree, we identify a
22767 # build->target linker and hope that it will have the same features
22768 # as the host->target linker we'll be using.
22769 gcc_cv_gld_major_version=
22770 gcc_cv_gld_minor_version=
22771 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
22772 gcc_cv_ld_gold_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gold
22773 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
22775 if ${gcc_cv_ld+:} false; then :
22777 else
22779 if test -x "$DEFAULT_LINKER"; then
22780 gcc_cv_ld="$DEFAULT_LINKER"
22781 elif test $install_gold_as_default = yes \
22782 && test -f $gcc_cv_ld_gold_srcdir/configure.ac \
22783 && test -f ../gold/Makefile \
22784 && test x$build = x$host; then
22785 gcc_cv_ld=../gold/ld-new$build_exeext
22786 elif test -f $gcc_cv_ld_gld_srcdir/configure.ac \
22787 && test -f ../ld/Makefile \
22788 && test x$build = x$host; then
22789 gcc_cv_ld=../ld/ld-new$build_exeext
22790 elif test -x collect-ld$build_exeext; then
22791 # Build using linker in the current directory.
22792 gcc_cv_ld=./collect-ld$build_exeext
22793 elif ( set dummy $LD_FOR_TARGET; test -x $2 ); then
22794 gcc_cv_ld="$LD_FOR_TARGET"
22795 else
22796 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
22797 set dummy $LD_FOR_TARGET; ac_word=$2
22798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22799 $as_echo_n "checking for $ac_word... " >&6; }
22800 if ${ac_cv_path_gcc_cv_ld+:} false; then :
22801 $as_echo_n "(cached) " >&6
22802 else
22803 case $gcc_cv_ld in
22804 [\\/]* | ?:[\\/]*)
22805 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
22808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22809 for as_dir in $PATH
22811 IFS=$as_save_IFS
22812 test -z "$as_dir" && as_dir=.
22813 for ac_exec_ext in '' $ac_executable_extensions; do
22814 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22815 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
22816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22817 break 2
22819 done
22820 done
22821 IFS=$as_save_IFS
22824 esac
22826 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
22827 if test -n "$gcc_cv_ld"; then
22828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
22829 $as_echo "$gcc_cv_ld" >&6; }
22830 else
22831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22832 $as_echo "no" >&6; }
22839 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
22840 PLUGIN_LD_SUFFIX=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
22841 # if the PLUGIN_LD is set ld-new, just have it as ld
22842 # as that is the installed named.
22843 if test x$PLUGIN_LD_SUFFIX = xld-new \
22844 || test x$PLUGIN_LD_SUFFIX = xcollect-ld ; then
22845 PLUGIN_LD_SUFFIX=ld
22848 # Check whether --with-plugin-ld was given.
22849 if test "${with_plugin_ld+set}" = set; then :
22850 withval=$with_plugin_ld; if test x"$withval" != x; then
22851 ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
22852 PLUGIN_LD_SUFFIX="$withval"
22858 cat >>confdefs.h <<_ACEOF
22859 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
22860 _ACEOF
22863 # Check to see if we are using gold instead of ld
22864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
22865 $as_echo_n "checking whether we are using gold... " >&6; }
22866 ld_is_gold=no
22867 if test x$gcc_cv_ld != x; then
22868 if $gcc_cv_ld --version 2>/dev/null | sed 1q \
22869 | grep "GNU gold" > /dev/null; then
22870 ld_is_gold=yes
22873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
22874 $as_echo "$ld_is_gold" >&6; }
22876 # Check to see if we are using mold instead of ld
22877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using mold" >&5
22878 $as_echo_n "checking whether we are using mold... " >&6; }
22879 ld_is_mold=no
22880 if test x$gcc_cv_ld != x; then
22881 if $gcc_cv_ld --version 2>/dev/null | sed 1q \
22882 | grep "mold" > /dev/null; then
22883 ld_is_mold=yes
22886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_mold" >&5
22887 $as_echo "$ld_is_mold" >&6; }
22890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gold linker with split stack support as non default" >&5
22891 $as_echo_n "checking gold linker with split stack support as non default... " >&6; }
22892 # Check to see if default ld is not gold, but gold is
22893 # available and has support for split stack. If gcc was configured
22894 # with gold then no checking is done.
22896 if test x$ld_is_gold = xno && which ${gcc_cv_ld}.gold >/dev/null 2>&1; then
22898 # For platforms other than powerpc64*, enable as appropriate.
22900 gold_non_default=no
22901 ld_gold=`which ${gcc_cv_ld}.gold`
22902 # Make sure this gold has minimal split stack support
22903 if $ld_gold --help 2>/dev/null | grep split-stack-adjust-size >/dev/null 2>&1; then
22904 ld_vers=`$ld_gold --version | sed 1q`
22905 gold_vers=`echo $ld_vers | sed -n \
22906 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22907 case $target in
22908 # check that the gold version contains the complete split stack support
22909 # on powerpc64 big and little endian
22910 powerpc64*-*-*)
22911 case "$gold_vers" in
22912 2.25.[1-9]*|2.2[6-9][.0-9]*|2.[3-9][.0-9]*|[3-9].[.0-9]*) gold_non_default=yes
22914 *) gold_non_default=no
22916 esac
22918 esac
22920 if test $gold_non_default = yes; then
22922 $as_echo "#define HAVE_GOLD_NON_DEFAULT_SPLIT_STACK 1" >>confdefs.h
22926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_non_default" >&5
22927 $as_echo "$gold_non_default" >&6; }
22929 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
22931 case "$ORIGINAL_LD_FOR_TARGET" in
22932 ./collect-ld | ./collect-ld$build_exeext) ;;
22933 *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
22935 esac
22937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
22938 $as_echo_n "checking what linker to use... " >&6; }
22939 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext \
22940 || test "$gcc_cv_ld" = ../gold/ld-new$build_exeext; then
22941 # Single tree build which includes ld. We want to prefer it
22942 # over whatever linker top-level may have detected, since
22943 # we'll use what we're building after installation anyway.
22944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
22945 $as_echo "newly built ld" >&6; }
22946 in_tree_ld=yes
22947 in_tree_ld_is_elf=no
22948 if (grep 'EMUL = .*elf' ../ld/Makefile \
22949 || grep 'EMUL = .*linux' ../ld/Makefile \
22950 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
22951 in_tree_ld_is_elf=yes
22952 elif test "$ld_is_gold" = yes; then
22953 in_tree_ld_is_elf=yes
22955 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
22957 gcc_cv_gld_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
22958 if test x$gcc_cv_gld_version != x; then
22959 break
22961 done
22962 case $gcc_cv_gld_version in
22963 VERSION=[0-9]*) ;;
22964 *) as_fn_error $? "cannot find version of in-tree linker" "$LINENO" 5 ;;
22965 esac
22966 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
22967 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
22968 ORIGINAL_LD_BFD_FOR_TARGET=../ld/ld-new$build_exeext
22969 ORIGINAL_LD_GOLD_FOR_TARGET=../gold/ld-new$build_exeext
22970 else
22971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
22972 $as_echo "$gcc_cv_ld" >&6; }
22973 in_tree_ld=no
22974 gcc_cvs_ld_program=false # `dirname $gcc_cv_ld`/`basename $gcc_cv_ld $host_exeext`
22975 ORIGINAL_LD_BFD_FOR_TARGET=${gcc_cvs_ld_program}.bfd$host_exeext
22976 ORIGINAL_LD_GOLD_FOR_TARGET=${gcc_cvs_ld_program}.gold$host_exeext
22982 # Figure out what nm we will be using.
22983 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
22984 if ${gcc_cv_nm+:} false; then :
22986 else
22988 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22989 && test -f ../binutils/Makefile \
22990 && test x$build = x$host; then
22991 gcc_cv_nm=../binutils/nm-new$build_exeext
22992 elif test -x nm$build_exeext; then
22993 gcc_cv_nm=./nm$build_exeext
22994 elif ( set dummy $NM_FOR_TARGET; test -x $2 ); then
22995 gcc_cv_nm="$NM_FOR_TARGET"
22996 else
22997 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
22998 set dummy $NM_FOR_TARGET; ac_word=$2
22999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23000 $as_echo_n "checking for $ac_word... " >&6; }
23001 if ${ac_cv_path_gcc_cv_nm+:} false; then :
23002 $as_echo_n "(cached) " >&6
23003 else
23004 case $gcc_cv_nm in
23005 [\\/]* | ?:[\\/]*)
23006 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
23009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23010 for as_dir in $PATH
23012 IFS=$as_save_IFS
23013 test -z "$as_dir" && as_dir=.
23014 for ac_exec_ext in '' $ac_executable_extensions; do
23015 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23016 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
23017 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23018 break 2
23020 done
23021 done
23022 IFS=$as_save_IFS
23025 esac
23027 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
23028 if test -n "$gcc_cv_nm"; then
23029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
23030 $as_echo "$gcc_cv_nm" >&6; }
23031 else
23032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23033 $as_echo "no" >&6; }
23040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
23041 $as_echo_n "checking what nm to use... " >&6; }
23042 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
23043 # Single tree build which includes binutils.
23044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
23045 $as_echo "newly built nm" >&6; }
23046 in_tree_nm=yes
23047 else
23048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
23049 $as_echo "$gcc_cv_nm" >&6; }
23050 in_tree_nm=no
23053 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
23055 case "$ORIGINAL_NM_FOR_TARGET" in
23056 ./nm | ./nm$build_exeext) ;;
23057 *) ac_config_files="$ac_config_files nm:exec-tool.in"
23059 esac
23062 # Figure out what objdump we will be using.
23063 if ${gcc_cv_objdump+:} false; then :
23065 else
23067 if test -f $gcc_cv_binutils_srcdir/configure.ac \
23068 && test -f ../binutils/Makefile \
23069 && test x$build = x$host; then
23070 # Single tree build which includes binutils.
23071 gcc_cv_objdump=../binutils/objdump$build_exeext
23072 elif test -x objdump$build_exeext; then
23073 gcc_cv_objdump=./objdump$build_exeext
23074 elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $2 ); then
23075 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
23076 else
23077 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
23078 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
23079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23080 $as_echo_n "checking for $ac_word... " >&6; }
23081 if ${ac_cv_path_gcc_cv_objdump+:} false; then :
23082 $as_echo_n "(cached) " >&6
23083 else
23084 case $gcc_cv_objdump in
23085 [\\/]* | ?:[\\/]*)
23086 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
23089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23090 for as_dir in $PATH
23092 IFS=$as_save_IFS
23093 test -z "$as_dir" && as_dir=.
23094 for ac_exec_ext in '' $ac_executable_extensions; do
23095 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23096 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
23097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23098 break 2
23100 done
23101 done
23102 IFS=$as_save_IFS
23105 esac
23107 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
23108 if test -n "$gcc_cv_objdump"; then
23109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
23110 $as_echo "$gcc_cv_objdump" >&6; }
23111 else
23112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23113 $as_echo "no" >&6; }
23120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
23121 $as_echo_n "checking what objdump to use... " >&6; }
23122 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
23123 # Single tree build which includes binutils.
23124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
23125 $as_echo "newly built objdump" >&6; }
23126 elif test x$gcc_cv_objdump = x; then
23127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23128 $as_echo "not found" >&6; }
23129 else
23130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
23131 $as_echo "$gcc_cv_objdump" >&6; }
23134 # Figure out what readelf we will be using.
23135 if ${gcc_cv_readelf+:} false; then :
23137 else
23139 if test -f $gcc_cv_binutils_srcdir/configure.ac \
23140 && test -f ../binutils/Makefile \
23141 && test x$build = x$host; then
23142 # Single tree build which includes binutils.
23143 gcc_cv_readelf=../binutils/readelf$build_exeext
23144 elif test -x readelf$build_exeext; then
23145 gcc_cv_readelf=./readelf$build_exeext
23146 elif ( set dummy $READELF_FOR_TARGET; test -x $2 ); then
23147 gcc_cv_readelf="$READELF_FOR_TARGET"
23148 else
23149 # Extract the first word of "$READELF_FOR_TARGET", so it can be a program name with args.
23150 set dummy $READELF_FOR_TARGET; ac_word=$2
23151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23152 $as_echo_n "checking for $ac_word... " >&6; }
23153 if ${ac_cv_path_gcc_cv_readelf+:} false; then :
23154 $as_echo_n "(cached) " >&6
23155 else
23156 case $gcc_cv_readelf in
23157 [\\/]* | ?:[\\/]*)
23158 ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
23161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23162 for as_dir in $PATH
23164 IFS=$as_save_IFS
23165 test -z "$as_dir" && as_dir=.
23166 for ac_exec_ext in '' $ac_executable_extensions; do
23167 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23168 ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
23169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23170 break 2
23172 done
23173 done
23174 IFS=$as_save_IFS
23177 esac
23179 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
23180 if test -n "$gcc_cv_readelf"; then
23181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
23182 $as_echo "$gcc_cv_readelf" >&6; }
23183 else
23184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23185 $as_echo "no" >&6; }
23192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
23193 $as_echo_n "checking what readelf to use... " >&6; }
23194 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
23195 # Single tree build which includes binutils.
23196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
23197 $as_echo "newly built readelf" >&6; }
23198 elif test x$gcc_cv_readelf = x; then
23199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23200 $as_echo "not found" >&6; }
23201 else
23202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
23203 $as_echo "$gcc_cv_readelf" >&6; }
23206 # Figure out what otool we will be using.
23207 if ${gcc_cv_otool+:} false; then :
23209 else
23211 if test -x otool$build_exeext; then
23212 gcc_cv_otool=./otool$build_exeext
23213 elif ( set dummy $OTOOL_FOR_TARGET; test -x $2 ); then
23214 gcc_cv_otool="$OTOOL_FOR_TARGET"
23215 else
23216 # Extract the first word of "$OTOOL_FOR_TARGET", so it can be a program name with args.
23217 set dummy $OTOOL_FOR_TARGET; ac_word=$2
23218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23219 $as_echo_n "checking for $ac_word... " >&6; }
23220 if ${ac_cv_path_gcc_cv_otool+:} false; then :
23221 $as_echo_n "(cached) " >&6
23222 else
23223 case $gcc_cv_otool in
23224 [\\/]* | ?:[\\/]*)
23225 ac_cv_path_gcc_cv_otool="$gcc_cv_otool" # Let the user override the test with a path.
23228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23229 for as_dir in $PATH
23231 IFS=$as_save_IFS
23232 test -z "$as_dir" && as_dir=.
23233 for ac_exec_ext in '' $ac_executable_extensions; do
23234 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23235 ac_cv_path_gcc_cv_otool="$as_dir/$ac_word$ac_exec_ext"
23236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23237 break 2
23239 done
23240 done
23241 IFS=$as_save_IFS
23244 esac
23246 gcc_cv_otool=$ac_cv_path_gcc_cv_otool
23247 if test -n "$gcc_cv_otool"; then
23248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_otool" >&5
23249 $as_echo "$gcc_cv_otool" >&6; }
23250 else
23251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23252 $as_echo "no" >&6; }
23259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what otool to use" >&5
23260 $as_echo_n "checking what otool to use... " >&6; }
23261 if test x$gcc_cv_otool = x; then
23262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23263 $as_echo "not found" >&6; }
23264 else
23265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_otool" >&5
23266 $as_echo "$gcc_cv_otool" >&6; }
23269 # Figure out the dsymutil we will use.
23270 if ${gcc_cv_dsymutil+:} false; then :
23272 else
23274 if test -x "$DEFAULT_DSYMUTIL"; then
23275 gcc_cv_dsymutil="$DEFAULT_DSYMUTIL"
23276 elif test -x dsymutil$build_exeext; then
23277 gcc_cv_dsymutil=./dsymutil$build_exeext
23278 elif ( set dummy $DSYMUTIL_FOR_TARGET; test -x $2 ); then
23279 gcc_cv_dsymutil=$DSYMUTIL_FOR_TARGET
23280 elif ( set dummy $DSYMUTIL; test -x $2 ); then
23281 gcc_cv_dsymutil=$DSYMUTIL
23282 else
23283 # Extract the first word of "$DSYMUTIL_FOR_TARGET", so it can be a program name with args.
23284 set dummy $DSYMUTIL_FOR_TARGET; ac_word=$2
23285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23286 $as_echo_n "checking for $ac_word... " >&6; }
23287 if ${ac_cv_path_gcc_cv_dsymutil+:} false; then :
23288 $as_echo_n "(cached) " >&6
23289 else
23290 case $gcc_cv_dsymutil in
23291 [\\/]* | ?:[\\/]*)
23292 ac_cv_path_gcc_cv_dsymutil="$gcc_cv_dsymutil" # Let the user override the test with a path.
23295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23296 for as_dir in $PATH
23298 IFS=$as_save_IFS
23299 test -z "$as_dir" && as_dir=.
23300 for ac_exec_ext in '' $ac_executable_extensions; do
23301 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23302 ac_cv_path_gcc_cv_dsymutil="$as_dir/$ac_word$ac_exec_ext"
23303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23304 break 2
23306 done
23307 done
23308 IFS=$as_save_IFS
23311 esac
23313 gcc_cv_dsymutil=$ac_cv_path_gcc_cv_dsymutil
23314 if test -n "$gcc_cv_dsymutil"; then
23315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_dsymutil" >&5
23316 $as_echo "$gcc_cv_dsymutil" >&6; }
23317 else
23318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23319 $as_echo "no" >&6; }
23326 ORIGINAL_DSYMUTIL_FOR_TARGET=$gcc_cv_dsymutil
23328 case "$ORIGINAL_DSYMUTIL_FOR_TARGET" in
23329 ./dsymutil | ./dsymutil$build_exeext) ;;
23330 *) ac_config_files="$ac_config_files dsymutil:exec-tool.in"
23332 esac
23334 #~ # Figure out what assembler alignment features are present.
23335 #~ gcc_GAS_CHECK_FEATURE([.balign and .p2align], gcc_cv_as_balign_and_p2align,,
23336 #~ [.balign 4
23337 #~ .p2align 2],,
23338 #~ [AC_DEFINE(HAVE_GAS_BALIGN_AND_P2ALIGN, 1,
23339 #~ [Define if your assembler supports .balign and .p2align.])])
23341 #~ gcc_GAS_CHECK_FEATURE([.p2align with maximum skip], gcc_cv_as_max_skip_p2align,,
23342 #~ [.p2align 4,,7],,
23343 #~ [AC_DEFINE(HAVE_GAS_MAX_SKIP_P2ALIGN, 1,
23344 #~ [Define if your assembler supports specifying the maximum number
23345 #~ of bytes to skip when using the GAS .p2align command.])])
23347 #~ gcc_GAS_CHECK_FEATURE([.literal16], gcc_cv_as_literal16,,
23348 #~ [.literal16],,
23349 #~ [AC_DEFINE(HAVE_GAS_LITERAL16, 1,
23350 #~ [Define if your assembler supports .literal16.])])
23352 #~ gcc_GAS_CHECK_FEATURE([working .subsection -1], gcc_cv_as_subsection_m1,,
23353 #~ [conftest_label1: .word 0
23354 #~ .subsection -1
23355 #~ conftest_label2: .word 0
23356 #~ .previous],
23357 #~ [if test x$gcc_cv_nm != x; then
23358 #~ $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
23359 #~ $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
23360 #~ if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
23361 #~ then :
23362 #~ else gcc_cv_as_subsection_m1=yes
23363 #~ fi
23364 #~ rm -f conftest.nm1 conftest.nm2
23365 #~ fi],
23366 #~ [AC_DEFINE(HAVE_GAS_SUBSECTION_ORDERING, 1,
23367 #~ [Define if your assembler supports .subsection and .subsection -1 starts
23368 #~ emitting at the beginning of your section.])])
23370 #~ gcc_GAS_CHECK_FEATURE([.weak], gcc_cv_as_weak,,
23371 #~ [ .weak foobar],,
23372 #~ [AC_DEFINE(HAVE_GAS_WEAK, 1, [Define if your assembler supports .weak.])])
23374 #~ gcc_GAS_CHECK_FEATURE([.weakref], gcc_cv_as_weakref,,
23375 #~ [ .weakref foobar, barfnot],,
23376 #~ [AC_DEFINE(HAVE_GAS_WEAKREF, 1, [Define if your assembler supports .weakref.])])
23378 #~ gcc_GAS_CHECK_FEATURE([.nsubspa comdat], gcc_cv_as_nsubspa_comdat,,
23379 #~ [ .SPACE $TEXT$
23380 #~ .NSUBSPA $CODE$,COMDAT],,
23381 #~ [AC_DEFINE(HAVE_GAS_NSUBSPA_COMDAT, 1, [Define if your assembler supports .nsubspa comdat option.])])
23383 #~ # .hidden needs to be supported in both the assembler and the linker,
23384 #~ # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
23385 #~ # This is irritatingly difficult to feature test for; we have to check the
23386 #~ # date string after the version number. If we've got an in-tree
23387 #~ # ld, we don't know its patchlevel version, so we set the baseline at 2.13
23388 #~ # to be safe.
23389 #~ # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
23390 #~ case "${target}" in
23391 #~ *-*-aix*)
23392 #~ conftest_s=' .globl foobar,hidden'
23393 #~ ;;
23394 #~ *)
23395 #~ conftest_s=' .hidden foobar
23396 #~ foobar:'
23397 #~ ;;
23398 #~ esac
23399 #~ gcc_GAS_CHECK_FEATURE([.hidden], gcc_cv_as_hidden,, [$conftest_s])
23400 #~ case "${target}" in
23401 #~ *-*-darwin*)
23402 #~ # Darwin as has some visibility support, though with a different syntax.
23403 #~ gcc_cv_as_hidden=yes
23404 #~ ;;
23405 #~ esac
23407 # gnu_indirect_function type is an extension proposed at
23408 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
23409 # selection of function implementation
23410 # Check whether --enable-gnu-indirect-function was given.
23411 if test "${enable_gnu_indirect_function+set}" = set; then :
23412 enableval=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
23413 yes | no) ;;
23414 *) as_fn_error $? "'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
23415 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
23416 esac
23417 else
23418 enable_gnu_indirect_function="$default_gnu_indirect_function"
23422 case "${target}" in
23423 riscv*-*-linux*)
23424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker ifunc IRELATIVE support" >&5
23425 $as_echo_n "checking linker ifunc IRELATIVE support... " >&6; }
23426 cat > conftest.s <<EOF
23427 .text
23428 .type foo_resolver, @function
23429 foo_resolver:
23431 .size foo_resolver, .-foo_resolver
23433 .globl foo
23434 .type foo, %gnu_indirect_function
23435 .set foo, foo_resolver
23437 .globl bar
23438 .type bar, @function
23439 bar:
23440 call foo
23442 .size bar, .-bar
23444 if test x$gcc_cv_as != x \
23445 && test x$gcc_cv_ld != x \
23446 && test x$gcc_cv_readelf != x \
23447 && $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
23448 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
23449 && $gcc_cv_readelf --relocs --wide conftest \
23450 | grep R_RISCV_IRELATIVE > /dev/null 2>&1; then
23451 enable_gnu_indirect_function=yes
23453 rm -f conftest conftest.o conftest.s
23454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gnu_indirect_function" >&5
23455 $as_echo "$enable_gnu_indirect_function" >&6; }
23457 esac
23459 gif=`if test x$enable_gnu_indirect_function = xyes; then echo 1; else echo 0; fi`
23461 cat >>confdefs.h <<_ACEOF
23462 #define HAVE_GNU_INDIRECT_FUNCTION $gif
23463 _ACEOF
23467 if test $in_tree_ld != yes ; then
23468 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
23469 if echo "$ld_ver" | grep GNU > /dev/null; then
23470 if test x"$ld_is_gold" = xyes; then
23471 # GNU gold --version looks like this:
23473 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
23475 # We extract the binutils version which is more familiar and specific
23476 # than the gold version.
23477 ld_vers=`echo $ld_ver | sed -n \
23478 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
23479 else
23480 # GNU ld --version looks like this:
23482 # GNU ld (GNU Binutils) 2.21.51.20110225
23483 ld_vers=`echo $ld_ver | sed -n \
23484 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23486 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'`
23487 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
23488 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
23489 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
23490 else
23491 case "${target}" in
23492 *-*-solaris2*)
23493 # Solaris 2 ld -V output looks like this for a regular version:
23495 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
23497 # but test versions add stuff at the end:
23499 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
23501 # ld and ld.so.1 are guaranteed to be updated in lockstep, so ld version
23502 # numbers can be used in ld.so.1 feature checks even if a different
23503 # linker is configured.
23504 ld_ver=`$gcc_cv_ld -V 2>&1`
23505 if echo "$ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
23506 ld_vers=`echo $ld_ver | sed -n \
23507 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
23508 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
23509 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
23512 esac
23516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
23517 $as_echo_n "checking linker for .hidden support... " >&6; }
23518 if ${gcc_cv_ld_hidden+:} false; then :
23519 $as_echo_n "(cached) " >&6
23520 else
23521 if test $in_tree_ld = yes ; then
23522 gcc_cv_ld_hidden=no
23523 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 \
23524 && test $in_tree_ld_is_elf = yes; then
23525 gcc_cv_ld_hidden=yes
23527 else
23528 gcc_cv_ld_hidden=yes
23529 if test x"$ld_is_gold" = xyes; then
23531 elif test x"$ld_is_mold" = xyes; then
23533 elif echo "$ld_ver" | grep GNU > /dev/null; then
23534 if test 0"$ld_date" -lt 20020404; then
23535 if test -n "$ld_date"; then
23536 # If there was date string, but was earlier than 2002-04-04, fail
23537 gcc_cv_ld_hidden=no
23538 elif test -z "$ld_vers"; then
23539 # If there was no date string nor ld version number, something is wrong
23540 gcc_cv_ld_hidden=no
23541 else
23542 test -z "$ld_vers_patch" && ld_vers_patch=0
23543 if test "$ld_vers_major" -lt 2; then
23544 gcc_cv_ld_hidden=no
23545 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
23546 gcc_cv_ld_hidden="no"
23547 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
23548 gcc_cv_ld_hidden=no
23552 else
23553 case "${target}" in
23554 *-*-aix[789]*)
23555 gcc_cv_ld_hidden=yes
23557 *-*-darwin*)
23558 # Darwin ld has some visibility support.
23559 gcc_cv_ld_hidden=yes
23561 hppa64*-*-hpux* | ia64*-*-hpux*)
23562 gcc_cv_ld_hidden=yes
23564 *-*-solaris2*)
23565 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
23566 # .symbolic was only added in Solaris 9 12/02.
23567 gcc_cv_ld_hidden=yes
23570 gcc_cv_ld_hidden=no
23572 esac
23576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
23577 $as_echo "$gcc_cv_ld_hidden" >&6; }
23578 libgcc_visibility=no
23581 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
23582 libgcc_visibility=yes
23584 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
23588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
23589 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
23590 gcc_cv_ld_ro_rw_mix=unknown
23591 if test $in_tree_ld = yes ; then
23592 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 \
23593 && test $in_tree_ld_is_elf = yes; then
23594 gcc_cv_ld_ro_rw_mix=read-write
23596 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
23597 echo '.section myfoosect, "a"' > conftest1.s
23598 echo '.section myfoosect, "aw"' > conftest2.s
23599 echo '.byte 1' >> conftest2.s
23600 echo '.section myfoosect, "a"' > conftest3.s
23601 echo '.byte 0' >> conftest3.s
23602 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
23603 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
23604 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
23605 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
23606 conftest2.o conftest3.o > /dev/null 2>&1; then
23607 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
23608 | sed -e '/myfoosect/!d' -e N`
23609 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
23610 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
23611 gcc_cv_ld_ro_rw_mix=read-only
23612 else
23613 gcc_cv_ld_ro_rw_mix=read-write
23617 rm -f conftest.* conftest[123].*
23619 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
23621 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
23624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
23625 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
23627 # Check whether --enable-initfini-array was given.
23628 if test "${enable_initfini_array+set}" = set; then :
23629 enableval=$enable_initfini_array;
23630 else
23632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
23633 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
23634 if ${gcc_cv_initfini_array+:} false; then :
23635 $as_echo_n "(cached) " >&6
23636 else
23637 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
23638 case "${target}" in
23639 ia64-*)
23640 if test "$cross_compiling" = yes; then :
23641 gcc_cv_initfini_array=no
23642 else
23643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23644 /* end confdefs.h. */
23646 #ifndef __ELF__
23647 #error Not an ELF OS
23648 #endif
23649 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
23650 if it can be used. */
23651 static int x = -1;
23652 int main (void) { return x; }
23653 int foo (void) { x = 0; }
23654 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
23656 _ACEOF
23657 if ac_fn_cxx_try_run "$LINENO"; then :
23658 gcc_cv_initfini_array=yes
23659 else
23660 gcc_cv_initfini_array=no
23662 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23663 conftest.$ac_objext conftest.beam conftest.$ac_ext
23667 gcc_cv_initfini_array=no
23668 if test $in_tree_ld = yes ; then
23669 if test "$gcc_cv_gld_major_version" -eq 2 \
23670 -a "$gcc_cv_gld_minor_version" -ge 22 \
23671 -o "$gcc_cv_gld_major_version" -gt 2 \
23672 && test $in_tree_ld_is_elf = yes; then
23673 gcc_cv_initfini_array=yes
23675 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
23676 case $target:$gas in
23677 *:yes)
23678 sh_flags='"a"'
23679 sh_type='%progbits'
23681 i?86-*-solaris2*:no | x86_64-*-solaris2*:no)
23682 sh_flags='"a"'
23683 sh_type='@progbits'
23685 sparc*-*-solaris2*:no)
23686 sh_flags='#alloc'
23687 sh_type='#progbits'
23688 sh_quote='"'
23690 esac
23691 case "$target:$gnu_ld" in
23692 *:yes)
23693 cat > conftest.s <<EOF
23694 .section .dtors,$sh_flags,$sh_type
23695 .balign 4
23696 .byte 'A', 'A', 'A', 'A'
23697 .section .ctors,$sh_flags,$sh_type
23698 .balign 4
23699 .byte 'B', 'B', 'B', 'B'
23700 .section .fini_array.65530,$sh_flags,$sh_type
23701 .balign 4
23702 .byte 'C', 'C', 'C', 'C'
23703 .section .init_array.65530,$sh_flags,$sh_type
23704 .balign 4
23705 .byte 'D', 'D', 'D', 'D'
23706 .section .dtors.64528,$sh_flags,$sh_type
23707 .balign 4
23708 .byte 'E', 'E', 'E', 'E'
23709 .section .ctors.64528,$sh_flags,$sh_type
23710 .balign 4
23711 .byte 'F', 'F', 'F', 'F'
23712 .section .fini_array.01005,$sh_flags,$sh_type
23713 .balign 4
23714 .byte 'G', 'G', 'G', 'G'
23715 .section .init_array.01005,$sh_flags,$sh_type
23716 .balign 4
23717 .byte 'H', 'H', 'H', 'H'
23718 .text
23719 .globl _start
23720 _start:
23722 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
23723 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
23724 && $gcc_cv_objdump -s -j .init_array conftest \
23725 | grep HHHHFFFFDDDDBBBB > /dev/null 2>&1 \
23726 && $gcc_cv_objdump -s -j .fini_array conftest \
23727 | grep GGGGEEEECCCCAAAA > /dev/null 2>&1; then
23728 gcc_cv_initfini_array=yes
23731 *-*-solaris2*:no)
23732 # When Solaris ld added constructor priority support, it was
23733 # decided to only handle .init_array.N/.fini_array.N since
23734 # there was no need for backwards compatibility with
23735 # .ctors.N/.dtors.N. .ctors/.dtors remain as separate
23736 # sections with correct execution order resp. to
23737 # .init_array/.fini_array, while gld merges them into
23738 # .init_array/.fini_array.
23739 cat > conftest.s <<EOF
23740 .section $sh_quote.fini_array.65530$sh_quote,$sh_flags,$sh_type
23741 .align 4
23742 .byte 'C', 'C', 'C', 'C', 'C', 'C', 'C', 'C'
23743 .section $sh_quote.init_array.65530$sh_quote,$sh_flags,$sh_type
23744 .align 4
23745 .byte 'D', 'D', 'D', 'D', 'D', 'D', 'D', 'D'
23746 .section $sh_quote.fini_array.01005$sh_quote,$sh_flags,$sh_type
23747 .align 4
23748 .byte 'G', 'G', 'G', 'G', 'G', 'G', 'G', 'G'
23749 .section $sh_quote.init_array.01005$sh_quote,$sh_flags,$sh_type
23750 .align 4
23751 .byte 'H', 'H', 'H', 'H', 'H', 'H', 'H', 'H'
23752 .text
23753 .globl _start
23754 _start:
23756 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
23757 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
23758 && $gcc_cv_objdump -s -j .init_array conftest \
23759 | grep HHHHHHHHDDDDDDDD > /dev/null 2>&1 \
23760 && $gcc_cv_objdump -s -j .fini_array conftest \
23761 | grep GGGGGGGGCCCCCCCC > /dev/null 2>&1; then
23762 gcc_cv_initfini_array=yes
23765 esac
23766 rm -f conftest conftest.*
23768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23769 /* end confdefs.h. */
23771 #ifndef __ELF__
23772 # error Not an ELF OS
23773 #endif
23774 #include <stdlib.h>
23775 #if defined __GLIBC_PREREQ
23776 # if __GLIBC_PREREQ (2, 4)
23777 # else
23778 # error GLIBC 2.4 required
23779 # endif
23780 #else
23781 # if defined __sun__ && defined __svr4__
23782 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
23783 # else
23784 # error The C library not known to support .init_array/.fini_array
23785 # endif
23786 #endif
23788 _ACEOF
23789 if ac_fn_cxx_try_cpp "$LINENO"; then :
23791 else
23792 gcc_cv_initfini_array=no
23794 rm -f conftest.err conftest.i conftest.$ac_ext;;
23795 esac
23796 else
23797 case "${target}" in
23798 aarch64*-linux-gnu*)
23799 # AArch64 postdates glibc support for .init_array/.fini_array,
23800 # so we don't need the preprocessor test above.
23801 gcc_cv_initfini_array=yes
23805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
23806 $as_echo_n "checking cross compile... guessing... " >&6; }
23807 gcc_cv_initfini_array=no
23809 esac
23812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
23813 $as_echo "$gcc_cv_initfini_array" >&6; }
23814 enable_initfini_array=$gcc_cv_initfini_array
23819 cat >>confdefs.h <<_ACEOF
23820 #define HAVE_INITFINI_ARRAY_SUPPORT `if test $enable_initfini_array = yes; then echo 1; else echo 0; fi`
23821 _ACEOF
23825 # Check if we have .[us]leb128, and support symbol arithmetic with it.
23826 # Older versions of GAS and some non-GNU assemblers, have a bugs handling
23827 # these directives, even when they appear to accept them.
23828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
23829 $as_echo_n "checking assembler flags... " >&6; }
23830 if ${gcc_cv_as_flags+:} false; then :
23831 $as_echo_n "(cached) " >&6
23832 else
23833 case "$target" in
23834 i[34567]86-*-linux*)
23835 gcc_cv_as_flags=--32
23837 x86_64-*-linux-gnux32)
23838 gcc_cv_as_flags=--x32
23840 x86_64-*-linux*)
23841 gcc_cv_as_flags=--64
23843 powerpc*-*-darwin*)
23844 gcc_cv_as_flags="-arch ppc"
23847 gcc_cv_as_flags=" "
23849 esac
23851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
23852 $as_echo "$gcc_cv_as_flags" >&6; }
23854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
23855 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
23856 if ${gcc_cv_as_leb128+:} false; then :
23857 $as_echo_n "(cached) " >&6
23858 else
23859 gcc_cv_as_leb128=no
23860 if test x$gcc_cv_as != x; then
23861 $as_echo ' .data
23862 .uleb128 L2 - L1
23864 .uleb128 1280
23865 .sleb128 -1010
23867 .uleb128 0x8000000000000000
23868 ' > conftest.s
23869 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23870 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23871 (eval $ac_try) 2>&5
23872 ac_status=$?
23873 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23874 test $ac_status = 0; }; }
23875 then
23877 if test "x$gcc_cv_objdump" != x; then
23878 if $gcc_cv_objdump -s conftest.o 2>/dev/null \
23879 | grep '04800a8e 78808080 80808080 808001' >/dev/null; then
23880 gcc_cv_as_leb128=yes
23882 elif test "x$gcc_cv_otool" != x; then
23883 if $gcc_cv_otool -d conftest.o 2>/dev/null \
23884 | grep '04 80 0a 8e 78 80 80 80 80 80 80 80 80 80 01' >/dev/null; then
23885 gcc_cv_as_leb128=yes
23887 else
23888 # play safe, assume the assembler is broken.
23892 else
23893 echo "configure: failed program was" >&5
23894 cat conftest.s >&5
23896 rm -f conftest.o conftest.s
23899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
23900 $as_echo "$gcc_cv_as_leb128" >&6; }
23901 if test $gcc_cv_as_leb128 = yes; then
23903 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
23906 if test $gcc_cv_as_leb128 != yes; then
23908 $as_echo "#define HAVE_AS_LEB128 0" >>confdefs.h
23912 # Determine if an .eh_frame section is read-only.
23913 gcc_fn_eh_frame_ro () {
23914 $gcc_cv_as $1 -o conftest.o conftest.s > /dev/null 2>&1 && \
23915 $gcc_cv_objdump -h conftest.o 2>/dev/null | \
23916 sed -e '/.eh_frame/!d' -e N | grep READONLY > /dev/null
23919 # Check if we have assembler support for unwind directives.
23920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
23921 $as_echo_n "checking assembler for cfi directives... " >&6; }
23922 if ${gcc_cv_as_cfi_directive+:} false; then :
23923 $as_echo_n "(cached) " >&6
23924 else
23925 gcc_cv_as_cfi_directive=no
23926 if test x$gcc_cv_as != x; then
23927 $as_echo ' .text
23928 .cfi_startproc
23929 .cfi_offset 0, 0
23930 .cfi_same_value 1
23931 .cfi_def_cfa 1, 2
23932 .cfi_escape 1, 2, 3, 4, 5
23933 .cfi_endproc' > conftest.s
23934 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23935 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23936 (eval $ac_try) 2>&5
23937 ac_status=$?
23938 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23939 test $ac_status = 0; }; }
23940 then
23941 case "$target" in
23942 *-*-solaris*)
23943 # If the linker used on Solaris (like Sun ld) isn't capable of merging
23944 # read-only and read-write sections, we need to make sure that the
23945 # assembler used emits read-write .eh_frame sections.
23946 if test "x$gcc_cv_ld_ro_rw_mix" = xread-write; then
23947 gcc_cv_as_cfi_directive=yes
23948 elif test "x$gcc_cv_objdump" = x; then
23949 # No objdump, err on the side of caution.
23950 gcc_cv_as_cfi_directive=no
23951 else
23952 if test x$gas = xyes; then
23953 as_32_opt="--32"
23954 as_64_opt="--64"
23955 else
23956 as_32_opt="-m32"
23957 as_64_opt="-m64"
23959 case "$target" in
23960 sparc*-*-solaris2.*)
23961 # On Solaris/SPARC, .eh_frame sections should always be read-write.
23962 if gcc_fn_eh_frame_ro $as_32_opt \
23963 || gcc_fn_eh_frame_ro $as_64_opt; then
23964 gcc_cv_as_cfi_directive=no
23965 else
23966 gcc_cv_as_cfi_directive=yes
23969 i?86-*-solaris2.* | x86_64-*-solaris2.*)
23970 # On Solaris/x86, make sure that GCC and assembler agree on using
23971 # read-only .eh_frame sections for 64-bit.
23972 if gcc_fn_eh_frame_ro $as_32_opt; then
23973 gcc_cv_as_cfi_directive=no
23974 elif gcc_fn_eh_frame_ro $as_64_opt; then
23975 gcc_cv_as_cfi_directive=yes
23976 else
23977 gcc_cv_as_cfi_directive=no
23980 esac
23983 *-*-*)
23984 gcc_cv_as_cfi_directive=yes
23986 esac
23987 else
23988 echo "configure: failed program was" >&5
23989 cat conftest.s >&5
23991 rm -f conftest.o conftest.s
23994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
23995 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
23998 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then
23999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
24000 $as_echo_n "checking assembler for working cfi advance... " >&6; }
24001 if ${gcc_cv_as_cfi_advance_working+:} false; then :
24002 $as_echo_n "(cached) " >&6
24003 else
24004 gcc_cv_as_cfi_advance_working=no
24005 if test x$gcc_cv_as != x; then
24006 $as_echo ' .text
24007 .cfi_startproc
24008 .cfi_adjust_cfa_offset 64
24009 .skip 75040, 0
24010 .cfi_adjust_cfa_offset 128
24011 .cfi_endproc' > conftest.s
24012 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24013 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24014 (eval $ac_try) 2>&5
24015 ac_status=$?
24016 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24017 test $ac_status = 0; }; }
24018 then
24020 if $gcc_cv_objdump -Wf conftest.o 2>/dev/null \
24021 | grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev/null; then
24022 gcc_cv_as_cfi_advance_working=yes
24025 else
24026 echo "configure: failed program was" >&5
24027 cat conftest.s >&5
24029 rm -f conftest.o conftest.s
24032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
24033 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
24036 else
24037 # no objdump, err on the side of caution
24038 gcc_cv_as_cfi_advance_working=no
24042 cat >>confdefs.h <<_ACEOF
24043 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
24044 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
24045 _ACEOF
24049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
24050 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
24051 if ${gcc_cv_as_cfi_personality_directive+:} false; then :
24052 $as_echo_n "(cached) " >&6
24053 else
24054 gcc_cv_as_cfi_personality_directive=no
24055 if test x$gcc_cv_as != x; then
24056 $as_echo ' .text
24057 .cfi_startproc
24058 .cfi_personality 0, symbol
24059 .cfi_endproc' > conftest.s
24060 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24061 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24062 (eval $ac_try) 2>&5
24063 ac_status=$?
24064 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24065 test $ac_status = 0; }; }
24066 then
24067 gcc_cv_as_cfi_personality_directive=yes
24068 else
24069 echo "configure: failed program was" >&5
24070 cat conftest.s >&5
24072 rm -f conftest.o conftest.s
24075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
24076 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
24080 cat >>confdefs.h <<_ACEOF
24081 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes; then echo 1; else echo 0; fi`
24082 _ACEOF
24085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
24086 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
24087 if ${gcc_cv_as_cfi_sections_directive+:} false; then :
24088 $as_echo_n "(cached) " >&6
24089 else
24090 gcc_cv_as_cfi_sections_directive=no
24091 if test x$gcc_cv_as != x; then
24092 $as_echo ' .text
24093 .cfi_sections .debug_frame, .eh_frame
24094 .cfi_startproc
24095 .cfi_endproc' > conftest.s
24096 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24097 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24098 (eval $ac_try) 2>&5
24099 ac_status=$?
24100 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24101 test $ac_status = 0; }; }
24102 then
24103 case $target_os in
24104 win32 | pe | cygwin* | mingw32*)
24105 # Need to check that we generated the correct relocation for the
24106 # .debug_frame section. This was fixed for binutils 2.21.
24107 gcc_cv_as_cfi_sections_directive=no
24108 if test "x$gcc_cv_objdump" != x; then
24109 if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
24110 grep secrel > /dev/null; then
24111 gcc_cv_as_cfi_sections_directive=yes
24116 gcc_cv_as_cfi_sections_directive=yes
24118 esac
24119 else
24120 echo "configure: failed program was" >&5
24121 cat conftest.s >&5
24123 rm -f conftest.o conftest.s
24126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
24127 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
24132 cat >>confdefs.h <<_ACEOF
24133 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes; then echo 1; else echo 0; fi`
24134 _ACEOF
24137 # GAS versions up to and including 2.11.0 may mis-optimize
24138 # .eh_frame data.
24139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
24140 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
24141 if ${gcc_cv_as_eh_frame+:} false; then :
24142 $as_echo_n "(cached) " >&6
24143 else
24144 gcc_cv_as_eh_frame=no
24145 if test x$gcc_cv_as != x; then
24146 $as_echo ' .text
24147 .LFB1:
24148 .4byte 0
24149 .L1:
24150 .4byte 0
24151 .LFE1:
24152 .section .eh_frame,"aw",@progbits
24153 __FRAME_BEGIN__:
24154 .4byte .LECIE1-.LSCIE1
24155 .LSCIE1:
24156 .4byte 0x0
24157 .byte 0x1
24158 .ascii "z\0"
24159 .byte 0x1
24160 .byte 0x78
24161 .byte 0x1a
24162 .byte 0x0
24163 .byte 0x4
24164 .4byte 1
24165 .p2align 1
24166 .LECIE1:
24167 .LSFDE1:
24168 .4byte .LEFDE1-.LASFDE1
24169 .LASFDE1:
24170 .4byte .LASFDE1-__FRAME_BEGIN__
24171 .4byte .LFB1
24172 .4byte .LFE1-.LFB1
24173 .byte 0x4
24174 .4byte .LFE1-.LFB1
24175 .byte 0x4
24176 .4byte .L1-.LFB1
24177 .LEFDE1:' > conftest.s
24178 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24179 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24180 (eval $ac_try) 2>&5
24181 ac_status=$?
24182 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24183 test $ac_status = 0; }; }
24184 then
24185 cat > conftest.lit <<EOF
24186 0000 10000000 00000000 017a0001 781a0004 .........z..x...
24187 0010 01000000 12000000 18000000 00000000 ................
24188 0020 08000000 04080000 0044 .........D
24190 cat > conftest.big <<EOF
24191 0000 00000010 00000000 017a0001 781a0004 .........z..x...
24192 0010 00000001 00000012 00000018 00000000 ................
24193 0020 00000008 04000000 0844 .........D
24195 # If the assembler didn't choke, and we can objdump,
24196 # and we got the correct data, then succeed.
24197 # The text in the here-document typically retains its unix-style line
24198 # endings, while the output of objdump will use host line endings.
24199 # Therefore, use diff -b for the comparisons.
24200 if test x$gcc_cv_objdump != x \
24201 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
24202 | tail -3 > conftest.got \
24203 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
24204 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
24205 then
24206 gcc_cv_as_eh_frame=yes
24207 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
24208 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24209 (eval $ac_try) 2>&5
24210 ac_status=$?
24211 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24212 test $ac_status = 0; }; }; then
24213 gcc_cv_as_eh_frame=buggy
24214 else
24215 # Uh oh, what do we do now?
24216 gcc_cv_as_eh_frame=no
24218 else
24219 echo "configure: failed program was" >&5
24220 cat conftest.s >&5
24222 rm -f conftest.o conftest.s
24225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
24226 $as_echo "$gcc_cv_as_eh_frame" >&6; }
24230 if test $gcc_cv_as_eh_frame = buggy; then
24232 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
24236 # Test if the assembler supports the section flag 'e' or #exclude for
24237 # specifying an excluded section.
24238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section exclude flag" >&5
24239 $as_echo_n "checking assembler for section exclude flag... " >&6; }
24240 if ${gcc_cv_as_section_exclude_e+:} false; then :
24241 $as_echo_n "(cached) " >&6
24242 else
24243 gcc_cv_as_section_exclude_e=no
24244 if test x$gcc_cv_as != x; then
24245 $as_echo '.section foo1,"e"
24246 .byte 0,0,0,0' > conftest.s
24247 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24248 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24249 (eval $ac_try) 2>&5
24250 ac_status=$?
24251 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24252 test $ac_status = 0; }; }
24253 then
24254 gcc_cv_as_section_exclude_e=yes
24255 else
24256 echo "configure: failed program was" >&5
24257 cat conftest.s >&5
24259 rm -f conftest.o conftest.s
24262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_exclude_e" >&5
24263 $as_echo "$gcc_cv_as_section_exclude_e" >&6; }
24266 if test $gcc_cv_as_section_exclude_e = no; then
24267 case "${target}" in
24268 # Solaris as uses #exclude instead.
24269 *-*-solaris2*)
24270 case "${target}" in
24271 sparc*-*-solaris2*)
24272 conftest_s='.section "foo1", #exclude'
24274 i?86-*-solaris2* | x86_64-*-solaris2*)
24275 conftest_s='.section foo1, #exclude'
24277 esac
24279 esac
24280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section exclude flag" >&5
24281 $as_echo_n "checking assembler for section exclude flag... " >&6; }
24282 if ${gcc_cv_as_section_exclude_hash+:} false; then :
24283 $as_echo_n "(cached) " >&6
24284 else
24285 gcc_cv_as_section_exclude_hash=no
24286 if test x$gcc_cv_as != x; then
24287 $as_echo "$conftest_s
24288 .byte 0,0,0,0" > conftest.s
24289 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24290 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24291 (eval $ac_try) 2>&5
24292 ac_status=$?
24293 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24294 test $ac_status = 0; }; }
24295 then
24296 gcc_cv_as_section_exclude_hash=yes
24297 else
24298 echo "configure: failed program was" >&5
24299 cat conftest.s >&5
24301 rm -f conftest.o conftest.s
24304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_exclude_hash" >&5
24305 $as_echo "$gcc_cv_as_section_exclude_hash" >&6; }
24310 cat >>confdefs.h <<_ACEOF
24311 #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`
24312 _ACEOF
24315 #~ # Test if the assembler supports the section flag 'R' for specifying
24316 #~ # section with SHF_GNU_RETAIN.
24317 #~ case "${target}" in
24318 #~ # Solaris may use GNU assembler with Solairs ld. Even if GNU
24319 #~ # assembler supports the section flag 'R', it doesn't mean that
24320 #~ # Solairs ld supports it.
24321 #~ *-*-solaris2*)
24322 #~ gcc_cv_as_shf_gnu_retain=no
24323 #~ ;;
24324 #~ *)
24325 #~ gcc_GAS_CHECK_FEATURE([section 'R' flag], gcc_cv_as_shf_gnu_retain,
24326 #~ [--fatal-warnings],
24327 #~ [.section .foo,"awR",%progbits
24328 #~ .byte 0])
24329 #~ ;;
24330 #~ esac
24331 #~ AC_DEFINE_UNQUOTED(HAVE_GAS_SHF_GNU_RETAIN,
24332 #~ [`if test $gcc_cv_as_shf_gnu_retain = yes; then echo 1; else echo 0; fi`],
24333 #~ [Define 0/1 if your assembler supports marking sections with SHF_GNU_RETAIN flag.])
24335 #~ # Test if the assembler supports the section flag 'o' for specifying
24336 #~ # section with link-order.
24337 #~ case "${target}" in
24338 #~ # Solaris may use GNU assembler with Solairs ld. Even if GNU
24339 #~ # assembler supports the section flag 'o', it doesn't mean that
24340 #~ # Solairs ld supports it.
24341 #~ *-*-solaris2*)
24342 #~ gcc_cv_as_section_link_order=no
24343 #~ ;;
24344 #~ *)
24345 #~ gcc_GAS_CHECK_FEATURE([section 'o' flag], gcc_cv_as_section_link_order,
24346 #~ [--fatal-warnings],
24347 #~ [.section .foo,"a"
24348 #~ .byte 0
24349 #~ .section __patchable_function_entries,"awo",%progbits,.foo
24350 #~ .byte 0])
24351 #~ ;;
24352 #~ esac
24353 #~ AC_DEFINE_UNQUOTED(HAVE_GAS_SECTION_LINK_ORDER,
24354 #~ [`if test $gcc_cv_as_section_link_order = yes; then echo 1; else echo 0; fi`],
24355 #~ [Define 0/1 if your assembler supports 'o' flag in .section directive.])
24357 #~ gcc_GAS_CHECK_FEATURE(section merging support, gcc_cv_as_shf_merge,
24358 #~ [--fatal-warnings],
24359 #~ [.section .rodata.str, "aMS", @progbits, 1])
24360 #~ if test $gcc_cv_as_shf_merge = no; then
24361 #~ gcc_GAS_CHECK_FEATURE(section merging support, gcc_cv_as_shf_merge,
24362 #~ [--fatal-warnings],
24363 #~ [.section .rodata.str, "aMS", %progbits, 1])
24364 #~ fi
24365 #~ AC_DEFINE_UNQUOTED(HAVE_GAS_SHF_MERGE,
24366 #~ [`if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`],
24367 #~ [Define 0/1 if your assembler supports marking sections with SHF_MERGE flag.])
24369 #~ gcc_cv_ld_aligned_shf_merge=yes
24370 #~ case "$target" in
24371 #~ # SHF_MERGE support is broken in Solaris ld up to Solaris 11.3/SPARC for
24372 #~ # alignment > 1.
24373 #~ sparc*-*-solaris2.11*)
24374 #~ if test x"$gnu_ld" = xno \
24375 #~ && test "$ld_vers_major" -lt 2 && test "$ld_vers_minor" -lt 3159; then
24376 #~ gcc_cv_ld_aligned_shf_merge=no
24377 #~ fi
24378 #~ ;;
24379 #~ esac
24380 #~ AC_DEFINE_UNQUOTED(HAVE_LD_ALIGNED_SHF_MERGE,
24381 #~ [`if test $gcc_cv_ld_aligned_shf_merge = yes; then echo 1; else echo 0; fi`],
24382 #~ [Define 0/1 if your linker supports the SHF_MERGE flag with section alignment > 1.])
24384 #~ gcc_GAS_CHECK_FEATURE([stabs directive], gcc_cv_as_stabs_directive,,
24385 #~ [.stabs "gcc2_compiled.",60,0,0,0],,
24386 #~ [AC_DEFINE(HAVE_AS_STABS_DIRECTIVE, 1,
24387 #~ [Define if your assembler supports .stabs.])])
24389 #~ gcc_GAS_CHECK_FEATURE([COMDAT group support (GNU as)],
24390 #~ gcc_cv_as_comdat_group,
24391 #~ [--fatal-warnings],
24392 #~ [.section .text,"axG",@progbits,.foo,comdat])
24393 #~ if test $gcc_cv_as_comdat_group = yes; then
24394 #~ gcc_cv_as_comdat_group_percent=no
24395 #~ gcc_cv_as_comdat_group_group=no
24396 #~ else
24397 #~ gcc_GAS_CHECK_FEATURE([COMDAT group support (GNU as, %type)],
24398 #~ gcc_cv_as_comdat_group_percent,
24399 #~ [--fatal-warnings],
24400 #~ [.section .text,"axG",%progbits,.foo,comdat])
24401 #~ if test $gcc_cv_as_comdat_group_percent = yes; then
24402 #~ gcc_cv_as_comdat_group_group=no
24403 #~ else
24404 #~ case "${target}" in
24405 #~ # Sun as uses a completely different syntax.
24406 #~ *-*-solaris2*)
24407 #~ case "${target}" in
24408 #~ sparc*-*-solaris2*)
24409 #~ conftest_s='
24410 #~ .group foo,".text%foo",#comdat
24411 #~ .section ".text%foo", #alloc,#execinstr,#progbits
24412 #~ .globl foo
24413 #~ foo:
24414 #~ '
24415 #~ ;;
24416 #~ i?86-*-solaris2* | x86_64-*-solaris2*)
24417 #~ conftest_s='
24418 #~ .group foo,.text%foo,#comdat
24419 #~ .section .text%foo, "ax", @progbits
24420 #~ .globl foo
24421 #~ foo:
24422 #~ '
24423 #~ ;;
24424 #~ esac
24425 #~ gcc_GAS_CHECK_FEATURE([COMDAT group support (Sun as, .group)],
24426 #~ gcc_cv_as_comdat_group_group,
24427 #~ , [$conftest_s])
24428 #~ ;;
24429 #~ esac
24430 #~ if test -z "${gcc_cv_as_comdat_group_group+set}"; then
24431 #~ gcc_cv_as_comdat_group_group=no
24432 #~ fi
24433 #~ fi
24434 #~ fi
24435 #~ if test x"$ld_is_gold" = xyes; then
24436 #~ comdat_group=yes
24437 #~ elif test x"$ld_is_mold" = xyes; then
24438 #~ comdat_group=yes
24439 #~ elif test $in_tree_ld = yes ; then
24440 #~ comdat_group=no
24441 #~ 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 \
24442 #~ && test $in_tree_ld_is_elf = yes; then
24443 #~ comdat_group=yes
24444 #~ fi
24445 #~ elif echo "$ld_ver" | grep GNU > /dev/null; then
24446 #~ comdat_group=yes
24447 #~ if test 0"$ld_date" -lt 20050308; then
24448 #~ if test -n "$ld_date"; then
24449 #~ # If there was date string, but was earlier than 2005-03-08, fail
24450 #~ comdat_group=no
24451 #~ elif test "$ld_vers_major" -lt 2; then
24452 #~ comdat_group=no
24453 #~ elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
24454 #~ comdat_group=no
24455 #~ fi
24456 #~ fi
24457 #~ else
24458 #~ changequote(,)dnl
24459 #~ case "${target}" in
24460 #~ *-*-solaris2.1[1-9]*)
24461 #~ comdat_group=no
24462 #~ # Sun ld has COMDAT group support since Solaris 9, but it doesn't
24463 #~ # interoperate with GNU as until Solaris 11 build 130, i.e. ld
24464 #~ # version 1.688.
24465 #~ #
24466 #~ # If using Sun as for COMDAT group as emitted by GCC, one needs at
24467 #~ # least ld version 1.2267.
24468 #~ if test "$ld_vers_major" -gt 1; then
24469 #~ comdat_group=yes
24470 #~ elif test "x$gas_flag" = xyes && test "$ld_vers_minor" -ge 1688; then
24471 #~ comdat_group=yes
24472 #~ elif test "$ld_vers_minor" -ge 2267; then
24473 #~ comdat_group=yes
24474 #~ fi
24475 #~ ;;
24476 #~ *)
24477 #~ # Assume linkers other than GNU ld don't support COMDAT group.
24478 #~ comdat_group=no
24479 #~ ;;
24480 #~ esac
24481 #~ changequote([,])dnl
24482 #~ fi
24483 #~ # Allow overriding the automatic COMDAT group tests above.
24484 #~ AC_ARG_ENABLE(comdat,
24485 #~ [AS_HELP_STRING([--enable-comdat], [enable COMDAT group support])],
24486 #~ [comdat_group="$enable_comdat"])
24487 #~ if test $comdat_group = no; then
24488 #~ gcc_cv_as_comdat_group=no
24489 #~ gcc_cv_as_comdat_group_percent=no
24490 #~ gcc_cv_as_comdat_group_group=no
24491 #~ fi
24492 #~ AC_DEFINE_UNQUOTED(HAVE_COMDAT_GROUP,
24493 #~ [`if test $gcc_cv_as_comdat_group = yes \
24494 #~ || test $gcc_cv_as_comdat_group_percent = yes \
24495 #~ || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`],
24496 #~ [Define 0/1 if your assembler and linker support COMDAT groups.])
24498 #~ # Restrict this test to Solaris/x86: other targets define this statically.
24499 #~ case "${target}" in
24500 #~ i?86-*-solaris2* | x86_64-*-solaris2*)
24501 #~ AC_MSG_CHECKING(support for hidden thunks in linkonce sections)
24502 #~ if test $in_tree_ld = yes || echo "$ld_ver" | grep GNU > /dev/null; then
24503 #~ hidden_linkonce=yes
24504 #~ else
24505 #~ case "${target}" in
24506 #~ # Full support for hidden thunks in linkonce sections only appeared in
24507 #~ # Solaris 11/OpenSolaris.
24508 #~ *-*-solaris2.1[[1-9]]*)
24509 #~ hidden_linkonce=yes
24510 #~ ;;
24511 #~ *)
24512 #~ hidden_linkonce=no
24513 #~ ;;
24514 #~ esac
24515 #~ fi
24516 #~ AC_MSG_RESULT($hidden_linkonce)
24517 #~ AC_DEFINE_UNQUOTED(USE_HIDDEN_LINKONCE,
24518 #~ [`if test $hidden_linkonce = yes; then echo 1; else echo 0; fi`],
24519 #~ [Define 0/1 if your linker supports hidden thunks in linkonce sections.])
24520 #~ ;;
24521 #~ esac
24523 #~ gcc_GAS_CHECK_FEATURE([line table is_stmt support],
24524 #~ gcc_cv_as_is_stmt,,
24525 #~ [ .text
24526 #~ .file 1 "conf.c"
24527 #~ .loc 1 1 0 is_stmt 1],,
24528 #~ [AC_DEFINE(HAVE_GAS_LOC_STMT, 1,
24529 #~ [Define if your assembler supports the .loc is_stmt sub-directive.])])
24531 #~ gcc_GAS_CHECK_FEATURE([line table discriminator support],
24532 #~ gcc_cv_as_discriminator,,
24533 #~ [ .text
24534 #~ .file 1 "conf.c"
24535 #~ .loc 1 1 0 discriminator 1],,
24536 #~ [AC_DEFINE(HAVE_GAS_DISCRIMINATOR, 1,
24537 #~ [Define if your assembler supports the .loc discriminator sub-directive.])])
24539 # Catch the newlib flag of the same name so we can gate GCC features on it.
24540 # Check whether --enable-newlib-nano-formatted-io was given.
24541 if test "${enable_newlib_nano_formatted_io+set}" = set; then :
24542 enableval=$enable_newlib_nano_formatted_io; case "${enableval}" in
24543 yes|no)
24546 as_fn_error $? "unknown newlib-nano-formatted-io setting $enableval" "$LINENO" 5
24548 esac
24552 #~ # Thread-local storage - the check is heavily parameterized.
24553 #~ conftest_s=
24554 #~ tls_as_opt=
24555 #~ case "$target" in
24556 #~ changequote(,)dnl
24557 #~ alpha*-*-*)
24558 #~ conftest_s='
24559 #~ .section ".tdata","awT",@progbits
24560 #~ foo: .long 25
24561 #~ .text
24562 #~ ldq $27,__tls_get_addr($29) !literal!1
24563 #~ lda $16,foo($29) !tlsgd!1
24564 #~ jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
24565 #~ ldq $27,__tls_get_addr($29) !literal!2
24566 #~ lda $16,foo($29) !tlsldm!2
24567 #~ jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
24568 #~ ldq $1,foo($29) !gotdtprel
24569 #~ ldah $2,foo($29) !dtprelhi
24570 #~ lda $3,foo($2) !dtprello
24571 #~ lda $4,foo($29) !dtprel
24572 #~ ldq $1,foo($29) !gottprel
24573 #~ ldah $2,foo($29) !tprelhi
24574 #~ lda $3,foo($2) !tprello
24575 #~ lda $4,foo($29) !tprel'
24576 #~ tls_as_opt=--fatal-warnings
24577 #~ ;;
24578 #~ arc*-*-*)
24579 #~ conftest_s='
24580 #~ add_s r0,r0, @foo@tpoff'
24581 #~ ;;
24582 #~ cris-*-*|crisv32-*-*)
24583 #~ conftest_s='
24584 #~ .section ".tdata","awT",@progbits
24585 #~ x: .long 25
24586 #~ .text
24587 #~ move.d x:IE,$r10
24588 #~ nop'
24589 #~ tls_as_opt=--fatal-warnings
24590 #~ ;;
24591 #~ frv*-*-*)
24592 #~ conftest_s='
24593 #~ .section ".tdata","awT",@progbits
24594 #~ x: .long 25
24595 #~ .text
24596 #~ call #gettlsoff(x)'
24597 #~ ;;
24598 #~ hppa*-*-linux*)
24599 #~ conftest_s='
24600 #~ t1: .reg %r20
24601 #~ t2: .reg %r21
24602 #~ gp: .reg %r19
24603 #~ .section ".tdata","awT",@progbits
24604 #~ foo: .long 25
24605 #~ .text
24606 #~ .align 4
24607 #~ addil LT%foo-$tls_gdidx$,gp
24608 #~ ldo RT%foo-$tls_gdidx$(%r1),%arg0
24609 #~ b __tls_get_addr
24610 #~ nop
24611 #~ addil LT%foo-$tls_ldidx$,gp
24612 #~ b __tls_get_addr
24613 #~ ldo RT%foo-$tls_ldidx$(%r1),%arg0
24614 #~ addil LR%foo-$tls_dtpoff$,%ret0
24615 #~ ldo RR%foo-$tls_dtpoff$(%r1),%t1
24616 #~ mfctl %cr27,%t1
24617 #~ addil LT%foo-$tls_ieoff$,gp
24618 #~ ldw RT%foo-$tls_ieoff$(%r1),%t2
24619 #~ add %t1,%t2,%t3
24620 #~ mfctl %cr27,%t1
24621 #~ addil LR%foo-$tls_leoff$,%t1
24622 #~ ldo RR%foo-$tls_leoff$(%r1),%t2'
24623 #~ tls_as_opt=--fatal-warnings
24624 #~ ;;
24625 #~ arm*-*-*)
24626 #~ conftest_s='
24627 #~ .section ".tdata","awT",%progbits
24628 #~ foo: .long 25
24629 #~ .text
24630 #~ .word foo(gottpoff)
24631 #~ .word foo(tpoff)
24632 #~ .word foo(tlsgd)
24633 #~ .word foo(tlsldm)
24634 #~ .word foo(tlsldo)'
24635 #~ ;;
24636 #~ i[34567]86-*-* | x86_64-*-*)
24637 #~ case "$target" in
24638 #~ i[34567]86-*-solaris2.* | x86_64-*-solaris2.*)
24639 #~ on_solaris=yes
24640 #~ ;;
24641 #~ *)
24642 #~ on_solaris=no
24643 #~ ;;
24644 #~ esac
24645 #~ if test x$on_solaris = xyes && test x$gas_flag = xno; then
24646 #~ conftest_s='
24647 #~ .section .tdata,"awt",@progbits'
24648 #~ tls_section_flag=t
24649 #~ changequote([,])dnl
24650 #~ AC_DEFINE(TLS_SECTION_ASM_FLAG, 't',
24651 #~ [Define to the flag used to mark TLS sections if the default (`T') doesn't work.])
24652 #~ changequote(,)dnl
24653 #~ else
24654 #~ conftest_s='
24655 #~ .section ".tdata","awT",@progbits'
24656 #~ tls_section_flag=T
24657 #~ tls_as_opt="--fatal-warnings"
24658 #~ fi
24659 #~ case "$target" in
24660 #~ i[34567]86-*-*)
24661 #~ if test x$on_solaris = xyes; then
24662 #~ case $gas_flag in
24663 #~ yes) tls_as_opt="$tls_as_opt --32" ;;
24664 #~ esac
24665 #~ fi
24666 #~ conftest_s="$conftest_s
24667 #~ foo: .long 25
24668 #~ .text
24669 #~ movl %gs:0, %eax
24670 #~ leal foo@tlsgd(,%ebx,1), %eax
24671 #~ leal foo@tlsldm(%ebx), %eax
24672 #~ leal foo@dtpoff(%eax), %edx
24673 #~ movl foo@gottpoff(%ebx), %eax
24674 #~ subl foo@gottpoff(%ebx), %eax
24675 #~ addl foo@gotntpoff(%ebx), %eax
24676 #~ movl foo@indntpoff, %eax
24677 #~ movl \$foo@tpoff, %eax
24678 #~ subl \$foo@tpoff, %eax
24679 #~ leal foo@ntpoff(%ecx), %eax"
24680 #~ ;;
24681 #~ x86_64-*-*)
24682 #~ if test x$on_solaris = xyes; then
24683 #~ case $gas_flag in
24684 #~ yes) tls_as_opt="$tls_as_opt --64" ;;
24685 #~ no) tls_as_opt="$tls_as_opt -xarch=amd64" ;;
24686 #~ esac
24687 #~ fi
24688 #~ conftest_s="$conftest_s
24689 #~ foo: .long 25
24690 #~ .text
24691 #~ movq %fs:0, %rax
24692 #~ leaq foo@tlsgd(%rip), %rdi
24693 #~ leaq foo@tlsld(%rip), %rdi
24694 #~ leaq foo@dtpoff(%rax), %rdx
24695 #~ movq foo@gottpoff(%rip), %rax
24696 #~ movq \$foo@tpoff, %rax"
24697 #~ ;;
24698 #~ esac
24699 #~ ;;
24700 #~ ia64-*-*)
24701 #~ conftest_s='
24702 #~ .section ".tdata","awT",@progbits
24703 #~ foo: data8 25
24704 #~ .text
24705 #~ addl r16 = @ltoff(@dtpmod(foo#)), gp
24706 #~ addl r17 = @ltoff(@dtprel(foo#)), gp
24707 #~ addl r18 = @ltoff(@tprel(foo#)), gp
24708 #~ addl r19 = @dtprel(foo#), gp
24709 #~ adds r21 = @dtprel(foo#), r13
24710 #~ movl r23 = @dtprel(foo#)
24711 #~ addl r20 = @tprel(foo#), gp
24712 #~ adds r22 = @tprel(foo#), r13
24713 #~ movl r24 = @tprel(foo#)'
24714 #~ tls_as_opt=--fatal-warnings
24715 #~ ;;
24716 #~ loongarch*-*-*)
24717 #~ conftest_s='
24718 #~ .section .tdata,"awT",@progbits
24719 #~ x: .word 2
24720 #~ .text
24721 #~ la.tls.gd $a0,x
24722 #~ bl __tls_get_addr'
24723 #~ tls_first_major=0
24724 #~ tls_first_minor=0
24725 #~ tls_as_opt='--fatal-warnings'
24726 #~ ;;
24727 #~ microblaze*-*-*)
24728 #~ conftest_s='
24729 #~ .section .tdata,"awT",@progbits
24730 #~ x:
24731 #~ .word 2
24732 #~ .text
24733 #~ addik r5,r20,x@TLSGD
24734 #~ addik r5,r20,x@TLSLDM'
24735 #~ tls_as_opt='--fatal-warnings'
24736 #~ ;;
24737 #~ mips*-*-*)
24738 #~ conftest_s='
24739 #~ .section .tdata,"awT",@progbits
24740 #~ x:
24741 #~ .word 2
24742 #~ .text
24743 #~ addiu $4, $28, %tlsgd(x)
24744 #~ addiu $4, $28, %tlsldm(x)
24745 #~ lui $4, %dtprel_hi(x)
24746 #~ addiu $4, $4, %dtprel_lo(x)
24747 #~ lw $4, %gottprel(x)($28)
24748 #~ lui $4, %tprel_hi(x)
24749 #~ addiu $4, $4, %tprel_lo(x)'
24750 #~ tls_as_opt='-32 --fatal-warnings'
24751 #~ ;;
24752 #~ m68k-*-*)
24753 #~ conftest_s='
24754 #~ .section .tdata,"awT",@progbits
24755 #~ x:
24756 #~ .word 2
24757 #~ .text
24758 #~ foo:
24759 #~ move.l x@TLSGD(%a5),%a0
24760 #~ move.l x@TLSLDM(%a5),%a0
24761 #~ move.l x@TLSLDO(%a5),%a0
24762 #~ move.l x@TLSIE(%a5),%a0
24763 #~ move.l x@TLSLE(%a5),%a0'
24764 #~ tls_as_opt='--fatal-warnings'
24765 #~ ;;
24766 #~ nios2-*-*)
24767 #~ conftest_s='
24768 #~ .section ".tdata","awT",@progbits'
24769 #~ tls_as_opt="--fatal-warnings"
24770 #~ ;;
24771 #~ aarch64*-*-*)
24772 #~ conftest_s='
24773 #~ .section ".tdata","awT",%progbits
24774 #~ foo: .long 25
24775 #~ .text
24776 #~ adrp x0, :tlsgd:x
24777 #~ add x0, x0, #:tlsgd_lo12:x
24778 #~ bl __tls_get_addr
24779 #~ nop'
24780 #~ tls_as_opt='--fatal-warnings'
24781 #~ ;;
24782 #~ or1k*-*-*)
24783 #~ conftest_s='
24784 #~ .section ".tdata","awT",@progbits
24785 #~ foo: .long 25
24786 #~ .text
24787 #~ l.movhi r3, tpoffha(foo)
24788 #~ l.add r3, r3, r10
24789 #~ l.lwz r4, tpofflo(foo)(r3)'
24790 #~ tls_as_opt=--fatal-warnings
24791 #~ ;;
24792 #~ powerpc-ibm-aix*)
24793 #~ conftest_s='
24794 #~ .extern __get_tpointer
24795 #~ .toc
24796 #~ LC..1:
24797 #~ .tc a[TC],a[TL]@le
24798 #~ .csect .text[PR]
24799 #~ .tlstest:
24800 #~ lwz 9,LC..1(2)
24801 #~ bla __get_tpointer
24802 #~ lwzx 3,9,3
24803 #~ .globl a
24804 #~ .csect a[TL],4
24805 #~ a:
24806 #~ .space 4'
24807 #~ ;;
24808 #~ powerpc64*-*-*)
24809 #~ conftest_s='
24810 #~ .section ".tdata","awT",@progbits
24811 #~ .align 3
24812 #~ ld0: .space 8
24813 #~ ld1: .space 8
24814 #~ x1: .space 8
24815 #~ x2: .space 8
24816 #~ x3: .space 8
24817 #~ .text
24818 #~ addi 3,2,ld0@got@tlsgd
24819 #~ bl .__tls_get_addr
24820 #~ nop
24821 #~ addi 3,2,ld1@toc
24822 #~ bl .__tls_get_addr
24823 #~ nop
24824 #~ addi 3,2,x1@got@tlsld
24825 #~ bl .__tls_get_addr
24826 #~ nop
24827 #~ addi 9,3,x1@dtprel
24828 #~ bl .__tls_get_addr
24829 #~ nop
24830 #~ addis 9,3,x2@dtprel@ha
24831 #~ addi 9,9,x2@dtprel@l
24832 #~ bl .__tls_get_addr
24833 #~ nop
24834 #~ ld 9,x3@got@dtprel(2)
24835 #~ add 9,9,3
24836 #~ bl .__tls_get_addr
24837 #~ nop'
24838 #~ tls_as_opt="-a64 --fatal-warnings"
24839 #~ ;;
24840 #~ powerpc*-*-*)
24841 #~ conftest_s='
24842 #~ .section ".tdata","awT",@progbits
24843 #~ .align 2
24844 #~ ld0: .space 4
24845 #~ ld1: .space 4
24846 #~ x1: .space 4
24847 #~ x2: .space 4
24848 #~ x3: .space 4
24849 #~ .text
24850 #~ addi 3,31,ld0@got@tlsgd
24851 #~ bl __tls_get_addr
24852 #~ addi 3,31,x1@got@tlsld
24853 #~ bl __tls_get_addr
24854 #~ addi 9,3,x1@dtprel
24855 #~ addis 9,3,x2@dtprel@ha
24856 #~ addi 9,9,x2@dtprel@l
24857 #~ lwz 9,x3@got@tprel(31)
24858 #~ add 9,9,x@tls
24859 #~ addi 9,2,x1@tprel
24860 #~ addis 9,2,x2@tprel@ha
24861 #~ addi 9,9,x2@tprel@l'
24862 #~ tls_as_opt="-a32 --fatal-warnings"
24863 #~ ;;
24864 #~ riscv*-*-*)
24865 #~ conftest_s='
24866 #~ .section .tdata,"awT",@progbits
24867 #~ x: .word 2
24868 #~ .text
24869 #~ la.tls.gd a0,x
24870 #~ call __tls_get_addr'
24871 #~ tls_as_opt='--fatal-warnings'
24872 #~ ;;
24873 #~ s390-*-*)
24874 #~ conftest_s='
24875 #~ .section ".tdata","awT",@progbits
24876 #~ foo: .long 25
24877 #~ .text
24878 #~ .long foo@TLSGD
24879 #~ .long foo@TLSLDM
24880 #~ .long foo@DTPOFF
24881 #~ .long foo@NTPOFF
24882 #~ .long foo@GOTNTPOFF
24883 #~ .long foo@INDNTPOFF
24884 #~ l %r1,foo@GOTNTPOFF(%r12)
24885 #~ l %r1,0(%r1):tls_load:foo
24886 #~ bas %r14,0(%r1,%r13):tls_gdcall:foo
24887 #~ bas %r14,0(%r1,%r13):tls_ldcall:foo'
24888 #~ tls_as_opt="-m31 --fatal-warnings"
24889 #~ ;;
24890 #~ s390x-*-*)
24891 #~ conftest_s='
24892 #~ .section ".tdata","awT",@progbits
24893 #~ foo: .long 25
24894 #~ .text
24895 #~ .quad foo@TLSGD
24896 #~ .quad foo@TLSLDM
24897 #~ .quad foo@DTPOFF
24898 #~ .quad foo@NTPOFF
24899 #~ .quad foo@GOTNTPOFF
24900 #~ lg %r1,foo@GOTNTPOFF(%r12)
24901 #~ larl %r1,foo@INDNTPOFF
24902 #~ brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
24903 #~ brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
24904 #~ tls_as_opt="-m64 -Aesame --fatal-warnings"
24905 #~ ;;
24906 #~ sh-*-* | sh[123456789lbe]*-*-*)
24907 #~ conftest_s='
24908 #~ .section ".tdata","awT",@progbits
24909 #~ foo: .long 25
24910 #~ .text
24911 #~ .long foo@TLSGD
24912 #~ .long foo@TLSLDM
24913 #~ .long foo@DTPOFF
24914 #~ .long foo@GOTTPOFF
24915 #~ .long foo@TPOFF'
24916 #~ tls_as_opt=--fatal-warnings
24917 #~ ;;
24918 #~ sparc*-*-*)
24919 #~ case "$target" in
24920 #~ sparc*-sun-solaris2.*)
24921 #~ on_solaris=yes
24922 #~ ;;
24923 #~ *)
24924 #~ on_solaris=no
24925 #~ ;;
24926 #~ esac
24927 #~ if test x$on_solaris = xyes && test x$gas_flag = xno; then
24928 #~ conftest_s='
24929 #~ .section ".tdata",#alloc,#write,#tls'
24930 #~ else
24931 #~ conftest_s='
24932 #~ .section ".tdata","awT",@progbits'
24933 #~ tls_as_opt="-32 --fatal-warnings"
24934 #~ fi
24935 #~ conftest_s="$conftest_s
24936 #~ foo: .long 25
24937 #~ .text
24938 #~ sethi %tgd_hi22(foo), %o0
24939 #~ add %o0, %tgd_lo10(foo), %o1
24940 #~ add %l7, %o1, %o0, %tgd_add(foo)
24941 #~ call __tls_get_addr, %tgd_call(foo)
24942 #~ sethi %tldm_hi22(foo), %l1
24943 #~ add %l1, %tldm_lo10(foo), %l2
24944 #~ add %l7, %l2, %o0, %tldm_add(foo)
24945 #~ call __tls_get_addr, %tldm_call(foo)
24946 #~ sethi %tldo_hix22(foo), %l3
24947 #~ xor %l3, %tldo_lox10(foo), %l4
24948 #~ add %o0, %l4, %l5, %tldo_add(foo)
24949 #~ sethi %tie_hi22(foo), %o3
24950 #~ add %o3, %tie_lo10(foo), %o3
24951 #~ ld [%l7 + %o3], %o2, %tie_ld(foo)
24952 #~ add %g7, %o2, %o4, %tie_add(foo)
24953 #~ sethi %tle_hix22(foo), %l1
24954 #~ xor %l1, %tle_lox10(foo), %o5
24955 #~ ld [%g7 + %o5], %o1"
24956 #~ ;;
24957 #~ tilepro*-*-*)
24958 #~ conftest_s='
24959 #~ .section ".tdata","awT",@progbits
24960 #~ foo: .long 25
24961 #~ .text
24962 #~ addli r0, zero, tls_gd(foo)
24963 #~ auli r0, zero, tls_gd_ha16(foo)
24964 #~ addli r0, r0, tls_gd_lo16(foo)
24965 #~ jal __tls_get_addr
24966 #~ addli r0, zero, tls_ie(foo)
24967 #~ auli r0, r0, tls_ie_ha16(foo)
24968 #~ addli r0, r0, tls_ie_lo16(foo)'
24969 #~ tls_as_opt="--fatal-warnings"
24970 #~ ;;
24971 #~ tilegx*-*-*)
24972 #~ conftest_s='
24973 #~ .section ".tdata","awT",@progbits
24974 #~ foo: .long 25
24975 #~ .text
24976 #~ shl16insli r0, zero, hw0_last_tls_gd(foo)
24977 #~ shl16insli r0, zero, hw1_last_tls_gd(foo)
24978 #~ shl16insli r0, r0, hw0_tls_gd(foo)
24979 #~ jal __tls_get_addr
24980 #~ shl16insli r0, zero, hw1_last_tls_ie(foo)
24981 #~ shl16insli r0, r0, hw0_tls_ie(foo)'
24982 #~ tls_as_opt="--fatal-warnings"
24983 #~ ;;
24984 #~ xtensa*-*-*)
24985 #~ conftest_s='
24986 #~ .section ".tdata","awT",@progbits
24987 #~ foo: .long 25
24988 #~ .text
24989 #~ movi a8, foo@TLSFUNC
24990 #~ movi a10, foo@TLSARG
24991 #~ callx8.tls a8, foo@TLSCALL'
24992 #~ ;;
24993 #~ changequote([,])dnl
24994 #~ esac
24995 #~ set_have_as_tls=no
24996 #~ if test "x$enable_tls" = xno ; then
24997 #~ : # TLS explicitly disabled.
24998 #~ elif test "x$enable_tls" = xyes ; then
24999 #~ set_have_as_tls=yes # TLS explicitly enabled.
25000 #~ elif test -z "$conftest_s"; then
25001 #~ : # If we don't have a check, assume no support.
25002 #~ else
25003 #~ gcc_GAS_CHECK_FEATURE(thread-local storage support, gcc_cv_as_tls,
25004 #~ [$tls_as_opt], [$conftest_s],,
25005 #~ [set_have_as_tls=yes])
25006 #~ fi
25007 #~ if test $set_have_as_tls = yes ; then
25008 #~ AC_DEFINE(HAVE_AS_TLS, 1,
25009 #~ [Define if your assembler and linker support thread-local storage.])
25010 #~ fi
25012 # Target-specific assembler checks.
25014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
25015 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
25016 gcc_cv_ld_static_dynamic=no
25017 gcc_cv_ld_static_option='-Bstatic'
25018 gcc_cv_ld_dynamic_option='-Bdynamic'
25019 if test $in_tree_ld = yes ; then
25020 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
25021 gcc_cv_ld_static_dynamic=yes
25023 elif test x$gcc_cv_ld != x; then
25024 # Check if linker supports -Bstatic/-Bdynamic option
25025 if $gcc_cv_ld --help 2>&1 | grep -- -Bstatic > /dev/null \
25026 && $gcc_cv_ld --help 2>&1 | grep -- -Bdynamic > /dev/null; then
25027 gcc_cv_ld_static_dynamic=yes
25028 else
25029 case "$target" in
25030 # AIX ld uses -b flags
25031 *-*-aix4.[23]* | *-*-aix[5-9]*)
25032 gcc_cv_ld_static_dynamic=yes
25033 gcc_cv_ld_static_option="-bstatic"
25034 gcc_cv_ld_dynamic_option="-bdynamic"
25036 # HP-UX ld uses -a flags to select between shared and archive.
25037 *-*-hpux*)
25038 if test x"$gnu_ld" = xno; then
25039 gcc_cv_ld_static_dynamic=yes
25040 gcc_cv_ld_static_option="-aarchive_shared"
25041 gcc_cv_ld_dynamic_option="-adefault"
25044 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
25045 *-*-solaris2*)
25046 gcc_cv_ld_static_dynamic=yes
25048 esac
25051 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
25053 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
25056 cat >>confdefs.h <<_ACEOF
25057 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
25058 _ACEOF
25061 cat >>confdefs.h <<_ACEOF
25062 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
25063 _ACEOF
25066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
25067 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
25069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --version-script option" >&5
25070 $as_echo_n "checking linker --version-script option... " >&6; }
25071 gcc_cv_ld_version_script=no
25072 ld_version_script_option=''
25073 if test $in_tree_ld = yes || test x"$gnu_ld" = xyes; then
25074 gcc_cv_ld_version_script=yes
25075 ld_version_script_option='--version-script'
25076 elif test x$gcc_cv_ld != x; then
25077 case "$target" in
25078 # Solaris 2 ld always supports -M. It also supports a subset of
25079 # --version-script since Solaris 11.4, but requires
25080 # -z gnu-version-script-compat to activate.
25081 *-*-solaris2*)
25082 gcc_cv_ld_version_script=yes
25083 ld_version_script_option='-M'
25085 esac
25087 # Don't AC_DEFINE result, only used in jit/Make-lang.in so far.
25088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_version_script" >&5
25089 $as_echo "$gcc_cv_ld_version_script" >&6; }
25092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker soname option" >&5
25093 $as_echo_n "checking linker soname option... " >&6; }
25094 gcc_cv_ld_soname=no
25095 if test $in_tree_ld = yes || test x"$gnu_ld" = xyes; then
25096 gcc_cv_ld_soname=yes
25097 ld_soname_option='-soname'
25098 elif test x$gcc_cv_ld != x; then
25099 case "$target" in
25100 *-*-darwin*)
25101 gcc_cv_ld_soname=yes
25102 ld_soname_option='-install_name'
25104 # Solaris 2 ld always supports -h. It also supports --soname for GNU
25105 # ld compatiblity since some Solaris 10 update.
25106 *-*-solaris2*)
25107 gcc_cv_ld_soname=yes
25108 ld_soname_option='-h'
25110 esac
25112 # Don't AC_DEFINE result, only used in jit/Make-lang.in so far.
25113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_soname" >&5
25114 $as_echo "$gcc_cv_ld_soname" >&6; }
25117 if test x"$demangler_in_ld" = xyes; then
25118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
25119 $as_echo_n "checking linker --demangle support... " >&6; }
25120 gcc_cv_ld_demangle=no
25121 if test $in_tree_ld = yes; then
25122 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 \
25123 gcc_cv_ld_demangle=yes
25125 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
25126 # Check if the GNU linker supports --demangle option
25127 if $gcc_cv_ld --help 2>&1 | grep no-demangle > /dev/null; then
25128 gcc_cv_ld_demangle=yes
25131 if test x"$gcc_cv_ld_demangle" = xyes; then
25133 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
25136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
25137 $as_echo "$gcc_cv_ld_demangle" >&6; }
25140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
25141 $as_echo_n "checking linker plugin support... " >&6; }
25142 gcc_cv_lto_plugin=0
25143 if test -f liblto_plugin.la; then
25144 save_ld_ver="$ld_ver"
25145 save_ld_vers_major="$ld_vers_major"
25146 save_ld_vers_minor="$ld_vers_minor"
25147 save_ld_is_gold="$ld_is_gold"
25149 ld_is_gold=no
25151 if test $in_tree_ld = yes -a x"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x"$gcc_cv_ld"; then
25152 ld_ver="GNU ld"
25153 # FIXME: ld_is_gold?
25154 ld_vers_major="$gcc_cv_gld_major_version"
25155 ld_vers_minor="$gcc_cv_gld_minor_version"
25156 else
25157 # Determine plugin linker version.
25158 # FIXME: Partial duplicate from above, generalize.
25159 ld_ver=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
25160 if echo "$ld_ver" | grep GNU > /dev/null; then
25161 if echo "$ld_ver" | grep "GNU gold" > /dev/null; then
25162 ld_is_gold=yes
25163 ld_vers=`echo $ld_ver | sed -n \
25164 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
25165 else
25166 ld_vers=`echo $ld_ver | sed -n \
25167 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
25169 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
25170 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
25174 # Determine plugin support.
25175 if echo "$ld_ver" | grep GNU > /dev/null; then
25176 # Require GNU ld or gold 2.21+ for plugin support by default.
25177 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
25178 gcc_cv_lto_plugin=2
25179 elif test "$ld_is_mold" = yes; then
25180 gcc_cv_lto_plugin=2
25181 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
25182 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
25183 gcc_cv_lto_plugin=1
25187 ld_ver="$save_ld_ver"
25188 ld_vers_major="$save_ld_vers_major"
25189 ld_vers_minor="$save_ld_vers_minor"
25190 ld_is_gold="$save_ld_is_gold"
25193 cat >>confdefs.h <<_ACEOF
25194 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
25195 _ACEOF
25197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
25198 $as_echo "$gcc_cv_lto_plugin" >&6; }
25200 # Target OS-specific assembler checks.
25202 #~ case "$target_os" in
25203 #~ darwin*)
25204 #~ gcc_GAS_CHECK_FEATURE([-mmacosx-version-min option],
25205 #~ gcc_cv_as_mmacosx_version_min,
25206 #~ [-mmacosx-version-min=10.1], [.text],,
25207 #~ [AC_DEFINE(HAVE_AS_MMACOSX_VERSION_MIN_OPTION, 1,
25208 #~ [Define if your Mac OS X assembler supports the -mmacos-version-min option.])])
25209 #~ ;;
25210 #~ esac
25212 # Target CPU-specific assembler checks.
25214 #~ case "$target" in
25215 #~ aarch64*-*-*)
25216 #~ gcc_GAS_CHECK_FEATURE([-mabi option], gcc_cv_as_aarch64_mabi,
25217 #~ [-mabi=lp64], [.text],,,)
25218 #~ if test x$gcc_cv_as_aarch64_mabi = xyes; then
25219 #~ AC_DEFINE(HAVE_AS_MABI_OPTION, 1,
25220 #~ [Define if your assembler supports the -mabi option.])
25221 #~ else
25222 #~ if test x$with_abi = xilp32; then
25223 #~ AC_MSG_ERROR([Assembler does not support -mabi=ilp32.\
25224 #~ Upgrade the Assembler.])
25225 #~ fi
25226 #~ if test x"$with_multilib_list" = xdefault; then
25227 #~ TM_MULTILIB_CONFIG=lp64
25228 #~ else
25229 #~ aarch64_multilibs=`echo $with_multilib_list | sed -e 's/,/ /g'`
25230 #~ for aarch64_multilib in ${aarch64_multilibs}; do
25231 #~ case ${aarch64_multilib} in
25232 #~ ilp32)
25233 #~ AC_MSG_ERROR([Assembler does not support -mabi=ilp32.\
25234 #~ Upgrade the Assembler.])
25235 #~ ;;
25236 #~ *)
25237 #~ ;;
25238 #~ esac
25239 #~ done
25240 #~ fi
25241 #~ fi
25242 #~ # Check if we have binutils support for relocations types needed by -fpic
25243 #~ gcc_GAS_CHECK_FEATURE([-fpic relocs], gcc_cv_as_aarch64_picreloc,,
25244 #~ [
25245 #~ .text
25246 #~ ldr x0, [[x2, #:gotpage_lo15:globalsym]]
25247 #~ ],,[AC_DEFINE(HAVE_AS_SMALL_PIC_RELOCS, 1,
25248 #~ [Define if your assembler supports relocs needed by -fpic.])])
25249 #~ # Enable Branch Target Identification Mechanism and Return Address
25250 #~ # Signing by default.
25251 #~ AC_ARG_ENABLE(standard-branch-protection,
25252 #~ [
25253 #~ AS_HELP_STRING([--enable-standard-branch-protection],
25254 #~ [enable Branch Target Identification Mechanism and Return Address Signing by default for AArch64])
25255 #~ AS_HELP_STRING([--disable-standard-branch-protection],
25256 #~ [disable Branch Target Identification Mechanism and Return Address Signing by default for AArch64])
25257 #~ ],
25258 #~ [
25259 #~ case $enableval in
25260 #~ yes)
25261 #~ tm_defines="${tm_defines} TARGET_ENABLE_BTI=1 TARGET_ENABLE_PAC_RET=1"
25262 #~ ;;
25263 #~ no)
25264 #~ ;;
25265 #~ *)
25266 #~ AC_MSG_ERROR(['$enableval' is an invalid value for --enable-standard-branch-protection.\
25267 #~ Valid choices are 'yes' and 'no'.])
25268 #~ ;;
25269 #~ esac
25270 #~ ],
25271 #~ [])
25272 #~ # Enable default workaround for AArch64 Cortex-A53 erratum 835769.
25273 #~ AC_ARG_ENABLE(fix-cortex-a53-835769,
25274 #~ [
25275 #~ AS_HELP_STRING([--enable-fix-cortex-a53-835769],
25276 #~ [enable workaround for AArch64 Cortex-A53 erratum 835769 by default])
25277 #~ AS_HELP_STRING([--disable-fix-cortex-a53-835769],
25278 #~ [disable workaround for AArch64 Cortex-A53 erratum 835769 by default])
25279 #~ ],
25280 #~ [
25281 #~ case $enableval in
25282 #~ yes)
25283 #~ tm_defines="${tm_defines} TARGET_FIX_ERR_A53_835769_DEFAULT=1"
25284 #~ ;;
25285 #~ no)
25286 #~ ;;
25287 #~ *)
25288 #~ AC_MSG_ERROR(['$enableval' is an invalid value for --enable-fix-cortex-a53-835769.\
25289 #~ Valid choices are 'yes' and 'no'.])
25290 #~ ;;
25292 #~ esac
25293 #~ ],
25294 #~ [])
25295 #~ # Enable default workaround for AArch64 Cortex-A53 erratum 843419.
25296 #~ AC_ARG_ENABLE(fix-cortex-a53-843419,
25297 #~ [
25298 #~ AS_HELP_STRING([--enable-fix-cortex-a53-843419],
25299 #~ [enable workaround for AArch64 Cortex-A53 erratum 843419 by default])
25300 #~ AS_HELP_STRING([--disable-fix-cortex-a53-843419],
25301 #~ [disable workaround for AArch64 Cortex-A53 erratum 843419 by default])
25302 #~ ],
25303 #~ [
25304 #~ case $enableval in
25305 #~ yes)
25306 #~ tm_defines="${tm_defines} TARGET_FIX_ERR_A53_843419_DEFAULT=1"
25307 #~ ;;
25308 #~ no)
25309 #~ ;;
25310 #~ *)
25311 #~ AC_MSG_ERROR(['$enableval' is an invalid value for --enable-fix-cortex-a53-843419.\
25312 #~ Valid choices are 'yes' and 'no'.])
25313 #~ ;;
25315 #~ esac
25316 #~ ],
25317 #~ [])
25318 #~ ;;
25320 #~ # All TARGET_ABI_OSF targets.
25321 #~ alpha*-*-linux* | alpha*-*-*bsd*)
25322 #~ gcc_GAS_CHECK_FEATURE([explicit relocation support],
25323 #~ gcc_cv_as_alpha_explicit_relocs,,
25324 #~ [ .set nomacro
25325 #~ .text
25326 #~ extbl $3, $2, $3 !lituse_bytoff!1
25327 #~ ldq $2, a($29) !literal!1
25328 #~ ldq $4, b($29) !literal!2
25329 #~ ldq_u $3, 0($2) !lituse_base!1
25330 #~ ldq $27, f($29) !literal!5
25331 #~ jsr $26, ($27), f !lituse_jsr!5
25332 #~ ldah $29, 0($26) !gpdisp!3
25333 #~ lda $0, c($29) !gprel
25334 #~ ldah $1, d($29) !gprelhigh
25335 #~ lda $1, d($1) !gprellow
25336 #~ lda $29, 0($29) !gpdisp!3],,
25337 #~ [AC_DEFINE(HAVE_AS_EXPLICIT_RELOCS, 1,
25338 #~ [Define if your assembler supports explicit relocations.])])
25339 #~ gcc_GAS_CHECK_FEATURE([jsrdirect relocation support],
25340 #~ gcc_cv_as_alpha_jsrdirect_relocs,,
25341 #~ [ .set nomacro
25342 #~ .text
25343 #~ ldq $27, a($29) !literal!1
25344 #~ jsr $26, ($27), a !lituse_jsrdirect!1],,
25345 #~ [AC_DEFINE(HAVE_AS_JSRDIRECT_RELOCS, 1,
25346 #~ [Define if your assembler supports the lituse_jsrdirect relocation.])])
25347 #~ ;;
25349 #~ avr-*-*)
25350 #~ gcc_GAS_CHECK_FEATURE([--mlink-relax option], gcc_cv_as_avr_mlink_relax,
25351 #~ [--mlink-relax], [.text],,
25352 #~ [AC_DEFINE(HAVE_AS_AVR_MLINK_RELAX_OPTION, 1,
25353 #~ [Define if your avr assembler supports --mlink-relax option.])])
25355 #~ gcc_GAS_CHECK_FEATURE([-mrmw option], gcc_cv_as_avr_mrmw,
25356 #~ [-mrmw], [.text],,
25357 #~ [AC_DEFINE(HAVE_AS_AVR_MRMW_OPTION, 1,
25358 #~ [Define if your avr assembler supports -mrmw option.])])
25360 #~ gcc_GAS_CHECK_FEATURE([__gcc_isr pseudo instruction],
25361 #~ gcc_cv_as_avr_mgccisr,
25362 #~ [-mgcc-isr], [.text
25363 #~ __gcc_isr 1
25364 #~ __gcc_isr 2
25365 #~ __gcc_isr 0,r24
25366 #~ ],,
25367 #~ [AC_DEFINE(HAVE_AS_AVR_MGCCISR_OPTION, 1,
25368 #~ [Define if your avr assembler supports -mgcc-isr option.])])
25370 #~ # Check how default linker description file implements .rodata for
25371 #~ # avrxmega3 (PR21472). avr-gcc assumes .rodata is *not* loaded to
25372 #~ # RAM so avr-gcc skips __do_copy_data for .rodata objects.
25373 #~ AC_MSG_CHECKING(binutils for avrxmega3 .rodata support)
25374 #~ cat > conftest.s <<EOF
25375 #~ .section .rodata,"a",@progbits
25376 #~ .global xxvaryy
25377 #~ ;; avr-nm should print "... R xxvaryy", not "... D xxvaryy".
25378 #~ xxvaryy:
25379 #~ .word 1
25380 #~ EOF
25381 #~ rm -f conftest.nm
25382 #~ AC_TRY_COMMAND([$gcc_cv_as -mmcu=avrxmega3 conftest.s -o conftest.o])
25383 #~ AC_TRY_COMMAND([$gcc_cv_ld -mavrxmega3 conftest.o -o conftest.elf])
25384 #~ AC_TRY_COMMAND([$gcc_cv_nm conftest.elf > conftest.nm])
25385 #~ if test -s conftest.nm
25386 #~ then
25387 #~ if grep ' R xxvaryy' conftest.nm > /dev/null; then
25388 #~ AC_MSG_RESULT(yes)
25389 #~ AC_DEFINE(HAVE_LD_AVR_AVRXMEGA3_RODATA_IN_FLASH, 1,
25390 #~ [Define if your default avr linker script for avrxmega3 leaves .rodata in flash.])
25391 #~ else
25392 #~ AC_MSG_RESULT(no: avrxmega3 .rodata located in RAM)
25393 #~ echo "$as_me: nm output was" >&AS_MESSAGE_LOG_FD
25394 #~ cat conftest.nm >&AS_MESSAGE_LOG_FD
25395 #~ avr_ld_ver="`$gcc_cv_ld -v | sed -e 's:^.* ::'`"
25396 #~ AC_MSG_WARN([[support for avrxmega3 .rodata in flash needs Binutils 2.29 or higher (have $avr_ld_ver)]])
25397 #~ fi
25398 #~ else
25399 #~ AC_MSG_RESULT(test failed)
25400 #~ echo "$as_me: failed program was" >&AS_MESSAGE_LOG_FD
25401 #~ cat conftest.s >&AS_MESSAGE_LOG_FD
25402 #~ AC_MSG_WARN([[see `config.log' for details]])
25403 #~ fi
25404 #~ rm -f conftest.s conftest.o conftest.elf conftest.nm
25405 #~ ;;
25407 #~ cris-*-*)
25408 #~ gcc_GAS_CHECK_FEATURE([-no-mul-bug-abort option],
25409 #~ gcc_cv_as_cris_no_mul_bug,
25410 #~ [-no-mul-bug-abort], [.text],,
25411 #~ [AC_DEFINE(HAVE_AS_NO_MUL_BUG_ABORT_OPTION, 1,
25412 #~ [Define if your assembler supports the -no-mul-bug-abort option.])])
25413 #~ ;;
25415 #~ sparc*-*-*)
25416 #~ gcc_GAS_CHECK_FEATURE([-relax option], gcc_cv_as_sparc_relax,
25417 #~ [-relax], [.text],,
25418 #~ [AC_DEFINE(HAVE_AS_RELAX_OPTION, 1,
25419 #~ [Define if your assembler supports -relax option.])])
25421 #~ gcc_GAS_CHECK_FEATURE([GOTDATA_OP relocs],
25422 #~ gcc_cv_as_sparc_gotdata_op,
25423 #~ [-K PIC],
25424 #~ [.text
25425 #~ .align 4
25426 #~ foo:
25427 #~ nop
25428 #~ bar:
25429 #~ sethi %gdop_hix22(foo), %g1
25430 #~ xor %g1, %gdop_lox10(foo), %g1
25431 #~ ld [[%l7 + %g1]], %g2, %gdop(foo)],
25432 #~ [if test x$gcc_cv_ld != x \
25433 #~ && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
25434 #~ if test x$gcc_cv_objdump != x; then
25435 #~ if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
25436 #~ | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
25437 #~ gcc_cv_as_sparc_gotdata_op=no
25438 #~ else
25439 #~ gcc_cv_as_sparc_gotdata_op=yes
25440 #~ fi
25441 #~ fi
25442 #~ fi
25443 #~ rm -f conftest],
25444 #~ [AC_DEFINE(HAVE_AS_SPARC_GOTDATA_OP, 1,
25445 #~ [Define if your assembler and linker support GOTDATA_OP relocs.])])
25447 #~ gcc_GAS_CHECK_FEATURE([unaligned pcrel relocs],
25448 #~ gcc_cv_as_sparc_ua_pcrel,
25449 #~ [-K PIC],
25450 #~ [.text
25451 #~ foo:
25452 #~ nop
25453 #~ .data
25454 #~ .align 4
25455 #~ .byte 0
25456 #~ .uaword %r_disp32(foo)],
25457 #~ [if test x$gcc_cv_ld != x \
25458 #~ && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
25459 #~ gcc_cv_as_sparc_ua_pcrel=yes
25460 #~ fi
25461 #~ rm -f conftest],
25462 #~ [AC_DEFINE(HAVE_AS_SPARC_UA_PCREL, 1,
25463 #~ [Define if your assembler and linker support unaligned PC relative relocs.])
25465 #~ gcc_GAS_CHECK_FEATURE([unaligned pcrel relocs against hidden symbols],
25466 #~ gcc_cv_as_sparc_ua_pcrel_hidden,
25467 #~ [-K PIC],
25468 #~ [.data
25469 #~ .align 4
25470 #~ .byte 0x31
25471 #~ .uaword %r_disp32(foo)
25472 #~ .byte 0x32, 0x33, 0x34
25473 #~ .global foo
25474 #~ .hidden foo
25475 #~ foo:
25476 #~ .skip 4],
25477 #~ [if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
25478 #~ && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
25479 #~ && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
25480 #~ | grep ' 31000000 07323334' > /dev/null 2>&1; then
25481 #~ if $gcc_cv_objdump -R conftest 2> /dev/null \
25482 #~ | grep 'DISP32' > /dev/null 2>&1; then
25483 #~ :
25484 #~ else
25485 #~ gcc_cv_as_sparc_ua_pcrel_hidden=yes
25486 #~ fi
25487 #~ fi
25488 #~ rm -f conftest],
25489 #~ [AC_DEFINE(HAVE_AS_SPARC_UA_PCREL_HIDDEN, 1,
25490 #~ [Define if your assembler and linker support unaligned PC relative relocs against hidden symbols.])])
25491 #~ ]) # unaligned pcrel relocs
25493 #~ gcc_GAS_CHECK_FEATURE([offsetable %lo()],
25494 #~ gcc_cv_as_sparc_offsetable_lo10,
25495 #~ [-xarch=v9],
25496 #~ [.text
25497 #~ or %g1, %lo(ab) + 12, %g1
25498 #~ or %g1, %lo(ab + 12), %g1],
25499 #~ [if test x$gcc_cv_objdump != x \
25500 #~ && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
25501 #~ | grep ' 82106000 82106000' > /dev/null 2>&1; then
25502 #~ gcc_cv_as_sparc_offsetable_lo10=yes
25503 #~ fi],
25504 #~ [AC_DEFINE(HAVE_AS_OFFSETABLE_LO10, 1,
25505 #~ [Define if your assembler supports offsetable %lo().])])
25507 #~ gcc_GAS_CHECK_FEATURE([FMAF, HPC, and VIS 3.0 instructions],
25508 #~ gcc_cv_as_sparc_fmaf,
25509 #~ [-xarch=v9d],
25510 #~ [.text
25511 #~ .register %g2, #scratch
25512 #~ .register %g3, #scratch
25513 #~ .align 4
25514 #~ fmaddd %f0, %f2, %f4, %f6
25515 #~ addxccc %g1, %g2, %g3
25516 #~ fsrl32 %f2, %f4, %f8
25517 #~ fnaddd %f10, %f12, %f14],,
25518 #~ [AC_DEFINE(HAVE_AS_FMAF_HPC_VIS3, 1,
25519 #~ [Define if your assembler supports FMAF, HPC, and VIS 3.0 instructions.])])
25521 #~ gcc_GAS_CHECK_FEATURE([SPARC4 instructions],
25522 #~ gcc_cv_as_sparc_sparc4,
25523 #~ [-xarch=sparc4],
25524 #~ [.text
25525 #~ .register %g2, #scratch
25526 #~ .register %g3, #scratch
25527 #~ .align 4
25528 #~ cxbe %g2, %g3, 1f
25529 #~ 1: cwbneg %g2, %g3, 1f
25530 #~ 1: sha1
25531 #~ md5
25532 #~ aes_kexpand0 %f4, %f6, %f8
25533 #~ des_round %f38, %f40, %f42, %f44
25534 #~ camellia_f %f54, %f56, %f58, %f60
25535 #~ kasumi_fi_xor %f46, %f48, %f50, %f52],,
25536 #~ [AC_DEFINE(HAVE_AS_SPARC4, 1,
25537 #~ [Define if your assembler supports SPARC4 instructions.])])
25539 #~ gcc_GAS_CHECK_FEATURE([SPARC5 and VIS 4.0 instructions],
25540 #~ gcc_cv_as_sparc_sparc5,
25541 #~ [-xarch=sparc5],
25542 #~ [.text
25543 #~ .register %g2, #scratch
25544 #~ .register %g3, #scratch
25545 #~ .align 4
25546 #~ subxc %g1, %g2, %g3
25547 #~ fpadd8 %f0, %f2, %f4],,
25548 #~ [AC_DEFINE(HAVE_AS_SPARC5_VIS4, 1,
25549 #~ [Define if your assembler supports SPARC5 and VIS 4.0 instructions.])])
25551 #~ gcc_GAS_CHECK_FEATURE([SPARC6 instructions],
25552 #~ gcc_cv_as_sparc_sparc6,
25553 #~ [-xarch=sparc6],
25554 #~ [.text
25555 #~ .register %g2, #scratch
25556 #~ .register %g3, #scratch
25557 #~ .align 4
25558 #~ rd %entropy, %g1
25559 #~ fpsll64x %f0, %f2, %f4],,
25560 #~ [AC_DEFINE(HAVE_AS_SPARC6, 1,
25561 #~ [Define if your assembler supports SPARC6 instructions.])])
25563 #~ gcc_GAS_CHECK_FEATURE([LEON instructions],
25564 #~ gcc_cv_as_sparc_leon,
25565 #~ [-Aleon],
25566 #~ [.text
25567 #~ .register %g2, #scratch
25568 #~ .register %g3, #scratch
25569 #~ .align 4
25570 #~ smac %g2, %g3, %g1
25571 #~ umac %g2, %g3, %g1
25572 #~ casa [[%g2]] 0xb, %g3, %g1],,
25573 #~ [AC_DEFINE(HAVE_AS_LEON, 1,
25574 #~ [Define if your assembler supports LEON instructions.])])
25575 #~ ;;
25577 #~ changequote(,)dnl
25578 #~ i[34567]86-*-* | x86_64-*-*)
25579 #~ changequote([,])dnl
25580 #~ case $target_os in
25581 #~ cygwin*)
25582 #~ # Full C++ conformance when using a shared libstdc++-v3 requires some
25583 #~ # support from the Cygwin DLL, which in more recent versions exports
25584 #~ # wrappers to aid in interposing and redirecting operators new, delete,
25585 #~ # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
25586 #~ # are configuring for a version of Cygwin that exports the wrappers.
25587 #~ if test x$host = x$target && test x$host_cpu = xi686; then
25588 #~ AC_CHECK_FUNC([__wrap__Znaj],[gcc_ac_cygwin_dll_wrappers=yes],[gcc_ac_cygwin_dll_wrappers=no])
25589 #~ else
25590 #~ # Can't check presence of libc functions during cross-compile, so
25591 #~ # we just have to assume we're building for an up-to-date target.
25592 #~ gcc_ac_cygwin_dll_wrappers=yes
25593 #~ fi
25594 #~ AC_DEFINE_UNQUOTED(USE_CYGWIN_LIBSTDCXX_WRAPPERS,
25595 #~ [`if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`],
25596 #~ [Define if you want to generate code by default that assumes that the
25597 #~ Cygwin DLL exports wrappers to support libstdc++ function replacement.])
25598 #~ esac
25599 #~ case $target_os in
25600 #~ cygwin* | pe | mingw32*)
25601 #~ # Recent binutils allows the three-operand form of ".comm" on PE. This
25602 #~ # definition is used unconditionally to initialise the default state of
25603 #~ # the target option variable that governs usage of the feature.
25604 #~ gcc_GAS_CHECK_FEATURE([.comm with alignment], gcc_cv_as_comm_has_align,,
25605 #~ [.comm foo,1,32])
25606 #~ AC_DEFINE_UNQUOTED(HAVE_GAS_ALIGNED_COMM,
25607 #~ [`if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`],
25608 #~ [Define if your assembler supports specifying the alignment
25609 #~ of objects allocated using the GAS .comm command.])
25610 #~ # Used for DWARF 2 in PE
25611 #~ gcc_GAS_CHECK_FEATURE([.secrel32 relocs],
25612 #~ gcc_cv_as_ix86_pe_secrel32,,
25613 #~ [.text
25614 #~ foo: nop
25615 #~ .data
25616 #~ .secrel32 foo],
25617 #~ [if test x$gcc_cv_ld != x \
25618 #~ && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
25619 #~ gcc_cv_as_ix86_pe_secrel32=yes
25620 #~ fi
25621 #~ rm -f conftest],
25622 #~ [AC_DEFINE(HAVE_GAS_PE_SECREL32_RELOC, 1,
25623 #~ [Define if your assembler and linker support 32-bit section relative relocs via '.secrel32 label'.])])
25624 #~ # Test if the assembler supports the extended form of the .section
25625 #~ # directive that specifies section alignment. LTO support uses this,
25626 #~ # but normally only after installation, so we warn but don't fail the
25627 #~ # configure if LTO is enabled but the assembler does not support it.
25628 #~ gcc_GAS_CHECK_FEATURE([.section with alignment], gcc_cv_as_section_has_align,
25629 #~ -fatal-warnings,[.section lto_test,"dr0"])
25630 #~ if test x$gcc_cv_as_section_has_align != xyes; then
25631 #~ case ",$enable_languages," in
25632 #~ *,lto,*)
25633 #~ AC_MSG_WARN([LTO for $target requires binutils >= 2.20.1, but version found appears insufficient; LTO will not work until binutils is upgraded.])
25634 #~ ;;
25635 #~ esac
25636 #~ fi
25637 #~ ;;
25638 #~ esac
25639 #~ case $target_os in
25640 #~ darwin2* | darwin19*)
25641 #~ gcc_GAS_CHECK_FEATURE([llvm assembler x86-pad-for-align option],
25642 #~ gcc_cv_as_mllvm_x86_pad_for_align,
25643 #~ [-mllvm -x86-pad-for-align=false], [.text],,
25644 #~ [AC_DEFINE(HAVE_AS_MLLVM_X86_PAD_FOR_ALIGN, 1,
25645 #~ [Define if your Mac OS X assembler supports -mllvm -x86-pad-for-align=false.])])
25646 #~ ;;
25647 #~ esac
25649 #~ gcc_GAS_CHECK_FEATURE([-xbrace_comment], gcc_cv_as_ix86_xbrace_comment,
25650 #~ [-xbrace_comment=no], [.text],,
25651 #~ [AC_DEFINE(HAVE_AS_XBRACE_COMMENT_OPTION, 1,
25652 #~ [Define if your assembler supports -xbrace_comment option.])])
25654 #~ gcc_GAS_CHECK_FEATURE([filds and fists mnemonics],
25655 #~ gcc_cv_as_ix86_filds,,
25656 #~ [filds (%ebp); fists (%ebp)],,
25657 #~ [AC_DEFINE(HAVE_AS_IX86_FILDS, 1,
25658 #~ [Define if your assembler uses filds and fists mnemonics.])])
25660 #~ gcc_GAS_CHECK_FEATURE([fildq and fistpq mnemonics],
25661 #~ gcc_cv_as_ix86_fildq,,
25662 #~ [fildq (%ebp); fistpq (%ebp)],,
25663 #~ [AC_DEFINE(HAVE_AS_IX86_FILDQ, 1,
25664 #~ [Define if your assembler uses fildq and fistq mnemonics.])])
25666 #~ gcc_GAS_CHECK_FEATURE([cmov syntax],
25667 #~ gcc_cv_as_ix86_cmov_sun_syntax,,
25668 #~ [cmovl.l %edx, %eax],,
25669 #~ [AC_DEFINE(HAVE_AS_IX86_CMOV_SUN_SYNTAX, 1,
25670 #~ [Define if your assembler supports the Sun syntax for cmov.])])
25672 #~ gcc_GAS_CHECK_FEATURE([ffreep mnemonic],
25673 #~ gcc_cv_as_ix86_ffreep,,
25674 #~ [ffreep %st(1)],,
25675 #~ [AC_DEFINE(HAVE_AS_IX86_FFREEP, 1,
25676 #~ [Define if your assembler supports the ffreep mnemonic.])])
25678 #~ gcc_GAS_CHECK_FEATURE([.quad directive],
25679 #~ gcc_cv_as_ix86_quad,,
25680 #~ [.quad 0],,
25681 #~ [AC_DEFINE(HAVE_AS_IX86_QUAD, 1,
25682 #~ [Define if your assembler supports the .quad directive.])])
25684 #~ gcc_GAS_CHECK_FEATURE([sahf mnemonic],
25685 #~ gcc_cv_as_ix86_sahf,,
25686 #~ [.code64
25687 #~ sahf],,
25688 #~ [AC_DEFINE(HAVE_AS_IX86_SAHF, 1,
25689 #~ [Define if your assembler supports the sahf mnemonic in 64bit mode.])])
25691 #~ gcc_GAS_CHECK_FEATURE([interunit movq mnemonic],
25692 #~ gcc_cv_as_ix86_interunit_movq,,
25693 #~ [.code64
25694 #~ movq %mm0, %rax
25695 #~ movq %rax, %xmm0])
25696 #~ AC_DEFINE_UNQUOTED(HAVE_AS_IX86_INTERUNIT_MOVQ,
25697 #~ [`if test $gcc_cv_as_ix86_interunit_movq = yes; then echo 1; else echo 0; fi`],
25698 #~ [Define if your assembler supports interunit movq mnemonic.])
25700 #~ gcc_GAS_CHECK_FEATURE([hle prefixes],
25701 #~ gcc_cv_as_ix86_hle,,
25702 #~ [lock xacquire cmpxchg %esi, (%ecx)],,
25703 #~ [AC_DEFINE(HAVE_AS_IX86_HLE, 1,
25704 #~ [Define if your assembler supports HLE prefixes.])])
25706 #~ gcc_GAS_CHECK_FEATURE([swap suffix],
25707 #~ gcc_cv_as_ix86_swap,,
25708 #~ [movl.s %esp, %ebp],,
25709 #~ [AC_DEFINE(HAVE_AS_IX86_SWAP, 1,
25710 #~ [Define if your assembler supports the swap suffix.])])
25712 #~ gcc_GAS_CHECK_FEATURE([different section symbol subtraction],
25713 #~ gcc_cv_as_ix86_diff_sect_delta,,
25714 #~ [.section .rodata
25715 #~ .L1:
25716 #~ .long .L2-.L1
25717 #~ .long .L3-.L1
25718 #~ .text
25719 #~ .L3: nop
25720 #~ .L2: nop],,
25721 #~ [AC_DEFINE(HAVE_AS_IX86_DIFF_SECT_DELTA, 1,
25722 #~ [Define if your assembler supports the subtraction of symbols in different sections.])])
25724 #~ gcc_GAS_CHECK_FEATURE([rep and lock prefix],
25725 #~ gcc_cv_as_ix86_rep_lock_prefix,,
25726 #~ [rep movsl
25727 #~ rep ret
25728 #~ rep nop
25729 #~ rep bsf %ecx, %eax
25730 #~ rep bsr %ecx, %eax
25731 #~ lock addl %edi, (%eax,%esi)
25732 #~ lock orl $0, (%esp)],,
25733 #~ [AC_DEFINE(HAVE_AS_IX86_REP_LOCK_PREFIX, 1,
25734 #~ [Define if the assembler supports 'rep <insn>, lock <insn>'.])])
25736 #~ gcc_GAS_CHECK_FEATURE([ud2 mnemonic],
25737 #~ gcc_cv_as_ix86_ud2,,
25738 #~ [ud2],,
25739 #~ [AC_DEFINE(HAVE_AS_IX86_UD2, 1,
25740 #~ [Define if your assembler supports the 'ud2' mnemonic.])])
25742 #~ # Enforce 32-bit output with gas and gld.
25743 #~ if test x$gas = xyes; then
25744 #~ as_ix86_gas_32_opt="--32"
25745 #~ fi
25746 #~ if echo "$ld_ver" | grep GNU > /dev/null; then
25747 #~ if $gcc_cv_ld -V 2>/dev/null | grep elf_i386_sol2 > /dev/null; then
25748 #~ ld_ix86_gld_32_opt="-melf_i386_sol2"
25749 #~ else
25750 #~ ld_ix86_gld_32_opt="-melf_i386"
25751 #~ fi
25752 #~ fi
25754 #~ gcc_GAS_CHECK_FEATURE([R_386_TLS_GD_PLT reloc],
25755 #~ gcc_cv_as_ix86_tlsgdplt,
25756 #~ [$as_ix86_gas_32_opt],
25757 #~ [call tls_gd@tlsgdplt],
25758 #~ [if test x$gcc_cv_ld != x \
25759 #~ && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o -G > /dev/null 2>&1; then
25760 #~ gcc_cv_as_ix86_tlsgdplt=yes
25761 #~ fi
25762 #~ rm -f conftest],
25763 #~ [AC_DEFINE(HAVE_AS_IX86_TLSGDPLT, 1,
25764 #~ [Define if your assembler and linker support @tlsgdplt.])])
25766 #~ conftest_s='
25767 #~ .section .tdata,"aw'$tls_section_flag'",@progbits
25768 #~ tls_ld:
25769 #~ .section .text,"ax",@progbits
25770 #~ call tls_ld@tlsldmplt'
25772 #~ gcc_GAS_CHECK_FEATURE([R_386_TLS_LDM_PLT reloc],
25773 #~ gcc_cv_as_ix86_tlsldmplt,
25774 #~ [$as_ix86_gas_32_opt],
25775 #~ [$conftest_s],
25776 #~ [if test x$gcc_cv_ld != x \
25777 #~ && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o -G > /dev/null 2>&1; then
25778 #~ gcc_cv_as_ix86_tlsldmplt=yes
25779 #~ fi
25780 #~ rm -f conftest])
25781 #~ AC_DEFINE_UNQUOTED(HAVE_AS_IX86_TLSLDMPLT,
25782 #~ [`if test $gcc_cv_as_ix86_tlsldmplt = yes; then echo 1; else echo 0; fi`],
25783 #~ [Define to 1 if your assembler and linker support @tlsldmplt.])
25785 #~ conftest_s='
25786 #~ .section .text,"ax",@progbits
25787 #~ .globl _start
25788 #~ .type _start, @function
25789 #~ _start:
25790 #~ leal value@tlsldm(%ebx), %eax
25791 #~ call ___tls_get_addr@plt
25793 #~ .section .tdata,"aw'$tls_section_flag'",@progbits
25794 #~ .type value, @object
25795 #~ value:'
25796 #~ gcc_GAS_CHECK_FEATURE([R_386_TLS_LDM reloc],
25797 #~ gcc_cv_as_ix86_tlsldm,
25798 #~ [$as_ix86_gas_32_opt],
25799 #~ [$conftest_s],
25800 #~ [if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
25801 #~ && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o $ld_tls_libs -lc > /dev/null 2>&1; then
25802 #~ if $gcc_cv_objdump -d conftest 2>/dev/null | grep nop > /dev/null \
25803 #~ || dis conftest 2>/dev/null | grep nop > /dev/null; then
25804 #~ gcc_cv_as_ix86_tlsldm=yes
25805 #~ fi
25806 #~ fi
25807 #~ rm -f conftest])
25808 #~ AC_DEFINE_UNQUOTED(HAVE_AS_IX86_TLSLDM,
25809 #~ [`if test $gcc_cv_as_ix86_tlsldm = yes; then echo 1; else echo 0; fi`],
25810 #~ [Define to 1 if your assembler and linker support @tlsldm.])
25812 #~ conftest_s='
25813 #~ .data
25814 #~ bar:
25815 #~ .byte 1
25816 #~ .text
25817 #~ .global _start
25818 #~ _start:
25819 #~ cmpl $0, bar@GOT
25820 #~ jmp *_start@GOT'
25821 #~ gcc_GAS_CHECK_FEATURE([R_386_GOT32X reloc],
25822 #~ gcc_cv_as_ix86_got32x,
25823 #~ [$as_ix86_gas_32_opt],
25824 #~ [$conftest_s],
25825 #~ [if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
25826 #~ && test x$gcc_cv_readelf != x \
25827 #~ && $gcc_cv_readelf --relocs --wide conftest.o 2>&1 \
25828 #~ | grep R_386_GOT32X > /dev/null 2>&1 \
25829 #~ && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o > /dev/null 2>&1; then
25830 #~ if $gcc_cv_objdump -dw conftest 2>&1 \
25831 #~ | grep 0xffffff > /dev/null 2>&1; then
25832 #~ gcc_cv_as_ix86_got32x=no
25833 #~ else
25834 #~ gcc_cv_as_ix86_got32x=yes
25835 #~ fi
25836 #~ fi
25837 #~ rm -f conftest])
25838 #~ AC_DEFINE_UNQUOTED(HAVE_AS_IX86_GOT32X,
25839 #~ [`if test x"$gcc_cv_as_ix86_got32x" = xyes; then echo 1; else echo 0; fi`],
25840 #~ [Define 0/1 if your assembler and linker support @GOT.])
25842 #~ gcc_GAS_CHECK_FEATURE([GOTOFF in data],
25843 #~ gcc_cv_as_ix86_gotoff_in_data,
25844 #~ [$as_ix86_gas_32_opt],
25845 #~ [ .text
25846 #~ .L0:
25847 #~ nop
25848 #~ .data
25849 #~ .long .L0@GOTOFF])
25850 #~ AC_DEFINE_UNQUOTED(HAVE_AS_GOTOFF_IN_DATA,
25851 #~ [`if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`],
25852 #~ [Define true if the assembler supports '.long foo@GOTOFF'.])
25854 #~ conftest_s='
25855 #~ .section .text,"ax",@progbits
25856 #~ .globl _start
25857 #~ .type _start, @function
25858 #~ _start:
25859 #~ leal ld@tlsldm(%ecx), %eax
25860 #~ call *___tls_get_addr@GOT(%ecx)
25861 #~ leal gd@tlsgd(%ecx), %eax
25862 #~ call *___tls_get_addr@GOT(%ecx)
25864 #~ .section .tdata,"aw'$tls_section_flag'",@progbits
25865 #~ .type ld, @object
25866 #~ ld:
25867 #~ .byte 0
25868 #~ .globl gd
25869 #~ .type gd, @object
25870 #~ gd:
25871 #~ .byte 0'
25872 #~ gcc_GAS_CHECK_FEATURE([calling ___tls_get_addr via GOT],
25873 #~ gcc_cv_as_ix86_tls_get_addr_via_got,
25874 #~ [$as_ix86_gas_32_opt],
25875 #~ [$conftest_s],
25876 #~ [if test x$gcc_cv_ld != x \
25877 #~ && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o > /dev/null 2>&1; then
25878 #~ gcc_cv_as_ix86_tls_get_addr_via_got=yes
25879 #~ fi
25880 #~ rm -f conftest])
25881 #~ AC_DEFINE_UNQUOTED(HAVE_AS_IX86_TLS_GET_ADDR_GOT,
25882 #~ [`if test x"$gcc_cv_as_ix86_tls_get_addr_via_got" = xyes; then echo 1; else echo 0; fi`],
25883 #~ [Define 0/1 if your assembler and linker support calling ___tls_get_addr via GOT.])
25884 #~ ;;
25886 #~ ia64*-*-*)
25887 #~ gcc_GAS_CHECK_FEATURE([ltoffx and ldxmov relocs],
25888 #~ gcc_cv_as_ia64_ltoffx_ldxmov_relocs,,
25889 #~ [ .text
25890 #~ addl r15 = @ltoffx(x#), gp
25891 #~ ;;
25892 #~ ld8.mov r16 = [[r15]], x#
25893 #~ ],,
25894 #~ [AC_DEFINE(HAVE_AS_LTOFFX_LDXMOV_RELOCS, 1,
25895 #~ [Define if your assembler supports ltoffx and ldxmov relocations.])])
25897 #~ ;;
25899 #~ powerpc*-*-*)
25901 #~ case $target in
25902 #~ *-*-darwin*)
25903 #~ gcc_GAS_CHECK_FEATURE([.machine directive support],
25904 #~ gcc_cv_as_machine_directive,,
25905 #~ [ .machine ppc7400])
25906 #~ if test x$gcc_cv_as_machine_directive != xyes; then
25907 #~ echo "*** This target requires an assembler supporting \".machine\"" >&2
25908 #~ echo you can get it from: https://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
25909 #~ test x$build = x$target && exit 1
25910 #~ fi
25911 #~ ;;
25912 #~ esac
25914 #~ case $target in
25915 #~ *-*-aix*) conftest_s=' .machine "pwr5"
25916 #~ .csect .text[[PR]]
25917 #~ mfcr 3,128';;
25918 #~ *-*-darwin*) conftest_s=' .text
25919 #~ mfcr r3,128';;
25920 #~ *) conftest_s=' .machine power4
25921 #~ .text
25922 #~ mfcr 3,128';;
25923 #~ esac
25925 #~ gcc_GAS_CHECK_FEATURE([mfcr field support],
25926 #~ gcc_cv_as_powerpc_mfcrf,,
25927 #~ [$conftest_s],,
25928 #~ [AC_DEFINE(HAVE_AS_MFCRF, 1,
25929 #~ [Define if your assembler supports mfcr field.])])
25931 #~ case $target in
25932 #~ *-*-aix*) conftest_s=' .csect .text[[PR]]
25933 #~ LCF..0:
25934 #~ addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
25935 #~ *-*-darwin*)
25936 #~ conftest_s=' .text
25937 #~ LCF0:
25938 #~ addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
25939 #~ *) conftest_s=' .text
25940 #~ .LCF0:
25941 #~ addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
25942 #~ esac
25944 #~ gcc_GAS_CHECK_FEATURE([rel16 relocs],
25945 #~ gcc_cv_as_powerpc_rel16, -a32,
25946 #~ [$conftest_s],,
25947 #~ [AC_DEFINE(HAVE_AS_REL16, 1,
25948 #~ [Define if your assembler supports R_PPC_REL16 relocs.])])
25950 #~ case $target in
25951 #~ *-*-aix*) conftest_s=' .machine "pwr7"
25952 #~ .csect .text[[PR]]
25953 #~ lxvd2x 1,2,3';;
25954 #~ *) conftest_s=' .machine power7
25955 #~ .text
25956 #~ lxvd2x 1,2,3';;
25957 #~ esac
25959 #~ gcc_GAS_CHECK_FEATURE([vector-scalar support],
25960 #~ gcc_cv_as_powerpc_vsx, -a32,
25961 #~ [$conftest_s],,
25962 #~ [AC_DEFINE(HAVE_AS_VSX, 1,
25963 #~ [Define if your assembler supports VSX instructions.])])
25965 #~ gcc_GAS_CHECK_FEATURE([.gnu_attribute support],
25966 #~ gcc_cv_as_powerpc_gnu_attribute,,
25967 #~ [.gnu_attribute 4,1],,
25968 #~ [AC_DEFINE(HAVE_AS_GNU_ATTRIBUTE, 1,
25969 #~ [Define if your assembler supports .gnu_attribute.])])
25971 #~ gcc_GAS_CHECK_FEATURE([prologue entry point marker support],
25972 #~ gcc_cv_as_powerpc_entry_markers,-a64 --fatal-warnings,
25973 #~ [ .reloc .,R_PPC64_ENTRY; nop],,
25974 #~ [AC_DEFINE(HAVE_AS_ENTRY_MARKERS, 1,
25975 #~ [Define if your assembler supports the R_PPC64_ENTRY relocation.])])
25977 #~ gcc_GAS_CHECK_FEATURE([plt sequence marker support],
25978 #~ gcc_cv_as_powerpc_pltseq_markers,-a32 --fatal-warnings,
25979 #~ [ .reloc .,R_PPC_PLTSEQ; nop],,
25980 #~ [AC_DEFINE(HAVE_AS_PLTSEQ, 1,
25981 #~ [Define if your assembler supports R_PPC*_PLTSEQ relocations.])])
25983 #~ case $target in
25984 #~ *-*-aix*)
25985 #~ gcc_GAS_CHECK_FEATURE([AIX .ref support],
25986 #~ gcc_cv_as_aix_ref,,
25987 #~ [ .csect stuff[[rw]]
25988 #~ stuff:
25989 #~ .long 1
25990 #~ .extern sym
25991 #~ .ref sym
25992 #~ ],,
25993 #~ [AC_DEFINE(HAVE_AS_REF, 1,
25994 #~ [Define if your assembler supports .ref])])
25996 #~ gcc_GAS_CHECK_FEATURE([AIX DWARF location lists section support],
25997 #~ gcc_cv_as_aix_dwloc,,
25998 #~ [ .dwsect 0xA0000
25999 #~ Lframe..0:
26000 #~ .vbyte 4,Lframe..0
26001 #~ ],,
26002 #~ [AC_DEFINE(HAVE_XCOFF_DWARF_EXTRAS, 1,
26003 #~ [Define if your assembler supports AIX debug frame section label reference.])])
26004 #~ ;;
26005 #~ esac
26006 #~ ;;
26008 #~ mips*-*-*)
26009 #~ gcc_GAS_CHECK_FEATURE([explicit relocation support],
26010 #~ gcc_cv_as_mips_explicit_relocs,,
26011 #~ [ lw $4,%gp_rel(foo)($4)],,
26012 #~ [if test x$target_cpu_default = x
26013 #~ then target_cpu_default=MASK_EXPLICIT_RELOCS
26014 #~ else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
26015 #~ fi])
26017 #~ gcc_GAS_CHECK_FEATURE([-mno-shared support],
26018 #~ gcc_cv_as_mips_no_shared,[-mno-shared], [nop],,
26019 #~ [AC_DEFINE(HAVE_AS_NO_SHARED, 1,
26020 #~ [Define if the assembler understands -mno-shared.])])
26022 #~ gcc_GAS_CHECK_FEATURE([.gnu_attribute support],
26023 #~ gcc_cv_as_mips_gnu_attribute,,
26024 #~ [.gnu_attribute 4,1],,
26025 #~ [AC_DEFINE(HAVE_AS_GNU_ATTRIBUTE, 1,
26026 #~ [Define if your assembler supports .gnu_attribute.])])
26028 #~ gcc_GAS_CHECK_FEATURE([.module support],
26029 #~ gcc_cv_as_mips_dot_module,[-32],
26030 #~ [.module mips2
26031 #~ .module fp=xx],,
26032 #~ [AC_DEFINE(HAVE_AS_DOT_MODULE, 1,
26033 #~ [Define if your assembler supports .module.])])
26034 #~ if test x$gcc_cv_as_mips_dot_module = xno \
26035 #~ && test x$with_fp_32 != x; then
26036 #~ AC_MSG_ERROR(
26037 #~ [Requesting --with-fp-32= requires assembler support for .module.])
26038 #~ fi
26040 #~ gcc_GAS_CHECK_FEATURE([.micromips support],
26041 #~ gcc_cv_as_micromips_support,[--fatal-warnings],
26042 #~ [.set micromips],,
26043 #~ [AC_DEFINE(HAVE_GAS_MICROMIPS, 1,
26044 #~ [Define if your assembler supports the .set micromips directive])])
26046 #~ gcc_GAS_CHECK_FEATURE([.dtprelword support],
26047 #~ gcc_cv_as_mips_dtprelword,,
26048 #~ [.section .tdata,"awT",@progbits
26049 #~ x:
26050 #~ .word 2
26051 #~ .text
26052 #~ .dtprelword x+0x8000],,
26053 #~ [AC_DEFINE(HAVE_AS_DTPRELWORD, 1,
26054 #~ [Define if your assembler supports .dtprelword.])])
26056 #~ gcc_GAS_CHECK_FEATURE([DSPR1 mult with four accumulators support],
26057 #~ gcc_cv_as_mips_dspr1_mult,,
26058 #~ [ .set mips32r2
26059 #~ .set nodspr2
26060 #~ .set dsp
26061 #~ madd $ac3,$4,$5
26062 #~ maddu $ac3,$4,$5
26063 #~ msub $ac3,$4,$5
26064 #~ msubu $ac3,$4,$5
26065 #~ mult $ac3,$4,$5
26066 #~ multu $ac3,$4,$5],,
26067 #~ [AC_DEFINE(HAVE_AS_DSPR1_MULT, 1,
26068 #~ [Define if your assembler supports DSPR1 mult.])])
26070 #~ AC_MSG_CHECKING(assembler and linker for explicit JALR relocation)
26071 #~ gcc_cv_as_ld_jalr_reloc=no
26072 #~ if test $gcc_cv_as_mips_explicit_relocs = yes; then
26073 #~ if test $in_tree_ld = yes ; then
26074 #~ 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 \
26075 #~ && test $in_tree_ld_is_elf = yes; then
26076 #~ gcc_cv_as_ld_jalr_reloc=yes
26077 #~ fi
26078 #~ elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
26079 #~ echo ' .ent x' > conftest.s
26080 #~ echo 'x: lw $2,%got_disp(y)($3)' >> conftest.s
26081 #~ echo ' lw $25,%call16(y)($28)' >> conftest.s
26082 #~ echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
26083 #~ echo '1: jalr $25' >> conftest.s
26084 #~ echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
26085 #~ echo '1: jalr $25' >> conftest.s
26086 #~ echo ' .end x' >> conftest.s
26087 #~ if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&AS_MESSAGE_LOG_FD \
26088 #~ && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&AS_MESSAGE_LOG_FD; then
26089 #~ if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
26090 #~ && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
26091 #~ gcc_cv_as_ld_jalr_reloc=yes
26092 #~ fi
26093 #~ fi
26094 #~ rm -f conftest.*
26095 #~ fi
26096 #~ fi
26097 #~ if test $gcc_cv_as_ld_jalr_reloc = yes; then
26098 #~ if test x$target_cpu_default = x; then
26099 #~ target_cpu_default=MASK_RELAX_PIC_CALLS
26100 #~ else
26101 #~ target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
26102 #~ fi
26103 #~ fi
26104 #~ AC_MSG_RESULT($gcc_cv_as_ld_jalr_reloc)
26106 #~ AC_CACHE_CHECK([linker for .eh_frame personality relaxation],
26107 #~ [gcc_cv_ld_mips_personality_relaxation],
26108 #~ [gcc_cv_ld_mips_personality_relaxation=no
26109 #~ if test $in_tree_ld = yes ; then
26110 #~ if test "$gcc_cv_gld_major_version" -eq 2 \
26111 #~ -a "$gcc_cv_gld_minor_version" -ge 21 \
26112 #~ -o "$gcc_cv_gld_major_version" -gt 2; then
26113 #~ gcc_cv_ld_mips_personality_relaxation=yes
26114 #~ fi
26115 #~ elif test x$gcc_cv_as != x \
26116 #~ -a x$gcc_cv_ld != x \
26117 #~ -a x$gcc_cv_readelf != x ; then
26118 #~ cat > conftest.s <<EOF
26119 #~ .cfi_startproc
26120 #~ .cfi_personality 0x80,indirect_ptr
26121 #~ .ent test
26122 #~ test:
26123 #~ nop
26124 #~ .end test
26125 #~ .cfi_endproc
26127 #~ .section .data,"aw",@progbits
26128 #~ indirect_ptr:
26129 #~ .dc.a personality
26130 #~ EOF
26131 #~ if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
26132 #~ && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
26133 #~ if $gcc_cv_readelf -d conftest 2>&1 \
26134 #~ | grep TEXTREL > /dev/null 2>&1; then
26135 #~ :
26136 #~ elif $gcc_cv_readelf --relocs conftest 2>&1 \
26137 #~ | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
26138 #~ :
26139 #~ else
26140 #~ gcc_cv_ld_mips_personality_relaxation=yes
26141 #~ fi
26142 #~ fi
26143 #~ fi
26144 #~ rm -f conftest.s conftest.o conftest])
26145 #~ if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
26146 #~ AC_DEFINE(HAVE_LD_PERSONALITY_RELAXATION, 1,
26147 #~ [Define if your linker can relax absolute .eh_frame personality
26148 #~ pointers into PC-relative form.])
26149 #~ fi
26151 #~ gcc_GAS_CHECK_FEATURE([-mnan= support],
26152 #~ gcc_cv_as_mips_nan,
26153 #~ [-mnan=2008],,,
26154 #~ [AC_DEFINE(HAVE_AS_NAN, 1,
26155 #~ [Define if the assembler understands -mnan=.])])
26156 #~ if test x$gcc_cv_as_mips_nan = xno \
26157 #~ && test x$with_nan != x; then
26158 #~ AC_MSG_ERROR(
26159 #~ [Requesting --with-nan= requires assembler support for -mnan=])
26160 #~ fi
26161 #~ ;;
26162 #~ msp430-*-*)
26163 #~ # Earlier GAS versions generically support .gnu_attribute, but the
26164 #~ # msp430 assembler will not do anything with it.
26165 #~ gcc_GAS_CHECK_FEATURE([.gnu_attribute support],
26166 #~ gcc_cv_as_msp430_gnu_attribute,,
26167 #~ [.gnu_attribute 4,1],,
26168 #~ [AC_DEFINE(HAVE_AS_GNU_ATTRIBUTE, 1,
26169 #~ [Define if your assembler supports .gnu_attribute.])])
26170 #~ gcc_GAS_CHECK_FEATURE([.mspabi_attribute support],
26171 #~ gcc_cv_as_msp430_mspabi_attribute,,
26172 #~ [.mspabi_attribute 4,2],,
26173 #~ [AC_DEFINE(HAVE_AS_MSPABI_ATTRIBUTE, 1,
26174 #~ [Define if your assembler supports .mspabi_attribute.])])
26175 #~ if test x$enable_newlib_nano_formatted_io = xyes; then
26176 #~ AC_DEFINE(HAVE_NEWLIB_NANO_FORMATTED_IO, 1, [Define if GCC has been
26177 #~ configured with --enable-newlib-nano-formatted-io.])
26178 #~ fi
26179 #~ ;;
26180 #~ nios2-*-*)
26181 #~ # Versions 2.33 and earlier lacked support for the %gotoff relocation
26182 #~ # syntax that is documented in the ABI specification.
26183 #~ gcc_GAS_CHECK_FEATURE([support for %gotoff relocations in constant data],
26184 #~ gcc_cv_as_nios2_gotoff_relocation,,
26185 #~ [ .extern foo
26186 #~ .data
26187 #~ .long %gotoff(foo)],,
26188 #~ [AC_DEFINE(HAVE_AS_NIOS2_GOTOFF_RELOCATION, 1,
26189 #~ [Define if your assembler supports %gotoff relocation syntax.])])
26190 #~ ;;
26191 #~ riscv*-*-*)
26192 #~ gcc_GAS_CHECK_FEATURE([.attribute support],
26193 #~ gcc_cv_as_riscv_attribute,,
26194 #~ [.attribute stack_align,4],,
26195 #~ [AC_DEFINE(HAVE_AS_RISCV_ATTRIBUTE, 1,
26196 #~ [Define if your assembler supports .attribute.])])
26197 #~ gcc_GAS_CHECK_FEATURE([-misa-spec= support],
26198 #~ gcc_cv_as_riscv_isa_spec,
26199 #~ [-misa-spec=2.2],,,
26200 #~ [AC_DEFINE(HAVE_AS_MISA_SPEC, 1,
26201 #~ [Define if the assembler understands -misa-spec=.])])
26202 #~ gcc_GAS_CHECK_FEATURE([-march=rv32i_zifencei support],
26203 #~ gcc_cv_as_riscv_march_zifencei,
26204 #~ [-march=rv32i_zifencei2p0],,,
26205 #~ [AC_DEFINE(HAVE_AS_MARCH_ZIFENCEI, 1,
26206 #~ [Define if the assembler understands -march=rv*_zifencei.])])
26207 #~ ;;
26208 #~ loongarch*-*-*)
26209 #~ gcc_GAS_CHECK_FEATURE([.dtprelword support],
26210 #~ gcc_cv_as_loongarch_dtprelword, [2,18,0],,
26211 #~ [.section .tdata,"awT",@progbits
26212 #~ x:
26213 #~ .word 2
26214 #~ .text
26215 #~ .dtprelword x+0x8000],,
26216 #~ [AC_DEFINE(HAVE_AS_DTPRELWORD, 1,
26217 #~ [Define if your assembler supports .dtprelword.])])
26218 #~ ;;
26219 #~ s390*-*-*)
26220 #~ gcc_GAS_CHECK_FEATURE([.gnu_attribute support],
26221 #~ gcc_cv_as_s390_gnu_attribute,,
26222 #~ [.gnu_attribute 8,1],,
26223 #~ [AC_DEFINE(HAVE_AS_GNU_ATTRIBUTE, 1,
26224 #~ [Define if your assembler supports .gnu_attribute.])])
26225 #~ gcc_GAS_CHECK_FEATURE([.machine and .machinemode support],
26226 #~ gcc_cv_as_s390_machine_machinemode,,
26227 #~ [ .machinemode push
26228 #~ .machinemode pop
26229 #~ .machine push
26230 #~ .machine pop],,
26231 #~ [AC_DEFINE(HAVE_AS_MACHINE_MACHINEMODE, 1,
26232 #~ [Define if your assembler supports .machine and .machinemode.])])
26233 #~ gcc_GAS_CHECK_FEATURE([architecture modifiers support],
26234 #~ gcc_cv_as_s390_architecture_modifiers,,
26235 #~ [ .machine z13+vx ],,
26236 #~ [AC_DEFINE(HAVE_AS_ARCHITECTURE_MODIFIERS, 1,
26237 #~ [Define if your assembler supports architecture modifiers.])])
26238 #~ gcc_GAS_CHECK_FEATURE([vector load/store alignment hints],
26239 #~ gcc_cv_as_s390_vector_loadstore_alignment_hints,,
26240 #~ [ vl %v24,0(%r15),3 ],,
26241 #~ [AC_DEFINE(HAVE_AS_VECTOR_LOADSTORE_ALIGNMENT_HINTS, 1,
26242 #~ [Define if your assembler supports vl/vst/vlm/vstm with an optional alignment hint argument.])])
26243 #~ gcc_GAS_CHECK_FEATURE([vector load/store alignment hints on z13],
26244 #~ gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13, [-mzarch -march=z13],
26245 #~ [ vl %v24,0(%r15),3 ],,
26246 #~ [AC_DEFINE(HAVE_AS_VECTOR_LOADSTORE_ALIGNMENT_HINTS_ON_Z13, 1,
26247 #~ [Define if your assembler supports vl/vst/vlm/vstm with an optional alignment hint argument on z13.])])
26249 #~ ;;
26250 #~ esac
26252 #~ # Mips, LoongArch and HP-UX need the GNU assembler.
26253 #~ # Linux on IA64 might be able to use the Intel assembler.
26255 #~ case "$target" in
26256 #~ mips*-*-* | loongarch*-*-* | *-*-hpux* )
26257 #~ if test x$gas_flag = xyes \
26258 #~ || test x"$host" != x"$build" \
26259 #~ || test ! -x "$gcc_cv_as" \
26260 #~ || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
26261 #~ :
26262 #~ else
26263 #~ echo "*** This configuration requires the GNU assembler" >&2
26264 #~ exit 1
26265 #~ fi
26266 #~ ;;
26267 #~ esac
26269 #~ # This tests if the assembler supports two registers for global_load functions
26270 #~ # (like in LLVM versions <12) or one register (like in LLVM 12).
26271 #~ case "$target" in
26272 #~ amdgcn-* | gcn-*)
26273 #~ AC_MSG_CHECKING(assembler fix for global_load functions)
26274 #~ gcc_cv_as_gcn_global_load_fixed=yes
26275 #~ if test x$gcc_cv_as != x; then
26276 #~ cat > conftest.s <<EOF
26277 #~ global_store_dwordx2 v[[1:2]], v[[4:5]], s[[14:15]]
26278 #~ EOF
26279 #~ if $gcc_cv_as -triple=amdgcn--amdhsa -filetype=obj -mcpu=gfx900 -o conftest.o conftest.s > /dev/null 2>&1; then
26280 #~ gcc_cv_as_gcn_global_load_fixed=no
26281 #~ fi
26282 #~ rm -f conftest.s conftest.o conftest
26283 #~ fi
26284 #~ global_load_fixed=`if test x$gcc_cv_as_gcn_global_load_fixed = xyes; then echo 1; else echo 0; fi`
26285 #~ AC_DEFINE_UNQUOTED(HAVE_GCN_ASM_GLOBAL_LOAD_FIXED, $global_load_fixed,
26286 #~ [Define if your assembler has fixed global_load functions.])
26287 #~ AC_MSG_RESULT($gcc_cv_as_gcn_global_load_fixed)
26288 #~ ;;
26289 #~ esac
26291 #~ case "$target" in
26292 #~ amdgcn-* | gcn-*)
26293 #~ # Test the LLVM assembler syntax dialect; they have made a number of
26294 #~ # changes between LLVM 12 & 13 without any backward compatibility.
26295 #~ gcc_GAS_CHECK_FEATURE([assembler amdgcn_target v2/3 syntax],
26296 #~ gcc_cv_as_gcn_asm_v3_syntax,
26297 #~ [-triple=amdgcn--amdhsa -mcpu=gfx906 -mattr=+xnack],
26298 #~ [.amdgcn_target "amdgcn-unknown-amdhsa--gfx906+xnack"],,
26299 #~ [AC_DEFINE(HAVE_GCN_ASM_V3_SYNTAX, 1,
26300 #~ [Define if your assembler expects amdgcn_target gfx908+xnack syntax.])])
26301 #~ gcc_GAS_CHECK_FEATURE([assembler amdgcn_target v4 syntax],
26302 #~ gcc_cv_as_gcn_asm_v4_syntax,
26303 #~ [-triple=amdgcn--amdhsa -mcpu=gfx908 -mattr=+xnack],
26304 #~ [.amdgcn_target "amdgcn-unknown-amdhsa--gfx908:xnack+"],,
26305 #~ [AC_DEFINE(HAVE_GCN_ASM_V4_SYNTAX, 1,
26306 #~ [Define if your assembler expects amdgcn_target gfx908:xnack+ syntax.])])
26308 #~ # Some attribute names changed in the move to v4 ...
26309 #~ if test $gcc_cv_as_gcn_asm_v3_syntax = yes; then
26310 #~ sramopt="+sram-ecc"
26311 #~ sramattr="+sram-ecc"
26312 #~ xnackattr="+xnack"
26313 #~ elif test $gcc_cv_as_gcn_asm_v4_syntax = yes; then
26314 #~ sramopt="+sramecc"
26315 #~ sramattr=":sramecc+"
26316 #~ xnackattr=":xnack+"
26317 #~ else
26318 #~ AC_MSG_ERROR([Unrecognised assembler version])
26319 #~ fi
26321 #~ # Test whether the LLVM assembler accepts -mattr=+xnack without any
26322 #~ # diagnostic. LLVM 9 & 10 accept the option whether it makes sense or not,
26323 #~ # LLVM 12+ throws a warning for GPUs without support.
26324 #~ gcc_GAS_CHECK_FEATURE([assembler accepts -mattr=+xnack for fiji],
26325 #~ gcc_cv_as_gcn_xnack_ecc_fiji,
26326 #~ [-triple=amdgcn--amdhsa -mcpu=fiji -mattr=+xnack 2>conftest.err], [],
26327 #~ [grep "." conftest.err >&AS_MESSAGE_LOG_FD \
26328 #~ || gcc_cv_as_gcn_xnack_ecc_fiji=yes],
26329 #~ [AC_DEFINE(HAVE_GCN_XNACK_FIJI, 1,
26330 #~ [Define if your assembler allows -mattr=+xnack for fiji.])])
26331 #~ rm -f conftest.err
26332 #~ gcc_GAS_CHECK_FEATURE([assembler accepts -mattr=+xnack for gfx900],
26333 #~ gcc_cv_as_gcn_xnack_ecc_gfx900,
26334 #~ [-triple=amdgcn--amdhsa -mcpu=gfx900 -mattr=+xnack 2>conftest.err], [],
26335 #~ [grep "." conftest.err >&AS_MESSAGE_LOG_FD \
26336 #~ || gcc_cv_as_gcn_xnack_ecc_gfx900=yes],
26337 #~ [AC_DEFINE(HAVE_GCN_XNACK_GFX900, 1,
26338 #~ [Define if your assembler allows -mattr=+xnack for gfx900.])])
26339 #~ rm -f conftest.err
26340 #~ gcc_GAS_CHECK_FEATURE([assembler accepts -mattr=+xnack for gfx906],
26341 #~ gcc_cv_as_gcn_xnack_ecc_gfx906,
26342 #~ [-triple=amdgcn--amdhsa -mcpu=gfx906 -mattr=+xnack 2>conftest.err], [],
26343 #~ [grep "." conftest.err >&AS_MESSAGE_LOG_FD \
26344 #~ || gcc_cv_as_gcn_xnack_ecc_gfx906=yes],
26345 #~ [AC_DEFINE(HAVE_GCN_XNACK_GFX906, 1,
26346 #~ [Define if your assembler allows -mattr=+xnack for gfx906.])])
26347 #~ rm -f conftest.err
26348 #~ gcc_GAS_CHECK_FEATURE([assembler accepts -mattr=+xnack for gfx908],
26349 #~ gcc_cv_as_gcn_xnack_ecc_gfx908,
26350 #~ [-triple=amdgcn--amdhsa -mcpu=gfx908 -mattr=+xnack 2>conftest.err], [],
26351 #~ [grep "." conftest.err >&AS_MESSAGE_LOG_FD \
26352 #~ || gcc_cv_as_gcn_xnack_ecc_gfx908=yes],
26353 #~ [AC_DEFINE(HAVE_GCN_XNACK_GFX908, 1,
26354 #~ [Define if your assembler allows -mattr=+xnack for gfx908.])])
26355 #~ rm -f conftest.err
26357 #~ # Test whether the LLVM assembler accepts -mattr=+sramecc without any
26358 #~ # diagnostic. LLVM 9 & 10 accept the option whether it makes sense or not,
26359 #~ # (some?) LLVM 12 rejects it for all GPUs, and LLVM13 throws a warning
26360 #~ # for GPUs without support.
26361 #~ gcc_GAS_CHECK_FEATURE([assembler accepts -mattr=$sramopt for fiji],
26362 #~ gcc_cv_as_gcn_sram_ecc_fiji,
26363 #~ [-triple=amdgcn--amdhsa -mcpu=fiji -mattr=$sramopt 2>conftest.err], [],
26364 #~ [grep "." conftest.err >&AS_MESSAGE_LOG_FD \
26365 #~ || gcc_cv_as_gcn_sram_ecc_fiji=yes],
26366 #~ [AC_DEFINE(HAVE_GCN_SRAM_ECC_FIJI, 1,
26367 #~ [Define if your assembler allows -mattr=+sramecc for fiji.])])
26368 #~ rm -f conftest.err
26369 #~ gcc_GAS_CHECK_FEATURE([assembler accepts -mattr=$sramopt for gfx900],
26370 #~ gcc_cv_as_gcn_sram_ecc_gfx900,
26371 #~ [-triple=amdgcn--amdhsa -mcpu=gfx900 -mattr=$sramopt 2>conftest.err], [],
26372 #~ [grep "." conftest.err >&AS_MESSAGE_LOG_FD \
26373 #~ || gcc_cv_as_gcn_sram_ecc_gfx900=yes],
26374 #~ [AC_DEFINE(HAVE_GCN_SRAM_ECC_GFX900, 1,
26375 #~ [Define if your assembler allows -mattr=+sramecc for gfx900.])])
26376 #~ rm -f conftest.err
26377 #~ gcc_GAS_CHECK_FEATURE([assembler accepts -mattr=$sramopt for gfx906],
26378 #~ gcc_cv_as_gcn_sram_ecc_gfx906,
26379 #~ [-triple=amdgcn--amdhsa -mcpu=gfx906 -mattr=$sramopt 2>conftest.err], [],
26380 #~ [grep "." conftest.err >&AS_MESSAGE_LOG_FD \
26381 #~ || gcc_cv_as_gcn_sram_ecc_gfx906=yes],
26382 #~ [AC_DEFINE(HAVE_GCN_SRAM_ECC_GFX906, 1,
26383 #~ [Define if your assembler allows -mattr=+sramecc for gfx906.])])
26384 #~ rm -f conftest.err
26385 #~ gcc_GAS_CHECK_FEATURE([assembler accepts -mattr=$sramopt for gfx908],
26386 #~ gcc_cv_as_gcn_sram_ecc_gfx908,
26387 #~ [-triple=amdgcn--amdhsa -mcpu=gfx908 -mattr=$sramopt 2>conftest.err], [],
26388 #~ [grep "." conftest.err >&AS_MESSAGE_LOG_FD \
26389 #~ || gcc_cv_as_gcn_sram_ecc_gfx908=yes],
26390 #~ [AC_DEFINE(HAVE_GCN_SRAM_ECC_GFX908, 1,
26391 #~ [Define if your assembler allows -mattr=+sramecc for gfx908.])])
26392 #~ rm -f conftest.err
26393 #~ ;;
26394 #~ arm*)
26395 #~ gcc_GAS_CHECK_FEATURE([assembler for arm accepts context-specific architecture extensions],
26396 #~ gcc_cv_as_arm_option_extensions,
26397 #~ [-march=armv8.1-m.main+mve],
26398 #~ [.text
26399 #~ .thumb
26400 #~ .syntax unified
26401 #~ vmov.f32 s0, s1],,
26402 #~ [AC_DEFINE(HAVE_GAS_ARM_EXTENDED_ARCH, 1,
26403 #~ [Define if your Arm assembler permits context-specific feature extensions.])])
26404 #~ esac
26406 #~ # ??? Not all targets support dwarf2 debug_line, even within a version
26407 #~ # of gas. Moreover, we need to emit a valid instruction to trigger any
26408 #~ # info to the output file. So, as supported targets are added to gas 2.11,
26409 #~ # add some instruction here to (also) show we expect this might work.
26410 #~ # ??? Once 2.11 is released, probably need to add first known working
26411 #~ # version to the per-target configury.
26412 #~ case "$cpu_type" in
26413 #~ aarch64 | alpha | arc | arm | avr | bfin | cris | csky | i386 | loongarch | m32c \
26414 #~ | m68k | microblaze | mips | nds32 | nios2 | pa | riscv | rs6000 | score | sparc \
26415 #~ | tilegx | tilepro | visium | xstormy16 | xtensa)
26416 #~ insn="nop"
26417 #~ ;;
26418 #~ ia64 | s390)
26419 #~ insn="nop 0"
26420 #~ ;;
26421 #~ mmix)
26422 #~ insn="swym 0"
26423 #~ ;;
26424 #~ esac
26425 #~ if test x"$insn" != x; then
26426 #~ conftest_s="\
26427 #~ .file 1 \"conftest.s\"
26428 #~ .loc 1 3 0
26429 #~ $insn"
26430 #~ gcc_GAS_CHECK_FEATURE([dwarf2 debug_line support],
26431 #~ gcc_cv_as_dwarf2_debug_line,,
26432 #~ [$conftest_s],
26433 #~ [if test x$gcc_cv_objdump != x \
26434 #~ && $gcc_cv_objdump -h conftest.o 2> /dev/null \
26435 #~ | grep debug_line > /dev/null 2>&1; then
26436 #~ gcc_cv_as_dwarf2_debug_line=yes
26437 #~ elif test x$gcc_cv_otool != x \
26438 #~ && $gcc_cv_otool -l conftest.o 2> /dev/null \
26439 #~ | grep debug_line > /dev/null 2>&1; then
26440 #~ gcc_cv_as_dwarf2_debug_line=yes
26441 #~ fi])
26443 #~ # The .debug_line file table must be in the exact order that
26444 #~ # we specified the files, since these indices are also used
26445 #~ # by DW_AT_decl_file. Approximate this test by testing if
26446 #~ # the assembler bitches if the same index is assigned twice.
26447 #~ gcc_GAS_CHECK_FEATURE([buggy dwarf2 .file directive],
26448 #~ gcc_cv_as_dwarf2_file_buggy,,
26449 #~ [ .file 1 "foo.s"
26450 #~ .file 1 "bar.s"])
26452 #~ if test $gcc_cv_as_dwarf2_debug_line = yes \
26453 #~ && test $gcc_cv_as_dwarf2_file_buggy = no; then
26454 #~ AC_DEFINE(HAVE_AS_DWARF2_DEBUG_LINE, 1,
26455 #~ [Define if your assembler supports dwarf2 .file/.loc directives,
26456 #~ and preserves file table indices exactly as given.])
26458 #~ if test $gcc_cv_as_leb128 = yes; then
26459 #~ conftest_s="\
26460 #~ .file 1 \"conftest.s\"
26461 #~ .loc 1 3 0 view .LVU1
26462 #~ $insn
26463 #~ .data
26464 #~ .uleb128 .LVU1
26465 #~ .uleb128 .LVU1
26466 #~ "
26467 #~ gcc_GAS_CHECK_FEATURE([dwarf2 debug_view support],
26468 #~ gcc_cv_as_dwarf2_debug_view,,
26469 #~ [$conftest_s],,
26470 #~ [AC_DEFINE(HAVE_AS_DWARF2_DEBUG_VIEW, 1,
26471 #~ [Define if your assembler supports views in dwarf2 .loc directives.])])
26472 #~ fi
26473 #~ fi
26475 #~ gcc_GAS_CHECK_FEATURE([--gdwarf2 option],
26476 #~ gcc_cv_as_gdwarf2_flag,
26477 #~ [--gdwarf2], [$insn],,
26478 #~ [AC_DEFINE(HAVE_AS_GDWARF2_DEBUG_FLAG, 1,
26479 #~ [Define if your assembler supports the --gdwarf2 option.])])
26481 #~ gcc_GAS_CHECK_FEATURE([--gdwarf-5 option],
26482 #~ gcc_cv_as_gdwarf_5_flag,
26483 #~ [--gdwarf-5], [$insn],
26484 #~ [if test x$gcc_cv_objdump != x \
26485 #~ && $gcc_cv_objdump -Wi conftest.o 2>&1 \
26486 #~ | grep DW_TAG_compile_unit > /dev/null 2>&1; then
26487 #~ gcc_cv_as_gdwarf_5_flag=yes;
26488 #~ fi],[AC_DEFINE(HAVE_AS_GDWARF_5_DEBUG_FLAG, 1,
26489 #~ [Define if your assembler supports the --gdwarf-5 option.])])
26491 #~ case $target_os in
26492 #~ win32 | pe | cygwin* | mingw32*)
26493 #~ section_flags=\"dr\"
26494 #~ function_type=".def foo; .scl 2; .type 32; .endef"
26495 #~ function_size="";;
26496 #~ *)
26497 #~ section_flags=\"\",%progbits
26498 #~ function_type=".type foo, %function"
26499 #~ function_size=".size foo, .-foo";;
26500 #~ esac
26501 #~ dwarf4_debug_info_size=0x46
26502 #~ dwarf4_high_pc_form=7
26503 #~ dwarf4_debug_aranges_size=0x2c
26504 #~ dwarf4_line_sz=9
26505 #~ for dwarf4_addr_size in 8 4; do
26506 #~ conftest_s="\
26507 #~ .file \"a.c\"
26508 #~ .text
26509 #~ .Ltext0:
26510 #~ .p2align 4
26511 #~ .globl foo
26512 #~ $function_type
26513 #~ foo:
26514 #~ .LFB0:
26515 #~ .LM1:
26516 #~ $insn
26517 #~ .LM2:
26518 #~ .LFE0:
26519 #~ $function_size
26520 #~ .Letext0:
26521 #~ .section .debug_info,$section_flags
26522 #~ .Ldebug_info0:
26523 #~ .4byte $dwarf4_debug_info_size
26524 #~ .2byte 0x4
26525 #~ .4byte .Ldebug_abbrev0
26526 #~ .byte 0x$dwarf4_addr_size
26527 #~ .byte 0x1
26528 #~ .ascii \"GNU C17\\0\"
26529 #~ .byte 0xc
26530 #~ .ascii \"a.c\\0\"
26531 #~ .ascii \"/\\0\"
26532 #~ .${dwarf4_addr_size}byte .Ltext0
26533 #~ .${dwarf4_addr_size}byte .Letext0-.Ltext0
26534 #~ .4byte .Ldebug_line0
26535 #~ .byte 0x2
26536 #~ .ascii \"foo\\0\"
26537 #~ .byte 0x1
26538 #~ .byte 0x2
26539 #~ .byte 0x1
26540 #~ .${dwarf4_addr_size}byte .LFB0
26541 #~ .${dwarf4_addr_size}byte .LFE0-.LFB0
26542 #~ .byte 0x1
26543 #~ .byte 0x9c
26544 #~ .byte 0
26545 #~ .section .debug_abbrev,$section_flags
26546 #~ .Ldebug_abbrev0:
26547 #~ .byte 0x1
26548 #~ .byte 0x11
26549 #~ .byte 0x1
26550 #~ .byte 0x25
26551 #~ .byte 0x8
26552 #~ .byte 0x13
26553 #~ .byte 0xb
26554 #~ .byte 0x3
26555 #~ .byte 0x8
26556 #~ .byte 0x1b
26557 #~ .byte 0x8
26558 #~ .byte 0x11
26559 #~ .byte 0x1
26560 #~ .byte 0x12
26561 #~ .byte 0x$dwarf4_high_pc_form
26562 #~ .byte 0x10
26563 #~ .byte 0x17
26564 #~ .byte 0
26565 #~ .byte 0
26566 #~ .byte 0x2
26567 #~ .byte 0x2e
26568 #~ .byte 0
26569 #~ .byte 0x3f
26570 #~ .byte 0x19
26571 #~ .byte 0x3
26572 #~ .byte 0x8
26573 #~ .byte 0x3a
26574 #~ .byte 0xb
26575 #~ .byte 0x3b
26576 #~ .byte 0xb
26577 #~ .byte 0x39
26578 #~ .byte 0xb
26579 #~ .byte 0x11
26580 #~ .byte 0x1
26581 #~ .byte 0x12
26582 #~ .byte 0x$dwarf4_high_pc_form
26583 #~ .byte 0x40
26584 #~ .byte 0x18
26585 #~ .byte 0
26586 #~ .byte 0
26587 #~ .byte 0
26588 #~ .section .debug_aranges,$section_flags
26589 #~ .4byte $dwarf4_debug_aranges_size
26590 #~ .2byte 0x2
26591 #~ .4byte .Ldebug_info0
26592 #~ .byte 0x8
26593 #~ .byte 0
26594 #~ .2byte 0
26595 #~ .2byte 0
26596 #~ .${dwarf4_addr_size}byte .Ltext0
26597 #~ .${dwarf4_addr_size}byte .Letext0-.Ltext0
26598 #~ .${dwarf4_addr_size}byte 0
26599 #~ .${dwarf4_addr_size}byte 0
26600 #~ .section .debug_line,$section_flags
26601 #~ .Ldebug_line0:
26602 #~ .4byte .LELT0-.LSLT0
26603 #~ .LSLT0:
26604 #~ .2byte 0x4
26605 #~ .4byte .LELTP0-.LASLTP0
26606 #~ .LASLTP0:
26607 #~ .byte 0x1
26608 #~ .byte 0x1
26609 #~ .byte 0x1
26610 #~ .byte 0xf6
26611 #~ .byte 0xf2
26612 #~ .byte 0xd
26613 #~ .byte 0
26614 #~ .byte 0x1
26615 #~ .byte 0x1
26616 #~ .byte 0x1
26617 #~ .byte 0x1
26618 #~ .byte 0
26619 #~ .byte 0
26620 #~ .byte 0
26621 #~ .byte 0x1
26622 #~ .byte 0
26623 #~ .byte 0
26624 #~ .byte 0x1
26625 #~ .byte 0
26626 #~ .ascii \"a.c\\0\"
26627 #~ .byte 0
26628 #~ .byte 0
26629 #~ .byte 0
26630 #~ .byte 0
26631 #~ .LELTP0:
26632 #~ .byte 0
26633 #~ .byte 0x$dwarf4_line_sz
26634 #~ .byte 0x2
26635 #~ .${dwarf4_addr_size}byte .LM1
26636 #~ .byte 0x18
26637 #~ .byte 0x5
26638 #~ .byte 0x1
26639 #~ .byte 0
26640 #~ .byte 0x$dwarf4_line_sz
26641 #~ .byte 0x2
26642 #~ .${dwarf4_addr_size}byte .LM2
26643 #~ .byte 0x1
26644 #~ .byte 0x5
26645 #~ .byte 0x1
26646 #~ .byte 0
26647 #~ .byte 0x$dwarf4_line_sz
26648 #~ .byte 0x2
26649 #~ .${dwarf4_addr_size}byte .Letext0
26650 #~ .byte 0
26651 #~ .byte 0x1
26652 #~ .byte 0x1
26653 #~ .LELT0:
26654 #~ .section .debug_str,$section_flags
26655 #~ .ident \"GCC\"
26656 #~ "
26657 #~ dwarf4_success=no
26658 #~ if test $dwarf4_addr_size = 4; then
26659 #~ gcc_GAS_CHECK_FEATURE([assembly of compiler generated 32-bit .debug_line],
26660 #~ gcc_cv_as_debug_line_32_flag,,
26661 #~ [$conftest_s],,
26662 #~ [dwarf4_success=yes])
26663 #~ else
26664 #~ gcc_GAS_CHECK_FEATURE([assembly of compiler generated 64-bit .debug_line],
26665 #~ gcc_cv_as_debug_line_64_flag,,
26666 #~ [$conftest_s],,
26667 #~ [dwarf4_success=yes])
26668 #~ fi
26669 #~ if test $dwarf4_success = yes; then
26670 #~ dwarf4_success=no
26671 #~ gcc_GAS_CHECK_FEATURE([--gdwarf-4 not refusing compiler generated .debug_line],
26672 #~ gcc_cv_as_dwarf_4_debug_line_flag,
26673 #~ [--gdwarf-4], [$conftest_s],,
26674 #~ [dwarf4_success=yes])
26675 #~ break
26676 #~ fi
26677 #~ dwarf4_debug_info_size=0x36
26678 #~ dwarf4_high_pc_form=6
26679 #~ dwarf4_debug_aranges_size=0x1c
26680 #~ dwarf4_line_sz=5
26681 #~ done
26683 #~ if test $dwarf4_success = yes; then
26684 #~ conftest_s="\
26685 #~ .file \"foo.c\"
26686 #~ .text
26687 #~ bar:
26688 #~ #APP
26689 #~ # 82 \"xxx.h\" 1
26690 #~ $insn
26691 #~ # 0 \"\" 2
26692 #~ #NO_APP
26693 #~ $insn
26694 #~ foo:
26695 #~ .file 1 \"foo.c\"
26696 #~ $insn
26697 #~ .file 2 \"foo.h\"
26698 #~ ret
26699 #~ "
26700 #~ dwarf4_success=no
26701 #~ gcc_GAS_CHECK_FEATURE([--gdwarf-4 with the APP marker],
26702 #~ gcc_cv_as_dwarf_4_app_flag,
26703 #~ [--gdwarf-4], [$conftest_s],, [dwarf4_success=yes])
26704 #~ fi
26706 #~ if test $dwarf4_success = yes; then
26707 #~ conftest_s="\
26708 #~ .text
26709 #~ .globl foo
26710 #~ $function_type
26711 #~ foo:
26712 #~ $insn
26713 #~ $function_size
26714 #~ .file 1 \"foo.c\"
26715 #~ "
26716 #~ gcc_GAS_CHECK_FEATURE([working --gdwarf-4/--gdwarf-5 for all sources],
26717 #~ gcc_cv_as_working_gdwarf_n_flag,
26718 #~ [--gdwarf-4],
26719 #~ [$conftest_s],
26720 #~ [changequote(,)dnl
26721 #~ if test x$gcc_cv_objdump != x \
26722 #~ && $gcc_cv_objdump -W conftest.o 2>&1 \
26723 #~ | grep conftest.s > /dev/null 2>&1; then
26724 #~ gcc_cv_as_working_gdwarf_n_flag=no
26725 #~ else
26726 #~ gcc_cv_as_working_gdwarf_n_flag=yes
26727 #~ fi
26728 #~ changequote([,])dnl])
26729 #~ if test $gcc_cv_as_working_gdwarf_n_flag = yes; then
26730 #~ AC_DEFINE(HAVE_AS_WORKING_DWARF_N_FLAG, 1,
26731 #~ [Define if your assembler supports --gdwarf-4/--gdwarf-5 even with
26732 #~ compiler generated .debug_line.])
26733 #~ fi
26734 #~ fi
26736 #~ gcc_GAS_CHECK_FEATURE([--gstabs option],
26737 #~ gcc_cv_as_gstabs_flag,
26738 #~ [--gstabs], [$insn],,
26739 #~ [AC_DEFINE(HAVE_AS_GSTABS_DEBUG_FLAG, 1,
26740 #~ [Define if your assembler supports the --gstabs option.])])
26742 #~ gcc_GAS_CHECK_FEATURE([--debug-prefix-map option],
26743 #~ gcc_cv_as_debug_prefix_map_flag,
26744 #~ [--debug-prefix-map /a=/b], [$insn],,
26745 #~ [AC_DEFINE(HAVE_AS_DEBUG_PREFIX_MAP, 1,
26746 #~ [Define if your assembler supports the --debug-prefix-map option.])])
26747 #~ fi
26749 #~ gcc_GAS_CHECK_FEATURE([compressed debug sections],
26750 #~ gcc_cv_as_compress_debug,,,
26751 #~ [# gas compiled without zlib cannot compress debug sections and warns
26752 #~ # about it, but still exits successfully. So check for this, too.
26753 #~ if $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null
26754 #~ then
26755 #~ gcc_cv_as_compress_debug=0
26756 #~ # Since binutils 2.26, gas supports --compress-debug-sections=type,
26757 #~ # defaulting to the ELF gABI format.
26758 #~ elif $gcc_cv_as --compress-debug-sections=zlib-gnu -o conftest.o conftest.s > /dev/null 2>&1
26759 #~ then
26760 #~ gcc_cv_as_compress_debug=2
26761 #~ gcc_cv_as_compress_debug_option="--compress-debug-sections"
26762 #~ gcc_cv_as_no_compress_debug_option="--nocompress-debug-sections"
26763 #~ # Before binutils 2.26, gas only supported --compress-debug-options and
26764 #~ # emitted the traditional GNU format.
26765 #~ elif $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s > /dev/null 2>&1
26766 #~ then
26767 #~ gcc_cv_as_compress_debug=1
26768 #~ gcc_cv_as_compress_debug_option="--compress-debug-sections"
26769 #~ gcc_cv_as_no_compress_debug_option="--nocompress-debug-sections"
26770 #~ else
26771 #~ gcc_cv_as_compress_debug=0
26772 #~ fi])
26773 #~ AC_DEFINE_UNQUOTED(HAVE_AS_COMPRESS_DEBUG, $gcc_cv_as_compress_debug,
26774 #~ [Define to the level of your assembler's compressed debug section support.])
26775 #~ AC_DEFINE_UNQUOTED(AS_COMPRESS_DEBUG_OPTION, "$gcc_cv_as_compress_debug_option",
26776 #~ [Define to the assembler option to enable compressed debug sections.])
26777 #~ AC_DEFINE_UNQUOTED(AS_NO_COMPRESS_DEBUG_OPTION, "$gcc_cv_as_no_compress_debug_option",
26778 #~ [Define to the assembler option to disable compressed debug sections.])
26780 #~ gcc_GAS_CHECK_FEATURE([.lcomm with alignment], gcc_cv_as_lcomm_with_alignment,,
26781 #~ [.lcomm bar,4,16],,
26782 #~ [AC_DEFINE(HAVE_GAS_LCOMM_WITH_ALIGNMENT, 1,
26783 #~ [Define if your assembler supports .lcomm with an alignment field.])])
26785 #~ if test x$with_sysroot = x && test x$host = x$target \
26786 #~ && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
26787 #~ && test "$prefix" != "NONE"; then
26788 #~ AC_DEFINE_UNQUOTED(PREFIX_INCLUDE_DIR, "$prefix/include",
26789 #~ [Define to PREFIX/include if cpp should also search that directory.])
26790 #~ fi
26792 #~ # Determine the version of glibc, if any, used on the target.
26793 #~ AC_MSG_CHECKING([for target glibc version])
26794 #~ AC_ARG_WITH([glibc-version],
26795 #~ [AS_HELP_STRING([--with-glibc-version=M.N],
26796 #~ [assume GCC used with glibc version M.N or later])], [
26797 #~ if [echo "$with_glibc_version" | grep '^[0-9][0-9]*\.[0-9][0-9]*$']; then
26798 #~ glibc_version_major=`echo "$with_glibc_version" | sed -e 's/\..*//'`
26799 #~ glibc_version_minor=`echo "$with_glibc_version" | sed -e 's/.*\.//'`
26800 #~ else
26801 #~ AC_MSG_ERROR([option --with-glibc-version requires a version number M.N])
26802 #~ fi], [
26803 #~ glibc_version_major=0
26804 #~ glibc_version_minor=0
26805 #~ [if test -f $target_header_dir/features.h \
26806 #~ && glibc_version_major_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+[0-9]' $target_header_dir/features.h` \
26807 #~ && glibc_version_minor_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+[0-9]' $target_header_dir/features.h`; then
26808 #~ glibc_version_major=`echo "$glibc_version_major_define" | sed -e 's/.*__GLIBC__[ ]*//'`
26809 #~ glibc_version_minor=`echo "$glibc_version_minor_define" | sed -e 's/.*__GLIBC_MINOR__[ ]*//'`
26810 #~ fi]])
26811 #~ AC_MSG_RESULT([$glibc_version_major.$glibc_version_minor])
26812 #~ AC_DEFINE_UNQUOTED([TARGET_GLIBC_MAJOR], [$glibc_version_major],
26813 #~ [GNU C Library major version number used on the target, or 0.])
26814 #~ AC_DEFINE_UNQUOTED([TARGET_GLIBC_MINOR], [$glibc_version_minor],
26815 #~ [GNU C Library minor version number used on the target, or 0.])
26817 #~ AC_ARG_ENABLE(gnu-unique-object,
26818 #~ [AS_HELP_STRING([--enable-gnu-unique-object],
26819 #~ [enable the use of the @gnu_unique_object ELF extension on glibc systems])],
26820 #~ [case $enable_gnu_unique_object in
26821 #~ yes | no) ;;
26822 #~ *) AC_MSG_ERROR(['$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
26823 #~ Valid choices are 'yes' and 'no'.]) ;;
26824 #~ esac],
26825 #~ [gcc_GAS_CHECK_FEATURE([gnu_unique_object], gcc_cv_as_gnu_unique_object,,
26826 #~ [.type foo, '$target_type_format_char'gnu_unique_object],,
26827 #~ # We need to unquote above to to use the definition from config.gcc.
26828 #~ # Also check for ld.so support, i.e. glibc 2.11 or higher.
26829 #~ [GCC_GLIBC_VERSION_GTE_IFELSE([2], [11], [enable_gnu_unique_object=yes], )]
26830 #~ )])
26831 #~ if test x$enable_gnu_unique_object = xyes; then
26832 #~ AC_DEFINE(HAVE_GAS_GNU_UNIQUE_OBJECT, 1,
26833 #~ [Define if your assembler supports @gnu_unique_object.])
26834 #~ fi
26836 #~ AC_CACHE_CHECK([assembler for tolerance to line number 0],
26837 #~ [gcc_cv_as_line_zero],
26838 #~ [gcc_cv_as_line_zero=no
26839 #~ if test "x$gcc_cv_as" != x; then
26840 #~ { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
26841 #~ if AC_TRY_COMMAND([$gcc_cv_as -o conftest.o conftest.s >&AS_MESSAGE_LOG_FD 2>conftest.out]) &&
26842 #~ test "x`cat conftest.out`" = x
26843 #~ then
26844 #~ gcc_cv_as_line_zero=yes
26845 #~ else
26846 #~ echo "configure: failed program was" >&AS_MESSAGE_LOG_FD
26847 #~ cat conftest.s >&AS_MESSAGE_LOG_FD
26848 #~ echo "configure: error output was" >&AS_MESSAGE_LOG_FD
26849 #~ cat conftest.out >&AS_MESSAGE_LOG_FD
26850 #~ fi
26851 #~ rm -f conftest.o conftest.s conftest.out
26852 #~ fi])
26853 #~ if test "x$gcc_cv_as_line_zero" = xyes; then
26854 #~ AC_DEFINE([HAVE_AS_LINE_ZERO], 1,
26855 #~ [Define if the assembler won't complain about a line such as # 0 "" 2.])
26856 #~ fi
26858 #~ AC_MSG_CHECKING(support for thin archives)
26859 #~ thin_archive_support=no
26860 #~ echo 'int main (void) { return 0; }' > conftest.c
26861 #~ if ($AR --version | sed 1q | grep "GNU ar" \
26862 #~ && $CC $CFLAGS -c conftest.c \
26863 #~ && $AR rcT conftest.a conftest.o \
26864 #~ && $CC $CFLAGS $LDFLAGS -o conftest conftest.a) >/dev/null 2>&1; then
26865 #~ thin_archive_support=yes
26866 #~ fi
26867 #~ rm -f conftest.c conftest.o conftest.a conftest
26868 #~ AC_MSG_RESULT($thin_archive_support)
26869 #~ AC_SUBST(thin_archive_support)
26871 #~ AC_MSG_CHECKING(linker PT_GNU_EH_FRAME support)
26872 #~ gcc_cv_ld_eh_frame_hdr=no
26873 #~ if test $in_tree_ld = yes ; then
26874 #~ 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 \
26875 #~ && test $in_tree_ld_is_elf = yes; then
26876 #~ gcc_cv_ld_eh_frame_hdr=yes
26877 #~ fi
26878 #~ elif test x$gcc_cv_ld != x; then
26879 #~ if echo "$ld_ver" | grep GNU > /dev/null; then
26880 #~ # Check if linker supports --eh-frame-hdr option
26881 #~ if $gcc_cv_ld --help 2>&1 | grep eh-frame-hdr > /dev/null; then
26882 #~ gcc_cv_ld_eh_frame_hdr=yes
26883 #~ fi
26884 #~ else
26885 #~ case "$target" in
26886 #~ *-*-solaris2*)
26887 #~ # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
26888 #~ if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2251; then
26889 #~ gcc_cv_ld_eh_frame_hdr=yes
26890 #~ fi
26891 #~ ;;
26892 #~ esac
26893 #~ fi
26894 #~ fi
26895 #~ GCC_TARGET_TEMPLATE([HAVE_LD_EH_FRAME_HDR])
26896 #~ if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
26897 #~ AC_DEFINE(HAVE_LD_EH_FRAME_HDR, 1,
26898 #~ [Define if your linker supports .eh_frame_hdr.])
26899 #~ fi
26900 #~ AC_MSG_RESULT($gcc_cv_ld_eh_frame_hdr)
26902 #~ AC_MSG_CHECKING(linker CIEv3 in .eh_frame support)
26903 #~ gcc_cv_ld_eh_frame_ciev3=no
26904 #~ if test $in_tree_ld = yes ; then
26905 #~ 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 \
26906 #~ && test $in_tree_ld_is_elf = yes; then
26907 #~ gcc_cv_ld_eh_frame_ciev3=yes
26908 #~ fi
26909 #~ elif test x$gcc_cv_ld != x; then
26910 #~ if echo "$ld_ver" | grep GNU > /dev/null; then
26911 #~ gcc_cv_ld_eh_frame_ciev3=yes
26912 #~ if test 0"$ld_date" -lt 20040513; then
26913 #~ if test -n "$ld_date"; then
26914 #~ # If there was date string, but was earlier than 2004-05-13, fail
26915 #~ gcc_cv_ld_eh_frame_ciev3=no
26916 #~ elif test "$ld_vers_major" -lt 2; then
26917 #~ gcc_cv_ld_eh_frame_ciev3=no
26918 #~ elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
26919 #~ gcc_cv_ld_eh_frame_ciev3=no
26920 #~ fi
26921 #~ fi
26922 #~ else
26923 #~ case "$target" in
26924 #~ *-*-solaris2*)
26925 #~ # Sun ld added support for CIE v3 in .eh_frame in Solaris 11.1.
26926 #~ if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2324; then
26927 #~ gcc_cv_ld_eh_frame_ciev3=yes
26928 #~ fi
26929 #~ ;;
26930 #~ esac
26931 #~ fi
26932 #~ fi
26933 #~ AC_DEFINE_UNQUOTED(HAVE_LD_EH_FRAME_CIEV3,
26934 #~ [`if test x"$gcc_cv_ld_eh_frame_ciev3" = xyes; then echo 1; else echo 0; fi`],
26935 #~ [Define 0/1 if your linker supports CIE v3 in .eh_frame.])
26936 #~ AC_MSG_RESULT($gcc_cv_ld_eh_frame_ciev3)
26938 #~ AC_MSG_CHECKING(linker position independent executable support)
26939 #~ gcc_cv_ld_pie=no
26940 #~ if test $in_tree_ld = yes ; then
26941 #~ case "$target" in
26942 #~ # Full PIE support on Solaris was only introduced in gld 2.26.
26943 #~ *-*-solaris2*) gcc_gld_pie_min_version=26 ;;
26944 #~ *) gcc_gld_pie_min_version=15 ;;
26945 #~ esac
26946 #~ 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 \
26947 #~ && test $in_tree_ld_is_elf = yes; then
26948 #~ gcc_cv_ld_pie=yes
26949 #~ fi
26950 #~ elif test x$gcc_cv_ld != x; then
26951 #~ # Check if linker supports -pie option
26952 #~ if $gcc_cv_ld --help 2>&1 | grep -- -pie > /dev/null; then
26953 #~ gcc_cv_ld_pie=yes
26954 #~ case "$target" in
26955 #~ *-*-solaris2*)
26956 #~ if echo "$ld_ver" | grep GNU > /dev/null \
26957 #~ && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
26958 #~ gcc_cv_ld_pie=no
26959 #~ fi
26960 #~ ;;
26961 #~ esac
26962 #~ else
26963 #~ case "$target" in
26964 #~ *-*-solaris2.1[[1-9]]*)
26965 #~ # Solaris 11.3 added PIE support.
26966 #~ if $gcc_cv_ld -z help 2>&1 | grep -- type.*pie > /dev/null; then
26967 #~ gcc_cv_ld_pie=yes
26968 #~ fi
26969 #~ ;;
26970 #~ esac
26971 #~ fi
26972 #~ fi
26973 #~ if test x"$gcc_cv_ld_pie" = xyes; then
26974 #~ AC_DEFINE(HAVE_LD_PIE, 1,
26975 #~ [Define if your linker supports PIE option.])
26976 #~ fi
26977 #~ AC_MSG_RESULT($gcc_cv_ld_pie)
26979 #~ AC_MSG_CHECKING(linker PIE support with copy reloc)
26980 #~ gcc_cv_ld_pie_copyreloc=no
26981 #~ if test $gcc_cv_ld_pie = yes ; then
26982 #~ if test $in_tree_ld = yes ; then
26983 #~ 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
26984 #~ gcc_cv_ld_pie_copyreloc=yes
26985 #~ fi
26986 #~ elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
26987 #~ # Check if linker supports -pie option with copy reloc
26988 #~ case "$target" in
26989 #~ i?86-*-linux* | x86_64-*-linux*)
26990 #~ cat > conftest1.s <<EOF
26991 #~ .globl a_glob
26992 #~ .data
26993 #~ .type a_glob, @object
26994 #~ .size a_glob, 4
26995 #~ a_glob:
26996 #~ .long 2
26997 #~ EOF
26998 #~ cat > conftest2.s <<EOF
26999 #~ .text
27000 #~ .globl main
27001 #~ .type main, @function
27002 #~ main:
27003 #~ movl %eax, a_glob(%rip)
27004 #~ .size main, .-main
27005 #~ .globl ptr
27006 #~ .section .data.rel,"aw",@progbits
27007 #~ .type ptr, @object
27008 #~ ptr:
27009 #~ .quad a_glob
27010 #~ EOF
27011 #~ if $gcc_cv_as --64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
27012 #~ && $gcc_cv_ld -shared -melf_x86_64 -o conftest1.so conftest1.o > /dev/null 2>&1 \
27013 #~ && $gcc_cv_as --64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
27014 #~ && $gcc_cv_ld -pie -melf_x86_64 -o conftest conftest2.o conftest1.so > /dev/null 2>&1; then
27015 #~ gcc_cv_ld_pie_copyreloc=yes
27016 #~ fi
27017 #~ rm -f conftest conftest1.so conftest1.o conftest2.o conftest1.s conftest2.s
27018 #~ ;;
27019 #~ esac
27020 #~ fi
27021 #~ fi
27022 #~ AC_DEFINE_UNQUOTED(HAVE_LD_PIE_COPYRELOC,
27023 #~ [`if test x"$gcc_cv_ld_pie_copyreloc" = xyes; then echo 1; else echo 0; fi`],
27024 #~ [Define 0/1 if your linker supports -pie option with copy reloc.])
27025 #~ AC_MSG_RESULT($gcc_cv_ld_pie_copyreloc)
27027 #~ AC_MSG_CHECKING(linker EH-compatible garbage collection of sections)
27028 #~ gcc_cv_ld_eh_gc_sections=no
27029 #~ if test $in_tree_ld = yes ; then
27030 #~ 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 \
27031 #~ && test $in_tree_ld_is_elf = yes; then
27032 #~ gcc_cv_ld_eh_gc_sections=yes
27033 #~ fi
27034 #~ elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
27035 #~ cat > conftest.s <<EOF
27036 #~ .section .text
27037 #~ .globl _start
27038 #~ .type _start, @function
27039 #~ _start:
27040 #~ .long foo
27041 #~ .size _start, .-_start
27042 #~ .section .text.foo,"ax",@progbits
27043 #~ .type foo, @function
27044 #~ foo:
27045 #~ .long 0
27046 #~ .size foo, .-foo
27047 #~ .section .gcc_except_table.foo,"a",@progbits
27048 #~ .L0:
27049 #~ .long 0
27050 #~ .section .eh_frame,"a",@progbits
27051 #~ .long .L0
27052 #~ EOF
27053 #~ if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
27054 #~ if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
27055 #~ | grep "gc-sections option ignored" > /dev/null; then
27056 #~ gcc_cv_ld_eh_gc_sections=no
27057 #~ elif $gcc_cv_objdump -h conftest 2> /dev/null \
27058 #~ | grep gcc_except_table > /dev/null; then
27059 #~ gcc_cv_ld_eh_gc_sections=yes
27060 #~ # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
27061 #~ if test x$gcc_cv_as_comdat_group != xyes; then
27062 #~ gcc_cv_ld_eh_gc_sections=no
27063 #~ cat > conftest.s <<EOF
27064 #~ .section .text
27065 #~ .globl _start
27066 #~ .type _start, @function
27067 #~ _start:
27068 #~ .long foo
27069 #~ .size _start, .-_start
27070 #~ .section .gnu.linkonce.t.foo,"ax",@progbits
27071 #~ .type foo, @function
27072 #~ foo:
27073 #~ .long 0
27074 #~ .size foo, .-foo
27075 #~ .section .gcc_except_table.foo,"a",@progbits
27076 #~ .L0:
27077 #~ .long 0
27078 #~ .section .eh_frame,"a",@progbits
27079 #~ .long .L0
27080 #~ EOF
27081 #~ if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
27082 #~ if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
27083 #~ | grep "gc-sections option ignored" > /dev/null; then
27084 #~ gcc_cv_ld_eh_gc_sections=no
27085 #~ elif $gcc_cv_objdump -h conftest 2> /dev/null \
27086 #~ | grep gcc_except_table > /dev/null; then
27087 #~ gcc_cv_ld_eh_gc_sections=yes
27088 #~ fi
27089 #~ fi
27090 #~ fi
27091 #~ fi
27092 #~ fi
27093 #~ rm -f conftest.s conftest.o conftest
27094 #~ fi
27095 #~ case "$target" in
27096 #~ hppa*-*-linux*)
27097 #~ # ??? This apparently exposes a binutils bug with PC-relative relocations.
27098 #~ gcc_cv_ld_eh_gc_sections=no
27099 #~ ;;
27100 #~ esac
27101 #~ if test x$gcc_cv_ld_eh_gc_sections = xyes; then
27102 #~ AC_DEFINE(HAVE_LD_EH_GC_SECTIONS, 1,
27103 #~ [Define if your linker supports garbage collection of
27104 #~ sections in presence of EH frames.])
27105 #~ fi
27106 #~ AC_MSG_RESULT($gcc_cv_ld_eh_gc_sections)
27108 #~ AC_MSG_CHECKING(linker EH garbage collection of sections bug)
27109 #~ gcc_cv_ld_eh_gc_sections_bug=no
27110 #~ if test $in_tree_ld = yes ; then
27111 #~ 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 \
27112 #~ && test $in_tree_ld_is_elf = yes; then
27113 #~ gcc_cv_ld_eh_gc_sections_bug=yes
27114 #~ fi
27115 #~ 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
27116 #~ gcc_cv_ld_eh_gc_sections_bug=yes
27117 #~ cat > conftest.s <<EOF
27118 #~ .section .text
27119 #~ .globl _start
27120 #~ .type _start, @function
27121 #~ _start:
27122 #~ .long foo
27123 #~ .size _start, .-_start
27124 #~ .section .text.startup.foo,"ax",@progbits
27125 #~ .type foo, @function
27126 #~ foo:
27127 #~ .long 0
27128 #~ .size foo, .-foo
27129 #~ .section .gcc_except_table.foo,"a",@progbits
27130 #~ .L0:
27131 #~ .long 0
27132 #~ .section .eh_frame,"a",@progbits
27133 #~ .long .L0
27134 #~ EOF
27135 #~ if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
27136 #~ if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
27137 #~ | grep "gc-sections option ignored" > /dev/null; then
27138 #~ :
27139 #~ elif $gcc_cv_objdump -h conftest 2> /dev/null \
27140 #~ | grep gcc_except_table > /dev/null; then
27141 #~ gcc_cv_ld_eh_gc_sections_bug=no
27142 #~ fi
27143 #~ fi
27144 #~ rm -f conftest.s conftest.o conftest
27145 #~ fi
27146 #~ if test x$gcc_cv_ld_eh_gc_sections_bug = xyes; then
27147 #~ AC_DEFINE(HAVE_LD_EH_GC_SECTIONS_BUG, 1,
27148 #~ [Define if your linker has buggy garbage collection of
27149 #~ sections support when .text.startup.foo like sections are used.])
27150 #~ fi
27151 #~ AC_MSG_RESULT($gcc_cv_ld_eh_gc_sections_bug)
27153 #~ AC_MSG_CHECKING(linker for compressed debug sections)
27154 #~ # gold/gld support compressed debug sections since binutils 2.19/2.21
27155 #~ # In binutils 2.26, gld gained support for the ELF gABI format.
27156 #~ if test $in_tree_ld = yes ; then
27157 #~ gcc_cv_ld_compress_debug=0
27158 #~ if test $ld_is_mold = yes; then
27159 #~ gcc_cv_ld_compress_debug=3
27160 #~ gcc_cv_ld_compress_debug_option="--compress-debug-sections"
27161 #~ elif test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 19 -o "$gcc_cv_gld_major_version" -gt 2 \
27162 #~ && test $in_tree_ld_is_elf = yes && test $ld_is_gold = yes; then
27163 #~ gcc_cv_ld_compress_debug=2
27164 #~ gcc_cv_ld_compress_debug_option="--compress-debug-sections"
27165 #~ elif test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 26 -o "$gcc_cv_gld_major_version" -gt 2 \
27166 #~ && test $in_tree_ld_is_elf = yes && test $ld_is_gold = no; then
27167 #~ gcc_cv_ld_compress_debug=3
27168 #~ gcc_cv_ld_compress_debug_option="--compress-debug-sections"
27169 #~ elif test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 21 -o "$gcc_cv_gld_major_version" -gt 2 \
27170 #~ && test $in_tree_ld_is_elf = yes; then
27171 #~ gcc_cv_ld_compress_debug=1
27172 #~ fi
27173 #~ elif echo "$ld_ver" | grep GNU > /dev/null; then
27174 #~ if test $ld_is_mold = yes; then
27175 #~ gcc_cv_ld_compress_debug=3
27176 #~ gcc_cv_ld_compress_debug_option="--compress-debug-sections"
27177 #~ elif test "$ld_vers_major" -lt 2 \
27178 #~ || test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 21; then
27179 #~ gcc_cv_ld_compress_debug=0
27180 #~ elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
27181 #~ gcc_cv_ld_compress_debug=1
27182 #~ else
27183 #~ gcc_cv_ld_compress_debug=3
27184 #~ gcc_cv_ld_compress_debug_option="--compress-debug-sections"
27185 #~ fi
27186 #~ if test $ld_is_gold = yes; then
27187 #~ gcc_cv_ld_compress_debug=2
27188 #~ gcc_cv_ld_compress_debug_option="--compress-debug-sections"
27189 #~ fi
27190 #~ else
27191 #~ changequote(,)dnl
27192 #~ case "${target}" in
27193 #~ *-*-solaris2*)
27194 #~ # Introduced in Solaris 11.2.
27195 #~ if $gcc_cv_ld --help 2>&1 | grep -- '-z compress-sections' > /dev/null; then
27196 #~ gcc_cv_ld_compress_debug=3
27197 #~ gcc_cv_ld_compress_debug_option="-z compress-sections"
27198 #~ else
27199 #~ gcc_cv_ld_compress_debug=0
27200 #~ fi
27201 #~ ;;
27202 #~ *)
27203 #~ # Assume linkers other than GNU ld don't support compessed debug
27204 #~ # sections.
27205 #~ gcc_cv_ld_compress_debug=0
27206 #~ ;;
27207 #~ esac
27208 #~ changequote([,])dnl
27209 #~ fi
27210 #~ AC_DEFINE_UNQUOTED(HAVE_LD_COMPRESS_DEBUG, $gcc_cv_ld_compress_debug,
27211 #~ [Define to the level of your linker's compressed debug section support.])
27212 #~ AC_DEFINE_UNQUOTED(LD_COMPRESS_DEBUG_OPTION, "$gcc_cv_ld_compress_debug_option",
27213 #~ [Define to the linker option to enable compressed debug sections.])
27214 #~ AC_MSG_RESULT($gcc_cv_ld_compress_debug)
27216 if test x"$ld64_flag" = x"yes"; then
27218 # Set defaults for possibly untestable items.
27219 gcc_cv_ld64_export_dynamic=0
27220 gcc_cv_ld64_platform_version=0
27222 if test "$build" = "$host"; then
27223 darwin_try_test=1
27224 else
27225 darwin_try_test=0
27228 # On Darwin, because of FAT library support, it is often possible to execute
27229 # exes from compatible archs even when the host differs from the build system.
27230 case "$build","$host" in
27231 x86_64-*-darwin*,i?86-*-darwin* | powerpc64*-*-darwin*,powerpc*-*-darwin*)
27232 darwin_try_test=1;;
27233 *) ;;
27234 esac
27236 # If the configurer specified a minimum ld64 version to be supported, then use
27237 # that to determine feature support.
27238 if test x"${gcc_cv_ld64_version}" != x; then
27239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ld64 specified version" >&5
27240 $as_echo_n "checking ld64 specified version... " >&6; }
27241 gcc_cv_ld64_major=`echo "$gcc_cv_ld64_version" | sed -e 's/\..*//'`
27242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_major" >&5
27243 $as_echo "$gcc_cv_ld64_major" >&6; }
27244 if test "$gcc_cv_ld64_major" -ge 236; then
27245 gcc_cv_ld64_export_dynamic=1
27247 if test "$gcc_cv_ld64_major" -ge 512; then
27248 gcc_cv_ld64_platform_version=1
27250 elif test -x "$gcc_cv_ld" -a "$darwin_try_test" -eq 1; then
27251 # If the version was not specified, try to find it.
27252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker version" >&5
27253 $as_echo_n "checking linker version... " >&6; }
27254 if test x"${gcc_cv_ld64_version}" = x; then
27255 gcc_cv_ld64_version=`$gcc_cv_ld -v 2>&1 | grep ld64 | sed s/.*ld64-// | awk '{print $1}'`
27257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_version" >&5
27258 $as_echo "$gcc_cv_ld64_version" >&6; }
27260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for -export_dynamic support" >&5
27261 $as_echo_n "checking linker for -export_dynamic support... " >&6; }
27262 gcc_cv_ld64_export_dynamic=1
27263 if $gcc_cv_ld -export_dynamic < /dev/null 2>&1 | grep 'unknown option' > /dev/null; then
27264 gcc_cv_ld64_export_dynamic=0
27266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_export_dynamic" >&5
27267 $as_echo "$gcc_cv_ld64_export_dynamic" >&6; }
27269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for -platform_version support" >&5
27270 $as_echo_n "checking linker for -platform_version support... " >&6; }
27271 gcc_cv_ld64_platform_version=1
27272 if $gcc_cv_ld -platform_version macos 10.5 0.0 < /dev/null 2>&1 | grep 'unknown option' > /dev/null; then
27273 gcc_cv_ld64_platform_version=0
27275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_platform_version" >&5
27276 $as_echo "$gcc_cv_ld64_platform_version" >&6; }
27279 if test x"${gcc_cv_ld64_version}" != x; then
27281 cat >>confdefs.h <<_ACEOF
27282 #define LD64_VERSION "${gcc_cv_ld64_version}"
27283 _ACEOF
27288 cat >>confdefs.h <<_ACEOF
27289 #define LD64_HAS_EXPORT_DYNAMIC $gcc_cv_ld64_export_dynamic
27290 _ACEOF
27294 cat >>confdefs.h <<_ACEOF
27295 #define LD64_HAS_PLATFORM_VERSION $gcc_cv_ld64_platform_version
27296 _ACEOF
27300 if test x"$dsymutil_flag" = x"yes"; then
27302 # If the user specified a dsymutil path, then we will already have the
27303 # version string, otherwise, pick it up.
27304 if test x"$gcc_cv_dsymutil" = x; then
27305 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dsymutil is a required tool for this system, but not found" >&5
27306 $as_echo "$as_me: WARNING: dsymutil is a required tool for this system, but not found" >&2;}
27307 dsymutil_vers="tool unspecified"
27308 elif test x"$dsymutil_vers" = x; then
27309 dsymutil_vers=`$gcc_cv_dsymutil -v /dev/null 2>&1`
27312 dsymutil_temp=`echo $dsymutil_vers | sed 1q`
27313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dsymutil version \"$dsymutil_temp\"" >&5
27314 $as_echo_n "checking dsymutil version \"$dsymutil_temp\"... " >&6; }
27315 if echo $dsymutil_temp | grep dwarfutils- > /dev/null; then
27316 dsymutil_kind=DWARFUTILS
27317 dsymutil_vers=`echo $dsymutil_temp | sed 's/.*dwarfutils-\([0-9\.]*\).*/\1/'`
27318 elif echo $dsymutil_temp | grep clang- > /dev/null; then
27319 dsymutil_kind=CLANG
27320 dsymutil_vers=`echo $dsymutil_temp | sed 's/.*clang-\([0-9\.]*\).*/\1/'`
27321 elif echo $dsymutil_temp | grep 'LLVM version ' > /dev/null; then
27322 dsymutil_kind=LLVM
27323 dsymutil_vers=`echo $dsymutil_temp | sed 's/.*LLVM\ version\ \([0-9\.]*\).*/\1/'`
27324 else
27325 dsymutil_kind=UNKNOWN
27326 dsymutil_vers="0.0"
27328 dsymutil_major=`expr "$dsymutil_vers" : '\([0-9]*\)'`
27329 dsymutil_minor=`expr "$dsymutil_vers" : '[0-9]*\.\([0-9]*\)'`
27330 dsymutil_tiny=`expr "$dsymutil_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
27331 if test x"${dsymutil_minor}" = x; then
27332 dsymutil_minor=0
27334 if test x"${dsymutil_tiny}" = x; then
27335 dsymutil_tiny=0
27338 cat >>confdefs.h <<_ACEOF
27339 #define DSYMUTIL_VERSION $dsymutil_kind,${dsymutil_major},${dsymutil_minor},${dsymutil_tiny}
27340 _ACEOF
27342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dsymutil_vers : $dsymutil_kind ${dsymutil_major} ${dsymutil_minor} ${dsymutil_tiny} " >&5
27343 $as_echo "$dsymutil_vers : $dsymutil_kind ${dsymutil_major} ${dsymutil_minor} ${dsymutil_tiny} " >&6; }
27346 #~ case $target_os in
27347 #~ win32 | pe | cygwin* | mingw32*)
27348 #~ AC_MSG_CHECKING(broken PE linker dwarf5 support)
27349 #~ gcc_cv_ld_broken_pe_dwarf5=yes
27350 #~ if test $in_tree_ld = yes ; then
27351 #~ if grep -q '\.debug_loclists.*BLOCK.*__section_alignment__.*NOLOAD.*:' \
27352 #~ $gcc_cv_ld_gld_srcdir/scripttempl/pe*.sc \
27353 #~ && grep -q '\.debug_rnglists.*BLOCK.*__section_alignment__.*NOLOAD.*:' \
27354 #~ $gcc_cv_ld_gld_srcdir/scripttempl/pe*.sc; then
27355 #~ gcc_cv_ld_broken_pe_dwarf5=no
27356 #~ fi
27357 #~ else
27358 #~ if $gcc_cv_ld --verbose 2>&1 | grep -q '\.debug_loclists.*BLOCK.*__section_alignment__.*NOLOAD.*:' \
27359 #~ && $gcc_cv_ld --verbose 2>&1 | grep -q '\.debug_rnglists.*BLOCK.*__section_alignment__.*NOLOAD.*:'; then
27360 #~ gcc_cv_ld_broken_pe_dwarf5=no
27361 #~ fi
27362 #~ fi
27363 #~ if test x$gcc_cv_ld_broken_pe_dwarf5 = xyes; then
27364 #~ AC_DEFINE(HAVE_LD_BROKEN_PE_DWARF5, 1,
27365 #~ [Define if the PE linker has broken DWARF 5 support.])
27366 #~ fi
27367 #~ AC_MSG_RESULT($gcc_cv_ld_broken_pe_dwarf5)
27369 #~ AC_MSG_CHECKING(PE linker --disable-dynamicbase support)
27370 #~ gcc_cv_ld_disable_dynamicbase=no
27371 #~ if test $in_tree_ld = yes; then
27372 #~ 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 \
27373 #~ gcc_cv_ld_disable_dynamicbase=yes
27374 #~ fi
27375 #~ else
27376 #~ if $gcc_cv_ld --help 2>&1 | grep -q 'disable\-]dynamicbase' > /dev/null; then
27377 #~ gcc_cv_ld_disable_dynamicbase=yes
27378 #~ fi
27379 #~ fi
27380 #~ if test x"$gcc_cv_ld_disable_dynamicbase" = xyes; then
27381 #~ AC_DEFINE(HAVE_LD_PE_DISABLE_DYNAMICBASE, 1,
27382 #~ [Define if the PE linker supports --disable-dynamicbase option.])
27383 #~ fi
27384 #~ AC_MSG_RESULT($gcc_cv_ld_disable_dynamicbase)
27385 #~ ;;
27386 #~ esac
27388 # --------
27389 # UNSORTED
27390 # --------
27392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
27393 $as_echo_n "checking linker --as-needed support... " >&6; }
27394 if ${gcc_cv_ld_as_needed+:} false; then :
27395 $as_echo_n "(cached) " >&6
27396 else
27397 gcc_cv_ld_as_needed=no
27398 gcc_cv_ld_as_needed_option='--as-needed'
27399 gcc_cv_ld_no_as_needed_option='--no-as-needed'
27400 if test $in_tree_ld = yes ; then
27401 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 \
27402 && test $in_tree_ld_is_elf = yes; then
27403 gcc_cv_ld_as_needed=yes
27404 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 28; then
27405 gcc_cv_ld_as_needed_option='--push-state --as-needed'
27406 gcc_cv_ld_no_as_needed_option='--pop-state'
27409 elif test x$gcc_cv_ld != x; then
27410 # Check if linker supports --as-needed and --no-as-needed options
27411 if $gcc_cv_ld --help 2>&1 | grep as-needed > /dev/null; then
27412 gcc_cv_ld_as_needed=yes
27413 if $gcc_cv_ld --help 2>&1 | grep push-state > /dev/null \
27414 && $gcc_cv_ld --help 2>&1 | grep pop-state > /dev/null \
27415 && echo "$ld_ver" | grep GNU > /dev/null \
27416 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 28; then
27417 # Use these options only when both ld.bfd and ld.gold support
27418 # --push-state/--pop-state, which unfortunately wasn't added
27419 # at the same time.
27420 gcc_cv_ld_as_needed_option='--push-state --as-needed'
27421 gcc_cv_ld_no_as_needed_option='--pop-state'
27424 case "$target:$gnu_ld" in
27425 *-*-solaris2*:no)
27426 # Solaris 2 ld always supports -z ignore/-z record. Prefer the native
27427 # forms.
27428 gcc_cv_ld_as_needed=yes
27429 gcc_cv_ld_as_needed_option="-z ignore"
27430 gcc_cv_ld_no_as_needed_option="-z record"
27432 esac
27434 # --as-needed/-z ignore can only be used if libgcc_s.so.1 uses
27435 # dl_iterate_phdr, i.e. since Solaris 11.
27436 case "$target" in
27437 *-*-solaris2.1[1-9]*)
27438 case "$target" in
27439 i?86-*-* | x86_64-*-*)
27440 if echo "$ld_ver" | grep GNU > /dev/null; then
27441 # Doesn't work with gld on Solaris/x86 due to PR ld/12320.
27442 gcc_cv_ld_as_needed=no
27445 esac
27447 *-*-solaris2*)
27448 gcc_cv_ld_as_needed=no
27450 esac
27453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
27454 $as_echo "$gcc_cv_ld_as_needed" >&6; }
27455 if test x"$gcc_cv_ld_as_needed" = xyes; then
27457 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
27460 cat >>confdefs.h <<_ACEOF
27461 #define LD_AS_NEEDED_OPTION "$gcc_cv_ld_as_needed_option"
27462 _ACEOF
27465 cat >>confdefs.h <<_ACEOF
27466 #define LD_NO_AS_NEEDED_OPTION "$gcc_cv_ld_no_as_needed_option"
27467 _ACEOF
27471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker mapfile support for clearing hardware capabilities" >&5
27472 $as_echo_n "checking linker mapfile support for clearing hardware capabilities... " >&6; }
27473 saved_LDFLAGS="$LDFLAGS"
27474 for clearcap_map in sol2-clearcapv2.map sol2-clearcap.map; do
27475 LDFLAGS="$saved_LDFLAGS -Wl,-M,${srcdir}/config/$clearcap_map"
27476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27477 /* end confdefs.h. */
27478 int main(void) {return 0;}
27479 _ACEOF
27480 if ac_fn_cxx_try_link "$LINENO"; then :
27481 gcc_cv_ld_clearcap=yes; break
27482 else
27483 gcc_cv_ld_clearcap=no
27485 rm -f core conftest.err conftest.$ac_objext \
27486 conftest$ac_exeext conftest.$ac_ext
27487 done
27488 LDFLAGS="$saved_LDFLAGS"
27489 if test "x$gcc_cv_ld_clearcap" = xyes; then
27491 $as_echo "#define HAVE_LD_CLEARCAP 1" >>confdefs.h
27493 ac_config_links="$ac_config_links clearcap.map:${srcdir}/config/$clearcap_map"
27496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_clearcap" >&5
27497 $as_echo "$gcc_cv_ld_clearcap" >&6; }
27499 case "$target" in
27500 powerpc*-*-*)
27501 case "$target" in
27502 *le-*-linux*)
27503 emul_name="-melf32lppc"
27506 emul_name="-melf32ppc"
27508 esac
27509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker .gnu.attributes long double support" >&5
27510 $as_echo_n "checking linker .gnu.attributes long double support... " >&6; }
27511 if ${gcc_cv_ld_ppc_attr+:} false; then :
27512 $as_echo_n "(cached) " >&6
27513 else
27514 gcc_cv_ld_ppc_attr=no
27515 if test x"$ld_is_gold" = xyes; then
27516 gcc_cv_ld_ppc_attr=yes
27517 elif test $in_tree_ld = yes ; then
27518 if test "$gcc_cv_gld_major_version" -eq 2 \
27519 -a "$gcc_cv_gld_minor_version" -ge 28 \
27520 -o "$gcc_cv_gld_major_version" -gt 2; then
27521 gcc_cv_ld_ppc_attr=yes
27523 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
27524 # check that merging the long double .gnu_attribute doesn't warn
27525 cat > conftest1.s <<EOF
27526 .gnu_attribute 4,1
27528 cat > conftest2.s <<EOF
27529 .gnu_attribute 4,9
27531 if $gcc_cv_as -a32 -o conftest1.o conftest1.s > /dev/null 2>&1 \
27532 && $gcc_cv_as -a32 -o conftest2.o conftest2.s > /dev/null 2>&1 \
27533 && $gcc_cv_ld $emul_name -r -o conftest.o conftest1.o conftest2.o > /dev/null 2> conftest.err \
27534 && test ! -s conftest.err; then
27535 gcc_cv_ld_ppc_attr=yes
27537 rm -f conftest.err conftest.o conftest1.o conftest2.o conftest1.s conftest2.s
27541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ppc_attr" >&5
27542 $as_echo "$gcc_cv_ld_ppc_attr" >&6; }
27543 if test x$gcc_cv_ld_ppc_attr = xyes; then
27545 $as_echo "#define HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE 1" >>confdefs.h
27549 esac
27551 case "$target:$tm_file" in
27552 powerpc64*-*-freebsd* | powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
27553 case "$target" in
27554 *le-*-linux*)
27555 emul_name="-melf64lppc"
27557 *-*-linux*)
27558 emul_name="-melf64ppc"
27560 *le-*-freebsd*)
27561 emul_name="-melf64lppc_fbsd"
27563 *-*-freebsd*)
27564 emul_name="-melf64ppc_fbsd"
27566 esac
27567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
27568 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
27569 if ${gcc_cv_ld_no_dot_syms+:} false; then :
27570 $as_echo_n "(cached) " >&6
27571 else
27572 gcc_cv_ld_no_dot_syms=no
27573 if test x"$ld_is_gold" = xyes; then
27574 gcc_cv_ld_no_dot_syms=yes
27575 elif test $in_tree_ld = yes ; then
27576 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
27577 gcc_cv_ld_no_dot_syms=yes
27579 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
27580 cat > conftest1.s <<EOF
27581 .text
27582 bl .foo
27584 cat > conftest2.s <<EOF
27585 .section ".opd","aw"
27586 .align 3
27587 .globl foo
27588 .type foo,@function
27589 foo:
27590 .quad .LEfoo,.TOC.@tocbase,0
27591 .text
27592 .LEfoo:
27594 .size foo,.-.LEfoo
27596 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
27597 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
27598 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
27599 gcc_cv_ld_no_dot_syms=yes
27601 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
27605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
27606 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
27607 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
27609 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
27613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
27614 $as_echo_n "checking linker large toc support... " >&6; }
27615 if ${gcc_cv_ld_large_toc+:} false; then :
27616 $as_echo_n "(cached) " >&6
27617 else
27618 gcc_cv_ld_large_toc=no
27619 if test x"$ld_is_gold" = xyes; then
27620 gcc_cv_ld_large_toc=yes
27621 elif test $in_tree_ld = yes ; then
27622 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
27623 gcc_cv_ld_large_toc=yes
27625 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
27626 cat > conftest.s <<EOF
27627 .section ".tbss","awT",@nobits
27628 .align 3
27629 ie0: .space 8
27630 .global _start
27631 .text
27632 _start:
27633 addis 9,13,ie0@got@tprel@ha
27634 ld 9,ie0@got@tprel@l(9)
27636 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
27637 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
27638 gcc_cv_ld_large_toc=yes
27640 rm -f conftest conftest.o conftest.s
27644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
27645 $as_echo "$gcc_cv_ld_large_toc" >&6; }
27646 if test x"$gcc_cv_ld_large_toc" = xyes; then
27648 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
27652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker toc pointer alignment" >&5
27653 $as_echo_n "checking linker toc pointer alignment... " >&6; }
27654 if ${gcc_cv_ld_toc_align+:} false; then :
27655 $as_echo_n "(cached) " >&6
27656 else
27657 if test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_nm != x; then
27658 cat > conftest.s <<EOF
27659 .global _start
27660 .text
27661 _start:
27662 addis 9,2,x@got@ha
27663 .section .data.rel.ro,"aw",@progbits
27664 .p2align 16
27665 .space 32768
27666 x: .quad .TOC.
27668 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
27669 && $gcc_cv_ld $emul_name -z norelro -o conftest conftest.o > /dev/null 2>&1; then
27670 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)) }'`
27672 rm -f conftest conftest.o conftest.s
27676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_toc_align" >&5
27677 $as_echo "$gcc_cv_ld_toc_align" >&6; }
27678 if test -n "$gcc_cv_ld_toc_align" && test $gcc_cv_ld_toc_align -gt 8; then
27680 cat >>confdefs.h <<_ACEOF
27681 #define POWERPC64_TOC_POINTER_ALIGNMENT $gcc_cv_ld_toc_align
27682 _ACEOF
27686 esac
27688 case "$target" in
27689 *-*-aix*)
27690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
27691 $as_echo_n "checking linker large toc support... " >&6; }
27692 if ${gcc_cv_ld_large_toc+:} false; then :
27693 $as_echo_n "(cached) " >&6
27694 else
27695 gcc_cv_ld_large_toc=no
27696 if test x$gcc_cv_as != x ; then
27697 cat > conftest.s <<EOF
27698 .toc
27699 LC..1:
27700 .tc a[TC],a[RW]
27701 .extern a[RW]
27702 .csect .text[PR]
27703 .largetoctest:
27704 addis 9,LC..1@u(2)
27705 ld 3,LC..1@l(9)
27707 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1; then
27708 gcc_cv_ld_large_toc=yes
27710 rm -f conftest conftest.o conftest.s
27714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
27715 $as_echo "$gcc_cv_ld_large_toc" >&6; }
27716 if test x"$gcc_cv_ld_large_toc" = xyes; then
27718 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
27722 esac
27724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
27725 $as_echo_n "checking linker --build-id support... " >&6; }
27726 if ${gcc_cv_ld_buildid+:} false; then :
27727 $as_echo_n "(cached) " >&6
27728 else
27729 gcc_cv_ld_buildid=no
27730 if test $in_tree_ld = yes ; then
27731 if test "$gcc_cv_gld_major_version" -eq 2 -a \
27732 "$gcc_cv_gld_minor_version" -ge 18 -o \
27733 "$gcc_cv_gld_major_version" -gt 2 \
27734 && test $in_tree_ld_is_elf = yes; then
27735 gcc_cv_ld_buildid=yes
27737 elif test x$gcc_cv_ld != x; then
27738 if $gcc_cv_ld --help 2>&1 | grep build-id > /dev/null; then
27739 gcc_cv_ld_buildid=yes
27743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
27744 $as_echo "$gcc_cv_ld_buildid" >&6; }
27745 if test x"$gcc_cv_ld_buildid" = xyes; then
27747 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
27751 # Check whether --enable-linker-build-id was given.
27752 if test "${enable_linker_build_id+set}" = set; then :
27753 enableval=$enable_linker_build_id;
27754 else
27755 enable_linker_build_id=no
27759 if test x"$enable_linker_build_id" = xyes; then
27760 if test x"$gcc_cv_ld_buildid" = xyes; then
27762 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
27764 else
27765 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
27766 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
27770 # In binutils 2.21, GNU ld gained support for new emulations fully
27771 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
27772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
27773 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
27774 if ${gcc_cv_ld_sol2_emulation+:} false; then :
27775 $as_echo_n "(cached) " >&6
27776 else
27777 gcc_cv_ld_sol2_emulation=no
27778 if test $in_tree_ld = yes ; then
27779 if test "$gcc_cv_gld_major_version" -eq 2 -a \
27780 "$gcc_cv_gld_minor_version" -ge 21 -o \
27781 "$gcc_cv_gld_major_version" -gt 2 \
27782 && test $in_tree_ld_is_elf = yes; then
27783 gcc_cv_ld_sol2_emulation=yes
27785 elif test x$gcc_cv_ld != x; then
27786 if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
27787 grep _sol2 > /dev/null; then
27788 gcc_cv_ld_sol2_emulation=yes
27792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
27793 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
27794 if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
27796 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
27800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
27801 $as_echo_n "checking linker --sysroot support... " >&6; }
27802 if ${gcc_cv_ld_sysroot+:} false; then :
27803 $as_echo_n "(cached) " >&6
27804 else
27805 gcc_cv_ld_sysroot=no
27806 if test $in_tree_ld = yes ; then
27807 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
27808 gcc_cv_ld_sysroot=yes
27810 elif test x$gcc_cv_ld != x; then
27811 if $gcc_cv_ld --help 2>&1 | grep sysroot > /dev/null; then
27812 gcc_cv_ld_sysroot=yes
27816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
27817 $as_echo "$gcc_cv_ld_sysroot" >&6; }
27818 if test x"$gcc_cv_ld_sysroot" = xyes; then
27820 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
27824 case $target in
27825 *-*-solaris2*)
27826 # Check for system-provided CRTs on Solaris 11.x and Solaris 12.
27827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking system-provided CRTs on Solaris" >&5
27828 $as_echo_n "checking system-provided CRTs on Solaris... " >&6; }
27829 if ${gcc_cv_solaris_crts+:} false; then :
27830 $as_echo_n "(cached) " >&6
27831 else
27832 gcc_cv_solaris_crts=no
27833 if test x$host != x$target; then
27834 if test "x$with_sysroot" = xyes; then
27835 target_sysroot="${test_exec_prefix}/${target_noncanonical}/sys-root"
27836 else
27837 target_sysroot="${with_sysroot}"
27840 target_libdir="$target_sysroot/usr/lib"
27841 # At the time they were added, gcrt1.o became a symlink for backwards
27842 # compatibility on x86, while crt1.o was added on sparc, so check for that.
27843 case $target in
27844 i?86-*-solaris2* | x86_64-*-solaris2*)
27845 if test -h "$target_libdir/gcrt1.o"; then gcc_cv_solaris_crts=yes; fi
27847 sparc*-*-solaris2*)
27848 if test -f "$target_libdir/crt1.o"; then gcc_cv_solaris_crts=yes; fi
27850 esac
27852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_solaris_crts" >&5
27853 $as_echo "$gcc_cv_solaris_crts" >&6; }
27855 esac
27856 if test x$gcc_cv_solaris_crts = xyes; then
27858 $as_echo "#define HAVE_SOLARIS_CRTS 1" >>confdefs.h
27862 # Check whether --enable-libssp was given.
27863 if test "${enable_libssp+set}" = set; then :
27864 enableval=$enable_libssp; case "${enableval}" in
27865 yes|no)
27868 as_fn_error $? "unknown libssp setting $enableval" "$LINENO" 5
27870 esac
27874 # Test for stack protector support in target C library.
27875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
27876 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
27877 if ${gcc_cv_libc_provides_ssp+:} false; then :
27878 $as_echo_n "(cached) " >&6
27879 else
27880 gcc_cv_libc_provides_ssp=no
27881 if test "x$enable_libssp" = "xno"; then
27882 gcc_cv_libc_provides_ssp=yes
27883 elif test "x$enable_libssp" = "xyes"; then
27884 gcc_cv_libc_provides_ssp=no
27885 else
27886 case "$target" in
27887 *-*-musl*)
27888 # All versions of musl provide stack protector
27889 gcc_cv_libc_provides_ssp=yes;;
27890 *-*-linux* | *-*-kfreebsd*-gnu)
27891 # glibc 2.4 and later provides __stack_chk_fail and
27892 # either __stack_chk_guard, or TLS access to stack guard canary.
27894 if test $glibc_version_major -gt 2 \
27895 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
27896 gcc_cv_libc_provides_ssp=yes
27897 else
27899 if test -f $target_header_dir/features.h \
27900 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
27901 $target_header_dir/features.h > /dev/null; then
27902 if $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
27903 $target_header_dir/features.h > /dev/null && \
27904 test -f $target_header_dir/bits/uClibc_config.h && \
27905 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
27906 $target_header_dir/bits/uClibc_config.h > /dev/null; then
27907 gcc_cv_libc_provides_ssp=yes
27909 # all versions of Bionic support stack protector
27910 elif test -f $target_header_dir/sys/cdefs.h \
27911 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
27912 $target_header_dir/sys/cdefs.h > /dev/null; then
27913 gcc_cv_libc_provides_ssp=yes
27917 *-*-gnu*)
27918 # Avoid complicated tests (see
27919 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
27920 # simply assert that glibc does provide this, which is true for all
27921 # realistically usable GNU/Hurd configurations.
27922 # All supported versions of musl provide it as well
27923 gcc_cv_libc_provides_ssp=yes;;
27924 *-*-darwin* | *-*-freebsd* | *-*-netbsd*)
27925 ac_fn_cxx_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
27926 if test "x$ac_cv_func___stack_chk_fail" = xyes; then :
27927 gcc_cv_libc_provides_ssp=yes
27928 else
27929 echo "no __stack_chk_fail on this target"
27933 *) gcc_cv_libc_provides_ssp=no ;;
27934 esac
27937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
27938 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
27940 if test x$gcc_cv_libc_provides_ssp = xyes; then
27942 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
27946 # Check whether --enable-default-ssp was given.
27947 # Check whether --enable-default-ssp was given.
27948 if test "${enable_default_ssp+set}" = set; then :
27949 enableval=$enable_default_ssp;
27950 if test x$gcc_cv_libc_provides_ssp = xyes; then
27951 case "$target" in
27952 ia64*-*-*) enable_default_ssp=no ;;
27953 *) enable_default_ssp=$enableval ;;
27954 esac
27955 else
27956 enable_default_ssp=no
27958 else
27959 enable_default_ssp=no
27962 if test x$enable_default_ssp = xyes ; then
27964 $as_echo "#define ENABLE_DEFAULT_SSP 1" >>confdefs.h
27969 # Test for <sys/sdt.h> on the target.
27971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
27972 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
27973 have_sys_sdt_h=no
27974 if test -f $target_header_dir/sys/sdt.h; then
27975 have_sys_sdt_h=yes
27977 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
27980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
27981 $as_echo "$have_sys_sdt_h" >&6; }
27983 # Check if TFmode long double should be used by default or not.
27984 # Some glibc targets used DFmode long double, but with glibc 2.4
27985 # and later they can use TFmode.
27986 case "$target" in
27987 powerpc*-*-linux* | \
27988 sparc*-*-linux* | \
27989 s390*-*-linux* | \
27990 alpha*-*-linux*)
27992 # Check whether --with-long-double-128 was given.
27993 if test "${with_long_double_128+set}" = set; then :
27994 withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
27995 else
27997 case "$target" in
27998 s390*-*-linux-musl*)
27999 gcc_cv_target_ldbl128=yes
28001 powerpc*-*-linux-musl*)
28002 gcc_cv_target_ldbl128=no
28006 if test $glibc_version_major -gt 2 \
28007 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
28008 gcc_cv_target_ldbl128=yes
28009 else
28011 gcc_cv_target_ldbl128=no
28012 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
28013 $target_header_dir/bits/wordsize.h > /dev/null 2>&1 \
28014 && gcc_cv_target_ldbl128=yes
28019 esac
28024 esac
28025 if test x$gcc_cv_target_ldbl128 = xyes; then
28027 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
28031 # Check if TFmode long double target should use the IBM extended double or IEEE
28032 # 128-bit floating point formats if long doubles are 128-bits long. The long
28033 # double type can only be switched on powerpc64 bit Linux systems where VSX is
28034 # supported. Other PowerPC systems do not build the IEEE 128-bit emulator in
28035 # libgcc.
28037 # Check whether --with-long-double-format was given.
28038 if test "${with_long_double_format+set}" = set; then :
28039 withval=$with_long_double_format;
28040 case "$target:$with_long_double_format" in
28041 powerpc64le-*-linux*:ieee | powerpc64le-*-linux*:ibm)
28044 powerpc64-*-linux*:ieee | powerpc64-*-linux*:ibm)
28045 # IEEE 128-bit emulation is only built on 64-bit VSX Linux systems
28046 case "$with_cpu" in
28047 power7 | power8 | power9 | power1*)
28051 as_fn_error $? "Configuration option --with-long-double-format is only \
28052 supported if the default cpu is power7 or newer" "$LINENO" 5
28053 with_long_double_format=""
28055 esac
28057 powerpc64*-*-linux*:*)
28058 as_fn_error $? "--with-long-double-format argument should be ibm or ieee" "$LINENO" 5
28059 with_long_double_format=""
28062 as_fn_error $? "Configure option --with-long-double-format is only supported \
28063 on 64-bit PowerPC VSX Linux systems" "$LINENO" 5
28064 with_long_double_format=""
28066 esac
28070 # Check if the target LIBC supports exporting the AT_PLATFORM and AT_HWCAP
28071 # values in the TCB. Currently, only GLIBC 2.23 and later support this.
28072 gcc_cv_libc_provides_hwcap_in_tcb=no
28073 case "$target" in
28074 powerpc*-*-linux*)
28076 if test $glibc_version_major -gt 2 \
28077 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 23 ); then :
28078 gcc_cv_libc_provides_hwcap_in_tcb=yes
28081 esac
28082 if test x$gcc_cv_libc_provides_hwcap_in_tcb = xyes; then
28084 $as_echo "#define TARGET_LIBC_PROVIDES_HWCAP_IN_TCB 1" >>confdefs.h
28088 # Check if the target LIBC handles PT_GNU_STACK.
28089 gcc_cv_libc_gnustack=unknown
28090 case "$target" in
28091 mips*-*-linux-musl*)
28092 gcc_cv_libc_gnustack=yes
28094 mips*-*-linux*)
28096 if test $glibc_version_major -gt 2 \
28097 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 31 ); then :
28098 gcc_cv_libc_gnustack=yes
28101 esac
28102 if test x$gcc_cv_libc_gnustack = xyes; then
28104 $as_echo "#define TARGET_LIBC_GNUSTACK 1" >>confdefs.h
28108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
28109 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
28110 gcc_cv_target_dl_iterate_phdr=unknown
28111 case "$target" in
28112 *-*-solaris2*)
28113 # <link.h> needs both a dl_iterate_phdr declaration and support for
28114 # compilation with largefile support.
28115 if grep dl_iterate_phdr $target_header_dir/link.h > /dev/null 2>&1 \
28116 && grep 'large file capable' $target_header_dir/link.h > /dev/null 2>&1; then
28117 gcc_cv_target_dl_iterate_phdr=yes
28118 else
28119 gcc_cv_target_dl_iterate_phdr=no
28122 *-*-dragonfly* | *-*-freebsd*)
28123 if grep dl_iterate_phdr $target_header_dir/sys/link_elf.h > /dev/null 2>&1; then
28124 gcc_cv_target_dl_iterate_phdr=yes
28125 else
28126 gcc_cv_target_dl_iterate_phdr=no
28129 *-linux-musl*)
28130 gcc_cv_target_dl_iterate_phdr=yes
28132 esac
28134 if test x$gcc_cv_target_dl_iterate_phdr = xyes; then
28136 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
28139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
28140 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
28142 # We no longer support different GC mechanisms. Emit an error if
28143 # the user configures with --with-gc.
28145 # Check whether --with-gc was given.
28146 if test "${with_gc+set}" = set; then :
28147 withval=$with_gc; as_fn_error $? "Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
28151 # Libraries to use on the host. This will normally be set by the top
28152 # level Makefile. Here we simply capture the value for our Makefile.
28153 if test -z "${HOST_LIBS+set}"; then
28154 HOST_LIBS=
28158 # Use the system's zlib library.
28160 # Use the system's zlib library.
28161 zlibdir="-L\$(top_builddir)/../zlib"
28162 zlibinc="-I\$(top_srcdir)/../zlib"
28164 # Check whether --with-system-zlib was given.
28165 if test "${with_system_zlib+set}" = set; then :
28166 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
28167 zlibdir=
28168 zlibinc=
28178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
28179 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
28180 # Check whether --enable-maintainer-mode was given.
28181 if test "${enable_maintainer_mode+set}" = set; then :
28182 enableval=$enable_maintainer_mode; maintainer_mode=$enableval
28183 else
28184 maintainer_mode=no
28188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
28189 $as_echo "$maintainer_mode" >&6; }
28191 if test "$maintainer_mode" = "yes"; then
28192 MAINT=''
28193 else
28194 MAINT='#'
28197 if test -z "$CTAGS"; then
28198 CTAGS=ctags
28201 if test -z "$ETAGS"; then
28202 ETAGS=etags
28205 if test -z "$CSCOPE"; then
28206 CSCOPE=cscope
28211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid linking multiple front-ends at once" >&5
28212 $as_echo_n "checking whether to avoid linking multiple front-ends at once... " >&6; }
28213 # Check whether --enable-link-mutex was given.
28214 if test "${enable_link_mutex+set}" = set; then :
28215 enableval=$enable_link_mutex; do_link_mutex=$enableval
28216 else
28217 do_link_mutex=no
28220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_mutex" >&5
28221 $as_echo "$do_link_mutex" >&6; }
28223 if test "$do_link_mutex" = "yes"; then
28224 DO_LINK_MUTEX=true
28225 else
28226 DO_LINK_MUTEX=false
28231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to serialize linking of multiple front-ends" >&5
28232 $as_echo_n "checking whether to serialize linking of multiple front-ends... " >&6; }
28233 # Check whether --enable-link-serialization was given.
28234 if test "${enable_link_serialization+set}" = set; then :
28235 enableval=$enable_link_serialization; do_link_serialization=$enableval
28236 else
28237 do_link_serialization=no
28240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_serialization" >&5
28241 $as_echo "$do_link_serialization" >&6; }
28243 case "$do_link_serialization" in
28244 yes)
28245 DO_LINK_SERIALIZATION=1;;
28246 [1-9] | [1-9][0-9] | [1-9][0-9][0-9])
28247 DO_LINK_SERIALIZATION=$do_link_serialization;;
28249 DO_LINK_SERIALIZATION=;;
28251 as_fn_error $? "bad value ${do_link_serialization} given for --enable-link-serialization" "$LINENO" 5 ;;
28252 esac
28255 # --------------
28256 # Language hooks
28257 # --------------
28259 # Make empty files to contain the specs and options for each language.
28260 # Then add #include lines to for a compiler that has specs and/or options.
28262 subdirs=
28263 lang_opt_files=
28264 lang_specs_files=
28265 lang_tree_files=
28266 # These (without "all_") are set in each config-lang.in.
28267 # `language' must be a single word so is spelled singularly.
28268 all_languages=
28269 all_compilers=
28270 all_outputs='Makefile'
28271 # List of language configure and makefile fragments.
28272 all_lang_configurefrags=
28273 all_lang_makefrags=
28274 # Additional files for gengtype
28275 all_gtfiles="$target_gtfiles"
28277 # These are the languages that are set in --enable-languages,
28278 # and are available in the GCC tree.
28279 all_selected_languages=
28281 # Add the language fragments.
28282 # Languages are added via two mechanisms. Some information must be
28283 # recorded in makefile variables, these are defined in config-lang.in.
28284 # We accumulate them and plug them into the main Makefile.
28285 # The other mechanism is a set of hooks for each of the main targets
28286 # like `clean', `install', etc.
28288 language_hooks="Make-hooks"
28290 for lang in ${srcdir}/*/config-lang.in
28292 test "$lang" = "${srcdir}/*/config-lang.in" && continue
28294 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
28295 if test "x$lang_alias" = x
28296 then
28297 echo "$lang doesn't set \$language." 1>&2
28298 exit 1
28300 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
28301 subdirs="$subdirs $subdir"
28303 # $gcc_subdir is where the gcc integration files are to be found
28304 # for a language, both for internal compiler purposes (compiler
28305 # sources implementing front-end to GCC tree converters), and for
28306 # build infrastructure purposes (Make-lang.in, etc.)
28308 # This will be <subdir> (relative to $srcdir) if a line like
28309 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
28310 # is found in <langdir>/config-lang.in, and will remain <langdir>
28311 # otherwise.
28313 # Except for the language alias (fetched above), the regular
28314 # "config-lang.in" contents are always retrieved from $gcc_subdir,
28315 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
28316 # only this and the language alias.
28318 gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
28319 if [ "$gcc_subdir" = "" ]; then
28320 gcc_subdir="$subdir"
28323 case ",$enable_languages," in
28324 *,$lang_alias,*)
28325 all_selected_languages="$all_selected_languages $lang_alias"
28326 if test -f $srcdir/$gcc_subdir/lang-specs.h; then
28327 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
28330 esac
28332 language=
28333 boot_language=
28334 compilers=
28335 outputs=
28336 gtfiles=
28337 subdir_requires=
28338 . ${srcdir}/$gcc_subdir/config-lang.in
28339 if test "x$language" = x
28340 then
28341 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
28342 exit 1
28345 ok=:
28346 case ",$enable_languages," in
28347 *,$lang_alias,*) ;;
28349 for i in $subdir_requires; do
28350 test -f "${srcdir}/$i/config-lang.in" && continue
28351 ok=false
28352 break
28353 done
28355 esac
28356 $ok || continue
28358 all_lang_configurefrags="$all_lang_configurefrags \$(srcdir)/$gcc_subdir/config-lang.in"
28359 if test "x$language" = xc && test -n "$all_lang_makefrags"; then
28360 # Put c/Make-lang.in fragment first to match serialization languages order.
28361 all_lang_makefrags="\$(srcdir)/$gcc_subdir/Make-lang.in $all_lang_makefrags"
28362 else
28363 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
28365 if test -f $srcdir/$gcc_subdir/lang.opt; then
28366 lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
28367 all_opt_files="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
28369 if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
28370 lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
28372 all_languages="$all_languages $language"
28373 all_compilers="$all_compilers $compilers"
28374 all_outputs="$all_outputs $outputs"
28375 all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
28376 case ",$enable_languages," in
28377 *,lto,*)
28379 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
28381 enable_lto=yes
28384 *) ;;
28385 esac
28386 done
28388 check_languages=
28389 for language in $all_selected_languages
28391 check_languages="$check_languages check-$language"
28392 done
28394 selftest_languages=
28395 for language in $all_selected_languages
28397 selftest_languages="$selftest_languages selftest-$language"
28398 done
28400 # We link each language in with a set of hooks, reached indirectly via
28401 # lang.${target}. Only do so for selected languages.
28403 rm -f Make-hooks
28404 touch Make-hooks
28405 target_list="all.cross start.encap rest.encap tags \
28406 install-common install-man install-info install-dvi install-pdf \
28407 install-html dvi pdf html uninstall info man srcextra srcman srcinfo \
28408 mostlyclean clean distclean maintainer-clean install-plugin"
28410 for t in $target_list
28413 for lang in $all_selected_languages
28415 x="$x $lang.$t"
28416 done
28417 echo "lang.$t: $x" >> Make-hooks
28418 done
28420 echo "ifeq (\$(DO_LINK_SERIALIZATION),)" >> Make-hooks
28421 echo "SERIAL_LIST =" >> Make-hooks
28422 echo else >> Make-hooks
28423 lang_cnt=0
28424 lang_list=
28425 prev=c
28426 serialization_languages=c
28427 for lang in $all_selected_languages
28429 test $lang = c && continue
28430 if test $lang = lto; then
28431 serialization_languages="$serialization_languages lto1 lto2"
28432 else
28433 serialization_languages="$serialization_languages $lang"
28435 done
28436 for lang in $serialization_languages
28438 test $lang = c && continue
28439 lang_cnt=`expr $lang_cnt + 1`
28440 lang_list=" $prev$lang_list"
28441 prev=${lang}
28442 done
28443 echo "SERIAL_LIST = \$(wordlist \$(DO_LINK_SERIALIZATION),$lang_cnt,$lang_list)" >> Make-hooks
28444 echo endif >> Make-hooks
28445 echo "SERIAL_COUNT = `expr $lang_cnt + 1`" >> Make-hooks
28446 echo "INDEX.c = 0" >> Make-hooks
28447 lang_idx=1
28448 for lang in $serialization_languages
28450 test $lang = c && continue
28451 echo "$lang.prev = \$(if \$(word $lang_cnt,\$(SERIAL_LIST)),\$(\$(word $lang_cnt,\$(SERIAL_LIST)).serial))" >> Make-hooks
28452 echo "INDEX.$lang = $lang_idx" >> Make-hooks
28453 lang_cnt=`expr $lang_cnt - 1`
28454 lang_idx=`expr $lang_idx + 1`
28455 done
28457 # --------
28458 # Option include files
28459 # --------
28461 ${AWK} -f $srcdir/opt-include.awk $all_opt_files > option-includes.mk
28462 option_includes="option-includes.mk"
28465 # --------
28466 # UNSORTED
28467 # --------
28469 # Create .gdbinit.
28471 echo "dir ." > .gdbinit
28472 echo "dir ${srcdir}" >> .gdbinit
28473 if test x$gdb_needs_out_file_path = xyes
28474 then
28475 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
28477 if test "x$subdirs" != x; then
28478 for s in $subdirs
28480 echo "dir ${srcdir}/$s" >> .gdbinit
28481 done
28483 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
28484 echo "python import sys; sys.path.append('${srcdir}'); import gdbhooks" >> .gdbinit
28486 # Put a breakpoint on __asan_report_error to help with debugging buffer
28487 # overflow.
28488 case "$CFLAGS" in
28489 *-fsanitize=address*)
28490 echo "source ${srcdir}/gdbasan.in" >> .gdbinit
28492 esac
28494 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
28498 # Find a directory in which to install a shared libgcc.
28500 # Check whether --enable-version-specific-runtime-libs was given.
28501 if test "${enable_version_specific_runtime_libs+set}" = set; then :
28502 enableval=$enable_version_specific_runtime_libs;
28506 # Substitute configuration variables
28576 # Echo link setup.
28577 if test x${build} = x${host} ; then
28578 if test x${host} = x${target} ; then
28579 echo "Links are now set up to build a native compiler for ${target}." 1>&2
28580 else
28581 echo "Links are now set up to build a cross-compiler" 1>&2
28582 echo " from ${host} to ${target}." 1>&2
28584 else
28585 if test x${host} = x${target} ; then
28586 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
28587 echo " for ${target}." 1>&2
28588 else
28589 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
28590 echo " from ${host} to ${target}." 1>&2
28599 if test "x${ISLLIBS}" != "x" ; then
28601 $as_echo "#define HAVE_isl 1" >>confdefs.h
28605 # SDCC GCC_ENABLE_PLUGINS
28608 if test x"$enable_plugin" = x"yes"; then
28610 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
28615 # Enable --enable-host-shared
28616 # Check whether --enable-host-shared was given.
28617 if test "${enable_host_shared+set}" = set; then :
28618 enableval=$enable_host_shared; PICFLAG=-fPIC
28619 else
28620 PICFLAG=
28627 # Check whether --enable-libquadmath-support was given.
28628 if test "${enable_libquadmath_support+set}" = set; then :
28629 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
28630 else
28631 ENABLE_LIBQUADMATH_SUPPORT=yes
28634 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
28636 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
28641 # Specify what hash style to use by default.
28643 # Check whether --with-linker-hash-style was given.
28644 if test "${with_linker_hash_style+set}" = set; then :
28645 withval=$with_linker_hash_style; case x"$withval" in
28646 xsysv)
28647 LINKER_HASH_STYLE=sysv
28649 xgnu)
28650 LINKER_HASH_STYLE=gnu
28652 xboth)
28653 LINKER_HASH_STYLE=both
28656 as_fn_error $? "$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
28658 esac
28659 else
28660 LINKER_HASH_STYLE=''
28663 if test x"${LINKER_HASH_STYLE}" != x; then
28665 cat >>confdefs.h <<_ACEOF
28666 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
28667 _ACEOF
28671 # Specify what should be the default of -fdiagnostics-color option.
28673 # Check whether --with-diagnostics-color was given.
28674 if test "${with_diagnostics_color+set}" = set; then :
28675 withval=$with_diagnostics_color; case x"$withval" in
28676 xnever)
28677 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_NO
28679 xauto)
28680 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO
28682 xauto-if-env)
28683 DIAGNOSTICS_COLOR_DEFAULT=-1
28685 xalways)
28686 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_YES
28689 as_fn_error $? "$withval is an invalid option to --with-diagnostics-color" "$LINENO" 5
28691 esac
28692 else
28693 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO
28697 cat >>confdefs.h <<_ACEOF
28698 #define DIAGNOSTICS_COLOR_DEFAULT $DIAGNOSTICS_COLOR_DEFAULT
28699 _ACEOF
28702 # Specify what should be the default of -fdiagnostics-urls option.
28704 # Check whether --with-diagnostics-urls was given.
28705 if test "${with_diagnostics_urls+set}" = set; then :
28706 withval=$with_diagnostics_urls; case x"$withval" in
28707 xnever)
28708 DIAGNOSTICS_URLS_DEFAULT=DIAGNOSTICS_URL_NO
28710 xauto)
28711 DIAGNOSTICS_URLS_DEFAULT=DIAGNOSTICS_URL_AUTO
28713 xauto-if-env)
28714 DIAGNOSTICS_URLS_DEFAULT=-1
28716 xalways)
28717 DIAGNOSTICS_URLS_DEFAULT=DIAGNOSTICS_URL_YES
28720 as_fn_error $? "$withval is an invalid option to --with-diagnostics-urls" "$LINENO" 5
28722 esac
28723 else
28724 DIAGNOSTICS_URLS_DEFAULT=DIAGNOSTICS_URL_AUTO
28728 cat >>confdefs.h <<_ACEOF
28729 #define DIAGNOSTICS_URLS_DEFAULT $DIAGNOSTICS_URLS_DEFAULT
28730 _ACEOF
28733 # Generate gcc-driver-name.h containing GCC_DRIVER_NAME for the benefit
28734 # of jit/jit-playback.cc.
28735 gcc_driver_version=`eval "${get_gcc_base_ver} $srcdir/BASE-VER"`
28736 echo "gcc_driver_version: ${gcc_driver_version}"
28737 cat > gcc-driver-name.h <<EOF
28738 #define GCC_DRIVER_NAME "${target_noncanonical}-gcc-${gcc_driver_version}${exeext}"
28741 # Check whether --enable-default-pie was given.
28742 # Check whether --enable-default-pie was given.
28743 if test "${enable_default_pie+set}" = set; then :
28744 enableval=$enable_default_pie; enable_default_pie=$enableval
28745 else
28746 enable_default_pie=no
28749 if test x$enable_default_pie = xyes ; then
28751 $as_echo "#define ENABLE_DEFAULT_PIE 1" >>confdefs.h
28756 # Check if -fno-PIE works.
28757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fno-PIE option" >&5
28758 $as_echo_n "checking for -fno-PIE option... " >&6; }
28759 if ${gcc_cv_c_no_fpie+:} false; then :
28760 $as_echo_n "(cached) " >&6
28761 else
28762 saved_CXXFLAGS="$CXXFLAGS"
28763 CXXFLAGS="$CXXFLAGS -fno-PIE"
28764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28765 /* end confdefs.h. */
28766 int main(void) {return 0;}
28767 _ACEOF
28768 if ac_fn_cxx_try_compile "$LINENO"; then :
28769 gcc_cv_c_no_fpie=yes
28770 else
28771 gcc_cv_c_no_fpie=no
28773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28774 CXXFLAGS="$saved_CXXFLAGS"
28776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_no_fpie" >&5
28777 $as_echo "$gcc_cv_c_no_fpie" >&6; }
28778 if test "$gcc_cv_c_no_fpie" = "yes"; then
28779 NO_PIE_CFLAGS="-fno-PIE"
28783 # Check if -no-pie works.
28784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -no-pie option" >&5
28785 $as_echo_n "checking for -no-pie option... " >&6; }
28786 if ${gcc_cv_no_pie+:} false; then :
28787 $as_echo_n "(cached) " >&6
28788 else
28789 saved_LDFLAGS="$LDFLAGS"
28790 LDFLAGS="$LDFLAGS -no-pie"
28791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28792 /* end confdefs.h. */
28793 int main(void) {return 0;}
28794 _ACEOF
28795 if ac_fn_cxx_try_link "$LINENO"; then :
28796 gcc_cv_no_pie=yes
28797 else
28798 gcc_cv_no_pie=no
28800 rm -f core conftest.err conftest.$ac_objext \
28801 conftest$ac_exeext conftest.$ac_ext
28802 LDFLAGS="$saved_LDFLAGS"
28804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_no_pie" >&5
28805 $as_echo "$gcc_cv_no_pie" >&6; }
28806 if test "$gcc_cv_no_pie" = "yes"; then
28807 NO_PIE_FLAG="-no-pie"
28811 # Enable Intel CET on Intel CET enabled host if jit is enabled.
28812 # Check whether --enable-cet was given.
28813 if test "${enable_cet+set}" = set; then :
28814 enableval=$enable_cet;
28815 case "$enableval" in
28816 yes|no|auto) ;;
28817 *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
28818 esac
28820 else
28821 enable_cet=auto
28825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
28826 $as_echo_n "checking for CET support... " >&6; }
28828 case "$host" in
28829 i[34567]86-*-linux* | x86_64-*-linux*)
28830 may_have_cet=yes
28831 cet_save_CFLAGS="$CFLAGS"
28832 CFLAGS="$CFLAGS -fcf-protection"
28833 case "$enable_cet" in
28834 auto)
28835 # Check if target supports multi-byte NOPs
28836 # and if compiler and assembler support CET.
28837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28838 /* end confdefs.h. */
28841 main ()
28844 #if !defined(__SSE2__)
28845 #error target does not support multi-byte NOPs
28846 #else
28847 asm ("setssbsy");
28848 #endif
28851 return 0;
28853 _ACEOF
28854 if ac_fn_cxx_try_compile "$LINENO"; then :
28855 enable_cet=yes
28856 else
28857 enable_cet=no
28859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28861 yes)
28862 # Check if compiler and assembler support CET.
28863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28864 /* end confdefs.h. */
28867 main ()
28869 asm ("setssbsy");
28871 return 0;
28873 _ACEOF
28874 if ac_fn_cxx_try_compile "$LINENO"; then :
28875 support_cet=yes
28876 else
28877 support_cet=no
28879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28880 if test $support_cet = "no"; then
28881 if test x$enable_bootstrap != xno \
28882 && test -z "${with_build_subdir}" \
28883 && (test ! -f ../stage_current \
28884 || test `cat ../stage_current` != "stage1"); then
28885 # Require CET support only for the final GCC build.
28886 as_fn_error $? "compiler and assembler with CET support are required for --enable-cet" "$LINENO" 5
28887 else
28888 # Don't enable CET without CET support for non-bootstrap
28889 # build, in stage1 nor for build support.
28890 enable_cet=no
28894 esac
28895 CFLAGS="$cet_save_CFLAGS"
28898 may_have_cet=no
28899 enable_cet=no
28901 esac
28903 cet_save_CFLAGS="$CFLAGS"
28904 CFLAGS="$CFLAGS -fcf-protection=none"
28905 cet_save_LDFLAGS="$LDFLAGS"
28906 LDFLAGS="$LDFLAGS -Wl,-z,ibt,-z,shstk"
28907 if test x$may_have_cet = xyes; then
28908 # Check whether -fcf-protection=none -Wl,-z,ibt,-z,shstk work.
28909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28910 /* end confdefs.h. */
28913 main ()
28915 return 0;
28917 return 0;
28919 _ACEOF
28920 if ac_fn_cxx_try_link "$LINENO"; then :
28921 may_have_cet=yes
28922 else
28923 may_have_cet=no
28925 rm -f core conftest.err conftest.$ac_objext \
28926 conftest$ac_exeext conftest.$ac_ext
28929 if test x$may_have_cet = xyes; then
28930 if test x$cross_compiling = xno; then
28931 if test "$cross_compiling" = yes; then :
28932 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28933 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28934 as_fn_error $? "cannot run test program while cross compiling
28935 See \`config.log' for more details" "$LINENO" 5; }
28936 else
28937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28938 /* end confdefs.h. */
28941 main ()
28943 asm ("endbr32");
28944 return 0;
28947 _ACEOF
28948 if ac_fn_cxx_try_run "$LINENO"; then :
28949 have_multi_byte_nop=yes
28950 else
28951 have_multi_byte_nop=no
28953 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28954 conftest.$ac_objext conftest.beam conftest.$ac_ext
28957 have_cet=no
28958 if test x$have_multi_byte_nop = xyes; then
28959 if test "$cross_compiling" = yes; then :
28960 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28961 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28962 as_fn_error $? "cannot run test program while cross compiling
28963 See \`config.log' for more details" "$LINENO" 5; }
28964 else
28965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28966 /* end confdefs.h. */
28968 static void
28969 foo (void)
28973 static void
28974 __attribute__ ((noinline, noclone))
28975 xxx (void (*f) (void))
28977 f ();
28980 static void
28981 __attribute__ ((noinline, noclone))
28982 bar (void)
28984 xxx (foo);
28988 main ()
28990 bar ();
28991 return 0;
28994 _ACEOF
28995 if ac_fn_cxx_try_run "$LINENO"; then :
28996 have_cet=no
28997 else
28998 have_cet=yes
29000 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
29001 conftest.$ac_objext conftest.beam conftest.$ac_ext
29005 if test x$enable_cet = xno -a x$have_cet = xyes; then
29006 as_fn_error $? "Intel CET must be enabled on Intel CET enabled host" "$LINENO" 5
29009 else
29010 # Enable CET in cross compiler if possible so that it will run on both
29011 # CET and non-CET hosts.
29012 have_cet=yes
29014 if test x$enable_cet = xyes; then
29015 CET_HOST_FLAGS="-fcf-protection"
29016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29017 $as_echo "yes" >&6; }
29018 else
29019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29020 $as_echo "no" >&6; }
29022 CFLAGS="$cet_save_CFLAGS"
29023 LDFLAGS="$cet_save_LDFLAGS"
29025 case x$enable_languages in
29026 *jit*)
29029 CET_HOST_FLAGS=
29031 esac
29034 # Check linker supports '-z bndplt'
29035 ld_bndplt_support=no
29036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -z bndplt option" >&5
29037 $as_echo_n "checking linker -z bndplt option... " >&6; }
29038 if test x"$ld_is_gold" = xno; then
29039 if test $in_tree_ld = yes ; then
29040 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
29041 ld_bndplt_support=yes
29043 elif test x$gcc_cv_ld != x; then
29044 # Check if linker supports -a bndplt option
29045 if $gcc_cv_ld --help 2>&1 | grep -- '-z bndplt' > /dev/null; then
29046 ld_bndplt_support=yes
29050 if test x"$ld_bndplt_support" = xyes; then
29052 $as_echo "#define HAVE_LD_BNDPLT_SUPPORT 1" >>confdefs.h
29055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_bndplt_support" >&5
29056 $as_echo "$ld_bndplt_support" >&6; }
29058 # Check linker supports '--push-state'/'--pop-state'
29059 ld_pushpopstate_support=no
29060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --push-state/--pop-state options" >&5
29061 $as_echo_n "checking linker --push-state/--pop-state options... " >&6; }
29062 if test x"$ld_is_gold" = xno; then
29063 if test $in_tree_ld = yes ; then
29064 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
29065 ld_pushpopstate_support=yes
29067 elif test x$gcc_cv_ld != x; then
29068 # Check if linker supports --push-state/--pop-state options
29069 if $gcc_cv_ld --help 2>&1 | grep -- '--push-state' > /dev/null; then
29070 ld_pushpopstate_support=yes
29074 if test x"$ld_pushpopstate_support" = xyes; then
29076 $as_echo "#define HAVE_LD_PUSHPOPSTATE_SUPPORT 1" >>confdefs.h
29079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_pushpopstate_support" >&5
29080 $as_echo "$ld_pushpopstate_support" >&6; }
29082 # On s390, float_t has historically been statically defined as double for no
29083 # good reason. To comply with the C standard in the light of this definition,
29084 # gcc has evaluated float expressions in double precision when in
29085 # standards-compatible mode or when given -fexcess-precision=standard. To enable
29086 # a smooth transition towards the new model used by most architectures, where
29087 # gcc describes its behavior via the macro __FLT_EVAL_METHOD__ and glibc derives
29088 # float_t from that, this behavior can be configured with
29089 # --enable-s390-excess-float-precision. When given as enabled, that flag selects
29090 # the old model. When omitted, native builds and cross compiles that have target
29091 # libc headers will detect whether libc clamps float_t to double and in that
29092 # case maintain the old model. Otherwise, they will default to the new model.
29093 # Check whether --enable-s390-excess-float-precision was given.
29094 if test "${enable_s390_excess_float_precision+set}" = set; then :
29095 enableval=$enable_s390_excess_float_precision;
29096 else
29097 enable_s390_excess_float_precision=auto
29101 case $target in
29102 s390*-linux*)
29103 if test x"$enable_s390_excess_float_precision" = xauto; then
29104 # Can we autodetect the behavior of the target libc?
29105 if test "$target" = "$host" -a "$host" = "$build"; then
29106 enable_s390_excess_float_precision=autodetect
29107 elif test "x$with_headers" != xno; then
29108 # cross build. are target headers available?
29109 # carefully coerce the build-system compiler to use target headers
29110 saved_CXXFLAGS="$CXXFLAGS"
29111 fixed_XGCC_FLAGS_FOR_TARGET=`echo "$XGCC_FLAGS_FOR_TARGET" | sed 's/-B/-idirafter/g'`
29112 CROSS_TEST_CXXFLAGS="-nostdinc $fixed_XGCC_FLAGS_FOR_TARGET"
29113 CXXFLAGS="$CROSS_TEST_CXXFLAGS"
29114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29115 /* end confdefs.h. */
29117 #include <math.h>
29119 _ACEOF
29120 if ac_fn_cxx_try_compile "$LINENO"; then :
29121 enable_s390_excess_float_precision=autodetect
29123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29124 CXXFLAGS="$saved_CXXFLAGS"
29127 if test x"$enable_s390_excess_float_precision" = xautodetect; then
29128 saved_CXXFLAGS="$CXXFLAGS"
29129 if ! test "$target" = "$host" -a "$host" = "$build"; then
29130 CXXFLAGS="$CROSS_TEST_CXXFLAGS"
29131 unset CROSS_TEST_CXXFLAGS
29133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glibc clamping float_t to double" >&5
29134 $as_echo_n "checking for glibc clamping float_t to double... " >&6; }
29135 if ${gcc_cv_float_t_clamped_to_double+:} false; then :
29136 $as_echo_n "(cached) " >&6
29137 else
29139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29140 /* end confdefs.h. */
29142 #define __FLT_EVAL_METHOD__ 0
29143 #include <math.h>
29144 int dummy[sizeof(float_t) == sizeof(double) ? 1 : -1];
29146 _ACEOF
29147 if ac_fn_cxx_try_compile "$LINENO"; then :
29148 gcc_cv_float_t_clamped_to_double=yes
29149 else
29150 gcc_cv_float_t_clamped_to_double=no
29152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_float_t_clamped_to_double" >&5
29155 $as_echo "$gcc_cv_float_t_clamped_to_double" >&6; }
29156 CXXFLAGS="$saved_CXXFLAGS"
29157 enable_s390_excess_float_precision="$gcc_cv_float_t_clamped_to_double"
29158 else
29159 # no way to detect behavior of target libc, default to new model
29160 enable_s390_excess_float_precision=no
29165 if test x"$enable_s390_excess_float_precision" = xyes; then
29167 $as_echo "#define ENABLE_S390_EXCESS_FLOAT_PRECISION 1" >>confdefs.h
29171 esac
29173 # Configure the subdirectories
29174 # AC_CONFIG_SUBDIRS($subdirs)
29176 # Create the Makefile
29177 # and configure language subdirectories
29178 ac_config_files="$ac_config_files $all_outputs"
29181 ac_config_commands="$ac_config_commands default"
29183 cat >confcache <<\_ACEOF
29184 # This file is a shell script that caches the results of configure
29185 # tests run on this system so they can be shared between configure
29186 # scripts and configure runs, see configure's option --config-cache.
29187 # It is not useful on other systems. If it contains results you don't
29188 # want to keep, you may remove or edit it.
29190 # config.status only pays attention to the cache file if you give it
29191 # the --recheck option to rerun configure.
29193 # `ac_cv_env_foo' variables (set or unset) will be overridden when
29194 # loading this file, other *unset* `ac_cv_foo' will be assigned the
29195 # following values.
29197 _ACEOF
29199 # The following way of writing the cache mishandles newlines in values,
29200 # but we know of no workaround that is simple, portable, and efficient.
29201 # So, we kill variables containing newlines.
29202 # Ultrix sh set writes to stderr and can't be redirected directly,
29203 # and sets the high bit in the cache file unless we assign to the vars.
29205 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
29206 eval ac_val=\$$ac_var
29207 case $ac_val in #(
29208 *${as_nl}*)
29209 case $ac_var in #(
29210 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
29211 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
29212 esac
29213 case $ac_var in #(
29214 _ | IFS | as_nl) ;; #(
29215 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
29216 *) { eval $ac_var=; unset $ac_var;} ;;
29217 esac ;;
29218 esac
29219 done
29221 (set) 2>&1 |
29222 case $as_nl`(ac_space=' '; set) 2>&1` in #(
29223 *${as_nl}ac_space=\ *)
29224 # `set' does not quote correctly, so add quotes: double-quote
29225 # substitution turns \\\\ into \\, and sed turns \\ into \.
29226 sed -n \
29227 "s/'/'\\\\''/g;
29228 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29229 ;; #(
29231 # `set' quotes correctly as required by POSIX, so do not add quotes.
29232 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
29234 esac |
29235 sort
29237 sed '
29238 /^ac_cv_env_/b end
29239 t clear
29240 :clear
29241 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29242 t end
29243 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29244 :end' >>confcache
29245 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
29246 if test -w "$cache_file"; then
29247 if test "x$cache_file" != "x/dev/null"; then
29248 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
29249 $as_echo "$as_me: updating cache $cache_file" >&6;}
29250 if test ! -f "$cache_file" || test -h "$cache_file"; then
29251 cat confcache >"$cache_file"
29252 else
29253 case $cache_file in #(
29254 */* | ?:*)
29255 mv -f confcache "$cache_file"$$ &&
29256 mv -f "$cache_file"$$ "$cache_file" ;; #(
29258 mv -f confcache "$cache_file" ;;
29259 esac
29262 else
29263 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
29264 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
29267 rm -f confcache
29269 test "x$prefix" = xNONE && prefix=$ac_default_prefix
29270 # Let make expand exec_prefix.
29271 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
29273 DEFS=-DHAVE_CONFIG_H
29275 ac_libobjs=
29276 ac_ltlibobjs=
29278 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
29279 # 1. Remove the extension, and $U if already installed.
29280 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
29281 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
29282 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
29283 # will be set to the directory where LIBOBJS objects are built.
29284 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
29285 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
29286 done
29287 LIBOBJS=$ac_libobjs
29289 LTLIBOBJS=$ac_ltlibobjs
29294 : "${CONFIG_STATUS=./config.status}"
29295 ac_write_fail=0
29296 ac_clean_files_save=$ac_clean_files
29297 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
29298 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
29299 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
29300 as_write_fail=0
29301 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
29302 #! $SHELL
29303 # Generated by $as_me.
29304 # Run this file to recreate the current configuration.
29305 # Compiler output produced by configure, useful for debugging
29306 # configure, is in config.log if it exists.
29308 debug=false
29309 ac_cs_recheck=false
29310 ac_cs_silent=false
29312 SHELL=\${CONFIG_SHELL-$SHELL}
29313 export SHELL
29314 _ASEOF
29315 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
29316 ## -------------------- ##
29317 ## M4sh Initialization. ##
29318 ## -------------------- ##
29320 # Be more Bourne compatible
29321 DUALCASE=1; export DUALCASE # for MKS sh
29322 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
29323 emulate sh
29324 NULLCMD=:
29325 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
29326 # is contrary to our usage. Disable this feature.
29327 alias -g '${1+"$@"}'='"$@"'
29328 setopt NO_GLOB_SUBST
29329 else
29330 case `(set -o) 2>/dev/null` in #(
29331 *posix*) :
29332 set -o posix ;; #(
29333 *) :
29335 esac
29339 as_nl='
29341 export as_nl
29342 # Printing a long string crashes Solaris 7 /usr/bin/printf.
29343 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
29344 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
29345 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
29346 # Prefer a ksh shell builtin over an external printf program on Solaris,
29347 # but without wasting forks for bash or zsh.
29348 if test -z "$BASH_VERSION$ZSH_VERSION" \
29349 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
29350 as_echo='print -r --'
29351 as_echo_n='print -rn --'
29352 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
29353 as_echo='printf %s\n'
29354 as_echo_n='printf %s'
29355 else
29356 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
29357 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
29358 as_echo_n='/usr/ucb/echo -n'
29359 else
29360 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
29361 as_echo_n_body='eval
29362 arg=$1;
29363 case $arg in #(
29364 *"$as_nl"*)
29365 expr "X$arg" : "X\\(.*\\)$as_nl";
29366 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
29367 esac;
29368 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
29370 export as_echo_n_body
29371 as_echo_n='sh -c $as_echo_n_body as_echo'
29373 export as_echo_body
29374 as_echo='sh -c $as_echo_body as_echo'
29377 # The user is always right.
29378 if test "${PATH_SEPARATOR+set}" != set; then
29379 PATH_SEPARATOR=:
29380 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
29381 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
29382 PATH_SEPARATOR=';'
29387 # IFS
29388 # We need space, tab and new line, in precisely that order. Quoting is
29389 # there to prevent editors from complaining about space-tab.
29390 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
29391 # splitting by setting IFS to empty value.)
29392 IFS=" "" $as_nl"
29394 # Find who we are. Look in the path if we contain no directory separator.
29395 as_myself=
29396 case $0 in #((
29397 *[\\/]* ) as_myself=$0 ;;
29398 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29399 for as_dir in $PATH
29401 IFS=$as_save_IFS
29402 test -z "$as_dir" && as_dir=.
29403 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
29404 done
29405 IFS=$as_save_IFS
29408 esac
29409 # We did not find ourselves, most probably we were run as `sh COMMAND'
29410 # in which case we are not to be found in the path.
29411 if test "x$as_myself" = x; then
29412 as_myself=$0
29414 if test ! -f "$as_myself"; then
29415 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
29416 exit 1
29419 # Unset variables that we do not need and which cause bugs (e.g. in
29420 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
29421 # suppresses any "Segmentation fault" message there. '((' could
29422 # trigger a bug in pdksh 5.2.14.
29423 for as_var in BASH_ENV ENV MAIL MAILPATH
29424 do eval test x\${$as_var+set} = xset \
29425 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
29426 done
29427 PS1='$ '
29428 PS2='> '
29429 PS4='+ '
29431 # NLS nuisances.
29432 LC_ALL=C
29433 export LC_ALL
29434 LANGUAGE=C
29435 export LANGUAGE
29437 # CDPATH.
29438 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
29441 # as_fn_error STATUS ERROR [LINENO LOG_FD]
29442 # ----------------------------------------
29443 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
29444 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
29445 # script with STATUS, using 1 if that was 0.
29446 as_fn_error ()
29448 as_status=$1; test $as_status -eq 0 && as_status=1
29449 if test "$4"; then
29450 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
29451 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
29453 $as_echo "$as_me: error: $2" >&2
29454 as_fn_exit $as_status
29455 } # as_fn_error
29458 # as_fn_set_status STATUS
29459 # -----------------------
29460 # Set $? to STATUS, without forking.
29461 as_fn_set_status ()
29463 return $1
29464 } # as_fn_set_status
29466 # as_fn_exit STATUS
29467 # -----------------
29468 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
29469 as_fn_exit ()
29471 set +e
29472 as_fn_set_status $1
29473 exit $1
29474 } # as_fn_exit
29476 # as_fn_unset VAR
29477 # ---------------
29478 # Portably unset VAR.
29479 as_fn_unset ()
29481 { eval $1=; unset $1;}
29483 as_unset=as_fn_unset
29484 # as_fn_append VAR VALUE
29485 # ----------------------
29486 # Append the text in VALUE to the end of the definition contained in VAR. Take
29487 # advantage of any shell optimizations that allow amortized linear growth over
29488 # repeated appends, instead of the typical quadratic growth present in naive
29489 # implementations.
29490 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
29491 eval 'as_fn_append ()
29493 eval $1+=\$2
29495 else
29496 as_fn_append ()
29498 eval $1=\$$1\$2
29500 fi # as_fn_append
29502 # as_fn_arith ARG...
29503 # ------------------
29504 # Perform arithmetic evaluation on the ARGs, and store the result in the
29505 # global $as_val. Take advantage of shells that can avoid forks. The arguments
29506 # must be portable across $(()) and expr.
29507 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
29508 eval 'as_fn_arith ()
29510 as_val=$(( $* ))
29512 else
29513 as_fn_arith ()
29515 as_val=`expr "$@" || test $? -eq 1`
29517 fi # as_fn_arith
29520 if expr a : '\(a\)' >/dev/null 2>&1 &&
29521 test "X`expr 00001 : '.*\(...\)'`" = X001; then
29522 as_expr=expr
29523 else
29524 as_expr=false
29527 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
29528 as_basename=basename
29529 else
29530 as_basename=false
29533 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
29534 as_dirname=dirname
29535 else
29536 as_dirname=false
29539 as_me=`$as_basename -- "$0" ||
29540 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
29541 X"$0" : 'X\(//\)$' \| \
29542 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
29543 $as_echo X/"$0" |
29544 sed '/^.*\/\([^/][^/]*\)\/*$/{
29545 s//\1/
29548 /^X\/\(\/\/\)$/{
29549 s//\1/
29552 /^X\/\(\/\).*/{
29553 s//\1/
29556 s/.*/./; q'`
29558 # Avoid depending upon Character Ranges.
29559 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
29560 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
29561 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
29562 as_cr_digits='0123456789'
29563 as_cr_alnum=$as_cr_Letters$as_cr_digits
29565 ECHO_C= ECHO_N= ECHO_T=
29566 case `echo -n x` in #(((((
29567 -n*)
29568 case `echo 'xy\c'` in
29569 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
29570 xy) ECHO_C='\c';;
29571 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
29572 ECHO_T=' ';;
29573 esac;;
29575 ECHO_N='-n';;
29576 esac
29578 rm -f conf$$ conf$$.exe conf$$.file
29579 if test -d conf$$.dir; then
29580 rm -f conf$$.dir/conf$$.file
29581 else
29582 rm -f conf$$.dir
29583 mkdir conf$$.dir 2>/dev/null
29585 if (echo >conf$$.file) 2>/dev/null; then
29586 if ln -s conf$$.file conf$$ 2>/dev/null; then
29587 as_ln_s='ln -s'
29588 # ... but there are two gotchas:
29589 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
29590 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
29591 # In both cases, we have to default to `cp -pR'.
29592 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
29593 as_ln_s='cp -pR'
29594 elif ln conf$$.file conf$$ 2>/dev/null; then
29595 as_ln_s=ln
29596 else
29597 as_ln_s='cp -pR'
29599 else
29600 as_ln_s='cp -pR'
29602 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
29603 rmdir conf$$.dir 2>/dev/null
29606 # as_fn_mkdir_p
29607 # -------------
29608 # Create "$as_dir" as a directory, including parents if necessary.
29609 as_fn_mkdir_p ()
29612 case $as_dir in #(
29613 -*) as_dir=./$as_dir;;
29614 esac
29615 test -d "$as_dir" || eval $as_mkdir_p || {
29616 as_dirs=
29617 while :; do
29618 case $as_dir in #(
29619 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
29620 *) as_qdir=$as_dir;;
29621 esac
29622 as_dirs="'$as_qdir' $as_dirs"
29623 as_dir=`$as_dirname -- "$as_dir" ||
29624 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29625 X"$as_dir" : 'X\(//\)[^/]' \| \
29626 X"$as_dir" : 'X\(//\)$' \| \
29627 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
29628 $as_echo X"$as_dir" |
29629 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29630 s//\1/
29633 /^X\(\/\/\)[^/].*/{
29634 s//\1/
29637 /^X\(\/\/\)$/{
29638 s//\1/
29641 /^X\(\/\).*/{
29642 s//\1/
29645 s/.*/./; q'`
29646 test -d "$as_dir" && break
29647 done
29648 test -z "$as_dirs" || eval "mkdir $as_dirs"
29649 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
29652 } # as_fn_mkdir_p
29653 if mkdir -p . 2>/dev/null; then
29654 as_mkdir_p='mkdir -p "$as_dir"'
29655 else
29656 test -d ./-p && rmdir ./-p
29657 as_mkdir_p=false
29661 # as_fn_executable_p FILE
29662 # -----------------------
29663 # Test if FILE is an executable regular file.
29664 as_fn_executable_p ()
29666 test -f "$1" && test -x "$1"
29667 } # as_fn_executable_p
29668 as_test_x='test -x'
29669 as_executable_p=as_fn_executable_p
29671 # Sed expression to map a string onto a valid CPP name.
29672 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
29674 # Sed expression to map a string onto a valid variable name.
29675 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
29678 exec 6>&1
29679 ## ----------------------------------- ##
29680 ## Main body of $CONFIG_STATUS script. ##
29681 ## ----------------------------------- ##
29682 _ASEOF
29683 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
29685 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29686 # Save the log message, to keep $0 and so on meaningful, and to
29687 # report actual input values of CONFIG_FILES etc. instead of their
29688 # values after options handling.
29689 ac_log="
29690 This file was extended by $as_me, which was
29691 generated by GNU Autoconf 2.69. Invocation command line was
29693 CONFIG_FILES = $CONFIG_FILES
29694 CONFIG_HEADERS = $CONFIG_HEADERS
29695 CONFIG_LINKS = $CONFIG_LINKS
29696 CONFIG_COMMANDS = $CONFIG_COMMANDS
29697 $ $0 $@
29699 on `(hostname || uname -n) 2>/dev/null | sed 1q`
29702 _ACEOF
29704 case $ac_config_files in *"
29705 "*) set x $ac_config_files; shift; ac_config_files=$*;;
29706 esac
29708 case $ac_config_headers in *"
29709 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
29710 esac
29713 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29714 # Files that config.status was made for.
29715 config_files="$ac_config_files"
29716 config_headers="$ac_config_headers"
29717 config_links="$ac_config_links"
29718 config_commands="$ac_config_commands"
29720 _ACEOF
29722 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29723 ac_cs_usage="\
29724 \`$as_me' instantiates files and other configuration actions
29725 from templates according to the current configuration. Unless the files
29726 and actions are specified as TAGs, all are instantiated by default.
29728 Usage: $0 [OPTION]... [TAG]...
29730 -h, --help print this help, then exit
29731 -V, --version print version number and configuration settings, then exit
29732 --config print configuration, then exit
29733 -q, --quiet, --silent
29734 do not print progress messages
29735 -d, --debug don't remove temporary files
29736 --recheck update $as_me by reconfiguring in the same conditions
29737 --file=FILE[:TEMPLATE]
29738 instantiate the configuration file FILE
29739 --header=FILE[:TEMPLATE]
29740 instantiate the configuration header FILE
29742 Configuration files:
29743 $config_files
29745 Configuration headers:
29746 $config_headers
29748 Configuration links:
29749 $config_links
29751 Configuration commands:
29752 $config_commands
29754 Report bugs to the package provider."
29756 _ACEOF
29757 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29758 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
29759 ac_cs_version="\\
29760 config.status
29761 configured by $0, generated by GNU Autoconf 2.69,
29762 with options \\"\$ac_cs_config\\"
29764 Copyright (C) 2012 Free Software Foundation, Inc.
29765 This config.status script is free software; the Free Software Foundation
29766 gives unlimited permission to copy, distribute and modify it."
29768 ac_pwd='$ac_pwd'
29769 srcdir='$srcdir'
29770 AWK='$AWK'
29771 test -n "\$AWK" || AWK=awk
29772 _ACEOF
29774 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29775 # The default lists apply if the user does not specify any file.
29776 ac_need_defaults=:
29777 while test $# != 0
29779 case $1 in
29780 --*=?*)
29781 ac_option=`expr "X$1" : 'X\([^=]*\)='`
29782 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
29783 ac_shift=:
29785 --*=)
29786 ac_option=`expr "X$1" : 'X\([^=]*\)='`
29787 ac_optarg=
29788 ac_shift=:
29791 ac_option=$1
29792 ac_optarg=$2
29793 ac_shift=shift
29795 esac
29797 case $ac_option in
29798 # Handling of the options.
29799 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
29800 ac_cs_recheck=: ;;
29801 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
29802 $as_echo "$ac_cs_version"; exit ;;
29803 --config | --confi | --conf | --con | --co | --c )
29804 $as_echo "$ac_cs_config"; exit ;;
29805 --debug | --debu | --deb | --de | --d | -d )
29806 debug=: ;;
29807 --file | --fil | --fi | --f )
29808 $ac_shift
29809 case $ac_optarg in
29810 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
29811 '') as_fn_error $? "missing file argument" ;;
29812 esac
29813 as_fn_append CONFIG_FILES " '$ac_optarg'"
29814 ac_need_defaults=false;;
29815 --header | --heade | --head | --hea )
29816 $ac_shift
29817 case $ac_optarg in
29818 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
29819 esac
29820 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
29821 ac_need_defaults=false;;
29822 --he | --h)
29823 # Conflict between --help and --header
29824 as_fn_error $? "ambiguous option: \`$1'
29825 Try \`$0 --help' for more information.";;
29826 --help | --hel | -h )
29827 $as_echo "$ac_cs_usage"; exit ;;
29828 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
29829 | -silent | --silent | --silen | --sile | --sil | --si | --s)
29830 ac_cs_silent=: ;;
29832 # This is an error.
29833 -*) as_fn_error $? "unrecognized option: \`$1'
29834 Try \`$0 --help' for more information." ;;
29836 *) as_fn_append ac_config_targets " $1"
29837 ac_need_defaults=false ;;
29839 esac
29840 shift
29841 done
29843 ac_configure_extra_args=
29845 if $ac_cs_silent; then
29846 exec 6>/dev/null
29847 ac_configure_extra_args="$ac_configure_extra_args --silent"
29850 _ACEOF
29851 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29852 if \$ac_cs_recheck; then
29853 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
29854 shift
29855 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
29856 CONFIG_SHELL='$SHELL'
29857 export CONFIG_SHELL
29858 exec "\$@"
29861 _ACEOF
29862 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29863 exec 5>>config.log
29865 echo
29866 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
29867 ## Running $as_me. ##
29868 _ASBOX
29869 $as_echo "$ac_log"
29870 } >&5
29872 _ACEOF
29873 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29875 # INIT-COMMANDS
29877 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
29878 subdirs="$subdirs" ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
29879 subdirs='$subdirs'
29881 _ACEOF
29883 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29885 # Handling of arguments.
29886 for ac_config_target in $ac_config_targets
29888 case $ac_config_target in
29889 "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
29890 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
29891 "gccdepdir") CONFIG_COMMANDS="$CONFIG_COMMANDS gccdepdir" ;;
29892 "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
29893 "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
29894 "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
29895 "dsymutil") CONFIG_FILES="$CONFIG_FILES dsymutil:exec-tool.in" ;;
29896 "clearcap.map") CONFIG_LINKS="$CONFIG_LINKS clearcap.map:${srcdir}/config/$clearcap_map" ;;
29897 "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
29898 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
29900 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
29901 esac
29902 done
29905 # If the user did not use the arguments to specify the items to instantiate,
29906 # then the envvar interface is used. Set only those that are not.
29907 # We use the long form for the default assignment because of an extremely
29908 # bizarre bug on SunOS 4.1.3.
29909 if $ac_need_defaults; then
29910 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
29911 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
29912 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
29913 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
29916 # Have a temporary directory for convenience. Make it in the build tree
29917 # simply because there is no reason against having it here, and in addition,
29918 # creating and moving files from /tmp can sometimes cause problems.
29919 # Hook for its removal unless debugging.
29920 # Note that there is a small window in which the directory will not be cleaned:
29921 # after its creation but before its name has been assigned to `$tmp'.
29922 $debug ||
29924 tmp= ac_tmp=
29925 trap 'exit_status=$?
29926 : "${ac_tmp:=$tmp}"
29927 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
29929 trap 'as_fn_exit 1' 1 2 13 15
29931 # Create a (secure) tmp directory for tmp files.
29934 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
29935 test -d "$tmp"
29936 } ||
29938 tmp=./conf$$-$RANDOM
29939 (umask 077 && mkdir "$tmp")
29940 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
29941 ac_tmp=$tmp
29943 # Set up the scripts for CONFIG_FILES section.
29944 # No need to generate them if there are no CONFIG_FILES.
29945 # This happens for instance with `./config.status config.h'.
29946 if test -n "$CONFIG_FILES"; then
29948 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
29949 ac_cs_awk_getline=:
29950 ac_cs_awk_pipe_init=
29951 ac_cs_awk_read_file='
29952 while ((getline aline < (F[key])) > 0)
29953 print(aline)
29954 close(F[key])'
29955 ac_cs_awk_pipe_fini=
29956 else
29957 ac_cs_awk_getline=false
29958 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
29959 ac_cs_awk_read_file='
29960 print "|#_!!_#|"
29961 print "cat " F[key] " &&"
29962 '$ac_cs_awk_pipe_init
29963 # The final `:' finishes the AND list.
29964 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
29966 ac_cr=`echo X | tr X '\015'`
29967 # On cygwin, bash can eat \r inside `` if the user requested igncr.
29968 # But we know of no other shell where ac_cr would be empty at this
29969 # point, so we can use a bashism as a fallback.
29970 if test "x$ac_cr" = x; then
29971 eval ac_cr=\$\'\\r\'
29973 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
29974 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
29975 ac_cs_awk_cr='\\r'
29976 else
29977 ac_cs_awk_cr=$ac_cr
29980 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
29981 _ACEOF
29983 # Create commands to substitute file output variables.
29985 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
29986 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
29987 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
29988 echo "_ACAWK" &&
29989 echo "_ACEOF"
29990 } >conf$$files.sh &&
29991 . ./conf$$files.sh ||
29992 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
29993 rm -f conf$$files.sh
29996 echo "cat >conf$$subs.awk <<_ACEOF" &&
29997 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
29998 echo "_ACEOF"
29999 } >conf$$subs.sh ||
30000 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
30001 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
30002 ac_delim='%!_!# '
30003 for ac_last_try in false false false false false :; do
30004 . ./conf$$subs.sh ||
30005 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
30007 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
30008 if test $ac_delim_n = $ac_delim_num; then
30009 break
30010 elif $ac_last_try; then
30011 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
30012 else
30013 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30015 done
30016 rm -f conf$$subs.sh
30018 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30019 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
30020 _ACEOF
30021 sed -n '
30023 s/^/S["/; s/!.*/"]=/
30026 s/^[^!]*!//
30027 :repl
30028 t repl
30029 s/'"$ac_delim"'$//
30030 t delim
30033 s/\(.\{148\}\)..*/\1/
30034 t more1
30035 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
30038 b repl
30039 :more1
30040 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
30043 s/.\{148\}//
30044 t nl
30045 :delim
30047 s/\(.\{148\}\)..*/\1/
30048 t more2
30049 s/["\\]/\\&/g; s/^/"/; s/$/"/
30052 :more2
30053 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
30056 s/.\{148\}//
30057 t delim
30058 ' <conf$$subs.awk | sed '
30059 /^[^""]/{
30061 s/\n//
30063 ' >>$CONFIG_STATUS || ac_write_fail=1
30064 rm -f conf$$subs.awk
30065 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30066 _ACAWK
30067 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
30068 for (key in S) S_is_set[key] = 1
30069 FS = "\a"
30070 \$ac_cs_awk_pipe_init
30073 line = $ 0
30074 nfields = split(line, field, "@")
30075 substed = 0
30076 len = length(field[1])
30077 for (i = 2; i < nfields; i++) {
30078 key = field[i]
30079 keylen = length(key)
30080 if (S_is_set[key]) {
30081 value = S[key]
30082 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
30083 len += length(value) + length(field[++i])
30084 substed = 1
30085 } else
30086 len += 1 + keylen
30088 if (nfields == 3 && !substed) {
30089 key = field[2]
30090 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
30091 \$ac_cs_awk_read_file
30092 next
30095 print line
30097 \$ac_cs_awk_pipe_fini
30098 _ACAWK
30099 _ACEOF
30100 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30101 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
30102 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
30103 else
30105 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
30106 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
30107 _ACEOF
30109 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
30110 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
30111 # trailing colons and then remove the whole line if VPATH becomes empty
30112 # (actually we leave an empty line to preserve line numbers).
30113 if test "x$srcdir" = x.; then
30114 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
30116 s///
30117 s/^/:/
30118 s/[ ]*$/:/
30119 s/:\$(srcdir):/:/g
30120 s/:\${srcdir}:/:/g
30121 s/:@srcdir@:/:/g
30122 s/^:*//
30123 s/:*$//
30125 s/\(=[ ]*\).*/\1/
30127 s/\n//
30128 s/^[^=]*=[ ]*$//
30132 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30133 fi # test -n "$CONFIG_FILES"
30135 # Set up the scripts for CONFIG_HEADERS section.
30136 # No need to generate them if there are no CONFIG_HEADERS.
30137 # This happens for instance with `./config.status Makefile'.
30138 if test -n "$CONFIG_HEADERS"; then
30139 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
30140 BEGIN {
30141 _ACEOF
30143 # Transform confdefs.h into an awk script `defines.awk', embedded as
30144 # here-document in config.status, that substitutes the proper values into
30145 # config.h.in to produce config.h.
30147 # Create a delimiter string that does not exist in confdefs.h, to ease
30148 # handling of long lines.
30149 ac_delim='%!_!# '
30150 for ac_last_try in false false :; do
30151 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
30152 if test -z "$ac_tt"; then
30153 break
30154 elif $ac_last_try; then
30155 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
30156 else
30157 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30159 done
30161 # For the awk script, D is an array of macro values keyed by name,
30162 # likewise P contains macro parameters if any. Preserve backslash
30163 # newline sequences.
30165 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
30166 sed -n '
30167 s/.\{148\}/&'"$ac_delim"'/g
30168 t rset
30169 :rset
30170 s/^[ ]*#[ ]*define[ ][ ]*/ /
30171 t def
30173 :def
30174 s/\\$//
30175 t bsnl
30176 s/["\\]/\\&/g
30177 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
30178 D["\1"]=" \3"/p
30179 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
30181 :bsnl
30182 s/["\\]/\\&/g
30183 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
30184 D["\1"]=" \3\\\\\\n"\\/p
30185 t cont
30186 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
30187 t cont
30189 :cont
30191 s/.\{148\}/&'"$ac_delim"'/g
30192 t clear
30193 :clear
30194 s/\\$//
30195 t bsnlc
30196 s/["\\]/\\&/g; s/^/"/; s/$/"/p
30198 :bsnlc
30199 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
30200 b cont
30201 ' <confdefs.h | sed '
30202 s/'"$ac_delim"'/"\\\
30203 "/g' >>$CONFIG_STATUS || ac_write_fail=1
30205 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30206 for (key in D) D_is_set[key] = 1
30207 FS = "\a"
30209 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
30210 line = \$ 0
30211 split(line, arg, " ")
30212 if (arg[1] == "#") {
30213 defundef = arg[2]
30214 mac1 = arg[3]
30215 } else {
30216 defundef = substr(arg[1], 2)
30217 mac1 = arg[2]
30219 split(mac1, mac2, "(") #)
30220 macro = mac2[1]
30221 prefix = substr(line, 1, index(line, defundef) - 1)
30222 if (D_is_set[macro]) {
30223 # Preserve the white space surrounding the "#".
30224 print prefix "define", macro P[macro] D[macro]
30225 next
30226 } else {
30227 # Replace #undef with comments. This is necessary, for example,
30228 # in the case of _POSIX_SOURCE, which is predefined and required
30229 # on some systems where configure will not decide to define it.
30230 if (defundef == "undef") {
30231 print "/*", prefix defundef, macro, "*/"
30232 next
30236 { print }
30237 _ACAWK
30238 _ACEOF
30239 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30240 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
30241 fi # test -n "$CONFIG_HEADERS"
30244 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
30245 shift
30246 for ac_tag
30248 case $ac_tag in
30249 :[FHLC]) ac_mode=$ac_tag; continue;;
30250 esac
30251 case $ac_mode$ac_tag in
30252 :[FHL]*:*);;
30253 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
30254 :[FH]-) ac_tag=-:-;;
30255 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
30256 esac
30257 ac_save_IFS=$IFS
30258 IFS=:
30259 set x $ac_tag
30260 IFS=$ac_save_IFS
30261 shift
30262 ac_file=$1
30263 shift
30265 case $ac_mode in
30266 :L) ac_source=$1;;
30267 :[FH])
30268 ac_file_inputs=
30269 for ac_f
30271 case $ac_f in
30272 -) ac_f="$ac_tmp/stdin";;
30273 *) # Look for the file first in the build tree, then in the source tree
30274 # (if the path is not absolute). The absolute path cannot be DOS-style,
30275 # because $ac_f cannot contain `:'.
30276 test -f "$ac_f" ||
30277 case $ac_f in
30278 [\\/$]*) false;;
30279 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
30280 esac ||
30281 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
30282 esac
30283 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
30284 as_fn_append ac_file_inputs " '$ac_f'"
30285 done
30287 # Let's still pretend it is `configure' which instantiates (i.e., don't
30288 # use $as_me), people would be surprised to read:
30289 # /* config.h. Generated by config.status. */
30290 configure_input='Generated from '`
30291 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
30292 `' by configure.'
30293 if test x"$ac_file" != x-; then
30294 configure_input="$ac_file. $configure_input"
30295 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
30296 $as_echo "$as_me: creating $ac_file" >&6;}
30298 # Neutralize special characters interpreted by sed in replacement strings.
30299 case $configure_input in #(
30300 *\&* | *\|* | *\\* )
30301 ac_sed_conf_input=`$as_echo "$configure_input" |
30302 sed 's/[\\\\&|]/\\\\&/g'`;; #(
30303 *) ac_sed_conf_input=$configure_input;;
30304 esac
30306 case $ac_tag in
30307 *:-:* | *:-) cat >"$ac_tmp/stdin" \
30308 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
30309 esac
30311 esac
30313 ac_dir=`$as_dirname -- "$ac_file" ||
30314 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30315 X"$ac_file" : 'X\(//\)[^/]' \| \
30316 X"$ac_file" : 'X\(//\)$' \| \
30317 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
30318 $as_echo X"$ac_file" |
30319 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30320 s//\1/
30323 /^X\(\/\/\)[^/].*/{
30324 s//\1/
30327 /^X\(\/\/\)$/{
30328 s//\1/
30331 /^X\(\/\).*/{
30332 s//\1/
30335 s/.*/./; q'`
30336 as_dir="$ac_dir"; as_fn_mkdir_p
30337 ac_builddir=.
30339 case "$ac_dir" in
30340 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
30342 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
30343 # A ".." for each directory in $ac_dir_suffix.
30344 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
30345 case $ac_top_builddir_sub in
30346 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
30347 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
30348 esac ;;
30349 esac
30350 ac_abs_top_builddir=$ac_pwd
30351 ac_abs_builddir=$ac_pwd$ac_dir_suffix
30352 # for backward compatibility:
30353 ac_top_builddir=$ac_top_build_prefix
30355 case $srcdir in
30356 .) # We are building in place.
30357 ac_srcdir=.
30358 ac_top_srcdir=$ac_top_builddir_sub
30359 ac_abs_top_srcdir=$ac_pwd ;;
30360 [\\/]* | ?:[\\/]* ) # Absolute name.
30361 ac_srcdir=$srcdir$ac_dir_suffix;
30362 ac_top_srcdir=$srcdir
30363 ac_abs_top_srcdir=$srcdir ;;
30364 *) # Relative name.
30365 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
30366 ac_top_srcdir=$ac_top_build_prefix$srcdir
30367 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
30368 esac
30369 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
30372 case $ac_mode in
30375 # CONFIG_FILE
30378 _ACEOF
30380 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30381 # If the template does not know about datarootdir, expand it.
30382 # FIXME: This hack should be removed a few years after 2.60.
30383 ac_datarootdir_hack=; ac_datarootdir_seen=
30384 ac_sed_dataroot='
30385 /datarootdir/ {
30389 /@datadir@/p
30390 /@docdir@/p
30391 /@infodir@/p
30392 /@localedir@/p
30393 /@mandir@/p'
30394 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
30395 *datarootdir*) ac_datarootdir_seen=yes;;
30396 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
30397 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
30398 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
30399 _ACEOF
30400 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30401 ac_datarootdir_hack='
30402 s&@datadir@&$datadir&g
30403 s&@docdir@&$docdir&g
30404 s&@infodir@&$infodir&g
30405 s&@localedir@&$localedir&g
30406 s&@mandir@&$mandir&g
30407 s&\\\${datarootdir}&$datarootdir&g' ;;
30408 esac
30409 _ACEOF
30411 # Neutralize VPATH when `$srcdir' = `.'.
30412 # Shell code in configure.ac might set extrasub.
30413 # FIXME: do we really want to maintain this feature?
30414 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30415 ac_sed_extra="$ac_vpsub
30416 $extrasub
30417 _ACEOF
30418 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30420 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30421 s|@configure_input@|$ac_sed_conf_input|;t t
30422 s&@top_builddir@&$ac_top_builddir_sub&;t t
30423 s&@top_build_prefix@&$ac_top_build_prefix&;t t
30424 s&@srcdir@&$ac_srcdir&;t t
30425 s&@abs_srcdir@&$ac_abs_srcdir&;t t
30426 s&@top_srcdir@&$ac_top_srcdir&;t t
30427 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
30428 s&@builddir@&$ac_builddir&;t t
30429 s&@abs_builddir@&$ac_abs_builddir&;t t
30430 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
30431 $ac_datarootdir_hack
30433 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
30434 if $ac_cs_awk_getline; then
30435 $AWK -f "$ac_tmp/subs.awk"
30436 else
30437 $AWK -f "$ac_tmp/subs.awk" | $SHELL
30438 fi \
30439 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
30441 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
30442 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
30443 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
30444 "$ac_tmp/out"`; test -z "$ac_out"; } &&
30445 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30446 which seems to be undefined. Please make sure it is defined" >&5
30447 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30448 which seems to be undefined. Please make sure it is defined" >&2;}
30450 rm -f "$ac_tmp/stdin"
30451 case $ac_file in
30452 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
30453 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
30454 esac \
30455 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
30459 # CONFIG_HEADER
30461 if test x"$ac_file" != x-; then
30463 $as_echo "/* $configure_input */" \
30464 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
30465 } >"$ac_tmp/config.h" \
30466 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
30467 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
30468 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
30469 $as_echo "$as_me: $ac_file is unchanged" >&6;}
30470 else
30471 rm -f "$ac_file"
30472 mv "$ac_tmp/config.h" "$ac_file" \
30473 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
30475 else
30476 $as_echo "/* $configure_input */" \
30477 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
30478 || as_fn_error $? "could not create -" "$LINENO" 5
30483 # CONFIG_LINK
30486 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
30488 else
30489 # Prefer the file from the source tree if names are identical.
30490 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
30491 ac_source=$srcdir/$ac_source
30494 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
30495 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
30497 if test ! -r "$ac_source"; then
30498 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
30500 rm -f "$ac_file"
30502 # Try a relative symlink, then a hard link, then a copy.
30503 case $ac_source in
30504 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
30505 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
30506 esac
30507 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
30508 ln "$ac_source" "$ac_file" 2>/dev/null ||
30509 cp -p "$ac_source" "$ac_file" ||
30510 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
30513 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
30514 $as_echo "$as_me: executing $ac_file commands" >&6;}
30516 esac
30519 case $ac_file$ac_mode in
30520 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
30521 "gccdepdir":C)
30522 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs build/$DEPDIR
30523 for lang in $subdirs c-family common analyzer rtl-ssa
30525 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs $lang/$DEPDIR
30526 done ;;
30527 "as":F) chmod +x as ;;
30528 "collect-ld":F) chmod +x collect-ld ;;
30529 "nm":F) chmod +x nm ;;
30530 "dsymutil":F) chmod +x dsymutil ;;
30531 "default":C)
30532 case ${CONFIG_HEADERS} in
30533 *auto-host.h:config.in*)
30534 echo > cstamp-h ;;
30535 esac
30536 # Make sure all the subdirs exist.
30537 for d in $subdirs doc build common c-family
30539 test -d $d || mkdir $d
30540 done
30543 esac
30544 done # for ac_tag
30547 as_fn_exit 0
30548 _ACEOF
30549 ac_clean_files=$ac_clean_files_save
30551 test $ac_write_fail = 0 ||
30552 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
30555 # configure is writing to config.log, and then calls config.status.
30556 # config.status does its own redirection, appending to config.log.
30557 # Unfortunately, on DOS this fails, as config.log is still kept open
30558 # by configure, so config.status won't be able to write to it; its
30559 # output is simply discarded. So we exec the FD to /dev/null,
30560 # effectively closing config.log, so it can be properly (re)opened and
30561 # appended to by config.status. When coming back to configure, we
30562 # need to make the FD available again.
30563 if test "$no_create" != yes; then
30564 ac_cs_success=:
30565 ac_config_status_args=
30566 test "$silent" = yes &&
30567 ac_config_status_args="$ac_config_status_args --quiet"
30568 exec 5>/dev/null
30569 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
30570 exec 5>>config.log
30571 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
30572 # would make configure fail if this is the last instruction.
30573 $ac_cs_success || as_fn_exit 1
30575 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
30576 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
30577 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}