Add testcase of PR c++/92542, already fixed.
[official-gcc.git] / gcc / configure
blob490fe6ac8e86fb04c53662a7b75f4fd60b8f87ec
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
30 esac
34 as_nl='
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
174 esac
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
190 else
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1
201 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
202 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 PATH=/empty FPATH=/empty; export PATH FPATH
206 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
207 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
208 if (eval "$as_required") 2>/dev/null; then :
209 as_have_required=yes
210 else
211 as_have_required=no
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
215 else
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217 as_found=false
218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
220 IFS=$as_save_IFS
221 test -z "$as_dir" && as_dir=.
222 as_found=:
223 case $as_dir in #(
225 for as_base in sh bash ksh sh5; do
226 # Try only shells that exist, to save several forks.
227 as_shell=$as_dir/$as_base
228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230 CONFIG_SHELL=$as_shell as_have_required=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 break 2
235 done;;
236 esac
237 as_found=false
238 done
239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241 CONFIG_SHELL=$SHELL as_have_required=yes
242 fi; }
243 IFS=$as_save_IFS
246 if test "x$CONFIG_SHELL" != x; then :
247 export CONFIG_SHELL
248 # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
252 BASH_ENV=/dev/null
253 ENV=/dev/null
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255 case $- in # ((((
256 *v*x* | *x*v* ) as_opts=-vx ;;
257 *v* ) as_opts=-v ;;
258 *x* ) as_opts=-x ;;
259 * ) as_opts= ;;
260 esac
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265 exit 255
268 if test x$as_have_required = xno; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x${ZSH_VERSION+set} = xset ; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274 else
275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
280 exit 1
284 SHELL=${CONFIG_SHELL-/bin/sh}
285 export SHELL
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
293 # as_fn_unset VAR
294 # ---------------
295 # Portably unset VAR.
296 as_fn_unset ()
298 { eval $1=; unset $1;}
300 as_unset=as_fn_unset
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
305 as_fn_set_status ()
307 return $1
308 } # as_fn_set_status
310 # as_fn_exit STATUS
311 # -----------------
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313 as_fn_exit ()
315 set +e
316 as_fn_set_status $1
317 exit $1
318 } # as_fn_exit
320 # as_fn_mkdir_p
321 # -------------
322 # Create "$as_dir" as a directory, including parents if necessary.
323 as_fn_mkdir_p ()
326 case $as_dir in #(
327 -*) as_dir=./$as_dir;;
328 esac
329 test -d "$as_dir" || eval $as_mkdir_p || {
330 as_dirs=
331 while :; do
332 case $as_dir in #(
333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334 *) as_qdir=$as_dir;;
335 esac
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344 s//\1/
347 /^X\(\/\/\)[^/].*/{
348 s//\1/
351 /^X\(\/\/\)$/{
352 s//\1/
355 /^X\(\/\).*/{
356 s//\1/
359 s/.*/./; q'`
360 test -d "$as_dir" && break
361 done
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
366 } # as_fn_mkdir_p
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
373 test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
380 # implementations.
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
384 eval $1+=\$2
386 else
387 as_fn_append ()
389 eval $1=\$$1\$2
391 fi # as_fn_append
393 # as_fn_arith ARG...
394 # ------------------
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399 eval 'as_fn_arith ()
401 as_val=$(( $* ))
403 else
404 as_fn_arith ()
406 as_val=`expr "$@" || test $? -eq 1`
408 fi # as_fn_arith
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
416 as_fn_error ()
418 as_status=$1; test $as_status -eq 0 && as_status=1
419 if test "$4"; then
420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit $as_status
425 } # as_fn_error
427 if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
429 as_expr=expr
430 else
431 as_expr=false
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 as_basename=basename
436 else
437 as_basename=false
440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_dirname=dirname
442 else
443 as_dirname=false
446 as_me=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450 $as_echo X/"$0" |
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
452 s//\1/
455 /^X\/\(\/\/\)$/{
456 s//\1/
459 /^X\/\(\/\).*/{
460 s//\1/
463 s/.*/./; q'`
465 # Avoid depending upon Character Ranges.
466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits='0123456789'
470 as_cr_alnum=$as_cr_Letters$as_cr_digits
473 as_lineno_1=$LINENO as_lineno_1a=$LINENO
474 as_lineno_2=$LINENO as_lineno_2a=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
478 sed -n '
480 /[$]LINENO/=
481 ' <$as_myself |
482 sed '
483 s/[$]LINENO.*/&-/
484 t lineno
486 :lineno
488 :loop
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490 t loop
491 s/-\n.*//
492 ' >$as_me.lineno &&
493 chmod +x "$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec=no; export _as_can_reexec
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
503 . "./$as_me.lineno"
504 # Exit status is that of the last command.
505 exit
508 ECHO_C= ECHO_N= ECHO_T=
509 case `echo -n x` in #(((((
510 -n*)
511 case `echo 'xy\c'` in
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
513 xy) ECHO_C='\c';;
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
515 ECHO_T=' ';;
516 esac;;
518 ECHO_N='-n';;
519 esac
521 rm -f conf$$ conf$$.exe conf$$.file
522 if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
524 else
525 rm -f conf$$.dir
526 mkdir conf$$.dir 2>/dev/null
528 if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s='ln -s'
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534 # In both cases, we have to default to `cp -pR'.
535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536 as_ln_s='cp -pR'
537 elif ln conf$$.file conf$$ 2>/dev/null; then
538 as_ln_s=ln
539 else
540 as_ln_s='cp -pR'
542 else
543 as_ln_s='cp -pR'
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
548 if mkdir -p . 2>/dev/null; then
549 as_mkdir_p='mkdir -p "$as_dir"'
550 else
551 test -d ./-p && rmdir ./-p
552 as_mkdir_p=false
555 as_test_x='test -x'
556 as_executable_p=as_fn_executable_p
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
564 SHELL=${CONFIG_SHELL-/bin/sh}
567 test -n "$DJDIR" || exec 7<&0 </dev/null
568 exec 6>&1
570 # Name of the host.
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
576 # Initializations.
578 ac_default_prefix=/usr/local
579 ac_clean_files=
580 ac_config_libobj_dir=.
581 LIBOBJS=
582 cross_compiling=no
583 subdirs=
584 MFLAGS=
585 MAKEFLAGS=
587 # Identity of this package.
588 PACKAGE_NAME=
589 PACKAGE_TARNAME=
590 PACKAGE_VERSION=
591 PACKAGE_STRING=
592 PACKAGE_BUGREPORT=
593 PACKAGE_URL=
595 ac_unique_file="tree.c"
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 NO_PIE_FLAG
635 NO_PIE_CFLAGS
636 enable_default_pie
637 PICFLAG
638 enable_host_shared
639 enable_plugin
640 pluginlibs
641 ISLINC
642 ISLLIBS
643 GMPINC
644 GMPLIBS
645 target_cpu_default
646 d_target_objs
647 fortran_target_objs
648 cxx_target_objs
649 c_target_objs
650 use_gcc_stdint
651 xm_defines
652 xm_include_list
653 xm_file_list
654 tm_d_include_list
655 tm_d_file_list
656 tm_p_include_list
657 tm_p_file_list
658 tm_defines
659 tm_include_list
660 tm_file_list
661 common_out_object_file
662 common_out_file
663 out_object_file
664 out_file
665 objc_boehm_gc
666 md_file
667 local_prefix
668 lang_tree_files
669 lang_specs_files
670 lang_opt_files
671 install
672 out_host_hook_obj
673 host_xm_defines
674 host_xm_include_list
675 host_xm_file_list
676 host_exeext
677 gcc_gxx_include_dir_add_sysroot
678 gcc_gxx_include_dir
679 gcc_config_arguments
680 float_h_file
681 extra_programs
682 extra_objs
683 extra_headers_list
684 user_headers_inc_next_post
685 user_headers_inc_next_pre
686 extra_gcc_objs
687 TM_MULTILIB_EXCEPTIONS_CONFIG
688 TM_MULTILIB_CONFIG
689 TM_ENDIAN_CONFIG
690 tmake_file
691 xmake_file
692 cpp_install_dir
693 selftest_languages
694 check_languages
695 build_file_translate
696 build_xm_defines
697 build_xm_include_list
698 build_xm_file_list
699 build_install_headers_dir
700 build_exeext
701 all_selected_languages
702 all_languages
703 all_lang_makefrags
704 all_lang_configurefrags
705 all_gtfiles
706 all_compilers
707 srcdir
708 subdirs
709 dollar
710 gcc_tooldir
711 enable_lto
712 DO_LINK_MUTEX
713 MAINT
714 zlibinc
715 zlibdir
716 HOST_LIBS
717 enable_default_ssp
718 thin_archive_support
719 ld_soname_option
720 ld_version_script_option
721 libgcc_visibility
722 gcc_cv_otool
723 gcc_cv_readelf
724 gcc_cv_objdump
725 ORIGINAL_NM_FOR_TARGET
726 gcc_cv_nm
727 ORIGINAL_LD_GOLD_FOR_TARGET
728 ORIGINAL_LD_BFD_FOR_TARGET
729 ORIGINAL_LD_FOR_TARGET
730 ORIGINAL_PLUGIN_LD_FOR_TARGET
731 gcc_cv_ld
732 ORIGINAL_AS_FOR_TARGET
733 gcc_cv_as
734 enable_fast_install
735 objdir
736 OTOOL64
737 OTOOL
738 LIPO
739 NMEDIT
740 DSYMUTIL
741 STRIP
742 OBJDUMP
743 ac_ct_DUMPBIN
744 DUMPBIN
746 FGREP
748 LIBTOOL
749 collect2
750 NO_PIE_FLAG_FOR_BUILD
751 NO_PIE_CFLAGS_FOR_BUILD
752 BUILD_NO_PIE_FLAG
753 BUILD_NO_PIE_CFLAGS
754 STMP_FIXINC
755 BUILD_LDFLAGS
756 BUILD_CXXFLAGS
757 BUILD_CFLAGS
758 CXX_FOR_BUILD
759 CC_FOR_BUILD
760 inhibit_libc
761 BUILD_SYSTEM_HEADER_DIR
762 SYSTEM_HEADER_DIR
764 CROSS
765 CATOBJEXT
766 GENCAT
767 INSTOBJEXT
768 DATADIRNAME
769 CATALOGS
770 POSUB
771 GMSGFMT
772 XGETTEXT
773 INCINTL
774 LIBINTL_DEP
775 LIBINTL
776 USE_NLS
777 get_gcc_base_ver
778 HAVE_AUTO_BUILD
779 extra_opt_files
780 extra_modes_file
781 NATIVE_SYSTEM_HEADER_DIR
782 objext
783 manext
784 LIBICONV_DEP
785 LTLIBICONV
786 LIBICONV
787 ZSTD_LIB
788 ZSTD_INCLUDE
789 DL_LIB
790 LDEXP_LIB
791 EXTRA_GCC_LIBS
792 GNAT_LIBEXC
793 COLLECT2_LIBS
794 CXXDEPMODE
795 DEPDIR
796 am__leading_dot
797 doc_build_sys
800 BISON
801 FLEX
802 GENERATED_MANPAGES
803 BUILD_INFO
804 MAKEINFO
805 have_mktemp_command
806 make_compare_target
807 INSTALL_DATA
808 INSTALL_PROGRAM
809 INSTALL
810 ranlib_flags
811 RANLIB
813 LN_S
815 SET_MAKE
816 omp_device_property_deps
817 omp_device_properties
818 accel_dir_suffix
819 real_target_noncanonical
820 enable_as_accelerator
821 gnat_install_lib
822 DOCUMENTATION_ROOT_URL
823 REPORT_BUGS_TEXI
824 REPORT_BUGS_TO
825 PKGVERSION
826 CONFIGURE_SPECS
827 enable_gcov
828 enable_shared
829 enable_fixed_point
830 enable_decimal_float
831 with_float
832 with_cpu
833 enable_multiarch
834 enable_multilib
835 coverage_flags
836 valgrind_command
837 valgrind_path_defines
838 valgrind_path
839 TREECHECKING
840 nocommon_flag
841 noexception_flags
842 warn_cxxflags
843 warn_cflags
844 c_strict_warn
845 strict_warn
846 c_loose_warn
847 loose_warn
848 aliasing_flags
850 EGREP
851 GREP
852 CXXCPP
853 PICFLAG_FOR_TARGET
854 GNATMAKE
855 GNATBIND
856 ac_ct_CXX
857 CXXFLAGS
859 OBJEXT
860 EXEEXT
861 ac_ct_CC
862 CPPFLAGS
863 LDFLAGS
864 CFLAGS
866 GENINSRC
867 CROSS_SYSTEM_HEADER_DIR
868 TARGET_SYSTEM_ROOT_DEFINE
869 TARGET_SYSTEM_ROOT
870 SYSROOT_CFLAGS_FOR_TARGET
871 target_subdir
872 host_subdir
873 build_subdir
874 build_libsubdir
875 target_noncanonical
876 host_noncanonical
877 target_os
878 target_vendor
879 target_cpu
880 target
881 host_os
882 host_vendor
883 host_cpu
884 host
885 build_os
886 build_vendor
887 build_cpu
888 build
889 target_alias
890 host_alias
891 build_alias
892 LIBS
893 ECHO_T
894 ECHO_N
895 ECHO_C
896 DEFS
897 mandir
898 localedir
899 libdir
900 psdir
901 pdfdir
902 dvidir
903 htmldir
904 infodir
905 docdir
906 oldincludedir
907 includedir
908 localstatedir
909 sharedstatedir
910 sysconfdir
911 datadir
912 datarootdir
913 libexecdir
914 sbindir
915 bindir
916 program_transform_name
917 prefix
918 exec_prefix
919 PACKAGE_URL
920 PACKAGE_BUGREPORT
921 PACKAGE_STRING
922 PACKAGE_VERSION
923 PACKAGE_TARNAME
924 PACKAGE_NAME
925 PATH_SEPARATOR
926 SHELL'
927 ac_subst_files='option_includes
928 language_hooks'
929 ac_user_opts='
930 enable_option_checking
931 with_build_libsubdir
932 with_local_prefix
933 with_native_system_header_dir
934 with_build_sysroot
935 with_sysroot
936 with_gxx_include_dir
937 with_cpp_install_dir
938 enable_generated_files_in_srcdir
939 with_gnu_ld
940 with_ld
941 with_demangler_in_ld
942 with_gnu_as
943 with_as
944 enable_largefile
945 enable_build_format_warnings
946 enable_werror_always
947 enable_checking
948 enable_coverage
949 enable_gather_detailed_mem_stats
950 enable_valgrind_annotations
951 with_stabs
952 enable_multilib
953 enable_multiarch
954 with_stack_clash_protection_guard_size
955 enable___cxa_atexit
956 enable_decimal_float
957 enable_fixed_point
958 enable_threads
959 enable_tls
960 enable_vtable_verify
961 enable_analyzer
962 enable_objc_gc
963 with_dwarf2
964 enable_shared
965 enable_gcov
966 with_specs
967 with_pkgversion
968 with_bugurl
969 with_documentation_root_url
970 enable_languages
971 with_multilib_list
972 with_zstd
973 with_zstd_include
974 with_zstd_lib
975 enable_rpath
976 with_libiconv_prefix
977 enable_sjlj_exceptions
978 with_gcc_major_version_only
979 enable_secureplt
980 enable_mingw_wildcard
981 enable_large_address_aware
982 enable_leading_mingw64_underscores
983 enable_cld
984 enable_frame_pointer
985 enable_win32_registry
986 enable_static
987 with_pic
988 enable_fast_install
989 enable_libtool_lock
990 enable_ld
991 enable_gold
992 with_plugin_ld
993 enable_gnu_indirect_function
994 enable_initfini_array
995 enable_comdat
996 enable_newlib_nano_formatted_io
997 enable_standard_branch_protection
998 enable_fix_cortex_a53_835769
999 enable_fix_cortex_a53_843419
1000 with_glibc_version
1001 enable_gnu_unique_object
1002 enable_linker_build_id
1003 enable_libssp
1004 enable_default_ssp
1005 with_long_double_128
1006 with_long_double_format
1007 with_gc
1008 with_system_zlib
1009 enable_maintainer_mode
1010 enable_link_mutex
1011 enable_version_specific_runtime_libs
1012 enable_plugin
1013 enable_host_shared
1014 enable_libquadmath_support
1015 with_linker_hash_style
1016 with_diagnostics_color
1017 enable_default_pie
1019 ac_precious_vars='build_alias
1020 host_alias
1021 target_alias
1023 CFLAGS
1024 LDFLAGS
1025 LIBS
1026 CPPFLAGS
1028 CXXFLAGS
1030 CXXCPP
1032 GMPLIBS
1033 GMPINC
1034 ISLLIBS
1035 ISLINC'
1038 # Initialize some variables set by options.
1039 ac_init_help=
1040 ac_init_version=false
1041 ac_unrecognized_opts=
1042 ac_unrecognized_sep=
1043 # The variables have the same names as the options, with
1044 # dashes changed to underlines.
1045 cache_file=/dev/null
1046 exec_prefix=NONE
1047 no_create=
1048 no_recursion=
1049 prefix=NONE
1050 program_prefix=NONE
1051 program_suffix=NONE
1052 program_transform_name=s,x,x,
1053 silent=
1054 site=
1055 srcdir=
1056 verbose=
1057 x_includes=NONE
1058 x_libraries=NONE
1060 # Installation directory options.
1061 # These are left unexpanded so users can "make install exec_prefix=/foo"
1062 # and all the variables that are supposed to be based on exec_prefix
1063 # by default will actually change.
1064 # Use braces instead of parens because sh, perl, etc. also accept them.
1065 # (The list follows the same order as the GNU Coding Standards.)
1066 bindir='${exec_prefix}/bin'
1067 sbindir='${exec_prefix}/sbin'
1068 libexecdir='${exec_prefix}/libexec'
1069 datarootdir='${prefix}/share'
1070 datadir='${datarootdir}'
1071 sysconfdir='${prefix}/etc'
1072 sharedstatedir='${prefix}/com'
1073 localstatedir='${prefix}/var'
1074 includedir='${prefix}/include'
1075 oldincludedir='/usr/include'
1076 docdir='${datarootdir}/doc/${PACKAGE}'
1077 infodir='${datarootdir}/info'
1078 htmldir='${docdir}'
1079 dvidir='${docdir}'
1080 pdfdir='${docdir}'
1081 psdir='${docdir}'
1082 libdir='${exec_prefix}/lib'
1083 localedir='${datarootdir}/locale'
1084 mandir='${datarootdir}/man'
1086 ac_prev=
1087 ac_dashdash=
1088 for ac_option
1090 # If the previous option needs an argument, assign it.
1091 if test -n "$ac_prev"; then
1092 eval $ac_prev=\$ac_option
1093 ac_prev=
1094 continue
1097 case $ac_option in
1098 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1099 *=) ac_optarg= ;;
1100 *) ac_optarg=yes ;;
1101 esac
1103 # Accept the important Cygnus configure options, so we can diagnose typos.
1105 case $ac_dashdash$ac_option in
1107 ac_dashdash=yes ;;
1109 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1110 ac_prev=bindir ;;
1111 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1112 bindir=$ac_optarg ;;
1114 -build | --build | --buil | --bui | --bu)
1115 ac_prev=build_alias ;;
1116 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1117 build_alias=$ac_optarg ;;
1119 -cache-file | --cache-file | --cache-fil | --cache-fi \
1120 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1121 ac_prev=cache_file ;;
1122 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1123 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1124 cache_file=$ac_optarg ;;
1126 --config-cache | -C)
1127 cache_file=config.cache ;;
1129 -datadir | --datadir | --datadi | --datad)
1130 ac_prev=datadir ;;
1131 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1132 datadir=$ac_optarg ;;
1134 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1135 | --dataroo | --dataro | --datar)
1136 ac_prev=datarootdir ;;
1137 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1138 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1139 datarootdir=$ac_optarg ;;
1141 -disable-* | --disable-*)
1142 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1143 # Reject names that are not valid shell variable names.
1144 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1145 as_fn_error $? "invalid feature name: $ac_useropt"
1146 ac_useropt_orig=$ac_useropt
1147 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1148 case $ac_user_opts in
1150 "enable_$ac_useropt"
1151 "*) ;;
1152 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1153 ac_unrecognized_sep=', ';;
1154 esac
1155 eval enable_$ac_useropt=no ;;
1157 -docdir | --docdir | --docdi | --doc | --do)
1158 ac_prev=docdir ;;
1159 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1160 docdir=$ac_optarg ;;
1162 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1163 ac_prev=dvidir ;;
1164 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1165 dvidir=$ac_optarg ;;
1167 -enable-* | --enable-*)
1168 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1169 # Reject names that are not valid shell variable names.
1170 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1171 as_fn_error $? "invalid feature name: $ac_useropt"
1172 ac_useropt_orig=$ac_useropt
1173 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1174 case $ac_user_opts in
1176 "enable_$ac_useropt"
1177 "*) ;;
1178 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1179 ac_unrecognized_sep=', ';;
1180 esac
1181 eval enable_$ac_useropt=\$ac_optarg ;;
1183 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1184 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1185 | --exec | --exe | --ex)
1186 ac_prev=exec_prefix ;;
1187 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1188 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1189 | --exec=* | --exe=* | --ex=*)
1190 exec_prefix=$ac_optarg ;;
1192 -gas | --gas | --ga | --g)
1193 # Obsolete; use --with-gas.
1194 with_gas=yes ;;
1196 -help | --help | --hel | --he | -h)
1197 ac_init_help=long ;;
1198 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1199 ac_init_help=recursive ;;
1200 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1201 ac_init_help=short ;;
1203 -host | --host | --hos | --ho)
1204 ac_prev=host_alias ;;
1205 -host=* | --host=* | --hos=* | --ho=*)
1206 host_alias=$ac_optarg ;;
1208 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1209 ac_prev=htmldir ;;
1210 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1211 | --ht=*)
1212 htmldir=$ac_optarg ;;
1214 -includedir | --includedir | --includedi | --included | --include \
1215 | --includ | --inclu | --incl | --inc)
1216 ac_prev=includedir ;;
1217 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1218 | --includ=* | --inclu=* | --incl=* | --inc=*)
1219 includedir=$ac_optarg ;;
1221 -infodir | --infodir | --infodi | --infod | --info | --inf)
1222 ac_prev=infodir ;;
1223 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1224 infodir=$ac_optarg ;;
1226 -libdir | --libdir | --libdi | --libd)
1227 ac_prev=libdir ;;
1228 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1229 libdir=$ac_optarg ;;
1231 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1232 | --libexe | --libex | --libe)
1233 ac_prev=libexecdir ;;
1234 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1235 | --libexe=* | --libex=* | --libe=*)
1236 libexecdir=$ac_optarg ;;
1238 -localedir | --localedir | --localedi | --localed | --locale)
1239 ac_prev=localedir ;;
1240 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1241 localedir=$ac_optarg ;;
1243 -localstatedir | --localstatedir | --localstatedi | --localstated \
1244 | --localstate | --localstat | --localsta | --localst | --locals)
1245 ac_prev=localstatedir ;;
1246 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1247 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1248 localstatedir=$ac_optarg ;;
1250 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1251 ac_prev=mandir ;;
1252 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1253 mandir=$ac_optarg ;;
1255 -nfp | --nfp | --nf)
1256 # Obsolete; use --without-fp.
1257 with_fp=no ;;
1259 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1260 | --no-cr | --no-c | -n)
1261 no_create=yes ;;
1263 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1264 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1265 no_recursion=yes ;;
1267 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1268 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1269 | --oldin | --oldi | --old | --ol | --o)
1270 ac_prev=oldincludedir ;;
1271 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1272 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1273 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1274 oldincludedir=$ac_optarg ;;
1276 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1277 ac_prev=prefix ;;
1278 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1279 prefix=$ac_optarg ;;
1281 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1282 | --program-pre | --program-pr | --program-p)
1283 ac_prev=program_prefix ;;
1284 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1285 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1286 program_prefix=$ac_optarg ;;
1288 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1289 | --program-suf | --program-su | --program-s)
1290 ac_prev=program_suffix ;;
1291 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1292 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1293 program_suffix=$ac_optarg ;;
1295 -program-transform-name | --program-transform-name \
1296 | --program-transform-nam | --program-transform-na \
1297 | --program-transform-n | --program-transform- \
1298 | --program-transform | --program-transfor \
1299 | --program-transfo | --program-transf \
1300 | --program-trans | --program-tran \
1301 | --progr-tra | --program-tr | --program-t)
1302 ac_prev=program_transform_name ;;
1303 -program-transform-name=* | --program-transform-name=* \
1304 | --program-transform-nam=* | --program-transform-na=* \
1305 | --program-transform-n=* | --program-transform-=* \
1306 | --program-transform=* | --program-transfor=* \
1307 | --program-transfo=* | --program-transf=* \
1308 | --program-trans=* | --program-tran=* \
1309 | --progr-tra=* | --program-tr=* | --program-t=*)
1310 program_transform_name=$ac_optarg ;;
1312 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1313 ac_prev=pdfdir ;;
1314 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1315 pdfdir=$ac_optarg ;;
1317 -psdir | --psdir | --psdi | --psd | --ps)
1318 ac_prev=psdir ;;
1319 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1320 psdir=$ac_optarg ;;
1322 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1323 | -silent | --silent | --silen | --sile | --sil)
1324 silent=yes ;;
1326 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1327 ac_prev=sbindir ;;
1328 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1329 | --sbi=* | --sb=*)
1330 sbindir=$ac_optarg ;;
1332 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1333 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1334 | --sharedst | --shareds | --shared | --share | --shar \
1335 | --sha | --sh)
1336 ac_prev=sharedstatedir ;;
1337 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1338 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1339 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1340 | --sha=* | --sh=*)
1341 sharedstatedir=$ac_optarg ;;
1343 -site | --site | --sit)
1344 ac_prev=site ;;
1345 -site=* | --site=* | --sit=*)
1346 site=$ac_optarg ;;
1348 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1349 ac_prev=srcdir ;;
1350 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1351 srcdir=$ac_optarg ;;
1353 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1354 | --syscon | --sysco | --sysc | --sys | --sy)
1355 ac_prev=sysconfdir ;;
1356 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1357 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1358 sysconfdir=$ac_optarg ;;
1360 -target | --target | --targe | --targ | --tar | --ta | --t)
1361 ac_prev=target_alias ;;
1362 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1363 target_alias=$ac_optarg ;;
1365 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1366 verbose=yes ;;
1368 -version | --version | --versio | --versi | --vers | -V)
1369 ac_init_version=: ;;
1371 -with-* | --with-*)
1372 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1373 # Reject names that are not valid shell variable names.
1374 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1375 as_fn_error $? "invalid package name: $ac_useropt"
1376 ac_useropt_orig=$ac_useropt
1377 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1378 case $ac_user_opts in
1380 "with_$ac_useropt"
1381 "*) ;;
1382 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1383 ac_unrecognized_sep=', ';;
1384 esac
1385 eval with_$ac_useropt=\$ac_optarg ;;
1387 -without-* | --without-*)
1388 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1389 # Reject names that are not valid shell variable names.
1390 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1391 as_fn_error $? "invalid package name: $ac_useropt"
1392 ac_useropt_orig=$ac_useropt
1393 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1394 case $ac_user_opts in
1396 "with_$ac_useropt"
1397 "*) ;;
1398 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1399 ac_unrecognized_sep=', ';;
1400 esac
1401 eval with_$ac_useropt=no ;;
1403 --x)
1404 # Obsolete; use --with-x.
1405 with_x=yes ;;
1407 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1408 | --x-incl | --x-inc | --x-in | --x-i)
1409 ac_prev=x_includes ;;
1410 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1411 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1412 x_includes=$ac_optarg ;;
1414 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1415 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1416 ac_prev=x_libraries ;;
1417 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1418 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1419 x_libraries=$ac_optarg ;;
1421 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1422 Try \`$0 --help' for more information"
1425 *=*)
1426 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1427 # Reject names that are not valid shell variable names.
1428 case $ac_envvar in #(
1429 '' | [0-9]* | *[!_$as_cr_alnum]* )
1430 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1431 esac
1432 eval $ac_envvar=\$ac_optarg
1433 export $ac_envvar ;;
1436 # FIXME: should be removed in autoconf 3.0.
1437 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1438 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1439 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1440 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1443 esac
1444 done
1446 if test -n "$ac_prev"; then
1447 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1448 as_fn_error $? "missing argument to $ac_option"
1451 if test -n "$ac_unrecognized_opts"; then
1452 case $enable_option_checking in
1453 no) ;;
1454 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1455 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1456 esac
1459 # Check all directory arguments for consistency.
1460 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1461 datadir sysconfdir sharedstatedir localstatedir includedir \
1462 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1463 libdir localedir mandir
1465 eval ac_val=\$$ac_var
1466 # Remove trailing slashes.
1467 case $ac_val in
1468 */ )
1469 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1470 eval $ac_var=\$ac_val;;
1471 esac
1472 # Be sure to have absolute directory names.
1473 case $ac_val in
1474 [\\/$]* | ?:[\\/]* ) continue;;
1475 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1476 esac
1477 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1478 done
1480 # There might be people who depend on the old broken behavior: `$host'
1481 # used to hold the argument of --host etc.
1482 # FIXME: To remove some day.
1483 build=$build_alias
1484 host=$host_alias
1485 target=$target_alias
1487 # FIXME: To remove some day.
1488 if test "x$host_alias" != x; then
1489 if test "x$build_alias" = x; then
1490 cross_compiling=maybe
1491 elif test "x$build_alias" != "x$host_alias"; then
1492 cross_compiling=yes
1496 ac_tool_prefix=
1497 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1499 test "$silent" = yes && exec 6>/dev/null
1502 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1503 ac_ls_di=`ls -di .` &&
1504 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1505 as_fn_error $? "working directory cannot be determined"
1506 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1507 as_fn_error $? "pwd does not report name of working directory"
1510 # Find the source files, if location was not specified.
1511 if test -z "$srcdir"; then
1512 ac_srcdir_defaulted=yes
1513 # Try the directory containing this script, then the parent directory.
1514 ac_confdir=`$as_dirname -- "$as_myself" ||
1515 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1516 X"$as_myself" : 'X\(//\)[^/]' \| \
1517 X"$as_myself" : 'X\(//\)$' \| \
1518 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1519 $as_echo X"$as_myself" |
1520 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1521 s//\1/
1524 /^X\(\/\/\)[^/].*/{
1525 s//\1/
1528 /^X\(\/\/\)$/{
1529 s//\1/
1532 /^X\(\/\).*/{
1533 s//\1/
1536 s/.*/./; q'`
1537 srcdir=$ac_confdir
1538 if test ! -r "$srcdir/$ac_unique_file"; then
1539 srcdir=..
1541 else
1542 ac_srcdir_defaulted=no
1544 if test ! -r "$srcdir/$ac_unique_file"; then
1545 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1546 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1548 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1549 ac_abs_confdir=`(
1550 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1551 pwd)`
1552 # When building in place, set srcdir=.
1553 if test "$ac_abs_confdir" = "$ac_pwd"; then
1554 srcdir=.
1556 # Remove unnecessary trailing slashes from srcdir.
1557 # Double slashes in file names in object file debugging info
1558 # mess up M-x gdb in Emacs.
1559 case $srcdir in
1560 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1561 esac
1562 for ac_var in $ac_precious_vars; do
1563 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1564 eval ac_env_${ac_var}_value=\$${ac_var}
1565 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1566 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1567 done
1570 # Report the --help message.
1572 if test "$ac_init_help" = "long"; then
1573 # Omit some internal or obsolete options to make the list less imposing.
1574 # This message is too long to be a string in the A/UX 3.1 sh.
1575 cat <<_ACEOF
1576 \`configure' configures this package to adapt to many kinds of systems.
1578 Usage: $0 [OPTION]... [VAR=VALUE]...
1580 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1581 VAR=VALUE. See below for descriptions of some of the useful variables.
1583 Defaults for the options are specified in brackets.
1585 Configuration:
1586 -h, --help display this help and exit
1587 --help=short display options specific to this package
1588 --help=recursive display the short help of all the included packages
1589 -V, --version display version information and exit
1590 -q, --quiet, --silent do not print \`checking ...' messages
1591 --cache-file=FILE cache test results in FILE [disabled]
1592 -C, --config-cache alias for \`--cache-file=config.cache'
1593 -n, --no-create do not create output files
1594 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1596 Installation directories:
1597 --prefix=PREFIX install architecture-independent files in PREFIX
1598 [$ac_default_prefix]
1599 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1600 [PREFIX]
1602 By default, \`make install' will install all the files in
1603 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1604 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1605 for instance \`--prefix=\$HOME'.
1607 For better control, use the options below.
1609 Fine tuning of the installation directories:
1610 --bindir=DIR user executables [EPREFIX/bin]
1611 --sbindir=DIR system admin executables [EPREFIX/sbin]
1612 --libexecdir=DIR program executables [EPREFIX/libexec]
1613 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1614 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1615 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1616 --libdir=DIR object code libraries [EPREFIX/lib]
1617 --includedir=DIR C header files [PREFIX/include]
1618 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1619 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1620 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1621 --infodir=DIR info documentation [DATAROOTDIR/info]
1622 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1623 --mandir=DIR man documentation [DATAROOTDIR/man]
1624 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1625 --htmldir=DIR html documentation [DOCDIR]
1626 --dvidir=DIR dvi documentation [DOCDIR]
1627 --pdfdir=DIR pdf documentation [DOCDIR]
1628 --psdir=DIR ps documentation [DOCDIR]
1629 _ACEOF
1631 cat <<\_ACEOF
1633 Program names:
1634 --program-prefix=PREFIX prepend PREFIX to installed program names
1635 --program-suffix=SUFFIX append SUFFIX to installed program names
1636 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1638 System types:
1639 --build=BUILD configure for building on BUILD [guessed]
1640 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1641 --target=TARGET configure for building compilers for TARGET [HOST]
1642 _ACEOF
1645 if test -n "$ac_init_help"; then
1647 cat <<\_ACEOF
1649 Optional Features:
1650 --disable-option-checking ignore unrecognized --enable/--with options
1651 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1652 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1653 --enable-generated-files-in-srcdir
1654 put copies of generated files in source dir intended
1655 for creating source tarballs for users without
1656 texinfo bison or flex
1657 --disable-largefile omit support for large files
1658 --disable-build-format-warnings
1659 don't use -Wformat while building GCC
1660 --enable-werror-always enable -Werror despite compiler version
1661 --enable-checking[=LIST]
1662 enable expensive run-time checks. With LIST, enable
1663 only specific categories of checks. Categories are:
1664 yes,no,all,none,release. Flags are:
1665 assert,df,extra,fold,gc,gcac,gimple,misc,
1666 rtlflag,rtl,runtime,tree,valgrind,types
1667 --enable-coverage[=LEVEL]
1668 enable compiler's code coverage collection. Use to
1669 measure compiler performance and locate unused parts
1670 of the compiler. With LEVEL, specify optimization.
1671 Values are opt, noopt, default is noopt
1672 --enable-gather-detailed-mem-stats
1673 enable detailed memory allocation stats gathering
1674 --enable-valgrind-annotations
1675 enable valgrind runtime interaction
1676 --enable-multilib enable library support for multiple ABIs
1677 --enable-multiarch enable support for multiarch paths
1678 --enable-__cxa_atexit enable __cxa_atexit for C++
1679 --enable-decimal-float={no,yes,bid,dpd}
1680 enable decimal float extension to C. Selecting 'bid'
1681 or 'dpd' choses which decimal floating point format
1682 to use
1683 --enable-fixed-point enable fixed-point arithmetic extension to C
1684 --enable-threads[=LIB] enable thread usage for target GCC, using LIB thread
1685 package
1686 --enable-tls enable or disable generation of tls code overriding
1687 the assembler check for tls support
1688 --enable-vtable-verify enable vtable verification feature
1689 --disable-analyzer disable -fanalyzer static analyzer
1690 --enable-objc-gc enable the use of Boehm's garbage collector with the
1691 GNU Objective-C runtime
1692 --disable-shared don't provide a shared libgcc
1693 --disable-gcov don't provide libgcov and related host tools
1694 --enable-languages=LIST specify which front-ends to build
1695 --disable-rpath do not hardcode runtime library paths
1696 --enable-sjlj-exceptions
1697 arrange to use setjmp/longjmp exception handling
1698 --enable-secureplt enable -msecure-plt by default for PowerPC
1699 --enable-mingw-wildcard Set whether to expand wildcard on command-line.
1700 Default to platform configuration
1701 --enable-large-address-aware
1702 Link mingw executables with --large-address-aware
1703 --enable-leading-mingw64-underscores
1704 enable leading underscores on 64 bit mingw targets
1705 --enable-cld enable -mcld by default for 32bit x86
1706 --enable-frame-pointer enable -fno-omit-frame-pointer by default for x86
1707 --disable-win32-registry
1708 disable lookup of installation paths in the Registry
1709 on Windows hosts
1710 --enable-win32-registry enable registry lookup (default)
1711 --enable-win32-registry=KEY
1712 use KEY instead of GCC version as the last portion
1713 of the registry key
1714 --enable-shared[=PKGS] build shared libraries [default=yes]
1715 --enable-static[=PKGS] build static libraries [default=yes]
1716 --enable-fast-install[=PKGS]
1717 optimize for fast installation [default=yes]
1718 --disable-libtool-lock avoid locking (might break parallel builds)
1719 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1720 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1721 --enable-gnu-indirect-function
1722 enable the use of the @gnu_indirect_function to
1723 glibc systems
1724 --enable-initfini-array use .init_array/.fini_array sections
1725 --enable-comdat enable COMDAT group support
1726 --enable-newlib-nano-formatted-io
1727 Use nano version formatted IO
1729 --enable-standard-branch-protection
1730 enable Branch Target Identification Mechanism and
1731 Return Address Signing by default for AArch64
1732 --disable-standard-branch-protection
1733 disable Branch Target Identification Mechanism and
1734 Return Address Signing by default for AArch64
1737 --enable-fix-cortex-a53-835769
1738 enable workaround for AArch64 Cortex-A53 erratum
1739 835769 by default
1740 --disable-fix-cortex-a53-835769
1741 disable workaround for AArch64 Cortex-A53 erratum
1742 835769 by default
1745 --enable-fix-cortex-a53-843419
1746 enable workaround for AArch64 Cortex-A53 erratum
1747 843419 by default
1748 --disable-fix-cortex-a53-843419
1749 disable workaround for AArch64 Cortex-A53 erratum
1750 843419 by default
1752 --enable-gnu-unique-object
1753 enable the use of the @gnu_unique_object ELF
1754 extension on glibc systems
1755 --enable-linker-build-id
1756 compiler will always pass --build-id to linker
1757 --enable-libssp enable linking against libssp
1758 --enable-default-ssp enable Stack Smashing Protection as default
1759 --enable-maintainer-mode
1760 enable make rules and dependencies not useful (and
1761 sometimes confusing) to the casual installer
1762 --enable-link-mutex avoid linking multiple front-ends at once to avoid
1763 thrashing on the build machine
1764 --enable-version-specific-runtime-libs
1765 specify that runtime libraries should be installed
1766 in a compiler-specific directory
1767 --enable-plugin enable plugin support
1768 --enable-host-shared build host code as shared libraries
1769 --disable-libquadmath-support
1770 disable libquadmath support for Fortran
1771 --enable-default-pie enable Position Independent Executable as default
1773 Optional Packages:
1774 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1775 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1776 --with-build-libsubdir=DIR Directory where to find libraries for build system
1777 --with-local-prefix=DIR specifies directory to put local include
1778 --with-native-system-header-dir=dir
1779 use dir as the directory to look for standard
1780 system header files in. Defaults to /usr/include.
1781 --with-build-sysroot=sysroot
1782 use sysroot as the system root during the build
1783 --with-sysroot[=DIR] search for usr/lib, usr/include, et al, within DIR
1784 --with-gxx-include-dir=DIR
1785 specifies directory to put g++ header files
1786 --with-cpp-install-dir=DIR
1787 install the user visible C preprocessor in DIR
1788 (relative to PREFIX) as well as PREFIX/bin
1789 --with-gnu-ld arrange to work with GNU ld
1790 --with-ld arrange to use the specified ld (full pathname)
1791 --with-demangler-in-ld try to use demangler in GNU ld
1792 --with-gnu-as arrange to work with GNU as
1793 --with-as arrange to use the specified as (full pathname)
1794 --with-stabs arrange to use stabs instead of host debug format
1795 --with-stack-clash-protection-guard-size=size
1796 Set the default stack clash protection guard size
1797 for specific targets as a power of two in bytes.
1798 --with-dwarf2 force the default debug format to be DWARF 2
1799 --with-specs=SPECS add SPECS to driver command-line processing
1800 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1801 --with-bugurl=URL Direct users to URL to report a bug
1802 --with-documentation-root-url=URL
1803 Root for documentation URLs
1804 --with-multilib-list select multilibs (AArch64, SH and x86-64 only)
1805 --with-zstd=PATH specify prefix directory for installed zstd library.
1806 Equivalent to --with-zstd-include=PATH/include plus
1807 --with-zstd-lib=PATH/lib
1808 --with-zstd-include=PATH
1809 specify directory for installed zstd include files
1810 --with-zstd-lib=PATH specify directory for the installed zstd library
1811 --with-gnu-ld assume the C compiler uses GNU ld default=no
1812 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1813 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1814 --with-gcc-major-version-only
1815 use only GCC major number in filesystem paths
1816 --with-pic try to use only PIC/non-PIC objects [default=use
1817 both]
1818 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1819 --with-plugin-ld=[ARG] specify the plugin linker
1820 --with-glibc-version=M.N
1821 assume GCC used with glibc version M.N or later
1822 --with-long-double-128 use 128-bit long double by default
1823 --with-long-double-format={ieee,ibm}
1824 Specify whether PowerPC long double uses IEEE or IBM format
1826 --with-gc={page,zone} this option is not supported anymore. It used to
1827 choose the garbage collection mechanism to use with
1828 the compiler
1829 --with-system-zlib use installed libz
1830 --with-linker-hash-style={sysv,gnu,both}
1831 specify the linker hash style
1832 --with-diagnostics-color={never,auto,auto-if-env,always}
1833 specify the default of -fdiagnostics-color option
1834 auto-if-env stands for -fdiagnostics-color=auto if
1835 GCC_COLOR environment variable is present and
1836 -fdiagnostics-color=never otherwise
1838 Some influential environment variables:
1839 CC C compiler command
1840 CFLAGS C compiler flags
1841 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1842 nonstandard directory <lib dir>
1843 LIBS libraries to pass to the linker, e.g. -l<library>
1844 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1845 you have headers in a nonstandard directory <include dir>
1846 CXX C++ compiler command
1847 CXXFLAGS C++ compiler flags
1848 CXXCPP C++ preprocessor
1849 CPP C preprocessor
1850 GMPLIBS How to link GMP
1851 GMPINC How to find GMP include files
1852 ISLLIBS How to link isl
1853 ISLINC How to find isl include files
1855 Use these variables to override the choices made by `configure' or to help
1856 it to find libraries and programs with nonstandard names/locations.
1858 Report bugs to the package provider.
1859 _ACEOF
1860 ac_status=$?
1863 if test "$ac_init_help" = "recursive"; then
1864 # If there are subdirs, report their specific --help.
1865 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1866 test -d "$ac_dir" ||
1867 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1868 continue
1869 ac_builddir=.
1871 case "$ac_dir" in
1872 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1874 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1875 # A ".." for each directory in $ac_dir_suffix.
1876 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1877 case $ac_top_builddir_sub in
1878 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1879 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1880 esac ;;
1881 esac
1882 ac_abs_top_builddir=$ac_pwd
1883 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1884 # for backward compatibility:
1885 ac_top_builddir=$ac_top_build_prefix
1887 case $srcdir in
1888 .) # We are building in place.
1889 ac_srcdir=.
1890 ac_top_srcdir=$ac_top_builddir_sub
1891 ac_abs_top_srcdir=$ac_pwd ;;
1892 [\\/]* | ?:[\\/]* ) # Absolute name.
1893 ac_srcdir=$srcdir$ac_dir_suffix;
1894 ac_top_srcdir=$srcdir
1895 ac_abs_top_srcdir=$srcdir ;;
1896 *) # Relative name.
1897 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1898 ac_top_srcdir=$ac_top_build_prefix$srcdir
1899 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1900 esac
1901 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1903 cd "$ac_dir" || { ac_status=$?; continue; }
1904 # Check for guested configure.
1905 if test -f "$ac_srcdir/configure.gnu"; then
1906 echo &&
1907 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1908 elif test -f "$ac_srcdir/configure"; then
1909 echo &&
1910 $SHELL "$ac_srcdir/configure" --help=recursive
1911 else
1912 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1913 fi || ac_status=$?
1914 cd "$ac_pwd" || { ac_status=$?; break; }
1915 done
1918 test -n "$ac_init_help" && exit $ac_status
1919 if $ac_init_version; then
1920 cat <<\_ACEOF
1921 configure
1922 generated by GNU Autoconf 2.69
1924 Copyright (C) 2012 Free Software Foundation, Inc.
1925 This configure script is free software; the Free Software Foundation
1926 gives unlimited permission to copy, distribute and modify it.
1927 _ACEOF
1928 exit
1931 ## ------------------------ ##
1932 ## Autoconf initialization. ##
1933 ## ------------------------ ##
1935 # ac_fn_c_try_compile LINENO
1936 # --------------------------
1937 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1938 ac_fn_c_try_compile ()
1940 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1941 rm -f conftest.$ac_objext
1942 if { { ac_try="$ac_compile"
1943 case "(($ac_try" in
1944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1945 *) ac_try_echo=$ac_try;;
1946 esac
1947 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1948 $as_echo "$ac_try_echo"; } >&5
1949 (eval "$ac_compile") 2>conftest.err
1950 ac_status=$?
1951 if test -s conftest.err; then
1952 grep -v '^ *+' conftest.err >conftest.er1
1953 cat conftest.er1 >&5
1954 mv -f conftest.er1 conftest.err
1956 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1957 test $ac_status = 0; } && {
1958 test -z "$ac_c_werror_flag" ||
1959 test ! -s conftest.err
1960 } && test -s conftest.$ac_objext; then :
1961 ac_retval=0
1962 else
1963 $as_echo "$as_me: failed program was:" >&5
1964 sed 's/^/| /' conftest.$ac_ext >&5
1966 ac_retval=1
1968 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1969 as_fn_set_status $ac_retval
1971 } # ac_fn_c_try_compile
1973 # ac_fn_cxx_try_compile LINENO
1974 # ----------------------------
1975 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1976 ac_fn_cxx_try_compile ()
1978 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1979 rm -f conftest.$ac_objext
1980 if { { ac_try="$ac_compile"
1981 case "(($ac_try" in
1982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1983 *) ac_try_echo=$ac_try;;
1984 esac
1985 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1986 $as_echo "$ac_try_echo"; } >&5
1987 (eval "$ac_compile") 2>conftest.err
1988 ac_status=$?
1989 if test -s conftest.err; then
1990 grep -v '^ *+' conftest.err >conftest.er1
1991 cat conftest.er1 >&5
1992 mv -f conftest.er1 conftest.err
1994 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1995 test $ac_status = 0; } && {
1996 test -z "$ac_cxx_werror_flag" ||
1997 test ! -s conftest.err
1998 } && test -s conftest.$ac_objext; then :
1999 ac_retval=0
2000 else
2001 $as_echo "$as_me: failed program was:" >&5
2002 sed 's/^/| /' conftest.$ac_ext >&5
2004 ac_retval=1
2006 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2007 as_fn_set_status $ac_retval
2009 } # ac_fn_cxx_try_compile
2011 # ac_fn_cxx_try_cpp LINENO
2012 # ------------------------
2013 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2014 ac_fn_cxx_try_cpp ()
2016 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2017 if { { ac_try="$ac_cpp conftest.$ac_ext"
2018 case "(($ac_try" in
2019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2020 *) ac_try_echo=$ac_try;;
2021 esac
2022 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2023 $as_echo "$ac_try_echo"; } >&5
2024 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2025 ac_status=$?
2026 if test -s conftest.err; then
2027 grep -v '^ *+' conftest.err >conftest.er1
2028 cat conftest.er1 >&5
2029 mv -f conftest.er1 conftest.err
2031 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2032 test $ac_status = 0; } > conftest.i && {
2033 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2034 test ! -s conftest.err
2035 }; then :
2036 ac_retval=0
2037 else
2038 $as_echo "$as_me: failed program was:" >&5
2039 sed 's/^/| /' conftest.$ac_ext >&5
2041 ac_retval=1
2043 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2044 as_fn_set_status $ac_retval
2046 } # ac_fn_cxx_try_cpp
2048 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2049 # ---------------------------------------------------------
2050 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2051 # the include files in INCLUDES and setting the cache variable VAR
2052 # accordingly.
2053 ac_fn_cxx_check_header_mongrel ()
2055 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2056 if eval \${$3+:} false; then :
2057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2058 $as_echo_n "checking for $2... " >&6; }
2059 if eval \${$3+:} false; then :
2060 $as_echo_n "(cached) " >&6
2062 eval ac_res=\$$3
2063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2064 $as_echo "$ac_res" >&6; }
2065 else
2066 # Is the header compilable?
2067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2068 $as_echo_n "checking $2 usability... " >&6; }
2069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2070 /* end confdefs.h. */
2072 #include <$2>
2073 _ACEOF
2074 if ac_fn_cxx_try_compile "$LINENO"; then :
2075 ac_header_compiler=yes
2076 else
2077 ac_header_compiler=no
2079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2081 $as_echo "$ac_header_compiler" >&6; }
2083 # Is the header present?
2084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2085 $as_echo_n "checking $2 presence... " >&6; }
2086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2087 /* end confdefs.h. */
2088 #include <$2>
2089 _ACEOF
2090 if ac_fn_cxx_try_cpp "$LINENO"; then :
2091 ac_header_preproc=yes
2092 else
2093 ac_header_preproc=no
2095 rm -f conftest.err conftest.i conftest.$ac_ext
2096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2097 $as_echo "$ac_header_preproc" >&6; }
2099 # So? What about this header?
2100 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2101 yes:no: )
2102 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2103 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2104 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2105 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2107 no:yes:* )
2108 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2109 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2110 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2111 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2112 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2113 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2114 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2115 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2116 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2117 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2119 esac
2120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2121 $as_echo_n "checking for $2... " >&6; }
2122 if eval \${$3+:} false; then :
2123 $as_echo_n "(cached) " >&6
2124 else
2125 eval "$3=\$ac_header_compiler"
2127 eval ac_res=\$$3
2128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2129 $as_echo "$ac_res" >&6; }
2131 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2133 } # ac_fn_cxx_check_header_mongrel
2135 # ac_fn_cxx_try_run LINENO
2136 # ------------------------
2137 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2138 # that executables *can* be run.
2139 ac_fn_cxx_try_run ()
2141 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2142 if { { ac_try="$ac_link"
2143 case "(($ac_try" in
2144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2145 *) ac_try_echo=$ac_try;;
2146 esac
2147 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2148 $as_echo "$ac_try_echo"; } >&5
2149 (eval "$ac_link") 2>&5
2150 ac_status=$?
2151 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2152 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2153 { { case "(($ac_try" in
2154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2155 *) ac_try_echo=$ac_try;;
2156 esac
2157 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2158 $as_echo "$ac_try_echo"; } >&5
2159 (eval "$ac_try") 2>&5
2160 ac_status=$?
2161 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2162 test $ac_status = 0; }; }; then :
2163 ac_retval=0
2164 else
2165 $as_echo "$as_me: program exited with status $ac_status" >&5
2166 $as_echo "$as_me: failed program was:" >&5
2167 sed 's/^/| /' conftest.$ac_ext >&5
2169 ac_retval=$ac_status
2171 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2172 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2173 as_fn_set_status $ac_retval
2175 } # ac_fn_cxx_try_run
2177 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2178 # ---------------------------------------------------------
2179 # Tests whether HEADER exists and can be compiled using the include files in
2180 # INCLUDES, setting the cache variable VAR accordingly.
2181 ac_fn_cxx_check_header_compile ()
2183 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2185 $as_echo_n "checking for $2... " >&6; }
2186 if eval \${$3+:} false; then :
2187 $as_echo_n "(cached) " >&6
2188 else
2189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2190 /* end confdefs.h. */
2192 #include <$2>
2193 _ACEOF
2194 if ac_fn_cxx_try_compile "$LINENO"; then :
2195 eval "$3=yes"
2196 else
2197 eval "$3=no"
2199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2201 eval ac_res=\$$3
2202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2203 $as_echo "$ac_res" >&6; }
2204 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2206 } # ac_fn_cxx_check_header_compile
2208 # ac_fn_c_try_cpp LINENO
2209 # ----------------------
2210 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2211 ac_fn_c_try_cpp ()
2213 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2214 if { { ac_try="$ac_cpp conftest.$ac_ext"
2215 case "(($ac_try" in
2216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2217 *) ac_try_echo=$ac_try;;
2218 esac
2219 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2220 $as_echo "$ac_try_echo"; } >&5
2221 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2222 ac_status=$?
2223 if test -s conftest.err; then
2224 grep -v '^ *+' conftest.err >conftest.er1
2225 cat conftest.er1 >&5
2226 mv -f conftest.er1 conftest.err
2228 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2229 test $ac_status = 0; } > conftest.i && {
2230 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2231 test ! -s conftest.err
2232 }; then :
2233 ac_retval=0
2234 else
2235 $as_echo "$as_me: failed program was:" >&5
2236 sed 's/^/| /' conftest.$ac_ext >&5
2238 ac_retval=1
2240 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2241 as_fn_set_status $ac_retval
2243 } # ac_fn_c_try_cpp
2245 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2246 # ----------------------------------------------
2247 # Tries to find the compile-time value of EXPR in a program that includes
2248 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2249 # computed
2250 ac_fn_cxx_compute_int ()
2252 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2253 if test "$cross_compiling" = yes; then
2254 # Depending upon the size, compute the lo and hi bounds.
2255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2256 /* end confdefs.h. */
2259 main ()
2261 static int test_array [1 - 2 * !(($2) >= 0)];
2262 test_array [0] = 0;
2263 return test_array [0];
2266 return 0;
2268 _ACEOF
2269 if ac_fn_cxx_try_compile "$LINENO"; then :
2270 ac_lo=0 ac_mid=0
2271 while :; do
2272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2273 /* end confdefs.h. */
2276 main ()
2278 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2279 test_array [0] = 0;
2280 return test_array [0];
2283 return 0;
2285 _ACEOF
2286 if ac_fn_cxx_try_compile "$LINENO"; then :
2287 ac_hi=$ac_mid; break
2288 else
2289 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2290 if test $ac_lo -le $ac_mid; then
2291 ac_lo= ac_hi=
2292 break
2294 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2297 done
2298 else
2299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2300 /* end confdefs.h. */
2303 main ()
2305 static int test_array [1 - 2 * !(($2) < 0)];
2306 test_array [0] = 0;
2307 return test_array [0];
2310 return 0;
2312 _ACEOF
2313 if ac_fn_cxx_try_compile "$LINENO"; then :
2314 ac_hi=-1 ac_mid=-1
2315 while :; do
2316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2317 /* end confdefs.h. */
2320 main ()
2322 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2323 test_array [0] = 0;
2324 return test_array [0];
2327 return 0;
2329 _ACEOF
2330 if ac_fn_cxx_try_compile "$LINENO"; then :
2331 ac_lo=$ac_mid; break
2332 else
2333 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2334 if test $ac_mid -le $ac_hi; then
2335 ac_lo= ac_hi=
2336 break
2338 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2341 done
2342 else
2343 ac_lo= ac_hi=
2345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2348 # Binary search between lo and hi bounds.
2349 while test "x$ac_lo" != "x$ac_hi"; do
2350 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2352 /* end confdefs.h. */
2355 main ()
2357 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2358 test_array [0] = 0;
2359 return test_array [0];
2362 return 0;
2364 _ACEOF
2365 if ac_fn_cxx_try_compile "$LINENO"; then :
2366 ac_hi=$ac_mid
2367 else
2368 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2371 done
2372 case $ac_lo in #((
2373 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2374 '') ac_retval=1 ;;
2375 esac
2376 else
2377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2378 /* end confdefs.h. */
2380 static long int longval () { return $2; }
2381 static unsigned long int ulongval () { return $2; }
2382 #include <stdio.h>
2383 #include <stdlib.h>
2385 main ()
2388 FILE *f = fopen ("conftest.val", "w");
2389 if (! f)
2390 return 1;
2391 if (($2) < 0)
2393 long int i = longval ();
2394 if (i != ($2))
2395 return 1;
2396 fprintf (f, "%ld", i);
2398 else
2400 unsigned long int i = ulongval ();
2401 if (i != ($2))
2402 return 1;
2403 fprintf (f, "%lu", i);
2405 /* Do not output a trailing newline, as this causes \r\n confusion
2406 on some platforms. */
2407 return ferror (f) || fclose (f) != 0;
2410 return 0;
2412 _ACEOF
2413 if ac_fn_cxx_try_run "$LINENO"; then :
2414 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2415 else
2416 ac_retval=1
2418 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2419 conftest.$ac_objext conftest.beam conftest.$ac_ext
2420 rm -f conftest.val
2423 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2424 as_fn_set_status $ac_retval
2426 } # ac_fn_cxx_compute_int
2428 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2429 # ---------------------------------------------
2430 # Tests whether TYPE exists after having included INCLUDES, setting cache
2431 # variable VAR accordingly.
2432 ac_fn_cxx_check_type ()
2434 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2436 $as_echo_n "checking for $2... " >&6; }
2437 if eval \${$3+:} false; then :
2438 $as_echo_n "(cached) " >&6
2439 else
2440 eval "$3=no"
2441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2442 /* end confdefs.h. */
2445 main ()
2447 if (sizeof ($2))
2448 return 0;
2450 return 0;
2452 _ACEOF
2453 if ac_fn_cxx_try_compile "$LINENO"; then :
2454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2455 /* end confdefs.h. */
2458 main ()
2460 if (sizeof (($2)))
2461 return 0;
2463 return 0;
2465 _ACEOF
2466 if ac_fn_cxx_try_compile "$LINENO"; then :
2468 else
2469 eval "$3=yes"
2471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2475 eval ac_res=\$$3
2476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2477 $as_echo "$ac_res" >&6; }
2478 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2480 } # ac_fn_cxx_check_type
2482 # ac_fn_c_find_intX_t LINENO BITS VAR
2483 # -----------------------------------
2484 # Finds a signed integer type with width BITS, setting cache variable VAR
2485 # accordingly.
2486 ac_fn_c_find_intX_t ()
2488 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2490 $as_echo_n "checking for int$2_t... " >&6; }
2491 if eval \${$3+:} false; then :
2492 $as_echo_n "(cached) " >&6
2493 else
2494 eval "$3=no"
2495 # Order is important - never check a type that is potentially smaller
2496 # than half of the expected target width.
2497 for ac_type in int$2_t 'int' 'long int' \
2498 'long long int' 'short int' 'signed char'; do
2499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2500 /* end confdefs.h. */
2501 $ac_includes_default
2502 enum { N = $2 / 2 - 1 };
2504 main ()
2506 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2507 test_array [0] = 0;
2508 return test_array [0];
2511 return 0;
2513 _ACEOF
2514 if ac_fn_cxx_try_compile "$LINENO"; then :
2515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2516 /* end confdefs.h. */
2517 $ac_includes_default
2518 enum { N = $2 / 2 - 1 };
2520 main ()
2522 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2523 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2524 test_array [0] = 0;
2525 return test_array [0];
2528 return 0;
2530 _ACEOF
2531 if ac_fn_cxx_try_compile "$LINENO"; then :
2533 else
2534 case $ac_type in #(
2535 int$2_t) :
2536 eval "$3=yes" ;; #(
2537 *) :
2538 eval "$3=\$ac_type" ;;
2539 esac
2541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2544 if eval test \"x\$"$3"\" = x"no"; then :
2546 else
2547 break
2549 done
2551 eval ac_res=\$$3
2552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2553 $as_echo "$ac_res" >&6; }
2554 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2556 } # ac_fn_c_find_intX_t
2558 # ac_fn_cxx_try_link LINENO
2559 # -------------------------
2560 # Try to link conftest.$ac_ext, and return whether this succeeded.
2561 ac_fn_cxx_try_link ()
2563 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2564 rm -f conftest.$ac_objext conftest$ac_exeext
2565 if { { ac_try="$ac_link"
2566 case "(($ac_try" in
2567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2568 *) ac_try_echo=$ac_try;;
2569 esac
2570 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2571 $as_echo "$ac_try_echo"; } >&5
2572 (eval "$ac_link") 2>conftest.err
2573 ac_status=$?
2574 if test -s conftest.err; then
2575 grep -v '^ *+' conftest.err >conftest.er1
2576 cat conftest.er1 >&5
2577 mv -f conftest.er1 conftest.err
2579 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2580 test $ac_status = 0; } && {
2581 test -z "$ac_cxx_werror_flag" ||
2582 test ! -s conftest.err
2583 } && test -s conftest$ac_exeext && {
2584 test "$cross_compiling" = yes ||
2585 test -x conftest$ac_exeext
2586 }; then :
2587 ac_retval=0
2588 else
2589 $as_echo "$as_me: failed program was:" >&5
2590 sed 's/^/| /' conftest.$ac_ext >&5
2592 ac_retval=1
2594 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2595 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2596 # interfere with the next link command; also delete a directory that is
2597 # left behind by Apple's compiler. We do this before executing the actions.
2598 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2599 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2600 as_fn_set_status $ac_retval
2602 } # ac_fn_cxx_try_link
2604 # ac_fn_c_find_uintX_t LINENO BITS VAR
2605 # ------------------------------------
2606 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2607 # accordingly.
2608 ac_fn_c_find_uintX_t ()
2610 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2612 $as_echo_n "checking for uint$2_t... " >&6; }
2613 if eval \${$3+:} false; then :
2614 $as_echo_n "(cached) " >&6
2615 else
2616 eval "$3=no"
2617 # Order is important - never check a type that is potentially smaller
2618 # than half of the expected target width.
2619 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2620 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2622 /* end confdefs.h. */
2623 $ac_includes_default
2625 main ()
2627 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2628 test_array [0] = 0;
2629 return test_array [0];
2632 return 0;
2634 _ACEOF
2635 if ac_fn_cxx_try_compile "$LINENO"; then :
2636 case $ac_type in #(
2637 uint$2_t) :
2638 eval "$3=yes" ;; #(
2639 *) :
2640 eval "$3=\$ac_type" ;;
2641 esac
2643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2644 if eval test \"x\$"$3"\" = x"no"; then :
2646 else
2647 break
2649 done
2651 eval ac_res=\$$3
2652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2653 $as_echo "$ac_res" >&6; }
2654 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2656 } # ac_fn_c_find_uintX_t
2658 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2659 # ------------------------------------------------
2660 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2661 ac_fn_cxx_check_header_preproc ()
2663 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2665 $as_echo_n "checking for $2... " >&6; }
2666 if eval \${$3+:} false; then :
2667 $as_echo_n "(cached) " >&6
2668 else
2669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2670 /* end confdefs.h. */
2671 #include <$2>
2672 _ACEOF
2673 if ac_fn_cxx_try_cpp "$LINENO"; then :
2674 eval "$3=yes"
2675 else
2676 eval "$3=no"
2678 rm -f conftest.err conftest.i conftest.$ac_ext
2680 eval ac_res=\$$3
2681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2682 $as_echo "$ac_res" >&6; }
2683 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2685 } # ac_fn_cxx_check_header_preproc
2687 # ac_fn_cxx_check_func LINENO FUNC VAR
2688 # ------------------------------------
2689 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2690 ac_fn_cxx_check_func ()
2692 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2694 $as_echo_n "checking for $2... " >&6; }
2695 if eval \${$3+:} false; then :
2696 $as_echo_n "(cached) " >&6
2697 else
2698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2699 /* end confdefs.h. */
2700 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2701 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2702 #define $2 innocuous_$2
2704 /* System header to define __stub macros and hopefully few prototypes,
2705 which can conflict with char $2 (); below.
2706 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2707 <limits.h> exists even on freestanding compilers. */
2709 #ifdef __STDC__
2710 # include <limits.h>
2711 #else
2712 # include <assert.h>
2713 #endif
2715 #undef $2
2717 /* Override any GCC internal prototype to avoid an error.
2718 Use char because int might match the return type of a GCC
2719 builtin and then its argument prototype would still apply. */
2720 #ifdef __cplusplus
2721 extern "C"
2722 #endif
2723 char $2 ();
2724 /* The GNU C library defines this for functions which it implements
2725 to always fail with ENOSYS. Some functions are actually named
2726 something starting with __ and the normal name is an alias. */
2727 #if defined __stub_$2 || defined __stub___$2
2728 choke me
2729 #endif
2732 main ()
2734 return $2 ();
2736 return 0;
2738 _ACEOF
2739 if ac_fn_cxx_try_link "$LINENO"; then :
2740 eval "$3=yes"
2741 else
2742 eval "$3=no"
2744 rm -f core conftest.err conftest.$ac_objext \
2745 conftest$ac_exeext conftest.$ac_ext
2747 eval ac_res=\$$3
2748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2749 $as_echo "$ac_res" >&6; }
2750 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2752 } # ac_fn_cxx_check_func
2754 # ac_fn_cxx_check_decl LINENO SYMBOL VAR INCLUDES
2755 # -----------------------------------------------
2756 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2757 # accordingly.
2758 ac_fn_cxx_check_decl ()
2760 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2761 as_decl_name=`echo $2|sed 's/ *(.*//'`
2762 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2764 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2765 if eval \${$3+:} false; then :
2766 $as_echo_n "(cached) " >&6
2767 else
2768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2769 /* end confdefs.h. */
2772 main ()
2774 #ifndef $as_decl_name
2775 #ifdef __cplusplus
2776 (void) $as_decl_use;
2777 #else
2778 (void) $as_decl_name;
2779 #endif
2780 #endif
2783 return 0;
2785 _ACEOF
2786 if ac_fn_cxx_try_compile "$LINENO"; then :
2787 eval "$3=yes"
2788 else
2789 eval "$3=no"
2791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2793 eval ac_res=\$$3
2794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2795 $as_echo "$ac_res" >&6; }
2796 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2798 } # ac_fn_cxx_check_decl
2800 # ac_fn_c_try_link LINENO
2801 # -----------------------
2802 # Try to link conftest.$ac_ext, and return whether this succeeded.
2803 ac_fn_c_try_link ()
2805 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2806 rm -f conftest.$ac_objext conftest$ac_exeext
2807 if { { ac_try="$ac_link"
2808 case "(($ac_try" in
2809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2810 *) ac_try_echo=$ac_try;;
2811 esac
2812 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2813 $as_echo "$ac_try_echo"; } >&5
2814 (eval "$ac_link") 2>conftest.err
2815 ac_status=$?
2816 if test -s conftest.err; then
2817 grep -v '^ *+' conftest.err >conftest.er1
2818 cat conftest.er1 >&5
2819 mv -f conftest.er1 conftest.err
2821 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2822 test $ac_status = 0; } && {
2823 test -z "$ac_c_werror_flag" ||
2824 test ! -s conftest.err
2825 } && test -s conftest$ac_exeext && {
2826 test "$cross_compiling" = yes ||
2827 test -x conftest$ac_exeext
2828 }; then :
2829 ac_retval=0
2830 else
2831 $as_echo "$as_me: failed program was:" >&5
2832 sed 's/^/| /' conftest.$ac_ext >&5
2834 ac_retval=1
2836 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2837 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2838 # interfere with the next link command; also delete a directory that is
2839 # left behind by Apple's compiler. We do this before executing the actions.
2840 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2841 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2842 as_fn_set_status $ac_retval
2844 } # ac_fn_c_try_link
2846 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2847 # ----------------------------------------------
2848 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2849 ac_fn_c_check_header_preproc ()
2851 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2853 $as_echo_n "checking for $2... " >&6; }
2854 if eval \${$3+:} false; then :
2855 $as_echo_n "(cached) " >&6
2856 else
2857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2858 /* end confdefs.h. */
2859 #include <$2>
2860 _ACEOF
2861 if ac_fn_c_try_cpp "$LINENO"; then :
2862 eval "$3=yes"
2863 else
2864 eval "$3=no"
2866 rm -f conftest.err conftest.i conftest.$ac_ext
2868 eval ac_res=\$$3
2869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2870 $as_echo "$ac_res" >&6; }
2871 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2873 } # ac_fn_c_check_header_preproc
2875 # ac_fn_c_check_func LINENO FUNC VAR
2876 # ----------------------------------
2877 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2878 ac_fn_c_check_func ()
2880 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2882 $as_echo_n "checking for $2... " >&6; }
2883 if eval \${$3+:} false; then :
2884 $as_echo_n "(cached) " >&6
2885 else
2886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2887 /* end confdefs.h. */
2888 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2889 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2890 #define $2 innocuous_$2
2892 /* System header to define __stub macros and hopefully few prototypes,
2893 which can conflict with char $2 (); below.
2894 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2895 <limits.h> exists even on freestanding compilers. */
2897 #ifdef __STDC__
2898 # include <limits.h>
2899 #else
2900 # include <assert.h>
2901 #endif
2903 #undef $2
2905 /* Override any GCC internal prototype to avoid an error.
2906 Use char because int might match the return type of a GCC
2907 builtin and then its argument prototype would still apply. */
2908 #ifdef __cplusplus
2909 extern "C"
2910 #endif
2911 char $2 ();
2912 /* The GNU C library defines this for functions which it implements
2913 to always fail with ENOSYS. Some functions are actually named
2914 something starting with __ and the normal name is an alias. */
2915 #if defined __stub_$2 || defined __stub___$2
2916 choke me
2917 #endif
2920 main ()
2922 return $2 ();
2924 return 0;
2926 _ACEOF
2927 if ac_fn_c_try_link "$LINENO"; then :
2928 eval "$3=yes"
2929 else
2930 eval "$3=no"
2932 rm -f core conftest.err conftest.$ac_objext \
2933 conftest$ac_exeext conftest.$ac_ext
2935 eval ac_res=\$$3
2936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2937 $as_echo "$ac_res" >&6; }
2938 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2940 } # ac_fn_c_check_func
2941 cat >config.log <<_ACEOF
2942 This file contains any messages produced by compilers while
2943 running configure, to aid debugging if configure makes a mistake.
2945 It was created by $as_me, which was
2946 generated by GNU Autoconf 2.69. Invocation command line was
2948 $ $0 $@
2950 _ACEOF
2951 exec 5>>config.log
2953 cat <<_ASUNAME
2954 ## --------- ##
2955 ## Platform. ##
2956 ## --------- ##
2958 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2959 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2960 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2961 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2962 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2964 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2965 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2967 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2968 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2969 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2970 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2971 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2972 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2973 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2975 _ASUNAME
2977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2978 for as_dir in $PATH
2980 IFS=$as_save_IFS
2981 test -z "$as_dir" && as_dir=.
2982 $as_echo "PATH: $as_dir"
2983 done
2984 IFS=$as_save_IFS
2986 } >&5
2988 cat >&5 <<_ACEOF
2991 ## ----------- ##
2992 ## Core tests. ##
2993 ## ----------- ##
2995 _ACEOF
2998 # Keep a trace of the command line.
2999 # Strip out --no-create and --no-recursion so they do not pile up.
3000 # Strip out --silent because we don't want to record it for future runs.
3001 # Also quote any args containing shell meta-characters.
3002 # Make two passes to allow for proper duplicate-argument suppression.
3003 ac_configure_args=
3004 ac_configure_args0=
3005 ac_configure_args1=
3006 ac_must_keep_next=false
3007 for ac_pass in 1 2
3009 for ac_arg
3011 case $ac_arg in
3012 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3013 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3014 | -silent | --silent | --silen | --sile | --sil)
3015 continue ;;
3016 *\'*)
3017 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3018 esac
3019 case $ac_pass in
3020 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3022 as_fn_append ac_configure_args1 " '$ac_arg'"
3023 if test $ac_must_keep_next = true; then
3024 ac_must_keep_next=false # Got value, back to normal.
3025 else
3026 case $ac_arg in
3027 *=* | --config-cache | -C | -disable-* | --disable-* \
3028 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3029 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3030 | -with-* | --with-* | -without-* | --without-* | --x)
3031 case "$ac_configure_args0 " in
3032 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3033 esac
3035 -* ) ac_must_keep_next=true ;;
3036 esac
3038 as_fn_append ac_configure_args " '$ac_arg'"
3040 esac
3041 done
3042 done
3043 { ac_configure_args0=; unset ac_configure_args0;}
3044 { ac_configure_args1=; unset ac_configure_args1;}
3046 # When interrupted or exit'd, cleanup temporary files, and complete
3047 # config.log. We remove comments because anyway the quotes in there
3048 # would cause problems or look ugly.
3049 # WARNING: Use '\'' to represent an apostrophe within the trap.
3050 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3051 trap 'exit_status=$?
3052 # Save into config.log some information that might help in debugging.
3054 echo
3056 $as_echo "## ---------------- ##
3057 ## Cache variables. ##
3058 ## ---------------- ##"
3059 echo
3060 # The following way of writing the cache mishandles newlines in values,
3062 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3063 eval ac_val=\$$ac_var
3064 case $ac_val in #(
3065 *${as_nl}*)
3066 case $ac_var in #(
3067 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3068 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3069 esac
3070 case $ac_var in #(
3071 _ | IFS | as_nl) ;; #(
3072 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3073 *) { eval $ac_var=; unset $ac_var;} ;;
3074 esac ;;
3075 esac
3076 done
3077 (set) 2>&1 |
3078 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3079 *${as_nl}ac_space=\ *)
3080 sed -n \
3081 "s/'\''/'\''\\\\'\'''\''/g;
3082 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3083 ;; #(
3085 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3087 esac |
3088 sort
3090 echo
3092 $as_echo "## ----------------- ##
3093 ## Output variables. ##
3094 ## ----------------- ##"
3095 echo
3096 for ac_var in $ac_subst_vars
3098 eval ac_val=\$$ac_var
3099 case $ac_val in
3100 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3101 esac
3102 $as_echo "$ac_var='\''$ac_val'\''"
3103 done | sort
3104 echo
3106 if test -n "$ac_subst_files"; then
3107 $as_echo "## ------------------- ##
3108 ## File substitutions. ##
3109 ## ------------------- ##"
3110 echo
3111 for ac_var in $ac_subst_files
3113 eval ac_val=\$$ac_var
3114 case $ac_val in
3115 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3116 esac
3117 $as_echo "$ac_var='\''$ac_val'\''"
3118 done | sort
3119 echo
3122 if test -s confdefs.h; then
3123 $as_echo "## ----------- ##
3124 ## confdefs.h. ##
3125 ## ----------- ##"
3126 echo
3127 cat confdefs.h
3128 echo
3130 test "$ac_signal" != 0 &&
3131 $as_echo "$as_me: caught signal $ac_signal"
3132 $as_echo "$as_me: exit $exit_status"
3133 } >&5
3134 rm -f core *.core core.conftest.* &&
3135 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3136 exit $exit_status
3138 for ac_signal in 1 2 13 15; do
3139 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3140 done
3141 ac_signal=0
3143 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3144 rm -f -r conftest* confdefs.h
3146 $as_echo "/* confdefs.h */" > confdefs.h
3148 # Predefined preprocessor variables.
3150 cat >>confdefs.h <<_ACEOF
3151 #define PACKAGE_NAME "$PACKAGE_NAME"
3152 _ACEOF
3154 cat >>confdefs.h <<_ACEOF
3155 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3156 _ACEOF
3158 cat >>confdefs.h <<_ACEOF
3159 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3160 _ACEOF
3162 cat >>confdefs.h <<_ACEOF
3163 #define PACKAGE_STRING "$PACKAGE_STRING"
3164 _ACEOF
3166 cat >>confdefs.h <<_ACEOF
3167 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3168 _ACEOF
3170 cat >>confdefs.h <<_ACEOF
3171 #define PACKAGE_URL "$PACKAGE_URL"
3172 _ACEOF
3175 # Let the site file select an alternate cache file if it wants to.
3176 # Prefer an explicitly selected file to automatically selected ones.
3177 ac_site_file1=NONE
3178 ac_site_file2=NONE
3179 if test -n "$CONFIG_SITE"; then
3180 # We do not want a PATH search for config.site.
3181 case $CONFIG_SITE in #((
3182 -*) ac_site_file1=./$CONFIG_SITE;;
3183 */*) ac_site_file1=$CONFIG_SITE;;
3184 *) ac_site_file1=./$CONFIG_SITE;;
3185 esac
3186 elif test "x$prefix" != xNONE; then
3187 ac_site_file1=$prefix/share/config.site
3188 ac_site_file2=$prefix/etc/config.site
3189 else
3190 ac_site_file1=$ac_default_prefix/share/config.site
3191 ac_site_file2=$ac_default_prefix/etc/config.site
3193 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3195 test "x$ac_site_file" = xNONE && continue
3196 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3197 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3198 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3199 sed 's/^/| /' "$ac_site_file" >&5
3200 . "$ac_site_file" \
3201 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3202 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3203 as_fn_error $? "failed to load site script $ac_site_file
3204 See \`config.log' for more details" "$LINENO" 5; }
3206 done
3208 if test -r "$cache_file"; then
3209 # Some versions of bash will fail to source /dev/null (special files
3210 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3211 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3212 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3213 $as_echo "$as_me: loading cache $cache_file" >&6;}
3214 case $cache_file in
3215 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3216 *) . "./$cache_file";;
3217 esac
3219 else
3220 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3221 $as_echo "$as_me: creating cache $cache_file" >&6;}
3222 >$cache_file
3225 # Check that the precious variables saved in the cache have kept the same
3226 # value.
3227 ac_cache_corrupted=false
3228 for ac_var in $ac_precious_vars; do
3229 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3230 eval ac_new_set=\$ac_env_${ac_var}_set
3231 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3232 eval ac_new_val=\$ac_env_${ac_var}_value
3233 case $ac_old_set,$ac_new_set in
3234 set,)
3235 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3236 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3237 ac_cache_corrupted=: ;;
3238 ,set)
3239 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3240 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3241 ac_cache_corrupted=: ;;
3242 ,);;
3244 if test "x$ac_old_val" != "x$ac_new_val"; then
3245 # differences in whitespace do not lead to failure.
3246 ac_old_val_w=`echo x $ac_old_val`
3247 ac_new_val_w=`echo x $ac_new_val`
3248 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3249 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3250 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3251 ac_cache_corrupted=:
3252 else
3253 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3254 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3255 eval $ac_var=\$ac_old_val
3257 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3258 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3259 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3260 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3261 fi;;
3262 esac
3263 # Pass precious variables to config.status.
3264 if test "$ac_new_set" = set; then
3265 case $ac_new_val in
3266 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3267 *) ac_arg=$ac_var=$ac_new_val ;;
3268 esac
3269 case " $ac_configure_args " in
3270 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3271 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3272 esac
3274 done
3275 if $ac_cache_corrupted; then
3276 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3277 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3278 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3279 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3280 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3282 ## -------------------- ##
3283 ## Main body of script. ##
3284 ## -------------------- ##
3286 ac_ext=c
3287 ac_cpp='$CPP $CPPFLAGS'
3288 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3289 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3290 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3297 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3300 gcc_version=`cat $srcdir/BASE-VER`
3302 # Determine the host, build, and target systems
3303 ac_aux_dir=
3304 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3305 if test -f "$ac_dir/install-sh"; then
3306 ac_aux_dir=$ac_dir
3307 ac_install_sh="$ac_aux_dir/install-sh -c"
3308 break
3309 elif test -f "$ac_dir/install.sh"; then
3310 ac_aux_dir=$ac_dir
3311 ac_install_sh="$ac_aux_dir/install.sh -c"
3312 break
3313 elif test -f "$ac_dir/shtool"; then
3314 ac_aux_dir=$ac_dir
3315 ac_install_sh="$ac_aux_dir/shtool install -c"
3316 break
3318 done
3319 if test -z "$ac_aux_dir"; then
3320 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3323 # These three variables are undocumented and unsupported,
3324 # and are intended to be withdrawn in a future Autoconf release.
3325 # They can cause serious problems if a builder's source tree is in a directory
3326 # whose full name contains unusual characters.
3327 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3328 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3329 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3332 # Make sure we can run config.sub.
3333 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3334 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3337 $as_echo_n "checking build system type... " >&6; }
3338 if ${ac_cv_build+:} false; then :
3339 $as_echo_n "(cached) " >&6
3340 else
3341 ac_build_alias=$build_alias
3342 test "x$ac_build_alias" = x &&
3343 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3344 test "x$ac_build_alias" = x &&
3345 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3346 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3347 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3351 $as_echo "$ac_cv_build" >&6; }
3352 case $ac_cv_build in
3353 *-*-*) ;;
3354 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3355 esac
3356 build=$ac_cv_build
3357 ac_save_IFS=$IFS; IFS='-'
3358 set x $ac_cv_build
3359 shift
3360 build_cpu=$1
3361 build_vendor=$2
3362 shift; shift
3363 # Remember, the first character of IFS is used to create $*,
3364 # except with old shells:
3365 build_os=$*
3366 IFS=$ac_save_IFS
3367 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3371 $as_echo_n "checking host system type... " >&6; }
3372 if ${ac_cv_host+:} false; then :
3373 $as_echo_n "(cached) " >&6
3374 else
3375 if test "x$host_alias" = x; then
3376 ac_cv_host=$ac_cv_build
3377 else
3378 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3379 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3384 $as_echo "$ac_cv_host" >&6; }
3385 case $ac_cv_host in
3386 *-*-*) ;;
3387 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3388 esac
3389 host=$ac_cv_host
3390 ac_save_IFS=$IFS; IFS='-'
3391 set x $ac_cv_host
3392 shift
3393 host_cpu=$1
3394 host_vendor=$2
3395 shift; shift
3396 # Remember, the first character of IFS is used to create $*,
3397 # except with old shells:
3398 host_os=$*
3399 IFS=$ac_save_IFS
3400 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3404 $as_echo_n "checking target system type... " >&6; }
3405 if ${ac_cv_target+:} false; then :
3406 $as_echo_n "(cached) " >&6
3407 else
3408 if test "x$target_alias" = x; then
3409 ac_cv_target=$ac_cv_host
3410 else
3411 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3412 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3417 $as_echo "$ac_cv_target" >&6; }
3418 case $ac_cv_target in
3419 *-*-*) ;;
3420 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
3421 esac
3422 target=$ac_cv_target
3423 ac_save_IFS=$IFS; IFS='-'
3424 set x $ac_cv_target
3425 shift
3426 target_cpu=$1
3427 target_vendor=$2
3428 shift; shift
3429 # Remember, the first character of IFS is used to create $*,
3430 # except with old shells:
3431 target_os=$*
3432 IFS=$ac_save_IFS
3433 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3436 # The aliases save the names the user supplied, while $host etc.
3437 # will get canonicalized.
3438 test -n "$target_alias" &&
3439 test "$program_prefix$program_suffix$program_transform_name" = \
3440 NONENONEs,x,x, &&
3441 program_prefix=${target_alias}-
3443 # Determine the noncanonical host name, for Ada.
3444 case ${build_alias} in
3445 "") build_noncanonical=${build} ;;
3446 *) build_noncanonical=${build_alias} ;;
3447 esac
3449 case ${host_alias} in
3450 "") host_noncanonical=${build_noncanonical} ;;
3451 *) host_noncanonical=${host_alias} ;;
3452 esac
3457 # Determine the noncanonical target name, for directory use.
3458 case ${target_alias} in
3459 "") target_noncanonical=${host_noncanonical} ;;
3460 *) target_noncanonical=${target_alias} ;;
3461 esac
3466 # Used for constructing correct paths for offload compilers.
3467 real_target_noncanonical=${target_noncanonical}
3468 accel_dir_suffix=
3470 # Determine the target- and build-specific subdirectories
3472 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3473 # have matching libraries, they should use host libraries: Makefile.tpl
3474 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3475 # However, they still use the build modules, because the corresponding
3476 # host modules (e.g. bison) are only built for the host when bootstrap
3477 # finishes. So:
3478 # - build_subdir is where we find build modules, and never changes.
3479 # - build_libsubdir is where we find build libraries, and can be overridden.
3481 # Prefix 'build-' so this never conflicts with target_subdir.
3482 build_subdir="build-${build_noncanonical}"
3484 # Check whether --with-build-libsubdir was given.
3485 if test "${with_build_libsubdir+set}" = set; then :
3486 withval=$with_build_libsubdir; build_libsubdir="$withval"
3487 else
3488 build_libsubdir="$build_subdir"
3491 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3492 if ( test $srcdir = . && test -d gcc ) \
3493 || test -d $srcdir/../host-${host_noncanonical}; then
3494 host_subdir="host-${host_noncanonical}"
3495 else
3496 host_subdir=.
3498 # No prefix.
3499 target_subdir=${target_noncanonical}
3502 # Set program_transform_name
3503 test "$program_prefix" != NONE &&
3504 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3505 # Use a double $ so make ignores it.
3506 test "$program_suffix" != NONE &&
3507 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3508 # Double any \ or $.
3509 # By default was `s,x,x', remove it if useless.
3510 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3511 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3514 # Check for bogus environment variables.
3515 # Test if LIBRARY_PATH contains the notation for the current directory
3516 # since this would lead to problems installing/building glibc.
3517 # LIBRARY_PATH contains the current directory if one of the following
3518 # is true:
3519 # - one of the terminals (":" and ";") is the first or last sign
3520 # - two terminals occur directly after each other
3521 # - the path contains an element with a dot in it
3522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3523 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3524 case ${LIBRARY_PATH} in
3525 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3526 library_path_setting="contains current directory"
3529 library_path_setting="ok"
3531 esac
3532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3533 $as_echo "$library_path_setting" >&6; }
3534 if test "$library_path_setting" != "ok"; then
3535 as_fn_error $? "
3536 *** LIBRARY_PATH shouldn't contain the current directory when
3537 *** building gcc. Please change the environment variable
3538 *** and run configure again." "$LINENO" 5
3541 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3542 # since this would lead to problems installing/building glibc.
3543 # GCC_EXEC_PREFIX contains the current directory if one of the following
3544 # is true:
3545 # - one of the terminals (":" and ";") is the first or last sign
3546 # - two terminals occur directly after each other
3547 # - the path contains an element with a dot in it
3548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3549 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3550 case ${GCC_EXEC_PREFIX} in
3551 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3552 gcc_exec_prefix_setting="contains current directory"
3555 gcc_exec_prefix_setting="ok"
3557 esac
3558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3559 $as_echo "$gcc_exec_prefix_setting" >&6; }
3560 if test "$gcc_exec_prefix_setting" != "ok"; then
3561 as_fn_error $? "
3562 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3563 *** building gcc. Please change the environment variable
3564 *** and run configure again." "$LINENO" 5
3567 # -----------
3568 # Directories
3569 # -----------
3571 # Specify the local prefix
3572 local_prefix=
3574 # Check whether --with-local-prefix was given.
3575 if test "${with_local_prefix+set}" = set; then :
3576 withval=$with_local_prefix; case "${withval}" in
3577 yes) as_fn_error $? "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3578 no) ;;
3579 *) local_prefix=$with_local_prefix ;;
3580 esac
3584 # Default local prefix if it is empty
3585 if test x$local_prefix = x; then
3586 local_prefix=/usr/local
3590 # Check whether --with-native-system-header-dir was given.
3591 if test "${with_native_system_header_dir+set}" = set; then :
3592 withval=$with_native_system_header_dir;
3593 case ${with_native_system_header_dir} in
3594 yes|no) as_fn_error $? "bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
3595 /* | [A-Za-z]:[\\/]*) ;;
3596 *) as_fn_error $? "--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
3597 esac
3598 configured_native_system_header_dir="${withval}"
3600 else
3601 configured_native_system_header_dir=
3606 # Check whether --with-build-sysroot was given.
3607 if test "${with_build_sysroot+set}" = set; then :
3608 withval=$with_build_sysroot; if test x"$withval" != x ; then
3609 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
3611 else
3612 SYSROOT_CFLAGS_FOR_TARGET=
3617 if test "x$prefix" = xNONE; then
3618 test_prefix=/usr/local
3619 else
3620 test_prefix=$prefix
3622 if test "x$exec_prefix" = xNONE; then
3623 test_exec_prefix=$test_prefix
3624 else
3625 test_exec_prefix=$exec_prefix
3629 # Check whether --with-sysroot was given.
3630 if test "${with_sysroot+set}" = set; then :
3631 withval=$with_sysroot;
3632 case ${with_sysroot} in
3633 /) ;;
3634 */) with_sysroot=`echo $with_sysroot | sed 's,/$,,'` ;;
3635 esac
3636 case ${with_sysroot} in
3637 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
3638 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
3639 esac
3641 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
3642 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
3644 case ${TARGET_SYSTEM_ROOT} in
3645 "${test_prefix}"|"${test_prefix}/"*|\
3646 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
3647 '${prefix}'|'${prefix}/'*|\
3648 '${exec_prefix}'|'${exec_prefix}/'*)
3649 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
3650 TARGET_SYSTEM_ROOT_DEFINE="$t"
3652 esac
3654 else
3656 TARGET_SYSTEM_ROOT=
3657 TARGET_SYSTEM_ROOT_DEFINE=
3658 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
3666 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3667 # passed in by the toplevel make and thus we'd get different behavior
3668 # depending on where we built the sources.
3669 gcc_gxx_include_dir=
3670 # Specify the g++ header file directory
3672 # Check whether --with-gxx-include-dir was given.
3673 if test "${with_gxx_include_dir+set}" = set; then :
3674 withval=$with_gxx_include_dir; case "${withval}" in
3675 yes) as_fn_error $? "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3676 no) ;;
3677 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
3678 esac
3682 # If both --with-sysroot and --with-gxx-include-dir are passed, we interpolate
3683 # the former in the latter and, upon success, compute gcc_gxx_include_dir as
3684 # relative to the sysroot.
3685 gcc_gxx_include_dir_add_sysroot=0
3687 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3688 if test x${gcc_gxx_include_dir} = x; then
3689 if test x${enable_version_specific_runtime_libs} = xyes; then
3690 gcc_gxx_include_dir='${libsubdir}/include/c++'
3691 else
3692 libstdcxx_incdir='include/c++/$(version)'
3693 if test x$host != x$target; then
3694 libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3696 gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3698 elif test "${with_sysroot+set}" = set; then
3699 gcc_gxx_without_sysroot=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3700 if test "${gcc_gxx_without_sysroot}"; then
3701 gcc_gxx_include_dir="${gcc_gxx_without_sysroot}"
3702 gcc_gxx_include_dir_add_sysroot=1
3707 # Check whether --with-cpp_install_dir was given.
3708 if test "${with_cpp_install_dir+set}" = set; then :
3709 withval=$with_cpp_install_dir; if test x$withval = xyes; then
3710 as_fn_error $? "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3711 elif test x$withval != xno; then
3712 cpp_install_dir=$withval
3717 # We would like to our source tree to be readonly. However when releases or
3718 # pre-releases are generated, the flex/bison generated files as well as the
3719 # various formats of manuals need to be included along with the rest of the
3720 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3721 # just that.
3723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3724 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3725 # Check whether --enable-generated-files-in-srcdir was given.
3726 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3727 enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3728 else
3729 generated_files_in_srcdir=no
3733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3734 $as_echo "$generated_files_in_srcdir" >&6; }
3736 if test "$generated_files_in_srcdir" = "yes"; then
3737 GENINSRC=''
3738 else
3739 GENINSRC='#'
3743 # -------------------
3744 # Find default linker
3745 # -------------------
3747 # With GNU ld
3749 # Check whether --with-gnu-ld was given.
3750 if test "${with_gnu_ld+set}" = set; then :
3751 withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3752 else
3753 gnu_ld_flag=no
3757 case $target in
3758 *darwin*) ld64_flag=yes;; # Darwin can only use a ld64-compatible linker.
3759 *) ld64_flag=no;;
3760 esac
3762 # With pre-defined ld
3764 # Check whether --with-ld was given.
3765 if test "${with_ld+set}" = set; then :
3766 withval=$with_ld; DEFAULT_LINKER="$with_ld"
3769 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3770 if test ! -x "$DEFAULT_LINKER"; then
3771 as_fn_error $? "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3772 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3773 gnu_ld_flag=yes
3774 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep ld64- > /dev/null; then
3775 ld64_flag=yes
3778 cat >>confdefs.h <<_ACEOF
3779 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3780 _ACEOF
3784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3785 $as_echo_n "checking whether a default linker was specified... " >&6; }
3786 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3787 if test x"$gnu_ld_flag" = x"no"; then
3788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3789 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3790 else
3791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3792 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3794 else
3795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3796 $as_echo "no" >&6; }
3799 # With demangler in GNU ld
3801 # Check whether --with-demangler-in-ld was given.
3802 if test "${with_demangler_in_ld+set}" = set; then :
3803 withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3804 else
3805 demangler_in_ld=yes
3809 # ----------------------
3810 # Find default assembler
3811 # ----------------------
3813 # With GNU as
3815 # Check whether --with-gnu-as was given.
3816 if test "${with_gnu_as+set}" = set; then :
3817 withval=$with_gnu_as; gas_flag="$with_gnu_as"
3818 else
3819 gas_flag=no
3824 # Check whether --with-as was given.
3825 if test "${with_as+set}" = set; then :
3826 withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
3829 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3830 if test ! -x "$DEFAULT_ASSEMBLER"; then
3831 as_fn_error $? "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3832 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3833 gas_flag=yes
3836 cat >>confdefs.h <<_ACEOF
3837 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3838 _ACEOF
3842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3843 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3844 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3845 if test x"$gas_flag" = x"no"; then
3846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3847 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3848 else
3849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3850 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3852 else
3853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3854 $as_echo "no" >&6; }
3857 # ---------------
3858 # Find C compiler
3859 # ---------------
3861 # If a non-executable a.out is present (e.g. created by GNU as above even if
3862 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3863 # file, even when creating an executable, so an execution test fails.
3864 # Remove possible default executable files to avoid this.
3866 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3867 # Autoconf includes it.
3868 rm -f a.out a.exe b.out
3870 # Find the native compiler
3871 ac_ext=c
3872 ac_cpp='$CPP $CPPFLAGS'
3873 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3874 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3875 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3876 if test -n "$ac_tool_prefix"; then
3877 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3878 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3880 $as_echo_n "checking for $ac_word... " >&6; }
3881 if ${ac_cv_prog_CC+:} false; then :
3882 $as_echo_n "(cached) " >&6
3883 else
3884 if test -n "$CC"; then
3885 ac_cv_prog_CC="$CC" # Let the user override the test.
3886 else
3887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3888 for as_dir in $PATH
3890 IFS=$as_save_IFS
3891 test -z "$as_dir" && as_dir=.
3892 for ac_exec_ext in '' $ac_executable_extensions; do
3893 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3894 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3896 break 2
3898 done
3899 done
3900 IFS=$as_save_IFS
3904 CC=$ac_cv_prog_CC
3905 if test -n "$CC"; then
3906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3907 $as_echo "$CC" >&6; }
3908 else
3909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3910 $as_echo "no" >&6; }
3915 if test -z "$ac_cv_prog_CC"; then
3916 ac_ct_CC=$CC
3917 # Extract the first word of "gcc", so it can be a program name with args.
3918 set dummy gcc; ac_word=$2
3919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3920 $as_echo_n "checking for $ac_word... " >&6; }
3921 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3922 $as_echo_n "(cached) " >&6
3923 else
3924 if test -n "$ac_ct_CC"; then
3925 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3926 else
3927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3928 for as_dir in $PATH
3930 IFS=$as_save_IFS
3931 test -z "$as_dir" && as_dir=.
3932 for ac_exec_ext in '' $ac_executable_extensions; do
3933 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3934 ac_cv_prog_ac_ct_CC="gcc"
3935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3936 break 2
3938 done
3939 done
3940 IFS=$as_save_IFS
3944 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3945 if test -n "$ac_ct_CC"; then
3946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3947 $as_echo "$ac_ct_CC" >&6; }
3948 else
3949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3950 $as_echo "no" >&6; }
3953 if test "x$ac_ct_CC" = x; then
3954 CC=""
3955 else
3956 case $cross_compiling:$ac_tool_warned in
3957 yes:)
3958 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3959 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3960 ac_tool_warned=yes ;;
3961 esac
3962 CC=$ac_ct_CC
3964 else
3965 CC="$ac_cv_prog_CC"
3968 if test -z "$CC"; then
3969 if test -n "$ac_tool_prefix"; then
3970 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3971 set dummy ${ac_tool_prefix}cc; ac_word=$2
3972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3973 $as_echo_n "checking for $ac_word... " >&6; }
3974 if ${ac_cv_prog_CC+:} false; then :
3975 $as_echo_n "(cached) " >&6
3976 else
3977 if test -n "$CC"; then
3978 ac_cv_prog_CC="$CC" # Let the user override the test.
3979 else
3980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3981 for as_dir in $PATH
3983 IFS=$as_save_IFS
3984 test -z "$as_dir" && as_dir=.
3985 for ac_exec_ext in '' $ac_executable_extensions; do
3986 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3987 ac_cv_prog_CC="${ac_tool_prefix}cc"
3988 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3989 break 2
3991 done
3992 done
3993 IFS=$as_save_IFS
3997 CC=$ac_cv_prog_CC
3998 if test -n "$CC"; then
3999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4000 $as_echo "$CC" >&6; }
4001 else
4002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4003 $as_echo "no" >&6; }
4009 if test -z "$CC"; then
4010 # Extract the first word of "cc", so it can be a program name with args.
4011 set dummy cc; ac_word=$2
4012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4013 $as_echo_n "checking for $ac_word... " >&6; }
4014 if ${ac_cv_prog_CC+:} false; then :
4015 $as_echo_n "(cached) " >&6
4016 else
4017 if test -n "$CC"; then
4018 ac_cv_prog_CC="$CC" # Let the user override the test.
4019 else
4020 ac_prog_rejected=no
4021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4022 for as_dir in $PATH
4024 IFS=$as_save_IFS
4025 test -z "$as_dir" && as_dir=.
4026 for ac_exec_ext in '' $ac_executable_extensions; do
4027 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4028 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4029 ac_prog_rejected=yes
4030 continue
4032 ac_cv_prog_CC="cc"
4033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4034 break 2
4036 done
4037 done
4038 IFS=$as_save_IFS
4040 if test $ac_prog_rejected = yes; then
4041 # We found a bogon in the path, so make sure we never use it.
4042 set dummy $ac_cv_prog_CC
4043 shift
4044 if test $# != 0; then
4045 # We chose a different compiler from the bogus one.
4046 # However, it has the same basename, so the bogon will be chosen
4047 # first if we set CC to just the basename; use the full file name.
4048 shift
4049 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4054 CC=$ac_cv_prog_CC
4055 if test -n "$CC"; then
4056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4057 $as_echo "$CC" >&6; }
4058 else
4059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4060 $as_echo "no" >&6; }
4065 if test -z "$CC"; then
4066 if test -n "$ac_tool_prefix"; then
4067 for ac_prog in cl.exe
4069 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4070 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4072 $as_echo_n "checking for $ac_word... " >&6; }
4073 if ${ac_cv_prog_CC+:} false; then :
4074 $as_echo_n "(cached) " >&6
4075 else
4076 if test -n "$CC"; then
4077 ac_cv_prog_CC="$CC" # Let the user override the test.
4078 else
4079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4080 for as_dir in $PATH
4082 IFS=$as_save_IFS
4083 test -z "$as_dir" && as_dir=.
4084 for ac_exec_ext in '' $ac_executable_extensions; do
4085 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4086 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4088 break 2
4090 done
4091 done
4092 IFS=$as_save_IFS
4096 CC=$ac_cv_prog_CC
4097 if test -n "$CC"; then
4098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4099 $as_echo "$CC" >&6; }
4100 else
4101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4102 $as_echo "no" >&6; }
4106 test -n "$CC" && break
4107 done
4109 if test -z "$CC"; then
4110 ac_ct_CC=$CC
4111 for ac_prog in cl.exe
4113 # Extract the first word of "$ac_prog", so it can be a program name with args.
4114 set dummy $ac_prog; ac_word=$2
4115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4116 $as_echo_n "checking for $ac_word... " >&6; }
4117 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4118 $as_echo_n "(cached) " >&6
4119 else
4120 if test -n "$ac_ct_CC"; then
4121 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4122 else
4123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4124 for as_dir in $PATH
4126 IFS=$as_save_IFS
4127 test -z "$as_dir" && as_dir=.
4128 for ac_exec_ext in '' $ac_executable_extensions; do
4129 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4130 ac_cv_prog_ac_ct_CC="$ac_prog"
4131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4132 break 2
4134 done
4135 done
4136 IFS=$as_save_IFS
4140 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4141 if test -n "$ac_ct_CC"; then
4142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4143 $as_echo "$ac_ct_CC" >&6; }
4144 else
4145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4146 $as_echo "no" >&6; }
4150 test -n "$ac_ct_CC" && break
4151 done
4153 if test "x$ac_ct_CC" = x; then
4154 CC=""
4155 else
4156 case $cross_compiling:$ac_tool_warned in
4157 yes:)
4158 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4159 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4160 ac_tool_warned=yes ;;
4161 esac
4162 CC=$ac_ct_CC
4169 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4170 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4171 as_fn_error $? "no acceptable C compiler found in \$PATH
4172 See \`config.log' for more details" "$LINENO" 5; }
4174 # Provide some information about the compiler.
4175 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4176 set X $ac_compile
4177 ac_compiler=$2
4178 for ac_option in --version -v -V -qversion; do
4179 { { ac_try="$ac_compiler $ac_option >&5"
4180 case "(($ac_try" in
4181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4182 *) ac_try_echo=$ac_try;;
4183 esac
4184 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4185 $as_echo "$ac_try_echo"; } >&5
4186 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4187 ac_status=$?
4188 if test -s conftest.err; then
4189 sed '10a\
4190 ... rest of stderr output deleted ...
4191 10q' conftest.err >conftest.er1
4192 cat conftest.er1 >&5
4194 rm -f conftest.er1 conftest.err
4195 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4196 test $ac_status = 0; }
4197 done
4199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4200 /* end confdefs.h. */
4203 main ()
4207 return 0;
4209 _ACEOF
4210 ac_clean_files_save=$ac_clean_files
4211 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4212 # Try to create an executable without -o first, disregard a.out.
4213 # It will help us diagnose broken compilers, and finding out an intuition
4214 # of exeext.
4215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4216 $as_echo_n "checking whether the C compiler works... " >&6; }
4217 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4219 # The possible output files:
4220 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4222 ac_rmfiles=
4223 for ac_file in $ac_files
4225 case $ac_file in
4226 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4227 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4228 esac
4229 done
4230 rm -f $ac_rmfiles
4232 if { { ac_try="$ac_link_default"
4233 case "(($ac_try" in
4234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4235 *) ac_try_echo=$ac_try;;
4236 esac
4237 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4238 $as_echo "$ac_try_echo"; } >&5
4239 (eval "$ac_link_default") 2>&5
4240 ac_status=$?
4241 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4242 test $ac_status = 0; }; then :
4243 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4244 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4245 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4246 # so that the user can short-circuit this test for compilers unknown to
4247 # Autoconf.
4248 for ac_file in $ac_files ''
4250 test -f "$ac_file" || continue
4251 case $ac_file in
4252 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4254 [ab].out )
4255 # We found the default executable, but exeext='' is most
4256 # certainly right.
4257 break;;
4258 *.* )
4259 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4260 then :; else
4261 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4263 # We set ac_cv_exeext here because the later test for it is not
4264 # safe: cross compilers may not add the suffix if given an `-o'
4265 # argument, so we may need to know it at that point already.
4266 # Even if this section looks crufty: it has the advantage of
4267 # actually working.
4268 break;;
4270 break;;
4271 esac
4272 done
4273 test "$ac_cv_exeext" = no && ac_cv_exeext=
4275 else
4276 ac_file=''
4278 if test -z "$ac_file"; then :
4279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4280 $as_echo "no" >&6; }
4281 $as_echo "$as_me: failed program was:" >&5
4282 sed 's/^/| /' conftest.$ac_ext >&5
4284 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4285 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4286 as_fn_error 77 "C compiler cannot create executables
4287 See \`config.log' for more details" "$LINENO" 5; }
4288 else
4289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4290 $as_echo "yes" >&6; }
4292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4293 $as_echo_n "checking for C compiler default output file name... " >&6; }
4294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4295 $as_echo "$ac_file" >&6; }
4296 ac_exeext=$ac_cv_exeext
4298 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4299 ac_clean_files=$ac_clean_files_save
4300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4301 $as_echo_n "checking for suffix of executables... " >&6; }
4302 if { { ac_try="$ac_link"
4303 case "(($ac_try" in
4304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4305 *) ac_try_echo=$ac_try;;
4306 esac
4307 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4308 $as_echo "$ac_try_echo"; } >&5
4309 (eval "$ac_link") 2>&5
4310 ac_status=$?
4311 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4312 test $ac_status = 0; }; then :
4313 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4314 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4315 # work properly (i.e., refer to `conftest.exe'), while it won't with
4316 # `rm'.
4317 for ac_file in conftest.exe conftest conftest.*; do
4318 test -f "$ac_file" || continue
4319 case $ac_file in
4320 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4321 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4322 break;;
4323 * ) break;;
4324 esac
4325 done
4326 else
4327 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4328 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4329 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4330 See \`config.log' for more details" "$LINENO" 5; }
4332 rm -f conftest conftest$ac_cv_exeext
4333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4334 $as_echo "$ac_cv_exeext" >&6; }
4336 rm -f conftest.$ac_ext
4337 EXEEXT=$ac_cv_exeext
4338 ac_exeext=$EXEEXT
4339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4340 /* end confdefs.h. */
4341 #include <stdio.h>
4343 main ()
4345 FILE *f = fopen ("conftest.out", "w");
4346 return ferror (f) || fclose (f) != 0;
4349 return 0;
4351 _ACEOF
4352 ac_clean_files="$ac_clean_files conftest.out"
4353 # Check that the compiler produces executables we can run. If not, either
4354 # the compiler is broken, or we cross compile.
4355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4356 $as_echo_n "checking whether we are cross compiling... " >&6; }
4357 if test "$cross_compiling" != yes; then
4358 { { ac_try="$ac_link"
4359 case "(($ac_try" in
4360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4361 *) ac_try_echo=$ac_try;;
4362 esac
4363 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4364 $as_echo "$ac_try_echo"; } >&5
4365 (eval "$ac_link") 2>&5
4366 ac_status=$?
4367 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4368 test $ac_status = 0; }
4369 if { ac_try='./conftest$ac_cv_exeext'
4370 { { case "(($ac_try" in
4371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4372 *) ac_try_echo=$ac_try;;
4373 esac
4374 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4375 $as_echo "$ac_try_echo"; } >&5
4376 (eval "$ac_try") 2>&5
4377 ac_status=$?
4378 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4379 test $ac_status = 0; }; }; then
4380 cross_compiling=no
4381 else
4382 if test "$cross_compiling" = maybe; then
4383 cross_compiling=yes
4384 else
4385 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4386 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4387 as_fn_error $? "cannot run C compiled programs.
4388 If you meant to cross compile, use \`--host'.
4389 See \`config.log' for more details" "$LINENO" 5; }
4393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4394 $as_echo "$cross_compiling" >&6; }
4396 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4397 ac_clean_files=$ac_clean_files_save
4398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4399 $as_echo_n "checking for suffix of object files... " >&6; }
4400 if ${ac_cv_objext+:} false; then :
4401 $as_echo_n "(cached) " >&6
4402 else
4403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4404 /* end confdefs.h. */
4407 main ()
4411 return 0;
4413 _ACEOF
4414 rm -f conftest.o conftest.obj
4415 if { { ac_try="$ac_compile"
4416 case "(($ac_try" in
4417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4418 *) ac_try_echo=$ac_try;;
4419 esac
4420 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4421 $as_echo "$ac_try_echo"; } >&5
4422 (eval "$ac_compile") 2>&5
4423 ac_status=$?
4424 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4425 test $ac_status = 0; }; then :
4426 for ac_file in conftest.o conftest.obj conftest.*; do
4427 test -f "$ac_file" || continue;
4428 case $ac_file in
4429 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4430 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4431 break;;
4432 esac
4433 done
4434 else
4435 $as_echo "$as_me: failed program was:" >&5
4436 sed 's/^/| /' conftest.$ac_ext >&5
4438 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4439 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4440 as_fn_error $? "cannot compute suffix of object files: cannot compile
4441 See \`config.log' for more details" "$LINENO" 5; }
4443 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4446 $as_echo "$ac_cv_objext" >&6; }
4447 OBJEXT=$ac_cv_objext
4448 ac_objext=$OBJEXT
4449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4450 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4451 if ${ac_cv_c_compiler_gnu+:} false; then :
4452 $as_echo_n "(cached) " >&6
4453 else
4454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4455 /* end confdefs.h. */
4458 main ()
4460 #ifndef __GNUC__
4461 choke me
4462 #endif
4465 return 0;
4467 _ACEOF
4468 if ac_fn_c_try_compile "$LINENO"; then :
4469 ac_compiler_gnu=yes
4470 else
4471 ac_compiler_gnu=no
4473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4474 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4478 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4479 if test $ac_compiler_gnu = yes; then
4480 GCC=yes
4481 else
4482 GCC=
4484 ac_test_CFLAGS=${CFLAGS+set}
4485 ac_save_CFLAGS=$CFLAGS
4486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4487 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4488 if ${ac_cv_prog_cc_g+:} false; then :
4489 $as_echo_n "(cached) " >&6
4490 else
4491 ac_save_c_werror_flag=$ac_c_werror_flag
4492 ac_c_werror_flag=yes
4493 ac_cv_prog_cc_g=no
4494 CFLAGS="-g"
4495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4496 /* end confdefs.h. */
4499 main ()
4503 return 0;
4505 _ACEOF
4506 if ac_fn_c_try_compile "$LINENO"; then :
4507 ac_cv_prog_cc_g=yes
4508 else
4509 CFLAGS=""
4510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4511 /* end confdefs.h. */
4514 main ()
4518 return 0;
4520 _ACEOF
4521 if ac_fn_c_try_compile "$LINENO"; then :
4523 else
4524 ac_c_werror_flag=$ac_save_c_werror_flag
4525 CFLAGS="-g"
4526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4527 /* end confdefs.h. */
4530 main ()
4534 return 0;
4536 _ACEOF
4537 if ac_fn_c_try_compile "$LINENO"; then :
4538 ac_cv_prog_cc_g=yes
4540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4545 ac_c_werror_flag=$ac_save_c_werror_flag
4547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4548 $as_echo "$ac_cv_prog_cc_g" >&6; }
4549 if test "$ac_test_CFLAGS" = set; then
4550 CFLAGS=$ac_save_CFLAGS
4551 elif test $ac_cv_prog_cc_g = yes; then
4552 if test "$GCC" = yes; then
4553 CFLAGS="-g -O2"
4554 else
4555 CFLAGS="-g"
4557 else
4558 if test "$GCC" = yes; then
4559 CFLAGS="-O2"
4560 else
4561 CFLAGS=
4564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4565 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4566 if ${ac_cv_prog_cc_c89+:} false; then :
4567 $as_echo_n "(cached) " >&6
4568 else
4569 ac_cv_prog_cc_c89=no
4570 ac_save_CC=$CC
4571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4572 /* end confdefs.h. */
4573 #include <stdarg.h>
4574 #include <stdio.h>
4575 struct stat;
4576 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4577 struct buf { int x; };
4578 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4579 static char *e (p, i)
4580 char **p;
4581 int i;
4583 return p[i];
4585 static char *f (char * (*g) (char **, int), char **p, ...)
4587 char *s;
4588 va_list v;
4589 va_start (v,p);
4590 s = g (p, va_arg (v,int));
4591 va_end (v);
4592 return s;
4595 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4596 function prototypes and stuff, but not '\xHH' hex character constants.
4597 These don't provoke an error unfortunately, instead are silently treated
4598 as 'x'. The following induces an error, until -std is added to get
4599 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4600 array size at least. It's necessary to write '\x00'==0 to get something
4601 that's true only with -std. */
4602 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4604 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4605 inside strings and character constants. */
4606 #define FOO(x) 'x'
4607 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4609 int test (int i, double x);
4610 struct s1 {int (*f) (int a);};
4611 struct s2 {int (*f) (double a);};
4612 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4613 int argc;
4614 char **argv;
4616 main ()
4618 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4620 return 0;
4622 _ACEOF
4623 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4624 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4626 CC="$ac_save_CC $ac_arg"
4627 if ac_fn_c_try_compile "$LINENO"; then :
4628 ac_cv_prog_cc_c89=$ac_arg
4630 rm -f core conftest.err conftest.$ac_objext
4631 test "x$ac_cv_prog_cc_c89" != "xno" && break
4632 done
4633 rm -f conftest.$ac_ext
4634 CC=$ac_save_CC
4637 # AC_CACHE_VAL
4638 case "x$ac_cv_prog_cc_c89" in
4640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4641 $as_echo "none needed" >&6; } ;;
4642 xno)
4643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4644 $as_echo "unsupported" >&6; } ;;
4646 CC="$CC $ac_cv_prog_cc_c89"
4647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4648 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4649 esac
4650 if test "x$ac_cv_prog_cc_c89" != xno; then :
4654 ac_ext=c
4655 ac_cpp='$CPP $CPPFLAGS'
4656 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4657 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4658 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4660 ac_ext=cpp
4661 ac_cpp='$CXXCPP $CPPFLAGS'
4662 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4663 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4664 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4665 if test -z "$CXX"; then
4666 if test -n "$CCC"; then
4667 CXX=$CCC
4668 else
4669 if test -n "$ac_tool_prefix"; then
4670 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4672 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4673 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4675 $as_echo_n "checking for $ac_word... " >&6; }
4676 if ${ac_cv_prog_CXX+:} false; then :
4677 $as_echo_n "(cached) " >&6
4678 else
4679 if test -n "$CXX"; then
4680 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4681 else
4682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4683 for as_dir in $PATH
4685 IFS=$as_save_IFS
4686 test -z "$as_dir" && as_dir=.
4687 for ac_exec_ext in '' $ac_executable_extensions; do
4688 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4689 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4690 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4691 break 2
4693 done
4694 done
4695 IFS=$as_save_IFS
4699 CXX=$ac_cv_prog_CXX
4700 if test -n "$CXX"; then
4701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4702 $as_echo "$CXX" >&6; }
4703 else
4704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4705 $as_echo "no" >&6; }
4709 test -n "$CXX" && break
4710 done
4712 if test -z "$CXX"; then
4713 ac_ct_CXX=$CXX
4714 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4716 # Extract the first word of "$ac_prog", so it can be a program name with args.
4717 set dummy $ac_prog; ac_word=$2
4718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4719 $as_echo_n "checking for $ac_word... " >&6; }
4720 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4721 $as_echo_n "(cached) " >&6
4722 else
4723 if test -n "$ac_ct_CXX"; then
4724 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4725 else
4726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4727 for as_dir in $PATH
4729 IFS=$as_save_IFS
4730 test -z "$as_dir" && as_dir=.
4731 for ac_exec_ext in '' $ac_executable_extensions; do
4732 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4733 ac_cv_prog_ac_ct_CXX="$ac_prog"
4734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4735 break 2
4737 done
4738 done
4739 IFS=$as_save_IFS
4743 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4744 if test -n "$ac_ct_CXX"; then
4745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4746 $as_echo "$ac_ct_CXX" >&6; }
4747 else
4748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4749 $as_echo "no" >&6; }
4753 test -n "$ac_ct_CXX" && break
4754 done
4756 if test "x$ac_ct_CXX" = x; then
4757 CXX="g++"
4758 else
4759 case $cross_compiling:$ac_tool_warned in
4760 yes:)
4761 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4762 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4763 ac_tool_warned=yes ;;
4764 esac
4765 CXX=$ac_ct_CXX
4771 # Provide some information about the compiler.
4772 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4773 set X $ac_compile
4774 ac_compiler=$2
4775 for ac_option in --version -v -V -qversion; do
4776 { { ac_try="$ac_compiler $ac_option >&5"
4777 case "(($ac_try" in
4778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4779 *) ac_try_echo=$ac_try;;
4780 esac
4781 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4782 $as_echo "$ac_try_echo"; } >&5
4783 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4784 ac_status=$?
4785 if test -s conftest.err; then
4786 sed '10a\
4787 ... rest of stderr output deleted ...
4788 10q' conftest.err >conftest.er1
4789 cat conftest.er1 >&5
4791 rm -f conftest.er1 conftest.err
4792 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4793 test $ac_status = 0; }
4794 done
4796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4797 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4798 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4799 $as_echo_n "(cached) " >&6
4800 else
4801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4802 /* end confdefs.h. */
4805 main ()
4807 #ifndef __GNUC__
4808 choke me
4809 #endif
4812 return 0;
4814 _ACEOF
4815 if ac_fn_cxx_try_compile "$LINENO"; then :
4816 ac_compiler_gnu=yes
4817 else
4818 ac_compiler_gnu=no
4820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4821 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4825 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4826 if test $ac_compiler_gnu = yes; then
4827 GXX=yes
4828 else
4829 GXX=
4831 ac_test_CXXFLAGS=${CXXFLAGS+set}
4832 ac_save_CXXFLAGS=$CXXFLAGS
4833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4834 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4835 if ${ac_cv_prog_cxx_g+:} false; then :
4836 $as_echo_n "(cached) " >&6
4837 else
4838 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4839 ac_cxx_werror_flag=yes
4840 ac_cv_prog_cxx_g=no
4841 CXXFLAGS="-g"
4842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4843 /* end confdefs.h. */
4846 main ()
4850 return 0;
4852 _ACEOF
4853 if ac_fn_cxx_try_compile "$LINENO"; then :
4854 ac_cv_prog_cxx_g=yes
4855 else
4856 CXXFLAGS=""
4857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4858 /* end confdefs.h. */
4861 main ()
4865 return 0;
4867 _ACEOF
4868 if ac_fn_cxx_try_compile "$LINENO"; then :
4870 else
4871 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4872 CXXFLAGS="-g"
4873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4874 /* end confdefs.h. */
4877 main ()
4881 return 0;
4883 _ACEOF
4884 if ac_fn_cxx_try_compile "$LINENO"; then :
4885 ac_cv_prog_cxx_g=yes
4887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4892 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4895 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4896 if test "$ac_test_CXXFLAGS" = set; then
4897 CXXFLAGS=$ac_save_CXXFLAGS
4898 elif test $ac_cv_prog_cxx_g = yes; then
4899 if test "$GXX" = yes; then
4900 CXXFLAGS="-g -O2"
4901 else
4902 CXXFLAGS="-g"
4904 else
4905 if test "$GXX" = yes; then
4906 CXXFLAGS="-O2"
4907 else
4908 CXXFLAGS=
4911 ac_ext=c
4912 ac_cpp='$CPP $CPPFLAGS'
4913 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4914 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4915 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4920 if test -n "$ac_tool_prefix"; then
4921 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4922 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4924 $as_echo_n "checking for $ac_word... " >&6; }
4925 if ${ac_cv_prog_GNATBIND+:} false; then :
4926 $as_echo_n "(cached) " >&6
4927 else
4928 if test -n "$GNATBIND"; then
4929 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4930 else
4931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4932 for as_dir in $PATH
4934 IFS=$as_save_IFS
4935 test -z "$as_dir" && as_dir=.
4936 for ac_exec_ext in '' $ac_executable_extensions; do
4937 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4938 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4940 break 2
4942 done
4943 done
4944 IFS=$as_save_IFS
4948 GNATBIND=$ac_cv_prog_GNATBIND
4949 if test -n "$GNATBIND"; then
4950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4951 $as_echo "$GNATBIND" >&6; }
4952 else
4953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4954 $as_echo "no" >&6; }
4959 if test -z "$ac_cv_prog_GNATBIND"; then
4960 ac_ct_GNATBIND=$GNATBIND
4961 # Extract the first word of "gnatbind", so it can be a program name with args.
4962 set dummy gnatbind; ac_word=$2
4963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4964 $as_echo_n "checking for $ac_word... " >&6; }
4965 if ${ac_cv_prog_ac_ct_GNATBIND+:} false; then :
4966 $as_echo_n "(cached) " >&6
4967 else
4968 if test -n "$ac_ct_GNATBIND"; then
4969 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4970 else
4971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4972 for as_dir in $PATH
4974 IFS=$as_save_IFS
4975 test -z "$as_dir" && as_dir=.
4976 for ac_exec_ext in '' $ac_executable_extensions; do
4977 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4978 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4980 break 2
4982 done
4983 done
4984 IFS=$as_save_IFS
4988 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4989 if test -n "$ac_ct_GNATBIND"; then
4990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4991 $as_echo "$ac_ct_GNATBIND" >&6; }
4992 else
4993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4994 $as_echo "no" >&6; }
4997 if test "x$ac_ct_GNATBIND" = x; then
4998 GNATBIND="no"
4999 else
5000 case $cross_compiling:$ac_tool_warned in
5001 yes:)
5002 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5003 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5004 ac_tool_warned=yes ;;
5005 esac
5006 GNATBIND=$ac_ct_GNATBIND
5008 else
5009 GNATBIND="$ac_cv_prog_GNATBIND"
5012 if test -n "$ac_tool_prefix"; then
5013 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5014 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5016 $as_echo_n "checking for $ac_word... " >&6; }
5017 if ${ac_cv_prog_GNATMAKE+:} false; then :
5018 $as_echo_n "(cached) " >&6
5019 else
5020 if test -n "$GNATMAKE"; then
5021 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5022 else
5023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5024 for as_dir in $PATH
5026 IFS=$as_save_IFS
5027 test -z "$as_dir" && as_dir=.
5028 for ac_exec_ext in '' $ac_executable_extensions; do
5029 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5030 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5031 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5032 break 2
5034 done
5035 done
5036 IFS=$as_save_IFS
5040 GNATMAKE=$ac_cv_prog_GNATMAKE
5041 if test -n "$GNATMAKE"; then
5042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5043 $as_echo "$GNATMAKE" >&6; }
5044 else
5045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5046 $as_echo "no" >&6; }
5051 if test -z "$ac_cv_prog_GNATMAKE"; then
5052 ac_ct_GNATMAKE=$GNATMAKE
5053 # Extract the first word of "gnatmake", so it can be a program name with args.
5054 set dummy gnatmake; ac_word=$2
5055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5056 $as_echo_n "checking for $ac_word... " >&6; }
5057 if ${ac_cv_prog_ac_ct_GNATMAKE+:} false; then :
5058 $as_echo_n "(cached) " >&6
5059 else
5060 if test -n "$ac_ct_GNATMAKE"; then
5061 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5062 else
5063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5064 for as_dir in $PATH
5066 IFS=$as_save_IFS
5067 test -z "$as_dir" && as_dir=.
5068 for ac_exec_ext in '' $ac_executable_extensions; do
5069 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5070 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5072 break 2
5074 done
5075 done
5076 IFS=$as_save_IFS
5080 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5081 if test -n "$ac_ct_GNATMAKE"; then
5082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5083 $as_echo "$ac_ct_GNATMAKE" >&6; }
5084 else
5085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5086 $as_echo "no" >&6; }
5089 if test "x$ac_ct_GNATMAKE" = x; then
5090 GNATMAKE="no"
5091 else
5092 case $cross_compiling:$ac_tool_warned in
5093 yes:)
5094 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5095 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5096 ac_tool_warned=yes ;;
5097 esac
5098 GNATMAKE=$ac_ct_GNATMAKE
5100 else
5101 GNATMAKE="$ac_cv_prog_GNATMAKE"
5104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5105 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5106 if ${acx_cv_cc_gcc_supports_ada+:} false; then :
5107 $as_echo_n "(cached) " >&6
5108 else
5109 cat >conftest.adb <<EOF
5110 procedure conftest is begin null; end conftest;
5112 acx_cv_cc_gcc_supports_ada=no
5113 # There is a bug in old released versions of GCC which causes the
5114 # driver to exit successfully when the appropriate language module
5115 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5116 # Therefore we must check for the error message as well as an
5117 # unsuccessful exit.
5118 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5119 # given a .adb file, but produce no object file. So we must check
5120 # if an object file was really produced to guard against this.
5121 errors=`(${CC} -I"$srcdir"/ada/libgnat -c conftest.adb) 2>&1 || echo failure`
5122 if test x"$errors" = x && test -f conftest.$ac_objext; then
5123 acx_cv_cc_gcc_supports_ada=yes
5125 rm -f conftest.*
5127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5128 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5130 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5131 have_gnat=yes
5132 else
5133 have_gnat=no
5137 # Do configure tests with the C++ compiler, since that's what we build with.
5138 ac_ext=cpp
5139 ac_cpp='$CXXCPP $CPPFLAGS'
5140 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5141 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5142 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5145 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
5146 # optimizations to be activated explicitly by the toplevel.
5147 case "$CC" in
5148 */prev-gcc/xgcc*) ;;
5149 *) CFLAGS=`echo "$CFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" `
5150 CXXFLAGS=`echo "$CXXFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` ;;
5151 esac
5155 # Determine PICFLAG for target gnatlib.
5160 case "${target}" in
5161 # PIC is the default on some targets or must not be used.
5162 *-*-darwin*)
5163 # For darwin, common symbols are not allowed in MH_DYLIB files
5164 case "${CFLAGS}" in
5165 # If we are using a compiler supporting mdynamic-no-pic
5166 # and the option has been tested as safe to add, then cancel
5167 # it here, since the code generated is incompatible with shared
5168 # libs.
5169 *-mdynamic-no-pic*) PICFLAG_FOR_TARGET='-fno-common -mno-dynamic-no-pic' ;;
5170 *) PICFLAG_FOR_TARGET=-fno-common ;;
5171 esac
5173 alpha*-dec-osf5*)
5174 # PIC is the default.
5176 hppa*64*-*-hpux*)
5177 # PIC is the default for 64-bit PA HP-UX.
5179 i[34567]86-*-cygwin* | x86_64-*-cygwin*)
5181 i[34567]86-*-mingw* | x86_64-*-mingw*)
5183 i[34567]86-*-interix[3-9]*)
5184 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5185 # Instead, we relocate shared libraries at runtime.
5187 i[34567]86-*-nto-qnx*)
5188 # QNX uses GNU C++, but need to define -shared option too, otherwise
5189 # it will coredump.
5190 PICFLAG_FOR_TARGET='-fPIC -shared'
5192 i[34567]86-pc-msdosdjgpp*)
5193 # DJGPP does not support shared libraries at all.
5195 ia64*-*-hpux*)
5196 # On IA64 HP-UX, PIC is the default but the pic flag
5197 # sets the default TLS model and affects inlining.
5198 PICFLAG_FOR_TARGET=-fPIC
5200 mips-sgi-irix6*)
5201 # PIC is the default.
5203 rs6000-ibm-aix* | powerpc-ibm-aix*)
5204 # All AIX code is PIC.
5207 # Some targets support both -fPIC and -fpic, but prefer the latter.
5208 # FIXME: Why?
5209 i[34567]86-*-* | x86_64-*-*)
5210 PICFLAG_FOR_TARGET=-fpic
5212 # FIXME: Override -fPIC default in libgcc only?
5213 sh-*-linux* | sh[2346lbe]*-*-linux*)
5214 PICFLAG_FOR_TARGET=-fpic
5216 # FIXME: Simplify to sh*-*-netbsd*?
5217 sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
5218 sh64-*-netbsd* | sh64l*-*-netbsd*)
5219 PICFLAG_FOR_TARGET=-fpic
5221 # Default to -fPIC unless specified otherwise.
5223 PICFLAG_FOR_TARGET=-fPIC
5225 esac
5227 # If the user explicitly uses -fpic/-fPIC, keep that.
5228 case "${CFLAGS_FOR_TARGET}" in
5229 *-fpic*)
5230 PICFLAG_FOR_TARGET=-fpic
5232 *-fPIC*)
5233 PICFLAG_FOR_TARGET=-fPIC
5235 esac
5239 # -------------------------
5240 # Check C compiler features
5241 # -------------------------
5244 ac_ext=cpp
5245 ac_cpp='$CXXCPP $CPPFLAGS'
5246 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5247 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5248 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5250 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5251 if test -z "$CXXCPP"; then
5252 if ${ac_cv_prog_CXXCPP+:} false; then :
5253 $as_echo_n "(cached) " >&6
5254 else
5255 # Double quotes because CXXCPP needs to be expanded
5256 for CXXCPP in "$CXX -E" "/lib/cpp"
5258 ac_preproc_ok=false
5259 for ac_cxx_preproc_warn_flag in '' yes
5261 # Use a header file that comes with gcc, so configuring glibc
5262 # with a fresh cross-compiler works.
5263 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5264 # <limits.h> exists even on freestanding compilers.
5265 # On the NeXT, cc -E runs the code through the compiler's parser,
5266 # not just through cpp. "Syntax error" is here to catch this case.
5267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5268 /* end confdefs.h. */
5269 #ifdef __STDC__
5270 # include <limits.h>
5271 #else
5272 # include <assert.h>
5273 #endif
5274 Syntax error
5275 _ACEOF
5276 if ac_fn_cxx_try_cpp "$LINENO"; then :
5278 else
5279 # Broken: fails on valid input.
5280 continue
5282 rm -f conftest.err conftest.i conftest.$ac_ext
5284 # OK, works on sane cases. Now check whether nonexistent headers
5285 # can be detected and how.
5286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5287 /* end confdefs.h. */
5288 #include <ac_nonexistent.h>
5289 _ACEOF
5290 if ac_fn_cxx_try_cpp "$LINENO"; then :
5291 # Broken: success on invalid input.
5292 continue
5293 else
5294 # Passes both tests.
5295 ac_preproc_ok=:
5296 break
5298 rm -f conftest.err conftest.i conftest.$ac_ext
5300 done
5301 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5302 rm -f conftest.i conftest.err conftest.$ac_ext
5303 if $ac_preproc_ok; then :
5304 break
5307 done
5308 ac_cv_prog_CXXCPP=$CXXCPP
5311 CXXCPP=$ac_cv_prog_CXXCPP
5312 else
5313 ac_cv_prog_CXXCPP=$CXXCPP
5315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5316 $as_echo "$CXXCPP" >&6; }
5317 ac_preproc_ok=false
5318 for ac_cxx_preproc_warn_flag in '' yes
5320 # Use a header file that comes with gcc, so configuring glibc
5321 # with a fresh cross-compiler works.
5322 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5323 # <limits.h> exists even on freestanding compilers.
5324 # On the NeXT, cc -E runs the code through the compiler's parser,
5325 # not just through cpp. "Syntax error" is here to catch this case.
5326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5327 /* end confdefs.h. */
5328 #ifdef __STDC__
5329 # include <limits.h>
5330 #else
5331 # include <assert.h>
5332 #endif
5333 Syntax error
5334 _ACEOF
5335 if ac_fn_cxx_try_cpp "$LINENO"; then :
5337 else
5338 # Broken: fails on valid input.
5339 continue
5341 rm -f conftest.err conftest.i conftest.$ac_ext
5343 # OK, works on sane cases. Now check whether nonexistent headers
5344 # can be detected and how.
5345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5346 /* end confdefs.h. */
5347 #include <ac_nonexistent.h>
5348 _ACEOF
5349 if ac_fn_cxx_try_cpp "$LINENO"; then :
5350 # Broken: success on invalid input.
5351 continue
5352 else
5353 # Passes both tests.
5354 ac_preproc_ok=:
5355 break
5357 rm -f conftest.err conftest.i conftest.$ac_ext
5359 done
5360 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5361 rm -f conftest.i conftest.err conftest.$ac_ext
5362 if $ac_preproc_ok; then :
5364 else
5365 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5366 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5367 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
5368 See \`config.log' for more details" "$LINENO" 5; }
5371 ac_ext=cpp
5372 ac_cpp='$CXXCPP $CPPFLAGS'
5373 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5374 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5375 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5379 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5380 if ${ac_cv_path_GREP+:} false; then :
5381 $as_echo_n "(cached) " >&6
5382 else
5383 if test -z "$GREP"; then
5384 ac_path_GREP_found=false
5385 # Loop through the user's path and test for each of PROGNAME-LIST
5386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5387 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5389 IFS=$as_save_IFS
5390 test -z "$as_dir" && as_dir=.
5391 for ac_prog in grep ggrep; do
5392 for ac_exec_ext in '' $ac_executable_extensions; do
5393 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5394 as_fn_executable_p "$ac_path_GREP" || continue
5395 # Check for GNU ac_path_GREP and select it if it is found.
5396 # Check for GNU $ac_path_GREP
5397 case `"$ac_path_GREP" --version 2>&1` in
5398 *GNU*)
5399 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5401 ac_count=0
5402 $as_echo_n 0123456789 >"conftest.in"
5403 while :
5405 cat "conftest.in" "conftest.in" >"conftest.tmp"
5406 mv "conftest.tmp" "conftest.in"
5407 cp "conftest.in" "conftest.nl"
5408 $as_echo 'GREP' >> "conftest.nl"
5409 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5410 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5411 as_fn_arith $ac_count + 1 && ac_count=$as_val
5412 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5413 # Best one so far, save it but keep looking for a better one
5414 ac_cv_path_GREP="$ac_path_GREP"
5415 ac_path_GREP_max=$ac_count
5417 # 10*(2^10) chars as input seems more than enough
5418 test $ac_count -gt 10 && break
5419 done
5420 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5421 esac
5423 $ac_path_GREP_found && break 3
5424 done
5425 done
5426 done
5427 IFS=$as_save_IFS
5428 if test -z "$ac_cv_path_GREP"; then
5429 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5431 else
5432 ac_cv_path_GREP=$GREP
5436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5437 $as_echo "$ac_cv_path_GREP" >&6; }
5438 GREP="$ac_cv_path_GREP"
5441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5442 $as_echo_n "checking for egrep... " >&6; }
5443 if ${ac_cv_path_EGREP+:} false; then :
5444 $as_echo_n "(cached) " >&6
5445 else
5446 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5447 then ac_cv_path_EGREP="$GREP -E"
5448 else
5449 if test -z "$EGREP"; then
5450 ac_path_EGREP_found=false
5451 # Loop through the user's path and test for each of PROGNAME-LIST
5452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5453 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5455 IFS=$as_save_IFS
5456 test -z "$as_dir" && as_dir=.
5457 for ac_prog in egrep; do
5458 for ac_exec_ext in '' $ac_executable_extensions; do
5459 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5460 as_fn_executable_p "$ac_path_EGREP" || continue
5461 # Check for GNU ac_path_EGREP and select it if it is found.
5462 # Check for GNU $ac_path_EGREP
5463 case `"$ac_path_EGREP" --version 2>&1` in
5464 *GNU*)
5465 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5467 ac_count=0
5468 $as_echo_n 0123456789 >"conftest.in"
5469 while :
5471 cat "conftest.in" "conftest.in" >"conftest.tmp"
5472 mv "conftest.tmp" "conftest.in"
5473 cp "conftest.in" "conftest.nl"
5474 $as_echo 'EGREP' >> "conftest.nl"
5475 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5476 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5477 as_fn_arith $ac_count + 1 && ac_count=$as_val
5478 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5479 # Best one so far, save it but keep looking for a better one
5480 ac_cv_path_EGREP="$ac_path_EGREP"
5481 ac_path_EGREP_max=$ac_count
5483 # 10*(2^10) chars as input seems more than enough
5484 test $ac_count -gt 10 && break
5485 done
5486 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5487 esac
5489 $ac_path_EGREP_found && break 3
5490 done
5491 done
5492 done
5493 IFS=$as_save_IFS
5494 if test -z "$ac_cv_path_EGREP"; then
5495 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5497 else
5498 ac_cv_path_EGREP=$EGREP
5503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5504 $as_echo "$ac_cv_path_EGREP" >&6; }
5505 EGREP="$ac_cv_path_EGREP"
5508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5509 $as_echo_n "checking for ANSI C header files... " >&6; }
5510 if ${ac_cv_header_stdc+:} false; then :
5511 $as_echo_n "(cached) " >&6
5512 else
5513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5514 /* end confdefs.h. */
5515 #include <stdlib.h>
5516 #include <stdarg.h>
5517 #include <string.h>
5518 #include <float.h>
5521 main ()
5525 return 0;
5527 _ACEOF
5528 if ac_fn_cxx_try_compile "$LINENO"; then :
5529 ac_cv_header_stdc=yes
5530 else
5531 ac_cv_header_stdc=no
5533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5535 if test $ac_cv_header_stdc = yes; then
5536 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5538 /* end confdefs.h. */
5539 #include <string.h>
5541 _ACEOF
5542 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5543 $EGREP "memchr" >/dev/null 2>&1; then :
5545 else
5546 ac_cv_header_stdc=no
5548 rm -f conftest*
5552 if test $ac_cv_header_stdc = yes; then
5553 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5555 /* end confdefs.h. */
5556 #include <stdlib.h>
5558 _ACEOF
5559 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5560 $EGREP "free" >/dev/null 2>&1; then :
5562 else
5563 ac_cv_header_stdc=no
5565 rm -f conftest*
5569 if test $ac_cv_header_stdc = yes; then
5570 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5571 if test "$cross_compiling" = yes; then :
5573 else
5574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5575 /* end confdefs.h. */
5576 #include <ctype.h>
5577 #include <stdlib.h>
5578 #if ((' ' & 0x0FF) == 0x020)
5579 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5580 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5581 #else
5582 # define ISLOWER(c) \
5583 (('a' <= (c) && (c) <= 'i') \
5584 || ('j' <= (c) && (c) <= 'r') \
5585 || ('s' <= (c) && (c) <= 'z'))
5586 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5587 #endif
5589 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5591 main ()
5593 int i;
5594 for (i = 0; i < 256; i++)
5595 if (XOR (islower (i), ISLOWER (i))
5596 || toupper (i) != TOUPPER (i))
5597 return 2;
5598 return 0;
5600 _ACEOF
5601 if ac_fn_cxx_try_run "$LINENO"; then :
5603 else
5604 ac_cv_header_stdc=no
5606 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5607 conftest.$ac_objext conftest.beam conftest.$ac_ext
5612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5613 $as_echo "$ac_cv_header_stdc" >&6; }
5614 if test $ac_cv_header_stdc = yes; then
5616 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5620 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5621 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5622 inttypes.h stdint.h unistd.h
5623 do :
5624 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5625 ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5627 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5628 cat >>confdefs.h <<_ACEOF
5629 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5630 _ACEOF
5634 done
5638 ac_fn_cxx_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5639 if test "x$ac_cv_header_minix_config_h" = xyes; then :
5640 MINIX=yes
5641 else
5642 MINIX=
5646 if test "$MINIX" = yes; then
5648 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5651 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5654 $as_echo "#define _MINIX 1" >>confdefs.h
5659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5660 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5661 if ${ac_cv_safe_to_define___extensions__+:} false; then :
5662 $as_echo_n "(cached) " >&6
5663 else
5664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5665 /* end confdefs.h. */
5667 # define __EXTENSIONS__ 1
5668 $ac_includes_default
5670 main ()
5674 return 0;
5676 _ACEOF
5677 if ac_fn_cxx_try_compile "$LINENO"; then :
5678 ac_cv_safe_to_define___extensions__=yes
5679 else
5680 ac_cv_safe_to_define___extensions__=no
5682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5685 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5686 test $ac_cv_safe_to_define___extensions__ = yes &&
5687 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5689 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5691 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5693 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5695 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5698 ac_ext=c
5699 ac_cpp='$CPP $CPPFLAGS'
5700 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5701 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5702 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5704 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5705 # On Suns, sometimes $CPP names a directory.
5706 if test -n "$CPP" && test -d "$CPP"; then
5707 CPP=
5709 if test -z "$CPP"; then
5710 if ${ac_cv_prog_CPP+:} false; then :
5711 $as_echo_n "(cached) " >&6
5712 else
5713 # Double quotes because CPP needs to be expanded
5714 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5716 ac_preproc_ok=false
5717 for ac_c_preproc_warn_flag in '' yes
5719 # Use a header file that comes with gcc, so configuring glibc
5720 # with a fresh cross-compiler works.
5721 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5722 # <limits.h> exists even on freestanding compilers.
5723 # On the NeXT, cc -E runs the code through the compiler's parser,
5724 # not just through cpp. "Syntax error" is here to catch this case.
5725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5726 /* end confdefs.h. */
5727 #ifdef __STDC__
5728 # include <limits.h>
5729 #else
5730 # include <assert.h>
5731 #endif
5732 Syntax error
5733 _ACEOF
5734 if ac_fn_c_try_cpp "$LINENO"; then :
5736 else
5737 # Broken: fails on valid input.
5738 continue
5740 rm -f conftest.err conftest.i conftest.$ac_ext
5742 # OK, works on sane cases. Now check whether nonexistent headers
5743 # can be detected and how.
5744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5745 /* end confdefs.h. */
5746 #include <ac_nonexistent.h>
5747 _ACEOF
5748 if ac_fn_c_try_cpp "$LINENO"; then :
5749 # Broken: success on invalid input.
5750 continue
5751 else
5752 # Passes both tests.
5753 ac_preproc_ok=:
5754 break
5756 rm -f conftest.err conftest.i conftest.$ac_ext
5758 done
5759 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5760 rm -f conftest.i conftest.err conftest.$ac_ext
5761 if $ac_preproc_ok; then :
5762 break
5765 done
5766 ac_cv_prog_CPP=$CPP
5769 CPP=$ac_cv_prog_CPP
5770 else
5771 ac_cv_prog_CPP=$CPP
5773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5774 $as_echo "$CPP" >&6; }
5775 ac_preproc_ok=false
5776 for ac_c_preproc_warn_flag in '' yes
5778 # Use a header file that comes with gcc, so configuring glibc
5779 # with a fresh cross-compiler works.
5780 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5781 # <limits.h> exists even on freestanding compilers.
5782 # On the NeXT, cc -E runs the code through the compiler's parser,
5783 # not just through cpp. "Syntax error" is here to catch this case.
5784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5785 /* end confdefs.h. */
5786 #ifdef __STDC__
5787 # include <limits.h>
5788 #else
5789 # include <assert.h>
5790 #endif
5791 Syntax error
5792 _ACEOF
5793 if ac_fn_c_try_cpp "$LINENO"; then :
5795 else
5796 # Broken: fails on valid input.
5797 continue
5799 rm -f conftest.err conftest.i conftest.$ac_ext
5801 # OK, works on sane cases. Now check whether nonexistent headers
5802 # can be detected and how.
5803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5804 /* end confdefs.h. */
5805 #include <ac_nonexistent.h>
5806 _ACEOF
5807 if ac_fn_c_try_cpp "$LINENO"; then :
5808 # Broken: success on invalid input.
5809 continue
5810 else
5811 # Passes both tests.
5812 ac_preproc_ok=:
5813 break
5815 rm -f conftest.err conftest.i conftest.$ac_ext
5817 done
5818 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5819 rm -f conftest.i conftest.err conftest.$ac_ext
5820 if $ac_preproc_ok; then :
5822 else
5823 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5824 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5825 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5826 See \`config.log' for more details" "$LINENO" 5; }
5829 ac_ext=cpp
5830 ac_cpp='$CXXCPP $CPPFLAGS'
5831 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5832 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5833 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5836 $as_echo_n "checking for inline... " >&6; }
5837 if ${ac_cv_c_inline+:} false; then :
5838 $as_echo_n "(cached) " >&6
5839 else
5840 ac_cv_c_inline=no
5841 for ac_kw in inline __inline__ __inline; do
5842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5843 /* end confdefs.h. */
5844 #ifndef __cplusplus
5845 typedef int foo_t;
5846 static $ac_kw foo_t static_foo () {return 0; }
5847 $ac_kw foo_t foo () {return 0; }
5848 #endif
5850 _ACEOF
5851 if ac_fn_cxx_try_compile "$LINENO"; then :
5852 ac_cv_c_inline=$ac_kw
5854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5855 test "$ac_cv_c_inline" != no && break
5856 done
5859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5860 $as_echo "$ac_cv_c_inline" >&6; }
5862 case $ac_cv_c_inline in
5863 inline | yes) ;;
5865 case $ac_cv_c_inline in
5866 no) ac_val=;;
5867 *) ac_val=$ac_cv_c_inline;;
5868 esac
5869 cat >>confdefs.h <<_ACEOF
5870 #ifndef __cplusplus
5871 #define inline $ac_val
5872 #endif
5873 _ACEOF
5875 esac
5878 # Check whether --enable-largefile was given.
5879 if test "${enable_largefile+set}" = set; then :
5880 enableval=$enable_largefile;
5883 if test "$enable_largefile" != no; then
5885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5886 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5887 if ${ac_cv_sys_largefile_CC+:} false; then :
5888 $as_echo_n "(cached) " >&6
5889 else
5890 ac_cv_sys_largefile_CC=no
5891 if test "$GCC" != yes; then
5892 ac_save_CC=$CC
5893 while :; do
5894 # IRIX 6.2 and later do not support large files by default,
5895 # so use the C compiler's -n32 option if that helps.
5896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5897 /* end confdefs.h. */
5898 #include <sys/types.h>
5899 /* Check that off_t can represent 2**63 - 1 correctly.
5900 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5901 since some C++ compilers masquerading as C compilers
5902 incorrectly reject 9223372036854775807. */
5903 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5904 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5905 && LARGE_OFF_T % 2147483647 == 1)
5906 ? 1 : -1];
5908 main ()
5912 return 0;
5914 _ACEOF
5915 if ac_fn_cxx_try_compile "$LINENO"; then :
5916 break
5918 rm -f core conftest.err conftest.$ac_objext
5919 CC="$CC -n32"
5920 if ac_fn_cxx_try_compile "$LINENO"; then :
5921 ac_cv_sys_largefile_CC=' -n32'; break
5923 rm -f core conftest.err conftest.$ac_objext
5924 break
5925 done
5926 CC=$ac_save_CC
5927 rm -f conftest.$ac_ext
5930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5931 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5932 if test "$ac_cv_sys_largefile_CC" != no; then
5933 CC=$CC$ac_cv_sys_largefile_CC
5936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5937 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5938 if ${ac_cv_sys_file_offset_bits+:} false; then :
5939 $as_echo_n "(cached) " >&6
5940 else
5941 while :; do
5942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5943 /* end confdefs.h. */
5944 #include <sys/types.h>
5945 /* Check that off_t can represent 2**63 - 1 correctly.
5946 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5947 since some C++ compilers masquerading as C compilers
5948 incorrectly reject 9223372036854775807. */
5949 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5950 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5951 && LARGE_OFF_T % 2147483647 == 1)
5952 ? 1 : -1];
5954 main ()
5958 return 0;
5960 _ACEOF
5961 if ac_fn_cxx_try_compile "$LINENO"; then :
5962 ac_cv_sys_file_offset_bits=no; break
5964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5966 /* end confdefs.h. */
5967 #define _FILE_OFFSET_BITS 64
5968 #include <sys/types.h>
5969 /* Check that off_t can represent 2**63 - 1 correctly.
5970 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5971 since some C++ compilers masquerading as C compilers
5972 incorrectly reject 9223372036854775807. */
5973 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5974 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5975 && LARGE_OFF_T % 2147483647 == 1)
5976 ? 1 : -1];
5978 main ()
5982 return 0;
5984 _ACEOF
5985 if ac_fn_cxx_try_compile "$LINENO"; then :
5986 ac_cv_sys_file_offset_bits=64; break
5988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5989 ac_cv_sys_file_offset_bits=unknown
5990 break
5991 done
5993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5994 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5995 case $ac_cv_sys_file_offset_bits in #(
5996 no | unknown) ;;
5998 cat >>confdefs.h <<_ACEOF
5999 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6000 _ACEOF
6002 esac
6003 rm -rf conftest*
6004 if test $ac_cv_sys_file_offset_bits = unknown; then
6005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6006 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6007 if ${ac_cv_sys_large_files+:} false; then :
6008 $as_echo_n "(cached) " >&6
6009 else
6010 while :; do
6011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6012 /* end confdefs.h. */
6013 #include <sys/types.h>
6014 /* Check that off_t can represent 2**63 - 1 correctly.
6015 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6016 since some C++ compilers masquerading as C compilers
6017 incorrectly reject 9223372036854775807. */
6018 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6019 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6020 && LARGE_OFF_T % 2147483647 == 1)
6021 ? 1 : -1];
6023 main ()
6027 return 0;
6029 _ACEOF
6030 if ac_fn_cxx_try_compile "$LINENO"; then :
6031 ac_cv_sys_large_files=no; break
6033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6035 /* end confdefs.h. */
6036 #define _LARGE_FILES 1
6037 #include <sys/types.h>
6038 /* Check that off_t can represent 2**63 - 1 correctly.
6039 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6040 since some C++ compilers masquerading as C compilers
6041 incorrectly reject 9223372036854775807. */
6042 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6043 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6044 && LARGE_OFF_T % 2147483647 == 1)
6045 ? 1 : -1];
6047 main ()
6051 return 0;
6053 _ACEOF
6054 if ac_fn_cxx_try_compile "$LINENO"; then :
6055 ac_cv_sys_large_files=1; break
6057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6058 ac_cv_sys_large_files=unknown
6059 break
6060 done
6062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6063 $as_echo "$ac_cv_sys_large_files" >&6; }
6064 case $ac_cv_sys_large_files in #(
6065 no | unknown) ;;
6067 cat >>confdefs.h <<_ACEOF
6068 #define _LARGE_FILES $ac_cv_sys_large_files
6069 _ACEOF
6071 esac
6072 rm -rf conftest*
6079 # sizeof(char) is 1 by definition.
6080 # The cast to long int works around a bug in the HP C Compiler
6081 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6082 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6083 # This bug is HP SR number 8606223364.
6084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
6085 $as_echo_n "checking size of void *... " >&6; }
6086 if ${ac_cv_sizeof_void_p+:} false; then :
6087 $as_echo_n "(cached) " >&6
6088 else
6089 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
6091 else
6092 if test "$ac_cv_type_void_p" = yes; then
6093 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6094 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6095 as_fn_error 77 "cannot compute sizeof (void *)
6096 See \`config.log' for more details" "$LINENO" 5; }
6097 else
6098 ac_cv_sizeof_void_p=0
6103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
6104 $as_echo "$ac_cv_sizeof_void_p" >&6; }
6108 cat >>confdefs.h <<_ACEOF
6109 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
6110 _ACEOF
6113 # The cast to long int works around a bug in the HP C Compiler
6114 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6115 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6116 # This bug is HP SR number 8606223364.
6117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
6118 $as_echo_n "checking size of short... " >&6; }
6119 if ${ac_cv_sizeof_short+:} false; then :
6120 $as_echo_n "(cached) " >&6
6121 else
6122 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
6124 else
6125 if test "$ac_cv_type_short" = yes; then
6126 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6127 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6128 as_fn_error 77 "cannot compute sizeof (short)
6129 See \`config.log' for more details" "$LINENO" 5; }
6130 else
6131 ac_cv_sizeof_short=0
6136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
6137 $as_echo "$ac_cv_sizeof_short" >&6; }
6141 cat >>confdefs.h <<_ACEOF
6142 #define SIZEOF_SHORT $ac_cv_sizeof_short
6143 _ACEOF
6146 # The cast to long int works around a bug in the HP C Compiler
6147 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6148 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6149 # This bug is HP SR number 8606223364.
6150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
6151 $as_echo_n "checking size of int... " >&6; }
6152 if ${ac_cv_sizeof_int+:} false; then :
6153 $as_echo_n "(cached) " >&6
6154 else
6155 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
6157 else
6158 if test "$ac_cv_type_int" = yes; then
6159 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6160 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6161 as_fn_error 77 "cannot compute sizeof (int)
6162 See \`config.log' for more details" "$LINENO" 5; }
6163 else
6164 ac_cv_sizeof_int=0
6169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
6170 $as_echo "$ac_cv_sizeof_int" >&6; }
6174 cat >>confdefs.h <<_ACEOF
6175 #define SIZEOF_INT $ac_cv_sizeof_int
6176 _ACEOF
6179 # The cast to long int works around a bug in the HP C Compiler
6180 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6181 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6182 # This bug is HP SR number 8606223364.
6183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6184 $as_echo_n "checking size of long... " >&6; }
6185 if ${ac_cv_sizeof_long+:} false; then :
6186 $as_echo_n "(cached) " >&6
6187 else
6188 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
6190 else
6191 if test "$ac_cv_type_long" = yes; then
6192 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6193 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6194 as_fn_error 77 "cannot compute sizeof (long)
6195 See \`config.log' for more details" "$LINENO" 5; }
6196 else
6197 ac_cv_sizeof_long=0
6202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6203 $as_echo "$ac_cv_sizeof_long" >&6; }
6207 cat >>confdefs.h <<_ACEOF
6208 #define SIZEOF_LONG $ac_cv_sizeof_long
6209 _ACEOF
6212 ac_fn_cxx_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
6213 if test "x$ac_cv_type_long_long" = xyes; then :
6215 cat >>confdefs.h <<_ACEOF
6216 #define HAVE_LONG_LONG 1
6217 _ACEOF
6219 # The cast to long int works around a bug in the HP C Compiler
6220 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6221 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6222 # This bug is HP SR number 8606223364.
6223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
6224 $as_echo_n "checking size of long long... " >&6; }
6225 if ${ac_cv_sizeof_long_long+:} false; then :
6226 $as_echo_n "(cached) " >&6
6227 else
6228 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
6230 else
6231 if test "$ac_cv_type_long_long" = yes; then
6232 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6233 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6234 as_fn_error 77 "cannot compute sizeof (long long)
6235 See \`config.log' for more details" "$LINENO" 5; }
6236 else
6237 ac_cv_sizeof_long_long=0
6242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
6243 $as_echo "$ac_cv_sizeof_long_long" >&6; }
6247 cat >>confdefs.h <<_ACEOF
6248 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6249 _ACEOF
6254 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
6255 case $ac_cv_c_int8_t in #(
6256 no|yes) ;; #(
6259 cat >>confdefs.h <<_ACEOF
6260 #define int8_t $ac_cv_c_int8_t
6261 _ACEOF
6263 esac
6265 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
6266 case $ac_cv_c_int16_t in #(
6267 no|yes) ;; #(
6270 cat >>confdefs.h <<_ACEOF
6271 #define int16_t $ac_cv_c_int16_t
6272 _ACEOF
6274 esac
6276 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
6277 case $ac_cv_c_int32_t in #(
6278 no|yes) ;; #(
6281 cat >>confdefs.h <<_ACEOF
6282 #define int32_t $ac_cv_c_int32_t
6283 _ACEOF
6285 esac
6287 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
6288 case $ac_cv_c_int64_t in #(
6289 no|yes) ;; #(
6292 cat >>confdefs.h <<_ACEOF
6293 #define int64_t $ac_cv_c_int64_t
6294 _ACEOF
6296 esac
6299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6300 $as_echo_n "checking for unsigned long long int... " >&6; }
6301 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
6302 $as_echo_n "(cached) " >&6
6303 else
6304 ac_cv_type_unsigned_long_long_int=yes
6305 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
6306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6307 /* end confdefs.h. */
6309 /* For now, do not test the preprocessor; as of 2007 there are too many
6310 implementations with broken preprocessors. Perhaps this can
6311 be revisited in 2012. In the meantime, code should not expect
6312 #if to work with literals wider than 32 bits. */
6313 /* Test literals. */
6314 long long int ll = 9223372036854775807ll;
6315 long long int nll = -9223372036854775807LL;
6316 unsigned long long int ull = 18446744073709551615ULL;
6317 /* Test constant expressions. */
6318 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6319 ? 1 : -1)];
6320 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6321 ? 1 : -1)];
6322 int i = 63;
6324 main ()
6326 /* Test availability of runtime routines for shift and division. */
6327 long long int llmax = 9223372036854775807ll;
6328 unsigned long long int ullmax = 18446744073709551615ull;
6329 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6330 | (llmax / ll) | (llmax % ll)
6331 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6332 | (ullmax / ull) | (ullmax % ull));
6334 return 0;
6337 _ACEOF
6338 if ac_fn_cxx_try_link "$LINENO"; then :
6340 else
6341 ac_cv_type_unsigned_long_long_int=no
6343 rm -f core conftest.err conftest.$ac_objext \
6344 conftest$ac_exeext conftest.$ac_ext
6347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6348 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6349 if test $ac_cv_type_unsigned_long_long_int = yes; then
6351 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6358 $as_echo_n "checking for long long int... " >&6; }
6359 if ${ac_cv_type_long_long_int+:} false; then :
6360 $as_echo_n "(cached) " >&6
6361 else
6362 ac_cv_type_long_long_int=yes
6363 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
6364 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
6365 if test $ac_cv_type_long_long_int = yes; then
6366 if test "$cross_compiling" = yes; then :
6368 else
6369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6370 /* end confdefs.h. */
6371 #include <limits.h>
6372 #ifndef LLONG_MAX
6373 # define HALF \
6374 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6375 # define LLONG_MAX (HALF - 1 + HALF)
6376 #endif
6378 main ()
6380 long long int n = 1;
6381 int i;
6382 for (i = 0; ; i++)
6384 long long int m = n << i;
6385 if (m >> i != n)
6386 return 1;
6387 if (LLONG_MAX / 2 < m)
6388 break;
6390 return 0;
6392 return 0;
6394 _ACEOF
6395 if ac_fn_cxx_try_run "$LINENO"; then :
6397 else
6398 ac_cv_type_long_long_int=no
6400 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6401 conftest.$ac_objext conftest.beam conftest.$ac_ext
6407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6408 $as_echo "$ac_cv_type_long_long_int" >&6; }
6409 if test $ac_cv_type_long_long_int = yes; then
6411 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6417 ac_fn_cxx_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6418 if test "x$ac_cv_type_intmax_t" = xyes; then :
6420 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6422 else
6423 test $ac_cv_type_long_long_int = yes \
6424 && ac_type='long long int' \
6425 || ac_type='long int'
6427 cat >>confdefs.h <<_ACEOF
6428 #define intmax_t $ac_type
6429 _ACEOF
6435 ac_fn_cxx_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6436 if test "x$ac_cv_type_intptr_t" = xyes; then :
6438 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6440 else
6441 for ac_type in 'int' 'long int' 'long long int'; do
6442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6443 /* end confdefs.h. */
6444 $ac_includes_default
6446 main ()
6448 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6449 test_array [0] = 0;
6450 return test_array [0];
6453 return 0;
6455 _ACEOF
6456 if ac_fn_cxx_try_compile "$LINENO"; then :
6458 cat >>confdefs.h <<_ACEOF
6459 #define intptr_t $ac_type
6460 _ACEOF
6462 ac_type=
6464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6465 test -z "$ac_type" && break
6466 done
6470 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
6471 case $ac_cv_c_uint8_t in #(
6472 no|yes) ;; #(
6475 $as_echo "#define _UINT8_T 1" >>confdefs.h
6478 cat >>confdefs.h <<_ACEOF
6479 #define uint8_t $ac_cv_c_uint8_t
6480 _ACEOF
6482 esac
6484 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6485 case $ac_cv_c_uint16_t in #(
6486 no|yes) ;; #(
6490 cat >>confdefs.h <<_ACEOF
6491 #define uint16_t $ac_cv_c_uint16_t
6492 _ACEOF
6494 esac
6496 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6497 case $ac_cv_c_uint32_t in #(
6498 no|yes) ;; #(
6501 $as_echo "#define _UINT32_T 1" >>confdefs.h
6504 cat >>confdefs.h <<_ACEOF
6505 #define uint32_t $ac_cv_c_uint32_t
6506 _ACEOF
6508 esac
6510 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
6511 case $ac_cv_c_uint64_t in #(
6512 no|yes) ;; #(
6515 $as_echo "#define _UINT64_T 1" >>confdefs.h
6518 cat >>confdefs.h <<_ACEOF
6519 #define uint64_t $ac_cv_c_uint64_t
6520 _ACEOF
6522 esac
6526 ac_fn_cxx_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6527 if test "x$ac_cv_type_uintmax_t" = xyes; then :
6529 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6531 else
6532 test $ac_cv_type_unsigned_long_long_int = yes \
6533 && ac_type='unsigned long long int' \
6534 || ac_type='unsigned long int'
6536 cat >>confdefs.h <<_ACEOF
6537 #define uintmax_t $ac_type
6538 _ACEOF
6544 ac_fn_cxx_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6545 if test "x$ac_cv_type_uintptr_t" = xyes; then :
6547 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6549 else
6550 for ac_type in 'unsigned int' 'unsigned long int' \
6551 'unsigned long long int'; do
6552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6553 /* end confdefs.h. */
6554 $ac_includes_default
6556 main ()
6558 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6559 test_array [0] = 0;
6560 return test_array [0];
6563 return 0;
6565 _ACEOF
6566 if ac_fn_cxx_try_compile "$LINENO"; then :
6568 cat >>confdefs.h <<_ACEOF
6569 #define uintptr_t $ac_type
6570 _ACEOF
6572 ac_type=
6574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6575 test -z "$ac_type" && break
6576 done
6592 if test x"$ac_cv_c_uint64_t" = x"no" -o x"$ac_cv_c_int64_t" = x"no"; then
6593 as_fn_error $? "uint64_t or int64_t not found" "$LINENO" 5
6596 # check what underlying integer type int64_t uses
6597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t underlying type" >&5
6598 $as_echo_n "checking for int64_t underlying type... " >&6; }
6599 if ${ac_cv_int64_t_type+:} false; then :
6600 $as_echo_n "(cached) " >&6
6601 else
6603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6604 /* end confdefs.h. */
6606 #ifdef HAVE_STDINT_H
6607 #include <stdint.h>
6608 #endif
6609 template <typename T> struct X { };
6610 template <>
6611 struct X<long> { typedef long t; };
6614 main ()
6616 X<int64_t>::t x;
6618 return 0;
6620 _ACEOF
6621 if ac_fn_cxx_try_compile "$LINENO"; then :
6622 ac_cv_int64_t_type=long
6623 else
6624 ac_cv_int64_t_type="long long"
6626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_int64_t_type" >&5
6629 $as_echo "$ac_cv_int64_t_type" >&6; }
6630 if test "$ac_cv_int64_t_type" = "long"; then
6632 $as_echo "#define INT64_T_IS_LONG 1" >>confdefs.h
6634 else
6635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6636 /* end confdefs.h. */
6638 #ifdef HAVE_STDINT_H
6639 #include <stdint.h>
6640 #endif
6641 template <typename T> struct X { };
6642 template <>
6643 struct X<long long> { typedef long long t; };
6646 main ()
6648 X<int64_t>::t x;
6650 return 0;
6652 _ACEOF
6653 if ac_fn_cxx_try_compile "$LINENO"; then :
6655 else
6656 as_fn_error $? "error verifying int64_t uses long long" "$LINENO" 5
6658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::swap in <utility>" >&5
6662 $as_echo_n "checking for std::swap in <utility>... " >&6; }
6663 if ${ac_cv_std_swap_in_utility+:} false; then :
6664 $as_echo_n "(cached) " >&6
6665 else
6667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6668 /* end confdefs.h. */
6670 #include <utility>
6673 main ()
6675 int a, b; std::swap(a,b);
6677 return 0;
6679 _ACEOF
6680 if ac_fn_cxx_try_compile "$LINENO"; then :
6681 ac_cv_std_swap_in_utility=yes
6682 else
6683 ac_cv_std_swap_in_utility=no
6685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_std_swap_in_utility" >&5
6688 $as_echo "$ac_cv_std_swap_in_utility" >&6; }
6689 if test $ac_cv_std_swap_in_utility = yes; then
6691 $as_echo "#define HAVE_SWAP_IN_UTILITY 1" >>confdefs.h
6695 # Check whether compiler is affected by placement new aliasing bug (PR 29286).
6696 # If the host compiler is affected by the bug, and we build with optimization
6697 # enabled (which happens e.g. when cross-compiling), the pool allocator may
6698 # get miscompiled. Use -fno-strict-aliasing to work around this problem.
6699 # Since there is no reliable feature check for the presence of this bug,
6700 # we simply use a GCC version number check. (This should never trigger for
6701 # stages 2 or 3 of a native bootstrap.)
6702 aliasing_flags=
6703 if test "$GCC" = yes; then
6704 saved_CXXFLAGS="$CXXFLAGS"
6706 # The following test compilation will succeed if and only if $CXX accepts
6707 # -fno-strict-aliasing *and* is older than GCC 4.3.
6708 CXXFLAGS="$CXXFLAGS -fno-strict-aliasing"
6709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX is affected by placement new aliasing bug" >&5
6710 $as_echo_n "checking whether $CXX is affected by placement new aliasing bug... " >&6; }
6711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6712 /* end confdefs.h. */
6714 #if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3)
6715 #error compiler not affected by placement new aliasing bug
6716 #endif
6718 _ACEOF
6719 if ac_fn_cxx_try_compile "$LINENO"; then :
6720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6721 $as_echo "yes" >&6; }; aliasing_flags='-fno-strict-aliasing'
6722 else
6723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6724 $as_echo "no" >&6; }
6726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6728 CXXFLAGS="$saved_CXXFLAGS"
6734 # ---------------------
6735 # Warnings and checking
6736 # ---------------------
6738 # Check $CC warning features (if it's GCC).
6739 # We want to use -pedantic, but we don't want warnings about
6740 # * 'long long'
6741 # * variadic macros
6742 # * overlong strings
6743 # * C++11 narrowing conversions in { }
6744 # So, we only use -pedantic if we can disable those warnings.
6746 # In stage 1, disable -Wformat warnings from old GCCs about new % codes
6747 # Check whether --enable-build-format-warnings was given.
6748 if test "${enable_build_format_warnings+set}" = set; then :
6749 enableval=$enable_build_format_warnings;
6750 else
6751 enable_build_format_warnings=yes
6754 if test $enable_build_format_warnings = no; then :
6755 wf_opt=-Wno-format
6756 else
6757 wf_opt=
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
6765 loose_warn=
6766 save_CXXFLAGS="$CXXFLAGS"
6767 for real_option in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wno-error=format-diag $wf_opt; do
6768 # Do the check with the no- prefix removed since gcc silently
6769 # accepts any -Wno-* option on purpose
6770 case $real_option in
6771 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6772 *) option=$real_option ;;
6773 esac
6774 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6777 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6778 if eval \${$as_acx_Woption+:} false; then :
6779 $as_echo_n "(cached) " >&6
6780 else
6781 CXXFLAGS="$option"
6782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6783 /* end confdefs.h. */
6786 main ()
6790 return 0;
6792 _ACEOF
6793 if ac_fn_cxx_try_compile "$LINENO"; then :
6794 eval "$as_acx_Woption=yes"
6795 else
6796 eval "$as_acx_Woption=no"
6798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6801 eval ac_res=\$$as_acx_Woption
6802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6803 $as_echo "$ac_res" >&6; }
6804 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6805 loose_warn="$loose_warn${loose_warn:+ }$real_option"
6807 done
6808 CXXFLAGS="$save_CXXFLAGS"
6809 ac_ext=cpp
6810 ac_cpp='$CXXCPP $CPPFLAGS'
6811 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6812 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6813 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6817 ac_ext=c
6818 ac_cpp='$CPP $CPPFLAGS'
6819 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6820 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6821 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6823 c_loose_warn=
6824 save_CFLAGS="$CFLAGS"
6825 for real_option in -Wstrict-prototypes -Wmissing-prototypes -Wno-error=format-diag; do
6826 # Do the check with the no- prefix removed since gcc silently
6827 # accepts any -Wno-* option on purpose
6828 case $real_option in
6829 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6830 *) option=$real_option ;;
6831 esac
6832 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6835 $as_echo_n "checking whether $CC supports $option... " >&6; }
6836 if eval \${$as_acx_Woption+:} false; then :
6837 $as_echo_n "(cached) " >&6
6838 else
6839 CFLAGS="$option"
6840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6841 /* end confdefs.h. */
6844 main ()
6848 return 0;
6850 _ACEOF
6851 if ac_fn_c_try_compile "$LINENO"; then :
6852 eval "$as_acx_Woption=yes"
6853 else
6854 eval "$as_acx_Woption=no"
6856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6859 eval ac_res=\$$as_acx_Woption
6860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6861 $as_echo "$ac_res" >&6; }
6862 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6863 c_loose_warn="$c_loose_warn${c_loose_warn:+ }$real_option"
6865 done
6866 CFLAGS="$save_CFLAGS"
6867 ac_ext=cpp
6868 ac_cpp='$CXXCPP $CPPFLAGS'
6869 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6870 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6871 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
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
6880 strict_warn=
6881 save_CXXFLAGS="$CXXFLAGS"
6882 for real_option in -Wmissing-format-attribute -Woverloaded-virtual; do
6883 # Do the check with the no- prefix removed since gcc silently
6884 # accepts any -Wno-* option on purpose
6885 case $real_option in
6886 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6887 *) option=$real_option ;;
6888 esac
6889 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6892 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6893 if eval \${$as_acx_Woption+:} false; then :
6894 $as_echo_n "(cached) " >&6
6895 else
6896 CXXFLAGS="$option"
6897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6898 /* end confdefs.h. */
6901 main ()
6905 return 0;
6907 _ACEOF
6908 if ac_fn_cxx_try_compile "$LINENO"; then :
6909 eval "$as_acx_Woption=yes"
6910 else
6911 eval "$as_acx_Woption=no"
6913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6916 eval ac_res=\$$as_acx_Woption
6917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6918 $as_echo "$ac_res" >&6; }
6919 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6920 strict_warn="$strict_warn${strict_warn:+ }$real_option"
6922 done
6923 CXXFLAGS="$save_CXXFLAGS"
6924 ac_ext=cpp
6925 ac_cpp='$CXXCPP $CPPFLAGS'
6926 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6927 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6928 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6931 ac_ext=c
6932 ac_cpp='$CPP $CPPFLAGS'
6933 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6934 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6935 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6937 c_strict_warn=
6938 save_CFLAGS="$CFLAGS"
6939 for real_option in -Wold-style-definition -Wc++-compat; do
6940 # Do the check with the no- prefix removed since gcc silently
6941 # accepts any -Wno-* option on purpose
6942 case $real_option in
6943 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6944 *) option=$real_option ;;
6945 esac
6946 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6949 $as_echo_n "checking whether $CC supports $option... " >&6; }
6950 if eval \${$as_acx_Woption+:} false; then :
6951 $as_echo_n "(cached) " >&6
6952 else
6953 CFLAGS="$option"
6954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6955 /* end confdefs.h. */
6958 main ()
6962 return 0;
6964 _ACEOF
6965 if ac_fn_c_try_compile "$LINENO"; then :
6966 eval "$as_acx_Woption=yes"
6967 else
6968 eval "$as_acx_Woption=no"
6970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6973 eval ac_res=\$$as_acx_Woption
6974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6975 $as_echo "$ac_res" >&6; }
6976 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6977 c_strict_warn="$c_strict_warn${c_strict_warn:+ }$real_option"
6979 done
6980 CFLAGS="$save_CFLAGS"
6981 ac_ext=cpp
6982 ac_cpp='$CXXCPP $CPPFLAGS'
6983 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6984 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6985 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6988 ac_ext=cpp
6989 ac_cpp='$CXXCPP $CPPFLAGS'
6990 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6991 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6992 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6994 # Do the check with the no- prefix removed from the warning options
6995 # since gcc silently accepts any -Wno-* option on purpose
6996 if test "$GXX" = yes; then :
6997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
6998 $as_echo_n "checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
6999 if ${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+:} false; then :
7000 $as_echo_n "(cached) " >&6
7001 else
7002 save_CXXFLAGS="$CXXFLAGS"
7003 CXXFLAGS="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
7004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7005 /* end confdefs.h. */
7008 main ()
7012 return 0;
7014 _ACEOF
7015 if ac_fn_cxx_try_compile "$LINENO"; then :
7016 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=yes
7017 else
7018 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=no
7020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7021 CXXFLAGS="$save_CXXFLAGS"
7023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
7024 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
7025 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
7026 strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
7030 ac_ext=cpp
7031 ac_cpp='$CXXCPP $CPPFLAGS'
7032 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7033 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7034 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7037 ac_ext=cpp
7038 ac_cpp='$CXXCPP $CPPFLAGS'
7039 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7040 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7041 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7043 # Check whether --enable-werror-always was given.
7044 if test "${enable_werror_always+set}" = set; then :
7045 enableval=$enable_werror_always;
7046 else
7047 enable_werror_always=no
7050 if test $enable_werror_always = yes; then :
7051 strict_warn="$strict_warn${strict_warn:+ }-Werror"
7054 ac_ext=cpp
7055 ac_cpp='$CXXCPP $CPPFLAGS'
7056 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7057 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7058 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7062 # The above macros do nothing if the compiler is not GCC. However, the
7063 # Makefile has more goo to add other flags, so these variables are used
7064 # to enable warnings only for GCC.
7065 warn_cflags=
7066 warn_cxxflags=
7067 if test "x$GCC" = "xyes"; then
7068 warn_cflags='$(GCC_WARN_CFLAGS)'
7069 warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
7074 # Disable exceptions and RTTI if building with g++
7075 ac_ext=c
7076 ac_cpp='$CPP $CPPFLAGS'
7077 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7078 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7079 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7081 noexception_flags=
7082 save_CFLAGS="$CFLAGS"
7083 for real_option in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
7084 # Do the check with the no- prefix removed since gcc silently
7085 # accepts any -Wno-* option on purpose
7086 case $real_option in
7087 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7088 *) option=$real_option ;;
7089 esac
7090 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
7093 $as_echo_n "checking whether $CC supports $option... " >&6; }
7094 if eval \${$as_acx_Woption+:} false; then :
7095 $as_echo_n "(cached) " >&6
7096 else
7097 CFLAGS="$option"
7098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7099 /* end confdefs.h. */
7102 main ()
7106 return 0;
7108 _ACEOF
7109 if ac_fn_c_try_compile "$LINENO"; then :
7110 eval "$as_acx_Woption=yes"
7111 else
7112 eval "$as_acx_Woption=no"
7114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7117 eval ac_res=\$$as_acx_Woption
7118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7119 $as_echo "$ac_res" >&6; }
7120 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7121 noexception_flags="$noexception_flags${noexception_flags:+ }$real_option"
7123 done
7124 CFLAGS="$save_CFLAGS"
7125 ac_ext=cpp
7126 ac_cpp='$CXXCPP $CPPFLAGS'
7127 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7128 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7129 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7133 # Enable expensive internal checks
7134 is_release=
7135 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
7136 is_release=yes
7139 # Check whether --enable-checking was given.
7140 if test "${enable_checking+set}" = set; then :
7141 enableval=$enable_checking; ac_checking_flags="${enableval}"
7142 else
7144 # Determine the default checks.
7145 if test x$is_release = x ; then
7146 ac_checking_flags=yes,extra
7147 else
7148 ac_checking_flags=release
7152 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
7153 for check in release $ac_checking_flags
7155 case $check in
7156 # these set all the flags to specific states
7157 yes) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
7158 ac_fold_checking= ; ac_gc_checking=1 ; ac_extra_checking= ;
7159 ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
7160 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7161 ac_tree_checking=1 ; ac_valgrind_checking= ;
7162 ac_types_checking=1 ;;
7163 no|none) ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
7164 ac_fold_checking= ; ac_gc_checking= ; ac_extra_checking= ;
7165 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
7166 ac_rtlflag_checking= ; ac_runtime_checking= ;
7167 ac_tree_checking= ; ac_valgrind_checking= ;
7168 ac_types_checking= ;;
7169 all) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
7170 ac_fold_checking=1 ; ac_gc_checking=1 ; ac_extra_checking=1 ;
7171 ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
7172 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7173 ac_tree_checking=1 ; ac_valgrind_checking= ;
7174 ac_types_checking=1 ;;
7175 release) ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
7176 ac_fold_checking= ; ac_gc_checking= ; ac_extra_checking= ;
7177 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
7178 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
7179 ac_tree_checking= ; ac_valgrind_checking= ;
7180 ac_types_checking= ;;
7181 # these enable particular checks
7182 assert) ac_assert_checking=1 ;;
7183 df) ac_df_checking=1 ;;
7184 extra) ac_extra_checking=1 ;;
7185 fold) ac_fold_checking=1 ;;
7186 gc) ac_gc_checking=1 ;;
7187 gcac) ac_gc_always_collect=1 ;;
7188 gimple) ac_gimple_checking=1 ;;
7189 misc) ac_checking=1 ;;
7190 rtl) ac_rtl_checking=1 ;;
7191 rtlflag) ac_rtlflag_checking=1 ;;
7192 runtime) ac_runtime_checking=1 ;;
7193 tree) ac_tree_checking=1 ;;
7194 types) ac_types_checking=1 ;;
7195 valgrind) ac_valgrind_checking=1 ;;
7196 *) as_fn_error $? "unknown check category $check" "$LINENO" 5 ;;
7197 esac
7198 done
7199 IFS="$ac_save_IFS"
7201 nocommon_flag=""
7202 if test x$ac_checking != x ; then
7204 $as_echo "#define CHECKING_P 1" >>confdefs.h
7206 nocommon_flag=-fno-common
7207 else
7208 $as_echo "#define CHECKING_P 0" >>confdefs.h
7212 if test x$ac_extra_checking != x ; then
7214 $as_echo "#define ENABLE_EXTRA_CHECKING 1" >>confdefs.h
7216 else
7217 $as_echo "#define ENABLE_EXTRA_CHECKING 0" >>confdefs.h
7220 if test x$ac_df_checking != x ; then
7222 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
7225 if test x$ac_assert_checking != x ; then
7227 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
7230 if test x$ac_gimple_checking != x ; then
7232 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
7236 if test x$ac_runtime_checking != x ; then
7238 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
7241 if test x$ac_tree_checking != x ; then
7243 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
7245 TREECHECKING=yes
7247 if test x$ac_types_checking != x ; then
7249 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
7253 if test x$ac_rtl_checking != x ; then
7255 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
7258 if test x$ac_rtlflag_checking != x ; then
7260 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
7263 if test x$ac_gc_checking != x ; then
7265 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
7268 if test x$ac_gc_always_collect != x ; then
7270 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
7273 if test x$ac_fold_checking != x ; then
7275 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
7278 valgrind_path_defines=
7279 valgrind_command=
7281 ac_fn_cxx_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
7282 if test "x$ac_cv_header_valgrind_h" = xyes; then :
7283 have_valgrind_h=yes
7284 else
7285 have_valgrind_h=no
7290 # It is certainly possible that there's valgrind but no valgrind.h.
7291 # GCC relies on making annotations so we must have both.
7292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
7293 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
7294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7295 /* end confdefs.h. */
7296 #include <valgrind/memcheck.h>
7297 #ifndef VALGRIND_DISCARD
7298 #error VALGRIND_DISCARD not defined
7299 #endif
7300 _ACEOF
7301 if ac_fn_cxx_try_cpp "$LINENO"; then :
7302 gcc_cv_header_valgrind_memcheck_h=yes
7303 else
7304 gcc_cv_header_valgrind_memcheck_h=no
7306 rm -f conftest.err conftest.i conftest.$ac_ext
7307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
7308 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
7309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
7310 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
7311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7312 /* end confdefs.h. */
7313 #include <memcheck.h>
7314 #ifndef VALGRIND_DISCARD
7315 #error VALGRIND_DISCARD not defined
7316 #endif
7317 _ACEOF
7318 if ac_fn_cxx_try_cpp "$LINENO"; then :
7319 gcc_cv_header_memcheck_h=yes
7320 else
7321 gcc_cv_header_memcheck_h=no
7323 rm -f conftest.err conftest.i conftest.$ac_ext
7324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
7325 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
7326 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
7328 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
7331 if test $gcc_cv_header_memcheck_h = yes; then
7333 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
7337 if test x$ac_valgrind_checking != x ; then
7339 # Prepare PATH_SEPARATOR.
7340 # The user is always right.
7341 if test "${PATH_SEPARATOR+set}" != set; then
7342 echo "#! /bin/sh" >conf$$.sh
7343 echo "exit 0" >>conf$$.sh
7344 chmod +x conf$$.sh
7345 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7346 PATH_SEPARATOR=';'
7347 else
7348 PATH_SEPARATOR=:
7350 rm -f conf$$.sh
7353 # Find out how to test for executable files. Don't use a zero-byte file,
7354 # as systems may use methods other than mode bits to determine executability.
7355 cat >conf$$.file <<_ASEOF
7356 #! /bin/sh
7357 exit 0
7358 _ASEOF
7359 chmod +x conf$$.file
7360 if test -x conf$$.file >/dev/null 2>&1; then
7361 ac_executable_p="test -x"
7362 else
7363 ac_executable_p="test -f"
7365 rm -f conf$$.file
7367 # Extract the first word of "valgrind", so it can be a program name with args.
7368 set dummy valgrind; ac_word=$2
7369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7370 $as_echo_n "checking for $ac_word... " >&6; }
7371 if ${ac_cv_path_valgrind_path+:} false; then :
7372 $as_echo_n "(cached) " >&6
7373 else
7374 case "$valgrind_path" in
7375 [\\/]* | ?:[\\/]*)
7376 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
7379 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7380 for ac_dir in $PATH; do
7381 IFS="$ac_save_IFS"
7382 test -z "$ac_dir" && ac_dir=.
7383 for ac_exec_ext in '' $ac_executable_extensions; do
7384 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7385 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
7386 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
7387 break 2
7390 done
7391 done
7392 IFS="$ac_save_IFS"
7394 esac
7396 valgrind_path="$ac_cv_path_valgrind_path"
7397 if test -n "$valgrind_path"; then
7398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
7399 $as_echo "$valgrind_path" >&6; }
7400 else
7401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7402 $as_echo "no" >&6; }
7405 if test "x$valgrind_path" = "x" \
7406 || (test $have_valgrind_h = no \
7407 && test $gcc_cv_header_memcheck_h = no \
7408 && test $gcc_cv_header_valgrind_memcheck_h = no); then
7409 as_fn_error $? "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7411 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
7412 valgrind_command="$valgrind_path -q"
7414 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
7420 # Enable code coverage collection
7421 # Check whether --enable-coverage was given.
7422 if test "${enable_coverage+set}" = set; then :
7423 enableval=$enable_coverage; case "${enableval}" in
7424 yes|noopt)
7425 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0 -fkeep-static-functions"
7427 opt)
7428 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2 -fkeep-static-functions"
7431 # a.k.a. --disable-coverage
7432 coverage_flags=""
7435 as_fn_error $? "unknown coverage setting $enableval" "$LINENO" 5
7437 esac
7438 else
7439 coverage_flags=""
7444 # Check whether --enable-gather-detailed-mem-stats was given.
7445 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
7446 enableval=$enable_gather_detailed_mem_stats;
7447 else
7448 enable_gather_detailed_mem_stats=no
7451 gather_stats=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
7453 cat >>confdefs.h <<_ACEOF
7454 #define GATHER_STATISTICS $gather_stats
7455 _ACEOF
7458 # Check whether --enable-valgrind-annotations was given.
7459 if test "${enable_valgrind_annotations+set}" = set; then :
7460 enableval=$enable_valgrind_annotations;
7461 else
7462 enable_valgrind_annotations=no
7465 if test x$enable_valgrind_annotations != xno \
7466 || test x$ac_valgrind_checking != x; then
7467 if (test $have_valgrind_h = no \
7468 && test $gcc_cv_header_memcheck_h = no \
7469 && test $gcc_cv_header_valgrind_memcheck_h = no); then
7470 as_fn_error $? "*** Can't find valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7473 $as_echo "#define ENABLE_VALGRIND_ANNOTATIONS 1" >>confdefs.h
7477 # -------------------------------
7478 # Miscenalleous configure options
7479 # -------------------------------
7481 # With stabs
7483 # Check whether --with-stabs was given.
7484 if test "${with_stabs+set}" = set; then :
7485 withval=$with_stabs; stabs="$with_stabs"
7486 else
7487 stabs=no
7491 # Determine whether or not multilibs are enabled.
7492 # Check whether --enable-multilib was given.
7493 if test "${enable_multilib+set}" = set; then :
7494 enableval=$enable_multilib;
7495 else
7496 enable_multilib=yes
7501 # Determine whether or not multiarch is enabled.
7502 # Check whether --enable-multiarch was given.
7503 if test "${enable_multiarch+set}" = set; then :
7504 enableval=$enable_multiarch; case "${enableval}" in
7505 yes|no|auto) enable_multiarch=$enableval;;
7506 *) as_fn_error $? "bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
7507 esac
7508 else
7509 enable_multiarch=auto
7512 if test x${enable_multiarch} = xauto; then
7513 if test x${with_native_system_header_dir} != x; then
7514 ma_msg_suffix=", disabled auto check (configured with --native-system-header-dir)"
7515 enable_multiarch=no
7517 if test x$host != x$target && test "x$with_sysroot" = x; then
7518 ma_msg_suffix=", disabled auto check (cross build configured without --with-sysroot)"
7519 enable_multiarch=no
7522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
7523 $as_echo_n "checking for multiarch configuration... " >&6; }
7525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
7526 $as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
7528 # needed for setting the multiarch name for soft-float/hard-float ABIs
7532 # default stack clash protection guard size as power of twos in bytes.
7533 # Please keep these in sync with params.def.
7534 stk_clash_min=12
7535 stk_clash_max=30
7537 # Keep the default value when the option is not used to 0, this allows us to
7538 # distinguish between the cases where the user specifially set a value via
7539 # configure and when the normal default value is used.
7541 # Check whether --with-stack-clash-protection-guard-size was given.
7542 if test "${with_stack_clash_protection_guard_size+set}" = set; then :
7543 withval=$with_stack_clash_protection_guard_size; DEFAULT_STK_CLASH_GUARD_SIZE="$with_stack_clash_protection_guard_size"
7544 else
7545 DEFAULT_STK_CLASH_GUARD_SIZE=0
7548 if test $DEFAULT_STK_CLASH_GUARD_SIZE -ne 0 \
7549 && (test $DEFAULT_STK_CLASH_GUARD_SIZE -lt $stk_clash_min \
7550 || test $DEFAULT_STK_CLASH_GUARD_SIZE -gt $stk_clash_max); then
7551 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
7555 cat >>confdefs.h <<_ACEOF
7556 #define DEFAULT_STK_CLASH_GUARD_SIZE $DEFAULT_STK_CLASH_GUARD_SIZE
7557 _ACEOF
7560 # Enable __cxa_atexit for C++.
7561 # Check whether --enable-__cxa_atexit was given.
7562 if test "${enable___cxa_atexit+set}" = set; then :
7563 enableval=$enable___cxa_atexit;
7567 # Enable C extension for decimal float if target supports it.
7569 # Check whether --enable-decimal-float was given.
7570 if test "${enable_decimal_float+set}" = set; then :
7571 enableval=$enable_decimal_float;
7572 case $enable_decimal_float in
7573 yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
7574 *) as_fn_error $? "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7575 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7576 esac
7578 else
7580 case $target in
7581 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
7582 i?86*-*-elfiamcu | i?86*-*-gnu* | x86_64*-*-gnu* | \
7583 i?86*-*-mingw* | x86_64*-*-mingw* | \
7584 i?86*-*-cygwin* | x86_64*-*-cygwin*)
7585 enable_decimal_float=yes
7588 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7589 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7590 enable_decimal_float=no
7592 esac
7597 # x86's use BID format instead of DPD
7598 case x$enable_decimal_float in
7599 xyes)
7600 case $target in
7601 i?86*-*-* | x86_64*-*-*)
7602 enable_decimal_float=bid
7605 enable_decimal_float=dpd
7607 esac
7608 default_decimal_float=$enable_decimal_float
7610 xno)
7611 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7612 # dependency on libdecnumber.
7613 default_decimal_float=dpd
7615 esac
7620 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7622 cat >>confdefs.h <<_ACEOF
7623 #define ENABLE_DECIMAL_FLOAT $dfp
7624 _ACEOF
7627 # Use default_decimal_float for dependency.
7628 enable_decimal_float=$default_decimal_float
7630 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7632 cat >>confdefs.h <<_ACEOF
7633 #define ENABLE_DECIMAL_BID_FORMAT $bid
7634 _ACEOF
7637 # Enable C extension for fixed-point arithmetic.
7638 # Check whether --enable-fixed-point was given.
7639 if test "${enable_fixed_point+set}" = set; then :
7640 enableval=$enable_fixed_point;
7641 else
7643 case $target in
7644 arm*)
7645 enable_fixed_point=yes
7648 mips*-*-*)
7649 enable_fixed_point=yes
7652 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7653 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7654 enable_fixed_point=no
7656 esac
7662 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7664 cat >>confdefs.h <<_ACEOF
7665 #define ENABLE_FIXED_POINT $fixedpoint
7666 _ACEOF
7669 # Enable threads
7670 # Pass with no value to take the default
7671 # Pass with a value to specify a thread package
7672 # Check whether --enable-threads was given.
7673 if test "${enable_threads+set}" = set; then :
7674 enableval=$enable_threads;
7675 else
7676 enable_threads=''
7680 # Check whether --enable-tls was given.
7681 if test "${enable_tls+set}" = set; then :
7682 enableval=$enable_tls;
7683 case $enable_tls in
7684 yes | no) ;;
7685 *) as_fn_error $? "'$enable_tls' is an invalid value for --enable-tls.
7686 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7687 esac
7689 else
7690 enable_tls=''
7694 # Check whether --enable-vtable-verify was given.
7695 if test "${enable_vtable_verify+set}" = set; then :
7696 enableval=$enable_vtable_verify;
7697 else
7698 enable_vtable_verify=no
7701 vtable_verify=`if test x$enable_vtable_verify = xyes; then echo 1; else echo 0; fi`
7703 cat >>confdefs.h <<_ACEOF
7704 #define ENABLE_VTABLE_VERIFY $vtable_verify
7705 _ACEOF
7708 # Check whether --enable-analyzer was given.
7709 if test "${enable_analyzer+set}" = set; then :
7710 enableval=$enable_analyzer; if test x$enable_analyzer = xno; then
7711 analyzer=0
7712 else
7713 analyzer=1
7715 else
7716 analyzer=1
7720 cat >>confdefs.h <<_ACEOF
7721 #define ENABLE_ANALYZER $analyzer
7722 _ACEOF
7725 # Check whether --enable-objc-gc was given.
7726 if test "${enable_objc_gc+set}" = set; then :
7727 enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
7728 objc_boehm_gc=''
7729 else
7730 objc_boehm_gc=1
7732 else
7733 objc_boehm_gc=''
7738 # Check whether --with-dwarf2 was given.
7739 if test "${with_dwarf2+set}" = set; then :
7740 withval=$with_dwarf2; dwarf2="$with_dwarf2"
7741 else
7742 dwarf2=no
7746 # Check whether --enable-shared was given.
7747 if test "${enable_shared+set}" = set; then :
7748 enableval=$enable_shared;
7749 case $enable_shared in
7750 yes | no) ;;
7752 enable_shared=no
7753 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7754 for pkg in $enableval; do
7755 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7756 enable_shared=yes
7758 done
7759 IFS="$ac_save_ifs"
7761 esac
7763 else
7764 enable_shared=yes
7769 # Check whether --enable-gcov was given.
7770 if test "${enable_gcov+set}" = set; then :
7771 enableval=$enable_gcov;
7772 else
7773 enable_gcov=yes
7779 # Check whether --with-specs was given.
7780 if test "${with_specs+set}" = set; then :
7781 withval=$with_specs; CONFIGURE_SPECS=$withval
7782 else
7783 CONFIGURE_SPECS=
7791 # Check whether --with-pkgversion was given.
7792 if test "${with_pkgversion+set}" = set; then :
7793 withval=$with_pkgversion; case "$withval" in
7794 yes) as_fn_error $? "package version not specified" "$LINENO" 5 ;;
7795 no) PKGVERSION= ;;
7796 *) PKGVERSION="($withval) " ;;
7797 esac
7798 else
7799 PKGVERSION="(GCC) "
7807 # Check whether --with-bugurl was given.
7808 if test "${with_bugurl+set}" = set; then :
7809 withval=$with_bugurl; case "$withval" in
7810 yes) as_fn_error $? "bug URL not specified" "$LINENO" 5 ;;
7811 no) BUGURL=
7813 *) BUGURL="$withval"
7815 esac
7816 else
7817 BUGURL="https://gcc.gnu.org/bugs/"
7821 case ${BUGURL} in
7823 REPORT_BUGS_TO=
7824 REPORT_BUGS_TEXI=
7827 REPORT_BUGS_TO="<$BUGURL>"
7828 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
7830 esac;
7835 # Allow overriding the default URL for documentation
7837 # Check whether --with-documentation-root-url was given.
7838 if test "${with_documentation_root_url+set}" = set; then :
7839 withval=$with_documentation_root_url; case "$withval" in
7840 yes) as_fn_error $? "documentation root URL not specified" "$LINENO" 5 ;;
7841 no) as_fn_error $? "documentation root URL not specified" "$LINENO" 5 ;;
7842 *) DOCUMENTATION_ROOT_URL="$withval"
7844 esac
7845 else
7846 DOCUMENTATION_ROOT_URL="https://gcc.gnu.org/onlinedocs/gcc/"
7852 # Sanity check enable_languages in case someone does not run the toplevel
7853 # configure # script.
7854 # Check whether --enable-languages was given.
7855 if test "${enable_languages+set}" = set; then :
7856 enableval=$enable_languages; case ,${enable_languages}, in
7857 ,,|,yes,)
7858 # go safe -- we cannot be much sure without the toplevel
7859 # configure's
7860 # analysis of which target libs are present and usable
7861 enable_languages=c
7863 *,all,*)
7864 as_fn_error $? "only the toplevel supports --enable-languages=all" "$LINENO" 5
7866 *,c,*)
7869 enable_languages=c,${enable_languages}
7871 esac
7872 else
7873 enable_languages=c
7877 # If top-level libada has been disabled, then wire in install-gnatlib
7878 # invocation with `make install', so that one can build and install
7879 # the library manually with `make -C gcc all gnatlib gnattools install'.
7880 if test x"$enable_libada" = xno; then
7881 gnat_install_lib=gnat-install-lib
7882 else
7883 gnat_install_lib=
7887 if test x"$enable_as_accelerator_for" != x; then
7889 $as_echo "#define ACCEL_COMPILER 1" >>confdefs.h
7891 enable_as_accelerator=yes
7892 case "${target}" in
7893 *-intelmicemul-*)
7894 # In this case we expect offload compiler to be built as native, so we
7895 # need to rename the driver to avoid clashes with host's drivers.
7896 program_transform_name="s&^&${target}-&" ;;
7897 esac
7898 sedscript="s#${target_noncanonical}#${enable_as_accelerator_for}-accel-${target_noncanonical}#"
7899 program_transform_name=`echo $program_transform_name | sed $sedscript`
7900 accel_dir_suffix=/accel/${target_noncanonical}
7901 real_target_noncanonical=${enable_as_accelerator_for}
7907 for tgt in `echo $enable_offload_targets | sed 's/,/ /g'`; do
7908 tgt=`echo $tgt | sed 's/=.*//'`
7910 if echo "$tgt" | grep "^hsa" > /dev/null ; then
7911 enable_hsa=1
7912 else
7913 enable_offloading=1
7914 case "$tgt" in
7915 *-intelmicemul-*)
7916 omp_device_property=omp-device-properties-i386
7917 omp_device_property_tmake_file="${omp_device_property_tmake_file} \$(srcdir)/config/i386/t-omp-device"
7919 gcn*-*)
7920 omp_device_property=omp-device-properties-gcn
7921 omp_device_property_tmake_file="${omp_device_property_tmake_file} \$(srcdir)/config/gcn/t-omp-device"
7923 nvptx*-*)
7924 omp_device_property=omp-device-properties-nvptx
7925 omp_device_property_tmake_file="${omp_device_property_tmake_file} \$(srcdir)/config/nvptx/t-omp-device"
7927 esac
7928 omp_device_properties="${omp_device_properties} ${tgt}=${omp_device_property}"
7929 omp_device_property_deps="${omp_device_property_deps} ${omp_device_property}"
7932 if test x"$offload_targets" = x; then
7933 offload_targets=$tgt
7934 else
7935 offload_targets="$offload_targets,$tgt"
7937 done
7942 cat >>confdefs.h <<_ACEOF
7943 #define OFFLOAD_TARGETS "$offload_targets"
7944 _ACEOF
7946 if test x"$enable_offloading" != x; then
7948 $as_echo "#define ENABLE_OFFLOADING 1" >>confdefs.h
7950 else
7952 $as_echo "#define ENABLE_OFFLOADING 0" >>confdefs.h
7956 if test x"$enable_hsa" = x1 ; then
7958 $as_echo "#define ENABLE_HSA 1" >>confdefs.h
7963 # Check whether --with-multilib-list was given.
7964 if test "${with_multilib_list+set}" = set; then :
7965 withval=$with_multilib_list; :
7966 else
7967 with_multilib_list=default
7971 # -------------------------
7972 # Checks for other programs
7973 # -------------------------
7975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7976 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7977 set x ${MAKE-make}
7978 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7979 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
7980 $as_echo_n "(cached) " >&6
7981 else
7982 cat >conftest.make <<\_ACEOF
7983 SHELL = /bin/sh
7984 all:
7985 @echo '@@@%%%=$(MAKE)=@@@%%%'
7986 _ACEOF
7987 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
7988 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7989 *@@@%%%=?*=@@@%%%*)
7990 eval ac_cv_prog_make_${ac_make}_set=yes;;
7992 eval ac_cv_prog_make_${ac_make}_set=no;;
7993 esac
7994 rm -f conftest.make
7996 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7998 $as_echo "yes" >&6; }
7999 SET_MAKE=
8000 else
8001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8002 $as_echo "no" >&6; }
8003 SET_MAKE="MAKE=${MAKE-make}"
8007 # Find some useful tools
8008 for ac_prog in gawk mawk nawk awk
8010 # Extract the first word of "$ac_prog", so it can be a program name with args.
8011 set dummy $ac_prog; ac_word=$2
8012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8013 $as_echo_n "checking for $ac_word... " >&6; }
8014 if ${ac_cv_prog_AWK+:} false; then :
8015 $as_echo_n "(cached) " >&6
8016 else
8017 if test -n "$AWK"; then
8018 ac_cv_prog_AWK="$AWK" # Let the user override the test.
8019 else
8020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8021 for as_dir in $PATH
8023 IFS=$as_save_IFS
8024 test -z "$as_dir" && as_dir=.
8025 for ac_exec_ext in '' $ac_executable_extensions; do
8026 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8027 ac_cv_prog_AWK="$ac_prog"
8028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8029 break 2
8031 done
8032 done
8033 IFS=$as_save_IFS
8037 AWK=$ac_cv_prog_AWK
8038 if test -n "$AWK"; then
8039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8040 $as_echo "$AWK" >&6; }
8041 else
8042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8043 $as_echo "no" >&6; }
8047 test -n "$AWK" && break
8048 done
8050 # We need awk to create options.c and options.h.
8051 # Bail out if it's missing.
8052 case ${AWK} in
8053 "") as_fn_error $? "can't build without awk, bailing out" "$LINENO" 5 ;;
8054 esac
8056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8057 $as_echo_n "checking whether ln -s works... " >&6; }
8058 if ${gcc_cv_prog_LN_S+:} false; then :
8059 $as_echo_n "(cached) " >&6
8060 else
8061 rm -f conftestdata_t
8062 echo >conftestdata_f
8063 if ln -s conftestdata_f conftestdata_t 2>/dev/null
8064 then
8065 gcc_cv_prog_LN_S="ln -s"
8066 else
8067 if ln conftestdata_f conftestdata_t 2>/dev/null
8068 then
8069 gcc_cv_prog_LN_S=ln
8070 else
8071 if cp -p conftestdata_f conftestdata_t 2>/dev/null
8072 then
8073 gcc_cv_prog_LN_S="cp -p"
8074 else
8075 gcc_cv_prog_LN_S=cp
8079 rm -f conftestdata_f conftestdata_t
8082 LN_S="$gcc_cv_prog_LN_S"
8083 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
8084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8085 $as_echo "yes" >&6; }
8086 else
8087 if test "$gcc_cv_prog_LN_S" = "ln"; then
8088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
8089 $as_echo "no, using ln" >&6; }
8090 else
8091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
8092 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
8096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
8097 $as_echo_n "checking whether ln works... " >&6; }
8098 if ${acx_cv_prog_LN+:} false; then :
8099 $as_echo_n "(cached) " >&6
8100 else
8101 rm -f conftestdata_t
8102 echo >conftestdata_f
8103 if ln conftestdata_f conftestdata_t 2>/dev/null
8104 then
8105 acx_cv_prog_LN=ln
8106 else
8107 acx_cv_prog_LN=no
8109 rm -f conftestdata_f conftestdata_t
8112 if test $acx_cv_prog_LN = no; then
8113 LN="$LN_S"
8114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
8115 $as_echo "no, using $LN" >&6; }
8116 else
8117 LN="$acx_cv_prog_LN"
8118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8119 $as_echo "yes" >&6; }
8122 if test -n "$ac_tool_prefix"; then
8123 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8124 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8126 $as_echo_n "checking for $ac_word... " >&6; }
8127 if ${ac_cv_prog_RANLIB+:} false; then :
8128 $as_echo_n "(cached) " >&6
8129 else
8130 if test -n "$RANLIB"; then
8131 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8132 else
8133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8134 for as_dir in $PATH
8136 IFS=$as_save_IFS
8137 test -z "$as_dir" && as_dir=.
8138 for ac_exec_ext in '' $ac_executable_extensions; do
8139 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8140 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8141 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8142 break 2
8144 done
8145 done
8146 IFS=$as_save_IFS
8150 RANLIB=$ac_cv_prog_RANLIB
8151 if test -n "$RANLIB"; then
8152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8153 $as_echo "$RANLIB" >&6; }
8154 else
8155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8156 $as_echo "no" >&6; }
8161 if test -z "$ac_cv_prog_RANLIB"; then
8162 ac_ct_RANLIB=$RANLIB
8163 # Extract the first word of "ranlib", so it can be a program name with args.
8164 set dummy ranlib; ac_word=$2
8165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8166 $as_echo_n "checking for $ac_word... " >&6; }
8167 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8168 $as_echo_n "(cached) " >&6
8169 else
8170 if test -n "$ac_ct_RANLIB"; then
8171 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8172 else
8173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8174 for as_dir in $PATH
8176 IFS=$as_save_IFS
8177 test -z "$as_dir" && as_dir=.
8178 for ac_exec_ext in '' $ac_executable_extensions; do
8179 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8180 ac_cv_prog_ac_ct_RANLIB="ranlib"
8181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8182 break 2
8184 done
8185 done
8186 IFS=$as_save_IFS
8190 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8191 if test -n "$ac_ct_RANLIB"; then
8192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8193 $as_echo "$ac_ct_RANLIB" >&6; }
8194 else
8195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8196 $as_echo "no" >&6; }
8199 if test "x$ac_ct_RANLIB" = x; then
8200 RANLIB=":"
8201 else
8202 case $cross_compiling:$ac_tool_warned in
8203 yes:)
8204 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8205 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8206 ac_tool_warned=yes ;;
8207 esac
8208 RANLIB=$ac_ct_RANLIB
8210 else
8211 RANLIB="$ac_cv_prog_RANLIB"
8214 ranlib_flags=""
8217 # Find a good install program. We prefer a C program (faster),
8218 # so one script is as good as another. But avoid the broken or
8219 # incompatible versions:
8220 # SysV /etc/install, /usr/sbin/install
8221 # SunOS /usr/etc/install
8222 # IRIX /sbin/install
8223 # AIX /bin/install
8224 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8225 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8226 # ./install, which can be erroneously created by make from ./install.sh.
8227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
8228 $as_echo_n "checking for a BSD compatible install... " >&6; }
8229 if test -z "$INSTALL"; then
8230 if ${ac_cv_path_install+:} false; then :
8231 $as_echo_n "(cached) " >&6
8232 else
8233 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
8234 for ac_dir in $PATH; do
8235 # Account for people who put trailing slashes in PATH elements.
8236 case "$ac_dir/" in
8237 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
8239 # OSF1 and SCO ODT 3.0 have their own names for install.
8240 for ac_prog in ginstall scoinst install; do
8241 if test -f $ac_dir/$ac_prog; then
8242 if test $ac_prog = install &&
8243 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
8244 # AIX install. It has an incompatible calling convention.
8245 # OSF/1 installbsd also uses dspmsg, but is usable.
8247 else
8248 ac_cv_path_install="$ac_dir/$ac_prog -c"
8249 break 2
8252 done
8254 esac
8255 done
8256 IFS="$ac_save_IFS"
8259 if test "${ac_cv_path_install+set}" = set; then
8260 INSTALL="$ac_cv_path_install"
8261 else
8262 # As a last resort, use the slow shell script. We don't cache a
8263 # path for INSTALL within a source directory, because that will
8264 # break other packages using the cache if that directory is
8265 # removed, or if the path is relative.
8266 INSTALL="$ac_install_sh"
8269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
8270 $as_echo "$INSTALL" >&6; }
8272 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8273 # It thinks the first close brace ends the variable substitution.
8274 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8276 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8279 # See if cmp has --ignore-initial.
8280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
8281 $as_echo_n "checking for cmp's capabilities... " >&6; }
8282 if ${gcc_cv_prog_cmp_skip+:} false; then :
8283 $as_echo_n "(cached) " >&6
8284 else
8285 echo abfoo >t1
8286 echo cdfoo >t2
8287 gcc_cv_prog_cmp_skip=slowcompare
8288 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
8289 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
8291 else
8292 gcc_cv_prog_cmp_skip=gnucompare
8295 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
8296 if cmp t1 t2 2 2 > /dev/null 2>&1; then
8297 if cmp t1 t2 1 1 > /dev/null 2>&1; then
8299 else
8300 gcc_cv_prog_cmp_skip=fastcompare
8304 rm t1 t2
8307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
8308 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
8309 make_compare_target=$gcc_cv_prog_cmp_skip
8313 # See if we have the mktemp command.
8314 # Extract the first word of "mktemp", so it can be a program name with args.
8315 set dummy mktemp; ac_word=$2
8316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8317 $as_echo_n "checking for $ac_word... " >&6; }
8318 if ${ac_cv_prog_have_mktemp_command+:} false; then :
8319 $as_echo_n "(cached) " >&6
8320 else
8321 if test -n "$have_mktemp_command"; then
8322 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
8323 else
8324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8325 for as_dir in $PATH
8327 IFS=$as_save_IFS
8328 test -z "$as_dir" && as_dir=.
8329 for ac_exec_ext in '' $ac_executable_extensions; do
8330 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8331 ac_cv_prog_have_mktemp_command="yes"
8332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8333 break 2
8335 done
8336 done
8337 IFS=$as_save_IFS
8339 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
8342 have_mktemp_command=$ac_cv_prog_have_mktemp_command
8343 if test -n "$have_mktemp_command"; then
8344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
8345 $as_echo "$have_mktemp_command" >&6; }
8346 else
8347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8348 $as_echo "no" >&6; }
8353 # See if makeinfo has been installed and is modern enough
8354 # that we can use it.
8356 # Extract the first word of "makeinfo", so it can be a program name with args.
8357 set dummy makeinfo; ac_word=$2
8358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8359 $as_echo_n "checking for $ac_word... " >&6; }
8360 if ${ac_cv_prog_MAKEINFO+:} false; then :
8361 $as_echo_n "(cached) " >&6
8362 else
8363 if test -n "$MAKEINFO"; then
8364 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
8365 else
8366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8367 for as_dir in $PATH
8369 IFS=$as_save_IFS
8370 test -z "$as_dir" && as_dir=.
8371 for ac_exec_ext in '' $ac_executable_extensions; do
8372 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8373 ac_cv_prog_MAKEINFO="makeinfo"
8374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8375 break 2
8377 done
8378 done
8379 IFS=$as_save_IFS
8383 MAKEINFO=$ac_cv_prog_MAKEINFO
8384 if test -n "$MAKEINFO"; then
8385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8386 $as_echo "$MAKEINFO" >&6; }
8387 else
8388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8389 $as_echo "no" >&6; }
8393 if test -n "$MAKEINFO"; then
8394 # Found it, now check the version.
8395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
8396 $as_echo_n "checking for modern makeinfo... " >&6; }
8397 if ${gcc_cv_prog_makeinfo_modern+:} false; then :
8398 $as_echo_n "(cached) " >&6
8399 else
8400 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
8401 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
8403 case $ac_prog_version in
8404 '') gcc_cv_prog_makeinfo_modern=no;;
8405 4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
8406 *) gcc_cv_prog_makeinfo_modern=no;;
8407 esac
8410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
8411 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
8412 else
8413 gcc_cv_prog_makeinfo_modern=no
8415 if test $gcc_cv_prog_makeinfo_modern = no; then
8416 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
8419 if test $gcc_cv_prog_makeinfo_modern = no; then
8420 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8421 *** Makeinfo is missing or too old.
8422 *** Info documentation will not be built." >&5
8423 $as_echo "$as_me: WARNING:
8424 *** Makeinfo is missing or too old.
8425 *** Info documentation will not be built." >&2;}
8426 BUILD_INFO=
8427 else
8428 BUILD_INFO=info
8432 # Is pod2man recent enough to regenerate manpages?
8433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
8434 $as_echo_n "checking for recent Pod::Man... " >&6; }
8435 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
8436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8437 $as_echo "yes" >&6; }
8438 GENERATED_MANPAGES=generated-manpages
8439 else
8440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8441 $as_echo "no" >&6; }
8442 GENERATED_MANPAGES=
8446 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
8448 # How about lex?
8449 for ac_prog in flex
8451 # Extract the first word of "$ac_prog", so it can be a program name with args.
8452 set dummy $ac_prog; ac_word=$2
8453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8454 $as_echo_n "checking for $ac_word... " >&6; }
8455 if ${ac_cv_prog_FLEX+:} false; then :
8456 $as_echo_n "(cached) " >&6
8457 else
8458 if test -n "$FLEX"; then
8459 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
8460 else
8461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8462 for as_dir in $PATH
8464 IFS=$as_save_IFS
8465 test -z "$as_dir" && as_dir=.
8466 for ac_exec_ext in '' $ac_executable_extensions; do
8467 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8468 ac_cv_prog_FLEX="$ac_prog"
8469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8470 break 2
8472 done
8473 done
8474 IFS=$as_save_IFS
8478 FLEX=$ac_cv_prog_FLEX
8479 if test -n "$FLEX"; then
8480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
8481 $as_echo "$FLEX" >&6; }
8482 else
8483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8484 $as_echo "no" >&6; }
8488 test -n "$FLEX" && break
8489 done
8490 test -n "$FLEX" || FLEX="$MISSING flex"
8493 # Bison?
8494 for ac_prog in bison
8496 # Extract the first word of "$ac_prog", so it can be a program name with args.
8497 set dummy $ac_prog; ac_word=$2
8498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8499 $as_echo_n "checking for $ac_word... " >&6; }
8500 if ${ac_cv_prog_BISON+:} false; then :
8501 $as_echo_n "(cached) " >&6
8502 else
8503 if test -n "$BISON"; then
8504 ac_cv_prog_BISON="$BISON" # Let the user override the test.
8505 else
8506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8507 for as_dir in $PATH
8509 IFS=$as_save_IFS
8510 test -z "$as_dir" && as_dir=.
8511 for ac_exec_ext in '' $ac_executable_extensions; do
8512 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8513 ac_cv_prog_BISON="$ac_prog"
8514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8515 break 2
8517 done
8518 done
8519 IFS=$as_save_IFS
8523 BISON=$ac_cv_prog_BISON
8524 if test -n "$BISON"; then
8525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
8526 $as_echo "$BISON" >&6; }
8527 else
8528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8529 $as_echo "no" >&6; }
8533 test -n "$BISON" && break
8534 done
8535 test -n "$BISON" || BISON="$MISSING bison"
8538 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
8539 # check for build == host before using them.
8541 # NM
8542 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
8543 && test -d ../binutils ; then
8544 NM='${objdir}/../binutils/nm-new'
8545 else
8546 # Extract the first word of "nm", so it can be a program name with args.
8547 set dummy nm; ac_word=$2
8548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8549 $as_echo_n "checking for $ac_word... " >&6; }
8550 if ${ac_cv_prog_NM+:} false; then :
8551 $as_echo_n "(cached) " >&6
8552 else
8553 if test -n "$NM"; then
8554 ac_cv_prog_NM="$NM" # Let the user override the test.
8555 else
8556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8557 for as_dir in $PATH
8559 IFS=$as_save_IFS
8560 test -z "$as_dir" && as_dir=.
8561 for ac_exec_ext in '' $ac_executable_extensions; do
8562 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8563 ac_cv_prog_NM="nm"
8564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8565 break 2
8567 done
8568 done
8569 IFS=$as_save_IFS
8571 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
8574 NM=$ac_cv_prog_NM
8575 if test -n "$NM"; then
8576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8577 $as_echo "$NM" >&6; }
8578 else
8579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8580 $as_echo "no" >&6; }
8586 # AR
8587 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
8588 && test -d ../binutils ; then
8589 AR='${objdir}/../binutils/ar'
8590 else
8591 # Extract the first word of "ar", so it can be a program name with args.
8592 set dummy ar; ac_word=$2
8593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8594 $as_echo_n "checking for $ac_word... " >&6; }
8595 if ${ac_cv_prog_AR+:} false; then :
8596 $as_echo_n "(cached) " >&6
8597 else
8598 if test -n "$AR"; then
8599 ac_cv_prog_AR="$AR" # Let the user override the test.
8600 else
8601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8602 for as_dir in $PATH
8604 IFS=$as_save_IFS
8605 test -z "$as_dir" && as_dir=.
8606 for ac_exec_ext in '' $ac_executable_extensions; do
8607 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8608 ac_cv_prog_AR="ar"
8609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8610 break 2
8612 done
8613 done
8614 IFS=$as_save_IFS
8616 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8619 AR=$ac_cv_prog_AR
8620 if test -n "$AR"; then
8621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8622 $as_echo "$AR" >&6; }
8623 else
8624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8625 $as_echo "no" >&6; }
8631 # The jit documentation looks better if built with sphinx, but can be
8632 # built with texinfo if sphinx is not available.
8633 # Set "doc_build_sys" to "sphinx" or "texinfo" accordingly.
8634 # Extract the first word of "sphinx-build", so it can be a program name with args.
8635 set dummy sphinx-build; ac_word=$2
8636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8637 $as_echo_n "checking for $ac_word... " >&6; }
8638 if ${ac_cv_prog_doc_build_sys+:} false; then :
8639 $as_echo_n "(cached) " >&6
8640 else
8641 if test -n "$doc_build_sys"; then
8642 ac_cv_prog_doc_build_sys="$doc_build_sys" # Let the user override the test.
8643 else
8644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8645 for as_dir in $PATH
8647 IFS=$as_save_IFS
8648 test -z "$as_dir" && as_dir=.
8649 for ac_exec_ext in '' $ac_executable_extensions; do
8650 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8651 ac_cv_prog_doc_build_sys="sphinx"
8652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8653 break 2
8655 done
8656 done
8657 IFS=$as_save_IFS
8659 test -z "$ac_cv_prog_doc_build_sys" && ac_cv_prog_doc_build_sys="texinfo"
8662 doc_build_sys=$ac_cv_prog_doc_build_sys
8663 if test -n "$doc_build_sys"; then
8664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doc_build_sys" >&5
8665 $as_echo "$doc_build_sys" >&6; }
8666 else
8667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8668 $as_echo "no" >&6; }
8673 # --------------------
8674 # Checks for C headers
8675 # --------------------
8677 # Need to reject headers which give warnings, so that the -Werror bootstrap
8678 # works later. *sigh* This needs to come before all header checks.
8680 ac_c_preproc_warn_flag=yes
8682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8683 $as_echo_n "checking for ANSI C header files... " >&6; }
8684 if ${ac_cv_header_stdc+:} false; then :
8685 $as_echo_n "(cached) " >&6
8686 else
8687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8688 /* end confdefs.h. */
8689 #include <stdlib.h>
8690 #include <stdarg.h>
8691 #include <string.h>
8692 #include <float.h>
8695 main ()
8699 return 0;
8701 _ACEOF
8702 if ac_fn_cxx_try_compile "$LINENO"; then :
8703 ac_cv_header_stdc=yes
8704 else
8705 ac_cv_header_stdc=no
8707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8709 if test $ac_cv_header_stdc = yes; then
8710 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8712 /* end confdefs.h. */
8713 #include <string.h>
8715 _ACEOF
8716 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8717 $EGREP "memchr" >/dev/null 2>&1; then :
8719 else
8720 ac_cv_header_stdc=no
8722 rm -f conftest*
8726 if test $ac_cv_header_stdc = yes; then
8727 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8729 /* end confdefs.h. */
8730 #include <stdlib.h>
8732 _ACEOF
8733 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8734 $EGREP "free" >/dev/null 2>&1; then :
8736 else
8737 ac_cv_header_stdc=no
8739 rm -f conftest*
8743 if test $ac_cv_header_stdc = yes; then
8744 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8745 if test "$cross_compiling" = yes; then :
8747 else
8748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8749 /* end confdefs.h. */
8750 #include <ctype.h>
8751 #include <stdlib.h>
8752 #if ((' ' & 0x0FF) == 0x020)
8753 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8754 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8755 #else
8756 # define ISLOWER(c) \
8757 (('a' <= (c) && (c) <= 'i') \
8758 || ('j' <= (c) && (c) <= 'r') \
8759 || ('s' <= (c) && (c) <= 'z'))
8760 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8761 #endif
8763 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8765 main ()
8767 int i;
8768 for (i = 0; i < 256; i++)
8769 if (XOR (islower (i), ISLOWER (i))
8770 || toupper (i) != TOUPPER (i))
8771 return 2;
8772 return 0;
8774 _ACEOF
8775 if ac_fn_cxx_try_run "$LINENO"; then :
8777 else
8778 ac_cv_header_stdc=no
8780 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8781 conftest.$ac_objext conftest.beam conftest.$ac_ext
8786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8787 $as_echo "$ac_cv_header_stdc" >&6; }
8788 if test $ac_cv_header_stdc = yes; then
8790 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8795 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8796 if ${ac_cv_header_time+:} false; then :
8797 $as_echo_n "(cached) " >&6
8798 else
8799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8800 /* end confdefs.h. */
8801 #include <sys/types.h>
8802 #include <sys/time.h>
8803 #include <time.h>
8806 main ()
8808 if ((struct tm *) 0)
8809 return 0;
8811 return 0;
8813 _ACEOF
8814 if ac_fn_cxx_try_compile "$LINENO"; then :
8815 ac_cv_header_time=yes
8816 else
8817 ac_cv_header_time=no
8819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8822 $as_echo "$ac_cv_header_time" >&6; }
8823 if test $ac_cv_header_time = yes; then
8825 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8830 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8831 if ${gcc_cv_header_string+:} false; then :
8832 $as_echo_n "(cached) " >&6
8833 else
8834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8835 /* end confdefs.h. */
8836 #include <string.h>
8837 #include <strings.h>
8839 main ()
8843 return 0;
8845 _ACEOF
8846 if ac_fn_cxx_try_compile "$LINENO"; then :
8847 gcc_cv_header_string=yes
8848 else
8849 gcc_cv_header_string=no
8851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8854 $as_echo "$gcc_cv_header_string" >&6; }
8855 if test $gcc_cv_header_string = yes; then
8857 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8862 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8863 if ${ac_cv_header_sys_wait_h+:} false; then :
8864 $as_echo_n "(cached) " >&6
8865 else
8866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8867 /* end confdefs.h. */
8868 #include <sys/types.h>
8869 #include <sys/wait.h>
8870 #ifndef WEXITSTATUS
8871 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8872 #endif
8873 #ifndef WIFEXITED
8874 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8875 #endif
8878 main ()
8880 int s;
8881 wait (&s);
8882 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8884 return 0;
8886 _ACEOF
8887 if ac_fn_cxx_try_compile "$LINENO"; then :
8888 ac_cv_header_sys_wait_h=yes
8889 else
8890 ac_cv_header_sys_wait_h=no
8892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8895 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8896 if test $ac_cv_header_sys_wait_h = yes; then
8898 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
8903 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
8904 if ${ac_cv_sys_tiocgwinsz_in_termios_h+:} false; then :
8905 $as_echo_n "(cached) " >&6
8906 else
8907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8908 /* end confdefs.h. */
8909 #include <sys/types.h>
8910 #include <termios.h>
8911 #ifdef TIOCGWINSZ
8913 #endif
8915 _ACEOF
8916 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8917 $EGREP "yes" >/dev/null 2>&1; then :
8918 ac_cv_sys_tiocgwinsz_in_termios_h=yes
8919 else
8920 ac_cv_sys_tiocgwinsz_in_termios_h=no
8922 rm -f conftest*
8925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
8926 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
8928 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
8929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
8930 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
8931 if ${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+:} false; then :
8932 $as_echo_n "(cached) " >&6
8933 else
8934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8935 /* end confdefs.h. */
8936 #include <sys/types.h>
8937 #include <sys/ioctl.h>
8938 #ifdef TIOCGWINSZ
8940 #endif
8942 _ACEOF
8943 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8944 $EGREP "yes" >/dev/null 2>&1; then :
8945 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
8946 else
8947 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
8949 rm -f conftest*
8952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
8953 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
8955 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
8957 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
8962 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8963 fcntl.h ftw.h unistd.h sys/file.h sys/time.h sys/mman.h \
8964 sys/resource.h sys/param.h sys/times.h sys/stat.h \
8965 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8966 do :
8967 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8968 ac_fn_cxx_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
8969 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8970 cat >>confdefs.h <<_ACEOF
8971 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8972 _ACEOF
8975 done
8978 # Check for thread headers.
8979 ac_fn_cxx_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
8980 if test "x$ac_cv_header_thread_h" = xyes; then :
8981 have_thread_h=yes
8982 else
8983 have_thread_h=
8986 ac_fn_cxx_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8987 if test "x$ac_cv_header_pthread_h" = xyes; then :
8988 have_pthread_h=yes
8989 else
8990 have_pthread_h=
8994 # These tests can't be done till we know if we have limits.h.
8995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8996 $as_echo_n "checking for CHAR_BIT... " >&6; }
8997 if ${gcc_cv_decl_char_bit+:} false; then :
8998 $as_echo_n "(cached) " >&6
8999 else
9000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9001 /* end confdefs.h. */
9002 #ifdef HAVE_LIMITS_H
9003 #include <limits.h>
9004 #endif
9005 #ifdef CHAR_BIT
9006 found
9007 #endif
9008 _ACEOF
9009 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9010 $EGREP "found" >/dev/null 2>&1; then :
9011 gcc_cv_decl_char_bit=yes
9012 else
9013 gcc_cv_decl_char_bit=no
9015 rm -f conftest*
9019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
9020 $as_echo "$gcc_cv_decl_char_bit" >&6; }
9021 if test $gcc_cv_decl_char_bit = no; then
9022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
9023 $as_echo_n "checking number of bits in a byte... " >&6; }
9024 if ${gcc_cv_c_nbby+:} false; then :
9025 $as_echo_n "(cached) " >&6
9026 else
9028 gcc_cv_c_nbby=
9029 while test $i -lt 65; do
9030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9031 /* end confdefs.h. */
9034 main ()
9036 switch(0) {
9037 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
9038 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
9041 return 0;
9043 _ACEOF
9044 if ac_fn_cxx_try_compile "$LINENO"; then :
9045 gcc_cv_c_nbby=$i; break
9047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9048 i=`expr $i + 1`
9049 done
9050 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
9053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
9054 $as_echo "$gcc_cv_c_nbby" >&6; }
9055 if test $gcc_cv_c_nbby = failed; then
9056 as_fn_error $? "cannot determine number of bits in a byte" "$LINENO" 5
9057 else
9059 cat >>confdefs.h <<_ACEOF
9060 #define CHAR_BIT $gcc_cv_c_nbby
9061 _ACEOF
9065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
9066 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
9067 if ${ac_cv_c_bigendian+:} false; then :
9068 $as_echo_n "(cached) " >&6
9069 else
9070 ac_cv_c_bigendian=unknown
9071 # See if we're dealing with a universal compiler.
9072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9073 /* end confdefs.h. */
9074 #ifndef __APPLE_CC__
9075 not a universal capable compiler
9076 #endif
9077 typedef int dummy;
9079 _ACEOF
9080 if ac_fn_cxx_try_compile "$LINENO"; then :
9082 # Check for potential -arch flags. It is not universal unless
9083 # there are at least two -arch flags with different values.
9084 ac_arch=
9085 ac_prev=
9086 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
9087 if test -n "$ac_prev"; then
9088 case $ac_word in
9089 i?86 | x86_64 | ppc | ppc64)
9090 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
9091 ac_arch=$ac_word
9092 else
9093 ac_cv_c_bigendian=universal
9094 break
9097 esac
9098 ac_prev=
9099 elif test "x$ac_word" = "x-arch"; then
9100 ac_prev=arch
9102 done
9104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9105 if test $ac_cv_c_bigendian = unknown; then
9106 # See if sys/param.h defines the BYTE_ORDER macro.
9107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9108 /* end confdefs.h. */
9109 #include <sys/types.h>
9110 #include <sys/param.h>
9113 main ()
9115 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
9116 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
9117 && LITTLE_ENDIAN)
9118 bogus endian macros
9119 #endif
9122 return 0;
9124 _ACEOF
9125 if ac_fn_cxx_try_compile "$LINENO"; then :
9126 # It does; now see whether it defined to BIG_ENDIAN or not.
9127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9128 /* end confdefs.h. */
9129 #include <sys/types.h>
9130 #include <sys/param.h>
9133 main ()
9135 #if BYTE_ORDER != BIG_ENDIAN
9136 not big endian
9137 #endif
9140 return 0;
9142 _ACEOF
9143 if ac_fn_cxx_try_compile "$LINENO"; then :
9144 ac_cv_c_bigendian=yes
9145 else
9146 ac_cv_c_bigendian=no
9148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9152 if test $ac_cv_c_bigendian = unknown; then
9153 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
9154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9155 /* end confdefs.h. */
9156 #include <limits.h>
9159 main ()
9161 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
9162 bogus endian macros
9163 #endif
9166 return 0;
9168 _ACEOF
9169 if ac_fn_cxx_try_compile "$LINENO"; then :
9170 # It does; now see whether it defined to _BIG_ENDIAN or not.
9171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9172 /* end confdefs.h. */
9173 #include <limits.h>
9176 main ()
9178 #ifndef _BIG_ENDIAN
9179 not big endian
9180 #endif
9183 return 0;
9185 _ACEOF
9186 if ac_fn_cxx_try_compile "$LINENO"; then :
9187 ac_cv_c_bigendian=yes
9188 else
9189 ac_cv_c_bigendian=no
9191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9195 if test $ac_cv_c_bigendian = unknown; then
9196 # Compile a test program.
9197 if test "$cross_compiling" = yes; then :
9198 # Try to guess by grepping values from an object file.
9199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9200 /* end confdefs.h. */
9201 short int ascii_mm[] =
9202 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9203 short int ascii_ii[] =
9204 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9205 int use_ascii (int i) {
9206 return ascii_mm[i] + ascii_ii[i];
9208 short int ebcdic_ii[] =
9209 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9210 short int ebcdic_mm[] =
9211 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9212 int use_ebcdic (int i) {
9213 return ebcdic_mm[i] + ebcdic_ii[i];
9215 extern int foo;
9218 main ()
9220 return use_ascii (foo) == use_ebcdic (foo);
9222 return 0;
9224 _ACEOF
9225 if ac_fn_cxx_try_compile "$LINENO"; then :
9226 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
9227 ac_cv_c_bigendian=yes
9229 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
9230 if test "$ac_cv_c_bigendian" = unknown; then
9231 ac_cv_c_bigendian=no
9232 else
9233 # finding both strings is unlikely to happen, but who knows?
9234 ac_cv_c_bigendian=unknown
9238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9239 else
9240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9241 /* end confdefs.h. */
9242 $ac_includes_default
9244 main ()
9247 /* Are we little or big endian? From Harbison&Steele. */
9248 union
9250 long int l;
9251 char c[sizeof (long int)];
9252 } u;
9253 u.l = 1;
9254 return u.c[sizeof (long int) - 1] == 1;
9257 return 0;
9259 _ACEOF
9260 if ac_fn_cxx_try_run "$LINENO"; then :
9261 ac_cv_c_bigendian=no
9262 else
9263 ac_cv_c_bigendian=yes
9265 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9266 conftest.$ac_objext conftest.beam conftest.$ac_ext
9271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9272 $as_echo "$ac_cv_c_bigendian" >&6; }
9273 case $ac_cv_c_bigendian in #(
9274 yes)
9275 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9276 ;; #(
9278 ;; #(
9279 universal)
9281 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9283 ;; #(
9285 as_fn_error $? "unknown endianness
9286 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9287 esac
9290 # ----------------------
9291 # Checks for C++ headers
9292 # ----------------------
9294 ac_ext=cpp
9295 ac_cpp='$CXXCPP $CPPFLAGS'
9296 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9297 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9298 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
9300 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
9301 if test -z "$CXXCPP"; then
9302 if ${ac_cv_prog_CXXCPP+:} false; then :
9303 $as_echo_n "(cached) " >&6
9304 else
9305 # Double quotes because CXXCPP needs to be expanded
9306 for CXXCPP in "$CXX -E" "/lib/cpp"
9308 ac_preproc_ok=false
9309 for ac_cxx_preproc_warn_flag in '' yes
9311 # Use a header file that comes with gcc, so configuring glibc
9312 # with a fresh cross-compiler works.
9313 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9314 # <limits.h> exists even on freestanding compilers.
9315 # On the NeXT, cc -E runs the code through the compiler's parser,
9316 # not just through cpp. "Syntax error" is here to catch this case.
9317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9318 /* end confdefs.h. */
9319 #ifdef __STDC__
9320 # include <limits.h>
9321 #else
9322 # include <assert.h>
9323 #endif
9324 Syntax error
9325 _ACEOF
9326 if ac_fn_cxx_try_cpp "$LINENO"; then :
9328 else
9329 # Broken: fails on valid input.
9330 continue
9332 rm -f conftest.err conftest.i conftest.$ac_ext
9334 # OK, works on sane cases. Now check whether nonexistent headers
9335 # can be detected and how.
9336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9337 /* end confdefs.h. */
9338 #include <ac_nonexistent.h>
9339 _ACEOF
9340 if ac_fn_cxx_try_cpp "$LINENO"; then :
9341 # Broken: success on invalid input.
9342 continue
9343 else
9344 # Passes both tests.
9345 ac_preproc_ok=:
9346 break
9348 rm -f conftest.err conftest.i conftest.$ac_ext
9350 done
9351 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9352 rm -f conftest.i conftest.err conftest.$ac_ext
9353 if $ac_preproc_ok; then :
9354 break
9357 done
9358 ac_cv_prog_CXXCPP=$CXXCPP
9361 CXXCPP=$ac_cv_prog_CXXCPP
9362 else
9363 ac_cv_prog_CXXCPP=$CXXCPP
9365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
9366 $as_echo "$CXXCPP" >&6; }
9367 ac_preproc_ok=false
9368 for ac_cxx_preproc_warn_flag in '' yes
9370 # Use a header file that comes with gcc, so configuring glibc
9371 # with a fresh cross-compiler works.
9372 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9373 # <limits.h> exists even on freestanding compilers.
9374 # On the NeXT, cc -E runs the code through the compiler's parser,
9375 # not just through cpp. "Syntax error" is here to catch this case.
9376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9377 /* end confdefs.h. */
9378 #ifdef __STDC__
9379 # include <limits.h>
9380 #else
9381 # include <assert.h>
9382 #endif
9383 Syntax error
9384 _ACEOF
9385 if ac_fn_cxx_try_cpp "$LINENO"; then :
9387 else
9388 # Broken: fails on valid input.
9389 continue
9391 rm -f conftest.err conftest.i conftest.$ac_ext
9393 # OK, works on sane cases. Now check whether nonexistent headers
9394 # can be detected and how.
9395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9396 /* end confdefs.h. */
9397 #include <ac_nonexistent.h>
9398 _ACEOF
9399 if ac_fn_cxx_try_cpp "$LINENO"; then :
9400 # Broken: success on invalid input.
9401 continue
9402 else
9403 # Passes both tests.
9404 ac_preproc_ok=:
9405 break
9407 rm -f conftest.err conftest.i conftest.$ac_ext
9409 done
9410 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9411 rm -f conftest.i conftest.err conftest.$ac_ext
9412 if $ac_preproc_ok; then :
9414 else
9415 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9416 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9417 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9418 See \`config.log' for more details" >&5
9419 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9420 See \`config.log' for more details" >&2;}; }
9423 ac_ext=cpp
9424 ac_cpp='$CXXCPP $CPPFLAGS'
9425 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9426 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9427 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9430 for ac_header in unordered_map
9431 do :
9432 ac_fn_cxx_check_header_preproc "$LINENO" "unordered_map" "ac_cv_header_unordered_map"
9433 if test "x$ac_cv_header_unordered_map" = xyes; then :
9434 cat >>confdefs.h <<_ACEOF
9435 #define HAVE_UNORDERED_MAP 1
9436 _ACEOF
9439 done
9441 for ac_header in tr1/unordered_map
9442 do :
9443 ac_fn_cxx_check_header_preproc "$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
9444 if test "x$ac_cv_header_tr1_unordered_map" = xyes; then :
9445 cat >>confdefs.h <<_ACEOF
9446 #define HAVE_TR1_UNORDERED_MAP 1
9447 _ACEOF
9450 done
9452 for ac_header in ext/hash_map
9453 do :
9454 ac_fn_cxx_check_header_preproc "$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
9455 if test "x$ac_cv_header_ext_hash_map" = xyes; then :
9456 cat >>confdefs.h <<_ACEOF
9457 #define HAVE_EXT_HASH_MAP 1
9458 _ACEOF
9461 done
9464 # --------
9465 # Dependency checking.
9466 # --------
9468 rm -rf .tst 2>/dev/null
9469 mkdir .tst 2>/dev/null
9470 if test -d .tst; then
9471 am__leading_dot=.
9472 else
9473 am__leading_dot=_
9475 rmdir .tst 2>/dev/null
9477 DEPDIR="${am__leading_dot}deps"
9479 ac_config_commands="$ac_config_commands depdir"
9482 ac_config_commands="$ac_config_commands gccdepdir"
9485 depcc="$CXX" am_compiler_list=
9487 am_depcomp=$ac_aux_dir/depcomp
9488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
9489 $as_echo_n "checking dependency style of $depcc... " >&6; }
9490 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
9491 $as_echo_n "(cached) " >&6
9492 else
9493 if test -f "$am_depcomp"; then
9494 # We make a subdir and do the tests there. Otherwise we can end up
9495 # making bogus files that we don't know about and never remove. For
9496 # instance it was reported that on HP-UX the gcc test will end up
9497 # making a dummy file named `D' -- because `-MD' means `put the output
9498 # in D'.
9499 mkdir conftest.dir
9500 # Copy depcomp to subdir because otherwise we won't find it if we're
9501 # using a relative directory.
9502 cp "$am_depcomp" conftest.dir
9503 cd conftest.dir
9504 # We will build objects and dependencies in a subdirectory because
9505 # it helps to detect inapplicable dependency modes. For instance
9506 # both Tru64's cc and ICC support -MD to output dependencies as a
9507 # side effect of compilation, but ICC will put the dependencies in
9508 # the current directory while Tru64 will put them in the object
9509 # directory.
9510 mkdir sub
9512 am_cv_CXX_dependencies_compiler_type=none
9513 if test "$am_compiler_list" = ""; then
9514 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
9516 for depmode in $am_compiler_list; do
9517 if test $depmode = none; then break; fi
9519 $as_echo "$as_me:$LINENO: trying $depmode" >&5
9520 # Setup a source with many dependencies, because some compilers
9521 # like to wrap large dependency lists on column 80 (with \), and
9522 # we should not choose a depcomp mode which is confused by this.
9524 # We need to recreate these files for each test, as the compiler may
9525 # overwrite some of them when testing with obscure command lines.
9526 # This happens at least with the AIX C compiler.
9527 : > sub/conftest.c
9528 for i in 1 2 3 4 5 6; do
9529 echo '#include "conftst'$i'.h"' >> sub/conftest.c
9530 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
9531 # Solaris 8's {/usr,}/bin/sh.
9532 touch sub/conftst$i.h
9533 done
9534 echo "include sub/conftest.Po" > confmf
9536 # We check with `-c' and `-o' for the sake of the "dashmstdout"
9537 # mode. It turns out that the SunPro C++ compiler does not properly
9538 # handle `-M -o', and we need to detect this.
9539 depcmd="depmode=$depmode \
9540 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
9541 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
9542 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
9543 echo "| $depcmd" | sed -e 's/ */ /g' >&5
9544 if env $depcmd > conftest.err 2>&1 &&
9545 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
9546 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
9547 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
9548 # icc doesn't choke on unknown options, it will just issue warnings
9549 # or remarks (even with -Werror). So we grep stderr for any message
9550 # that says an option was ignored or not supported.
9551 # When given -MP, icc 7.0 and 7.1 complain thusly:
9552 # icc: Command line warning: ignoring option '-M'; no argument required
9553 # The diagnosis changed in icc 8.0:
9554 # icc: Command line remark: option '-MP' not supported
9555 if (grep 'ignoring option' conftest.err ||
9556 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
9557 am_cv_CXX_dependencies_compiler_type=$depmode
9558 $as_echo "$as_me:$LINENO: success" >&5
9559 break
9562 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
9563 sed -e 's/^/| /' < conftest.err >&5
9564 done
9566 cd ..
9567 rm -rf conftest.dir
9568 else
9569 am_cv_CXX_dependencies_compiler_type=none
9573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
9574 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
9575 if test x${am_cv_CXX_dependencies_compiler_type-none} = xnone
9576 then as_fn_error $? "no usable dependency style found" "$LINENO" 5
9577 else CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
9582 # --------
9583 # UNSORTED
9584 # --------
9587 # These libraries may be used by collect2.
9588 # We may need a special search path to get them linked.
9589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
9590 $as_echo_n "checking for collect2 libraries... " >&6; }
9591 if ${gcc_cv_collect2_libs+:} false; then :
9592 $as_echo_n "(cached) " >&6
9593 else
9594 save_LIBS="$LIBS"
9595 for libs in '' -lld -lmld \
9596 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
9597 '-L/usr/lib/cmplrs/cc3.11 -lmld'
9599 LIBS="$libs"
9600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9601 /* end confdefs.h. */
9603 /* Override any GCC internal prototype to avoid an error.
9604 Use char because int might match the return type of a GCC
9605 builtin and then its argument prototype would still apply. */
9606 #ifdef __cplusplus
9607 extern "C"
9608 #endif
9609 char ldopen ();
9611 main ()
9613 return ldopen ();
9615 return 0;
9617 _ACEOF
9618 if ac_fn_cxx_try_link "$LINENO"; then :
9619 gcc_cv_collect2_libs="$libs"; break
9621 rm -f core conftest.err conftest.$ac_objext \
9622 conftest$ac_exeext conftest.$ac_ext
9623 done
9624 LIBS="$save_LIBS"
9625 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
9627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
9628 $as_echo "$gcc_cv_collect2_libs" >&6; }
9629 case $gcc_cv_collect2_libs in
9630 "none required") ;;
9631 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
9632 esac
9635 # When building Ada code on Alpha, we need exc_resume which is usually in
9636 # -lexc. So test for it.
9637 save_LIBS="$LIBS"
9638 LIBS=
9639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
9640 $as_echo_n "checking for library containing exc_resume... " >&6; }
9641 if ${ac_cv_search_exc_resume+:} false; then :
9642 $as_echo_n "(cached) " >&6
9643 else
9644 ac_func_search_save_LIBS=$LIBS
9645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9646 /* end confdefs.h. */
9648 /* Override any GCC internal prototype to avoid an error.
9649 Use char because int might match the return type of a GCC
9650 builtin and then its argument prototype would still apply. */
9651 #ifdef __cplusplus
9652 extern "C"
9653 #endif
9654 char exc_resume ();
9656 main ()
9658 return exc_resume ();
9660 return 0;
9662 _ACEOF
9663 for ac_lib in '' exc; do
9664 if test -z "$ac_lib"; then
9665 ac_res="none required"
9666 else
9667 ac_res=-l$ac_lib
9668 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9670 if ac_fn_cxx_try_link "$LINENO"; then :
9671 ac_cv_search_exc_resume=$ac_res
9673 rm -f core conftest.err conftest.$ac_objext \
9674 conftest$ac_exeext
9675 if ${ac_cv_search_exc_resume+:} false; then :
9676 break
9678 done
9679 if ${ac_cv_search_exc_resume+:} false; then :
9681 else
9682 ac_cv_search_exc_resume=no
9684 rm conftest.$ac_ext
9685 LIBS=$ac_func_search_save_LIBS
9687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
9688 $as_echo "$ac_cv_search_exc_resume" >&6; }
9689 ac_res=$ac_cv_search_exc_resume
9690 if test "$ac_res" != no; then :
9691 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9695 GNAT_LIBEXC="$LIBS"
9696 LIBS="$save_LIBS"
9699 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
9700 save_LIBS="$LIBS"
9701 LIBS=
9702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
9703 $as_echo_n "checking for library containing kstat_open... " >&6; }
9704 if ${ac_cv_search_kstat_open+:} false; then :
9705 $as_echo_n "(cached) " >&6
9706 else
9707 ac_func_search_save_LIBS=$LIBS
9708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9709 /* end confdefs.h. */
9711 /* Override any GCC internal prototype to avoid an error.
9712 Use char because int might match the return type of a GCC
9713 builtin and then its argument prototype would still apply. */
9714 #ifdef __cplusplus
9715 extern "C"
9716 #endif
9717 char kstat_open ();
9719 main ()
9721 return kstat_open ();
9723 return 0;
9725 _ACEOF
9726 for ac_lib in '' kstat; do
9727 if test -z "$ac_lib"; then
9728 ac_res="none required"
9729 else
9730 ac_res=-l$ac_lib
9731 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9733 if ac_fn_cxx_try_link "$LINENO"; then :
9734 ac_cv_search_kstat_open=$ac_res
9736 rm -f core conftest.err conftest.$ac_objext \
9737 conftest$ac_exeext
9738 if ${ac_cv_search_kstat_open+:} false; then :
9739 break
9741 done
9742 if ${ac_cv_search_kstat_open+:} false; then :
9744 else
9745 ac_cv_search_kstat_open=no
9747 rm conftest.$ac_ext
9748 LIBS=$ac_func_search_save_LIBS
9750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
9751 $as_echo "$ac_cv_search_kstat_open" >&6; }
9752 ac_res=$ac_cv_search_kstat_open
9753 if test "$ac_res" != no; then :
9754 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9758 EXTRA_GCC_LIBS="$LIBS"
9759 LIBS="$save_LIBS"
9762 # Some systems put ldexp and frexp in libm instead of libc; assume
9763 # they're both in the same place. jcf-dump needs them.
9764 save_LIBS="$LIBS"
9765 LIBS=
9766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
9767 $as_echo_n "checking for library containing ldexp... " >&6; }
9768 if ${ac_cv_search_ldexp+:} false; then :
9769 $as_echo_n "(cached) " >&6
9770 else
9771 ac_func_search_save_LIBS=$LIBS
9772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9773 /* end confdefs.h. */
9775 /* Override any GCC internal prototype to avoid an error.
9776 Use char because int might match the return type of a GCC
9777 builtin and then its argument prototype would still apply. */
9778 #ifdef __cplusplus
9779 extern "C"
9780 #endif
9781 char ldexp ();
9783 main ()
9785 return ldexp ();
9787 return 0;
9789 _ACEOF
9790 for ac_lib in '' m; do
9791 if test -z "$ac_lib"; then
9792 ac_res="none required"
9793 else
9794 ac_res=-l$ac_lib
9795 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9797 if ac_fn_cxx_try_link "$LINENO"; then :
9798 ac_cv_search_ldexp=$ac_res
9800 rm -f core conftest.err conftest.$ac_objext \
9801 conftest$ac_exeext
9802 if ${ac_cv_search_ldexp+:} false; then :
9803 break
9805 done
9806 if ${ac_cv_search_ldexp+:} false; then :
9808 else
9809 ac_cv_search_ldexp=no
9811 rm conftest.$ac_ext
9812 LIBS=$ac_func_search_save_LIBS
9814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
9815 $as_echo "$ac_cv_search_ldexp" >&6; }
9816 ac_res=$ac_cv_search_ldexp
9817 if test "$ac_res" != no; then :
9818 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9822 LDEXP_LIB="$LIBS"
9823 LIBS="$save_LIBS"
9826 # Some systems need dlopen
9827 save_LIBS="$LIBS"
9828 LIBS=
9829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
9830 $as_echo_n "checking for library containing dlopen... " >&6; }
9831 if ${ac_cv_search_dlopen+:} false; then :
9832 $as_echo_n "(cached) " >&6
9833 else
9834 ac_func_search_save_LIBS=$LIBS
9835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9836 /* end confdefs.h. */
9838 /* Override any GCC internal prototype to avoid an error.
9839 Use char because int might match the return type of a GCC
9840 builtin and then its argument prototype would still apply. */
9841 #ifdef __cplusplus
9842 extern "C"
9843 #endif
9844 char dlopen ();
9846 main ()
9848 return dlopen ();
9850 return 0;
9852 _ACEOF
9853 for ac_lib in '' dl; do
9854 if test -z "$ac_lib"; then
9855 ac_res="none required"
9856 else
9857 ac_res=-l$ac_lib
9858 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9860 if ac_fn_cxx_try_link "$LINENO"; then :
9861 ac_cv_search_dlopen=$ac_res
9863 rm -f core conftest.err conftest.$ac_objext \
9864 conftest$ac_exeext
9865 if ${ac_cv_search_dlopen+:} false; then :
9866 break
9868 done
9869 if ${ac_cv_search_dlopen+:} false; then :
9871 else
9872 ac_cv_search_dlopen=no
9874 rm conftest.$ac_ext
9875 LIBS=$ac_func_search_save_LIBS
9877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
9878 $as_echo "$ac_cv_search_dlopen" >&6; }
9879 ac_res=$ac_cv_search_dlopen
9880 if test "$ac_res" != no; then :
9881 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9885 DL_LIB="$LIBS"
9886 LIBS="$save_LIBS"
9889 # Use <inttypes.h> only if it exists,
9890 # doesn't clash with <sys/types.h>, declares intmax_t and defines
9891 # PRId64
9892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
9893 $as_echo_n "checking for inttypes.h... " >&6; }
9894 if ${gcc_cv_header_inttypes_h+:} false; then :
9895 $as_echo_n "(cached) " >&6
9896 else
9897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9898 /* end confdefs.h. */
9899 #define __STDC_FORMAT_MACROS
9900 #include <sys/types.h>
9901 #include <inttypes.h>
9903 main ()
9905 intmax_t i = -1;
9906 #ifndef PRId64
9907 choke me
9908 #endif
9910 return 0;
9912 _ACEOF
9913 if ac_fn_cxx_try_compile "$LINENO"; then :
9914 gcc_cv_header_inttypes_h=yes
9915 else
9916 gcc_cv_header_inttypes_h=no
9918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
9922 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
9923 if test $gcc_cv_header_inttypes_h = yes; then
9925 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
9929 # Look for the ZSTD package.
9930 ZSTD_INCLUDE=
9931 ZSTD_LIB=
9934 ZSTD_CPPFLAGS=
9935 ZSTD_LDFLAGS=
9937 # Check whether --with-zstd was given.
9938 if test "${with_zstd+set}" = set; then :
9939 withval=$with_zstd;
9943 # Check whether --with-zstd-include was given.
9944 if test "${with_zstd_include+set}" = set; then :
9945 withval=$with_zstd_include;
9949 # Check whether --with-zstd-lib was given.
9950 if test "${with_zstd_lib+set}" = set; then :
9951 withval=$with_zstd_lib;
9954 case "x$with_zstd" in
9955 x) ;;
9956 xno)
9957 ZSTD_INCLUDE=no
9958 ZSTD_LIB=no
9960 *) ZSTD_INCLUDE=$with_zstd/include
9961 ZSTD_LIB=$with_zstd/lib
9963 esac
9964 if test "x$with_zstd_include" != x; then
9965 ZSTD_INCLUDE=$with_zstd_include
9967 if test "x$with_zstd_lib" != x; then
9968 ZSTD_LIB=$with_zstd_lib
9970 if test "x$ZSTD_INCLUDE" != x \
9971 && test "x$ZSTD_INCLUDE" != xno; then
9972 ZSTD_CPPFLAGS=-I$ZSTD_INCLUDE
9974 if test "x$ZSTD_LIB" != x \
9975 && test "x$ZSTD_LIB" != xno; then
9976 ZSTD_LDFLAGS=-L$ZSTD_LIB
9979 CXXFLAGS="$CXXFLAGS $ZSTD_CPPFLAGS"
9980 LDFLAGS="$LDFLAGS $ZSTD_LDFLAGS"
9982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zstd.h" >&5
9983 $as_echo_n "checking for zstd.h... " >&6; }
9984 if ${gcc_cv_header_zstd_h+:} false; then :
9985 $as_echo_n "(cached) " >&6
9986 else
9987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9988 /* end confdefs.h. */
9989 #include <zstd.h>
9991 main ()
9995 return 0;
9997 _ACEOF
9998 if ac_fn_cxx_try_compile "$LINENO"; then :
9999 gcc_cv_header_zstd_h=yes
10000 else
10001 gcc_cv_header_zstd_h=no
10003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_zstd_h" >&5
10007 $as_echo "$gcc_cv_header_zstd_h" >&6; }
10008 if test $gcc_cv_header_zstd_h = yes; then
10010 $as_echo "#define HAVE_ZSTD_H 1" >>confdefs.h
10014 # LTO can use zstd compression algorithm
10015 save_LIBS="$LIBS"
10016 LIBS=
10017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ZSTD_compress" >&5
10018 $as_echo_n "checking for library containing ZSTD_compress... " >&6; }
10019 if ${ac_cv_search_ZSTD_compress+:} false; then :
10020 $as_echo_n "(cached) " >&6
10021 else
10022 ac_func_search_save_LIBS=$LIBS
10023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10024 /* end confdefs.h. */
10026 /* Override any GCC internal prototype to avoid an error.
10027 Use char because int might match the return type of a GCC
10028 builtin and then its argument prototype would still apply. */
10029 #ifdef __cplusplus
10030 extern "C"
10031 #endif
10032 char ZSTD_compress ();
10034 main ()
10036 return ZSTD_compress ();
10038 return 0;
10040 _ACEOF
10041 for ac_lib in '' zstd; do
10042 if test -z "$ac_lib"; then
10043 ac_res="none required"
10044 else
10045 ac_res=-l$ac_lib
10046 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10048 if ac_fn_cxx_try_link "$LINENO"; then :
10049 ac_cv_search_ZSTD_compress=$ac_res
10051 rm -f core conftest.err conftest.$ac_objext \
10052 conftest$ac_exeext
10053 if ${ac_cv_search_ZSTD_compress+:} false; then :
10054 break
10056 done
10057 if ${ac_cv_search_ZSTD_compress+:} false; then :
10059 else
10060 ac_cv_search_ZSTD_compress=no
10062 rm conftest.$ac_ext
10063 LIBS=$ac_func_search_save_LIBS
10065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ZSTD_compress" >&5
10066 $as_echo "$ac_cv_search_ZSTD_compress" >&6; }
10067 ac_res=$ac_cv_search_ZSTD_compress
10068 if test "$ac_res" != no; then :
10069 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10073 ZSTD_LIB="$LIBS"
10074 LIBS="$save_LIBS"
10079 for ac_func in times clock kill getrlimit setrlimit atoq \
10080 popen sysconf strsignal getrusage nl_langinfo \
10081 gettimeofday mbstowcs wcswidth mmap setlocale \
10082 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
10083 do :
10084 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10085 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
10086 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10087 cat >>confdefs.h <<_ACEOF
10088 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10089 _ACEOF
10092 done
10095 if test x$ac_cv_func_mbstowcs = xyes; then
10096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
10097 $as_echo_n "checking whether mbstowcs works... " >&6; }
10098 if ${gcc_cv_func_mbstowcs_works+:} false; then :
10099 $as_echo_n "(cached) " >&6
10100 else
10101 if test "$cross_compiling" = yes; then :
10102 gcc_cv_func_mbstowcs_works=yes
10103 else
10104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10105 /* end confdefs.h. */
10106 #include <stdlib.h>
10107 int main()
10109 mbstowcs(0, "", 0);
10110 return 0;
10112 _ACEOF
10113 if ac_fn_cxx_try_run "$LINENO"; then :
10114 gcc_cv_func_mbstowcs_works=yes
10115 else
10116 gcc_cv_func_mbstowcs_works=no
10118 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10119 conftest.$ac_objext conftest.beam conftest.$ac_ext
10123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
10124 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
10125 if test x$gcc_cv_func_mbstowcs_works = xyes; then
10127 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
10132 ac_fn_cxx_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
10133 if test "x$ac_cv_type_ssize_t" = xyes; then :
10135 else
10137 cat >>confdefs.h <<_ACEOF
10138 #define ssize_t int
10139 _ACEOF
10143 ac_fn_cxx_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
10144 if test "x$ac_cv_type_caddr_t" = xyes; then :
10146 else
10148 cat >>confdefs.h <<_ACEOF
10149 #define caddr_t char *
10150 _ACEOF
10156 ac_fn_cxx_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
10157 if test "x$ac_cv_header_sys_mman_h" = xyes; then :
10158 gcc_header_sys_mman_h=yes
10159 else
10160 gcc_header_sys_mman_h=no
10163 ac_fn_cxx_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
10164 if test "x$ac_cv_func_mmap" = xyes; then :
10165 gcc_func_mmap=yes
10166 else
10167 gcc_func_mmap=no
10170 if test "$gcc_header_sys_mman_h" != yes \
10171 || test "$gcc_func_mmap" != yes; then
10172 gcc_cv_func_mmap_file=no
10173 gcc_cv_func_mmap_dev_zero=no
10174 gcc_cv_func_mmap_anon=no
10175 else
10176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
10177 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
10178 if ${gcc_cv_func_mmap_file+:} false; then :
10179 $as_echo_n "(cached) " >&6
10180 else
10181 # Add a system to this blacklist if
10182 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
10183 # memory area containing the same data that you'd get if you applied
10184 # read() to the same fd. The only system known to have a problem here
10185 # is VMS, where text files have record structure.
10186 case "$host_os" in
10187 *vms* | ultrix*)
10188 gcc_cv_func_mmap_file=no ;;
10190 gcc_cv_func_mmap_file=yes;;
10191 esac
10193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
10194 $as_echo "$gcc_cv_func_mmap_file" >&6; }
10195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
10196 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
10197 if ${gcc_cv_func_mmap_dev_zero+:} false; then :
10198 $as_echo_n "(cached) " >&6
10199 else
10200 # Add a system to this blacklist if it has mmap() but /dev/zero
10201 # does not exist, or if mmapping /dev/zero does not give anonymous
10202 # zeroed pages with both the following properties:
10203 # 1. If you map N consecutive pages in with one call, and then
10204 # unmap any subset of those pages, the pages that were not
10205 # explicitly unmapped remain accessible.
10206 # 2. If you map two adjacent blocks of memory and then unmap them
10207 # both at once, they must both go away.
10208 # Systems known to be in this category are Windows (all variants),
10209 # VMS, and Darwin.
10210 case "$host_os" in
10211 *vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
10212 gcc_cv_func_mmap_dev_zero=no ;;
10214 gcc_cv_func_mmap_dev_zero=yes;;
10215 esac
10217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
10218 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
10220 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
10221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
10222 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
10223 if ${gcc_cv_decl_map_anon+:} false; then :
10224 $as_echo_n "(cached) " >&6
10225 else
10226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10227 /* end confdefs.h. */
10228 #include <sys/types.h>
10229 #include <sys/mman.h>
10230 #include <unistd.h>
10232 #ifndef MAP_ANONYMOUS
10233 #define MAP_ANONYMOUS MAP_ANON
10234 #endif
10237 main ()
10239 int n = MAP_ANONYMOUS;
10241 return 0;
10243 _ACEOF
10244 if ac_fn_cxx_try_compile "$LINENO"; then :
10245 gcc_cv_decl_map_anon=yes
10246 else
10247 gcc_cv_decl_map_anon=no
10249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
10252 $as_echo "$gcc_cv_decl_map_anon" >&6; }
10254 if test $gcc_cv_decl_map_anon = no; then
10255 gcc_cv_func_mmap_anon=no
10256 else
10257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
10258 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
10259 if ${gcc_cv_func_mmap_anon+:} false; then :
10260 $as_echo_n "(cached) " >&6
10261 else
10262 # Add a system to this blacklist if it has mmap() and MAP_ANON or
10263 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
10264 # doesn't give anonymous zeroed pages with the same properties listed
10265 # above for use of /dev/zero.
10266 # Systems known to be in this category are Windows, VMS, and SCO Unix.
10267 case "$host_os" in
10268 *vms* | cygwin* | pe | mingw* | sco* | udk* )
10269 gcc_cv_func_mmap_anon=no ;;
10271 gcc_cv_func_mmap_anon=yes;;
10272 esac
10274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
10275 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
10279 if test $gcc_cv_func_mmap_file = yes; then
10281 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
10284 if test $gcc_cv_func_mmap_dev_zero = yes; then
10286 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
10289 if test $gcc_cv_func_mmap_anon = yes; then
10291 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
10296 case "${host}" in
10297 *-*-*vms*)
10298 # Under VMS, vfork works very differently than on Unix. The standard test
10299 # won't work, and it isn't easily adaptable. It makes more sense to
10300 # just force it.
10301 ac_cv_func_vfork_works=yes
10303 esac
10304 ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
10305 if test "x$ac_cv_type_pid_t" = xyes; then :
10307 else
10309 cat >>confdefs.h <<_ACEOF
10310 #define pid_t int
10311 _ACEOF
10315 for ac_header in vfork.h
10316 do :
10317 ac_fn_cxx_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
10318 if test "x$ac_cv_header_vfork_h" = xyes; then :
10319 cat >>confdefs.h <<_ACEOF
10320 #define HAVE_VFORK_H 1
10321 _ACEOF
10324 done
10326 for ac_func in fork vfork
10327 do :
10328 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10329 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
10330 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10331 cat >>confdefs.h <<_ACEOF
10332 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10333 _ACEOF
10336 done
10338 if test "x$ac_cv_func_fork" = xyes; then
10339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
10340 $as_echo_n "checking for working fork... " >&6; }
10341 if ${ac_cv_func_fork_works+:} false; then :
10342 $as_echo_n "(cached) " >&6
10343 else
10344 if test "$cross_compiling" = yes; then :
10345 ac_cv_func_fork_works=cross
10346 else
10347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10348 /* end confdefs.h. */
10349 $ac_includes_default
10351 main ()
10354 /* By Ruediger Kuhlmann. */
10355 return fork () < 0;
10358 return 0;
10360 _ACEOF
10361 if ac_fn_cxx_try_run "$LINENO"; then :
10362 ac_cv_func_fork_works=yes
10363 else
10364 ac_cv_func_fork_works=no
10366 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10367 conftest.$ac_objext conftest.beam conftest.$ac_ext
10371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
10372 $as_echo "$ac_cv_func_fork_works" >&6; }
10374 else
10375 ac_cv_func_fork_works=$ac_cv_func_fork
10377 if test "x$ac_cv_func_fork_works" = xcross; then
10378 case $host in
10379 *-*-amigaos* | *-*-msdosdjgpp*)
10380 # Override, as these systems have only a dummy fork() stub
10381 ac_cv_func_fork_works=no
10384 ac_cv_func_fork_works=yes
10386 esac
10387 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
10388 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
10390 ac_cv_func_vfork_works=$ac_cv_func_vfork
10391 if test "x$ac_cv_func_vfork" = xyes; then
10392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
10393 $as_echo_n "checking for working vfork... " >&6; }
10394 if ${ac_cv_func_vfork_works+:} false; then :
10395 $as_echo_n "(cached) " >&6
10396 else
10397 if test "$cross_compiling" = yes; then :
10398 ac_cv_func_vfork_works=cross
10399 else
10400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10401 /* end confdefs.h. */
10402 /* Thanks to Paul Eggert for this test. */
10403 $ac_includes_default
10404 #include <sys/wait.h>
10405 #ifdef HAVE_VFORK_H
10406 # include <vfork.h>
10407 #endif
10408 /* On some sparc systems, changes by the child to local and incoming
10409 argument registers are propagated back to the parent. The compiler
10410 is told about this with #include <vfork.h>, but some compilers
10411 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
10412 static variable whose address is put into a register that is
10413 clobbered by the vfork. */
10414 static void
10415 #ifdef __cplusplus
10416 sparc_address_test (int arg)
10417 # else
10418 sparc_address_test (arg) int arg;
10419 #endif
10421 static pid_t child;
10422 if (!child) {
10423 child = vfork ();
10424 if (child < 0) {
10425 perror ("vfork");
10426 _exit(2);
10428 if (!child) {
10429 arg = getpid();
10430 write(-1, "", 0);
10431 _exit (arg);
10437 main ()
10439 pid_t parent = getpid ();
10440 pid_t child;
10442 sparc_address_test (0);
10444 child = vfork ();
10446 if (child == 0) {
10447 /* Here is another test for sparc vfork register problems. This
10448 test uses lots of local variables, at least as many local
10449 variables as main has allocated so far including compiler
10450 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
10451 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
10452 reuse the register of parent for one of the local variables,
10453 since it will think that parent can't possibly be used any more
10454 in this routine. Assigning to the local variable will thus
10455 munge parent in the parent process. */
10456 pid_t
10457 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10458 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10459 /* Convince the compiler that p..p7 are live; otherwise, it might
10460 use the same hardware register for all 8 local variables. */
10461 if (p != p1 || p != p2 || p != p3 || p != p4
10462 || p != p5 || p != p6 || p != p7)
10463 _exit(1);
10465 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10466 from child file descriptors. If the child closes a descriptor
10467 before it execs or exits, this munges the parent's descriptor
10468 as well. Test for this by closing stdout in the child. */
10469 _exit(close(fileno(stdout)) != 0);
10470 } else {
10471 int status;
10472 struct stat st;
10474 while (wait(&status) != child)
10476 return (
10477 /* Was there some problem with vforking? */
10478 child < 0
10480 /* Did the child fail? (This shouldn't happen.) */
10481 || status
10483 /* Did the vfork/compiler bug occur? */
10484 || parent != getpid()
10486 /* Did the file descriptor bug occur? */
10487 || fstat(fileno(stdout), &st) != 0
10491 _ACEOF
10492 if ac_fn_cxx_try_run "$LINENO"; then :
10493 ac_cv_func_vfork_works=yes
10494 else
10495 ac_cv_func_vfork_works=no
10497 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10498 conftest.$ac_objext conftest.beam conftest.$ac_ext
10502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
10503 $as_echo "$ac_cv_func_vfork_works" >&6; }
10506 if test "x$ac_cv_func_fork_works" = xcross; then
10507 ac_cv_func_vfork_works=$ac_cv_func_vfork
10508 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10509 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10512 if test "x$ac_cv_func_vfork_works" = xyes; then
10514 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
10516 else
10518 $as_echo "#define vfork fork" >>confdefs.h
10521 if test "x$ac_cv_func_fork_works" = xyes; then
10523 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
10529 if test "X$prefix" = "XNONE"; then
10530 acl_final_prefix="$ac_default_prefix"
10531 else
10532 acl_final_prefix="$prefix"
10534 if test "X$exec_prefix" = "XNONE"; then
10535 acl_final_exec_prefix='${prefix}'
10536 else
10537 acl_final_exec_prefix="$exec_prefix"
10539 acl_save_prefix="$prefix"
10540 prefix="$acl_final_prefix"
10541 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10542 prefix="$acl_save_prefix"
10545 # Check whether --with-gnu-ld was given.
10546 if test "${with_gnu_ld+set}" = set; then :
10547 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10548 else
10549 with_gnu_ld=no
10552 # Prepare PATH_SEPARATOR.
10553 # The user is always right.
10554 if test "${PATH_SEPARATOR+set}" != set; then
10555 echo "#! /bin/sh" >conf$$.sh
10556 echo "exit 0" >>conf$$.sh
10557 chmod +x conf$$.sh
10558 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10559 PATH_SEPARATOR=';'
10560 else
10561 PATH_SEPARATOR=:
10563 rm -f conf$$.sh
10565 ac_prog=ld
10566 if test "$GCC" = yes; then
10567 # Check if gcc -print-prog-name=ld gives a path.
10568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
10569 $as_echo_n "checking for ld used by GCC... " >&6; }
10570 case $host in
10571 *-*-mingw*)
10572 # gcc leaves a trailing carriage return which upsets mingw
10573 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10575 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10576 esac
10577 case $ac_prog in
10578 # Accept absolute paths.
10579 [\\/]* | [A-Za-z]:[\\/]*)
10580 re_direlt='/[^/][^/]*/\.\./'
10581 # Canonicalize the path of ld
10582 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10583 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10584 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10585 done
10586 test -z "$LD" && LD="$ac_prog"
10589 # If it fails, then pretend we aren't using GCC.
10590 ac_prog=ld
10593 # If it is relative, then search for the first ld in PATH.
10594 with_gnu_ld=unknown
10596 esac
10597 elif test "$with_gnu_ld" = yes; then
10598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
10599 $as_echo_n "checking for GNU ld... " >&6; }
10600 else
10601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
10602 $as_echo_n "checking for non-GNU ld... " >&6; }
10604 if ${acl_cv_path_LD+:} false; then :
10605 $as_echo_n "(cached) " >&6
10606 else
10607 if test -z "$LD"; then
10608 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10609 for ac_dir in $PATH; do
10610 test -z "$ac_dir" && ac_dir=.
10611 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10612 acl_cv_path_LD="$ac_dir/$ac_prog"
10613 # Check to see if the program is GNU ld. I'd rather use --version,
10614 # but apparently some GNU ld's only accept -v.
10615 # Break only if it was the GNU/non-GNU ld that we prefer.
10616 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
10617 test "$with_gnu_ld" != no && break
10618 else
10619 test "$with_gnu_ld" != yes && break
10622 done
10623 IFS="$ac_save_ifs"
10624 else
10625 acl_cv_path_LD="$LD" # Let the user override the test with a path.
10629 LD="$acl_cv_path_LD"
10630 if test -n "$LD"; then
10631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10632 $as_echo "$LD" >&6; }
10633 else
10634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10635 $as_echo "no" >&6; }
10637 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
10638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
10639 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
10640 if ${acl_cv_prog_gnu_ld+:} false; then :
10641 $as_echo_n "(cached) " >&6
10642 else
10643 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10644 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
10645 acl_cv_prog_gnu_ld=yes
10646 else
10647 acl_cv_prog_gnu_ld=no
10650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
10651 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
10652 with_gnu_ld=$acl_cv_prog_gnu_ld
10656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
10657 $as_echo_n "checking for shared library run path origin... " >&6; }
10658 if ${acl_cv_rpath+:} false; then :
10659 $as_echo_n "(cached) " >&6
10660 else
10662 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10663 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10664 . ./conftest.sh
10665 rm -f ./conftest.sh
10666 acl_cv_rpath=done
10669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
10670 $as_echo "$acl_cv_rpath" >&6; }
10671 wl="$acl_cv_wl"
10672 libext="$acl_cv_libext"
10673 shlibext="$acl_cv_shlibext"
10674 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10675 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10676 hardcode_direct="$acl_cv_hardcode_direct"
10677 hardcode_minus_L="$acl_cv_hardcode_minus_L"
10678 # Check whether --enable-rpath was given.
10679 if test "${enable_rpath+set}" = set; then :
10680 enableval=$enable_rpath; :
10681 else
10682 enable_rpath=yes
10692 use_additional=yes
10694 acl_save_prefix="$prefix"
10695 prefix="$acl_final_prefix"
10696 acl_save_exec_prefix="$exec_prefix"
10697 exec_prefix="$acl_final_exec_prefix"
10699 eval additional_includedir=\"$includedir\"
10700 eval additional_libdir=\"$libdir\"
10702 exec_prefix="$acl_save_exec_prefix"
10703 prefix="$acl_save_prefix"
10706 # Check whether --with-libiconv-prefix was given.
10707 if test "${with_libiconv_prefix+set}" = set; then :
10708 withval=$with_libiconv_prefix;
10709 if test "X$withval" = "Xno"; then
10710 use_additional=no
10711 else
10712 if test "X$withval" = "X"; then
10714 acl_save_prefix="$prefix"
10715 prefix="$acl_final_prefix"
10716 acl_save_exec_prefix="$exec_prefix"
10717 exec_prefix="$acl_final_exec_prefix"
10719 eval additional_includedir=\"$includedir\"
10720 eval additional_libdir=\"$libdir\"
10722 exec_prefix="$acl_save_exec_prefix"
10723 prefix="$acl_save_prefix"
10725 else
10726 additional_includedir="$withval/include"
10727 additional_libdir="$withval/lib"
10733 LIBICONV=
10734 LTLIBICONV=
10735 INCICONV=
10736 rpathdirs=
10737 ltrpathdirs=
10738 names_already_handled=
10739 names_next_round='iconv '
10740 while test -n "$names_next_round"; do
10741 names_this_round="$names_next_round"
10742 names_next_round=
10743 for name in $names_this_round; do
10744 already_handled=
10745 for n in $names_already_handled; do
10746 if test "$n" = "$name"; then
10747 already_handled=yes
10748 break
10750 done
10751 if test -z "$already_handled"; then
10752 names_already_handled="$names_already_handled $name"
10753 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10754 eval value=\"\$HAVE_LIB$uppername\"
10755 if test -n "$value"; then
10756 if test "$value" = yes; then
10757 eval value=\"\$LIB$uppername\"
10758 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
10759 eval value=\"\$LTLIB$uppername\"
10760 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
10761 else
10764 else
10765 found_dir=
10766 found_la=
10767 found_so=
10768 found_a=
10769 if test $use_additional = yes; then
10770 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10771 found_dir="$additional_libdir"
10772 found_so="$additional_libdir/lib$name.$shlibext"
10773 if test -f "$additional_libdir/lib$name.la"; then
10774 found_la="$additional_libdir/lib$name.la"
10776 else
10777 if test -f "$additional_libdir/lib$name.$libext"; then
10778 found_dir="$additional_libdir"
10779 found_a="$additional_libdir/lib$name.$libext"
10780 if test -f "$additional_libdir/lib$name.la"; then
10781 found_la="$additional_libdir/lib$name.la"
10786 if test "X$found_dir" = "X"; then
10787 for x in $LDFLAGS $LTLIBICONV; do
10789 acl_save_prefix="$prefix"
10790 prefix="$acl_final_prefix"
10791 acl_save_exec_prefix="$exec_prefix"
10792 exec_prefix="$acl_final_exec_prefix"
10793 eval x=\"$x\"
10794 exec_prefix="$acl_save_exec_prefix"
10795 prefix="$acl_save_prefix"
10797 case "$x" in
10798 -L*)
10799 dir=`echo "X$x" | sed -e 's/^X-L//'`
10800 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10801 found_dir="$dir"
10802 found_so="$dir/lib$name.$shlibext"
10803 if test -f "$dir/lib$name.la"; then
10804 found_la="$dir/lib$name.la"
10806 else
10807 if test -f "$dir/lib$name.$libext"; then
10808 found_dir="$dir"
10809 found_a="$dir/lib$name.$libext"
10810 if test -f "$dir/lib$name.la"; then
10811 found_la="$dir/lib$name.la"
10816 esac
10817 if test "X$found_dir" != "X"; then
10818 break
10820 done
10822 if test "X$found_dir" != "X"; then
10823 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10824 if test "X$found_so" != "X"; then
10825 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10826 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10827 else
10828 haveit=
10829 for x in $ltrpathdirs; do
10830 if test "X$x" = "X$found_dir"; then
10831 haveit=yes
10832 break
10834 done
10835 if test -z "$haveit"; then
10836 ltrpathdirs="$ltrpathdirs $found_dir"
10838 if test "$hardcode_direct" = yes; then
10839 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10840 else
10841 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10842 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10843 haveit=
10844 for x in $rpathdirs; do
10845 if test "X$x" = "X$found_dir"; then
10846 haveit=yes
10847 break
10849 done
10850 if test -z "$haveit"; then
10851 rpathdirs="$rpathdirs $found_dir"
10853 else
10854 haveit=
10855 for x in $LDFLAGS $LIBICONV; do
10857 acl_save_prefix="$prefix"
10858 prefix="$acl_final_prefix"
10859 acl_save_exec_prefix="$exec_prefix"
10860 exec_prefix="$acl_final_exec_prefix"
10861 eval x=\"$x\"
10862 exec_prefix="$acl_save_exec_prefix"
10863 prefix="$acl_save_prefix"
10865 if test "X$x" = "X-L$found_dir"; then
10866 haveit=yes
10867 break
10869 done
10870 if test -z "$haveit"; then
10871 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10873 if test "$hardcode_minus_L" != no; then
10874 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10875 else
10876 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10881 else
10882 if test "X$found_a" != "X"; then
10883 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
10884 else
10885 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10888 additional_includedir=
10889 case "$found_dir" in
10890 */lib | */lib/)
10891 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10892 additional_includedir="$basedir/include"
10894 esac
10895 if test "X$additional_includedir" != "X"; then
10896 if test "X$additional_includedir" != "X/usr/include"; then
10897 haveit=
10898 if test "X$additional_includedir" = "X/usr/local/include"; then
10899 if test -n "$GCC"; then
10900 case $host_os in
10901 linux*) haveit=yes;;
10902 esac
10905 if test -z "$haveit"; then
10906 for x in $CPPFLAGS $INCICONV; do
10908 acl_save_prefix="$prefix"
10909 prefix="$acl_final_prefix"
10910 acl_save_exec_prefix="$exec_prefix"
10911 exec_prefix="$acl_final_exec_prefix"
10912 eval x=\"$x\"
10913 exec_prefix="$acl_save_exec_prefix"
10914 prefix="$acl_save_prefix"
10916 if test "X$x" = "X-I$additional_includedir"; then
10917 haveit=yes
10918 break
10920 done
10921 if test -z "$haveit"; then
10922 if test -d "$additional_includedir"; then
10923 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10929 if test -n "$found_la"; then
10930 save_libdir="$libdir"
10931 case "$found_la" in
10932 */* | *\\*) . "$found_la" ;;
10933 *) . "./$found_la" ;;
10934 esac
10935 libdir="$save_libdir"
10936 for dep in $dependency_libs; do
10937 case "$dep" in
10938 -L*)
10939 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10940 if test "X$additional_libdir" != "X/usr/lib"; then
10941 haveit=
10942 if test "X$additional_libdir" = "X/usr/local/lib"; then
10943 if test -n "$GCC"; then
10944 case $host_os in
10945 linux*) haveit=yes;;
10946 esac
10949 if test -z "$haveit"; then
10950 haveit=
10951 for x in $LDFLAGS $LIBICONV; do
10953 acl_save_prefix="$prefix"
10954 prefix="$acl_final_prefix"
10955 acl_save_exec_prefix="$exec_prefix"
10956 exec_prefix="$acl_final_exec_prefix"
10957 eval x=\"$x\"
10958 exec_prefix="$acl_save_exec_prefix"
10959 prefix="$acl_save_prefix"
10961 if test "X$x" = "X-L$additional_libdir"; then
10962 haveit=yes
10963 break
10965 done
10966 if test -z "$haveit"; then
10967 if test -d "$additional_libdir"; then
10968 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10971 haveit=
10972 for x in $LDFLAGS $LTLIBICONV; do
10974 acl_save_prefix="$prefix"
10975 prefix="$acl_final_prefix"
10976 acl_save_exec_prefix="$exec_prefix"
10977 exec_prefix="$acl_final_exec_prefix"
10978 eval x=\"$x\"
10979 exec_prefix="$acl_save_exec_prefix"
10980 prefix="$acl_save_prefix"
10982 if test "X$x" = "X-L$additional_libdir"; then
10983 haveit=yes
10984 break
10986 done
10987 if test -z "$haveit"; then
10988 if test -d "$additional_libdir"; then
10989 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10995 -R*)
10996 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10997 if test "$enable_rpath" != no; then
10998 haveit=
10999 for x in $rpathdirs; do
11000 if test "X$x" = "X$dir"; then
11001 haveit=yes
11002 break
11004 done
11005 if test -z "$haveit"; then
11006 rpathdirs="$rpathdirs $dir"
11008 haveit=
11009 for x in $ltrpathdirs; do
11010 if test "X$x" = "X$dir"; then
11011 haveit=yes
11012 break
11014 done
11015 if test -z "$haveit"; then
11016 ltrpathdirs="$ltrpathdirs $dir"
11020 -l*)
11021 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11023 *.la)
11024 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11027 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
11028 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
11030 esac
11031 done
11033 else
11034 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11035 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
11039 done
11040 done
11041 if test "X$rpathdirs" != "X"; then
11042 if test -n "$hardcode_libdir_separator"; then
11043 alldirs=
11044 for found_dir in $rpathdirs; do
11045 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
11046 done
11047 acl_save_libdir="$libdir"
11048 libdir="$alldirs"
11049 eval flag=\"$hardcode_libdir_flag_spec\"
11050 libdir="$acl_save_libdir"
11051 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11052 else
11053 for found_dir in $rpathdirs; do
11054 acl_save_libdir="$libdir"
11055 libdir="$found_dir"
11056 eval flag=\"$hardcode_libdir_flag_spec\"
11057 libdir="$acl_save_libdir"
11058 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11059 done
11062 if test "X$ltrpathdirs" != "X"; then
11063 for found_dir in $ltrpathdirs; do
11064 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
11065 done
11074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
11075 $as_echo_n "checking for iconv... " >&6; }
11076 if ${am_cv_func_iconv+:} false; then :
11077 $as_echo_n "(cached) " >&6
11078 else
11080 am_cv_func_iconv="no, consider installing GNU libiconv"
11081 am_cv_lib_iconv=no
11082 am_save_CPPFLAGS="$CPPFLAGS"
11083 CPPFLAGS="$CPPFLAGS $INCICONV"
11084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11085 /* end confdefs.h. */
11086 #include <stdlib.h>
11087 #include <iconv.h>
11089 main ()
11091 iconv_t cd = iconv_open("","");
11092 iconv(cd,NULL,NULL,NULL,NULL);
11093 iconv_close(cd);
11095 return 0;
11097 _ACEOF
11098 if ac_fn_cxx_try_link "$LINENO"; then :
11099 am_cv_func_iconv=yes
11101 rm -f core conftest.err conftest.$ac_objext \
11102 conftest$ac_exeext conftest.$ac_ext
11103 CPPFLAGS="$am_save_CPPFLAGS"
11105 if test "$am_cv_func_iconv" != yes && test -d ../libiconv; then
11106 for _libs in .libs _libs; do
11107 am_save_CPPFLAGS="$CPPFLAGS"
11108 am_save_LIBS="$LIBS"
11109 CPPFLAGS="$CPPFLAGS -I../libiconv/include"
11110 LIBS="$LIBS ../libiconv/lib/$_libs/libiconv.a"
11111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11112 /* end confdefs.h. */
11113 #include <stdlib.h>
11114 #include <iconv.h>
11116 main ()
11118 iconv_t cd = iconv_open("","");
11119 iconv(cd,NULL,NULL,NULL,NULL);
11120 iconv_close(cd);
11122 return 0;
11124 _ACEOF
11125 if ac_fn_cxx_try_link "$LINENO"; then :
11126 INCICONV="-I../libiconv/include"
11127 LIBICONV='${top_builddir}'/../libiconv/lib/$_libs/libiconv.a
11128 LTLIBICONV='${top_builddir}'/../libiconv/lib/libiconv.la
11129 am_cv_lib_iconv=yes
11130 am_cv_func_iconv=yes
11132 rm -f core conftest.err conftest.$ac_objext \
11133 conftest$ac_exeext conftest.$ac_ext
11134 CPPFLAGS="$am_save_CPPFLAGS"
11135 LIBS="$am_save_LIBS"
11136 if test "$am_cv_func_iconv" = "yes"; then
11137 break
11139 done
11142 if test "$am_cv_func_iconv" != yes; then
11143 am_save_CPPFLAGS="$CPPFLAGS"
11144 am_save_LIBS="$LIBS"
11145 CPPFLAGS="$CPPFLAGS $INCICONV"
11146 LIBS="$LIBS $LIBICONV"
11147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11148 /* end confdefs.h. */
11149 #include <stdlib.h>
11150 #include <iconv.h>
11152 main ()
11154 iconv_t cd = iconv_open("","");
11155 iconv(cd,NULL,NULL,NULL,NULL);
11156 iconv_close(cd);
11158 return 0;
11160 _ACEOF
11161 if ac_fn_cxx_try_link "$LINENO"; then :
11162 am_cv_lib_iconv=yes
11163 am_cv_func_iconv=yes
11165 rm -f core conftest.err conftest.$ac_objext \
11166 conftest$ac_exeext conftest.$ac_ext
11167 CPPFLAGS="$am_save_CPPFLAGS"
11168 LIBS="$am_save_LIBS"
11172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
11173 $as_echo "$am_cv_func_iconv" >&6; }
11174 if test "$am_cv_func_iconv" = yes; then
11176 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
11179 if test "$am_cv_lib_iconv" = yes; then
11181 for element in $INCICONV; do
11182 haveit=
11183 for x in $CPPFLAGS; do
11185 acl_save_prefix="$prefix"
11186 prefix="$acl_final_prefix"
11187 acl_save_exec_prefix="$exec_prefix"
11188 exec_prefix="$acl_final_exec_prefix"
11189 eval x=\"$x\"
11190 exec_prefix="$acl_save_exec_prefix"
11191 prefix="$acl_save_prefix"
11193 if test "X$x" = "X$element"; then
11194 haveit=yes
11195 break
11197 done
11198 if test -z "$haveit"; then
11199 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11201 done
11203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
11204 $as_echo_n "checking how to link with libiconv... " >&6; }
11205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
11206 $as_echo "$LIBICONV" >&6; }
11207 else
11208 LIBICONV=
11209 LTLIBICONV=
11214 if test "$am_cv_func_iconv" = yes; then
11215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
11216 $as_echo_n "checking for iconv declaration... " >&6; }
11217 if ${am_cv_proto_iconv+:} false; then :
11218 $as_echo_n "(cached) " >&6
11219 else
11221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11222 /* end confdefs.h. */
11224 #include <stdlib.h>
11225 #include <iconv.h>
11226 extern
11227 #ifdef __cplusplus
11229 #endif
11230 #if defined(__STDC__) || defined(__cplusplus)
11231 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
11232 #else
11233 size_t iconv();
11234 #endif
11237 main ()
11241 return 0;
11243 _ACEOF
11244 if ac_fn_cxx_try_compile "$LINENO"; then :
11245 am_cv_proto_iconv_arg1=""
11246 else
11247 am_cv_proto_iconv_arg1="const"
11249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11250 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);"
11253 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
11254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
11255 }$am_cv_proto_iconv" >&5
11256 $as_echo "${ac_t:-
11257 }$am_cv_proto_iconv" >&6; }
11259 cat >>confdefs.h <<_ACEOF
11260 #define ICONV_CONST $am_cv_proto_iconv_arg1
11261 _ACEOF
11266 # Until we have in-tree GNU iconv:
11267 LIBICONV_DEP=
11268 if test -f "$LTLIBICONV"; then
11269 LIBICONV_DEP=$LTLIBICONV
11274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
11275 $as_echo_n "checking for LC_MESSAGES... " >&6; }
11276 if ${am_cv_val_LC_MESSAGES+:} false; then :
11277 $as_echo_n "(cached) " >&6
11278 else
11279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11280 /* end confdefs.h. */
11281 #include <locale.h>
11283 main ()
11285 return LC_MESSAGES
11287 return 0;
11289 _ACEOF
11290 if ac_fn_cxx_try_link "$LINENO"; then :
11291 am_cv_val_LC_MESSAGES=yes
11292 else
11293 am_cv_val_LC_MESSAGES=no
11295 rm -f core conftest.err conftest.$ac_objext \
11296 conftest$ac_exeext conftest.$ac_ext
11298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
11299 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
11300 if test $am_cv_val_LC_MESSAGES = yes; then
11302 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
11308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
11309 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
11310 if ${am_cv_langinfo_codeset+:} false; then :
11311 $as_echo_n "(cached) " >&6
11312 else
11313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11314 /* end confdefs.h. */
11315 #include <langinfo.h>
11317 main ()
11319 char* cs = nl_langinfo(CODESET);
11321 return 0;
11323 _ACEOF
11324 if ac_fn_cxx_try_link "$LINENO"; then :
11325 am_cv_langinfo_codeset=yes
11326 else
11327 am_cv_langinfo_codeset=no
11329 rm -f core conftest.err conftest.$ac_objext \
11330 conftest$ac_exeext conftest.$ac_ext
11333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
11334 $as_echo "$am_cv_langinfo_codeset" >&6; }
11335 if test $am_cv_langinfo_codeset = yes; then
11337 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
11342 # We will need to find libiberty.h and ansidecl.h
11343 saved_CFLAGS="$CFLAGS"
11344 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
11345 saved_CXXFLAGS="$CXXFLAGS"
11346 CXXFLAGS="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
11348 # gcc_AC_CHECK_DECLS doesn't support overloaded functions, so use the
11349 # normal autoconf function for these. But force definition of
11350 # HAVE_DECL_BASENAME like gcc_AC_CHECK_DECLS does, to suppress the bizarre
11351 # basename handling in libiberty.h.
11352 as_ac_Symbol=`$as_echo "ac_cv_have_decl_basename(const char*)" | $as_tr_sh`
11353 ac_fn_cxx_check_decl "$LINENO" "basename(const char*)" "$as_ac_Symbol" "
11354 #undef HAVE_DECL_BASENAME
11355 #define HAVE_DECL_BASENAME 1
11356 #include \"ansidecl.h\"
11357 #include \"system.h\"
11359 if eval test \"x\$"$as_ac_Symbol"\" = x"yes"; then :
11360 ac_have_decl=1
11361 else
11362 ac_have_decl=0
11365 cat >>confdefs.h <<_ACEOF
11366 #define HAVE_DECL_BASENAME $ac_have_decl
11367 _ACEOF
11368 as_ac_Symbol=`$as_echo "ac_cv_have_decl_strstr(const char*,const char*)" | $as_tr_sh`
11369 ac_fn_cxx_check_decl "$LINENO" "strstr(const char*,const char*)" "$as_ac_Symbol" "
11370 #undef HAVE_DECL_BASENAME
11371 #define HAVE_DECL_BASENAME 1
11372 #include \"ansidecl.h\"
11373 #include \"system.h\"
11375 if eval test \"x\$"$as_ac_Symbol"\" = x"yes"; then :
11376 ac_have_decl=1
11377 else
11378 ac_have_decl=0
11381 cat >>confdefs.h <<_ACEOF
11382 #define HAVE_DECL_STRSTR $ac_have_decl
11383 _ACEOF
11386 for ac_func in getenv atol atoll asprintf sbrk abort atof getcwd getwd \
11387 madvise stpcpy strnlen strsignal strverscmp \
11388 strtol strtoul strtoll strtoull setenv unsetenv \
11389 errno snprintf vsnprintf vasprintf malloc realloc calloc \
11390 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
11392 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11394 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11395 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
11396 $as_echo_n "(cached) " >&6
11397 else
11398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11399 /* end confdefs.h. */
11400 #undef $ac_tr_decl
11401 #define $ac_tr_decl 1
11403 #include "ansidecl.h"
11404 #include "system.h"
11407 main ()
11409 #ifndef $ac_func
11410 char *(*pfn) = (char *(*)) $ac_func ;
11411 #endif
11413 return 0;
11415 _ACEOF
11416 if ac_fn_cxx_try_compile "$LINENO"; then :
11417 eval "gcc_cv_have_decl_$ac_func=yes"
11418 else
11419 eval "gcc_cv_have_decl_$ac_func=no"
11421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11424 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11426 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11427 #define $ac_tr_decl 1
11428 _ACEOF
11430 else
11431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11432 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11433 #define $ac_tr_decl 0
11434 _ACEOF
11438 done
11441 for ac_func in getrlimit setrlimit getrusage
11443 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11445 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11446 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
11447 $as_echo_n "(cached) " >&6
11448 else
11449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11450 /* end confdefs.h. */
11451 #undef $ac_tr_decl
11452 #define $ac_tr_decl 1
11454 #include "ansidecl.h"
11455 #include "system.h"
11456 #ifdef HAVE_SYS_RESOURCE_H
11457 #include <sys/resource.h>
11458 #endif
11462 main ()
11464 #ifndef $ac_func
11465 char *(*pfn) = (char *(*)) $ac_func ;
11466 #endif
11468 return 0;
11470 _ACEOF
11471 if ac_fn_cxx_try_compile "$LINENO"; then :
11472 eval "gcc_cv_have_decl_$ac_func=yes"
11473 else
11474 eval "gcc_cv_have_decl_$ac_func=no"
11476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11479 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11481 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11482 #define $ac_tr_decl 1
11483 _ACEOF
11485 else
11486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11487 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11488 #define $ac_tr_decl 0
11489 _ACEOF
11493 done
11496 for ac_func in mallinfo
11498 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11500 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11501 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
11502 $as_echo_n "(cached) " >&6
11503 else
11504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11505 /* end confdefs.h. */
11506 #undef $ac_tr_decl
11507 #define $ac_tr_decl 1
11509 #include "ansidecl.h"
11510 #include "system.h"
11511 #ifdef HAVE_MALLOC_H
11512 #include <malloc.h>
11513 #endif
11517 main ()
11519 #ifndef $ac_func
11520 char *(*pfn) = (char *(*)) $ac_func ;
11521 #endif
11523 return 0;
11525 _ACEOF
11526 if ac_fn_cxx_try_compile "$LINENO"; then :
11527 eval "gcc_cv_have_decl_$ac_func=yes"
11528 else
11529 eval "gcc_cv_have_decl_$ac_func=no"
11531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11534 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11536 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11537 #define $ac_tr_decl 1
11538 _ACEOF
11540 else
11541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11542 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11543 #define $ac_tr_decl 0
11544 _ACEOF
11548 done
11551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11552 /* end confdefs.h. */
11554 #include "ansidecl.h"
11555 #include "system.h"
11556 #ifdef HAVE_SYS_RESOURCE_H
11557 #include <sys/resource.h>
11558 #endif
11561 main ()
11563 rlim_t l = 0;
11565 return 0;
11567 _ACEOF
11568 if ac_fn_cxx_try_compile "$LINENO"; then :
11570 else
11572 $as_echo "#define rlim_t long" >>confdefs.h
11575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11577 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
11578 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
11579 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
11580 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
11581 for ac_func in ldgetname
11583 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11585 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11586 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
11587 $as_echo_n "(cached) " >&6
11588 else
11589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11590 /* end confdefs.h. */
11591 #undef $ac_tr_decl
11592 #define $ac_tr_decl 1
11594 #include "ansidecl.h"
11595 #include "system.h"
11596 #ifdef HAVE_LDFCN_H
11597 #undef FREAD
11598 #undef FWRITE
11599 #include <ldfcn.h>
11600 #endif
11604 main ()
11606 #ifndef $ac_func
11607 char *(*pfn) = (char *(*)) $ac_func ;
11608 #endif
11610 return 0;
11612 _ACEOF
11613 if ac_fn_cxx_try_compile "$LINENO"; then :
11614 eval "gcc_cv_have_decl_$ac_func=yes"
11615 else
11616 eval "gcc_cv_have_decl_$ac_func=no"
11618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11621 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11623 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11624 #define $ac_tr_decl 1
11625 _ACEOF
11627 else
11628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11629 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11630 #define $ac_tr_decl 0
11631 _ACEOF
11635 done
11638 for ac_func in times
11640 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11642 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11643 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
11644 $as_echo_n "(cached) " >&6
11645 else
11646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11647 /* end confdefs.h. */
11648 #undef $ac_tr_decl
11649 #define $ac_tr_decl 1
11651 #include "ansidecl.h"
11652 #include "system.h"
11653 #ifdef HAVE_SYS_TIMES_H
11654 #include <sys/times.h>
11655 #endif
11659 main ()
11661 #ifndef $ac_func
11662 char *(*pfn) = (char *(*)) $ac_func ;
11663 #endif
11665 return 0;
11667 _ACEOF
11668 if ac_fn_cxx_try_compile "$LINENO"; then :
11669 eval "gcc_cv_have_decl_$ac_func=yes"
11670 else
11671 eval "gcc_cv_have_decl_$ac_func=no"
11673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11676 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11678 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11679 #define $ac_tr_decl 1
11680 _ACEOF
11682 else
11683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11684 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11685 #define $ac_tr_decl 0
11686 _ACEOF
11690 done
11693 for ac_func in sigaltstack
11695 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11697 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11698 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
11699 $as_echo_n "(cached) " >&6
11700 else
11701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11702 /* end confdefs.h. */
11703 #undef $ac_tr_decl
11704 #define $ac_tr_decl 1
11706 #include "ansidecl.h"
11707 #include "system.h"
11708 #include <signal.h>
11712 main ()
11714 #ifndef $ac_func
11715 char *(*pfn) = (char *(*)) $ac_func ;
11716 #endif
11718 return 0;
11720 _ACEOF
11721 if ac_fn_cxx_try_compile "$LINENO"; then :
11722 eval "gcc_cv_have_decl_$ac_func=yes"
11723 else
11724 eval "gcc_cv_have_decl_$ac_func=no"
11726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11729 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11731 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11732 #define $ac_tr_decl 1
11733 _ACEOF
11735 else
11736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11737 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11738 #define $ac_tr_decl 0
11739 _ACEOF
11743 done
11746 # More time-related stuff.
11747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
11748 $as_echo_n "checking for struct tms... " >&6; }
11749 if ${ac_cv_struct_tms+:} false; then :
11750 $as_echo_n "(cached) " >&6
11751 else
11753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11754 /* end confdefs.h. */
11756 #include "ansidecl.h"
11757 #include "system.h"
11758 #ifdef HAVE_SYS_TIMES_H
11759 #include <sys/times.h>
11760 #endif
11763 main ()
11765 struct tms tms;
11767 return 0;
11769 _ACEOF
11770 if ac_fn_cxx_try_compile "$LINENO"; then :
11771 ac_cv_struct_tms=yes
11772 else
11773 ac_cv_struct_tms=no
11775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
11778 $as_echo "$ac_cv_struct_tms" >&6; }
11779 if test $ac_cv_struct_tms = yes; then
11781 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
11785 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
11786 # revisit after autoconf 2.50.
11787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
11788 $as_echo_n "checking for clock_t... " >&6; }
11789 if ${gcc_cv_type_clock_t+:} false; then :
11790 $as_echo_n "(cached) " >&6
11791 else
11793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11794 /* end confdefs.h. */
11796 #include "ansidecl.h"
11797 #include "system.h"
11800 main ()
11802 clock_t x;
11804 return 0;
11806 _ACEOF
11807 if ac_fn_cxx_try_compile "$LINENO"; then :
11808 gcc_cv_type_clock_t=yes
11809 else
11810 gcc_cv_type_clock_t=no
11812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
11815 $as_echo "$gcc_cv_type_clock_t" >&6; }
11816 if test $gcc_cv_type_clock_t = yes; then
11818 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
11822 # Check if F_SETLKW is supported by fcntl.
11823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
11824 $as_echo_n "checking for F_SETLKW... " >&6; }
11825 if ${ac_cv_f_setlkw+:} false; then :
11826 $as_echo_n "(cached) " >&6
11827 else
11829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11830 /* end confdefs.h. */
11832 #include <fcntl.h>
11834 main ()
11837 struct flock fl;
11838 fl.l_whence = 0;
11839 fl.l_start = 0;
11840 fl.l_len = 0;
11841 fl.l_pid = 0;
11842 return fcntl (1, F_SETLKW, &fl);
11844 return 0;
11846 _ACEOF
11847 if ac_fn_cxx_try_compile "$LINENO"; then :
11848 ac_cv_f_setlkw=yes
11849 else
11850 ac_cv_f_setlkw=no
11852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
11855 $as_echo "$ac_cv_f_setlkw" >&6; }
11856 if test $ac_cv_f_setlkw = yes; then
11858 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
11862 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
11863 CFLAGS="$saved_CFLAGS"
11864 CXXFLAGS="$saved_CXXFLAGS"
11866 # mkdir takes a single argument on some systems.
11867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
11868 $as_echo_n "checking if mkdir takes one argument... " >&6; }
11869 if ${gcc_cv_mkdir_takes_one_arg+:} false; then :
11870 $as_echo_n "(cached) " >&6
11871 else
11872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11873 /* end confdefs.h. */
11875 #include <sys/types.h>
11876 #ifdef HAVE_SYS_STAT_H
11877 # include <sys/stat.h>
11878 #endif
11879 #ifdef HAVE_UNISTD_H
11880 # include <unistd.h>
11881 #endif
11882 #ifdef HAVE_DIRECT_H
11883 # include <direct.h>
11884 #endif
11886 main ()
11888 mkdir ("foo", 0);
11890 return 0;
11892 _ACEOF
11893 if ac_fn_cxx_try_compile "$LINENO"; then :
11894 gcc_cv_mkdir_takes_one_arg=no
11895 else
11896 gcc_cv_mkdir_takes_one_arg=yes
11898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
11901 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
11902 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
11904 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
11909 # File extensions
11910 manext='.1'
11911 objext='.o'
11915 # With Setjmp/Longjmp based exception handling.
11916 # Check whether --enable-sjlj-exceptions was given.
11917 if test "${enable_sjlj_exceptions+set}" = set; then :
11918 enableval=$enable_sjlj_exceptions; case $target in
11919 *-*-hpux10*)
11920 if test $enableval != yes; then
11921 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
11922 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
11923 enableval=yes
11926 esac
11927 force_sjlj_exceptions=yes
11928 else
11929 case $target in
11930 *-*-hpux10*)
11931 force_sjlj_exceptions=yes
11932 enableval=yes
11934 lm32*-*-*)
11935 force_sjlj_exceptions=yes
11936 enableval=yes
11939 force_sjlj_exceptions=no
11941 esac
11944 if test $force_sjlj_exceptions = yes; then
11945 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
11947 cat >>confdefs.h <<_ACEOF
11948 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
11949 _ACEOF
11953 # --------------------------------------------------------
11954 # Build, host, and target specific configuration fragments
11955 # --------------------------------------------------------
11957 # Collect build-machine-specific information.
11958 . ${srcdir}/config.build || exit 1
11960 # Collect host-machine-specific information.
11961 . ${srcdir}/config.host || exit 1
11963 target_gtfiles=
11965 # Collect target-machine-specific information.
11966 . ${srcdir}/config.gcc || exit 1
11968 extra_objs="${host_extra_objs} ${extra_objs}"
11969 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
11971 # Default the target-machine variables that were not explicitly set.
11972 if test x"$tm_file" = x
11973 then tm_file=$cpu_type/$cpu_type.h; fi
11975 if test x"$extra_headers" = x
11976 then extra_headers=; fi
11978 if test x$md_file = x
11979 then md_file=$cpu_type/$cpu_type.md; fi
11981 if test x$out_file = x
11982 then out_file=$cpu_type/$cpu_type.c; fi
11984 if test x"$tmake_file" = x
11985 then tmake_file=$cpu_type/t-$cpu_type
11988 # Support --enable-initfini-array.
11989 if test x$enable_initfini_array != xno; then
11990 tm_file="${tm_file} initfini-array.h"
11993 if test x"$dwarf2" = xyes
11994 then tm_file="$tm_file tm-dwarf2.h"
11997 # Say what files are being used for the output code and MD file.
11998 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11999 echo "Using \`$srcdir/config/$md_file' as machine description file."
12001 # If any of the xm_file variables contain nonexistent files, warn
12002 # about them and drop them.
12005 for x in $build_xm_file; do
12006 if test -f $srcdir/config/$x
12007 then bx="$bx $x"
12008 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
12009 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12011 done
12012 build_xm_file="$bx"
12015 for x in $host_xm_file; do
12016 if test -f $srcdir/config/$x
12017 then hx="$hx $x"
12018 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
12019 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12021 done
12022 host_xm_file="$hx"
12025 for x in $xm_file; do
12026 if test -f $srcdir/config/$x
12027 then tx="$tx $x"
12028 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
12029 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12031 done
12032 xm_file="$tx"
12034 count=a
12035 for f in $tm_file; do
12036 count=${count}x
12037 done
12038 if test $count = ax; then
12039 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
12040 else
12041 echo "Using the following target machine macro files:"
12042 for f in $tm_file; do
12043 echo " $srcdir/config/$f"
12044 done
12047 if test x$use_long_long_for_widest_fast_int = xyes; then
12049 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
12053 gnu_ld_bool=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
12055 cat >>confdefs.h <<_ACEOF
12056 #define HAVE_GNU_LD $gnu_ld_bool
12057 _ACEOF
12060 gnu_as_bool=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
12062 cat >>confdefs.h <<_ACEOF
12063 #define HAVE_GNU_AS $gnu_as_bool
12064 _ACEOF
12067 count=a
12068 for f in $host_xm_file; do
12069 count=${count}x
12070 done
12071 if test $count = a; then
12073 elif test $count = ax; then
12074 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
12075 else
12076 echo "Using the following host machine macro files:"
12077 for f in $host_xm_file; do
12078 echo " $srcdir/config/$f"
12079 done
12081 echo "Using ${out_host_hook_obj} for host machine hooks."
12083 if test "$host_xm_file" != "$build_xm_file"; then
12084 count=a
12085 for f in $build_xm_file; do
12086 count=${count}x
12087 done
12088 if test $count = a; then
12090 elif test $count = ax; then
12091 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
12092 else
12093 echo "Using the following build machine macro files:"
12094 for f in $build_xm_file; do
12095 echo " $srcdir/config/$f"
12096 done
12100 if test -n "$configured_native_system_header_dir"; then
12101 native_system_header_dir=$configured_native_system_header_dir
12103 NATIVE_SYSTEM_HEADER_DIR="$native_system_header_dir"
12106 case ${host} in
12107 powerpc*-*-darwin*)
12108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
12109 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
12110 if ${gcc_cv_mcontext_underscores+:} false; then :
12111 $as_echo_n "(cached) " >&6
12112 else
12113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12114 /* end confdefs.h. */
12116 #include <sys/cdefs.h>
12117 #include <sys/signal.h>
12118 #include <ucontext.h>
12119 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
12121 _ACEOF
12122 if ac_fn_cxx_try_compile "$LINENO"; then :
12123 gcc_cv_mcontext_underscores=no
12124 else
12125 gcc_cv_mcontext_underscores=yes
12127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
12130 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
12131 if test $gcc_cv_mcontext_underscores = yes; then
12133 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
12137 esac
12139 # ---------
12140 # Threading
12141 # ---------
12143 # Check if a valid thread package
12144 case ${enable_threads} in
12145 "" | no)
12146 # No threads
12147 target_thread_file='single'
12149 yes)
12150 # default
12151 target_thread_file='single'
12153 aix | dce | lynx | mipssde | posix | rtems | \
12154 single | tpf | vxworks | win32)
12155 target_thread_file=${enable_threads}
12158 echo "${enable_threads} is an unknown thread package" 1>&2
12159 exit 1
12161 esac
12163 if test x${thread_file} = x; then
12164 # No thread file set by target-specific clauses in config.gcc,
12165 # so use file chosen by default logic above
12166 thread_file=${target_thread_file}
12169 # --------
12170 # UNSORTED
12171 # --------
12173 use_cxa_atexit=no
12174 if test x$enable___cxa_atexit = xyes || \
12175 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
12176 if test x$host = x$target; then
12177 case $host in
12178 # mingw32 doesn't have __cxa_atexit but uses atexit registration
12179 # keyed to flag_use_cxa_atexit
12180 *-*-mingw32*)
12181 use_cxa_atexit=yes
12183 powerpc-ibm-aix*)
12184 use_cxa_atexit=yes
12187 ac_fn_cxx_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
12188 if test "x$ac_cv_func___cxa_atexit" = xyes; then :
12189 use_cxa_atexit=yes
12190 else
12191 echo "__cxa_atexit can't be enabled on this target"
12195 esac
12196 else
12197 # We can't check for __cxa_atexit when building a cross, so assume
12198 # it is available
12199 use_cxa_atexit=yes
12201 if test x$use_cxa_atexit = xyes; then
12203 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
12208 # Look for a file containing extra machine modes.
12209 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
12210 extra_modes_file='$(srcdir)'/config/${extra_modes}
12213 cat >>confdefs.h <<_ACEOF
12214 #define EXTRA_MODES_FILE "config/$extra_modes"
12215 _ACEOF
12219 # Convert extra_options into a form suitable for Makefile use.
12220 extra_opt_files=
12221 all_opt_files=
12222 for f in $extra_options; do
12223 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
12224 all_opt_files="$all_opt_files $srcdir/config/$f"
12225 done
12228 # auto-host.h is the file containing items generated by autoconf and is
12229 # the first file included by config.h.
12230 # If host=build, it is correct to have bconfig include auto-host.h
12231 # as well. If host!=build, we are in error and need to do more
12232 # work to find out the build config parameters.
12233 if test x$host = x$build
12234 then
12235 build_auto=auto-host.h
12236 HAVE_AUTO_BUILD='# '
12237 else
12238 # We create a subdir, then run autoconf in the subdir.
12239 # To prevent recursion we set host and build for the new
12240 # invocation of configure to the build for this invocation
12241 # of configure.
12242 tempdir=build.$$
12243 rm -rf $tempdir
12244 mkdir $tempdir
12245 cd $tempdir
12246 case ${srcdir} in
12247 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
12248 *) realsrcdir=../${srcdir};;
12249 esac
12250 # Clearing GMPINC is necessary to prevent host headers being
12251 # used by the build compiler. Defining GENERATOR_FILE stops
12252 # system.h from including gmp.h.
12253 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
12254 CXX="${CXX_FOR_BUILD}" CXXFLAGS="${CXXFLAGS_FOR_BUILD}" \
12255 LD="${LD_FOR_BUILD}" LDFLAGS="${LDFLAGS_FOR_BUILD}" \
12256 GMPINC="" CPPFLAGS="${CPPFLAGS} -DGENERATOR_FILE" \
12257 ${realsrcdir}/configure \
12258 --enable-languages=${enable_languages-all} \
12259 ${enable_obsolete+--enable-obsolete="$enable_obsolete"} \
12260 ${enable_option_checking+--enable-option-checking="$enable_option_checking"} \
12261 --target=$target_alias --host=$build_alias \
12262 --build=$build_alias || exit # retaining $tempdir
12264 # We just finished tests for the build machine, so rename
12265 # the file auto-build.h in the gcc directory.
12266 mv auto-host.h ../auto-build.h
12267 cd ..
12268 rm -rf $tempdir
12269 build_auto=auto-build.h
12270 HAVE_AUTO_BUILD=
12275 tm_file="${tm_file} defaults.h"
12276 tm_p_file="${tm_p_file} tm-preds.h"
12277 tm_d_file="${tm_d_file} defaults.h"
12278 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
12279 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
12280 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
12281 # put this back in temporarily.
12282 xm_file="auto-host.h ansidecl.h ${xm_file}"
12284 # --------
12285 # UNSORTED
12286 # --------
12288 # Compile in configure arguments.
12289 if test -f configargs.h ; then
12290 # Being re-configured.
12291 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
12292 gcc_reconf_arguments=`echo "$gcc_config_arguments" | sed -e 's/^.*\( : (reconfigured) .*$\)/\1/'`
12293 if [ "$gcc_reconf_arguments" != " : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS" ]; then
12294 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
12296 else
12297 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
12300 # Double all backslashes and backslash all quotes to turn
12301 # gcc_config_arguments into a C string.
12302 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
12303 $gcc_config_arguments
12305 gcc_config_arguments_str=`cat conftest.out`
12306 rm -f conftest.out
12308 cat > configargs.h <<EOF
12309 /* Generated automatically. */
12310 static const char configuration_arguments[] = "$gcc_config_arguments_str";
12311 static const char thread_model[] = "$thread_file";
12313 static const struct {
12314 const char *name, *value;
12315 } configure_default_options[] = $configure_default_options;
12318 gcc_BASEVER=`cat $srcdir/BASE-VER`
12319 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
12320 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
12321 if test -f $srcdir/REVISION ; then
12322 gcc_REVISION=`cat $srcdir/REVISION`
12323 else
12324 gcc_REVISION=""
12326 cat > plugin-version.h <<EOF
12327 #include "configargs.h"
12329 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
12330 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
12331 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
12332 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
12334 static char basever[] = "$gcc_BASEVER";
12335 static char datestamp[] = "$gcc_DATESTAMP";
12336 static char devphase[] = "$gcc_DEVPHASE";
12337 static char revision[] = "$gcc_REVISION";
12339 /* FIXME plugins: We should make the version information more precise.
12340 One way to do is to add a checksum. */
12342 static struct plugin_gcc_version gcc_version = {basever, datestamp,
12343 devphase, revision,
12344 configuration_arguments};
12347 # Determine what GCC version number to use in filesystem paths.
12349 get_gcc_base_ver="cat"
12351 # Check whether --with-gcc-major-version-only was given.
12352 if test "${with_gcc_major_version_only+set}" = set; then :
12353 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
12354 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
12362 # Internationalization
12363 # If we haven't got the data from the intl directory,
12364 # assume NLS is disabled.
12365 USE_NLS=no
12366 LIBINTL=
12367 LIBINTL_DEP=
12368 INCINTL=
12369 XGETTEXT=
12370 GMSGFMT=
12371 POSUB=
12373 if test -f ../intl/config.intl; then
12374 . ../intl/config.intl
12376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
12377 $as_echo_n "checking whether NLS is requested... " >&6; }
12378 if test x"$USE_NLS" != xyes; then
12379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12380 $as_echo "no" >&6; }
12381 else
12382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12383 $as_echo "yes" >&6; }
12385 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
12388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
12389 $as_echo_n "checking for catalogs to be installed... " >&6; }
12390 # Look for .po and .gmo files in the source directory.
12391 CATALOGS=
12392 XLINGUAS=
12393 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
12394 # If there aren't any .gmo files the shell will give us the
12395 # literal string "../path/to/srcdir/po/*.gmo" which has to be
12396 # weeded out.
12397 case "$cat" in *\**)
12398 continue;;
12399 esac
12400 # The quadruple backslash is collapsed to a double backslash
12401 # by the backticks, then collapsed again by the double quotes,
12402 # leaving us with one backslash in the sed expression (right
12403 # before the dot that mustn't act as a wildcard).
12404 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
12405 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
12406 # The user is allowed to set LINGUAS to a list of languages to
12407 # install catalogs for. If it's empty that means "all of them."
12408 if test "x$LINGUAS" = x; then
12409 CATALOGS="$CATALOGS $cat"
12410 XLINGUAS="$XLINGUAS $lang"
12411 else
12412 case "$LINGUAS" in *$lang*)
12413 CATALOGS="$CATALOGS $cat"
12414 XLINGUAS="$XLINGUAS $lang"
12416 esac
12418 done
12419 LINGUAS="$XLINGUAS"
12420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
12421 $as_echo "$LINGUAS" >&6; }
12424 DATADIRNAME=share
12426 INSTOBJEXT=.mo
12428 GENCAT=gencat
12430 CATOBJEXT=.gmo
12434 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
12435 # -liconv on the link line twice.
12436 case "$LIBINTL" in *$LIBICONV*)
12437 LIBICONV= ;;
12438 esac
12440 # Check whether --enable-secureplt was given.
12441 if test "${enable_secureplt+set}" = set; then :
12442 enableval=$enable_secureplt;
12446 # Check whether --enable-mingw-wildcard was given.
12447 if test "${enable_mingw_wildcard+set}" = set; then :
12448 enableval=$enable_mingw_wildcard;
12449 else
12450 enable_mingw_wildcard=platform
12453 if test x"$enable_mingw_wildcard" != xplatform ; then :
12455 cat >>confdefs.h <<_ACEOF
12456 #define MINGW_DOWILDCARD $(test x"$enable_mingw_wildcard" = xno; echo $?)
12457 _ACEOF
12461 # Check whether --enable-large-address-aware was given.
12462 if test "${enable_large_address_aware+set}" = set; then :
12463 enableval=$enable_large_address_aware;
12466 if test x"$enable_large_address_aware" = xyes; then :
12468 $as_echo "#define MINGW_DEFAULT_LARGE_ADDR_AWARE 1" >>confdefs.h
12472 # Check whether --enable-leading-mingw64-underscores was given.
12473 if test "${enable_leading_mingw64_underscores+set}" = set; then :
12474 enableval=$enable_leading_mingw64_underscores;
12477 if test x"$enable_leading_mingw64_underscores" = xyes ; then :
12479 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
12483 # Check whether --enable-cld was given.
12484 if test "${enable_cld+set}" = set; then :
12485 enableval=$enable_cld;
12486 else
12487 enable_cld=no
12491 # Check whether --enable-frame-pointer was given.
12492 if test "${enable_frame_pointer+set}" = set; then :
12493 enableval=$enable_frame_pointer;
12494 else
12496 case $target_os in
12497 linux* | gnu* | darwin[8912]* | cygwin* | mingw*)
12498 # Enable -fomit-frame-pointer by default for these systems with DWARF2.
12499 enable_frame_pointer=no
12502 enable_frame_pointer=yes
12504 esac
12509 case $target in
12510 i[34567]86-*-* | x86_64-*-*)
12511 if test "x$enable_cld" = xyes; then
12512 tm_defines="${tm_defines} USE_IX86_CLD=1"
12514 if test "x$enable_frame_pointer" = xyes; then
12515 tm_defines="${tm_defines} USE_IX86_FRAME_POINTER=1"
12518 esac
12520 # Windows32 Registry support for specifying GCC installation paths.
12521 # Check whether --enable-win32-registry was given.
12522 if test "${enable_win32_registry+set}" = set; then :
12523 enableval=$enable_win32_registry;
12527 case $host_os in
12528 win32 | pe | cygwin* | mingw32*)
12529 if test "x$enable_win32_registry" != xno; then
12530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
12531 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
12532 if ${ac_cv_search_RegOpenKeyExA+:} false; then :
12533 $as_echo_n "(cached) " >&6
12534 else
12535 ac_func_search_save_LIBS=$LIBS
12536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12537 /* end confdefs.h. */
12539 /* Override any GCC internal prototype to avoid an error.
12540 Use char because int might match the return type of a GCC
12541 builtin and then its argument prototype would still apply. */
12542 #ifdef __cplusplus
12543 extern "C"
12544 #endif
12545 char RegOpenKeyExA ();
12547 main ()
12549 return RegOpenKeyExA ();
12551 return 0;
12553 _ACEOF
12554 for ac_lib in '' advapi32; do
12555 if test -z "$ac_lib"; then
12556 ac_res="none required"
12557 else
12558 ac_res=-l$ac_lib
12559 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12561 if ac_fn_cxx_try_link "$LINENO"; then :
12562 ac_cv_search_RegOpenKeyExA=$ac_res
12564 rm -f core conftest.err conftest.$ac_objext \
12565 conftest$ac_exeext
12566 if ${ac_cv_search_RegOpenKeyExA+:} false; then :
12567 break
12569 done
12570 if ${ac_cv_search_RegOpenKeyExA+:} false; then :
12572 else
12573 ac_cv_search_RegOpenKeyExA=no
12575 rm conftest.$ac_ext
12576 LIBS=$ac_func_search_save_LIBS
12578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
12579 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
12580 ac_res=$ac_cv_search_RegOpenKeyExA
12581 if test "$ac_res" != no; then :
12582 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12584 else
12585 enable_win32_registry=no
12590 if test "x$enable_win32_registry" != xno; then
12592 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
12595 if test "x$enable_win32_registry" != xyes \
12596 && test "x$enable_win32_registry" != x; then
12598 cat >>confdefs.h <<_ACEOF
12599 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
12600 _ACEOF
12605 esac
12607 # Get an absolute path to the GCC top-level source directory
12608 holddir=`${PWDCMD-pwd}`
12609 cd $srcdir
12610 topdir=`${PWDCMD-pwd}`
12611 cd $holddir
12613 # Conditionalize the makefile for this host machine.
12614 xmake_file=
12615 for f in ${host_xmake_file}
12617 if test -f ${srcdir}/config/$f
12618 then
12619 xmake_file="${xmake_file} \$(srcdir)/config/$f"
12621 done
12623 # Conditionalize the makefile for this target machine.
12624 tmake_file_=
12625 for f in ${tmake_file}
12627 if test -f ${srcdir}/config/$f
12628 then
12629 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
12631 done
12632 tmake_file="${tmake_file_}${omp_device_property_tmake_file}"
12634 out_object_file=`basename $out_file .c`.o
12635 common_out_object_file=`basename $common_out_file .c`.o
12637 tm_file_list="options.h"
12638 tm_include_list="options.h insn-constants.h"
12639 for f in $tm_file; do
12640 case $f in
12641 ./* )
12642 f=`echo $f | sed 's/^..//'`
12643 tm_file_list="${tm_file_list} $f"
12644 tm_include_list="${tm_include_list} $f"
12646 defaults.h )
12647 tm_file_list="${tm_file_list} \$(srcdir)/$f"
12648 tm_include_list="${tm_include_list} $f"
12651 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
12652 tm_include_list="${tm_include_list} config/$f"
12654 esac
12655 done
12657 tm_p_file_list=
12658 tm_p_include_list=
12659 for f in $tm_p_file; do
12660 case $f in
12661 tm-preds.h )
12662 tm_p_file_list="${tm_p_file_list} $f"
12663 tm_p_include_list="${tm_p_include_list} $f"
12666 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
12667 tm_p_include_list="${tm_p_include_list} config/$f"
12668 esac
12669 done
12671 tm_d_file_list=
12672 tm_d_include_list="options.h insn-constants.h"
12673 for f in $tm_d_file; do
12674 case $f in
12675 defaults.h )
12676 tm_d_file_list="${tm_d_file_list} \$(srcdir)/$f"
12677 tm_d_include_list="${tm_d_include_list} $f"
12680 tm_d_file_list="${tm_d_file_list} \$(srcdir)/config/$f"
12681 tm_d_include_list="${tm_d_include_list} config/$f"
12683 esac
12684 done
12686 xm_file_list=
12687 xm_include_list=
12688 for f in $xm_file; do
12689 case $f in
12690 ansidecl.h )
12691 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
12692 xm_include_list="${xm_include_list} $f"
12694 auto-host.h )
12695 xm_file_list="${xm_file_list} $f"
12696 xm_include_list="${xm_include_list} $f"
12699 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
12700 xm_include_list="${xm_include_list} config/$f"
12702 esac
12703 done
12705 host_xm_file_list=
12706 host_xm_include_list=
12707 for f in $host_xm_file; do
12708 case $f in
12709 ansidecl.h )
12710 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
12711 host_xm_include_list="${host_xm_include_list} $f"
12713 auto-host.h )
12714 host_xm_file_list="${host_xm_file_list} $f"
12715 host_xm_include_list="${host_xm_include_list} $f"
12718 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
12719 host_xm_include_list="${host_xm_include_list} config/$f"
12721 esac
12722 done
12724 build_xm_file_list=
12725 for f in $build_xm_file; do
12726 case $f in
12727 ansidecl.h )
12728 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
12729 build_xm_include_list="${build_xm_include_list} $f"
12731 auto-build.h | auto-host.h )
12732 build_xm_file_list="${build_xm_file_list} $f"
12733 build_xm_include_list="${build_xm_include_list} $f"
12736 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
12737 build_xm_include_list="${build_xm_include_list} config/$f"
12739 esac
12740 done
12742 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
12743 # cross-compiler which does not use the native headers and libraries.
12744 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
12745 CROSS=
12746 ALL=all.internal
12747 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
12748 BUILD_SYSTEM_HEADER_DIR=$SYSTEM_HEADER_DIR
12750 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x ||
12751 test x$build != x$host || test "x$with_build_sysroot" != x; then
12752 if test "x$with_build_sysroot" != x; then
12753 BUILD_SYSTEM_HEADER_DIR=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
12754 else
12755 BUILD_SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
12758 if test x$host != x$target
12759 then
12760 CROSS="-DCROSS_DIRECTORY_STRUCTURE"
12761 ALL=all.cross
12762 SYSTEM_HEADER_DIR=$BUILD_SYSTEM_HEADER_DIR
12763 elif test "x$TARGET_SYSTEM_ROOT" != x; then
12764 SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
12767 if test "x$with_build_sysroot" != "x"; then
12768 target_header_dir="${with_build_sysroot}${native_system_header_dir}"
12769 elif test "x$with_sysroot" = x; then
12770 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-include"
12771 elif test "x$with_sysroot" = xyes; then
12772 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
12773 else
12774 target_header_dir="${with_sysroot}${native_system_header_dir}"
12776 else
12777 target_header_dir=${native_system_header_dir}
12780 # If this is a cross-compiler that does not
12781 # have its own set of headers then define
12782 # inhibit_libc
12784 # If this is using newlib, without having the headers available now,
12785 # then define inhibit_libc in LIBGCC2_CFLAGS.
12786 # This prevents libgcc2 from containing any code which requires libc
12787 # support.
12788 : ${inhibit_libc=false}
12789 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
12790 test x$with_newlib = xyes ; } &&
12791 { test "x$with_headers" = xno || test ! -f "$target_header_dir/stdio.h"; } ; then
12792 inhibit_libc=true
12796 # When building gcc with a cross-compiler, we need to adjust things so
12797 # that the generator programs are still built with the native compiler.
12798 # Also, we cannot run fixincludes.
12800 # These are the normal (build=host) settings:
12801 CC_FOR_BUILD='$(CC)'
12802 CXX_FOR_BUILD='$(CXX)'
12803 BUILD_CFLAGS='$(ALL_CFLAGS)'
12804 BUILD_CXXFLAGS='$(ALL_CXXFLAGS)'
12805 BUILD_LDFLAGS='$(LDFLAGS)'
12806 STMP_FIXINC=stmp-fixinc
12808 BUILD_NO_PIE_CFLAGS='$(NO_PIE_CFLAGS)'
12809 BUILD_NO_PIE_FLAG='$(NO_PIE_FLAG)'
12811 # And these apply if build != host, or we are generating coverage data
12812 if test x$build != x$host || test "x$coverage_flags" != x
12813 then
12814 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
12815 BUILD_CXXFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CXXFLAGS_FOR_BUILD)'
12816 BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
12818 NO_PIE_CFLAGS_FOR_BUILD=${NO_PIE_CFLAGS_FOR_BUILD-${NO_PIE_CFLAGS}}
12819 NO_PIE_FLAG_FOR_BUILD=${NO_PIE_FLAG_FOR_BUILD-${NO_PIE_FLAG}}
12820 BUILD_NO_PIE_CFLAGS='$(NO_PIE_CFLAGS_FOR_BUILD)'
12821 BUILD_NO_PIE_FLAG='$(NO_PIE_FLAG_FOR_BUILD)'
12826 # Expand extra_headers to include complete path.
12827 # This substitutes for lots of t-* files.
12828 extra_headers_list=
12829 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
12830 for file in ${extra_headers} ; do
12831 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
12832 done
12834 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
12835 if test x"$use_gcc_tgmath" = xyes
12836 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
12839 # Define collect2 in Makefile.
12840 case $host_can_use_collect2 in
12841 no) collect2= ;;
12842 *) collect2='collect2$(exeext)' ;;
12843 esac
12846 # Add a definition of USE_COLLECT2 if system wants one.
12847 case $use_collect2 in
12848 no) use_collect2= ;;
12849 "") ;;
12851 host_xm_defines="${host_xm_defines} USE_COLLECT2"
12852 xm_defines="${xm_defines} USE_COLLECT2"
12853 case $host_can_use_collect2 in
12855 as_fn_error $? "collect2 is required but cannot be built on this system" "$LINENO" 5
12857 esac
12859 esac
12862 cat >>confdefs.h <<_ACEOF
12863 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
12864 _ACEOF
12867 # ---------------------------
12868 # Assembler & linker features
12869 # ---------------------------
12871 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
12872 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
12873 # However when ld-new is first executed from the build tree, libtool will
12874 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
12875 # to the build tree. While doing this we need to use the previous-stage
12876 # linker, or we have an infinite loop. The presence of a shell script as
12877 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
12878 # the gcc/collect-ld script. So we need to know how libtool works, or
12879 # exec-tool will fail.
12882 case `pwd` in
12883 *\ * | *\ *)
12884 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
12885 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
12886 esac
12890 macro_version='2.2.7a'
12891 macro_revision='1.3134'
12905 ltmain="$ac_aux_dir/ltmain.sh"
12907 # Backslashify metacharacters that are still active within
12908 # double-quoted strings.
12909 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
12911 # Same as above, but do not quote variable references.
12912 double_quote_subst='s/\(["`\\]\)/\\\1/g'
12914 # Sed substitution to delay expansion of an escaped shell variable in a
12915 # double_quote_subst'ed string.
12916 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
12918 # Sed substitution to delay expansion of an escaped single quote.
12919 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
12921 # Sed substitution to avoid accidental globbing in evaled expressions
12922 no_glob_subst='s/\*/\\\*/g'
12924 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12925 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
12926 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
12928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
12929 $as_echo_n "checking how to print strings... " >&6; }
12930 # Test print first, because it will be a builtin if present.
12931 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
12932 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
12933 ECHO='print -r --'
12934 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
12935 ECHO='printf %s\n'
12936 else
12937 # Use this function as a fallback that always works.
12938 func_fallback_echo ()
12940 eval 'cat <<_LTECHO_EOF
12942 _LTECHO_EOF'
12944 ECHO='func_fallback_echo'
12947 # func_echo_all arg...
12948 # Invoke $ECHO with all args, space-separated.
12949 func_echo_all ()
12951 $ECHO ""
12954 case "$ECHO" in
12955 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
12956 $as_echo "printf" >&6; } ;;
12957 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
12958 $as_echo "print -r" >&6; } ;;
12959 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
12960 $as_echo "cat" >&6; } ;;
12961 esac
12976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12977 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12978 if ${ac_cv_path_SED+:} false; then :
12979 $as_echo_n "(cached) " >&6
12980 else
12981 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12982 for ac_i in 1 2 3 4 5 6 7; do
12983 ac_script="$ac_script$as_nl$ac_script"
12984 done
12985 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12986 { ac_script=; unset ac_script;}
12987 if test -z "$SED"; then
12988 ac_path_SED_found=false
12989 # Loop through the user's path and test for each of PROGNAME-LIST
12990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12991 for as_dir in $PATH
12993 IFS=$as_save_IFS
12994 test -z "$as_dir" && as_dir=.
12995 for ac_prog in sed gsed; do
12996 for ac_exec_ext in '' $ac_executable_extensions; do
12997 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
12998 as_fn_executable_p "$ac_path_SED" || continue
12999 # Check for GNU ac_path_SED and select it if it is found.
13000 # Check for GNU $ac_path_SED
13001 case `"$ac_path_SED" --version 2>&1` in
13002 *GNU*)
13003 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
13005 ac_count=0
13006 $as_echo_n 0123456789 >"conftest.in"
13007 while :
13009 cat "conftest.in" "conftest.in" >"conftest.tmp"
13010 mv "conftest.tmp" "conftest.in"
13011 cp "conftest.in" "conftest.nl"
13012 $as_echo '' >> "conftest.nl"
13013 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
13014 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13015 as_fn_arith $ac_count + 1 && ac_count=$as_val
13016 if test $ac_count -gt ${ac_path_SED_max-0}; then
13017 # Best one so far, save it but keep looking for a better one
13018 ac_cv_path_SED="$ac_path_SED"
13019 ac_path_SED_max=$ac_count
13021 # 10*(2^10) chars as input seems more than enough
13022 test $ac_count -gt 10 && break
13023 done
13024 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13025 esac
13027 $ac_path_SED_found && break 3
13028 done
13029 done
13030 done
13031 IFS=$as_save_IFS
13032 if test -z "$ac_cv_path_SED"; then
13033 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
13035 else
13036 ac_cv_path_SED=$SED
13040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
13041 $as_echo "$ac_cv_path_SED" >&6; }
13042 SED="$ac_cv_path_SED"
13043 rm -f conftest.sed
13045 test -z "$SED" && SED=sed
13046 Xsed="$SED -e 1s/^X//"
13058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
13059 $as_echo_n "checking for fgrep... " >&6; }
13060 if ${ac_cv_path_FGREP+:} false; then :
13061 $as_echo_n "(cached) " >&6
13062 else
13063 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
13064 then ac_cv_path_FGREP="$GREP -F"
13065 else
13066 if test -z "$FGREP"; then
13067 ac_path_FGREP_found=false
13068 # Loop through the user's path and test for each of PROGNAME-LIST
13069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13070 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
13072 IFS=$as_save_IFS
13073 test -z "$as_dir" && as_dir=.
13074 for ac_prog in fgrep; do
13075 for ac_exec_ext in '' $ac_executable_extensions; do
13076 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
13077 as_fn_executable_p "$ac_path_FGREP" || continue
13078 # Check for GNU ac_path_FGREP and select it if it is found.
13079 # Check for GNU $ac_path_FGREP
13080 case `"$ac_path_FGREP" --version 2>&1` in
13081 *GNU*)
13082 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
13084 ac_count=0
13085 $as_echo_n 0123456789 >"conftest.in"
13086 while :
13088 cat "conftest.in" "conftest.in" >"conftest.tmp"
13089 mv "conftest.tmp" "conftest.in"
13090 cp "conftest.in" "conftest.nl"
13091 $as_echo 'FGREP' >> "conftest.nl"
13092 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
13093 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13094 as_fn_arith $ac_count + 1 && ac_count=$as_val
13095 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
13096 # Best one so far, save it but keep looking for a better one
13097 ac_cv_path_FGREP="$ac_path_FGREP"
13098 ac_path_FGREP_max=$ac_count
13100 # 10*(2^10) chars as input seems more than enough
13101 test $ac_count -gt 10 && break
13102 done
13103 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13104 esac
13106 $ac_path_FGREP_found && break 3
13107 done
13108 done
13109 done
13110 IFS=$as_save_IFS
13111 if test -z "$ac_cv_path_FGREP"; then
13112 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
13114 else
13115 ac_cv_path_FGREP=$FGREP
13120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
13121 $as_echo "$ac_cv_path_FGREP" >&6; }
13122 FGREP="$ac_cv_path_FGREP"
13125 test -z "$GREP" && GREP=grep
13145 # Check whether --with-gnu-ld was given.
13146 if test "${with_gnu_ld+set}" = set; then :
13147 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13148 else
13149 with_gnu_ld=no
13152 ac_prog=ld
13153 if test "$GCC" = yes; then
13154 # Check if gcc -print-prog-name=ld gives a path.
13155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13156 $as_echo_n "checking for ld used by $CC... " >&6; }
13157 case $host in
13158 *-*-mingw*)
13159 # gcc leaves a trailing carriage return which upsets mingw
13160 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13162 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13163 esac
13164 case $ac_prog in
13165 # Accept absolute paths.
13166 [\\/]* | ?:[\\/]*)
13167 re_direlt='/[^/][^/]*/\.\./'
13168 # Canonicalize the pathname of ld
13169 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13170 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13171 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13172 done
13173 test -z "$LD" && LD="$ac_prog"
13176 # If it fails, then pretend we aren't using GCC.
13177 ac_prog=ld
13180 # If it is relative, then search for the first ld in PATH.
13181 with_gnu_ld=unknown
13183 esac
13184 elif test "$with_gnu_ld" = yes; then
13185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13186 $as_echo_n "checking for GNU ld... " >&6; }
13187 else
13188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13189 $as_echo_n "checking for non-GNU ld... " >&6; }
13191 if ${lt_cv_path_LD+:} false; then :
13192 $as_echo_n "(cached) " >&6
13193 else
13194 if test -z "$LD"; then
13195 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13196 for ac_dir in $PATH; do
13197 IFS="$lt_save_ifs"
13198 test -z "$ac_dir" && ac_dir=.
13199 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13200 lt_cv_path_LD="$ac_dir/$ac_prog"
13201 # Check to see if the program is GNU ld. I'd rather use --version,
13202 # but apparently some variants of GNU ld only accept -v.
13203 # Break only if it was the GNU/non-GNU ld that we prefer.
13204 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13205 *GNU* | *'with BFD'*)
13206 test "$with_gnu_ld" != no && break
13209 test "$with_gnu_ld" != yes && break
13211 esac
13213 done
13214 IFS="$lt_save_ifs"
13215 else
13216 lt_cv_path_LD="$LD" # Let the user override the test with a path.
13220 LD="$lt_cv_path_LD"
13221 if test -n "$LD"; then
13222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13223 $as_echo "$LD" >&6; }
13224 else
13225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13226 $as_echo "no" >&6; }
13228 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13230 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13231 if ${lt_cv_prog_gnu_ld+:} false; then :
13232 $as_echo_n "(cached) " >&6
13233 else
13234 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13235 case `$LD -v 2>&1 </dev/null` in
13236 *GNU* | *'with BFD'*)
13237 lt_cv_prog_gnu_ld=yes
13240 lt_cv_prog_gnu_ld=no
13242 esac
13244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13245 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13246 with_gnu_ld=$lt_cv_prog_gnu_ld
13256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
13257 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
13258 if ${lt_cv_path_NM+:} false; then :
13259 $as_echo_n "(cached) " >&6
13260 else
13261 if test -n "$NM"; then
13262 # Let the user override the test.
13263 lt_cv_path_NM="$NM"
13264 else
13265 lt_nm_to_check="${ac_tool_prefix}nm"
13266 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
13267 lt_nm_to_check="$lt_nm_to_check nm"
13269 for lt_tmp_nm in $lt_nm_to_check; do
13270 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13271 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
13272 IFS="$lt_save_ifs"
13273 test -z "$ac_dir" && ac_dir=.
13274 tmp_nm="$ac_dir/$lt_tmp_nm"
13275 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
13276 # Check to see if the nm accepts a BSD-compat flag.
13277 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
13278 # nm: unknown option "B" ignored
13279 # Tru64's nm complains that /dev/null is an invalid object file
13280 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
13281 */dev/null* | *'Invalid file or object type'*)
13282 lt_cv_path_NM="$tmp_nm -B"
13283 break
13286 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
13287 */dev/null*)
13288 lt_cv_path_NM="$tmp_nm -p"
13289 break
13292 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
13293 continue # so that we can try to find one that supports BSD flags
13295 esac
13297 esac
13299 done
13300 IFS="$lt_save_ifs"
13301 done
13302 : ${lt_cv_path_NM=no}
13305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
13306 $as_echo "$lt_cv_path_NM" >&6; }
13307 if test "$lt_cv_path_NM" != "no"; then
13308 NM="$lt_cv_path_NM"
13309 else
13310 # Didn't find any BSD compatible name lister, look for dumpbin.
13311 if test -n "$DUMPBIN"; then :
13312 # Let the user override the test.
13313 else
13314 if test -n "$ac_tool_prefix"; then
13315 for ac_prog in dumpbin "link -dump"
13317 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13318 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13320 $as_echo_n "checking for $ac_word... " >&6; }
13321 if ${ac_cv_prog_DUMPBIN+:} false; then :
13322 $as_echo_n "(cached) " >&6
13323 else
13324 if test -n "$DUMPBIN"; then
13325 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
13326 else
13327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13328 for as_dir in $PATH
13330 IFS=$as_save_IFS
13331 test -z "$as_dir" && as_dir=.
13332 for ac_exec_ext in '' $ac_executable_extensions; do
13333 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13334 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
13335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13336 break 2
13338 done
13339 done
13340 IFS=$as_save_IFS
13344 DUMPBIN=$ac_cv_prog_DUMPBIN
13345 if test -n "$DUMPBIN"; then
13346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
13347 $as_echo "$DUMPBIN" >&6; }
13348 else
13349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13350 $as_echo "no" >&6; }
13354 test -n "$DUMPBIN" && break
13355 done
13357 if test -z "$DUMPBIN"; then
13358 ac_ct_DUMPBIN=$DUMPBIN
13359 for ac_prog in dumpbin "link -dump"
13361 # Extract the first word of "$ac_prog", so it can be a program name with args.
13362 set dummy $ac_prog; ac_word=$2
13363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13364 $as_echo_n "checking for $ac_word... " >&6; }
13365 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
13366 $as_echo_n "(cached) " >&6
13367 else
13368 if test -n "$ac_ct_DUMPBIN"; then
13369 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
13370 else
13371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13372 for as_dir in $PATH
13374 IFS=$as_save_IFS
13375 test -z "$as_dir" && as_dir=.
13376 for ac_exec_ext in '' $ac_executable_extensions; do
13377 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13378 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
13379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13380 break 2
13382 done
13383 done
13384 IFS=$as_save_IFS
13388 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
13389 if test -n "$ac_ct_DUMPBIN"; then
13390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
13391 $as_echo "$ac_ct_DUMPBIN" >&6; }
13392 else
13393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13394 $as_echo "no" >&6; }
13398 test -n "$ac_ct_DUMPBIN" && break
13399 done
13401 if test "x$ac_ct_DUMPBIN" = x; then
13402 DUMPBIN=":"
13403 else
13404 case $cross_compiling:$ac_tool_warned in
13405 yes:)
13406 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13407 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13408 ac_tool_warned=yes ;;
13409 esac
13410 DUMPBIN=$ac_ct_DUMPBIN
13414 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
13415 *COFF*)
13416 DUMPBIN="$DUMPBIN -symbols"
13419 DUMPBIN=:
13421 esac
13424 if test "$DUMPBIN" != ":"; then
13425 NM="$DUMPBIN"
13428 test -z "$NM" && NM=nm
13435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
13436 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
13437 if ${lt_cv_nm_interface+:} false; then :
13438 $as_echo_n "(cached) " >&6
13439 else
13440 lt_cv_nm_interface="BSD nm"
13441 echo "int some_variable = 0;" > conftest.$ac_ext
13442 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
13443 (eval "$ac_compile" 2>conftest.err)
13444 cat conftest.err >&5
13445 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
13446 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
13447 cat conftest.err >&5
13448 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
13449 cat conftest.out >&5
13450 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
13451 lt_cv_nm_interface="MS dumpbin"
13453 rm -f conftest*
13455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
13456 $as_echo "$lt_cv_nm_interface" >&6; }
13458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
13459 $as_echo_n "checking whether ln -s works... " >&6; }
13460 LN_S=$as_ln_s
13461 if test "$LN_S" = "ln -s"; then
13462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13463 $as_echo "yes" >&6; }
13464 else
13465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
13466 $as_echo "no, using $LN_S" >&6; }
13469 # find the maximum length of command line arguments
13470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
13471 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
13472 if ${lt_cv_sys_max_cmd_len+:} false; then :
13473 $as_echo_n "(cached) " >&6
13474 else
13476 teststring="ABCD"
13478 case $build_os in
13479 msdosdjgpp*)
13480 # On DJGPP, this test can blow up pretty badly due to problems in libc
13481 # (any single argument exceeding 2000 bytes causes a buffer overrun
13482 # during glob expansion). Even if it were fixed, the result of this
13483 # check would be larger than it should be.
13484 lt_cv_sys_max_cmd_len=12288; # 12K is about right
13487 gnu*)
13488 # Under GNU Hurd, this test is not required because there is
13489 # no limit to the length of command line arguments.
13490 # Libtool will interpret -1 as no limit whatsoever
13491 lt_cv_sys_max_cmd_len=-1;
13494 cygwin* | mingw* | cegcc*)
13495 # On Win9x/ME, this test blows up -- it succeeds, but takes
13496 # about 5 minutes as the teststring grows exponentially.
13497 # Worse, since 9x/ME are not pre-emptively multitasking,
13498 # you end up with a "frozen" computer, even though with patience
13499 # the test eventually succeeds (with a max line length of 256k).
13500 # Instead, let's just punt: use the minimum linelength reported by
13501 # all of the supported platforms: 8192 (on NT/2K/XP).
13502 lt_cv_sys_max_cmd_len=8192;
13505 mint*)
13506 # On MiNT this can take a long time and run out of memory.
13507 lt_cv_sys_max_cmd_len=8192;
13510 amigaos*)
13511 # On AmigaOS with pdksh, this test takes hours, literally.
13512 # So we just punt and use a minimum line length of 8192.
13513 lt_cv_sys_max_cmd_len=8192;
13516 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
13517 # This has been around since 386BSD, at least. Likely further.
13518 if test -x /sbin/sysctl; then
13519 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13520 elif test -x /usr/sbin/sysctl; then
13521 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13522 else
13523 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
13525 # And add a safety zone
13526 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13527 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13530 interix*)
13531 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13532 lt_cv_sys_max_cmd_len=196608
13535 osf*)
13536 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13537 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13538 # nice to cause kernel panics so lets avoid the loop below.
13539 # First set a reasonable default.
13540 lt_cv_sys_max_cmd_len=16384
13542 if test -x /sbin/sysconfig; then
13543 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13544 *1*) lt_cv_sys_max_cmd_len=-1 ;;
13545 esac
13548 sco3.2v5*)
13549 lt_cv_sys_max_cmd_len=102400
13551 sysv5* | sco5v6* | sysv4.2uw2*)
13552 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13553 if test -n "$kargmax"; then
13554 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
13555 else
13556 lt_cv_sys_max_cmd_len=32768
13560 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
13561 if test -n "$lt_cv_sys_max_cmd_len"; then
13562 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13563 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13564 else
13565 # Make teststring a little bigger before we do anything with it.
13566 # a 1K string should be a reasonable start.
13567 for i in 1 2 3 4 5 6 7 8 ; do
13568 teststring=$teststring$teststring
13569 done
13570 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13571 # If test is not a shell built-in, we'll probably end up computing a
13572 # maximum length that is only half of the actual maximum length, but
13573 # we can't tell.
13574 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
13575 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
13576 test $i != 17 # 1/2 MB should be enough
13578 i=`expr $i + 1`
13579 teststring=$teststring$teststring
13580 done
13581 # Only check the string length outside the loop.
13582 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
13583 teststring=
13584 # Add a significant safety factor because C++ compilers can tack on
13585 # massive amounts of additional arguments before passing them to the
13586 # linker. It appears as though 1/2 is a usable value.
13587 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13590 esac
13594 if test -n $lt_cv_sys_max_cmd_len ; then
13595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
13596 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
13597 else
13598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
13599 $as_echo "none" >&6; }
13601 max_cmd_len=$lt_cv_sys_max_cmd_len
13608 : ${CP="cp -f"}
13609 : ${MV="mv -f"}
13610 : ${RM="rm -f"}
13612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
13613 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
13614 # Try some XSI features
13615 xsi_shell=no
13616 ( _lt_dummy="a/b/c"
13617 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
13618 = c,a/b,, \
13619 && eval 'test $(( 1 + 1 )) -eq 2 \
13620 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
13621 && xsi_shell=yes
13622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
13623 $as_echo "$xsi_shell" >&6; }
13626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
13627 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
13628 lt_shell_append=no
13629 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
13630 >/dev/null 2>&1 \
13631 && lt_shell_append=yes
13632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
13633 $as_echo "$lt_shell_append" >&6; }
13636 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13637 lt_unset=unset
13638 else
13639 lt_unset=false
13646 # test EBCDIC or ASCII
13647 case `echo X|tr X '\101'` in
13648 A) # ASCII based system
13649 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
13650 lt_SP2NL='tr \040 \012'
13651 lt_NL2SP='tr \015\012 \040\040'
13653 *) # EBCDIC based system
13654 lt_SP2NL='tr \100 \n'
13655 lt_NL2SP='tr \r\n \100\100'
13657 esac
13667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
13668 $as_echo_n "checking for $LD option to reload object files... " >&6; }
13669 if ${lt_cv_ld_reload_flag+:} false; then :
13670 $as_echo_n "(cached) " >&6
13671 else
13672 lt_cv_ld_reload_flag='-r'
13674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
13675 $as_echo "$lt_cv_ld_reload_flag" >&6; }
13676 reload_flag=$lt_cv_ld_reload_flag
13677 case $reload_flag in
13678 "" | " "*) ;;
13679 *) reload_flag=" $reload_flag" ;;
13680 esac
13681 reload_cmds='$LD$reload_flag -o $output$reload_objs'
13682 case $host_os in
13683 darwin*)
13684 if test "$GCC" = yes; then
13685 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
13686 else
13687 reload_cmds='$LD$reload_flag -o $output$reload_objs'
13690 esac
13700 if test -n "$ac_tool_prefix"; then
13701 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
13702 set dummy ${ac_tool_prefix}objdump; ac_word=$2
13703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13704 $as_echo_n "checking for $ac_word... " >&6; }
13705 if ${ac_cv_prog_OBJDUMP+:} false; then :
13706 $as_echo_n "(cached) " >&6
13707 else
13708 if test -n "$OBJDUMP"; then
13709 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
13710 else
13711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13712 for as_dir in $PATH
13714 IFS=$as_save_IFS
13715 test -z "$as_dir" && as_dir=.
13716 for ac_exec_ext in '' $ac_executable_extensions; do
13717 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13718 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
13719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13720 break 2
13722 done
13723 done
13724 IFS=$as_save_IFS
13728 OBJDUMP=$ac_cv_prog_OBJDUMP
13729 if test -n "$OBJDUMP"; then
13730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
13731 $as_echo "$OBJDUMP" >&6; }
13732 else
13733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13734 $as_echo "no" >&6; }
13739 if test -z "$ac_cv_prog_OBJDUMP"; then
13740 ac_ct_OBJDUMP=$OBJDUMP
13741 # Extract the first word of "objdump", so it can be a program name with args.
13742 set dummy objdump; ac_word=$2
13743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13744 $as_echo_n "checking for $ac_word... " >&6; }
13745 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
13746 $as_echo_n "(cached) " >&6
13747 else
13748 if test -n "$ac_ct_OBJDUMP"; then
13749 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
13750 else
13751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13752 for as_dir in $PATH
13754 IFS=$as_save_IFS
13755 test -z "$as_dir" && as_dir=.
13756 for ac_exec_ext in '' $ac_executable_extensions; do
13757 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13758 ac_cv_prog_ac_ct_OBJDUMP="objdump"
13759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13760 break 2
13762 done
13763 done
13764 IFS=$as_save_IFS
13768 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
13769 if test -n "$ac_ct_OBJDUMP"; then
13770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
13771 $as_echo "$ac_ct_OBJDUMP" >&6; }
13772 else
13773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13774 $as_echo "no" >&6; }
13777 if test "x$ac_ct_OBJDUMP" = x; then
13778 OBJDUMP="false"
13779 else
13780 case $cross_compiling:$ac_tool_warned in
13781 yes:)
13782 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13783 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13784 ac_tool_warned=yes ;;
13785 esac
13786 OBJDUMP=$ac_ct_OBJDUMP
13788 else
13789 OBJDUMP="$ac_cv_prog_OBJDUMP"
13792 test -z "$OBJDUMP" && OBJDUMP=objdump
13802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
13803 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
13804 if ${lt_cv_deplibs_check_method+:} false; then :
13805 $as_echo_n "(cached) " >&6
13806 else
13807 lt_cv_file_magic_cmd='$MAGIC_CMD'
13808 lt_cv_file_magic_test_file=
13809 lt_cv_deplibs_check_method='unknown'
13810 # Need to set the preceding variable on all platforms that support
13811 # interlibrary dependencies.
13812 # 'none' -- dependencies not supported.
13813 # `unknown' -- same as none, but documents that we really don't know.
13814 # 'pass_all' -- all dependencies passed with no checks.
13815 # 'test_compile' -- check by making test program.
13816 # 'file_magic [[regex]]' -- check by looking for files in library path
13817 # which responds to the $file_magic_cmd with a given extended regex.
13818 # If you have `file' or equivalent on your system and you're not sure
13819 # whether `pass_all' will *always* work, you probably want this one.
13821 case $host_os in
13822 aix[4-9]*)
13823 lt_cv_deplibs_check_method=pass_all
13826 beos*)
13827 lt_cv_deplibs_check_method=pass_all
13830 bsdi[45]*)
13831 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
13832 lt_cv_file_magic_cmd='/usr/bin/file -L'
13833 lt_cv_file_magic_test_file=/shlib/libc.so
13836 cygwin*)
13837 # func_win32_libid is a shell function defined in ltmain.sh
13838 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13839 lt_cv_file_magic_cmd='func_win32_libid'
13842 mingw* | pw32*)
13843 # Base MSYS/MinGW do not provide the 'file' command needed by
13844 # func_win32_libid shell function, so use a weaker test based on 'objdump',
13845 # unless we find 'file', for example because we are cross-compiling.
13846 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
13847 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
13848 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13849 lt_cv_file_magic_cmd='func_win32_libid'
13850 else
13851 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
13852 lt_cv_file_magic_cmd='$OBJDUMP -f'
13856 cegcc*)
13857 # use the weaker test based on 'objdump'. See mingw*.
13858 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
13859 lt_cv_file_magic_cmd='$OBJDUMP -f'
13862 darwin* | rhapsody*)
13863 lt_cv_deplibs_check_method=pass_all
13866 freebsd* | dragonfly*)
13867 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13868 case $host_cpu in
13869 i*86 )
13870 # Not sure whether the presence of OpenBSD here was a mistake.
13871 # Let's accept both of them until this is cleared up.
13872 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
13873 lt_cv_file_magic_cmd=/usr/bin/file
13874 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
13876 esac
13877 else
13878 lt_cv_deplibs_check_method=pass_all
13882 gnu*)
13883 lt_cv_deplibs_check_method=pass_all
13886 haiku*)
13887 lt_cv_deplibs_check_method=pass_all
13890 hpux10.20* | hpux11*)
13891 lt_cv_file_magic_cmd=/usr/bin/file
13892 case $host_cpu in
13893 ia64*)
13894 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
13895 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
13897 hppa*64*)
13898 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]'
13899 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
13902 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
13903 lt_cv_file_magic_test_file=/usr/lib/libc.sl
13905 esac
13908 interix[3-9]*)
13909 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
13910 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
13913 irix5* | irix6* | nonstopux*)
13914 case $LD in
13915 *-32|*"-32 ") libmagic=32-bit;;
13916 *-n32|*"-n32 ") libmagic=N32;;
13917 *-64|*"-64 ") libmagic=64-bit;;
13918 *) libmagic=never-match;;
13919 esac
13920 lt_cv_deplibs_check_method=pass_all
13923 # This must be Linux ELF.
13924 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
13925 lt_cv_deplibs_check_method=pass_all
13928 netbsd*)
13929 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13930 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13931 else
13932 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
13936 newos6*)
13937 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
13938 lt_cv_file_magic_cmd=/usr/bin/file
13939 lt_cv_file_magic_test_file=/usr/lib/libnls.so
13942 *nto* | *qnx*)
13943 lt_cv_deplibs_check_method=pass_all
13946 openbsd*)
13947 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13948 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
13949 else
13950 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13954 osf3* | osf4* | osf5*)
13955 lt_cv_deplibs_check_method=pass_all
13958 rdos*)
13959 lt_cv_deplibs_check_method=pass_all
13962 solaris*)
13963 lt_cv_deplibs_check_method=pass_all
13966 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13967 lt_cv_deplibs_check_method=pass_all
13970 sysv4 | sysv4.3*)
13971 case $host_vendor in
13972 motorola)
13973 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]'
13974 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
13976 ncr)
13977 lt_cv_deplibs_check_method=pass_all
13979 sequent)
13980 lt_cv_file_magic_cmd='/bin/file'
13981 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13983 sni)
13984 lt_cv_file_magic_cmd='/bin/file'
13985 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
13986 lt_cv_file_magic_test_file=/lib/libc.so
13988 siemens)
13989 lt_cv_deplibs_check_method=pass_all
13992 lt_cv_deplibs_check_method=pass_all
13994 esac
13997 tpf*)
13998 lt_cv_deplibs_check_method=pass_all
14000 esac
14003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
14004 $as_echo "$lt_cv_deplibs_check_method" >&6; }
14005 file_magic_cmd=$lt_cv_file_magic_cmd
14006 deplibs_check_method=$lt_cv_deplibs_check_method
14007 test -z "$deplibs_check_method" && deplibs_check_method=unknown
14020 if test -n "$ac_tool_prefix"; then
14021 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14022 set dummy ${ac_tool_prefix}ar; ac_word=$2
14023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14024 $as_echo_n "checking for $ac_word... " >&6; }
14025 if ${ac_cv_prog_AR+:} false; then :
14026 $as_echo_n "(cached) " >&6
14027 else
14028 if test -n "$AR"; then
14029 ac_cv_prog_AR="$AR" # Let the user override the test.
14030 else
14031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14032 for as_dir in $PATH
14034 IFS=$as_save_IFS
14035 test -z "$as_dir" && as_dir=.
14036 for ac_exec_ext in '' $ac_executable_extensions; do
14037 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14038 ac_cv_prog_AR="${ac_tool_prefix}ar"
14039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14040 break 2
14042 done
14043 done
14044 IFS=$as_save_IFS
14048 AR=$ac_cv_prog_AR
14049 if test -n "$AR"; then
14050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
14051 $as_echo "$AR" >&6; }
14052 else
14053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14054 $as_echo "no" >&6; }
14059 if test -z "$ac_cv_prog_AR"; then
14060 ac_ct_AR=$AR
14061 # Extract the first word of "ar", so it can be a program name with args.
14062 set dummy ar; ac_word=$2
14063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14064 $as_echo_n "checking for $ac_word... " >&6; }
14065 if ${ac_cv_prog_ac_ct_AR+:} false; then :
14066 $as_echo_n "(cached) " >&6
14067 else
14068 if test -n "$ac_ct_AR"; then
14069 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14070 else
14071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14072 for as_dir in $PATH
14074 IFS=$as_save_IFS
14075 test -z "$as_dir" && as_dir=.
14076 for ac_exec_ext in '' $ac_executable_extensions; do
14077 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14078 ac_cv_prog_ac_ct_AR="ar"
14079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14080 break 2
14082 done
14083 done
14084 IFS=$as_save_IFS
14088 ac_ct_AR=$ac_cv_prog_ac_ct_AR
14089 if test -n "$ac_ct_AR"; then
14090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
14091 $as_echo "$ac_ct_AR" >&6; }
14092 else
14093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14094 $as_echo "no" >&6; }
14097 if test "x$ac_ct_AR" = x; then
14098 AR="false"
14099 else
14100 case $cross_compiling:$ac_tool_warned in
14101 yes:)
14102 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14103 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14104 ac_tool_warned=yes ;;
14105 esac
14106 AR=$ac_ct_AR
14108 else
14109 AR="$ac_cv_prog_AR"
14112 test -z "$AR" && AR=ar
14113 test -z "$AR_FLAGS" && AR_FLAGS=cru
14125 if test -n "$ac_tool_prefix"; then
14126 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14127 set dummy ${ac_tool_prefix}strip; ac_word=$2
14128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14129 $as_echo_n "checking for $ac_word... " >&6; }
14130 if ${ac_cv_prog_STRIP+:} false; then :
14131 $as_echo_n "(cached) " >&6
14132 else
14133 if test -n "$STRIP"; then
14134 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14135 else
14136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14137 for as_dir in $PATH
14139 IFS=$as_save_IFS
14140 test -z "$as_dir" && as_dir=.
14141 for ac_exec_ext in '' $ac_executable_extensions; do
14142 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14143 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14145 break 2
14147 done
14148 done
14149 IFS=$as_save_IFS
14153 STRIP=$ac_cv_prog_STRIP
14154 if test -n "$STRIP"; then
14155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
14156 $as_echo "$STRIP" >&6; }
14157 else
14158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14159 $as_echo "no" >&6; }
14164 if test -z "$ac_cv_prog_STRIP"; then
14165 ac_ct_STRIP=$STRIP
14166 # Extract the first word of "strip", so it can be a program name with args.
14167 set dummy strip; ac_word=$2
14168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14169 $as_echo_n "checking for $ac_word... " >&6; }
14170 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
14171 $as_echo_n "(cached) " >&6
14172 else
14173 if test -n "$ac_ct_STRIP"; then
14174 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14175 else
14176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14177 for as_dir in $PATH
14179 IFS=$as_save_IFS
14180 test -z "$as_dir" && as_dir=.
14181 for ac_exec_ext in '' $ac_executable_extensions; do
14182 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14183 ac_cv_prog_ac_ct_STRIP="strip"
14184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14185 break 2
14187 done
14188 done
14189 IFS=$as_save_IFS
14193 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14194 if test -n "$ac_ct_STRIP"; then
14195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
14196 $as_echo "$ac_ct_STRIP" >&6; }
14197 else
14198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14199 $as_echo "no" >&6; }
14202 if test "x$ac_ct_STRIP" = x; then
14203 STRIP=":"
14204 else
14205 case $cross_compiling:$ac_tool_warned in
14206 yes:)
14207 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14208 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14209 ac_tool_warned=yes ;;
14210 esac
14211 STRIP=$ac_ct_STRIP
14213 else
14214 STRIP="$ac_cv_prog_STRIP"
14217 test -z "$STRIP" && STRIP=:
14224 if test -n "$ac_tool_prefix"; then
14225 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
14226 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
14227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14228 $as_echo_n "checking for $ac_word... " >&6; }
14229 if ${ac_cv_prog_RANLIB+:} false; then :
14230 $as_echo_n "(cached) " >&6
14231 else
14232 if test -n "$RANLIB"; then
14233 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14234 else
14235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14236 for as_dir in $PATH
14238 IFS=$as_save_IFS
14239 test -z "$as_dir" && as_dir=.
14240 for ac_exec_ext in '' $ac_executable_extensions; do
14241 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14242 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
14243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14244 break 2
14246 done
14247 done
14248 IFS=$as_save_IFS
14252 RANLIB=$ac_cv_prog_RANLIB
14253 if test -n "$RANLIB"; then
14254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
14255 $as_echo "$RANLIB" >&6; }
14256 else
14257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14258 $as_echo "no" >&6; }
14263 if test -z "$ac_cv_prog_RANLIB"; then
14264 ac_ct_RANLIB=$RANLIB
14265 # Extract the first word of "ranlib", so it can be a program name with args.
14266 set dummy ranlib; ac_word=$2
14267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14268 $as_echo_n "checking for $ac_word... " >&6; }
14269 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
14270 $as_echo_n "(cached) " >&6
14271 else
14272 if test -n "$ac_ct_RANLIB"; then
14273 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14274 else
14275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14276 for as_dir in $PATH
14278 IFS=$as_save_IFS
14279 test -z "$as_dir" && as_dir=.
14280 for ac_exec_ext in '' $ac_executable_extensions; do
14281 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14282 ac_cv_prog_ac_ct_RANLIB="ranlib"
14283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14284 break 2
14286 done
14287 done
14288 IFS=$as_save_IFS
14292 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14293 if test -n "$ac_ct_RANLIB"; then
14294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
14295 $as_echo "$ac_ct_RANLIB" >&6; }
14296 else
14297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14298 $as_echo "no" >&6; }
14301 if test "x$ac_ct_RANLIB" = x; then
14302 RANLIB=":"
14303 else
14304 case $cross_compiling:$ac_tool_warned in
14305 yes:)
14306 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14307 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14308 ac_tool_warned=yes ;;
14309 esac
14310 RANLIB=$ac_ct_RANLIB
14312 else
14313 RANLIB="$ac_cv_prog_RANLIB"
14316 test -z "$RANLIB" && RANLIB=:
14323 # Determine commands to create old-style static archives.
14324 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
14325 old_postinstall_cmds='chmod 644 $oldlib'
14326 old_postuninstall_cmds=
14328 if test -n "$RANLIB"; then
14329 case $host_os in
14330 openbsd*)
14331 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
14334 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
14336 esac
14337 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
14340 case $host_os in
14341 darwin*)
14342 lock_old_archive_extraction=yes ;;
14344 lock_old_archive_extraction=no ;;
14345 esac
14385 # If no C compiler was specified, use CC.
14386 LTCC=${LTCC-"$CC"}
14388 # If no C compiler flags were specified, use CFLAGS.
14389 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14391 # Allow CC to be a program name with arguments.
14392 compiler=$CC
14395 # Check for command to grab the raw symbol name followed by C symbol from nm.
14396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
14397 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
14398 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
14399 $as_echo_n "(cached) " >&6
14400 else
14402 # These are sane defaults that work on at least a few old systems.
14403 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
14405 # Character class describing NM global symbol codes.
14406 symcode='[BCDEGRST]'
14408 # Regexp to match symbols that can be accessed directly from C.
14409 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
14411 # Define system-specific variables.
14412 case $host_os in
14413 aix*)
14414 symcode='[BCDT]'
14416 cygwin* | mingw* | pw32* | cegcc*)
14417 symcode='[ABCDGISTW]'
14419 hpux*)
14420 if test "$host_cpu" = ia64; then
14421 symcode='[ABCDEGRST]'
14424 irix* | nonstopux*)
14425 symcode='[BCDEGRST]'
14427 osf*)
14428 symcode='[BCDEGQRST]'
14430 solaris*)
14431 symcode='[BDRT]'
14433 sco3.2v5*)
14434 symcode='[DT]'
14436 sysv4.2uw2*)
14437 symcode='[DT]'
14439 sysv5* | sco5v6* | unixware* | OpenUNIX*)
14440 symcode='[ABDT]'
14442 sysv4)
14443 symcode='[DFNSTU]'
14445 esac
14447 # If we're using GNU nm, then use its standard symbol codes.
14448 case `$NM -V 2>&1` in
14449 *GNU* | *'with BFD'*)
14450 symcode='[ABCDGIRSTW]' ;;
14451 esac
14453 # Transform an extracted symbol line into a proper C declaration.
14454 # Some systems (esp. on ia64) link data and code symbols differently,
14455 # so use this general approach.
14456 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
14458 # Transform an extracted symbol line into symbol name and symbol address
14459 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
14460 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'"
14462 # Handle CRLF in mingw tool chain
14463 opt_cr=
14464 case $build_os in
14465 mingw*)
14466 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
14468 esac
14470 # Try without a prefix underscore, then with it.
14471 for ac_symprfx in "" "_"; do
14473 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
14474 symxfrm="\\1 $ac_symprfx\\2 \\2"
14476 # Write the raw and C identifiers.
14477 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
14478 # Fake it for dumpbin and say T for any non-static function
14479 # and D for any global variable.
14480 # Also find C++ and __fastcall symbols from MSVC++,
14481 # which start with @ or ?.
14482 lt_cv_sys_global_symbol_pipe="$AWK '"\
14483 " {last_section=section; section=\$ 3};"\
14484 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
14485 " \$ 0!~/External *\|/{next};"\
14486 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
14487 " {if(hide[section]) next};"\
14488 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
14489 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
14490 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
14491 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
14492 " ' prfx=^$ac_symprfx"
14493 else
14494 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
14497 # Check to see that the pipe works correctly.
14498 pipe_works=no
14500 rm -f conftest*
14501 cat > conftest.$ac_ext <<_LT_EOF
14502 #ifdef __cplusplus
14503 extern "C" {
14504 #endif
14505 char nm_test_var;
14506 void nm_test_func(void);
14507 void nm_test_func(void){}
14508 #ifdef __cplusplus
14510 #endif
14511 int main(){nm_test_var='a';nm_test_func();return(0);}
14512 _LT_EOF
14514 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14515 (eval $ac_compile) 2>&5
14516 ac_status=$?
14517 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14518 test $ac_status = 0; }; then
14519 # Now try to grab the symbols.
14520 nlist=conftest.nm
14521 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
14522 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
14523 ac_status=$?
14524 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14525 test $ac_status = 0; } && test -s "$nlist"; then
14526 # Try sorting and uniquifying the output.
14527 if sort "$nlist" | uniq > "$nlist"T; then
14528 mv -f "$nlist"T "$nlist"
14529 else
14530 rm -f "$nlist"T
14533 # Make sure that we snagged all the symbols we need.
14534 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
14535 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
14536 cat <<_LT_EOF > conftest.$ac_ext
14537 #ifdef __cplusplus
14538 extern "C" {
14539 #endif
14541 _LT_EOF
14542 # Now generate the symbol file.
14543 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
14545 cat <<_LT_EOF >> conftest.$ac_ext
14547 /* The mapping between symbol names and symbols. */
14548 const struct {
14549 const char *name;
14550 void *address;
14552 lt__PROGRAM__LTX_preloaded_symbols[] =
14554 { "@PROGRAM@", (void *) 0 },
14555 _LT_EOF
14556 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
14557 cat <<\_LT_EOF >> conftest.$ac_ext
14558 {0, (void *) 0}
14561 /* This works around a problem in FreeBSD linker */
14562 #ifdef FREEBSD_WORKAROUND
14563 static const void *lt_preloaded_setup() {
14564 return lt__PROGRAM__LTX_preloaded_symbols;
14566 #endif
14568 #ifdef __cplusplus
14570 #endif
14571 _LT_EOF
14572 # Now try linking the two files.
14573 mv conftest.$ac_objext conftstm.$ac_objext
14574 lt_save_LIBS="$LIBS"
14575 lt_save_CFLAGS="$CFLAGS"
14576 LIBS="conftstm.$ac_objext"
14577 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
14578 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14579 (eval $ac_link) 2>&5
14580 ac_status=$?
14581 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14582 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
14583 pipe_works=yes
14585 LIBS="$lt_save_LIBS"
14586 CFLAGS="$lt_save_CFLAGS"
14587 else
14588 echo "cannot find nm_test_func in $nlist" >&5
14590 else
14591 echo "cannot find nm_test_var in $nlist" >&5
14593 else
14594 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
14596 else
14597 echo "$progname: failed program was:" >&5
14598 cat conftest.$ac_ext >&5
14600 rm -rf conftest* conftst*
14602 # Do not use the global_symbol_pipe unless it works.
14603 if test "$pipe_works" = yes; then
14604 break
14605 else
14606 lt_cv_sys_global_symbol_pipe=
14608 done
14612 if test -z "$lt_cv_sys_global_symbol_pipe"; then
14613 lt_cv_sys_global_symbol_to_cdecl=
14615 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
14616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
14617 $as_echo "failed" >&6; }
14618 else
14619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
14620 $as_echo "ok" >&6; }
14644 # Check whether --enable-libtool-lock was given.
14645 if test "${enable_libtool_lock+set}" = set; then :
14646 enableval=$enable_libtool_lock;
14649 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14651 # Some flags need to be propagated to the compiler or linker for good
14652 # libtool support.
14653 case $host in
14654 ia64-*-hpux*)
14655 # Find out which ABI we are using.
14656 echo 'int i;' > conftest.$ac_ext
14657 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14658 (eval $ac_compile) 2>&5
14659 ac_status=$?
14660 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14661 test $ac_status = 0; }; then
14662 case `/usr/bin/file conftest.$ac_objext` in
14663 *ELF-32*)
14664 HPUX_IA64_MODE="32"
14666 *ELF-64*)
14667 HPUX_IA64_MODE="64"
14669 esac
14671 rm -rf conftest*
14673 *-*-irix6*)
14674 # Find out which ABI we are using.
14675 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
14676 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14677 (eval $ac_compile) 2>&5
14678 ac_status=$?
14679 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14680 test $ac_status = 0; }; then
14681 if test "$lt_cv_prog_gnu_ld" = yes; then
14682 case `/usr/bin/file conftest.$ac_objext` in
14683 *32-bit*)
14684 LD="${LD-ld} -melf32bsmip"
14686 *N32*)
14687 LD="${LD-ld} -melf32bmipn32"
14689 *64-bit*)
14690 LD="${LD-ld} -melf64bmip"
14692 esac
14693 else
14694 case `/usr/bin/file conftest.$ac_objext` in
14695 *32-bit*)
14696 LD="${LD-ld} -32"
14698 *N32*)
14699 LD="${LD-ld} -n32"
14701 *64-bit*)
14702 LD="${LD-ld} -64"
14704 esac
14707 rm -rf conftest*
14710 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
14711 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
14712 # Find out which ABI we are using.
14713 echo 'int i;' > conftest.$ac_ext
14714 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14715 (eval $ac_compile) 2>&5
14716 ac_status=$?
14717 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14718 test $ac_status = 0; }; then
14719 case `/usr/bin/file conftest.o` in
14720 *32-bit*)
14721 case $host in
14722 x86_64-*kfreebsd*-gnu)
14723 LD="${LD-ld} -m elf_i386_fbsd"
14725 x86_64-*linux*)
14726 case `/usr/bin/file conftest.o` in
14727 *x86-64*)
14728 LD="${LD-ld} -m elf32_x86_64"
14731 LD="${LD-ld} -m elf_i386"
14733 esac
14735 powerpc64le-*linux*)
14736 LD="${LD-ld} -m elf32lppclinux"
14738 powerpc64-*linux*)
14739 LD="${LD-ld} -m elf32ppclinux"
14741 s390x-*linux*)
14742 LD="${LD-ld} -m elf_s390"
14744 sparc64-*linux*)
14745 LD="${LD-ld} -m elf32_sparc"
14747 esac
14749 *64-bit*)
14750 case $host in
14751 x86_64-*kfreebsd*-gnu)
14752 LD="${LD-ld} -m elf_x86_64_fbsd"
14754 x86_64-*linux*)
14755 LD="${LD-ld} -m elf_x86_64"
14757 powerpcle-*linux*)
14758 LD="${LD-ld} -m elf64lppc"
14760 powerpc-*linux*)
14761 LD="${LD-ld} -m elf64ppc"
14763 s390*-*linux*|s390*-*tpf*)
14764 LD="${LD-ld} -m elf64_s390"
14766 sparc*-*linux*)
14767 LD="${LD-ld} -m elf64_sparc"
14769 esac
14771 esac
14773 rm -rf conftest*
14776 *-*-sco3.2v5*)
14777 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
14778 SAVE_CFLAGS="$CFLAGS"
14779 CFLAGS="$CFLAGS -belf"
14780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
14781 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
14782 if ${lt_cv_cc_needs_belf+:} false; then :
14783 $as_echo_n "(cached) " >&6
14784 else
14785 ac_ext=c
14786 ac_cpp='$CPP $CPPFLAGS'
14787 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14788 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14789 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14792 /* end confdefs.h. */
14795 main ()
14799 return 0;
14801 _ACEOF
14802 if ac_fn_c_try_link "$LINENO"; then :
14803 lt_cv_cc_needs_belf=yes
14804 else
14805 lt_cv_cc_needs_belf=no
14807 rm -f core conftest.err conftest.$ac_objext \
14808 conftest$ac_exeext conftest.$ac_ext
14809 ac_ext=c
14810 ac_cpp='$CPP $CPPFLAGS'
14811 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14812 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14813 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
14817 $as_echo "$lt_cv_cc_needs_belf" >&6; }
14818 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
14819 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
14820 CFLAGS="$SAVE_CFLAGS"
14823 sparc*-*solaris*)
14824 # Find out which ABI we are using.
14825 echo 'int i;' > conftest.$ac_ext
14826 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14827 (eval $ac_compile) 2>&5
14828 ac_status=$?
14829 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14830 test $ac_status = 0; }; then
14831 case `/usr/bin/file conftest.o` in
14832 *64-bit*)
14833 case $lt_cv_prog_gnu_ld in
14834 yes*) LD="${LD-ld} -m elf64_sparc" ;;
14836 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
14837 LD="${LD-ld} -64"
14840 esac
14842 esac
14844 rm -rf conftest*
14846 esac
14848 need_locks="$enable_libtool_lock"
14851 case $host_os in
14852 rhapsody* | darwin*)
14853 if test -n "$ac_tool_prefix"; then
14854 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
14855 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
14856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14857 $as_echo_n "checking for $ac_word... " >&6; }
14858 if ${ac_cv_prog_DSYMUTIL+:} false; then :
14859 $as_echo_n "(cached) " >&6
14860 else
14861 if test -n "$DSYMUTIL"; then
14862 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
14863 else
14864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14865 for as_dir in $PATH
14867 IFS=$as_save_IFS
14868 test -z "$as_dir" && as_dir=.
14869 for ac_exec_ext in '' $ac_executable_extensions; do
14870 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14871 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
14872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14873 break 2
14875 done
14876 done
14877 IFS=$as_save_IFS
14881 DSYMUTIL=$ac_cv_prog_DSYMUTIL
14882 if test -n "$DSYMUTIL"; then
14883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
14884 $as_echo "$DSYMUTIL" >&6; }
14885 else
14886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14887 $as_echo "no" >&6; }
14892 if test -z "$ac_cv_prog_DSYMUTIL"; then
14893 ac_ct_DSYMUTIL=$DSYMUTIL
14894 # Extract the first word of "dsymutil", so it can be a program name with args.
14895 set dummy dsymutil; ac_word=$2
14896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14897 $as_echo_n "checking for $ac_word... " >&6; }
14898 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
14899 $as_echo_n "(cached) " >&6
14900 else
14901 if test -n "$ac_ct_DSYMUTIL"; then
14902 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
14903 else
14904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14905 for as_dir in $PATH
14907 IFS=$as_save_IFS
14908 test -z "$as_dir" && as_dir=.
14909 for ac_exec_ext in '' $ac_executable_extensions; do
14910 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14911 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
14912 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14913 break 2
14915 done
14916 done
14917 IFS=$as_save_IFS
14921 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
14922 if test -n "$ac_ct_DSYMUTIL"; then
14923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
14924 $as_echo "$ac_ct_DSYMUTIL" >&6; }
14925 else
14926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14927 $as_echo "no" >&6; }
14930 if test "x$ac_ct_DSYMUTIL" = x; then
14931 DSYMUTIL=":"
14932 else
14933 case $cross_compiling:$ac_tool_warned in
14934 yes:)
14935 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14936 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14937 ac_tool_warned=yes ;;
14938 esac
14939 DSYMUTIL=$ac_ct_DSYMUTIL
14941 else
14942 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
14945 if test -n "$ac_tool_prefix"; then
14946 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
14947 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
14948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14949 $as_echo_n "checking for $ac_word... " >&6; }
14950 if ${ac_cv_prog_NMEDIT+:} false; then :
14951 $as_echo_n "(cached) " >&6
14952 else
14953 if test -n "$NMEDIT"; then
14954 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
14955 else
14956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14957 for as_dir in $PATH
14959 IFS=$as_save_IFS
14960 test -z "$as_dir" && as_dir=.
14961 for ac_exec_ext in '' $ac_executable_extensions; do
14962 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14963 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
14964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14965 break 2
14967 done
14968 done
14969 IFS=$as_save_IFS
14973 NMEDIT=$ac_cv_prog_NMEDIT
14974 if test -n "$NMEDIT"; then
14975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
14976 $as_echo "$NMEDIT" >&6; }
14977 else
14978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14979 $as_echo "no" >&6; }
14984 if test -z "$ac_cv_prog_NMEDIT"; then
14985 ac_ct_NMEDIT=$NMEDIT
14986 # Extract the first word of "nmedit", so it can be a program name with args.
14987 set dummy nmedit; ac_word=$2
14988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14989 $as_echo_n "checking for $ac_word... " >&6; }
14990 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
14991 $as_echo_n "(cached) " >&6
14992 else
14993 if test -n "$ac_ct_NMEDIT"; then
14994 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
14995 else
14996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14997 for as_dir in $PATH
14999 IFS=$as_save_IFS
15000 test -z "$as_dir" && as_dir=.
15001 for ac_exec_ext in '' $ac_executable_extensions; do
15002 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15003 ac_cv_prog_ac_ct_NMEDIT="nmedit"
15004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15005 break 2
15007 done
15008 done
15009 IFS=$as_save_IFS
15013 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
15014 if test -n "$ac_ct_NMEDIT"; then
15015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
15016 $as_echo "$ac_ct_NMEDIT" >&6; }
15017 else
15018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15019 $as_echo "no" >&6; }
15022 if test "x$ac_ct_NMEDIT" = x; then
15023 NMEDIT=":"
15024 else
15025 case $cross_compiling:$ac_tool_warned in
15026 yes:)
15027 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15028 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15029 ac_tool_warned=yes ;;
15030 esac
15031 NMEDIT=$ac_ct_NMEDIT
15033 else
15034 NMEDIT="$ac_cv_prog_NMEDIT"
15037 if test -n "$ac_tool_prefix"; then
15038 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
15039 set dummy ${ac_tool_prefix}lipo; ac_word=$2
15040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15041 $as_echo_n "checking for $ac_word... " >&6; }
15042 if ${ac_cv_prog_LIPO+:} false; then :
15043 $as_echo_n "(cached) " >&6
15044 else
15045 if test -n "$LIPO"; then
15046 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
15047 else
15048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15049 for as_dir in $PATH
15051 IFS=$as_save_IFS
15052 test -z "$as_dir" && as_dir=.
15053 for ac_exec_ext in '' $ac_executable_extensions; do
15054 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15055 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
15056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15057 break 2
15059 done
15060 done
15061 IFS=$as_save_IFS
15065 LIPO=$ac_cv_prog_LIPO
15066 if test -n "$LIPO"; then
15067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
15068 $as_echo "$LIPO" >&6; }
15069 else
15070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15071 $as_echo "no" >&6; }
15076 if test -z "$ac_cv_prog_LIPO"; then
15077 ac_ct_LIPO=$LIPO
15078 # Extract the first word of "lipo", so it can be a program name with args.
15079 set dummy lipo; ac_word=$2
15080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15081 $as_echo_n "checking for $ac_word... " >&6; }
15082 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
15083 $as_echo_n "(cached) " >&6
15084 else
15085 if test -n "$ac_ct_LIPO"; then
15086 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
15087 else
15088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15089 for as_dir in $PATH
15091 IFS=$as_save_IFS
15092 test -z "$as_dir" && as_dir=.
15093 for ac_exec_ext in '' $ac_executable_extensions; do
15094 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15095 ac_cv_prog_ac_ct_LIPO="lipo"
15096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15097 break 2
15099 done
15100 done
15101 IFS=$as_save_IFS
15105 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
15106 if test -n "$ac_ct_LIPO"; then
15107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
15108 $as_echo "$ac_ct_LIPO" >&6; }
15109 else
15110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15111 $as_echo "no" >&6; }
15114 if test "x$ac_ct_LIPO" = x; then
15115 LIPO=":"
15116 else
15117 case $cross_compiling:$ac_tool_warned in
15118 yes:)
15119 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15120 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15121 ac_tool_warned=yes ;;
15122 esac
15123 LIPO=$ac_ct_LIPO
15125 else
15126 LIPO="$ac_cv_prog_LIPO"
15129 if test -n "$ac_tool_prefix"; then
15130 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
15131 set dummy ${ac_tool_prefix}otool; ac_word=$2
15132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15133 $as_echo_n "checking for $ac_word... " >&6; }
15134 if ${ac_cv_prog_OTOOL+:} false; then :
15135 $as_echo_n "(cached) " >&6
15136 else
15137 if test -n "$OTOOL"; then
15138 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
15139 else
15140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15141 for as_dir in $PATH
15143 IFS=$as_save_IFS
15144 test -z "$as_dir" && as_dir=.
15145 for ac_exec_ext in '' $ac_executable_extensions; do
15146 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15147 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
15148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15149 break 2
15151 done
15152 done
15153 IFS=$as_save_IFS
15157 OTOOL=$ac_cv_prog_OTOOL
15158 if test -n "$OTOOL"; then
15159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
15160 $as_echo "$OTOOL" >&6; }
15161 else
15162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15163 $as_echo "no" >&6; }
15168 if test -z "$ac_cv_prog_OTOOL"; then
15169 ac_ct_OTOOL=$OTOOL
15170 # Extract the first word of "otool", so it can be a program name with args.
15171 set dummy otool; ac_word=$2
15172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15173 $as_echo_n "checking for $ac_word... " >&6; }
15174 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
15175 $as_echo_n "(cached) " >&6
15176 else
15177 if test -n "$ac_ct_OTOOL"; then
15178 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
15179 else
15180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15181 for as_dir in $PATH
15183 IFS=$as_save_IFS
15184 test -z "$as_dir" && as_dir=.
15185 for ac_exec_ext in '' $ac_executable_extensions; do
15186 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15187 ac_cv_prog_ac_ct_OTOOL="otool"
15188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15189 break 2
15191 done
15192 done
15193 IFS=$as_save_IFS
15197 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
15198 if test -n "$ac_ct_OTOOL"; then
15199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
15200 $as_echo "$ac_ct_OTOOL" >&6; }
15201 else
15202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15203 $as_echo "no" >&6; }
15206 if test "x$ac_ct_OTOOL" = x; then
15207 OTOOL=":"
15208 else
15209 case $cross_compiling:$ac_tool_warned in
15210 yes:)
15211 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15212 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15213 ac_tool_warned=yes ;;
15214 esac
15215 OTOOL=$ac_ct_OTOOL
15217 else
15218 OTOOL="$ac_cv_prog_OTOOL"
15221 if test -n "$ac_tool_prefix"; then
15222 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
15223 set dummy ${ac_tool_prefix}otool64; ac_word=$2
15224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15225 $as_echo_n "checking for $ac_word... " >&6; }
15226 if ${ac_cv_prog_OTOOL64+:} false; then :
15227 $as_echo_n "(cached) " >&6
15228 else
15229 if test -n "$OTOOL64"; then
15230 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
15231 else
15232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15233 for as_dir in $PATH
15235 IFS=$as_save_IFS
15236 test -z "$as_dir" && as_dir=.
15237 for ac_exec_ext in '' $ac_executable_extensions; do
15238 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15239 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
15240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15241 break 2
15243 done
15244 done
15245 IFS=$as_save_IFS
15249 OTOOL64=$ac_cv_prog_OTOOL64
15250 if test -n "$OTOOL64"; then
15251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
15252 $as_echo "$OTOOL64" >&6; }
15253 else
15254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15255 $as_echo "no" >&6; }
15260 if test -z "$ac_cv_prog_OTOOL64"; then
15261 ac_ct_OTOOL64=$OTOOL64
15262 # Extract the first word of "otool64", so it can be a program name with args.
15263 set dummy otool64; ac_word=$2
15264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15265 $as_echo_n "checking for $ac_word... " >&6; }
15266 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
15267 $as_echo_n "(cached) " >&6
15268 else
15269 if test -n "$ac_ct_OTOOL64"; then
15270 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
15271 else
15272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15273 for as_dir in $PATH
15275 IFS=$as_save_IFS
15276 test -z "$as_dir" && as_dir=.
15277 for ac_exec_ext in '' $ac_executable_extensions; do
15278 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15279 ac_cv_prog_ac_ct_OTOOL64="otool64"
15280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15281 break 2
15283 done
15284 done
15285 IFS=$as_save_IFS
15289 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
15290 if test -n "$ac_ct_OTOOL64"; then
15291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
15292 $as_echo "$ac_ct_OTOOL64" >&6; }
15293 else
15294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15295 $as_echo "no" >&6; }
15298 if test "x$ac_ct_OTOOL64" = x; then
15299 OTOOL64=":"
15300 else
15301 case $cross_compiling:$ac_tool_warned in
15302 yes:)
15303 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15304 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15305 ac_tool_warned=yes ;;
15306 esac
15307 OTOOL64=$ac_ct_OTOOL64
15309 else
15310 OTOOL64="$ac_cv_prog_OTOOL64"
15339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
15340 $as_echo_n "checking for -single_module linker flag... " >&6; }
15341 if ${lt_cv_apple_cc_single_mod+:} false; then :
15342 $as_echo_n "(cached) " >&6
15343 else
15344 lt_cv_apple_cc_single_mod=no
15345 if test -z "${LT_MULTI_MODULE}"; then
15346 # By default we will add the -single_module flag. You can override
15347 # by either setting the environment variable LT_MULTI_MODULE
15348 # non-empty at configure time, or by adding -multi_module to the
15349 # link flags.
15350 rm -rf libconftest.dylib*
15351 echo "int foo(void){return 1;}" > conftest.c
15352 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
15353 -dynamiclib -Wl,-single_module conftest.c" >&5
15354 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
15355 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
15356 _lt_result=$?
15357 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
15358 lt_cv_apple_cc_single_mod=yes
15359 else
15360 cat conftest.err >&5
15362 rm -rf libconftest.dylib*
15363 rm -f conftest.*
15366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
15367 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
15368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
15369 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
15370 if ${lt_cv_ld_exported_symbols_list+:} false; then :
15371 $as_echo_n "(cached) " >&6
15372 else
15373 lt_cv_ld_exported_symbols_list=no
15374 save_LDFLAGS=$LDFLAGS
15375 echo "_main" > conftest.sym
15376 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
15377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15378 /* end confdefs.h. */
15381 main ()
15385 return 0;
15387 _ACEOF
15388 if ac_fn_c_try_link "$LINENO"; then :
15389 lt_cv_ld_exported_symbols_list=yes
15390 else
15391 lt_cv_ld_exported_symbols_list=no
15393 rm -f core conftest.err conftest.$ac_objext \
15394 conftest$ac_exeext conftest.$ac_ext
15395 LDFLAGS="$save_LDFLAGS"
15398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
15399 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
15400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
15401 $as_echo_n "checking for -force_load linker flag... " >&6; }
15402 if ${lt_cv_ld_force_load+:} false; then :
15403 $as_echo_n "(cached) " >&6
15404 else
15405 lt_cv_ld_force_load=no
15406 cat > conftest.c << _LT_EOF
15407 int forced_loaded() { return 2;}
15408 _LT_EOF
15409 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
15410 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
15411 echo "$AR cru libconftest.a conftest.o" >&5
15412 $AR cru libconftest.a conftest.o 2>&5
15413 cat > conftest.c << _LT_EOF
15414 int main() { return 0;}
15415 _LT_EOF
15416 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
15417 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
15418 _lt_result=$?
15419 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
15420 lt_cv_ld_force_load=yes
15421 else
15422 cat conftest.err >&5
15424 rm -f conftest.err libconftest.a conftest conftest.c
15425 rm -rf conftest.dSYM
15428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
15429 $as_echo "$lt_cv_ld_force_load" >&6; }
15430 case $host_os in
15431 rhapsody* | darwin1.[012])
15432 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
15433 darwin1.*)
15434 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
15435 darwin*) # darwin 5.x on
15436 # if running on 10.5 or later, the deployment target defaults
15437 # to the OS version, if on x86, and 10.4, the deployment
15438 # target defaults to 10.4. Don't you love it?
15439 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
15440 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
15441 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
15442 10.[012][,.]*)
15443 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
15444 10.*)
15445 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
15446 esac
15448 esac
15449 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
15450 _lt_dar_single_mod='$single_module'
15452 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
15453 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
15454 else
15455 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
15457 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
15458 _lt_dsymutil='~$DSYMUTIL $lib || :'
15459 else
15460 _lt_dsymutil=
15463 esac
15466 for ac_header in dlfcn.h
15467 do :
15468 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
15469 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
15470 cat >>confdefs.h <<_ACEOF
15471 #define HAVE_DLFCN_H 1
15472 _ACEOF
15475 done
15481 # Set options
15485 enable_dlopen=no
15488 enable_win32_dll=no
15491 # Check whether --enable-shared was given.
15492 if test "${enable_shared+set}" = set; then :
15493 enableval=$enable_shared; p=${PACKAGE-default}
15494 case $enableval in
15495 yes) enable_shared=yes ;;
15496 no) enable_shared=no ;;
15498 enable_shared=no
15499 # Look at the argument we got. We use all the common list separators.
15500 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15501 for pkg in $enableval; do
15502 IFS="$lt_save_ifs"
15503 if test "X$pkg" = "X$p"; then
15504 enable_shared=yes
15506 done
15507 IFS="$lt_save_ifs"
15509 esac
15510 else
15511 enable_shared=yes
15522 # Check whether --enable-static was given.
15523 if test "${enable_static+set}" = set; then :
15524 enableval=$enable_static; p=${PACKAGE-default}
15525 case $enableval in
15526 yes) enable_static=yes ;;
15527 no) enable_static=no ;;
15529 enable_static=no
15530 # Look at the argument we got. We use all the common list separators.
15531 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15532 for pkg in $enableval; do
15533 IFS="$lt_save_ifs"
15534 if test "X$pkg" = "X$p"; then
15535 enable_static=yes
15537 done
15538 IFS="$lt_save_ifs"
15540 esac
15541 else
15542 enable_static=yes
15554 # Check whether --with-pic was given.
15555 if test "${with_pic+set}" = set; then :
15556 withval=$with_pic; pic_mode="$withval"
15557 else
15558 pic_mode=default
15562 test -z "$pic_mode" && pic_mode=default
15570 # Check whether --enable-fast-install was given.
15571 if test "${enable_fast_install+set}" = set; then :
15572 enableval=$enable_fast_install; p=${PACKAGE-default}
15573 case $enableval in
15574 yes) enable_fast_install=yes ;;
15575 no) enable_fast_install=no ;;
15577 enable_fast_install=no
15578 # Look at the argument we got. We use all the common list separators.
15579 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15580 for pkg in $enableval; do
15581 IFS="$lt_save_ifs"
15582 if test "X$pkg" = "X$p"; then
15583 enable_fast_install=yes
15585 done
15586 IFS="$lt_save_ifs"
15588 esac
15589 else
15590 enable_fast_install=yes
15603 # This can be used to rebuild libtool when needed
15604 LIBTOOL_DEPS="$ltmain"
15606 # Always use our own libtool.
15607 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
15634 test -z "$LN_S" && LN_S="ln -s"
15649 if test -n "${ZSH_VERSION+set}" ; then
15650 setopt NO_GLOB_SUBST
15653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
15654 $as_echo_n "checking for objdir... " >&6; }
15655 if ${lt_cv_objdir+:} false; then :
15656 $as_echo_n "(cached) " >&6
15657 else
15658 rm -f .libs 2>/dev/null
15659 mkdir .libs 2>/dev/null
15660 if test -d .libs; then
15661 lt_cv_objdir=.libs
15662 else
15663 # MS-DOS does not allow filenames that begin with a dot.
15664 lt_cv_objdir=_libs
15666 rmdir .libs 2>/dev/null
15668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
15669 $as_echo "$lt_cv_objdir" >&6; }
15670 objdir=$lt_cv_objdir
15676 cat >>confdefs.h <<_ACEOF
15677 #define LT_OBJDIR "$lt_cv_objdir/"
15678 _ACEOF
15683 case $host_os in
15684 aix3*)
15685 # AIX sometimes has problems with the GCC collect2 program. For some
15686 # reason, if we set the COLLECT_NAMES environment variable, the problems
15687 # vanish in a puff of smoke.
15688 if test "X${COLLECT_NAMES+set}" != Xset; then
15689 COLLECT_NAMES=
15690 export COLLECT_NAMES
15693 esac
15695 # Global variables:
15696 ofile=libtool
15697 can_build_shared=yes
15699 # All known linkers require a `.a' archive for static linking (except MSVC,
15700 # which needs '.lib').
15701 libext=a
15703 with_gnu_ld="$lt_cv_prog_gnu_ld"
15705 old_CC="$CC"
15706 old_CFLAGS="$CFLAGS"
15708 # Set sane defaults for various variables
15709 test -z "$CC" && CC=cc
15710 test -z "$LTCC" && LTCC=$CC
15711 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
15712 test -z "$LD" && LD=ld
15713 test -z "$ac_objext" && ac_objext=o
15715 for cc_temp in $compiler""; do
15716 case $cc_temp in
15717 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15718 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15719 \-*) ;;
15720 *) break;;
15721 esac
15722 done
15723 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
15726 # Only perform the check for file, if the check method requires it
15727 test -z "$MAGIC_CMD" && MAGIC_CMD=file
15728 case $deplibs_check_method in
15729 file_magic*)
15730 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
15731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
15732 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
15733 if ${lt_cv_path_MAGIC_CMD+:} false; then :
15734 $as_echo_n "(cached) " >&6
15735 else
15736 case $MAGIC_CMD in
15737 [\\/*] | ?:[\\/]*)
15738 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15741 lt_save_MAGIC_CMD="$MAGIC_CMD"
15742 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15743 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15744 for ac_dir in $ac_dummy; do
15745 IFS="$lt_save_ifs"
15746 test -z "$ac_dir" && ac_dir=.
15747 if test -f $ac_dir/${ac_tool_prefix}file; then
15748 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
15749 if test -n "$file_magic_test_file"; then
15750 case $deplibs_check_method in
15751 "file_magic "*)
15752 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15753 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15754 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15755 $EGREP "$file_magic_regex" > /dev/null; then
15757 else
15758 cat <<_LT_EOF 1>&2
15760 *** Warning: the command libtool uses to detect shared libraries,
15761 *** $file_magic_cmd, produces output that libtool cannot recognize.
15762 *** The result is that libtool may fail to recognize shared libraries
15763 *** as such. This will affect the creation of libtool libraries that
15764 *** depend on shared libraries, but programs linked with such libtool
15765 *** libraries will work regardless of this problem. Nevertheless, you
15766 *** may want to report the problem to your system manager and/or to
15767 *** bug-libtool@gnu.org
15769 _LT_EOF
15770 fi ;;
15771 esac
15773 break
15775 done
15776 IFS="$lt_save_ifs"
15777 MAGIC_CMD="$lt_save_MAGIC_CMD"
15779 esac
15782 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15783 if test -n "$MAGIC_CMD"; then
15784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15785 $as_echo "$MAGIC_CMD" >&6; }
15786 else
15787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15788 $as_echo "no" >&6; }
15795 if test -z "$lt_cv_path_MAGIC_CMD"; then
15796 if test -n "$ac_tool_prefix"; then
15797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
15798 $as_echo_n "checking for file... " >&6; }
15799 if ${lt_cv_path_MAGIC_CMD+:} false; then :
15800 $as_echo_n "(cached) " >&6
15801 else
15802 case $MAGIC_CMD in
15803 [\\/*] | ?:[\\/]*)
15804 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15807 lt_save_MAGIC_CMD="$MAGIC_CMD"
15808 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15809 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15810 for ac_dir in $ac_dummy; do
15811 IFS="$lt_save_ifs"
15812 test -z "$ac_dir" && ac_dir=.
15813 if test -f $ac_dir/file; then
15814 lt_cv_path_MAGIC_CMD="$ac_dir/file"
15815 if test -n "$file_magic_test_file"; then
15816 case $deplibs_check_method in
15817 "file_magic "*)
15818 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15819 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15820 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15821 $EGREP "$file_magic_regex" > /dev/null; then
15823 else
15824 cat <<_LT_EOF 1>&2
15826 *** Warning: the command libtool uses to detect shared libraries,
15827 *** $file_magic_cmd, produces output that libtool cannot recognize.
15828 *** The result is that libtool may fail to recognize shared libraries
15829 *** as such. This will affect the creation of libtool libraries that
15830 *** depend on shared libraries, but programs linked with such libtool
15831 *** libraries will work regardless of this problem. Nevertheless, you
15832 *** may want to report the problem to your system manager and/or to
15833 *** bug-libtool@gnu.org
15835 _LT_EOF
15836 fi ;;
15837 esac
15839 break
15841 done
15842 IFS="$lt_save_ifs"
15843 MAGIC_CMD="$lt_save_MAGIC_CMD"
15845 esac
15848 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15849 if test -n "$MAGIC_CMD"; then
15850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15851 $as_echo "$MAGIC_CMD" >&6; }
15852 else
15853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15854 $as_echo "no" >&6; }
15858 else
15859 MAGIC_CMD=:
15865 esac
15867 # Use C for the default configuration in the libtool script
15869 lt_save_CC="$CC"
15870 ac_ext=c
15871 ac_cpp='$CPP $CPPFLAGS'
15872 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15873 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15874 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15877 # Source file extension for C test sources.
15878 ac_ext=c
15880 # Object file extension for compiled C test sources.
15881 objext=o
15882 objext=$objext
15884 # Code to be used in simple compile tests
15885 lt_simple_compile_test_code="int some_variable = 0;"
15887 # Code to be used in simple link tests
15888 lt_simple_link_test_code='int main(){return(0);}'
15896 # If no C compiler was specified, use CC.
15897 LTCC=${LTCC-"$CC"}
15899 # If no C compiler flags were specified, use CFLAGS.
15900 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15902 # Allow CC to be a program name with arguments.
15903 compiler=$CC
15905 # Save the default compiler, since it gets overwritten when the other
15906 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
15907 compiler_DEFAULT=$CC
15909 # save warnings/boilerplate of simple test code
15910 ac_outfile=conftest.$ac_objext
15911 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15912 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15913 _lt_compiler_boilerplate=`cat conftest.err`
15914 $RM conftest*
15916 ac_outfile=conftest.$ac_objext
15917 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15918 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15919 _lt_linker_boilerplate=`cat conftest.err`
15920 $RM -r conftest*
15923 ## CAVEAT EMPTOR:
15924 ## There is no encapsulation within the following macros, do not change
15925 ## the running order or otherwise move them around unless you know exactly
15926 ## what you are doing...
15927 if test -n "$compiler"; then
15929 lt_prog_compiler_no_builtin_flag=
15931 if test "$GCC" = yes; then
15932 case $cc_basename in
15933 nvcc*)
15934 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
15936 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
15937 esac
15939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15940 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
15941 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
15942 $as_echo_n "(cached) " >&6
15943 else
15944 lt_cv_prog_compiler_rtti_exceptions=no
15945 ac_outfile=conftest.$ac_objext
15946 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15947 lt_compiler_flag="-fno-rtti -fno-exceptions"
15948 # Insert the option either (1) after the last *FLAGS variable, or
15949 # (2) before a word containing "conftest.", or (3) at the end.
15950 # Note that $ac_compile itself does not contain backslashes and begins
15951 # with a dollar sign (not a hyphen), so the echo should work correctly.
15952 # The option is referenced via a variable to avoid confusing sed.
15953 lt_compile=`echo "$ac_compile" | $SED \
15954 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15955 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15956 -e 's:$: $lt_compiler_flag:'`
15957 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15958 (eval "$lt_compile" 2>conftest.err)
15959 ac_status=$?
15960 cat conftest.err >&5
15961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15962 if (exit $ac_status) && test -s "$ac_outfile"; then
15963 # The compiler can only warn and ignore the option if not recognized
15964 # So say no if there are warnings other than the usual output.
15965 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15966 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15967 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15968 lt_cv_prog_compiler_rtti_exceptions=yes
15971 $RM conftest*
15974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15975 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15977 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15978 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
15979 else
15990 lt_prog_compiler_wl=
15991 lt_prog_compiler_pic=
15992 lt_prog_compiler_static=
15994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15995 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15997 if test "$GCC" = yes; then
15998 lt_prog_compiler_wl='-Wl,'
15999 lt_prog_compiler_static='-static'
16001 case $host_os in
16002 aix*)
16003 # All AIX code is PIC.
16004 if test "$host_cpu" = ia64; then
16005 # AIX 5 now supports IA64 processor
16006 lt_prog_compiler_static='-Bstatic'
16008 lt_prog_compiler_pic='-fPIC'
16011 amigaos*)
16012 case $host_cpu in
16013 powerpc)
16014 # see comment about AmigaOS4 .so support
16015 lt_prog_compiler_pic='-fPIC'
16017 m68k)
16018 # FIXME: we need at least 68020 code to build shared libraries, but
16019 # adding the `-m68020' flag to GCC prevents building anything better,
16020 # like `-m68040'.
16021 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
16023 esac
16026 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16027 # PIC is the default for these OSes.
16030 mingw* | cygwin* | pw32* | os2* | cegcc*)
16031 # This hack is so that the source file can tell whether it is being
16032 # built for inclusion in a dll (and should export symbols for example).
16033 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16034 # (--disable-auto-import) libraries
16035 lt_prog_compiler_pic='-DDLL_EXPORT'
16038 darwin* | rhapsody*)
16039 # PIC is the default on this platform
16040 # Common symbols not allowed in MH_DYLIB files
16041 lt_prog_compiler_pic='-fno-common'
16044 haiku*)
16045 # PIC is the default for Haiku.
16046 # The "-static" flag exists, but is broken.
16047 lt_prog_compiler_static=
16050 hpux*)
16051 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
16052 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
16053 # sets the default TLS model and affects inlining.
16054 case $host_cpu in
16055 hppa*64*)
16056 # +Z the default
16059 lt_prog_compiler_pic='-fPIC'
16061 esac
16064 interix[3-9]*)
16065 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16066 # Instead, we relocate shared libraries at runtime.
16069 msdosdjgpp*)
16070 # Just because we use GCC doesn't mean we suddenly get shared libraries
16071 # on systems that don't support them.
16072 lt_prog_compiler_can_build_shared=no
16073 enable_shared=no
16076 *nto* | *qnx*)
16077 # QNX uses GNU C++, but need to define -shared option too, otherwise
16078 # it will coredump.
16079 lt_prog_compiler_pic='-fPIC -shared'
16082 sysv4*MP*)
16083 if test -d /usr/nec; then
16084 lt_prog_compiler_pic=-Kconform_pic
16089 lt_prog_compiler_pic='-fPIC'
16091 esac
16093 case $cc_basename in
16094 nvcc*) # Cuda Compiler Driver 2.2
16095 lt_prog_compiler_wl='-Xlinker '
16096 lt_prog_compiler_pic='-Xcompiler -fPIC'
16098 esac
16099 else
16100 # PORTME Check for flag to pass linker flags through the system compiler.
16101 case $host_os in
16102 aix*)
16103 lt_prog_compiler_wl='-Wl,'
16104 if test "$host_cpu" = ia64; then
16105 # AIX 5 now supports IA64 processor
16106 lt_prog_compiler_static='-Bstatic'
16107 else
16108 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
16112 mingw* | cygwin* | pw32* | os2* | cegcc*)
16113 # This hack is so that the source file can tell whether it is being
16114 # built for inclusion in a dll (and should export symbols for example).
16115 lt_prog_compiler_pic='-DDLL_EXPORT'
16118 hpux9* | hpux10* | hpux11*)
16119 lt_prog_compiler_wl='-Wl,'
16120 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16121 # not for PA HP-UX.
16122 case $host_cpu in
16123 hppa*64*|ia64*)
16124 # +Z the default
16127 lt_prog_compiler_pic='+Z'
16129 esac
16130 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16131 lt_prog_compiler_static='${wl}-a ${wl}archive'
16134 irix5* | irix6* | nonstopux*)
16135 lt_prog_compiler_wl='-Wl,'
16136 # PIC (with -KPIC) is the default.
16137 lt_prog_compiler_static='-non_shared'
16140 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16141 case $cc_basename in
16142 # old Intel for x86_64 which still supported -KPIC.
16143 ecc*)
16144 lt_prog_compiler_wl='-Wl,'
16145 lt_prog_compiler_pic='-KPIC'
16146 lt_prog_compiler_static='-static'
16148 # icc used to be incompatible with GCC.
16149 # ICC 10 doesn't accept -KPIC any more.
16150 icc* | ifort*)
16151 lt_prog_compiler_wl='-Wl,'
16152 lt_prog_compiler_pic='-fPIC'
16153 lt_prog_compiler_static='-static'
16155 # Lahey Fortran 8.1.
16156 lf95*)
16157 lt_prog_compiler_wl='-Wl,'
16158 lt_prog_compiler_pic='--shared'
16159 lt_prog_compiler_static='--static'
16161 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
16162 # Portland Group compilers (*not* the Pentium gcc compiler,
16163 # which looks to be a dead project)
16164 lt_prog_compiler_wl='-Wl,'
16165 lt_prog_compiler_pic='-fpic'
16166 lt_prog_compiler_static='-Bstatic'
16168 ccc*)
16169 lt_prog_compiler_wl='-Wl,'
16170 # All Alpha code is PIC.
16171 lt_prog_compiler_static='-non_shared'
16173 xl* | bgxl* | bgf* | mpixl*)
16174 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
16175 lt_prog_compiler_wl='-Wl,'
16176 lt_prog_compiler_pic='-qpic'
16177 lt_prog_compiler_static='-qstaticlink'
16180 case `$CC -V 2>&1 | sed 5q` in
16181 *Sun\ F* | *Sun*Fortran*)
16182 # Sun Fortran 8.3 passes all unrecognized flags to the linker
16183 lt_prog_compiler_pic='-KPIC'
16184 lt_prog_compiler_static='-Bstatic'
16185 lt_prog_compiler_wl=''
16187 *Sun\ C*)
16188 # Sun C 5.9
16189 lt_prog_compiler_pic='-KPIC'
16190 lt_prog_compiler_static='-Bstatic'
16191 lt_prog_compiler_wl='-Wl,'
16193 esac
16195 esac
16198 newsos6)
16199 lt_prog_compiler_pic='-KPIC'
16200 lt_prog_compiler_static='-Bstatic'
16203 *nto* | *qnx*)
16204 # QNX uses GNU C++, but need to define -shared option too, otherwise
16205 # it will coredump.
16206 lt_prog_compiler_pic='-fPIC -shared'
16209 osf3* | osf4* | osf5*)
16210 lt_prog_compiler_wl='-Wl,'
16211 # All OSF/1 code is PIC.
16212 lt_prog_compiler_static='-non_shared'
16215 rdos*)
16216 lt_prog_compiler_static='-non_shared'
16219 solaris*)
16220 lt_prog_compiler_pic='-KPIC'
16221 lt_prog_compiler_static='-Bstatic'
16222 case $cc_basename in
16223 f77* | f90* | f95*)
16224 lt_prog_compiler_wl='-Qoption ld ';;
16226 lt_prog_compiler_wl='-Wl,';;
16227 esac
16230 sunos4*)
16231 lt_prog_compiler_wl='-Qoption ld '
16232 lt_prog_compiler_pic='-PIC'
16233 lt_prog_compiler_static='-Bstatic'
16236 sysv4 | sysv4.2uw2* | sysv4.3*)
16237 lt_prog_compiler_wl='-Wl,'
16238 lt_prog_compiler_pic='-KPIC'
16239 lt_prog_compiler_static='-Bstatic'
16242 sysv4*MP*)
16243 if test -d /usr/nec ;then
16244 lt_prog_compiler_pic='-Kconform_pic'
16245 lt_prog_compiler_static='-Bstatic'
16249 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16250 lt_prog_compiler_wl='-Wl,'
16251 lt_prog_compiler_pic='-KPIC'
16252 lt_prog_compiler_static='-Bstatic'
16255 unicos*)
16256 lt_prog_compiler_wl='-Wl,'
16257 lt_prog_compiler_can_build_shared=no
16260 uts4*)
16261 lt_prog_compiler_pic='-pic'
16262 lt_prog_compiler_static='-Bstatic'
16266 lt_prog_compiler_can_build_shared=no
16268 esac
16271 case $host_os in
16272 # For platforms which do not support PIC, -DPIC is meaningless:
16273 *djgpp*)
16274 lt_prog_compiler_pic=
16277 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
16279 esac
16280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
16281 $as_echo "$lt_prog_compiler_pic" >&6; }
16289 # Check to make sure the PIC flag actually works.
16291 if test -n "$lt_prog_compiler_pic"; then
16292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
16293 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
16294 if ${lt_cv_prog_compiler_pic_works+:} false; then :
16295 $as_echo_n "(cached) " >&6
16296 else
16297 lt_cv_prog_compiler_pic_works=no
16298 ac_outfile=conftest.$ac_objext
16299 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16300 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
16301 # Insert the option either (1) after the last *FLAGS variable, or
16302 # (2) before a word containing "conftest.", or (3) at the end.
16303 # Note that $ac_compile itself does not contain backslashes and begins
16304 # with a dollar sign (not a hyphen), so the echo should work correctly.
16305 # The option is referenced via a variable to avoid confusing sed.
16306 lt_compile=`echo "$ac_compile" | $SED \
16307 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16308 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16309 -e 's:$: $lt_compiler_flag:'`
16310 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16311 (eval "$lt_compile" 2>conftest.err)
16312 ac_status=$?
16313 cat conftest.err >&5
16314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16315 if (exit $ac_status) && test -s "$ac_outfile"; then
16316 # The compiler can only warn and ignore the option if not recognized
16317 # So say no if there are warnings other than the usual output.
16318 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
16319 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16320 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16321 lt_cv_prog_compiler_pic_works=yes
16324 $RM conftest*
16327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
16328 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
16330 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
16331 case $lt_prog_compiler_pic in
16332 "" | " "*) ;;
16333 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
16334 esac
16335 else
16336 lt_prog_compiler_pic=
16337 lt_prog_compiler_can_build_shared=no
16348 # Check to make sure the static flag actually works.
16350 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
16351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16352 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16353 if ${lt_cv_prog_compiler_static_works+:} false; then :
16354 $as_echo_n "(cached) " >&6
16355 else
16356 lt_cv_prog_compiler_static_works=no
16357 save_LDFLAGS="$LDFLAGS"
16358 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16359 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16360 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16361 # The linker can only warn and ignore the option if not recognized
16362 # So say no if there are warnings
16363 if test -s conftest.err; then
16364 # Append any errors to the config.log.
16365 cat conftest.err 1>&5
16366 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16367 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16368 if diff conftest.exp conftest.er2 >/dev/null; then
16369 lt_cv_prog_compiler_static_works=yes
16371 else
16372 lt_cv_prog_compiler_static_works=yes
16375 $RM -r conftest*
16376 LDFLAGS="$save_LDFLAGS"
16379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
16380 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
16382 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
16384 else
16385 lt_prog_compiler_static=
16394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16395 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16396 if ${lt_cv_prog_compiler_c_o+:} false; then :
16397 $as_echo_n "(cached) " >&6
16398 else
16399 lt_cv_prog_compiler_c_o=no
16400 $RM -r conftest 2>/dev/null
16401 mkdir conftest
16402 cd conftest
16403 mkdir out
16404 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16406 lt_compiler_flag="-o out/conftest2.$ac_objext"
16407 # Insert the option either (1) after the last *FLAGS variable, or
16408 # (2) before a word containing "conftest.", or (3) at the end.
16409 # Note that $ac_compile itself does not contain backslashes and begins
16410 # with a dollar sign (not a hyphen), so the echo should work correctly.
16411 lt_compile=`echo "$ac_compile" | $SED \
16412 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16413 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16414 -e 's:$: $lt_compiler_flag:'`
16415 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16416 (eval "$lt_compile" 2>out/conftest.err)
16417 ac_status=$?
16418 cat out/conftest.err >&5
16419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16420 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16421 then
16422 # The compiler can only warn and ignore the option if not recognized
16423 # So say no if there are warnings
16424 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16425 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16426 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16427 lt_cv_prog_compiler_c_o=yes
16430 chmod u+w . 2>&5
16431 $RM conftest*
16432 # SGI C++ compiler will create directory out/ii_files/ for
16433 # template instantiation
16434 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16435 $RM out/* && rmdir out
16436 cd ..
16437 $RM -r conftest
16438 $RM conftest*
16441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
16442 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
16449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16450 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16451 if ${lt_cv_prog_compiler_c_o+:} false; then :
16452 $as_echo_n "(cached) " >&6
16453 else
16454 lt_cv_prog_compiler_c_o=no
16455 $RM -r conftest 2>/dev/null
16456 mkdir conftest
16457 cd conftest
16458 mkdir out
16459 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16461 lt_compiler_flag="-o out/conftest2.$ac_objext"
16462 # Insert the option either (1) after the last *FLAGS variable, or
16463 # (2) before a word containing "conftest.", or (3) at the end.
16464 # Note that $ac_compile itself does not contain backslashes and begins
16465 # with a dollar sign (not a hyphen), so the echo should work correctly.
16466 lt_compile=`echo "$ac_compile" | $SED \
16467 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16468 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16469 -e 's:$: $lt_compiler_flag:'`
16470 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16471 (eval "$lt_compile" 2>out/conftest.err)
16472 ac_status=$?
16473 cat out/conftest.err >&5
16474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16475 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16476 then
16477 # The compiler can only warn and ignore the option if not recognized
16478 # So say no if there are warnings
16479 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16480 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16481 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16482 lt_cv_prog_compiler_c_o=yes
16485 chmod u+w . 2>&5
16486 $RM conftest*
16487 # SGI C++ compiler will create directory out/ii_files/ for
16488 # template instantiation
16489 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16490 $RM out/* && rmdir out
16491 cd ..
16492 $RM -r conftest
16493 $RM conftest*
16496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
16497 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
16502 hard_links="nottested"
16503 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
16504 # do not overwrite the value of need_locks provided by the user
16505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16506 $as_echo_n "checking if we can lock with hard links... " >&6; }
16507 hard_links=yes
16508 $RM conftest*
16509 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16510 touch conftest.a
16511 ln conftest.a conftest.b 2>&5 || hard_links=no
16512 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16514 $as_echo "$hard_links" >&6; }
16515 if test "$hard_links" = no; then
16516 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16517 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16518 need_locks=warn
16520 else
16521 need_locks=no
16529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16530 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16532 runpath_var=
16533 allow_undefined_flag=
16534 always_export_symbols=no
16535 archive_cmds=
16536 archive_expsym_cmds=
16537 compiler_needs_object=no
16538 enable_shared_with_static_runtimes=no
16539 export_dynamic_flag_spec=
16540 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16541 hardcode_automatic=no
16542 hardcode_direct=no
16543 hardcode_direct_absolute=no
16544 hardcode_libdir_flag_spec=
16545 hardcode_libdir_flag_spec_ld=
16546 hardcode_libdir_separator=
16547 hardcode_minus_L=no
16548 hardcode_shlibpath_var=unsupported
16549 inherit_rpath=no
16550 link_all_deplibs=unknown
16551 module_cmds=
16552 module_expsym_cmds=
16553 old_archive_from_new_cmds=
16554 old_archive_from_expsyms_cmds=
16555 thread_safe_flag_spec=
16556 whole_archive_flag_spec=
16557 # include_expsyms should be a list of space-separated symbols to be *always*
16558 # included in the symbol list
16559 include_expsyms=
16560 # exclude_expsyms can be an extended regexp of symbols to exclude
16561 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16562 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16563 # as well as any symbol that contains `d'.
16564 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16565 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16566 # platforms (ab)use it in PIC code, but their linkers get confused if
16567 # the symbol is explicitly referenced. Since portable code cannot
16568 # rely on this symbol name, it's probably fine to never include it in
16569 # preloaded symbol tables.
16570 # Exclude shared library initialization/finalization symbols.
16571 extract_expsyms_cmds=
16573 case $host_os in
16574 cygwin* | mingw* | pw32* | cegcc*)
16575 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16576 # When not using gcc, we currently assume that we are using
16577 # Microsoft Visual C++.
16578 if test "$GCC" != yes; then
16579 with_gnu_ld=no
16582 interix*)
16583 # we just hope/assume this is gcc and not c89 (= MSVC++)
16584 with_gnu_ld=yes
16586 openbsd*)
16587 with_gnu_ld=no
16589 esac
16591 ld_shlibs=yes
16593 # On some targets, GNU ld is compatible enough with the native linker
16594 # that we're better off using the native interface for both.
16595 lt_use_gnu_ld_interface=no
16596 if test "$with_gnu_ld" = yes; then
16597 case $host_os in
16598 aix*)
16599 # The AIX port of GNU ld has always aspired to compatibility
16600 # with the native linker. However, as the warning in the GNU ld
16601 # block says, versions before 2.19.5* couldn't really create working
16602 # shared libraries, regardless of the interface used.
16603 case `$LD -v 2>&1` in
16604 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
16605 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
16606 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
16608 lt_use_gnu_ld_interface=yes
16610 esac
16613 lt_use_gnu_ld_interface=yes
16615 esac
16618 if test "$lt_use_gnu_ld_interface" = yes; then
16619 # If archive_cmds runs LD, not CC, wlarc should be empty
16620 wlarc='${wl}'
16622 # Set some defaults for GNU ld with shared library support. These
16623 # are reset later if shared libraries are not supported. Putting them
16624 # here allows them to be overridden if necessary.
16625 runpath_var=LD_RUN_PATH
16626 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16627 export_dynamic_flag_spec='${wl}--export-dynamic'
16628 # ancient GNU ld didn't support --whole-archive et. al.
16629 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
16630 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16631 else
16632 whole_archive_flag_spec=
16634 supports_anon_versioning=no
16635 case `$LD -v 2>&1` in
16636 *GNU\ gold*) supports_anon_versioning=yes ;;
16637 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16638 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16639 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16640 *\ 2.11.*) ;; # other 2.11 versions
16641 *) supports_anon_versioning=yes ;;
16642 esac
16644 # See if GNU ld supports shared libraries.
16645 case $host_os in
16646 aix[3-9]*)
16647 # On AIX/PPC, the GNU linker is very broken
16648 if test "$host_cpu" != ia64; then
16649 ld_shlibs=no
16650 cat <<_LT_EOF 1>&2
16652 *** Warning: the GNU linker, at least up to release 2.19, is reported
16653 *** to be unable to reliably create shared libraries on AIX.
16654 *** Therefore, libtool is disabling shared libraries support. If you
16655 *** really care for shared libraries, you may want to install binutils
16656 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
16657 *** You will then need to restart the configuration process.
16659 _LT_EOF
16663 amigaos*)
16664 case $host_cpu in
16665 powerpc)
16666 # see comment about AmigaOS4 .so support
16667 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16668 archive_expsym_cmds=''
16670 m68k)
16671 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)'
16672 hardcode_libdir_flag_spec='-L$libdir'
16673 hardcode_minus_L=yes
16675 esac
16678 beos*)
16679 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16680 allow_undefined_flag=unsupported
16681 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16682 # support --undefined. This deserves some investigation. FIXME
16683 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16684 else
16685 ld_shlibs=no
16689 cygwin* | mingw* | pw32* | cegcc*)
16690 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
16691 # as there is no search path for DLLs.
16692 hardcode_libdir_flag_spec='-L$libdir'
16693 export_dynamic_flag_spec='${wl}--export-all-symbols'
16694 allow_undefined_flag=unsupported
16695 always_export_symbols=no
16696 enable_shared_with_static_runtimes=yes
16697 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16699 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
16700 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16701 # If the export-symbols file already is a .def file (1st line
16702 # is EXPORTS), use it as is; otherwise, prepend...
16703 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16704 cp $export_symbols $output_objdir/$soname.def;
16705 else
16706 echo EXPORTS > $output_objdir/$soname.def;
16707 cat $export_symbols >> $output_objdir/$soname.def;
16709 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16710 else
16711 ld_shlibs=no
16715 haiku*)
16716 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16717 link_all_deplibs=yes
16720 interix[3-9]*)
16721 hardcode_direct=no
16722 hardcode_shlibpath_var=no
16723 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16724 export_dynamic_flag_spec='${wl}-E'
16725 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16726 # Instead, shared libraries are loaded at an image base (0x10000000 by
16727 # default) and relocated if they conflict, which is a slow very memory
16728 # consuming and fragmenting process. To avoid this, we pick a random,
16729 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16730 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16731 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16732 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'
16735 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
16736 tmp_diet=no
16737 if test "$host_os" = linux-dietlibc; then
16738 case $cc_basename in
16739 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
16740 esac
16742 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
16743 && test "$tmp_diet" = no
16744 then
16745 tmp_addflag=' $pic_flag'
16746 tmp_sharedflag='-shared'
16747 case $cc_basename,$host_cpu in
16748 pgcc*) # Portland Group C compiler
16749 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'
16750 tmp_addflag=' $pic_flag'
16752 pgf77* | pgf90* | pgf95* | pgfortran*)
16753 # Portland Group f77 and f90 compilers
16754 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'
16755 tmp_addflag=' $pic_flag -Mnomain' ;;
16756 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16757 tmp_addflag=' -i_dynamic' ;;
16758 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16759 tmp_addflag=' -i_dynamic -nofor_main' ;;
16760 ifc* | ifort*) # Intel Fortran compiler
16761 tmp_addflag=' -nofor_main' ;;
16762 lf95*) # Lahey Fortran 8.1
16763 whole_archive_flag_spec=
16764 tmp_sharedflag='--shared' ;;
16765 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
16766 tmp_sharedflag='-qmkshrobj'
16767 tmp_addflag= ;;
16768 nvcc*) # Cuda Compiler Driver 2.2
16769 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'
16770 compiler_needs_object=yes
16772 esac
16773 case `$CC -V 2>&1 | sed 5q` in
16774 *Sun\ C*) # Sun C 5.9
16775 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'
16776 compiler_needs_object=yes
16777 tmp_sharedflag='-G' ;;
16778 *Sun\ F*) # Sun Fortran 8.3
16779 tmp_sharedflag='-G' ;;
16780 esac
16781 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16783 if test "x$supports_anon_versioning" = xyes; then
16784 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16785 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16786 echo "local: *; };" >> $output_objdir/$libname.ver~
16787 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16790 case $cc_basename in
16791 xlf* | bgf* | bgxlf* | mpixlf*)
16792 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
16793 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
16794 hardcode_libdir_flag_spec=
16795 hardcode_libdir_flag_spec_ld='-rpath $libdir'
16796 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
16797 if test "x$supports_anon_versioning" = xyes; then
16798 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16799 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16800 echo "local: *; };" >> $output_objdir/$libname.ver~
16801 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
16804 esac
16805 else
16806 ld_shlibs=no
16810 netbsd*)
16811 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16812 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16813 wlarc=
16814 else
16815 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16816 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16820 solaris*)
16821 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
16822 ld_shlibs=no
16823 cat <<_LT_EOF 1>&2
16825 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16826 *** create shared libraries on Solaris systems. Therefore, libtool
16827 *** is disabling shared libraries support. We urge you to upgrade GNU
16828 *** binutils to release 2.9.1 or newer. Another option is to modify
16829 *** your PATH or compiler configuration so that the native linker is
16830 *** used, and then restart.
16832 _LT_EOF
16833 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16834 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16835 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16836 else
16837 ld_shlibs=no
16841 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16842 case `$LD -v 2>&1` in
16843 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16844 ld_shlibs=no
16845 cat <<_LT_EOF 1>&2
16847 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16848 *** reliably create shared libraries on SCO systems. Therefore, libtool
16849 *** is disabling shared libraries support. We urge you to upgrade GNU
16850 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16851 *** your PATH or compiler configuration so that the native linker is
16852 *** used, and then restart.
16854 _LT_EOF
16857 # For security reasons, it is highly recommended that you always
16858 # use absolute paths for naming shared libraries, and exclude the
16859 # DT_RUNPATH tag from executables and libraries. But doing so
16860 # requires that you compile everything twice, which is a pain.
16861 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16862 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16863 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16864 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16865 else
16866 ld_shlibs=no
16869 esac
16872 sunos4*)
16873 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16874 wlarc=
16875 hardcode_direct=yes
16876 hardcode_shlibpath_var=no
16880 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16881 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16882 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16883 else
16884 ld_shlibs=no
16887 esac
16889 if test "$ld_shlibs" = no; then
16890 runpath_var=
16891 hardcode_libdir_flag_spec=
16892 export_dynamic_flag_spec=
16893 whole_archive_flag_spec=
16895 else
16896 # PORTME fill in a description of your system's linker (not GNU ld)
16897 case $host_os in
16898 aix3*)
16899 allow_undefined_flag=unsupported
16900 always_export_symbols=yes
16901 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'
16902 # Note: this linker hardcodes the directories in LIBPATH if there
16903 # are no directories specified by -L.
16904 hardcode_minus_L=yes
16905 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16906 # Neither direct hardcoding nor static linking is supported with a
16907 # broken collect2.
16908 hardcode_direct=unsupported
16912 aix[4-9]*)
16913 if test "$host_cpu" = ia64; then
16914 # On IA64, the linker does run time linking by default, so we don't
16915 # have to do anything special.
16916 aix_use_runtimelinking=no
16917 exp_sym_flag='-Bexport'
16918 no_entry_flag=""
16919 else
16920 # If we're using GNU nm, then we don't want the "-C" option.
16921 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16922 # Also, AIX nm treats weak defined symbols like other global
16923 # defined symbols, whereas GNU nm marks them as "W".
16924 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16925 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'
16926 else
16927 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'
16929 aix_use_runtimelinking=no
16931 # Test if we are trying to use run time linking or normal
16932 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16933 # need to do runtime linking.
16934 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16935 for ld_flag in $LDFLAGS; do
16936 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16937 aix_use_runtimelinking=yes
16938 break
16940 done
16942 esac
16944 exp_sym_flag='-bexport'
16945 no_entry_flag='-bnoentry'
16948 # When large executables or shared objects are built, AIX ld can
16949 # have problems creating the table of contents. If linking a library
16950 # or program results in "error TOC overflow" add -mminimal-toc to
16951 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16952 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16954 archive_cmds=''
16955 hardcode_direct=yes
16956 hardcode_direct_absolute=yes
16957 hardcode_libdir_separator=':'
16958 link_all_deplibs=yes
16959 file_list_spec='${wl}-f,'
16961 if test "$GCC" = yes; then
16962 case $host_os in aix4.[012]|aix4.[012].*)
16963 # We only want to do this on AIX 4.2 and lower, the check
16964 # below for broken collect2 doesn't work under 4.3+
16965 collect2name=`${CC} -print-prog-name=collect2`
16966 if test -f "$collect2name" &&
16967 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16968 then
16969 # We have reworked collect2
16971 else
16972 # We have old collect2
16973 hardcode_direct=unsupported
16974 # It fails to find uninstalled libraries when the uninstalled
16975 # path is not listed in the libpath. Setting hardcode_minus_L
16976 # to unsupported forces relinking
16977 hardcode_minus_L=yes
16978 hardcode_libdir_flag_spec='-L$libdir'
16979 hardcode_libdir_separator=
16982 esac
16983 shared_flag='-shared'
16984 if test "$aix_use_runtimelinking" = yes; then
16985 shared_flag="$shared_flag "'${wl}-G'
16987 else
16988 # not using gcc
16989 if test "$host_cpu" = ia64; then
16990 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16991 # chokes on -Wl,-G. The following line is correct:
16992 shared_flag='-G'
16993 else
16994 if test "$aix_use_runtimelinking" = yes; then
16995 shared_flag='${wl}-G'
16996 else
16997 shared_flag='${wl}-bM:SRE'
17002 export_dynamic_flag_spec='${wl}-bexpall'
17003 # It seems that -bexpall does not export symbols beginning with
17004 # underscore (_), so it is better to generate a list of symbols to export.
17005 always_export_symbols=yes
17006 if test "$aix_use_runtimelinking" = yes; then
17007 # Warning - without using the other runtime loading flags (-brtl),
17008 # -berok will link without error, but may produce a broken library.
17009 allow_undefined_flag='-berok'
17010 # Determine the default libpath from the value encoded in an
17011 # empty executable.
17012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17013 /* end confdefs.h. */
17016 main ()
17020 return 0;
17022 _ACEOF
17023 if ac_fn_c_try_link "$LINENO"; then :
17025 lt_aix_libpath_sed='
17026 /Import File Strings/,/^$/ {
17027 /^0/ {
17028 s/^0 *\(.*\)$/\1/
17032 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17033 # Check for a 64-bit object if we didn't find anything.
17034 if test -z "$aix_libpath"; then
17035 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17038 rm -f core conftest.err conftest.$ac_objext \
17039 conftest$ac_exeext conftest.$ac_ext
17040 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17042 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
17043 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"
17044 else
17045 if test "$host_cpu" = ia64; then
17046 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
17047 allow_undefined_flag="-z nodefs"
17048 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"
17049 else
17050 # Determine the default libpath from the value encoded in an
17051 # empty executable.
17052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17053 /* end confdefs.h. */
17056 main ()
17060 return 0;
17062 _ACEOF
17063 if ac_fn_c_try_link "$LINENO"; then :
17065 lt_aix_libpath_sed='
17066 /Import File Strings/,/^$/ {
17067 /^0/ {
17068 s/^0 *\(.*\)$/\1/
17072 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17073 # Check for a 64-bit object if we didn't find anything.
17074 if test -z "$aix_libpath"; then
17075 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17078 rm -f core conftest.err conftest.$ac_objext \
17079 conftest$ac_exeext conftest.$ac_ext
17080 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17082 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
17083 # Warning - without using the other run time loading flags,
17084 # -berok will link without error, but may produce a broken library.
17085 no_undefined_flag=' ${wl}-bernotok'
17086 allow_undefined_flag=' ${wl}-berok'
17087 if test "$with_gnu_ld" = yes; then
17088 # We only use this code for GNU lds that support --whole-archive.
17089 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
17090 else
17091 # Exported symbols can be pulled into shared objects from archives
17092 whole_archive_flag_spec='$convenience'
17094 archive_cmds_need_lc=yes
17095 # This is similar to how AIX traditionally builds its shared libraries.
17096 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'
17101 amigaos*)
17102 case $host_cpu in
17103 powerpc)
17104 # see comment about AmigaOS4 .so support
17105 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17106 archive_expsym_cmds=''
17108 m68k)
17109 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)'
17110 hardcode_libdir_flag_spec='-L$libdir'
17111 hardcode_minus_L=yes
17113 esac
17116 bsdi[45]*)
17117 export_dynamic_flag_spec=-rdynamic
17120 cygwin* | mingw* | pw32* | cegcc*)
17121 # When not using gcc, we currently assume that we are using
17122 # Microsoft Visual C++.
17123 # hardcode_libdir_flag_spec is actually meaningless, as there is
17124 # no search path for DLLs.
17125 hardcode_libdir_flag_spec=' '
17126 allow_undefined_flag=unsupported
17127 # Tell ltmain to make .lib files, not .a files.
17128 libext=lib
17129 # Tell ltmain to make .dll files, not .so files.
17130 shrext_cmds=".dll"
17131 # FIXME: Setting linknames here is a bad hack.
17132 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
17133 # The linker will automatically build a .lib file if we build a DLL.
17134 old_archive_from_new_cmds='true'
17135 # FIXME: Should let the user specify the lib program.
17136 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
17137 fix_srcfile_path='`cygpath -w "$srcfile"`'
17138 enable_shared_with_static_runtimes=yes
17141 darwin* | rhapsody*)
17144 archive_cmds_need_lc=no
17145 hardcode_direct=no
17146 hardcode_automatic=yes
17147 hardcode_shlibpath_var=unsupported
17148 if test "$lt_cv_ld_force_load" = "yes"; then
17149 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\"`'
17150 else
17151 whole_archive_flag_spec=''
17153 link_all_deplibs=yes
17154 allow_undefined_flag="$_lt_dar_allow_undefined"
17155 case $cc_basename in
17156 ifort*) _lt_dar_can_shared=yes ;;
17157 *) _lt_dar_can_shared=$GCC ;;
17158 esac
17159 if test "$_lt_dar_can_shared" = "yes"; then
17160 output_verbose_link_cmd=func_echo_all
17161 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
17162 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17163 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}"
17164 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}"
17166 else
17167 ld_shlibs=no
17172 dgux*)
17173 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17174 hardcode_libdir_flag_spec='-L$libdir'
17175 hardcode_shlibpath_var=no
17178 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17179 # support. Future versions do this automatically, but an explicit c++rt0.o
17180 # does not break anything, and helps significantly (at the cost of a little
17181 # extra space).
17182 freebsd2.2*)
17183 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17184 hardcode_libdir_flag_spec='-R$libdir'
17185 hardcode_direct=yes
17186 hardcode_shlibpath_var=no
17189 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17190 freebsd2.*)
17191 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17192 hardcode_direct=yes
17193 hardcode_minus_L=yes
17194 hardcode_shlibpath_var=no
17197 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17198 freebsd* | dragonfly*)
17199 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17200 hardcode_libdir_flag_spec='-R$libdir'
17201 hardcode_direct=yes
17202 hardcode_shlibpath_var=no
17205 hpux9*)
17206 if test "$GCC" = yes; then
17207 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'
17208 else
17209 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'
17211 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
17212 hardcode_libdir_separator=:
17213 hardcode_direct=yes
17215 # hardcode_minus_L: Not really in the search PATH,
17216 # but as the default location of the library.
17217 hardcode_minus_L=yes
17218 export_dynamic_flag_spec='${wl}-E'
17221 hpux10*)
17222 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
17223 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17224 else
17225 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17227 if test "$with_gnu_ld" = no; then
17228 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
17229 hardcode_libdir_flag_spec_ld='+b $libdir'
17230 hardcode_libdir_separator=:
17231 hardcode_direct=yes
17232 hardcode_direct_absolute=yes
17233 export_dynamic_flag_spec='${wl}-E'
17234 # hardcode_minus_L: Not really in the search PATH,
17235 # but as the default location of the library.
17236 hardcode_minus_L=yes
17240 hpux11*)
17241 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
17242 case $host_cpu in
17243 hppa*64*)
17244 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17246 ia64*)
17247 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17250 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17252 esac
17253 else
17254 case $host_cpu in
17255 hppa*64*)
17256 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17258 ia64*)
17259 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17263 # Older versions of the 11.00 compiler do not understand -b yet
17264 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
17265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
17266 $as_echo_n "checking if $CC understands -b... " >&6; }
17267 if ${lt_cv_prog_compiler__b+:} false; then :
17268 $as_echo_n "(cached) " >&6
17269 else
17270 lt_cv_prog_compiler__b=no
17271 save_LDFLAGS="$LDFLAGS"
17272 LDFLAGS="$LDFLAGS -b"
17273 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17274 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17275 # The linker can only warn and ignore the option if not recognized
17276 # So say no if there are warnings
17277 if test -s conftest.err; then
17278 # Append any errors to the config.log.
17279 cat conftest.err 1>&5
17280 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
17281 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17282 if diff conftest.exp conftest.er2 >/dev/null; then
17283 lt_cv_prog_compiler__b=yes
17285 else
17286 lt_cv_prog_compiler__b=yes
17289 $RM -r conftest*
17290 LDFLAGS="$save_LDFLAGS"
17293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
17294 $as_echo "$lt_cv_prog_compiler__b" >&6; }
17296 if test x"$lt_cv_prog_compiler__b" = xyes; then
17297 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17298 else
17299 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17303 esac
17305 if test "$with_gnu_ld" = no; then
17306 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
17307 hardcode_libdir_separator=:
17309 case $host_cpu in
17310 hppa*64*|ia64*)
17311 hardcode_direct=no
17312 hardcode_shlibpath_var=no
17315 hardcode_direct=yes
17316 hardcode_direct_absolute=yes
17317 export_dynamic_flag_spec='${wl}-E'
17319 # hardcode_minus_L: Not really in the search PATH,
17320 # but as the default location of the library.
17321 hardcode_minus_L=yes
17323 esac
17327 irix5* | irix6* | nonstopux*)
17328 if test "$GCC" = yes; then
17329 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'
17330 # Try to use the -exported_symbol ld option, if it does not
17331 # work, assume that -exports_file does not work either and
17332 # implicitly export all symbols.
17333 save_LDFLAGS="$LDFLAGS"
17334 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
17335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17336 /* end confdefs.h. */
17337 int foo(void) {}
17338 _ACEOF
17339 if ac_fn_c_try_link "$LINENO"; then :
17340 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'
17343 rm -f core conftest.err conftest.$ac_objext \
17344 conftest$ac_exeext conftest.$ac_ext
17345 LDFLAGS="$save_LDFLAGS"
17346 else
17347 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'
17348 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'
17350 archive_cmds_need_lc='no'
17351 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17352 hardcode_libdir_separator=:
17353 inherit_rpath=yes
17354 link_all_deplibs=yes
17357 netbsd*)
17358 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17359 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17360 else
17361 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17363 hardcode_libdir_flag_spec='-R$libdir'
17364 hardcode_direct=yes
17365 hardcode_shlibpath_var=no
17368 newsos6)
17369 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17370 hardcode_direct=yes
17371 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17372 hardcode_libdir_separator=:
17373 hardcode_shlibpath_var=no
17376 *nto* | *qnx*)
17379 openbsd*)
17380 if test -f /usr/libexec/ld.so; then
17381 hardcode_direct=yes
17382 hardcode_shlibpath_var=no
17383 hardcode_direct_absolute=yes
17384 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17385 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17386 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17387 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
17388 export_dynamic_flag_spec='${wl}-E'
17389 else
17390 case $host_os in
17391 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17392 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17393 hardcode_libdir_flag_spec='-R$libdir'
17396 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17397 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
17399 esac
17401 else
17402 ld_shlibs=no
17406 os2*)
17407 hardcode_libdir_flag_spec='-L$libdir'
17408 hardcode_minus_L=yes
17409 allow_undefined_flag=unsupported
17410 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'
17411 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17414 osf3*)
17415 if test "$GCC" = yes; then
17416 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
17417 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'
17418 else
17419 allow_undefined_flag=' -expect_unresolved \*'
17420 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'
17422 archive_cmds_need_lc='no'
17423 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17424 hardcode_libdir_separator=:
17427 osf4* | osf5*) # as osf3* with the addition of -msym flag
17428 if test "$GCC" = yes; then
17429 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
17430 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'
17431 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17432 else
17433 allow_undefined_flag=' -expect_unresolved \*'
17434 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'
17435 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~
17436 $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'
17438 # Both c and cxx compiler support -rpath directly
17439 hardcode_libdir_flag_spec='-rpath $libdir'
17441 archive_cmds_need_lc='no'
17442 hardcode_libdir_separator=:
17445 solaris*)
17446 no_undefined_flag=' -z defs'
17447 if test "$GCC" = yes; then
17448 wlarc='${wl}'
17449 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17450 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17451 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
17452 else
17453 case `$CC -V 2>&1` in
17454 *"Compilers 5.0"*)
17455 wlarc=''
17456 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17457 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17458 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
17461 wlarc='${wl}'
17462 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
17463 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17464 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
17466 esac
17468 hardcode_libdir_flag_spec='-R$libdir'
17469 hardcode_shlibpath_var=no
17470 case $host_os in
17471 solaris2.[0-5] | solaris2.[0-5].*) ;;
17473 # The compiler driver will combine and reorder linker options,
17474 # but understands `-z linker_flag'. GCC discards it without `$wl',
17475 # but is careful enough not to reorder.
17476 # Supported since Solaris 2.6 (maybe 2.5.1?)
17477 if test "$GCC" = yes; then
17478 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17479 else
17480 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
17483 esac
17484 link_all_deplibs=yes
17487 sunos4*)
17488 if test "x$host_vendor" = xsequent; then
17489 # Use $CC to link under sequent, because it throws in some extra .o
17490 # files that make .init and .fini sections work.
17491 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17492 else
17493 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17495 hardcode_libdir_flag_spec='-L$libdir'
17496 hardcode_direct=yes
17497 hardcode_minus_L=yes
17498 hardcode_shlibpath_var=no
17501 sysv4)
17502 case $host_vendor in
17503 sni)
17504 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17505 hardcode_direct=yes # is this really true???
17507 siemens)
17508 ## LD is ld it makes a PLAMLIB
17509 ## CC just makes a GrossModule.
17510 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17511 reload_cmds='$CC -r -o $output$reload_objs'
17512 hardcode_direct=no
17514 motorola)
17515 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17516 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
17518 esac
17519 runpath_var='LD_RUN_PATH'
17520 hardcode_shlibpath_var=no
17523 sysv4.3*)
17524 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17525 hardcode_shlibpath_var=no
17526 export_dynamic_flag_spec='-Bexport'
17529 sysv4*MP*)
17530 if test -d /usr/nec; then
17531 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17532 hardcode_shlibpath_var=no
17533 runpath_var=LD_RUN_PATH
17534 hardcode_runpath_var=yes
17535 ld_shlibs=yes
17539 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17540 no_undefined_flag='${wl}-z,text'
17541 archive_cmds_need_lc=no
17542 hardcode_shlibpath_var=no
17543 runpath_var='LD_RUN_PATH'
17545 if test "$GCC" = yes; then
17546 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17547 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17548 else
17549 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17550 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17554 sysv5* | sco3.2v5* | sco5v6*)
17555 # Note: We can NOT use -z defs as we might desire, because we do not
17556 # link with -lc, and that would cause any symbols used from libc to
17557 # always be unresolved, which means just about no library would
17558 # ever link correctly. If we're not using GNU ld we use -z text
17559 # though, which does catch some bad symbols but isn't as heavy-handed
17560 # as -z defs.
17561 no_undefined_flag='${wl}-z,text'
17562 allow_undefined_flag='${wl}-z,nodefs'
17563 archive_cmds_need_lc=no
17564 hardcode_shlibpath_var=no
17565 hardcode_libdir_flag_spec='${wl}-R,$libdir'
17566 hardcode_libdir_separator=':'
17567 link_all_deplibs=yes
17568 export_dynamic_flag_spec='${wl}-Bexport'
17569 runpath_var='LD_RUN_PATH'
17571 if test "$GCC" = yes; then
17572 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17573 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17574 else
17575 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17576 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17580 uts4*)
17581 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17582 hardcode_libdir_flag_spec='-L$libdir'
17583 hardcode_shlibpath_var=no
17587 ld_shlibs=no
17589 esac
17591 if test x$host_vendor = xsni; then
17592 case $host in
17593 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17594 export_dynamic_flag_spec='${wl}-Blargedynsym'
17596 esac
17600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
17601 $as_echo "$ld_shlibs" >&6; }
17602 test "$ld_shlibs" = no && can_build_shared=no
17604 with_gnu_ld=$with_gnu_ld
17621 # Do we need to explicitly link libc?
17623 case "x$archive_cmds_need_lc" in
17624 x|xyes)
17625 # Assume -lc should be added
17626 archive_cmds_need_lc=yes
17628 if test "$enable_shared" = yes && test "$GCC" = yes; then
17629 case $archive_cmds in
17630 *'~'*)
17631 # FIXME: we may have to deal with multi-command sequences.
17633 '$CC '*)
17634 # Test whether the compiler implicitly links with -lc since on some
17635 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17636 # to ld, don't add -lc before -lgcc.
17637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17638 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17639 if ${lt_cv_archive_cmds_need_lc+:} false; then :
17640 $as_echo_n "(cached) " >&6
17641 else
17642 $RM conftest*
17643 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17645 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17646 (eval $ac_compile) 2>&5
17647 ac_status=$?
17648 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17649 test $ac_status = 0; } 2>conftest.err; then
17650 soname=conftest
17651 lib=conftest
17652 libobjs=conftest.$ac_objext
17653 deplibs=
17654 wl=$lt_prog_compiler_wl
17655 pic_flag=$lt_prog_compiler_pic
17656 compiler_flags=-v
17657 linker_flags=-v
17658 verstring=
17659 output_objdir=.
17660 libname=conftest
17661 lt_save_allow_undefined_flag=$allow_undefined_flag
17662 allow_undefined_flag=
17663 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17664 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17665 ac_status=$?
17666 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17667 test $ac_status = 0; }
17668 then
17669 lt_cv_archive_cmds_need_lc=no
17670 else
17671 lt_cv_archive_cmds_need_lc=yes
17673 allow_undefined_flag=$lt_save_allow_undefined_flag
17674 else
17675 cat conftest.err 1>&5
17677 $RM conftest*
17680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
17681 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
17682 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
17684 esac
17687 esac
17845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17846 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17848 if test "$GCC" = yes; then
17849 case $host_os in
17850 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
17851 *) lt_awk_arg="/^libraries:/" ;;
17852 esac
17853 case $host_os in
17854 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
17855 *) lt_sed_strip_eq="s,=/,/,g" ;;
17856 esac
17857 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
17858 case $lt_search_path_spec in
17859 *\;*)
17860 # if the path contains ";" then we assume it to be the separator
17861 # otherwise default to the standard path separator (i.e. ":") - it is
17862 # assumed that no part of a normal pathname contains ";" but that should
17863 # okay in the real world where ";" in dirpaths is itself problematic.
17864 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
17867 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
17869 esac
17870 # Ok, now we have the path, separated by spaces, we can step through it
17871 # and add multilib dir if necessary.
17872 lt_tmp_lt_search_path_spec=
17873 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
17874 for lt_sys_path in $lt_search_path_spec; do
17875 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
17876 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
17877 else
17878 test -d "$lt_sys_path" && \
17879 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
17881 done
17882 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
17883 BEGIN {RS=" "; FS="/|\n";} {
17884 lt_foo="";
17885 lt_count=0;
17886 for (lt_i = NF; lt_i > 0; lt_i--) {
17887 if ($lt_i != "" && $lt_i != ".") {
17888 if ($lt_i == "..") {
17889 lt_count++;
17890 } else {
17891 if (lt_count == 0) {
17892 lt_foo="/" $lt_i lt_foo;
17893 } else {
17894 lt_count--;
17899 if (lt_foo != "") { lt_freq[lt_foo]++; }
17900 if (lt_freq[lt_foo] == 1) { print lt_foo; }
17902 # AWK program above erroneously prepends '/' to C:/dos/paths
17903 # for these hosts.
17904 case $host_os in
17905 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
17906 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
17907 esac
17908 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
17909 else
17910 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17912 library_names_spec=
17913 libname_spec='lib$name'
17914 soname_spec=
17915 shrext_cmds=".so"
17916 postinstall_cmds=
17917 postuninstall_cmds=
17918 finish_cmds=
17919 finish_eval=
17920 shlibpath_var=
17921 shlibpath_overrides_runpath=unknown
17922 version_type=none
17923 dynamic_linker="$host_os ld.so"
17924 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17925 need_lib_prefix=unknown
17926 hardcode_into_libs=no
17928 # when you set need_version to no, make sure it does not cause -set_version
17929 # flags to be left without arguments
17930 need_version=unknown
17932 case $host_os in
17933 aix3*)
17934 version_type=linux
17935 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17936 shlibpath_var=LIBPATH
17938 # AIX 3 has no versioning support, so we append a major version to the name.
17939 soname_spec='${libname}${release}${shared_ext}$major'
17942 aix[4-9]*)
17943 version_type=linux
17944 need_lib_prefix=no
17945 need_version=no
17946 hardcode_into_libs=yes
17947 if test "$host_cpu" = ia64; then
17948 # AIX 5 supports IA64
17949 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17950 shlibpath_var=LD_LIBRARY_PATH
17951 else
17952 # With GCC up to 2.95.x, collect2 would create an import file
17953 # for dependence libraries. The import file would start with
17954 # the line `#! .'. This would cause the generated library to
17955 # depend on `.', always an invalid library. This was fixed in
17956 # development snapshots of GCC prior to 3.0.
17957 case $host_os in
17958 aix4 | aix4.[01] | aix4.[01].*)
17959 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17960 echo ' yes '
17961 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
17963 else
17964 can_build_shared=no
17967 esac
17968 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17969 # soname into executable. Probably we can add versioning support to
17970 # collect2, so additional links can be useful in future.
17971 if test "$aix_use_runtimelinking" = yes; then
17972 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17973 # instead of lib<name>.a to let people know that these are not
17974 # typical AIX shared libraries.
17975 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17976 else
17977 # We preserve .a as extension for shared libraries through AIX4.2
17978 # and later when we are not doing run time linking.
17979 library_names_spec='${libname}${release}.a $libname.a'
17980 soname_spec='${libname}${release}${shared_ext}$major'
17982 shlibpath_var=LIBPATH
17986 amigaos*)
17987 case $host_cpu in
17988 powerpc)
17989 # Since July 2007 AmigaOS4 officially supports .so libraries.
17990 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17993 m68k)
17994 library_names_spec='$libname.ixlibrary $libname.a'
17995 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17996 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'
17998 esac
18001 beos*)
18002 library_names_spec='${libname}${shared_ext}'
18003 dynamic_linker="$host_os ld.so"
18004 shlibpath_var=LIBRARY_PATH
18007 bsdi[45]*)
18008 version_type=linux
18009 need_version=no
18010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18011 soname_spec='${libname}${release}${shared_ext}$major'
18012 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18013 shlibpath_var=LD_LIBRARY_PATH
18014 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18015 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18016 # the default ld.so.conf also contains /usr/contrib/lib and
18017 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18018 # libtool to hard-code these into programs
18021 cygwin* | mingw* | pw32* | cegcc*)
18022 version_type=windows
18023 shrext_cmds=".dll"
18024 need_version=no
18025 need_lib_prefix=no
18027 case $GCC,$host_os in
18028 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
18029 library_names_spec='$libname.dll.a'
18030 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18031 postinstall_cmds='base_file=`basename \${file}`~
18032 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
18033 dldir=$destdir/`dirname \$dlpath`~
18034 test -d \$dldir || mkdir -p \$dldir~
18035 $install_prog $dir/$dlname \$dldir/$dlname~
18036 chmod a+x \$dldir/$dlname~
18037 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18038 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18040 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18041 dlpath=$dir/\$dldll~
18042 $RM \$dlpath'
18043 shlibpath_overrides_runpath=yes
18045 case $host_os in
18046 cygwin*)
18047 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18048 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18050 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
18052 mingw* | cegcc*)
18053 # MinGW DLLs use traditional 'lib' prefix
18054 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18056 pw32*)
18057 # pw32 DLLs use 'pw' prefix rather than 'lib'
18058 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18060 esac
18064 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18066 esac
18067 dynamic_linker='Win32 ld.exe'
18068 # FIXME: first we should search . and the directory the executable is in
18069 shlibpath_var=PATH
18072 darwin* | rhapsody*)
18073 dynamic_linker="$host_os dyld"
18074 version_type=darwin
18075 need_lib_prefix=no
18076 need_version=no
18077 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18078 soname_spec='${libname}${release}${major}$shared_ext'
18079 shlibpath_overrides_runpath=yes
18080 shlibpath_var=DYLD_LIBRARY_PATH
18081 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18083 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
18084 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18087 dgux*)
18088 version_type=linux
18089 need_lib_prefix=no
18090 need_version=no
18091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18092 soname_spec='${libname}${release}${shared_ext}$major'
18093 shlibpath_var=LD_LIBRARY_PATH
18096 freebsd* | dragonfly*)
18097 # DragonFly does not have aout. When/if they implement a new
18098 # versioning mechanism, adjust this.
18099 if test -x /usr/bin/objformat; then
18100 objformat=`/usr/bin/objformat`
18101 else
18102 case $host_os in
18103 freebsd[23].*) objformat=aout ;;
18104 *) objformat=elf ;;
18105 esac
18107 version_type=freebsd-$objformat
18108 case $version_type in
18109 freebsd-elf*)
18110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18111 need_version=no
18112 need_lib_prefix=no
18114 freebsd-*)
18115 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18116 need_version=yes
18118 esac
18119 shlibpath_var=LD_LIBRARY_PATH
18120 case $host_os in
18121 freebsd2.*)
18122 shlibpath_overrides_runpath=yes
18124 freebsd3.[01]* | freebsdelf3.[01]*)
18125 shlibpath_overrides_runpath=yes
18126 hardcode_into_libs=yes
18128 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18129 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18130 shlibpath_overrides_runpath=no
18131 hardcode_into_libs=yes
18133 *) # from 4.6 on, and DragonFly
18134 shlibpath_overrides_runpath=yes
18135 hardcode_into_libs=yes
18137 esac
18140 gnu*)
18141 version_type=linux
18142 need_lib_prefix=no
18143 need_version=no
18144 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18145 soname_spec='${libname}${release}${shared_ext}$major'
18146 shlibpath_var=LD_LIBRARY_PATH
18147 hardcode_into_libs=yes
18150 haiku*)
18151 version_type=linux
18152 need_lib_prefix=no
18153 need_version=no
18154 dynamic_linker="$host_os runtime_loader"
18155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18156 soname_spec='${libname}${release}${shared_ext}$major'
18157 shlibpath_var=LIBRARY_PATH
18158 shlibpath_overrides_runpath=yes
18159 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
18160 hardcode_into_libs=yes
18163 hpux9* | hpux10* | hpux11*)
18164 # Give a soname corresponding to the major version so that dld.sl refuses to
18165 # link against other versions.
18166 version_type=sunos
18167 need_lib_prefix=no
18168 need_version=no
18169 case $host_cpu in
18170 ia64*)
18171 shrext_cmds='.so'
18172 hardcode_into_libs=yes
18173 dynamic_linker="$host_os dld.so"
18174 shlibpath_var=LD_LIBRARY_PATH
18175 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18176 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18177 soname_spec='${libname}${release}${shared_ext}$major'
18178 if test "X$HPUX_IA64_MODE" = X32; then
18179 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18180 else
18181 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18183 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18185 hppa*64*)
18186 shrext_cmds='.sl'
18187 hardcode_into_libs=yes
18188 dynamic_linker="$host_os dld.sl"
18189 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18190 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18192 soname_spec='${libname}${release}${shared_ext}$major'
18193 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18194 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18197 shrext_cmds='.sl'
18198 dynamic_linker="$host_os dld.sl"
18199 shlibpath_var=SHLIB_PATH
18200 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18201 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18202 soname_spec='${libname}${release}${shared_ext}$major'
18204 esac
18205 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
18206 postinstall_cmds='chmod 555 $lib'
18207 # or fails outright, so override atomically:
18208 install_override_mode=555
18211 interix[3-9]*)
18212 version_type=linux
18213 need_lib_prefix=no
18214 need_version=no
18215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18216 soname_spec='${libname}${release}${shared_ext}$major'
18217 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18218 shlibpath_var=LD_LIBRARY_PATH
18219 shlibpath_overrides_runpath=no
18220 hardcode_into_libs=yes
18223 irix5* | irix6* | nonstopux*)
18224 case $host_os in
18225 nonstopux*) version_type=nonstopux ;;
18227 if test "$lt_cv_prog_gnu_ld" = yes; then
18228 version_type=linux
18229 else
18230 version_type=irix
18231 fi ;;
18232 esac
18233 need_lib_prefix=no
18234 need_version=no
18235 soname_spec='${libname}${release}${shared_ext}$major'
18236 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18237 case $host_os in
18238 irix5* | nonstopux*)
18239 libsuff= shlibsuff=
18242 case $LD in # libtool.m4 will add one of these switches to LD
18243 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18244 libsuff= shlibsuff= libmagic=32-bit;;
18245 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18246 libsuff=32 shlibsuff=N32 libmagic=N32;;
18247 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18248 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18249 *) libsuff= shlibsuff= libmagic=never-match;;
18250 esac
18252 esac
18253 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18254 shlibpath_overrides_runpath=no
18255 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18256 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18257 hardcode_into_libs=yes
18260 # No shared lib support for Linux oldld, aout, or coff.
18261 linux*oldld* | linux*aout* | linux*coff*)
18262 dynamic_linker=no
18265 # This must be Linux ELF.
18267 # uclinux* changes (here and below) have been submitted to the libtool
18268 # project, but have not yet been accepted: they are GCC-local changes
18269 # for the time being. (See
18270 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
18271 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
18272 version_type=linux
18273 need_lib_prefix=no
18274 need_version=no
18275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18276 soname_spec='${libname}${release}${shared_ext}$major'
18277 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18278 shlibpath_var=LD_LIBRARY_PATH
18279 shlibpath_overrides_runpath=no
18281 # Some binutils ld are patched to set DT_RUNPATH
18282 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
18283 $as_echo_n "(cached) " >&6
18284 else
18285 lt_cv_shlibpath_overrides_runpath=no
18286 save_LDFLAGS=$LDFLAGS
18287 save_libdir=$libdir
18288 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
18289 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
18290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18291 /* end confdefs.h. */
18294 main ()
18298 return 0;
18300 _ACEOF
18301 if ac_fn_c_try_link "$LINENO"; then :
18302 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
18303 lt_cv_shlibpath_overrides_runpath=yes
18306 rm -f core conftest.err conftest.$ac_objext \
18307 conftest$ac_exeext conftest.$ac_ext
18308 LDFLAGS=$save_LDFLAGS
18309 libdir=$save_libdir
18313 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
18315 # This implies no fast_install, which is unacceptable.
18316 # Some rework will be needed to allow for fast_install
18317 # before this can be enabled.
18318 hardcode_into_libs=yes
18320 # Append ld.so.conf contents to the search path
18321 if test -f /etc/ld.so.conf; then
18322 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' ' '`
18323 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18326 # We used to test for /lib/ld.so.1 and disable shared libraries on
18327 # powerpc, because MkLinux only supported shared libraries with the
18328 # GNU dynamic linker. Since this was broken with cross compilers,
18329 # most powerpc-linux boxes support dynamic linking these days and
18330 # people can always --disable-shared, the test was removed, and we
18331 # assume the GNU/Linux dynamic linker is in use.
18332 dynamic_linker='GNU/Linux ld.so'
18335 netbsd*)
18336 version_type=sunos
18337 need_lib_prefix=no
18338 need_version=no
18339 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18341 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18342 dynamic_linker='NetBSD (a.out) ld.so'
18343 else
18344 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18345 soname_spec='${libname}${release}${shared_ext}$major'
18346 dynamic_linker='NetBSD ld.elf_so'
18348 shlibpath_var=LD_LIBRARY_PATH
18349 shlibpath_overrides_runpath=yes
18350 hardcode_into_libs=yes
18353 newsos6)
18354 version_type=linux
18355 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18356 shlibpath_var=LD_LIBRARY_PATH
18357 shlibpath_overrides_runpath=yes
18360 *nto* | *qnx*)
18361 version_type=qnx
18362 need_lib_prefix=no
18363 need_version=no
18364 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18365 soname_spec='${libname}${release}${shared_ext}$major'
18366 shlibpath_var=LD_LIBRARY_PATH
18367 shlibpath_overrides_runpath=no
18368 hardcode_into_libs=yes
18369 dynamic_linker='ldqnx.so'
18372 openbsd*)
18373 version_type=sunos
18374 sys_lib_dlsearch_path_spec="/usr/lib"
18375 need_lib_prefix=no
18376 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18377 case $host_os in
18378 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18379 *) need_version=no ;;
18380 esac
18381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18382 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18383 shlibpath_var=LD_LIBRARY_PATH
18384 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18385 case $host_os in
18386 openbsd2.[89] | openbsd2.[89].*)
18387 shlibpath_overrides_runpath=no
18390 shlibpath_overrides_runpath=yes
18392 esac
18393 else
18394 shlibpath_overrides_runpath=yes
18398 os2*)
18399 libname_spec='$name'
18400 shrext_cmds=".dll"
18401 need_lib_prefix=no
18402 library_names_spec='$libname${shared_ext} $libname.a'
18403 dynamic_linker='OS/2 ld.exe'
18404 shlibpath_var=LIBPATH
18407 osf3* | osf4* | osf5*)
18408 version_type=osf
18409 need_lib_prefix=no
18410 need_version=no
18411 soname_spec='${libname}${release}${shared_ext}$major'
18412 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18413 shlibpath_var=LD_LIBRARY_PATH
18414 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18415 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18418 rdos*)
18419 dynamic_linker=no
18422 solaris*)
18423 version_type=linux
18424 need_lib_prefix=no
18425 need_version=no
18426 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18427 soname_spec='${libname}${release}${shared_ext}$major'
18428 shlibpath_var=LD_LIBRARY_PATH
18429 shlibpath_overrides_runpath=yes
18430 hardcode_into_libs=yes
18431 # ldd complains unless libraries are executable
18432 postinstall_cmds='chmod +x $lib'
18435 sunos4*)
18436 version_type=sunos
18437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18438 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18439 shlibpath_var=LD_LIBRARY_PATH
18440 shlibpath_overrides_runpath=yes
18441 if test "$with_gnu_ld" = yes; then
18442 need_lib_prefix=no
18444 need_version=yes
18447 sysv4 | sysv4.3*)
18448 version_type=linux
18449 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18450 soname_spec='${libname}${release}${shared_ext}$major'
18451 shlibpath_var=LD_LIBRARY_PATH
18452 case $host_vendor in
18453 sni)
18454 shlibpath_overrides_runpath=no
18455 need_lib_prefix=no
18456 runpath_var=LD_RUN_PATH
18458 siemens)
18459 need_lib_prefix=no
18461 motorola)
18462 need_lib_prefix=no
18463 need_version=no
18464 shlibpath_overrides_runpath=no
18465 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18467 esac
18470 sysv4*MP*)
18471 if test -d /usr/nec ;then
18472 version_type=linux
18473 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18474 soname_spec='$libname${shared_ext}.$major'
18475 shlibpath_var=LD_LIBRARY_PATH
18479 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18480 version_type=freebsd-elf
18481 need_lib_prefix=no
18482 need_version=no
18483 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18484 soname_spec='${libname}${release}${shared_ext}$major'
18485 shlibpath_var=LD_LIBRARY_PATH
18486 shlibpath_overrides_runpath=yes
18487 hardcode_into_libs=yes
18488 if test "$with_gnu_ld" = yes; then
18489 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18490 else
18491 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18492 case $host_os in
18493 sco3.2v5*)
18494 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18496 esac
18498 sys_lib_dlsearch_path_spec='/usr/lib'
18501 tpf*)
18502 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
18503 version_type=linux
18504 need_lib_prefix=no
18505 need_version=no
18506 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18507 shlibpath_var=LD_LIBRARY_PATH
18508 shlibpath_overrides_runpath=no
18509 hardcode_into_libs=yes
18512 uts4*)
18513 version_type=linux
18514 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18515 soname_spec='${libname}${release}${shared_ext}$major'
18516 shlibpath_var=LD_LIBRARY_PATH
18520 dynamic_linker=no
18522 esac
18523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18524 $as_echo "$dynamic_linker" >&6; }
18525 test "$dynamic_linker" = no && can_build_shared=no
18527 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18528 if test "$GCC" = yes; then
18529 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18532 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18533 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18535 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18536 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18631 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18632 hardcode_action=
18633 if test -n "$hardcode_libdir_flag_spec" ||
18634 test -n "$runpath_var" ||
18635 test "X$hardcode_automatic" = "Xyes" ; then
18637 # We can hardcode non-existent directories.
18638 if test "$hardcode_direct" != no &&
18639 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18640 # have to relink, otherwise we might link with an installed library
18641 # when we should be linking with a yet-to-be-installed one
18642 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
18643 test "$hardcode_minus_L" != no; then
18644 # Linking always hardcodes the temporary library directory.
18645 hardcode_action=relink
18646 else
18647 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18648 hardcode_action=immediate
18650 else
18651 # We cannot hardcode anything, or else we can only hardcode existing
18652 # directories.
18653 hardcode_action=unsupported
18655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
18656 $as_echo "$hardcode_action" >&6; }
18658 if test "$hardcode_action" = relink ||
18659 test "$inherit_rpath" = yes; then
18660 # Fast installation is not supported
18661 enable_fast_install=no
18662 elif test "$shlibpath_overrides_runpath" = yes ||
18663 test "$enable_shared" = no; then
18664 # Fast installation is not necessary
18665 enable_fast_install=needless
18673 if test "x$enable_dlopen" != xyes; then
18674 enable_dlopen=unknown
18675 enable_dlopen_self=unknown
18676 enable_dlopen_self_static=unknown
18677 else
18678 lt_cv_dlopen=no
18679 lt_cv_dlopen_libs=
18681 case $host_os in
18682 beos*)
18683 lt_cv_dlopen="load_add_on"
18684 lt_cv_dlopen_libs=
18685 lt_cv_dlopen_self=yes
18688 mingw* | pw32* | cegcc*)
18689 lt_cv_dlopen="LoadLibrary"
18690 lt_cv_dlopen_libs=
18693 cygwin*)
18694 lt_cv_dlopen="dlopen"
18695 lt_cv_dlopen_libs=
18698 darwin*)
18699 # if libdl is installed we need to link against it
18700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18701 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18702 if ${ac_cv_lib_dl_dlopen+:} false; then :
18703 $as_echo_n "(cached) " >&6
18704 else
18705 ac_check_lib_save_LIBS=$LIBS
18706 LIBS="-ldl $LIBS"
18707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18708 /* end confdefs.h. */
18710 /* Override any GCC internal prototype to avoid an error.
18711 Use char because int might match the return type of a GCC
18712 builtin and then its argument prototype would still apply. */
18713 #ifdef __cplusplus
18714 extern "C"
18715 #endif
18716 char dlopen ();
18718 main ()
18720 return dlopen ();
18722 return 0;
18724 _ACEOF
18725 if ac_fn_c_try_link "$LINENO"; then :
18726 ac_cv_lib_dl_dlopen=yes
18727 else
18728 ac_cv_lib_dl_dlopen=no
18730 rm -f core conftest.err conftest.$ac_objext \
18731 conftest$ac_exeext conftest.$ac_ext
18732 LIBS=$ac_check_lib_save_LIBS
18734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18735 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18736 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
18737 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18738 else
18740 lt_cv_dlopen="dyld"
18741 lt_cv_dlopen_libs=
18742 lt_cv_dlopen_self=yes
18749 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
18750 if test "x$ac_cv_func_shl_load" = xyes; then :
18751 lt_cv_dlopen="shl_load"
18752 else
18753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
18754 $as_echo_n "checking for shl_load in -ldld... " >&6; }
18755 if ${ac_cv_lib_dld_shl_load+:} false; then :
18756 $as_echo_n "(cached) " >&6
18757 else
18758 ac_check_lib_save_LIBS=$LIBS
18759 LIBS="-ldld $LIBS"
18760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18761 /* end confdefs.h. */
18763 /* Override any GCC internal prototype to avoid an error.
18764 Use char because int might match the return type of a GCC
18765 builtin and then its argument prototype would still apply. */
18766 #ifdef __cplusplus
18767 extern "C"
18768 #endif
18769 char shl_load ();
18771 main ()
18773 return shl_load ();
18775 return 0;
18777 _ACEOF
18778 if ac_fn_c_try_link "$LINENO"; then :
18779 ac_cv_lib_dld_shl_load=yes
18780 else
18781 ac_cv_lib_dld_shl_load=no
18783 rm -f core conftest.err conftest.$ac_objext \
18784 conftest$ac_exeext conftest.$ac_ext
18785 LIBS=$ac_check_lib_save_LIBS
18787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
18788 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
18789 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
18790 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
18791 else
18792 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
18793 if test "x$ac_cv_func_dlopen" = xyes; then :
18794 lt_cv_dlopen="dlopen"
18795 else
18796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18797 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18798 if ${ac_cv_lib_dl_dlopen+:} false; then :
18799 $as_echo_n "(cached) " >&6
18800 else
18801 ac_check_lib_save_LIBS=$LIBS
18802 LIBS="-ldl $LIBS"
18803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18804 /* end confdefs.h. */
18806 /* Override any GCC internal prototype to avoid an error.
18807 Use char because int might match the return type of a GCC
18808 builtin and then its argument prototype would still apply. */
18809 #ifdef __cplusplus
18810 extern "C"
18811 #endif
18812 char dlopen ();
18814 main ()
18816 return dlopen ();
18818 return 0;
18820 _ACEOF
18821 if ac_fn_c_try_link "$LINENO"; then :
18822 ac_cv_lib_dl_dlopen=yes
18823 else
18824 ac_cv_lib_dl_dlopen=no
18826 rm -f core conftest.err conftest.$ac_objext \
18827 conftest$ac_exeext conftest.$ac_ext
18828 LIBS=$ac_check_lib_save_LIBS
18830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18831 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18832 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
18833 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18834 else
18835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
18836 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
18837 if ${ac_cv_lib_svld_dlopen+:} false; then :
18838 $as_echo_n "(cached) " >&6
18839 else
18840 ac_check_lib_save_LIBS=$LIBS
18841 LIBS="-lsvld $LIBS"
18842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18843 /* end confdefs.h. */
18845 /* Override any GCC internal prototype to avoid an error.
18846 Use char because int might match the return type of a GCC
18847 builtin and then its argument prototype would still apply. */
18848 #ifdef __cplusplus
18849 extern "C"
18850 #endif
18851 char dlopen ();
18853 main ()
18855 return dlopen ();
18857 return 0;
18859 _ACEOF
18860 if ac_fn_c_try_link "$LINENO"; then :
18861 ac_cv_lib_svld_dlopen=yes
18862 else
18863 ac_cv_lib_svld_dlopen=no
18865 rm -f core conftest.err conftest.$ac_objext \
18866 conftest$ac_exeext conftest.$ac_ext
18867 LIBS=$ac_check_lib_save_LIBS
18869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
18870 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
18871 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
18872 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18873 else
18874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
18875 $as_echo_n "checking for dld_link in -ldld... " >&6; }
18876 if ${ac_cv_lib_dld_dld_link+:} false; then :
18877 $as_echo_n "(cached) " >&6
18878 else
18879 ac_check_lib_save_LIBS=$LIBS
18880 LIBS="-ldld $LIBS"
18881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18882 /* end confdefs.h. */
18884 /* Override any GCC internal prototype to avoid an error.
18885 Use char because int might match the return type of a GCC
18886 builtin and then its argument prototype would still apply. */
18887 #ifdef __cplusplus
18888 extern "C"
18889 #endif
18890 char dld_link ();
18892 main ()
18894 return dld_link ();
18896 return 0;
18898 _ACEOF
18899 if ac_fn_c_try_link "$LINENO"; then :
18900 ac_cv_lib_dld_dld_link=yes
18901 else
18902 ac_cv_lib_dld_dld_link=no
18904 rm -f core conftest.err conftest.$ac_objext \
18905 conftest$ac_exeext conftest.$ac_ext
18906 LIBS=$ac_check_lib_save_LIBS
18908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
18909 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
18910 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
18911 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
18930 esac
18932 if test "x$lt_cv_dlopen" != xno; then
18933 enable_dlopen=yes
18934 else
18935 enable_dlopen=no
18938 case $lt_cv_dlopen in
18939 dlopen)
18940 save_CPPFLAGS="$CPPFLAGS"
18941 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18943 save_LDFLAGS="$LDFLAGS"
18944 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18946 save_LIBS="$LIBS"
18947 LIBS="$lt_cv_dlopen_libs $LIBS"
18949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
18950 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
18951 if ${lt_cv_dlopen_self+:} false; then :
18952 $as_echo_n "(cached) " >&6
18953 else
18954 if test "$cross_compiling" = yes; then :
18955 lt_cv_dlopen_self=cross
18956 else
18957 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18958 lt_status=$lt_dlunknown
18959 cat > conftest.$ac_ext <<_LT_EOF
18960 #line 18960 "configure"
18961 #include "confdefs.h"
18963 #if HAVE_DLFCN_H
18964 #include <dlfcn.h>
18965 #endif
18967 #include <stdio.h>
18969 #ifdef RTLD_GLOBAL
18970 # define LT_DLGLOBAL RTLD_GLOBAL
18971 #else
18972 # ifdef DL_GLOBAL
18973 # define LT_DLGLOBAL DL_GLOBAL
18974 # else
18975 # define LT_DLGLOBAL 0
18976 # endif
18977 #endif
18979 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18980 find out it does not work in some platform. */
18981 #ifndef LT_DLLAZY_OR_NOW
18982 # ifdef RTLD_LAZY
18983 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18984 # else
18985 # ifdef DL_LAZY
18986 # define LT_DLLAZY_OR_NOW DL_LAZY
18987 # else
18988 # ifdef RTLD_NOW
18989 # define LT_DLLAZY_OR_NOW RTLD_NOW
18990 # else
18991 # ifdef DL_NOW
18992 # define LT_DLLAZY_OR_NOW DL_NOW
18993 # else
18994 # define LT_DLLAZY_OR_NOW 0
18995 # endif
18996 # endif
18997 # endif
18998 # endif
18999 #endif
19001 /* When -fvisbility=hidden is used, assume the code has been annotated
19002 correspondingly for the symbols needed. */
19003 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
19004 void fnord () __attribute__((visibility("default")));
19005 #endif
19007 void fnord () { int i=42; }
19008 int main ()
19010 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19011 int status = $lt_dlunknown;
19013 if (self)
19015 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19016 else
19018 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19019 else puts (dlerror ());
19021 /* dlclose (self); */
19023 else
19024 puts (dlerror ());
19026 return status;
19028 _LT_EOF
19029 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
19030 (eval $ac_link) 2>&5
19031 ac_status=$?
19032 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19033 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
19034 (./conftest; exit; ) >&5 2>/dev/null
19035 lt_status=$?
19036 case x$lt_status in
19037 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
19038 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
19039 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
19040 esac
19041 else :
19042 # compilation failed
19043 lt_cv_dlopen_self=no
19046 rm -fr conftest*
19050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
19051 $as_echo "$lt_cv_dlopen_self" >&6; }
19053 if test "x$lt_cv_dlopen_self" = xyes; then
19054 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
19055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
19056 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
19057 if ${lt_cv_dlopen_self_static+:} false; then :
19058 $as_echo_n "(cached) " >&6
19059 else
19060 if test "$cross_compiling" = yes; then :
19061 lt_cv_dlopen_self_static=cross
19062 else
19063 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19064 lt_status=$lt_dlunknown
19065 cat > conftest.$ac_ext <<_LT_EOF
19066 #line 19066 "configure"
19067 #include "confdefs.h"
19069 #if HAVE_DLFCN_H
19070 #include <dlfcn.h>
19071 #endif
19073 #include <stdio.h>
19075 #ifdef RTLD_GLOBAL
19076 # define LT_DLGLOBAL RTLD_GLOBAL
19077 #else
19078 # ifdef DL_GLOBAL
19079 # define LT_DLGLOBAL DL_GLOBAL
19080 # else
19081 # define LT_DLGLOBAL 0
19082 # endif
19083 #endif
19085 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19086 find out it does not work in some platform. */
19087 #ifndef LT_DLLAZY_OR_NOW
19088 # ifdef RTLD_LAZY
19089 # define LT_DLLAZY_OR_NOW RTLD_LAZY
19090 # else
19091 # ifdef DL_LAZY
19092 # define LT_DLLAZY_OR_NOW DL_LAZY
19093 # else
19094 # ifdef RTLD_NOW
19095 # define LT_DLLAZY_OR_NOW RTLD_NOW
19096 # else
19097 # ifdef DL_NOW
19098 # define LT_DLLAZY_OR_NOW DL_NOW
19099 # else
19100 # define LT_DLLAZY_OR_NOW 0
19101 # endif
19102 # endif
19103 # endif
19104 # endif
19105 #endif
19107 /* When -fvisbility=hidden is used, assume the code has been annotated
19108 correspondingly for the symbols needed. */
19109 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
19110 void fnord () __attribute__((visibility("default")));
19111 #endif
19113 void fnord () { int i=42; }
19114 int main ()
19116 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19117 int status = $lt_dlunknown;
19119 if (self)
19121 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19122 else
19124 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19125 else puts (dlerror ());
19127 /* dlclose (self); */
19129 else
19130 puts (dlerror ());
19132 return status;
19134 _LT_EOF
19135 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
19136 (eval $ac_link) 2>&5
19137 ac_status=$?
19138 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19139 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
19140 (./conftest; exit; ) >&5 2>/dev/null
19141 lt_status=$?
19142 case x$lt_status in
19143 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
19144 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
19145 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
19146 esac
19147 else :
19148 # compilation failed
19149 lt_cv_dlopen_self_static=no
19152 rm -fr conftest*
19156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
19157 $as_echo "$lt_cv_dlopen_self_static" >&6; }
19160 CPPFLAGS="$save_CPPFLAGS"
19161 LDFLAGS="$save_LDFLAGS"
19162 LIBS="$save_LIBS"
19164 esac
19166 case $lt_cv_dlopen_self in
19167 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
19168 *) enable_dlopen_self=unknown ;;
19169 esac
19171 case $lt_cv_dlopen_self_static in
19172 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
19173 *) enable_dlopen_self_static=unknown ;;
19174 esac
19193 striplib=
19194 old_striplib=
19195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
19196 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
19197 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
19198 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
19199 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
19200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19201 $as_echo "yes" >&6; }
19202 else
19203 # FIXME - insert some real tests, host_os isn't really good enough
19204 case $host_os in
19205 darwin*)
19206 if test -n "$STRIP" ; then
19207 striplib="$STRIP -x"
19208 old_striplib="$STRIP -S"
19209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19210 $as_echo "yes" >&6; }
19211 else
19212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19213 $as_echo "no" >&6; }
19217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19218 $as_echo "no" >&6; }
19220 esac
19234 # Report which library types will actually be built
19235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
19236 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
19237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
19238 $as_echo "$can_build_shared" >&6; }
19240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
19241 $as_echo_n "checking whether to build shared libraries... " >&6; }
19242 test "$can_build_shared" = "no" && enable_shared=no
19244 # On AIX, shared libraries and static libraries use the same namespace, and
19245 # are all built from PIC.
19246 case $host_os in
19247 aix3*)
19248 test "$enable_shared" = yes && enable_static=no
19249 if test -n "$RANLIB"; then
19250 archive_cmds="$archive_cmds~\$RANLIB \$lib"
19251 postinstall_cmds='$RANLIB $lib'
19255 aix[4-9]*)
19256 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
19257 test "$enable_shared" = yes && enable_static=no
19260 esac
19261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
19262 $as_echo "$enable_shared" >&6; }
19264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
19265 $as_echo_n "checking whether to build static libraries... " >&6; }
19266 # Make sure either enable_shared or enable_static is yes.
19267 test "$enable_shared" = yes || enable_static=yes
19268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
19269 $as_echo "$enable_static" >&6; }
19275 ac_ext=cpp
19276 ac_cpp='$CXXCPP $CPPFLAGS'
19277 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19278 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19279 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19281 CC="$lt_save_CC"
19283 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
19284 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
19285 (test "X$CXX" != "Xg++"))) ; then
19286 ac_ext=cpp
19287 ac_cpp='$CXXCPP $CPPFLAGS'
19288 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19289 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19290 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
19292 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
19293 if test -z "$CXXCPP"; then
19294 if ${ac_cv_prog_CXXCPP+:} false; then :
19295 $as_echo_n "(cached) " >&6
19296 else
19297 # Double quotes because CXXCPP needs to be expanded
19298 for CXXCPP in "$CXX -E" "/lib/cpp"
19300 ac_preproc_ok=false
19301 for ac_cxx_preproc_warn_flag in '' yes
19303 # Use a header file that comes with gcc, so configuring glibc
19304 # with a fresh cross-compiler works.
19305 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19306 # <limits.h> exists even on freestanding compilers.
19307 # On the NeXT, cc -E runs the code through the compiler's parser,
19308 # not just through cpp. "Syntax error" is here to catch this case.
19309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19310 /* end confdefs.h. */
19311 #ifdef __STDC__
19312 # include <limits.h>
19313 #else
19314 # include <assert.h>
19315 #endif
19316 Syntax error
19317 _ACEOF
19318 if ac_fn_cxx_try_cpp "$LINENO"; then :
19320 else
19321 # Broken: fails on valid input.
19322 continue
19324 rm -f conftest.err conftest.i conftest.$ac_ext
19326 # OK, works on sane cases. Now check whether nonexistent headers
19327 # can be detected and how.
19328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19329 /* end confdefs.h. */
19330 #include <ac_nonexistent.h>
19331 _ACEOF
19332 if ac_fn_cxx_try_cpp "$LINENO"; then :
19333 # Broken: success on invalid input.
19334 continue
19335 else
19336 # Passes both tests.
19337 ac_preproc_ok=:
19338 break
19340 rm -f conftest.err conftest.i conftest.$ac_ext
19342 done
19343 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
19344 rm -f conftest.i conftest.err conftest.$ac_ext
19345 if $ac_preproc_ok; then :
19346 break
19349 done
19350 ac_cv_prog_CXXCPP=$CXXCPP
19353 CXXCPP=$ac_cv_prog_CXXCPP
19354 else
19355 ac_cv_prog_CXXCPP=$CXXCPP
19357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
19358 $as_echo "$CXXCPP" >&6; }
19359 ac_preproc_ok=false
19360 for ac_cxx_preproc_warn_flag in '' yes
19362 # Use a header file that comes with gcc, so configuring glibc
19363 # with a fresh cross-compiler works.
19364 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19365 # <limits.h> exists even on freestanding compilers.
19366 # On the NeXT, cc -E runs the code through the compiler's parser,
19367 # not just through cpp. "Syntax error" is here to catch this case.
19368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19369 /* end confdefs.h. */
19370 #ifdef __STDC__
19371 # include <limits.h>
19372 #else
19373 # include <assert.h>
19374 #endif
19375 Syntax error
19376 _ACEOF
19377 if ac_fn_cxx_try_cpp "$LINENO"; then :
19379 else
19380 # Broken: fails on valid input.
19381 continue
19383 rm -f conftest.err conftest.i conftest.$ac_ext
19385 # OK, works on sane cases. Now check whether nonexistent headers
19386 # can be detected and how.
19387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19388 /* end confdefs.h. */
19389 #include <ac_nonexistent.h>
19390 _ACEOF
19391 if ac_fn_cxx_try_cpp "$LINENO"; then :
19392 # Broken: success on invalid input.
19393 continue
19394 else
19395 # Passes both tests.
19396 ac_preproc_ok=:
19397 break
19399 rm -f conftest.err conftest.i conftest.$ac_ext
19401 done
19402 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
19403 rm -f conftest.i conftest.err conftest.$ac_ext
19404 if $ac_preproc_ok; then :
19406 else
19407 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19408 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19409 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
19410 See \`config.log' for more details" "$LINENO" 5; }
19413 ac_ext=cpp
19414 ac_cpp='$CXXCPP $CPPFLAGS'
19415 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19416 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19417 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19419 else
19420 _lt_caught_CXX_error=yes
19423 ac_ext=cpp
19424 ac_cpp='$CXXCPP $CPPFLAGS'
19425 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19426 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19427 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19429 archive_cmds_need_lc_CXX=no
19430 allow_undefined_flag_CXX=
19431 always_export_symbols_CXX=no
19432 archive_expsym_cmds_CXX=
19433 compiler_needs_object_CXX=no
19434 export_dynamic_flag_spec_CXX=
19435 hardcode_direct_CXX=no
19436 hardcode_direct_absolute_CXX=no
19437 hardcode_libdir_flag_spec_CXX=
19438 hardcode_libdir_flag_spec_ld_CXX=
19439 hardcode_libdir_separator_CXX=
19440 hardcode_minus_L_CXX=no
19441 hardcode_shlibpath_var_CXX=unsupported
19442 hardcode_automatic_CXX=no
19443 inherit_rpath_CXX=no
19444 module_cmds_CXX=
19445 module_expsym_cmds_CXX=
19446 link_all_deplibs_CXX=unknown
19447 old_archive_cmds_CXX=$old_archive_cmds
19448 reload_flag_CXX=$reload_flag
19449 reload_cmds_CXX=$reload_cmds
19450 no_undefined_flag_CXX=
19451 whole_archive_flag_spec_CXX=
19452 enable_shared_with_static_runtimes_CXX=no
19454 # Source file extension for C++ test sources.
19455 ac_ext=cpp
19457 # Object file extension for compiled C++ test sources.
19458 objext=o
19459 objext_CXX=$objext
19461 # No sense in running all these tests if we already determined that
19462 # the CXX compiler isn't working. Some variables (like enable_shared)
19463 # are currently assumed to apply to all compilers on this platform,
19464 # and will be corrupted by setting them based on a non-working compiler.
19465 if test "$_lt_caught_CXX_error" != yes; then
19466 # Code to be used in simple compile tests
19467 lt_simple_compile_test_code="int some_variable = 0;"
19469 # Code to be used in simple link tests
19470 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
19472 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19479 # If no C compiler was specified, use CC.
19480 LTCC=${LTCC-"$CC"}
19482 # If no C compiler flags were specified, use CFLAGS.
19483 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19485 # Allow CC to be a program name with arguments.
19486 compiler=$CC
19489 # save warnings/boilerplate of simple test code
19490 ac_outfile=conftest.$ac_objext
19491 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19492 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19493 _lt_compiler_boilerplate=`cat conftest.err`
19494 $RM conftest*
19496 ac_outfile=conftest.$ac_objext
19497 echo "$lt_simple_link_test_code" >conftest.$ac_ext
19498 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19499 _lt_linker_boilerplate=`cat conftest.err`
19500 $RM -r conftest*
19503 # Allow CC to be a program name with arguments.
19504 lt_save_CC=$CC
19505 lt_save_LD=$LD
19506 lt_save_GCC=$GCC
19507 GCC=$GXX
19508 lt_save_with_gnu_ld=$with_gnu_ld
19509 lt_save_path_LD=$lt_cv_path_LD
19510 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
19511 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
19512 else
19513 $as_unset lt_cv_prog_gnu_ld
19515 if test -n "${lt_cv_path_LDCXX+set}"; then
19516 lt_cv_path_LD=$lt_cv_path_LDCXX
19517 else
19518 $as_unset lt_cv_path_LD
19520 test -z "${LDCXX+set}" || LD=$LDCXX
19521 CC=${CXX-"c++"}
19522 compiler=$CC
19523 compiler_CXX=$CC
19524 for cc_temp in $compiler""; do
19525 case $cc_temp in
19526 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19527 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19528 \-*) ;;
19529 *) break;;
19530 esac
19531 done
19532 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
19535 if test -n "$compiler"; then
19536 # We don't want -fno-exception when compiling C++ code, so set the
19537 # no_builtin_flag separately
19538 if test "$GXX" = yes; then
19539 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
19540 else
19541 lt_prog_compiler_no_builtin_flag_CXX=
19544 if test "$GXX" = yes; then
19545 # Set up default GNU C++ configuration
19549 # Check whether --with-gnu-ld was given.
19550 if test "${with_gnu_ld+set}" = set; then :
19551 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
19552 else
19553 with_gnu_ld=no
19556 ac_prog=ld
19557 if test "$GCC" = yes; then
19558 # Check if gcc -print-prog-name=ld gives a path.
19559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
19560 $as_echo_n "checking for ld used by $CC... " >&6; }
19561 case $host in
19562 *-*-mingw*)
19563 # gcc leaves a trailing carriage return which upsets mingw
19564 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
19566 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
19567 esac
19568 case $ac_prog in
19569 # Accept absolute paths.
19570 [\\/]* | ?:[\\/]*)
19571 re_direlt='/[^/][^/]*/\.\./'
19572 # Canonicalize the pathname of ld
19573 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
19574 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
19575 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
19576 done
19577 test -z "$LD" && LD="$ac_prog"
19580 # If it fails, then pretend we aren't using GCC.
19581 ac_prog=ld
19584 # If it is relative, then search for the first ld in PATH.
19585 with_gnu_ld=unknown
19587 esac
19588 elif test "$with_gnu_ld" = yes; then
19589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
19590 $as_echo_n "checking for GNU ld... " >&6; }
19591 else
19592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
19593 $as_echo_n "checking for non-GNU ld... " >&6; }
19595 if ${lt_cv_path_LD+:} false; then :
19596 $as_echo_n "(cached) " >&6
19597 else
19598 if test -z "$LD"; then
19599 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
19600 for ac_dir in $PATH; do
19601 IFS="$lt_save_ifs"
19602 test -z "$ac_dir" && ac_dir=.
19603 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
19604 lt_cv_path_LD="$ac_dir/$ac_prog"
19605 # Check to see if the program is GNU ld. I'd rather use --version,
19606 # but apparently some variants of GNU ld only accept -v.
19607 # Break only if it was the GNU/non-GNU ld that we prefer.
19608 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
19609 *GNU* | *'with BFD'*)
19610 test "$with_gnu_ld" != no && break
19613 test "$with_gnu_ld" != yes && break
19615 esac
19617 done
19618 IFS="$lt_save_ifs"
19619 else
19620 lt_cv_path_LD="$LD" # Let the user override the test with a path.
19624 LD="$lt_cv_path_LD"
19625 if test -n "$LD"; then
19626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
19627 $as_echo "$LD" >&6; }
19628 else
19629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19630 $as_echo "no" >&6; }
19632 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
19633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
19634 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
19635 if ${lt_cv_prog_gnu_ld+:} false; then :
19636 $as_echo_n "(cached) " >&6
19637 else
19638 # I'd rather use --version here, but apparently some GNU lds only accept -v.
19639 case `$LD -v 2>&1 </dev/null` in
19640 *GNU* | *'with BFD'*)
19641 lt_cv_prog_gnu_ld=yes
19644 lt_cv_prog_gnu_ld=no
19646 esac
19648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
19649 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
19650 with_gnu_ld=$lt_cv_prog_gnu_ld
19658 # Check if GNU C++ uses GNU ld as the underlying linker, since the
19659 # archiving commands below assume that GNU ld is being used.
19660 if test "$with_gnu_ld" = yes; then
19661 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19662 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'
19664 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19665 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19667 # If archive_cmds runs LD, not CC, wlarc should be empty
19668 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
19669 # investigate it a little bit more. (MM)
19670 wlarc='${wl}'
19672 # ancient GNU ld didn't support --whole-archive et. al.
19673 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
19674 $GREP 'no-whole-archive' > /dev/null; then
19675 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19676 else
19677 whole_archive_flag_spec_CXX=
19679 else
19680 with_gnu_ld=no
19681 wlarc=
19683 # A generic and very simple default shared library creation
19684 # command for GNU C++ for the case where it uses the native
19685 # linker, instead of GNU ld. If possible, this setting should
19686 # overridden to take advantage of the native linker features on
19687 # the platform it is being used on.
19688 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19691 # Commands to make compiler produce verbose output that lists
19692 # what "hidden" libraries, object files and flags are used when
19693 # linking a shared library.
19694 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19696 else
19697 GXX=no
19698 with_gnu_ld=no
19699 wlarc=
19702 # PORTME: fill in a description of your system's C++ link characteristics
19703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19704 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19705 ld_shlibs_CXX=yes
19706 case $host_os in
19707 aix3*)
19708 # FIXME: insert proper C++ library support
19709 ld_shlibs_CXX=no
19711 aix[4-9]*)
19712 if test "$host_cpu" = ia64; then
19713 # On IA64, the linker does run time linking by default, so we don't
19714 # have to do anything special.
19715 aix_use_runtimelinking=no
19716 exp_sym_flag='-Bexport'
19717 no_entry_flag=""
19718 else
19719 aix_use_runtimelinking=no
19721 # Test if we are trying to use run time linking or normal
19722 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19723 # need to do runtime linking.
19724 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
19725 for ld_flag in $LDFLAGS; do
19726 case $ld_flag in
19727 *-brtl*)
19728 aix_use_runtimelinking=yes
19729 break
19731 esac
19732 done
19734 esac
19736 exp_sym_flag='-bexport'
19737 no_entry_flag='-bnoentry'
19740 # When large executables or shared objects are built, AIX ld can
19741 # have problems creating the table of contents. If linking a library
19742 # or program results in "error TOC overflow" add -mminimal-toc to
19743 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19744 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19746 archive_cmds_CXX=''
19747 hardcode_direct_CXX=yes
19748 hardcode_direct_absolute_CXX=yes
19749 hardcode_libdir_separator_CXX=':'
19750 link_all_deplibs_CXX=yes
19751 file_list_spec_CXX='${wl}-f,'
19753 if test "$GXX" = yes; then
19754 case $host_os in aix4.[012]|aix4.[012].*)
19755 # We only want to do this on AIX 4.2 and lower, the check
19756 # below for broken collect2 doesn't work under 4.3+
19757 collect2name=`${CC} -print-prog-name=collect2`
19758 if test -f "$collect2name" &&
19759 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
19760 then
19761 # We have reworked collect2
19763 else
19764 # We have old collect2
19765 hardcode_direct_CXX=unsupported
19766 # It fails to find uninstalled libraries when the uninstalled
19767 # path is not listed in the libpath. Setting hardcode_minus_L
19768 # to unsupported forces relinking
19769 hardcode_minus_L_CXX=yes
19770 hardcode_libdir_flag_spec_CXX='-L$libdir'
19771 hardcode_libdir_separator_CXX=
19773 esac
19774 shared_flag='-shared'
19775 if test "$aix_use_runtimelinking" = yes; then
19776 shared_flag="$shared_flag "'${wl}-G'
19778 else
19779 # not using gcc
19780 if test "$host_cpu" = ia64; then
19781 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19782 # chokes on -Wl,-G. The following line is correct:
19783 shared_flag='-G'
19784 else
19785 if test "$aix_use_runtimelinking" = yes; then
19786 shared_flag='${wl}-G'
19787 else
19788 shared_flag='${wl}-bM:SRE'
19793 export_dynamic_flag_spec_CXX='${wl}-bexpall'
19794 # It seems that -bexpall does not export symbols beginning with
19795 # underscore (_), so it is better to generate a list of symbols to
19796 # export.
19797 always_export_symbols_CXX=yes
19798 if test "$aix_use_runtimelinking" = yes; then
19799 # Warning - without using the other runtime loading flags (-brtl),
19800 # -berok will link without error, but may produce a broken library.
19801 allow_undefined_flag_CXX='-berok'
19802 # Determine the default libpath from the value encoded in an empty
19803 # executable.
19804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19805 /* end confdefs.h. */
19808 main ()
19812 return 0;
19814 _ACEOF
19815 if ac_fn_cxx_try_link "$LINENO"; then :
19817 lt_aix_libpath_sed='
19818 /Import File Strings/,/^$/ {
19819 /^0/ {
19820 s/^0 *\(.*\)$/\1/
19824 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19825 # Check for a 64-bit object if we didn't find anything.
19826 if test -z "$aix_libpath"; then
19827 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19830 rm -f core conftest.err conftest.$ac_objext \
19831 conftest$ac_exeext conftest.$ac_ext
19832 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19834 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19836 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"
19837 else
19838 if test "$host_cpu" = ia64; then
19839 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
19840 allow_undefined_flag_CXX="-z nodefs"
19841 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"
19842 else
19843 # Determine the default libpath from the value encoded in an
19844 # empty executable.
19845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19846 /* end confdefs.h. */
19849 main ()
19853 return 0;
19855 _ACEOF
19856 if ac_fn_cxx_try_link "$LINENO"; then :
19858 lt_aix_libpath_sed='
19859 /Import File Strings/,/^$/ {
19860 /^0/ {
19861 s/^0 *\(.*\)$/\1/
19865 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19866 # Check for a 64-bit object if we didn't find anything.
19867 if test -z "$aix_libpath"; then
19868 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19871 rm -f core conftest.err conftest.$ac_objext \
19872 conftest$ac_exeext conftest.$ac_ext
19873 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19875 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19876 # Warning - without using the other run time loading flags,
19877 # -berok will link without error, but may produce a broken library.
19878 no_undefined_flag_CXX=' ${wl}-bernotok'
19879 allow_undefined_flag_CXX=' ${wl}-berok'
19880 if test "$with_gnu_ld" = yes; then
19881 # We only use this code for GNU lds that support --whole-archive.
19882 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19883 else
19884 # Exported symbols can be pulled into shared objects from archives
19885 whole_archive_flag_spec_CXX='$convenience'
19887 archive_cmds_need_lc_CXX=yes
19888 # This is similar to how AIX traditionally builds its shared
19889 # libraries.
19890 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'
19895 beos*)
19896 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
19897 allow_undefined_flag_CXX=unsupported
19898 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19899 # support --undefined. This deserves some investigation. FIXME
19900 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19901 else
19902 ld_shlibs_CXX=no
19906 chorus*)
19907 case $cc_basename in
19909 # FIXME: insert proper C++ library support
19910 ld_shlibs_CXX=no
19912 esac
19915 cygwin* | mingw* | pw32* | cegcc*)
19916 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19917 # as there is no search path for DLLs.
19918 hardcode_libdir_flag_spec_CXX='-L$libdir'
19919 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
19920 allow_undefined_flag_CXX=unsupported
19921 always_export_symbols_CXX=no
19922 enable_shared_with_static_runtimes_CXX=yes
19924 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
19925 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'
19926 # If the export-symbols file already is a .def file (1st line
19927 # is EXPORTS), use it as is; otherwise, prepend...
19928 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19929 cp $export_symbols $output_objdir/$soname.def;
19930 else
19931 echo EXPORTS > $output_objdir/$soname.def;
19932 cat $export_symbols >> $output_objdir/$soname.def;
19934 $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'
19935 else
19936 ld_shlibs_CXX=no
19939 darwin* | rhapsody*)
19942 archive_cmds_need_lc_CXX=no
19943 hardcode_direct_CXX=no
19944 hardcode_automatic_CXX=yes
19945 hardcode_shlibpath_var_CXX=unsupported
19946 if test "$lt_cv_ld_force_load" = "yes"; then
19947 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\"`'
19948 else
19949 whole_archive_flag_spec_CXX=''
19951 link_all_deplibs_CXX=yes
19952 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
19953 case $cc_basename in
19954 ifort*) _lt_dar_can_shared=yes ;;
19955 *) _lt_dar_can_shared=$GCC ;;
19956 esac
19957 if test "$_lt_dar_can_shared" = "yes"; then
19958 output_verbose_link_cmd=func_echo_all
19959 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}"
19960 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19961 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}"
19962 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}"
19963 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
19964 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}"
19965 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}"
19968 else
19969 ld_shlibs_CXX=no
19974 dgux*)
19975 case $cc_basename in
19976 ec++*)
19977 # FIXME: insert proper C++ library support
19978 ld_shlibs_CXX=no
19980 ghcx*)
19981 # Green Hills C++ Compiler
19982 # FIXME: insert proper C++ library support
19983 ld_shlibs_CXX=no
19986 # FIXME: insert proper C++ library support
19987 ld_shlibs_CXX=no
19989 esac
19992 freebsd2.*)
19993 # C++ shared libraries reported to be fairly broken before
19994 # switch to ELF
19995 ld_shlibs_CXX=no
19998 freebsd-elf*)
19999 archive_cmds_need_lc_CXX=no
20002 freebsd* | dragonfly*)
20003 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
20004 # conventions
20005 ld_shlibs_CXX=yes
20008 gnu*)
20011 haiku*)
20012 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20013 link_all_deplibs_CXX=yes
20016 hpux9*)
20017 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
20018 hardcode_libdir_separator_CXX=:
20019 export_dynamic_flag_spec_CXX='${wl}-E'
20020 hardcode_direct_CXX=yes
20021 hardcode_minus_L_CXX=yes # Not in the search PATH,
20022 # but as the default
20023 # location of the library.
20025 case $cc_basename in
20026 CC*)
20027 # FIXME: insert proper C++ library support
20028 ld_shlibs_CXX=no
20030 aCC*)
20031 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'
20032 # Commands to make compiler produce verbose output that lists
20033 # what "hidden" libraries, object files and flags are used when
20034 # linking a shared library.
20036 # There doesn't appear to be a way to prevent this compiler from
20037 # explicitly linking system object files so we need to strip them
20038 # from the output so that they don't get included in the library
20039 # dependencies.
20040 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"'
20043 if test "$GXX" = yes; then
20044 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'
20045 else
20046 # FIXME: insert proper C++ library support
20047 ld_shlibs_CXX=no
20050 esac
20053 hpux10*|hpux11*)
20054 if test $with_gnu_ld = no; then
20055 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
20056 hardcode_libdir_separator_CXX=:
20058 case $host_cpu in
20059 hppa*64*|ia64*)
20062 export_dynamic_flag_spec_CXX='${wl}-E'
20064 esac
20066 case $host_cpu in
20067 hppa*64*|ia64*)
20068 hardcode_direct_CXX=no
20069 hardcode_shlibpath_var_CXX=no
20072 hardcode_direct_CXX=yes
20073 hardcode_direct_absolute_CXX=yes
20074 hardcode_minus_L_CXX=yes # Not in the search PATH,
20075 # but as the default
20076 # location of the library.
20078 esac
20080 case $cc_basename in
20081 CC*)
20082 # FIXME: insert proper C++ library support
20083 ld_shlibs_CXX=no
20085 aCC*)
20086 case $host_cpu in
20087 hppa*64*)
20088 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20090 ia64*)
20091 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20094 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20096 esac
20097 # Commands to make compiler produce verbose output that lists
20098 # what "hidden" libraries, object files and flags are used when
20099 # linking a shared library.
20101 # There doesn't appear to be a way to prevent this compiler from
20102 # explicitly linking system object files so we need to strip them
20103 # from the output so that they don't get included in the library
20104 # dependencies.
20105 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"'
20108 if test "$GXX" = yes; then
20109 if test $with_gnu_ld = no; then
20110 case $host_cpu in
20111 hppa*64*)
20112 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20114 ia64*)
20115 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20118 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'
20120 esac
20122 else
20123 # FIXME: insert proper C++ library support
20124 ld_shlibs_CXX=no
20127 esac
20130 interix[3-9]*)
20131 hardcode_direct_CXX=no
20132 hardcode_shlibpath_var_CXX=no
20133 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
20134 export_dynamic_flag_spec_CXX='${wl}-E'
20135 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
20136 # Instead, shared libraries are loaded at an image base (0x10000000 by
20137 # default) and relocated if they conflict, which is a slow very memory
20138 # consuming and fragmenting process. To avoid this, we pick a random,
20139 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
20140 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
20141 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'
20142 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'
20144 irix5* | irix6*)
20145 case $cc_basename in
20146 CC*)
20147 # SGI C++
20148 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'
20150 # Archives containing C++ object files must be created using
20151 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
20152 # necessary to make sure instantiated templates are included
20153 # in the archive.
20154 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
20157 if test "$GXX" = yes; then
20158 if test "$with_gnu_ld" = no; then
20159 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'
20160 else
20161 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'
20164 link_all_deplibs_CXX=yes
20166 esac
20167 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
20168 hardcode_libdir_separator_CXX=:
20169 inherit_rpath_CXX=yes
20172 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20173 case $cc_basename in
20174 KCC*)
20175 # Kuck and Associates, Inc. (KAI) C++ Compiler
20177 # KCC will only create a shared library if the output file
20178 # ends with ".so" (or ".sl" for HP-UX), so rename the library
20179 # to its proper name (with version) after linking.
20180 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'
20181 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'
20182 # Commands to make compiler produce verbose output that lists
20183 # what "hidden" libraries, object files and flags are used when
20184 # linking a shared library.
20186 # There doesn't appear to be a way to prevent this compiler from
20187 # explicitly linking system object files so we need to strip them
20188 # from the output so that they don't get included in the library
20189 # dependencies.
20190 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"'
20192 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
20193 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
20195 # Archives containing C++ object files must be created using
20196 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
20197 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
20199 icpc* | ecpc* )
20200 # Intel C++
20201 with_gnu_ld=yes
20202 # version 8.0 and above of icpc choke on multiply defined symbols
20203 # if we add $predep_objects and $postdep_objects, however 7.1 and
20204 # earlier do not add the objects themselves.
20205 case `$CC -V 2>&1` in
20206 *"Version 7."*)
20207 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
20208 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'
20210 *) # Version 8.0 or newer
20211 tmp_idyn=
20212 case $host_cpu in
20213 ia64*) tmp_idyn=' -i_dynamic';;
20214 esac
20215 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20216 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'
20218 esac
20219 archive_cmds_need_lc_CXX=no
20220 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
20221 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
20222 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
20224 pgCC* | pgcpp*)
20225 # Portland Group C++ compiler
20226 case `$CC -V` in
20227 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
20228 prelink_cmds_CXX='tpldir=Template.dir~
20229 rm -rf $tpldir~
20230 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
20231 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
20232 old_archive_cmds_CXX='tpldir=Template.dir~
20233 rm -rf $tpldir~
20234 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
20235 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
20236 $RANLIB $oldlib'
20237 archive_cmds_CXX='tpldir=Template.dir~
20238 rm -rf $tpldir~
20239 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
20240 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
20241 archive_expsym_cmds_CXX='tpldir=Template.dir~
20242 rm -rf $tpldir~
20243 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
20244 $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'
20246 *) # Version 6 and above use weak symbols
20247 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
20248 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'
20250 esac
20252 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
20253 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
20254 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'
20256 cxx*)
20257 # Compaq C++
20258 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
20259 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'
20261 runpath_var=LD_RUN_PATH
20262 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
20263 hardcode_libdir_separator_CXX=:
20265 # Commands to make compiler produce verbose output that lists
20266 # what "hidden" libraries, object files and flags are used when
20267 # linking a shared library.
20269 # There doesn't appear to be a way to prevent this compiler from
20270 # explicitly linking system object files so we need to strip them
20271 # from the output so that they don't get included in the library
20272 # dependencies.
20273 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'
20275 xl* | mpixl* | bgxl*)
20276 # IBM XL 8.0 on PPC, with GNU ld
20277 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
20278 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
20279 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20280 if test "x$supports_anon_versioning" = xyes; then
20281 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
20282 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
20283 echo "local: *; };" >> $output_objdir/$libname.ver~
20284 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
20288 case `$CC -V 2>&1 | sed 5q` in
20289 *Sun\ C*)
20290 # Sun C++ 5.9
20291 no_undefined_flag_CXX=' -zdefs'
20292 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20293 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'
20294 hardcode_libdir_flag_spec_CXX='-R$libdir'
20295 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'
20296 compiler_needs_object_CXX=yes
20298 # Not sure whether something based on
20299 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
20300 # would be better.
20301 output_verbose_link_cmd='func_echo_all'
20303 # Archives containing C++ object files must be created using
20304 # "CC -xar", where "CC" is the Sun C++ compiler. This is
20305 # necessary to make sure instantiated templates are included
20306 # in the archive.
20307 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
20309 esac
20311 esac
20314 lynxos*)
20315 # FIXME: insert proper C++ library support
20316 ld_shlibs_CXX=no
20319 m88k*)
20320 # FIXME: insert proper C++ library support
20321 ld_shlibs_CXX=no
20324 mvs*)
20325 case $cc_basename in
20326 cxx*)
20327 # FIXME: insert proper C++ library support
20328 ld_shlibs_CXX=no
20331 # FIXME: insert proper C++ library support
20332 ld_shlibs_CXX=no
20334 esac
20337 netbsd*)
20338 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20339 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
20340 wlarc=
20341 hardcode_libdir_flag_spec_CXX='-R$libdir'
20342 hardcode_direct_CXX=yes
20343 hardcode_shlibpath_var_CXX=no
20345 # Workaround some broken pre-1.5 toolchains
20346 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
20349 *nto* | *qnx*)
20350 ld_shlibs_CXX=yes
20353 openbsd2*)
20354 # C++ shared libraries are fairly broken
20355 ld_shlibs_CXX=no
20358 openbsd*)
20359 if test -f /usr/libexec/ld.so; then
20360 hardcode_direct_CXX=yes
20361 hardcode_shlibpath_var_CXX=no
20362 hardcode_direct_absolute_CXX=yes
20363 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
20364 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
20365 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20366 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
20367 export_dynamic_flag_spec_CXX='${wl}-E'
20368 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
20370 output_verbose_link_cmd=func_echo_all
20371 else
20372 ld_shlibs_CXX=no
20376 osf3* | osf4* | osf5*)
20377 case $cc_basename in
20378 KCC*)
20379 # Kuck and Associates, Inc. (KAI) C++ Compiler
20381 # KCC will only create a shared library if the output file
20382 # ends with ".so" (or ".sl" for HP-UX), so rename the library
20383 # to its proper name (with version) after linking.
20384 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'
20386 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
20387 hardcode_libdir_separator_CXX=:
20389 # Archives containing C++ object files must be created using
20390 # the KAI C++ compiler.
20391 case $host in
20392 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
20393 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
20394 esac
20396 RCC*)
20397 # Rational C++ 2.4.1
20398 # FIXME: insert proper C++ library support
20399 ld_shlibs_CXX=no
20401 cxx*)
20402 case $host in
20403 osf3*)
20404 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
20405 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'
20406 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
20409 allow_undefined_flag_CXX=' -expect_unresolved \*'
20410 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'
20411 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
20412 echo "-hidden">> $lib.exp~
20413 $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~
20414 $RM $lib.exp'
20415 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
20417 esac
20419 hardcode_libdir_separator_CXX=:
20421 # Commands to make compiler produce verbose output that lists
20422 # what "hidden" libraries, object files and flags are used when
20423 # linking a shared library.
20425 # There doesn't appear to be a way to prevent this compiler from
20426 # explicitly linking system object files so we need to strip them
20427 # from the output so that they don't get included in the library
20428 # dependencies.
20429 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"'
20432 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
20433 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
20434 case $host in
20435 osf3*)
20436 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'
20439 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'
20441 esac
20443 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
20444 hardcode_libdir_separator_CXX=:
20446 # Commands to make compiler produce verbose output that lists
20447 # what "hidden" libraries, object files and flags are used when
20448 # linking a shared library.
20449 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20451 else
20452 # FIXME: insert proper C++ library support
20453 ld_shlibs_CXX=no
20456 esac
20459 psos*)
20460 # FIXME: insert proper C++ library support
20461 ld_shlibs_CXX=no
20464 sunos4*)
20465 case $cc_basename in
20466 CC*)
20467 # Sun C++ 4.x
20468 # FIXME: insert proper C++ library support
20469 ld_shlibs_CXX=no
20471 lcc*)
20472 # Lucid
20473 # FIXME: insert proper C++ library support
20474 ld_shlibs_CXX=no
20477 # FIXME: insert proper C++ library support
20478 ld_shlibs_CXX=no
20480 esac
20483 solaris*)
20484 case $cc_basename in
20485 CC*)
20486 # Sun C++ 4.2, 5.x and Centerline C++
20487 archive_cmds_need_lc_CXX=yes
20488 no_undefined_flag_CXX=' -zdefs'
20489 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20490 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20491 $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'
20493 hardcode_libdir_flag_spec_CXX='-R$libdir'
20494 hardcode_shlibpath_var_CXX=no
20495 case $host_os in
20496 solaris2.[0-5] | solaris2.[0-5].*) ;;
20498 # The compiler driver will combine and reorder linker options,
20499 # but understands `-z linker_flag'.
20500 # Supported since Solaris 2.6 (maybe 2.5.1?)
20501 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
20503 esac
20504 link_all_deplibs_CXX=yes
20506 output_verbose_link_cmd='func_echo_all'
20508 # Archives containing C++ object files must be created using
20509 # "CC -xar", where "CC" is the Sun C++ compiler. This is
20510 # necessary to make sure instantiated templates are included
20511 # in the archive.
20512 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
20514 gcx*)
20515 # Green Hills C++ Compiler
20516 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20518 # The C++ compiler must be used to create the archive.
20519 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
20522 # GNU C++ compiler with Solaris linker
20523 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
20524 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
20525 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
20526 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20527 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20528 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
20530 # Commands to make compiler produce verbose output that lists
20531 # what "hidden" libraries, object files and flags are used when
20532 # linking a shared library.
20533 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20534 else
20535 # g++ 2.7 appears to require `-G' NOT `-shared' on this
20536 # platform.
20537 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20538 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20539 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
20541 # Commands to make compiler produce verbose output that lists
20542 # what "hidden" libraries, object files and flags are used when
20543 # linking a shared library.
20544 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20547 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
20548 case $host_os in
20549 solaris2.[0-5] | solaris2.[0-5].*) ;;
20551 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
20553 esac
20556 esac
20559 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
20560 no_undefined_flag_CXX='${wl}-z,text'
20561 archive_cmds_need_lc_CXX=no
20562 hardcode_shlibpath_var_CXX=no
20563 runpath_var='LD_RUN_PATH'
20565 case $cc_basename in
20566 CC*)
20567 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20568 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20571 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20572 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20574 esac
20577 sysv5* | sco3.2v5* | sco5v6*)
20578 # Note: We can NOT use -z defs as we might desire, because we do not
20579 # link with -lc, and that would cause any symbols used from libc to
20580 # always be unresolved, which means just about no library would
20581 # ever link correctly. If we're not using GNU ld we use -z text
20582 # though, which does catch some bad symbols but isn't as heavy-handed
20583 # as -z defs.
20584 no_undefined_flag_CXX='${wl}-z,text'
20585 allow_undefined_flag_CXX='${wl}-z,nodefs'
20586 archive_cmds_need_lc_CXX=no
20587 hardcode_shlibpath_var_CXX=no
20588 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
20589 hardcode_libdir_separator_CXX=':'
20590 link_all_deplibs_CXX=yes
20591 export_dynamic_flag_spec_CXX='${wl}-Bexport'
20592 runpath_var='LD_RUN_PATH'
20594 case $cc_basename in
20595 CC*)
20596 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20597 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20598 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
20599 '"$old_archive_cmds_CXX"
20600 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
20601 '"$reload_cmds_CXX"
20604 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20605 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20607 esac
20610 tandem*)
20611 case $cc_basename in
20612 NCC*)
20613 # NonStop-UX NCC 3.20
20614 # FIXME: insert proper C++ library support
20615 ld_shlibs_CXX=no
20618 # FIXME: insert proper C++ library support
20619 ld_shlibs_CXX=no
20621 esac
20624 vxworks*)
20625 # FIXME: insert proper C++ library support
20626 ld_shlibs_CXX=no
20630 # FIXME: insert proper C++ library support
20631 ld_shlibs_CXX=no
20633 esac
20635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20636 $as_echo "$ld_shlibs_CXX" >&6; }
20637 test "$ld_shlibs_CXX" = no && can_build_shared=no
20639 GCC_CXX="$GXX"
20640 LD_CXX="$LD"
20642 ## CAVEAT EMPTOR:
20643 ## There is no encapsulation within the following macros, do not change
20644 ## the running order or otherwise move them around unless you know exactly
20645 ## what you are doing...
20646 # Dependencies to place before and after the object being linked:
20647 predep_objects_CXX=
20648 postdep_objects_CXX=
20649 predeps_CXX=
20650 postdeps_CXX=
20651 compiler_lib_search_path_CXX=
20653 cat > conftest.$ac_ext <<_LT_EOF
20654 class Foo
20656 public:
20657 Foo (void) { a = 0; }
20658 private:
20659 int a;
20661 _LT_EOF
20663 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20664 (eval $ac_compile) 2>&5
20665 ac_status=$?
20666 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20667 test $ac_status = 0; }; then
20668 # Parse the compiler output and extract the necessary
20669 # objects, libraries and library flags.
20671 # Sentinel used to keep track of whether or not we are before
20672 # the conftest object file.
20673 pre_test_object_deps_done=no
20675 for p in `eval "$output_verbose_link_cmd"`; do
20676 case $p in
20678 -L* | -R* | -l*)
20679 # Some compilers place space between "-{L,R}" and the path.
20680 # Remove the space.
20681 if test $p = "-L" ||
20682 test $p = "-R"; then
20683 prev=$p
20684 continue
20685 else
20686 prev=
20689 if test "$pre_test_object_deps_done" = no; then
20690 case $p in
20691 -L* | -R*)
20692 # Internal compiler library paths should come after those
20693 # provided the user. The postdeps already come after the
20694 # user supplied libs so there is no need to process them.
20695 if test -z "$compiler_lib_search_path_CXX"; then
20696 compiler_lib_search_path_CXX="${prev}${p}"
20697 else
20698 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
20701 # The "-l" case would never come before the object being
20702 # linked, so don't bother handling this case.
20703 esac
20704 else
20705 if test -z "$postdeps_CXX"; then
20706 postdeps_CXX="${prev}${p}"
20707 else
20708 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
20713 *.$objext)
20714 # This assumes that the test object file only shows up
20715 # once in the compiler output.
20716 if test "$p" = "conftest.$objext"; then
20717 pre_test_object_deps_done=yes
20718 continue
20721 if test "$pre_test_object_deps_done" = no; then
20722 if test -z "$predep_objects_CXX"; then
20723 predep_objects_CXX="$p"
20724 else
20725 predep_objects_CXX="$predep_objects_CXX $p"
20727 else
20728 if test -z "$postdep_objects_CXX"; then
20729 postdep_objects_CXX="$p"
20730 else
20731 postdep_objects_CXX="$postdep_objects_CXX $p"
20736 *) ;; # Ignore the rest.
20738 esac
20739 done
20741 # Clean up.
20742 rm -f a.out a.exe
20743 else
20744 echo "libtool.m4: error: problem compiling CXX test program"
20747 $RM -f confest.$objext
20749 # PORTME: override above test on systems where it is broken
20750 case $host_os in
20751 interix[3-9]*)
20752 # Interix 3.5 installs completely hosed .la files for C++, so rather than
20753 # hack all around it, let's just trust "g++" to DTRT.
20754 predep_objects_CXX=
20755 postdep_objects_CXX=
20756 postdeps_CXX=
20759 linux*)
20760 case `$CC -V 2>&1 | sed 5q` in
20761 *Sun\ C*)
20762 # Sun C++ 5.9
20764 # The more standards-conforming stlport4 library is
20765 # incompatible with the Cstd library. Avoid specifying
20766 # it if it's in CXXFLAGS. Ignore libCrun as
20767 # -library=stlport4 depends on it.
20768 case " $CXX $CXXFLAGS " in
20769 *" -library=stlport4 "*)
20770 solaris_use_stlport4=yes
20772 esac
20774 if test "$solaris_use_stlport4" != yes; then
20775 postdeps_CXX='-library=Cstd -library=Crun'
20778 esac
20781 solaris*)
20782 case $cc_basename in
20783 CC*)
20784 # The more standards-conforming stlport4 library is
20785 # incompatible with the Cstd library. Avoid specifying
20786 # it if it's in CXXFLAGS. Ignore libCrun as
20787 # -library=stlport4 depends on it.
20788 case " $CXX $CXXFLAGS " in
20789 *" -library=stlport4 "*)
20790 solaris_use_stlport4=yes
20792 esac
20794 # Adding this requires a known-good setup of shared libraries for
20795 # Sun compiler versions before 5.6, else PIC objects from an old
20796 # archive will be linked into the output, leading to subtle bugs.
20797 if test "$solaris_use_stlport4" != yes; then
20798 postdeps_CXX='-library=Cstd -library=Crun'
20801 esac
20803 esac
20806 case " $postdeps_CXX " in
20807 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
20808 esac
20809 compiler_lib_search_dirs_CXX=
20810 if test -n "${compiler_lib_search_path_CXX}"; then
20811 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
20844 lt_prog_compiler_wl_CXX=
20845 lt_prog_compiler_pic_CXX=
20846 lt_prog_compiler_static_CXX=
20848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
20849 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
20851 # C++ specific cases for pic, static, wl, etc.
20852 if test "$GXX" = yes; then
20853 lt_prog_compiler_wl_CXX='-Wl,'
20854 lt_prog_compiler_static_CXX='-static'
20856 case $host_os in
20857 aix*)
20858 # All AIX code is PIC.
20859 if test "$host_cpu" = ia64; then
20860 # AIX 5 now supports IA64 processor
20861 lt_prog_compiler_static_CXX='-Bstatic'
20863 lt_prog_compiler_pic_CXX='-fPIC'
20866 amigaos*)
20867 case $host_cpu in
20868 powerpc)
20869 # see comment about AmigaOS4 .so support
20870 lt_prog_compiler_pic_CXX='-fPIC'
20872 m68k)
20873 # FIXME: we need at least 68020 code to build shared libraries, but
20874 # adding the `-m68020' flag to GCC prevents building anything better,
20875 # like `-m68040'.
20876 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
20878 esac
20881 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20882 # PIC is the default for these OSes.
20884 mingw* | cygwin* | os2* | pw32* | cegcc*)
20885 # This hack is so that the source file can tell whether it is being
20886 # built for inclusion in a dll (and should export symbols for example).
20887 # Although the cygwin gcc ignores -fPIC, still need this for old-style
20888 # (--disable-auto-import) libraries
20889 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
20891 darwin* | rhapsody*)
20892 # PIC is the default on this platform
20893 # Common symbols not allowed in MH_DYLIB files
20894 lt_prog_compiler_pic_CXX='-fno-common'
20896 *djgpp*)
20897 # DJGPP does not support shared libraries at all
20898 lt_prog_compiler_pic_CXX=
20900 haiku*)
20901 # PIC is the default for Haiku.
20902 # The "-static" flag exists, but is broken.
20903 lt_prog_compiler_static_CXX=
20905 interix[3-9]*)
20906 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20907 # Instead, we relocate shared libraries at runtime.
20909 sysv4*MP*)
20910 if test -d /usr/nec; then
20911 lt_prog_compiler_pic_CXX=-Kconform_pic
20914 hpux*)
20915 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
20916 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
20917 # sets the default TLS model and affects inlining.
20918 case $host_cpu in
20919 hppa*64*)
20922 lt_prog_compiler_pic_CXX='-fPIC'
20924 esac
20926 *qnx* | *nto*)
20927 # QNX uses GNU C++, but need to define -shared option too, otherwise
20928 # it will coredump.
20929 lt_prog_compiler_pic_CXX='-fPIC -shared'
20932 lt_prog_compiler_pic_CXX='-fPIC'
20934 esac
20935 else
20936 case $host_os in
20937 aix[4-9]*)
20938 # All AIX code is PIC.
20939 if test "$host_cpu" = ia64; then
20940 # AIX 5 now supports IA64 processor
20941 lt_prog_compiler_static_CXX='-Bstatic'
20942 else
20943 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
20946 chorus*)
20947 case $cc_basename in
20948 cxch68*)
20949 # Green Hills C++ Compiler
20950 # _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"
20952 esac
20954 dgux*)
20955 case $cc_basename in
20956 ec++*)
20957 lt_prog_compiler_pic_CXX='-KPIC'
20959 ghcx*)
20960 # Green Hills C++ Compiler
20961 lt_prog_compiler_pic_CXX='-pic'
20965 esac
20967 freebsd* | dragonfly*)
20968 # FreeBSD uses GNU C++
20970 hpux9* | hpux10* | hpux11*)
20971 case $cc_basename in
20972 CC*)
20973 lt_prog_compiler_wl_CXX='-Wl,'
20974 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20975 if test "$host_cpu" != ia64; then
20976 lt_prog_compiler_pic_CXX='+Z'
20979 aCC*)
20980 lt_prog_compiler_wl_CXX='-Wl,'
20981 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20982 case $host_cpu in
20983 hppa*64*|ia64*)
20984 # +Z the default
20987 lt_prog_compiler_pic_CXX='+Z'
20989 esac
20993 esac
20995 interix*)
20996 # This is c89, which is MS Visual C++ (no shared libs)
20997 # Anyone wants to do a port?
20999 irix5* | irix6* | nonstopux*)
21000 case $cc_basename in
21001 CC*)
21002 lt_prog_compiler_wl_CXX='-Wl,'
21003 lt_prog_compiler_static_CXX='-non_shared'
21004 # CC pic flag -KPIC is the default.
21008 esac
21010 linux* | k*bsd*-gnu | kopensolaris*-gnu)
21011 case $cc_basename in
21012 KCC*)
21013 # KAI C++ Compiler
21014 lt_prog_compiler_wl_CXX='--backend -Wl,'
21015 lt_prog_compiler_pic_CXX='-fPIC'
21017 ecpc* )
21018 # old Intel C++ for x86_64 which still supported -KPIC.
21019 lt_prog_compiler_wl_CXX='-Wl,'
21020 lt_prog_compiler_pic_CXX='-KPIC'
21021 lt_prog_compiler_static_CXX='-static'
21023 icpc* )
21024 # Intel C++, used to be incompatible with GCC.
21025 # ICC 10 doesn't accept -KPIC any more.
21026 lt_prog_compiler_wl_CXX='-Wl,'
21027 lt_prog_compiler_pic_CXX='-fPIC'
21028 lt_prog_compiler_static_CXX='-static'
21030 pgCC* | pgcpp*)
21031 # Portland Group C++ compiler
21032 lt_prog_compiler_wl_CXX='-Wl,'
21033 lt_prog_compiler_pic_CXX='-fpic'
21034 lt_prog_compiler_static_CXX='-Bstatic'
21036 cxx*)
21037 # Compaq C++
21038 # Make sure the PIC flag is empty. It appears that all Alpha
21039 # Linux and Compaq Tru64 Unix objects are PIC.
21040 lt_prog_compiler_pic_CXX=
21041 lt_prog_compiler_static_CXX='-non_shared'
21043 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
21044 # IBM XL 8.0, 9.0 on PPC and BlueGene
21045 lt_prog_compiler_wl_CXX='-Wl,'
21046 lt_prog_compiler_pic_CXX='-qpic'
21047 lt_prog_compiler_static_CXX='-qstaticlink'
21050 case `$CC -V 2>&1 | sed 5q` in
21051 *Sun\ C*)
21052 # Sun C++ 5.9
21053 lt_prog_compiler_pic_CXX='-KPIC'
21054 lt_prog_compiler_static_CXX='-Bstatic'
21055 lt_prog_compiler_wl_CXX='-Qoption ld '
21057 esac
21059 esac
21061 lynxos*)
21063 m88k*)
21065 mvs*)
21066 case $cc_basename in
21067 cxx*)
21068 lt_prog_compiler_pic_CXX='-W c,exportall'
21072 esac
21074 netbsd*)
21076 *qnx* | *nto*)
21077 # QNX uses GNU C++, but need to define -shared option too, otherwise
21078 # it will coredump.
21079 lt_prog_compiler_pic_CXX='-fPIC -shared'
21081 osf3* | osf4* | osf5*)
21082 case $cc_basename in
21083 KCC*)
21084 lt_prog_compiler_wl_CXX='--backend -Wl,'
21086 RCC*)
21087 # Rational C++ 2.4.1
21088 lt_prog_compiler_pic_CXX='-pic'
21090 cxx*)
21091 # Digital/Compaq C++
21092 lt_prog_compiler_wl_CXX='-Wl,'
21093 # Make sure the PIC flag is empty. It appears that all Alpha
21094 # Linux and Compaq Tru64 Unix objects are PIC.
21095 lt_prog_compiler_pic_CXX=
21096 lt_prog_compiler_static_CXX='-non_shared'
21100 esac
21102 psos*)
21104 solaris*)
21105 case $cc_basename in
21106 CC*)
21107 # Sun C++ 4.2, 5.x and Centerline C++
21108 lt_prog_compiler_pic_CXX='-KPIC'
21109 lt_prog_compiler_static_CXX='-Bstatic'
21110 lt_prog_compiler_wl_CXX='-Qoption ld '
21112 gcx*)
21113 # Green Hills C++ Compiler
21114 lt_prog_compiler_pic_CXX='-PIC'
21118 esac
21120 sunos4*)
21121 case $cc_basename in
21122 CC*)
21123 # Sun C++ 4.x
21124 lt_prog_compiler_pic_CXX='-pic'
21125 lt_prog_compiler_static_CXX='-Bstatic'
21127 lcc*)
21128 # Lucid
21129 lt_prog_compiler_pic_CXX='-pic'
21133 esac
21135 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21136 case $cc_basename in
21137 CC*)
21138 lt_prog_compiler_wl_CXX='-Wl,'
21139 lt_prog_compiler_pic_CXX='-KPIC'
21140 lt_prog_compiler_static_CXX='-Bstatic'
21142 esac
21144 tandem*)
21145 case $cc_basename in
21146 NCC*)
21147 # NonStop-UX NCC 3.20
21148 lt_prog_compiler_pic_CXX='-KPIC'
21152 esac
21154 vxworks*)
21157 lt_prog_compiler_can_build_shared_CXX=no
21159 esac
21162 case $host_os in
21163 # For platforms which do not support PIC, -DPIC is meaningless:
21164 *djgpp*)
21165 lt_prog_compiler_pic_CXX=
21168 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
21170 esac
21171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
21172 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
21177 # Check to make sure the PIC flag actually works.
21179 if test -n "$lt_prog_compiler_pic_CXX"; then
21180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
21181 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
21182 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
21183 $as_echo_n "(cached) " >&6
21184 else
21185 lt_cv_prog_compiler_pic_works_CXX=no
21186 ac_outfile=conftest.$ac_objext
21187 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21188 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
21189 # Insert the option either (1) after the last *FLAGS variable, or
21190 # (2) before a word containing "conftest.", or (3) at the end.
21191 # Note that $ac_compile itself does not contain backslashes and begins
21192 # with a dollar sign (not a hyphen), so the echo should work correctly.
21193 # The option is referenced via a variable to avoid confusing sed.
21194 lt_compile=`echo "$ac_compile" | $SED \
21195 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21196 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21197 -e 's:$: $lt_compiler_flag:'`
21198 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
21199 (eval "$lt_compile" 2>conftest.err)
21200 ac_status=$?
21201 cat conftest.err >&5
21202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21203 if (exit $ac_status) && test -s "$ac_outfile"; then
21204 # The compiler can only warn and ignore the option if not recognized
21205 # So say no if there are warnings other than the usual output.
21206 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
21207 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21208 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
21209 lt_cv_prog_compiler_pic_works_CXX=yes
21212 $RM conftest*
21215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
21216 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
21218 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
21219 case $lt_prog_compiler_pic_CXX in
21220 "" | " "*) ;;
21221 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
21222 esac
21223 else
21224 lt_prog_compiler_pic_CXX=
21225 lt_prog_compiler_can_build_shared_CXX=no
21233 # Check to make sure the static flag actually works.
21235 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
21236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21237 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
21238 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
21239 $as_echo_n "(cached) " >&6
21240 else
21241 lt_cv_prog_compiler_static_works_CXX=no
21242 save_LDFLAGS="$LDFLAGS"
21243 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21244 echo "$lt_simple_link_test_code" > conftest.$ac_ext
21245 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21246 # The linker can only warn and ignore the option if not recognized
21247 # So say no if there are warnings
21248 if test -s conftest.err; then
21249 # Append any errors to the config.log.
21250 cat conftest.err 1>&5
21251 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
21252 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21253 if diff conftest.exp conftest.er2 >/dev/null; then
21254 lt_cv_prog_compiler_static_works_CXX=yes
21256 else
21257 lt_cv_prog_compiler_static_works_CXX=yes
21260 $RM -r conftest*
21261 LDFLAGS="$save_LDFLAGS"
21264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
21265 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
21267 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
21269 else
21270 lt_prog_compiler_static_CXX=
21276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
21277 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
21278 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
21279 $as_echo_n "(cached) " >&6
21280 else
21281 lt_cv_prog_compiler_c_o_CXX=no
21282 $RM -r conftest 2>/dev/null
21283 mkdir conftest
21284 cd conftest
21285 mkdir out
21286 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21288 lt_compiler_flag="-o out/conftest2.$ac_objext"
21289 # Insert the option either (1) after the last *FLAGS variable, or
21290 # (2) before a word containing "conftest.", or (3) at the end.
21291 # Note that $ac_compile itself does not contain backslashes and begins
21292 # with a dollar sign (not a hyphen), so the echo should work correctly.
21293 lt_compile=`echo "$ac_compile" | $SED \
21294 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21295 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21296 -e 's:$: $lt_compiler_flag:'`
21297 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
21298 (eval "$lt_compile" 2>out/conftest.err)
21299 ac_status=$?
21300 cat out/conftest.err >&5
21301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21302 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21303 then
21304 # The compiler can only warn and ignore the option if not recognized
21305 # So say no if there are warnings
21306 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
21307 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21308 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21309 lt_cv_prog_compiler_c_o_CXX=yes
21312 chmod u+w . 2>&5
21313 $RM conftest*
21314 # SGI C++ compiler will create directory out/ii_files/ for
21315 # template instantiation
21316 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
21317 $RM out/* && rmdir out
21318 cd ..
21319 $RM -r conftest
21320 $RM conftest*
21323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
21324 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
21328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
21329 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
21330 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
21331 $as_echo_n "(cached) " >&6
21332 else
21333 lt_cv_prog_compiler_c_o_CXX=no
21334 $RM -r conftest 2>/dev/null
21335 mkdir conftest
21336 cd conftest
21337 mkdir out
21338 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21340 lt_compiler_flag="-o out/conftest2.$ac_objext"
21341 # Insert the option either (1) after the last *FLAGS variable, or
21342 # (2) before a word containing "conftest.", or (3) at the end.
21343 # Note that $ac_compile itself does not contain backslashes and begins
21344 # with a dollar sign (not a hyphen), so the echo should work correctly.
21345 lt_compile=`echo "$ac_compile" | $SED \
21346 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21347 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21348 -e 's:$: $lt_compiler_flag:'`
21349 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
21350 (eval "$lt_compile" 2>out/conftest.err)
21351 ac_status=$?
21352 cat out/conftest.err >&5
21353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21354 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21355 then
21356 # The compiler can only warn and ignore the option if not recognized
21357 # So say no if there are warnings
21358 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
21359 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21360 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21361 lt_cv_prog_compiler_c_o_CXX=yes
21364 chmod u+w . 2>&5
21365 $RM conftest*
21366 # SGI C++ compiler will create directory out/ii_files/ for
21367 # template instantiation
21368 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
21369 $RM out/* && rmdir out
21370 cd ..
21371 $RM -r conftest
21372 $RM conftest*
21375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
21376 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
21381 hard_links="nottested"
21382 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
21383 # do not overwrite the value of need_locks provided by the user
21384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
21385 $as_echo_n "checking if we can lock with hard links... " >&6; }
21386 hard_links=yes
21387 $RM conftest*
21388 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21389 touch conftest.a
21390 ln conftest.a conftest.b 2>&5 || hard_links=no
21391 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
21393 $as_echo "$hard_links" >&6; }
21394 if test "$hard_links" = no; then
21395 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21396 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21397 need_locks=warn
21399 else
21400 need_locks=no
21405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21406 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
21408 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21409 case $host_os in
21410 aix[4-9]*)
21411 # If we're using GNU nm, then we don't want the "-C" option.
21412 # -C means demangle to AIX nm, but means don't demangle with GNU nm
21413 # Also, AIX nm treats weak defined symbols like other global defined
21414 # symbols, whereas GNU nm marks them as "W".
21415 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
21416 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'
21417 else
21418 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'
21421 pw32*)
21422 export_symbols_cmds_CXX="$ltdll_cmds"
21424 cygwin* | mingw* | cegcc*)
21425 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'
21428 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21430 esac
21431 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
21433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
21434 $as_echo "$ld_shlibs_CXX" >&6; }
21435 test "$ld_shlibs_CXX" = no && can_build_shared=no
21437 with_gnu_ld_CXX=$with_gnu_ld
21445 # Do we need to explicitly link libc?
21447 case "x$archive_cmds_need_lc_CXX" in
21448 x|xyes)
21449 # Assume -lc should be added
21450 archive_cmds_need_lc_CXX=yes
21452 if test "$enable_shared" = yes && test "$GCC" = yes; then
21453 case $archive_cmds_CXX in
21454 *'~'*)
21455 # FIXME: we may have to deal with multi-command sequences.
21457 '$CC '*)
21458 # Test whether the compiler implicitly links with -lc since on some
21459 # systems, -lgcc has to come before -lc. If gcc already passes -lc
21460 # to ld, don't add -lc before -lgcc.
21461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
21462 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
21463 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
21464 $as_echo_n "(cached) " >&6
21465 else
21466 $RM conftest*
21467 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21469 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
21470 (eval $ac_compile) 2>&5
21471 ac_status=$?
21472 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21473 test $ac_status = 0; } 2>conftest.err; then
21474 soname=conftest
21475 lib=conftest
21476 libobjs=conftest.$ac_objext
21477 deplibs=
21478 wl=$lt_prog_compiler_wl_CXX
21479 pic_flag=$lt_prog_compiler_pic_CXX
21480 compiler_flags=-v
21481 linker_flags=-v
21482 verstring=
21483 output_objdir=.
21484 libname=conftest
21485 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
21486 allow_undefined_flag_CXX=
21487 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
21488 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
21489 ac_status=$?
21490 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21491 test $ac_status = 0; }
21492 then
21493 lt_cv_archive_cmds_need_lc_CXX=no
21494 else
21495 lt_cv_archive_cmds_need_lc_CXX=yes
21497 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
21498 else
21499 cat conftest.err 1>&5
21501 $RM conftest*
21504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
21505 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
21506 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
21508 esac
21511 esac
21576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
21577 $as_echo_n "checking dynamic linker characteristics... " >&6; }
21579 library_names_spec=
21580 libname_spec='lib$name'
21581 soname_spec=
21582 shrext_cmds=".so"
21583 postinstall_cmds=
21584 postuninstall_cmds=
21585 finish_cmds=
21586 finish_eval=
21587 shlibpath_var=
21588 shlibpath_overrides_runpath=unknown
21589 version_type=none
21590 dynamic_linker="$host_os ld.so"
21591 sys_lib_dlsearch_path_spec="/lib /usr/lib"
21592 need_lib_prefix=unknown
21593 hardcode_into_libs=no
21595 # when you set need_version to no, make sure it does not cause -set_version
21596 # flags to be left without arguments
21597 need_version=unknown
21599 case $host_os in
21600 aix3*)
21601 version_type=linux
21602 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
21603 shlibpath_var=LIBPATH
21605 # AIX 3 has no versioning support, so we append a major version to the name.
21606 soname_spec='${libname}${release}${shared_ext}$major'
21609 aix[4-9]*)
21610 version_type=linux
21611 need_lib_prefix=no
21612 need_version=no
21613 hardcode_into_libs=yes
21614 if test "$host_cpu" = ia64; then
21615 # AIX 5 supports IA64
21616 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
21617 shlibpath_var=LD_LIBRARY_PATH
21618 else
21619 # With GCC up to 2.95.x, collect2 would create an import file
21620 # for dependence libraries. The import file would start with
21621 # the line `#! .'. This would cause the generated library to
21622 # depend on `.', always an invalid library. This was fixed in
21623 # development snapshots of GCC prior to 3.0.
21624 case $host_os in
21625 aix4 | aix4.[01] | aix4.[01].*)
21626 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
21627 echo ' yes '
21628 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
21630 else
21631 can_build_shared=no
21634 esac
21635 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
21636 # soname into executable. Probably we can add versioning support to
21637 # collect2, so additional links can be useful in future.
21638 if test "$aix_use_runtimelinking" = yes; then
21639 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
21640 # instead of lib<name>.a to let people know that these are not
21641 # typical AIX shared libraries.
21642 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21643 else
21644 # We preserve .a as extension for shared libraries through AIX4.2
21645 # and later when we are not doing run time linking.
21646 library_names_spec='${libname}${release}.a $libname.a'
21647 soname_spec='${libname}${release}${shared_ext}$major'
21649 shlibpath_var=LIBPATH
21653 amigaos*)
21654 case $host_cpu in
21655 powerpc)
21656 # Since July 2007 AmigaOS4 officially supports .so libraries.
21657 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
21658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21660 m68k)
21661 library_names_spec='$libname.ixlibrary $libname.a'
21662 # Create ${libname}_ixlibrary.a entries in /sys/libs.
21663 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'
21665 esac
21668 beos*)
21669 library_names_spec='${libname}${shared_ext}'
21670 dynamic_linker="$host_os ld.so"
21671 shlibpath_var=LIBRARY_PATH
21674 bsdi[45]*)
21675 version_type=linux
21676 need_version=no
21677 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21678 soname_spec='${libname}${release}${shared_ext}$major'
21679 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
21680 shlibpath_var=LD_LIBRARY_PATH
21681 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
21682 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
21683 # the default ld.so.conf also contains /usr/contrib/lib and
21684 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
21685 # libtool to hard-code these into programs
21688 cygwin* | mingw* | pw32* | cegcc*)
21689 version_type=windows
21690 shrext_cmds=".dll"
21691 need_version=no
21692 need_lib_prefix=no
21694 case $GCC,$host_os in
21695 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
21696 library_names_spec='$libname.dll.a'
21697 # DLL is installed to $(libdir)/../bin by postinstall_cmds
21698 postinstall_cmds='base_file=`basename \${file}`~
21699 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
21700 dldir=$destdir/`dirname \$dlpath`~
21701 test -d \$dldir || mkdir -p \$dldir~
21702 $install_prog $dir/$dlname \$dldir/$dlname~
21703 chmod a+x \$dldir/$dlname~
21704 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
21705 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
21707 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
21708 dlpath=$dir/\$dldll~
21709 $RM \$dlpath'
21710 shlibpath_overrides_runpath=yes
21712 case $host_os in
21713 cygwin*)
21714 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
21715 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21718 mingw* | cegcc*)
21719 # MinGW DLLs use traditional 'lib' prefix
21720 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21722 pw32*)
21723 # pw32 DLLs use 'pw' prefix rather than 'lib'
21724 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21726 esac
21730 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
21732 esac
21733 dynamic_linker='Win32 ld.exe'
21734 # FIXME: first we should search . and the directory the executable is in
21735 shlibpath_var=PATH
21738 darwin* | rhapsody*)
21739 dynamic_linker="$host_os dyld"
21740 version_type=darwin
21741 need_lib_prefix=no
21742 need_version=no
21743 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
21744 soname_spec='${libname}${release}${major}$shared_ext'
21745 shlibpath_overrides_runpath=yes
21746 shlibpath_var=DYLD_LIBRARY_PATH
21747 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
21749 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
21752 dgux*)
21753 version_type=linux
21754 need_lib_prefix=no
21755 need_version=no
21756 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
21757 soname_spec='${libname}${release}${shared_ext}$major'
21758 shlibpath_var=LD_LIBRARY_PATH
21761 freebsd* | dragonfly*)
21762 # DragonFly does not have aout. When/if they implement a new
21763 # versioning mechanism, adjust this.
21764 if test -x /usr/bin/objformat; then
21765 objformat=`/usr/bin/objformat`
21766 else
21767 case $host_os in
21768 freebsd[23].*) objformat=aout ;;
21769 *) objformat=elf ;;
21770 esac
21772 version_type=freebsd-$objformat
21773 case $version_type in
21774 freebsd-elf*)
21775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21776 need_version=no
21777 need_lib_prefix=no
21779 freebsd-*)
21780 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
21781 need_version=yes
21783 esac
21784 shlibpath_var=LD_LIBRARY_PATH
21785 case $host_os in
21786 freebsd2.*)
21787 shlibpath_overrides_runpath=yes
21789 freebsd3.[01]* | freebsdelf3.[01]*)
21790 shlibpath_overrides_runpath=yes
21791 hardcode_into_libs=yes
21793 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
21794 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
21795 shlibpath_overrides_runpath=no
21796 hardcode_into_libs=yes
21798 *) # from 4.6 on, and DragonFly
21799 shlibpath_overrides_runpath=yes
21800 hardcode_into_libs=yes
21802 esac
21805 gnu*)
21806 version_type=linux
21807 need_lib_prefix=no
21808 need_version=no
21809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21810 soname_spec='${libname}${release}${shared_ext}$major'
21811 shlibpath_var=LD_LIBRARY_PATH
21812 hardcode_into_libs=yes
21815 haiku*)
21816 version_type=linux
21817 need_lib_prefix=no
21818 need_version=no
21819 dynamic_linker="$host_os runtime_loader"
21820 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21821 soname_spec='${libname}${release}${shared_ext}$major'
21822 shlibpath_var=LIBRARY_PATH
21823 shlibpath_overrides_runpath=yes
21824 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
21825 hardcode_into_libs=yes
21828 hpux9* | hpux10* | hpux11*)
21829 # Give a soname corresponding to the major version so that dld.sl refuses to
21830 # link against other versions.
21831 version_type=sunos
21832 need_lib_prefix=no
21833 need_version=no
21834 case $host_cpu in
21835 ia64*)
21836 shrext_cmds='.so'
21837 hardcode_into_libs=yes
21838 dynamic_linker="$host_os dld.so"
21839 shlibpath_var=LD_LIBRARY_PATH
21840 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21842 soname_spec='${libname}${release}${shared_ext}$major'
21843 if test "X$HPUX_IA64_MODE" = X32; then
21844 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
21845 else
21846 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
21848 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21850 hppa*64*)
21851 shrext_cmds='.sl'
21852 hardcode_into_libs=yes
21853 dynamic_linker="$host_os dld.sl"
21854 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
21855 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21857 soname_spec='${libname}${release}${shared_ext}$major'
21858 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
21859 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21862 shrext_cmds='.sl'
21863 dynamic_linker="$host_os dld.sl"
21864 shlibpath_var=SHLIB_PATH
21865 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
21866 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21867 soname_spec='${libname}${release}${shared_ext}$major'
21869 esac
21870 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
21871 postinstall_cmds='chmod 555 $lib'
21872 # or fails outright, so override atomically:
21873 install_override_mode=555
21876 interix[3-9]*)
21877 version_type=linux
21878 need_lib_prefix=no
21879 need_version=no
21880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21881 soname_spec='${libname}${release}${shared_ext}$major'
21882 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
21883 shlibpath_var=LD_LIBRARY_PATH
21884 shlibpath_overrides_runpath=no
21885 hardcode_into_libs=yes
21888 irix5* | irix6* | nonstopux*)
21889 case $host_os in
21890 nonstopux*) version_type=nonstopux ;;
21892 if test "$lt_cv_prog_gnu_ld" = yes; then
21893 version_type=linux
21894 else
21895 version_type=irix
21896 fi ;;
21897 esac
21898 need_lib_prefix=no
21899 need_version=no
21900 soname_spec='${libname}${release}${shared_ext}$major'
21901 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21902 case $host_os in
21903 irix5* | nonstopux*)
21904 libsuff= shlibsuff=
21907 case $LD in # libtool.m4 will add one of these switches to LD
21908 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
21909 libsuff= shlibsuff= libmagic=32-bit;;
21910 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
21911 libsuff=32 shlibsuff=N32 libmagic=N32;;
21912 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
21913 libsuff=64 shlibsuff=64 libmagic=64-bit;;
21914 *) libsuff= shlibsuff= libmagic=never-match;;
21915 esac
21917 esac
21918 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
21919 shlibpath_overrides_runpath=no
21920 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21921 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
21922 hardcode_into_libs=yes
21925 # No shared lib support for Linux oldld, aout, or coff.
21926 linux*oldld* | linux*aout* | linux*coff*)
21927 dynamic_linker=no
21930 # This must be Linux ELF.
21932 # uclinux* changes (here and below) have been submitted to the libtool
21933 # project, but have not yet been accepted: they are GCC-local changes
21934 # for the time being. (See
21935 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
21936 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
21937 version_type=linux
21938 need_lib_prefix=no
21939 need_version=no
21940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21941 soname_spec='${libname}${release}${shared_ext}$major'
21942 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21943 shlibpath_var=LD_LIBRARY_PATH
21944 shlibpath_overrides_runpath=no
21946 # Some binutils ld are patched to set DT_RUNPATH
21947 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
21948 $as_echo_n "(cached) " >&6
21949 else
21950 lt_cv_shlibpath_overrides_runpath=no
21951 save_LDFLAGS=$LDFLAGS
21952 save_libdir=$libdir
21953 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
21954 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
21955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21956 /* end confdefs.h. */
21959 main ()
21963 return 0;
21965 _ACEOF
21966 if ac_fn_cxx_try_link "$LINENO"; then :
21967 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
21968 lt_cv_shlibpath_overrides_runpath=yes
21971 rm -f core conftest.err conftest.$ac_objext \
21972 conftest$ac_exeext conftest.$ac_ext
21973 LDFLAGS=$save_LDFLAGS
21974 libdir=$save_libdir
21978 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
21980 # This implies no fast_install, which is unacceptable.
21981 # Some rework will be needed to allow for fast_install
21982 # before this can be enabled.
21983 hardcode_into_libs=yes
21985 # Append ld.so.conf contents to the search path
21986 if test -f /etc/ld.so.conf; then
21987 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' ' '`
21988 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
21991 # We used to test for /lib/ld.so.1 and disable shared libraries on
21992 # powerpc, because MkLinux only supported shared libraries with the
21993 # GNU dynamic linker. Since this was broken with cross compilers,
21994 # most powerpc-linux boxes support dynamic linking these days and
21995 # people can always --disable-shared, the test was removed, and we
21996 # assume the GNU/Linux dynamic linker is in use.
21997 dynamic_linker='GNU/Linux ld.so'
22000 netbsd*)
22001 version_type=sunos
22002 need_lib_prefix=no
22003 need_version=no
22004 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
22005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22006 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22007 dynamic_linker='NetBSD (a.out) ld.so'
22008 else
22009 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22010 soname_spec='${libname}${release}${shared_ext}$major'
22011 dynamic_linker='NetBSD ld.elf_so'
22013 shlibpath_var=LD_LIBRARY_PATH
22014 shlibpath_overrides_runpath=yes
22015 hardcode_into_libs=yes
22018 newsos6)
22019 version_type=linux
22020 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22021 shlibpath_var=LD_LIBRARY_PATH
22022 shlibpath_overrides_runpath=yes
22025 *nto* | *qnx*)
22026 version_type=qnx
22027 need_lib_prefix=no
22028 need_version=no
22029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22030 soname_spec='${libname}${release}${shared_ext}$major'
22031 shlibpath_var=LD_LIBRARY_PATH
22032 shlibpath_overrides_runpath=no
22033 hardcode_into_libs=yes
22034 dynamic_linker='ldqnx.so'
22037 openbsd*)
22038 version_type=sunos
22039 sys_lib_dlsearch_path_spec="/usr/lib"
22040 need_lib_prefix=no
22041 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
22042 case $host_os in
22043 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
22044 *) need_version=no ;;
22045 esac
22046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22047 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22048 shlibpath_var=LD_LIBRARY_PATH
22049 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22050 case $host_os in
22051 openbsd2.[89] | openbsd2.[89].*)
22052 shlibpath_overrides_runpath=no
22055 shlibpath_overrides_runpath=yes
22057 esac
22058 else
22059 shlibpath_overrides_runpath=yes
22063 os2*)
22064 libname_spec='$name'
22065 shrext_cmds=".dll"
22066 need_lib_prefix=no
22067 library_names_spec='$libname${shared_ext} $libname.a'
22068 dynamic_linker='OS/2 ld.exe'
22069 shlibpath_var=LIBPATH
22072 osf3* | osf4* | osf5*)
22073 version_type=osf
22074 need_lib_prefix=no
22075 need_version=no
22076 soname_spec='${libname}${release}${shared_ext}$major'
22077 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22078 shlibpath_var=LD_LIBRARY_PATH
22079 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22080 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
22083 rdos*)
22084 dynamic_linker=no
22087 solaris*)
22088 version_type=linux
22089 need_lib_prefix=no
22090 need_version=no
22091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22092 soname_spec='${libname}${release}${shared_ext}$major'
22093 shlibpath_var=LD_LIBRARY_PATH
22094 shlibpath_overrides_runpath=yes
22095 hardcode_into_libs=yes
22096 # ldd complains unless libraries are executable
22097 postinstall_cmds='chmod +x $lib'
22100 sunos4*)
22101 version_type=sunos
22102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22103 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22104 shlibpath_var=LD_LIBRARY_PATH
22105 shlibpath_overrides_runpath=yes
22106 if test "$with_gnu_ld" = yes; then
22107 need_lib_prefix=no
22109 need_version=yes
22112 sysv4 | sysv4.3*)
22113 version_type=linux
22114 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22115 soname_spec='${libname}${release}${shared_ext}$major'
22116 shlibpath_var=LD_LIBRARY_PATH
22117 case $host_vendor in
22118 sni)
22119 shlibpath_overrides_runpath=no
22120 need_lib_prefix=no
22121 runpath_var=LD_RUN_PATH
22123 siemens)
22124 need_lib_prefix=no
22126 motorola)
22127 need_lib_prefix=no
22128 need_version=no
22129 shlibpath_overrides_runpath=no
22130 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
22132 esac
22135 sysv4*MP*)
22136 if test -d /usr/nec ;then
22137 version_type=linux
22138 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
22139 soname_spec='$libname${shared_ext}.$major'
22140 shlibpath_var=LD_LIBRARY_PATH
22144 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
22145 version_type=freebsd-elf
22146 need_lib_prefix=no
22147 need_version=no
22148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22149 soname_spec='${libname}${release}${shared_ext}$major'
22150 shlibpath_var=LD_LIBRARY_PATH
22151 shlibpath_overrides_runpath=yes
22152 hardcode_into_libs=yes
22153 if test "$with_gnu_ld" = yes; then
22154 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
22155 else
22156 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
22157 case $host_os in
22158 sco3.2v5*)
22159 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
22161 esac
22163 sys_lib_dlsearch_path_spec='/usr/lib'
22166 tpf*)
22167 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
22168 version_type=linux
22169 need_lib_prefix=no
22170 need_version=no
22171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22172 shlibpath_var=LD_LIBRARY_PATH
22173 shlibpath_overrides_runpath=no
22174 hardcode_into_libs=yes
22177 uts4*)
22178 version_type=linux
22179 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22180 soname_spec='${libname}${release}${shared_ext}$major'
22181 shlibpath_var=LD_LIBRARY_PATH
22185 dynamic_linker=no
22187 esac
22188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
22189 $as_echo "$dynamic_linker" >&6; }
22190 test "$dynamic_linker" = no && can_build_shared=no
22192 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22193 if test "$GCC" = yes; then
22194 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22197 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
22198 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
22200 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
22201 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
22241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
22242 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
22243 hardcode_action_CXX=
22244 if test -n "$hardcode_libdir_flag_spec_CXX" ||
22245 test -n "$runpath_var_CXX" ||
22246 test "X$hardcode_automatic_CXX" = "Xyes" ; then
22248 # We can hardcode non-existent directories.
22249 if test "$hardcode_direct_CXX" != no &&
22250 # If the only mechanism to avoid hardcoding is shlibpath_var, we
22251 # have to relink, otherwise we might link with an installed library
22252 # when we should be linking with a yet-to-be-installed one
22253 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
22254 test "$hardcode_minus_L_CXX" != no; then
22255 # Linking always hardcodes the temporary library directory.
22256 hardcode_action_CXX=relink
22257 else
22258 # We can link without hardcoding, and we can hardcode nonexisting dirs.
22259 hardcode_action_CXX=immediate
22261 else
22262 # We cannot hardcode anything, or else we can only hardcode existing
22263 # directories.
22264 hardcode_action_CXX=unsupported
22266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
22267 $as_echo "$hardcode_action_CXX" >&6; }
22269 if test "$hardcode_action_CXX" = relink ||
22270 test "$inherit_rpath_CXX" = yes; then
22271 # Fast installation is not supported
22272 enable_fast_install=no
22273 elif test "$shlibpath_overrides_runpath" = yes ||
22274 test "$enable_shared" = no; then
22275 # Fast installation is not necessary
22276 enable_fast_install=needless
22285 fi # test -n "$compiler"
22287 CC=$lt_save_CC
22288 LDCXX=$LD
22289 LD=$lt_save_LD
22290 GCC=$lt_save_GCC
22291 with_gnu_ld=$lt_save_with_gnu_ld
22292 lt_cv_path_LDCXX=$lt_cv_path_LD
22293 lt_cv_path_LD=$lt_save_path_LD
22294 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
22295 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
22296 fi # test "$_lt_caught_CXX_error" != yes
22298 ac_ext=cpp
22299 ac_cpp='$CXXCPP $CPPFLAGS'
22300 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22301 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22302 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22319 # Only expand once:
22325 # Identify the assembler which will work hand-in-glove with the newly
22326 # built GCC, so that we can examine its features. This is the assembler
22327 # which will be driven by the driver program.
22329 # If build != host, and we aren't building gas in-tree, we identify a
22330 # build->target assembler and hope that it will have the same features
22331 # as the host->target assembler we'll be using.
22332 gcc_cv_gas_major_version=
22333 gcc_cv_gas_minor_version=
22334 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
22336 if ${gcc_cv_as+:} false; then :
22338 else
22340 if test -x "$DEFAULT_ASSEMBLER"; then
22341 gcc_cv_as="$DEFAULT_ASSEMBLER"
22342 elif test -f $gcc_cv_as_gas_srcdir/configure.ac \
22343 && test -f ../gas/Makefile \
22344 && test x$build = x$host; then
22345 gcc_cv_as=../gas/as-new$build_exeext
22346 elif test -x as$build_exeext; then
22347 # Build using assembler in the current directory.
22348 gcc_cv_as=./as$build_exeext
22349 elif ( set dummy $AS_FOR_TARGET; test -x $2 ); then
22350 gcc_cv_as="$AS_FOR_TARGET"
22351 else
22352 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
22353 set dummy $AS_FOR_TARGET; ac_word=$2
22354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22355 $as_echo_n "checking for $ac_word... " >&6; }
22356 if ${ac_cv_path_gcc_cv_as+:} false; then :
22357 $as_echo_n "(cached) " >&6
22358 else
22359 case $gcc_cv_as in
22360 [\\/]* | ?:[\\/]*)
22361 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
22364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22365 for as_dir in $PATH
22367 IFS=$as_save_IFS
22368 test -z "$as_dir" && as_dir=.
22369 for ac_exec_ext in '' $ac_executable_extensions; do
22370 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22371 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
22372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22373 break 2
22375 done
22376 done
22377 IFS=$as_save_IFS
22380 esac
22382 gcc_cv_as=$ac_cv_path_gcc_cv_as
22383 if test -n "$gcc_cv_as"; then
22384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
22385 $as_echo "$gcc_cv_as" >&6; }
22386 else
22387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22388 $as_echo "no" >&6; }
22395 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
22397 case "$ORIGINAL_AS_FOR_TARGET" in
22398 ./as | ./as$build_exeext) ;;
22399 *) ac_config_files="$ac_config_files as:exec-tool.in"
22401 esac
22403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
22404 $as_echo_n "checking what assembler to use... " >&6; }
22405 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
22406 # Single tree build which includes gas. We want to prefer it
22407 # over whatever linker top-level may have detected, since
22408 # we'll use what we're building after installation anyway.
22409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
22410 $as_echo "newly built gas" >&6; }
22411 in_tree_gas=yes
22412 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
22413 for f in $gcc_cv_as_bfd_srcdir/configure \
22414 $gcc_cv_as_gas_srcdir/configure \
22415 $gcc_cv_as_gas_srcdir/configure.ac \
22416 $gcc_cv_as_gas_srcdir/Makefile.in ; do
22417 gcc_cv_gas_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
22418 if test x$gcc_cv_gas_version != x; then
22419 break
22421 done
22422 case $gcc_cv_gas_version in
22423 VERSION=[0-9]*) ;;
22424 *) as_fn_error $? "cannot find version of in-tree assembler" "$LINENO" 5;;
22425 esac
22426 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
22427 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
22428 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
22429 case $gcc_cv_gas_patch_version in
22430 "") gcc_cv_gas_patch_version="0" ;;
22431 esac
22432 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
22433 + $gcc_cv_gas_minor_version \) \* 1000 \
22434 + $gcc_cv_gas_patch_version`
22436 in_tree_gas_is_elf=no
22437 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
22438 || (grep 'obj_format = multi' ../gas/Makefile \
22439 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
22440 then
22441 in_tree_gas_is_elf=yes
22443 else
22444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
22445 $as_echo "$gcc_cv_as" >&6; }
22446 in_tree_gas=no
22449 default_ld=
22450 # Check whether --enable-ld was given.
22451 if test "${enable_ld+set}" = set; then :
22452 enableval=$enable_ld; case "${enableval}" in
22454 default_ld=ld.gold
22456 esac
22460 install_gold_as_default=no
22461 # Check whether --enable-gold was given.
22462 if test "${enable_gold+set}" = set; then :
22463 enableval=$enable_gold; case "${enableval}" in
22464 default)
22465 install_gold_as_default=yes
22467 yes)
22468 if test x${default_ld} != x; then
22469 install_gold_as_default=yes
22475 as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5
22477 esac
22481 # Identify the linker which will work hand-in-glove with the newly
22482 # built GCC, so that we can examine its features. This is the linker
22483 # which will be driven by the driver program.
22485 # If build != host, and we aren't building gas in-tree, we identify a
22486 # build->target linker and hope that it will have the same features
22487 # as the host->target linker we'll be using.
22488 gcc_cv_gld_major_version=
22489 gcc_cv_gld_minor_version=
22490 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
22491 gcc_cv_ld_gold_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gold
22492 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
22494 if ${gcc_cv_ld+:} false; then :
22496 else
22498 if test -x "$DEFAULT_LINKER"; then
22499 gcc_cv_ld="$DEFAULT_LINKER"
22500 elif test $install_gold_as_default = yes \
22501 && test -f $gcc_cv_ld_gold_srcdir/configure.ac \
22502 && test -f ../gold/Makefile \
22503 && test x$build = x$host; then
22504 gcc_cv_ld=../gold/ld-new$build_exeext
22505 elif test -f $gcc_cv_ld_gld_srcdir/configure.ac \
22506 && test -f ../ld/Makefile \
22507 && test x$build = x$host; then
22508 gcc_cv_ld=../ld/ld-new$build_exeext
22509 elif test -x collect-ld$build_exeext; then
22510 # Build using linker in the current directory.
22511 gcc_cv_ld=./collect-ld$build_exeext
22512 elif ( set dummy $LD_FOR_TARGET; test -x $2 ); then
22513 gcc_cv_ld="$LD_FOR_TARGET"
22514 else
22515 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
22516 set dummy $LD_FOR_TARGET; ac_word=$2
22517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22518 $as_echo_n "checking for $ac_word... " >&6; }
22519 if ${ac_cv_path_gcc_cv_ld+:} false; then :
22520 $as_echo_n "(cached) " >&6
22521 else
22522 case $gcc_cv_ld in
22523 [\\/]* | ?:[\\/]*)
22524 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
22527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22528 for as_dir in $PATH
22530 IFS=$as_save_IFS
22531 test -z "$as_dir" && as_dir=.
22532 for ac_exec_ext in '' $ac_executable_extensions; do
22533 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22534 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
22535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22536 break 2
22538 done
22539 done
22540 IFS=$as_save_IFS
22543 esac
22545 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
22546 if test -n "$gcc_cv_ld"; then
22547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
22548 $as_echo "$gcc_cv_ld" >&6; }
22549 else
22550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22551 $as_echo "no" >&6; }
22558 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
22559 PLUGIN_LD_SUFFIX=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
22560 # if the PLUGIN_LD is set ld-new, just have it as ld
22561 # as that is the installed named.
22562 if test x$PLUGIN_LD_SUFFIX = xld-new \
22563 || test x$PLUGIN_LD_SUFFIX = xcollect-ld ; then
22564 PLUGIN_LD_SUFFIX=ld
22567 # Check whether --with-plugin-ld was given.
22568 if test "${with_plugin_ld+set}" = set; then :
22569 withval=$with_plugin_ld; if test x"$withval" != x; then
22570 ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
22571 PLUGIN_LD_SUFFIX="$withval"
22577 cat >>confdefs.h <<_ACEOF
22578 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
22579 _ACEOF
22582 # Check to see if we are using gold instead of ld
22583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
22584 $as_echo_n "checking whether we are using gold... " >&6; }
22585 ld_is_gold=no
22586 if test x$gcc_cv_ld != x; then
22587 if $gcc_cv_ld --version 2>/dev/null | sed 1q \
22588 | grep "GNU gold" > /dev/null; then
22589 ld_is_gold=yes
22592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
22593 $as_echo "$ld_is_gold" >&6; }
22595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gold linker with split stack support as non default" >&5
22596 $as_echo_n "checking gold linker with split stack support as non default... " >&6; }
22597 # Check to see if default ld is not gold, but gold is
22598 # available and has support for split stack. If gcc was configured
22599 # with gold then no checking is done.
22601 if test x$ld_is_gold = xno && which ${gcc_cv_ld}.gold >/dev/null 2>&1; then
22603 # For platforms other than powerpc64*, enable as appropriate.
22605 gold_non_default=no
22606 ld_gold=`which ${gcc_cv_ld}.gold`
22607 # Make sure this gold has minimal split stack support
22608 if $ld_gold --help 2>/dev/null | grep split-stack-adjust-size >/dev/null 2>&1; then
22609 ld_vers=`$ld_gold --version | sed 1q`
22610 gold_vers=`echo $ld_vers | sed -n \
22611 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22612 case $target in
22613 # check that the gold version contains the complete split stack support
22614 # on powerpc64 big and little endian
22615 powerpc64*-*-*)
22616 case "$gold_vers" in
22617 2.25.[1-9]*|2.2[6-9][.0-9]*|2.[3-9][.0-9]*|[3-9].[.0-9]*) gold_non_default=yes
22619 *) gold_non_default=no
22621 esac
22623 esac
22625 if test $gold_non_default = yes; then
22627 $as_echo "#define HAVE_GOLD_NON_DEFAULT_SPLIT_STACK 1" >>confdefs.h
22631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_non_default" >&5
22632 $as_echo "$gold_non_default" >&6; }
22634 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
22636 case "$ORIGINAL_LD_FOR_TARGET" in
22637 ./collect-ld | ./collect-ld$build_exeext) ;;
22638 *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
22640 esac
22642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
22643 $as_echo_n "checking what linker to use... " >&6; }
22644 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext \
22645 || test "$gcc_cv_ld" = ../gold/ld-new$build_exeext; then
22646 # Single tree build which includes ld. We want to prefer it
22647 # over whatever linker top-level may have detected, since
22648 # we'll use what we're building after installation anyway.
22649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
22650 $as_echo "newly built ld" >&6; }
22651 in_tree_ld=yes
22652 in_tree_ld_is_elf=no
22653 if (grep 'EMUL = .*elf' ../ld/Makefile \
22654 || grep 'EMUL = .*linux' ../ld/Makefile \
22655 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
22656 in_tree_ld_is_elf=yes
22657 elif test "$ld_is_gold" = yes; then
22658 in_tree_ld_is_elf=yes
22660 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
22662 gcc_cv_gld_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
22663 if test x$gcc_cv_gld_version != x; then
22664 break
22666 done
22667 case $gcc_cv_gld_version in
22668 VERSION=[0-9]*) ;;
22669 *) as_fn_error $? "cannot find version of in-tree linker" "$LINENO" 5 ;;
22670 esac
22671 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
22672 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
22673 ORIGINAL_LD_BFD_FOR_TARGET=../ld/ld-new$build_exeext
22674 ORIGINAL_LD_GOLD_FOR_TARGET=../gold/ld-new$build_exeext
22675 else
22676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
22677 $as_echo "$gcc_cv_ld" >&6; }
22678 in_tree_ld=no
22679 gcc_cvs_ld_program=`dirname $gcc_cv_ld`/`basename $gcc_cv_ld $host_exeext`
22680 ORIGINAL_LD_BFD_FOR_TARGET=${gcc_cvs_ld_program}.bfd$host_exeext
22681 ORIGINAL_LD_GOLD_FOR_TARGET=${gcc_cvs_ld_program}.gold$host_exeext
22687 # Figure out what nm we will be using.
22688 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
22689 if ${gcc_cv_nm+:} false; then :
22691 else
22693 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22694 && test -f ../binutils/Makefile \
22695 && test x$build = x$host; then
22696 gcc_cv_nm=../binutils/nm-new$build_exeext
22697 elif test -x nm$build_exeext; then
22698 gcc_cv_nm=./nm$build_exeext
22699 elif ( set dummy $NM_FOR_TARGET; test -x $2 ); then
22700 gcc_cv_nm="$NM_FOR_TARGET"
22701 else
22702 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
22703 set dummy $NM_FOR_TARGET; ac_word=$2
22704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22705 $as_echo_n "checking for $ac_word... " >&6; }
22706 if ${ac_cv_path_gcc_cv_nm+:} false; then :
22707 $as_echo_n "(cached) " >&6
22708 else
22709 case $gcc_cv_nm in
22710 [\\/]* | ?:[\\/]*)
22711 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
22714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22715 for as_dir in $PATH
22717 IFS=$as_save_IFS
22718 test -z "$as_dir" && as_dir=.
22719 for ac_exec_ext in '' $ac_executable_extensions; do
22720 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22721 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
22722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22723 break 2
22725 done
22726 done
22727 IFS=$as_save_IFS
22730 esac
22732 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
22733 if test -n "$gcc_cv_nm"; then
22734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
22735 $as_echo "$gcc_cv_nm" >&6; }
22736 else
22737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22738 $as_echo "no" >&6; }
22745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
22746 $as_echo_n "checking what nm to use... " >&6; }
22747 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
22748 # Single tree build which includes binutils.
22749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
22750 $as_echo "newly built nm" >&6; }
22751 in_tree_nm=yes
22752 else
22753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
22754 $as_echo "$gcc_cv_nm" >&6; }
22755 in_tree_nm=no
22758 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
22760 case "$ORIGINAL_NM_FOR_TARGET" in
22761 ./nm | ./nm$build_exeext) ;;
22762 *) ac_config_files="$ac_config_files nm:exec-tool.in"
22764 esac
22767 # Figure out what objdump we will be using.
22768 if ${gcc_cv_objdump+:} false; then :
22770 else
22772 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22773 && test -f ../binutils/Makefile \
22774 && test x$build = x$host; then
22775 # Single tree build which includes binutils.
22776 gcc_cv_objdump=../binutils/objdump$build_exeext
22777 elif test -x objdump$build_exeext; then
22778 gcc_cv_objdump=./objdump$build_exeext
22779 elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $2 ); then
22780 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
22781 else
22782 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
22783 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
22784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22785 $as_echo_n "checking for $ac_word... " >&6; }
22786 if ${ac_cv_path_gcc_cv_objdump+:} false; then :
22787 $as_echo_n "(cached) " >&6
22788 else
22789 case $gcc_cv_objdump in
22790 [\\/]* | ?:[\\/]*)
22791 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
22794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22795 for as_dir in $PATH
22797 IFS=$as_save_IFS
22798 test -z "$as_dir" && as_dir=.
22799 for ac_exec_ext in '' $ac_executable_extensions; do
22800 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22801 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
22802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22803 break 2
22805 done
22806 done
22807 IFS=$as_save_IFS
22810 esac
22812 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
22813 if test -n "$gcc_cv_objdump"; then
22814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
22815 $as_echo "$gcc_cv_objdump" >&6; }
22816 else
22817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22818 $as_echo "no" >&6; }
22825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
22826 $as_echo_n "checking what objdump to use... " >&6; }
22827 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
22828 # Single tree build which includes binutils.
22829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
22830 $as_echo "newly built objdump" >&6; }
22831 elif test x$gcc_cv_objdump = x; then
22832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22833 $as_echo "not found" >&6; }
22834 else
22835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
22836 $as_echo "$gcc_cv_objdump" >&6; }
22839 # Figure out what readelf we will be using.
22840 if ${gcc_cv_readelf+:} false; then :
22842 else
22844 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22845 && test -f ../binutils/Makefile \
22846 && test x$build = x$host; then
22847 # Single tree build which includes binutils.
22848 gcc_cv_readelf=../binutils/readelf$build_exeext
22849 elif test -x readelf$build_exeext; then
22850 gcc_cv_readelf=./readelf$build_exeext
22851 elif ( set dummy $READELF_FOR_TARGET; test -x $2 ); then
22852 gcc_cv_readelf="$READELF_FOR_TARGET"
22853 else
22854 # Extract the first word of "$READELF_FOR_TARGET", so it can be a program name with args.
22855 set dummy $READELF_FOR_TARGET; ac_word=$2
22856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22857 $as_echo_n "checking for $ac_word... " >&6; }
22858 if ${ac_cv_path_gcc_cv_readelf+:} false; then :
22859 $as_echo_n "(cached) " >&6
22860 else
22861 case $gcc_cv_readelf in
22862 [\\/]* | ?:[\\/]*)
22863 ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
22866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22867 for as_dir in $PATH
22869 IFS=$as_save_IFS
22870 test -z "$as_dir" && as_dir=.
22871 for ac_exec_ext in '' $ac_executable_extensions; do
22872 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22873 ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
22874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22875 break 2
22877 done
22878 done
22879 IFS=$as_save_IFS
22882 esac
22884 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
22885 if test -n "$gcc_cv_readelf"; then
22886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22887 $as_echo "$gcc_cv_readelf" >&6; }
22888 else
22889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22890 $as_echo "no" >&6; }
22897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
22898 $as_echo_n "checking what readelf to use... " >&6; }
22899 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
22900 # Single tree build which includes binutils.
22901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
22902 $as_echo "newly built readelf" >&6; }
22903 elif test x$gcc_cv_readelf = x; then
22904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22905 $as_echo "not found" >&6; }
22906 else
22907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22908 $as_echo "$gcc_cv_readelf" >&6; }
22911 # Figure out what otool we will be using.
22912 if ${gcc_cv_otool+:} false; then :
22914 else
22916 if test -x otool$build_exeext; then
22917 gcc_cv_otool=./otool$build_exeext
22918 elif ( set dummy $OTOOL_FOR_TARGET; test -x $2 ); then
22919 gcc_cv_otool="$OTOOL_FOR_TARGET"
22920 else
22921 # Extract the first word of "$OTOOL_FOR_TARGET", so it can be a program name with args.
22922 set dummy $OTOOL_FOR_TARGET; ac_word=$2
22923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22924 $as_echo_n "checking for $ac_word... " >&6; }
22925 if ${ac_cv_path_gcc_cv_otool+:} false; then :
22926 $as_echo_n "(cached) " >&6
22927 else
22928 case $gcc_cv_otool in
22929 [\\/]* | ?:[\\/]*)
22930 ac_cv_path_gcc_cv_otool="$gcc_cv_otool" # Let the user override the test with a path.
22933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22934 for as_dir in $PATH
22936 IFS=$as_save_IFS
22937 test -z "$as_dir" && as_dir=.
22938 for ac_exec_ext in '' $ac_executable_extensions; do
22939 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22940 ac_cv_path_gcc_cv_otool="$as_dir/$ac_word$ac_exec_ext"
22941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22942 break 2
22944 done
22945 done
22946 IFS=$as_save_IFS
22949 esac
22951 gcc_cv_otool=$ac_cv_path_gcc_cv_otool
22952 if test -n "$gcc_cv_otool"; then
22953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_otool" >&5
22954 $as_echo "$gcc_cv_otool" >&6; }
22955 else
22956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22957 $as_echo "no" >&6; }
22964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what otool to use" >&5
22965 $as_echo_n "checking what otool to use... " >&6; }
22966 if test x$gcc_cv_otool = x; then
22967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22968 $as_echo "not found" >&6; }
22969 else
22970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_otool" >&5
22971 $as_echo "$gcc_cv_otool" >&6; }
22974 # Figure out what assembler alignment features are present.
22975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
22976 $as_echo_n "checking assembler flags... " >&6; }
22977 if ${gcc_cv_as_flags+:} false; then :
22978 $as_echo_n "(cached) " >&6
22979 else
22980 case "$target" in
22981 i[34567]86-*-linux*)
22982 gcc_cv_as_flags=--32
22984 x86_64-*-linux-gnux32)
22985 gcc_cv_as_flags=--x32
22987 x86_64-*-linux*)
22988 gcc_cv_as_flags=--64
22990 powerpc*-*-darwin*)
22991 gcc_cv_as_flags="-arch ppc"
22994 gcc_cv_as_flags=" "
22996 esac
22998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
22999 $as_echo "$gcc_cv_as_flags" >&6; }
23001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
23002 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
23003 if ${gcc_cv_as_balign_and_p2align+:} false; then :
23004 $as_echo_n "(cached) " >&6
23005 else
23006 gcc_cv_as_balign_and_p2align=no
23007 if test $in_tree_gas = yes; then
23008 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
23009 then gcc_cv_as_balign_and_p2align=yes
23011 elif test x$gcc_cv_as != x; then
23012 $as_echo '.balign 4
23013 .p2align 2' > conftest.s
23014 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23015 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23016 (eval $ac_try) 2>&5
23017 ac_status=$?
23018 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23019 test $ac_status = 0; }; }
23020 then
23021 gcc_cv_as_balign_and_p2align=yes
23022 else
23023 echo "configure: failed program was" >&5
23024 cat conftest.s >&5
23026 rm -f conftest.o conftest.s
23029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
23030 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
23031 if test $gcc_cv_as_balign_and_p2align = yes; then
23033 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
23038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
23039 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
23040 if ${gcc_cv_as_max_skip_p2align+:} false; then :
23041 $as_echo_n "(cached) " >&6
23042 else
23043 gcc_cv_as_max_skip_p2align=no
23044 if test $in_tree_gas = yes; then
23045 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
23046 then gcc_cv_as_max_skip_p2align=yes
23048 elif test x$gcc_cv_as != x; then
23049 $as_echo '.p2align 4,,7' > conftest.s
23050 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23051 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23052 (eval $ac_try) 2>&5
23053 ac_status=$?
23054 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23055 test $ac_status = 0; }; }
23056 then
23057 gcc_cv_as_max_skip_p2align=yes
23058 else
23059 echo "configure: failed program was" >&5
23060 cat conftest.s >&5
23062 rm -f conftest.o conftest.s
23065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
23066 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
23067 if test $gcc_cv_as_max_skip_p2align = yes; then
23069 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
23074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
23075 $as_echo_n "checking assembler for .literal16... " >&6; }
23076 if ${gcc_cv_as_literal16+:} false; then :
23077 $as_echo_n "(cached) " >&6
23078 else
23079 gcc_cv_as_literal16=no
23080 if test $in_tree_gas = yes; then
23081 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
23082 then gcc_cv_as_literal16=yes
23084 elif test x$gcc_cv_as != x; then
23085 $as_echo '.literal16' > conftest.s
23086 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23087 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23088 (eval $ac_try) 2>&5
23089 ac_status=$?
23090 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23091 test $ac_status = 0; }; }
23092 then
23093 gcc_cv_as_literal16=yes
23094 else
23095 echo "configure: failed program was" >&5
23096 cat conftest.s >&5
23098 rm -f conftest.o conftest.s
23101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
23102 $as_echo "$gcc_cv_as_literal16" >&6; }
23103 if test $gcc_cv_as_literal16 = yes; then
23105 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
23110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
23111 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
23112 if ${gcc_cv_as_subsection_m1+:} false; then :
23113 $as_echo_n "(cached) " >&6
23114 else
23115 gcc_cv_as_subsection_m1=no
23116 if test $in_tree_gas = yes; then
23117 if test $in_tree_gas_is_elf = yes \
23118 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
23119 then gcc_cv_as_subsection_m1=yes
23121 elif test x$gcc_cv_as != x; then
23122 $as_echo 'conftest_label1: .word 0
23123 .subsection -1
23124 conftest_label2: .word 0
23125 .previous' > conftest.s
23126 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23127 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23128 (eval $ac_try) 2>&5
23129 ac_status=$?
23130 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23131 test $ac_status = 0; }; }
23132 then
23133 if test x$gcc_cv_nm != x; then
23134 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
23135 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
23136 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
23137 then :
23138 else gcc_cv_as_subsection_m1=yes
23140 rm -f conftest.nm1 conftest.nm2
23142 else
23143 echo "configure: failed program was" >&5
23144 cat conftest.s >&5
23146 rm -f conftest.o conftest.s
23149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
23150 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
23151 if test $gcc_cv_as_subsection_m1 = yes; then
23153 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
23158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
23159 $as_echo_n "checking assembler for .weak... " >&6; }
23160 if ${gcc_cv_as_weak+:} false; then :
23161 $as_echo_n "(cached) " >&6
23162 else
23163 gcc_cv_as_weak=no
23164 if test $in_tree_gas = yes; then
23165 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
23166 then gcc_cv_as_weak=yes
23168 elif test x$gcc_cv_as != x; then
23169 $as_echo ' .weak foobar' > conftest.s
23170 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23171 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23172 (eval $ac_try) 2>&5
23173 ac_status=$?
23174 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23175 test $ac_status = 0; }; }
23176 then
23177 gcc_cv_as_weak=yes
23178 else
23179 echo "configure: failed program was" >&5
23180 cat conftest.s >&5
23182 rm -f conftest.o conftest.s
23185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
23186 $as_echo "$gcc_cv_as_weak" >&6; }
23187 if test $gcc_cv_as_weak = yes; then
23189 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
23194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
23195 $as_echo_n "checking assembler for .weakref... " >&6; }
23196 if ${gcc_cv_as_weakref+:} false; then :
23197 $as_echo_n "(cached) " >&6
23198 else
23199 gcc_cv_as_weakref=no
23200 if test $in_tree_gas = yes; then
23201 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
23202 then gcc_cv_as_weakref=yes
23204 elif test x$gcc_cv_as != x; then
23205 $as_echo ' .weakref foobar, barfnot' > conftest.s
23206 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23207 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23208 (eval $ac_try) 2>&5
23209 ac_status=$?
23210 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23211 test $ac_status = 0; }; }
23212 then
23213 gcc_cv_as_weakref=yes
23214 else
23215 echo "configure: failed program was" >&5
23216 cat conftest.s >&5
23218 rm -f conftest.o conftest.s
23221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
23222 $as_echo "$gcc_cv_as_weakref" >&6; }
23223 if test $gcc_cv_as_weakref = yes; then
23225 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
23230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
23231 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
23232 if ${gcc_cv_as_nsubspa_comdat+:} false; then :
23233 $as_echo_n "(cached) " >&6
23234 else
23235 gcc_cv_as_nsubspa_comdat=no
23236 if test $in_tree_gas = yes; then
23237 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
23238 then gcc_cv_as_nsubspa_comdat=yes
23240 elif test x$gcc_cv_as != x; then
23241 $as_echo ' .SPACE $TEXT$
23242 .NSUBSPA $CODE$,COMDAT' > conftest.s
23243 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23244 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23245 (eval $ac_try) 2>&5
23246 ac_status=$?
23247 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23248 test $ac_status = 0; }; }
23249 then
23250 gcc_cv_as_nsubspa_comdat=yes
23251 else
23252 echo "configure: failed program was" >&5
23253 cat conftest.s >&5
23255 rm -f conftest.o conftest.s
23258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
23259 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
23260 if test $gcc_cv_as_nsubspa_comdat = yes; then
23262 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
23267 # .hidden needs to be supported in both the assembler and the linker,
23268 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
23269 # This is irritatingly difficult to feature test for; we have to check the
23270 # date string after the version number. If we've got an in-tree
23271 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
23272 # to be safe.
23273 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
23274 case "${target}" in
23275 *-*-aix*)
23276 conftest_s=' .globl foobar,hidden'
23279 conftest_s=' .hidden foobar
23280 foobar:'
23282 esac
23283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
23284 $as_echo_n "checking assembler for .hidden... " >&6; }
23285 if ${gcc_cv_as_hidden+:} false; then :
23286 $as_echo_n "(cached) " >&6
23287 else
23288 gcc_cv_as_hidden=no
23289 if test $in_tree_gas = yes; then
23290 if test $in_tree_gas_is_elf = yes \
23291 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
23292 then gcc_cv_as_hidden=yes
23294 elif test x$gcc_cv_as != x; then
23295 $as_echo "$conftest_s" > conftest.s
23296 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23297 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23298 (eval $ac_try) 2>&5
23299 ac_status=$?
23300 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23301 test $ac_status = 0; }; }
23302 then
23303 gcc_cv_as_hidden=yes
23304 else
23305 echo "configure: failed program was" >&5
23306 cat conftest.s >&5
23308 rm -f conftest.o conftest.s
23311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
23312 $as_echo "$gcc_cv_as_hidden" >&6; }
23315 case "${target}" in
23316 *-*-darwin*)
23317 # Darwin as has some visibility support, though with a different syntax.
23318 gcc_cv_as_hidden=yes
23320 esac
23322 # gnu_indirect_function type is an extension proposed at
23323 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
23324 # selection of function implementation
23325 # Check whether --enable-gnu-indirect-function was given.
23326 if test "${enable_gnu_indirect_function+set}" = set; then :
23327 enableval=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
23328 yes | no) ;;
23329 *) as_fn_error $? "'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
23330 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
23331 esac
23332 else
23333 enable_gnu_indirect_function="$default_gnu_indirect_function"
23337 gif=`if test x$enable_gnu_indirect_function = xyes; then echo 1; else echo 0; fi`
23339 cat >>confdefs.h <<_ACEOF
23340 #define HAVE_GNU_INDIRECT_FUNCTION $gif
23341 _ACEOF
23345 if test $in_tree_ld != yes ; then
23346 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
23347 if echo "$ld_ver" | grep GNU > /dev/null; then
23348 if test x"$ld_is_gold" = xyes; then
23349 # GNU gold --version looks like this:
23351 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
23353 # We extract the binutils version which is more familiar and specific
23354 # than the gold version.
23355 ld_vers=`echo $ld_ver | sed -n \
23356 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
23357 else
23358 # GNU ld --version looks like this:
23360 # GNU ld (GNU Binutils) 2.21.51.20110225
23361 ld_vers=`echo $ld_ver | sed -n \
23362 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23364 ld_date=`echo $ld_ver | sed -n 's,^.*\([2-9][0-9][0-9][0-9]\)[-]*\([01][0-9]\)[-]*\([0-3][0-9]\).*$,\1\2\3,p'`
23365 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
23366 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
23367 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
23368 else
23369 case "${target}" in
23370 *-*-solaris2*)
23371 # Solaris 2 ld -V output looks like this for a regular version:
23373 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
23375 # but test versions add stuff at the end:
23377 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
23379 # ld and ld.so.1 are guaranteed to be updated in lockstep, so ld version
23380 # numbers can be used in ld.so.1 feature checks even if a different
23381 # linker is configured.
23382 ld_ver=`$gcc_cv_ld -V 2>&1`
23383 if echo "$ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
23384 ld_vers=`echo $ld_ver | sed -n \
23385 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
23386 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
23387 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
23390 esac
23394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
23395 $as_echo_n "checking linker for .hidden support... " >&6; }
23396 if ${gcc_cv_ld_hidden+:} false; then :
23397 $as_echo_n "(cached) " >&6
23398 else
23399 if test $in_tree_ld = yes ; then
23400 gcc_cv_ld_hidden=no
23401 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 \
23402 && test $in_tree_ld_is_elf = yes; then
23403 gcc_cv_ld_hidden=yes
23405 else
23406 gcc_cv_ld_hidden=yes
23407 if test x"$ld_is_gold" = xyes; then
23409 elif echo "$ld_ver" | grep GNU > /dev/null; then
23410 case "${target}" in
23411 mmix-knuth-mmixware)
23412 # The linker emits by default mmo, not ELF, so "no" is appropriate.
23413 gcc_cv_ld_hidden=no
23415 esac
23416 if test 0"$ld_date" -lt 20020404; then
23417 if test -n "$ld_date"; then
23418 # If there was date string, but was earlier than 2002-04-04, fail
23419 gcc_cv_ld_hidden=no
23420 elif test -z "$ld_vers"; then
23421 # If there was no date string nor ld version number, something is wrong
23422 gcc_cv_ld_hidden=no
23423 else
23424 test -z "$ld_vers_patch" && ld_vers_patch=0
23425 if test "$ld_vers_major" -lt 2; then
23426 gcc_cv_ld_hidden=no
23427 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
23428 gcc_cv_ld_hidden="no"
23429 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
23430 gcc_cv_ld_hidden=no
23434 else
23435 case "${target}" in
23436 *-*-aix[789]*)
23437 gcc_cv_ld_hidden=yes
23439 *-*-darwin*)
23440 # Darwin ld has some visibility support.
23441 gcc_cv_ld_hidden=yes
23443 hppa64*-*-hpux* | ia64*-*-hpux*)
23444 gcc_cv_ld_hidden=yes
23446 *-*-solaris2*)
23447 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
23448 # .symbolic was only added in Solaris 9 12/02.
23449 gcc_cv_ld_hidden=yes
23452 gcc_cv_ld_hidden=no
23454 esac
23458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
23459 $as_echo "$gcc_cv_ld_hidden" >&6; }
23460 libgcc_visibility=no
23463 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
23464 libgcc_visibility=yes
23466 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
23470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
23471 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
23472 gcc_cv_ld_ro_rw_mix=unknown
23473 if test $in_tree_ld = yes ; then
23474 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 \
23475 && test $in_tree_ld_is_elf = yes; then
23476 gcc_cv_ld_ro_rw_mix=read-write
23478 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
23479 echo '.section myfoosect, "a"' > conftest1.s
23480 echo '.section myfoosect, "aw"' > conftest2.s
23481 echo '.byte 1' >> conftest2.s
23482 echo '.section myfoosect, "a"' > conftest3.s
23483 echo '.byte 0' >> conftest3.s
23484 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
23485 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
23486 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
23487 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
23488 conftest2.o conftest3.o > /dev/null 2>&1; then
23489 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
23490 | sed -e '/myfoosect/!d' -e N`
23491 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
23492 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
23493 gcc_cv_ld_ro_rw_mix=read-only
23494 else
23495 gcc_cv_ld_ro_rw_mix=read-write
23499 rm -f conftest.* conftest[123].*
23501 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
23503 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
23506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
23507 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
23509 # Check whether --enable-initfini-array was given.
23510 if test "${enable_initfini_array+set}" = set; then :
23511 enableval=$enable_initfini_array;
23512 else
23514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
23515 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
23516 if ${gcc_cv_initfini_array+:} false; then :
23517 $as_echo_n "(cached) " >&6
23518 else
23519 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
23520 case "${target}" in
23521 ia64-*)
23522 if test "$cross_compiling" = yes; then :
23523 gcc_cv_initfini_array=no
23524 else
23525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23526 /* end confdefs.h. */
23528 #ifndef __ELF__
23529 #error Not an ELF OS
23530 #endif
23531 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
23532 if it can be used. */
23533 static int x = -1;
23534 int main (void) { return x; }
23535 int foo (void) { x = 0; }
23536 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
23538 _ACEOF
23539 if ac_fn_cxx_try_run "$LINENO"; then :
23540 gcc_cv_initfini_array=yes
23541 else
23542 gcc_cv_initfini_array=no
23544 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23545 conftest.$ac_objext conftest.beam conftest.$ac_ext
23549 gcc_cv_initfini_array=no
23550 if test $in_tree_ld = yes ; then
23551 if test "$gcc_cv_gld_major_version" -eq 2 \
23552 -a "$gcc_cv_gld_minor_version" -ge 22 \
23553 -o "$gcc_cv_gld_major_version" -gt 2 \
23554 && test $in_tree_ld_is_elf = yes; then
23555 gcc_cv_initfini_array=yes
23557 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
23558 case $target:$gas in
23559 *:yes)
23560 sh_flags='"a"'
23561 sh_type='%progbits'
23563 i?86-*-solaris2*:no | x86_64-*-solaris2*:no)
23564 sh_flags='"a"'
23565 sh_type='@progbits'
23567 sparc*-*-solaris2*:no)
23568 sh_flags='#alloc'
23569 sh_type='#progbits'
23570 sh_quote='"'
23572 esac
23573 case "$target:$gnu_ld" in
23574 *:yes)
23575 cat > conftest.s <<EOF
23576 .section .dtors,$sh_flags,$sh_type
23577 .balign 4
23578 .byte 'A', 'A', 'A', 'A'
23579 .section .ctors,$sh_flags,$sh_type
23580 .balign 4
23581 .byte 'B', 'B', 'B', 'B'
23582 .section .fini_array.65530,$sh_flags,$sh_type
23583 .balign 4
23584 .byte 'C', 'C', 'C', 'C'
23585 .section .init_array.65530,$sh_flags,$sh_type
23586 .balign 4
23587 .byte 'D', 'D', 'D', 'D'
23588 .section .dtors.64528,$sh_flags,$sh_type
23589 .balign 4
23590 .byte 'E', 'E', 'E', 'E'
23591 .section .ctors.64528,$sh_flags,$sh_type
23592 .balign 4
23593 .byte 'F', 'F', 'F', 'F'
23594 .section .fini_array.01005,$sh_flags,$sh_type
23595 .balign 4
23596 .byte 'G', 'G', 'G', 'G'
23597 .section .init_array.01005,$sh_flags,$sh_type
23598 .balign 4
23599 .byte 'H', 'H', 'H', 'H'
23600 .text
23601 .globl _start
23602 _start:
23604 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
23605 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
23606 && $gcc_cv_objdump -s -j .init_array conftest \
23607 | grep HHHHFFFFDDDDBBBB > /dev/null 2>&1 \
23608 && $gcc_cv_objdump -s -j .fini_array conftest \
23609 | grep GGGGEEEECCCCAAAA > /dev/null 2>&1; then
23610 gcc_cv_initfini_array=yes
23613 *-*-solaris2*:no)
23614 # When Solaris ld added constructor priority support, it was
23615 # decided to only handle .init_array.N/.fini_array.N since
23616 # there was no need for backwards compatibility with
23617 # .ctors.N/.dtors.N. .ctors/.dtors remain as separate
23618 # sections with correct execution order resp. to
23619 # .init_array/.fini_array, while gld merges them into
23620 # .init_array/.fini_array.
23621 cat > conftest.s <<EOF
23622 .section $sh_quote.fini_array.65530$sh_quote,$sh_flags,$sh_type
23623 .align 4
23624 .byte 'C', 'C', 'C', 'C', 'C', 'C', 'C', 'C'
23625 .section $sh_quote.init_array.65530$sh_quote,$sh_flags,$sh_type
23626 .align 4
23627 .byte 'D', 'D', 'D', 'D', 'D', 'D', 'D', 'D'
23628 .section $sh_quote.fini_array.01005$sh_quote,$sh_flags,$sh_type
23629 .align 4
23630 .byte 'G', 'G', 'G', 'G', 'G', 'G', 'G', 'G'
23631 .section $sh_quote.init_array.01005$sh_quote,$sh_flags,$sh_type
23632 .align 4
23633 .byte 'H', 'H', 'H', 'H', 'H', 'H', 'H', 'H'
23634 .text
23635 .globl _start
23636 _start:
23638 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
23639 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
23640 && $gcc_cv_objdump -s -j .init_array conftest \
23641 | grep HHHHHHHHDDDDDDDD > /dev/null 2>&1 \
23642 && $gcc_cv_objdump -s -j .fini_array conftest \
23643 | grep GGGGGGGGCCCCCCCC > /dev/null 2>&1; then
23644 gcc_cv_initfini_array=yes
23647 esac
23648 rm -f conftest conftest.*
23650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23651 /* end confdefs.h. */
23653 #ifndef __ELF__
23654 # error Not an ELF OS
23655 #endif
23656 #include <stdlib.h>
23657 #if defined __GLIBC_PREREQ
23658 # if __GLIBC_PREREQ (2, 4)
23659 # else
23660 # error GLIBC 2.4 required
23661 # endif
23662 #else
23663 # if defined __sun__ && defined __svr4__
23664 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
23665 # else
23666 # error The C library not known to support .init_array/.fini_array
23667 # endif
23668 #endif
23670 _ACEOF
23671 if ac_fn_cxx_try_cpp "$LINENO"; then :
23673 else
23674 gcc_cv_initfini_array=no
23676 rm -f conftest.err conftest.i conftest.$ac_ext;;
23677 esac
23678 else
23679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
23680 $as_echo_n "checking cross compile... guessing... " >&6; }
23681 gcc_cv_initfini_array=no
23684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
23685 $as_echo "$gcc_cv_initfini_array" >&6; }
23686 enable_initfini_array=$gcc_cv_initfini_array
23691 cat >>confdefs.h <<_ACEOF
23692 #define HAVE_INITFINI_ARRAY_SUPPORT `if test $enable_initfini_array = yes; then echo 1; else echo 0; fi`
23693 _ACEOF
23697 # Check if we have .[us]leb128, and support symbol arithmetic with it.
23698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
23699 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
23700 if ${gcc_cv_as_leb128+:} false; then :
23701 $as_echo_n "(cached) " >&6
23702 else
23703 gcc_cv_as_leb128=no
23704 if test $in_tree_gas = yes; then
23705 if test $in_tree_gas_is_elf = yes \
23706 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
23707 then gcc_cv_as_leb128=yes
23709 elif test x$gcc_cv_as != x; then
23710 $as_echo ' .data
23711 .uleb128 L2 - L1
23713 .uleb128 1280
23714 .sleb128 -1010
23715 L2:' > conftest.s
23716 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23717 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23718 (eval $ac_try) 2>&5
23719 ac_status=$?
23720 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23721 test $ac_status = 0; }; }
23722 then
23723 # GAS versions before 2.11 do not support uleb128,
23724 # despite appearing to.
23725 # ??? There exists an elf-specific test that will crash
23726 # the assembler. Perhaps it's better to figure out whether
23727 # arbitrary sections are supported and try the test.
23728 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
23729 if echo "$as_ver" | grep GNU > /dev/null; then
23730 as_vers=`echo $as_ver | sed -n \
23731 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23732 as_major=`expr "$as_vers" : '\([0-9]*\)'`
23733 as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
23734 if test $as_major -eq 2 && test $as_minor -lt 11
23735 then :
23736 else gcc_cv_as_leb128=yes
23739 else
23740 echo "configure: failed program was" >&5
23741 cat conftest.s >&5
23743 rm -f conftest.o conftest.s
23746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
23747 $as_echo "$gcc_cv_as_leb128" >&6; }
23748 if test $gcc_cv_as_leb128 = yes; then
23750 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
23753 if test $gcc_cv_as_leb128 != yes; then
23755 $as_echo "#define HAVE_AS_LEB128 0" >>confdefs.h
23759 # Determine if an .eh_frame section is read-only.
23760 gcc_fn_eh_frame_ro () {
23761 $gcc_cv_as $1 -o conftest.o conftest.s > /dev/null 2>&1 && \
23762 $gcc_cv_objdump -h conftest.o 2>/dev/null | \
23763 sed -e '/.eh_frame/!d' -e N | grep READONLY > /dev/null
23766 # Check if we have assembler support for unwind directives.
23767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
23768 $as_echo_n "checking assembler for cfi directives... " >&6; }
23769 if ${gcc_cv_as_cfi_directive+:} false; then :
23770 $as_echo_n "(cached) " >&6
23771 else
23772 gcc_cv_as_cfi_directive=no
23773 if test x$gcc_cv_as != x; then
23774 $as_echo ' .text
23775 .cfi_startproc
23776 .cfi_offset 0, 0
23777 .cfi_same_value 1
23778 .cfi_def_cfa 1, 2
23779 .cfi_escape 1, 2, 3, 4, 5
23780 .cfi_endproc' > conftest.s
23781 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23782 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23783 (eval $ac_try) 2>&5
23784 ac_status=$?
23785 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23786 test $ac_status = 0; }; }
23787 then
23788 case "$target" in
23789 *-*-solaris*)
23790 # If the linker used on Solaris (like Sun ld) isn't capable of merging
23791 # read-only and read-write sections, we need to make sure that the
23792 # assembler used emits read-write .eh_frame sections.
23793 if test "x$gcc_cv_ld_ro_rw_mix" = xread-write; then
23794 gcc_cv_as_cfi_directive=yes
23795 elif test "x$gcc_cv_objdump" = x; then
23796 # No objdump, err on the side of caution.
23797 gcc_cv_as_cfi_directive=no
23798 else
23799 if test x$gas = xyes; then
23800 as_32_opt="--32"
23801 as_64_opt="--64"
23802 else
23803 as_32_opt="-m32"
23804 as_64_opt="-m64"
23806 case "$target" in
23807 sparc*-*-solaris2.*)
23808 # On Solaris/SPARC, .eh_frame sections should always be read-write.
23809 if gcc_fn_eh_frame_ro $as_32_opt \
23810 || gcc_fn_eh_frame_ro $as_64_opt; then
23811 gcc_cv_as_cfi_directive=no
23812 else
23813 gcc_cv_as_cfi_directive=yes
23816 i?86-*-solaris2.* | x86_64-*-solaris2.*)
23817 # On Solaris/x86, make sure that GCC and assembler agree on using
23818 # read-only .eh_frame sections for 64-bit.
23819 if gcc_fn_eh_frame_ro $as_32_opt; then
23820 gcc_cv_as_cfi_directive=no
23821 elif gcc_fn_eh_frame_ro $as_64_opt; then
23822 gcc_cv_as_cfi_directive=yes
23823 else
23824 gcc_cv_as_cfi_directive=no
23827 esac
23830 *-*-*)
23831 gcc_cv_as_cfi_directive=yes
23833 esac
23834 else
23835 echo "configure: failed program was" >&5
23836 cat conftest.s >&5
23838 rm -f conftest.o conftest.s
23841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
23842 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
23845 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then
23846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
23847 $as_echo_n "checking assembler for working cfi advance... " >&6; }
23848 if ${gcc_cv_as_cfi_advance_working+:} false; then :
23849 $as_echo_n "(cached) " >&6
23850 else
23851 gcc_cv_as_cfi_advance_working=no
23852 if test x$gcc_cv_as != x; then
23853 $as_echo ' .text
23854 .cfi_startproc
23855 .cfi_adjust_cfa_offset 64
23856 .skip 75040, 0
23857 .cfi_adjust_cfa_offset 128
23858 .cfi_endproc' > conftest.s
23859 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23860 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23861 (eval $ac_try) 2>&5
23862 ac_status=$?
23863 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23864 test $ac_status = 0; }; }
23865 then
23867 if $gcc_cv_objdump -Wf conftest.o 2>/dev/null \
23868 | grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev/null; then
23869 gcc_cv_as_cfi_advance_working=yes
23872 else
23873 echo "configure: failed program was" >&5
23874 cat conftest.s >&5
23876 rm -f conftest.o conftest.s
23879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
23880 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
23883 else
23884 # no objdump, err on the side of caution
23885 gcc_cv_as_cfi_advance_working=no
23889 cat >>confdefs.h <<_ACEOF
23890 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
23891 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
23892 _ACEOF
23896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
23897 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
23898 if ${gcc_cv_as_cfi_personality_directive+:} false; then :
23899 $as_echo_n "(cached) " >&6
23900 else
23901 gcc_cv_as_cfi_personality_directive=no
23902 if test x$gcc_cv_as != x; then
23903 $as_echo ' .text
23904 .cfi_startproc
23905 .cfi_personality 0, symbol
23906 .cfi_endproc' > conftest.s
23907 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23908 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23909 (eval $ac_try) 2>&5
23910 ac_status=$?
23911 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23912 test $ac_status = 0; }; }
23913 then
23914 gcc_cv_as_cfi_personality_directive=yes
23915 else
23916 echo "configure: failed program was" >&5
23917 cat conftest.s >&5
23919 rm -f conftest.o conftest.s
23922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
23923 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
23927 cat >>confdefs.h <<_ACEOF
23928 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes; then echo 1; else echo 0; fi`
23929 _ACEOF
23932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
23933 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
23934 if ${gcc_cv_as_cfi_sections_directive+:} false; then :
23935 $as_echo_n "(cached) " >&6
23936 else
23937 gcc_cv_as_cfi_sections_directive=no
23938 if test x$gcc_cv_as != x; then
23939 $as_echo ' .text
23940 .cfi_sections .debug_frame, .eh_frame
23941 .cfi_startproc
23942 .cfi_endproc' > conftest.s
23943 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23944 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23945 (eval $ac_try) 2>&5
23946 ac_status=$?
23947 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23948 test $ac_status = 0; }; }
23949 then
23950 case $target_os in
23951 win32 | pe | cygwin* | mingw32*)
23952 # Need to check that we generated the correct relocation for the
23953 # .debug_frame section. This was fixed for binutils 2.21.
23954 gcc_cv_as_cfi_sections_directive=no
23955 if test "x$gcc_cv_objdump" != x; then
23956 if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
23957 grep secrel > /dev/null; then
23958 gcc_cv_as_cfi_sections_directive=yes
23963 gcc_cv_as_cfi_sections_directive=yes
23965 esac
23966 else
23967 echo "configure: failed program was" >&5
23968 cat conftest.s >&5
23970 rm -f conftest.o conftest.s
23973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
23974 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
23979 cat >>confdefs.h <<_ACEOF
23980 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes; then echo 1; else echo 0; fi`
23981 _ACEOF
23984 # GAS versions up to and including 2.11.0 may mis-optimize
23985 # .eh_frame data.
23986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
23987 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
23988 if ${gcc_cv_as_eh_frame+:} false; then :
23989 $as_echo_n "(cached) " >&6
23990 else
23991 gcc_cv_as_eh_frame=no
23992 if test $in_tree_gas = yes; then
23993 if test $in_tree_gas_is_elf = yes \
23994 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23995 then gcc_cv_as_eh_frame=yes
23997 elif test x$gcc_cv_as != x; then
23998 $as_echo ' .text
23999 .LFB1:
24000 .4byte 0
24001 .L1:
24002 .4byte 0
24003 .LFE1:
24004 .section .eh_frame,"aw",@progbits
24005 __FRAME_BEGIN__:
24006 .4byte .LECIE1-.LSCIE1
24007 .LSCIE1:
24008 .4byte 0x0
24009 .byte 0x1
24010 .ascii "z\0"
24011 .byte 0x1
24012 .byte 0x78
24013 .byte 0x1a
24014 .byte 0x0
24015 .byte 0x4
24016 .4byte 1
24017 .p2align 1
24018 .LECIE1:
24019 .LSFDE1:
24020 .4byte .LEFDE1-.LASFDE1
24021 .LASFDE1:
24022 .4byte .LASFDE1-__FRAME_BEGIN__
24023 .4byte .LFB1
24024 .4byte .LFE1-.LFB1
24025 .byte 0x4
24026 .4byte .LFE1-.LFB1
24027 .byte 0x4
24028 .4byte .L1-.LFB1
24029 .LEFDE1:' > conftest.s
24030 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24031 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24032 (eval $ac_try) 2>&5
24033 ac_status=$?
24034 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24035 test $ac_status = 0; }; }
24036 then
24037 cat > conftest.lit <<EOF
24038 0000 10000000 00000000 017a0001 781a0004 .........z..x...
24039 0010 01000000 12000000 18000000 00000000 ................
24040 0020 08000000 04080000 0044 .........D
24042 cat > conftest.big <<EOF
24043 0000 00000010 00000000 017a0001 781a0004 .........z..x...
24044 0010 00000001 00000012 00000018 00000000 ................
24045 0020 00000008 04000000 0844 .........D
24047 # If the assembler didn't choke, and we can objdump,
24048 # and we got the correct data, then succeed.
24049 # The text in the here-document typically retains its unix-style line
24050 # endings, while the output of objdump will use host line endings.
24051 # Therefore, use diff -b for the comparisons.
24052 if test x$gcc_cv_objdump != x \
24053 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
24054 | tail -3 > conftest.got \
24055 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
24056 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
24057 then
24058 gcc_cv_as_eh_frame=yes
24059 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
24060 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24061 (eval $ac_try) 2>&5
24062 ac_status=$?
24063 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24064 test $ac_status = 0; }; }; then
24065 gcc_cv_as_eh_frame=buggy
24066 else
24067 # Uh oh, what do we do now?
24068 gcc_cv_as_eh_frame=no
24070 else
24071 echo "configure: failed program was" >&5
24072 cat conftest.s >&5
24074 rm -f conftest.o conftest.s
24077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
24078 $as_echo "$gcc_cv_as_eh_frame" >&6; }
24082 if test $gcc_cv_as_eh_frame = buggy; then
24084 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
24088 # Test if the assembler supports the section flag 'e' or #exclude for
24089 # specifying an excluded section.
24090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section exclude flag" >&5
24091 $as_echo_n "checking assembler for section exclude flag... " >&6; }
24092 if ${gcc_cv_as_section_exclude_e+:} false; then :
24093 $as_echo_n "(cached) " >&6
24094 else
24095 gcc_cv_as_section_exclude_e=no
24096 if test $in_tree_gas = yes; then
24097 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
24098 then gcc_cv_as_section_exclude_e=yes
24100 elif test x$gcc_cv_as != x; then
24101 $as_echo '.section foo1,"e"
24102 .byte 0,0,0,0' > conftest.s
24103 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24104 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24105 (eval $ac_try) 2>&5
24106 ac_status=$?
24107 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24108 test $ac_status = 0; }; }
24109 then
24110 gcc_cv_as_section_exclude_e=yes
24111 else
24112 echo "configure: failed program was" >&5
24113 cat conftest.s >&5
24115 rm -f conftest.o conftest.s
24118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_exclude_e" >&5
24119 $as_echo "$gcc_cv_as_section_exclude_e" >&6; }
24122 if test $gcc_cv_as_section_exclude_e = no; then
24123 case "${target}" in
24124 # Solaris as uses #exclude instead.
24125 *-*-solaris2*)
24126 case "${target}" in
24127 sparc*-*-solaris2*)
24128 conftest_s='.section "foo1", #exclude'
24130 i?86-*-solaris2* | x86_64-*-solaris2*)
24131 conftest_s='.section foo1, #exclude'
24133 esac
24135 esac
24136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section exclude flag" >&5
24137 $as_echo_n "checking assembler for section exclude flag... " >&6; }
24138 if ${gcc_cv_as_section_exclude_hash+:} false; then :
24139 $as_echo_n "(cached) " >&6
24140 else
24141 gcc_cv_as_section_exclude_hash=no
24142 if test x$gcc_cv_as != x; then
24143 $as_echo "$conftest_s
24144 .byte 0,0,0,0" > conftest.s
24145 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24146 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24147 (eval $ac_try) 2>&5
24148 ac_status=$?
24149 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24150 test $ac_status = 0; }; }
24151 then
24152 gcc_cv_as_section_exclude_hash=yes
24153 else
24154 echo "configure: failed program was" >&5
24155 cat conftest.s >&5
24157 rm -f conftest.o conftest.s
24160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_exclude_hash" >&5
24161 $as_echo "$gcc_cv_as_section_exclude_hash" >&6; }
24166 cat >>confdefs.h <<_ACEOF
24167 #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`
24168 _ACEOF
24171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
24172 $as_echo_n "checking assembler for section merging support... " >&6; }
24173 if ${gcc_cv_as_shf_merge+:} false; then :
24174 $as_echo_n "(cached) " >&6
24175 else
24176 gcc_cv_as_shf_merge=no
24177 if test $in_tree_gas = yes; then
24178 if test $in_tree_gas_is_elf = yes \
24179 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
24180 then gcc_cv_as_shf_merge=yes
24182 elif test x$gcc_cv_as != x; then
24183 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
24184 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24185 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24186 (eval $ac_try) 2>&5
24187 ac_status=$?
24188 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24189 test $ac_status = 0; }; }
24190 then
24191 gcc_cv_as_shf_merge=yes
24192 else
24193 echo "configure: failed program was" >&5
24194 cat conftest.s >&5
24196 rm -f conftest.o conftest.s
24199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
24200 $as_echo "$gcc_cv_as_shf_merge" >&6; }
24203 if test $gcc_cv_as_shf_merge = no; then
24204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
24205 $as_echo_n "checking assembler for section merging support... " >&6; }
24206 if ${gcc_cv_as_shf_merge+:} false; then :
24207 $as_echo_n "(cached) " >&6
24208 else
24209 gcc_cv_as_shf_merge=no
24210 if test $in_tree_gas = yes; then
24211 if test $in_tree_gas_is_elf = yes \
24212 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
24213 then gcc_cv_as_shf_merge=yes
24215 elif test x$gcc_cv_as != x; then
24216 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
24217 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24218 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24219 (eval $ac_try) 2>&5
24220 ac_status=$?
24221 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24222 test $ac_status = 0; }; }
24223 then
24224 gcc_cv_as_shf_merge=yes
24225 else
24226 echo "configure: failed program was" >&5
24227 cat conftest.s >&5
24229 rm -f conftest.o conftest.s
24232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
24233 $as_echo "$gcc_cv_as_shf_merge" >&6; }
24238 cat >>confdefs.h <<_ACEOF
24239 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
24240 _ACEOF
24243 gcc_cv_ld_aligned_shf_merge=yes
24244 case "$target" in
24245 # SHF_MERGE support is broken in Solaris ld up to Solaris 11.3/SPARC for
24246 # alignment > 1.
24247 sparc*-*-solaris2.11*)
24248 if test x"$gnu_ld" = xno \
24249 && test "$ld_vers_major" -lt 2 && test "$ld_vers_minor" -lt 3159; then
24250 gcc_cv_ld_aligned_shf_merge=no
24253 esac
24255 cat >>confdefs.h <<_ACEOF
24256 #define HAVE_LD_ALIGNED_SHF_MERGE `if test $gcc_cv_ld_aligned_shf_merge = yes; then echo 1; else echo 0; fi`
24257 _ACEOF
24260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for stabs directive" >&5
24261 $as_echo_n "checking assembler for stabs directive... " >&6; }
24262 if ${gcc_cv_as_stabs_directive+:} false; then :
24263 $as_echo_n "(cached) " >&6
24264 else
24265 gcc_cv_as_stabs_directive=no
24266 if test x$gcc_cv_as != x; then
24267 $as_echo '.stabs "gcc2_compiled.",60,0,0,0' > conftest.s
24268 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24269 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24270 (eval $ac_try) 2>&5
24271 ac_status=$?
24272 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24273 test $ac_status = 0; }; }
24274 then
24275 gcc_cv_as_stabs_directive=yes
24276 else
24277 echo "configure: failed program was" >&5
24278 cat conftest.s >&5
24280 rm -f conftest.o conftest.s
24283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_stabs_directive" >&5
24284 $as_echo "$gcc_cv_as_stabs_directive" >&6; }
24285 if test $gcc_cv_as_stabs_directive = yes; then
24287 $as_echo "#define HAVE_AS_STABS_DIRECTIVE 1" >>confdefs.h
24292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
24293 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
24294 if ${gcc_cv_as_comdat_group+:} false; then :
24295 $as_echo_n "(cached) " >&6
24296 else
24297 gcc_cv_as_comdat_group=no
24298 if test $in_tree_gas = yes; then
24299 if test $in_tree_gas_is_elf = yes \
24300 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
24301 then gcc_cv_as_comdat_group=yes
24303 elif test x$gcc_cv_as != x; then
24304 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
24305 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24306 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24307 (eval $ac_try) 2>&5
24308 ac_status=$?
24309 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24310 test $ac_status = 0; }; }
24311 then
24312 gcc_cv_as_comdat_group=yes
24313 else
24314 echo "configure: failed program was" >&5
24315 cat conftest.s >&5
24317 rm -f conftest.o conftest.s
24320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
24321 $as_echo "$gcc_cv_as_comdat_group" >&6; }
24324 if test $gcc_cv_as_comdat_group = yes; then
24325 gcc_cv_as_comdat_group_percent=no
24326 gcc_cv_as_comdat_group_group=no
24327 else
24328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
24329 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
24330 if ${gcc_cv_as_comdat_group_percent+:} false; then :
24331 $as_echo_n "(cached) " >&6
24332 else
24333 gcc_cv_as_comdat_group_percent=no
24334 if test $in_tree_gas = yes; then
24335 if test $in_tree_gas_is_elf = yes \
24336 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
24337 then gcc_cv_as_comdat_group_percent=yes
24339 elif test x$gcc_cv_as != x; then
24340 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
24341 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24342 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24343 (eval $ac_try) 2>&5
24344 ac_status=$?
24345 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24346 test $ac_status = 0; }; }
24347 then
24348 gcc_cv_as_comdat_group_percent=yes
24349 else
24350 echo "configure: failed program was" >&5
24351 cat conftest.s >&5
24353 rm -f conftest.o conftest.s
24356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
24357 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
24360 if test $gcc_cv_as_comdat_group_percent = yes; then
24361 gcc_cv_as_comdat_group_group=no
24362 else
24363 case "${target}" in
24364 # Sun as uses a completely different syntax.
24365 *-*-solaris2*)
24366 case "${target}" in
24367 sparc*-*-solaris2*)
24368 conftest_s='
24369 .group foo,".text%foo",#comdat
24370 .section ".text%foo", #alloc,#execinstr,#progbits
24371 .globl foo
24372 foo:
24375 i?86-*-solaris2* | x86_64-*-solaris2*)
24376 conftest_s='
24377 .group foo,.text%foo,#comdat
24378 .section .text%foo, "ax", @progbits
24379 .globl foo
24380 foo:
24383 esac
24384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
24385 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
24386 if ${gcc_cv_as_comdat_group_group+:} false; then :
24387 $as_echo_n "(cached) " >&6
24388 else
24389 gcc_cv_as_comdat_group_group=no
24390 if test x$gcc_cv_as != x; then
24391 $as_echo "$conftest_s" > conftest.s
24392 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24393 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24394 (eval $ac_try) 2>&5
24395 ac_status=$?
24396 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24397 test $ac_status = 0; }; }
24398 then
24399 gcc_cv_as_comdat_group_group=yes
24400 else
24401 echo "configure: failed program was" >&5
24402 cat conftest.s >&5
24404 rm -f conftest.o conftest.s
24407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
24408 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
24412 esac
24413 if test -z "${gcc_cv_as_comdat_group_group+set}"; then
24414 gcc_cv_as_comdat_group_group=no
24418 if test x"$ld_is_gold" = xyes; then
24419 comdat_group=yes
24420 elif test $in_tree_ld = yes ; then
24421 comdat_group=no
24422 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 \
24423 && test $in_tree_ld_is_elf = yes; then
24424 comdat_group=yes
24426 elif echo "$ld_ver" | grep GNU > /dev/null; then
24427 comdat_group=yes
24428 if test 0"$ld_date" -lt 20050308; then
24429 if test -n "$ld_date"; then
24430 # If there was date string, but was earlier than 2005-03-08, fail
24431 comdat_group=no
24432 elif test "$ld_vers_major" -lt 2; then
24433 comdat_group=no
24434 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
24435 comdat_group=no
24438 else
24439 case "${target}" in
24440 *-*-solaris2.1[1-9]*)
24441 comdat_group=no
24442 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
24443 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
24444 # version 1.688.
24446 # If using Sun as for COMDAT group as emitted by GCC, one needs at
24447 # least ld version 1.2267.
24448 if test "$ld_vers_major" -gt 1; then
24449 comdat_group=yes
24450 elif test "x$gas_flag" = xyes && test "$ld_vers_minor" -ge 1688; then
24451 comdat_group=yes
24452 elif test "$ld_vers_minor" -ge 2267; then
24453 comdat_group=yes
24457 # Assume linkers other than GNU ld don't support COMDAT group.
24458 comdat_group=no
24460 esac
24462 # Allow overriding the automatic COMDAT group tests above.
24463 # Check whether --enable-comdat was given.
24464 if test "${enable_comdat+set}" = set; then :
24465 enableval=$enable_comdat; comdat_group="$enable_comdat"
24468 if test $comdat_group = no; then
24469 gcc_cv_as_comdat_group=no
24470 gcc_cv_as_comdat_group_percent=no
24471 gcc_cv_as_comdat_group_group=no
24474 cat >>confdefs.h <<_ACEOF
24475 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
24476 || test $gcc_cv_as_comdat_group_percent = yes \
24477 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
24478 _ACEOF
24481 # Restrict this test to Solaris/x86: other targets define this statically.
24482 case "${target}" in
24483 i?86-*-solaris2* | x86_64-*-solaris2*)
24484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for hidden thunks in linkonce sections" >&5
24485 $as_echo_n "checking support for hidden thunks in linkonce sections... " >&6; }
24486 if test $in_tree_ld = yes || echo "$ld_ver" | grep GNU > /dev/null; then
24487 hidden_linkonce=yes
24488 else
24489 case "${target}" in
24490 # Full support for hidden thunks in linkonce sections only appeared in
24491 # Solaris 11/OpenSolaris.
24492 *-*-solaris2.1[1-9]*)
24493 hidden_linkonce=yes
24496 hidden_linkonce=no
24498 esac
24500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hidden_linkonce" >&5
24501 $as_echo "$hidden_linkonce" >&6; }
24503 cat >>confdefs.h <<_ACEOF
24504 #define USE_HIDDEN_LINKONCE `if test $hidden_linkonce = yes; then echo 1; else echo 0; fi`
24505 _ACEOF
24508 esac
24510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table is_stmt support" >&5
24511 $as_echo_n "checking assembler for line table is_stmt support... " >&6; }
24512 if ${gcc_cv_as_is_stmt+:} false; then :
24513 $as_echo_n "(cached) " >&6
24514 else
24515 gcc_cv_as_is_stmt=no
24516 if test $in_tree_gas = yes; then
24517 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 92`
24518 then gcc_cv_as_is_stmt=yes
24520 elif test x$gcc_cv_as != x; then
24521 $as_echo ' .text
24522 .file 1 "conf.c"
24523 .loc 1 1 0 is_stmt 1' > conftest.s
24524 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24525 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24526 (eval $ac_try) 2>&5
24527 ac_status=$?
24528 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24529 test $ac_status = 0; }; }
24530 then
24531 gcc_cv_as_is_stmt=yes
24532 else
24533 echo "configure: failed program was" >&5
24534 cat conftest.s >&5
24536 rm -f conftest.o conftest.s
24539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_is_stmt" >&5
24540 $as_echo "$gcc_cv_as_is_stmt" >&6; }
24541 if test $gcc_cv_as_is_stmt = yes; then
24543 $as_echo "#define HAVE_GAS_LOC_STMT 1" >>confdefs.h
24548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
24549 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
24550 if ${gcc_cv_as_discriminator+:} false; then :
24551 $as_echo_n "(cached) " >&6
24552 else
24553 gcc_cv_as_discriminator=no
24554 if test $in_tree_gas = yes; then
24555 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
24556 then gcc_cv_as_discriminator=yes
24558 elif test x$gcc_cv_as != x; then
24559 $as_echo ' .text
24560 .file 1 "conf.c"
24561 .loc 1 1 0 discriminator 1' > conftest.s
24562 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24563 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24564 (eval $ac_try) 2>&5
24565 ac_status=$?
24566 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24567 test $ac_status = 0; }; }
24568 then
24569 gcc_cv_as_discriminator=yes
24570 else
24571 echo "configure: failed program was" >&5
24572 cat conftest.s >&5
24574 rm -f conftest.o conftest.s
24577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
24578 $as_echo "$gcc_cv_as_discriminator" >&6; }
24579 if test $gcc_cv_as_discriminator = yes; then
24581 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
24586 # Catch the newlib flag of the same name so we can gate GCC features on it.
24587 # Check whether --enable-newlib-nano-formatted-io was given.
24588 if test "${enable_newlib_nano_formatted_io+set}" = set; then :
24589 enableval=$enable_newlib_nano_formatted_io; case "${enableval}" in
24590 yes|no)
24593 as_fn_error $? "unknown newlib-nano-formatted-io setting $enableval" "$LINENO" 5
24595 esac
24599 # Thread-local storage - the check is heavily parameterized.
24600 conftest_s=
24601 tls_first_major=
24602 tls_first_minor=
24603 tls_as_opt=
24604 case "$target" in
24605 alpha*-*-*)
24606 conftest_s='
24607 .section ".tdata","awT",@progbits
24608 foo: .long 25
24609 .text
24610 ldq $27,__tls_get_addr($29) !literal!1
24611 lda $16,foo($29) !tlsgd!1
24612 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
24613 ldq $27,__tls_get_addr($29) !literal!2
24614 lda $16,foo($29) !tlsldm!2
24615 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
24616 ldq $1,foo($29) !gotdtprel
24617 ldah $2,foo($29) !dtprelhi
24618 lda $3,foo($2) !dtprello
24619 lda $4,foo($29) !dtprel
24620 ldq $1,foo($29) !gottprel
24621 ldah $2,foo($29) !tprelhi
24622 lda $3,foo($2) !tprello
24623 lda $4,foo($29) !tprel'
24624 tls_first_major=2
24625 tls_first_minor=13
24626 tls_as_opt=--fatal-warnings
24628 arc*-*-*)
24629 conftest_s='
24630 add_s r0,r0, @foo@tpoff'
24631 tls_first_major=2
24632 tls_first_minor=23
24634 cris-*-*|crisv32-*-*)
24635 conftest_s='
24636 .section ".tdata","awT",@progbits
24637 x: .long 25
24638 .text
24639 move.d x:IE,$r10
24640 nop'
24641 tls_first_major=2
24642 tls_first_minor=20
24643 tls_as_opt=--fatal-warnings
24645 frv*-*-*)
24646 conftest_s='
24647 .section ".tdata","awT",@progbits
24648 x: .long 25
24649 .text
24650 call #gettlsoff(x)'
24651 tls_first_major=2
24652 tls_first_minor=14
24654 hppa*-*-linux*)
24655 conftest_s='
24656 t1: .reg %r20
24657 t2: .reg %r21
24658 gp: .reg %r19
24659 .section ".tdata","awT",@progbits
24660 foo: .long 25
24661 .text
24662 .align 4
24663 addil LT%foo-$tls_gdidx$,gp
24664 ldo RT%foo-$tls_gdidx$(%r1),%arg0
24665 b __tls_get_addr
24667 addil LT%foo-$tls_ldidx$,gp
24668 b __tls_get_addr
24669 ldo RT%foo-$tls_ldidx$(%r1),%arg0
24670 addil LR%foo-$tls_dtpoff$,%ret0
24671 ldo RR%foo-$tls_dtpoff$(%r1),%t1
24672 mfctl %cr27,%t1
24673 addil LT%foo-$tls_ieoff$,gp
24674 ldw RT%foo-$tls_ieoff$(%r1),%t2
24675 add %t1,%t2,%t3
24676 mfctl %cr27,%t1
24677 addil LR%foo-$tls_leoff$,%t1
24678 ldo RR%foo-$tls_leoff$(%r1),%t2'
24679 tls_first_major=2
24680 tls_first_minor=15
24681 tls_as_opt=--fatal-warnings
24683 arm*-*-*)
24684 conftest_s='
24685 .section ".tdata","awT",%progbits
24686 foo: .long 25
24687 .text
24688 .word foo(gottpoff)
24689 .word foo(tpoff)
24690 .word foo(tlsgd)
24691 .word foo(tlsldm)
24692 .word foo(tlsldo)'
24693 tls_first_major=2
24694 tls_first_minor=17
24696 i[34567]86-*-* | x86_64-*-*)
24697 case "$target" in
24698 i[34567]86-*-solaris2.* | x86_64-*-solaris2.*)
24699 on_solaris=yes
24702 on_solaris=no
24704 esac
24705 if test x$on_solaris = xyes && test x$gas_flag = xno; then
24706 conftest_s='
24707 .section .tdata,"awt",@progbits'
24708 tls_first_major=0
24709 tls_first_minor=0
24710 tls_section_flag=t
24712 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
24714 else
24715 conftest_s='
24716 .section ".tdata","awT",@progbits'
24717 tls_first_major=2
24718 tls_first_minor=14
24719 tls_section_flag=T
24720 tls_as_opt="--fatal-warnings"
24722 case "$target" in
24723 i[34567]86-*-*)
24724 conftest_s="$conftest_s
24725 foo: .long 25
24726 .text
24727 movl %gs:0, %eax
24728 leal foo@tlsgd(,%ebx,1), %eax
24729 leal foo@tlsldm(%ebx), %eax
24730 leal foo@dtpoff(%eax), %edx
24731 movl foo@gottpoff(%ebx), %eax
24732 subl foo@gottpoff(%ebx), %eax
24733 addl foo@gotntpoff(%ebx), %eax
24734 movl foo@indntpoff, %eax
24735 movl \$foo@tpoff, %eax
24736 subl \$foo@tpoff, %eax
24737 leal foo@ntpoff(%ecx), %eax"
24739 x86_64-*-*)
24740 if test x$on_solaris = xyes; then
24741 case $gas_flag in
24742 yes) tls_as_opt="$tls_as_opt --64" ;;
24743 no) tls_as_opt="$tls_as_opt -xarch=amd64" ;;
24744 esac
24746 conftest_s="$conftest_s
24747 foo: .long 25
24748 .text
24749 movq %fs:0, %rax
24750 leaq foo@tlsgd(%rip), %rdi
24751 leaq foo@tlsld(%rip), %rdi
24752 leaq foo@dtpoff(%rax), %rdx
24753 movq foo@gottpoff(%rip), %rax
24754 movq \$foo@tpoff, %rax"
24756 esac
24758 ia64-*-*)
24759 conftest_s='
24760 .section ".tdata","awT",@progbits
24761 foo: data8 25
24762 .text
24763 addl r16 = @ltoff(@dtpmod(foo#)), gp
24764 addl r17 = @ltoff(@dtprel(foo#)), gp
24765 addl r18 = @ltoff(@tprel(foo#)), gp
24766 addl r19 = @dtprel(foo#), gp
24767 adds r21 = @dtprel(foo#), r13
24768 movl r23 = @dtprel(foo#)
24769 addl r20 = @tprel(foo#), gp
24770 adds r22 = @tprel(foo#), r13
24771 movl r24 = @tprel(foo#)'
24772 tls_first_major=2
24773 tls_first_minor=13
24774 tls_as_opt=--fatal-warnings
24776 microblaze*-*-*)
24777 conftest_s='
24778 .section .tdata,"awT",@progbits
24780 .word 2
24781 .text
24782 addik r5,r20,x@TLSGD
24783 addik r5,r20,x@TLSLDM'
24784 tls_first_major=2
24785 tls_first_minor=20
24786 tls_as_opt='--fatal-warnings'
24788 mips*-*-*)
24789 conftest_s='
24790 .section .tdata,"awT",@progbits
24792 .word 2
24793 .text
24794 addiu $4, $28, %tlsgd(x)
24795 addiu $4, $28, %tlsldm(x)
24796 lui $4, %dtprel_hi(x)
24797 addiu $4, $4, %dtprel_lo(x)
24798 lw $4, %gottprel(x)($28)
24799 lui $4, %tprel_hi(x)
24800 addiu $4, $4, %tprel_lo(x)'
24801 tls_first_major=2
24802 tls_first_minor=16
24803 tls_as_opt='-32 --fatal-warnings'
24805 m68k-*-*)
24806 conftest_s='
24807 .section .tdata,"awT",@progbits
24809 .word 2
24810 .text
24811 foo:
24812 move.l x@TLSGD(%a5),%a0
24813 move.l x@TLSLDM(%a5),%a0
24814 move.l x@TLSLDO(%a5),%a0
24815 move.l x@TLSIE(%a5),%a0
24816 move.l x@TLSLE(%a5),%a0'
24817 tls_first_major=2
24818 tls_first_minor=19
24819 tls_as_opt='--fatal-warnings'
24821 nios2-*-*)
24822 conftest_s='
24823 .section ".tdata","awT",@progbits'
24824 tls_first_major=2
24825 tls_first_minor=23
24826 tls_as_opt="--fatal-warnings"
24828 aarch64*-*-*)
24829 conftest_s='
24830 .section ".tdata","awT",%progbits
24831 foo: .long 25
24832 .text
24833 adrp x0, :tlsgd:x
24834 add x0, x0, #:tlsgd_lo12:x
24835 bl __tls_get_addr
24836 nop'
24837 tls_first_major=2
24838 tls_first_minor=20
24839 tls_as_opt='--fatal-warnings'
24841 or1k*-*-*)
24842 conftest_s='
24843 .section ".tdata","awT",@progbits
24844 foo: .long 25
24845 .text
24846 l.movhi r3, tpoffha(foo)
24847 l.add r3, r3, r10
24848 l.lwz r4, tpofflo(foo)(r3)'
24849 tls_first_major=2
24850 tls_first_minor=30
24851 tls_as_opt=--fatal-warnings
24853 powerpc-ibm-aix*)
24854 conftest_s='
24855 .extern __get_tpointer
24856 .toc
24857 LC..1:
24858 .tc a[TC],a[TL]@le
24859 .csect .text[PR]
24860 .tlstest:
24861 lwz 9,LC..1(2)
24862 bla __get_tpointer
24863 lwzx 3,9,3
24864 .globl a
24865 .csect a[TL],4
24867 .space 4'
24868 tls_first_major=0
24869 tls_first_minor=0
24871 powerpc64*-*-*)
24872 conftest_s='
24873 .section ".tdata","awT",@progbits
24874 .align 3
24875 ld0: .space 8
24876 ld1: .space 8
24877 x1: .space 8
24878 x2: .space 8
24879 x3: .space 8
24880 .text
24881 addi 3,2,ld0@got@tlsgd
24882 bl .__tls_get_addr
24884 addi 3,2,ld1@toc
24885 bl .__tls_get_addr
24887 addi 3,2,x1@got@tlsld
24888 bl .__tls_get_addr
24890 addi 9,3,x1@dtprel
24891 bl .__tls_get_addr
24893 addis 9,3,x2@dtprel@ha
24894 addi 9,9,x2@dtprel@l
24895 bl .__tls_get_addr
24897 ld 9,x3@got@dtprel(2)
24898 add 9,9,3
24899 bl .__tls_get_addr
24900 nop'
24901 tls_first_major=2
24902 tls_first_minor=14
24903 tls_as_opt="-a64 --fatal-warnings"
24905 powerpc*-*-*)
24906 conftest_s='
24907 .section ".tdata","awT",@progbits
24908 .align 2
24909 ld0: .space 4
24910 ld1: .space 4
24911 x1: .space 4
24912 x2: .space 4
24913 x3: .space 4
24914 .text
24915 addi 3,31,ld0@got@tlsgd
24916 bl __tls_get_addr
24917 addi 3,31,x1@got@tlsld
24918 bl __tls_get_addr
24919 addi 9,3,x1@dtprel
24920 addis 9,3,x2@dtprel@ha
24921 addi 9,9,x2@dtprel@l
24922 lwz 9,x3@got@tprel(31)
24923 add 9,9,x@tls
24924 addi 9,2,x1@tprel
24925 addis 9,2,x2@tprel@ha
24926 addi 9,9,x2@tprel@l'
24927 tls_first_major=2
24928 tls_first_minor=14
24929 tls_as_opt="-a32 --fatal-warnings"
24931 riscv*-*-*)
24932 conftest_s='
24933 .section .tdata,"awT",@progbits
24934 x: .word 2
24935 .text
24936 la.tls.gd a0,x
24937 call __tls_get_addr'
24938 tls_first_major=2
24939 tls_first_minor=21
24940 tls_as_opt='--fatal-warnings'
24942 s390-*-*)
24943 conftest_s='
24944 .section ".tdata","awT",@progbits
24945 foo: .long 25
24946 .text
24947 .long foo@TLSGD
24948 .long foo@TLSLDM
24949 .long foo@DTPOFF
24950 .long foo@NTPOFF
24951 .long foo@GOTNTPOFF
24952 .long foo@INDNTPOFF
24953 l %r1,foo@GOTNTPOFF(%r12)
24954 l %r1,0(%r1):tls_load:foo
24955 bas %r14,0(%r1,%r13):tls_gdcall:foo
24956 bas %r14,0(%r1,%r13):tls_ldcall:foo'
24957 tls_first_major=2
24958 tls_first_minor=14
24959 tls_as_opt="-m31 --fatal-warnings"
24961 s390x-*-*)
24962 conftest_s='
24963 .section ".tdata","awT",@progbits
24964 foo: .long 25
24965 .text
24966 .quad foo@TLSGD
24967 .quad foo@TLSLDM
24968 .quad foo@DTPOFF
24969 .quad foo@NTPOFF
24970 .quad foo@GOTNTPOFF
24971 lg %r1,foo@GOTNTPOFF(%r12)
24972 larl %r1,foo@INDNTPOFF
24973 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
24974 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
24975 tls_first_major=2
24976 tls_first_minor=14
24977 tls_as_opt="-m64 -Aesame --fatal-warnings"
24979 sh-*-* | sh[123456789lbe]*-*-*)
24980 conftest_s='
24981 .section ".tdata","awT",@progbits
24982 foo: .long 25
24983 .text
24984 .long foo@TLSGD
24985 .long foo@TLSLDM
24986 .long foo@DTPOFF
24987 .long foo@GOTTPOFF
24988 .long foo@TPOFF'
24989 tls_first_major=2
24990 tls_first_minor=13
24991 tls_as_opt=--fatal-warnings
24993 sparc*-*-*)
24994 case "$target" in
24995 sparc*-sun-solaris2.*)
24996 on_solaris=yes
24999 on_solaris=no
25001 esac
25002 if test x$on_solaris = xyes && test x$gas_flag = xno; then
25003 conftest_s='
25004 .section ".tdata",#alloc,#write,#tls'
25005 tls_first_major=0
25006 tls_first_minor=0
25007 else
25008 conftest_s='
25009 .section ".tdata","awT",@progbits'
25010 tls_first_major=2
25011 tls_first_minor=14
25012 tls_as_opt="-32 --fatal-warnings"
25014 conftest_s="$conftest_s
25015 foo: .long 25
25016 .text
25017 sethi %tgd_hi22(foo), %o0
25018 add %o0, %tgd_lo10(foo), %o1
25019 add %l7, %o1, %o0, %tgd_add(foo)
25020 call __tls_get_addr, %tgd_call(foo)
25021 sethi %tldm_hi22(foo), %l1
25022 add %l1, %tldm_lo10(foo), %l2
25023 add %l7, %l2, %o0, %tldm_add(foo)
25024 call __tls_get_addr, %tldm_call(foo)
25025 sethi %tldo_hix22(foo), %l3
25026 xor %l3, %tldo_lox10(foo), %l4
25027 add %o0, %l4, %l5, %tldo_add(foo)
25028 sethi %tie_hi22(foo), %o3
25029 add %o3, %tie_lo10(foo), %o3
25030 ld [%l7 + %o3], %o2, %tie_ld(foo)
25031 add %g7, %o2, %o4, %tie_add(foo)
25032 sethi %tle_hix22(foo), %l1
25033 xor %l1, %tle_lox10(foo), %o5
25034 ld [%g7 + %o5], %o1"
25036 tilepro*-*-*)
25037 conftest_s='
25038 .section ".tdata","awT",@progbits
25039 foo: .long 25
25040 .text
25041 addli r0, zero, tls_gd(foo)
25042 auli r0, zero, tls_gd_ha16(foo)
25043 addli r0, r0, tls_gd_lo16(foo)
25044 jal __tls_get_addr
25045 addli r0, zero, tls_ie(foo)
25046 auli r0, r0, tls_ie_ha16(foo)
25047 addli r0, r0, tls_ie_lo16(foo)'
25048 tls_first_major=2
25049 tls_first_minor=22
25050 tls_as_opt="--fatal-warnings"
25052 tilegx*-*-*)
25053 conftest_s='
25054 .section ".tdata","awT",@progbits
25055 foo: .long 25
25056 .text
25057 shl16insli r0, zero, hw0_last_tls_gd(foo)
25058 shl16insli r0, zero, hw1_last_tls_gd(foo)
25059 shl16insli r0, r0, hw0_tls_gd(foo)
25060 jal __tls_get_addr
25061 shl16insli r0, zero, hw1_last_tls_ie(foo)
25062 shl16insli r0, r0, hw0_tls_ie(foo)'
25063 tls_first_major=2
25064 tls_first_minor=22
25065 tls_as_opt="--fatal-warnings"
25067 xtensa*-*-*)
25068 conftest_s='
25069 .section ".tdata","awT",@progbits
25070 foo: .long 25
25071 .text
25072 movi a8, foo@TLSFUNC
25073 movi a10, foo@TLSARG
25074 callx8.tls a8, foo@TLSCALL'
25075 tls_first_major=2
25076 tls_first_minor=19
25078 esac
25079 set_have_as_tls=no
25080 if test "x$enable_tls" = xno ; then
25081 : # TLS explicitly disabled.
25082 elif test "x$enable_tls" = xyes ; then
25083 set_have_as_tls=yes # TLS explicitly enabled.
25084 elif test -z "$tls_first_major"; then
25085 : # If we don't have a check, assume no support.
25086 else
25087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
25088 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
25089 if ${gcc_cv_as_tls+:} false; then :
25090 $as_echo_n "(cached) " >&6
25091 else
25092 gcc_cv_as_tls=no
25093 if test $in_tree_gas = yes; then
25094 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
25095 then gcc_cv_as_tls=yes
25097 elif test x$gcc_cv_as != x; then
25098 $as_echo "$conftest_s" > conftest.s
25099 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
25100 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25101 (eval $ac_try) 2>&5
25102 ac_status=$?
25103 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25104 test $ac_status = 0; }; }
25105 then
25106 gcc_cv_as_tls=yes
25107 else
25108 echo "configure: failed program was" >&5
25109 cat conftest.s >&5
25111 rm -f conftest.o conftest.s
25114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
25115 $as_echo "$gcc_cv_as_tls" >&6; }
25116 if test $gcc_cv_as_tls = yes; then
25117 set_have_as_tls=yes
25121 if test $set_have_as_tls = yes ; then
25123 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
25127 # Target-specific assembler checks.
25129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
25130 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
25131 gcc_cv_ld_static_dynamic=no
25132 gcc_cv_ld_static_option='-Bstatic'
25133 gcc_cv_ld_dynamic_option='-Bdynamic'
25134 if test $in_tree_ld = yes ; then
25135 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
25136 gcc_cv_ld_static_dynamic=yes
25138 elif test x$gcc_cv_ld != x; then
25139 # Check if linker supports -Bstatic/-Bdynamic option
25140 if $gcc_cv_ld --help 2>&1 | grep -- -Bstatic > /dev/null \
25141 && $gcc_cv_ld --help 2>&1 | grep -- -Bdynamic > /dev/null; then
25142 gcc_cv_ld_static_dynamic=yes
25143 else
25144 case "$target" in
25145 # AIX ld uses -b flags
25146 *-*-aix4.[23]* | *-*-aix[5-9]*)
25147 gcc_cv_ld_static_dynamic=yes
25148 gcc_cv_ld_static_option="-bstatic"
25149 gcc_cv_ld_dynamic_option="-bdynamic"
25151 # HP-UX ld uses -a flags to select between shared and archive.
25152 *-*-hpux*)
25153 if test x"$gnu_ld" = xno; then
25154 gcc_cv_ld_static_dynamic=yes
25155 gcc_cv_ld_static_option="-aarchive_shared"
25156 gcc_cv_ld_dynamic_option="-adefault"
25159 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
25160 *-*-solaris2*)
25161 gcc_cv_ld_static_dynamic=yes
25163 esac
25166 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
25168 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
25171 cat >>confdefs.h <<_ACEOF
25172 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
25173 _ACEOF
25176 cat >>confdefs.h <<_ACEOF
25177 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
25178 _ACEOF
25181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
25182 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
25184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --version-script option" >&5
25185 $as_echo_n "checking linker --version-script option... " >&6; }
25186 gcc_cv_ld_version_script=no
25187 ld_version_script_option=''
25188 if test $in_tree_ld = yes || test x"$gnu_ld" = xyes; then
25189 gcc_cv_ld_version_script=yes
25190 ld_version_script_option='--version-script'
25191 elif test x$gcc_cv_ld != x; then
25192 case "$target" in
25193 # Solaris 2 ld always supports -M. It also supports a subset of
25194 # --version-script since Solaris 11.4, but requires
25195 # -z gnu-version-script-compat to activate.
25196 *-*-solaris2*)
25197 gcc_cv_ld_version_script=yes
25198 ld_version_script_option='-M'
25200 esac
25202 # Don't AC_DEFINE result, only used in jit/Make-lang.in so far.
25203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_version_script" >&5
25204 $as_echo "$gcc_cv_ld_version_script" >&6; }
25207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker soname option" >&5
25208 $as_echo_n "checking linker soname option... " >&6; }
25209 gcc_cv_ld_soname=no
25210 if test $in_tree_ld = yes || test x"$gnu_ld" = xyes; then
25211 gcc_cv_ld_soname=yes
25212 ld_soname_option='-soname'
25213 elif test x$gcc_cv_ld != x; then
25214 case "$target" in
25215 *-*-darwin*)
25216 gcc_cv_ld_soname=yes
25217 ld_soname_option='-install_name'
25219 # Solaris 2 ld always supports -h. It also supports --soname for GNU
25220 # ld compatiblity since some Solaris 10 update.
25221 *-*-solaris2*)
25222 gcc_cv_ld_soname=yes
25223 ld_soname_option='-h'
25225 esac
25227 # Don't AC_DEFINE result, only used in jit/Make-lang.in so far.
25228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_soname" >&5
25229 $as_echo "$gcc_cv_ld_soname" >&6; }
25232 if test x"$demangler_in_ld" = xyes; then
25233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
25234 $as_echo_n "checking linker --demangle support... " >&6; }
25235 gcc_cv_ld_demangle=no
25236 if test $in_tree_ld = yes; then
25237 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 \
25238 gcc_cv_ld_demangle=yes
25240 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
25241 # Check if the GNU linker supports --demangle option
25242 if $gcc_cv_ld --help 2>&1 | grep no-demangle > /dev/null; then
25243 gcc_cv_ld_demangle=yes
25246 if test x"$gcc_cv_ld_demangle" = xyes; then
25248 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
25251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
25252 $as_echo "$gcc_cv_ld_demangle" >&6; }
25255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
25256 $as_echo_n "checking linker plugin support... " >&6; }
25257 gcc_cv_lto_plugin=0
25258 if test -f liblto_plugin.la; then
25259 save_ld_ver="$ld_ver"
25260 save_ld_vers_major="$ld_vers_major"
25261 save_ld_vers_minor="$ld_vers_minor"
25262 save_ld_is_gold="$ld_is_gold"
25264 ld_is_gold=no
25266 if test $in_tree_ld = yes -a x"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x"$gcc_cv_ld"; then
25267 ld_ver="GNU ld"
25268 # FIXME: ld_is_gold?
25269 ld_vers_major="$gcc_cv_gld_major_version"
25270 ld_vers_minor="$gcc_cv_gld_minor_version"
25271 else
25272 # Determine plugin linker version.
25273 # FIXME: Partial duplicate from above, generalize.
25274 ld_ver=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
25275 if echo "$ld_ver" | grep GNU > /dev/null; then
25276 if echo "$ld_ver" | grep "GNU gold" > /dev/null; then
25277 ld_is_gold=yes
25278 ld_vers=`echo $ld_ver | sed -n \
25279 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
25280 else
25281 ld_vers=`echo $ld_ver | sed -n \
25282 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
25284 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
25285 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
25289 # Determine plugin support.
25290 if echo "$ld_ver" | grep GNU > /dev/null; then
25291 # Require GNU ld or gold 2.21+ for plugin support by default.
25292 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
25293 gcc_cv_lto_plugin=2
25294 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
25295 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
25296 gcc_cv_lto_plugin=1
25300 ld_ver="$save_ld_ver"
25301 ld_vers_major="$save_ld_vers_major"
25302 ld_vers_minor="$save_ld_vers_minor"
25303 ld_is_gold="$save_ld_is_gold"
25306 cat >>confdefs.h <<_ACEOF
25307 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
25308 _ACEOF
25310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
25311 $as_echo "$gcc_cv_lto_plugin" >&6; }
25313 # Target OS-specific assembler checks.
25315 case "$target_os" in
25316 darwin*)
25317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mmacosx-version-min option" >&5
25318 $as_echo_n "checking assembler for -mmacosx-version-min option... " >&6; }
25319 if ${gcc_cv_as_mmacosx_version_min+:} false; then :
25320 $as_echo_n "(cached) " >&6
25321 else
25322 gcc_cv_as_mmacosx_version_min=no
25323 if test x$gcc_cv_as != x; then
25324 $as_echo '.text' > conftest.s
25325 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mmacosx-version-min=10.1 -o conftest.o conftest.s >&5'
25326 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25327 (eval $ac_try) 2>&5
25328 ac_status=$?
25329 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25330 test $ac_status = 0; }; }
25331 then
25332 gcc_cv_as_mmacosx_version_min=yes
25333 else
25334 echo "configure: failed program was" >&5
25335 cat conftest.s >&5
25337 rm -f conftest.o conftest.s
25340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mmacosx_version_min" >&5
25341 $as_echo "$gcc_cv_as_mmacosx_version_min" >&6; }
25342 if test $gcc_cv_as_mmacosx_version_min = yes; then
25344 $as_echo "#define HAVE_AS_MMACOSX_VERSION_MIN_OPTION 1" >>confdefs.h
25349 esac
25351 # Target CPU-specific assembler checks.
25353 case "$target" in
25354 aarch64*-*-*)
25355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mabi option" >&5
25356 $as_echo_n "checking assembler for -mabi option... " >&6; }
25357 if ${gcc_cv_as_aarch64_mabi+:} false; then :
25358 $as_echo_n "(cached) " >&6
25359 else
25360 gcc_cv_as_aarch64_mabi=no
25361 if test x$gcc_cv_as != x; then
25362 $as_echo '.text' > conftest.s
25363 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mabi=lp64 -o conftest.o conftest.s >&5'
25364 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25365 (eval $ac_try) 2>&5
25366 ac_status=$?
25367 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25368 test $ac_status = 0; }; }
25369 then
25370 gcc_cv_as_aarch64_mabi=yes
25371 else
25372 echo "configure: failed program was" >&5
25373 cat conftest.s >&5
25375 rm -f conftest.o conftest.s
25378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_mabi" >&5
25379 $as_echo "$gcc_cv_as_aarch64_mabi" >&6; }
25382 if test x$gcc_cv_as_aarch64_mabi = xyes; then
25384 $as_echo "#define HAVE_AS_MABI_OPTION 1" >>confdefs.h
25386 else
25387 if test x$with_abi = xilp32; then
25388 as_fn_error $? "Assembler does not support -mabi=ilp32.\
25389 Upgrade the Assembler." "$LINENO" 5
25391 if test x"$with_multilib_list" = xdefault; then
25392 TM_MULTILIB_CONFIG=lp64
25393 else
25394 aarch64_multilibs=`echo $with_multilib_list | sed -e 's/,/ /g'`
25395 for aarch64_multilib in ${aarch64_multilibs}; do
25396 case ${aarch64_multilib} in
25397 ilp32)
25398 as_fn_error $? "Assembler does not support -mabi=ilp32.\
25399 Upgrade the Assembler." "$LINENO" 5
25403 esac
25404 done
25407 # Check if we have binutils support for relocations types needed by -fpic
25408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -fpic relocs" >&5
25409 $as_echo_n "checking assembler for -fpic relocs... " >&6; }
25410 if ${gcc_cv_as_aarch64_picreloc+:} false; then :
25411 $as_echo_n "(cached) " >&6
25412 else
25413 gcc_cv_as_aarch64_picreloc=no
25414 if test x$gcc_cv_as != x; then
25415 $as_echo '
25416 .text
25417 ldr x0, [x2, #:gotpage_lo15:globalsym]
25418 ' > conftest.s
25419 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25420 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25421 (eval $ac_try) 2>&5
25422 ac_status=$?
25423 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25424 test $ac_status = 0; }; }
25425 then
25426 gcc_cv_as_aarch64_picreloc=yes
25427 else
25428 echo "configure: failed program was" >&5
25429 cat conftest.s >&5
25431 rm -f conftest.o conftest.s
25434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_picreloc" >&5
25435 $as_echo "$gcc_cv_as_aarch64_picreloc" >&6; }
25436 if test $gcc_cv_as_aarch64_picreloc = yes; then
25438 $as_echo "#define HAVE_AS_SMALL_PIC_RELOCS 1" >>confdefs.h
25442 # Enable Branch Target Identification Mechanism and Return Address
25443 # Signing by default.
25444 # Check whether --enable-standard-branch-protection was given.
25445 if test "${enable_standard_branch_protection+set}" = set; then :
25446 enableval=$enable_standard_branch_protection;
25447 case $enableval in
25448 yes)
25449 tm_defines="${tm_defines} TARGET_ENABLE_BTI=1 TARGET_ENABLE_PAC_RET=1"
25454 as_fn_error $? "'$enableval' is an invalid value for --enable-standard-branch-protection.\
25455 Valid choices are 'yes' and 'no'." "$LINENO" 5
25457 esac
25461 # Enable default workaround for AArch64 Cortex-A53 erratum 835769.
25462 # Check whether --enable-fix-cortex-a53-835769 was given.
25463 if test "${enable_fix_cortex_a53_835769+set}" = set; then :
25464 enableval=$enable_fix_cortex_a53_835769;
25465 case $enableval in
25466 yes)
25467 tm_defines="${tm_defines} TARGET_FIX_ERR_A53_835769_DEFAULT=1"
25472 as_fn_error $? "'$enableval' is an invalid value for --enable-fix-cortex-a53-835769.\
25473 Valid choices are 'yes' and 'no'." "$LINENO" 5
25476 esac
25480 # Enable default workaround for AArch64 Cortex-A53 erratum 843419.
25481 # Check whether --enable-fix-cortex-a53-843419 was given.
25482 if test "${enable_fix_cortex_a53_843419+set}" = set; then :
25483 enableval=$enable_fix_cortex_a53_843419;
25484 case $enableval in
25485 yes)
25486 tm_defines="${tm_defines} TARGET_FIX_ERR_A53_843419_DEFAULT=1"
25491 as_fn_error $? "'$enableval' is an invalid value for --enable-fix-cortex-a53-843419.\
25492 Valid choices are 'yes' and 'no'." "$LINENO" 5
25495 esac
25501 # All TARGET_ABI_OSF targets.
25502 alpha*-*-linux* | alpha*-*-*bsd*)
25503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
25504 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
25505 if ${gcc_cv_as_alpha_explicit_relocs+:} false; then :
25506 $as_echo_n "(cached) " >&6
25507 else
25508 gcc_cv_as_alpha_explicit_relocs=no
25509 if test $in_tree_gas = yes; then
25510 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
25511 then gcc_cv_as_alpha_explicit_relocs=yes
25513 elif test x$gcc_cv_as != x; then
25514 $as_echo ' .set nomacro
25515 .text
25516 extbl $3, $2, $3 !lituse_bytoff!1
25517 ldq $2, a($29) !literal!1
25518 ldq $4, b($29) !literal!2
25519 ldq_u $3, 0($2) !lituse_base!1
25520 ldq $27, f($29) !literal!5
25521 jsr $26, ($27), f !lituse_jsr!5
25522 ldah $29, 0($26) !gpdisp!3
25523 lda $0, c($29) !gprel
25524 ldah $1, d($29) !gprelhigh
25525 lda $1, d($1) !gprellow
25526 lda $29, 0($29) !gpdisp!3' > conftest.s
25527 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25528 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25529 (eval $ac_try) 2>&5
25530 ac_status=$?
25531 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25532 test $ac_status = 0; }; }
25533 then
25534 gcc_cv_as_alpha_explicit_relocs=yes
25535 else
25536 echo "configure: failed program was" >&5
25537 cat conftest.s >&5
25539 rm -f conftest.o conftest.s
25542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
25543 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
25544 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
25546 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
25550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
25551 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
25552 if ${gcc_cv_as_alpha_jsrdirect_relocs+:} false; then :
25553 $as_echo_n "(cached) " >&6
25554 else
25555 gcc_cv_as_alpha_jsrdirect_relocs=no
25556 if test $in_tree_gas = yes; then
25557 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
25558 then gcc_cv_as_alpha_jsrdirect_relocs=yes
25560 elif test x$gcc_cv_as != x; then
25561 $as_echo ' .set nomacro
25562 .text
25563 ldq $27, a($29) !literal!1
25564 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
25565 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25566 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25567 (eval $ac_try) 2>&5
25568 ac_status=$?
25569 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25570 test $ac_status = 0; }; }
25571 then
25572 gcc_cv_as_alpha_jsrdirect_relocs=yes
25573 else
25574 echo "configure: failed program was" >&5
25575 cat conftest.s >&5
25577 rm -f conftest.o conftest.s
25580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
25581 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
25582 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
25584 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
25590 avr-*-*)
25591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --mlink-relax option" >&5
25592 $as_echo_n "checking assembler for --mlink-relax option... " >&6; }
25593 if ${gcc_cv_as_avr_mlink_relax+:} false; then :
25594 $as_echo_n "(cached) " >&6
25595 else
25596 gcc_cv_as_avr_mlink_relax=no
25597 if test x$gcc_cv_as != x; then
25598 $as_echo '.text' > conftest.s
25599 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --mlink-relax -o conftest.o conftest.s >&5'
25600 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25601 (eval $ac_try) 2>&5
25602 ac_status=$?
25603 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25604 test $ac_status = 0; }; }
25605 then
25606 gcc_cv_as_avr_mlink_relax=yes
25607 else
25608 echo "configure: failed program was" >&5
25609 cat conftest.s >&5
25611 rm -f conftest.o conftest.s
25614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mlink_relax" >&5
25615 $as_echo "$gcc_cv_as_avr_mlink_relax" >&6; }
25616 if test $gcc_cv_as_avr_mlink_relax = yes; then
25618 $as_echo "#define HAVE_AS_AVR_MLINK_RELAX_OPTION 1" >>confdefs.h
25623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mrmw option" >&5
25624 $as_echo_n "checking assembler for -mrmw option... " >&6; }
25625 if ${gcc_cv_as_avr_mrmw+:} false; then :
25626 $as_echo_n "(cached) " >&6
25627 else
25628 gcc_cv_as_avr_mrmw=no
25629 if test x$gcc_cv_as != x; then
25630 $as_echo '.text' > conftest.s
25631 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mrmw -o conftest.o conftest.s >&5'
25632 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25633 (eval $ac_try) 2>&5
25634 ac_status=$?
25635 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25636 test $ac_status = 0; }; }
25637 then
25638 gcc_cv_as_avr_mrmw=yes
25639 else
25640 echo "configure: failed program was" >&5
25641 cat conftest.s >&5
25643 rm -f conftest.o conftest.s
25646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mrmw" >&5
25647 $as_echo "$gcc_cv_as_avr_mrmw" >&6; }
25648 if test $gcc_cv_as_avr_mrmw = yes; then
25650 $as_echo "#define HAVE_AS_AVR_MRMW_OPTION 1" >>confdefs.h
25655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for __gcc_isr pseudo instruction" >&5
25656 $as_echo_n "checking assembler for __gcc_isr pseudo instruction... " >&6; }
25657 if ${gcc_cv_as_avr_mgccisr+:} false; then :
25658 $as_echo_n "(cached) " >&6
25659 else
25660 gcc_cv_as_avr_mgccisr=no
25661 if test x$gcc_cv_as != x; then
25662 $as_echo '.text
25663 __gcc_isr 1
25664 __gcc_isr 2
25665 __gcc_isr 0,r24
25666 ' > conftest.s
25667 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mgcc-isr -o conftest.o conftest.s >&5'
25668 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25669 (eval $ac_try) 2>&5
25670 ac_status=$?
25671 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25672 test $ac_status = 0; }; }
25673 then
25674 gcc_cv_as_avr_mgccisr=yes
25675 else
25676 echo "configure: failed program was" >&5
25677 cat conftest.s >&5
25679 rm -f conftest.o conftest.s
25682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mgccisr" >&5
25683 $as_echo "$gcc_cv_as_avr_mgccisr" >&6; }
25684 if test $gcc_cv_as_avr_mgccisr = yes; then
25686 $as_echo "#define HAVE_AS_AVR_MGCCISR_OPTION 1" >>confdefs.h
25691 # Check how default linker description file implements .rodata for
25692 # avrxmega3 (PR21472). avr-gcc assumes .rodata is *not* loaded to
25693 # RAM so avr-gcc skips __do_copy_data for .rodata objects.
25694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking binutils for avrxmega3 .rodata support" >&5
25695 $as_echo_n "checking binutils for avrxmega3 .rodata support... " >&6; }
25696 cat > conftest.s <<EOF
25697 .section .rodata,"a",@progbits
25698 .global xxvaryy
25699 ;; avr-nm should print "... R xxvaryy", not "... D xxvaryy".
25700 xxvaryy:
25701 .word 1
25703 rm -f conftest.nm
25704 { ac_try='$gcc_cv_as -mmcu=avrxmega3 conftest.s -o conftest.o'
25705 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25706 (eval $ac_try) 2>&5
25707 ac_status=$?
25708 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25709 test $ac_status = 0; }; }
25710 { ac_try='$gcc_cv_ld -mavrxmega3 conftest.o -o conftest.elf'
25711 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25712 (eval $ac_try) 2>&5
25713 ac_status=$?
25714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25715 test $ac_status = 0; }; }
25716 { ac_try='$gcc_cv_nm conftest.elf > conftest.nm'
25717 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25718 (eval $ac_try) 2>&5
25719 ac_status=$?
25720 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25721 test $ac_status = 0; }; }
25722 if test -s conftest.nm
25723 then
25724 if grep ' R xxvaryy' conftest.nm > /dev/null; then
25725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25726 $as_echo "yes" >&6; }
25728 $as_echo "#define HAVE_LD_AVR_AVRXMEGA3_RODATA_IN_FLASH 1" >>confdefs.h
25730 else
25731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: avrxmega3 .rodata located in RAM" >&5
25732 $as_echo "no: avrxmega3 .rodata located in RAM" >&6; }
25733 echo "$as_me: nm output was" >&5
25734 cat conftest.nm >&5
25735 avr_ld_ver="`$gcc_cv_ld -v | sed -e 's:^.* ::'`"
25736 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: support for avrxmega3 .rodata in flash needs Binutils 2.29 or higher (have $avr_ld_ver)" >&5
25737 $as_echo "$as_me: WARNING: support for avrxmega3 .rodata in flash needs Binutils 2.29 or higher (have $avr_ld_ver)" >&2;}
25739 else
25740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: test failed" >&5
25741 $as_echo "test failed" >&6; }
25742 echo "$as_me: failed program was" >&5
25743 cat conftest.s >&5
25744 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: see \`config.log' for details" >&5
25745 $as_echo "$as_me: WARNING: see \`config.log' for details" >&2;}
25747 rm -f conftest.s conftest.o conftest.elf conftest.nm
25750 cris-*-*)
25751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
25752 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
25753 if ${gcc_cv_as_cris_no_mul_bug+:} false; then :
25754 $as_echo_n "(cached) " >&6
25755 else
25756 gcc_cv_as_cris_no_mul_bug=no
25757 if test $in_tree_gas = yes; then
25758 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
25759 then gcc_cv_as_cris_no_mul_bug=yes
25761 elif test x$gcc_cv_as != x; then
25762 $as_echo '.text' > conftest.s
25763 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
25764 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25765 (eval $ac_try) 2>&5
25766 ac_status=$?
25767 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25768 test $ac_status = 0; }; }
25769 then
25770 gcc_cv_as_cris_no_mul_bug=yes
25771 else
25772 echo "configure: failed program was" >&5
25773 cat conftest.s >&5
25775 rm -f conftest.o conftest.s
25778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
25779 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
25780 if test $gcc_cv_as_cris_no_mul_bug = yes; then
25782 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
25788 sparc*-*-*)
25789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
25790 $as_echo_n "checking assembler for -relax option... " >&6; }
25791 if ${gcc_cv_as_sparc_relax+:} false; then :
25792 $as_echo_n "(cached) " >&6
25793 else
25794 gcc_cv_as_sparc_relax=no
25795 if test x$gcc_cv_as != x; then
25796 $as_echo '.text' > conftest.s
25797 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
25798 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25799 (eval $ac_try) 2>&5
25800 ac_status=$?
25801 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25802 test $ac_status = 0; }; }
25803 then
25804 gcc_cv_as_sparc_relax=yes
25805 else
25806 echo "configure: failed program was" >&5
25807 cat conftest.s >&5
25809 rm -f conftest.o conftest.s
25812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
25813 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
25814 if test $gcc_cv_as_sparc_relax = yes; then
25816 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
25821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
25822 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
25823 if ${gcc_cv_as_sparc_gotdata_op+:} false; then :
25824 $as_echo_n "(cached) " >&6
25825 else
25826 gcc_cv_as_sparc_gotdata_op=no
25827 if test x$gcc_cv_as != x; then
25828 $as_echo '.text
25829 .align 4
25830 foo:
25832 bar:
25833 sethi %gdop_hix22(foo), %g1
25834 xor %g1, %gdop_lox10(foo), %g1
25835 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
25836 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
25837 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25838 (eval $ac_try) 2>&5
25839 ac_status=$?
25840 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25841 test $ac_status = 0; }; }
25842 then
25843 if test x$gcc_cv_ld != x \
25844 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
25845 if test x$gcc_cv_objdump != x; then
25846 if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
25847 | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
25848 gcc_cv_as_sparc_gotdata_op=no
25849 else
25850 gcc_cv_as_sparc_gotdata_op=yes
25854 rm -f conftest
25855 else
25856 echo "configure: failed program was" >&5
25857 cat conftest.s >&5
25859 rm -f conftest.o conftest.s
25862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
25863 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
25864 if test $gcc_cv_as_sparc_gotdata_op = yes; then
25866 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
25871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
25872 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
25873 if ${gcc_cv_as_sparc_ua_pcrel+:} false; then :
25874 $as_echo_n "(cached) " >&6
25875 else
25876 gcc_cv_as_sparc_ua_pcrel=no
25877 if test x$gcc_cv_as != x; then
25878 $as_echo '.text
25879 foo:
25881 .data
25882 .align 4
25883 .byte 0
25884 .uaword %r_disp32(foo)' > conftest.s
25885 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
25886 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25887 (eval $ac_try) 2>&5
25888 ac_status=$?
25889 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25890 test $ac_status = 0; }; }
25891 then
25892 if test x$gcc_cv_ld != x \
25893 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
25894 gcc_cv_as_sparc_ua_pcrel=yes
25896 rm -f conftest
25897 else
25898 echo "configure: failed program was" >&5
25899 cat conftest.s >&5
25901 rm -f conftest.o conftest.s
25904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
25905 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
25906 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
25908 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
25911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
25912 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
25913 if ${gcc_cv_as_sparc_ua_pcrel_hidden+:} false; then :
25914 $as_echo_n "(cached) " >&6
25915 else
25916 gcc_cv_as_sparc_ua_pcrel_hidden=no
25917 if test x$gcc_cv_as != x; then
25918 $as_echo '.data
25919 .align 4
25920 .byte 0x31
25921 .uaword %r_disp32(foo)
25922 .byte 0x32, 0x33, 0x34
25923 .global foo
25924 .hidden foo
25925 foo:
25926 .skip 4' > conftest.s
25927 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
25928 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25929 (eval $ac_try) 2>&5
25930 ac_status=$?
25931 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25932 test $ac_status = 0; }; }
25933 then
25934 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
25935 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
25936 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
25937 | grep ' 31000000 07323334' > /dev/null 2>&1; then
25938 if $gcc_cv_objdump -R conftest 2> /dev/null \
25939 | grep 'DISP32' > /dev/null 2>&1; then
25941 else
25942 gcc_cv_as_sparc_ua_pcrel_hidden=yes
25945 rm -f conftest
25946 else
25947 echo "configure: failed program was" >&5
25948 cat conftest.s >&5
25950 rm -f conftest.o conftest.s
25953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
25954 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
25955 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
25957 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
25963 # unaligned pcrel relocs
25965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
25966 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
25967 if ${gcc_cv_as_sparc_offsetable_lo10+:} false; then :
25968 $as_echo_n "(cached) " >&6
25969 else
25970 gcc_cv_as_sparc_offsetable_lo10=no
25971 if test x$gcc_cv_as != x; then
25972 $as_echo '.text
25973 or %g1, %lo(ab) + 12, %g1
25974 or %g1, %lo(ab + 12), %g1' > conftest.s
25975 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
25976 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25977 (eval $ac_try) 2>&5
25978 ac_status=$?
25979 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25980 test $ac_status = 0; }; }
25981 then
25982 if test x$gcc_cv_objdump != x \
25983 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
25984 | grep ' 82106000 82106000' > /dev/null 2>&1; then
25985 gcc_cv_as_sparc_offsetable_lo10=yes
25987 else
25988 echo "configure: failed program was" >&5
25989 cat conftest.s >&5
25991 rm -f conftest.o conftest.s
25994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
25995 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
25996 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
25998 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
26003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
26004 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
26005 if ${gcc_cv_as_sparc_fmaf+:} false; then :
26006 $as_echo_n "(cached) " >&6
26007 else
26008 gcc_cv_as_sparc_fmaf=no
26009 if test x$gcc_cv_as != x; then
26010 $as_echo '.text
26011 .register %g2, #scratch
26012 .register %g3, #scratch
26013 .align 4
26014 fmaddd %f0, %f2, %f4, %f6
26015 addxccc %g1, %g2, %g3
26016 fsrl32 %f2, %f4, %f8
26017 fnaddd %f10, %f12, %f14' > conftest.s
26018 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
26019 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26020 (eval $ac_try) 2>&5
26021 ac_status=$?
26022 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26023 test $ac_status = 0; }; }
26024 then
26025 gcc_cv_as_sparc_fmaf=yes
26026 else
26027 echo "configure: failed program was" >&5
26028 cat conftest.s >&5
26030 rm -f conftest.o conftest.s
26033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
26034 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
26035 if test $gcc_cv_as_sparc_fmaf = yes; then
26037 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
26042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
26043 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
26044 if ${gcc_cv_as_sparc_sparc4+:} false; then :
26045 $as_echo_n "(cached) " >&6
26046 else
26047 gcc_cv_as_sparc_sparc4=no
26048 if test x$gcc_cv_as != x; then
26049 $as_echo '.text
26050 .register %g2, #scratch
26051 .register %g3, #scratch
26052 .align 4
26053 cxbe %g2, %g3, 1f
26054 1: cwbneg %g2, %g3, 1f
26055 1: sha1
26057 aes_kexpand0 %f4, %f6, %f8
26058 des_round %f38, %f40, %f42, %f44
26059 camellia_f %f54, %f56, %f58, %f60
26060 kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
26061 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
26062 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26063 (eval $ac_try) 2>&5
26064 ac_status=$?
26065 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26066 test $ac_status = 0; }; }
26067 then
26068 gcc_cv_as_sparc_sparc4=yes
26069 else
26070 echo "configure: failed program was" >&5
26071 cat conftest.s >&5
26073 rm -f conftest.o conftest.s
26076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
26077 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
26078 if test $gcc_cv_as_sparc_sparc4 = yes; then
26080 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
26085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC5 and VIS 4.0 instructions" >&5
26086 $as_echo_n "checking assembler for SPARC5 and VIS 4.0 instructions... " >&6; }
26087 if ${gcc_cv_as_sparc_sparc5+:} false; then :
26088 $as_echo_n "(cached) " >&6
26089 else
26090 gcc_cv_as_sparc_sparc5=no
26091 if test x$gcc_cv_as != x; then
26092 $as_echo '.text
26093 .register %g2, #scratch
26094 .register %g3, #scratch
26095 .align 4
26096 subxc %g1, %g2, %g3
26097 fpadd8 %f0, %f2, %f4' > conftest.s
26098 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc5 -o conftest.o conftest.s >&5'
26099 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26100 (eval $ac_try) 2>&5
26101 ac_status=$?
26102 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26103 test $ac_status = 0; }; }
26104 then
26105 gcc_cv_as_sparc_sparc5=yes
26106 else
26107 echo "configure: failed program was" >&5
26108 cat conftest.s >&5
26110 rm -f conftest.o conftest.s
26113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc5" >&5
26114 $as_echo "$gcc_cv_as_sparc_sparc5" >&6; }
26115 if test $gcc_cv_as_sparc_sparc5 = yes; then
26117 $as_echo "#define HAVE_AS_SPARC5_VIS4 1" >>confdefs.h
26122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC6 instructions" >&5
26123 $as_echo_n "checking assembler for SPARC6 instructions... " >&6; }
26124 if ${gcc_cv_as_sparc_sparc6+:} false; then :
26125 $as_echo_n "(cached) " >&6
26126 else
26127 gcc_cv_as_sparc_sparc6=no
26128 if test x$gcc_cv_as != x; then
26129 $as_echo '.text
26130 .register %g2, #scratch
26131 .register %g3, #scratch
26132 .align 4
26133 rd %entropy, %g1
26134 fpsll64x %f0, %f2, %f4' > conftest.s
26135 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc6 -o conftest.o conftest.s >&5'
26136 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26137 (eval $ac_try) 2>&5
26138 ac_status=$?
26139 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26140 test $ac_status = 0; }; }
26141 then
26142 gcc_cv_as_sparc_sparc6=yes
26143 else
26144 echo "configure: failed program was" >&5
26145 cat conftest.s >&5
26147 rm -f conftest.o conftest.s
26150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc6" >&5
26151 $as_echo "$gcc_cv_as_sparc_sparc6" >&6; }
26152 if test $gcc_cv_as_sparc_sparc6 = yes; then
26154 $as_echo "#define HAVE_AS_SPARC6 1" >>confdefs.h
26159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for LEON instructions" >&5
26160 $as_echo_n "checking assembler for LEON instructions... " >&6; }
26161 if ${gcc_cv_as_sparc_leon+:} false; then :
26162 $as_echo_n "(cached) " >&6
26163 else
26164 gcc_cv_as_sparc_leon=no
26165 if test x$gcc_cv_as != x; then
26166 $as_echo '.text
26167 .register %g2, #scratch
26168 .register %g3, #scratch
26169 .align 4
26170 smac %g2, %g3, %g1
26171 umac %g2, %g3, %g1
26172 casa [%g2] 0xb, %g3, %g1' > conftest.s
26173 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -Aleon -o conftest.o conftest.s >&5'
26174 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26175 (eval $ac_try) 2>&5
26176 ac_status=$?
26177 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26178 test $ac_status = 0; }; }
26179 then
26180 gcc_cv_as_sparc_leon=yes
26181 else
26182 echo "configure: failed program was" >&5
26183 cat conftest.s >&5
26185 rm -f conftest.o conftest.s
26188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_leon" >&5
26189 $as_echo "$gcc_cv_as_sparc_leon" >&6; }
26190 if test $gcc_cv_as_sparc_leon = yes; then
26192 $as_echo "#define HAVE_AS_LEON 1" >>confdefs.h
26198 i[34567]86-*-* | x86_64-*-*)
26199 case $target_os in
26200 cygwin*)
26201 # Full C++ conformance when using a shared libstdc++-v3 requires some
26202 # support from the Cygwin DLL, which in more recent versions exports
26203 # wrappers to aid in interposing and redirecting operators new, delete,
26204 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
26205 # are configuring for a version of Cygwin that exports the wrappers.
26206 if test x$host = x$target && test x$host_cpu = xi686; then
26207 ac_fn_cxx_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
26208 if test "x$ac_cv_func___wrap__Znaj" = xyes; then :
26209 gcc_ac_cygwin_dll_wrappers=yes
26210 else
26211 gcc_ac_cygwin_dll_wrappers=no
26214 else
26215 # Can't check presence of libc functions during cross-compile, so
26216 # we just have to assume we're building for an up-to-date target.
26217 gcc_ac_cygwin_dll_wrappers=yes
26220 cat >>confdefs.h <<_ACEOF
26221 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
26222 _ACEOF
26224 esac
26225 case $target_os in
26226 cygwin* | pe | mingw32*)
26227 # Recent binutils allows the three-operand form of ".comm" on PE. This
26228 # definition is used unconditionally to initialise the default state of
26229 # the target option variable that governs usage of the feature.
26230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
26231 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
26232 if ${gcc_cv_as_comm_has_align+:} false; then :
26233 $as_echo_n "(cached) " >&6
26234 else
26235 gcc_cv_as_comm_has_align=no
26236 if test $in_tree_gas = yes; then
26237 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
26238 then gcc_cv_as_comm_has_align=yes
26240 elif test x$gcc_cv_as != x; then
26241 $as_echo '.comm foo,1,32' > conftest.s
26242 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26243 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26244 (eval $ac_try) 2>&5
26245 ac_status=$?
26246 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26247 test $ac_status = 0; }; }
26248 then
26249 gcc_cv_as_comm_has_align=yes
26250 else
26251 echo "configure: failed program was" >&5
26252 cat conftest.s >&5
26254 rm -f conftest.o conftest.s
26257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
26258 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
26262 cat >>confdefs.h <<_ACEOF
26263 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
26264 _ACEOF
26266 # Used for DWARF 2 in PE
26267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
26268 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
26269 if ${gcc_cv_as_ix86_pe_secrel32+:} false; then :
26270 $as_echo_n "(cached) " >&6
26271 else
26272 gcc_cv_as_ix86_pe_secrel32=no
26273 if test $in_tree_gas = yes; then
26274 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
26275 then gcc_cv_as_ix86_pe_secrel32=yes
26277 elif test x$gcc_cv_as != x; then
26278 $as_echo '.text
26279 foo: nop
26280 .data
26281 .secrel32 foo' > conftest.s
26282 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26283 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26284 (eval $ac_try) 2>&5
26285 ac_status=$?
26286 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26287 test $ac_status = 0; }; }
26288 then
26289 if test x$gcc_cv_ld != x \
26290 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
26291 gcc_cv_as_ix86_pe_secrel32=yes
26293 rm -f conftest
26294 else
26295 echo "configure: failed program was" >&5
26296 cat conftest.s >&5
26298 rm -f conftest.o conftest.s
26301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
26302 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
26303 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
26305 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
26309 # Test if the assembler supports the extended form of the .section
26310 # directive that specifies section alignment. LTO support uses this,
26311 # but normally only after installation, so we warn but don't fail the
26312 # configure if LTO is enabled but the assembler does not support it.
26313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
26314 $as_echo_n "checking assembler for .section with alignment... " >&6; }
26315 if ${gcc_cv_as_section_has_align+:} false; then :
26316 $as_echo_n "(cached) " >&6
26317 else
26318 gcc_cv_as_section_has_align=no
26319 if test $in_tree_gas = yes; then
26320 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
26321 then gcc_cv_as_section_has_align=yes
26323 elif test x$gcc_cv_as != x; then
26324 $as_echo '.section lto_test,"dr0"' > conftest.s
26325 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
26326 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26327 (eval $ac_try) 2>&5
26328 ac_status=$?
26329 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26330 test $ac_status = 0; }; }
26331 then
26332 gcc_cv_as_section_has_align=yes
26333 else
26334 echo "configure: failed program was" >&5
26335 cat conftest.s >&5
26337 rm -f conftest.o conftest.s
26340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
26341 $as_echo "$gcc_cv_as_section_has_align" >&6; }
26344 if test x$gcc_cv_as_section_has_align != xyes; then
26345 case ",$enable_languages," in
26346 *,lto,*)
26347 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: LTO for $target requires binutils >= 2.20.1, but version found appears insufficient; LTO will not work until binutils is upgraded." >&5
26348 $as_echo "$as_me: WARNING: LTO for $target requires binutils >= 2.20.1, but version found appears insufficient; LTO will not work until binutils is upgraded." >&2;}
26350 esac
26353 esac
26355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -xbrace_comment" >&5
26356 $as_echo_n "checking assembler for -xbrace_comment... " >&6; }
26357 if ${gcc_cv_as_ix86_xbrace_comment+:} false; then :
26358 $as_echo_n "(cached) " >&6
26359 else
26360 gcc_cv_as_ix86_xbrace_comment=no
26361 if test x$gcc_cv_as != x; then
26362 $as_echo '.text' > conftest.s
26363 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xbrace_comment=no -o conftest.o conftest.s >&5'
26364 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26365 (eval $ac_try) 2>&5
26366 ac_status=$?
26367 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26368 test $ac_status = 0; }; }
26369 then
26370 gcc_cv_as_ix86_xbrace_comment=yes
26371 else
26372 echo "configure: failed program was" >&5
26373 cat conftest.s >&5
26375 rm -f conftest.o conftest.s
26378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_xbrace_comment" >&5
26379 $as_echo "$gcc_cv_as_ix86_xbrace_comment" >&6; }
26380 if test $gcc_cv_as_ix86_xbrace_comment = yes; then
26382 $as_echo "#define HAVE_AS_XBRACE_COMMENT_OPTION 1" >>confdefs.h
26387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
26388 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
26389 if ${gcc_cv_as_ix86_filds+:} false; then :
26390 $as_echo_n "(cached) " >&6
26391 else
26392 gcc_cv_as_ix86_filds=no
26393 if test x$gcc_cv_as != x; then
26394 $as_echo 'filds (%ebp); fists (%ebp)' > conftest.s
26395 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26396 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26397 (eval $ac_try) 2>&5
26398 ac_status=$?
26399 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26400 test $ac_status = 0; }; }
26401 then
26402 gcc_cv_as_ix86_filds=yes
26403 else
26404 echo "configure: failed program was" >&5
26405 cat conftest.s >&5
26407 rm -f conftest.o conftest.s
26410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
26411 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
26412 if test $gcc_cv_as_ix86_filds = yes; then
26414 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
26419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
26420 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
26421 if ${gcc_cv_as_ix86_fildq+:} false; then :
26422 $as_echo_n "(cached) " >&6
26423 else
26424 gcc_cv_as_ix86_fildq=no
26425 if test x$gcc_cv_as != x; then
26426 $as_echo 'fildq (%ebp); fistpq (%ebp)' > conftest.s
26427 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26428 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26429 (eval $ac_try) 2>&5
26430 ac_status=$?
26431 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26432 test $ac_status = 0; }; }
26433 then
26434 gcc_cv_as_ix86_fildq=yes
26435 else
26436 echo "configure: failed program was" >&5
26437 cat conftest.s >&5
26439 rm -f conftest.o conftest.s
26442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
26443 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
26444 if test $gcc_cv_as_ix86_fildq = yes; then
26446 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
26451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
26452 $as_echo_n "checking assembler for cmov syntax... " >&6; }
26453 if ${gcc_cv_as_ix86_cmov_sun_syntax+:} false; then :
26454 $as_echo_n "(cached) " >&6
26455 else
26456 gcc_cv_as_ix86_cmov_sun_syntax=no
26457 if test x$gcc_cv_as != x; then
26458 $as_echo 'cmovl.l %edx, %eax' > conftest.s
26459 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26460 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26461 (eval $ac_try) 2>&5
26462 ac_status=$?
26463 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26464 test $ac_status = 0; }; }
26465 then
26466 gcc_cv_as_ix86_cmov_sun_syntax=yes
26467 else
26468 echo "configure: failed program was" >&5
26469 cat conftest.s >&5
26471 rm -f conftest.o conftest.s
26474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
26475 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
26476 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
26478 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
26483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
26484 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
26485 if ${gcc_cv_as_ix86_ffreep+:} false; then :
26486 $as_echo_n "(cached) " >&6
26487 else
26488 gcc_cv_as_ix86_ffreep=no
26489 if test x$gcc_cv_as != x; then
26490 $as_echo 'ffreep %st(1)' > conftest.s
26491 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26492 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26493 (eval $ac_try) 2>&5
26494 ac_status=$?
26495 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26496 test $ac_status = 0; }; }
26497 then
26498 gcc_cv_as_ix86_ffreep=yes
26499 else
26500 echo "configure: failed program was" >&5
26501 cat conftest.s >&5
26503 rm -f conftest.o conftest.s
26506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
26507 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
26508 if test $gcc_cv_as_ix86_ffreep = yes; then
26510 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
26515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
26516 $as_echo_n "checking assembler for .quad directive... " >&6; }
26517 if ${gcc_cv_as_ix86_quad+:} false; then :
26518 $as_echo_n "(cached) " >&6
26519 else
26520 gcc_cv_as_ix86_quad=no
26521 if test x$gcc_cv_as != x; then
26522 $as_echo '.quad 0' > conftest.s
26523 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26524 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26525 (eval $ac_try) 2>&5
26526 ac_status=$?
26527 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26528 test $ac_status = 0; }; }
26529 then
26530 gcc_cv_as_ix86_quad=yes
26531 else
26532 echo "configure: failed program was" >&5
26533 cat conftest.s >&5
26535 rm -f conftest.o conftest.s
26538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
26539 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
26540 if test $gcc_cv_as_ix86_quad = yes; then
26542 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
26547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
26548 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
26549 if ${gcc_cv_as_ix86_sahf+:} false; then :
26550 $as_echo_n "(cached) " >&6
26551 else
26552 gcc_cv_as_ix86_sahf=no
26553 if test x$gcc_cv_as != x; then
26554 $as_echo '.code64
26555 sahf' > conftest.s
26556 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26557 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26558 (eval $ac_try) 2>&5
26559 ac_status=$?
26560 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26561 test $ac_status = 0; }; }
26562 then
26563 gcc_cv_as_ix86_sahf=yes
26564 else
26565 echo "configure: failed program was" >&5
26566 cat conftest.s >&5
26568 rm -f conftest.o conftest.s
26571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
26572 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
26573 if test $gcc_cv_as_ix86_sahf = yes; then
26575 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
26580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for interunit movq mnemonic" >&5
26581 $as_echo_n "checking assembler for interunit movq mnemonic... " >&6; }
26582 if ${gcc_cv_as_ix86_interunit_movq+:} false; then :
26583 $as_echo_n "(cached) " >&6
26584 else
26585 gcc_cv_as_ix86_interunit_movq=no
26586 if test x$gcc_cv_as != x; then
26587 $as_echo '.code64
26588 movq %mm0, %rax
26589 movq %rax, %xmm0' > conftest.s
26590 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26591 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26592 (eval $ac_try) 2>&5
26593 ac_status=$?
26594 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26595 test $ac_status = 0; }; }
26596 then
26597 gcc_cv_as_ix86_interunit_movq=yes
26598 else
26599 echo "configure: failed program was" >&5
26600 cat conftest.s >&5
26602 rm -f conftest.o conftest.s
26605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_interunit_movq" >&5
26606 $as_echo "$gcc_cv_as_ix86_interunit_movq" >&6; }
26610 cat >>confdefs.h <<_ACEOF
26611 #define HAVE_AS_IX86_INTERUNIT_MOVQ `if test $gcc_cv_as_ix86_interunit_movq = yes; then echo 1; else echo 0; fi`
26612 _ACEOF
26615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
26616 $as_echo_n "checking assembler for hle prefixes... " >&6; }
26617 if ${gcc_cv_as_ix86_hle+:} false; then :
26618 $as_echo_n "(cached) " >&6
26619 else
26620 gcc_cv_as_ix86_hle=no
26621 if test x$gcc_cv_as != x; then
26622 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
26623 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26624 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26625 (eval $ac_try) 2>&5
26626 ac_status=$?
26627 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26628 test $ac_status = 0; }; }
26629 then
26630 gcc_cv_as_ix86_hle=yes
26631 else
26632 echo "configure: failed program was" >&5
26633 cat conftest.s >&5
26635 rm -f conftest.o conftest.s
26638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
26639 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
26640 if test $gcc_cv_as_ix86_hle = yes; then
26642 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
26647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
26648 $as_echo_n "checking assembler for swap suffix... " >&6; }
26649 if ${gcc_cv_as_ix86_swap+:} false; then :
26650 $as_echo_n "(cached) " >&6
26651 else
26652 gcc_cv_as_ix86_swap=no
26653 if test x$gcc_cv_as != x; then
26654 $as_echo 'movl.s %esp, %ebp' > conftest.s
26655 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26656 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26657 (eval $ac_try) 2>&5
26658 ac_status=$?
26659 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26660 test $ac_status = 0; }; }
26661 then
26662 gcc_cv_as_ix86_swap=yes
26663 else
26664 echo "configure: failed program was" >&5
26665 cat conftest.s >&5
26667 rm -f conftest.o conftest.s
26670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
26671 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
26672 if test $gcc_cv_as_ix86_swap = yes; then
26674 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
26679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
26680 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
26681 if ${gcc_cv_as_ix86_diff_sect_delta+:} false; then :
26682 $as_echo_n "(cached) " >&6
26683 else
26684 gcc_cv_as_ix86_diff_sect_delta=no
26685 if test x$gcc_cv_as != x; then
26686 $as_echo '.section .rodata
26687 .L1:
26688 .long .L2-.L1
26689 .long .L3-.L1
26690 .text
26691 .L3: nop
26692 .L2: nop' > conftest.s
26693 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26694 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26695 (eval $ac_try) 2>&5
26696 ac_status=$?
26697 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26698 test $ac_status = 0; }; }
26699 then
26700 gcc_cv_as_ix86_diff_sect_delta=yes
26701 else
26702 echo "configure: failed program was" >&5
26703 cat conftest.s >&5
26705 rm -f conftest.o conftest.s
26708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
26709 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
26710 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
26712 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
26717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
26718 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
26719 if ${gcc_cv_as_ix86_rep_lock_prefix+:} false; then :
26720 $as_echo_n "(cached) " >&6
26721 else
26722 gcc_cv_as_ix86_rep_lock_prefix=no
26723 if test x$gcc_cv_as != x; then
26724 $as_echo 'rep movsl
26725 rep ret
26726 rep nop
26727 rep bsf %ecx, %eax
26728 rep bsr %ecx, %eax
26729 lock addl %edi, (%eax,%esi)
26730 lock orl $0, (%esp)' > conftest.s
26731 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26732 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26733 (eval $ac_try) 2>&5
26734 ac_status=$?
26735 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26736 test $ac_status = 0; }; }
26737 then
26738 gcc_cv_as_ix86_rep_lock_prefix=yes
26739 else
26740 echo "configure: failed program was" >&5
26741 cat conftest.s >&5
26743 rm -f conftest.o conftest.s
26746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
26747 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
26748 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
26750 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
26755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ud2 mnemonic" >&5
26756 $as_echo_n "checking assembler for ud2 mnemonic... " >&6; }
26757 if ${gcc_cv_as_ix86_ud2+:} false; then :
26758 $as_echo_n "(cached) " >&6
26759 else
26760 gcc_cv_as_ix86_ud2=no
26761 if test x$gcc_cv_as != x; then
26762 $as_echo 'ud2' > conftest.s
26763 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26764 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26765 (eval $ac_try) 2>&5
26766 ac_status=$?
26767 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26768 test $ac_status = 0; }; }
26769 then
26770 gcc_cv_as_ix86_ud2=yes
26771 else
26772 echo "configure: failed program was" >&5
26773 cat conftest.s >&5
26775 rm -f conftest.o conftest.s
26778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ud2" >&5
26779 $as_echo "$gcc_cv_as_ix86_ud2" >&6; }
26780 if test $gcc_cv_as_ix86_ud2 = yes; then
26782 $as_echo "#define HAVE_AS_IX86_UD2 1" >>confdefs.h
26787 # Enforce 32-bit output with gas and gld.
26788 if test x$gas = xyes; then
26789 as_ix86_gas_32_opt="--32"
26791 if echo "$ld_ver" | grep GNU > /dev/null; then
26792 if $gcc_cv_ld -V 2>/dev/null | grep elf_i386_sol2 > /dev/null; then
26793 ld_ix86_gld_32_opt="-melf_i386_sol2"
26794 else
26795 ld_ix86_gld_32_opt="-melf_i386"
26799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
26800 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
26801 if ${gcc_cv_as_ix86_tlsgdplt+:} false; then :
26802 $as_echo_n "(cached) " >&6
26803 else
26804 gcc_cv_as_ix86_tlsgdplt=no
26805 if test x$gcc_cv_as != x; then
26806 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
26807 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26808 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26809 (eval $ac_try) 2>&5
26810 ac_status=$?
26811 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26812 test $ac_status = 0; }; }
26813 then
26814 if test x$gcc_cv_ld != x \
26815 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o -G > /dev/null 2>&1; then
26816 gcc_cv_as_ix86_tlsgdplt=yes
26818 rm -f conftest
26819 else
26820 echo "configure: failed program was" >&5
26821 cat conftest.s >&5
26823 rm -f conftest.o conftest.s
26826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
26827 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
26828 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
26830 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
26835 conftest_s='
26836 .section .tdata,"aw'$tls_section_flag'",@progbits
26837 tls_ld:
26838 .section .text,"ax",@progbits
26839 call tls_ld@tlsldmplt'
26841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
26842 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
26843 if ${gcc_cv_as_ix86_tlsldmplt+:} false; then :
26844 $as_echo_n "(cached) " >&6
26845 else
26846 gcc_cv_as_ix86_tlsldmplt=no
26847 if test x$gcc_cv_as != x; then
26848 $as_echo "$conftest_s" > conftest.s
26849 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26850 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26851 (eval $ac_try) 2>&5
26852 ac_status=$?
26853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26854 test $ac_status = 0; }; }
26855 then
26856 if test x$gcc_cv_ld != x \
26857 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o -G > /dev/null 2>&1; then
26858 gcc_cv_as_ix86_tlsldmplt=yes
26860 rm -f conftest
26861 else
26862 echo "configure: failed program was" >&5
26863 cat conftest.s >&5
26865 rm -f conftest.o conftest.s
26868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
26869 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
26873 cat >>confdefs.h <<_ACEOF
26874 #define HAVE_AS_IX86_TLSLDMPLT `if test $gcc_cv_as_ix86_tlsldmplt = yes; then echo 1; else echo 0; fi`
26875 _ACEOF
26878 conftest_s='
26879 .section .text,"ax",@progbits
26880 .globl _start
26881 .type _start, @function
26882 _start:
26883 leal value@tlsldm(%ebx), %eax
26884 call ___tls_get_addr@plt
26886 .section .tdata,"aw'$tls_section_flag'",@progbits
26887 .type value, @object
26888 value:'
26889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM reloc" >&5
26890 $as_echo_n "checking assembler for R_386_TLS_LDM reloc... " >&6; }
26891 if ${gcc_cv_as_ix86_tlsldm+:} false; then :
26892 $as_echo_n "(cached) " >&6
26893 else
26894 gcc_cv_as_ix86_tlsldm=no
26895 if test x$gcc_cv_as != x; then
26896 $as_echo "$conftest_s" > conftest.s
26897 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26898 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26899 (eval $ac_try) 2>&5
26900 ac_status=$?
26901 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26902 test $ac_status = 0; }; }
26903 then
26904 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
26905 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o $ld_tls_libs -lc > /dev/null 2>&1; then
26906 if $gcc_cv_objdump -d conftest 2>/dev/null | grep nop > /dev/null \
26907 || dis conftest 2>/dev/null | grep nop > /dev/null; then
26908 gcc_cv_as_ix86_tlsldm=yes
26911 rm -f conftest
26912 else
26913 echo "configure: failed program was" >&5
26914 cat conftest.s >&5
26916 rm -f conftest.o conftest.s
26919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldm" >&5
26920 $as_echo "$gcc_cv_as_ix86_tlsldm" >&6; }
26924 cat >>confdefs.h <<_ACEOF
26925 #define HAVE_AS_IX86_TLSLDM `if test $gcc_cv_as_ix86_tlsldm = yes; then echo 1; else echo 0; fi`
26926 _ACEOF
26929 conftest_s='
26930 .data
26931 bar:
26932 .byte 1
26933 .text
26934 .global _start
26935 _start:
26936 cmpl $0, bar@GOT
26937 jmp *_start@GOT'
26938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_GOT32X reloc" >&5
26939 $as_echo_n "checking assembler for R_386_GOT32X reloc... " >&6; }
26940 if ${gcc_cv_as_ix86_got32x+:} false; then :
26941 $as_echo_n "(cached) " >&6
26942 else
26943 gcc_cv_as_ix86_got32x=no
26944 if test x$gcc_cv_as != x; then
26945 $as_echo "$conftest_s" > conftest.s
26946 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26947 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26948 (eval $ac_try) 2>&5
26949 ac_status=$?
26950 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26951 test $ac_status = 0; }; }
26952 then
26953 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
26954 && test x$gcc_cv_readelf != x \
26955 && $gcc_cv_readelf --relocs --wide conftest.o 2>&1 \
26956 | grep R_386_GOT32X > /dev/null 2>&1 \
26957 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o > /dev/null 2>&1; then
26958 if $gcc_cv_objdump -dw conftest 2>&1 \
26959 | grep 0xffffff > /dev/null 2>&1; then
26960 gcc_cv_as_ix86_got32x=no
26961 else
26962 gcc_cv_as_ix86_got32x=yes
26965 rm -f conftest
26966 else
26967 echo "configure: failed program was" >&5
26968 cat conftest.s >&5
26970 rm -f conftest.o conftest.s
26973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_got32x" >&5
26974 $as_echo "$gcc_cv_as_ix86_got32x" >&6; }
26978 cat >>confdefs.h <<_ACEOF
26979 #define HAVE_AS_IX86_GOT32X `if test x"$gcc_cv_as_ix86_got32x" = xyes; then echo 1; else echo 0; fi`
26980 _ACEOF
26983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
26984 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
26985 if ${gcc_cv_as_ix86_gotoff_in_data+:} false; then :
26986 $as_echo_n "(cached) " >&6
26987 else
26988 gcc_cv_as_ix86_gotoff_in_data=no
26989 if test $in_tree_gas = yes; then
26990 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26991 then gcc_cv_as_ix86_gotoff_in_data=yes
26993 elif test x$gcc_cv_as != x; then
26994 $as_echo ' .text
26995 .L0:
26997 .data
26998 .long .L0@GOTOFF' > conftest.s
26999 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27000 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27001 (eval $ac_try) 2>&5
27002 ac_status=$?
27003 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27004 test $ac_status = 0; }; }
27005 then
27006 gcc_cv_as_ix86_gotoff_in_data=yes
27007 else
27008 echo "configure: failed program was" >&5
27009 cat conftest.s >&5
27011 rm -f conftest.o conftest.s
27014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
27015 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
27019 cat >>confdefs.h <<_ACEOF
27020 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
27021 _ACEOF
27024 conftest_s='
27025 .section .text,"ax",@progbits
27026 .globl _start
27027 .type _start, @function
27028 _start:
27029 leal ld@tlsldm(%ecx), %eax
27030 call *___tls_get_addr@GOT(%ecx)
27031 leal gd@tlsgd(%ecx), %eax
27032 call *___tls_get_addr@GOT(%ecx)
27034 .section .tdata,"aw'$tls_section_flag'",@progbits
27035 .type ld, @object
27037 .byte 0
27038 .globl gd
27039 .type gd, @object
27041 .byte 0'
27042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for calling ___tls_get_addr via GOT" >&5
27043 $as_echo_n "checking assembler for calling ___tls_get_addr via GOT... " >&6; }
27044 if ${gcc_cv_as_ix86_tls_get_addr_via_got+:} false; then :
27045 $as_echo_n "(cached) " >&6
27046 else
27047 gcc_cv_as_ix86_tls_get_addr_via_got=no
27048 if test x$gcc_cv_as != x; then
27049 $as_echo "$conftest_s" > conftest.s
27050 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27051 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27052 (eval $ac_try) 2>&5
27053 ac_status=$?
27054 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27055 test $ac_status = 0; }; }
27056 then
27057 if test x$gcc_cv_ld != x \
27058 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o > /dev/null 2>&1; then
27059 gcc_cv_as_ix86_tls_get_addr_via_got=yes
27061 rm -f conftest
27062 else
27063 echo "configure: failed program was" >&5
27064 cat conftest.s >&5
27066 rm -f conftest.o conftest.s
27069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tls_get_addr_via_got" >&5
27070 $as_echo "$gcc_cv_as_ix86_tls_get_addr_via_got" >&6; }
27074 cat >>confdefs.h <<_ACEOF
27075 #define HAVE_AS_IX86_TLS_GET_ADDR_GOT `if test x"$gcc_cv_as_ix86_tls_get_addr_via_got" = xyes; then echo 1; else echo 0; fi`
27076 _ACEOF
27080 ia64*-*-*)
27081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
27082 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
27083 if ${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+:} false; then :
27084 $as_echo_n "(cached) " >&6
27085 else
27086 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
27087 if test $in_tree_gas = yes; then
27088 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
27089 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
27091 elif test x$gcc_cv_as != x; then
27092 $as_echo ' .text
27093 addl r15 = @ltoffx(x#), gp
27095 ld8.mov r16 = [r15], x#
27096 ' > conftest.s
27097 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27098 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27099 (eval $ac_try) 2>&5
27100 ac_status=$?
27101 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27102 test $ac_status = 0; }; }
27103 then
27104 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
27105 else
27106 echo "configure: failed program was" >&5
27107 cat conftest.s >&5
27109 rm -f conftest.o conftest.s
27112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
27113 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
27114 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
27116 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
27123 powerpc*-*-*)
27125 case $target in
27126 *-*-darwin*)
27127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
27128 $as_echo_n "checking assembler for .machine directive support... " >&6; }
27129 if ${gcc_cv_as_machine_directive+:} false; then :
27130 $as_echo_n "(cached) " >&6
27131 else
27132 gcc_cv_as_machine_directive=no
27133 if test x$gcc_cv_as != x; then
27134 $as_echo ' .machine ppc7400' > conftest.s
27135 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27136 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27137 (eval $ac_try) 2>&5
27138 ac_status=$?
27139 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27140 test $ac_status = 0; }; }
27141 then
27142 gcc_cv_as_machine_directive=yes
27143 else
27144 echo "configure: failed program was" >&5
27145 cat conftest.s >&5
27147 rm -f conftest.o conftest.s
27150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
27151 $as_echo "$gcc_cv_as_machine_directive" >&6; }
27154 if test x$gcc_cv_as_machine_directive != xyes; then
27155 echo "*** This target requires an assembler supporting \".machine\"" >&2
27156 echo you can get it from: https://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
27157 test x$build = x$target && exit 1
27160 esac
27162 case $target in
27163 *-*-aix*) conftest_s=' .machine "pwr5"
27164 .csect .text[PR]
27165 mfcr 3,128';;
27166 *-*-darwin*) conftest_s=' .text
27167 mfcr r3,128';;
27168 *) conftest_s=' .machine power4
27169 .text
27170 mfcr 3,128';;
27171 esac
27173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
27174 $as_echo_n "checking assembler for mfcr field support... " >&6; }
27175 if ${gcc_cv_as_powerpc_mfcrf+:} false; then :
27176 $as_echo_n "(cached) " >&6
27177 else
27178 gcc_cv_as_powerpc_mfcrf=no
27179 if test $in_tree_gas = yes; then
27180 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
27181 then gcc_cv_as_powerpc_mfcrf=yes
27183 elif test x$gcc_cv_as != x; then
27184 $as_echo "$conftest_s" > conftest.s
27185 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27186 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27187 (eval $ac_try) 2>&5
27188 ac_status=$?
27189 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27190 test $ac_status = 0; }; }
27191 then
27192 gcc_cv_as_powerpc_mfcrf=yes
27193 else
27194 echo "configure: failed program was" >&5
27195 cat conftest.s >&5
27197 rm -f conftest.o conftest.s
27200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
27201 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
27202 if test $gcc_cv_as_powerpc_mfcrf = yes; then
27204 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
27209 case $target in
27210 *-*-aix*) conftest_s=' .csect .text[PR]
27211 LCF..0:
27212 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
27213 *-*-darwin*)
27214 conftest_s=' .text
27215 LCF0:
27216 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
27217 *) conftest_s=' .text
27218 .LCF0:
27219 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
27220 esac
27222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
27223 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
27224 if ${gcc_cv_as_powerpc_rel16+:} false; then :
27225 $as_echo_n "(cached) " >&6
27226 else
27227 gcc_cv_as_powerpc_rel16=no
27228 if test $in_tree_gas = yes; then
27229 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
27230 then gcc_cv_as_powerpc_rel16=yes
27232 elif test x$gcc_cv_as != x; then
27233 $as_echo "$conftest_s" > conftest.s
27234 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
27235 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27236 (eval $ac_try) 2>&5
27237 ac_status=$?
27238 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27239 test $ac_status = 0; }; }
27240 then
27241 gcc_cv_as_powerpc_rel16=yes
27242 else
27243 echo "configure: failed program was" >&5
27244 cat conftest.s >&5
27246 rm -f conftest.o conftest.s
27249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
27250 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
27251 if test $gcc_cv_as_powerpc_rel16 = yes; then
27253 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
27258 case $target in
27259 *-*-aix*) conftest_s=' .machine "pwr7"
27260 .csect .text[PR]
27261 lxvd2x 1,2,3';;
27262 *) conftest_s=' .machine power7
27263 .text
27264 lxvd2x 1,2,3';;
27265 esac
27267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
27268 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
27269 if ${gcc_cv_as_powerpc_vsx+:} false; then :
27270 $as_echo_n "(cached) " >&6
27271 else
27272 gcc_cv_as_powerpc_vsx=no
27273 if test $in_tree_gas = yes; then
27274 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
27275 then gcc_cv_as_powerpc_vsx=yes
27277 elif test x$gcc_cv_as != x; then
27278 $as_echo "$conftest_s" > conftest.s
27279 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
27280 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27281 (eval $ac_try) 2>&5
27282 ac_status=$?
27283 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27284 test $ac_status = 0; }; }
27285 then
27286 gcc_cv_as_powerpc_vsx=yes
27287 else
27288 echo "configure: failed program was" >&5
27289 cat conftest.s >&5
27291 rm -f conftest.o conftest.s
27294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
27295 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
27296 if test $gcc_cv_as_powerpc_vsx = yes; then
27298 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
27303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
27304 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
27305 if ${gcc_cv_as_powerpc_gnu_attribute+:} false; then :
27306 $as_echo_n "(cached) " >&6
27307 else
27308 gcc_cv_as_powerpc_gnu_attribute=no
27309 if test $in_tree_gas = yes; then
27310 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27311 then gcc_cv_as_powerpc_gnu_attribute=yes
27313 elif test x$gcc_cv_as != x; then
27314 $as_echo '.gnu_attribute 4,1' > conftest.s
27315 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27316 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27317 (eval $ac_try) 2>&5
27318 ac_status=$?
27319 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27320 test $ac_status = 0; }; }
27321 then
27322 gcc_cv_as_powerpc_gnu_attribute=yes
27323 else
27324 echo "configure: failed program was" >&5
27325 cat conftest.s >&5
27327 rm -f conftest.o conftest.s
27330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
27331 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
27332 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
27334 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
27339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for prologue entry point marker support" >&5
27340 $as_echo_n "checking assembler for prologue entry point marker support... " >&6; }
27341 if ${gcc_cv_as_powerpc_entry_markers+:} false; then :
27342 $as_echo_n "(cached) " >&6
27343 else
27344 gcc_cv_as_powerpc_entry_markers=no
27345 if test $in_tree_gas = yes; then
27346 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 26 \) \* 1000 + 0`
27347 then gcc_cv_as_powerpc_entry_markers=yes
27349 elif test x$gcc_cv_as != x; then
27350 $as_echo ' .reloc .,R_PPC64_ENTRY; nop' > conftest.s
27351 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a64 --fatal-warnings -o conftest.o conftest.s >&5'
27352 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27353 (eval $ac_try) 2>&5
27354 ac_status=$?
27355 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27356 test $ac_status = 0; }; }
27357 then
27358 gcc_cv_as_powerpc_entry_markers=yes
27359 else
27360 echo "configure: failed program was" >&5
27361 cat conftest.s >&5
27363 rm -f conftest.o conftest.s
27366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_entry_markers" >&5
27367 $as_echo "$gcc_cv_as_powerpc_entry_markers" >&6; }
27368 if test $gcc_cv_as_powerpc_entry_markers = yes; then
27370 $as_echo "#define HAVE_AS_ENTRY_MARKERS 1" >>confdefs.h
27375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for plt sequence marker support" >&5
27376 $as_echo_n "checking assembler for plt sequence marker support... " >&6; }
27377 if ${gcc_cv_as_powerpc_pltseq_markers+:} false; then :
27378 $as_echo_n "(cached) " >&6
27379 else
27380 gcc_cv_as_powerpc_pltseq_markers=no
27381 if test $in_tree_gas = yes; then
27382 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 31 \) \* 1000 + 0`
27383 then gcc_cv_as_powerpc_pltseq_markers=yes
27385 elif test x$gcc_cv_as != x; then
27386 $as_echo ' .reloc .,R_PPC_PLTSEQ; nop' > conftest.s
27387 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 --fatal-warnings -o conftest.o conftest.s >&5'
27388 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27389 (eval $ac_try) 2>&5
27390 ac_status=$?
27391 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27392 test $ac_status = 0; }; }
27393 then
27394 gcc_cv_as_powerpc_pltseq_markers=yes
27395 else
27396 echo "configure: failed program was" >&5
27397 cat conftest.s >&5
27399 rm -f conftest.o conftest.s
27402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_pltseq_markers" >&5
27403 $as_echo "$gcc_cv_as_powerpc_pltseq_markers" >&6; }
27404 if test $gcc_cv_as_powerpc_pltseq_markers = yes; then
27406 $as_echo "#define HAVE_AS_PLTSEQ 1" >>confdefs.h
27411 case $target in
27412 *-*-aix*)
27413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX .ref support" >&5
27414 $as_echo_n "checking assembler for AIX .ref support... " >&6; }
27415 if ${gcc_cv_as_aix_ref+:} false; then :
27416 $as_echo_n "(cached) " >&6
27417 else
27418 gcc_cv_as_aix_ref=no
27419 if test $in_tree_gas = yes; then
27420 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
27421 then gcc_cv_as_aix_ref=yes
27423 elif test x$gcc_cv_as != x; then
27424 $as_echo ' .csect stuff[rw]
27425 stuff:
27426 .long 1
27427 .extern sym
27428 .ref sym
27429 ' > conftest.s
27430 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27431 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27432 (eval $ac_try) 2>&5
27433 ac_status=$?
27434 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27435 test $ac_status = 0; }; }
27436 then
27437 gcc_cv_as_aix_ref=yes
27438 else
27439 echo "configure: failed program was" >&5
27440 cat conftest.s >&5
27442 rm -f conftest.o conftest.s
27445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
27446 $as_echo "$gcc_cv_as_aix_ref" >&6; }
27447 if test $gcc_cv_as_aix_ref = yes; then
27449 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
27454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX DWARF location lists section support" >&5
27455 $as_echo_n "checking assembler for AIX DWARF location lists section support... " >&6; }
27456 if ${gcc_cv_as_aix_dwloc+:} false; then :
27457 $as_echo_n "(cached) " >&6
27458 else
27459 gcc_cv_as_aix_dwloc=no
27460 if test $in_tree_gas = yes; then
27461 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
27462 then gcc_cv_as_aix_dwloc=yes
27464 elif test x$gcc_cv_as != x; then
27465 $as_echo ' .dwsect 0xA0000
27466 Lframe..0:
27467 .vbyte 4,Lframe..0
27468 ' > conftest.s
27469 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27470 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27471 (eval $ac_try) 2>&5
27472 ac_status=$?
27473 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27474 test $ac_status = 0; }; }
27475 then
27476 gcc_cv_as_aix_dwloc=yes
27477 else
27478 echo "configure: failed program was" >&5
27479 cat conftest.s >&5
27481 rm -f conftest.o conftest.s
27484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_dwloc" >&5
27485 $as_echo "$gcc_cv_as_aix_dwloc" >&6; }
27486 if test $gcc_cv_as_aix_dwloc = yes; then
27488 $as_echo "#define HAVE_XCOFF_DWARF_EXTRAS 1" >>confdefs.h
27493 esac
27496 mips*-*-*)
27497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
27498 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
27499 if ${gcc_cv_as_mips_explicit_relocs+:} false; then :
27500 $as_echo_n "(cached) " >&6
27501 else
27502 gcc_cv_as_mips_explicit_relocs=no
27503 if test $in_tree_gas = yes; then
27504 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
27505 then gcc_cv_as_mips_explicit_relocs=yes
27507 elif test x$gcc_cv_as != x; then
27508 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
27509 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27510 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27511 (eval $ac_try) 2>&5
27512 ac_status=$?
27513 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27514 test $ac_status = 0; }; }
27515 then
27516 gcc_cv_as_mips_explicit_relocs=yes
27517 else
27518 echo "configure: failed program was" >&5
27519 cat conftest.s >&5
27521 rm -f conftest.o conftest.s
27524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
27525 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
27526 if test $gcc_cv_as_mips_explicit_relocs = yes; then
27527 if test x$target_cpu_default = x
27528 then target_cpu_default=MASK_EXPLICIT_RELOCS
27529 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
27534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
27535 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
27536 if ${gcc_cv_as_mips_no_shared+:} false; then :
27537 $as_echo_n "(cached) " >&6
27538 else
27539 gcc_cv_as_mips_no_shared=no
27540 if test $in_tree_gas = yes; then
27541 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
27542 then gcc_cv_as_mips_no_shared=yes
27544 elif test x$gcc_cv_as != x; then
27545 $as_echo 'nop' > conftest.s
27546 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
27547 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27548 (eval $ac_try) 2>&5
27549 ac_status=$?
27550 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27551 test $ac_status = 0; }; }
27552 then
27553 gcc_cv_as_mips_no_shared=yes
27554 else
27555 echo "configure: failed program was" >&5
27556 cat conftest.s >&5
27558 rm -f conftest.o conftest.s
27561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
27562 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
27563 if test $gcc_cv_as_mips_no_shared = yes; then
27565 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
27570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
27571 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
27572 if ${gcc_cv_as_mips_gnu_attribute+:} false; then :
27573 $as_echo_n "(cached) " >&6
27574 else
27575 gcc_cv_as_mips_gnu_attribute=no
27576 if test $in_tree_gas = yes; then
27577 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27578 then gcc_cv_as_mips_gnu_attribute=yes
27580 elif test x$gcc_cv_as != x; then
27581 $as_echo '.gnu_attribute 4,1' > conftest.s
27582 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27583 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27584 (eval $ac_try) 2>&5
27585 ac_status=$?
27586 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27587 test $ac_status = 0; }; }
27588 then
27589 gcc_cv_as_mips_gnu_attribute=yes
27590 else
27591 echo "configure: failed program was" >&5
27592 cat conftest.s >&5
27594 rm -f conftest.o conftest.s
27597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
27598 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
27599 if test $gcc_cv_as_mips_gnu_attribute = yes; then
27601 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
27606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .module support" >&5
27607 $as_echo_n "checking assembler for .module support... " >&6; }
27608 if ${gcc_cv_as_mips_dot_module+:} false; then :
27609 $as_echo_n "(cached) " >&6
27610 else
27611 gcc_cv_as_mips_dot_module=no
27612 if test x$gcc_cv_as != x; then
27613 $as_echo '.module mips2
27614 .module fp=xx' > conftest.s
27615 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -32 -o conftest.o conftest.s >&5'
27616 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27617 (eval $ac_try) 2>&5
27618 ac_status=$?
27619 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27620 test $ac_status = 0; }; }
27621 then
27622 gcc_cv_as_mips_dot_module=yes
27623 else
27624 echo "configure: failed program was" >&5
27625 cat conftest.s >&5
27627 rm -f conftest.o conftest.s
27630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dot_module" >&5
27631 $as_echo "$gcc_cv_as_mips_dot_module" >&6; }
27632 if test $gcc_cv_as_mips_dot_module = yes; then
27634 $as_echo "#define HAVE_AS_DOT_MODULE 1" >>confdefs.h
27638 if test x$gcc_cv_as_mips_dot_module = xno \
27639 && test x$with_fp_32 != x; then
27640 as_fn_error $? "Requesting --with-fp-32= requires assembler support for .module." "$LINENO" 5
27643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .micromips support" >&5
27644 $as_echo_n "checking assembler for .micromips support... " >&6; }
27645 if ${gcc_cv_as_micromips_support+:} false; then :
27646 $as_echo_n "(cached) " >&6
27647 else
27648 gcc_cv_as_micromips_support=no
27649 if test x$gcc_cv_as != x; then
27650 $as_echo '.set micromips' > conftest.s
27651 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
27652 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27653 (eval $ac_try) 2>&5
27654 ac_status=$?
27655 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27656 test $ac_status = 0; }; }
27657 then
27658 gcc_cv_as_micromips_support=yes
27659 else
27660 echo "configure: failed program was" >&5
27661 cat conftest.s >&5
27663 rm -f conftest.o conftest.s
27666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_micromips_support" >&5
27667 $as_echo "$gcc_cv_as_micromips_support" >&6; }
27668 if test $gcc_cv_as_micromips_support = yes; then
27670 $as_echo "#define HAVE_GAS_MICROMIPS 1" >>confdefs.h
27675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
27676 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
27677 if ${gcc_cv_as_mips_dtprelword+:} false; then :
27678 $as_echo_n "(cached) " >&6
27679 else
27680 gcc_cv_as_mips_dtprelword=no
27681 if test $in_tree_gas = yes; then
27682 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27683 then gcc_cv_as_mips_dtprelword=yes
27685 elif test x$gcc_cv_as != x; then
27686 $as_echo '.section .tdata,"awT",@progbits
27688 .word 2
27689 .text
27690 .dtprelword x+0x8000' > conftest.s
27691 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27692 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27693 (eval $ac_try) 2>&5
27694 ac_status=$?
27695 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27696 test $ac_status = 0; }; }
27697 then
27698 gcc_cv_as_mips_dtprelword=yes
27699 else
27700 echo "configure: failed program was" >&5
27701 cat conftest.s >&5
27703 rm -f conftest.o conftest.s
27706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
27707 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
27708 if test $gcc_cv_as_mips_dtprelword = yes; then
27710 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
27715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
27716 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
27717 if ${gcc_cv_as_mips_dspr1_mult+:} false; then :
27718 $as_echo_n "(cached) " >&6
27719 else
27720 gcc_cv_as_mips_dspr1_mult=no
27721 if test x$gcc_cv_as != x; then
27722 $as_echo ' .set mips32r2
27723 .set nodspr2
27724 .set dsp
27725 madd $ac3,$4,$5
27726 maddu $ac3,$4,$5
27727 msub $ac3,$4,$5
27728 msubu $ac3,$4,$5
27729 mult $ac3,$4,$5
27730 multu $ac3,$4,$5' > conftest.s
27731 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27732 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27733 (eval $ac_try) 2>&5
27734 ac_status=$?
27735 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27736 test $ac_status = 0; }; }
27737 then
27738 gcc_cv_as_mips_dspr1_mult=yes
27739 else
27740 echo "configure: failed program was" >&5
27741 cat conftest.s >&5
27743 rm -f conftest.o conftest.s
27746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
27747 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
27748 if test $gcc_cv_as_mips_dspr1_mult = yes; then
27750 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
27755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
27756 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
27757 gcc_cv_as_ld_jalr_reloc=no
27758 if test $gcc_cv_as_mips_explicit_relocs = yes; then
27759 if test $in_tree_ld = yes ; then
27760 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 \
27761 && test $in_tree_ld_is_elf = yes; then
27762 gcc_cv_as_ld_jalr_reloc=yes
27764 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
27765 echo ' .ent x' > conftest.s
27766 echo 'x: lw $2,%got_disp(y)($3)' >> conftest.s
27767 echo ' lw $25,%call16(y)($28)' >> conftest.s
27768 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
27769 echo '1: jalr $25' >> conftest.s
27770 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
27771 echo '1: jalr $25' >> conftest.s
27772 echo ' .end x' >> conftest.s
27773 if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
27774 && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
27775 if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
27776 && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
27777 gcc_cv_as_ld_jalr_reloc=yes
27780 rm -f conftest.*
27783 if test $gcc_cv_as_ld_jalr_reloc = yes; then
27784 if test x$target_cpu_default = x; then
27785 target_cpu_default=MASK_RELAX_PIC_CALLS
27786 else
27787 target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
27790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
27791 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
27793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
27794 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
27795 if ${gcc_cv_ld_mips_personality_relaxation+:} false; then :
27796 $as_echo_n "(cached) " >&6
27797 else
27798 gcc_cv_ld_mips_personality_relaxation=no
27799 if test $in_tree_ld = yes ; then
27800 if test "$gcc_cv_gld_major_version" -eq 2 \
27801 -a "$gcc_cv_gld_minor_version" -ge 21 \
27802 -o "$gcc_cv_gld_major_version" -gt 2; then
27803 gcc_cv_ld_mips_personality_relaxation=yes
27805 elif test x$gcc_cv_as != x \
27806 -a x$gcc_cv_ld != x \
27807 -a x$gcc_cv_readelf != x ; then
27808 cat > conftest.s <<EOF
27809 .cfi_startproc
27810 .cfi_personality 0x80,indirect_ptr
27811 .ent test
27812 test:
27814 .end test
27815 .cfi_endproc
27817 .section .data,"aw",@progbits
27818 indirect_ptr:
27819 .dc.a personality
27821 if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
27822 && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
27823 if $gcc_cv_readelf -d conftest 2>&1 \
27824 | grep TEXTREL > /dev/null 2>&1; then
27826 elif $gcc_cv_readelf --relocs conftest 2>&1 \
27827 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
27829 else
27830 gcc_cv_ld_mips_personality_relaxation=yes
27834 rm -f conftest.s conftest.o conftest
27836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
27837 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
27838 if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
27840 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
27844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mnan= support" >&5
27845 $as_echo_n "checking assembler for -mnan= support... " >&6; }
27846 if ${gcc_cv_as_mips_nan+:} false; then :
27847 $as_echo_n "(cached) " >&6
27848 else
27849 gcc_cv_as_mips_nan=no
27850 if test x$gcc_cv_as != x; then
27851 $as_echo '' > conftest.s
27852 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mnan=2008 -o conftest.o conftest.s >&5'
27853 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27854 (eval $ac_try) 2>&5
27855 ac_status=$?
27856 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27857 test $ac_status = 0; }; }
27858 then
27859 gcc_cv_as_mips_nan=yes
27860 else
27861 echo "configure: failed program was" >&5
27862 cat conftest.s >&5
27864 rm -f conftest.o conftest.s
27867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_nan" >&5
27868 $as_echo "$gcc_cv_as_mips_nan" >&6; }
27869 if test $gcc_cv_as_mips_nan = yes; then
27871 $as_echo "#define HAVE_AS_NAN 1" >>confdefs.h
27875 if test x$gcc_cv_as_mips_nan = xno \
27876 && test x$with_nan != x; then
27877 as_fn_error $? "Requesting --with-nan= requires assembler support for -mnan=" "$LINENO" 5
27880 msp430-*-*)
27881 # Earlier GAS versions generically support .gnu_attribute, but the
27882 # msp430 assembler will not do anything with it.
27883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
27884 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
27885 if ${gcc_cv_as_msp430_gnu_attribute+:} false; then :
27886 $as_echo_n "(cached) " >&6
27887 else
27888 gcc_cv_as_msp430_gnu_attribute=no
27889 if test $in_tree_gas = yes; then
27890 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 33 \) \* 1000 + 50`
27891 then gcc_cv_as_msp430_gnu_attribute=yes
27893 elif test x$gcc_cv_as != x; then
27894 $as_echo '.gnu_attribute 4,1' > conftest.s
27895 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27896 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27897 (eval $ac_try) 2>&5
27898 ac_status=$?
27899 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27900 test $ac_status = 0; }; }
27901 then
27902 gcc_cv_as_msp430_gnu_attribute=yes
27903 else
27904 echo "configure: failed program was" >&5
27905 cat conftest.s >&5
27907 rm -f conftest.o conftest.s
27910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_msp430_gnu_attribute" >&5
27911 $as_echo "$gcc_cv_as_msp430_gnu_attribute" >&6; }
27912 if test $gcc_cv_as_msp430_gnu_attribute = yes; then
27914 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
27918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .mspabi_attribute support" >&5
27919 $as_echo_n "checking assembler for .mspabi_attribute support... " >&6; }
27920 if ${gcc_cv_as_msp430_mspabi_attribute+:} false; then :
27921 $as_echo_n "(cached) " >&6
27922 else
27923 gcc_cv_as_msp430_mspabi_attribute=no
27924 if test $in_tree_gas = yes; then
27925 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 33 \) \* 1000 + 50`
27926 then gcc_cv_as_msp430_mspabi_attribute=yes
27928 elif test x$gcc_cv_as != x; then
27929 $as_echo '.mspabi_attribute 4,1' > conftest.s
27930 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27931 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27932 (eval $ac_try) 2>&5
27933 ac_status=$?
27934 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27935 test $ac_status = 0; }; }
27936 then
27937 gcc_cv_as_msp430_mspabi_attribute=yes
27938 else
27939 echo "configure: failed program was" >&5
27940 cat conftest.s >&5
27942 rm -f conftest.o conftest.s
27945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_msp430_mspabi_attribute" >&5
27946 $as_echo "$gcc_cv_as_msp430_mspabi_attribute" >&6; }
27947 if test $gcc_cv_as_msp430_mspabi_attribute = yes; then
27949 $as_echo "#define HAVE_AS_MSPABI_ATTRIBUTE 1" >>confdefs.h
27953 if test x$enable_newlib_nano_formatted_io = xyes; then
27955 $as_echo "#define HAVE_NEWLIB_NANO_FORMATTED_IO 1" >>confdefs.h
27959 riscv*-*-*)
27960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .attribute support" >&5
27961 $as_echo_n "checking assembler for .attribute support... " >&6; }
27962 if ${gcc_cv_as_riscv_attribute+:} false; then :
27963 $as_echo_n "(cached) " >&6
27964 else
27965 gcc_cv_as_riscv_attribute=no
27966 if test $in_tree_gas = yes; then
27967 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 32 \) \* 1000 + 0`
27968 then gcc_cv_as_riscv_attribute=yes
27970 elif test x$gcc_cv_as != x; then
27971 $as_echo '.attribute stack_align,4' > conftest.s
27972 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27973 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27974 (eval $ac_try) 2>&5
27975 ac_status=$?
27976 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27977 test $ac_status = 0; }; }
27978 then
27979 gcc_cv_as_riscv_attribute=yes
27980 else
27981 echo "configure: failed program was" >&5
27982 cat conftest.s >&5
27984 rm -f conftest.o conftest.s
27987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_riscv_attribute" >&5
27988 $as_echo "$gcc_cv_as_riscv_attribute" >&6; }
27989 if test $gcc_cv_as_riscv_attribute = yes; then
27991 $as_echo "#define HAVE_AS_RISCV_ATTRIBUTE 1" >>confdefs.h
27996 s390*-*-*)
27997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
27998 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
27999 if ${gcc_cv_as_s390_gnu_attribute+:} false; then :
28000 $as_echo_n "(cached) " >&6
28001 else
28002 gcc_cv_as_s390_gnu_attribute=no
28003 if test $in_tree_gas = yes; then
28004 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
28005 then gcc_cv_as_s390_gnu_attribute=yes
28007 elif test x$gcc_cv_as != x; then
28008 $as_echo '.gnu_attribute 8,1' > conftest.s
28009 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28010 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28011 (eval $ac_try) 2>&5
28012 ac_status=$?
28013 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28014 test $ac_status = 0; }; }
28015 then
28016 gcc_cv_as_s390_gnu_attribute=yes
28017 else
28018 echo "configure: failed program was" >&5
28019 cat conftest.s >&5
28021 rm -f conftest.o conftest.s
28024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_gnu_attribute" >&5
28025 $as_echo "$gcc_cv_as_s390_gnu_attribute" >&6; }
28026 if test $gcc_cv_as_s390_gnu_attribute = yes; then
28028 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
28032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine and .machinemode support" >&5
28033 $as_echo_n "checking assembler for .machine and .machinemode support... " >&6; }
28034 if ${gcc_cv_as_s390_machine_machinemode+:} false; then :
28035 $as_echo_n "(cached) " >&6
28036 else
28037 gcc_cv_as_s390_machine_machinemode=no
28038 if test $in_tree_gas = yes; then
28039 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 24 \) \* 1000 + 0`
28040 then gcc_cv_as_s390_machine_machinemode=yes
28042 elif test x$gcc_cv_as != x; then
28043 $as_echo ' .machinemode push
28044 .machinemode pop
28045 .machine push
28046 .machine pop' > conftest.s
28047 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28048 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28049 (eval $ac_try) 2>&5
28050 ac_status=$?
28051 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28052 test $ac_status = 0; }; }
28053 then
28054 gcc_cv_as_s390_machine_machinemode=yes
28055 else
28056 echo "configure: failed program was" >&5
28057 cat conftest.s >&5
28059 rm -f conftest.o conftest.s
28062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_machine_machinemode" >&5
28063 $as_echo "$gcc_cv_as_s390_machine_machinemode" >&6; }
28064 if test $gcc_cv_as_s390_machine_machinemode = yes; then
28066 $as_echo "#define HAVE_AS_MACHINE_MACHINEMODE 1" >>confdefs.h
28070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for architecture modifiers support" >&5
28071 $as_echo_n "checking assembler for architecture modifiers support... " >&6; }
28072 if ${gcc_cv_as_s390_architecture_modifiers+:} false; then :
28073 $as_echo_n "(cached) " >&6
28074 else
28075 gcc_cv_as_s390_architecture_modifiers=no
28076 if test $in_tree_gas = yes; then
28077 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 26 \) \* 1000 + 0`
28078 then gcc_cv_as_s390_architecture_modifiers=yes
28080 elif test x$gcc_cv_as != x; then
28081 $as_echo ' .machine z13+vx ' > conftest.s
28082 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28083 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28084 (eval $ac_try) 2>&5
28085 ac_status=$?
28086 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28087 test $ac_status = 0; }; }
28088 then
28089 gcc_cv_as_s390_architecture_modifiers=yes
28090 else
28091 echo "configure: failed program was" >&5
28092 cat conftest.s >&5
28094 rm -f conftest.o conftest.s
28097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_architecture_modifiers" >&5
28098 $as_echo "$gcc_cv_as_s390_architecture_modifiers" >&6; }
28099 if test $gcc_cv_as_s390_architecture_modifiers = yes; then
28101 $as_echo "#define HAVE_AS_ARCHITECTURE_MODIFIERS 1" >>confdefs.h
28105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector load/store alignment hints" >&5
28106 $as_echo_n "checking assembler for vector load/store alignment hints... " >&6; }
28107 if ${gcc_cv_as_s390_vector_loadstore_alignment_hints+:} false; then :
28108 $as_echo_n "(cached) " >&6
28109 else
28110 gcc_cv_as_s390_vector_loadstore_alignment_hints=no
28111 if test $in_tree_gas = yes; then
28112 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 31 \) \* 1000 + 0`
28113 then gcc_cv_as_s390_vector_loadstore_alignment_hints=yes
28115 elif test x$gcc_cv_as != x; then
28116 $as_echo ' vl %v24,0(%r15),3 ' > conftest.s
28117 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28118 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28119 (eval $ac_try) 2>&5
28120 ac_status=$?
28121 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28122 test $ac_status = 0; }; }
28123 then
28124 gcc_cv_as_s390_vector_loadstore_alignment_hints=yes
28125 else
28126 echo "configure: failed program was" >&5
28127 cat conftest.s >&5
28129 rm -f conftest.o conftest.s
28132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_vector_loadstore_alignment_hints" >&5
28133 $as_echo "$gcc_cv_as_s390_vector_loadstore_alignment_hints" >&6; }
28134 if test $gcc_cv_as_s390_vector_loadstore_alignment_hints = yes; then
28136 $as_echo "#define HAVE_AS_VECTOR_LOADSTORE_ALIGNMENT_HINTS 1" >>confdefs.h
28142 esac
28144 # Mips and HP-UX need the GNU assembler.
28145 # Linux on IA64 might be able to use the Intel assembler.
28147 case "$target" in
28148 mips*-*-* | *-*-hpux* )
28149 if test x$gas_flag = xyes \
28150 || test x"$host" != x"$build" \
28151 || test ! -x "$gcc_cv_as" \
28152 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
28154 else
28155 echo "*** This configuration requires the GNU assembler" >&2
28156 exit 1
28159 esac
28161 # ??? Not all targets support dwarf2 debug_line, even within a version
28162 # of gas. Moreover, we need to emit a valid instruction to trigger any
28163 # info to the output file. So, as supported targets are added to gas 2.11,
28164 # add some instruction here to (also) show we expect this might work.
28165 # ??? Once 2.11 is released, probably need to add first known working
28166 # version to the per-target configury.
28167 case "$cpu_type" in
28168 aarch64 | alpha | arc | arm | avr | bfin | cris | csky | i386 | m32c | m68k \
28169 | microblaze | mips | nds32 | nios2 | pa | riscv | rs6000 | score | sparc \
28170 | tilegx | tilepro | visium | xstormy16 | xtensa)
28171 insn="nop"
28173 ia64 | s390)
28174 insn="nop 0"
28176 mmix)
28177 insn="swym 0"
28179 esac
28180 if test x"$insn" != x; then
28181 conftest_s="\
28182 .file 1 \"conftest.s\"
28183 .loc 1 3 0
28184 $insn"
28185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
28186 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
28187 if ${gcc_cv_as_dwarf2_debug_line+:} false; then :
28188 $as_echo_n "(cached) " >&6
28189 else
28190 gcc_cv_as_dwarf2_debug_line=no
28191 if test $in_tree_gas = yes; then
28192 if test $in_tree_gas_is_elf = yes \
28193 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
28194 then gcc_cv_as_dwarf2_debug_line=yes
28196 elif test x$gcc_cv_as != x; then
28197 $as_echo "$conftest_s" > conftest.s
28198 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28199 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28200 (eval $ac_try) 2>&5
28201 ac_status=$?
28202 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28203 test $ac_status = 0; }; }
28204 then
28205 if test x$gcc_cv_objdump != x \
28206 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
28207 | grep debug_line > /dev/null 2>&1; then
28208 gcc_cv_as_dwarf2_debug_line=yes
28209 elif test x$gcc_cv_otool != x \
28210 && $gcc_cv_otool -l conftest.o 2> /dev/null \
28211 | grep debug_line > /dev/null 2>&1; then
28212 gcc_cv_as_dwarf2_debug_line=yes
28214 else
28215 echo "configure: failed program was" >&5
28216 cat conftest.s >&5
28218 rm -f conftest.o conftest.s
28221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
28222 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
28226 # The .debug_line file table must be in the exact order that
28227 # we specified the files, since these indices are also used
28228 # by DW_AT_decl_file. Approximate this test by testing if
28229 # the assembler bitches if the same index is assigned twice.
28230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
28231 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
28232 if ${gcc_cv_as_dwarf2_file_buggy+:} false; then :
28233 $as_echo_n "(cached) " >&6
28234 else
28235 gcc_cv_as_dwarf2_file_buggy=no
28236 if test x$gcc_cv_as != x; then
28237 $as_echo ' .file 1 "foo.s"
28238 .file 1 "bar.s"' > conftest.s
28239 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28240 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28241 (eval $ac_try) 2>&5
28242 ac_status=$?
28243 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28244 test $ac_status = 0; }; }
28245 then
28246 gcc_cv_as_dwarf2_file_buggy=yes
28247 else
28248 echo "configure: failed program was" >&5
28249 cat conftest.s >&5
28251 rm -f conftest.o conftest.s
28254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
28255 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
28259 if test $gcc_cv_as_dwarf2_debug_line = yes \
28260 && test $gcc_cv_as_dwarf2_file_buggy = no; then
28262 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
28265 if test $gcc_cv_as_leb128 = yes; then
28266 conftest_s="\
28267 .file 1 \"conftest.s\"
28268 .loc 1 3 0 view .LVU1
28269 $insn
28270 .data
28271 .uleb128 .LVU1
28272 .uleb128 .LVU1
28274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_view support" >&5
28275 $as_echo_n "checking assembler for dwarf2 debug_view support... " >&6; }
28276 if ${gcc_cv_as_dwarf2_debug_view+:} false; then :
28277 $as_echo_n "(cached) " >&6
28278 else
28279 gcc_cv_as_dwarf2_debug_view=no
28280 if test $in_tree_gas = yes; then
28281 if test $in_tree_gas_is_elf = yes \
28282 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 27 \) \* 1000 + 0`
28283 then gcc_cv_as_dwarf2_debug_view=yes
28285 elif test x$gcc_cv_as != x; then
28286 $as_echo "$conftest_s" > conftest.s
28287 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28288 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28289 (eval $ac_try) 2>&5
28290 ac_status=$?
28291 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28292 test $ac_status = 0; }; }
28293 then
28294 gcc_cv_as_dwarf2_debug_view=yes
28295 else
28296 echo "configure: failed program was" >&5
28297 cat conftest.s >&5
28299 rm -f conftest.o conftest.s
28302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_view" >&5
28303 $as_echo "$gcc_cv_as_dwarf2_debug_view" >&6; }
28304 if test $gcc_cv_as_dwarf2_debug_view = yes; then
28306 $as_echo "#define HAVE_AS_DWARF2_DEBUG_VIEW 1" >>confdefs.h
28313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
28314 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
28315 if ${gcc_cv_as_gdwarf2_flag+:} false; then :
28316 $as_echo_n "(cached) " >&6
28317 else
28318 gcc_cv_as_gdwarf2_flag=no
28319 if test $in_tree_gas = yes; then
28320 if test $in_tree_gas_is_elf = yes \
28321 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
28322 then gcc_cv_as_gdwarf2_flag=yes
28324 elif test x$gcc_cv_as != x; then
28325 $as_echo "$insn" > conftest.s
28326 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
28327 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28328 (eval $ac_try) 2>&5
28329 ac_status=$?
28330 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28331 test $ac_status = 0; }; }
28332 then
28333 gcc_cv_as_gdwarf2_flag=yes
28334 else
28335 echo "configure: failed program was" >&5
28336 cat conftest.s >&5
28338 rm -f conftest.o conftest.s
28341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
28342 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
28343 if test $gcc_cv_as_gdwarf2_flag = yes; then
28345 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
28350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
28351 $as_echo_n "checking assembler for --gstabs option... " >&6; }
28352 if ${gcc_cv_as_gstabs_flag+:} false; then :
28353 $as_echo_n "(cached) " >&6
28354 else
28355 gcc_cv_as_gstabs_flag=no
28356 if test $in_tree_gas = yes; then
28357 if test $in_tree_gas_is_elf = yes \
28358 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
28359 then gcc_cv_as_gstabs_flag=yes
28361 elif test x$gcc_cv_as != x; then
28362 $as_echo "$insn" > conftest.s
28363 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
28364 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28365 (eval $ac_try) 2>&5
28366 ac_status=$?
28367 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28368 test $ac_status = 0; }; }
28369 then
28370 gcc_cv_as_gstabs_flag=yes
28371 else
28372 echo "configure: failed program was" >&5
28373 cat conftest.s >&5
28375 rm -f conftest.o conftest.s
28378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
28379 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
28380 if test $gcc_cv_as_gstabs_flag = yes; then
28382 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
28387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
28388 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
28389 if ${gcc_cv_as_debug_prefix_map_flag+:} false; then :
28390 $as_echo_n "(cached) " >&6
28391 else
28392 gcc_cv_as_debug_prefix_map_flag=no
28393 if test $in_tree_gas = yes; then
28394 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
28395 then gcc_cv_as_debug_prefix_map_flag=yes
28397 elif test x$gcc_cv_as != x; then
28398 $as_echo "$insn" > conftest.s
28399 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
28400 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28401 (eval $ac_try) 2>&5
28402 ac_status=$?
28403 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28404 test $ac_status = 0; }; }
28405 then
28406 gcc_cv_as_debug_prefix_map_flag=yes
28407 else
28408 echo "configure: failed program was" >&5
28409 cat conftest.s >&5
28411 rm -f conftest.o conftest.s
28414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
28415 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
28416 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
28418 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
28424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compressed debug sections" >&5
28425 $as_echo_n "checking assembler for compressed debug sections... " >&6; }
28426 if ${gcc_cv_as_compress_debug+:} false; then :
28427 $as_echo_n "(cached) " >&6
28428 else
28429 gcc_cv_as_compress_debug=no
28430 if test x$gcc_cv_as != x; then
28431 $as_echo '' > conftest.s
28432 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28433 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28434 (eval $ac_try) 2>&5
28435 ac_status=$?
28436 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28437 test $ac_status = 0; }; }
28438 then
28439 # gas compiled without zlib cannot compress debug sections and warns
28440 # about it, but still exits successfully. So check for this, too.
28441 if $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null
28442 then
28443 gcc_cv_as_compress_debug=0
28444 # Since binutils 2.26, gas supports --compress-debug-sections=type,
28445 # defaulting to the ELF gABI format.
28446 elif $gcc_cv_as --compress-debug-sections=zlib-gnu -o conftest.o conftest.s > /dev/null 2>&1
28447 then
28448 gcc_cv_as_compress_debug=2
28449 gcc_cv_as_compress_debug_option="--compress-debug-sections"
28450 gcc_cv_as_no_compress_debug_option="--nocompress-debug-sections"
28451 # Before binutils 2.26, gas only supported --compress-debug-options and
28452 # emitted the traditional GNU format.
28453 elif $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s > /dev/null 2>&1
28454 then
28455 gcc_cv_as_compress_debug=1
28456 gcc_cv_as_compress_debug_option="--compress-debug-sections"
28457 gcc_cv_as_no_compress_debug_option="--nocompress-debug-sections"
28458 else
28459 gcc_cv_as_compress_debug=0
28461 else
28462 echo "configure: failed program was" >&5
28463 cat conftest.s >&5
28465 rm -f conftest.o conftest.s
28468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_compress_debug" >&5
28469 $as_echo "$gcc_cv_as_compress_debug" >&6; }
28473 cat >>confdefs.h <<_ACEOF
28474 #define HAVE_AS_COMPRESS_DEBUG $gcc_cv_as_compress_debug
28475 _ACEOF
28478 cat >>confdefs.h <<_ACEOF
28479 #define AS_COMPRESS_DEBUG_OPTION "$gcc_cv_as_compress_debug_option"
28480 _ACEOF
28483 cat >>confdefs.h <<_ACEOF
28484 #define AS_NO_COMPRESS_DEBUG_OPTION "$gcc_cv_as_no_compress_debug_option"
28485 _ACEOF
28488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
28489 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
28490 if ${gcc_cv_as_lcomm_with_alignment+:} false; then :
28491 $as_echo_n "(cached) " >&6
28492 else
28493 gcc_cv_as_lcomm_with_alignment=no
28494 if test x$gcc_cv_as != x; then
28495 $as_echo '.lcomm bar,4,16' > conftest.s
28496 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28497 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28498 (eval $ac_try) 2>&5
28499 ac_status=$?
28500 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28501 test $ac_status = 0; }; }
28502 then
28503 gcc_cv_as_lcomm_with_alignment=yes
28504 else
28505 echo "configure: failed program was" >&5
28506 cat conftest.s >&5
28508 rm -f conftest.o conftest.s
28511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
28512 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
28513 if test $gcc_cv_as_lcomm_with_alignment = yes; then
28515 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
28520 if test x$with_sysroot = x && test x$host = x$target \
28521 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
28522 && test "$prefix" != "NONE"; then
28524 cat >>confdefs.h <<_ACEOF
28525 #define PREFIX_INCLUDE_DIR "$prefix/include"
28526 _ACEOF
28530 # Determine the version of glibc, if any, used on the target.
28531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target glibc version" >&5
28532 $as_echo_n "checking for target glibc version... " >&6; }
28534 # Check whether --with-glibc-version was given.
28535 if test "${with_glibc_version+set}" = set; then :
28536 withval=$with_glibc_version;
28537 if echo "$with_glibc_version" | grep '^[0-9][0-9]*\.[0-9][0-9]*$'; then
28538 glibc_version_major=`echo "$with_glibc_version" | sed -e 's/\..*//'`
28539 glibc_version_minor=`echo "$with_glibc_version" | sed -e 's/.*\.//'`
28540 else
28541 as_fn_error $? "option --with-glibc-version requires a version number M.N" "$LINENO" 5
28543 else
28545 glibc_version_major=0
28546 glibc_version_minor=0
28547 if test -f $target_header_dir/features.h \
28548 && glibc_version_major_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+[0-9]' $target_header_dir/features.h` \
28549 && glibc_version_minor_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+[0-9]' $target_header_dir/features.h`; then
28550 glibc_version_major=`echo "$glibc_version_major_define" | sed -e 's/.*__GLIBC__[ ]*//'`
28551 glibc_version_minor=`echo "$glibc_version_minor_define" | sed -e 's/.*__GLIBC_MINOR__[ ]*//'`
28555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc_version_major.$glibc_version_minor" >&5
28556 $as_echo "$glibc_version_major.$glibc_version_minor" >&6; }
28558 cat >>confdefs.h <<_ACEOF
28559 #define TARGET_GLIBC_MAJOR $glibc_version_major
28560 _ACEOF
28563 cat >>confdefs.h <<_ACEOF
28564 #define TARGET_GLIBC_MINOR $glibc_version_minor
28565 _ACEOF
28568 # Check whether --enable-gnu-unique-object was given.
28569 if test "${enable_gnu_unique_object+set}" = set; then :
28570 enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
28571 yes | no) ;;
28572 *) as_fn_error $? "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
28573 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
28574 esac
28575 else
28576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
28577 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
28578 if ${gcc_cv_as_gnu_unique_object+:} false; then :
28579 $as_echo_n "(cached) " >&6
28580 else
28581 gcc_cv_as_gnu_unique_object=no
28582 if test $in_tree_gas = yes; then
28583 if test $in_tree_gas_is_elf = yes \
28584 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
28585 then gcc_cv_as_gnu_unique_object=yes
28587 elif test x$gcc_cv_as != x; then
28588 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
28589 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28590 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28591 (eval $ac_try) 2>&5
28592 ac_status=$?
28593 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28594 test $ac_status = 0; }; }
28595 then
28596 gcc_cv_as_gnu_unique_object=yes
28597 else
28598 echo "configure: failed program was" >&5
28599 cat conftest.s >&5
28601 rm -f conftest.o conftest.s
28604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
28605 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
28606 if test $gcc_cv_as_gnu_unique_object = yes; then
28607 # We need to unquote above to to use the definition from config.gcc.
28608 # Also check for ld.so support, i.e. glibc 2.11 or higher.
28610 if test $glibc_version_major -gt 2 \
28611 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 11 ); then :
28612 enable_gnu_unique_object=yes
28619 if test x$enable_gnu_unique_object = xyes; then
28621 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
28625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
28626 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
28627 if ${gcc_cv_as_line_zero+:} false; then :
28628 $as_echo_n "(cached) " >&6
28629 else
28630 gcc_cv_as_line_zero=no
28631 if test $in_tree_gas = yes; then
28632 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
28633 then gcc_cv_as_line_zero=yes
28635 elif test "x$gcc_cv_as" != x; then
28636 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
28637 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
28638 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28639 (eval $ac_try) 2>&5
28640 ac_status=$?
28641 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28642 test $ac_status = 0; }; } &&
28643 test "x`cat conftest.out`" = x
28644 then
28645 gcc_cv_as_line_zero=yes
28646 else
28647 echo "configure: failed program was" >&5
28648 cat conftest.s >&5
28649 echo "configure: error output was" >&5
28650 cat conftest.out >&5
28652 rm -f conftest.o conftest.s conftest.out
28655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
28656 $as_echo "$gcc_cv_as_line_zero" >&6; }
28657 if test "x$gcc_cv_as_line_zero" = xyes; then
28659 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
28663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for thin archives" >&5
28664 $as_echo_n "checking support for thin archives... " >&6; }
28665 thin_archive_support=no
28666 echo 'int main (void) { return 0; }' > conftest.c
28667 if ($AR --version | sed 1q | grep "GNU ar" \
28668 && $CC $CFLAGS -c conftest.c \
28669 && $AR rcT conftest.a conftest.o \
28670 && $CC $CFLAGS $LDFLAGS -o conftest conftest.a) >/dev/null 2>&1; then
28671 thin_archive_support=yes
28673 rm -f conftest.c conftest.o conftest.a conftest
28674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $thin_archive_support" >&5
28675 $as_echo "$thin_archive_support" >&6; }
28678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
28679 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
28680 gcc_cv_ld_eh_frame_hdr=no
28681 if test $in_tree_ld = yes ; then
28682 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 \
28683 && test $in_tree_ld_is_elf = yes; then
28684 gcc_cv_ld_eh_frame_hdr=yes
28686 elif test x$gcc_cv_ld != x; then
28687 if echo "$ld_ver" | grep GNU > /dev/null; then
28688 # Check if linker supports --eh-frame-hdr option
28689 if $gcc_cv_ld --help 2>&1 | grep eh-frame-hdr > /dev/null; then
28690 gcc_cv_ld_eh_frame_hdr=yes
28692 else
28693 case "$target" in
28694 *-*-solaris2*)
28695 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
28696 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2251; then
28697 gcc_cv_ld_eh_frame_hdr=yes
28700 esac
28704 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
28706 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
28709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
28710 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
28712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker CIEv3 in .eh_frame support" >&5
28713 $as_echo_n "checking linker CIEv3 in .eh_frame support... " >&6; }
28714 gcc_cv_ld_eh_frame_ciev3=no
28715 if test $in_tree_ld = yes ; then
28716 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 \
28717 && test $in_tree_ld_is_elf = yes; then
28718 gcc_cv_ld_eh_frame_ciev3=yes
28720 elif test x$gcc_cv_ld != x; then
28721 if echo "$ld_ver" | grep GNU > /dev/null; then
28722 gcc_cv_ld_eh_frame_ciev3=yes
28723 if test 0"$ld_date" -lt 20040513; then
28724 if test -n "$ld_date"; then
28725 # If there was date string, but was earlier than 2004-05-13, fail
28726 gcc_cv_ld_eh_frame_ciev3=no
28727 elif test "$ld_vers_major" -lt 2; then
28728 gcc_cv_ld_eh_frame_ciev3=no
28729 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
28730 gcc_cv_ld_eh_frame_ciev3=no
28733 else
28734 case "$target" in
28735 *-*-solaris2*)
28736 # Sun ld added support for CIE v3 in .eh_frame in Solaris 11.1.
28737 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2324; then
28738 gcc_cv_ld_eh_frame_ciev3=yes
28741 esac
28745 cat >>confdefs.h <<_ACEOF
28746 #define HAVE_LD_EH_FRAME_CIEV3 `if test x"$gcc_cv_ld_eh_frame_ciev3" = xyes; then echo 1; else echo 0; fi`
28747 _ACEOF
28749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_ciev3" >&5
28750 $as_echo "$gcc_cv_ld_eh_frame_ciev3" >&6; }
28752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
28753 $as_echo_n "checking linker position independent executable support... " >&6; }
28754 gcc_cv_ld_pie=no
28755 if test $in_tree_ld = yes ; then
28756 case "$target" in
28757 # Full PIE support on Solaris was only introduced in gld 2.26.
28758 *-*-solaris2*) gcc_gld_pie_min_version=26 ;;
28759 *) gcc_gld_pie_min_version=15 ;;
28760 esac
28761 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 \
28762 && test $in_tree_ld_is_elf = yes; then
28763 gcc_cv_ld_pie=yes
28765 elif test x$gcc_cv_ld != x; then
28766 # Check if linker supports -pie option
28767 if $gcc_cv_ld --help 2>&1 | grep -- -pie > /dev/null; then
28768 gcc_cv_ld_pie=yes
28769 case "$target" in
28770 *-*-solaris2*)
28771 if echo "$ld_ver" | grep GNU > /dev/null \
28772 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
28773 gcc_cv_ld_pie=no
28776 esac
28777 else
28778 case "$target" in
28779 *-*-solaris2.1[1-9]*)
28780 # Solaris 11.3 added PIE support.
28781 if $gcc_cv_ld -z help 2>&1 | grep -- type.*pie > /dev/null; then
28782 gcc_cv_ld_pie=yes
28785 esac
28788 if test x"$gcc_cv_ld_pie" = xyes; then
28790 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
28793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
28794 $as_echo "$gcc_cv_ld_pie" >&6; }
28796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PIE support with copy reloc" >&5
28797 $as_echo_n "checking linker PIE support with copy reloc... " >&6; }
28798 gcc_cv_ld_pie_copyreloc=no
28799 if test $gcc_cv_ld_pie = yes ; then
28800 if test $in_tree_ld = yes ; then
28801 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
28802 gcc_cv_ld_pie_copyreloc=yes
28804 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
28805 # Check if linker supports -pie option with copy reloc
28806 case "$target" in
28807 i?86-*-linux* | x86_64-*-linux*)
28808 cat > conftest1.s <<EOF
28809 .globl a_glob
28810 .data
28811 .type a_glob, @object
28812 .size a_glob, 4
28813 a_glob:
28814 .long 2
28816 cat > conftest2.s <<EOF
28817 .text
28818 .globl main
28819 .type main, @function
28820 main:
28821 movl %eax, a_glob(%rip)
28822 .size main, .-main
28823 .globl ptr
28824 .section .data.rel,"aw",@progbits
28825 .type ptr, @object
28826 ptr:
28827 .quad a_glob
28829 if $gcc_cv_as --64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
28830 && $gcc_cv_ld -shared -melf_x86_64 -o conftest1.so conftest1.o > /dev/null 2>&1 \
28831 && $gcc_cv_as --64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
28832 && $gcc_cv_ld -pie -melf_x86_64 -o conftest conftest2.o conftest1.so > /dev/null 2>&1; then
28833 gcc_cv_ld_pie_copyreloc=yes
28835 rm -f conftest conftest1.so conftest1.o conftest2.o conftest1.s conftest2.s
28837 esac
28841 cat >>confdefs.h <<_ACEOF
28842 #define HAVE_LD_PIE_COPYRELOC `if test x"$gcc_cv_ld_pie_copyreloc" = xyes; then echo 1; else echo 0; fi`
28843 _ACEOF
28845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie_copyreloc" >&5
28846 $as_echo "$gcc_cv_ld_pie_copyreloc" >&6; }
28848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
28849 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
28850 gcc_cv_ld_eh_gc_sections=no
28851 if test $in_tree_ld = yes ; then
28852 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 \
28853 && test $in_tree_ld_is_elf = yes; then
28854 gcc_cv_ld_eh_gc_sections=yes
28856 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
28857 cat > conftest.s <<EOF
28858 .section .text
28859 .globl _start
28860 .type _start, @function
28861 _start:
28862 .long foo
28863 .size _start, .-_start
28864 .section .text.foo,"ax",@progbits
28865 .type foo, @function
28866 foo:
28867 .long 0
28868 .size foo, .-foo
28869 .section .gcc_except_table.foo,"a",@progbits
28870 .L0:
28871 .long 0
28872 .section .eh_frame,"a",@progbits
28873 .long .L0
28875 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
28876 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
28877 | grep "gc-sections option ignored" > /dev/null; then
28878 gcc_cv_ld_eh_gc_sections=no
28879 elif $gcc_cv_objdump -h conftest 2> /dev/null \
28880 | grep gcc_except_table > /dev/null; then
28881 gcc_cv_ld_eh_gc_sections=yes
28882 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
28883 if test x$gcc_cv_as_comdat_group != xyes; then
28884 gcc_cv_ld_eh_gc_sections=no
28885 cat > conftest.s <<EOF
28886 .section .text
28887 .globl _start
28888 .type _start, @function
28889 _start:
28890 .long foo
28891 .size _start, .-_start
28892 .section .gnu.linkonce.t.foo,"ax",@progbits
28893 .type foo, @function
28894 foo:
28895 .long 0
28896 .size foo, .-foo
28897 .section .gcc_except_table.foo,"a",@progbits
28898 .L0:
28899 .long 0
28900 .section .eh_frame,"a",@progbits
28901 .long .L0
28903 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
28904 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
28905 | grep "gc-sections option ignored" > /dev/null; then
28906 gcc_cv_ld_eh_gc_sections=no
28907 elif $gcc_cv_objdump -h conftest 2> /dev/null \
28908 | grep gcc_except_table > /dev/null; then
28909 gcc_cv_ld_eh_gc_sections=yes
28915 rm -f conftest.s conftest.o conftest
28917 case "$target" in
28918 hppa*-*-linux*)
28919 # ??? This apparently exposes a binutils bug with PC-relative relocations.
28920 gcc_cv_ld_eh_gc_sections=no
28922 esac
28923 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
28925 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
28928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
28929 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
28931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
28932 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
28933 gcc_cv_ld_eh_gc_sections_bug=no
28934 if test $in_tree_ld = yes ; then
28935 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 \
28936 && test $in_tree_ld_is_elf = yes; then
28937 gcc_cv_ld_eh_gc_sections_bug=yes
28939 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
28940 gcc_cv_ld_eh_gc_sections_bug=yes
28941 cat > conftest.s <<EOF
28942 .section .text
28943 .globl _start
28944 .type _start, @function
28945 _start:
28946 .long foo
28947 .size _start, .-_start
28948 .section .text.startup.foo,"ax",@progbits
28949 .type foo, @function
28950 foo:
28951 .long 0
28952 .size foo, .-foo
28953 .section .gcc_except_table.foo,"a",@progbits
28954 .L0:
28955 .long 0
28956 .section .eh_frame,"a",@progbits
28957 .long .L0
28959 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
28960 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
28961 | grep "gc-sections option ignored" > /dev/null; then
28963 elif $gcc_cv_objdump -h conftest 2> /dev/null \
28964 | grep gcc_except_table > /dev/null; then
28965 gcc_cv_ld_eh_gc_sections_bug=no
28968 rm -f conftest.s conftest.o conftest
28970 if test x$gcc_cv_ld_eh_gc_sections_bug = xyes; then
28972 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
28975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
28976 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
28978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for compressed debug sections" >&5
28979 $as_echo_n "checking linker for compressed debug sections... " >&6; }
28980 # gold/gld support compressed debug sections since binutils 2.19/2.21
28981 # In binutils 2.26, gld gained support for the ELF gABI format.
28982 if test $in_tree_ld = yes ; then
28983 gcc_cv_ld_compress_debug=0
28984 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 19 -o "$gcc_cv_gld_major_version" -gt 2 \
28985 && test $in_tree_ld_is_elf = yes && test $ld_is_gold = yes; then
28986 gcc_cv_ld_compress_debug=2
28987 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
28988 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 \
28989 && test $in_tree_ld_is_elf = yes && test $ld_is_gold = no; then
28990 gcc_cv_ld_compress_debug=3
28991 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
28992 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 \
28993 && test $in_tree_ld_is_elf = yes; then
28994 gcc_cv_ld_compress_debug=1
28996 elif echo "$ld_ver" | grep GNU > /dev/null; then
28997 if test "$ld_vers_major" -lt 2 \
28998 || test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 21; then
28999 gcc_cv_ld_compress_debug=0
29000 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
29001 gcc_cv_ld_compress_debug=1
29002 else
29003 gcc_cv_ld_compress_debug=3
29004 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
29006 if test $ld_is_gold = yes; then
29007 gcc_cv_ld_compress_debug=2
29008 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
29010 else
29011 case "${target}" in
29012 *-*-solaris2*)
29013 # Introduced in Solaris 11.2.
29014 if $gcc_cv_ld --help 2>&1 | grep -- '-z compress-sections' > /dev/null; then
29015 gcc_cv_ld_compress_debug=3
29016 gcc_cv_ld_compress_debug_option="-z compress-sections"
29017 else
29018 gcc_cv_ld_compress_debug=0
29022 # Assume linkers other than GNU ld don't support compessed debug
29023 # sections.
29024 gcc_cv_ld_compress_debug=0
29026 esac
29029 cat >>confdefs.h <<_ACEOF
29030 #define HAVE_LD_COMPRESS_DEBUG $gcc_cv_ld_compress_debug
29031 _ACEOF
29034 cat >>confdefs.h <<_ACEOF
29035 #define LD_COMPRESS_DEBUG_OPTION "$gcc_cv_ld_compress_debug_option"
29036 _ACEOF
29038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_compress_debug" >&5
29039 $as_echo "$gcc_cv_ld_compress_debug" >&6; }
29041 if test x"$ld64_flag" = x"yes"; then
29043 # Set defaults for possibly untestable items.
29044 gcc_cv_ld64_export_dynamic=0
29046 if test "$build" = "$host"; then
29047 darwin_try_test=1
29048 else
29049 darwin_try_test=0
29052 # On Darwin, because of FAT library support, it is often possible to execute
29053 # exes from compatible archs even when the host differs from the build system.
29054 case "$build","$host" in
29055 x86_64-*-darwin*,i?86-*-darwin* | powerpc64*-*-darwin*,powerpc*-*-darwin*)
29056 darwin_try_test=1;;
29057 *) ;;
29058 esac
29060 # If the configurer specified a minimum ld64 version to be supported, then use
29061 # that to determine feature support.
29062 if test x"${gcc_cv_ld64_version}" != x; then
29063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ld64 specified version" >&5
29064 $as_echo_n "checking ld64 specified version... " >&6; }
29065 gcc_cv_ld64_major=`echo "$gcc_cv_ld64_version" | sed -e 's/\..*//'`
29066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_major" >&5
29067 $as_echo "$gcc_cv_ld64_major" >&6; }
29068 if test "$gcc_cv_ld64_major" -ge 236; then
29069 gcc_cv_ld64_export_dynamic=1
29071 elif test -x "$gcc_cv_ld" -a "$darwin_try_test" -eq 1; then
29072 # If the version was not specified, try to find it.
29073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker version" >&5
29074 $as_echo_n "checking linker version... " >&6; }
29075 if test x"${gcc_cv_ld64_version}" = x; then
29076 gcc_cv_ld64_version=`$gcc_cv_ld -v 2>&1 | grep ld64 | sed s/.*ld64-// | awk '{print $1}'`
29078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_version" >&5
29079 $as_echo "$gcc_cv_ld64_version" >&6; }
29081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for -export_dynamic support" >&5
29082 $as_echo_n "checking linker for -export_dynamic support... " >&6; }
29083 gcc_cv_ld64_export_dynamic=1
29084 if $gcc_cv_ld -export_dynamic < /dev/null 2>&1 | grep 'unknown option' > /dev/null; then
29085 gcc_cv_ld64_export_dynamic=0
29087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_export_dynamic" >&5
29088 $as_echo "$gcc_cv_ld64_export_dynamic" >&6; }
29091 if test x"${gcc_cv_ld64_version}" != x; then
29093 cat >>confdefs.h <<_ACEOF
29094 #define LD64_VERSION "${gcc_cv_ld64_version}"
29095 _ACEOF
29100 cat >>confdefs.h <<_ACEOF
29101 #define LD64_HAS_EXPORT_DYNAMIC $gcc_cv_ld64_export_dynamic
29102 _ACEOF
29106 # --------
29107 # UNSORTED
29108 # --------
29110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
29111 $as_echo_n "checking linker --as-needed support... " >&6; }
29112 if ${gcc_cv_ld_as_needed+:} false; then :
29113 $as_echo_n "(cached) " >&6
29114 else
29115 gcc_cv_ld_as_needed=no
29116 gcc_cv_ld_as_needed_option='--as-needed'
29117 gcc_cv_ld_no_as_needed_option='--no-as-needed'
29118 if test $in_tree_ld = yes ; then
29119 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 \
29120 && test $in_tree_ld_is_elf = yes; then
29121 gcc_cv_ld_as_needed=yes
29122 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 28; then
29123 gcc_cv_ld_as_needed_option='--push-state --as-needed'
29124 gcc_cv_ld_no_as_needed_option='--pop-state'
29127 elif test x$gcc_cv_ld != x; then
29128 # Check if linker supports --as-needed and --no-as-needed options
29129 if $gcc_cv_ld --help 2>&1 | grep as-needed > /dev/null; then
29130 gcc_cv_ld_as_needed=yes
29131 if $gcc_cv_ld --help 2>&1 | grep push-state > /dev/null \
29132 && $gcc_cv_ld --help 2>&1 | grep pop-state > /dev/null \
29133 && echo "$ld_ver" | grep GNU > /dev/null \
29134 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 28; then
29135 # Use these options only when both ld.bfd and ld.gold support
29136 # --push-state/--pop-state, which unfortunately wasn't added
29137 # at the same time.
29138 gcc_cv_ld_as_needed_option='--push-state --as-needed'
29139 gcc_cv_ld_no_as_needed_option='--pop-state'
29142 case "$target:$gnu_ld" in
29143 *-*-solaris2*:no)
29144 # Solaris 2 ld always supports -z ignore/-z record. Prefer the native
29145 # forms.
29146 gcc_cv_ld_as_needed=yes
29147 gcc_cv_ld_as_needed_option="-z ignore"
29148 gcc_cv_ld_no_as_needed_option="-z record"
29150 esac
29152 # --as-needed/-z ignore can only be used if libgcc_s.so.1 uses
29153 # dl_iterate_phdr, i.e. since Solaris 11.
29154 case "$target" in
29155 *-*-solaris2.1[1-9]*)
29156 case "$target" in
29157 i?86-*-* | x86_64-*-*)
29158 if echo "$ld_ver" | grep GNU > /dev/null; then
29159 # Doesn't work with gld on Solaris/x86 due to PR ld/12320.
29160 gcc_cv_ld_as_needed=no
29163 esac
29165 *-*-solaris2*)
29166 gcc_cv_ld_as_needed=no
29168 esac
29171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
29172 $as_echo "$gcc_cv_ld_as_needed" >&6; }
29173 if test x"$gcc_cv_ld_as_needed" = xyes; then
29175 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
29178 cat >>confdefs.h <<_ACEOF
29179 #define LD_AS_NEEDED_OPTION "$gcc_cv_ld_as_needed_option"
29180 _ACEOF
29183 cat >>confdefs.h <<_ACEOF
29184 #define LD_NO_AS_NEEDED_OPTION "$gcc_cv_ld_no_as_needed_option"
29185 _ACEOF
29189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker mapfile support for clearing hardware capabilities" >&5
29190 $as_echo_n "checking linker mapfile support for clearing hardware capabilities... " >&6; }
29191 saved_LDFLAGS="$LDFLAGS"
29192 for clearcap_map in sol2-clearcapv2.map sol2-clearcap.map; do
29193 LDFLAGS="$saved_LDFLAGS -Wl,-M,${srcdir}/config/$clearcap_map"
29194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29195 /* end confdefs.h. */
29196 int main(void) {return 0;}
29197 _ACEOF
29198 if ac_fn_cxx_try_link "$LINENO"; then :
29199 gcc_cv_ld_clearcap=yes; break
29200 else
29201 gcc_cv_ld_clearcap=no
29203 rm -f core conftest.err conftest.$ac_objext \
29204 conftest$ac_exeext conftest.$ac_ext
29205 done
29206 LDFLAGS="$saved_LDFLAGS"
29207 if test "x$gcc_cv_ld_clearcap" = xyes; then
29209 $as_echo "#define HAVE_LD_CLEARCAP 1" >>confdefs.h
29211 ac_config_links="$ac_config_links clearcap.map:${srcdir}/config/$clearcap_map"
29214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_clearcap" >&5
29215 $as_echo "$gcc_cv_ld_clearcap" >&6; }
29217 case "$target" in
29218 powerpc*-*-*)
29219 case "$target" in
29220 *le-*-linux*)
29221 emul_name="-melf32lppc"
29224 emul_name="-melf32ppc"
29226 esac
29227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker .gnu.attributes long double support" >&5
29228 $as_echo_n "checking linker .gnu.attributes long double support... " >&6; }
29229 if ${gcc_cv_ld_ppc_attr+:} false; then :
29230 $as_echo_n "(cached) " >&6
29231 else
29232 gcc_cv_ld_ppc_attr=no
29233 if test x"$ld_is_gold" = xyes; then
29234 gcc_cv_ld_ppc_attr=yes
29235 elif test $in_tree_ld = yes ; then
29236 if test "$gcc_cv_gld_major_version" -eq 2 \
29237 -a "$gcc_cv_gld_minor_version" -ge 28 \
29238 -o "$gcc_cv_gld_major_version" -gt 2; then
29239 gcc_cv_ld_ppc_attr=yes
29241 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
29242 # check that merging the long double .gnu_attribute doesn't warn
29243 cat > conftest1.s <<EOF
29244 .gnu_attribute 4,1
29246 cat > conftest2.s <<EOF
29247 .gnu_attribute 4,9
29249 if $gcc_cv_as -a32 -o conftest1.o conftest1.s > /dev/null 2>&1 \
29250 && $gcc_cv_as -a32 -o conftest2.o conftest2.s > /dev/null 2>&1 \
29251 && $gcc_cv_ld $emul_name -r -o conftest.o conftest1.o conftest2.o > /dev/null 2> conftest.err \
29252 && test ! -s conftest.err; then
29253 gcc_cv_ld_ppc_attr=yes
29255 rm -f conftest.err conftest.o conftest1.o conftest2.o conftest1.s conftest2.s
29259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ppc_attr" >&5
29260 $as_echo "$gcc_cv_ld_ppc_attr" >&6; }
29261 if test x$gcc_cv_ld_ppc_attr = xyes; then
29263 $as_echo "#define HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE 1" >>confdefs.h
29267 esac
29269 case "$target:$tm_file" in
29270 powerpc64-*-freebsd* | powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
29271 case "$target" in
29272 *le-*-linux*)
29273 emul_name="-melf64lppc"
29275 *-*-linux*)
29276 emul_name="-melf64ppc"
29278 *-*-freebsd*)
29279 emul_name="-melf64ppc_fbsd"
29281 esac
29282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
29283 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
29284 if ${gcc_cv_ld_no_dot_syms+:} false; then :
29285 $as_echo_n "(cached) " >&6
29286 else
29287 gcc_cv_ld_no_dot_syms=no
29288 if test x"$ld_is_gold" = xyes; then
29289 gcc_cv_ld_no_dot_syms=yes
29290 elif test $in_tree_ld = yes ; then
29291 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
29292 gcc_cv_ld_no_dot_syms=yes
29294 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
29295 cat > conftest1.s <<EOF
29296 .text
29297 bl .foo
29299 cat > conftest2.s <<EOF
29300 .section ".opd","aw"
29301 .align 3
29302 .globl foo
29303 .type foo,@function
29304 foo:
29305 .quad .LEfoo,.TOC.@tocbase,0
29306 .text
29307 .LEfoo:
29309 .size foo,.-.LEfoo
29311 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
29312 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
29313 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
29314 gcc_cv_ld_no_dot_syms=yes
29316 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
29320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
29321 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
29322 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
29324 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
29328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
29329 $as_echo_n "checking linker large toc support... " >&6; }
29330 if ${gcc_cv_ld_large_toc+:} false; then :
29331 $as_echo_n "(cached) " >&6
29332 else
29333 gcc_cv_ld_large_toc=no
29334 if test x"$ld_is_gold" = xyes; then
29335 gcc_cv_ld_large_toc=yes
29336 elif test $in_tree_ld = yes ; then
29337 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
29338 gcc_cv_ld_large_toc=yes
29340 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
29341 cat > conftest.s <<EOF
29342 .section ".tbss","awT",@nobits
29343 .align 3
29344 ie0: .space 8
29345 .global _start
29346 .text
29347 _start:
29348 addis 9,13,ie0@got@tprel@ha
29349 ld 9,ie0@got@tprel@l(9)
29351 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
29352 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
29353 gcc_cv_ld_large_toc=yes
29355 rm -f conftest conftest.o conftest.s
29359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
29360 $as_echo "$gcc_cv_ld_large_toc" >&6; }
29361 if test x"$gcc_cv_ld_large_toc" = xyes; then
29363 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
29367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker toc pointer alignment" >&5
29368 $as_echo_n "checking linker toc pointer alignment... " >&6; }
29369 if ${gcc_cv_ld_toc_align+:} false; then :
29370 $as_echo_n "(cached) " >&6
29371 else
29372 if test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_nm != x; then
29373 cat > conftest.s <<EOF
29374 .global _start
29375 .text
29376 _start:
29377 addis 9,2,x@got@ha
29378 .section .data.rel.ro,"aw",@progbits
29379 .p2align 16
29380 .space 32768
29381 x: .quad .TOC.
29383 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
29384 && $gcc_cv_ld $emul_name -z norelro -o conftest conftest.o > /dev/null 2>&1; then
29385 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)) }'`
29387 rm -f conftest conftest.o conftest.s
29391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_toc_align" >&5
29392 $as_echo "$gcc_cv_ld_toc_align" >&6; }
29393 if test -n "$gcc_cv_ld_toc_align" && test $gcc_cv_ld_toc_align -gt 8; then
29395 cat >>confdefs.h <<_ACEOF
29396 #define POWERPC64_TOC_POINTER_ALIGNMENT $gcc_cv_ld_toc_align
29397 _ACEOF
29401 esac
29403 case "$target" in
29404 *-*-aix*)
29405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
29406 $as_echo_n "checking linker large toc support... " >&6; }
29407 if ${gcc_cv_ld_large_toc+:} false; then :
29408 $as_echo_n "(cached) " >&6
29409 else
29410 gcc_cv_ld_large_toc=no
29411 if test x$gcc_cv_as != x ; then
29412 cat > conftest.s <<EOF
29413 .toc
29414 LC..1:
29415 .tc a[TC],a[RW]
29416 .extern a[RW]
29417 .csect .text[PR]
29418 .largetoctest:
29419 addis 9,LC..1@u(2)
29420 ld 3,LC..1@l(9)
29422 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1; then
29423 gcc_cv_ld_large_toc=yes
29425 rm -f conftest conftest.o conftest.s
29429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
29430 $as_echo "$gcc_cv_ld_large_toc" >&6; }
29431 if test x"$gcc_cv_ld_large_toc" = xyes; then
29433 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
29437 esac
29439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
29440 $as_echo_n "checking linker --build-id support... " >&6; }
29441 if ${gcc_cv_ld_buildid+:} false; then :
29442 $as_echo_n "(cached) " >&6
29443 else
29444 gcc_cv_ld_buildid=no
29445 if test $in_tree_ld = yes ; then
29446 if test "$gcc_cv_gld_major_version" -eq 2 -a \
29447 "$gcc_cv_gld_minor_version" -ge 18 -o \
29448 "$gcc_cv_gld_major_version" -gt 2 \
29449 && test $in_tree_ld_is_elf = yes; then
29450 gcc_cv_ld_buildid=yes
29452 elif test x$gcc_cv_ld != x; then
29453 if $gcc_cv_ld --help 2>&1 | grep build-id > /dev/null; then
29454 gcc_cv_ld_buildid=yes
29458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
29459 $as_echo "$gcc_cv_ld_buildid" >&6; }
29460 if test x"$gcc_cv_ld_buildid" = xyes; then
29462 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
29466 # Check whether --enable-linker-build-id was given.
29467 if test "${enable_linker_build_id+set}" = set; then :
29468 enableval=$enable_linker_build_id;
29469 else
29470 enable_linker_build_id=no
29474 if test x"$enable_linker_build_id" = xyes; then
29475 if test x"$gcc_cv_ld_buildid" = xyes; then
29477 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
29479 else
29480 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
29481 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
29485 # In binutils 2.21, GNU ld gained support for new emulations fully
29486 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
29487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
29488 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
29489 if ${gcc_cv_ld_sol2_emulation+:} false; then :
29490 $as_echo_n "(cached) " >&6
29491 else
29492 gcc_cv_ld_sol2_emulation=no
29493 if test $in_tree_ld = yes ; then
29494 if test "$gcc_cv_gld_major_version" -eq 2 -a \
29495 "$gcc_cv_gld_minor_version" -ge 21 -o \
29496 "$gcc_cv_gld_major_version" -gt 2 \
29497 && test $in_tree_ld_is_elf = yes; then
29498 gcc_cv_ld_sol2_emulation=yes
29500 elif test x$gcc_cv_ld != x; then
29501 if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
29502 grep _sol2 > /dev/null; then
29503 gcc_cv_ld_sol2_emulation=yes
29507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
29508 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
29509 if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
29511 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
29515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
29516 $as_echo_n "checking linker --sysroot support... " >&6; }
29517 if ${gcc_cv_ld_sysroot+:} false; then :
29518 $as_echo_n "(cached) " >&6
29519 else
29520 gcc_cv_ld_sysroot=no
29521 if test $in_tree_ld = yes ; then
29522 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
29523 gcc_cv_ld_sysroot=yes
29525 elif test x$gcc_cv_ld != x; then
29526 if $gcc_cv_ld --help 2>&1 | grep sysroot > /dev/null; then
29527 gcc_cv_ld_sysroot=yes
29531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
29532 $as_echo "$gcc_cv_ld_sysroot" >&6; }
29533 if test x"$gcc_cv_ld_sysroot" = xyes; then
29535 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
29539 case $target in
29540 *-*-solaris2*)
29541 # Check for system-provided CRTs on Solaris 11.x and Solaris 12.
29542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking system-provided CRTs on Solaris" >&5
29543 $as_echo_n "checking system-provided CRTs on Solaris... " >&6; }
29544 if ${gcc_cv_solaris_crts+:} false; then :
29545 $as_echo_n "(cached) " >&6
29546 else
29547 gcc_cv_solaris_crts=no
29548 if test x$host != x$target; then
29549 if test "x$with_sysroot" = xyes; then
29550 target_sysroot="${test_exec_prefix}/${target_noncanonical}/sys-root"
29551 else
29552 target_sysroot="${with_sysroot}"
29555 target_libdir="$target_sysroot/usr/lib"
29556 # At the time they were added, gcrt1.o became a symlink for backwards
29557 # compatibility on x86, while crt1.o was added on sparc, so check for that.
29558 case $target in
29559 i?86-*-solaris2* | x86_64-*-solaris2*)
29560 if test -h "$target_libdir/gcrt1.o"; then gcc_cv_solaris_crts=yes; fi
29562 sparc*-*-solaris2*)
29563 if test -f "$target_libdir/crt1.o"; then gcc_cv_solaris_crts=yes; fi
29565 esac
29567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_solaris_crts" >&5
29568 $as_echo "$gcc_cv_solaris_crts" >&6; }
29570 esac
29571 if test x$gcc_cv_solaris_crts = xyes; then
29573 $as_echo "#define HAVE_SOLARIS_CRTS 1" >>confdefs.h
29577 # Check whether --enable-libssp was given.
29578 if test "${enable_libssp+set}" = set; then :
29579 enableval=$enable_libssp; case "${enableval}" in
29580 yes|no)
29583 as_fn_error $? "unknown libssp setting $enableval" "$LINENO" 5
29585 esac
29589 # Test for stack protector support in target C library.
29590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
29591 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
29592 if ${gcc_cv_libc_provides_ssp+:} false; then :
29593 $as_echo_n "(cached) " >&6
29594 else
29595 gcc_cv_libc_provides_ssp=no
29596 if test "x$enable_libssp" = "xno"; then
29597 gcc_cv_libc_provides_ssp=yes
29598 elif test "x$enable_libssp" = "xyes"; then
29599 gcc_cv_libc_provides_ssp=no
29600 else
29601 case "$target" in
29602 *-*-musl*)
29603 # All versions of musl provide stack protector
29604 gcc_cv_libc_provides_ssp=yes;;
29605 *-*-linux* | *-*-kfreebsd*-gnu)
29606 # glibc 2.4 and later provides __stack_chk_fail and
29607 # either __stack_chk_guard, or TLS access to stack guard canary.
29609 if test $glibc_version_major -gt 2 \
29610 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
29611 gcc_cv_libc_provides_ssp=yes
29612 else
29614 if test -f $target_header_dir/features.h \
29615 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
29616 $target_header_dir/features.h > /dev/null; then
29617 if $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
29618 $target_header_dir/features.h > /dev/null && \
29619 test -f $target_header_dir/bits/uClibc_config.h && \
29620 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
29621 $target_header_dir/bits/uClibc_config.h > /dev/null; then
29622 gcc_cv_libc_provides_ssp=yes
29624 # all versions of Bionic support stack protector
29625 elif test -f $target_header_dir/sys/cdefs.h \
29626 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
29627 $target_header_dir/sys/cdefs.h > /dev/null; then
29628 gcc_cv_libc_provides_ssp=yes
29632 *-*-gnu*)
29633 # Avoid complicated tests (see
29634 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
29635 # simply assert that glibc does provide this, which is true for all
29636 # realistically usable GNU/Hurd configurations.
29637 # All supported versions of musl provide it as well
29638 gcc_cv_libc_provides_ssp=yes;;
29639 *-*-darwin* | *-*-freebsd* | *-*-netbsd*)
29640 ac_fn_cxx_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
29641 if test "x$ac_cv_func___stack_chk_fail" = xyes; then :
29642 gcc_cv_libc_provides_ssp=yes
29643 else
29644 echo "no __stack_chk_fail on this target"
29648 *) gcc_cv_libc_provides_ssp=no ;;
29649 esac
29652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
29653 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
29655 if test x$gcc_cv_libc_provides_ssp = xyes; then
29657 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
29661 # Check whether --enable-default-ssp was given.
29662 # Check whether --enable-default-ssp was given.
29663 if test "${enable_default_ssp+set}" = set; then :
29664 enableval=$enable_default_ssp;
29665 if test x$gcc_cv_libc_provides_ssp = xyes; then
29666 case "$target" in
29667 ia64*-*-*) enable_default_ssp=no ;;
29668 *) enable_default_ssp=$enableval ;;
29669 esac
29670 else
29671 enable_default_ssp=no
29673 else
29674 enable_default_ssp=no
29677 if test x$enable_default_ssp = xyes ; then
29679 $as_echo "#define ENABLE_DEFAULT_SSP 1" >>confdefs.h
29684 # Test for <sys/sdt.h> on the target.
29686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
29687 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
29688 have_sys_sdt_h=no
29689 if test -f $target_header_dir/sys/sdt.h; then
29690 have_sys_sdt_h=yes
29692 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
29695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
29696 $as_echo "$have_sys_sdt_h" >&6; }
29698 # Check if TFmode long double should be used by default or not.
29699 # Some glibc targets used DFmode long double, but with glibc 2.4
29700 # and later they can use TFmode.
29701 case "$target" in
29702 powerpc*-*-linux* | \
29703 sparc*-*-linux* | \
29704 s390*-*-linux* | \
29705 alpha*-*-linux*)
29707 # Check whether --with-long-double-128 was given.
29708 if test "${with_long_double_128+set}" = set; then :
29709 withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
29710 else
29712 case "$target" in
29713 s390*-*-linux-musl*)
29714 gcc_cv_target_ldbl128=yes
29716 powerpc*-*-linux-musl*)
29717 gcc_cv_target_ldbl128=no
29721 if test $glibc_version_major -gt 2 \
29722 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
29723 gcc_cv_target_ldbl128=yes
29724 else
29726 gcc_cv_target_ldbl128=no
29727 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
29728 $target_header_dir/bits/wordsize.h > /dev/null 2>&1 \
29729 && gcc_cv_target_ldbl128=yes
29734 esac
29739 esac
29740 if test x$gcc_cv_target_ldbl128 = xyes; then
29742 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
29746 # Check if TFmode long double target should use the IBM extended double or IEEE
29747 # 128-bit floating point formats if long doubles are 128-bits long. The long
29748 # double type can only be switched on powerpc64 bit Linux systems where VSX is
29749 # supported. Other PowerPC systems do not build the IEEE 128-bit emulator in
29750 # libgcc.
29752 # Check whether --with-long-double-format was given.
29753 if test "${with_long_double_format+set}" = set; then :
29754 withval=$with_long_double_format;
29755 case "$target:$with_long_double_format" in
29756 powerpc64le-*-linux*:ieee | powerpc64le-*-linux*:ibm)
29759 powerpc64-*-linux*:ieee | powerpc64-*-linux*:ibm)
29760 # IEEE 128-bit emulation is only built on 64-bit VSX Linux systems
29761 case "$with_cpu" in
29762 power7 | power8 | power9 | power1*)
29766 as_fn_error $? "Configuration option --with-long-double-format is only \
29767 supported if the default cpu is power7 or newer" "$LINENO" 5
29768 with_long_double_format=""
29770 esac
29772 xpowerpc64*-*-linux*:*)
29773 as_fn_error $? "--with-long-double-format argument should be ibm or ieee" "$LINENO" 5
29774 with_long_double_format=""
29777 as_fn_error $? "Configure option --with-long-double-format is only supported \
29778 on 64-bit PowerPC VSX Linux systems" "$LINENO" 5
29779 with_long_double_format=""
29781 esac
29785 # Check if the target LIBC supports exporting the AT_PLATFORM and AT_HWCAP
29786 # values in the TCB. Currently, only GLIBC 2.23 and later support this.
29787 gcc_cv_libc_provides_hwcap_in_tcb=no
29788 case "$target" in
29789 powerpc*-*-linux*)
29791 if test $glibc_version_major -gt 2 \
29792 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 23 ); then :
29793 gcc_cv_libc_provides_hwcap_in_tcb=yes
29796 esac
29797 if test x$gcc_cv_libc_provides_hwcap_in_tcb = xyes; then
29799 $as_echo "#define TARGET_LIBC_PROVIDES_HWCAP_IN_TCB 1" >>confdefs.h
29803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
29804 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
29805 gcc_cv_target_dl_iterate_phdr=unknown
29806 case "$target" in
29807 *-*-solaris2*)
29808 # <link.h> needs both a dl_iterate_phdr declaration and support for
29809 # compilation with largefile support.
29810 if grep dl_iterate_phdr $target_header_dir/link.h > /dev/null 2>&1 \
29811 && grep 'large file capable' $target_header_dir/link.h > /dev/null 2>&1; then
29812 gcc_cv_target_dl_iterate_phdr=yes
29813 else
29814 gcc_cv_target_dl_iterate_phdr=no
29817 *-*-dragonfly* | *-*-freebsd*)
29818 if grep dl_iterate_phdr $target_header_dir/sys/link_elf.h > /dev/null 2>&1; then
29819 gcc_cv_target_dl_iterate_phdr=yes
29820 else
29821 gcc_cv_target_dl_iterate_phdr=no
29824 *-linux-musl*)
29825 gcc_cv_target_dl_iterate_phdr=yes
29827 esac
29829 if test x$gcc_cv_target_dl_iterate_phdr = xyes; then
29831 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
29834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
29835 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
29837 # We no longer support different GC mechanisms. Emit an error if
29838 # the user configures with --with-gc.
29840 # Check whether --with-gc was given.
29841 if test "${with_gc+set}" = set; then :
29842 withval=$with_gc; as_fn_error $? "Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
29846 # Libraries to use on the host. This will normally be set by the top
29847 # level Makefile. Here we simply capture the value for our Makefile.
29848 if test -z "${HOST_LIBS+set}"; then
29849 HOST_LIBS=
29853 # Use the system's zlib library.
29855 # Use the system's zlib library.
29856 zlibdir="-L\$(top_builddir)/../zlib"
29857 zlibinc="-I\$(top_srcdir)/../zlib"
29859 # Check whether --with-system-zlib was given.
29860 if test "${with_system_zlib+set}" = set; then :
29861 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
29862 zlibdir=
29863 zlibinc=
29873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
29874 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
29875 # Check whether --enable-maintainer-mode was given.
29876 if test "${enable_maintainer_mode+set}" = set; then :
29877 enableval=$enable_maintainer_mode; maintainer_mode=$enableval
29878 else
29879 maintainer_mode=no
29883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
29884 $as_echo "$maintainer_mode" >&6; }
29886 if test "$maintainer_mode" = "yes"; then
29887 MAINT=''
29888 else
29889 MAINT='#'
29893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid linking multiple front-ends at once" >&5
29894 $as_echo_n "checking whether to avoid linking multiple front-ends at once... " >&6; }
29895 # Check whether --enable-link-mutex was given.
29896 if test "${enable_link_mutex+set}" = set; then :
29897 enableval=$enable_link_mutex; do_link_mutex=$enableval
29898 else
29899 do_link_mutex=no
29902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_mutex" >&5
29903 $as_echo "$do_link_mutex" >&6; }
29905 if test "$do_link_mutex" = "yes"; then
29906 DO_LINK_MUTEX=true
29907 else
29908 DO_LINK_MUTEX=false
29912 # --------------
29913 # Language hooks
29914 # --------------
29916 # Make empty files to contain the specs and options for each language.
29917 # Then add #include lines to for a compiler that has specs and/or options.
29919 subdirs=
29920 lang_opt_files=
29921 lang_specs_files=
29922 lang_tree_files=
29923 # These (without "all_") are set in each config-lang.in.
29924 # `language' must be a single word so is spelled singularly.
29925 all_languages=
29926 all_compilers=
29927 all_outputs='Makefile'
29928 # List of language configure and makefile fragments.
29929 all_lang_configurefrags=
29930 all_lang_makefrags=
29931 # Additional files for gengtype
29932 all_gtfiles="$target_gtfiles"
29934 # These are the languages that are set in --enable-languages,
29935 # and are available in the GCC tree.
29936 all_selected_languages=
29938 # Add the language fragments.
29939 # Languages are added via two mechanisms. Some information must be
29940 # recorded in makefile variables, these are defined in config-lang.in.
29941 # We accumulate them and plug them into the main Makefile.
29942 # The other mechanism is a set of hooks for each of the main targets
29943 # like `clean', `install', etc.
29945 language_hooks="Make-hooks"
29947 for lang in ${srcdir}/*/config-lang.in
29949 test "$lang" = "${srcdir}/*/config-lang.in" && continue
29951 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
29952 if test "x$lang_alias" = x
29953 then
29954 echo "$lang doesn't set \$language." 1>&2
29955 exit 1
29957 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
29958 subdirs="$subdirs $subdir"
29960 # $gcc_subdir is where the gcc integration files are to be found
29961 # for a language, both for internal compiler purposes (compiler
29962 # sources implementing front-end to GCC tree converters), and for
29963 # build infrastructure purposes (Make-lang.in, etc.)
29965 # This will be <subdir> (relative to $srcdir) if a line like
29966 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
29967 # is found in <langdir>/config-lang.in, and will remain <langdir>
29968 # otherwise.
29970 # Except for the language alias (fetched above), the regular
29971 # "config-lang.in" contents are always retrieved from $gcc_subdir,
29972 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
29973 # only this and the language alias.
29975 gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
29976 if [ "$gcc_subdir" = "" ]; then
29977 gcc_subdir="$subdir"
29980 case ",$enable_languages," in
29981 *,$lang_alias,*)
29982 all_selected_languages="$all_selected_languages $lang_alias"
29983 if test -f $srcdir/$gcc_subdir/lang-specs.h; then
29984 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
29987 esac
29989 language=
29990 boot_language=
29991 compilers=
29992 outputs=
29993 gtfiles=
29994 subdir_requires=
29995 . ${srcdir}/$gcc_subdir/config-lang.in
29996 if test "x$language" = x
29997 then
29998 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
29999 exit 1
30002 ok=:
30003 case ",$enable_languages," in
30004 *,$lang_alias,*) ;;
30006 for i in $subdir_requires; do
30007 test -f "${srcdir}/$i/config-lang.in" && continue
30008 ok=false
30009 break
30010 done
30012 esac
30013 $ok || continue
30015 all_lang_configurefrags="$all_lang_configurefrags \$(srcdir)/$gcc_subdir/config-lang.in"
30016 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
30017 if test -f $srcdir/$gcc_subdir/lang.opt; then
30018 lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
30019 all_opt_files="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
30021 if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
30022 lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
30024 all_languages="$all_languages $language"
30025 all_compilers="$all_compilers $compilers"
30026 all_outputs="$all_outputs $outputs"
30027 all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
30028 case ",$enable_languages," in
30029 *,lto,*)
30031 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
30033 enable_lto=yes
30036 *) ;;
30037 esac
30038 done
30040 check_languages=
30041 for language in $all_selected_languages
30043 check_languages="$check_languages check-$language"
30044 done
30046 selftest_languages=
30047 for language in $all_selected_languages
30049 selftest_languages="$selftest_languages selftest-$language"
30050 done
30052 # We link each language in with a set of hooks, reached indirectly via
30053 # lang.${target}. Only do so for selected languages.
30055 rm -f Make-hooks
30056 touch Make-hooks
30057 target_list="all.cross start.encap rest.encap tags \
30058 install-common install-man install-info install-pdf install-html dvi \
30059 pdf html uninstall info man srcextra srcman srcinfo \
30060 mostlyclean clean distclean maintainer-clean install-plugin"
30062 for t in $target_list
30065 for lang in $all_selected_languages
30067 x="$x $lang.$t"
30068 done
30069 echo "lang.$t: $x" >> Make-hooks
30070 done
30072 # --------
30073 # Option include files
30074 # --------
30076 ${AWK} -f $srcdir/opt-include.awk $all_opt_files > option-includes.mk
30077 option_includes="option-includes.mk"
30080 # --------
30081 # UNSORTED
30082 # --------
30084 # Create .gdbinit.
30086 echo "dir ." > .gdbinit
30087 echo "dir ${srcdir}" >> .gdbinit
30088 if test x$gdb_needs_out_file_path = xyes
30089 then
30090 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
30092 if test "x$subdirs" != x; then
30093 for s in $subdirs
30095 echo "dir ${srcdir}/$s" >> .gdbinit
30096 done
30098 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
30099 echo "python import sys; sys.path.append('${srcdir}'); import gdbhooks" >> .gdbinit
30101 # Put a breakpoint on __asan_report_error to help with debugging buffer
30102 # overflow.
30103 case "$CFLAGS" in
30104 *-fsanitize=address*)
30105 echo "source ${srcdir}/gdbasan.in" >> .gdbinit
30107 esac
30109 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
30113 # Find a directory in which to install a shared libgcc.
30115 # Check whether --enable-version-specific-runtime-libs was given.
30116 if test "${enable_version_specific_runtime_libs+set}" = set; then :
30117 enableval=$enable_version_specific_runtime_libs;
30121 # Substitute configuration variables
30189 # Echo link setup.
30190 if test x${build} = x${host} ; then
30191 if test x${host} = x${target} ; then
30192 echo "Links are now set up to build a native compiler for ${target}." 1>&2
30193 else
30194 echo "Links are now set up to build a cross-compiler" 1>&2
30195 echo " from ${host} to ${target}." 1>&2
30197 else
30198 if test x${host} = x${target} ; then
30199 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
30200 echo " for ${target}." 1>&2
30201 else
30202 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
30203 echo " from ${host} to ${target}." 1>&2
30212 if test "x${ISLLIBS}" != "x" ; then
30214 $as_echo "#define HAVE_isl 1" >>confdefs.h
30218 # Check for plugin support
30219 # Check whether --enable-plugin was given.
30220 if test "${enable_plugin+set}" = set; then :
30221 enableval=$enable_plugin; enable_plugin=$enableval
30222 else
30223 enable_plugin=yes; default_plugin=yes
30227 pluginlibs=
30228 plugin_check=yes
30230 case "${host}" in
30231 *-*-mingw*)
30232 # Since plugin support under MinGW is not as straightforward as on
30233 # other platforms (e.g., we have to link import library, etc), we
30234 # only enable it if explicitly requested.
30235 if test x"$default_plugin" = x"yes"; then
30236 enable_plugin=no
30237 elif test x"$enable_plugin" = x"yes"; then
30238 # Use make's target variable to derive import library name.
30239 pluginlibs='-Wl,--export-all-symbols -Wl,--out-implib=$@.a'
30240 plugin_check=no
30243 *-*-darwin*)
30244 if test x$build = x$host; then
30245 export_sym_check="nm${exeext} -g"
30246 elif test x$host = x$target; then
30247 export_sym_check="$gcc_cv_nm -g"
30248 else
30249 export_sym_check=
30253 if test x$build = x$host; then
30254 export_sym_check="objdump${exeext} -T"
30255 elif test x$host = x$target; then
30256 export_sym_check="$gcc_cv_objdump -T"
30257 else
30258 export_sym_check=
30261 esac
30263 if test x"$enable_plugin" = x"yes" -a x"$plugin_check" = x"yes"; then
30265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
30266 $as_echo_n "checking for exported symbols... " >&6; }
30267 if test "x$export_sym_check" != x; then
30268 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
30269 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest$ac_exeext > /dev/null 2>&1
30270 if $export_sym_check conftest$ac_exeext | grep foobar > /dev/null; then
30271 : # No need to use a flag
30272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30273 $as_echo "yes" >&6; }
30274 else
30275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30276 $as_echo "yes" >&6; }
30277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
30278 $as_echo_n "checking for -rdynamic... " >&6; }
30279 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest$ac_exeext > /dev/null 2>&1
30280 if $export_sym_check conftest$ac_exeext | grep foobar > /dev/null; then
30281 plugin_rdynamic=yes
30282 pluginlibs="-rdynamic"
30283 else
30284 plugin_rdynamic=no
30285 enable_plugin=no
30287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
30288 $as_echo "$plugin_rdynamic" >&6; }
30290 else
30291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
30292 $as_echo "unable to check" >&6; }
30295 # Check -ldl
30296 saved_LIBS="$LIBS"
30297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
30298 $as_echo_n "checking for library containing dlopen... " >&6; }
30299 if ${ac_cv_search_dlopen+:} false; then :
30300 $as_echo_n "(cached) " >&6
30301 else
30302 ac_func_search_save_LIBS=$LIBS
30303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30304 /* end confdefs.h. */
30306 /* Override any GCC internal prototype to avoid an error.
30307 Use char because int might match the return type of a GCC
30308 builtin and then its argument prototype would still apply. */
30309 #ifdef __cplusplus
30310 extern "C"
30311 #endif
30312 char dlopen ();
30314 main ()
30316 return dlopen ();
30318 return 0;
30320 _ACEOF
30321 for ac_lib in '' dl; do
30322 if test -z "$ac_lib"; then
30323 ac_res="none required"
30324 else
30325 ac_res=-l$ac_lib
30326 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
30328 if ac_fn_cxx_try_link "$LINENO"; then :
30329 ac_cv_search_dlopen=$ac_res
30331 rm -f core conftest.err conftest.$ac_objext \
30332 conftest$ac_exeext
30333 if ${ac_cv_search_dlopen+:} false; then :
30334 break
30336 done
30337 if ${ac_cv_search_dlopen+:} false; then :
30339 else
30340 ac_cv_search_dlopen=no
30342 rm conftest.$ac_ext
30343 LIBS=$ac_func_search_save_LIBS
30345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
30346 $as_echo "$ac_cv_search_dlopen" >&6; }
30347 ac_res=$ac_cv_search_dlopen
30348 if test "$ac_res" != no; then :
30349 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
30353 if test x"$ac_cv_search_dlopen" = x"-ldl"; then
30354 pluginlibs="$pluginlibs -ldl"
30356 LIBS="$saved_LIBS"
30358 # Check that we can build shared objects with -fPIC -shared
30359 saved_LDFLAGS="$LDFLAGS"
30360 saved_CFLAGS="$CFLAGS"
30361 case "${host}" in
30362 *-*-darwin*)
30363 CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
30364 CFLAGS="$CFLAGS -fPIC"
30365 LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
30368 CFLAGS="$CFLAGS -fPIC"
30369 LDFLAGS="$LDFLAGS -fPIC -shared"
30371 esac
30372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
30373 $as_echo_n "checking for -fPIC -shared... " >&6; }
30374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30375 /* end confdefs.h. */
30376 extern int X;
30378 main ()
30380 return X == 0;
30382 return 0;
30384 _ACEOF
30385 if ac_fn_cxx_try_link "$LINENO"; then :
30386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30387 $as_echo "yes" >&6; }; have_pic_shared=yes
30388 else
30389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30390 $as_echo "no" >&6; }; have_pic_shared=no
30392 rm -f core conftest.err conftest.$ac_objext \
30393 conftest$ac_exeext conftest.$ac_ext
30394 if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
30395 pluginlibs=
30396 enable_plugin=no
30398 LDFLAGS="$saved_LDFLAGS"
30399 CFLAGS="$saved_CFLAGS"
30401 # If plugin support had been requested but not available, fail.
30402 if test x"$enable_plugin" = x"no" ; then
30403 if test x"$default_plugin" != x"yes"; then
30404 as_fn_error $? "
30405 Building GCC with plugin support requires a host that supports
30406 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
30413 if test x"$enable_plugin" = x"yes"; then
30415 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
30420 # Enable --enable-host-shared
30421 # Check whether --enable-host-shared was given.
30422 if test "${enable_host_shared+set}" = set; then :
30423 enableval=$enable_host_shared; PICFLAG=-fPIC
30424 else
30425 PICFLAG=
30432 # Check whether --enable-libquadmath-support was given.
30433 if test "${enable_libquadmath_support+set}" = set; then :
30434 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
30435 else
30436 ENABLE_LIBQUADMATH_SUPPORT=yes
30439 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
30441 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
30446 # Specify what hash style to use by default.
30448 # Check whether --with-linker-hash-style was given.
30449 if test "${with_linker_hash_style+set}" = set; then :
30450 withval=$with_linker_hash_style; case x"$withval" in
30451 xsysv)
30452 LINKER_HASH_STYLE=sysv
30454 xgnu)
30455 LINKER_HASH_STYLE=gnu
30457 xboth)
30458 LINKER_HASH_STYLE=both
30461 as_fn_error $? "$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
30463 esac
30464 else
30465 LINKER_HASH_STYLE=''
30468 if test x"${LINKER_HASH_STYLE}" != x; then
30470 cat >>confdefs.h <<_ACEOF
30471 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
30472 _ACEOF
30476 # Specify what should be the default of -fdiagnostics-color option.
30478 # Check whether --with-diagnostics-color was given.
30479 if test "${with_diagnostics_color+set}" = set; then :
30480 withval=$with_diagnostics_color; case x"$withval" in
30481 xnever)
30482 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_NO
30484 xauto)
30485 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO
30487 xauto-if-env)
30488 DIAGNOSTICS_COLOR_DEFAULT=-1
30490 xalways)
30491 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_YES
30494 as_fn_error $? "$withval is an invalid option to --with-diagnostics-color" "$LINENO" 5
30496 esac
30497 else
30498 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO
30502 cat >>confdefs.h <<_ACEOF
30503 #define DIAGNOSTICS_COLOR_DEFAULT $DIAGNOSTICS_COLOR_DEFAULT
30504 _ACEOF
30507 # Generate gcc-driver-name.h containing GCC_DRIVER_NAME for the benefit
30508 # of jit/jit-playback.c.
30509 gcc_driver_version=`eval "${get_gcc_base_ver} $srcdir/BASE-VER"`
30510 echo "gcc_driver_version: ${gcc_driver_version}"
30511 cat > gcc-driver-name.h <<EOF
30512 #define GCC_DRIVER_NAME "${target_noncanonical}-gcc-${gcc_driver_version}${exeext}"
30515 # Check whether --enable-default-pie was given.
30516 # Check whether --enable-default-pie was given.
30517 if test "${enable_default_pie+set}" = set; then :
30518 enableval=$enable_default_pie; enable_default_pie=$enableval
30519 else
30520 enable_default_pie=no
30523 if test x$enable_default_pie = xyes ; then
30525 $as_echo "#define ENABLE_DEFAULT_PIE 1" >>confdefs.h
30530 # Check if -fno-PIE works.
30531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fno-PIE option" >&5
30532 $as_echo_n "checking for -fno-PIE option... " >&6; }
30533 if ${gcc_cv_c_no_fpie+:} false; then :
30534 $as_echo_n "(cached) " >&6
30535 else
30536 saved_CXXFLAGS="$CXXFLAGS"
30537 CXXFLAGS="$CXXFLAGS -fno-PIE"
30538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30539 /* end confdefs.h. */
30540 int main(void) {return 0;}
30541 _ACEOF
30542 if ac_fn_cxx_try_compile "$LINENO"; then :
30543 gcc_cv_c_no_fpie=yes
30544 else
30545 gcc_cv_c_no_fpie=no
30547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30548 CXXFLAGS="$saved_CXXFLAGS"
30550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_no_fpie" >&5
30551 $as_echo "$gcc_cv_c_no_fpie" >&6; }
30552 if test "$gcc_cv_c_no_fpie" = "yes"; then
30553 NO_PIE_CFLAGS="-fno-PIE"
30557 # Check if -no-pie works.
30558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -no-pie option" >&5
30559 $as_echo_n "checking for -no-pie option... " >&6; }
30560 if ${gcc_cv_no_pie+:} false; then :
30561 $as_echo_n "(cached) " >&6
30562 else
30563 saved_LDFLAGS="$LDFLAGS"
30564 LDFLAGS="$LDFLAGS -no-pie"
30565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30566 /* end confdefs.h. */
30567 int main(void) {return 0;}
30568 _ACEOF
30569 if ac_fn_cxx_try_link "$LINENO"; then :
30570 gcc_cv_no_pie=yes
30571 else
30572 gcc_cv_no_pie=no
30574 rm -f core conftest.err conftest.$ac_objext \
30575 conftest$ac_exeext conftest.$ac_ext
30576 LDFLAGS="$saved_LDFLAGS"
30578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_no_pie" >&5
30579 $as_echo "$gcc_cv_no_pie" >&6; }
30580 if test "$gcc_cv_no_pie" = "yes"; then
30581 NO_PIE_FLAG="-no-pie"
30585 # Check linker supports '-z bndplt'
30586 ld_bndplt_support=no
30587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -z bndplt option" >&5
30588 $as_echo_n "checking linker -z bndplt option... " >&6; }
30589 if test x"$ld_is_gold" = xno; then
30590 if test $in_tree_ld = yes ; then
30591 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
30592 ld_bndplt_support=yes
30594 elif test x$gcc_cv_ld != x; then
30595 # Check if linker supports -a bndplt option
30596 if $gcc_cv_ld --help 2>&1 | grep -- '-z bndplt' > /dev/null; then
30597 ld_bndplt_support=yes
30601 if test x"$ld_bndplt_support" = xyes; then
30603 $as_echo "#define HAVE_LD_BNDPLT_SUPPORT 1" >>confdefs.h
30606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_bndplt_support" >&5
30607 $as_echo "$ld_bndplt_support" >&6; }
30609 # Check linker supports '--push-state'/'--pop-state'
30610 ld_pushpopstate_support=no
30611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --push-state/--pop-state options" >&5
30612 $as_echo_n "checking linker --push-state/--pop-state options... " >&6; }
30613 if test x"$ld_is_gold" = xno; then
30614 if test $in_tree_ld = yes ; then
30615 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
30616 ld_pushpopstate_support=yes
30618 elif test x$gcc_cv_ld != x; then
30619 # Check if linker supports --push-state/--pop-state options
30620 if $gcc_cv_ld --help 2>&1 | grep -- '--push-state' > /dev/null; then
30621 ld_pushpopstate_support=yes
30625 if test x"$ld_pushpopstate_support" = xyes; then
30627 $as_echo "#define HAVE_LD_PUSHPOPSTATE_SUPPORT 1" >>confdefs.h
30630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_pushpopstate_support" >&5
30631 $as_echo "$ld_pushpopstate_support" >&6; }
30633 # Configure the subdirectories
30634 # AC_CONFIG_SUBDIRS($subdirs)
30636 # Create the Makefile
30637 # and configure language subdirectories
30638 ac_config_files="$ac_config_files $all_outputs"
30641 ac_config_commands="$ac_config_commands default"
30643 cat >confcache <<\_ACEOF
30644 # This file is a shell script that caches the results of configure
30645 # tests run on this system so they can be shared between configure
30646 # scripts and configure runs, see configure's option --config-cache.
30647 # It is not useful on other systems. If it contains results you don't
30648 # want to keep, you may remove or edit it.
30650 # config.status only pays attention to the cache file if you give it
30651 # the --recheck option to rerun configure.
30653 # `ac_cv_env_foo' variables (set or unset) will be overridden when
30654 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30655 # following values.
30657 _ACEOF
30659 # The following way of writing the cache mishandles newlines in values,
30660 # but we know of no workaround that is simple, portable, and efficient.
30661 # So, we kill variables containing newlines.
30662 # Ultrix sh set writes to stderr and can't be redirected directly,
30663 # and sets the high bit in the cache file unless we assign to the vars.
30665 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
30666 eval ac_val=\$$ac_var
30667 case $ac_val in #(
30668 *${as_nl}*)
30669 case $ac_var in #(
30670 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
30671 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
30672 esac
30673 case $ac_var in #(
30674 _ | IFS | as_nl) ;; #(
30675 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
30676 *) { eval $ac_var=; unset $ac_var;} ;;
30677 esac ;;
30678 esac
30679 done
30681 (set) 2>&1 |
30682 case $as_nl`(ac_space=' '; set) 2>&1` in #(
30683 *${as_nl}ac_space=\ *)
30684 # `set' does not quote correctly, so add quotes: double-quote
30685 # substitution turns \\\\ into \\, and sed turns \\ into \.
30686 sed -n \
30687 "s/'/'\\\\''/g;
30688 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30689 ;; #(
30691 # `set' quotes correctly as required by POSIX, so do not add quotes.
30692 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
30694 esac |
30695 sort
30697 sed '
30698 /^ac_cv_env_/b end
30699 t clear
30700 :clear
30701 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30702 t end
30703 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30704 :end' >>confcache
30705 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
30706 if test -w "$cache_file"; then
30707 if test "x$cache_file" != "x/dev/null"; then
30708 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
30709 $as_echo "$as_me: updating cache $cache_file" >&6;}
30710 if test ! -f "$cache_file" || test -h "$cache_file"; then
30711 cat confcache >"$cache_file"
30712 else
30713 case $cache_file in #(
30714 */* | ?:*)
30715 mv -f confcache "$cache_file"$$ &&
30716 mv -f "$cache_file"$$ "$cache_file" ;; #(
30718 mv -f confcache "$cache_file" ;;
30719 esac
30722 else
30723 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
30724 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
30727 rm -f confcache
30729 test "x$prefix" = xNONE && prefix=$ac_default_prefix
30730 # Let make expand exec_prefix.
30731 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30733 DEFS=-DHAVE_CONFIG_H
30735 ac_libobjs=
30736 ac_ltlibobjs=
30738 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30739 # 1. Remove the extension, and $U if already installed.
30740 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
30741 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
30742 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
30743 # will be set to the directory where LIBOBJS objects are built.
30744 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
30745 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
30746 done
30747 LIBOBJS=$ac_libobjs
30749 LTLIBOBJS=$ac_ltlibobjs
30754 : "${CONFIG_STATUS=./config.status}"
30755 ac_write_fail=0
30756 ac_clean_files_save=$ac_clean_files
30757 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30758 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
30759 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
30760 as_write_fail=0
30761 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
30762 #! $SHELL
30763 # Generated by $as_me.
30764 # Run this file to recreate the current configuration.
30765 # Compiler output produced by configure, useful for debugging
30766 # configure, is in config.log if it exists.
30768 debug=false
30769 ac_cs_recheck=false
30770 ac_cs_silent=false
30772 SHELL=\${CONFIG_SHELL-$SHELL}
30773 export SHELL
30774 _ASEOF
30775 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
30776 ## -------------------- ##
30777 ## M4sh Initialization. ##
30778 ## -------------------- ##
30780 # Be more Bourne compatible
30781 DUALCASE=1; export DUALCASE # for MKS sh
30782 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
30783 emulate sh
30784 NULLCMD=:
30785 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
30786 # is contrary to our usage. Disable this feature.
30787 alias -g '${1+"$@"}'='"$@"'
30788 setopt NO_GLOB_SUBST
30789 else
30790 case `(set -o) 2>/dev/null` in #(
30791 *posix*) :
30792 set -o posix ;; #(
30793 *) :
30795 esac
30799 as_nl='
30801 export as_nl
30802 # Printing a long string crashes Solaris 7 /usr/bin/printf.
30803 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
30804 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
30805 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
30806 # Prefer a ksh shell builtin over an external printf program on Solaris,
30807 # but without wasting forks for bash or zsh.
30808 if test -z "$BASH_VERSION$ZSH_VERSION" \
30809 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
30810 as_echo='print -r --'
30811 as_echo_n='print -rn --'
30812 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
30813 as_echo='printf %s\n'
30814 as_echo_n='printf %s'
30815 else
30816 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
30817 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
30818 as_echo_n='/usr/ucb/echo -n'
30819 else
30820 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
30821 as_echo_n_body='eval
30822 arg=$1;
30823 case $arg in #(
30824 *"$as_nl"*)
30825 expr "X$arg" : "X\\(.*\\)$as_nl";
30826 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
30827 esac;
30828 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
30830 export as_echo_n_body
30831 as_echo_n='sh -c $as_echo_n_body as_echo'
30833 export as_echo_body
30834 as_echo='sh -c $as_echo_body as_echo'
30837 # The user is always right.
30838 if test "${PATH_SEPARATOR+set}" != set; then
30839 PATH_SEPARATOR=:
30840 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
30841 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
30842 PATH_SEPARATOR=';'
30847 # IFS
30848 # We need space, tab and new line, in precisely that order. Quoting is
30849 # there to prevent editors from complaining about space-tab.
30850 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
30851 # splitting by setting IFS to empty value.)
30852 IFS=" "" $as_nl"
30854 # Find who we are. Look in the path if we contain no directory separator.
30855 as_myself=
30856 case $0 in #((
30857 *[\\/]* ) as_myself=$0 ;;
30858 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30859 for as_dir in $PATH
30861 IFS=$as_save_IFS
30862 test -z "$as_dir" && as_dir=.
30863 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30864 done
30865 IFS=$as_save_IFS
30868 esac
30869 # We did not find ourselves, most probably we were run as `sh COMMAND'
30870 # in which case we are not to be found in the path.
30871 if test "x$as_myself" = x; then
30872 as_myself=$0
30874 if test ! -f "$as_myself"; then
30875 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
30876 exit 1
30879 # Unset variables that we do not need and which cause bugs (e.g. in
30880 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
30881 # suppresses any "Segmentation fault" message there. '((' could
30882 # trigger a bug in pdksh 5.2.14.
30883 for as_var in BASH_ENV ENV MAIL MAILPATH
30884 do eval test x\${$as_var+set} = xset \
30885 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
30886 done
30887 PS1='$ '
30888 PS2='> '
30889 PS4='+ '
30891 # NLS nuisances.
30892 LC_ALL=C
30893 export LC_ALL
30894 LANGUAGE=C
30895 export LANGUAGE
30897 # CDPATH.
30898 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
30901 # as_fn_error STATUS ERROR [LINENO LOG_FD]
30902 # ----------------------------------------
30903 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
30904 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
30905 # script with STATUS, using 1 if that was 0.
30906 as_fn_error ()
30908 as_status=$1; test $as_status -eq 0 && as_status=1
30909 if test "$4"; then
30910 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
30911 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
30913 $as_echo "$as_me: error: $2" >&2
30914 as_fn_exit $as_status
30915 } # as_fn_error
30918 # as_fn_set_status STATUS
30919 # -----------------------
30920 # Set $? to STATUS, without forking.
30921 as_fn_set_status ()
30923 return $1
30924 } # as_fn_set_status
30926 # as_fn_exit STATUS
30927 # -----------------
30928 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
30929 as_fn_exit ()
30931 set +e
30932 as_fn_set_status $1
30933 exit $1
30934 } # as_fn_exit
30936 # as_fn_unset VAR
30937 # ---------------
30938 # Portably unset VAR.
30939 as_fn_unset ()
30941 { eval $1=; unset $1;}
30943 as_unset=as_fn_unset
30944 # as_fn_append VAR VALUE
30945 # ----------------------
30946 # Append the text in VALUE to the end of the definition contained in VAR. Take
30947 # advantage of any shell optimizations that allow amortized linear growth over
30948 # repeated appends, instead of the typical quadratic growth present in naive
30949 # implementations.
30950 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
30951 eval 'as_fn_append ()
30953 eval $1+=\$2
30955 else
30956 as_fn_append ()
30958 eval $1=\$$1\$2
30960 fi # as_fn_append
30962 # as_fn_arith ARG...
30963 # ------------------
30964 # Perform arithmetic evaluation on the ARGs, and store the result in the
30965 # global $as_val. Take advantage of shells that can avoid forks. The arguments
30966 # must be portable across $(()) and expr.
30967 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
30968 eval 'as_fn_arith ()
30970 as_val=$(( $* ))
30972 else
30973 as_fn_arith ()
30975 as_val=`expr "$@" || test $? -eq 1`
30977 fi # as_fn_arith
30980 if expr a : '\(a\)' >/dev/null 2>&1 &&
30981 test "X`expr 00001 : '.*\(...\)'`" = X001; then
30982 as_expr=expr
30983 else
30984 as_expr=false
30987 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
30988 as_basename=basename
30989 else
30990 as_basename=false
30993 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
30994 as_dirname=dirname
30995 else
30996 as_dirname=false
30999 as_me=`$as_basename -- "$0" ||
31000 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
31001 X"$0" : 'X\(//\)$' \| \
31002 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
31003 $as_echo X/"$0" |
31004 sed '/^.*\/\([^/][^/]*\)\/*$/{
31005 s//\1/
31008 /^X\/\(\/\/\)$/{
31009 s//\1/
31012 /^X\/\(\/\).*/{
31013 s//\1/
31016 s/.*/./; q'`
31018 # Avoid depending upon Character Ranges.
31019 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
31020 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
31021 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
31022 as_cr_digits='0123456789'
31023 as_cr_alnum=$as_cr_Letters$as_cr_digits
31025 ECHO_C= ECHO_N= ECHO_T=
31026 case `echo -n x` in #(((((
31027 -n*)
31028 case `echo 'xy\c'` in
31029 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
31030 xy) ECHO_C='\c';;
31031 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
31032 ECHO_T=' ';;
31033 esac;;
31035 ECHO_N='-n';;
31036 esac
31038 rm -f conf$$ conf$$.exe conf$$.file
31039 if test -d conf$$.dir; then
31040 rm -f conf$$.dir/conf$$.file
31041 else
31042 rm -f conf$$.dir
31043 mkdir conf$$.dir 2>/dev/null
31045 if (echo >conf$$.file) 2>/dev/null; then
31046 if ln -s conf$$.file conf$$ 2>/dev/null; then
31047 as_ln_s='ln -s'
31048 # ... but there are two gotchas:
31049 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
31050 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
31051 # In both cases, we have to default to `cp -pR'.
31052 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
31053 as_ln_s='cp -pR'
31054 elif ln conf$$.file conf$$ 2>/dev/null; then
31055 as_ln_s=ln
31056 else
31057 as_ln_s='cp -pR'
31059 else
31060 as_ln_s='cp -pR'
31062 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
31063 rmdir conf$$.dir 2>/dev/null
31066 # as_fn_mkdir_p
31067 # -------------
31068 # Create "$as_dir" as a directory, including parents if necessary.
31069 as_fn_mkdir_p ()
31072 case $as_dir in #(
31073 -*) as_dir=./$as_dir;;
31074 esac
31075 test -d "$as_dir" || eval $as_mkdir_p || {
31076 as_dirs=
31077 while :; do
31078 case $as_dir in #(
31079 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
31080 *) as_qdir=$as_dir;;
31081 esac
31082 as_dirs="'$as_qdir' $as_dirs"
31083 as_dir=`$as_dirname -- "$as_dir" ||
31084 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31085 X"$as_dir" : 'X\(//\)[^/]' \| \
31086 X"$as_dir" : 'X\(//\)$' \| \
31087 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31088 $as_echo X"$as_dir" |
31089 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31090 s//\1/
31093 /^X\(\/\/\)[^/].*/{
31094 s//\1/
31097 /^X\(\/\/\)$/{
31098 s//\1/
31101 /^X\(\/\).*/{
31102 s//\1/
31105 s/.*/./; q'`
31106 test -d "$as_dir" && break
31107 done
31108 test -z "$as_dirs" || eval "mkdir $as_dirs"
31109 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
31112 } # as_fn_mkdir_p
31113 if mkdir -p . 2>/dev/null; then
31114 as_mkdir_p='mkdir -p "$as_dir"'
31115 else
31116 test -d ./-p && rmdir ./-p
31117 as_mkdir_p=false
31121 # as_fn_executable_p FILE
31122 # -----------------------
31123 # Test if FILE is an executable regular file.
31124 as_fn_executable_p ()
31126 test -f "$1" && test -x "$1"
31127 } # as_fn_executable_p
31128 as_test_x='test -x'
31129 as_executable_p=as_fn_executable_p
31131 # Sed expression to map a string onto a valid CPP name.
31132 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
31134 # Sed expression to map a string onto a valid variable name.
31135 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
31138 exec 6>&1
31139 ## ----------------------------------- ##
31140 ## Main body of $CONFIG_STATUS script. ##
31141 ## ----------------------------------- ##
31142 _ASEOF
31143 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
31145 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31146 # Save the log message, to keep $0 and so on meaningful, and to
31147 # report actual input values of CONFIG_FILES etc. instead of their
31148 # values after options handling.
31149 ac_log="
31150 This file was extended by $as_me, which was
31151 generated by GNU Autoconf 2.69. Invocation command line was
31153 CONFIG_FILES = $CONFIG_FILES
31154 CONFIG_HEADERS = $CONFIG_HEADERS
31155 CONFIG_LINKS = $CONFIG_LINKS
31156 CONFIG_COMMANDS = $CONFIG_COMMANDS
31157 $ $0 $@
31159 on `(hostname || uname -n) 2>/dev/null | sed 1q`
31162 _ACEOF
31164 case $ac_config_files in *"
31165 "*) set x $ac_config_files; shift; ac_config_files=$*;;
31166 esac
31168 case $ac_config_headers in *"
31169 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
31170 esac
31173 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31174 # Files that config.status was made for.
31175 config_files="$ac_config_files"
31176 config_headers="$ac_config_headers"
31177 config_links="$ac_config_links"
31178 config_commands="$ac_config_commands"
31180 _ACEOF
31182 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31183 ac_cs_usage="\
31184 \`$as_me' instantiates files and other configuration actions
31185 from templates according to the current configuration. Unless the files
31186 and actions are specified as TAGs, all are instantiated by default.
31188 Usage: $0 [OPTION]... [TAG]...
31190 -h, --help print this help, then exit
31191 -V, --version print version number and configuration settings, then exit
31192 --config print configuration, then exit
31193 -q, --quiet, --silent
31194 do not print progress messages
31195 -d, --debug don't remove temporary files
31196 --recheck update $as_me by reconfiguring in the same conditions
31197 --file=FILE[:TEMPLATE]
31198 instantiate the configuration file FILE
31199 --header=FILE[:TEMPLATE]
31200 instantiate the configuration header FILE
31202 Configuration files:
31203 $config_files
31205 Configuration headers:
31206 $config_headers
31208 Configuration links:
31209 $config_links
31211 Configuration commands:
31212 $config_commands
31214 Report bugs to the package provider."
31216 _ACEOF
31217 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31218 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
31219 ac_cs_version="\\
31220 config.status
31221 configured by $0, generated by GNU Autoconf 2.69,
31222 with options \\"\$ac_cs_config\\"
31224 Copyright (C) 2012 Free Software Foundation, Inc.
31225 This config.status script is free software; the Free Software Foundation
31226 gives unlimited permission to copy, distribute and modify it."
31228 ac_pwd='$ac_pwd'
31229 srcdir='$srcdir'
31230 AWK='$AWK'
31231 test -n "\$AWK" || AWK=awk
31232 _ACEOF
31234 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31235 # The default lists apply if the user does not specify any file.
31236 ac_need_defaults=:
31237 while test $# != 0
31239 case $1 in
31240 --*=?*)
31241 ac_option=`expr "X$1" : 'X\([^=]*\)='`
31242 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
31243 ac_shift=:
31245 --*=)
31246 ac_option=`expr "X$1" : 'X\([^=]*\)='`
31247 ac_optarg=
31248 ac_shift=:
31251 ac_option=$1
31252 ac_optarg=$2
31253 ac_shift=shift
31255 esac
31257 case $ac_option in
31258 # Handling of the options.
31259 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
31260 ac_cs_recheck=: ;;
31261 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
31262 $as_echo "$ac_cs_version"; exit ;;
31263 --config | --confi | --conf | --con | --co | --c )
31264 $as_echo "$ac_cs_config"; exit ;;
31265 --debug | --debu | --deb | --de | --d | -d )
31266 debug=: ;;
31267 --file | --fil | --fi | --f )
31268 $ac_shift
31269 case $ac_optarg in
31270 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31271 '') as_fn_error $? "missing file argument" ;;
31272 esac
31273 as_fn_append CONFIG_FILES " '$ac_optarg'"
31274 ac_need_defaults=false;;
31275 --header | --heade | --head | --hea )
31276 $ac_shift
31277 case $ac_optarg in
31278 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31279 esac
31280 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
31281 ac_need_defaults=false;;
31282 --he | --h)
31283 # Conflict between --help and --header
31284 as_fn_error $? "ambiguous option: \`$1'
31285 Try \`$0 --help' for more information.";;
31286 --help | --hel | -h )
31287 $as_echo "$ac_cs_usage"; exit ;;
31288 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
31289 | -silent | --silent | --silen | --sile | --sil | --si | --s)
31290 ac_cs_silent=: ;;
31292 # This is an error.
31293 -*) as_fn_error $? "unrecognized option: \`$1'
31294 Try \`$0 --help' for more information." ;;
31296 *) as_fn_append ac_config_targets " $1"
31297 ac_need_defaults=false ;;
31299 esac
31300 shift
31301 done
31303 ac_configure_extra_args=
31305 if $ac_cs_silent; then
31306 exec 6>/dev/null
31307 ac_configure_extra_args="$ac_configure_extra_args --silent"
31310 _ACEOF
31311 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31312 if \$ac_cs_recheck; then
31313 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31314 shift
31315 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
31316 CONFIG_SHELL='$SHELL'
31317 export CONFIG_SHELL
31318 exec "\$@"
31321 _ACEOF
31322 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31323 exec 5>>config.log
31325 echo
31326 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
31327 ## Running $as_me. ##
31328 _ASBOX
31329 $as_echo "$ac_log"
31330 } >&5
31332 _ACEOF
31333 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31335 # INIT-COMMANDS
31337 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
31338 subdirs="$subdirs" ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
31339 subdirs='$subdirs'
31341 _ACEOF
31343 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31345 # Handling of arguments.
31346 for ac_config_target in $ac_config_targets
31348 case $ac_config_target in
31349 "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
31350 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
31351 "gccdepdir") CONFIG_COMMANDS="$CONFIG_COMMANDS gccdepdir" ;;
31352 "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
31353 "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
31354 "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
31355 "clearcap.map") CONFIG_LINKS="$CONFIG_LINKS clearcap.map:${srcdir}/config/$clearcap_map" ;;
31356 "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
31357 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
31359 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
31360 esac
31361 done
31364 # If the user did not use the arguments to specify the items to instantiate,
31365 # then the envvar interface is used. Set only those that are not.
31366 # We use the long form for the default assignment because of an extremely
31367 # bizarre bug on SunOS 4.1.3.
31368 if $ac_need_defaults; then
31369 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
31370 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
31371 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
31372 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
31375 # Have a temporary directory for convenience. Make it in the build tree
31376 # simply because there is no reason against having it here, and in addition,
31377 # creating and moving files from /tmp can sometimes cause problems.
31378 # Hook for its removal unless debugging.
31379 # Note that there is a small window in which the directory will not be cleaned:
31380 # after its creation but before its name has been assigned to `$tmp'.
31381 $debug ||
31383 tmp= ac_tmp=
31384 trap 'exit_status=$?
31385 : "${ac_tmp:=$tmp}"
31386 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
31388 trap 'as_fn_exit 1' 1 2 13 15
31390 # Create a (secure) tmp directory for tmp files.
31393 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
31394 test -d "$tmp"
31395 } ||
31397 tmp=./conf$$-$RANDOM
31398 (umask 077 && mkdir "$tmp")
31399 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
31400 ac_tmp=$tmp
31402 # Set up the scripts for CONFIG_FILES section.
31403 # No need to generate them if there are no CONFIG_FILES.
31404 # This happens for instance with `./config.status config.h'.
31405 if test -n "$CONFIG_FILES"; then
31407 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
31408 ac_cs_awk_getline=:
31409 ac_cs_awk_pipe_init=
31410 ac_cs_awk_read_file='
31411 while ((getline aline < (F[key])) > 0)
31412 print(aline)
31413 close(F[key])'
31414 ac_cs_awk_pipe_fini=
31415 else
31416 ac_cs_awk_getline=false
31417 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
31418 ac_cs_awk_read_file='
31419 print "|#_!!_#|"
31420 print "cat " F[key] " &&"
31421 '$ac_cs_awk_pipe_init
31422 # The final `:' finishes the AND list.
31423 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
31425 ac_cr=`echo X | tr X '\015'`
31426 # On cygwin, bash can eat \r inside `` if the user requested igncr.
31427 # But we know of no other shell where ac_cr would be empty at this
31428 # point, so we can use a bashism as a fallback.
31429 if test "x$ac_cr" = x; then
31430 eval ac_cr=\$\'\\r\'
31432 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
31433 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
31434 ac_cs_awk_cr='\\r'
31435 else
31436 ac_cs_awk_cr=$ac_cr
31439 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
31440 _ACEOF
31442 # Create commands to substitute file output variables.
31444 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
31445 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
31446 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
31447 echo "_ACAWK" &&
31448 echo "_ACEOF"
31449 } >conf$$files.sh &&
31450 . ./conf$$files.sh ||
31451 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
31452 rm -f conf$$files.sh
31455 echo "cat >conf$$subs.awk <<_ACEOF" &&
31456 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
31457 echo "_ACEOF"
31458 } >conf$$subs.sh ||
31459 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
31460 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
31461 ac_delim='%!_!# '
31462 for ac_last_try in false false false false false :; do
31463 . ./conf$$subs.sh ||
31464 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
31466 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
31467 if test $ac_delim_n = $ac_delim_num; then
31468 break
31469 elif $ac_last_try; then
31470 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
31471 else
31472 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31474 done
31475 rm -f conf$$subs.sh
31477 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31478 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
31479 _ACEOF
31480 sed -n '
31482 s/^/S["/; s/!.*/"]=/
31485 s/^[^!]*!//
31486 :repl
31487 t repl
31488 s/'"$ac_delim"'$//
31489 t delim
31492 s/\(.\{148\}\)..*/\1/
31493 t more1
31494 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
31497 b repl
31498 :more1
31499 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
31502 s/.\{148\}//
31503 t nl
31504 :delim
31506 s/\(.\{148\}\)..*/\1/
31507 t more2
31508 s/["\\]/\\&/g; s/^/"/; s/$/"/
31511 :more2
31512 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
31515 s/.\{148\}//
31516 t delim
31517 ' <conf$$subs.awk | sed '
31518 /^[^""]/{
31520 s/\n//
31522 ' >>$CONFIG_STATUS || ac_write_fail=1
31523 rm -f conf$$subs.awk
31524 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31525 _ACAWK
31526 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
31527 for (key in S) S_is_set[key] = 1
31528 FS = "\a"
31529 \$ac_cs_awk_pipe_init
31532 line = $ 0
31533 nfields = split(line, field, "@")
31534 substed = 0
31535 len = length(field[1])
31536 for (i = 2; i < nfields; i++) {
31537 key = field[i]
31538 keylen = length(key)
31539 if (S_is_set[key]) {
31540 value = S[key]
31541 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
31542 len += length(value) + length(field[++i])
31543 substed = 1
31544 } else
31545 len += 1 + keylen
31547 if (nfields == 3 && !substed) {
31548 key = field[2]
31549 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
31550 \$ac_cs_awk_read_file
31551 next
31554 print line
31556 \$ac_cs_awk_pipe_fini
31557 _ACAWK
31558 _ACEOF
31559 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31560 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
31561 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
31562 else
31564 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
31565 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
31566 _ACEOF
31568 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
31569 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
31570 # trailing colons and then remove the whole line if VPATH becomes empty
31571 # (actually we leave an empty line to preserve line numbers).
31572 if test "x$srcdir" = x.; then
31573 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
31575 s///
31576 s/^/:/
31577 s/[ ]*$/:/
31578 s/:\$(srcdir):/:/g
31579 s/:\${srcdir}:/:/g
31580 s/:@srcdir@:/:/g
31581 s/^:*//
31582 s/:*$//
31584 s/\(=[ ]*\).*/\1/
31586 s/\n//
31587 s/^[^=]*=[ ]*$//
31591 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31592 fi # test -n "$CONFIG_FILES"
31594 # Set up the scripts for CONFIG_HEADERS section.
31595 # No need to generate them if there are no CONFIG_HEADERS.
31596 # This happens for instance with `./config.status Makefile'.
31597 if test -n "$CONFIG_HEADERS"; then
31598 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
31599 BEGIN {
31600 _ACEOF
31602 # Transform confdefs.h into an awk script `defines.awk', embedded as
31603 # here-document in config.status, that substitutes the proper values into
31604 # config.h.in to produce config.h.
31606 # Create a delimiter string that does not exist in confdefs.h, to ease
31607 # handling of long lines.
31608 ac_delim='%!_!# '
31609 for ac_last_try in false false :; do
31610 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
31611 if test -z "$ac_tt"; then
31612 break
31613 elif $ac_last_try; then
31614 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
31615 else
31616 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31618 done
31620 # For the awk script, D is an array of macro values keyed by name,
31621 # likewise P contains macro parameters if any. Preserve backslash
31622 # newline sequences.
31624 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
31625 sed -n '
31626 s/.\{148\}/&'"$ac_delim"'/g
31627 t rset
31628 :rset
31629 s/^[ ]*#[ ]*define[ ][ ]*/ /
31630 t def
31632 :def
31633 s/\\$//
31634 t bsnl
31635 s/["\\]/\\&/g
31636 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
31637 D["\1"]=" \3"/p
31638 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
31640 :bsnl
31641 s/["\\]/\\&/g
31642 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
31643 D["\1"]=" \3\\\\\\n"\\/p
31644 t cont
31645 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
31646 t cont
31648 :cont
31650 s/.\{148\}/&'"$ac_delim"'/g
31651 t clear
31652 :clear
31653 s/\\$//
31654 t bsnlc
31655 s/["\\]/\\&/g; s/^/"/; s/$/"/p
31657 :bsnlc
31658 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
31659 b cont
31660 ' <confdefs.h | sed '
31661 s/'"$ac_delim"'/"\\\
31662 "/g' >>$CONFIG_STATUS || ac_write_fail=1
31664 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31665 for (key in D) D_is_set[key] = 1
31666 FS = "\a"
31668 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
31669 line = \$ 0
31670 split(line, arg, " ")
31671 if (arg[1] == "#") {
31672 defundef = arg[2]
31673 mac1 = arg[3]
31674 } else {
31675 defundef = substr(arg[1], 2)
31676 mac1 = arg[2]
31678 split(mac1, mac2, "(") #)
31679 macro = mac2[1]
31680 prefix = substr(line, 1, index(line, defundef) - 1)
31681 if (D_is_set[macro]) {
31682 # Preserve the white space surrounding the "#".
31683 print prefix "define", macro P[macro] D[macro]
31684 next
31685 } else {
31686 # Replace #undef with comments. This is necessary, for example,
31687 # in the case of _POSIX_SOURCE, which is predefined and required
31688 # on some systems where configure will not decide to define it.
31689 if (defundef == "undef") {
31690 print "/*", prefix defundef, macro, "*/"
31691 next
31695 { print }
31696 _ACAWK
31697 _ACEOF
31698 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31699 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
31700 fi # test -n "$CONFIG_HEADERS"
31703 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
31704 shift
31705 for ac_tag
31707 case $ac_tag in
31708 :[FHLC]) ac_mode=$ac_tag; continue;;
31709 esac
31710 case $ac_mode$ac_tag in
31711 :[FHL]*:*);;
31712 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
31713 :[FH]-) ac_tag=-:-;;
31714 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
31715 esac
31716 ac_save_IFS=$IFS
31717 IFS=:
31718 set x $ac_tag
31719 IFS=$ac_save_IFS
31720 shift
31721 ac_file=$1
31722 shift
31724 case $ac_mode in
31725 :L) ac_source=$1;;
31726 :[FH])
31727 ac_file_inputs=
31728 for ac_f
31730 case $ac_f in
31731 -) ac_f="$ac_tmp/stdin";;
31732 *) # Look for the file first in the build tree, then in the source tree
31733 # (if the path is not absolute). The absolute path cannot be DOS-style,
31734 # because $ac_f cannot contain `:'.
31735 test -f "$ac_f" ||
31736 case $ac_f in
31737 [\\/$]*) false;;
31738 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
31739 esac ||
31740 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
31741 esac
31742 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
31743 as_fn_append ac_file_inputs " '$ac_f'"
31744 done
31746 # Let's still pretend it is `configure' which instantiates (i.e., don't
31747 # use $as_me), people would be surprised to read:
31748 # /* config.h. Generated by config.status. */
31749 configure_input='Generated from '`
31750 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
31751 `' by configure.'
31752 if test x"$ac_file" != x-; then
31753 configure_input="$ac_file. $configure_input"
31754 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
31755 $as_echo "$as_me: creating $ac_file" >&6;}
31757 # Neutralize special characters interpreted by sed in replacement strings.
31758 case $configure_input in #(
31759 *\&* | *\|* | *\\* )
31760 ac_sed_conf_input=`$as_echo "$configure_input" |
31761 sed 's/[\\\\&|]/\\\\&/g'`;; #(
31762 *) ac_sed_conf_input=$configure_input;;
31763 esac
31765 case $ac_tag in
31766 *:-:* | *:-) cat >"$ac_tmp/stdin" \
31767 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
31768 esac
31770 esac
31772 ac_dir=`$as_dirname -- "$ac_file" ||
31773 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31774 X"$ac_file" : 'X\(//\)[^/]' \| \
31775 X"$ac_file" : 'X\(//\)$' \| \
31776 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
31777 $as_echo X"$ac_file" |
31778 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31779 s//\1/
31782 /^X\(\/\/\)[^/].*/{
31783 s//\1/
31786 /^X\(\/\/\)$/{
31787 s//\1/
31790 /^X\(\/\).*/{
31791 s//\1/
31794 s/.*/./; q'`
31795 as_dir="$ac_dir"; as_fn_mkdir_p
31796 ac_builddir=.
31798 case "$ac_dir" in
31799 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
31801 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
31802 # A ".." for each directory in $ac_dir_suffix.
31803 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
31804 case $ac_top_builddir_sub in
31805 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
31806 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
31807 esac ;;
31808 esac
31809 ac_abs_top_builddir=$ac_pwd
31810 ac_abs_builddir=$ac_pwd$ac_dir_suffix
31811 # for backward compatibility:
31812 ac_top_builddir=$ac_top_build_prefix
31814 case $srcdir in
31815 .) # We are building in place.
31816 ac_srcdir=.
31817 ac_top_srcdir=$ac_top_builddir_sub
31818 ac_abs_top_srcdir=$ac_pwd ;;
31819 [\\/]* | ?:[\\/]* ) # Absolute name.
31820 ac_srcdir=$srcdir$ac_dir_suffix;
31821 ac_top_srcdir=$srcdir
31822 ac_abs_top_srcdir=$srcdir ;;
31823 *) # Relative name.
31824 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
31825 ac_top_srcdir=$ac_top_build_prefix$srcdir
31826 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
31827 esac
31828 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
31831 case $ac_mode in
31834 # CONFIG_FILE
31837 _ACEOF
31839 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31840 # If the template does not know about datarootdir, expand it.
31841 # FIXME: This hack should be removed a few years after 2.60.
31842 ac_datarootdir_hack=; ac_datarootdir_seen=
31843 ac_sed_dataroot='
31844 /datarootdir/ {
31848 /@datadir@/p
31849 /@docdir@/p
31850 /@infodir@/p
31851 /@localedir@/p
31852 /@mandir@/p'
31853 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
31854 *datarootdir*) ac_datarootdir_seen=yes;;
31855 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
31856 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
31857 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
31858 _ACEOF
31859 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31860 ac_datarootdir_hack='
31861 s&@datadir@&$datadir&g
31862 s&@docdir@&$docdir&g
31863 s&@infodir@&$infodir&g
31864 s&@localedir@&$localedir&g
31865 s&@mandir@&$mandir&g
31866 s&\\\${datarootdir}&$datarootdir&g' ;;
31867 esac
31868 _ACEOF
31870 # Neutralize VPATH when `$srcdir' = `.'.
31871 # Shell code in configure.ac might set extrasub.
31872 # FIXME: do we really want to maintain this feature?
31873 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31874 ac_sed_extra="$ac_vpsub
31875 $extrasub
31876 _ACEOF
31877 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31879 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31880 s|@configure_input@|$ac_sed_conf_input|;t t
31881 s&@top_builddir@&$ac_top_builddir_sub&;t t
31882 s&@top_build_prefix@&$ac_top_build_prefix&;t t
31883 s&@srcdir@&$ac_srcdir&;t t
31884 s&@abs_srcdir@&$ac_abs_srcdir&;t t
31885 s&@top_srcdir@&$ac_top_srcdir&;t t
31886 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
31887 s&@builddir@&$ac_builddir&;t t
31888 s&@abs_builddir@&$ac_abs_builddir&;t t
31889 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
31890 $ac_datarootdir_hack
31892 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
31893 if $ac_cs_awk_getline; then
31894 $AWK -f "$ac_tmp/subs.awk"
31895 else
31896 $AWK -f "$ac_tmp/subs.awk" | $SHELL
31897 fi \
31898 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
31900 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
31901 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
31902 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
31903 "$ac_tmp/out"`; test -z "$ac_out"; } &&
31904 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31905 which seems to be undefined. Please make sure it is defined" >&5
31906 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31907 which seems to be undefined. Please make sure it is defined" >&2;}
31909 rm -f "$ac_tmp/stdin"
31910 case $ac_file in
31911 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
31912 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
31913 esac \
31914 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
31918 # CONFIG_HEADER
31920 if test x"$ac_file" != x-; then
31922 $as_echo "/* $configure_input */" \
31923 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
31924 } >"$ac_tmp/config.h" \
31925 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
31926 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
31927 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
31928 $as_echo "$as_me: $ac_file is unchanged" >&6;}
31929 else
31930 rm -f "$ac_file"
31931 mv "$ac_tmp/config.h" "$ac_file" \
31932 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
31934 else
31935 $as_echo "/* $configure_input */" \
31936 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
31937 || as_fn_error $? "could not create -" "$LINENO" 5
31942 # CONFIG_LINK
31945 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
31947 else
31948 # Prefer the file from the source tree if names are identical.
31949 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
31950 ac_source=$srcdir/$ac_source
31953 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
31954 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
31956 if test ! -r "$ac_source"; then
31957 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
31959 rm -f "$ac_file"
31961 # Try a relative symlink, then a hard link, then a copy.
31962 case $ac_source in
31963 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
31964 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
31965 esac
31966 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
31967 ln "$ac_source" "$ac_file" 2>/dev/null ||
31968 cp -p "$ac_source" "$ac_file" ||
31969 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
31972 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
31973 $as_echo "$as_me: executing $ac_file commands" >&6;}
31975 esac
31978 case $ac_file$ac_mode in
31979 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
31980 "gccdepdir":C)
31981 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs build/$DEPDIR
31982 for lang in $subdirs c-family common analyzer
31984 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs $lang/$DEPDIR
31985 done ;;
31986 "as":F) chmod +x as ;;
31987 "collect-ld":F) chmod +x collect-ld ;;
31988 "nm":F) chmod +x nm ;;
31989 "default":C)
31990 case ${CONFIG_HEADERS} in
31991 *auto-host.h:config.in*)
31992 echo > cstamp-h ;;
31993 esac
31994 # Make sure all the subdirs exist.
31995 for d in $subdirs doc build common c-family
31997 test -d $d || mkdir $d
31998 done
32001 esac
32002 done # for ac_tag
32005 as_fn_exit 0
32006 _ACEOF
32007 ac_clean_files=$ac_clean_files_save
32009 test $ac_write_fail = 0 ||
32010 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
32013 # configure is writing to config.log, and then calls config.status.
32014 # config.status does its own redirection, appending to config.log.
32015 # Unfortunately, on DOS this fails, as config.log is still kept open
32016 # by configure, so config.status won't be able to write to it; its
32017 # output is simply discarded. So we exec the FD to /dev/null,
32018 # effectively closing config.log, so it can be properly (re)opened and
32019 # appended to by config.status. When coming back to configure, we
32020 # need to make the FD available again.
32021 if test "$no_create" != yes; then
32022 ac_cs_success=:
32023 ac_config_status_args=
32024 test "$silent" = yes &&
32025 ac_config_status_args="$ac_config_status_args --quiet"
32026 exec 5>/dev/null
32027 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
32028 exec 5>>config.log
32029 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
32030 # would make configure fail if this is the last instruction.
32031 $ac_cs_success || as_fn_exit 1
32033 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
32034 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
32035 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}