GCN back-end config
[official-gcc.git] / gcc / configure
blobd6a48ef76e722a815543f3e248cb1755e268e249
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_gtfiles
705 all_compilers
706 srcdir
707 subdirs
708 dollar
709 gcc_tooldir
710 enable_lto
711 DO_LINK_MUTEX
712 MAINT
713 zlibinc
714 zlibdir
715 HOST_LIBS
716 enable_default_ssp
717 thin_archive_support
718 ld_soname_option
719 ld_version_script_option
720 libgcc_visibility
721 gcc_cv_otool
722 gcc_cv_readelf
723 gcc_cv_objdump
724 ORIGINAL_NM_FOR_TARGET
725 gcc_cv_nm
726 ORIGINAL_LD_GOLD_FOR_TARGET
727 ORIGINAL_LD_BFD_FOR_TARGET
728 ORIGINAL_LD_FOR_TARGET
729 ORIGINAL_PLUGIN_LD_FOR_TARGET
730 gcc_cv_ld
731 ORIGINAL_AS_FOR_TARGET
732 gcc_cv_as
733 enable_fast_install
734 objdir
735 OTOOL64
736 OTOOL
737 LIPO
738 NMEDIT
739 DSYMUTIL
740 STRIP
741 OBJDUMP
742 ac_ct_DUMPBIN
743 DUMPBIN
745 FGREP
747 LIBTOOL
748 collect2
749 NO_PIE_FLAG_FOR_BUILD
750 NO_PIE_CFLAGS_FOR_BUILD
751 BUILD_NO_PIE_FLAG
752 BUILD_NO_PIE_CFLAGS
753 STMP_FIXINC
754 BUILD_LDFLAGS
755 BUILD_CXXFLAGS
756 BUILD_CFLAGS
757 CXX_FOR_BUILD
758 CC_FOR_BUILD
759 inhibit_libc
760 BUILD_SYSTEM_HEADER_DIR
761 SYSTEM_HEADER_DIR
763 CROSS
764 CATOBJEXT
765 GENCAT
766 INSTOBJEXT
767 DATADIRNAME
768 CATALOGS
769 POSUB
770 GMSGFMT
771 XGETTEXT
772 INCINTL
773 LIBINTL_DEP
774 LIBINTL
775 USE_NLS
776 get_gcc_base_ver
777 extra_opt_files
778 extra_modes_file
779 NATIVE_SYSTEM_HEADER_DIR
780 objext
781 manext
782 LIBICONV_DEP
783 LTLIBICONV
784 LIBICONV
785 DL_LIB
786 LDEXP_LIB
787 EXTRA_GCC_LIBS
788 GNAT_LIBEXC
789 COLLECT2_LIBS
790 CXXDEPMODE
791 DEPDIR
792 am__leading_dot
793 doc_build_sys
796 BISON
797 FLEX
798 GENERATED_MANPAGES
799 BUILD_INFO
800 MAKEINFO
801 have_mktemp_command
802 make_compare_target
803 INSTALL_DATA
804 INSTALL_PROGRAM
805 INSTALL
806 ranlib_flags
807 RANLIB
809 LN_S
811 SET_MAKE
812 accel_dir_suffix
813 real_target_noncanonical
814 enable_as_accelerator
815 REPORT_BUGS_TEXI
816 REPORT_BUGS_TO
817 PKGVERSION
818 CONFIGURE_SPECS
819 enable_gcov
820 enable_shared
821 enable_fixed_point
822 enable_decimal_float
823 with_float
824 with_cpu
825 enable_multiarch
826 enable_multilib
827 coverage_flags
828 valgrind_command
829 valgrind_path_defines
830 valgrind_path
831 TREECHECKING
832 nocommon_flag
833 noexception_flags
834 warn_cxxflags
835 warn_cflags
836 c_strict_warn
837 strict_warn
838 c_loose_warn
839 loose_warn
840 aliasing_flags
842 EGREP
843 GREP
844 CXXCPP
845 PICFLAG_FOR_TARGET
846 GNATMAKE
847 GNATBIND
848 ac_ct_CXX
849 CXXFLAGS
851 OBJEXT
852 EXEEXT
853 ac_ct_CC
854 CPPFLAGS
855 LDFLAGS
856 CFLAGS
858 GENINSRC
859 CROSS_SYSTEM_HEADER_DIR
860 TARGET_SYSTEM_ROOT_DEFINE
861 TARGET_SYSTEM_ROOT
862 SYSROOT_CFLAGS_FOR_TARGET
863 target_subdir
864 host_subdir
865 build_subdir
866 build_libsubdir
867 target_noncanonical
868 host_noncanonical
869 target_os
870 target_vendor
871 target_cpu
872 target
873 host_os
874 host_vendor
875 host_cpu
876 host
877 build_os
878 build_vendor
879 build_cpu
880 build
881 target_alias
882 host_alias
883 build_alias
884 LIBS
885 ECHO_T
886 ECHO_N
887 ECHO_C
888 DEFS
889 mandir
890 localedir
891 libdir
892 psdir
893 pdfdir
894 dvidir
895 htmldir
896 infodir
897 docdir
898 oldincludedir
899 includedir
900 localstatedir
901 sharedstatedir
902 sysconfdir
903 datadir
904 datarootdir
905 libexecdir
906 sbindir
907 bindir
908 program_transform_name
909 prefix
910 exec_prefix
911 PACKAGE_URL
912 PACKAGE_BUGREPORT
913 PACKAGE_STRING
914 PACKAGE_VERSION
915 PACKAGE_TARNAME
916 PACKAGE_NAME
917 PATH_SEPARATOR
918 SHELL'
919 ac_subst_files='option_includes
920 language_hooks'
921 ac_user_opts='
922 enable_option_checking
923 with_build_libsubdir
924 with_local_prefix
925 with_native_system_header_dir
926 with_build_sysroot
927 with_sysroot
928 with_gxx_include_dir
929 with_cpp_install_dir
930 enable_generated_files_in_srcdir
931 with_gnu_ld
932 with_ld
933 with_demangler_in_ld
934 with_gnu_as
935 with_as
936 enable_largefile
937 enable_build_format_warnings
938 enable_werror_always
939 enable_checking
940 enable_coverage
941 enable_gather_detailed_mem_stats
942 enable_valgrind_annotations
943 with_stabs
944 enable_multilib
945 enable_multiarch
946 with_stack_clash_protection_guard_size
947 enable___cxa_atexit
948 enable_decimal_float
949 enable_fixed_point
950 enable_threads
951 enable_tls
952 enable_vtable_verify
953 enable_objc_gc
954 with_dwarf2
955 enable_shared
956 enable_gcov
957 with_specs
958 with_pkgversion
959 with_bugurl
960 enable_languages
961 with_multilib_list
962 enable_rpath
963 with_libiconv_prefix
964 enable_sjlj_exceptions
965 with_gcc_major_version_only
966 enable_secureplt
967 enable_mingw_wildcard
968 enable_large_address_aware
969 enable_leading_mingw64_underscores
970 enable_cld
971 enable_frame_pointer
972 enable_win32_registry
973 enable_static
974 with_pic
975 enable_fast_install
976 enable_libtool_lock
977 enable_ld
978 enable_gold
979 with_plugin_ld
980 enable_gnu_indirect_function
981 enable_initfini_array
982 enable_comdat
983 enable_standard_branch_protection
984 enable_fix_cortex_a53_835769
985 enable_fix_cortex_a53_843419
986 with_glibc_version
987 enable_gnu_unique_object
988 enable_linker_build_id
989 enable_libssp
990 enable_default_ssp
991 with_long_double_128
992 with_long_double_format
993 with_gc
994 with_system_zlib
995 enable_maintainer_mode
996 enable_link_mutex
997 enable_version_specific_runtime_libs
998 enable_plugin
999 enable_host_shared
1000 enable_libquadmath_support
1001 with_linker_hash_style
1002 with_diagnostics_color
1003 enable_default_pie
1005 ac_precious_vars='build_alias
1006 host_alias
1007 target_alias
1009 CFLAGS
1010 LDFLAGS
1011 LIBS
1012 CPPFLAGS
1014 CXXFLAGS
1016 CXXCPP
1018 GMPLIBS
1019 GMPINC
1020 ISLLIBS
1021 ISLINC'
1024 # Initialize some variables set by options.
1025 ac_init_help=
1026 ac_init_version=false
1027 ac_unrecognized_opts=
1028 ac_unrecognized_sep=
1029 # The variables have the same names as the options, with
1030 # dashes changed to underlines.
1031 cache_file=/dev/null
1032 exec_prefix=NONE
1033 no_create=
1034 no_recursion=
1035 prefix=NONE
1036 program_prefix=NONE
1037 program_suffix=NONE
1038 program_transform_name=s,x,x,
1039 silent=
1040 site=
1041 srcdir=
1042 verbose=
1043 x_includes=NONE
1044 x_libraries=NONE
1046 # Installation directory options.
1047 # These are left unexpanded so users can "make install exec_prefix=/foo"
1048 # and all the variables that are supposed to be based on exec_prefix
1049 # by default will actually change.
1050 # Use braces instead of parens because sh, perl, etc. also accept them.
1051 # (The list follows the same order as the GNU Coding Standards.)
1052 bindir='${exec_prefix}/bin'
1053 sbindir='${exec_prefix}/sbin'
1054 libexecdir='${exec_prefix}/libexec'
1055 datarootdir='${prefix}/share'
1056 datadir='${datarootdir}'
1057 sysconfdir='${prefix}/etc'
1058 sharedstatedir='${prefix}/com'
1059 localstatedir='${prefix}/var'
1060 includedir='${prefix}/include'
1061 oldincludedir='/usr/include'
1062 docdir='${datarootdir}/doc/${PACKAGE}'
1063 infodir='${datarootdir}/info'
1064 htmldir='${docdir}'
1065 dvidir='${docdir}'
1066 pdfdir='${docdir}'
1067 psdir='${docdir}'
1068 libdir='${exec_prefix}/lib'
1069 localedir='${datarootdir}/locale'
1070 mandir='${datarootdir}/man'
1072 ac_prev=
1073 ac_dashdash=
1074 for ac_option
1076 # If the previous option needs an argument, assign it.
1077 if test -n "$ac_prev"; then
1078 eval $ac_prev=\$ac_option
1079 ac_prev=
1080 continue
1083 case $ac_option in
1084 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1085 *=) ac_optarg= ;;
1086 *) ac_optarg=yes ;;
1087 esac
1089 # Accept the important Cygnus configure options, so we can diagnose typos.
1091 case $ac_dashdash$ac_option in
1093 ac_dashdash=yes ;;
1095 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1096 ac_prev=bindir ;;
1097 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1098 bindir=$ac_optarg ;;
1100 -build | --build | --buil | --bui | --bu)
1101 ac_prev=build_alias ;;
1102 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1103 build_alias=$ac_optarg ;;
1105 -cache-file | --cache-file | --cache-fil | --cache-fi \
1106 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1107 ac_prev=cache_file ;;
1108 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1109 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1110 cache_file=$ac_optarg ;;
1112 --config-cache | -C)
1113 cache_file=config.cache ;;
1115 -datadir | --datadir | --datadi | --datad)
1116 ac_prev=datadir ;;
1117 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1118 datadir=$ac_optarg ;;
1120 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1121 | --dataroo | --dataro | --datar)
1122 ac_prev=datarootdir ;;
1123 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1124 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1125 datarootdir=$ac_optarg ;;
1127 -disable-* | --disable-*)
1128 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1129 # Reject names that are not valid shell variable names.
1130 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1131 as_fn_error $? "invalid feature name: $ac_useropt"
1132 ac_useropt_orig=$ac_useropt
1133 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1134 case $ac_user_opts in
1136 "enable_$ac_useropt"
1137 "*) ;;
1138 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1139 ac_unrecognized_sep=', ';;
1140 esac
1141 eval enable_$ac_useropt=no ;;
1143 -docdir | --docdir | --docdi | --doc | --do)
1144 ac_prev=docdir ;;
1145 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1146 docdir=$ac_optarg ;;
1148 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1149 ac_prev=dvidir ;;
1150 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1151 dvidir=$ac_optarg ;;
1153 -enable-* | --enable-*)
1154 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1155 # Reject names that are not valid shell variable names.
1156 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1157 as_fn_error $? "invalid feature name: $ac_useropt"
1158 ac_useropt_orig=$ac_useropt
1159 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1160 case $ac_user_opts in
1162 "enable_$ac_useropt"
1163 "*) ;;
1164 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1165 ac_unrecognized_sep=', ';;
1166 esac
1167 eval enable_$ac_useropt=\$ac_optarg ;;
1169 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1170 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1171 | --exec | --exe | --ex)
1172 ac_prev=exec_prefix ;;
1173 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1174 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1175 | --exec=* | --exe=* | --ex=*)
1176 exec_prefix=$ac_optarg ;;
1178 -gas | --gas | --ga | --g)
1179 # Obsolete; use --with-gas.
1180 with_gas=yes ;;
1182 -help | --help | --hel | --he | -h)
1183 ac_init_help=long ;;
1184 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1185 ac_init_help=recursive ;;
1186 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1187 ac_init_help=short ;;
1189 -host | --host | --hos | --ho)
1190 ac_prev=host_alias ;;
1191 -host=* | --host=* | --hos=* | --ho=*)
1192 host_alias=$ac_optarg ;;
1194 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1195 ac_prev=htmldir ;;
1196 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1197 | --ht=*)
1198 htmldir=$ac_optarg ;;
1200 -includedir | --includedir | --includedi | --included | --include \
1201 | --includ | --inclu | --incl | --inc)
1202 ac_prev=includedir ;;
1203 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1204 | --includ=* | --inclu=* | --incl=* | --inc=*)
1205 includedir=$ac_optarg ;;
1207 -infodir | --infodir | --infodi | --infod | --info | --inf)
1208 ac_prev=infodir ;;
1209 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1210 infodir=$ac_optarg ;;
1212 -libdir | --libdir | --libdi | --libd)
1213 ac_prev=libdir ;;
1214 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1215 libdir=$ac_optarg ;;
1217 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1218 | --libexe | --libex | --libe)
1219 ac_prev=libexecdir ;;
1220 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1221 | --libexe=* | --libex=* | --libe=*)
1222 libexecdir=$ac_optarg ;;
1224 -localedir | --localedir | --localedi | --localed | --locale)
1225 ac_prev=localedir ;;
1226 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1227 localedir=$ac_optarg ;;
1229 -localstatedir | --localstatedir | --localstatedi | --localstated \
1230 | --localstate | --localstat | --localsta | --localst | --locals)
1231 ac_prev=localstatedir ;;
1232 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1233 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1234 localstatedir=$ac_optarg ;;
1236 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1237 ac_prev=mandir ;;
1238 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1239 mandir=$ac_optarg ;;
1241 -nfp | --nfp | --nf)
1242 # Obsolete; use --without-fp.
1243 with_fp=no ;;
1245 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1246 | --no-cr | --no-c | -n)
1247 no_create=yes ;;
1249 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1250 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1251 no_recursion=yes ;;
1253 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1254 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1255 | --oldin | --oldi | --old | --ol | --o)
1256 ac_prev=oldincludedir ;;
1257 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1258 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1259 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1260 oldincludedir=$ac_optarg ;;
1262 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1263 ac_prev=prefix ;;
1264 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1265 prefix=$ac_optarg ;;
1267 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1268 | --program-pre | --program-pr | --program-p)
1269 ac_prev=program_prefix ;;
1270 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1271 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1272 program_prefix=$ac_optarg ;;
1274 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1275 | --program-suf | --program-su | --program-s)
1276 ac_prev=program_suffix ;;
1277 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1278 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1279 program_suffix=$ac_optarg ;;
1281 -program-transform-name | --program-transform-name \
1282 | --program-transform-nam | --program-transform-na \
1283 | --program-transform-n | --program-transform- \
1284 | --program-transform | --program-transfor \
1285 | --program-transfo | --program-transf \
1286 | --program-trans | --program-tran \
1287 | --progr-tra | --program-tr | --program-t)
1288 ac_prev=program_transform_name ;;
1289 -program-transform-name=* | --program-transform-name=* \
1290 | --program-transform-nam=* | --program-transform-na=* \
1291 | --program-transform-n=* | --program-transform-=* \
1292 | --program-transform=* | --program-transfor=* \
1293 | --program-transfo=* | --program-transf=* \
1294 | --program-trans=* | --program-tran=* \
1295 | --progr-tra=* | --program-tr=* | --program-t=*)
1296 program_transform_name=$ac_optarg ;;
1298 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1299 ac_prev=pdfdir ;;
1300 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1301 pdfdir=$ac_optarg ;;
1303 -psdir | --psdir | --psdi | --psd | --ps)
1304 ac_prev=psdir ;;
1305 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1306 psdir=$ac_optarg ;;
1308 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1309 | -silent | --silent | --silen | --sile | --sil)
1310 silent=yes ;;
1312 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1313 ac_prev=sbindir ;;
1314 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1315 | --sbi=* | --sb=*)
1316 sbindir=$ac_optarg ;;
1318 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1319 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1320 | --sharedst | --shareds | --shared | --share | --shar \
1321 | --sha | --sh)
1322 ac_prev=sharedstatedir ;;
1323 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1324 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1325 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1326 | --sha=* | --sh=*)
1327 sharedstatedir=$ac_optarg ;;
1329 -site | --site | --sit)
1330 ac_prev=site ;;
1331 -site=* | --site=* | --sit=*)
1332 site=$ac_optarg ;;
1334 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1335 ac_prev=srcdir ;;
1336 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1337 srcdir=$ac_optarg ;;
1339 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1340 | --syscon | --sysco | --sysc | --sys | --sy)
1341 ac_prev=sysconfdir ;;
1342 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1343 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1344 sysconfdir=$ac_optarg ;;
1346 -target | --target | --targe | --targ | --tar | --ta | --t)
1347 ac_prev=target_alias ;;
1348 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1349 target_alias=$ac_optarg ;;
1351 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1352 verbose=yes ;;
1354 -version | --version | --versio | --versi | --vers | -V)
1355 ac_init_version=: ;;
1357 -with-* | --with-*)
1358 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1359 # Reject names that are not valid shell variable names.
1360 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1361 as_fn_error $? "invalid package name: $ac_useropt"
1362 ac_useropt_orig=$ac_useropt
1363 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1364 case $ac_user_opts in
1366 "with_$ac_useropt"
1367 "*) ;;
1368 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1369 ac_unrecognized_sep=', ';;
1370 esac
1371 eval with_$ac_useropt=\$ac_optarg ;;
1373 -without-* | --without-*)
1374 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1375 # Reject names that are not valid shell variable names.
1376 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1377 as_fn_error $? "invalid package name: $ac_useropt"
1378 ac_useropt_orig=$ac_useropt
1379 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1380 case $ac_user_opts in
1382 "with_$ac_useropt"
1383 "*) ;;
1384 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1385 ac_unrecognized_sep=', ';;
1386 esac
1387 eval with_$ac_useropt=no ;;
1389 --x)
1390 # Obsolete; use --with-x.
1391 with_x=yes ;;
1393 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1394 | --x-incl | --x-inc | --x-in | --x-i)
1395 ac_prev=x_includes ;;
1396 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1397 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1398 x_includes=$ac_optarg ;;
1400 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1401 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1402 ac_prev=x_libraries ;;
1403 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1404 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1405 x_libraries=$ac_optarg ;;
1407 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1408 Try \`$0 --help' for more information"
1411 *=*)
1412 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1413 # Reject names that are not valid shell variable names.
1414 case $ac_envvar in #(
1415 '' | [0-9]* | *[!_$as_cr_alnum]* )
1416 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1417 esac
1418 eval $ac_envvar=\$ac_optarg
1419 export $ac_envvar ;;
1422 # FIXME: should be removed in autoconf 3.0.
1423 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1424 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1425 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1426 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1429 esac
1430 done
1432 if test -n "$ac_prev"; then
1433 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1434 as_fn_error $? "missing argument to $ac_option"
1437 if test -n "$ac_unrecognized_opts"; then
1438 case $enable_option_checking in
1439 no) ;;
1440 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1441 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1442 esac
1445 # Check all directory arguments for consistency.
1446 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1447 datadir sysconfdir sharedstatedir localstatedir includedir \
1448 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1449 libdir localedir mandir
1451 eval ac_val=\$$ac_var
1452 # Remove trailing slashes.
1453 case $ac_val in
1454 */ )
1455 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1456 eval $ac_var=\$ac_val;;
1457 esac
1458 # Be sure to have absolute directory names.
1459 case $ac_val in
1460 [\\/$]* | ?:[\\/]* ) continue;;
1461 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1462 esac
1463 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1464 done
1466 # There might be people who depend on the old broken behavior: `$host'
1467 # used to hold the argument of --host etc.
1468 # FIXME: To remove some day.
1469 build=$build_alias
1470 host=$host_alias
1471 target=$target_alias
1473 # FIXME: To remove some day.
1474 if test "x$host_alias" != x; then
1475 if test "x$build_alias" = x; then
1476 cross_compiling=maybe
1477 elif test "x$build_alias" != "x$host_alias"; then
1478 cross_compiling=yes
1482 ac_tool_prefix=
1483 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1485 test "$silent" = yes && exec 6>/dev/null
1488 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1489 ac_ls_di=`ls -di .` &&
1490 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1491 as_fn_error $? "working directory cannot be determined"
1492 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1493 as_fn_error $? "pwd does not report name of working directory"
1496 # Find the source files, if location was not specified.
1497 if test -z "$srcdir"; then
1498 ac_srcdir_defaulted=yes
1499 # Try the directory containing this script, then the parent directory.
1500 ac_confdir=`$as_dirname -- "$as_myself" ||
1501 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1502 X"$as_myself" : 'X\(//\)[^/]' \| \
1503 X"$as_myself" : 'X\(//\)$' \| \
1504 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1505 $as_echo X"$as_myself" |
1506 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1507 s//\1/
1510 /^X\(\/\/\)[^/].*/{
1511 s//\1/
1514 /^X\(\/\/\)$/{
1515 s//\1/
1518 /^X\(\/\).*/{
1519 s//\1/
1522 s/.*/./; q'`
1523 srcdir=$ac_confdir
1524 if test ! -r "$srcdir/$ac_unique_file"; then
1525 srcdir=..
1527 else
1528 ac_srcdir_defaulted=no
1530 if test ! -r "$srcdir/$ac_unique_file"; then
1531 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1532 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1534 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1535 ac_abs_confdir=`(
1536 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1537 pwd)`
1538 # When building in place, set srcdir=.
1539 if test "$ac_abs_confdir" = "$ac_pwd"; then
1540 srcdir=.
1542 # Remove unnecessary trailing slashes from srcdir.
1543 # Double slashes in file names in object file debugging info
1544 # mess up M-x gdb in Emacs.
1545 case $srcdir in
1546 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1547 esac
1548 for ac_var in $ac_precious_vars; do
1549 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1550 eval ac_env_${ac_var}_value=\$${ac_var}
1551 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1552 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1553 done
1556 # Report the --help message.
1558 if test "$ac_init_help" = "long"; then
1559 # Omit some internal or obsolete options to make the list less imposing.
1560 # This message is too long to be a string in the A/UX 3.1 sh.
1561 cat <<_ACEOF
1562 \`configure' configures this package to adapt to many kinds of systems.
1564 Usage: $0 [OPTION]... [VAR=VALUE]...
1566 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1567 VAR=VALUE. See below for descriptions of some of the useful variables.
1569 Defaults for the options are specified in brackets.
1571 Configuration:
1572 -h, --help display this help and exit
1573 --help=short display options specific to this package
1574 --help=recursive display the short help of all the included packages
1575 -V, --version display version information and exit
1576 -q, --quiet, --silent do not print \`checking ...' messages
1577 --cache-file=FILE cache test results in FILE [disabled]
1578 -C, --config-cache alias for \`--cache-file=config.cache'
1579 -n, --no-create do not create output files
1580 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1582 Installation directories:
1583 --prefix=PREFIX install architecture-independent files in PREFIX
1584 [$ac_default_prefix]
1585 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1586 [PREFIX]
1588 By default, \`make install' will install all the files in
1589 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1590 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1591 for instance \`--prefix=\$HOME'.
1593 For better control, use the options below.
1595 Fine tuning of the installation directories:
1596 --bindir=DIR user executables [EPREFIX/bin]
1597 --sbindir=DIR system admin executables [EPREFIX/sbin]
1598 --libexecdir=DIR program executables [EPREFIX/libexec]
1599 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1600 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1601 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1602 --libdir=DIR object code libraries [EPREFIX/lib]
1603 --includedir=DIR C header files [PREFIX/include]
1604 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1605 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1606 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1607 --infodir=DIR info documentation [DATAROOTDIR/info]
1608 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1609 --mandir=DIR man documentation [DATAROOTDIR/man]
1610 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1611 --htmldir=DIR html documentation [DOCDIR]
1612 --dvidir=DIR dvi documentation [DOCDIR]
1613 --pdfdir=DIR pdf documentation [DOCDIR]
1614 --psdir=DIR ps documentation [DOCDIR]
1615 _ACEOF
1617 cat <<\_ACEOF
1619 Program names:
1620 --program-prefix=PREFIX prepend PREFIX to installed program names
1621 --program-suffix=SUFFIX append SUFFIX to installed program names
1622 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1624 System types:
1625 --build=BUILD configure for building on BUILD [guessed]
1626 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1627 --target=TARGET configure for building compilers for TARGET [HOST]
1628 _ACEOF
1631 if test -n "$ac_init_help"; then
1633 cat <<\_ACEOF
1635 Optional Features:
1636 --disable-option-checking ignore unrecognized --enable/--with options
1637 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1638 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1639 --enable-generated-files-in-srcdir
1640 put copies of generated files in source dir intended
1641 for creating source tarballs for users without
1642 texinfo bison or flex
1643 --disable-largefile omit support for large files
1644 --disable-build-format-warnings
1645 don't use -Wformat while building GCC
1646 --enable-werror-always enable -Werror despite compiler version
1647 --enable-checking[=LIST]
1648 enable expensive run-time checks. With LIST, enable
1649 only specific categories of checks. Categories are:
1650 yes,no,all,none,release. Flags are:
1651 assert,df,extra,fold,gc,gcac,gimple,misc,
1652 rtlflag,rtl,runtime,tree,valgrind,types
1653 --enable-coverage[=LEVEL]
1654 enable compiler's code coverage collection. Use to
1655 measure compiler performance and locate unused parts
1656 of the compiler. With LEVEL, specify optimization.
1657 Values are opt, noopt, default is noopt
1658 --enable-gather-detailed-mem-stats
1659 enable detailed memory allocation stats gathering
1660 --enable-valgrind-annotations
1661 enable valgrind runtime interaction
1662 --enable-multilib enable library support for multiple ABIs
1663 --enable-multiarch enable support for multiarch paths
1664 --enable-__cxa_atexit enable __cxa_atexit for C++
1665 --enable-decimal-float={no,yes,bid,dpd}
1666 enable decimal float extension to C. Selecting 'bid'
1667 or 'dpd' choses which decimal floating point format
1668 to use
1669 --enable-fixed-point enable fixed-point arithmetic extension to C
1670 --enable-threads[=LIB] enable thread usage for target GCC, using LIB thread
1671 package
1672 --enable-tls enable or disable generation of tls code overriding
1673 the assembler check for tls support
1674 --enable-vtable-verify enable vtable verification feature
1675 --enable-objc-gc enable the use of Boehm's garbage collector with the
1676 GNU Objective-C runtime
1677 --disable-shared don't provide a shared libgcc
1678 --disable-gcov don't provide libgcov and related host tools
1679 --enable-languages=LIST specify which front-ends to build
1680 --disable-rpath do not hardcode runtime library paths
1681 --enable-sjlj-exceptions
1682 arrange to use setjmp/longjmp exception handling
1683 --enable-secureplt enable -msecure-plt by default for PowerPC
1684 --enable-mingw-wildcard Set whether to expand wildcard on command-line.
1685 Default to platform configuration
1686 --enable-large-address-aware
1687 Link mingw executables with --large-address-aware
1688 --enable-leading-mingw64-underscores
1689 enable leading underscores on 64 bit mingw targets
1690 --enable-cld enable -mcld by default for 32bit x86
1691 --enable-frame-pointer enable -fno-omit-frame-pointer by default for 32bit
1693 --disable-win32-registry
1694 disable lookup of installation paths in the Registry
1695 on Windows hosts
1696 --enable-win32-registry enable registry lookup (default)
1697 --enable-win32-registry=KEY
1698 use KEY instead of GCC version as the last portion
1699 of the registry key
1700 --enable-shared[=PKGS] build shared libraries [default=yes]
1701 --enable-static[=PKGS] build static libraries [default=yes]
1702 --enable-fast-install[=PKGS]
1703 optimize for fast installation [default=yes]
1704 --disable-libtool-lock avoid locking (might break parallel builds)
1705 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1706 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1707 --enable-gnu-indirect-function
1708 enable the use of the @gnu_indirect_function to
1709 glibc systems
1710 --enable-initfini-array use .init_array/.fini_array sections
1711 --enable-comdat enable COMDAT group support
1713 --enable-standard-branch-protection
1714 enable Branch Target Identification Mechanism and
1715 Return Address Signing by default for AArch64
1716 --disable-standard-branch-protection
1717 disable Branch Target Identification Mechanism and
1718 Return Address Signing by default for AArch64
1721 --enable-fix-cortex-a53-835769
1722 enable workaround for AArch64 Cortex-A53 erratum
1723 835769 by default
1724 --disable-fix-cortex-a53-835769
1725 disable workaround for AArch64 Cortex-A53 erratum
1726 835769 by default
1729 --enable-fix-cortex-a53-843419
1730 enable workaround for AArch64 Cortex-A53 erratum
1731 843419 by default
1732 --disable-fix-cortex-a53-843419
1733 disable workaround for AArch64 Cortex-A53 erratum
1734 843419 by default
1736 --enable-gnu-unique-object
1737 enable the use of the @gnu_unique_object ELF
1738 extension on glibc systems
1739 --enable-linker-build-id
1740 compiler will always pass --build-id to linker
1741 --enable-libssp enable linking against libssp
1742 --enable-default-ssp enable Stack Smashing Protection as default
1743 --enable-maintainer-mode
1744 enable make rules and dependencies not useful (and
1745 sometimes confusing) to the casual installer
1746 --enable-link-mutex avoid linking multiple front-ends at once to avoid
1747 thrashing on the build machine
1748 --enable-version-specific-runtime-libs
1749 specify that runtime libraries should be installed
1750 in a compiler-specific directory
1751 --enable-plugin enable plugin support
1752 --enable-host-shared build host code as shared libraries
1753 --disable-libquadmath-support
1754 disable libquadmath support for Fortran
1755 --enable-default-pie enable Position Independent Executable as default
1757 Optional Packages:
1758 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1759 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1760 --with-build-libsubdir=DIR Directory where to find libraries for build system
1761 --with-local-prefix=DIR specifies directory to put local include
1762 --with-native-system-header-dir=dir
1763 use dir as the directory to look for standard
1764 system header files in. Defaults to /usr/include.
1765 --with-build-sysroot=sysroot
1766 use sysroot as the system root during the build
1767 --with-sysroot[=DIR] search for usr/lib, usr/include, et al, within DIR
1768 --with-gxx-include-dir=DIR
1769 specifies directory to put g++ header files
1770 --with-cpp-install-dir=DIR
1771 install the user visible C preprocessor in DIR
1772 (relative to PREFIX) as well as PREFIX/bin
1773 --with-gnu-ld arrange to work with GNU ld
1774 --with-ld arrange to use the specified ld (full pathname)
1775 --with-demangler-in-ld try to use demangler in GNU ld
1776 --with-gnu-as arrange to work with GNU as
1777 --with-as arrange to use the specified as (full pathname)
1778 --with-stabs arrange to use stabs instead of host debug format
1779 --with-stack-clash-protection-guard-size=size
1780 Set the default stack clash protection guard size
1781 for specific targets as a power of two in bytes.
1782 --with-dwarf2 force the default debug format to be DWARF 2
1783 --with-specs=SPECS add SPECS to driver command-line processing
1784 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1785 --with-bugurl=URL Direct users to URL to report a bug
1786 --with-multilib-list select multilibs (AArch64, SH and x86-64 only)
1787 --with-gnu-ld assume the C compiler uses GNU ld default=no
1788 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1789 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1790 --with-gcc-major-version-only
1791 use only GCC major number in filesystem paths
1792 --with-pic try to use only PIC/non-PIC objects [default=use
1793 both]
1794 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1795 --with-plugin-ld=[ARG] specify the plugin linker
1796 --with-glibc-version=M.N
1797 assume GCC used with glibc version M.N or later
1798 --with-long-double-128 use 128-bit long double by default
1799 --with-long-double-format={ieee,ibm}
1800 Specify whether PowerPC long double uses IEEE or IBM format
1802 --with-gc={page,zone} this option is not supported anymore. It used to
1803 choose the garbage collection mechanism to use with
1804 the compiler
1805 --with-system-zlib use installed libz
1806 --with-linker-hash-style={sysv,gnu,both}
1807 specify the linker hash style
1808 --with-diagnostics-color={never,auto,auto-if-env,always}
1809 specify the default of -fdiagnostics-color option
1810 auto-if-env stands for -fdiagnostics-color=auto if
1811 GCC_COLOR environment variable is present and
1812 -fdiagnostics-color=never otherwise
1814 Some influential environment variables:
1815 CC C compiler command
1816 CFLAGS C compiler flags
1817 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1818 nonstandard directory <lib dir>
1819 LIBS libraries to pass to the linker, e.g. -l<library>
1820 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1821 you have headers in a nonstandard directory <include dir>
1822 CXX C++ compiler command
1823 CXXFLAGS C++ compiler flags
1824 CXXCPP C++ preprocessor
1825 CPP C preprocessor
1826 GMPLIBS How to link GMP
1827 GMPINC How to find GMP include files
1828 ISLLIBS How to link isl
1829 ISLINC How to find isl include files
1831 Use these variables to override the choices made by `configure' or to help
1832 it to find libraries and programs with nonstandard names/locations.
1834 Report bugs to the package provider.
1835 _ACEOF
1836 ac_status=$?
1839 if test "$ac_init_help" = "recursive"; then
1840 # If there are subdirs, report their specific --help.
1841 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1842 test -d "$ac_dir" ||
1843 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1844 continue
1845 ac_builddir=.
1847 case "$ac_dir" in
1848 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1850 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1851 # A ".." for each directory in $ac_dir_suffix.
1852 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1853 case $ac_top_builddir_sub in
1854 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1855 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1856 esac ;;
1857 esac
1858 ac_abs_top_builddir=$ac_pwd
1859 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1860 # for backward compatibility:
1861 ac_top_builddir=$ac_top_build_prefix
1863 case $srcdir in
1864 .) # We are building in place.
1865 ac_srcdir=.
1866 ac_top_srcdir=$ac_top_builddir_sub
1867 ac_abs_top_srcdir=$ac_pwd ;;
1868 [\\/]* | ?:[\\/]* ) # Absolute name.
1869 ac_srcdir=$srcdir$ac_dir_suffix;
1870 ac_top_srcdir=$srcdir
1871 ac_abs_top_srcdir=$srcdir ;;
1872 *) # Relative name.
1873 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1874 ac_top_srcdir=$ac_top_build_prefix$srcdir
1875 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1876 esac
1877 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1879 cd "$ac_dir" || { ac_status=$?; continue; }
1880 # Check for guested configure.
1881 if test -f "$ac_srcdir/configure.gnu"; then
1882 echo &&
1883 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1884 elif test -f "$ac_srcdir/configure"; then
1885 echo &&
1886 $SHELL "$ac_srcdir/configure" --help=recursive
1887 else
1888 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1889 fi || ac_status=$?
1890 cd "$ac_pwd" || { ac_status=$?; break; }
1891 done
1894 test -n "$ac_init_help" && exit $ac_status
1895 if $ac_init_version; then
1896 cat <<\_ACEOF
1897 configure
1898 generated by GNU Autoconf 2.69
1900 Copyright (C) 2012 Free Software Foundation, Inc.
1901 This configure script is free software; the Free Software Foundation
1902 gives unlimited permission to copy, distribute and modify it.
1903 _ACEOF
1904 exit
1907 ## ------------------------ ##
1908 ## Autoconf initialization. ##
1909 ## ------------------------ ##
1911 # ac_fn_c_try_compile LINENO
1912 # --------------------------
1913 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1914 ac_fn_c_try_compile ()
1916 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1917 rm -f conftest.$ac_objext
1918 if { { ac_try="$ac_compile"
1919 case "(($ac_try" in
1920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1921 *) ac_try_echo=$ac_try;;
1922 esac
1923 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1924 $as_echo "$ac_try_echo"; } >&5
1925 (eval "$ac_compile") 2>conftest.err
1926 ac_status=$?
1927 if test -s conftest.err; then
1928 grep -v '^ *+' conftest.err >conftest.er1
1929 cat conftest.er1 >&5
1930 mv -f conftest.er1 conftest.err
1932 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1933 test $ac_status = 0; } && {
1934 test -z "$ac_c_werror_flag" ||
1935 test ! -s conftest.err
1936 } && test -s conftest.$ac_objext; then :
1937 ac_retval=0
1938 else
1939 $as_echo "$as_me: failed program was:" >&5
1940 sed 's/^/| /' conftest.$ac_ext >&5
1942 ac_retval=1
1944 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1945 as_fn_set_status $ac_retval
1947 } # ac_fn_c_try_compile
1949 # ac_fn_cxx_try_compile LINENO
1950 # ----------------------------
1951 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1952 ac_fn_cxx_try_compile ()
1954 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1955 rm -f conftest.$ac_objext
1956 if { { ac_try="$ac_compile"
1957 case "(($ac_try" in
1958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1959 *) ac_try_echo=$ac_try;;
1960 esac
1961 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1962 $as_echo "$ac_try_echo"; } >&5
1963 (eval "$ac_compile") 2>conftest.err
1964 ac_status=$?
1965 if test -s conftest.err; then
1966 grep -v '^ *+' conftest.err >conftest.er1
1967 cat conftest.er1 >&5
1968 mv -f conftest.er1 conftest.err
1970 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1971 test $ac_status = 0; } && {
1972 test -z "$ac_cxx_werror_flag" ||
1973 test ! -s conftest.err
1974 } && test -s conftest.$ac_objext; then :
1975 ac_retval=0
1976 else
1977 $as_echo "$as_me: failed program was:" >&5
1978 sed 's/^/| /' conftest.$ac_ext >&5
1980 ac_retval=1
1982 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1983 as_fn_set_status $ac_retval
1985 } # ac_fn_cxx_try_compile
1987 # ac_fn_cxx_try_cpp LINENO
1988 # ------------------------
1989 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1990 ac_fn_cxx_try_cpp ()
1992 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1993 if { { ac_try="$ac_cpp conftest.$ac_ext"
1994 case "(($ac_try" in
1995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1996 *) ac_try_echo=$ac_try;;
1997 esac
1998 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1999 $as_echo "$ac_try_echo"; } >&5
2000 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2001 ac_status=$?
2002 if test -s conftest.err; then
2003 grep -v '^ *+' conftest.err >conftest.er1
2004 cat conftest.er1 >&5
2005 mv -f conftest.er1 conftest.err
2007 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2008 test $ac_status = 0; } > conftest.i && {
2009 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2010 test ! -s conftest.err
2011 }; then :
2012 ac_retval=0
2013 else
2014 $as_echo "$as_me: failed program was:" >&5
2015 sed 's/^/| /' conftest.$ac_ext >&5
2017 ac_retval=1
2019 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2020 as_fn_set_status $ac_retval
2022 } # ac_fn_cxx_try_cpp
2024 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2025 # ---------------------------------------------------------
2026 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2027 # the include files in INCLUDES and setting the cache variable VAR
2028 # accordingly.
2029 ac_fn_cxx_check_header_mongrel ()
2031 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2032 if eval \${$3+:} false; then :
2033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2034 $as_echo_n "checking for $2... " >&6; }
2035 if eval \${$3+:} false; then :
2036 $as_echo_n "(cached) " >&6
2038 eval ac_res=\$$3
2039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2040 $as_echo "$ac_res" >&6; }
2041 else
2042 # Is the header compilable?
2043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2044 $as_echo_n "checking $2 usability... " >&6; }
2045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2046 /* end confdefs.h. */
2048 #include <$2>
2049 _ACEOF
2050 if ac_fn_cxx_try_compile "$LINENO"; then :
2051 ac_header_compiler=yes
2052 else
2053 ac_header_compiler=no
2055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2057 $as_echo "$ac_header_compiler" >&6; }
2059 # Is the header present?
2060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2061 $as_echo_n "checking $2 presence... " >&6; }
2062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2063 /* end confdefs.h. */
2064 #include <$2>
2065 _ACEOF
2066 if ac_fn_cxx_try_cpp "$LINENO"; then :
2067 ac_header_preproc=yes
2068 else
2069 ac_header_preproc=no
2071 rm -f conftest.err conftest.i conftest.$ac_ext
2072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2073 $as_echo "$ac_header_preproc" >&6; }
2075 # So? What about this header?
2076 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2077 yes:no: )
2078 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2079 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2080 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2081 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2083 no:yes:* )
2084 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2085 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2086 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2087 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2088 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2089 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2090 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2091 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2092 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2093 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2095 esac
2096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2097 $as_echo_n "checking for $2... " >&6; }
2098 if eval \${$3+:} false; then :
2099 $as_echo_n "(cached) " >&6
2100 else
2101 eval "$3=\$ac_header_compiler"
2103 eval ac_res=\$$3
2104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2105 $as_echo "$ac_res" >&6; }
2107 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2109 } # ac_fn_cxx_check_header_mongrel
2111 # ac_fn_cxx_try_run LINENO
2112 # ------------------------
2113 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2114 # that executables *can* be run.
2115 ac_fn_cxx_try_run ()
2117 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2118 if { { ac_try="$ac_link"
2119 case "(($ac_try" in
2120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2121 *) ac_try_echo=$ac_try;;
2122 esac
2123 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2124 $as_echo "$ac_try_echo"; } >&5
2125 (eval "$ac_link") 2>&5
2126 ac_status=$?
2127 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2128 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2129 { { case "(($ac_try" in
2130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2131 *) ac_try_echo=$ac_try;;
2132 esac
2133 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2134 $as_echo "$ac_try_echo"; } >&5
2135 (eval "$ac_try") 2>&5
2136 ac_status=$?
2137 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2138 test $ac_status = 0; }; }; then :
2139 ac_retval=0
2140 else
2141 $as_echo "$as_me: program exited with status $ac_status" >&5
2142 $as_echo "$as_me: failed program was:" >&5
2143 sed 's/^/| /' conftest.$ac_ext >&5
2145 ac_retval=$ac_status
2147 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2148 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2149 as_fn_set_status $ac_retval
2151 } # ac_fn_cxx_try_run
2153 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2154 # ---------------------------------------------------------
2155 # Tests whether HEADER exists and can be compiled using the include files in
2156 # INCLUDES, setting the cache variable VAR accordingly.
2157 ac_fn_cxx_check_header_compile ()
2159 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2161 $as_echo_n "checking for $2... " >&6; }
2162 if eval \${$3+:} false; then :
2163 $as_echo_n "(cached) " >&6
2164 else
2165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2166 /* end confdefs.h. */
2168 #include <$2>
2169 _ACEOF
2170 if ac_fn_cxx_try_compile "$LINENO"; then :
2171 eval "$3=yes"
2172 else
2173 eval "$3=no"
2175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2177 eval ac_res=\$$3
2178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2179 $as_echo "$ac_res" >&6; }
2180 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2182 } # ac_fn_cxx_check_header_compile
2184 # ac_fn_c_try_cpp LINENO
2185 # ----------------------
2186 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2187 ac_fn_c_try_cpp ()
2189 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2190 if { { ac_try="$ac_cpp conftest.$ac_ext"
2191 case "(($ac_try" in
2192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2193 *) ac_try_echo=$ac_try;;
2194 esac
2195 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2196 $as_echo "$ac_try_echo"; } >&5
2197 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2198 ac_status=$?
2199 if test -s conftest.err; then
2200 grep -v '^ *+' conftest.err >conftest.er1
2201 cat conftest.er1 >&5
2202 mv -f conftest.er1 conftest.err
2204 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2205 test $ac_status = 0; } > conftest.i && {
2206 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2207 test ! -s conftest.err
2208 }; then :
2209 ac_retval=0
2210 else
2211 $as_echo "$as_me: failed program was:" >&5
2212 sed 's/^/| /' conftest.$ac_ext >&5
2214 ac_retval=1
2216 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2217 as_fn_set_status $ac_retval
2219 } # ac_fn_c_try_cpp
2221 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2222 # ----------------------------------------------
2223 # Tries to find the compile-time value of EXPR in a program that includes
2224 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2225 # computed
2226 ac_fn_cxx_compute_int ()
2228 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2229 if test "$cross_compiling" = yes; then
2230 # Depending upon the size, compute the lo and hi bounds.
2231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2232 /* end confdefs.h. */
2235 main ()
2237 static int test_array [1 - 2 * !(($2) >= 0)];
2238 test_array [0] = 0;
2239 return test_array [0];
2242 return 0;
2244 _ACEOF
2245 if ac_fn_cxx_try_compile "$LINENO"; then :
2246 ac_lo=0 ac_mid=0
2247 while :; do
2248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2249 /* end confdefs.h. */
2252 main ()
2254 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2255 test_array [0] = 0;
2256 return test_array [0];
2259 return 0;
2261 _ACEOF
2262 if ac_fn_cxx_try_compile "$LINENO"; then :
2263 ac_hi=$ac_mid; break
2264 else
2265 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2266 if test $ac_lo -le $ac_mid; then
2267 ac_lo= ac_hi=
2268 break
2270 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2273 done
2274 else
2275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2276 /* end confdefs.h. */
2279 main ()
2281 static int test_array [1 - 2 * !(($2) < 0)];
2282 test_array [0] = 0;
2283 return test_array [0];
2286 return 0;
2288 _ACEOF
2289 if ac_fn_cxx_try_compile "$LINENO"; then :
2290 ac_hi=-1 ac_mid=-1
2291 while :; do
2292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2293 /* end confdefs.h. */
2296 main ()
2298 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2299 test_array [0] = 0;
2300 return test_array [0];
2303 return 0;
2305 _ACEOF
2306 if ac_fn_cxx_try_compile "$LINENO"; then :
2307 ac_lo=$ac_mid; break
2308 else
2309 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2310 if test $ac_mid -le $ac_hi; then
2311 ac_lo= ac_hi=
2312 break
2314 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2317 done
2318 else
2319 ac_lo= ac_hi=
2321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2324 # Binary search between lo and hi bounds.
2325 while test "x$ac_lo" != "x$ac_hi"; do
2326 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2328 /* end confdefs.h. */
2331 main ()
2333 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2334 test_array [0] = 0;
2335 return test_array [0];
2338 return 0;
2340 _ACEOF
2341 if ac_fn_cxx_try_compile "$LINENO"; then :
2342 ac_hi=$ac_mid
2343 else
2344 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2347 done
2348 case $ac_lo in #((
2349 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2350 '') ac_retval=1 ;;
2351 esac
2352 else
2353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2354 /* end confdefs.h. */
2356 static long int longval () { return $2; }
2357 static unsigned long int ulongval () { return $2; }
2358 #include <stdio.h>
2359 #include <stdlib.h>
2361 main ()
2364 FILE *f = fopen ("conftest.val", "w");
2365 if (! f)
2366 return 1;
2367 if (($2) < 0)
2369 long int i = longval ();
2370 if (i != ($2))
2371 return 1;
2372 fprintf (f, "%ld", i);
2374 else
2376 unsigned long int i = ulongval ();
2377 if (i != ($2))
2378 return 1;
2379 fprintf (f, "%lu", i);
2381 /* Do not output a trailing newline, as this causes \r\n confusion
2382 on some platforms. */
2383 return ferror (f) || fclose (f) != 0;
2386 return 0;
2388 _ACEOF
2389 if ac_fn_cxx_try_run "$LINENO"; then :
2390 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2391 else
2392 ac_retval=1
2394 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2395 conftest.$ac_objext conftest.beam conftest.$ac_ext
2396 rm -f conftest.val
2399 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2400 as_fn_set_status $ac_retval
2402 } # ac_fn_cxx_compute_int
2404 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2405 # ---------------------------------------------
2406 # Tests whether TYPE exists after having included INCLUDES, setting cache
2407 # variable VAR accordingly.
2408 ac_fn_cxx_check_type ()
2410 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2412 $as_echo_n "checking for $2... " >&6; }
2413 if eval \${$3+:} false; then :
2414 $as_echo_n "(cached) " >&6
2415 else
2416 eval "$3=no"
2417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2418 /* end confdefs.h. */
2421 main ()
2423 if (sizeof ($2))
2424 return 0;
2426 return 0;
2428 _ACEOF
2429 if ac_fn_cxx_try_compile "$LINENO"; then :
2430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2431 /* end confdefs.h. */
2434 main ()
2436 if (sizeof (($2)))
2437 return 0;
2439 return 0;
2441 _ACEOF
2442 if ac_fn_cxx_try_compile "$LINENO"; then :
2444 else
2445 eval "$3=yes"
2447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2451 eval ac_res=\$$3
2452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2453 $as_echo "$ac_res" >&6; }
2454 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2456 } # ac_fn_cxx_check_type
2458 # ac_fn_c_find_intX_t LINENO BITS VAR
2459 # -----------------------------------
2460 # Finds a signed integer type with width BITS, setting cache variable VAR
2461 # accordingly.
2462 ac_fn_c_find_intX_t ()
2464 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2466 $as_echo_n "checking for int$2_t... " >&6; }
2467 if eval \${$3+:} false; then :
2468 $as_echo_n "(cached) " >&6
2469 else
2470 eval "$3=no"
2471 # Order is important - never check a type that is potentially smaller
2472 # than half of the expected target width.
2473 for ac_type in int$2_t 'int' 'long int' \
2474 'long long int' 'short int' 'signed char'; do
2475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2476 /* end confdefs.h. */
2477 $ac_includes_default
2478 enum { N = $2 / 2 - 1 };
2480 main ()
2482 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2483 test_array [0] = 0;
2484 return test_array [0];
2487 return 0;
2489 _ACEOF
2490 if ac_fn_cxx_try_compile "$LINENO"; then :
2491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2492 /* end confdefs.h. */
2493 $ac_includes_default
2494 enum { N = $2 / 2 - 1 };
2496 main ()
2498 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2499 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2500 test_array [0] = 0;
2501 return test_array [0];
2504 return 0;
2506 _ACEOF
2507 if ac_fn_cxx_try_compile "$LINENO"; then :
2509 else
2510 case $ac_type in #(
2511 int$2_t) :
2512 eval "$3=yes" ;; #(
2513 *) :
2514 eval "$3=\$ac_type" ;;
2515 esac
2517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2520 if eval test \"x\$"$3"\" = x"no"; then :
2522 else
2523 break
2525 done
2527 eval ac_res=\$$3
2528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2529 $as_echo "$ac_res" >&6; }
2530 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2532 } # ac_fn_c_find_intX_t
2534 # ac_fn_cxx_try_link LINENO
2535 # -------------------------
2536 # Try to link conftest.$ac_ext, and return whether this succeeded.
2537 ac_fn_cxx_try_link ()
2539 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2540 rm -f conftest.$ac_objext conftest$ac_exeext
2541 if { { ac_try="$ac_link"
2542 case "(($ac_try" in
2543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2544 *) ac_try_echo=$ac_try;;
2545 esac
2546 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2547 $as_echo "$ac_try_echo"; } >&5
2548 (eval "$ac_link") 2>conftest.err
2549 ac_status=$?
2550 if test -s conftest.err; then
2551 grep -v '^ *+' conftest.err >conftest.er1
2552 cat conftest.er1 >&5
2553 mv -f conftest.er1 conftest.err
2555 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2556 test $ac_status = 0; } && {
2557 test -z "$ac_cxx_werror_flag" ||
2558 test ! -s conftest.err
2559 } && test -s conftest$ac_exeext && {
2560 test "$cross_compiling" = yes ||
2561 test -x conftest$ac_exeext
2562 }; then :
2563 ac_retval=0
2564 else
2565 $as_echo "$as_me: failed program was:" >&5
2566 sed 's/^/| /' conftest.$ac_ext >&5
2568 ac_retval=1
2570 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2571 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2572 # interfere with the next link command; also delete a directory that is
2573 # left behind by Apple's compiler. We do this before executing the actions.
2574 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2575 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2576 as_fn_set_status $ac_retval
2578 } # ac_fn_cxx_try_link
2580 # ac_fn_c_find_uintX_t LINENO BITS VAR
2581 # ------------------------------------
2582 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2583 # accordingly.
2584 ac_fn_c_find_uintX_t ()
2586 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2588 $as_echo_n "checking for uint$2_t... " >&6; }
2589 if eval \${$3+:} false; then :
2590 $as_echo_n "(cached) " >&6
2591 else
2592 eval "$3=no"
2593 # Order is important - never check a type that is potentially smaller
2594 # than half of the expected target width.
2595 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2596 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2598 /* end confdefs.h. */
2599 $ac_includes_default
2601 main ()
2603 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2604 test_array [0] = 0;
2605 return test_array [0];
2608 return 0;
2610 _ACEOF
2611 if ac_fn_cxx_try_compile "$LINENO"; then :
2612 case $ac_type in #(
2613 uint$2_t) :
2614 eval "$3=yes" ;; #(
2615 *) :
2616 eval "$3=\$ac_type" ;;
2617 esac
2619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2620 if eval test \"x\$"$3"\" = x"no"; then :
2622 else
2623 break
2625 done
2627 eval ac_res=\$$3
2628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2629 $as_echo "$ac_res" >&6; }
2630 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2632 } # ac_fn_c_find_uintX_t
2634 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2635 # ------------------------------------------------
2636 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2637 ac_fn_cxx_check_header_preproc ()
2639 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2641 $as_echo_n "checking for $2... " >&6; }
2642 if eval \${$3+:} false; then :
2643 $as_echo_n "(cached) " >&6
2644 else
2645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2646 /* end confdefs.h. */
2647 #include <$2>
2648 _ACEOF
2649 if ac_fn_cxx_try_cpp "$LINENO"; then :
2650 eval "$3=yes"
2651 else
2652 eval "$3=no"
2654 rm -f conftest.err conftest.i conftest.$ac_ext
2656 eval ac_res=\$$3
2657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2658 $as_echo "$ac_res" >&6; }
2659 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2661 } # ac_fn_cxx_check_header_preproc
2663 # ac_fn_cxx_check_func LINENO FUNC VAR
2664 # ------------------------------------
2665 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2666 ac_fn_cxx_check_func ()
2668 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2670 $as_echo_n "checking for $2... " >&6; }
2671 if eval \${$3+:} false; then :
2672 $as_echo_n "(cached) " >&6
2673 else
2674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2675 /* end confdefs.h. */
2676 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2677 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2678 #define $2 innocuous_$2
2680 /* System header to define __stub macros and hopefully few prototypes,
2681 which can conflict with char $2 (); below.
2682 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2683 <limits.h> exists even on freestanding compilers. */
2685 #ifdef __STDC__
2686 # include <limits.h>
2687 #else
2688 # include <assert.h>
2689 #endif
2691 #undef $2
2693 /* Override any GCC internal prototype to avoid an error.
2694 Use char because int might match the return type of a GCC
2695 builtin and then its argument prototype would still apply. */
2696 #ifdef __cplusplus
2697 extern "C"
2698 #endif
2699 char $2 ();
2700 /* The GNU C library defines this for functions which it implements
2701 to always fail with ENOSYS. Some functions are actually named
2702 something starting with __ and the normal name is an alias. */
2703 #if defined __stub_$2 || defined __stub___$2
2704 choke me
2705 #endif
2708 main ()
2710 return $2 ();
2712 return 0;
2714 _ACEOF
2715 if ac_fn_cxx_try_link "$LINENO"; then :
2716 eval "$3=yes"
2717 else
2718 eval "$3=no"
2720 rm -f core conftest.err conftest.$ac_objext \
2721 conftest$ac_exeext conftest.$ac_ext
2723 eval ac_res=\$$3
2724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2725 $as_echo "$ac_res" >&6; }
2726 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2728 } # ac_fn_cxx_check_func
2730 # ac_fn_cxx_check_decl LINENO SYMBOL VAR INCLUDES
2731 # -----------------------------------------------
2732 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2733 # accordingly.
2734 ac_fn_cxx_check_decl ()
2736 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2737 as_decl_name=`echo $2|sed 's/ *(.*//'`
2738 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2740 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2741 if eval \${$3+:} false; then :
2742 $as_echo_n "(cached) " >&6
2743 else
2744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2745 /* end confdefs.h. */
2748 main ()
2750 #ifndef $as_decl_name
2751 #ifdef __cplusplus
2752 (void) $as_decl_use;
2753 #else
2754 (void) $as_decl_name;
2755 #endif
2756 #endif
2759 return 0;
2761 _ACEOF
2762 if ac_fn_cxx_try_compile "$LINENO"; then :
2763 eval "$3=yes"
2764 else
2765 eval "$3=no"
2767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2769 eval ac_res=\$$3
2770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2771 $as_echo "$ac_res" >&6; }
2772 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2774 } # ac_fn_cxx_check_decl
2776 # ac_fn_c_try_link LINENO
2777 # -----------------------
2778 # Try to link conftest.$ac_ext, and return whether this succeeded.
2779 ac_fn_c_try_link ()
2781 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2782 rm -f conftest.$ac_objext conftest$ac_exeext
2783 if { { ac_try="$ac_link"
2784 case "(($ac_try" in
2785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2786 *) ac_try_echo=$ac_try;;
2787 esac
2788 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2789 $as_echo "$ac_try_echo"; } >&5
2790 (eval "$ac_link") 2>conftest.err
2791 ac_status=$?
2792 if test -s conftest.err; then
2793 grep -v '^ *+' conftest.err >conftest.er1
2794 cat conftest.er1 >&5
2795 mv -f conftest.er1 conftest.err
2797 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2798 test $ac_status = 0; } && {
2799 test -z "$ac_c_werror_flag" ||
2800 test ! -s conftest.err
2801 } && test -s conftest$ac_exeext && {
2802 test "$cross_compiling" = yes ||
2803 test -x conftest$ac_exeext
2804 }; then :
2805 ac_retval=0
2806 else
2807 $as_echo "$as_me: failed program was:" >&5
2808 sed 's/^/| /' conftest.$ac_ext >&5
2810 ac_retval=1
2812 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2813 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2814 # interfere with the next link command; also delete a directory that is
2815 # left behind by Apple's compiler. We do this before executing the actions.
2816 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2817 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2818 as_fn_set_status $ac_retval
2820 } # ac_fn_c_try_link
2822 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2823 # ----------------------------------------------
2824 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2825 ac_fn_c_check_header_preproc ()
2827 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2829 $as_echo_n "checking for $2... " >&6; }
2830 if eval \${$3+:} false; then :
2831 $as_echo_n "(cached) " >&6
2832 else
2833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2834 /* end confdefs.h. */
2835 #include <$2>
2836 _ACEOF
2837 if ac_fn_c_try_cpp "$LINENO"; then :
2838 eval "$3=yes"
2839 else
2840 eval "$3=no"
2842 rm -f conftest.err conftest.i conftest.$ac_ext
2844 eval ac_res=\$$3
2845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2846 $as_echo "$ac_res" >&6; }
2847 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2849 } # ac_fn_c_check_header_preproc
2851 # ac_fn_c_check_func LINENO FUNC VAR
2852 # ----------------------------------
2853 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2854 ac_fn_c_check_func ()
2856 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2858 $as_echo_n "checking for $2... " >&6; }
2859 if eval \${$3+:} false; then :
2860 $as_echo_n "(cached) " >&6
2861 else
2862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2863 /* end confdefs.h. */
2864 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2865 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2866 #define $2 innocuous_$2
2868 /* System header to define __stub macros and hopefully few prototypes,
2869 which can conflict with char $2 (); below.
2870 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2871 <limits.h> exists even on freestanding compilers. */
2873 #ifdef __STDC__
2874 # include <limits.h>
2875 #else
2876 # include <assert.h>
2877 #endif
2879 #undef $2
2881 /* Override any GCC internal prototype to avoid an error.
2882 Use char because int might match the return type of a GCC
2883 builtin and then its argument prototype would still apply. */
2884 #ifdef __cplusplus
2885 extern "C"
2886 #endif
2887 char $2 ();
2888 /* The GNU C library defines this for functions which it implements
2889 to always fail with ENOSYS. Some functions are actually named
2890 something starting with __ and the normal name is an alias. */
2891 #if defined __stub_$2 || defined __stub___$2
2892 choke me
2893 #endif
2896 main ()
2898 return $2 ();
2900 return 0;
2902 _ACEOF
2903 if ac_fn_c_try_link "$LINENO"; then :
2904 eval "$3=yes"
2905 else
2906 eval "$3=no"
2908 rm -f core conftest.err conftest.$ac_objext \
2909 conftest$ac_exeext conftest.$ac_ext
2911 eval ac_res=\$$3
2912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2913 $as_echo "$ac_res" >&6; }
2914 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2916 } # ac_fn_c_check_func
2917 cat >config.log <<_ACEOF
2918 This file contains any messages produced by compilers while
2919 running configure, to aid debugging if configure makes a mistake.
2921 It was created by $as_me, which was
2922 generated by GNU Autoconf 2.69. Invocation command line was
2924 $ $0 $@
2926 _ACEOF
2927 exec 5>>config.log
2929 cat <<_ASUNAME
2930 ## --------- ##
2931 ## Platform. ##
2932 ## --------- ##
2934 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2935 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2936 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2937 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2938 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2940 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2941 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2943 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2944 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2945 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2946 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2947 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2948 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2949 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2951 _ASUNAME
2953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2954 for as_dir in $PATH
2956 IFS=$as_save_IFS
2957 test -z "$as_dir" && as_dir=.
2958 $as_echo "PATH: $as_dir"
2959 done
2960 IFS=$as_save_IFS
2962 } >&5
2964 cat >&5 <<_ACEOF
2967 ## ----------- ##
2968 ## Core tests. ##
2969 ## ----------- ##
2971 _ACEOF
2974 # Keep a trace of the command line.
2975 # Strip out --no-create and --no-recursion so they do not pile up.
2976 # Strip out --silent because we don't want to record it for future runs.
2977 # Also quote any args containing shell meta-characters.
2978 # Make two passes to allow for proper duplicate-argument suppression.
2979 ac_configure_args=
2980 ac_configure_args0=
2981 ac_configure_args1=
2982 ac_must_keep_next=false
2983 for ac_pass in 1 2
2985 for ac_arg
2987 case $ac_arg in
2988 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2989 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2990 | -silent | --silent | --silen | --sile | --sil)
2991 continue ;;
2992 *\'*)
2993 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2994 esac
2995 case $ac_pass in
2996 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2998 as_fn_append ac_configure_args1 " '$ac_arg'"
2999 if test $ac_must_keep_next = true; then
3000 ac_must_keep_next=false # Got value, back to normal.
3001 else
3002 case $ac_arg in
3003 *=* | --config-cache | -C | -disable-* | --disable-* \
3004 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3005 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3006 | -with-* | --with-* | -without-* | --without-* | --x)
3007 case "$ac_configure_args0 " in
3008 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3009 esac
3011 -* ) ac_must_keep_next=true ;;
3012 esac
3014 as_fn_append ac_configure_args " '$ac_arg'"
3016 esac
3017 done
3018 done
3019 { ac_configure_args0=; unset ac_configure_args0;}
3020 { ac_configure_args1=; unset ac_configure_args1;}
3022 # When interrupted or exit'd, cleanup temporary files, and complete
3023 # config.log. We remove comments because anyway the quotes in there
3024 # would cause problems or look ugly.
3025 # WARNING: Use '\'' to represent an apostrophe within the trap.
3026 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3027 trap 'exit_status=$?
3028 # Save into config.log some information that might help in debugging.
3030 echo
3032 $as_echo "## ---------------- ##
3033 ## Cache variables. ##
3034 ## ---------------- ##"
3035 echo
3036 # The following way of writing the cache mishandles newlines in values,
3038 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3039 eval ac_val=\$$ac_var
3040 case $ac_val in #(
3041 *${as_nl}*)
3042 case $ac_var in #(
3043 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3044 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3045 esac
3046 case $ac_var in #(
3047 _ | IFS | as_nl) ;; #(
3048 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3049 *) { eval $ac_var=; unset $ac_var;} ;;
3050 esac ;;
3051 esac
3052 done
3053 (set) 2>&1 |
3054 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3055 *${as_nl}ac_space=\ *)
3056 sed -n \
3057 "s/'\''/'\''\\\\'\'''\''/g;
3058 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3059 ;; #(
3061 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3063 esac |
3064 sort
3066 echo
3068 $as_echo "## ----------------- ##
3069 ## Output variables. ##
3070 ## ----------------- ##"
3071 echo
3072 for ac_var in $ac_subst_vars
3074 eval ac_val=\$$ac_var
3075 case $ac_val in
3076 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3077 esac
3078 $as_echo "$ac_var='\''$ac_val'\''"
3079 done | sort
3080 echo
3082 if test -n "$ac_subst_files"; then
3083 $as_echo "## ------------------- ##
3084 ## File substitutions. ##
3085 ## ------------------- ##"
3086 echo
3087 for ac_var in $ac_subst_files
3089 eval ac_val=\$$ac_var
3090 case $ac_val in
3091 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3092 esac
3093 $as_echo "$ac_var='\''$ac_val'\''"
3094 done | sort
3095 echo
3098 if test -s confdefs.h; then
3099 $as_echo "## ----------- ##
3100 ## confdefs.h. ##
3101 ## ----------- ##"
3102 echo
3103 cat confdefs.h
3104 echo
3106 test "$ac_signal" != 0 &&
3107 $as_echo "$as_me: caught signal $ac_signal"
3108 $as_echo "$as_me: exit $exit_status"
3109 } >&5
3110 rm -f core *.core core.conftest.* &&
3111 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3112 exit $exit_status
3114 for ac_signal in 1 2 13 15; do
3115 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3116 done
3117 ac_signal=0
3119 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3120 rm -f -r conftest* confdefs.h
3122 $as_echo "/* confdefs.h */" > confdefs.h
3124 # Predefined preprocessor variables.
3126 cat >>confdefs.h <<_ACEOF
3127 #define PACKAGE_NAME "$PACKAGE_NAME"
3128 _ACEOF
3130 cat >>confdefs.h <<_ACEOF
3131 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3132 _ACEOF
3134 cat >>confdefs.h <<_ACEOF
3135 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3136 _ACEOF
3138 cat >>confdefs.h <<_ACEOF
3139 #define PACKAGE_STRING "$PACKAGE_STRING"
3140 _ACEOF
3142 cat >>confdefs.h <<_ACEOF
3143 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3144 _ACEOF
3146 cat >>confdefs.h <<_ACEOF
3147 #define PACKAGE_URL "$PACKAGE_URL"
3148 _ACEOF
3151 # Let the site file select an alternate cache file if it wants to.
3152 # Prefer an explicitly selected file to automatically selected ones.
3153 ac_site_file1=NONE
3154 ac_site_file2=NONE
3155 if test -n "$CONFIG_SITE"; then
3156 # We do not want a PATH search for config.site.
3157 case $CONFIG_SITE in #((
3158 -*) ac_site_file1=./$CONFIG_SITE;;
3159 */*) ac_site_file1=$CONFIG_SITE;;
3160 *) ac_site_file1=./$CONFIG_SITE;;
3161 esac
3162 elif test "x$prefix" != xNONE; then
3163 ac_site_file1=$prefix/share/config.site
3164 ac_site_file2=$prefix/etc/config.site
3165 else
3166 ac_site_file1=$ac_default_prefix/share/config.site
3167 ac_site_file2=$ac_default_prefix/etc/config.site
3169 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3171 test "x$ac_site_file" = xNONE && continue
3172 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3173 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3174 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3175 sed 's/^/| /' "$ac_site_file" >&5
3176 . "$ac_site_file" \
3177 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3178 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3179 as_fn_error $? "failed to load site script $ac_site_file
3180 See \`config.log' for more details" "$LINENO" 5; }
3182 done
3184 if test -r "$cache_file"; then
3185 # Some versions of bash will fail to source /dev/null (special files
3186 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3187 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3188 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3189 $as_echo "$as_me: loading cache $cache_file" >&6;}
3190 case $cache_file in
3191 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3192 *) . "./$cache_file";;
3193 esac
3195 else
3196 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3197 $as_echo "$as_me: creating cache $cache_file" >&6;}
3198 >$cache_file
3201 # Check that the precious variables saved in the cache have kept the same
3202 # value.
3203 ac_cache_corrupted=false
3204 for ac_var in $ac_precious_vars; do
3205 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3206 eval ac_new_set=\$ac_env_${ac_var}_set
3207 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3208 eval ac_new_val=\$ac_env_${ac_var}_value
3209 case $ac_old_set,$ac_new_set in
3210 set,)
3211 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3212 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3213 ac_cache_corrupted=: ;;
3214 ,set)
3215 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3216 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3217 ac_cache_corrupted=: ;;
3218 ,);;
3220 if test "x$ac_old_val" != "x$ac_new_val"; then
3221 # differences in whitespace do not lead to failure.
3222 ac_old_val_w=`echo x $ac_old_val`
3223 ac_new_val_w=`echo x $ac_new_val`
3224 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3225 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3226 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3227 ac_cache_corrupted=:
3228 else
3229 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3230 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3231 eval $ac_var=\$ac_old_val
3233 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3234 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3235 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3236 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3237 fi;;
3238 esac
3239 # Pass precious variables to config.status.
3240 if test "$ac_new_set" = set; then
3241 case $ac_new_val in
3242 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3243 *) ac_arg=$ac_var=$ac_new_val ;;
3244 esac
3245 case " $ac_configure_args " in
3246 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3247 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3248 esac
3250 done
3251 if $ac_cache_corrupted; then
3252 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3253 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3254 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3255 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3256 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3258 ## -------------------- ##
3259 ## Main body of script. ##
3260 ## -------------------- ##
3262 ac_ext=c
3263 ac_cpp='$CPP $CPPFLAGS'
3264 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3265 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3266 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3273 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3276 gcc_version=`cat $srcdir/BASE-VER`
3278 # Determine the host, build, and target systems
3279 ac_aux_dir=
3280 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3281 if test -f "$ac_dir/install-sh"; then
3282 ac_aux_dir=$ac_dir
3283 ac_install_sh="$ac_aux_dir/install-sh -c"
3284 break
3285 elif test -f "$ac_dir/install.sh"; then
3286 ac_aux_dir=$ac_dir
3287 ac_install_sh="$ac_aux_dir/install.sh -c"
3288 break
3289 elif test -f "$ac_dir/shtool"; then
3290 ac_aux_dir=$ac_dir
3291 ac_install_sh="$ac_aux_dir/shtool install -c"
3292 break
3294 done
3295 if test -z "$ac_aux_dir"; then
3296 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3299 # These three variables are undocumented and unsupported,
3300 # and are intended to be withdrawn in a future Autoconf release.
3301 # They can cause serious problems if a builder's source tree is in a directory
3302 # whose full name contains unusual characters.
3303 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3304 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3305 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3308 # Make sure we can run config.sub.
3309 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3310 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3313 $as_echo_n "checking build system type... " >&6; }
3314 if ${ac_cv_build+:} false; then :
3315 $as_echo_n "(cached) " >&6
3316 else
3317 ac_build_alias=$build_alias
3318 test "x$ac_build_alias" = x &&
3319 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3320 test "x$ac_build_alias" = x &&
3321 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3322 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3323 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3327 $as_echo "$ac_cv_build" >&6; }
3328 case $ac_cv_build in
3329 *-*-*) ;;
3330 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3331 esac
3332 build=$ac_cv_build
3333 ac_save_IFS=$IFS; IFS='-'
3334 set x $ac_cv_build
3335 shift
3336 build_cpu=$1
3337 build_vendor=$2
3338 shift; shift
3339 # Remember, the first character of IFS is used to create $*,
3340 # except with old shells:
3341 build_os=$*
3342 IFS=$ac_save_IFS
3343 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3347 $as_echo_n "checking host system type... " >&6; }
3348 if ${ac_cv_host+:} false; then :
3349 $as_echo_n "(cached) " >&6
3350 else
3351 if test "x$host_alias" = x; then
3352 ac_cv_host=$ac_cv_build
3353 else
3354 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3355 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3360 $as_echo "$ac_cv_host" >&6; }
3361 case $ac_cv_host in
3362 *-*-*) ;;
3363 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3364 esac
3365 host=$ac_cv_host
3366 ac_save_IFS=$IFS; IFS='-'
3367 set x $ac_cv_host
3368 shift
3369 host_cpu=$1
3370 host_vendor=$2
3371 shift; shift
3372 # Remember, the first character of IFS is used to create $*,
3373 # except with old shells:
3374 host_os=$*
3375 IFS=$ac_save_IFS
3376 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3380 $as_echo_n "checking target system type... " >&6; }
3381 if ${ac_cv_target+:} false; then :
3382 $as_echo_n "(cached) " >&6
3383 else
3384 if test "x$target_alias" = x; then
3385 ac_cv_target=$ac_cv_host
3386 else
3387 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3388 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3393 $as_echo "$ac_cv_target" >&6; }
3394 case $ac_cv_target in
3395 *-*-*) ;;
3396 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
3397 esac
3398 target=$ac_cv_target
3399 ac_save_IFS=$IFS; IFS='-'
3400 set x $ac_cv_target
3401 shift
3402 target_cpu=$1
3403 target_vendor=$2
3404 shift; shift
3405 # Remember, the first character of IFS is used to create $*,
3406 # except with old shells:
3407 target_os=$*
3408 IFS=$ac_save_IFS
3409 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3412 # The aliases save the names the user supplied, while $host etc.
3413 # will get canonicalized.
3414 test -n "$target_alias" &&
3415 test "$program_prefix$program_suffix$program_transform_name" = \
3416 NONENONEs,x,x, &&
3417 program_prefix=${target_alias}-
3419 # Determine the noncanonical host name, for Ada.
3420 case ${build_alias} in
3421 "") build_noncanonical=${build} ;;
3422 *) build_noncanonical=${build_alias} ;;
3423 esac
3425 case ${host_alias} in
3426 "") host_noncanonical=${build_noncanonical} ;;
3427 *) host_noncanonical=${host_alias} ;;
3428 esac
3433 # Determine the noncanonical target name, for directory use.
3434 case ${target_alias} in
3435 "") target_noncanonical=${host_noncanonical} ;;
3436 *) target_noncanonical=${target_alias} ;;
3437 esac
3442 # Used for constructing correct paths for offload compilers.
3443 real_target_noncanonical=${target_noncanonical}
3444 accel_dir_suffix=
3446 # Determine the target- and build-specific subdirectories
3448 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3449 # have matching libraries, they should use host libraries: Makefile.tpl
3450 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3451 # However, they still use the build modules, because the corresponding
3452 # host modules (e.g. bison) are only built for the host when bootstrap
3453 # finishes. So:
3454 # - build_subdir is where we find build modules, and never changes.
3455 # - build_libsubdir is where we find build libraries, and can be overridden.
3457 # Prefix 'build-' so this never conflicts with target_subdir.
3458 build_subdir="build-${build_noncanonical}"
3460 # Check whether --with-build-libsubdir was given.
3461 if test "${with_build_libsubdir+set}" = set; then :
3462 withval=$with_build_libsubdir; build_libsubdir="$withval"
3463 else
3464 build_libsubdir="$build_subdir"
3467 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3468 if ( test $srcdir = . && test -d gcc ) \
3469 || test -d $srcdir/../host-${host_noncanonical}; then
3470 host_subdir="host-${host_noncanonical}"
3471 else
3472 host_subdir=.
3474 # No prefix.
3475 target_subdir=${target_noncanonical}
3478 # Set program_transform_name
3479 test "$program_prefix" != NONE &&
3480 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3481 # Use a double $ so make ignores it.
3482 test "$program_suffix" != NONE &&
3483 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3484 # Double any \ or $.
3485 # By default was `s,x,x', remove it if useless.
3486 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3487 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3490 # Check for bogus environment variables.
3491 # Test if LIBRARY_PATH contains the notation for the current directory
3492 # since this would lead to problems installing/building glibc.
3493 # LIBRARY_PATH contains the current directory if one of the following
3494 # is true:
3495 # - one of the terminals (":" and ";") is the first or last sign
3496 # - two terminals occur directly after each other
3497 # - the path contains an element with a dot in it
3498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3499 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3500 case ${LIBRARY_PATH} in
3501 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3502 library_path_setting="contains current directory"
3505 library_path_setting="ok"
3507 esac
3508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3509 $as_echo "$library_path_setting" >&6; }
3510 if test "$library_path_setting" != "ok"; then
3511 as_fn_error $? "
3512 *** LIBRARY_PATH shouldn't contain the current directory when
3513 *** building gcc. Please change the environment variable
3514 *** and run configure again." "$LINENO" 5
3517 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3518 # since this would lead to problems installing/building glibc.
3519 # GCC_EXEC_PREFIX contains the current directory if one of the following
3520 # is true:
3521 # - one of the terminals (":" and ";") is the first or last sign
3522 # - two terminals occur directly after each other
3523 # - the path contains an element with a dot in it
3524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3525 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3526 case ${GCC_EXEC_PREFIX} in
3527 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3528 gcc_exec_prefix_setting="contains current directory"
3531 gcc_exec_prefix_setting="ok"
3533 esac
3534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3535 $as_echo "$gcc_exec_prefix_setting" >&6; }
3536 if test "$gcc_exec_prefix_setting" != "ok"; then
3537 as_fn_error $? "
3538 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3539 *** building gcc. Please change the environment variable
3540 *** and run configure again." "$LINENO" 5
3543 # -----------
3544 # Directories
3545 # -----------
3547 # Specify the local prefix
3548 local_prefix=
3550 # Check whether --with-local-prefix was given.
3551 if test "${with_local_prefix+set}" = set; then :
3552 withval=$with_local_prefix; case "${withval}" in
3553 yes) as_fn_error $? "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3554 no) ;;
3555 *) local_prefix=$with_local_prefix ;;
3556 esac
3560 # Default local prefix if it is empty
3561 if test x$local_prefix = x; then
3562 local_prefix=/usr/local
3566 # Check whether --with-native-system-header-dir was given.
3567 if test "${with_native_system_header_dir+set}" = set; then :
3568 withval=$with_native_system_header_dir;
3569 case ${with_native_system_header_dir} in
3570 yes|no) as_fn_error $? "bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
3571 /* | [A-Za-z]:[\\/]*) ;;
3572 *) as_fn_error $? "--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
3573 esac
3574 configured_native_system_header_dir="${withval}"
3576 else
3577 configured_native_system_header_dir=
3582 # Check whether --with-build-sysroot was given.
3583 if test "${with_build_sysroot+set}" = set; then :
3584 withval=$with_build_sysroot; if test x"$withval" != x ; then
3585 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
3587 else
3588 SYSROOT_CFLAGS_FOR_TARGET=
3593 if test "x$prefix" = xNONE; then
3594 test_prefix=/usr/local
3595 else
3596 test_prefix=$prefix
3598 if test "x$exec_prefix" = xNONE; then
3599 test_exec_prefix=$test_prefix
3600 else
3601 test_exec_prefix=$exec_prefix
3605 # Check whether --with-sysroot was given.
3606 if test "${with_sysroot+set}" = set; then :
3607 withval=$with_sysroot;
3608 case ${with_sysroot} in
3609 /) ;;
3610 */) with_sysroot=`echo $with_sysroot | sed 's,/$,,'` ;;
3611 esac
3612 case ${with_sysroot} in
3613 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
3614 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
3615 esac
3617 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
3618 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
3620 case ${TARGET_SYSTEM_ROOT} in
3621 "${test_prefix}"|"${test_prefix}/"*|\
3622 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
3623 '${prefix}'|'${prefix}/'*|\
3624 '${exec_prefix}'|'${exec_prefix}/'*)
3625 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
3626 TARGET_SYSTEM_ROOT_DEFINE="$t"
3628 esac
3630 else
3632 TARGET_SYSTEM_ROOT=
3633 TARGET_SYSTEM_ROOT_DEFINE=
3634 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
3642 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3643 # passed in by the toplevel make and thus we'd get different behavior
3644 # depending on where we built the sources.
3645 gcc_gxx_include_dir=
3646 # Specify the g++ header file directory
3648 # Check whether --with-gxx-include-dir was given.
3649 if test "${with_gxx_include_dir+set}" = set; then :
3650 withval=$with_gxx_include_dir; case "${withval}" in
3651 yes) as_fn_error $? "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3652 no) ;;
3653 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
3654 esac
3658 # If both --with-sysroot and --with-gxx-include-dir are passed, we interpolate
3659 # the former in the latter and, upon success, compute gcc_gxx_include_dir as
3660 # relative to the sysroot.
3661 gcc_gxx_include_dir_add_sysroot=0
3663 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3664 if test x${gcc_gxx_include_dir} = x; then
3665 if test x${enable_version_specific_runtime_libs} = xyes; then
3666 gcc_gxx_include_dir='${libsubdir}/include/c++'
3667 else
3668 libstdcxx_incdir='include/c++/$(version)'
3669 if test x$host != x$target; then
3670 libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3672 gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3674 elif test "${with_sysroot+set}" = set; then
3675 gcc_gxx_without_sysroot=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3676 if test "${gcc_gxx_without_sysroot}"; then
3677 gcc_gxx_include_dir="${gcc_gxx_without_sysroot}"
3678 gcc_gxx_include_dir_add_sysroot=1
3683 # Check whether --with-cpp_install_dir was given.
3684 if test "${with_cpp_install_dir+set}" = set; then :
3685 withval=$with_cpp_install_dir; if test x$withval = xyes; then
3686 as_fn_error $? "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3687 elif test x$withval != xno; then
3688 cpp_install_dir=$withval
3693 # We would like to our source tree to be readonly. However when releases or
3694 # pre-releases are generated, the flex/bison generated files as well as the
3695 # various formats of manuals need to be included along with the rest of the
3696 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3697 # just that.
3699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3700 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3701 # Check whether --enable-generated-files-in-srcdir was given.
3702 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3703 enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3704 else
3705 generated_files_in_srcdir=no
3709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3710 $as_echo "$generated_files_in_srcdir" >&6; }
3712 if test "$generated_files_in_srcdir" = "yes"; then
3713 GENINSRC=''
3714 else
3715 GENINSRC='#'
3719 # -------------------
3720 # Find default linker
3721 # -------------------
3723 # With GNU ld
3725 # Check whether --with-gnu-ld was given.
3726 if test "${with_gnu_ld+set}" = set; then :
3727 withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3728 else
3729 gnu_ld_flag=no
3733 case $target in
3734 *darwin*) ld64_flag=yes;; # Darwin can only use a ld64-compatible linker.
3735 *) ld64_flag=no;;
3736 esac
3738 # With pre-defined ld
3740 # Check whether --with-ld was given.
3741 if test "${with_ld+set}" = set; then :
3742 withval=$with_ld; DEFAULT_LINKER="$with_ld"
3745 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3746 if test ! -x "$DEFAULT_LINKER"; then
3747 as_fn_error $? "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3748 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3749 gnu_ld_flag=yes
3750 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep ld64- > /dev/null; then
3751 ld64_flag=yes
3754 cat >>confdefs.h <<_ACEOF
3755 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3756 _ACEOF
3760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3761 $as_echo_n "checking whether a default linker was specified... " >&6; }
3762 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3763 if test x"$gnu_ld_flag" = x"no"; then
3764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3765 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3766 else
3767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3768 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3770 else
3771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3772 $as_echo "no" >&6; }
3775 # With demangler in GNU ld
3777 # Check whether --with-demangler-in-ld was given.
3778 if test "${with_demangler_in_ld+set}" = set; then :
3779 withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3780 else
3781 demangler_in_ld=yes
3785 # ----------------------
3786 # Find default assembler
3787 # ----------------------
3789 # With GNU as
3791 # Check whether --with-gnu-as was given.
3792 if test "${with_gnu_as+set}" = set; then :
3793 withval=$with_gnu_as; gas_flag="$with_gnu_as"
3794 else
3795 gas_flag=no
3800 # Check whether --with-as was given.
3801 if test "${with_as+set}" = set; then :
3802 withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
3805 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3806 if test ! -x "$DEFAULT_ASSEMBLER"; then
3807 as_fn_error $? "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3808 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3809 gas_flag=yes
3812 cat >>confdefs.h <<_ACEOF
3813 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3814 _ACEOF
3818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3819 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3820 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3821 if test x"$gas_flag" = x"no"; then
3822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3823 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3824 else
3825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3826 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3828 else
3829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3830 $as_echo "no" >&6; }
3833 # ---------------
3834 # Find C compiler
3835 # ---------------
3837 # If a non-executable a.out is present (e.g. created by GNU as above even if
3838 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3839 # file, even when creating an executable, so an execution test fails.
3840 # Remove possible default executable files to avoid this.
3842 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3843 # Autoconf includes it.
3844 rm -f a.out a.exe b.out
3846 # Find the native compiler
3847 ac_ext=c
3848 ac_cpp='$CPP $CPPFLAGS'
3849 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3850 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3851 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3852 if test -n "$ac_tool_prefix"; then
3853 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3854 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3856 $as_echo_n "checking for $ac_word... " >&6; }
3857 if ${ac_cv_prog_CC+:} false; then :
3858 $as_echo_n "(cached) " >&6
3859 else
3860 if test -n "$CC"; then
3861 ac_cv_prog_CC="$CC" # Let the user override the test.
3862 else
3863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3864 for as_dir in $PATH
3866 IFS=$as_save_IFS
3867 test -z "$as_dir" && as_dir=.
3868 for ac_exec_ext in '' $ac_executable_extensions; do
3869 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3870 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3872 break 2
3874 done
3875 done
3876 IFS=$as_save_IFS
3880 CC=$ac_cv_prog_CC
3881 if test -n "$CC"; then
3882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3883 $as_echo "$CC" >&6; }
3884 else
3885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3886 $as_echo "no" >&6; }
3891 if test -z "$ac_cv_prog_CC"; then
3892 ac_ct_CC=$CC
3893 # Extract the first word of "gcc", so it can be a program name with args.
3894 set dummy gcc; ac_word=$2
3895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3896 $as_echo_n "checking for $ac_word... " >&6; }
3897 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3898 $as_echo_n "(cached) " >&6
3899 else
3900 if test -n "$ac_ct_CC"; then
3901 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3902 else
3903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3904 for as_dir in $PATH
3906 IFS=$as_save_IFS
3907 test -z "$as_dir" && as_dir=.
3908 for ac_exec_ext in '' $ac_executable_extensions; do
3909 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3910 ac_cv_prog_ac_ct_CC="gcc"
3911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3912 break 2
3914 done
3915 done
3916 IFS=$as_save_IFS
3920 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3921 if test -n "$ac_ct_CC"; then
3922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3923 $as_echo "$ac_ct_CC" >&6; }
3924 else
3925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3926 $as_echo "no" >&6; }
3929 if test "x$ac_ct_CC" = x; then
3930 CC=""
3931 else
3932 case $cross_compiling:$ac_tool_warned in
3933 yes:)
3934 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3935 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3936 ac_tool_warned=yes ;;
3937 esac
3938 CC=$ac_ct_CC
3940 else
3941 CC="$ac_cv_prog_CC"
3944 if test -z "$CC"; then
3945 if test -n "$ac_tool_prefix"; then
3946 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3947 set dummy ${ac_tool_prefix}cc; ac_word=$2
3948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3949 $as_echo_n "checking for $ac_word... " >&6; }
3950 if ${ac_cv_prog_CC+:} false; then :
3951 $as_echo_n "(cached) " >&6
3952 else
3953 if test -n "$CC"; then
3954 ac_cv_prog_CC="$CC" # Let the user override the test.
3955 else
3956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3957 for as_dir in $PATH
3959 IFS=$as_save_IFS
3960 test -z "$as_dir" && as_dir=.
3961 for ac_exec_ext in '' $ac_executable_extensions; do
3962 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3963 ac_cv_prog_CC="${ac_tool_prefix}cc"
3964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3965 break 2
3967 done
3968 done
3969 IFS=$as_save_IFS
3973 CC=$ac_cv_prog_CC
3974 if test -n "$CC"; then
3975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3976 $as_echo "$CC" >&6; }
3977 else
3978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3979 $as_echo "no" >&6; }
3985 if test -z "$CC"; then
3986 # Extract the first word of "cc", so it can be a program name with args.
3987 set dummy cc; ac_word=$2
3988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3989 $as_echo_n "checking for $ac_word... " >&6; }
3990 if ${ac_cv_prog_CC+:} false; then :
3991 $as_echo_n "(cached) " >&6
3992 else
3993 if test -n "$CC"; then
3994 ac_cv_prog_CC="$CC" # Let the user override the test.
3995 else
3996 ac_prog_rejected=no
3997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3998 for as_dir in $PATH
4000 IFS=$as_save_IFS
4001 test -z "$as_dir" && as_dir=.
4002 for ac_exec_ext in '' $ac_executable_extensions; do
4003 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4004 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4005 ac_prog_rejected=yes
4006 continue
4008 ac_cv_prog_CC="cc"
4009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4010 break 2
4012 done
4013 done
4014 IFS=$as_save_IFS
4016 if test $ac_prog_rejected = yes; then
4017 # We found a bogon in the path, so make sure we never use it.
4018 set dummy $ac_cv_prog_CC
4019 shift
4020 if test $# != 0; then
4021 # We chose a different compiler from the bogus one.
4022 # However, it has the same basename, so the bogon will be chosen
4023 # first if we set CC to just the basename; use the full file name.
4024 shift
4025 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4030 CC=$ac_cv_prog_CC
4031 if test -n "$CC"; then
4032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4033 $as_echo "$CC" >&6; }
4034 else
4035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4036 $as_echo "no" >&6; }
4041 if test -z "$CC"; then
4042 if test -n "$ac_tool_prefix"; then
4043 for ac_prog in cl.exe
4045 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4046 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4048 $as_echo_n "checking for $ac_word... " >&6; }
4049 if ${ac_cv_prog_CC+:} false; then :
4050 $as_echo_n "(cached) " >&6
4051 else
4052 if test -n "$CC"; then
4053 ac_cv_prog_CC="$CC" # Let the user override the test.
4054 else
4055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4056 for as_dir in $PATH
4058 IFS=$as_save_IFS
4059 test -z "$as_dir" && as_dir=.
4060 for ac_exec_ext in '' $ac_executable_extensions; do
4061 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4062 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4063 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4064 break 2
4066 done
4067 done
4068 IFS=$as_save_IFS
4072 CC=$ac_cv_prog_CC
4073 if test -n "$CC"; then
4074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4075 $as_echo "$CC" >&6; }
4076 else
4077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4078 $as_echo "no" >&6; }
4082 test -n "$CC" && break
4083 done
4085 if test -z "$CC"; then
4086 ac_ct_CC=$CC
4087 for ac_prog in cl.exe
4089 # Extract the first word of "$ac_prog", so it can be a program name with args.
4090 set dummy $ac_prog; ac_word=$2
4091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4092 $as_echo_n "checking for $ac_word... " >&6; }
4093 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4094 $as_echo_n "(cached) " >&6
4095 else
4096 if test -n "$ac_ct_CC"; then
4097 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4098 else
4099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4100 for as_dir in $PATH
4102 IFS=$as_save_IFS
4103 test -z "$as_dir" && as_dir=.
4104 for ac_exec_ext in '' $ac_executable_extensions; do
4105 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4106 ac_cv_prog_ac_ct_CC="$ac_prog"
4107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4108 break 2
4110 done
4111 done
4112 IFS=$as_save_IFS
4116 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4117 if test -n "$ac_ct_CC"; then
4118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4119 $as_echo "$ac_ct_CC" >&6; }
4120 else
4121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4122 $as_echo "no" >&6; }
4126 test -n "$ac_ct_CC" && break
4127 done
4129 if test "x$ac_ct_CC" = x; then
4130 CC=""
4131 else
4132 case $cross_compiling:$ac_tool_warned in
4133 yes:)
4134 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4135 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4136 ac_tool_warned=yes ;;
4137 esac
4138 CC=$ac_ct_CC
4145 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4146 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4147 as_fn_error $? "no acceptable C compiler found in \$PATH
4148 See \`config.log' for more details" "$LINENO" 5; }
4150 # Provide some information about the compiler.
4151 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4152 set X $ac_compile
4153 ac_compiler=$2
4154 for ac_option in --version -v -V -qversion; do
4155 { { ac_try="$ac_compiler $ac_option >&5"
4156 case "(($ac_try" in
4157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4158 *) ac_try_echo=$ac_try;;
4159 esac
4160 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4161 $as_echo "$ac_try_echo"; } >&5
4162 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4163 ac_status=$?
4164 if test -s conftest.err; then
4165 sed '10a\
4166 ... rest of stderr output deleted ...
4167 10q' conftest.err >conftest.er1
4168 cat conftest.er1 >&5
4170 rm -f conftest.er1 conftest.err
4171 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4172 test $ac_status = 0; }
4173 done
4175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4176 /* end confdefs.h. */
4179 main ()
4183 return 0;
4185 _ACEOF
4186 ac_clean_files_save=$ac_clean_files
4187 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4188 # Try to create an executable without -o first, disregard a.out.
4189 # It will help us diagnose broken compilers, and finding out an intuition
4190 # of exeext.
4191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4192 $as_echo_n "checking whether the C compiler works... " >&6; }
4193 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4195 # The possible output files:
4196 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4198 ac_rmfiles=
4199 for ac_file in $ac_files
4201 case $ac_file in
4202 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4203 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4204 esac
4205 done
4206 rm -f $ac_rmfiles
4208 if { { ac_try="$ac_link_default"
4209 case "(($ac_try" in
4210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4211 *) ac_try_echo=$ac_try;;
4212 esac
4213 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4214 $as_echo "$ac_try_echo"; } >&5
4215 (eval "$ac_link_default") 2>&5
4216 ac_status=$?
4217 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4218 test $ac_status = 0; }; then :
4219 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4220 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4221 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4222 # so that the user can short-circuit this test for compilers unknown to
4223 # Autoconf.
4224 for ac_file in $ac_files ''
4226 test -f "$ac_file" || continue
4227 case $ac_file in
4228 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4230 [ab].out )
4231 # We found the default executable, but exeext='' is most
4232 # certainly right.
4233 break;;
4234 *.* )
4235 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4236 then :; else
4237 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4239 # We set ac_cv_exeext here because the later test for it is not
4240 # safe: cross compilers may not add the suffix if given an `-o'
4241 # argument, so we may need to know it at that point already.
4242 # Even if this section looks crufty: it has the advantage of
4243 # actually working.
4244 break;;
4246 break;;
4247 esac
4248 done
4249 test "$ac_cv_exeext" = no && ac_cv_exeext=
4251 else
4252 ac_file=''
4254 if test -z "$ac_file"; then :
4255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4256 $as_echo "no" >&6; }
4257 $as_echo "$as_me: failed program was:" >&5
4258 sed 's/^/| /' conftest.$ac_ext >&5
4260 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4261 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4262 as_fn_error 77 "C compiler cannot create executables
4263 See \`config.log' for more details" "$LINENO" 5; }
4264 else
4265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4266 $as_echo "yes" >&6; }
4268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4269 $as_echo_n "checking for C compiler default output file name... " >&6; }
4270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4271 $as_echo "$ac_file" >&6; }
4272 ac_exeext=$ac_cv_exeext
4274 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4275 ac_clean_files=$ac_clean_files_save
4276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4277 $as_echo_n "checking for suffix of executables... " >&6; }
4278 if { { ac_try="$ac_link"
4279 case "(($ac_try" in
4280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4281 *) ac_try_echo=$ac_try;;
4282 esac
4283 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4284 $as_echo "$ac_try_echo"; } >&5
4285 (eval "$ac_link") 2>&5
4286 ac_status=$?
4287 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4288 test $ac_status = 0; }; then :
4289 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4290 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4291 # work properly (i.e., refer to `conftest.exe'), while it won't with
4292 # `rm'.
4293 for ac_file in conftest.exe conftest conftest.*; do
4294 test -f "$ac_file" || continue
4295 case $ac_file in
4296 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4297 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4298 break;;
4299 * ) break;;
4300 esac
4301 done
4302 else
4303 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4304 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4305 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4306 See \`config.log' for more details" "$LINENO" 5; }
4308 rm -f conftest conftest$ac_cv_exeext
4309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4310 $as_echo "$ac_cv_exeext" >&6; }
4312 rm -f conftest.$ac_ext
4313 EXEEXT=$ac_cv_exeext
4314 ac_exeext=$EXEEXT
4315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4316 /* end confdefs.h. */
4317 #include <stdio.h>
4319 main ()
4321 FILE *f = fopen ("conftest.out", "w");
4322 return ferror (f) || fclose (f) != 0;
4325 return 0;
4327 _ACEOF
4328 ac_clean_files="$ac_clean_files conftest.out"
4329 # Check that the compiler produces executables we can run. If not, either
4330 # the compiler is broken, or we cross compile.
4331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4332 $as_echo_n "checking whether we are cross compiling... " >&6; }
4333 if test "$cross_compiling" != yes; then
4334 { { ac_try="$ac_link"
4335 case "(($ac_try" in
4336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4337 *) ac_try_echo=$ac_try;;
4338 esac
4339 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4340 $as_echo "$ac_try_echo"; } >&5
4341 (eval "$ac_link") 2>&5
4342 ac_status=$?
4343 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4344 test $ac_status = 0; }
4345 if { ac_try='./conftest$ac_cv_exeext'
4346 { { case "(($ac_try" in
4347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4348 *) ac_try_echo=$ac_try;;
4349 esac
4350 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4351 $as_echo "$ac_try_echo"; } >&5
4352 (eval "$ac_try") 2>&5
4353 ac_status=$?
4354 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4355 test $ac_status = 0; }; }; then
4356 cross_compiling=no
4357 else
4358 if test "$cross_compiling" = maybe; then
4359 cross_compiling=yes
4360 else
4361 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4362 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4363 as_fn_error $? "cannot run C compiled programs.
4364 If you meant to cross compile, use \`--host'.
4365 See \`config.log' for more details" "$LINENO" 5; }
4369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4370 $as_echo "$cross_compiling" >&6; }
4372 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4373 ac_clean_files=$ac_clean_files_save
4374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4375 $as_echo_n "checking for suffix of object files... " >&6; }
4376 if ${ac_cv_objext+:} false; then :
4377 $as_echo_n "(cached) " >&6
4378 else
4379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4380 /* end confdefs.h. */
4383 main ()
4387 return 0;
4389 _ACEOF
4390 rm -f conftest.o conftest.obj
4391 if { { ac_try="$ac_compile"
4392 case "(($ac_try" in
4393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4394 *) ac_try_echo=$ac_try;;
4395 esac
4396 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4397 $as_echo "$ac_try_echo"; } >&5
4398 (eval "$ac_compile") 2>&5
4399 ac_status=$?
4400 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4401 test $ac_status = 0; }; then :
4402 for ac_file in conftest.o conftest.obj conftest.*; do
4403 test -f "$ac_file" || continue;
4404 case $ac_file in
4405 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4406 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4407 break;;
4408 esac
4409 done
4410 else
4411 $as_echo "$as_me: failed program was:" >&5
4412 sed 's/^/| /' conftest.$ac_ext >&5
4414 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4415 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4416 as_fn_error $? "cannot compute suffix of object files: cannot compile
4417 See \`config.log' for more details" "$LINENO" 5; }
4419 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4422 $as_echo "$ac_cv_objext" >&6; }
4423 OBJEXT=$ac_cv_objext
4424 ac_objext=$OBJEXT
4425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4426 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4427 if ${ac_cv_c_compiler_gnu+:} false; then :
4428 $as_echo_n "(cached) " >&6
4429 else
4430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4431 /* end confdefs.h. */
4434 main ()
4436 #ifndef __GNUC__
4437 choke me
4438 #endif
4441 return 0;
4443 _ACEOF
4444 if ac_fn_c_try_compile "$LINENO"; then :
4445 ac_compiler_gnu=yes
4446 else
4447 ac_compiler_gnu=no
4449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4450 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4454 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4455 if test $ac_compiler_gnu = yes; then
4456 GCC=yes
4457 else
4458 GCC=
4460 ac_test_CFLAGS=${CFLAGS+set}
4461 ac_save_CFLAGS=$CFLAGS
4462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4463 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4464 if ${ac_cv_prog_cc_g+:} false; then :
4465 $as_echo_n "(cached) " >&6
4466 else
4467 ac_save_c_werror_flag=$ac_c_werror_flag
4468 ac_c_werror_flag=yes
4469 ac_cv_prog_cc_g=no
4470 CFLAGS="-g"
4471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4472 /* end confdefs.h. */
4475 main ()
4479 return 0;
4481 _ACEOF
4482 if ac_fn_c_try_compile "$LINENO"; then :
4483 ac_cv_prog_cc_g=yes
4484 else
4485 CFLAGS=""
4486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4487 /* end confdefs.h. */
4490 main ()
4494 return 0;
4496 _ACEOF
4497 if ac_fn_c_try_compile "$LINENO"; then :
4499 else
4500 ac_c_werror_flag=$ac_save_c_werror_flag
4501 CFLAGS="-g"
4502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4503 /* end confdefs.h. */
4506 main ()
4510 return 0;
4512 _ACEOF
4513 if ac_fn_c_try_compile "$LINENO"; then :
4514 ac_cv_prog_cc_g=yes
4516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4521 ac_c_werror_flag=$ac_save_c_werror_flag
4523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4524 $as_echo "$ac_cv_prog_cc_g" >&6; }
4525 if test "$ac_test_CFLAGS" = set; then
4526 CFLAGS=$ac_save_CFLAGS
4527 elif test $ac_cv_prog_cc_g = yes; then
4528 if test "$GCC" = yes; then
4529 CFLAGS="-g -O2"
4530 else
4531 CFLAGS="-g"
4533 else
4534 if test "$GCC" = yes; then
4535 CFLAGS="-O2"
4536 else
4537 CFLAGS=
4540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4541 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4542 if ${ac_cv_prog_cc_c89+:} false; then :
4543 $as_echo_n "(cached) " >&6
4544 else
4545 ac_cv_prog_cc_c89=no
4546 ac_save_CC=$CC
4547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4548 /* end confdefs.h. */
4549 #include <stdarg.h>
4550 #include <stdio.h>
4551 struct stat;
4552 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4553 struct buf { int x; };
4554 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4555 static char *e (p, i)
4556 char **p;
4557 int i;
4559 return p[i];
4561 static char *f (char * (*g) (char **, int), char **p, ...)
4563 char *s;
4564 va_list v;
4565 va_start (v,p);
4566 s = g (p, va_arg (v,int));
4567 va_end (v);
4568 return s;
4571 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4572 function prototypes and stuff, but not '\xHH' hex character constants.
4573 These don't provoke an error unfortunately, instead are silently treated
4574 as 'x'. The following induces an error, until -std is added to get
4575 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4576 array size at least. It's necessary to write '\x00'==0 to get something
4577 that's true only with -std. */
4578 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4580 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4581 inside strings and character constants. */
4582 #define FOO(x) 'x'
4583 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4585 int test (int i, double x);
4586 struct s1 {int (*f) (int a);};
4587 struct s2 {int (*f) (double a);};
4588 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4589 int argc;
4590 char **argv;
4592 main ()
4594 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4596 return 0;
4598 _ACEOF
4599 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4600 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4602 CC="$ac_save_CC $ac_arg"
4603 if ac_fn_c_try_compile "$LINENO"; then :
4604 ac_cv_prog_cc_c89=$ac_arg
4606 rm -f core conftest.err conftest.$ac_objext
4607 test "x$ac_cv_prog_cc_c89" != "xno" && break
4608 done
4609 rm -f conftest.$ac_ext
4610 CC=$ac_save_CC
4613 # AC_CACHE_VAL
4614 case "x$ac_cv_prog_cc_c89" in
4616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4617 $as_echo "none needed" >&6; } ;;
4618 xno)
4619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4620 $as_echo "unsupported" >&6; } ;;
4622 CC="$CC $ac_cv_prog_cc_c89"
4623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4624 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4625 esac
4626 if test "x$ac_cv_prog_cc_c89" != xno; then :
4630 ac_ext=c
4631 ac_cpp='$CPP $CPPFLAGS'
4632 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4633 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4634 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4636 ac_ext=cpp
4637 ac_cpp='$CXXCPP $CPPFLAGS'
4638 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4639 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4640 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4641 if test -z "$CXX"; then
4642 if test -n "$CCC"; then
4643 CXX=$CCC
4644 else
4645 if test -n "$ac_tool_prefix"; then
4646 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4648 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4649 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4651 $as_echo_n "checking for $ac_word... " >&6; }
4652 if ${ac_cv_prog_CXX+:} false; then :
4653 $as_echo_n "(cached) " >&6
4654 else
4655 if test -n "$CXX"; then
4656 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4657 else
4658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4659 for as_dir in $PATH
4661 IFS=$as_save_IFS
4662 test -z "$as_dir" && as_dir=.
4663 for ac_exec_ext in '' $ac_executable_extensions; do
4664 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4665 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4667 break 2
4669 done
4670 done
4671 IFS=$as_save_IFS
4675 CXX=$ac_cv_prog_CXX
4676 if test -n "$CXX"; then
4677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4678 $as_echo "$CXX" >&6; }
4679 else
4680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4681 $as_echo "no" >&6; }
4685 test -n "$CXX" && break
4686 done
4688 if test -z "$CXX"; then
4689 ac_ct_CXX=$CXX
4690 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4692 # Extract the first word of "$ac_prog", so it can be a program name with args.
4693 set dummy $ac_prog; ac_word=$2
4694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4695 $as_echo_n "checking for $ac_word... " >&6; }
4696 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4697 $as_echo_n "(cached) " >&6
4698 else
4699 if test -n "$ac_ct_CXX"; then
4700 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4701 else
4702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4703 for as_dir in $PATH
4705 IFS=$as_save_IFS
4706 test -z "$as_dir" && as_dir=.
4707 for ac_exec_ext in '' $ac_executable_extensions; do
4708 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4709 ac_cv_prog_ac_ct_CXX="$ac_prog"
4710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4711 break 2
4713 done
4714 done
4715 IFS=$as_save_IFS
4719 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4720 if test -n "$ac_ct_CXX"; then
4721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4722 $as_echo "$ac_ct_CXX" >&6; }
4723 else
4724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4725 $as_echo "no" >&6; }
4729 test -n "$ac_ct_CXX" && break
4730 done
4732 if test "x$ac_ct_CXX" = x; then
4733 CXX="g++"
4734 else
4735 case $cross_compiling:$ac_tool_warned in
4736 yes:)
4737 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4738 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4739 ac_tool_warned=yes ;;
4740 esac
4741 CXX=$ac_ct_CXX
4747 # Provide some information about the compiler.
4748 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4749 set X $ac_compile
4750 ac_compiler=$2
4751 for ac_option in --version -v -V -qversion; do
4752 { { ac_try="$ac_compiler $ac_option >&5"
4753 case "(($ac_try" in
4754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4755 *) ac_try_echo=$ac_try;;
4756 esac
4757 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4758 $as_echo "$ac_try_echo"; } >&5
4759 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4760 ac_status=$?
4761 if test -s conftest.err; then
4762 sed '10a\
4763 ... rest of stderr output deleted ...
4764 10q' conftest.err >conftest.er1
4765 cat conftest.er1 >&5
4767 rm -f conftest.er1 conftest.err
4768 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4769 test $ac_status = 0; }
4770 done
4772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4773 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4774 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4775 $as_echo_n "(cached) " >&6
4776 else
4777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4778 /* end confdefs.h. */
4781 main ()
4783 #ifndef __GNUC__
4784 choke me
4785 #endif
4788 return 0;
4790 _ACEOF
4791 if ac_fn_cxx_try_compile "$LINENO"; then :
4792 ac_compiler_gnu=yes
4793 else
4794 ac_compiler_gnu=no
4796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4797 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4801 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4802 if test $ac_compiler_gnu = yes; then
4803 GXX=yes
4804 else
4805 GXX=
4807 ac_test_CXXFLAGS=${CXXFLAGS+set}
4808 ac_save_CXXFLAGS=$CXXFLAGS
4809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4810 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4811 if ${ac_cv_prog_cxx_g+:} false; then :
4812 $as_echo_n "(cached) " >&6
4813 else
4814 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4815 ac_cxx_werror_flag=yes
4816 ac_cv_prog_cxx_g=no
4817 CXXFLAGS="-g"
4818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4819 /* end confdefs.h. */
4822 main ()
4826 return 0;
4828 _ACEOF
4829 if ac_fn_cxx_try_compile "$LINENO"; then :
4830 ac_cv_prog_cxx_g=yes
4831 else
4832 CXXFLAGS=""
4833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4834 /* end confdefs.h. */
4837 main ()
4841 return 0;
4843 _ACEOF
4844 if ac_fn_cxx_try_compile "$LINENO"; then :
4846 else
4847 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4848 CXXFLAGS="-g"
4849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4850 /* end confdefs.h. */
4853 main ()
4857 return 0;
4859 _ACEOF
4860 if ac_fn_cxx_try_compile "$LINENO"; then :
4861 ac_cv_prog_cxx_g=yes
4863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4868 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4871 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4872 if test "$ac_test_CXXFLAGS" = set; then
4873 CXXFLAGS=$ac_save_CXXFLAGS
4874 elif test $ac_cv_prog_cxx_g = yes; then
4875 if test "$GXX" = yes; then
4876 CXXFLAGS="-g -O2"
4877 else
4878 CXXFLAGS="-g"
4880 else
4881 if test "$GXX" = yes; then
4882 CXXFLAGS="-O2"
4883 else
4884 CXXFLAGS=
4887 ac_ext=c
4888 ac_cpp='$CPP $CPPFLAGS'
4889 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4890 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4891 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4896 if test -n "$ac_tool_prefix"; then
4897 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4898 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4900 $as_echo_n "checking for $ac_word... " >&6; }
4901 if ${ac_cv_prog_GNATBIND+:} false; then :
4902 $as_echo_n "(cached) " >&6
4903 else
4904 if test -n "$GNATBIND"; then
4905 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4906 else
4907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4908 for as_dir in $PATH
4910 IFS=$as_save_IFS
4911 test -z "$as_dir" && as_dir=.
4912 for ac_exec_ext in '' $ac_executable_extensions; do
4913 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4914 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4916 break 2
4918 done
4919 done
4920 IFS=$as_save_IFS
4924 GNATBIND=$ac_cv_prog_GNATBIND
4925 if test -n "$GNATBIND"; then
4926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4927 $as_echo "$GNATBIND" >&6; }
4928 else
4929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4930 $as_echo "no" >&6; }
4935 if test -z "$ac_cv_prog_GNATBIND"; then
4936 ac_ct_GNATBIND=$GNATBIND
4937 # Extract the first word of "gnatbind", so it can be a program name with args.
4938 set dummy gnatbind; ac_word=$2
4939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4940 $as_echo_n "checking for $ac_word... " >&6; }
4941 if ${ac_cv_prog_ac_ct_GNATBIND+:} false; then :
4942 $as_echo_n "(cached) " >&6
4943 else
4944 if test -n "$ac_ct_GNATBIND"; then
4945 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4946 else
4947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4948 for as_dir in $PATH
4950 IFS=$as_save_IFS
4951 test -z "$as_dir" && as_dir=.
4952 for ac_exec_ext in '' $ac_executable_extensions; do
4953 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4954 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4956 break 2
4958 done
4959 done
4960 IFS=$as_save_IFS
4964 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4965 if test -n "$ac_ct_GNATBIND"; then
4966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4967 $as_echo "$ac_ct_GNATBIND" >&6; }
4968 else
4969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4970 $as_echo "no" >&6; }
4973 if test "x$ac_ct_GNATBIND" = x; then
4974 GNATBIND="no"
4975 else
4976 case $cross_compiling:$ac_tool_warned in
4977 yes:)
4978 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4979 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4980 ac_tool_warned=yes ;;
4981 esac
4982 GNATBIND=$ac_ct_GNATBIND
4984 else
4985 GNATBIND="$ac_cv_prog_GNATBIND"
4988 if test -n "$ac_tool_prefix"; then
4989 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4990 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4992 $as_echo_n "checking for $ac_word... " >&6; }
4993 if ${ac_cv_prog_GNATMAKE+:} false; then :
4994 $as_echo_n "(cached) " >&6
4995 else
4996 if test -n "$GNATMAKE"; then
4997 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4998 else
4999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5000 for as_dir in $PATH
5002 IFS=$as_save_IFS
5003 test -z "$as_dir" && as_dir=.
5004 for ac_exec_ext in '' $ac_executable_extensions; do
5005 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5006 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5008 break 2
5010 done
5011 done
5012 IFS=$as_save_IFS
5016 GNATMAKE=$ac_cv_prog_GNATMAKE
5017 if test -n "$GNATMAKE"; then
5018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5019 $as_echo "$GNATMAKE" >&6; }
5020 else
5021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5022 $as_echo "no" >&6; }
5027 if test -z "$ac_cv_prog_GNATMAKE"; then
5028 ac_ct_GNATMAKE=$GNATMAKE
5029 # Extract the first word of "gnatmake", so it can be a program name with args.
5030 set dummy gnatmake; ac_word=$2
5031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5032 $as_echo_n "checking for $ac_word... " >&6; }
5033 if ${ac_cv_prog_ac_ct_GNATMAKE+:} false; then :
5034 $as_echo_n "(cached) " >&6
5035 else
5036 if test -n "$ac_ct_GNATMAKE"; then
5037 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5038 else
5039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5040 for as_dir in $PATH
5042 IFS=$as_save_IFS
5043 test -z "$as_dir" && as_dir=.
5044 for ac_exec_ext in '' $ac_executable_extensions; do
5045 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5046 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5048 break 2
5050 done
5051 done
5052 IFS=$as_save_IFS
5056 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5057 if test -n "$ac_ct_GNATMAKE"; then
5058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5059 $as_echo "$ac_ct_GNATMAKE" >&6; }
5060 else
5061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5062 $as_echo "no" >&6; }
5065 if test "x$ac_ct_GNATMAKE" = x; then
5066 GNATMAKE="no"
5067 else
5068 case $cross_compiling:$ac_tool_warned in
5069 yes:)
5070 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5071 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5072 ac_tool_warned=yes ;;
5073 esac
5074 GNATMAKE=$ac_ct_GNATMAKE
5076 else
5077 GNATMAKE="$ac_cv_prog_GNATMAKE"
5080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5081 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5082 if ${acx_cv_cc_gcc_supports_ada+:} false; then :
5083 $as_echo_n "(cached) " >&6
5084 else
5085 cat >conftest.adb <<EOF
5086 procedure conftest is begin null; end conftest;
5088 acx_cv_cc_gcc_supports_ada=no
5089 # There is a bug in old released versions of GCC which causes the
5090 # driver to exit successfully when the appropriate language module
5091 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5092 # Therefore we must check for the error message as well as an
5093 # unsuccessful exit.
5094 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5095 # given a .adb file, but produce no object file. So we must check
5096 # if an object file was really produced to guard against this.
5097 errors=`(${CC} -I"$srcdir"/ada/libgnat -c conftest.adb) 2>&1 || echo failure`
5098 if test x"$errors" = x && test -f conftest.$ac_objext; then
5099 acx_cv_cc_gcc_supports_ada=yes
5101 rm -f conftest.*
5103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5104 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5106 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5107 have_gnat=yes
5108 else
5109 have_gnat=no
5113 # Do configure tests with the C++ compiler, since that's what we build with.
5114 ac_ext=cpp
5115 ac_cpp='$CXXCPP $CPPFLAGS'
5116 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5117 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5118 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5121 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
5122 # optimizations to be activated explicitly by the toplevel.
5123 case "$CC" in
5124 */prev-gcc/xgcc*) ;;
5125 *) CFLAGS=`echo "$CFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" `
5126 CXXFLAGS=`echo "$CXXFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` ;;
5127 esac
5131 # Determine PICFLAG for target gnatlib.
5136 case "${target}" in
5137 # PIC is the default on some targets or must not be used.
5138 *-*-darwin*)
5139 # For darwin, common symbols are not allowed in MH_DYLIB files
5140 case "${CFLAGS}" in
5141 # If we are using a compiler supporting mdynamic-no-pic
5142 # and the option has been tested as safe to add, then cancel
5143 # it here, since the code generated is incompatible with shared
5144 # libs.
5145 *-mdynamic-no-pic*) PICFLAG_FOR_TARGET='-fno-common -mno-dynamic-no-pic' ;;
5146 *) PICFLAG_FOR_TARGET=-fno-common ;;
5147 esac
5149 alpha*-dec-osf5*)
5150 # PIC is the default.
5152 hppa*64*-*-hpux*)
5153 # PIC is the default for 64-bit PA HP-UX.
5155 i[34567]86-*-cygwin* | x86_64-*-cygwin*)
5157 i[34567]86-*-mingw* | x86_64-*-mingw*)
5159 i[34567]86-*-interix[3-9]*)
5160 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5161 # Instead, we relocate shared libraries at runtime.
5163 i[34567]86-*-nto-qnx*)
5164 # QNX uses GNU C++, but need to define -shared option too, otherwise
5165 # it will coredump.
5166 PICFLAG_FOR_TARGET='-fPIC -shared'
5168 i[34567]86-pc-msdosdjgpp*)
5169 # DJGPP does not support shared libraries at all.
5171 ia64*-*-hpux*)
5172 # On IA64 HP-UX, PIC is the default but the pic flag
5173 # sets the default TLS model and affects inlining.
5174 PICFLAG_FOR_TARGET=-fPIC
5176 mips-sgi-irix6*)
5177 # PIC is the default.
5179 rs6000-ibm-aix* | powerpc-ibm-aix*)
5180 # All AIX code is PIC.
5183 # Some targets support both -fPIC and -fpic, but prefer the latter.
5184 # FIXME: Why?
5185 i[34567]86-*-* | x86_64-*-*)
5186 PICFLAG_FOR_TARGET=-fpic
5188 # FIXME: Override -fPIC default in libgcc only?
5189 sh-*-linux* | sh[2346lbe]*-*-linux*)
5190 PICFLAG_FOR_TARGET=-fpic
5192 # FIXME: Simplify to sh*-*-netbsd*?
5193 sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
5194 sh64-*-netbsd* | sh64l*-*-netbsd*)
5195 PICFLAG_FOR_TARGET=-fpic
5197 # Default to -fPIC unless specified otherwise.
5199 PICFLAG_FOR_TARGET=-fPIC
5201 esac
5203 # If the user explicitly uses -fpic/-fPIC, keep that.
5204 case "${CFLAGS_FOR_TARGET}" in
5205 *-fpic*)
5206 PICFLAG_FOR_TARGET=-fpic
5208 *-fPIC*)
5209 PICFLAG_FOR_TARGET=-fPIC
5211 esac
5215 # -------------------------
5216 # Check C compiler features
5217 # -------------------------
5220 ac_ext=cpp
5221 ac_cpp='$CXXCPP $CPPFLAGS'
5222 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5223 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5224 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5226 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5227 if test -z "$CXXCPP"; then
5228 if ${ac_cv_prog_CXXCPP+:} false; then :
5229 $as_echo_n "(cached) " >&6
5230 else
5231 # Double quotes because CXXCPP needs to be expanded
5232 for CXXCPP in "$CXX -E" "/lib/cpp"
5234 ac_preproc_ok=false
5235 for ac_cxx_preproc_warn_flag in '' yes
5237 # Use a header file that comes with gcc, so configuring glibc
5238 # with a fresh cross-compiler works.
5239 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5240 # <limits.h> exists even on freestanding compilers.
5241 # On the NeXT, cc -E runs the code through the compiler's parser,
5242 # not just through cpp. "Syntax error" is here to catch this case.
5243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5244 /* end confdefs.h. */
5245 #ifdef __STDC__
5246 # include <limits.h>
5247 #else
5248 # include <assert.h>
5249 #endif
5250 Syntax error
5251 _ACEOF
5252 if ac_fn_cxx_try_cpp "$LINENO"; then :
5254 else
5255 # Broken: fails on valid input.
5256 continue
5258 rm -f conftest.err conftest.i conftest.$ac_ext
5260 # OK, works on sane cases. Now check whether nonexistent headers
5261 # can be detected and how.
5262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5263 /* end confdefs.h. */
5264 #include <ac_nonexistent.h>
5265 _ACEOF
5266 if ac_fn_cxx_try_cpp "$LINENO"; then :
5267 # Broken: success on invalid input.
5268 continue
5269 else
5270 # Passes both tests.
5271 ac_preproc_ok=:
5272 break
5274 rm -f conftest.err conftest.i conftest.$ac_ext
5276 done
5277 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5278 rm -f conftest.i conftest.err conftest.$ac_ext
5279 if $ac_preproc_ok; then :
5280 break
5283 done
5284 ac_cv_prog_CXXCPP=$CXXCPP
5287 CXXCPP=$ac_cv_prog_CXXCPP
5288 else
5289 ac_cv_prog_CXXCPP=$CXXCPP
5291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5292 $as_echo "$CXXCPP" >&6; }
5293 ac_preproc_ok=false
5294 for ac_cxx_preproc_warn_flag in '' yes
5296 # Use a header file that comes with gcc, so configuring glibc
5297 # with a fresh cross-compiler works.
5298 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5299 # <limits.h> exists even on freestanding compilers.
5300 # On the NeXT, cc -E runs the code through the compiler's parser,
5301 # not just through cpp. "Syntax error" is here to catch this case.
5302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5303 /* end confdefs.h. */
5304 #ifdef __STDC__
5305 # include <limits.h>
5306 #else
5307 # include <assert.h>
5308 #endif
5309 Syntax error
5310 _ACEOF
5311 if ac_fn_cxx_try_cpp "$LINENO"; then :
5313 else
5314 # Broken: fails on valid input.
5315 continue
5317 rm -f conftest.err conftest.i conftest.$ac_ext
5319 # OK, works on sane cases. Now check whether nonexistent headers
5320 # can be detected and how.
5321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5322 /* end confdefs.h. */
5323 #include <ac_nonexistent.h>
5324 _ACEOF
5325 if ac_fn_cxx_try_cpp "$LINENO"; then :
5326 # Broken: success on invalid input.
5327 continue
5328 else
5329 # Passes both tests.
5330 ac_preproc_ok=:
5331 break
5333 rm -f conftest.err conftest.i conftest.$ac_ext
5335 done
5336 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5337 rm -f conftest.i conftest.err conftest.$ac_ext
5338 if $ac_preproc_ok; then :
5340 else
5341 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5342 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5343 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
5344 See \`config.log' for more details" "$LINENO" 5; }
5347 ac_ext=cpp
5348 ac_cpp='$CXXCPP $CPPFLAGS'
5349 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5350 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5351 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5355 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5356 if ${ac_cv_path_GREP+:} false; then :
5357 $as_echo_n "(cached) " >&6
5358 else
5359 if test -z "$GREP"; then
5360 ac_path_GREP_found=false
5361 # Loop through the user's path and test for each of PROGNAME-LIST
5362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5363 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5365 IFS=$as_save_IFS
5366 test -z "$as_dir" && as_dir=.
5367 for ac_prog in grep ggrep; do
5368 for ac_exec_ext in '' $ac_executable_extensions; do
5369 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5370 as_fn_executable_p "$ac_path_GREP" || continue
5371 # Check for GNU ac_path_GREP and select it if it is found.
5372 # Check for GNU $ac_path_GREP
5373 case `"$ac_path_GREP" --version 2>&1` in
5374 *GNU*)
5375 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5377 ac_count=0
5378 $as_echo_n 0123456789 >"conftest.in"
5379 while :
5381 cat "conftest.in" "conftest.in" >"conftest.tmp"
5382 mv "conftest.tmp" "conftest.in"
5383 cp "conftest.in" "conftest.nl"
5384 $as_echo 'GREP' >> "conftest.nl"
5385 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5386 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5387 as_fn_arith $ac_count + 1 && ac_count=$as_val
5388 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5389 # Best one so far, save it but keep looking for a better one
5390 ac_cv_path_GREP="$ac_path_GREP"
5391 ac_path_GREP_max=$ac_count
5393 # 10*(2^10) chars as input seems more than enough
5394 test $ac_count -gt 10 && break
5395 done
5396 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5397 esac
5399 $ac_path_GREP_found && break 3
5400 done
5401 done
5402 done
5403 IFS=$as_save_IFS
5404 if test -z "$ac_cv_path_GREP"; then
5405 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5407 else
5408 ac_cv_path_GREP=$GREP
5412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5413 $as_echo "$ac_cv_path_GREP" >&6; }
5414 GREP="$ac_cv_path_GREP"
5417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5418 $as_echo_n "checking for egrep... " >&6; }
5419 if ${ac_cv_path_EGREP+:} false; then :
5420 $as_echo_n "(cached) " >&6
5421 else
5422 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5423 then ac_cv_path_EGREP="$GREP -E"
5424 else
5425 if test -z "$EGREP"; then
5426 ac_path_EGREP_found=false
5427 # Loop through the user's path and test for each of PROGNAME-LIST
5428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5429 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5431 IFS=$as_save_IFS
5432 test -z "$as_dir" && as_dir=.
5433 for ac_prog in egrep; do
5434 for ac_exec_ext in '' $ac_executable_extensions; do
5435 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5436 as_fn_executable_p "$ac_path_EGREP" || continue
5437 # Check for GNU ac_path_EGREP and select it if it is found.
5438 # Check for GNU $ac_path_EGREP
5439 case `"$ac_path_EGREP" --version 2>&1` in
5440 *GNU*)
5441 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5443 ac_count=0
5444 $as_echo_n 0123456789 >"conftest.in"
5445 while :
5447 cat "conftest.in" "conftest.in" >"conftest.tmp"
5448 mv "conftest.tmp" "conftest.in"
5449 cp "conftest.in" "conftest.nl"
5450 $as_echo 'EGREP' >> "conftest.nl"
5451 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5452 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5453 as_fn_arith $ac_count + 1 && ac_count=$as_val
5454 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5455 # Best one so far, save it but keep looking for a better one
5456 ac_cv_path_EGREP="$ac_path_EGREP"
5457 ac_path_EGREP_max=$ac_count
5459 # 10*(2^10) chars as input seems more than enough
5460 test $ac_count -gt 10 && break
5461 done
5462 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5463 esac
5465 $ac_path_EGREP_found && break 3
5466 done
5467 done
5468 done
5469 IFS=$as_save_IFS
5470 if test -z "$ac_cv_path_EGREP"; then
5471 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5473 else
5474 ac_cv_path_EGREP=$EGREP
5479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5480 $as_echo "$ac_cv_path_EGREP" >&6; }
5481 EGREP="$ac_cv_path_EGREP"
5484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5485 $as_echo_n "checking for ANSI C header files... " >&6; }
5486 if ${ac_cv_header_stdc+:} false; then :
5487 $as_echo_n "(cached) " >&6
5488 else
5489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5490 /* end confdefs.h. */
5491 #include <stdlib.h>
5492 #include <stdarg.h>
5493 #include <string.h>
5494 #include <float.h>
5497 main ()
5501 return 0;
5503 _ACEOF
5504 if ac_fn_cxx_try_compile "$LINENO"; then :
5505 ac_cv_header_stdc=yes
5506 else
5507 ac_cv_header_stdc=no
5509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5511 if test $ac_cv_header_stdc = yes; then
5512 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5514 /* end confdefs.h. */
5515 #include <string.h>
5517 _ACEOF
5518 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5519 $EGREP "memchr" >/dev/null 2>&1; then :
5521 else
5522 ac_cv_header_stdc=no
5524 rm -f conftest*
5528 if test $ac_cv_header_stdc = yes; then
5529 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5531 /* end confdefs.h. */
5532 #include <stdlib.h>
5534 _ACEOF
5535 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5536 $EGREP "free" >/dev/null 2>&1; then :
5538 else
5539 ac_cv_header_stdc=no
5541 rm -f conftest*
5545 if test $ac_cv_header_stdc = yes; then
5546 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5547 if test "$cross_compiling" = yes; then :
5549 else
5550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5551 /* end confdefs.h. */
5552 #include <ctype.h>
5553 #include <stdlib.h>
5554 #if ((' ' & 0x0FF) == 0x020)
5555 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5556 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5557 #else
5558 # define ISLOWER(c) \
5559 (('a' <= (c) && (c) <= 'i') \
5560 || ('j' <= (c) && (c) <= 'r') \
5561 || ('s' <= (c) && (c) <= 'z'))
5562 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5563 #endif
5565 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5567 main ()
5569 int i;
5570 for (i = 0; i < 256; i++)
5571 if (XOR (islower (i), ISLOWER (i))
5572 || toupper (i) != TOUPPER (i))
5573 return 2;
5574 return 0;
5576 _ACEOF
5577 if ac_fn_cxx_try_run "$LINENO"; then :
5579 else
5580 ac_cv_header_stdc=no
5582 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5583 conftest.$ac_objext conftest.beam conftest.$ac_ext
5588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5589 $as_echo "$ac_cv_header_stdc" >&6; }
5590 if test $ac_cv_header_stdc = yes; then
5592 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5596 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5597 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5598 inttypes.h stdint.h unistd.h
5599 do :
5600 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5601 ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5603 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5604 cat >>confdefs.h <<_ACEOF
5605 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5606 _ACEOF
5610 done
5614 ac_fn_cxx_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5615 if test "x$ac_cv_header_minix_config_h" = xyes; then :
5616 MINIX=yes
5617 else
5618 MINIX=
5622 if test "$MINIX" = yes; then
5624 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5627 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5630 $as_echo "#define _MINIX 1" >>confdefs.h
5635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5636 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5637 if ${ac_cv_safe_to_define___extensions__+:} false; then :
5638 $as_echo_n "(cached) " >&6
5639 else
5640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5641 /* end confdefs.h. */
5643 # define __EXTENSIONS__ 1
5644 $ac_includes_default
5646 main ()
5650 return 0;
5652 _ACEOF
5653 if ac_fn_cxx_try_compile "$LINENO"; then :
5654 ac_cv_safe_to_define___extensions__=yes
5655 else
5656 ac_cv_safe_to_define___extensions__=no
5658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5661 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5662 test $ac_cv_safe_to_define___extensions__ = yes &&
5663 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5665 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5667 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5669 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5671 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5674 ac_ext=c
5675 ac_cpp='$CPP $CPPFLAGS'
5676 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5677 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5678 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5680 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5681 # On Suns, sometimes $CPP names a directory.
5682 if test -n "$CPP" && test -d "$CPP"; then
5683 CPP=
5685 if test -z "$CPP"; then
5686 if ${ac_cv_prog_CPP+:} false; then :
5687 $as_echo_n "(cached) " >&6
5688 else
5689 # Double quotes because CPP needs to be expanded
5690 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5692 ac_preproc_ok=false
5693 for ac_c_preproc_warn_flag in '' yes
5695 # Use a header file that comes with gcc, so configuring glibc
5696 # with a fresh cross-compiler works.
5697 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5698 # <limits.h> exists even on freestanding compilers.
5699 # On the NeXT, cc -E runs the code through the compiler's parser,
5700 # not just through cpp. "Syntax error" is here to catch this case.
5701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5702 /* end confdefs.h. */
5703 #ifdef __STDC__
5704 # include <limits.h>
5705 #else
5706 # include <assert.h>
5707 #endif
5708 Syntax error
5709 _ACEOF
5710 if ac_fn_c_try_cpp "$LINENO"; then :
5712 else
5713 # Broken: fails on valid input.
5714 continue
5716 rm -f conftest.err conftest.i conftest.$ac_ext
5718 # OK, works on sane cases. Now check whether nonexistent headers
5719 # can be detected and how.
5720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5721 /* end confdefs.h. */
5722 #include <ac_nonexistent.h>
5723 _ACEOF
5724 if ac_fn_c_try_cpp "$LINENO"; then :
5725 # Broken: success on invalid input.
5726 continue
5727 else
5728 # Passes both tests.
5729 ac_preproc_ok=:
5730 break
5732 rm -f conftest.err conftest.i conftest.$ac_ext
5734 done
5735 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5736 rm -f conftest.i conftest.err conftest.$ac_ext
5737 if $ac_preproc_ok; then :
5738 break
5741 done
5742 ac_cv_prog_CPP=$CPP
5745 CPP=$ac_cv_prog_CPP
5746 else
5747 ac_cv_prog_CPP=$CPP
5749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5750 $as_echo "$CPP" >&6; }
5751 ac_preproc_ok=false
5752 for ac_c_preproc_warn_flag in '' yes
5754 # Use a header file that comes with gcc, so configuring glibc
5755 # with a fresh cross-compiler works.
5756 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5757 # <limits.h> exists even on freestanding compilers.
5758 # On the NeXT, cc -E runs the code through the compiler's parser,
5759 # not just through cpp. "Syntax error" is here to catch this case.
5760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5761 /* end confdefs.h. */
5762 #ifdef __STDC__
5763 # include <limits.h>
5764 #else
5765 # include <assert.h>
5766 #endif
5767 Syntax error
5768 _ACEOF
5769 if ac_fn_c_try_cpp "$LINENO"; then :
5771 else
5772 # Broken: fails on valid input.
5773 continue
5775 rm -f conftest.err conftest.i conftest.$ac_ext
5777 # OK, works on sane cases. Now check whether nonexistent headers
5778 # can be detected and how.
5779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5780 /* end confdefs.h. */
5781 #include <ac_nonexistent.h>
5782 _ACEOF
5783 if ac_fn_c_try_cpp "$LINENO"; then :
5784 # Broken: success on invalid input.
5785 continue
5786 else
5787 # Passes both tests.
5788 ac_preproc_ok=:
5789 break
5791 rm -f conftest.err conftest.i conftest.$ac_ext
5793 done
5794 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5795 rm -f conftest.i conftest.err conftest.$ac_ext
5796 if $ac_preproc_ok; then :
5798 else
5799 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5800 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5801 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5802 See \`config.log' for more details" "$LINENO" 5; }
5805 ac_ext=cpp
5806 ac_cpp='$CXXCPP $CPPFLAGS'
5807 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5808 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5809 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5812 $as_echo_n "checking for inline... " >&6; }
5813 if ${ac_cv_c_inline+:} false; then :
5814 $as_echo_n "(cached) " >&6
5815 else
5816 ac_cv_c_inline=no
5817 for ac_kw in inline __inline__ __inline; do
5818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5819 /* end confdefs.h. */
5820 #ifndef __cplusplus
5821 typedef int foo_t;
5822 static $ac_kw foo_t static_foo () {return 0; }
5823 $ac_kw foo_t foo () {return 0; }
5824 #endif
5826 _ACEOF
5827 if ac_fn_cxx_try_compile "$LINENO"; then :
5828 ac_cv_c_inline=$ac_kw
5830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5831 test "$ac_cv_c_inline" != no && break
5832 done
5835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5836 $as_echo "$ac_cv_c_inline" >&6; }
5838 case $ac_cv_c_inline in
5839 inline | yes) ;;
5841 case $ac_cv_c_inline in
5842 no) ac_val=;;
5843 *) ac_val=$ac_cv_c_inline;;
5844 esac
5845 cat >>confdefs.h <<_ACEOF
5846 #ifndef __cplusplus
5847 #define inline $ac_val
5848 #endif
5849 _ACEOF
5851 esac
5854 # Check whether --enable-largefile was given.
5855 if test "${enable_largefile+set}" = set; then :
5856 enableval=$enable_largefile;
5859 if test "$enable_largefile" != no; then
5861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5862 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5863 if ${ac_cv_sys_largefile_CC+:} false; then :
5864 $as_echo_n "(cached) " >&6
5865 else
5866 ac_cv_sys_largefile_CC=no
5867 if test "$GCC" != yes; then
5868 ac_save_CC=$CC
5869 while :; do
5870 # IRIX 6.2 and later do not support large files by default,
5871 # so use the C compiler's -n32 option if that helps.
5872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5873 /* end confdefs.h. */
5874 #include <sys/types.h>
5875 /* Check that off_t can represent 2**63 - 1 correctly.
5876 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5877 since some C++ compilers masquerading as C compilers
5878 incorrectly reject 9223372036854775807. */
5879 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5880 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5881 && LARGE_OFF_T % 2147483647 == 1)
5882 ? 1 : -1];
5884 main ()
5888 return 0;
5890 _ACEOF
5891 if ac_fn_cxx_try_compile "$LINENO"; then :
5892 break
5894 rm -f core conftest.err conftest.$ac_objext
5895 CC="$CC -n32"
5896 if ac_fn_cxx_try_compile "$LINENO"; then :
5897 ac_cv_sys_largefile_CC=' -n32'; break
5899 rm -f core conftest.err conftest.$ac_objext
5900 break
5901 done
5902 CC=$ac_save_CC
5903 rm -f conftest.$ac_ext
5906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5907 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5908 if test "$ac_cv_sys_largefile_CC" != no; then
5909 CC=$CC$ac_cv_sys_largefile_CC
5912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5913 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5914 if ${ac_cv_sys_file_offset_bits+:} false; then :
5915 $as_echo_n "(cached) " >&6
5916 else
5917 while :; do
5918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5919 /* end confdefs.h. */
5920 #include <sys/types.h>
5921 /* Check that off_t can represent 2**63 - 1 correctly.
5922 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5923 since some C++ compilers masquerading as C compilers
5924 incorrectly reject 9223372036854775807. */
5925 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5926 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5927 && LARGE_OFF_T % 2147483647 == 1)
5928 ? 1 : -1];
5930 main ()
5934 return 0;
5936 _ACEOF
5937 if ac_fn_cxx_try_compile "$LINENO"; then :
5938 ac_cv_sys_file_offset_bits=no; break
5940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5942 /* end confdefs.h. */
5943 #define _FILE_OFFSET_BITS 64
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=64; break
5964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5965 ac_cv_sys_file_offset_bits=unknown
5966 break
5967 done
5969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5970 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5971 case $ac_cv_sys_file_offset_bits in #(
5972 no | unknown) ;;
5974 cat >>confdefs.h <<_ACEOF
5975 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5976 _ACEOF
5978 esac
5979 rm -rf conftest*
5980 if test $ac_cv_sys_file_offset_bits = unknown; then
5981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5982 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5983 if ${ac_cv_sys_large_files+:} false; then :
5984 $as_echo_n "(cached) " >&6
5985 else
5986 while :; do
5987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5988 /* end confdefs.h. */
5989 #include <sys/types.h>
5990 /* Check that off_t can represent 2**63 - 1 correctly.
5991 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5992 since some C++ compilers masquerading as C compilers
5993 incorrectly reject 9223372036854775807. */
5994 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5995 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5996 && LARGE_OFF_T % 2147483647 == 1)
5997 ? 1 : -1];
5999 main ()
6003 return 0;
6005 _ACEOF
6006 if ac_fn_cxx_try_compile "$LINENO"; then :
6007 ac_cv_sys_large_files=no; break
6009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6011 /* end confdefs.h. */
6012 #define _LARGE_FILES 1
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=1; break
6033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6034 ac_cv_sys_large_files=unknown
6035 break
6036 done
6038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6039 $as_echo "$ac_cv_sys_large_files" >&6; }
6040 case $ac_cv_sys_large_files in #(
6041 no | unknown) ;;
6043 cat >>confdefs.h <<_ACEOF
6044 #define _LARGE_FILES $ac_cv_sys_large_files
6045 _ACEOF
6047 esac
6048 rm -rf conftest*
6055 # sizeof(char) is 1 by definition.
6056 # The cast to long int works around a bug in the HP C Compiler
6057 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6058 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6059 # This bug is HP SR number 8606223364.
6060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
6061 $as_echo_n "checking size of void *... " >&6; }
6062 if ${ac_cv_sizeof_void_p+:} false; then :
6063 $as_echo_n "(cached) " >&6
6064 else
6065 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
6067 else
6068 if test "$ac_cv_type_void_p" = yes; then
6069 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6070 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6071 as_fn_error 77 "cannot compute sizeof (void *)
6072 See \`config.log' for more details" "$LINENO" 5; }
6073 else
6074 ac_cv_sizeof_void_p=0
6079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
6080 $as_echo "$ac_cv_sizeof_void_p" >&6; }
6084 cat >>confdefs.h <<_ACEOF
6085 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
6086 _ACEOF
6089 # The cast to long int works around a bug in the HP C Compiler
6090 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6091 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6092 # This bug is HP SR number 8606223364.
6093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
6094 $as_echo_n "checking size of short... " >&6; }
6095 if ${ac_cv_sizeof_short+:} false; then :
6096 $as_echo_n "(cached) " >&6
6097 else
6098 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
6100 else
6101 if test "$ac_cv_type_short" = yes; then
6102 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6103 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6104 as_fn_error 77 "cannot compute sizeof (short)
6105 See \`config.log' for more details" "$LINENO" 5; }
6106 else
6107 ac_cv_sizeof_short=0
6112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
6113 $as_echo "$ac_cv_sizeof_short" >&6; }
6117 cat >>confdefs.h <<_ACEOF
6118 #define SIZEOF_SHORT $ac_cv_sizeof_short
6119 _ACEOF
6122 # The cast to long int works around a bug in the HP C Compiler
6123 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6124 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6125 # This bug is HP SR number 8606223364.
6126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
6127 $as_echo_n "checking size of int... " >&6; }
6128 if ${ac_cv_sizeof_int+:} false; then :
6129 $as_echo_n "(cached) " >&6
6130 else
6131 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
6133 else
6134 if test "$ac_cv_type_int" = yes; then
6135 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6136 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6137 as_fn_error 77 "cannot compute sizeof (int)
6138 See \`config.log' for more details" "$LINENO" 5; }
6139 else
6140 ac_cv_sizeof_int=0
6145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
6146 $as_echo "$ac_cv_sizeof_int" >&6; }
6150 cat >>confdefs.h <<_ACEOF
6151 #define SIZEOF_INT $ac_cv_sizeof_int
6152 _ACEOF
6155 # The cast to long int works around a bug in the HP C Compiler
6156 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6157 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6158 # This bug is HP SR number 8606223364.
6159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6160 $as_echo_n "checking size of long... " >&6; }
6161 if ${ac_cv_sizeof_long+:} false; then :
6162 $as_echo_n "(cached) " >&6
6163 else
6164 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
6166 else
6167 if test "$ac_cv_type_long" = yes; then
6168 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6169 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6170 as_fn_error 77 "cannot compute sizeof (long)
6171 See \`config.log' for more details" "$LINENO" 5; }
6172 else
6173 ac_cv_sizeof_long=0
6178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6179 $as_echo "$ac_cv_sizeof_long" >&6; }
6183 cat >>confdefs.h <<_ACEOF
6184 #define SIZEOF_LONG $ac_cv_sizeof_long
6185 _ACEOF
6188 ac_fn_cxx_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
6189 if test "x$ac_cv_type_long_long" = xyes; then :
6191 cat >>confdefs.h <<_ACEOF
6192 #define HAVE_LONG_LONG 1
6193 _ACEOF
6195 # The cast to long int works around a bug in the HP C Compiler
6196 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6197 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6198 # This bug is HP SR number 8606223364.
6199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
6200 $as_echo_n "checking size of long long... " >&6; }
6201 if ${ac_cv_sizeof_long_long+:} false; then :
6202 $as_echo_n "(cached) " >&6
6203 else
6204 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
6206 else
6207 if test "$ac_cv_type_long_long" = yes; then
6208 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6209 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6210 as_fn_error 77 "cannot compute sizeof (long long)
6211 See \`config.log' for more details" "$LINENO" 5; }
6212 else
6213 ac_cv_sizeof_long_long=0
6218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
6219 $as_echo "$ac_cv_sizeof_long_long" >&6; }
6223 cat >>confdefs.h <<_ACEOF
6224 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6225 _ACEOF
6230 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
6231 case $ac_cv_c_int8_t in #(
6232 no|yes) ;; #(
6235 cat >>confdefs.h <<_ACEOF
6236 #define int8_t $ac_cv_c_int8_t
6237 _ACEOF
6239 esac
6241 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
6242 case $ac_cv_c_int16_t in #(
6243 no|yes) ;; #(
6246 cat >>confdefs.h <<_ACEOF
6247 #define int16_t $ac_cv_c_int16_t
6248 _ACEOF
6250 esac
6252 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
6253 case $ac_cv_c_int32_t in #(
6254 no|yes) ;; #(
6257 cat >>confdefs.h <<_ACEOF
6258 #define int32_t $ac_cv_c_int32_t
6259 _ACEOF
6261 esac
6263 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
6264 case $ac_cv_c_int64_t in #(
6265 no|yes) ;; #(
6268 cat >>confdefs.h <<_ACEOF
6269 #define int64_t $ac_cv_c_int64_t
6270 _ACEOF
6272 esac
6275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6276 $as_echo_n "checking for unsigned long long int... " >&6; }
6277 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
6278 $as_echo_n "(cached) " >&6
6279 else
6280 ac_cv_type_unsigned_long_long_int=yes
6281 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
6282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6283 /* end confdefs.h. */
6285 /* For now, do not test the preprocessor; as of 2007 there are too many
6286 implementations with broken preprocessors. Perhaps this can
6287 be revisited in 2012. In the meantime, code should not expect
6288 #if to work with literals wider than 32 bits. */
6289 /* Test literals. */
6290 long long int ll = 9223372036854775807ll;
6291 long long int nll = -9223372036854775807LL;
6292 unsigned long long int ull = 18446744073709551615ULL;
6293 /* Test constant expressions. */
6294 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6295 ? 1 : -1)];
6296 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6297 ? 1 : -1)];
6298 int i = 63;
6300 main ()
6302 /* Test availability of runtime routines for shift and division. */
6303 long long int llmax = 9223372036854775807ll;
6304 unsigned long long int ullmax = 18446744073709551615ull;
6305 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6306 | (llmax / ll) | (llmax % ll)
6307 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6308 | (ullmax / ull) | (ullmax % ull));
6310 return 0;
6313 _ACEOF
6314 if ac_fn_cxx_try_link "$LINENO"; then :
6316 else
6317 ac_cv_type_unsigned_long_long_int=no
6319 rm -f core conftest.err conftest.$ac_objext \
6320 conftest$ac_exeext conftest.$ac_ext
6323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6324 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6325 if test $ac_cv_type_unsigned_long_long_int = yes; then
6327 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6334 $as_echo_n "checking for long long int... " >&6; }
6335 if ${ac_cv_type_long_long_int+:} false; then :
6336 $as_echo_n "(cached) " >&6
6337 else
6338 ac_cv_type_long_long_int=yes
6339 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
6340 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
6341 if test $ac_cv_type_long_long_int = yes; then
6342 if test "$cross_compiling" = yes; then :
6344 else
6345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6346 /* end confdefs.h. */
6347 #include <limits.h>
6348 #ifndef LLONG_MAX
6349 # define HALF \
6350 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6351 # define LLONG_MAX (HALF - 1 + HALF)
6352 #endif
6354 main ()
6356 long long int n = 1;
6357 int i;
6358 for (i = 0; ; i++)
6360 long long int m = n << i;
6361 if (m >> i != n)
6362 return 1;
6363 if (LLONG_MAX / 2 < m)
6364 break;
6366 return 0;
6368 return 0;
6370 _ACEOF
6371 if ac_fn_cxx_try_run "$LINENO"; then :
6373 else
6374 ac_cv_type_long_long_int=no
6376 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6377 conftest.$ac_objext conftest.beam conftest.$ac_ext
6383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6384 $as_echo "$ac_cv_type_long_long_int" >&6; }
6385 if test $ac_cv_type_long_long_int = yes; then
6387 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6393 ac_fn_cxx_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6394 if test "x$ac_cv_type_intmax_t" = xyes; then :
6396 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6398 else
6399 test $ac_cv_type_long_long_int = yes \
6400 && ac_type='long long int' \
6401 || ac_type='long int'
6403 cat >>confdefs.h <<_ACEOF
6404 #define intmax_t $ac_type
6405 _ACEOF
6411 ac_fn_cxx_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6412 if test "x$ac_cv_type_intptr_t" = xyes; then :
6414 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6416 else
6417 for ac_type in 'int' 'long int' 'long long int'; do
6418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6419 /* end confdefs.h. */
6420 $ac_includes_default
6422 main ()
6424 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6425 test_array [0] = 0;
6426 return test_array [0];
6429 return 0;
6431 _ACEOF
6432 if ac_fn_cxx_try_compile "$LINENO"; then :
6434 cat >>confdefs.h <<_ACEOF
6435 #define intptr_t $ac_type
6436 _ACEOF
6438 ac_type=
6440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6441 test -z "$ac_type" && break
6442 done
6446 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
6447 case $ac_cv_c_uint8_t in #(
6448 no|yes) ;; #(
6451 $as_echo "#define _UINT8_T 1" >>confdefs.h
6454 cat >>confdefs.h <<_ACEOF
6455 #define uint8_t $ac_cv_c_uint8_t
6456 _ACEOF
6458 esac
6460 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6461 case $ac_cv_c_uint16_t in #(
6462 no|yes) ;; #(
6466 cat >>confdefs.h <<_ACEOF
6467 #define uint16_t $ac_cv_c_uint16_t
6468 _ACEOF
6470 esac
6472 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6473 case $ac_cv_c_uint32_t in #(
6474 no|yes) ;; #(
6477 $as_echo "#define _UINT32_T 1" >>confdefs.h
6480 cat >>confdefs.h <<_ACEOF
6481 #define uint32_t $ac_cv_c_uint32_t
6482 _ACEOF
6484 esac
6486 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
6487 case $ac_cv_c_uint64_t in #(
6488 no|yes) ;; #(
6491 $as_echo "#define _UINT64_T 1" >>confdefs.h
6494 cat >>confdefs.h <<_ACEOF
6495 #define uint64_t $ac_cv_c_uint64_t
6496 _ACEOF
6498 esac
6502 ac_fn_cxx_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6503 if test "x$ac_cv_type_uintmax_t" = xyes; then :
6505 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6507 else
6508 test $ac_cv_type_unsigned_long_long_int = yes \
6509 && ac_type='unsigned long long int' \
6510 || ac_type='unsigned long int'
6512 cat >>confdefs.h <<_ACEOF
6513 #define uintmax_t $ac_type
6514 _ACEOF
6520 ac_fn_cxx_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6521 if test "x$ac_cv_type_uintptr_t" = xyes; then :
6523 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6525 else
6526 for ac_type in 'unsigned int' 'unsigned long int' \
6527 'unsigned long long int'; do
6528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6529 /* end confdefs.h. */
6530 $ac_includes_default
6532 main ()
6534 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6535 test_array [0] = 0;
6536 return test_array [0];
6539 return 0;
6541 _ACEOF
6542 if ac_fn_cxx_try_compile "$LINENO"; then :
6544 cat >>confdefs.h <<_ACEOF
6545 #define uintptr_t $ac_type
6546 _ACEOF
6548 ac_type=
6550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6551 test -z "$ac_type" && break
6552 done
6568 if test x"$ac_cv_c_uint64_t" = x"no" -o x"$ac_cv_c_int64_t" = x"no"; then
6569 as_fn_error $? "uint64_t or int64_t not found" "$LINENO" 5
6572 # check what underlying integer type int64_t uses
6573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t underlying type" >&5
6574 $as_echo_n "checking for int64_t underlying type... " >&6; }
6575 if ${ac_cv_int64_t_type+:} false; then :
6576 $as_echo_n "(cached) " >&6
6577 else
6579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6580 /* end confdefs.h. */
6582 #ifdef HAVE_STDINT_H
6583 #include <stdint.h>
6584 #endif
6585 template <typename T> struct X { };
6586 template <>
6587 struct X<long> { typedef long t; };
6590 main ()
6592 X<int64_t>::t x;
6594 return 0;
6596 _ACEOF
6597 if ac_fn_cxx_try_compile "$LINENO"; then :
6598 ac_cv_int64_t_type=long
6599 else
6600 ac_cv_int64_t_type="long long"
6602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_int64_t_type" >&5
6605 $as_echo "$ac_cv_int64_t_type" >&6; }
6606 if test "$ac_cv_int64_t_type" = "long"; then
6608 $as_echo "#define INT64_T_IS_LONG 1" >>confdefs.h
6610 else
6611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6612 /* end confdefs.h. */
6614 #ifdef HAVE_STDINT_H
6615 #include <stdint.h>
6616 #endif
6617 template <typename T> struct X { };
6618 template <>
6619 struct X<long long> { typedef long long t; };
6622 main ()
6624 X<int64_t>::t x;
6626 return 0;
6628 _ACEOF
6629 if ac_fn_cxx_try_compile "$LINENO"; then :
6631 else
6632 as_fn_error $? "error verifying int64_t uses long long" "$LINENO" 5
6634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::swap in <utility>" >&5
6638 $as_echo_n "checking for std::swap in <utility>... " >&6; }
6639 if ${ac_cv_std_swap_in_utility+:} false; then :
6640 $as_echo_n "(cached) " >&6
6641 else
6643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6644 /* end confdefs.h. */
6646 #include <utility>
6649 main ()
6651 int a, b; std::swap(a,b);
6653 return 0;
6655 _ACEOF
6656 if ac_fn_cxx_try_compile "$LINENO"; then :
6657 ac_cv_std_swap_in_utility=yes
6658 else
6659 ac_cv_std_swap_in_utility=no
6661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_std_swap_in_utility" >&5
6664 $as_echo "$ac_cv_std_swap_in_utility" >&6; }
6665 if test $ac_cv_std_swap_in_utility = yes; then
6667 $as_echo "#define HAVE_SWAP_IN_UTILITY 1" >>confdefs.h
6671 # Check whether compiler is affected by placement new aliasing bug (PR 29286).
6672 # If the host compiler is affected by the bug, and we build with optimization
6673 # enabled (which happens e.g. when cross-compiling), the pool allocator may
6674 # get miscompiled. Use -fno-strict-aliasing to work around this problem.
6675 # Since there is no reliable feature check for the presence of this bug,
6676 # we simply use a GCC version number check. (This should never trigger for
6677 # stages 2 or 3 of a native bootstrap.)
6678 aliasing_flags=
6679 if test "$GCC" = yes; then
6680 saved_CXXFLAGS="$CXXFLAGS"
6682 # The following test compilation will succeed if and only if $CXX accepts
6683 # -fno-strict-aliasing *and* is older than GCC 4.3.
6684 CXXFLAGS="$CXXFLAGS -fno-strict-aliasing"
6685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX is affected by placement new aliasing bug" >&5
6686 $as_echo_n "checking whether $CXX is affected by placement new aliasing bug... " >&6; }
6687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6688 /* end confdefs.h. */
6690 #if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3)
6691 #error compiler not affected by placement new aliasing bug
6692 #endif
6694 _ACEOF
6695 if ac_fn_cxx_try_compile "$LINENO"; then :
6696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6697 $as_echo "yes" >&6; }; aliasing_flags='-fno-strict-aliasing'
6698 else
6699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6700 $as_echo "no" >&6; }
6702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6704 CXXFLAGS="$saved_CXXFLAGS"
6710 # ---------------------
6711 # Warnings and checking
6712 # ---------------------
6714 # Check $CC warning features (if it's GCC).
6715 # We want to use -pedantic, but we don't want warnings about
6716 # * 'long long'
6717 # * variadic macros
6718 # * overlong strings
6719 # * C++11 narrowing conversions in { }
6720 # So, we only use -pedantic if we can disable those warnings.
6722 # In stage 1, disable -Wformat warnings from old GCCs about new % codes
6723 # Check whether --enable-build-format-warnings was given.
6724 if test "${enable_build_format_warnings+set}" = set; then :
6725 enableval=$enable_build_format_warnings;
6726 else
6727 enable_build_format_warnings=yes
6730 if test $enable_build_format_warnings = no; then :
6731 wf_opt=-Wno-format
6732 else
6733 wf_opt=
6735 ac_ext=cpp
6736 ac_cpp='$CXXCPP $CPPFLAGS'
6737 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6738 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6739 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6741 loose_warn=
6742 save_CXXFLAGS="$CXXFLAGS"
6743 for real_option in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual $wf_opt; do
6744 # Do the check with the no- prefix removed since gcc silently
6745 # accepts any -Wno-* option on purpose
6746 case $real_option in
6747 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6748 *) option=$real_option ;;
6749 esac
6750 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6753 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6754 if eval \${$as_acx_Woption+:} false; then :
6755 $as_echo_n "(cached) " >&6
6756 else
6757 CXXFLAGS="$option"
6758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6759 /* end confdefs.h. */
6762 main ()
6766 return 0;
6768 _ACEOF
6769 if ac_fn_cxx_try_compile "$LINENO"; then :
6770 eval "$as_acx_Woption=yes"
6771 else
6772 eval "$as_acx_Woption=no"
6774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6777 eval ac_res=\$$as_acx_Woption
6778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6779 $as_echo "$ac_res" >&6; }
6780 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6781 loose_warn="$loose_warn${loose_warn:+ }$real_option"
6783 done
6784 CXXFLAGS="$save_CXXFLAGS"
6785 ac_ext=cpp
6786 ac_cpp='$CXXCPP $CPPFLAGS'
6787 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6788 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6789 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6793 ac_ext=c
6794 ac_cpp='$CPP $CPPFLAGS'
6795 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6796 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6797 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6799 c_loose_warn=
6800 save_CFLAGS="$CFLAGS"
6801 for real_option in -Wstrict-prototypes -Wmissing-prototypes; do
6802 # Do the check with the no- prefix removed since gcc silently
6803 # accepts any -Wno-* option on purpose
6804 case $real_option in
6805 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6806 *) option=$real_option ;;
6807 esac
6808 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6811 $as_echo_n "checking whether $CC supports $option... " >&6; }
6812 if eval \${$as_acx_Woption+:} false; then :
6813 $as_echo_n "(cached) " >&6
6814 else
6815 CFLAGS="$option"
6816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6817 /* end confdefs.h. */
6820 main ()
6824 return 0;
6826 _ACEOF
6827 if ac_fn_c_try_compile "$LINENO"; then :
6828 eval "$as_acx_Woption=yes"
6829 else
6830 eval "$as_acx_Woption=no"
6832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6835 eval ac_res=\$$as_acx_Woption
6836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6837 $as_echo "$ac_res" >&6; }
6838 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6839 c_loose_warn="$c_loose_warn${c_loose_warn:+ }$real_option"
6841 done
6842 CFLAGS="$save_CFLAGS"
6843 ac_ext=cpp
6844 ac_cpp='$CXXCPP $CPPFLAGS'
6845 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6846 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6847 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6850 ac_ext=cpp
6851 ac_cpp='$CXXCPP $CPPFLAGS'
6852 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6853 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6854 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6856 strict_warn=
6857 save_CXXFLAGS="$CXXFLAGS"
6858 for real_option in -Wmissing-format-attribute -Woverloaded-virtual; do
6859 # Do the check with the no- prefix removed since gcc silently
6860 # accepts any -Wno-* option on purpose
6861 case $real_option in
6862 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6863 *) option=$real_option ;;
6864 esac
6865 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6868 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6869 if eval \${$as_acx_Woption+:} false; then :
6870 $as_echo_n "(cached) " >&6
6871 else
6872 CXXFLAGS="$option"
6873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6874 /* end confdefs.h. */
6877 main ()
6881 return 0;
6883 _ACEOF
6884 if ac_fn_cxx_try_compile "$LINENO"; then :
6885 eval "$as_acx_Woption=yes"
6886 else
6887 eval "$as_acx_Woption=no"
6889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6892 eval ac_res=\$$as_acx_Woption
6893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6894 $as_echo "$ac_res" >&6; }
6895 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6896 strict_warn="$strict_warn${strict_warn:+ }$real_option"
6898 done
6899 CXXFLAGS="$save_CXXFLAGS"
6900 ac_ext=cpp
6901 ac_cpp='$CXXCPP $CPPFLAGS'
6902 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6903 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6904 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6907 ac_ext=c
6908 ac_cpp='$CPP $CPPFLAGS'
6909 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6910 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6911 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6913 c_strict_warn=
6914 save_CFLAGS="$CFLAGS"
6915 for real_option in -Wold-style-definition -Wc++-compat; do
6916 # Do the check with the no- prefix removed since gcc silently
6917 # accepts any -Wno-* option on purpose
6918 case $real_option in
6919 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6920 *) option=$real_option ;;
6921 esac
6922 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6925 $as_echo_n "checking whether $CC supports $option... " >&6; }
6926 if eval \${$as_acx_Woption+:} false; then :
6927 $as_echo_n "(cached) " >&6
6928 else
6929 CFLAGS="$option"
6930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6931 /* end confdefs.h. */
6934 main ()
6938 return 0;
6940 _ACEOF
6941 if ac_fn_c_try_compile "$LINENO"; then :
6942 eval "$as_acx_Woption=yes"
6943 else
6944 eval "$as_acx_Woption=no"
6946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6949 eval ac_res=\$$as_acx_Woption
6950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6951 $as_echo "$ac_res" >&6; }
6952 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6953 c_strict_warn="$c_strict_warn${c_strict_warn:+ }$real_option"
6955 done
6956 CFLAGS="$save_CFLAGS"
6957 ac_ext=cpp
6958 ac_cpp='$CXXCPP $CPPFLAGS'
6959 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6960 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6961 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6964 ac_ext=cpp
6965 ac_cpp='$CXXCPP $CPPFLAGS'
6966 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6967 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6968 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6970 # Do the check with the no- prefix removed from the warning options
6971 # since gcc silently accepts any -Wno-* option on purpose
6972 if test "$GXX" = yes; then :
6973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
6974 $as_echo_n "checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
6975 if ${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+:} false; then :
6976 $as_echo_n "(cached) " >&6
6977 else
6978 save_CXXFLAGS="$CXXFLAGS"
6979 CXXFLAGS="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
6980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6981 /* end confdefs.h. */
6984 main ()
6988 return 0;
6990 _ACEOF
6991 if ac_fn_cxx_try_compile "$LINENO"; then :
6992 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=yes
6993 else
6994 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=no
6996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6997 CXXFLAGS="$save_CXXFLAGS"
6999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
7000 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
7001 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
7002 strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
7006 ac_ext=cpp
7007 ac_cpp='$CXXCPP $CPPFLAGS'
7008 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7009 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7010 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7013 ac_ext=cpp
7014 ac_cpp='$CXXCPP $CPPFLAGS'
7015 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7016 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7017 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7019 # Check whether --enable-werror-always was given.
7020 if test "${enable_werror_always+set}" = set; then :
7021 enableval=$enable_werror_always;
7022 else
7023 enable_werror_always=no
7026 if test $enable_werror_always = yes; then :
7027 strict_warn="$strict_warn${strict_warn:+ }-Werror"
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
7038 # The above macros do nothing if the compiler is not GCC. However, the
7039 # Makefile has more goo to add other flags, so these variables are used
7040 # to enable warnings only for GCC.
7041 warn_cflags=
7042 warn_cxxflags=
7043 if test "x$GCC" = "xyes"; then
7044 warn_cflags='$(GCC_WARN_CFLAGS)'
7045 warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
7050 # Disable exceptions and RTTI if building with g++
7051 ac_ext=c
7052 ac_cpp='$CPP $CPPFLAGS'
7053 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7054 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7055 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7057 noexception_flags=
7058 save_CFLAGS="$CFLAGS"
7059 for real_option in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
7060 # Do the check with the no- prefix removed since gcc silently
7061 # accepts any -Wno-* option on purpose
7062 case $real_option in
7063 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7064 *) option=$real_option ;;
7065 esac
7066 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
7069 $as_echo_n "checking whether $CC supports $option... " >&6; }
7070 if eval \${$as_acx_Woption+:} false; then :
7071 $as_echo_n "(cached) " >&6
7072 else
7073 CFLAGS="$option"
7074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7075 /* end confdefs.h. */
7078 main ()
7082 return 0;
7084 _ACEOF
7085 if ac_fn_c_try_compile "$LINENO"; then :
7086 eval "$as_acx_Woption=yes"
7087 else
7088 eval "$as_acx_Woption=no"
7090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7093 eval ac_res=\$$as_acx_Woption
7094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7095 $as_echo "$ac_res" >&6; }
7096 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7097 noexception_flags="$noexception_flags${noexception_flags:+ }$real_option"
7099 done
7100 CFLAGS="$save_CFLAGS"
7101 ac_ext=cpp
7102 ac_cpp='$CXXCPP $CPPFLAGS'
7103 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7104 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7105 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7109 # Enable expensive internal checks
7110 is_release=
7111 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
7112 is_release=yes
7115 # Check whether --enable-checking was given.
7116 if test "${enable_checking+set}" = set; then :
7117 enableval=$enable_checking; ac_checking_flags="${enableval}"
7118 else
7120 # Determine the default checks.
7121 if test x$is_release = x ; then
7122 ac_checking_flags=yes,extra
7123 else
7124 ac_checking_flags=release
7128 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
7129 for check in release $ac_checking_flags
7131 case $check in
7132 # these set all the flags to specific states
7133 yes) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
7134 ac_fold_checking= ; ac_gc_checking=1 ; ac_extra_checking= ;
7135 ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
7136 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7137 ac_tree_checking=1 ; ac_valgrind_checking= ;
7138 ac_types_checking=1 ;;
7139 no|none) ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
7140 ac_fold_checking= ; ac_gc_checking= ; ac_extra_checking= ;
7141 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
7142 ac_rtlflag_checking= ; ac_runtime_checking= ;
7143 ac_tree_checking= ; ac_valgrind_checking= ;
7144 ac_types_checking= ;;
7145 all) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
7146 ac_fold_checking=1 ; ac_gc_checking=1 ; ac_extra_checking=1 ;
7147 ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
7148 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7149 ac_tree_checking=1 ; ac_valgrind_checking= ;
7150 ac_types_checking=1 ;;
7151 release) ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
7152 ac_fold_checking= ; ac_gc_checking= ; ac_extra_checking= ;
7153 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
7154 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
7155 ac_tree_checking= ; ac_valgrind_checking= ;
7156 ac_types_checking= ;;
7157 # these enable particular checks
7158 assert) ac_assert_checking=1 ;;
7159 df) ac_df_checking=1 ;;
7160 extra) ac_extra_checking=1 ;;
7161 fold) ac_fold_checking=1 ;;
7162 gc) ac_gc_checking=1 ;;
7163 gcac) ac_gc_always_collect=1 ;;
7164 gimple) ac_gimple_checking=1 ;;
7165 misc) ac_checking=1 ;;
7166 rtl) ac_rtl_checking=1 ;;
7167 rtlflag) ac_rtlflag_checking=1 ;;
7168 runtime) ac_runtime_checking=1 ;;
7169 tree) ac_tree_checking=1 ;;
7170 types) ac_types_checking=1 ;;
7171 valgrind) ac_valgrind_checking=1 ;;
7172 *) as_fn_error $? "unknown check category $check" "$LINENO" 5 ;;
7173 esac
7174 done
7175 IFS="$ac_save_IFS"
7177 nocommon_flag=""
7178 if test x$ac_checking != x ; then
7180 $as_echo "#define CHECKING_P 1" >>confdefs.h
7182 nocommon_flag=-fno-common
7183 else
7184 $as_echo "#define CHECKING_P 0" >>confdefs.h
7188 if test x$ac_extra_checking != x ; then
7190 $as_echo "#define ENABLE_EXTRA_CHECKING 1" >>confdefs.h
7192 else
7193 $as_echo "#define ENABLE_EXTRA_CHECKING 0" >>confdefs.h
7196 if test x$ac_df_checking != x ; then
7198 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
7201 if test x$ac_assert_checking != x ; then
7203 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
7206 if test x$ac_gimple_checking != x ; then
7208 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
7212 if test x$ac_runtime_checking != x ; then
7214 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
7217 if test x$ac_tree_checking != x ; then
7219 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
7221 TREECHECKING=yes
7223 if test x$ac_types_checking != x ; then
7225 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
7229 if test x$ac_rtl_checking != x ; then
7231 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
7234 if test x$ac_rtlflag_checking != x ; then
7236 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
7239 if test x$ac_gc_checking != x ; then
7241 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
7244 if test x$ac_gc_always_collect != x ; then
7246 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
7249 if test x$ac_fold_checking != x ; then
7251 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
7254 valgrind_path_defines=
7255 valgrind_command=
7257 ac_fn_cxx_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
7258 if test "x$ac_cv_header_valgrind_h" = xyes; then :
7259 have_valgrind_h=yes
7260 else
7261 have_valgrind_h=no
7266 # It is certainly possible that there's valgrind but no valgrind.h.
7267 # GCC relies on making annotations so we must have both.
7268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
7269 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
7270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7271 /* end confdefs.h. */
7272 #include <valgrind/memcheck.h>
7273 #ifndef VALGRIND_DISCARD
7274 #error VALGRIND_DISCARD not defined
7275 #endif
7276 _ACEOF
7277 if ac_fn_cxx_try_cpp "$LINENO"; then :
7278 gcc_cv_header_valgrind_memcheck_h=yes
7279 else
7280 gcc_cv_header_valgrind_memcheck_h=no
7282 rm -f conftest.err conftest.i conftest.$ac_ext
7283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
7284 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
7285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
7286 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
7287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7288 /* end confdefs.h. */
7289 #include <memcheck.h>
7290 #ifndef VALGRIND_DISCARD
7291 #error VALGRIND_DISCARD not defined
7292 #endif
7293 _ACEOF
7294 if ac_fn_cxx_try_cpp "$LINENO"; then :
7295 gcc_cv_header_memcheck_h=yes
7296 else
7297 gcc_cv_header_memcheck_h=no
7299 rm -f conftest.err conftest.i conftest.$ac_ext
7300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
7301 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
7302 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
7304 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
7307 if test $gcc_cv_header_memcheck_h = yes; then
7309 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
7313 if test x$ac_valgrind_checking != x ; then
7315 # Prepare PATH_SEPARATOR.
7316 # The user is always right.
7317 if test "${PATH_SEPARATOR+set}" != set; then
7318 echo "#! /bin/sh" >conf$$.sh
7319 echo "exit 0" >>conf$$.sh
7320 chmod +x conf$$.sh
7321 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7322 PATH_SEPARATOR=';'
7323 else
7324 PATH_SEPARATOR=:
7326 rm -f conf$$.sh
7329 # Find out how to test for executable files. Don't use a zero-byte file,
7330 # as systems may use methods other than mode bits to determine executability.
7331 cat >conf$$.file <<_ASEOF
7332 #! /bin/sh
7333 exit 0
7334 _ASEOF
7335 chmod +x conf$$.file
7336 if test -x conf$$.file >/dev/null 2>&1; then
7337 ac_executable_p="test -x"
7338 else
7339 ac_executable_p="test -f"
7341 rm -f conf$$.file
7343 # Extract the first word of "valgrind", so it can be a program name with args.
7344 set dummy valgrind; ac_word=$2
7345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7346 $as_echo_n "checking for $ac_word... " >&6; }
7347 if ${ac_cv_path_valgrind_path+:} false; then :
7348 $as_echo_n "(cached) " >&6
7349 else
7350 case "$valgrind_path" in
7351 [\\/]* | ?:[\\/]*)
7352 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
7355 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7356 for ac_dir in $PATH; do
7357 IFS="$ac_save_IFS"
7358 test -z "$ac_dir" && ac_dir=.
7359 for ac_exec_ext in '' $ac_executable_extensions; do
7360 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7361 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
7362 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
7363 break 2
7366 done
7367 done
7368 IFS="$ac_save_IFS"
7370 esac
7372 valgrind_path="$ac_cv_path_valgrind_path"
7373 if test -n "$valgrind_path"; then
7374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
7375 $as_echo "$valgrind_path" >&6; }
7376 else
7377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7378 $as_echo "no" >&6; }
7381 if test "x$valgrind_path" = "x" \
7382 || (test $have_valgrind_h = no \
7383 && test $gcc_cv_header_memcheck_h = no \
7384 && test $gcc_cv_header_valgrind_memcheck_h = no); then
7385 as_fn_error $? "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7387 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
7388 valgrind_command="$valgrind_path -q"
7390 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
7396 # Enable code coverage collection
7397 # Check whether --enable-coverage was given.
7398 if test "${enable_coverage+set}" = set; then :
7399 enableval=$enable_coverage; case "${enableval}" in
7400 yes|noopt)
7401 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0 -fkeep-static-functions"
7403 opt)
7404 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2 -fkeep-static-functions"
7407 # a.k.a. --disable-coverage
7408 coverage_flags=""
7411 as_fn_error $? "unknown coverage setting $enableval" "$LINENO" 5
7413 esac
7414 else
7415 coverage_flags=""
7420 # Check whether --enable-gather-detailed-mem-stats was given.
7421 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
7422 enableval=$enable_gather_detailed_mem_stats;
7423 else
7424 enable_gather_detailed_mem_stats=no
7427 gather_stats=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
7429 cat >>confdefs.h <<_ACEOF
7430 #define GATHER_STATISTICS $gather_stats
7431 _ACEOF
7434 # Check whether --enable-valgrind-annotations was given.
7435 if test "${enable_valgrind_annotations+set}" = set; then :
7436 enableval=$enable_valgrind_annotations;
7437 else
7438 enable_valgrind_annotations=no
7441 if test x$enable_valgrind_annotations != xno \
7442 || test x$ac_valgrind_checking != x; then
7443 if (test $have_valgrind_h = no \
7444 && test $gcc_cv_header_memcheck_h = no \
7445 && test $gcc_cv_header_valgrind_memcheck_h = no); then
7446 as_fn_error $? "*** Can't find valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7449 $as_echo "#define ENABLE_VALGRIND_ANNOTATIONS 1" >>confdefs.h
7453 # -------------------------------
7454 # Miscenalleous configure options
7455 # -------------------------------
7457 # With stabs
7459 # Check whether --with-stabs was given.
7460 if test "${with_stabs+set}" = set; then :
7461 withval=$with_stabs; stabs="$with_stabs"
7462 else
7463 stabs=no
7467 # Determine whether or not multilibs are enabled.
7468 # Check whether --enable-multilib was given.
7469 if test "${enable_multilib+set}" = set; then :
7470 enableval=$enable_multilib;
7471 else
7472 enable_multilib=yes
7477 # Determine whether or not multiarch is enabled.
7478 # Check whether --enable-multiarch was given.
7479 if test "${enable_multiarch+set}" = set; then :
7480 enableval=$enable_multiarch; case "${enableval}" in
7481 yes|no|auto) enable_multiarch=$enableval;;
7482 *) as_fn_error $? "bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
7483 esac
7484 else
7485 enable_multiarch=auto
7488 if test x${enable_multiarch} = xauto; then
7489 if test x${with_native_system_header_dir} != x; then
7490 ma_msg_suffix=", disabled auto check (configured with --native-system-header-dir)"
7491 enable_multiarch=no
7493 if test x$host != x$target && test "x$with_sysroot" = x; then
7494 ma_msg_suffix=", disabled auto check (cross build configured without --with-sysroot)"
7495 enable_multiarch=no
7498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
7499 $as_echo_n "checking for multiarch configuration... " >&6; }
7501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
7502 $as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
7504 # needed for setting the multiarch name for soft-float/hard-float ABIs
7508 # default stack clash protection guard size as power of twos in bytes.
7509 # Please keep these in sync with params.def.
7510 stk_clash_min=12
7511 stk_clash_max=30
7513 # Keep the default value when the option is not used to 0, this allows us to
7514 # distinguish between the cases where the user specifially set a value via
7515 # configure and when the normal default value is used.
7517 # Check whether --with-stack-clash-protection-guard-size was given.
7518 if test "${with_stack_clash_protection_guard_size+set}" = set; then :
7519 withval=$with_stack_clash_protection_guard_size; DEFAULT_STK_CLASH_GUARD_SIZE="$with_stack_clash_protection_guard_size"
7520 else
7521 DEFAULT_STK_CLASH_GUARD_SIZE=0
7524 if test $DEFAULT_STK_CLASH_GUARD_SIZE -ne 0 \
7525 && (test $DEFAULT_STK_CLASH_GUARD_SIZE -lt $stk_clash_min \
7526 || test $DEFAULT_STK_CLASH_GUARD_SIZE -gt $stk_clash_max); then
7527 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
7531 cat >>confdefs.h <<_ACEOF
7532 #define DEFAULT_STK_CLASH_GUARD_SIZE $DEFAULT_STK_CLASH_GUARD_SIZE
7533 _ACEOF
7536 # Enable __cxa_atexit for C++.
7537 # Check whether --enable-__cxa_atexit was given.
7538 if test "${enable___cxa_atexit+set}" = set; then :
7539 enableval=$enable___cxa_atexit;
7543 # Enable C extension for decimal float if target supports it.
7545 # Check whether --enable-decimal-float was given.
7546 if test "${enable_decimal_float+set}" = set; then :
7547 enableval=$enable_decimal_float;
7548 case $enable_decimal_float in
7549 yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
7550 *) as_fn_error $? "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7551 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7552 esac
7554 else
7556 case $target in
7557 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
7558 i?86*-*-elfiamcu | i?86*-*-gnu* | x86_64*-*-gnu* | \
7559 i?86*-*-mingw* | x86_64*-*-mingw* | \
7560 i?86*-*-cygwin* | x86_64*-*-cygwin*)
7561 enable_decimal_float=yes
7564 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7565 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7566 enable_decimal_float=no
7568 esac
7573 # x86's use BID format instead of DPD
7574 case x$enable_decimal_float in
7575 xyes)
7576 case $target in
7577 i?86*-*-* | x86_64*-*-*)
7578 enable_decimal_float=bid
7581 enable_decimal_float=dpd
7583 esac
7584 default_decimal_float=$enable_decimal_float
7586 xno)
7587 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7588 # dependency on libdecnumber.
7589 default_decimal_float=dpd
7591 esac
7596 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7598 cat >>confdefs.h <<_ACEOF
7599 #define ENABLE_DECIMAL_FLOAT $dfp
7600 _ACEOF
7603 # Use default_decimal_float for dependency.
7604 enable_decimal_float=$default_decimal_float
7606 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7608 cat >>confdefs.h <<_ACEOF
7609 #define ENABLE_DECIMAL_BID_FORMAT $bid
7610 _ACEOF
7613 # Enable C extension for fixed-point arithmetic.
7614 # Check whether --enable-fixed-point was given.
7615 if test "${enable_fixed_point+set}" = set; then :
7616 enableval=$enable_fixed_point;
7617 else
7619 case $target in
7620 arm*)
7621 enable_fixed_point=yes
7624 mips*-*-*)
7625 enable_fixed_point=yes
7628 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7629 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7630 enable_fixed_point=no
7632 esac
7638 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7640 cat >>confdefs.h <<_ACEOF
7641 #define ENABLE_FIXED_POINT $fixedpoint
7642 _ACEOF
7645 # Enable threads
7646 # Pass with no value to take the default
7647 # Pass with a value to specify a thread package
7648 # Check whether --enable-threads was given.
7649 if test "${enable_threads+set}" = set; then :
7650 enableval=$enable_threads;
7651 else
7652 enable_threads=''
7656 # Check whether --enable-tls was given.
7657 if test "${enable_tls+set}" = set; then :
7658 enableval=$enable_tls;
7659 case $enable_tls in
7660 yes | no) ;;
7661 *) as_fn_error $? "'$enable_tls' is an invalid value for --enable-tls.
7662 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7663 esac
7665 else
7666 enable_tls=''
7670 # Check whether --enable-vtable-verify was given.
7671 if test "${enable_vtable_verify+set}" = set; then :
7672 enableval=$enable_vtable_verify;
7673 else
7674 enable_vtable_verify=no
7677 vtable_verify=`if test x$enable_vtable_verify = xyes; then echo 1; else echo 0; fi`
7679 cat >>confdefs.h <<_ACEOF
7680 #define ENABLE_VTABLE_VERIFY $vtable_verify
7681 _ACEOF
7684 # Check whether --enable-objc-gc was given.
7685 if test "${enable_objc_gc+set}" = set; then :
7686 enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
7687 objc_boehm_gc=''
7688 else
7689 objc_boehm_gc=1
7691 else
7692 objc_boehm_gc=''
7697 # Check whether --with-dwarf2 was given.
7698 if test "${with_dwarf2+set}" = set; then :
7699 withval=$with_dwarf2; dwarf2="$with_dwarf2"
7700 else
7701 dwarf2=no
7705 # Check whether --enable-shared was given.
7706 if test "${enable_shared+set}" = set; then :
7707 enableval=$enable_shared;
7708 case $enable_shared in
7709 yes | no) ;;
7711 enable_shared=no
7712 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7713 for pkg in $enableval; do
7714 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7715 enable_shared=yes
7717 done
7718 IFS="$ac_save_ifs"
7720 esac
7722 else
7723 enable_shared=yes
7728 # Check whether --enable-gcov was given.
7729 if test "${enable_gcov+set}" = set; then :
7730 enableval=$enable_gcov;
7731 else
7732 enable_gcov=yes
7738 # Check whether --with-specs was given.
7739 if test "${with_specs+set}" = set; then :
7740 withval=$with_specs; CONFIGURE_SPECS=$withval
7741 else
7742 CONFIGURE_SPECS=
7750 # Check whether --with-pkgversion was given.
7751 if test "${with_pkgversion+set}" = set; then :
7752 withval=$with_pkgversion; case "$withval" in
7753 yes) as_fn_error $? "package version not specified" "$LINENO" 5 ;;
7754 no) PKGVERSION= ;;
7755 *) PKGVERSION="($withval) " ;;
7756 esac
7757 else
7758 PKGVERSION="(GCC) "
7766 # Check whether --with-bugurl was given.
7767 if test "${with_bugurl+set}" = set; then :
7768 withval=$with_bugurl; case "$withval" in
7769 yes) as_fn_error $? "bug URL not specified" "$LINENO" 5 ;;
7770 no) BUGURL=
7772 *) BUGURL="$withval"
7774 esac
7775 else
7776 BUGURL="https://gcc.gnu.org/bugs/"
7780 case ${BUGURL} in
7782 REPORT_BUGS_TO=
7783 REPORT_BUGS_TEXI=
7786 REPORT_BUGS_TO="<$BUGURL>"
7787 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
7789 esac;
7794 # Sanity check enable_languages in case someone does not run the toplevel
7795 # configure # script.
7796 # Check whether --enable-languages was given.
7797 if test "${enable_languages+set}" = set; then :
7798 enableval=$enable_languages; case ,${enable_languages}, in
7799 ,,|,yes,)
7800 # go safe -- we cannot be much sure without the toplevel
7801 # configure's
7802 # analysis of which target libs are present and usable
7803 enable_languages=c
7805 *,all,*)
7806 as_fn_error $? "only the toplevel supports --enable-languages=all" "$LINENO" 5
7808 *,c,*)
7811 enable_languages=c,${enable_languages}
7813 esac
7814 else
7815 enable_languages=c
7819 if test x"$enable_as_accelerator_for" != x; then
7821 $as_echo "#define ACCEL_COMPILER 1" >>confdefs.h
7823 enable_as_accelerator=yes
7824 case "${target}" in
7825 *-intelmicemul-*)
7826 # In this case we expect offload compiler to be built as native, so we
7827 # need to rename the driver to avoid clashes with host's drivers.
7828 program_transform_name="s&^&${target}-&" ;;
7829 esac
7830 sedscript="s#${target_noncanonical}#${enable_as_accelerator_for}-accel-${target_noncanonical}#"
7831 program_transform_name=`echo $program_transform_name | sed $sedscript`
7832 accel_dir_suffix=/accel/${target_noncanonical}
7833 real_target_noncanonical=${enable_as_accelerator_for}
7839 for tgt in `echo $enable_offload_targets | sed 's/,/ /g'`; do
7840 tgt=`echo $tgt | sed 's/=.*//'`
7842 if echo "$tgt" | grep "^hsa" > /dev/null ; then
7843 enable_hsa=1
7844 else
7845 enable_offloading=1
7848 if test x"$offload_targets" = x; then
7849 offload_targets=$tgt
7850 else
7851 offload_targets="$offload_targets,$tgt"
7853 done
7855 cat >>confdefs.h <<_ACEOF
7856 #define OFFLOAD_TARGETS "$offload_targets"
7857 _ACEOF
7859 if test x"$enable_offloading" != x; then
7861 $as_echo "#define ENABLE_OFFLOADING 1" >>confdefs.h
7863 else
7865 $as_echo "#define ENABLE_OFFLOADING 0" >>confdefs.h
7869 if test x"$enable_hsa" = x1 ; then
7871 $as_echo "#define ENABLE_HSA 1" >>confdefs.h
7876 # Check whether --with-multilib-list was given.
7877 if test "${with_multilib_list+set}" = set; then :
7878 withval=$with_multilib_list; :
7879 else
7880 with_multilib_list=default
7884 # -------------------------
7885 # Checks for other programs
7886 # -------------------------
7888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7889 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7890 set x ${MAKE-make}
7891 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7892 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
7893 $as_echo_n "(cached) " >&6
7894 else
7895 cat >conftest.make <<\_ACEOF
7896 SHELL = /bin/sh
7897 all:
7898 @echo '@@@%%%=$(MAKE)=@@@%%%'
7899 _ACEOF
7900 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
7901 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7902 *@@@%%%=?*=@@@%%%*)
7903 eval ac_cv_prog_make_${ac_make}_set=yes;;
7905 eval ac_cv_prog_make_${ac_make}_set=no;;
7906 esac
7907 rm -f conftest.make
7909 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7911 $as_echo "yes" >&6; }
7912 SET_MAKE=
7913 else
7914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7915 $as_echo "no" >&6; }
7916 SET_MAKE="MAKE=${MAKE-make}"
7920 # Find some useful tools
7921 for ac_prog in gawk mawk nawk awk
7923 # Extract the first word of "$ac_prog", so it can be a program name with args.
7924 set dummy $ac_prog; ac_word=$2
7925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7926 $as_echo_n "checking for $ac_word... " >&6; }
7927 if ${ac_cv_prog_AWK+:} false; then :
7928 $as_echo_n "(cached) " >&6
7929 else
7930 if test -n "$AWK"; then
7931 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7932 else
7933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7934 for as_dir in $PATH
7936 IFS=$as_save_IFS
7937 test -z "$as_dir" && as_dir=.
7938 for ac_exec_ext in '' $ac_executable_extensions; do
7939 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7940 ac_cv_prog_AWK="$ac_prog"
7941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7942 break 2
7944 done
7945 done
7946 IFS=$as_save_IFS
7950 AWK=$ac_cv_prog_AWK
7951 if test -n "$AWK"; then
7952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7953 $as_echo "$AWK" >&6; }
7954 else
7955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7956 $as_echo "no" >&6; }
7960 test -n "$AWK" && break
7961 done
7963 # We need awk to create options.c and options.h.
7964 # Bail out if it's missing.
7965 case ${AWK} in
7966 "") as_fn_error $? "can't build without awk, bailing out" "$LINENO" 5 ;;
7967 esac
7969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7970 $as_echo_n "checking whether ln -s works... " >&6; }
7971 if ${gcc_cv_prog_LN_S+:} false; then :
7972 $as_echo_n "(cached) " >&6
7973 else
7974 rm -f conftestdata_t
7975 echo >conftestdata_f
7976 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7977 then
7978 gcc_cv_prog_LN_S="ln -s"
7979 else
7980 if ln conftestdata_f conftestdata_t 2>/dev/null
7981 then
7982 gcc_cv_prog_LN_S=ln
7983 else
7984 if cp -p conftestdata_f conftestdata_t 2>/dev/null
7985 then
7986 gcc_cv_prog_LN_S="cp -p"
7987 else
7988 gcc_cv_prog_LN_S=cp
7992 rm -f conftestdata_f conftestdata_t
7995 LN_S="$gcc_cv_prog_LN_S"
7996 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7998 $as_echo "yes" >&6; }
7999 else
8000 if test "$gcc_cv_prog_LN_S" = "ln"; then
8001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
8002 $as_echo "no, using ln" >&6; }
8003 else
8004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
8005 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
8009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
8010 $as_echo_n "checking whether ln works... " >&6; }
8011 if ${acx_cv_prog_LN+:} false; then :
8012 $as_echo_n "(cached) " >&6
8013 else
8014 rm -f conftestdata_t
8015 echo >conftestdata_f
8016 if ln conftestdata_f conftestdata_t 2>/dev/null
8017 then
8018 acx_cv_prog_LN=ln
8019 else
8020 acx_cv_prog_LN=no
8022 rm -f conftestdata_f conftestdata_t
8025 if test $acx_cv_prog_LN = no; then
8026 LN="$LN_S"
8027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
8028 $as_echo "no, using $LN" >&6; }
8029 else
8030 LN="$acx_cv_prog_LN"
8031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8032 $as_echo "yes" >&6; }
8035 if test -n "$ac_tool_prefix"; then
8036 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8037 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8039 $as_echo_n "checking for $ac_word... " >&6; }
8040 if ${ac_cv_prog_RANLIB+:} false; then :
8041 $as_echo_n "(cached) " >&6
8042 else
8043 if test -n "$RANLIB"; then
8044 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8045 else
8046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8047 for as_dir in $PATH
8049 IFS=$as_save_IFS
8050 test -z "$as_dir" && as_dir=.
8051 for ac_exec_ext in '' $ac_executable_extensions; do
8052 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8053 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8055 break 2
8057 done
8058 done
8059 IFS=$as_save_IFS
8063 RANLIB=$ac_cv_prog_RANLIB
8064 if test -n "$RANLIB"; then
8065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8066 $as_echo "$RANLIB" >&6; }
8067 else
8068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8069 $as_echo "no" >&6; }
8074 if test -z "$ac_cv_prog_RANLIB"; then
8075 ac_ct_RANLIB=$RANLIB
8076 # Extract the first word of "ranlib", so it can be a program name with args.
8077 set dummy ranlib; ac_word=$2
8078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8079 $as_echo_n "checking for $ac_word... " >&6; }
8080 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8081 $as_echo_n "(cached) " >&6
8082 else
8083 if test -n "$ac_ct_RANLIB"; then
8084 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8085 else
8086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8087 for as_dir in $PATH
8089 IFS=$as_save_IFS
8090 test -z "$as_dir" && as_dir=.
8091 for ac_exec_ext in '' $ac_executable_extensions; do
8092 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8093 ac_cv_prog_ac_ct_RANLIB="ranlib"
8094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8095 break 2
8097 done
8098 done
8099 IFS=$as_save_IFS
8103 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8104 if test -n "$ac_ct_RANLIB"; then
8105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8106 $as_echo "$ac_ct_RANLIB" >&6; }
8107 else
8108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8109 $as_echo "no" >&6; }
8112 if test "x$ac_ct_RANLIB" = x; then
8113 RANLIB=":"
8114 else
8115 case $cross_compiling:$ac_tool_warned in
8116 yes:)
8117 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8118 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8119 ac_tool_warned=yes ;;
8120 esac
8121 RANLIB=$ac_ct_RANLIB
8123 else
8124 RANLIB="$ac_cv_prog_RANLIB"
8127 ranlib_flags=""
8130 # Find a good install program. We prefer a C program (faster),
8131 # so one script is as good as another. But avoid the broken or
8132 # incompatible versions:
8133 # SysV /etc/install, /usr/sbin/install
8134 # SunOS /usr/etc/install
8135 # IRIX /sbin/install
8136 # AIX /bin/install
8137 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8138 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8139 # ./install, which can be erroneously created by make from ./install.sh.
8140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
8141 $as_echo_n "checking for a BSD compatible install... " >&6; }
8142 if test -z "$INSTALL"; then
8143 if ${ac_cv_path_install+:} false; then :
8144 $as_echo_n "(cached) " >&6
8145 else
8146 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
8147 for ac_dir in $PATH; do
8148 # Account for people who put trailing slashes in PATH elements.
8149 case "$ac_dir/" in
8150 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
8152 # OSF1 and SCO ODT 3.0 have their own names for install.
8153 for ac_prog in ginstall scoinst install; do
8154 if test -f $ac_dir/$ac_prog; then
8155 if test $ac_prog = install &&
8156 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
8157 # AIX install. It has an incompatible calling convention.
8158 # OSF/1 installbsd also uses dspmsg, but is usable.
8160 else
8161 ac_cv_path_install="$ac_dir/$ac_prog -c"
8162 break 2
8165 done
8167 esac
8168 done
8169 IFS="$ac_save_IFS"
8172 if test "${ac_cv_path_install+set}" = set; then
8173 INSTALL="$ac_cv_path_install"
8174 else
8175 # As a last resort, use the slow shell script. We don't cache a
8176 # path for INSTALL within a source directory, because that will
8177 # break other packages using the cache if that directory is
8178 # removed, or if the path is relative.
8179 INSTALL="$ac_install_sh"
8182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
8183 $as_echo "$INSTALL" >&6; }
8185 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8186 # It thinks the first close brace ends the variable substitution.
8187 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8189 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8192 # See if cmp has --ignore-initial.
8193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
8194 $as_echo_n "checking for cmp's capabilities... " >&6; }
8195 if ${gcc_cv_prog_cmp_skip+:} false; then :
8196 $as_echo_n "(cached) " >&6
8197 else
8198 echo abfoo >t1
8199 echo cdfoo >t2
8200 gcc_cv_prog_cmp_skip=slowcompare
8201 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
8202 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
8204 else
8205 gcc_cv_prog_cmp_skip=gnucompare
8208 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
8209 if cmp t1 t2 2 2 > /dev/null 2>&1; then
8210 if cmp t1 t2 1 1 > /dev/null 2>&1; then
8212 else
8213 gcc_cv_prog_cmp_skip=fastcompare
8217 rm t1 t2
8220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
8221 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
8222 make_compare_target=$gcc_cv_prog_cmp_skip
8226 # See if we have the mktemp command.
8227 # Extract the first word of "mktemp", so it can be a program name with args.
8228 set dummy mktemp; ac_word=$2
8229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8230 $as_echo_n "checking for $ac_word... " >&6; }
8231 if ${ac_cv_prog_have_mktemp_command+:} false; then :
8232 $as_echo_n "(cached) " >&6
8233 else
8234 if test -n "$have_mktemp_command"; then
8235 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
8236 else
8237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8238 for as_dir in $PATH
8240 IFS=$as_save_IFS
8241 test -z "$as_dir" && as_dir=.
8242 for ac_exec_ext in '' $ac_executable_extensions; do
8243 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8244 ac_cv_prog_have_mktemp_command="yes"
8245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8246 break 2
8248 done
8249 done
8250 IFS=$as_save_IFS
8252 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
8255 have_mktemp_command=$ac_cv_prog_have_mktemp_command
8256 if test -n "$have_mktemp_command"; then
8257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
8258 $as_echo "$have_mktemp_command" >&6; }
8259 else
8260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8261 $as_echo "no" >&6; }
8266 # See if makeinfo has been installed and is modern enough
8267 # that we can use it.
8269 # Extract the first word of "makeinfo", so it can be a program name with args.
8270 set dummy makeinfo; ac_word=$2
8271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8272 $as_echo_n "checking for $ac_word... " >&6; }
8273 if ${ac_cv_prog_MAKEINFO+:} false; then :
8274 $as_echo_n "(cached) " >&6
8275 else
8276 if test -n "$MAKEINFO"; then
8277 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
8278 else
8279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8280 for as_dir in $PATH
8282 IFS=$as_save_IFS
8283 test -z "$as_dir" && as_dir=.
8284 for ac_exec_ext in '' $ac_executable_extensions; do
8285 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8286 ac_cv_prog_MAKEINFO="makeinfo"
8287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8288 break 2
8290 done
8291 done
8292 IFS=$as_save_IFS
8296 MAKEINFO=$ac_cv_prog_MAKEINFO
8297 if test -n "$MAKEINFO"; then
8298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8299 $as_echo "$MAKEINFO" >&6; }
8300 else
8301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8302 $as_echo "no" >&6; }
8306 if test -n "$MAKEINFO"; then
8307 # Found it, now check the version.
8308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
8309 $as_echo_n "checking for modern makeinfo... " >&6; }
8310 if ${gcc_cv_prog_makeinfo_modern+:} false; then :
8311 $as_echo_n "(cached) " >&6
8312 else
8313 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
8314 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
8316 case $ac_prog_version in
8317 '') gcc_cv_prog_makeinfo_modern=no;;
8318 4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
8319 *) gcc_cv_prog_makeinfo_modern=no;;
8320 esac
8323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
8324 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
8325 else
8326 gcc_cv_prog_makeinfo_modern=no
8328 if test $gcc_cv_prog_makeinfo_modern = no; then
8329 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
8332 if test $gcc_cv_prog_makeinfo_modern = no; then
8333 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8334 *** Makeinfo is missing or too old.
8335 *** Info documentation will not be built." >&5
8336 $as_echo "$as_me: WARNING:
8337 *** Makeinfo is missing or too old.
8338 *** Info documentation will not be built." >&2;}
8339 BUILD_INFO=
8340 else
8341 BUILD_INFO=info
8345 # Is pod2man recent enough to regenerate manpages?
8346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
8347 $as_echo_n "checking for recent Pod::Man... " >&6; }
8348 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
8349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8350 $as_echo "yes" >&6; }
8351 GENERATED_MANPAGES=generated-manpages
8352 else
8353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8354 $as_echo "no" >&6; }
8355 GENERATED_MANPAGES=
8359 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
8361 # How about lex?
8362 for ac_prog in flex
8364 # Extract the first word of "$ac_prog", so it can be a program name with args.
8365 set dummy $ac_prog; ac_word=$2
8366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8367 $as_echo_n "checking for $ac_word... " >&6; }
8368 if ${ac_cv_prog_FLEX+:} false; then :
8369 $as_echo_n "(cached) " >&6
8370 else
8371 if test -n "$FLEX"; then
8372 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
8373 else
8374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8375 for as_dir in $PATH
8377 IFS=$as_save_IFS
8378 test -z "$as_dir" && as_dir=.
8379 for ac_exec_ext in '' $ac_executable_extensions; do
8380 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8381 ac_cv_prog_FLEX="$ac_prog"
8382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8383 break 2
8385 done
8386 done
8387 IFS=$as_save_IFS
8391 FLEX=$ac_cv_prog_FLEX
8392 if test -n "$FLEX"; then
8393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
8394 $as_echo "$FLEX" >&6; }
8395 else
8396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8397 $as_echo "no" >&6; }
8401 test -n "$FLEX" && break
8402 done
8403 test -n "$FLEX" || FLEX="$MISSING flex"
8406 # Bison?
8407 for ac_prog in bison
8409 # Extract the first word of "$ac_prog", so it can be a program name with args.
8410 set dummy $ac_prog; ac_word=$2
8411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8412 $as_echo_n "checking for $ac_word... " >&6; }
8413 if ${ac_cv_prog_BISON+:} false; then :
8414 $as_echo_n "(cached) " >&6
8415 else
8416 if test -n "$BISON"; then
8417 ac_cv_prog_BISON="$BISON" # Let the user override the test.
8418 else
8419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8420 for as_dir in $PATH
8422 IFS=$as_save_IFS
8423 test -z "$as_dir" && as_dir=.
8424 for ac_exec_ext in '' $ac_executable_extensions; do
8425 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8426 ac_cv_prog_BISON="$ac_prog"
8427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8428 break 2
8430 done
8431 done
8432 IFS=$as_save_IFS
8436 BISON=$ac_cv_prog_BISON
8437 if test -n "$BISON"; then
8438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
8439 $as_echo "$BISON" >&6; }
8440 else
8441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8442 $as_echo "no" >&6; }
8446 test -n "$BISON" && break
8447 done
8448 test -n "$BISON" || BISON="$MISSING bison"
8451 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
8452 # check for build == host before using them.
8454 # NM
8455 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
8456 && test -d ../binutils ; then
8457 NM='${objdir}/../binutils/nm-new'
8458 else
8459 # Extract the first word of "nm", so it can be a program name with args.
8460 set dummy nm; ac_word=$2
8461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8462 $as_echo_n "checking for $ac_word... " >&6; }
8463 if ${ac_cv_prog_NM+:} false; then :
8464 $as_echo_n "(cached) " >&6
8465 else
8466 if test -n "$NM"; then
8467 ac_cv_prog_NM="$NM" # Let the user override the test.
8468 else
8469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8470 for as_dir in $PATH
8472 IFS=$as_save_IFS
8473 test -z "$as_dir" && as_dir=.
8474 for ac_exec_ext in '' $ac_executable_extensions; do
8475 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8476 ac_cv_prog_NM="nm"
8477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8478 break 2
8480 done
8481 done
8482 IFS=$as_save_IFS
8484 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
8487 NM=$ac_cv_prog_NM
8488 if test -n "$NM"; then
8489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8490 $as_echo "$NM" >&6; }
8491 else
8492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8493 $as_echo "no" >&6; }
8499 # AR
8500 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
8501 && test -d ../binutils ; then
8502 AR='${objdir}/../binutils/ar'
8503 else
8504 # Extract the first word of "ar", so it can be a program name with args.
8505 set dummy ar; ac_word=$2
8506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8507 $as_echo_n "checking for $ac_word... " >&6; }
8508 if ${ac_cv_prog_AR+:} false; then :
8509 $as_echo_n "(cached) " >&6
8510 else
8511 if test -n "$AR"; then
8512 ac_cv_prog_AR="$AR" # Let the user override the test.
8513 else
8514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8515 for as_dir in $PATH
8517 IFS=$as_save_IFS
8518 test -z "$as_dir" && as_dir=.
8519 for ac_exec_ext in '' $ac_executable_extensions; do
8520 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8521 ac_cv_prog_AR="ar"
8522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8523 break 2
8525 done
8526 done
8527 IFS=$as_save_IFS
8529 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8532 AR=$ac_cv_prog_AR
8533 if test -n "$AR"; then
8534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8535 $as_echo "$AR" >&6; }
8536 else
8537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8538 $as_echo "no" >&6; }
8544 # The jit documentation looks better if built with sphinx, but can be
8545 # built with texinfo if sphinx is not available.
8546 # Set "doc_build_sys" to "sphinx" or "texinfo" accordingly.
8547 # Extract the first word of "sphinx-build", so it can be a program name with args.
8548 set dummy sphinx-build; ac_word=$2
8549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8550 $as_echo_n "checking for $ac_word... " >&6; }
8551 if ${ac_cv_prog_doc_build_sys+:} false; then :
8552 $as_echo_n "(cached) " >&6
8553 else
8554 if test -n "$doc_build_sys"; then
8555 ac_cv_prog_doc_build_sys="$doc_build_sys" # Let the user override the test.
8556 else
8557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8558 for as_dir in $PATH
8560 IFS=$as_save_IFS
8561 test -z "$as_dir" && as_dir=.
8562 for ac_exec_ext in '' $ac_executable_extensions; do
8563 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8564 ac_cv_prog_doc_build_sys="sphinx"
8565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8566 break 2
8568 done
8569 done
8570 IFS=$as_save_IFS
8572 test -z "$ac_cv_prog_doc_build_sys" && ac_cv_prog_doc_build_sys="texinfo"
8575 doc_build_sys=$ac_cv_prog_doc_build_sys
8576 if test -n "$doc_build_sys"; then
8577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doc_build_sys" >&5
8578 $as_echo "$doc_build_sys" >&6; }
8579 else
8580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8581 $as_echo "no" >&6; }
8586 # --------------------
8587 # Checks for C headers
8588 # --------------------
8590 # Need to reject headers which give warnings, so that the -Werror bootstrap
8591 # works later. *sigh* This needs to come before all header checks.
8593 ac_c_preproc_warn_flag=yes
8595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8596 $as_echo_n "checking for ANSI C header files... " >&6; }
8597 if ${ac_cv_header_stdc+:} false; then :
8598 $as_echo_n "(cached) " >&6
8599 else
8600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8601 /* end confdefs.h. */
8602 #include <stdlib.h>
8603 #include <stdarg.h>
8604 #include <string.h>
8605 #include <float.h>
8608 main ()
8612 return 0;
8614 _ACEOF
8615 if ac_fn_cxx_try_compile "$LINENO"; then :
8616 ac_cv_header_stdc=yes
8617 else
8618 ac_cv_header_stdc=no
8620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8622 if test $ac_cv_header_stdc = yes; then
8623 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8625 /* end confdefs.h. */
8626 #include <string.h>
8628 _ACEOF
8629 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8630 $EGREP "memchr" >/dev/null 2>&1; then :
8632 else
8633 ac_cv_header_stdc=no
8635 rm -f conftest*
8639 if test $ac_cv_header_stdc = yes; then
8640 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8642 /* end confdefs.h. */
8643 #include <stdlib.h>
8645 _ACEOF
8646 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8647 $EGREP "free" >/dev/null 2>&1; then :
8649 else
8650 ac_cv_header_stdc=no
8652 rm -f conftest*
8656 if test $ac_cv_header_stdc = yes; then
8657 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8658 if test "$cross_compiling" = yes; then :
8660 else
8661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8662 /* end confdefs.h. */
8663 #include <ctype.h>
8664 #include <stdlib.h>
8665 #if ((' ' & 0x0FF) == 0x020)
8666 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8667 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8668 #else
8669 # define ISLOWER(c) \
8670 (('a' <= (c) && (c) <= 'i') \
8671 || ('j' <= (c) && (c) <= 'r') \
8672 || ('s' <= (c) && (c) <= 'z'))
8673 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8674 #endif
8676 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8678 main ()
8680 int i;
8681 for (i = 0; i < 256; i++)
8682 if (XOR (islower (i), ISLOWER (i))
8683 || toupper (i) != TOUPPER (i))
8684 return 2;
8685 return 0;
8687 _ACEOF
8688 if ac_fn_cxx_try_run "$LINENO"; then :
8690 else
8691 ac_cv_header_stdc=no
8693 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8694 conftest.$ac_objext conftest.beam conftest.$ac_ext
8699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8700 $as_echo "$ac_cv_header_stdc" >&6; }
8701 if test $ac_cv_header_stdc = yes; then
8703 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8708 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8709 if ${ac_cv_header_time+:} false; then :
8710 $as_echo_n "(cached) " >&6
8711 else
8712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8713 /* end confdefs.h. */
8714 #include <sys/types.h>
8715 #include <sys/time.h>
8716 #include <time.h>
8719 main ()
8721 if ((struct tm *) 0)
8722 return 0;
8724 return 0;
8726 _ACEOF
8727 if ac_fn_cxx_try_compile "$LINENO"; then :
8728 ac_cv_header_time=yes
8729 else
8730 ac_cv_header_time=no
8732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8735 $as_echo "$ac_cv_header_time" >&6; }
8736 if test $ac_cv_header_time = yes; then
8738 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8743 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8744 if ${gcc_cv_header_string+:} false; then :
8745 $as_echo_n "(cached) " >&6
8746 else
8747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8748 /* end confdefs.h. */
8749 #include <string.h>
8750 #include <strings.h>
8752 main ()
8756 return 0;
8758 _ACEOF
8759 if ac_fn_cxx_try_compile "$LINENO"; then :
8760 gcc_cv_header_string=yes
8761 else
8762 gcc_cv_header_string=no
8764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8767 $as_echo "$gcc_cv_header_string" >&6; }
8768 if test $gcc_cv_header_string = yes; then
8770 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8775 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8776 if ${ac_cv_header_sys_wait_h+:} false; then :
8777 $as_echo_n "(cached) " >&6
8778 else
8779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8780 /* end confdefs.h. */
8781 #include <sys/types.h>
8782 #include <sys/wait.h>
8783 #ifndef WEXITSTATUS
8784 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8785 #endif
8786 #ifndef WIFEXITED
8787 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8788 #endif
8791 main ()
8793 int s;
8794 wait (&s);
8795 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8797 return 0;
8799 _ACEOF
8800 if ac_fn_cxx_try_compile "$LINENO"; then :
8801 ac_cv_header_sys_wait_h=yes
8802 else
8803 ac_cv_header_sys_wait_h=no
8805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8808 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8809 if test $ac_cv_header_sys_wait_h = yes; then
8811 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
8816 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
8817 if ${ac_cv_sys_tiocgwinsz_in_termios_h+:} false; then :
8818 $as_echo_n "(cached) " >&6
8819 else
8820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8821 /* end confdefs.h. */
8822 #include <sys/types.h>
8823 #include <termios.h>
8824 #ifdef TIOCGWINSZ
8826 #endif
8828 _ACEOF
8829 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8830 $EGREP "yes" >/dev/null 2>&1; then :
8831 ac_cv_sys_tiocgwinsz_in_termios_h=yes
8832 else
8833 ac_cv_sys_tiocgwinsz_in_termios_h=no
8835 rm -f conftest*
8838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
8839 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
8841 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
8842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
8843 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
8844 if ${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+:} false; then :
8845 $as_echo_n "(cached) " >&6
8846 else
8847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8848 /* end confdefs.h. */
8849 #include <sys/types.h>
8850 #include <sys/ioctl.h>
8851 #ifdef TIOCGWINSZ
8853 #endif
8855 _ACEOF
8856 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8857 $EGREP "yes" >/dev/null 2>&1; then :
8858 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
8859 else
8860 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
8862 rm -f conftest*
8865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
8866 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
8868 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
8870 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
8875 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8876 fcntl.h ftw.h unistd.h sys/file.h sys/time.h sys/mman.h \
8877 sys/resource.h sys/param.h sys/times.h sys/stat.h \
8878 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8879 do :
8880 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8881 ac_fn_cxx_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
8882 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8883 cat >>confdefs.h <<_ACEOF
8884 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8885 _ACEOF
8888 done
8891 # Check for thread headers.
8892 ac_fn_cxx_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
8893 if test "x$ac_cv_header_thread_h" = xyes; then :
8894 have_thread_h=yes
8895 else
8896 have_thread_h=
8899 ac_fn_cxx_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8900 if test "x$ac_cv_header_pthread_h" = xyes; then :
8901 have_pthread_h=yes
8902 else
8903 have_pthread_h=
8907 # These tests can't be done till we know if we have limits.h.
8908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8909 $as_echo_n "checking for CHAR_BIT... " >&6; }
8910 if ${gcc_cv_decl_char_bit+:} false; then :
8911 $as_echo_n "(cached) " >&6
8912 else
8913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8914 /* end confdefs.h. */
8915 #ifdef HAVE_LIMITS_H
8916 #include <limits.h>
8917 #endif
8918 #ifdef CHAR_BIT
8919 found
8920 #endif
8921 _ACEOF
8922 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8923 $EGREP "found" >/dev/null 2>&1; then :
8924 gcc_cv_decl_char_bit=yes
8925 else
8926 gcc_cv_decl_char_bit=no
8928 rm -f conftest*
8932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8933 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8934 if test $gcc_cv_decl_char_bit = no; then
8935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8936 $as_echo_n "checking number of bits in a byte... " >&6; }
8937 if ${gcc_cv_c_nbby+:} false; then :
8938 $as_echo_n "(cached) " >&6
8939 else
8941 gcc_cv_c_nbby=
8942 while test $i -lt 65; do
8943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8944 /* end confdefs.h. */
8947 main ()
8949 switch(0) {
8950 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8951 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8954 return 0;
8956 _ACEOF
8957 if ac_fn_cxx_try_compile "$LINENO"; then :
8958 gcc_cv_c_nbby=$i; break
8960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8961 i=`expr $i + 1`
8962 done
8963 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
8966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8967 $as_echo "$gcc_cv_c_nbby" >&6; }
8968 if test $gcc_cv_c_nbby = failed; then
8969 as_fn_error $? "cannot determine number of bits in a byte" "$LINENO" 5
8970 else
8972 cat >>confdefs.h <<_ACEOF
8973 #define CHAR_BIT $gcc_cv_c_nbby
8974 _ACEOF
8978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8979 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8980 if ${ac_cv_c_bigendian+:} false; then :
8981 $as_echo_n "(cached) " >&6
8982 else
8983 ac_cv_c_bigendian=unknown
8984 # See if we're dealing with a universal compiler.
8985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8986 /* end confdefs.h. */
8987 #ifndef __APPLE_CC__
8988 not a universal capable compiler
8989 #endif
8990 typedef int dummy;
8992 _ACEOF
8993 if ac_fn_cxx_try_compile "$LINENO"; then :
8995 # Check for potential -arch flags. It is not universal unless
8996 # there are at least two -arch flags with different values.
8997 ac_arch=
8998 ac_prev=
8999 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
9000 if test -n "$ac_prev"; then
9001 case $ac_word in
9002 i?86 | x86_64 | ppc | ppc64)
9003 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
9004 ac_arch=$ac_word
9005 else
9006 ac_cv_c_bigendian=universal
9007 break
9010 esac
9011 ac_prev=
9012 elif test "x$ac_word" = "x-arch"; then
9013 ac_prev=arch
9015 done
9017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9018 if test $ac_cv_c_bigendian = unknown; then
9019 # See if sys/param.h defines the BYTE_ORDER macro.
9020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9021 /* end confdefs.h. */
9022 #include <sys/types.h>
9023 #include <sys/param.h>
9026 main ()
9028 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
9029 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
9030 && LITTLE_ENDIAN)
9031 bogus endian macros
9032 #endif
9035 return 0;
9037 _ACEOF
9038 if ac_fn_cxx_try_compile "$LINENO"; then :
9039 # It does; now see whether it defined to BIG_ENDIAN or not.
9040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9041 /* end confdefs.h. */
9042 #include <sys/types.h>
9043 #include <sys/param.h>
9046 main ()
9048 #if BYTE_ORDER != BIG_ENDIAN
9049 not big endian
9050 #endif
9053 return 0;
9055 _ACEOF
9056 if ac_fn_cxx_try_compile "$LINENO"; then :
9057 ac_cv_c_bigendian=yes
9058 else
9059 ac_cv_c_bigendian=no
9061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9065 if test $ac_cv_c_bigendian = unknown; then
9066 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
9067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9068 /* end confdefs.h. */
9069 #include <limits.h>
9072 main ()
9074 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
9075 bogus endian macros
9076 #endif
9079 return 0;
9081 _ACEOF
9082 if ac_fn_cxx_try_compile "$LINENO"; then :
9083 # It does; now see whether it defined to _BIG_ENDIAN or not.
9084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9085 /* end confdefs.h. */
9086 #include <limits.h>
9089 main ()
9091 #ifndef _BIG_ENDIAN
9092 not big endian
9093 #endif
9096 return 0;
9098 _ACEOF
9099 if ac_fn_cxx_try_compile "$LINENO"; then :
9100 ac_cv_c_bigendian=yes
9101 else
9102 ac_cv_c_bigendian=no
9104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9108 if test $ac_cv_c_bigendian = unknown; then
9109 # Compile a test program.
9110 if test "$cross_compiling" = yes; then :
9111 # Try to guess by grepping values from an object file.
9112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9113 /* end confdefs.h. */
9114 short int ascii_mm[] =
9115 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9116 short int ascii_ii[] =
9117 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9118 int use_ascii (int i) {
9119 return ascii_mm[i] + ascii_ii[i];
9121 short int ebcdic_ii[] =
9122 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9123 short int ebcdic_mm[] =
9124 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9125 int use_ebcdic (int i) {
9126 return ebcdic_mm[i] + ebcdic_ii[i];
9128 extern int foo;
9131 main ()
9133 return use_ascii (foo) == use_ebcdic (foo);
9135 return 0;
9137 _ACEOF
9138 if ac_fn_cxx_try_compile "$LINENO"; then :
9139 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
9140 ac_cv_c_bigendian=yes
9142 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
9143 if test "$ac_cv_c_bigendian" = unknown; then
9144 ac_cv_c_bigendian=no
9145 else
9146 # finding both strings is unlikely to happen, but who knows?
9147 ac_cv_c_bigendian=unknown
9151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9152 else
9153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9154 /* end confdefs.h. */
9155 $ac_includes_default
9157 main ()
9160 /* Are we little or big endian? From Harbison&Steele. */
9161 union
9163 long int l;
9164 char c[sizeof (long int)];
9165 } u;
9166 u.l = 1;
9167 return u.c[sizeof (long int) - 1] == 1;
9170 return 0;
9172 _ACEOF
9173 if ac_fn_cxx_try_run "$LINENO"; then :
9174 ac_cv_c_bigendian=no
9175 else
9176 ac_cv_c_bigendian=yes
9178 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9179 conftest.$ac_objext conftest.beam conftest.$ac_ext
9184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9185 $as_echo "$ac_cv_c_bigendian" >&6; }
9186 case $ac_cv_c_bigendian in #(
9187 yes)
9188 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9189 ;; #(
9191 ;; #(
9192 universal)
9194 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9196 ;; #(
9198 as_fn_error $? "unknown endianness
9199 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9200 esac
9203 # ----------------------
9204 # Checks for C++ headers
9205 # ----------------------
9207 ac_ext=cpp
9208 ac_cpp='$CXXCPP $CPPFLAGS'
9209 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9210 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9211 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
9213 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
9214 if test -z "$CXXCPP"; then
9215 if ${ac_cv_prog_CXXCPP+:} false; then :
9216 $as_echo_n "(cached) " >&6
9217 else
9218 # Double quotes because CXXCPP needs to be expanded
9219 for CXXCPP in "$CXX -E" "/lib/cpp"
9221 ac_preproc_ok=false
9222 for ac_cxx_preproc_warn_flag in '' yes
9224 # Use a header file that comes with gcc, so configuring glibc
9225 # with a fresh cross-compiler works.
9226 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9227 # <limits.h> exists even on freestanding compilers.
9228 # On the NeXT, cc -E runs the code through the compiler's parser,
9229 # not just through cpp. "Syntax error" is here to catch this case.
9230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9231 /* end confdefs.h. */
9232 #ifdef __STDC__
9233 # include <limits.h>
9234 #else
9235 # include <assert.h>
9236 #endif
9237 Syntax error
9238 _ACEOF
9239 if ac_fn_cxx_try_cpp "$LINENO"; then :
9241 else
9242 # Broken: fails on valid input.
9243 continue
9245 rm -f conftest.err conftest.i conftest.$ac_ext
9247 # OK, works on sane cases. Now check whether nonexistent headers
9248 # can be detected and how.
9249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9250 /* end confdefs.h. */
9251 #include <ac_nonexistent.h>
9252 _ACEOF
9253 if ac_fn_cxx_try_cpp "$LINENO"; then :
9254 # Broken: success on invalid input.
9255 continue
9256 else
9257 # Passes both tests.
9258 ac_preproc_ok=:
9259 break
9261 rm -f conftest.err conftest.i conftest.$ac_ext
9263 done
9264 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9265 rm -f conftest.i conftest.err conftest.$ac_ext
9266 if $ac_preproc_ok; then :
9267 break
9270 done
9271 ac_cv_prog_CXXCPP=$CXXCPP
9274 CXXCPP=$ac_cv_prog_CXXCPP
9275 else
9276 ac_cv_prog_CXXCPP=$CXXCPP
9278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
9279 $as_echo "$CXXCPP" >&6; }
9280 ac_preproc_ok=false
9281 for ac_cxx_preproc_warn_flag in '' yes
9283 # Use a header file that comes with gcc, so configuring glibc
9284 # with a fresh cross-compiler works.
9285 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9286 # <limits.h> exists even on freestanding compilers.
9287 # On the NeXT, cc -E runs the code through the compiler's parser,
9288 # not just through cpp. "Syntax error" is here to catch this case.
9289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9290 /* end confdefs.h. */
9291 #ifdef __STDC__
9292 # include <limits.h>
9293 #else
9294 # include <assert.h>
9295 #endif
9296 Syntax error
9297 _ACEOF
9298 if ac_fn_cxx_try_cpp "$LINENO"; then :
9300 else
9301 # Broken: fails on valid input.
9302 continue
9304 rm -f conftest.err conftest.i conftest.$ac_ext
9306 # OK, works on sane cases. Now check whether nonexistent headers
9307 # can be detected and how.
9308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9309 /* end confdefs.h. */
9310 #include <ac_nonexistent.h>
9311 _ACEOF
9312 if ac_fn_cxx_try_cpp "$LINENO"; then :
9313 # Broken: success on invalid input.
9314 continue
9315 else
9316 # Passes both tests.
9317 ac_preproc_ok=:
9318 break
9320 rm -f conftest.err conftest.i conftest.$ac_ext
9322 done
9323 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9324 rm -f conftest.i conftest.err conftest.$ac_ext
9325 if $ac_preproc_ok; then :
9327 else
9328 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9329 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9330 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9331 See \`config.log' for more details" >&5
9332 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9333 See \`config.log' for more details" >&2;}; }
9336 ac_ext=cpp
9337 ac_cpp='$CXXCPP $CPPFLAGS'
9338 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9339 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9340 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9343 for ac_header in unordered_map
9344 do :
9345 ac_fn_cxx_check_header_preproc "$LINENO" "unordered_map" "ac_cv_header_unordered_map"
9346 if test "x$ac_cv_header_unordered_map" = xyes; then :
9347 cat >>confdefs.h <<_ACEOF
9348 #define HAVE_UNORDERED_MAP 1
9349 _ACEOF
9352 done
9354 for ac_header in tr1/unordered_map
9355 do :
9356 ac_fn_cxx_check_header_preproc "$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
9357 if test "x$ac_cv_header_tr1_unordered_map" = xyes; then :
9358 cat >>confdefs.h <<_ACEOF
9359 #define HAVE_TR1_UNORDERED_MAP 1
9360 _ACEOF
9363 done
9365 for ac_header in ext/hash_map
9366 do :
9367 ac_fn_cxx_check_header_preproc "$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
9368 if test "x$ac_cv_header_ext_hash_map" = xyes; then :
9369 cat >>confdefs.h <<_ACEOF
9370 #define HAVE_EXT_HASH_MAP 1
9371 _ACEOF
9374 done
9377 # --------
9378 # Dependency checking.
9379 # --------
9381 rm -rf .tst 2>/dev/null
9382 mkdir .tst 2>/dev/null
9383 if test -d .tst; then
9384 am__leading_dot=.
9385 else
9386 am__leading_dot=_
9388 rmdir .tst 2>/dev/null
9390 DEPDIR="${am__leading_dot}deps"
9392 ac_config_commands="$ac_config_commands depdir"
9395 ac_config_commands="$ac_config_commands gccdepdir"
9398 depcc="$CXX" am_compiler_list=
9400 am_depcomp=$ac_aux_dir/depcomp
9401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
9402 $as_echo_n "checking dependency style of $depcc... " >&6; }
9403 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
9404 $as_echo_n "(cached) " >&6
9405 else
9406 if test -f "$am_depcomp"; then
9407 # We make a subdir and do the tests there. Otherwise we can end up
9408 # making bogus files that we don't know about and never remove. For
9409 # instance it was reported that on HP-UX the gcc test will end up
9410 # making a dummy file named `D' -- because `-MD' means `put the output
9411 # in D'.
9412 mkdir conftest.dir
9413 # Copy depcomp to subdir because otherwise we won't find it if we're
9414 # using a relative directory.
9415 cp "$am_depcomp" conftest.dir
9416 cd conftest.dir
9417 # We will build objects and dependencies in a subdirectory because
9418 # it helps to detect inapplicable dependency modes. For instance
9419 # both Tru64's cc and ICC support -MD to output dependencies as a
9420 # side effect of compilation, but ICC will put the dependencies in
9421 # the current directory while Tru64 will put them in the object
9422 # directory.
9423 mkdir sub
9425 am_cv_CXX_dependencies_compiler_type=none
9426 if test "$am_compiler_list" = ""; then
9427 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
9429 for depmode in $am_compiler_list; do
9430 if test $depmode = none; then break; fi
9432 $as_echo "$as_me:$LINENO: trying $depmode" >&5
9433 # Setup a source with many dependencies, because some compilers
9434 # like to wrap large dependency lists on column 80 (with \), and
9435 # we should not choose a depcomp mode which is confused by this.
9437 # We need to recreate these files for each test, as the compiler may
9438 # overwrite some of them when testing with obscure command lines.
9439 # This happens at least with the AIX C compiler.
9440 : > sub/conftest.c
9441 for i in 1 2 3 4 5 6; do
9442 echo '#include "conftst'$i'.h"' >> sub/conftest.c
9443 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
9444 # Solaris 8's {/usr,}/bin/sh.
9445 touch sub/conftst$i.h
9446 done
9447 echo "include sub/conftest.Po" > confmf
9449 # We check with `-c' and `-o' for the sake of the "dashmstdout"
9450 # mode. It turns out that the SunPro C++ compiler does not properly
9451 # handle `-M -o', and we need to detect this.
9452 depcmd="depmode=$depmode \
9453 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
9454 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
9455 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
9456 echo "| $depcmd" | sed -e 's/ */ /g' >&5
9457 if env $depcmd > conftest.err 2>&1 &&
9458 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
9459 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
9460 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
9461 # icc doesn't choke on unknown options, it will just issue warnings
9462 # or remarks (even with -Werror). So we grep stderr for any message
9463 # that says an option was ignored or not supported.
9464 # When given -MP, icc 7.0 and 7.1 complain thusly:
9465 # icc: Command line warning: ignoring option '-M'; no argument required
9466 # The diagnosis changed in icc 8.0:
9467 # icc: Command line remark: option '-MP' not supported
9468 if (grep 'ignoring option' conftest.err ||
9469 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
9470 am_cv_CXX_dependencies_compiler_type=$depmode
9471 $as_echo "$as_me:$LINENO: success" >&5
9472 break
9475 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
9476 sed -e 's/^/| /' < conftest.err >&5
9477 done
9479 cd ..
9480 rm -rf conftest.dir
9481 else
9482 am_cv_CXX_dependencies_compiler_type=none
9486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
9487 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
9488 if test x${am_cv_CXX_dependencies_compiler_type-none} = xnone
9489 then as_fn_error $? "no usable dependency style found" "$LINENO" 5
9490 else CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
9495 # --------
9496 # UNSORTED
9497 # --------
9500 # These libraries may be used by collect2.
9501 # We may need a special search path to get them linked.
9502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
9503 $as_echo_n "checking for collect2 libraries... " >&6; }
9504 if ${gcc_cv_collect2_libs+:} false; then :
9505 $as_echo_n "(cached) " >&6
9506 else
9507 save_LIBS="$LIBS"
9508 for libs in '' -lld -lmld \
9509 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
9510 '-L/usr/lib/cmplrs/cc3.11 -lmld'
9512 LIBS="$libs"
9513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9514 /* end confdefs.h. */
9516 /* Override any GCC internal prototype to avoid an error.
9517 Use char because int might match the return type of a GCC
9518 builtin and then its argument prototype would still apply. */
9519 #ifdef __cplusplus
9520 extern "C"
9521 #endif
9522 char ldopen ();
9524 main ()
9526 return ldopen ();
9528 return 0;
9530 _ACEOF
9531 if ac_fn_cxx_try_link "$LINENO"; then :
9532 gcc_cv_collect2_libs="$libs"; break
9534 rm -f core conftest.err conftest.$ac_objext \
9535 conftest$ac_exeext conftest.$ac_ext
9536 done
9537 LIBS="$save_LIBS"
9538 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
9540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
9541 $as_echo "$gcc_cv_collect2_libs" >&6; }
9542 case $gcc_cv_collect2_libs in
9543 "none required") ;;
9544 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
9545 esac
9548 # When building Ada code on Alpha, we need exc_resume which is usually in
9549 # -lexc. So test for it.
9550 save_LIBS="$LIBS"
9551 LIBS=
9552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
9553 $as_echo_n "checking for library containing exc_resume... " >&6; }
9554 if ${ac_cv_search_exc_resume+:} false; then :
9555 $as_echo_n "(cached) " >&6
9556 else
9557 ac_func_search_save_LIBS=$LIBS
9558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9559 /* end confdefs.h. */
9561 /* Override any GCC internal prototype to avoid an error.
9562 Use char because int might match the return type of a GCC
9563 builtin and then its argument prototype would still apply. */
9564 #ifdef __cplusplus
9565 extern "C"
9566 #endif
9567 char exc_resume ();
9569 main ()
9571 return exc_resume ();
9573 return 0;
9575 _ACEOF
9576 for ac_lib in '' exc; do
9577 if test -z "$ac_lib"; then
9578 ac_res="none required"
9579 else
9580 ac_res=-l$ac_lib
9581 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9583 if ac_fn_cxx_try_link "$LINENO"; then :
9584 ac_cv_search_exc_resume=$ac_res
9586 rm -f core conftest.err conftest.$ac_objext \
9587 conftest$ac_exeext
9588 if ${ac_cv_search_exc_resume+:} false; then :
9589 break
9591 done
9592 if ${ac_cv_search_exc_resume+:} false; then :
9594 else
9595 ac_cv_search_exc_resume=no
9597 rm conftest.$ac_ext
9598 LIBS=$ac_func_search_save_LIBS
9600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
9601 $as_echo "$ac_cv_search_exc_resume" >&6; }
9602 ac_res=$ac_cv_search_exc_resume
9603 if test "$ac_res" != no; then :
9604 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9608 GNAT_LIBEXC="$LIBS"
9609 LIBS="$save_LIBS"
9612 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
9613 save_LIBS="$LIBS"
9614 LIBS=
9615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
9616 $as_echo_n "checking for library containing kstat_open... " >&6; }
9617 if ${ac_cv_search_kstat_open+:} false; then :
9618 $as_echo_n "(cached) " >&6
9619 else
9620 ac_func_search_save_LIBS=$LIBS
9621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9622 /* end confdefs.h. */
9624 /* Override any GCC internal prototype to avoid an error.
9625 Use char because int might match the return type of a GCC
9626 builtin and then its argument prototype would still apply. */
9627 #ifdef __cplusplus
9628 extern "C"
9629 #endif
9630 char kstat_open ();
9632 main ()
9634 return kstat_open ();
9636 return 0;
9638 _ACEOF
9639 for ac_lib in '' kstat; do
9640 if test -z "$ac_lib"; then
9641 ac_res="none required"
9642 else
9643 ac_res=-l$ac_lib
9644 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9646 if ac_fn_cxx_try_link "$LINENO"; then :
9647 ac_cv_search_kstat_open=$ac_res
9649 rm -f core conftest.err conftest.$ac_objext \
9650 conftest$ac_exeext
9651 if ${ac_cv_search_kstat_open+:} false; then :
9652 break
9654 done
9655 if ${ac_cv_search_kstat_open+:} false; then :
9657 else
9658 ac_cv_search_kstat_open=no
9660 rm conftest.$ac_ext
9661 LIBS=$ac_func_search_save_LIBS
9663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
9664 $as_echo "$ac_cv_search_kstat_open" >&6; }
9665 ac_res=$ac_cv_search_kstat_open
9666 if test "$ac_res" != no; then :
9667 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9671 EXTRA_GCC_LIBS="$LIBS"
9672 LIBS="$save_LIBS"
9675 # Some systems put ldexp and frexp in libm instead of libc; assume
9676 # they're both in the same place. jcf-dump needs them.
9677 save_LIBS="$LIBS"
9678 LIBS=
9679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
9680 $as_echo_n "checking for library containing ldexp... " >&6; }
9681 if ${ac_cv_search_ldexp+:} false; then :
9682 $as_echo_n "(cached) " >&6
9683 else
9684 ac_func_search_save_LIBS=$LIBS
9685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9686 /* end confdefs.h. */
9688 /* Override any GCC internal prototype to avoid an error.
9689 Use char because int might match the return type of a GCC
9690 builtin and then its argument prototype would still apply. */
9691 #ifdef __cplusplus
9692 extern "C"
9693 #endif
9694 char ldexp ();
9696 main ()
9698 return ldexp ();
9700 return 0;
9702 _ACEOF
9703 for ac_lib in '' m; do
9704 if test -z "$ac_lib"; then
9705 ac_res="none required"
9706 else
9707 ac_res=-l$ac_lib
9708 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9710 if ac_fn_cxx_try_link "$LINENO"; then :
9711 ac_cv_search_ldexp=$ac_res
9713 rm -f core conftest.err conftest.$ac_objext \
9714 conftest$ac_exeext
9715 if ${ac_cv_search_ldexp+:} false; then :
9716 break
9718 done
9719 if ${ac_cv_search_ldexp+:} false; then :
9721 else
9722 ac_cv_search_ldexp=no
9724 rm conftest.$ac_ext
9725 LIBS=$ac_func_search_save_LIBS
9727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
9728 $as_echo "$ac_cv_search_ldexp" >&6; }
9729 ac_res=$ac_cv_search_ldexp
9730 if test "$ac_res" != no; then :
9731 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9735 LDEXP_LIB="$LIBS"
9736 LIBS="$save_LIBS"
9739 # Some systems need dlopen
9740 save_LIBS="$LIBS"
9741 LIBS=
9742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
9743 $as_echo_n "checking for library containing dlopen... " >&6; }
9744 if ${ac_cv_search_dlopen+:} false; then :
9745 $as_echo_n "(cached) " >&6
9746 else
9747 ac_func_search_save_LIBS=$LIBS
9748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9749 /* end confdefs.h. */
9751 /* Override any GCC internal prototype to avoid an error.
9752 Use char because int might match the return type of a GCC
9753 builtin and then its argument prototype would still apply. */
9754 #ifdef __cplusplus
9755 extern "C"
9756 #endif
9757 char dlopen ();
9759 main ()
9761 return dlopen ();
9763 return 0;
9765 _ACEOF
9766 for ac_lib in '' dl; do
9767 if test -z "$ac_lib"; then
9768 ac_res="none required"
9769 else
9770 ac_res=-l$ac_lib
9771 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9773 if ac_fn_cxx_try_link "$LINENO"; then :
9774 ac_cv_search_dlopen=$ac_res
9776 rm -f core conftest.err conftest.$ac_objext \
9777 conftest$ac_exeext
9778 if ${ac_cv_search_dlopen+:} false; then :
9779 break
9781 done
9782 if ${ac_cv_search_dlopen+:} false; then :
9784 else
9785 ac_cv_search_dlopen=no
9787 rm conftest.$ac_ext
9788 LIBS=$ac_func_search_save_LIBS
9790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
9791 $as_echo "$ac_cv_search_dlopen" >&6; }
9792 ac_res=$ac_cv_search_dlopen
9793 if test "$ac_res" != no; then :
9794 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9798 DL_LIB="$LIBS"
9799 LIBS="$save_LIBS"
9802 # Use <inttypes.h> only if it exists,
9803 # doesn't clash with <sys/types.h>, declares intmax_t and defines
9804 # PRId64
9805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
9806 $as_echo_n "checking for inttypes.h... " >&6; }
9807 if ${gcc_cv_header_inttypes_h+:} false; then :
9808 $as_echo_n "(cached) " >&6
9809 else
9810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9811 /* end confdefs.h. */
9812 #define __STDC_FORMAT_MACROS
9813 #include <sys/types.h>
9814 #include <inttypes.h>
9816 main ()
9818 intmax_t i = -1;
9819 #ifndef PRId64
9820 choke me
9821 #endif
9823 return 0;
9825 _ACEOF
9826 if ac_fn_cxx_try_compile "$LINENO"; then :
9827 gcc_cv_header_inttypes_h=yes
9828 else
9829 gcc_cv_header_inttypes_h=no
9831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
9835 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
9836 if test $gcc_cv_header_inttypes_h = yes; then
9838 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
9844 for ac_func in times clock kill getrlimit setrlimit atoq \
9845 popen sysconf strsignal getrusage nl_langinfo \
9846 gettimeofday mbstowcs wcswidth mmap setlocale \
9847 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
9848 do :
9849 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9850 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
9851 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9852 cat >>confdefs.h <<_ACEOF
9853 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9854 _ACEOF
9857 done
9860 if test x$ac_cv_func_mbstowcs = xyes; then
9861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
9862 $as_echo_n "checking whether mbstowcs works... " >&6; }
9863 if ${gcc_cv_func_mbstowcs_works+:} false; then :
9864 $as_echo_n "(cached) " >&6
9865 else
9866 if test "$cross_compiling" = yes; then :
9867 gcc_cv_func_mbstowcs_works=yes
9868 else
9869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9870 /* end confdefs.h. */
9871 #include <stdlib.h>
9872 int main()
9874 mbstowcs(0, "", 0);
9875 return 0;
9877 _ACEOF
9878 if ac_fn_cxx_try_run "$LINENO"; then :
9879 gcc_cv_func_mbstowcs_works=yes
9880 else
9881 gcc_cv_func_mbstowcs_works=no
9883 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9884 conftest.$ac_objext conftest.beam conftest.$ac_ext
9888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
9889 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
9890 if test x$gcc_cv_func_mbstowcs_works = xyes; then
9892 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
9897 ac_fn_cxx_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
9898 if test "x$ac_cv_type_ssize_t" = xyes; then :
9900 else
9902 cat >>confdefs.h <<_ACEOF
9903 #define ssize_t int
9904 _ACEOF
9908 ac_fn_cxx_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
9909 if test "x$ac_cv_type_caddr_t" = xyes; then :
9911 else
9913 cat >>confdefs.h <<_ACEOF
9914 #define caddr_t char *
9915 _ACEOF
9921 ac_fn_cxx_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
9922 if test "x$ac_cv_header_sys_mman_h" = xyes; then :
9923 gcc_header_sys_mman_h=yes
9924 else
9925 gcc_header_sys_mman_h=no
9928 ac_fn_cxx_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
9929 if test "x$ac_cv_func_mmap" = xyes; then :
9930 gcc_func_mmap=yes
9931 else
9932 gcc_func_mmap=no
9935 if test "$gcc_header_sys_mman_h" != yes \
9936 || test "$gcc_func_mmap" != yes; then
9937 gcc_cv_func_mmap_file=no
9938 gcc_cv_func_mmap_dev_zero=no
9939 gcc_cv_func_mmap_anon=no
9940 else
9941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
9942 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
9943 if ${gcc_cv_func_mmap_file+:} false; then :
9944 $as_echo_n "(cached) " >&6
9945 else
9946 # Add a system to this blacklist if
9947 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9948 # memory area containing the same data that you'd get if you applied
9949 # read() to the same fd. The only system known to have a problem here
9950 # is VMS, where text files have record structure.
9951 case "$host_os" in
9952 *vms* | ultrix*)
9953 gcc_cv_func_mmap_file=no ;;
9955 gcc_cv_func_mmap_file=yes;;
9956 esac
9958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
9959 $as_echo "$gcc_cv_func_mmap_file" >&6; }
9960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
9961 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
9962 if ${gcc_cv_func_mmap_dev_zero+:} false; then :
9963 $as_echo_n "(cached) " >&6
9964 else
9965 # Add a system to this blacklist if it has mmap() but /dev/zero
9966 # does not exist, or if mmapping /dev/zero does not give anonymous
9967 # zeroed pages with both the following properties:
9968 # 1. If you map N consecutive pages in with one call, and then
9969 # unmap any subset of those pages, the pages that were not
9970 # explicitly unmapped remain accessible.
9971 # 2. If you map two adjacent blocks of memory and then unmap them
9972 # both at once, they must both go away.
9973 # Systems known to be in this category are Windows (all variants),
9974 # VMS, and Darwin.
9975 case "$host_os" in
9976 *vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
9977 gcc_cv_func_mmap_dev_zero=no ;;
9979 gcc_cv_func_mmap_dev_zero=yes;;
9980 esac
9982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
9983 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
9985 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
9987 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
9988 if ${gcc_cv_decl_map_anon+:} false; then :
9989 $as_echo_n "(cached) " >&6
9990 else
9991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9992 /* end confdefs.h. */
9993 #include <sys/types.h>
9994 #include <sys/mman.h>
9995 #include <unistd.h>
9997 #ifndef MAP_ANONYMOUS
9998 #define MAP_ANONYMOUS MAP_ANON
9999 #endif
10002 main ()
10004 int n = MAP_ANONYMOUS;
10006 return 0;
10008 _ACEOF
10009 if ac_fn_cxx_try_compile "$LINENO"; then :
10010 gcc_cv_decl_map_anon=yes
10011 else
10012 gcc_cv_decl_map_anon=no
10014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
10017 $as_echo "$gcc_cv_decl_map_anon" >&6; }
10019 if test $gcc_cv_decl_map_anon = no; then
10020 gcc_cv_func_mmap_anon=no
10021 else
10022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
10023 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
10024 if ${gcc_cv_func_mmap_anon+:} false; then :
10025 $as_echo_n "(cached) " >&6
10026 else
10027 # Add a system to this blacklist if it has mmap() and MAP_ANON or
10028 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
10029 # doesn't give anonymous zeroed pages with the same properties listed
10030 # above for use of /dev/zero.
10031 # Systems known to be in this category are Windows, VMS, and SCO Unix.
10032 case "$host_os" in
10033 *vms* | cygwin* | pe | mingw* | sco* | udk* )
10034 gcc_cv_func_mmap_anon=no ;;
10036 gcc_cv_func_mmap_anon=yes;;
10037 esac
10039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
10040 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
10044 if test $gcc_cv_func_mmap_file = yes; then
10046 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
10049 if test $gcc_cv_func_mmap_dev_zero = yes; then
10051 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
10054 if test $gcc_cv_func_mmap_anon = yes; then
10056 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
10061 case "${host}" in
10062 *-*-*vms*)
10063 # Under VMS, vfork works very differently than on Unix. The standard test
10064 # won't work, and it isn't easily adaptable. It makes more sense to
10065 # just force it.
10066 ac_cv_func_vfork_works=yes
10068 esac
10069 ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
10070 if test "x$ac_cv_type_pid_t" = xyes; then :
10072 else
10074 cat >>confdefs.h <<_ACEOF
10075 #define pid_t int
10076 _ACEOF
10080 for ac_header in vfork.h
10081 do :
10082 ac_fn_cxx_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
10083 if test "x$ac_cv_header_vfork_h" = xyes; then :
10084 cat >>confdefs.h <<_ACEOF
10085 #define HAVE_VFORK_H 1
10086 _ACEOF
10089 done
10091 for ac_func in fork vfork
10092 do :
10093 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10094 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
10095 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10096 cat >>confdefs.h <<_ACEOF
10097 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10098 _ACEOF
10101 done
10103 if test "x$ac_cv_func_fork" = xyes; then
10104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
10105 $as_echo_n "checking for working fork... " >&6; }
10106 if ${ac_cv_func_fork_works+:} false; then :
10107 $as_echo_n "(cached) " >&6
10108 else
10109 if test "$cross_compiling" = yes; then :
10110 ac_cv_func_fork_works=cross
10111 else
10112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10113 /* end confdefs.h. */
10114 $ac_includes_default
10116 main ()
10119 /* By Ruediger Kuhlmann. */
10120 return fork () < 0;
10123 return 0;
10125 _ACEOF
10126 if ac_fn_cxx_try_run "$LINENO"; then :
10127 ac_cv_func_fork_works=yes
10128 else
10129 ac_cv_func_fork_works=no
10131 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10132 conftest.$ac_objext conftest.beam conftest.$ac_ext
10136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
10137 $as_echo "$ac_cv_func_fork_works" >&6; }
10139 else
10140 ac_cv_func_fork_works=$ac_cv_func_fork
10142 if test "x$ac_cv_func_fork_works" = xcross; then
10143 case $host in
10144 *-*-amigaos* | *-*-msdosdjgpp*)
10145 # Override, as these systems have only a dummy fork() stub
10146 ac_cv_func_fork_works=no
10149 ac_cv_func_fork_works=yes
10151 esac
10152 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
10153 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
10155 ac_cv_func_vfork_works=$ac_cv_func_vfork
10156 if test "x$ac_cv_func_vfork" = xyes; then
10157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
10158 $as_echo_n "checking for working vfork... " >&6; }
10159 if ${ac_cv_func_vfork_works+:} false; then :
10160 $as_echo_n "(cached) " >&6
10161 else
10162 if test "$cross_compiling" = yes; then :
10163 ac_cv_func_vfork_works=cross
10164 else
10165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10166 /* end confdefs.h. */
10167 /* Thanks to Paul Eggert for this test. */
10168 $ac_includes_default
10169 #include <sys/wait.h>
10170 #ifdef HAVE_VFORK_H
10171 # include <vfork.h>
10172 #endif
10173 /* On some sparc systems, changes by the child to local and incoming
10174 argument registers are propagated back to the parent. The compiler
10175 is told about this with #include <vfork.h>, but some compilers
10176 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
10177 static variable whose address is put into a register that is
10178 clobbered by the vfork. */
10179 static void
10180 #ifdef __cplusplus
10181 sparc_address_test (int arg)
10182 # else
10183 sparc_address_test (arg) int arg;
10184 #endif
10186 static pid_t child;
10187 if (!child) {
10188 child = vfork ();
10189 if (child < 0) {
10190 perror ("vfork");
10191 _exit(2);
10193 if (!child) {
10194 arg = getpid();
10195 write(-1, "", 0);
10196 _exit (arg);
10202 main ()
10204 pid_t parent = getpid ();
10205 pid_t child;
10207 sparc_address_test (0);
10209 child = vfork ();
10211 if (child == 0) {
10212 /* Here is another test for sparc vfork register problems. This
10213 test uses lots of local variables, at least as many local
10214 variables as main has allocated so far including compiler
10215 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
10216 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
10217 reuse the register of parent for one of the local variables,
10218 since it will think that parent can't possibly be used any more
10219 in this routine. Assigning to the local variable will thus
10220 munge parent in the parent process. */
10221 pid_t
10222 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10223 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10224 /* Convince the compiler that p..p7 are live; otherwise, it might
10225 use the same hardware register for all 8 local variables. */
10226 if (p != p1 || p != p2 || p != p3 || p != p4
10227 || p != p5 || p != p6 || p != p7)
10228 _exit(1);
10230 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10231 from child file descriptors. If the child closes a descriptor
10232 before it execs or exits, this munges the parent's descriptor
10233 as well. Test for this by closing stdout in the child. */
10234 _exit(close(fileno(stdout)) != 0);
10235 } else {
10236 int status;
10237 struct stat st;
10239 while (wait(&status) != child)
10241 return (
10242 /* Was there some problem with vforking? */
10243 child < 0
10245 /* Did the child fail? (This shouldn't happen.) */
10246 || status
10248 /* Did the vfork/compiler bug occur? */
10249 || parent != getpid()
10251 /* Did the file descriptor bug occur? */
10252 || fstat(fileno(stdout), &st) != 0
10256 _ACEOF
10257 if ac_fn_cxx_try_run "$LINENO"; then :
10258 ac_cv_func_vfork_works=yes
10259 else
10260 ac_cv_func_vfork_works=no
10262 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10263 conftest.$ac_objext conftest.beam conftest.$ac_ext
10267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
10268 $as_echo "$ac_cv_func_vfork_works" >&6; }
10271 if test "x$ac_cv_func_fork_works" = xcross; then
10272 ac_cv_func_vfork_works=$ac_cv_func_vfork
10273 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10274 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10277 if test "x$ac_cv_func_vfork_works" = xyes; then
10279 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
10281 else
10283 $as_echo "#define vfork fork" >>confdefs.h
10286 if test "x$ac_cv_func_fork_works" = xyes; then
10288 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
10294 if test "X$prefix" = "XNONE"; then
10295 acl_final_prefix="$ac_default_prefix"
10296 else
10297 acl_final_prefix="$prefix"
10299 if test "X$exec_prefix" = "XNONE"; then
10300 acl_final_exec_prefix='${prefix}'
10301 else
10302 acl_final_exec_prefix="$exec_prefix"
10304 acl_save_prefix="$prefix"
10305 prefix="$acl_final_prefix"
10306 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10307 prefix="$acl_save_prefix"
10310 # Check whether --with-gnu-ld was given.
10311 if test "${with_gnu_ld+set}" = set; then :
10312 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10313 else
10314 with_gnu_ld=no
10317 # Prepare PATH_SEPARATOR.
10318 # The user is always right.
10319 if test "${PATH_SEPARATOR+set}" != set; then
10320 echo "#! /bin/sh" >conf$$.sh
10321 echo "exit 0" >>conf$$.sh
10322 chmod +x conf$$.sh
10323 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10324 PATH_SEPARATOR=';'
10325 else
10326 PATH_SEPARATOR=:
10328 rm -f conf$$.sh
10330 ac_prog=ld
10331 if test "$GCC" = yes; then
10332 # Check if gcc -print-prog-name=ld gives a path.
10333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
10334 $as_echo_n "checking for ld used by GCC... " >&6; }
10335 case $host in
10336 *-*-mingw*)
10337 # gcc leaves a trailing carriage return which upsets mingw
10338 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10340 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10341 esac
10342 case $ac_prog in
10343 # Accept absolute paths.
10344 [\\/]* | [A-Za-z]:[\\/]*)
10345 re_direlt='/[^/][^/]*/\.\./'
10346 # Canonicalize the path of ld
10347 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10348 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10349 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10350 done
10351 test -z "$LD" && LD="$ac_prog"
10354 # If it fails, then pretend we aren't using GCC.
10355 ac_prog=ld
10358 # If it is relative, then search for the first ld in PATH.
10359 with_gnu_ld=unknown
10361 esac
10362 elif test "$with_gnu_ld" = yes; then
10363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
10364 $as_echo_n "checking for GNU ld... " >&6; }
10365 else
10366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
10367 $as_echo_n "checking for non-GNU ld... " >&6; }
10369 if ${acl_cv_path_LD+:} false; then :
10370 $as_echo_n "(cached) " >&6
10371 else
10372 if test -z "$LD"; then
10373 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10374 for ac_dir in $PATH; do
10375 test -z "$ac_dir" && ac_dir=.
10376 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10377 acl_cv_path_LD="$ac_dir/$ac_prog"
10378 # Check to see if the program is GNU ld. I'd rather use --version,
10379 # but apparently some GNU ld's only accept -v.
10380 # Break only if it was the GNU/non-GNU ld that we prefer.
10381 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
10382 test "$with_gnu_ld" != no && break
10383 else
10384 test "$with_gnu_ld" != yes && break
10387 done
10388 IFS="$ac_save_ifs"
10389 else
10390 acl_cv_path_LD="$LD" # Let the user override the test with a path.
10394 LD="$acl_cv_path_LD"
10395 if test -n "$LD"; then
10396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10397 $as_echo "$LD" >&6; }
10398 else
10399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10400 $as_echo "no" >&6; }
10402 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
10403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
10404 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
10405 if ${acl_cv_prog_gnu_ld+:} false; then :
10406 $as_echo_n "(cached) " >&6
10407 else
10408 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10409 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
10410 acl_cv_prog_gnu_ld=yes
10411 else
10412 acl_cv_prog_gnu_ld=no
10415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
10416 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
10417 with_gnu_ld=$acl_cv_prog_gnu_ld
10421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
10422 $as_echo_n "checking for shared library run path origin... " >&6; }
10423 if ${acl_cv_rpath+:} false; then :
10424 $as_echo_n "(cached) " >&6
10425 else
10427 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10428 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10429 . ./conftest.sh
10430 rm -f ./conftest.sh
10431 acl_cv_rpath=done
10434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
10435 $as_echo "$acl_cv_rpath" >&6; }
10436 wl="$acl_cv_wl"
10437 libext="$acl_cv_libext"
10438 shlibext="$acl_cv_shlibext"
10439 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10440 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10441 hardcode_direct="$acl_cv_hardcode_direct"
10442 hardcode_minus_L="$acl_cv_hardcode_minus_L"
10443 # Check whether --enable-rpath was given.
10444 if test "${enable_rpath+set}" = set; then :
10445 enableval=$enable_rpath; :
10446 else
10447 enable_rpath=yes
10457 use_additional=yes
10459 acl_save_prefix="$prefix"
10460 prefix="$acl_final_prefix"
10461 acl_save_exec_prefix="$exec_prefix"
10462 exec_prefix="$acl_final_exec_prefix"
10464 eval additional_includedir=\"$includedir\"
10465 eval additional_libdir=\"$libdir\"
10467 exec_prefix="$acl_save_exec_prefix"
10468 prefix="$acl_save_prefix"
10471 # Check whether --with-libiconv-prefix was given.
10472 if test "${with_libiconv_prefix+set}" = set; then :
10473 withval=$with_libiconv_prefix;
10474 if test "X$withval" = "Xno"; then
10475 use_additional=no
10476 else
10477 if test "X$withval" = "X"; then
10479 acl_save_prefix="$prefix"
10480 prefix="$acl_final_prefix"
10481 acl_save_exec_prefix="$exec_prefix"
10482 exec_prefix="$acl_final_exec_prefix"
10484 eval additional_includedir=\"$includedir\"
10485 eval additional_libdir=\"$libdir\"
10487 exec_prefix="$acl_save_exec_prefix"
10488 prefix="$acl_save_prefix"
10490 else
10491 additional_includedir="$withval/include"
10492 additional_libdir="$withval/lib"
10498 LIBICONV=
10499 LTLIBICONV=
10500 INCICONV=
10501 rpathdirs=
10502 ltrpathdirs=
10503 names_already_handled=
10504 names_next_round='iconv '
10505 while test -n "$names_next_round"; do
10506 names_this_round="$names_next_round"
10507 names_next_round=
10508 for name in $names_this_round; do
10509 already_handled=
10510 for n in $names_already_handled; do
10511 if test "$n" = "$name"; then
10512 already_handled=yes
10513 break
10515 done
10516 if test -z "$already_handled"; then
10517 names_already_handled="$names_already_handled $name"
10518 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10519 eval value=\"\$HAVE_LIB$uppername\"
10520 if test -n "$value"; then
10521 if test "$value" = yes; then
10522 eval value=\"\$LIB$uppername\"
10523 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
10524 eval value=\"\$LTLIB$uppername\"
10525 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
10526 else
10529 else
10530 found_dir=
10531 found_la=
10532 found_so=
10533 found_a=
10534 if test $use_additional = yes; then
10535 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10536 found_dir="$additional_libdir"
10537 found_so="$additional_libdir/lib$name.$shlibext"
10538 if test -f "$additional_libdir/lib$name.la"; then
10539 found_la="$additional_libdir/lib$name.la"
10541 else
10542 if test -f "$additional_libdir/lib$name.$libext"; then
10543 found_dir="$additional_libdir"
10544 found_a="$additional_libdir/lib$name.$libext"
10545 if test -f "$additional_libdir/lib$name.la"; then
10546 found_la="$additional_libdir/lib$name.la"
10551 if test "X$found_dir" = "X"; then
10552 for x in $LDFLAGS $LTLIBICONV; do
10554 acl_save_prefix="$prefix"
10555 prefix="$acl_final_prefix"
10556 acl_save_exec_prefix="$exec_prefix"
10557 exec_prefix="$acl_final_exec_prefix"
10558 eval x=\"$x\"
10559 exec_prefix="$acl_save_exec_prefix"
10560 prefix="$acl_save_prefix"
10562 case "$x" in
10563 -L*)
10564 dir=`echo "X$x" | sed -e 's/^X-L//'`
10565 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10566 found_dir="$dir"
10567 found_so="$dir/lib$name.$shlibext"
10568 if test -f "$dir/lib$name.la"; then
10569 found_la="$dir/lib$name.la"
10571 else
10572 if test -f "$dir/lib$name.$libext"; then
10573 found_dir="$dir"
10574 found_a="$dir/lib$name.$libext"
10575 if test -f "$dir/lib$name.la"; then
10576 found_la="$dir/lib$name.la"
10581 esac
10582 if test "X$found_dir" != "X"; then
10583 break
10585 done
10587 if test "X$found_dir" != "X"; then
10588 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10589 if test "X$found_so" != "X"; then
10590 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10591 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10592 else
10593 haveit=
10594 for x in $ltrpathdirs; do
10595 if test "X$x" = "X$found_dir"; then
10596 haveit=yes
10597 break
10599 done
10600 if test -z "$haveit"; then
10601 ltrpathdirs="$ltrpathdirs $found_dir"
10603 if test "$hardcode_direct" = yes; then
10604 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10605 else
10606 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10607 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10608 haveit=
10609 for x in $rpathdirs; do
10610 if test "X$x" = "X$found_dir"; then
10611 haveit=yes
10612 break
10614 done
10615 if test -z "$haveit"; then
10616 rpathdirs="$rpathdirs $found_dir"
10618 else
10619 haveit=
10620 for x in $LDFLAGS $LIBICONV; do
10622 acl_save_prefix="$prefix"
10623 prefix="$acl_final_prefix"
10624 acl_save_exec_prefix="$exec_prefix"
10625 exec_prefix="$acl_final_exec_prefix"
10626 eval x=\"$x\"
10627 exec_prefix="$acl_save_exec_prefix"
10628 prefix="$acl_save_prefix"
10630 if test "X$x" = "X-L$found_dir"; then
10631 haveit=yes
10632 break
10634 done
10635 if test -z "$haveit"; then
10636 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10638 if test "$hardcode_minus_L" != no; then
10639 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10640 else
10641 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10646 else
10647 if test "X$found_a" != "X"; then
10648 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
10649 else
10650 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10653 additional_includedir=
10654 case "$found_dir" in
10655 */lib | */lib/)
10656 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10657 additional_includedir="$basedir/include"
10659 esac
10660 if test "X$additional_includedir" != "X"; then
10661 if test "X$additional_includedir" != "X/usr/include"; then
10662 haveit=
10663 if test "X$additional_includedir" = "X/usr/local/include"; then
10664 if test -n "$GCC"; then
10665 case $host_os in
10666 linux*) haveit=yes;;
10667 esac
10670 if test -z "$haveit"; then
10671 for x in $CPPFLAGS $INCICONV; do
10673 acl_save_prefix="$prefix"
10674 prefix="$acl_final_prefix"
10675 acl_save_exec_prefix="$exec_prefix"
10676 exec_prefix="$acl_final_exec_prefix"
10677 eval x=\"$x\"
10678 exec_prefix="$acl_save_exec_prefix"
10679 prefix="$acl_save_prefix"
10681 if test "X$x" = "X-I$additional_includedir"; then
10682 haveit=yes
10683 break
10685 done
10686 if test -z "$haveit"; then
10687 if test -d "$additional_includedir"; then
10688 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10694 if test -n "$found_la"; then
10695 save_libdir="$libdir"
10696 case "$found_la" in
10697 */* | *\\*) . "$found_la" ;;
10698 *) . "./$found_la" ;;
10699 esac
10700 libdir="$save_libdir"
10701 for dep in $dependency_libs; do
10702 case "$dep" in
10703 -L*)
10704 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10705 if test "X$additional_libdir" != "X/usr/lib"; then
10706 haveit=
10707 if test "X$additional_libdir" = "X/usr/local/lib"; then
10708 if test -n "$GCC"; then
10709 case $host_os in
10710 linux*) haveit=yes;;
10711 esac
10714 if test -z "$haveit"; then
10715 haveit=
10716 for x in $LDFLAGS $LIBICONV; do
10718 acl_save_prefix="$prefix"
10719 prefix="$acl_final_prefix"
10720 acl_save_exec_prefix="$exec_prefix"
10721 exec_prefix="$acl_final_exec_prefix"
10722 eval x=\"$x\"
10723 exec_prefix="$acl_save_exec_prefix"
10724 prefix="$acl_save_prefix"
10726 if test "X$x" = "X-L$additional_libdir"; then
10727 haveit=yes
10728 break
10730 done
10731 if test -z "$haveit"; then
10732 if test -d "$additional_libdir"; then
10733 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10736 haveit=
10737 for x in $LDFLAGS $LTLIBICONV; do
10739 acl_save_prefix="$prefix"
10740 prefix="$acl_final_prefix"
10741 acl_save_exec_prefix="$exec_prefix"
10742 exec_prefix="$acl_final_exec_prefix"
10743 eval x=\"$x\"
10744 exec_prefix="$acl_save_exec_prefix"
10745 prefix="$acl_save_prefix"
10747 if test "X$x" = "X-L$additional_libdir"; then
10748 haveit=yes
10749 break
10751 done
10752 if test -z "$haveit"; then
10753 if test -d "$additional_libdir"; then
10754 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10760 -R*)
10761 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10762 if test "$enable_rpath" != no; then
10763 haveit=
10764 for x in $rpathdirs; do
10765 if test "X$x" = "X$dir"; then
10766 haveit=yes
10767 break
10769 done
10770 if test -z "$haveit"; then
10771 rpathdirs="$rpathdirs $dir"
10773 haveit=
10774 for x in $ltrpathdirs; do
10775 if test "X$x" = "X$dir"; then
10776 haveit=yes
10777 break
10779 done
10780 if test -z "$haveit"; then
10781 ltrpathdirs="$ltrpathdirs $dir"
10785 -l*)
10786 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10788 *.la)
10789 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10792 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10793 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10795 esac
10796 done
10798 else
10799 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10800 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10804 done
10805 done
10806 if test "X$rpathdirs" != "X"; then
10807 if test -n "$hardcode_libdir_separator"; then
10808 alldirs=
10809 for found_dir in $rpathdirs; do
10810 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10811 done
10812 acl_save_libdir="$libdir"
10813 libdir="$alldirs"
10814 eval flag=\"$hardcode_libdir_flag_spec\"
10815 libdir="$acl_save_libdir"
10816 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10817 else
10818 for found_dir in $rpathdirs; do
10819 acl_save_libdir="$libdir"
10820 libdir="$found_dir"
10821 eval flag=\"$hardcode_libdir_flag_spec\"
10822 libdir="$acl_save_libdir"
10823 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10824 done
10827 if test "X$ltrpathdirs" != "X"; then
10828 for found_dir in $ltrpathdirs; do
10829 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10830 done
10839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10840 $as_echo_n "checking for iconv... " >&6; }
10841 if ${am_cv_func_iconv+:} false; then :
10842 $as_echo_n "(cached) " >&6
10843 else
10845 am_cv_func_iconv="no, consider installing GNU libiconv"
10846 am_cv_lib_iconv=no
10847 am_save_CPPFLAGS="$CPPFLAGS"
10848 CPPFLAGS="$CPPFLAGS $INCICONV"
10849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10850 /* end confdefs.h. */
10851 #include <stdlib.h>
10852 #include <iconv.h>
10854 main ()
10856 iconv_t cd = iconv_open("","");
10857 iconv(cd,NULL,NULL,NULL,NULL);
10858 iconv_close(cd);
10860 return 0;
10862 _ACEOF
10863 if ac_fn_cxx_try_link "$LINENO"; then :
10864 am_cv_func_iconv=yes
10866 rm -f core conftest.err conftest.$ac_objext \
10867 conftest$ac_exeext conftest.$ac_ext
10868 CPPFLAGS="$am_save_CPPFLAGS"
10870 if test "$am_cv_func_iconv" != yes && test -d ../libiconv; then
10871 for _libs in .libs _libs; do
10872 am_save_CPPFLAGS="$CPPFLAGS"
10873 am_save_LIBS="$LIBS"
10874 CPPFLAGS="$CPPFLAGS -I../libiconv/include"
10875 LIBS="$LIBS ../libiconv/lib/$_libs/libiconv.a"
10876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10877 /* end confdefs.h. */
10878 #include <stdlib.h>
10879 #include <iconv.h>
10881 main ()
10883 iconv_t cd = iconv_open("","");
10884 iconv(cd,NULL,NULL,NULL,NULL);
10885 iconv_close(cd);
10887 return 0;
10889 _ACEOF
10890 if ac_fn_cxx_try_link "$LINENO"; then :
10891 INCICONV="-I../libiconv/include"
10892 LIBICONV='${top_builddir}'/../libiconv/lib/$_libs/libiconv.a
10893 LTLIBICONV='${top_builddir}'/../libiconv/lib/libiconv.la
10894 am_cv_lib_iconv=yes
10895 am_cv_func_iconv=yes
10897 rm -f core conftest.err conftest.$ac_objext \
10898 conftest$ac_exeext conftest.$ac_ext
10899 CPPFLAGS="$am_save_CPPFLAGS"
10900 LIBS="$am_save_LIBS"
10901 if test "$am_cv_func_iconv" = "yes"; then
10902 break
10904 done
10907 if test "$am_cv_func_iconv" != yes; then
10908 am_save_CPPFLAGS="$CPPFLAGS"
10909 am_save_LIBS="$LIBS"
10910 CPPFLAGS="$CPPFLAGS $INCICONV"
10911 LIBS="$LIBS $LIBICONV"
10912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10913 /* end confdefs.h. */
10914 #include <stdlib.h>
10915 #include <iconv.h>
10917 main ()
10919 iconv_t cd = iconv_open("","");
10920 iconv(cd,NULL,NULL,NULL,NULL);
10921 iconv_close(cd);
10923 return 0;
10925 _ACEOF
10926 if ac_fn_cxx_try_link "$LINENO"; then :
10927 am_cv_lib_iconv=yes
10928 am_cv_func_iconv=yes
10930 rm -f core conftest.err conftest.$ac_objext \
10931 conftest$ac_exeext conftest.$ac_ext
10932 CPPFLAGS="$am_save_CPPFLAGS"
10933 LIBS="$am_save_LIBS"
10937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10938 $as_echo "$am_cv_func_iconv" >&6; }
10939 if test "$am_cv_func_iconv" = yes; then
10941 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10944 if test "$am_cv_lib_iconv" = yes; then
10946 for element in $INCICONV; do
10947 haveit=
10948 for x in $CPPFLAGS; do
10950 acl_save_prefix="$prefix"
10951 prefix="$acl_final_prefix"
10952 acl_save_exec_prefix="$exec_prefix"
10953 exec_prefix="$acl_final_exec_prefix"
10954 eval x=\"$x\"
10955 exec_prefix="$acl_save_exec_prefix"
10956 prefix="$acl_save_prefix"
10958 if test "X$x" = "X$element"; then
10959 haveit=yes
10960 break
10962 done
10963 if test -z "$haveit"; then
10964 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10966 done
10968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10969 $as_echo_n "checking how to link with libiconv... " >&6; }
10970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10971 $as_echo "$LIBICONV" >&6; }
10972 else
10973 LIBICONV=
10974 LTLIBICONV=
10979 if test "$am_cv_func_iconv" = yes; then
10980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10981 $as_echo_n "checking for iconv declaration... " >&6; }
10982 if ${am_cv_proto_iconv+:} false; then :
10983 $as_echo_n "(cached) " >&6
10984 else
10986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10987 /* end confdefs.h. */
10989 #include <stdlib.h>
10990 #include <iconv.h>
10991 extern
10992 #ifdef __cplusplus
10994 #endif
10995 #if defined(__STDC__) || defined(__cplusplus)
10996 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10997 #else
10998 size_t iconv();
10999 #endif
11002 main ()
11006 return 0;
11008 _ACEOF
11009 if ac_fn_cxx_try_compile "$LINENO"; then :
11010 am_cv_proto_iconv_arg1=""
11011 else
11012 am_cv_proto_iconv_arg1="const"
11014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11015 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);"
11018 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
11019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
11020 }$am_cv_proto_iconv" >&5
11021 $as_echo "${ac_t:-
11022 }$am_cv_proto_iconv" >&6; }
11024 cat >>confdefs.h <<_ACEOF
11025 #define ICONV_CONST $am_cv_proto_iconv_arg1
11026 _ACEOF
11031 # Until we have in-tree GNU iconv:
11032 LIBICONV_DEP=
11033 if test -f "$LTLIBICONV"; then
11034 LIBICONV_DEP=$LTLIBICONV
11039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
11040 $as_echo_n "checking for LC_MESSAGES... " >&6; }
11041 if ${am_cv_val_LC_MESSAGES+:} false; then :
11042 $as_echo_n "(cached) " >&6
11043 else
11044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11045 /* end confdefs.h. */
11046 #include <locale.h>
11048 main ()
11050 return LC_MESSAGES
11052 return 0;
11054 _ACEOF
11055 if ac_fn_cxx_try_link "$LINENO"; then :
11056 am_cv_val_LC_MESSAGES=yes
11057 else
11058 am_cv_val_LC_MESSAGES=no
11060 rm -f core conftest.err conftest.$ac_objext \
11061 conftest$ac_exeext conftest.$ac_ext
11063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
11064 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
11065 if test $am_cv_val_LC_MESSAGES = yes; then
11067 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
11073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
11074 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
11075 if ${am_cv_langinfo_codeset+:} false; then :
11076 $as_echo_n "(cached) " >&6
11077 else
11078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11079 /* end confdefs.h. */
11080 #include <langinfo.h>
11082 main ()
11084 char* cs = nl_langinfo(CODESET);
11086 return 0;
11088 _ACEOF
11089 if ac_fn_cxx_try_link "$LINENO"; then :
11090 am_cv_langinfo_codeset=yes
11091 else
11092 am_cv_langinfo_codeset=no
11094 rm -f core conftest.err conftest.$ac_objext \
11095 conftest$ac_exeext conftest.$ac_ext
11098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
11099 $as_echo "$am_cv_langinfo_codeset" >&6; }
11100 if test $am_cv_langinfo_codeset = yes; then
11102 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
11107 # We will need to find libiberty.h and ansidecl.h
11108 saved_CFLAGS="$CFLAGS"
11109 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
11110 saved_CXXFLAGS="$CXXFLAGS"
11111 CXXFLAGS="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
11113 # gcc_AC_CHECK_DECLS doesn't support overloaded functions, so use the
11114 # normal autoconf function for these. But force definition of
11115 # HAVE_DECL_BASENAME like gcc_AC_CHECK_DECLS does, to suppress the bizarre
11116 # basename handling in libiberty.h.
11117 as_ac_Symbol=`$as_echo "ac_cv_have_decl_basename(const char*)" | $as_tr_sh`
11118 ac_fn_cxx_check_decl "$LINENO" "basename(const char*)" "$as_ac_Symbol" "
11119 #undef HAVE_DECL_BASENAME
11120 #define HAVE_DECL_BASENAME 1
11121 #include \"ansidecl.h\"
11122 #include \"system.h\"
11124 if eval test \"x\$"$as_ac_Symbol"\" = x"yes"; then :
11125 ac_have_decl=1
11126 else
11127 ac_have_decl=0
11130 cat >>confdefs.h <<_ACEOF
11131 #define HAVE_DECL_BASENAME $ac_have_decl
11132 _ACEOF
11133 as_ac_Symbol=`$as_echo "ac_cv_have_decl_strstr(const char*,const char*)" | $as_tr_sh`
11134 ac_fn_cxx_check_decl "$LINENO" "strstr(const char*,const char*)" "$as_ac_Symbol" "
11135 #undef HAVE_DECL_BASENAME
11136 #define HAVE_DECL_BASENAME 1
11137 #include \"ansidecl.h\"
11138 #include \"system.h\"
11140 if eval test \"x\$"$as_ac_Symbol"\" = x"yes"; then :
11141 ac_have_decl=1
11142 else
11143 ac_have_decl=0
11146 cat >>confdefs.h <<_ACEOF
11147 #define HAVE_DECL_STRSTR $ac_have_decl
11148 _ACEOF
11151 for ac_func in getenv atol atoll asprintf sbrk abort atof getcwd getwd \
11152 madvise stpcpy strnlen strsignal strverscmp \
11153 strtol strtoul strtoll strtoull setenv unsetenv \
11154 errno snprintf vsnprintf vasprintf malloc realloc calloc \
11155 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
11157 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11159 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11160 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
11161 $as_echo_n "(cached) " >&6
11162 else
11163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11164 /* end confdefs.h. */
11165 #undef $ac_tr_decl
11166 #define $ac_tr_decl 1
11168 #include "ansidecl.h"
11169 #include "system.h"
11172 main ()
11174 #ifndef $ac_func
11175 char *(*pfn) = (char *(*)) $ac_func ;
11176 #endif
11178 return 0;
11180 _ACEOF
11181 if ac_fn_cxx_try_compile "$LINENO"; then :
11182 eval "gcc_cv_have_decl_$ac_func=yes"
11183 else
11184 eval "gcc_cv_have_decl_$ac_func=no"
11186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11189 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11191 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11192 #define $ac_tr_decl 1
11193 _ACEOF
11195 else
11196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11197 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11198 #define $ac_tr_decl 0
11199 _ACEOF
11203 done
11206 for ac_func in getrlimit setrlimit getrusage
11208 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11210 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11211 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
11212 $as_echo_n "(cached) " >&6
11213 else
11214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11215 /* end confdefs.h. */
11216 #undef $ac_tr_decl
11217 #define $ac_tr_decl 1
11219 #include "ansidecl.h"
11220 #include "system.h"
11221 #ifdef HAVE_SYS_RESOURCE_H
11222 #include <sys/resource.h>
11223 #endif
11227 main ()
11229 #ifndef $ac_func
11230 char *(*pfn) = (char *(*)) $ac_func ;
11231 #endif
11233 return 0;
11235 _ACEOF
11236 if ac_fn_cxx_try_compile "$LINENO"; then :
11237 eval "gcc_cv_have_decl_$ac_func=yes"
11238 else
11239 eval "gcc_cv_have_decl_$ac_func=no"
11241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11244 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11246 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11247 #define $ac_tr_decl 1
11248 _ACEOF
11250 else
11251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11252 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11253 #define $ac_tr_decl 0
11254 _ACEOF
11258 done
11261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11262 /* end confdefs.h. */
11264 #include "ansidecl.h"
11265 #include "system.h"
11266 #ifdef HAVE_SYS_RESOURCE_H
11267 #include <sys/resource.h>
11268 #endif
11271 main ()
11273 rlim_t l = 0;
11275 return 0;
11277 _ACEOF
11278 if ac_fn_cxx_try_compile "$LINENO"; then :
11280 else
11282 $as_echo "#define rlim_t long" >>confdefs.h
11285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11287 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
11288 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
11289 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
11290 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
11291 for ac_func in ldgetname
11293 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11295 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11296 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
11297 $as_echo_n "(cached) " >&6
11298 else
11299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11300 /* end confdefs.h. */
11301 #undef $ac_tr_decl
11302 #define $ac_tr_decl 1
11304 #include "ansidecl.h"
11305 #include "system.h"
11306 #ifdef HAVE_LDFCN_H
11307 #undef FREAD
11308 #undef FWRITE
11309 #include <ldfcn.h>
11310 #endif
11314 main ()
11316 #ifndef $ac_func
11317 char *(*pfn) = (char *(*)) $ac_func ;
11318 #endif
11320 return 0;
11322 _ACEOF
11323 if ac_fn_cxx_try_compile "$LINENO"; then :
11324 eval "gcc_cv_have_decl_$ac_func=yes"
11325 else
11326 eval "gcc_cv_have_decl_$ac_func=no"
11328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11331 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11333 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11334 #define $ac_tr_decl 1
11335 _ACEOF
11337 else
11338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11339 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11340 #define $ac_tr_decl 0
11341 _ACEOF
11345 done
11348 for ac_func in times
11350 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11352 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11353 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
11354 $as_echo_n "(cached) " >&6
11355 else
11356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11357 /* end confdefs.h. */
11358 #undef $ac_tr_decl
11359 #define $ac_tr_decl 1
11361 #include "ansidecl.h"
11362 #include "system.h"
11363 #ifdef HAVE_SYS_TIMES_H
11364 #include <sys/times.h>
11365 #endif
11369 main ()
11371 #ifndef $ac_func
11372 char *(*pfn) = (char *(*)) $ac_func ;
11373 #endif
11375 return 0;
11377 _ACEOF
11378 if ac_fn_cxx_try_compile "$LINENO"; then :
11379 eval "gcc_cv_have_decl_$ac_func=yes"
11380 else
11381 eval "gcc_cv_have_decl_$ac_func=no"
11383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11386 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11388 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11389 #define $ac_tr_decl 1
11390 _ACEOF
11392 else
11393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11394 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11395 #define $ac_tr_decl 0
11396 _ACEOF
11400 done
11403 for ac_func in sigaltstack
11405 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11407 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11408 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
11409 $as_echo_n "(cached) " >&6
11410 else
11411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11412 /* end confdefs.h. */
11413 #undef $ac_tr_decl
11414 #define $ac_tr_decl 1
11416 #include "ansidecl.h"
11417 #include "system.h"
11418 #include <signal.h>
11422 main ()
11424 #ifndef $ac_func
11425 char *(*pfn) = (char *(*)) $ac_func ;
11426 #endif
11428 return 0;
11430 _ACEOF
11431 if ac_fn_cxx_try_compile "$LINENO"; then :
11432 eval "gcc_cv_have_decl_$ac_func=yes"
11433 else
11434 eval "gcc_cv_have_decl_$ac_func=no"
11436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11439 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11441 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11442 #define $ac_tr_decl 1
11443 _ACEOF
11445 else
11446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11447 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11448 #define $ac_tr_decl 0
11449 _ACEOF
11453 done
11456 # More time-related stuff.
11457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
11458 $as_echo_n "checking for struct tms... " >&6; }
11459 if ${ac_cv_struct_tms+:} false; then :
11460 $as_echo_n "(cached) " >&6
11461 else
11463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11464 /* end confdefs.h. */
11466 #include "ansidecl.h"
11467 #include "system.h"
11468 #ifdef HAVE_SYS_TIMES_H
11469 #include <sys/times.h>
11470 #endif
11473 main ()
11475 struct tms tms;
11477 return 0;
11479 _ACEOF
11480 if ac_fn_cxx_try_compile "$LINENO"; then :
11481 ac_cv_struct_tms=yes
11482 else
11483 ac_cv_struct_tms=no
11485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
11488 $as_echo "$ac_cv_struct_tms" >&6; }
11489 if test $ac_cv_struct_tms = yes; then
11491 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
11495 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
11496 # revisit after autoconf 2.50.
11497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
11498 $as_echo_n "checking for clock_t... " >&6; }
11499 if ${gcc_cv_type_clock_t+:} false; then :
11500 $as_echo_n "(cached) " >&6
11501 else
11503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11504 /* end confdefs.h. */
11506 #include "ansidecl.h"
11507 #include "system.h"
11510 main ()
11512 clock_t x;
11514 return 0;
11516 _ACEOF
11517 if ac_fn_cxx_try_compile "$LINENO"; then :
11518 gcc_cv_type_clock_t=yes
11519 else
11520 gcc_cv_type_clock_t=no
11522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
11525 $as_echo "$gcc_cv_type_clock_t" >&6; }
11526 if test $gcc_cv_type_clock_t = yes; then
11528 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
11532 # Check if F_SETLKW is supported by fcntl.
11533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
11534 $as_echo_n "checking for F_SETLKW... " >&6; }
11535 if ${ac_cv_f_setlkw+:} false; then :
11536 $as_echo_n "(cached) " >&6
11537 else
11539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11540 /* end confdefs.h. */
11542 #include <fcntl.h>
11544 main ()
11547 struct flock fl;
11548 fl.l_whence = 0;
11549 fl.l_start = 0;
11550 fl.l_len = 0;
11551 fl.l_pid = 0;
11552 return fcntl (1, F_SETLKW, &fl);
11554 return 0;
11556 _ACEOF
11557 if ac_fn_cxx_try_compile "$LINENO"; then :
11558 ac_cv_f_setlkw=yes
11559 else
11560 ac_cv_f_setlkw=no
11562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
11565 $as_echo "$ac_cv_f_setlkw" >&6; }
11566 if test $ac_cv_f_setlkw = yes; then
11568 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
11572 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
11573 CFLAGS="$saved_CFLAGS"
11574 CXXFLAGS="$saved_CXXFLAGS"
11576 # mkdir takes a single argument on some systems.
11577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
11578 $as_echo_n "checking if mkdir takes one argument... " >&6; }
11579 if ${gcc_cv_mkdir_takes_one_arg+:} false; then :
11580 $as_echo_n "(cached) " >&6
11581 else
11582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11583 /* end confdefs.h. */
11585 #include <sys/types.h>
11586 #ifdef HAVE_SYS_STAT_H
11587 # include <sys/stat.h>
11588 #endif
11589 #ifdef HAVE_UNISTD_H
11590 # include <unistd.h>
11591 #endif
11592 #ifdef HAVE_DIRECT_H
11593 # include <direct.h>
11594 #endif
11596 main ()
11598 mkdir ("foo", 0);
11600 return 0;
11602 _ACEOF
11603 if ac_fn_cxx_try_compile "$LINENO"; then :
11604 gcc_cv_mkdir_takes_one_arg=no
11605 else
11606 gcc_cv_mkdir_takes_one_arg=yes
11608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
11611 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
11612 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
11614 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
11619 # File extensions
11620 manext='.1'
11621 objext='.o'
11625 # With Setjmp/Longjmp based exception handling.
11626 # Check whether --enable-sjlj-exceptions was given.
11627 if test "${enable_sjlj_exceptions+set}" = set; then :
11628 enableval=$enable_sjlj_exceptions; case $target in
11629 *-*-hpux10*)
11630 if test $enableval != yes; then
11631 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
11632 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
11633 enableval=yes
11636 esac
11637 force_sjlj_exceptions=yes
11638 else
11639 case $target in
11640 *-*-hpux10*)
11641 force_sjlj_exceptions=yes
11642 enableval=yes
11644 lm32*-*-*)
11645 force_sjlj_exceptions=yes
11646 enableval=yes
11649 force_sjlj_exceptions=no
11651 esac
11654 if test $force_sjlj_exceptions = yes; then
11655 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
11657 cat >>confdefs.h <<_ACEOF
11658 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
11659 _ACEOF
11663 # --------------------------------------------------------
11664 # Build, host, and target specific configuration fragments
11665 # --------------------------------------------------------
11667 # Collect build-machine-specific information.
11668 . ${srcdir}/config.build || exit 1
11670 # Collect host-machine-specific information.
11671 . ${srcdir}/config.host || exit 1
11673 target_gtfiles=
11675 # Collect target-machine-specific information.
11676 . ${srcdir}/config.gcc || exit 1
11678 extra_objs="${host_extra_objs} ${extra_objs}"
11679 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
11681 # Default the target-machine variables that were not explicitly set.
11682 if test x"$tm_file" = x
11683 then tm_file=$cpu_type/$cpu_type.h; fi
11685 if test x"$extra_headers" = x
11686 then extra_headers=; fi
11688 if test x$md_file = x
11689 then md_file=$cpu_type/$cpu_type.md; fi
11691 if test x$out_file = x
11692 then out_file=$cpu_type/$cpu_type.c; fi
11694 if test x"$tmake_file" = x
11695 then tmake_file=$cpu_type/t-$cpu_type
11698 # Support --enable-initfini-array.
11699 if test x$enable_initfini_array != xno; then
11700 tm_file="${tm_file} initfini-array.h"
11703 if test x"$dwarf2" = xyes
11704 then tm_file="$tm_file tm-dwarf2.h"
11707 # Say what files are being used for the output code and MD file.
11708 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11709 echo "Using \`$srcdir/config/$md_file' as machine description file."
11711 # If any of the xm_file variables contain nonexistent files, warn
11712 # about them and drop them.
11715 for x in $build_xm_file; do
11716 if test -f $srcdir/config/$x
11717 then bx="$bx $x"
11718 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11719 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11721 done
11722 build_xm_file="$bx"
11725 for x in $host_xm_file; do
11726 if test -f $srcdir/config/$x
11727 then hx="$hx $x"
11728 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11729 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11731 done
11732 host_xm_file="$hx"
11735 for x in $xm_file; do
11736 if test -f $srcdir/config/$x
11737 then tx="$tx $x"
11738 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11739 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11741 done
11742 xm_file="$tx"
11744 count=a
11745 for f in $tm_file; do
11746 count=${count}x
11747 done
11748 if test $count = ax; then
11749 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11750 else
11751 echo "Using the following target machine macro files:"
11752 for f in $tm_file; do
11753 echo " $srcdir/config/$f"
11754 done
11757 if test x$use_long_long_for_widest_fast_int = xyes; then
11759 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
11763 gnu_ld_bool=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
11765 cat >>confdefs.h <<_ACEOF
11766 #define HAVE_GNU_LD $gnu_ld_bool
11767 _ACEOF
11770 gnu_as_bool=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
11772 cat >>confdefs.h <<_ACEOF
11773 #define HAVE_GNU_AS $gnu_as_bool
11774 _ACEOF
11777 count=a
11778 for f in $host_xm_file; do
11779 count=${count}x
11780 done
11781 if test $count = a; then
11783 elif test $count = ax; then
11784 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11785 else
11786 echo "Using the following host machine macro files:"
11787 for f in $host_xm_file; do
11788 echo " $srcdir/config/$f"
11789 done
11791 echo "Using ${out_host_hook_obj} for host machine hooks."
11793 if test "$host_xm_file" != "$build_xm_file"; then
11794 count=a
11795 for f in $build_xm_file; do
11796 count=${count}x
11797 done
11798 if test $count = a; then
11800 elif test $count = ax; then
11801 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11802 else
11803 echo "Using the following build machine macro files:"
11804 for f in $build_xm_file; do
11805 echo " $srcdir/config/$f"
11806 done
11810 if test -n "$configured_native_system_header_dir"; then
11811 native_system_header_dir=$configured_native_system_header_dir
11813 NATIVE_SYSTEM_HEADER_DIR="$native_system_header_dir"
11816 case ${host} in
11817 powerpc*-*-darwin*)
11818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
11819 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
11820 if ${gcc_cv_mcontext_underscores+:} false; then :
11821 $as_echo_n "(cached) " >&6
11822 else
11823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11824 /* end confdefs.h. */
11826 #include <sys/cdefs.h>
11827 #include <sys/signal.h>
11828 #include <ucontext.h>
11829 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
11831 _ACEOF
11832 if ac_fn_cxx_try_compile "$LINENO"; then :
11833 gcc_cv_mcontext_underscores=no
11834 else
11835 gcc_cv_mcontext_underscores=yes
11837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
11840 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
11841 if test $gcc_cv_mcontext_underscores = yes; then
11843 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
11847 esac
11849 # ---------
11850 # Threading
11851 # ---------
11853 # Check if a valid thread package
11854 case ${enable_threads} in
11855 "" | no)
11856 # No threads
11857 target_thread_file='single'
11859 yes)
11860 # default
11861 target_thread_file='single'
11863 aix | dce | lynx | mipssde | posix | rtems | \
11864 single | tpf | vxworks | win32)
11865 target_thread_file=${enable_threads}
11868 echo "${enable_threads} is an unknown thread package" 1>&2
11869 exit 1
11871 esac
11873 if test x${thread_file} = x; then
11874 # No thread file set by target-specific clauses in config.gcc,
11875 # so use file chosen by default logic above
11876 thread_file=${target_thread_file}
11879 # --------
11880 # UNSORTED
11881 # --------
11883 use_cxa_atexit=no
11884 if test x$enable___cxa_atexit = xyes || \
11885 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
11886 if test x$host = x$target; then
11887 case $host in
11888 # mingw32 doesn't have __cxa_atexit but uses atexit registration
11889 # keyed to flag_use_cxa_atexit
11890 *-*-mingw32*)
11891 use_cxa_atexit=yes
11893 powerpc-ibm-aix*)
11894 use_cxa_atexit=yes
11897 ac_fn_cxx_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
11898 if test "x$ac_cv_func___cxa_atexit" = xyes; then :
11899 use_cxa_atexit=yes
11900 else
11901 echo "__cxa_atexit can't be enabled on this target"
11905 esac
11906 else
11907 # We can't check for __cxa_atexit when building a cross, so assume
11908 # it is available
11909 use_cxa_atexit=yes
11911 if test x$use_cxa_atexit = xyes; then
11913 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
11918 # Look for a file containing extra machine modes.
11919 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
11920 extra_modes_file='$(srcdir)'/config/${extra_modes}
11923 cat >>confdefs.h <<_ACEOF
11924 #define EXTRA_MODES_FILE "config/$extra_modes"
11925 _ACEOF
11929 # Convert extra_options into a form suitable for Makefile use.
11930 extra_opt_files=
11931 all_opt_files=
11932 for f in $extra_options; do
11933 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
11934 all_opt_files="$all_opt_files $srcdir/config/$f"
11935 done
11938 # auto-host.h is the file containing items generated by autoconf and is
11939 # the first file included by config.h.
11940 # If host=build, it is correct to have bconfig include auto-host.h
11941 # as well. If host!=build, we are in error and need to do more
11942 # work to find out the build config parameters.
11943 if test x$host = x$build
11944 then
11945 build_auto=auto-host.h
11946 else
11947 # We create a subdir, then run autoconf in the subdir.
11948 # To prevent recursion we set host and build for the new
11949 # invocation of configure to the build for this invocation
11950 # of configure.
11951 tempdir=build.$$
11952 rm -rf $tempdir
11953 mkdir $tempdir
11954 cd $tempdir
11955 case ${srcdir} in
11956 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
11957 *) realsrcdir=../${srcdir};;
11958 esac
11959 # Clearing GMPINC is necessary to prevent host headers being
11960 # used by the build compiler. Defining GENERATOR_FILE stops
11961 # system.h from including gmp.h.
11962 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
11963 CXX="${CXX_FOR_BUILD}" CXXFLAGS="${CXXFLAGS_FOR_BUILD}" \
11964 LD="${LD_FOR_BUILD}" LDFLAGS="${LDFLAGS_FOR_BUILD}" \
11965 GMPINC="" CPPFLAGS="${CPPFLAGS} -DGENERATOR_FILE" \
11966 ${realsrcdir}/configure \
11967 --enable-languages=${enable_languages-all} \
11968 --target=$target_alias --host=$build_alias --build=$build_alias
11970 # We just finished tests for the build machine, so rename
11971 # the file auto-build.h in the gcc directory.
11972 mv auto-host.h ../auto-build.h
11973 cd ..
11974 rm -rf $tempdir
11975 build_auto=auto-build.h
11979 tm_file="${tm_file} defaults.h"
11980 tm_p_file="${tm_p_file} tm-preds.h"
11981 tm_d_file="${tm_d_file} defaults.h"
11982 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
11983 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
11984 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
11985 # put this back in temporarily.
11986 xm_file="auto-host.h ansidecl.h ${xm_file}"
11988 # --------
11989 # UNSORTED
11990 # --------
11992 # Compile in configure arguments.
11993 if test -f configargs.h ; then
11994 # Being re-configured.
11995 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
11996 gcc_reconf_arguments=`echo "$gcc_config_arguments" | sed -e 's/^.*\( : (reconfigured) .*$\)/\1/'`
11997 if [ "$gcc_reconf_arguments" != " : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS" ]; then
11998 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
12000 else
12001 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
12004 # Double all backslashes and backslash all quotes to turn
12005 # gcc_config_arguments into a C string.
12006 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
12007 $gcc_config_arguments
12009 gcc_config_arguments_str=`cat conftest.out`
12010 rm -f conftest.out
12012 cat > configargs.h <<EOF
12013 /* Generated automatically. */
12014 static const char configuration_arguments[] = "$gcc_config_arguments_str";
12015 static const char thread_model[] = "$thread_file";
12017 static const struct {
12018 const char *name, *value;
12019 } configure_default_options[] = $configure_default_options;
12022 gcc_BASEVER=`cat $srcdir/BASE-VER`
12023 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
12024 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
12025 if test -f $srcdir/REVISION ; then
12026 gcc_REVISION=`cat $srcdir/REVISION`
12027 else
12028 gcc_REVISION=""
12030 cat > plugin-version.h <<EOF
12031 #include "configargs.h"
12033 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
12034 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
12035 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
12036 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
12038 static char basever[] = "$gcc_BASEVER";
12039 static char datestamp[] = "$gcc_DATESTAMP";
12040 static char devphase[] = "$gcc_DEVPHASE";
12041 static char revision[] = "$gcc_REVISION";
12043 /* FIXME plugins: We should make the version information more precise.
12044 One way to do is to add a checksum. */
12046 static struct plugin_gcc_version gcc_version = {basever, datestamp,
12047 devphase, revision,
12048 configuration_arguments};
12051 # Determine what GCC version number to use in filesystem paths.
12053 get_gcc_base_ver="cat"
12055 # Check whether --with-gcc-major-version-only was given.
12056 if test "${with_gcc_major_version_only+set}" = set; then :
12057 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
12058 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
12066 # Internationalization
12067 # If we haven't got the data from the intl directory,
12068 # assume NLS is disabled.
12069 USE_NLS=no
12070 LIBINTL=
12071 LIBINTL_DEP=
12072 INCINTL=
12073 XGETTEXT=
12074 GMSGFMT=
12075 POSUB=
12077 if test -f ../intl/config.intl; then
12078 . ../intl/config.intl
12080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
12081 $as_echo_n "checking whether NLS is requested... " >&6; }
12082 if test x"$USE_NLS" != xyes; then
12083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12084 $as_echo "no" >&6; }
12085 else
12086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12087 $as_echo "yes" >&6; }
12089 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
12092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
12093 $as_echo_n "checking for catalogs to be installed... " >&6; }
12094 # Look for .po and .gmo files in the source directory.
12095 CATALOGS=
12096 XLINGUAS=
12097 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
12098 # If there aren't any .gmo files the shell will give us the
12099 # literal string "../path/to/srcdir/po/*.gmo" which has to be
12100 # weeded out.
12101 case "$cat" in *\**)
12102 continue;;
12103 esac
12104 # The quadruple backslash is collapsed to a double backslash
12105 # by the backticks, then collapsed again by the double quotes,
12106 # leaving us with one backslash in the sed expression (right
12107 # before the dot that mustn't act as a wildcard).
12108 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
12109 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
12110 # The user is allowed to set LINGUAS to a list of languages to
12111 # install catalogs for. If it's empty that means "all of them."
12112 if test "x$LINGUAS" = x; then
12113 CATALOGS="$CATALOGS $cat"
12114 XLINGUAS="$XLINGUAS $lang"
12115 else
12116 case "$LINGUAS" in *$lang*)
12117 CATALOGS="$CATALOGS $cat"
12118 XLINGUAS="$XLINGUAS $lang"
12120 esac
12122 done
12123 LINGUAS="$XLINGUAS"
12124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
12125 $as_echo "$LINGUAS" >&6; }
12128 DATADIRNAME=share
12130 INSTOBJEXT=.mo
12132 GENCAT=gencat
12134 CATOBJEXT=.gmo
12138 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
12139 # -liconv on the link line twice.
12140 case "$LIBINTL" in *$LIBICONV*)
12141 LIBICONV= ;;
12142 esac
12144 # Check whether --enable-secureplt was given.
12145 if test "${enable_secureplt+set}" = set; then :
12146 enableval=$enable_secureplt;
12150 # Check whether --enable-mingw-wildcard was given.
12151 if test "${enable_mingw_wildcard+set}" = set; then :
12152 enableval=$enable_mingw_wildcard;
12153 else
12154 enable_mingw_wildcard=platform
12157 if test x"$enable_mingw_wildcard" != xplatform ; then :
12159 cat >>confdefs.h <<_ACEOF
12160 #define MINGW_DOWILDCARD $(test x"$enable_mingw_wildcard" = xno; echo $?)
12161 _ACEOF
12165 # Check whether --enable-large-address-aware was given.
12166 if test "${enable_large_address_aware+set}" = set; then :
12167 enableval=$enable_large_address_aware;
12170 if test x"$enable_large_address_aware" = xyes; then :
12172 $as_echo "#define MINGW_DEFAULT_LARGE_ADDR_AWARE 1" >>confdefs.h
12176 # Check whether --enable-leading-mingw64-underscores was given.
12177 if test "${enable_leading_mingw64_underscores+set}" = set; then :
12178 enableval=$enable_leading_mingw64_underscores;
12181 if test x"$enable_leading_mingw64_underscores" = xyes ; then :
12183 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
12187 # Check whether --enable-cld was given.
12188 if test "${enable_cld+set}" = set; then :
12189 enableval=$enable_cld;
12190 else
12191 enable_cld=no
12195 # Check whether --enable-frame-pointer was given.
12196 if test "${enable_frame_pointer+set}" = set; then :
12197 enableval=$enable_frame_pointer;
12198 else
12200 case $target_os in
12201 linux* | darwin[8912]*)
12202 # Enable -fomit-frame-pointer by default for Linux and Darwin with
12203 # DWARF2.
12204 enable_frame_pointer=no
12207 enable_frame_pointer=yes
12209 esac
12214 # Windows32 Registry support for specifying GCC installation paths.
12215 # Check whether --enable-win32-registry was given.
12216 if test "${enable_win32_registry+set}" = set; then :
12217 enableval=$enable_win32_registry;
12221 case $host_os in
12222 win32 | pe | cygwin* | mingw32*)
12223 if test "x$enable_win32_registry" != xno; then
12224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
12225 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
12226 if ${ac_cv_search_RegOpenKeyExA+:} false; then :
12227 $as_echo_n "(cached) " >&6
12228 else
12229 ac_func_search_save_LIBS=$LIBS
12230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12231 /* end confdefs.h. */
12233 /* Override any GCC internal prototype to avoid an error.
12234 Use char because int might match the return type of a GCC
12235 builtin and then its argument prototype would still apply. */
12236 #ifdef __cplusplus
12237 extern "C"
12238 #endif
12239 char RegOpenKeyExA ();
12241 main ()
12243 return RegOpenKeyExA ();
12245 return 0;
12247 _ACEOF
12248 for ac_lib in '' advapi32; do
12249 if test -z "$ac_lib"; then
12250 ac_res="none required"
12251 else
12252 ac_res=-l$ac_lib
12253 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12255 if ac_fn_cxx_try_link "$LINENO"; then :
12256 ac_cv_search_RegOpenKeyExA=$ac_res
12258 rm -f core conftest.err conftest.$ac_objext \
12259 conftest$ac_exeext
12260 if ${ac_cv_search_RegOpenKeyExA+:} false; then :
12261 break
12263 done
12264 if ${ac_cv_search_RegOpenKeyExA+:} false; then :
12266 else
12267 ac_cv_search_RegOpenKeyExA=no
12269 rm conftest.$ac_ext
12270 LIBS=$ac_func_search_save_LIBS
12272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
12273 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
12274 ac_res=$ac_cv_search_RegOpenKeyExA
12275 if test "$ac_res" != no; then :
12276 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12278 else
12279 enable_win32_registry=no
12284 if test "x$enable_win32_registry" != xno; then
12286 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
12289 if test "x$enable_win32_registry" != xyes \
12290 && test "x$enable_win32_registry" != x; then
12292 cat >>confdefs.h <<_ACEOF
12293 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
12294 _ACEOF
12299 esac
12301 # Get an absolute path to the GCC top-level source directory
12302 holddir=`${PWDCMD-pwd}`
12303 cd $srcdir
12304 topdir=`${PWDCMD-pwd}`
12305 cd $holddir
12307 # Conditionalize the makefile for this host machine.
12308 xmake_file=
12309 for f in ${host_xmake_file}
12311 if test -f ${srcdir}/config/$f
12312 then
12313 xmake_file="${xmake_file} \$(srcdir)/config/$f"
12315 done
12317 # Conditionalize the makefile for this target machine.
12318 tmake_file_=
12319 for f in ${tmake_file}
12321 if test -f ${srcdir}/config/$f
12322 then
12323 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
12325 done
12326 tmake_file="${tmake_file_}"
12328 out_object_file=`basename $out_file .c`.o
12329 common_out_object_file=`basename $common_out_file .c`.o
12331 tm_file_list="options.h"
12332 tm_include_list="options.h insn-constants.h"
12333 for f in $tm_file; do
12334 case $f in
12335 ./* )
12336 f=`echo $f | sed 's/^..//'`
12337 tm_file_list="${tm_file_list} $f"
12338 tm_include_list="${tm_include_list} $f"
12340 defaults.h )
12341 tm_file_list="${tm_file_list} \$(srcdir)/$f"
12342 tm_include_list="${tm_include_list} $f"
12345 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
12346 tm_include_list="${tm_include_list} config/$f"
12348 esac
12349 done
12351 tm_p_file_list=
12352 tm_p_include_list=
12353 for f in $tm_p_file; do
12354 case $f in
12355 tm-preds.h )
12356 tm_p_file_list="${tm_p_file_list} $f"
12357 tm_p_include_list="${tm_p_include_list} $f"
12360 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
12361 tm_p_include_list="${tm_p_include_list} config/$f"
12362 esac
12363 done
12365 tm_d_file_list=
12366 tm_d_include_list="options.h insn-constants.h"
12367 for f in $tm_d_file; do
12368 case $f in
12369 defaults.h )
12370 tm_d_file_list="${tm_d_file_list} \$(srcdir)/$f"
12371 tm_d_include_list="${tm_d_include_list} $f"
12374 tm_d_file_list="${tm_d_file_list} \$(srcdir)/config/$f"
12375 tm_d_include_list="${tm_d_include_list} config/$f"
12377 esac
12378 done
12380 xm_file_list=
12381 xm_include_list=
12382 for f in $xm_file; do
12383 case $f in
12384 ansidecl.h )
12385 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
12386 xm_include_list="${xm_include_list} $f"
12388 auto-host.h )
12389 xm_file_list="${xm_file_list} $f"
12390 xm_include_list="${xm_include_list} $f"
12393 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
12394 xm_include_list="${xm_include_list} config/$f"
12396 esac
12397 done
12399 host_xm_file_list=
12400 host_xm_include_list=
12401 for f in $host_xm_file; do
12402 case $f in
12403 ansidecl.h )
12404 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
12405 host_xm_include_list="${host_xm_include_list} $f"
12407 auto-host.h )
12408 host_xm_file_list="${host_xm_file_list} $f"
12409 host_xm_include_list="${host_xm_include_list} $f"
12412 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
12413 host_xm_include_list="${host_xm_include_list} config/$f"
12415 esac
12416 done
12418 build_xm_file_list=
12419 for f in $build_xm_file; do
12420 case $f in
12421 ansidecl.h )
12422 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
12423 build_xm_include_list="${build_xm_include_list} $f"
12425 auto-build.h | auto-host.h )
12426 build_xm_file_list="${build_xm_file_list} $f"
12427 build_xm_include_list="${build_xm_include_list} $f"
12430 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
12431 build_xm_include_list="${build_xm_include_list} config/$f"
12433 esac
12434 done
12436 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
12437 # cross-compiler which does not use the native headers and libraries.
12438 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
12439 CROSS=
12440 ALL=all.internal
12441 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
12442 BUILD_SYSTEM_HEADER_DIR=$SYSTEM_HEADER_DIR
12444 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x ||
12445 test x$build != x$host || test "x$with_build_sysroot" != x; then
12446 if test "x$with_build_sysroot" != x; then
12447 BUILD_SYSTEM_HEADER_DIR=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
12448 else
12449 BUILD_SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
12452 if test x$host != x$target
12453 then
12454 CROSS="-DCROSS_DIRECTORY_STRUCTURE"
12455 ALL=all.cross
12456 SYSTEM_HEADER_DIR=$BUILD_SYSTEM_HEADER_DIR
12457 elif test "x$TARGET_SYSTEM_ROOT" != x; then
12458 SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
12461 if test "x$with_build_sysroot" != "x"; then
12462 target_header_dir="${with_build_sysroot}${native_system_header_dir}"
12463 elif test "x$with_sysroot" = x; then
12464 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-include"
12465 elif test "x$with_sysroot" = xyes; then
12466 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
12467 else
12468 target_header_dir="${with_sysroot}${native_system_header_dir}"
12470 else
12471 target_header_dir=${native_system_header_dir}
12474 # If this is a cross-compiler that does not
12475 # have its own set of headers then define
12476 # inhibit_libc
12478 # If this is using newlib, without having the headers available now,
12479 # then define inhibit_libc in LIBGCC2_CFLAGS.
12480 # This prevents libgcc2 from containing any code which requires libc
12481 # support.
12482 : ${inhibit_libc=false}
12483 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
12484 test x$with_newlib = xyes ; } &&
12485 { test "x$with_headers" = xno || test ! -f "$target_header_dir/stdio.h"; } ; then
12486 inhibit_libc=true
12490 # When building gcc with a cross-compiler, we need to adjust things so
12491 # that the generator programs are still built with the native compiler.
12492 # Also, we cannot run fixincludes.
12494 # These are the normal (build=host) settings:
12495 CC_FOR_BUILD='$(CC)'
12496 CXX_FOR_BUILD='$(CXX)'
12497 BUILD_CFLAGS='$(ALL_CFLAGS)'
12498 BUILD_CXXFLAGS='$(ALL_CXXFLAGS)'
12499 BUILD_LDFLAGS='$(LDFLAGS)'
12500 STMP_FIXINC=stmp-fixinc
12502 BUILD_NO_PIE_CFLAGS='$(NO_PIE_CFLAGS)'
12503 BUILD_NO_PIE_FLAG='$(NO_PIE_FLAG)'
12505 # And these apply if build != host, or we are generating coverage data
12506 if test x$build != x$host || test "x$coverage_flags" != x
12507 then
12508 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
12509 BUILD_CXXFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CXXFLAGS_FOR_BUILD)'
12510 BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
12512 NO_PIE_CFLAGS_FOR_BUILD=${NO_PIE_CFLAGS_FOR_BUILD-${NO_PIE_CFLAGS}}
12513 NO_PIE_FLAG_FOR_BUILD=${NO_PIE_FLAG_FOR_BUILD-${NO_PIE_FLAG}}
12514 BUILD_NO_PIE_CFLAGS='$(NO_PIE_CFLAGS_FOR_BUILD)'
12515 BUILD_NO_PIE_FLAG='$(NO_PIE_FLAG_FOR_BUILD)'
12520 # Expand extra_headers to include complete path.
12521 # This substitutes for lots of t-* files.
12522 extra_headers_list=
12523 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
12524 for file in ${extra_headers} ; do
12525 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
12526 done
12528 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
12529 if test x"$use_gcc_tgmath" = xyes
12530 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
12533 # Define collect2 in Makefile.
12534 case $host_can_use_collect2 in
12535 no) collect2= ;;
12536 *) collect2='collect2$(exeext)' ;;
12537 esac
12540 # Add a definition of USE_COLLECT2 if system wants one.
12541 case $use_collect2 in
12542 no) use_collect2= ;;
12543 "") ;;
12545 host_xm_defines="${host_xm_defines} USE_COLLECT2"
12546 xm_defines="${xm_defines} USE_COLLECT2"
12547 case $host_can_use_collect2 in
12549 as_fn_error $? "collect2 is required but cannot be built on this system" "$LINENO" 5
12551 esac
12553 esac
12556 cat >>confdefs.h <<_ACEOF
12557 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
12558 _ACEOF
12561 # ---------------------------
12562 # Assembler & linker features
12563 # ---------------------------
12565 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
12566 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
12567 # However when ld-new is first executed from the build tree, libtool will
12568 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
12569 # to the build tree. While doing this we need to use the previous-stage
12570 # linker, or we have an infinite loop. The presence of a shell script as
12571 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
12572 # the gcc/collect-ld script. So we need to know how libtool works, or
12573 # exec-tool will fail.
12576 case `pwd` in
12577 *\ * | *\ *)
12578 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
12579 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
12580 esac
12584 macro_version='2.2.7a'
12585 macro_revision='1.3134'
12599 ltmain="$ac_aux_dir/ltmain.sh"
12601 # Backslashify metacharacters that are still active within
12602 # double-quoted strings.
12603 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
12605 # Same as above, but do not quote variable references.
12606 double_quote_subst='s/\(["`\\]\)/\\\1/g'
12608 # Sed substitution to delay expansion of an escaped shell variable in a
12609 # double_quote_subst'ed string.
12610 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
12612 # Sed substitution to delay expansion of an escaped single quote.
12613 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
12615 # Sed substitution to avoid accidental globbing in evaled expressions
12616 no_glob_subst='s/\*/\\\*/g'
12618 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12619 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
12620 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
12622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
12623 $as_echo_n "checking how to print strings... " >&6; }
12624 # Test print first, because it will be a builtin if present.
12625 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
12626 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
12627 ECHO='print -r --'
12628 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
12629 ECHO='printf %s\n'
12630 else
12631 # Use this function as a fallback that always works.
12632 func_fallback_echo ()
12634 eval 'cat <<_LTECHO_EOF
12636 _LTECHO_EOF'
12638 ECHO='func_fallback_echo'
12641 # func_echo_all arg...
12642 # Invoke $ECHO with all args, space-separated.
12643 func_echo_all ()
12645 $ECHO ""
12648 case "$ECHO" in
12649 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
12650 $as_echo "printf" >&6; } ;;
12651 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
12652 $as_echo "print -r" >&6; } ;;
12653 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
12654 $as_echo "cat" >&6; } ;;
12655 esac
12670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12671 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12672 if ${ac_cv_path_SED+:} false; then :
12673 $as_echo_n "(cached) " >&6
12674 else
12675 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12676 for ac_i in 1 2 3 4 5 6 7; do
12677 ac_script="$ac_script$as_nl$ac_script"
12678 done
12679 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12680 { ac_script=; unset ac_script;}
12681 if test -z "$SED"; then
12682 ac_path_SED_found=false
12683 # Loop through the user's path and test for each of PROGNAME-LIST
12684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12685 for as_dir in $PATH
12687 IFS=$as_save_IFS
12688 test -z "$as_dir" && as_dir=.
12689 for ac_prog in sed gsed; do
12690 for ac_exec_ext in '' $ac_executable_extensions; do
12691 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
12692 as_fn_executable_p "$ac_path_SED" || continue
12693 # Check for GNU ac_path_SED and select it if it is found.
12694 # Check for GNU $ac_path_SED
12695 case `"$ac_path_SED" --version 2>&1` in
12696 *GNU*)
12697 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
12699 ac_count=0
12700 $as_echo_n 0123456789 >"conftest.in"
12701 while :
12703 cat "conftest.in" "conftest.in" >"conftest.tmp"
12704 mv "conftest.tmp" "conftest.in"
12705 cp "conftest.in" "conftest.nl"
12706 $as_echo '' >> "conftest.nl"
12707 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
12708 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12709 as_fn_arith $ac_count + 1 && ac_count=$as_val
12710 if test $ac_count -gt ${ac_path_SED_max-0}; then
12711 # Best one so far, save it but keep looking for a better one
12712 ac_cv_path_SED="$ac_path_SED"
12713 ac_path_SED_max=$ac_count
12715 # 10*(2^10) chars as input seems more than enough
12716 test $ac_count -gt 10 && break
12717 done
12718 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12719 esac
12721 $ac_path_SED_found && break 3
12722 done
12723 done
12724 done
12725 IFS=$as_save_IFS
12726 if test -z "$ac_cv_path_SED"; then
12727 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
12729 else
12730 ac_cv_path_SED=$SED
12734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12735 $as_echo "$ac_cv_path_SED" >&6; }
12736 SED="$ac_cv_path_SED"
12737 rm -f conftest.sed
12739 test -z "$SED" && SED=sed
12740 Xsed="$SED -e 1s/^X//"
12752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12753 $as_echo_n "checking for fgrep... " >&6; }
12754 if ${ac_cv_path_FGREP+:} false; then :
12755 $as_echo_n "(cached) " >&6
12756 else
12757 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
12758 then ac_cv_path_FGREP="$GREP -F"
12759 else
12760 if test -z "$FGREP"; then
12761 ac_path_FGREP_found=false
12762 # Loop through the user's path and test for each of PROGNAME-LIST
12763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12764 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12766 IFS=$as_save_IFS
12767 test -z "$as_dir" && as_dir=.
12768 for ac_prog in fgrep; do
12769 for ac_exec_ext in '' $ac_executable_extensions; do
12770 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
12771 as_fn_executable_p "$ac_path_FGREP" || continue
12772 # Check for GNU ac_path_FGREP and select it if it is found.
12773 # Check for GNU $ac_path_FGREP
12774 case `"$ac_path_FGREP" --version 2>&1` in
12775 *GNU*)
12776 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
12778 ac_count=0
12779 $as_echo_n 0123456789 >"conftest.in"
12780 while :
12782 cat "conftest.in" "conftest.in" >"conftest.tmp"
12783 mv "conftest.tmp" "conftest.in"
12784 cp "conftest.in" "conftest.nl"
12785 $as_echo 'FGREP' >> "conftest.nl"
12786 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
12787 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12788 as_fn_arith $ac_count + 1 && ac_count=$as_val
12789 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12790 # Best one so far, save it but keep looking for a better one
12791 ac_cv_path_FGREP="$ac_path_FGREP"
12792 ac_path_FGREP_max=$ac_count
12794 # 10*(2^10) chars as input seems more than enough
12795 test $ac_count -gt 10 && break
12796 done
12797 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12798 esac
12800 $ac_path_FGREP_found && break 3
12801 done
12802 done
12803 done
12804 IFS=$as_save_IFS
12805 if test -z "$ac_cv_path_FGREP"; then
12806 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12808 else
12809 ac_cv_path_FGREP=$FGREP
12814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12815 $as_echo "$ac_cv_path_FGREP" >&6; }
12816 FGREP="$ac_cv_path_FGREP"
12819 test -z "$GREP" && GREP=grep
12839 # Check whether --with-gnu-ld was given.
12840 if test "${with_gnu_ld+set}" = set; then :
12841 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12842 else
12843 with_gnu_ld=no
12846 ac_prog=ld
12847 if test "$GCC" = yes; then
12848 # Check if gcc -print-prog-name=ld gives a path.
12849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12850 $as_echo_n "checking for ld used by $CC... " >&6; }
12851 case $host in
12852 *-*-mingw*)
12853 # gcc leaves a trailing carriage return which upsets mingw
12854 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12856 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12857 esac
12858 case $ac_prog in
12859 # Accept absolute paths.
12860 [\\/]* | ?:[\\/]*)
12861 re_direlt='/[^/][^/]*/\.\./'
12862 # Canonicalize the pathname of ld
12863 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12864 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12865 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12866 done
12867 test -z "$LD" && LD="$ac_prog"
12870 # If it fails, then pretend we aren't using GCC.
12871 ac_prog=ld
12874 # If it is relative, then search for the first ld in PATH.
12875 with_gnu_ld=unknown
12877 esac
12878 elif test "$with_gnu_ld" = yes; then
12879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12880 $as_echo_n "checking for GNU ld... " >&6; }
12881 else
12882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12883 $as_echo_n "checking for non-GNU ld... " >&6; }
12885 if ${lt_cv_path_LD+:} false; then :
12886 $as_echo_n "(cached) " >&6
12887 else
12888 if test -z "$LD"; then
12889 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12890 for ac_dir in $PATH; do
12891 IFS="$lt_save_ifs"
12892 test -z "$ac_dir" && ac_dir=.
12893 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12894 lt_cv_path_LD="$ac_dir/$ac_prog"
12895 # Check to see if the program is GNU ld. I'd rather use --version,
12896 # but apparently some variants of GNU ld only accept -v.
12897 # Break only if it was the GNU/non-GNU ld that we prefer.
12898 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12899 *GNU* | *'with BFD'*)
12900 test "$with_gnu_ld" != no && break
12903 test "$with_gnu_ld" != yes && break
12905 esac
12907 done
12908 IFS="$lt_save_ifs"
12909 else
12910 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12914 LD="$lt_cv_path_LD"
12915 if test -n "$LD"; then
12916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12917 $as_echo "$LD" >&6; }
12918 else
12919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12920 $as_echo "no" >&6; }
12922 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12924 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12925 if ${lt_cv_prog_gnu_ld+:} false; then :
12926 $as_echo_n "(cached) " >&6
12927 else
12928 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12929 case `$LD -v 2>&1 </dev/null` in
12930 *GNU* | *'with BFD'*)
12931 lt_cv_prog_gnu_ld=yes
12934 lt_cv_prog_gnu_ld=no
12936 esac
12938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12939 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12940 with_gnu_ld=$lt_cv_prog_gnu_ld
12950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12951 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12952 if ${lt_cv_path_NM+:} false; then :
12953 $as_echo_n "(cached) " >&6
12954 else
12955 if test -n "$NM"; then
12956 # Let the user override the test.
12957 lt_cv_path_NM="$NM"
12958 else
12959 lt_nm_to_check="${ac_tool_prefix}nm"
12960 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12961 lt_nm_to_check="$lt_nm_to_check nm"
12963 for lt_tmp_nm in $lt_nm_to_check; do
12964 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12965 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
12966 IFS="$lt_save_ifs"
12967 test -z "$ac_dir" && ac_dir=.
12968 tmp_nm="$ac_dir/$lt_tmp_nm"
12969 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
12970 # Check to see if the nm accepts a BSD-compat flag.
12971 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12972 # nm: unknown option "B" ignored
12973 # Tru64's nm complains that /dev/null is an invalid object file
12974 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12975 */dev/null* | *'Invalid file or object type'*)
12976 lt_cv_path_NM="$tmp_nm -B"
12977 break
12980 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12981 */dev/null*)
12982 lt_cv_path_NM="$tmp_nm -p"
12983 break
12986 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12987 continue # so that we can try to find one that supports BSD flags
12989 esac
12991 esac
12993 done
12994 IFS="$lt_save_ifs"
12995 done
12996 : ${lt_cv_path_NM=no}
12999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
13000 $as_echo "$lt_cv_path_NM" >&6; }
13001 if test "$lt_cv_path_NM" != "no"; then
13002 NM="$lt_cv_path_NM"
13003 else
13004 # Didn't find any BSD compatible name lister, look for dumpbin.
13005 if test -n "$DUMPBIN"; then :
13006 # Let the user override the test.
13007 else
13008 if test -n "$ac_tool_prefix"; then
13009 for ac_prog in dumpbin "link -dump"
13011 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13012 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13014 $as_echo_n "checking for $ac_word... " >&6; }
13015 if ${ac_cv_prog_DUMPBIN+:} false; then :
13016 $as_echo_n "(cached) " >&6
13017 else
13018 if test -n "$DUMPBIN"; then
13019 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
13020 else
13021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13022 for as_dir in $PATH
13024 IFS=$as_save_IFS
13025 test -z "$as_dir" && as_dir=.
13026 for ac_exec_ext in '' $ac_executable_extensions; do
13027 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13028 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
13029 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13030 break 2
13032 done
13033 done
13034 IFS=$as_save_IFS
13038 DUMPBIN=$ac_cv_prog_DUMPBIN
13039 if test -n "$DUMPBIN"; then
13040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
13041 $as_echo "$DUMPBIN" >&6; }
13042 else
13043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13044 $as_echo "no" >&6; }
13048 test -n "$DUMPBIN" && break
13049 done
13051 if test -z "$DUMPBIN"; then
13052 ac_ct_DUMPBIN=$DUMPBIN
13053 for ac_prog in dumpbin "link -dump"
13055 # Extract the first word of "$ac_prog", so it can be a program name with args.
13056 set dummy $ac_prog; ac_word=$2
13057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13058 $as_echo_n "checking for $ac_word... " >&6; }
13059 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
13060 $as_echo_n "(cached) " >&6
13061 else
13062 if test -n "$ac_ct_DUMPBIN"; then
13063 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
13064 else
13065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13066 for as_dir in $PATH
13068 IFS=$as_save_IFS
13069 test -z "$as_dir" && as_dir=.
13070 for ac_exec_ext in '' $ac_executable_extensions; do
13071 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13072 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
13073 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13074 break 2
13076 done
13077 done
13078 IFS=$as_save_IFS
13082 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
13083 if test -n "$ac_ct_DUMPBIN"; then
13084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
13085 $as_echo "$ac_ct_DUMPBIN" >&6; }
13086 else
13087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13088 $as_echo "no" >&6; }
13092 test -n "$ac_ct_DUMPBIN" && break
13093 done
13095 if test "x$ac_ct_DUMPBIN" = x; then
13096 DUMPBIN=":"
13097 else
13098 case $cross_compiling:$ac_tool_warned in
13099 yes:)
13100 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13101 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13102 ac_tool_warned=yes ;;
13103 esac
13104 DUMPBIN=$ac_ct_DUMPBIN
13108 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
13109 *COFF*)
13110 DUMPBIN="$DUMPBIN -symbols"
13113 DUMPBIN=:
13115 esac
13118 if test "$DUMPBIN" != ":"; then
13119 NM="$DUMPBIN"
13122 test -z "$NM" && NM=nm
13129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
13130 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
13131 if ${lt_cv_nm_interface+:} false; then :
13132 $as_echo_n "(cached) " >&6
13133 else
13134 lt_cv_nm_interface="BSD nm"
13135 echo "int some_variable = 0;" > conftest.$ac_ext
13136 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
13137 (eval "$ac_compile" 2>conftest.err)
13138 cat conftest.err >&5
13139 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
13140 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
13141 cat conftest.err >&5
13142 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
13143 cat conftest.out >&5
13144 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
13145 lt_cv_nm_interface="MS dumpbin"
13147 rm -f conftest*
13149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
13150 $as_echo "$lt_cv_nm_interface" >&6; }
13152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
13153 $as_echo_n "checking whether ln -s works... " >&6; }
13154 LN_S=$as_ln_s
13155 if test "$LN_S" = "ln -s"; then
13156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13157 $as_echo "yes" >&6; }
13158 else
13159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
13160 $as_echo "no, using $LN_S" >&6; }
13163 # find the maximum length of command line arguments
13164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
13165 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
13166 if ${lt_cv_sys_max_cmd_len+:} false; then :
13167 $as_echo_n "(cached) " >&6
13168 else
13170 teststring="ABCD"
13172 case $build_os in
13173 msdosdjgpp*)
13174 # On DJGPP, this test can blow up pretty badly due to problems in libc
13175 # (any single argument exceeding 2000 bytes causes a buffer overrun
13176 # during glob expansion). Even if it were fixed, the result of this
13177 # check would be larger than it should be.
13178 lt_cv_sys_max_cmd_len=12288; # 12K is about right
13181 gnu*)
13182 # Under GNU Hurd, this test is not required because there is
13183 # no limit to the length of command line arguments.
13184 # Libtool will interpret -1 as no limit whatsoever
13185 lt_cv_sys_max_cmd_len=-1;
13188 cygwin* | mingw* | cegcc*)
13189 # On Win9x/ME, this test blows up -- it succeeds, but takes
13190 # about 5 minutes as the teststring grows exponentially.
13191 # Worse, since 9x/ME are not pre-emptively multitasking,
13192 # you end up with a "frozen" computer, even though with patience
13193 # the test eventually succeeds (with a max line length of 256k).
13194 # Instead, let's just punt: use the minimum linelength reported by
13195 # all of the supported platforms: 8192 (on NT/2K/XP).
13196 lt_cv_sys_max_cmd_len=8192;
13199 mint*)
13200 # On MiNT this can take a long time and run out of memory.
13201 lt_cv_sys_max_cmd_len=8192;
13204 amigaos*)
13205 # On AmigaOS with pdksh, this test takes hours, literally.
13206 # So we just punt and use a minimum line length of 8192.
13207 lt_cv_sys_max_cmd_len=8192;
13210 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
13211 # This has been around since 386BSD, at least. Likely further.
13212 if test -x /sbin/sysctl; then
13213 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13214 elif test -x /usr/sbin/sysctl; then
13215 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13216 else
13217 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
13219 # And add a safety zone
13220 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13221 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13224 interix*)
13225 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13226 lt_cv_sys_max_cmd_len=196608
13229 osf*)
13230 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13231 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13232 # nice to cause kernel panics so lets avoid the loop below.
13233 # First set a reasonable default.
13234 lt_cv_sys_max_cmd_len=16384
13236 if test -x /sbin/sysconfig; then
13237 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13238 *1*) lt_cv_sys_max_cmd_len=-1 ;;
13239 esac
13242 sco3.2v5*)
13243 lt_cv_sys_max_cmd_len=102400
13245 sysv5* | sco5v6* | sysv4.2uw2*)
13246 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13247 if test -n "$kargmax"; then
13248 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
13249 else
13250 lt_cv_sys_max_cmd_len=32768
13254 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
13255 if test -n "$lt_cv_sys_max_cmd_len"; then
13256 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13257 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13258 else
13259 # Make teststring a little bigger before we do anything with it.
13260 # a 1K string should be a reasonable start.
13261 for i in 1 2 3 4 5 6 7 8 ; do
13262 teststring=$teststring$teststring
13263 done
13264 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13265 # If test is not a shell built-in, we'll probably end up computing a
13266 # maximum length that is only half of the actual maximum length, but
13267 # we can't tell.
13268 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
13269 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
13270 test $i != 17 # 1/2 MB should be enough
13272 i=`expr $i + 1`
13273 teststring=$teststring$teststring
13274 done
13275 # Only check the string length outside the loop.
13276 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
13277 teststring=
13278 # Add a significant safety factor because C++ compilers can tack on
13279 # massive amounts of additional arguments before passing them to the
13280 # linker. It appears as though 1/2 is a usable value.
13281 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13284 esac
13288 if test -n $lt_cv_sys_max_cmd_len ; then
13289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
13290 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
13291 else
13292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
13293 $as_echo "none" >&6; }
13295 max_cmd_len=$lt_cv_sys_max_cmd_len
13302 : ${CP="cp -f"}
13303 : ${MV="mv -f"}
13304 : ${RM="rm -f"}
13306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
13307 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
13308 # Try some XSI features
13309 xsi_shell=no
13310 ( _lt_dummy="a/b/c"
13311 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
13312 = c,a/b,, \
13313 && eval 'test $(( 1 + 1 )) -eq 2 \
13314 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
13315 && xsi_shell=yes
13316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
13317 $as_echo "$xsi_shell" >&6; }
13320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
13321 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
13322 lt_shell_append=no
13323 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
13324 >/dev/null 2>&1 \
13325 && lt_shell_append=yes
13326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
13327 $as_echo "$lt_shell_append" >&6; }
13330 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13331 lt_unset=unset
13332 else
13333 lt_unset=false
13340 # test EBCDIC or ASCII
13341 case `echo X|tr X '\101'` in
13342 A) # ASCII based system
13343 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
13344 lt_SP2NL='tr \040 \012'
13345 lt_NL2SP='tr \015\012 \040\040'
13347 *) # EBCDIC based system
13348 lt_SP2NL='tr \100 \n'
13349 lt_NL2SP='tr \r\n \100\100'
13351 esac
13361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
13362 $as_echo_n "checking for $LD option to reload object files... " >&6; }
13363 if ${lt_cv_ld_reload_flag+:} false; then :
13364 $as_echo_n "(cached) " >&6
13365 else
13366 lt_cv_ld_reload_flag='-r'
13368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
13369 $as_echo "$lt_cv_ld_reload_flag" >&6; }
13370 reload_flag=$lt_cv_ld_reload_flag
13371 case $reload_flag in
13372 "" | " "*) ;;
13373 *) reload_flag=" $reload_flag" ;;
13374 esac
13375 reload_cmds='$LD$reload_flag -o $output$reload_objs'
13376 case $host_os in
13377 darwin*)
13378 if test "$GCC" = yes; then
13379 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
13380 else
13381 reload_cmds='$LD$reload_flag -o $output$reload_objs'
13384 esac
13394 if test -n "$ac_tool_prefix"; then
13395 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
13396 set dummy ${ac_tool_prefix}objdump; ac_word=$2
13397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13398 $as_echo_n "checking for $ac_word... " >&6; }
13399 if ${ac_cv_prog_OBJDUMP+:} false; then :
13400 $as_echo_n "(cached) " >&6
13401 else
13402 if test -n "$OBJDUMP"; then
13403 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
13404 else
13405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13406 for as_dir in $PATH
13408 IFS=$as_save_IFS
13409 test -z "$as_dir" && as_dir=.
13410 for ac_exec_ext in '' $ac_executable_extensions; do
13411 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13412 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
13413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13414 break 2
13416 done
13417 done
13418 IFS=$as_save_IFS
13422 OBJDUMP=$ac_cv_prog_OBJDUMP
13423 if test -n "$OBJDUMP"; then
13424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
13425 $as_echo "$OBJDUMP" >&6; }
13426 else
13427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13428 $as_echo "no" >&6; }
13433 if test -z "$ac_cv_prog_OBJDUMP"; then
13434 ac_ct_OBJDUMP=$OBJDUMP
13435 # Extract the first word of "objdump", so it can be a program name with args.
13436 set dummy objdump; ac_word=$2
13437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13438 $as_echo_n "checking for $ac_word... " >&6; }
13439 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
13440 $as_echo_n "(cached) " >&6
13441 else
13442 if test -n "$ac_ct_OBJDUMP"; then
13443 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
13444 else
13445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13446 for as_dir in $PATH
13448 IFS=$as_save_IFS
13449 test -z "$as_dir" && as_dir=.
13450 for ac_exec_ext in '' $ac_executable_extensions; do
13451 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13452 ac_cv_prog_ac_ct_OBJDUMP="objdump"
13453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13454 break 2
13456 done
13457 done
13458 IFS=$as_save_IFS
13462 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
13463 if test -n "$ac_ct_OBJDUMP"; then
13464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
13465 $as_echo "$ac_ct_OBJDUMP" >&6; }
13466 else
13467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13468 $as_echo "no" >&6; }
13471 if test "x$ac_ct_OBJDUMP" = x; then
13472 OBJDUMP="false"
13473 else
13474 case $cross_compiling:$ac_tool_warned in
13475 yes:)
13476 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13477 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13478 ac_tool_warned=yes ;;
13479 esac
13480 OBJDUMP=$ac_ct_OBJDUMP
13482 else
13483 OBJDUMP="$ac_cv_prog_OBJDUMP"
13486 test -z "$OBJDUMP" && OBJDUMP=objdump
13496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
13497 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
13498 if ${lt_cv_deplibs_check_method+:} false; then :
13499 $as_echo_n "(cached) " >&6
13500 else
13501 lt_cv_file_magic_cmd='$MAGIC_CMD'
13502 lt_cv_file_magic_test_file=
13503 lt_cv_deplibs_check_method='unknown'
13504 # Need to set the preceding variable on all platforms that support
13505 # interlibrary dependencies.
13506 # 'none' -- dependencies not supported.
13507 # `unknown' -- same as none, but documents that we really don't know.
13508 # 'pass_all' -- all dependencies passed with no checks.
13509 # 'test_compile' -- check by making test program.
13510 # 'file_magic [[regex]]' -- check by looking for files in library path
13511 # which responds to the $file_magic_cmd with a given extended regex.
13512 # If you have `file' or equivalent on your system and you're not sure
13513 # whether `pass_all' will *always* work, you probably want this one.
13515 case $host_os in
13516 aix[4-9]*)
13517 lt_cv_deplibs_check_method=pass_all
13520 beos*)
13521 lt_cv_deplibs_check_method=pass_all
13524 bsdi[45]*)
13525 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
13526 lt_cv_file_magic_cmd='/usr/bin/file -L'
13527 lt_cv_file_magic_test_file=/shlib/libc.so
13530 cygwin*)
13531 # func_win32_libid is a shell function defined in ltmain.sh
13532 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13533 lt_cv_file_magic_cmd='func_win32_libid'
13536 mingw* | pw32*)
13537 # Base MSYS/MinGW do not provide the 'file' command needed by
13538 # func_win32_libid shell function, so use a weaker test based on 'objdump',
13539 # unless we find 'file', for example because we are cross-compiling.
13540 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
13541 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
13542 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13543 lt_cv_file_magic_cmd='func_win32_libid'
13544 else
13545 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
13546 lt_cv_file_magic_cmd='$OBJDUMP -f'
13550 cegcc*)
13551 # use the weaker test based on 'objdump'. See mingw*.
13552 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
13553 lt_cv_file_magic_cmd='$OBJDUMP -f'
13556 darwin* | rhapsody*)
13557 lt_cv_deplibs_check_method=pass_all
13560 freebsd* | dragonfly*)
13561 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13562 case $host_cpu in
13563 i*86 )
13564 # Not sure whether the presence of OpenBSD here was a mistake.
13565 # Let's accept both of them until this is cleared up.
13566 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
13567 lt_cv_file_magic_cmd=/usr/bin/file
13568 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
13570 esac
13571 else
13572 lt_cv_deplibs_check_method=pass_all
13576 gnu*)
13577 lt_cv_deplibs_check_method=pass_all
13580 haiku*)
13581 lt_cv_deplibs_check_method=pass_all
13584 hpux10.20* | hpux11*)
13585 lt_cv_file_magic_cmd=/usr/bin/file
13586 case $host_cpu in
13587 ia64*)
13588 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
13589 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
13591 hppa*64*)
13592 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]'
13593 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
13596 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
13597 lt_cv_file_magic_test_file=/usr/lib/libc.sl
13599 esac
13602 interix[3-9]*)
13603 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
13604 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
13607 irix5* | irix6* | nonstopux*)
13608 case $LD in
13609 *-32|*"-32 ") libmagic=32-bit;;
13610 *-n32|*"-n32 ") libmagic=N32;;
13611 *-64|*"-64 ") libmagic=64-bit;;
13612 *) libmagic=never-match;;
13613 esac
13614 lt_cv_deplibs_check_method=pass_all
13617 # This must be Linux ELF.
13618 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13619 lt_cv_deplibs_check_method=pass_all
13622 netbsd*)
13623 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13624 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13625 else
13626 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
13630 newos6*)
13631 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
13632 lt_cv_file_magic_cmd=/usr/bin/file
13633 lt_cv_file_magic_test_file=/usr/lib/libnls.so
13636 *nto* | *qnx*)
13637 lt_cv_deplibs_check_method=pass_all
13640 openbsd*)
13641 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13642 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
13643 else
13644 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13648 osf3* | osf4* | osf5*)
13649 lt_cv_deplibs_check_method=pass_all
13652 rdos*)
13653 lt_cv_deplibs_check_method=pass_all
13656 solaris*)
13657 lt_cv_deplibs_check_method=pass_all
13660 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13661 lt_cv_deplibs_check_method=pass_all
13664 sysv4 | sysv4.3*)
13665 case $host_vendor in
13666 motorola)
13667 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]'
13668 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
13670 ncr)
13671 lt_cv_deplibs_check_method=pass_all
13673 sequent)
13674 lt_cv_file_magic_cmd='/bin/file'
13675 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13677 sni)
13678 lt_cv_file_magic_cmd='/bin/file'
13679 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
13680 lt_cv_file_magic_test_file=/lib/libc.so
13682 siemens)
13683 lt_cv_deplibs_check_method=pass_all
13686 lt_cv_deplibs_check_method=pass_all
13688 esac
13691 tpf*)
13692 lt_cv_deplibs_check_method=pass_all
13694 esac
13697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
13698 $as_echo "$lt_cv_deplibs_check_method" >&6; }
13699 file_magic_cmd=$lt_cv_file_magic_cmd
13700 deplibs_check_method=$lt_cv_deplibs_check_method
13701 test -z "$deplibs_check_method" && deplibs_check_method=unknown
13714 if test -n "$ac_tool_prefix"; then
13715 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13716 set dummy ${ac_tool_prefix}ar; ac_word=$2
13717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13718 $as_echo_n "checking for $ac_word... " >&6; }
13719 if ${ac_cv_prog_AR+:} false; then :
13720 $as_echo_n "(cached) " >&6
13721 else
13722 if test -n "$AR"; then
13723 ac_cv_prog_AR="$AR" # Let the user override the test.
13724 else
13725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13726 for as_dir in $PATH
13728 IFS=$as_save_IFS
13729 test -z "$as_dir" && as_dir=.
13730 for ac_exec_ext in '' $ac_executable_extensions; do
13731 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13732 ac_cv_prog_AR="${ac_tool_prefix}ar"
13733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13734 break 2
13736 done
13737 done
13738 IFS=$as_save_IFS
13742 AR=$ac_cv_prog_AR
13743 if test -n "$AR"; then
13744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
13745 $as_echo "$AR" >&6; }
13746 else
13747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13748 $as_echo "no" >&6; }
13753 if test -z "$ac_cv_prog_AR"; then
13754 ac_ct_AR=$AR
13755 # Extract the first word of "ar", so it can be a program name with args.
13756 set dummy ar; ac_word=$2
13757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13758 $as_echo_n "checking for $ac_word... " >&6; }
13759 if ${ac_cv_prog_ac_ct_AR+:} false; then :
13760 $as_echo_n "(cached) " >&6
13761 else
13762 if test -n "$ac_ct_AR"; then
13763 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13764 else
13765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13766 for as_dir in $PATH
13768 IFS=$as_save_IFS
13769 test -z "$as_dir" && as_dir=.
13770 for ac_exec_ext in '' $ac_executable_extensions; do
13771 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13772 ac_cv_prog_ac_ct_AR="ar"
13773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13774 break 2
13776 done
13777 done
13778 IFS=$as_save_IFS
13782 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13783 if test -n "$ac_ct_AR"; then
13784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
13785 $as_echo "$ac_ct_AR" >&6; }
13786 else
13787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13788 $as_echo "no" >&6; }
13791 if test "x$ac_ct_AR" = x; then
13792 AR="false"
13793 else
13794 case $cross_compiling:$ac_tool_warned in
13795 yes:)
13796 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13797 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13798 ac_tool_warned=yes ;;
13799 esac
13800 AR=$ac_ct_AR
13802 else
13803 AR="$ac_cv_prog_AR"
13806 test -z "$AR" && AR=ar
13807 test -z "$AR_FLAGS" && AR_FLAGS=cru
13819 if test -n "$ac_tool_prefix"; then
13820 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13821 set dummy ${ac_tool_prefix}strip; ac_word=$2
13822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13823 $as_echo_n "checking for $ac_word... " >&6; }
13824 if ${ac_cv_prog_STRIP+:} false; then :
13825 $as_echo_n "(cached) " >&6
13826 else
13827 if test -n "$STRIP"; then
13828 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13829 else
13830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13831 for as_dir in $PATH
13833 IFS=$as_save_IFS
13834 test -z "$as_dir" && as_dir=.
13835 for ac_exec_ext in '' $ac_executable_extensions; do
13836 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13837 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13839 break 2
13841 done
13842 done
13843 IFS=$as_save_IFS
13847 STRIP=$ac_cv_prog_STRIP
13848 if test -n "$STRIP"; then
13849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13850 $as_echo "$STRIP" >&6; }
13851 else
13852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13853 $as_echo "no" >&6; }
13858 if test -z "$ac_cv_prog_STRIP"; then
13859 ac_ct_STRIP=$STRIP
13860 # Extract the first word of "strip", so it can be a program name with args.
13861 set dummy strip; ac_word=$2
13862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13863 $as_echo_n "checking for $ac_word... " >&6; }
13864 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
13865 $as_echo_n "(cached) " >&6
13866 else
13867 if test -n "$ac_ct_STRIP"; then
13868 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13869 else
13870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13871 for as_dir in $PATH
13873 IFS=$as_save_IFS
13874 test -z "$as_dir" && as_dir=.
13875 for ac_exec_ext in '' $ac_executable_extensions; do
13876 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13877 ac_cv_prog_ac_ct_STRIP="strip"
13878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13879 break 2
13881 done
13882 done
13883 IFS=$as_save_IFS
13887 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13888 if test -n "$ac_ct_STRIP"; then
13889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
13890 $as_echo "$ac_ct_STRIP" >&6; }
13891 else
13892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13893 $as_echo "no" >&6; }
13896 if test "x$ac_ct_STRIP" = x; then
13897 STRIP=":"
13898 else
13899 case $cross_compiling:$ac_tool_warned in
13900 yes:)
13901 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13902 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13903 ac_tool_warned=yes ;;
13904 esac
13905 STRIP=$ac_ct_STRIP
13907 else
13908 STRIP="$ac_cv_prog_STRIP"
13911 test -z "$STRIP" && STRIP=:
13918 if test -n "$ac_tool_prefix"; then
13919 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13920 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13922 $as_echo_n "checking for $ac_word... " >&6; }
13923 if ${ac_cv_prog_RANLIB+:} false; then :
13924 $as_echo_n "(cached) " >&6
13925 else
13926 if test -n "$RANLIB"; then
13927 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13928 else
13929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13930 for as_dir in $PATH
13932 IFS=$as_save_IFS
13933 test -z "$as_dir" && as_dir=.
13934 for ac_exec_ext in '' $ac_executable_extensions; do
13935 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13936 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13938 break 2
13940 done
13941 done
13942 IFS=$as_save_IFS
13946 RANLIB=$ac_cv_prog_RANLIB
13947 if test -n "$RANLIB"; then
13948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13949 $as_echo "$RANLIB" >&6; }
13950 else
13951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13952 $as_echo "no" >&6; }
13957 if test -z "$ac_cv_prog_RANLIB"; then
13958 ac_ct_RANLIB=$RANLIB
13959 # Extract the first word of "ranlib", so it can be a program name with args.
13960 set dummy ranlib; ac_word=$2
13961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13962 $as_echo_n "checking for $ac_word... " >&6; }
13963 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
13964 $as_echo_n "(cached) " >&6
13965 else
13966 if test -n "$ac_ct_RANLIB"; then
13967 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13968 else
13969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13970 for as_dir in $PATH
13972 IFS=$as_save_IFS
13973 test -z "$as_dir" && as_dir=.
13974 for ac_exec_ext in '' $ac_executable_extensions; do
13975 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13976 ac_cv_prog_ac_ct_RANLIB="ranlib"
13977 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13978 break 2
13980 done
13981 done
13982 IFS=$as_save_IFS
13986 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13987 if test -n "$ac_ct_RANLIB"; then
13988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
13989 $as_echo "$ac_ct_RANLIB" >&6; }
13990 else
13991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13992 $as_echo "no" >&6; }
13995 if test "x$ac_ct_RANLIB" = x; then
13996 RANLIB=":"
13997 else
13998 case $cross_compiling:$ac_tool_warned in
13999 yes:)
14000 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14001 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14002 ac_tool_warned=yes ;;
14003 esac
14004 RANLIB=$ac_ct_RANLIB
14006 else
14007 RANLIB="$ac_cv_prog_RANLIB"
14010 test -z "$RANLIB" && RANLIB=:
14017 # Determine commands to create old-style static archives.
14018 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
14019 old_postinstall_cmds='chmod 644 $oldlib'
14020 old_postuninstall_cmds=
14022 if test -n "$RANLIB"; then
14023 case $host_os in
14024 openbsd*)
14025 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
14028 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
14030 esac
14031 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
14034 case $host_os in
14035 darwin*)
14036 lock_old_archive_extraction=yes ;;
14038 lock_old_archive_extraction=no ;;
14039 esac
14079 # If no C compiler was specified, use CC.
14080 LTCC=${LTCC-"$CC"}
14082 # If no C compiler flags were specified, use CFLAGS.
14083 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14085 # Allow CC to be a program name with arguments.
14086 compiler=$CC
14089 # Check for command to grab the raw symbol name followed by C symbol from nm.
14090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
14091 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
14092 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
14093 $as_echo_n "(cached) " >&6
14094 else
14096 # These are sane defaults that work on at least a few old systems.
14097 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
14099 # Character class describing NM global symbol codes.
14100 symcode='[BCDEGRST]'
14102 # Regexp to match symbols that can be accessed directly from C.
14103 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
14105 # Define system-specific variables.
14106 case $host_os in
14107 aix*)
14108 symcode='[BCDT]'
14110 cygwin* | mingw* | pw32* | cegcc*)
14111 symcode='[ABCDGISTW]'
14113 hpux*)
14114 if test "$host_cpu" = ia64; then
14115 symcode='[ABCDEGRST]'
14118 irix* | nonstopux*)
14119 symcode='[BCDEGRST]'
14121 osf*)
14122 symcode='[BCDEGQRST]'
14124 solaris*)
14125 symcode='[BDRT]'
14127 sco3.2v5*)
14128 symcode='[DT]'
14130 sysv4.2uw2*)
14131 symcode='[DT]'
14133 sysv5* | sco5v6* | unixware* | OpenUNIX*)
14134 symcode='[ABDT]'
14136 sysv4)
14137 symcode='[DFNSTU]'
14139 esac
14141 # If we're using GNU nm, then use its standard symbol codes.
14142 case `$NM -V 2>&1` in
14143 *GNU* | *'with BFD'*)
14144 symcode='[ABCDGIRSTW]' ;;
14145 esac
14147 # Transform an extracted symbol line into a proper C declaration.
14148 # Some systems (esp. on ia64) link data and code symbols differently,
14149 # so use this general approach.
14150 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
14152 # Transform an extracted symbol line into symbol name and symbol address
14153 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
14154 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'"
14156 # Handle CRLF in mingw tool chain
14157 opt_cr=
14158 case $build_os in
14159 mingw*)
14160 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
14162 esac
14164 # Try without a prefix underscore, then with it.
14165 for ac_symprfx in "" "_"; do
14167 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
14168 symxfrm="\\1 $ac_symprfx\\2 \\2"
14170 # Write the raw and C identifiers.
14171 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
14172 # Fake it for dumpbin and say T for any non-static function
14173 # and D for any global variable.
14174 # Also find C++ and __fastcall symbols from MSVC++,
14175 # which start with @ or ?.
14176 lt_cv_sys_global_symbol_pipe="$AWK '"\
14177 " {last_section=section; section=\$ 3};"\
14178 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
14179 " \$ 0!~/External *\|/{next};"\
14180 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
14181 " {if(hide[section]) next};"\
14182 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
14183 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
14184 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
14185 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
14186 " ' prfx=^$ac_symprfx"
14187 else
14188 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
14191 # Check to see that the pipe works correctly.
14192 pipe_works=no
14194 rm -f conftest*
14195 cat > conftest.$ac_ext <<_LT_EOF
14196 #ifdef __cplusplus
14197 extern "C" {
14198 #endif
14199 char nm_test_var;
14200 void nm_test_func(void);
14201 void nm_test_func(void){}
14202 #ifdef __cplusplus
14204 #endif
14205 int main(){nm_test_var='a';nm_test_func();return(0);}
14206 _LT_EOF
14208 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14209 (eval $ac_compile) 2>&5
14210 ac_status=$?
14211 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14212 test $ac_status = 0; }; then
14213 # Now try to grab the symbols.
14214 nlist=conftest.nm
14215 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
14216 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
14217 ac_status=$?
14218 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14219 test $ac_status = 0; } && test -s "$nlist"; then
14220 # Try sorting and uniquifying the output.
14221 if sort "$nlist" | uniq > "$nlist"T; then
14222 mv -f "$nlist"T "$nlist"
14223 else
14224 rm -f "$nlist"T
14227 # Make sure that we snagged all the symbols we need.
14228 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
14229 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
14230 cat <<_LT_EOF > conftest.$ac_ext
14231 #ifdef __cplusplus
14232 extern "C" {
14233 #endif
14235 _LT_EOF
14236 # Now generate the symbol file.
14237 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
14239 cat <<_LT_EOF >> conftest.$ac_ext
14241 /* The mapping between symbol names and symbols. */
14242 const struct {
14243 const char *name;
14244 void *address;
14246 lt__PROGRAM__LTX_preloaded_symbols[] =
14248 { "@PROGRAM@", (void *) 0 },
14249 _LT_EOF
14250 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
14251 cat <<\_LT_EOF >> conftest.$ac_ext
14252 {0, (void *) 0}
14255 /* This works around a problem in FreeBSD linker */
14256 #ifdef FREEBSD_WORKAROUND
14257 static const void *lt_preloaded_setup() {
14258 return lt__PROGRAM__LTX_preloaded_symbols;
14260 #endif
14262 #ifdef __cplusplus
14264 #endif
14265 _LT_EOF
14266 # Now try linking the two files.
14267 mv conftest.$ac_objext conftstm.$ac_objext
14268 lt_save_LIBS="$LIBS"
14269 lt_save_CFLAGS="$CFLAGS"
14270 LIBS="conftstm.$ac_objext"
14271 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
14272 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14273 (eval $ac_link) 2>&5
14274 ac_status=$?
14275 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14276 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
14277 pipe_works=yes
14279 LIBS="$lt_save_LIBS"
14280 CFLAGS="$lt_save_CFLAGS"
14281 else
14282 echo "cannot find nm_test_func in $nlist" >&5
14284 else
14285 echo "cannot find nm_test_var in $nlist" >&5
14287 else
14288 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
14290 else
14291 echo "$progname: failed program was:" >&5
14292 cat conftest.$ac_ext >&5
14294 rm -rf conftest* conftst*
14296 # Do not use the global_symbol_pipe unless it works.
14297 if test "$pipe_works" = yes; then
14298 break
14299 else
14300 lt_cv_sys_global_symbol_pipe=
14302 done
14306 if test -z "$lt_cv_sys_global_symbol_pipe"; then
14307 lt_cv_sys_global_symbol_to_cdecl=
14309 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
14310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
14311 $as_echo "failed" >&6; }
14312 else
14313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
14314 $as_echo "ok" >&6; }
14338 # Check whether --enable-libtool-lock was given.
14339 if test "${enable_libtool_lock+set}" = set; then :
14340 enableval=$enable_libtool_lock;
14343 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14345 # Some flags need to be propagated to the compiler or linker for good
14346 # libtool support.
14347 case $host in
14348 ia64-*-hpux*)
14349 # Find out which ABI we are using.
14350 echo 'int i;' > conftest.$ac_ext
14351 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14352 (eval $ac_compile) 2>&5
14353 ac_status=$?
14354 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14355 test $ac_status = 0; }; then
14356 case `/usr/bin/file conftest.$ac_objext` in
14357 *ELF-32*)
14358 HPUX_IA64_MODE="32"
14360 *ELF-64*)
14361 HPUX_IA64_MODE="64"
14363 esac
14365 rm -rf conftest*
14367 *-*-irix6*)
14368 # Find out which ABI we are using.
14369 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
14370 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14371 (eval $ac_compile) 2>&5
14372 ac_status=$?
14373 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14374 test $ac_status = 0; }; then
14375 if test "$lt_cv_prog_gnu_ld" = yes; then
14376 case `/usr/bin/file conftest.$ac_objext` in
14377 *32-bit*)
14378 LD="${LD-ld} -melf32bsmip"
14380 *N32*)
14381 LD="${LD-ld} -melf32bmipn32"
14383 *64-bit*)
14384 LD="${LD-ld} -melf64bmip"
14386 esac
14387 else
14388 case `/usr/bin/file conftest.$ac_objext` in
14389 *32-bit*)
14390 LD="${LD-ld} -32"
14392 *N32*)
14393 LD="${LD-ld} -n32"
14395 *64-bit*)
14396 LD="${LD-ld} -64"
14398 esac
14401 rm -rf conftest*
14404 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
14405 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
14406 # Find out which ABI we are using.
14407 echo 'int i;' > conftest.$ac_ext
14408 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14409 (eval $ac_compile) 2>&5
14410 ac_status=$?
14411 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14412 test $ac_status = 0; }; then
14413 case `/usr/bin/file conftest.o` in
14414 *32-bit*)
14415 case $host in
14416 x86_64-*kfreebsd*-gnu)
14417 LD="${LD-ld} -m elf_i386_fbsd"
14419 x86_64-*linux*)
14420 case `/usr/bin/file conftest.o` in
14421 *x86-64*)
14422 LD="${LD-ld} -m elf32_x86_64"
14425 LD="${LD-ld} -m elf_i386"
14427 esac
14429 powerpc64le-*linux*)
14430 LD="${LD-ld} -m elf32lppclinux"
14432 powerpc64-*linux*)
14433 LD="${LD-ld} -m elf32ppclinux"
14435 s390x-*linux*)
14436 LD="${LD-ld} -m elf_s390"
14438 sparc64-*linux*)
14439 LD="${LD-ld} -m elf32_sparc"
14441 esac
14443 *64-bit*)
14444 case $host in
14445 x86_64-*kfreebsd*-gnu)
14446 LD="${LD-ld} -m elf_x86_64_fbsd"
14448 x86_64-*linux*)
14449 LD="${LD-ld} -m elf_x86_64"
14451 powerpcle-*linux*)
14452 LD="${LD-ld} -m elf64lppc"
14454 powerpc-*linux*)
14455 LD="${LD-ld} -m elf64ppc"
14457 s390*-*linux*|s390*-*tpf*)
14458 LD="${LD-ld} -m elf64_s390"
14460 sparc*-*linux*)
14461 LD="${LD-ld} -m elf64_sparc"
14463 esac
14465 esac
14467 rm -rf conftest*
14470 *-*-sco3.2v5*)
14471 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
14472 SAVE_CFLAGS="$CFLAGS"
14473 CFLAGS="$CFLAGS -belf"
14474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
14475 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
14476 if ${lt_cv_cc_needs_belf+:} false; then :
14477 $as_echo_n "(cached) " >&6
14478 else
14479 ac_ext=c
14480 ac_cpp='$CPP $CPPFLAGS'
14481 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14482 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14483 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14486 /* end confdefs.h. */
14489 main ()
14493 return 0;
14495 _ACEOF
14496 if ac_fn_c_try_link "$LINENO"; then :
14497 lt_cv_cc_needs_belf=yes
14498 else
14499 lt_cv_cc_needs_belf=no
14501 rm -f core conftest.err conftest.$ac_objext \
14502 conftest$ac_exeext conftest.$ac_ext
14503 ac_ext=c
14504 ac_cpp='$CPP $CPPFLAGS'
14505 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14506 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14507 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
14511 $as_echo "$lt_cv_cc_needs_belf" >&6; }
14512 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
14513 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
14514 CFLAGS="$SAVE_CFLAGS"
14517 sparc*-*solaris*)
14518 # Find out which ABI we are using.
14519 echo 'int i;' > conftest.$ac_ext
14520 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14521 (eval $ac_compile) 2>&5
14522 ac_status=$?
14523 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14524 test $ac_status = 0; }; then
14525 case `/usr/bin/file conftest.o` in
14526 *64-bit*)
14527 case $lt_cv_prog_gnu_ld in
14528 yes*) LD="${LD-ld} -m elf64_sparc" ;;
14530 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
14531 LD="${LD-ld} -64"
14534 esac
14536 esac
14538 rm -rf conftest*
14540 esac
14542 need_locks="$enable_libtool_lock"
14545 case $host_os in
14546 rhapsody* | darwin*)
14547 if test -n "$ac_tool_prefix"; then
14548 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
14549 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
14550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14551 $as_echo_n "checking for $ac_word... " >&6; }
14552 if ${ac_cv_prog_DSYMUTIL+:} false; then :
14553 $as_echo_n "(cached) " >&6
14554 else
14555 if test -n "$DSYMUTIL"; then
14556 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
14557 else
14558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14559 for as_dir in $PATH
14561 IFS=$as_save_IFS
14562 test -z "$as_dir" && as_dir=.
14563 for ac_exec_ext in '' $ac_executable_extensions; do
14564 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14565 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
14566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14567 break 2
14569 done
14570 done
14571 IFS=$as_save_IFS
14575 DSYMUTIL=$ac_cv_prog_DSYMUTIL
14576 if test -n "$DSYMUTIL"; then
14577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
14578 $as_echo "$DSYMUTIL" >&6; }
14579 else
14580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14581 $as_echo "no" >&6; }
14586 if test -z "$ac_cv_prog_DSYMUTIL"; then
14587 ac_ct_DSYMUTIL=$DSYMUTIL
14588 # Extract the first word of "dsymutil", so it can be a program name with args.
14589 set dummy dsymutil; ac_word=$2
14590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14591 $as_echo_n "checking for $ac_word... " >&6; }
14592 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
14593 $as_echo_n "(cached) " >&6
14594 else
14595 if test -n "$ac_ct_DSYMUTIL"; then
14596 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
14597 else
14598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14599 for as_dir in $PATH
14601 IFS=$as_save_IFS
14602 test -z "$as_dir" && as_dir=.
14603 for ac_exec_ext in '' $ac_executable_extensions; do
14604 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14605 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
14606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14607 break 2
14609 done
14610 done
14611 IFS=$as_save_IFS
14615 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
14616 if test -n "$ac_ct_DSYMUTIL"; then
14617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
14618 $as_echo "$ac_ct_DSYMUTIL" >&6; }
14619 else
14620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14621 $as_echo "no" >&6; }
14624 if test "x$ac_ct_DSYMUTIL" = x; then
14625 DSYMUTIL=":"
14626 else
14627 case $cross_compiling:$ac_tool_warned in
14628 yes:)
14629 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14630 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14631 ac_tool_warned=yes ;;
14632 esac
14633 DSYMUTIL=$ac_ct_DSYMUTIL
14635 else
14636 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
14639 if test -n "$ac_tool_prefix"; then
14640 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
14641 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
14642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14643 $as_echo_n "checking for $ac_word... " >&6; }
14644 if ${ac_cv_prog_NMEDIT+:} false; then :
14645 $as_echo_n "(cached) " >&6
14646 else
14647 if test -n "$NMEDIT"; then
14648 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
14649 else
14650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14651 for as_dir in $PATH
14653 IFS=$as_save_IFS
14654 test -z "$as_dir" && as_dir=.
14655 for ac_exec_ext in '' $ac_executable_extensions; do
14656 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14657 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
14658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14659 break 2
14661 done
14662 done
14663 IFS=$as_save_IFS
14667 NMEDIT=$ac_cv_prog_NMEDIT
14668 if test -n "$NMEDIT"; then
14669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
14670 $as_echo "$NMEDIT" >&6; }
14671 else
14672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14673 $as_echo "no" >&6; }
14678 if test -z "$ac_cv_prog_NMEDIT"; then
14679 ac_ct_NMEDIT=$NMEDIT
14680 # Extract the first word of "nmedit", so it can be a program name with args.
14681 set dummy nmedit; ac_word=$2
14682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14683 $as_echo_n "checking for $ac_word... " >&6; }
14684 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
14685 $as_echo_n "(cached) " >&6
14686 else
14687 if test -n "$ac_ct_NMEDIT"; then
14688 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
14689 else
14690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14691 for as_dir in $PATH
14693 IFS=$as_save_IFS
14694 test -z "$as_dir" && as_dir=.
14695 for ac_exec_ext in '' $ac_executable_extensions; do
14696 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14697 ac_cv_prog_ac_ct_NMEDIT="nmedit"
14698 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14699 break 2
14701 done
14702 done
14703 IFS=$as_save_IFS
14707 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
14708 if test -n "$ac_ct_NMEDIT"; then
14709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
14710 $as_echo "$ac_ct_NMEDIT" >&6; }
14711 else
14712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14713 $as_echo "no" >&6; }
14716 if test "x$ac_ct_NMEDIT" = x; then
14717 NMEDIT=":"
14718 else
14719 case $cross_compiling:$ac_tool_warned in
14720 yes:)
14721 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14722 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14723 ac_tool_warned=yes ;;
14724 esac
14725 NMEDIT=$ac_ct_NMEDIT
14727 else
14728 NMEDIT="$ac_cv_prog_NMEDIT"
14731 if test -n "$ac_tool_prefix"; then
14732 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
14733 set dummy ${ac_tool_prefix}lipo; ac_word=$2
14734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14735 $as_echo_n "checking for $ac_word... " >&6; }
14736 if ${ac_cv_prog_LIPO+:} false; then :
14737 $as_echo_n "(cached) " >&6
14738 else
14739 if test -n "$LIPO"; then
14740 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
14741 else
14742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14743 for as_dir in $PATH
14745 IFS=$as_save_IFS
14746 test -z "$as_dir" && as_dir=.
14747 for ac_exec_ext in '' $ac_executable_extensions; do
14748 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14749 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
14750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14751 break 2
14753 done
14754 done
14755 IFS=$as_save_IFS
14759 LIPO=$ac_cv_prog_LIPO
14760 if test -n "$LIPO"; then
14761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
14762 $as_echo "$LIPO" >&6; }
14763 else
14764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14765 $as_echo "no" >&6; }
14770 if test -z "$ac_cv_prog_LIPO"; then
14771 ac_ct_LIPO=$LIPO
14772 # Extract the first word of "lipo", so it can be a program name with args.
14773 set dummy lipo; ac_word=$2
14774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14775 $as_echo_n "checking for $ac_word... " >&6; }
14776 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
14777 $as_echo_n "(cached) " >&6
14778 else
14779 if test -n "$ac_ct_LIPO"; then
14780 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14781 else
14782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14783 for as_dir in $PATH
14785 IFS=$as_save_IFS
14786 test -z "$as_dir" && as_dir=.
14787 for ac_exec_ext in '' $ac_executable_extensions; do
14788 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14789 ac_cv_prog_ac_ct_LIPO="lipo"
14790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14791 break 2
14793 done
14794 done
14795 IFS=$as_save_IFS
14799 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14800 if test -n "$ac_ct_LIPO"; then
14801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
14802 $as_echo "$ac_ct_LIPO" >&6; }
14803 else
14804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14805 $as_echo "no" >&6; }
14808 if test "x$ac_ct_LIPO" = x; then
14809 LIPO=":"
14810 else
14811 case $cross_compiling:$ac_tool_warned in
14812 yes:)
14813 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14814 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14815 ac_tool_warned=yes ;;
14816 esac
14817 LIPO=$ac_ct_LIPO
14819 else
14820 LIPO="$ac_cv_prog_LIPO"
14823 if test -n "$ac_tool_prefix"; then
14824 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
14825 set dummy ${ac_tool_prefix}otool; ac_word=$2
14826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14827 $as_echo_n "checking for $ac_word... " >&6; }
14828 if ${ac_cv_prog_OTOOL+:} false; then :
14829 $as_echo_n "(cached) " >&6
14830 else
14831 if test -n "$OTOOL"; then
14832 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14833 else
14834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14835 for as_dir in $PATH
14837 IFS=$as_save_IFS
14838 test -z "$as_dir" && as_dir=.
14839 for ac_exec_ext in '' $ac_executable_extensions; do
14840 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14841 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
14842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14843 break 2
14845 done
14846 done
14847 IFS=$as_save_IFS
14851 OTOOL=$ac_cv_prog_OTOOL
14852 if test -n "$OTOOL"; then
14853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
14854 $as_echo "$OTOOL" >&6; }
14855 else
14856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14857 $as_echo "no" >&6; }
14862 if test -z "$ac_cv_prog_OTOOL"; then
14863 ac_ct_OTOOL=$OTOOL
14864 # Extract the first word of "otool", so it can be a program name with args.
14865 set dummy otool; ac_word=$2
14866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14867 $as_echo_n "checking for $ac_word... " >&6; }
14868 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
14869 $as_echo_n "(cached) " >&6
14870 else
14871 if test -n "$ac_ct_OTOOL"; then
14872 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14873 else
14874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14875 for as_dir in $PATH
14877 IFS=$as_save_IFS
14878 test -z "$as_dir" && as_dir=.
14879 for ac_exec_ext in '' $ac_executable_extensions; do
14880 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14881 ac_cv_prog_ac_ct_OTOOL="otool"
14882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14883 break 2
14885 done
14886 done
14887 IFS=$as_save_IFS
14891 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14892 if test -n "$ac_ct_OTOOL"; then
14893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
14894 $as_echo "$ac_ct_OTOOL" >&6; }
14895 else
14896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14897 $as_echo "no" >&6; }
14900 if test "x$ac_ct_OTOOL" = x; then
14901 OTOOL=":"
14902 else
14903 case $cross_compiling:$ac_tool_warned in
14904 yes:)
14905 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14906 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14907 ac_tool_warned=yes ;;
14908 esac
14909 OTOOL=$ac_ct_OTOOL
14911 else
14912 OTOOL="$ac_cv_prog_OTOOL"
14915 if test -n "$ac_tool_prefix"; then
14916 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
14917 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14919 $as_echo_n "checking for $ac_word... " >&6; }
14920 if ${ac_cv_prog_OTOOL64+:} false; then :
14921 $as_echo_n "(cached) " >&6
14922 else
14923 if test -n "$OTOOL64"; then
14924 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14925 else
14926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14927 for as_dir in $PATH
14929 IFS=$as_save_IFS
14930 test -z "$as_dir" && as_dir=.
14931 for ac_exec_ext in '' $ac_executable_extensions; do
14932 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14933 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
14934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14935 break 2
14937 done
14938 done
14939 IFS=$as_save_IFS
14943 OTOOL64=$ac_cv_prog_OTOOL64
14944 if test -n "$OTOOL64"; then
14945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
14946 $as_echo "$OTOOL64" >&6; }
14947 else
14948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14949 $as_echo "no" >&6; }
14954 if test -z "$ac_cv_prog_OTOOL64"; then
14955 ac_ct_OTOOL64=$OTOOL64
14956 # Extract the first word of "otool64", so it can be a program name with args.
14957 set dummy otool64; ac_word=$2
14958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14959 $as_echo_n "checking for $ac_word... " >&6; }
14960 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
14961 $as_echo_n "(cached) " >&6
14962 else
14963 if test -n "$ac_ct_OTOOL64"; then
14964 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14965 else
14966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14967 for as_dir in $PATH
14969 IFS=$as_save_IFS
14970 test -z "$as_dir" && as_dir=.
14971 for ac_exec_ext in '' $ac_executable_extensions; do
14972 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14973 ac_cv_prog_ac_ct_OTOOL64="otool64"
14974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14975 break 2
14977 done
14978 done
14979 IFS=$as_save_IFS
14983 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14984 if test -n "$ac_ct_OTOOL64"; then
14985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
14986 $as_echo "$ac_ct_OTOOL64" >&6; }
14987 else
14988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14989 $as_echo "no" >&6; }
14992 if test "x$ac_ct_OTOOL64" = x; then
14993 OTOOL64=":"
14994 else
14995 case $cross_compiling:$ac_tool_warned in
14996 yes:)
14997 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14998 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14999 ac_tool_warned=yes ;;
15000 esac
15001 OTOOL64=$ac_ct_OTOOL64
15003 else
15004 OTOOL64="$ac_cv_prog_OTOOL64"
15033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
15034 $as_echo_n "checking for -single_module linker flag... " >&6; }
15035 if ${lt_cv_apple_cc_single_mod+:} false; then :
15036 $as_echo_n "(cached) " >&6
15037 else
15038 lt_cv_apple_cc_single_mod=no
15039 if test -z "${LT_MULTI_MODULE}"; then
15040 # By default we will add the -single_module flag. You can override
15041 # by either setting the environment variable LT_MULTI_MODULE
15042 # non-empty at configure time, or by adding -multi_module to the
15043 # link flags.
15044 rm -rf libconftest.dylib*
15045 echo "int foo(void){return 1;}" > conftest.c
15046 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
15047 -dynamiclib -Wl,-single_module conftest.c" >&5
15048 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
15049 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
15050 _lt_result=$?
15051 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
15052 lt_cv_apple_cc_single_mod=yes
15053 else
15054 cat conftest.err >&5
15056 rm -rf libconftest.dylib*
15057 rm -f conftest.*
15060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
15061 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
15062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
15063 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
15064 if ${lt_cv_ld_exported_symbols_list+:} false; then :
15065 $as_echo_n "(cached) " >&6
15066 else
15067 lt_cv_ld_exported_symbols_list=no
15068 save_LDFLAGS=$LDFLAGS
15069 echo "_main" > conftest.sym
15070 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
15071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15072 /* end confdefs.h. */
15075 main ()
15079 return 0;
15081 _ACEOF
15082 if ac_fn_c_try_link "$LINENO"; then :
15083 lt_cv_ld_exported_symbols_list=yes
15084 else
15085 lt_cv_ld_exported_symbols_list=no
15087 rm -f core conftest.err conftest.$ac_objext \
15088 conftest$ac_exeext conftest.$ac_ext
15089 LDFLAGS="$save_LDFLAGS"
15092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
15093 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
15094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
15095 $as_echo_n "checking for -force_load linker flag... " >&6; }
15096 if ${lt_cv_ld_force_load+:} false; then :
15097 $as_echo_n "(cached) " >&6
15098 else
15099 lt_cv_ld_force_load=no
15100 cat > conftest.c << _LT_EOF
15101 int forced_loaded() { return 2;}
15102 _LT_EOF
15103 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
15104 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
15105 echo "$AR cru libconftest.a conftest.o" >&5
15106 $AR cru libconftest.a conftest.o 2>&5
15107 cat > conftest.c << _LT_EOF
15108 int main() { return 0;}
15109 _LT_EOF
15110 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
15111 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
15112 _lt_result=$?
15113 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
15114 lt_cv_ld_force_load=yes
15115 else
15116 cat conftest.err >&5
15118 rm -f conftest.err libconftest.a conftest conftest.c
15119 rm -rf conftest.dSYM
15122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
15123 $as_echo "$lt_cv_ld_force_load" >&6; }
15124 case $host_os in
15125 rhapsody* | darwin1.[012])
15126 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
15127 darwin1.*)
15128 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
15129 darwin*) # darwin 5.x on
15130 # if running on 10.5 or later, the deployment target defaults
15131 # to the OS version, if on x86, and 10.4, the deployment
15132 # target defaults to 10.4. Don't you love it?
15133 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
15134 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
15135 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
15136 10.[012][,.]*)
15137 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
15138 10.*)
15139 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
15140 esac
15142 esac
15143 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
15144 _lt_dar_single_mod='$single_module'
15146 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
15147 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
15148 else
15149 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
15151 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
15152 _lt_dsymutil='~$DSYMUTIL $lib || :'
15153 else
15154 _lt_dsymutil=
15157 esac
15160 for ac_header in dlfcn.h
15161 do :
15162 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
15163 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
15164 cat >>confdefs.h <<_ACEOF
15165 #define HAVE_DLFCN_H 1
15166 _ACEOF
15169 done
15175 # Set options
15179 enable_dlopen=no
15182 enable_win32_dll=no
15185 # Check whether --enable-shared was given.
15186 if test "${enable_shared+set}" = set; then :
15187 enableval=$enable_shared; p=${PACKAGE-default}
15188 case $enableval in
15189 yes) enable_shared=yes ;;
15190 no) enable_shared=no ;;
15192 enable_shared=no
15193 # Look at the argument we got. We use all the common list separators.
15194 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15195 for pkg in $enableval; do
15196 IFS="$lt_save_ifs"
15197 if test "X$pkg" = "X$p"; then
15198 enable_shared=yes
15200 done
15201 IFS="$lt_save_ifs"
15203 esac
15204 else
15205 enable_shared=yes
15216 # Check whether --enable-static was given.
15217 if test "${enable_static+set}" = set; then :
15218 enableval=$enable_static; p=${PACKAGE-default}
15219 case $enableval in
15220 yes) enable_static=yes ;;
15221 no) enable_static=no ;;
15223 enable_static=no
15224 # Look at the argument we got. We use all the common list separators.
15225 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15226 for pkg in $enableval; do
15227 IFS="$lt_save_ifs"
15228 if test "X$pkg" = "X$p"; then
15229 enable_static=yes
15231 done
15232 IFS="$lt_save_ifs"
15234 esac
15235 else
15236 enable_static=yes
15248 # Check whether --with-pic was given.
15249 if test "${with_pic+set}" = set; then :
15250 withval=$with_pic; pic_mode="$withval"
15251 else
15252 pic_mode=default
15256 test -z "$pic_mode" && pic_mode=default
15264 # Check whether --enable-fast-install was given.
15265 if test "${enable_fast_install+set}" = set; then :
15266 enableval=$enable_fast_install; p=${PACKAGE-default}
15267 case $enableval in
15268 yes) enable_fast_install=yes ;;
15269 no) enable_fast_install=no ;;
15271 enable_fast_install=no
15272 # Look at the argument we got. We use all the common list separators.
15273 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15274 for pkg in $enableval; do
15275 IFS="$lt_save_ifs"
15276 if test "X$pkg" = "X$p"; then
15277 enable_fast_install=yes
15279 done
15280 IFS="$lt_save_ifs"
15282 esac
15283 else
15284 enable_fast_install=yes
15297 # This can be used to rebuild libtool when needed
15298 LIBTOOL_DEPS="$ltmain"
15300 # Always use our own libtool.
15301 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
15328 test -z "$LN_S" && LN_S="ln -s"
15343 if test -n "${ZSH_VERSION+set}" ; then
15344 setopt NO_GLOB_SUBST
15347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
15348 $as_echo_n "checking for objdir... " >&6; }
15349 if ${lt_cv_objdir+:} false; then :
15350 $as_echo_n "(cached) " >&6
15351 else
15352 rm -f .libs 2>/dev/null
15353 mkdir .libs 2>/dev/null
15354 if test -d .libs; then
15355 lt_cv_objdir=.libs
15356 else
15357 # MS-DOS does not allow filenames that begin with a dot.
15358 lt_cv_objdir=_libs
15360 rmdir .libs 2>/dev/null
15362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
15363 $as_echo "$lt_cv_objdir" >&6; }
15364 objdir=$lt_cv_objdir
15370 cat >>confdefs.h <<_ACEOF
15371 #define LT_OBJDIR "$lt_cv_objdir/"
15372 _ACEOF
15377 case $host_os in
15378 aix3*)
15379 # AIX sometimes has problems with the GCC collect2 program. For some
15380 # reason, if we set the COLLECT_NAMES environment variable, the problems
15381 # vanish in a puff of smoke.
15382 if test "X${COLLECT_NAMES+set}" != Xset; then
15383 COLLECT_NAMES=
15384 export COLLECT_NAMES
15387 esac
15389 # Global variables:
15390 ofile=libtool
15391 can_build_shared=yes
15393 # All known linkers require a `.a' archive for static linking (except MSVC,
15394 # which needs '.lib').
15395 libext=a
15397 with_gnu_ld="$lt_cv_prog_gnu_ld"
15399 old_CC="$CC"
15400 old_CFLAGS="$CFLAGS"
15402 # Set sane defaults for various variables
15403 test -z "$CC" && CC=cc
15404 test -z "$LTCC" && LTCC=$CC
15405 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
15406 test -z "$LD" && LD=ld
15407 test -z "$ac_objext" && ac_objext=o
15409 for cc_temp in $compiler""; do
15410 case $cc_temp in
15411 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15412 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15413 \-*) ;;
15414 *) break;;
15415 esac
15416 done
15417 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
15420 # Only perform the check for file, if the check method requires it
15421 test -z "$MAGIC_CMD" && MAGIC_CMD=file
15422 case $deplibs_check_method in
15423 file_magic*)
15424 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
15425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
15426 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
15427 if ${lt_cv_path_MAGIC_CMD+:} false; then :
15428 $as_echo_n "(cached) " >&6
15429 else
15430 case $MAGIC_CMD in
15431 [\\/*] | ?:[\\/]*)
15432 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15435 lt_save_MAGIC_CMD="$MAGIC_CMD"
15436 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15437 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15438 for ac_dir in $ac_dummy; do
15439 IFS="$lt_save_ifs"
15440 test -z "$ac_dir" && ac_dir=.
15441 if test -f $ac_dir/${ac_tool_prefix}file; then
15442 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
15443 if test -n "$file_magic_test_file"; then
15444 case $deplibs_check_method in
15445 "file_magic "*)
15446 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15447 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15448 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15449 $EGREP "$file_magic_regex" > /dev/null; then
15451 else
15452 cat <<_LT_EOF 1>&2
15454 *** Warning: the command libtool uses to detect shared libraries,
15455 *** $file_magic_cmd, produces output that libtool cannot recognize.
15456 *** The result is that libtool may fail to recognize shared libraries
15457 *** as such. This will affect the creation of libtool libraries that
15458 *** depend on shared libraries, but programs linked with such libtool
15459 *** libraries will work regardless of this problem. Nevertheless, you
15460 *** may want to report the problem to your system manager and/or to
15461 *** bug-libtool@gnu.org
15463 _LT_EOF
15464 fi ;;
15465 esac
15467 break
15469 done
15470 IFS="$lt_save_ifs"
15471 MAGIC_CMD="$lt_save_MAGIC_CMD"
15473 esac
15476 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15477 if test -n "$MAGIC_CMD"; then
15478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15479 $as_echo "$MAGIC_CMD" >&6; }
15480 else
15481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15482 $as_echo "no" >&6; }
15489 if test -z "$lt_cv_path_MAGIC_CMD"; then
15490 if test -n "$ac_tool_prefix"; then
15491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
15492 $as_echo_n "checking for file... " >&6; }
15493 if ${lt_cv_path_MAGIC_CMD+:} false; then :
15494 $as_echo_n "(cached) " >&6
15495 else
15496 case $MAGIC_CMD in
15497 [\\/*] | ?:[\\/]*)
15498 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15501 lt_save_MAGIC_CMD="$MAGIC_CMD"
15502 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15503 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15504 for ac_dir in $ac_dummy; do
15505 IFS="$lt_save_ifs"
15506 test -z "$ac_dir" && ac_dir=.
15507 if test -f $ac_dir/file; then
15508 lt_cv_path_MAGIC_CMD="$ac_dir/file"
15509 if test -n "$file_magic_test_file"; then
15510 case $deplibs_check_method in
15511 "file_magic "*)
15512 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15513 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15514 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15515 $EGREP "$file_magic_regex" > /dev/null; then
15517 else
15518 cat <<_LT_EOF 1>&2
15520 *** Warning: the command libtool uses to detect shared libraries,
15521 *** $file_magic_cmd, produces output that libtool cannot recognize.
15522 *** The result is that libtool may fail to recognize shared libraries
15523 *** as such. This will affect the creation of libtool libraries that
15524 *** depend on shared libraries, but programs linked with such libtool
15525 *** libraries will work regardless of this problem. Nevertheless, you
15526 *** may want to report the problem to your system manager and/or to
15527 *** bug-libtool@gnu.org
15529 _LT_EOF
15530 fi ;;
15531 esac
15533 break
15535 done
15536 IFS="$lt_save_ifs"
15537 MAGIC_CMD="$lt_save_MAGIC_CMD"
15539 esac
15542 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15543 if test -n "$MAGIC_CMD"; then
15544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15545 $as_echo "$MAGIC_CMD" >&6; }
15546 else
15547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15548 $as_echo "no" >&6; }
15552 else
15553 MAGIC_CMD=:
15559 esac
15561 # Use C for the default configuration in the libtool script
15563 lt_save_CC="$CC"
15564 ac_ext=c
15565 ac_cpp='$CPP $CPPFLAGS'
15566 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15567 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15568 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15571 # Source file extension for C test sources.
15572 ac_ext=c
15574 # Object file extension for compiled C test sources.
15575 objext=o
15576 objext=$objext
15578 # Code to be used in simple compile tests
15579 lt_simple_compile_test_code="int some_variable = 0;"
15581 # Code to be used in simple link tests
15582 lt_simple_link_test_code='int main(){return(0);}'
15590 # If no C compiler was specified, use CC.
15591 LTCC=${LTCC-"$CC"}
15593 # If no C compiler flags were specified, use CFLAGS.
15594 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15596 # Allow CC to be a program name with arguments.
15597 compiler=$CC
15599 # Save the default compiler, since it gets overwritten when the other
15600 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
15601 compiler_DEFAULT=$CC
15603 # save warnings/boilerplate of simple test code
15604 ac_outfile=conftest.$ac_objext
15605 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15606 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15607 _lt_compiler_boilerplate=`cat conftest.err`
15608 $RM conftest*
15610 ac_outfile=conftest.$ac_objext
15611 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15612 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15613 _lt_linker_boilerplate=`cat conftest.err`
15614 $RM -r conftest*
15617 ## CAVEAT EMPTOR:
15618 ## There is no encapsulation within the following macros, do not change
15619 ## the running order or otherwise move them around unless you know exactly
15620 ## what you are doing...
15621 if test -n "$compiler"; then
15623 lt_prog_compiler_no_builtin_flag=
15625 if test "$GCC" = yes; then
15626 case $cc_basename in
15627 nvcc*)
15628 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
15630 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
15631 esac
15633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15634 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
15635 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
15636 $as_echo_n "(cached) " >&6
15637 else
15638 lt_cv_prog_compiler_rtti_exceptions=no
15639 ac_outfile=conftest.$ac_objext
15640 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15641 lt_compiler_flag="-fno-rtti -fno-exceptions"
15642 # Insert the option either (1) after the last *FLAGS variable, or
15643 # (2) before a word containing "conftest.", or (3) at the end.
15644 # Note that $ac_compile itself does not contain backslashes and begins
15645 # with a dollar sign (not a hyphen), so the echo should work correctly.
15646 # The option is referenced via a variable to avoid confusing sed.
15647 lt_compile=`echo "$ac_compile" | $SED \
15648 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15649 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15650 -e 's:$: $lt_compiler_flag:'`
15651 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15652 (eval "$lt_compile" 2>conftest.err)
15653 ac_status=$?
15654 cat conftest.err >&5
15655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15656 if (exit $ac_status) && test -s "$ac_outfile"; then
15657 # The compiler can only warn and ignore the option if not recognized
15658 # So say no if there are warnings other than the usual output.
15659 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15660 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15661 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15662 lt_cv_prog_compiler_rtti_exceptions=yes
15665 $RM conftest*
15668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15669 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15671 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15672 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
15673 else
15684 lt_prog_compiler_wl=
15685 lt_prog_compiler_pic=
15686 lt_prog_compiler_static=
15688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15689 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15691 if test "$GCC" = yes; then
15692 lt_prog_compiler_wl='-Wl,'
15693 lt_prog_compiler_static='-static'
15695 case $host_os in
15696 aix*)
15697 # All AIX code is PIC.
15698 if test "$host_cpu" = ia64; then
15699 # AIX 5 now supports IA64 processor
15700 lt_prog_compiler_static='-Bstatic'
15702 lt_prog_compiler_pic='-fPIC'
15705 amigaos*)
15706 case $host_cpu in
15707 powerpc)
15708 # see comment about AmigaOS4 .so support
15709 lt_prog_compiler_pic='-fPIC'
15711 m68k)
15712 # FIXME: we need at least 68020 code to build shared libraries, but
15713 # adding the `-m68020' flag to GCC prevents building anything better,
15714 # like `-m68040'.
15715 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15717 esac
15720 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15721 # PIC is the default for these OSes.
15724 mingw* | cygwin* | pw32* | os2* | cegcc*)
15725 # This hack is so that the source file can tell whether it is being
15726 # built for inclusion in a dll (and should export symbols for example).
15727 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15728 # (--disable-auto-import) libraries
15729 lt_prog_compiler_pic='-DDLL_EXPORT'
15732 darwin* | rhapsody*)
15733 # PIC is the default on this platform
15734 # Common symbols not allowed in MH_DYLIB files
15735 lt_prog_compiler_pic='-fno-common'
15738 haiku*)
15739 # PIC is the default for Haiku.
15740 # The "-static" flag exists, but is broken.
15741 lt_prog_compiler_static=
15744 hpux*)
15745 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15746 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15747 # sets the default TLS model and affects inlining.
15748 case $host_cpu in
15749 hppa*64*)
15750 # +Z the default
15753 lt_prog_compiler_pic='-fPIC'
15755 esac
15758 interix[3-9]*)
15759 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15760 # Instead, we relocate shared libraries at runtime.
15763 msdosdjgpp*)
15764 # Just because we use GCC doesn't mean we suddenly get shared libraries
15765 # on systems that don't support them.
15766 lt_prog_compiler_can_build_shared=no
15767 enable_shared=no
15770 *nto* | *qnx*)
15771 # QNX uses GNU C++, but need to define -shared option too, otherwise
15772 # it will coredump.
15773 lt_prog_compiler_pic='-fPIC -shared'
15776 sysv4*MP*)
15777 if test -d /usr/nec; then
15778 lt_prog_compiler_pic=-Kconform_pic
15783 lt_prog_compiler_pic='-fPIC'
15785 esac
15787 case $cc_basename in
15788 nvcc*) # Cuda Compiler Driver 2.2
15789 lt_prog_compiler_wl='-Xlinker '
15790 lt_prog_compiler_pic='-Xcompiler -fPIC'
15792 esac
15793 else
15794 # PORTME Check for flag to pass linker flags through the system compiler.
15795 case $host_os in
15796 aix*)
15797 lt_prog_compiler_wl='-Wl,'
15798 if test "$host_cpu" = ia64; then
15799 # AIX 5 now supports IA64 processor
15800 lt_prog_compiler_static='-Bstatic'
15801 else
15802 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15806 mingw* | cygwin* | pw32* | os2* | cegcc*)
15807 # This hack is so that the source file can tell whether it is being
15808 # built for inclusion in a dll (and should export symbols for example).
15809 lt_prog_compiler_pic='-DDLL_EXPORT'
15812 hpux9* | hpux10* | hpux11*)
15813 lt_prog_compiler_wl='-Wl,'
15814 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15815 # not for PA HP-UX.
15816 case $host_cpu in
15817 hppa*64*|ia64*)
15818 # +Z the default
15821 lt_prog_compiler_pic='+Z'
15823 esac
15824 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15825 lt_prog_compiler_static='${wl}-a ${wl}archive'
15828 irix5* | irix6* | nonstopux*)
15829 lt_prog_compiler_wl='-Wl,'
15830 # PIC (with -KPIC) is the default.
15831 lt_prog_compiler_static='-non_shared'
15834 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15835 case $cc_basename in
15836 # old Intel for x86_64 which still supported -KPIC.
15837 ecc*)
15838 lt_prog_compiler_wl='-Wl,'
15839 lt_prog_compiler_pic='-KPIC'
15840 lt_prog_compiler_static='-static'
15842 # icc used to be incompatible with GCC.
15843 # ICC 10 doesn't accept -KPIC any more.
15844 icc* | ifort*)
15845 lt_prog_compiler_wl='-Wl,'
15846 lt_prog_compiler_pic='-fPIC'
15847 lt_prog_compiler_static='-static'
15849 # Lahey Fortran 8.1.
15850 lf95*)
15851 lt_prog_compiler_wl='-Wl,'
15852 lt_prog_compiler_pic='--shared'
15853 lt_prog_compiler_static='--static'
15855 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15856 # Portland Group compilers (*not* the Pentium gcc compiler,
15857 # which looks to be a dead project)
15858 lt_prog_compiler_wl='-Wl,'
15859 lt_prog_compiler_pic='-fpic'
15860 lt_prog_compiler_static='-Bstatic'
15862 ccc*)
15863 lt_prog_compiler_wl='-Wl,'
15864 # All Alpha code is PIC.
15865 lt_prog_compiler_static='-non_shared'
15867 xl* | bgxl* | bgf* | mpixl*)
15868 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15869 lt_prog_compiler_wl='-Wl,'
15870 lt_prog_compiler_pic='-qpic'
15871 lt_prog_compiler_static='-qstaticlink'
15874 case `$CC -V 2>&1 | sed 5q` in
15875 *Sun\ F* | *Sun*Fortran*)
15876 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15877 lt_prog_compiler_pic='-KPIC'
15878 lt_prog_compiler_static='-Bstatic'
15879 lt_prog_compiler_wl=''
15881 *Sun\ C*)
15882 # Sun C 5.9
15883 lt_prog_compiler_pic='-KPIC'
15884 lt_prog_compiler_static='-Bstatic'
15885 lt_prog_compiler_wl='-Wl,'
15887 esac
15889 esac
15892 newsos6)
15893 lt_prog_compiler_pic='-KPIC'
15894 lt_prog_compiler_static='-Bstatic'
15897 *nto* | *qnx*)
15898 # QNX uses GNU C++, but need to define -shared option too, otherwise
15899 # it will coredump.
15900 lt_prog_compiler_pic='-fPIC -shared'
15903 osf3* | osf4* | osf5*)
15904 lt_prog_compiler_wl='-Wl,'
15905 # All OSF/1 code is PIC.
15906 lt_prog_compiler_static='-non_shared'
15909 rdos*)
15910 lt_prog_compiler_static='-non_shared'
15913 solaris*)
15914 lt_prog_compiler_pic='-KPIC'
15915 lt_prog_compiler_static='-Bstatic'
15916 case $cc_basename in
15917 f77* | f90* | f95*)
15918 lt_prog_compiler_wl='-Qoption ld ';;
15920 lt_prog_compiler_wl='-Wl,';;
15921 esac
15924 sunos4*)
15925 lt_prog_compiler_wl='-Qoption ld '
15926 lt_prog_compiler_pic='-PIC'
15927 lt_prog_compiler_static='-Bstatic'
15930 sysv4 | sysv4.2uw2* | sysv4.3*)
15931 lt_prog_compiler_wl='-Wl,'
15932 lt_prog_compiler_pic='-KPIC'
15933 lt_prog_compiler_static='-Bstatic'
15936 sysv4*MP*)
15937 if test -d /usr/nec ;then
15938 lt_prog_compiler_pic='-Kconform_pic'
15939 lt_prog_compiler_static='-Bstatic'
15943 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15944 lt_prog_compiler_wl='-Wl,'
15945 lt_prog_compiler_pic='-KPIC'
15946 lt_prog_compiler_static='-Bstatic'
15949 unicos*)
15950 lt_prog_compiler_wl='-Wl,'
15951 lt_prog_compiler_can_build_shared=no
15954 uts4*)
15955 lt_prog_compiler_pic='-pic'
15956 lt_prog_compiler_static='-Bstatic'
15960 lt_prog_compiler_can_build_shared=no
15962 esac
15965 case $host_os in
15966 # For platforms which do not support PIC, -DPIC is meaningless:
15967 *djgpp*)
15968 lt_prog_compiler_pic=
15971 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15973 esac
15974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
15975 $as_echo "$lt_prog_compiler_pic" >&6; }
15983 # Check to make sure the PIC flag actually works.
15985 if test -n "$lt_prog_compiler_pic"; then
15986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15987 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
15988 if ${lt_cv_prog_compiler_pic_works+:} false; then :
15989 $as_echo_n "(cached) " >&6
15990 else
15991 lt_cv_prog_compiler_pic_works=no
15992 ac_outfile=conftest.$ac_objext
15993 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15994 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15995 # Insert the option either (1) after the last *FLAGS variable, or
15996 # (2) before a word containing "conftest.", or (3) at the end.
15997 # Note that $ac_compile itself does not contain backslashes and begins
15998 # with a dollar sign (not a hyphen), so the echo should work correctly.
15999 # The option is referenced via a variable to avoid confusing sed.
16000 lt_compile=`echo "$ac_compile" | $SED \
16001 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16002 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16003 -e 's:$: $lt_compiler_flag:'`
16004 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16005 (eval "$lt_compile" 2>conftest.err)
16006 ac_status=$?
16007 cat conftest.err >&5
16008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16009 if (exit $ac_status) && test -s "$ac_outfile"; then
16010 # The compiler can only warn and ignore the option if not recognized
16011 # So say no if there are warnings other than the usual output.
16012 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
16013 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16014 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16015 lt_cv_prog_compiler_pic_works=yes
16018 $RM conftest*
16021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
16022 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
16024 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
16025 case $lt_prog_compiler_pic in
16026 "" | " "*) ;;
16027 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
16028 esac
16029 else
16030 lt_prog_compiler_pic=
16031 lt_prog_compiler_can_build_shared=no
16042 # Check to make sure the static flag actually works.
16044 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
16045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16046 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16047 if ${lt_cv_prog_compiler_static_works+:} false; then :
16048 $as_echo_n "(cached) " >&6
16049 else
16050 lt_cv_prog_compiler_static_works=no
16051 save_LDFLAGS="$LDFLAGS"
16052 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16053 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16054 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16055 # The linker can only warn and ignore the option if not recognized
16056 # So say no if there are warnings
16057 if test -s conftest.err; then
16058 # Append any errors to the config.log.
16059 cat conftest.err 1>&5
16060 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16061 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16062 if diff conftest.exp conftest.er2 >/dev/null; then
16063 lt_cv_prog_compiler_static_works=yes
16065 else
16066 lt_cv_prog_compiler_static_works=yes
16069 $RM -r conftest*
16070 LDFLAGS="$save_LDFLAGS"
16073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
16074 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
16076 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
16078 else
16079 lt_prog_compiler_static=
16088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16089 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16090 if ${lt_cv_prog_compiler_c_o+:} false; then :
16091 $as_echo_n "(cached) " >&6
16092 else
16093 lt_cv_prog_compiler_c_o=no
16094 $RM -r conftest 2>/dev/null
16095 mkdir conftest
16096 cd conftest
16097 mkdir out
16098 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16100 lt_compiler_flag="-o out/conftest2.$ac_objext"
16101 # Insert the option either (1) after the last *FLAGS variable, or
16102 # (2) before a word containing "conftest.", or (3) at the end.
16103 # Note that $ac_compile itself does not contain backslashes and begins
16104 # with a dollar sign (not a hyphen), so the echo should work correctly.
16105 lt_compile=`echo "$ac_compile" | $SED \
16106 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16107 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16108 -e 's:$: $lt_compiler_flag:'`
16109 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16110 (eval "$lt_compile" 2>out/conftest.err)
16111 ac_status=$?
16112 cat out/conftest.err >&5
16113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16114 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16115 then
16116 # The compiler can only warn and ignore the option if not recognized
16117 # So say no if there are warnings
16118 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16119 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16120 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16121 lt_cv_prog_compiler_c_o=yes
16124 chmod u+w . 2>&5
16125 $RM conftest*
16126 # SGI C++ compiler will create directory out/ii_files/ for
16127 # template instantiation
16128 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16129 $RM out/* && rmdir out
16130 cd ..
16131 $RM -r conftest
16132 $RM conftest*
16135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
16136 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
16143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16144 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16145 if ${lt_cv_prog_compiler_c_o+:} false; then :
16146 $as_echo_n "(cached) " >&6
16147 else
16148 lt_cv_prog_compiler_c_o=no
16149 $RM -r conftest 2>/dev/null
16150 mkdir conftest
16151 cd conftest
16152 mkdir out
16153 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16155 lt_compiler_flag="-o out/conftest2.$ac_objext"
16156 # Insert the option either (1) after the last *FLAGS variable, or
16157 # (2) before a word containing "conftest.", or (3) at the end.
16158 # Note that $ac_compile itself does not contain backslashes and begins
16159 # with a dollar sign (not a hyphen), so the echo should work correctly.
16160 lt_compile=`echo "$ac_compile" | $SED \
16161 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16162 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16163 -e 's:$: $lt_compiler_flag:'`
16164 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16165 (eval "$lt_compile" 2>out/conftest.err)
16166 ac_status=$?
16167 cat out/conftest.err >&5
16168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16169 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16170 then
16171 # The compiler can only warn and ignore the option if not recognized
16172 # So say no if there are warnings
16173 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16174 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16175 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16176 lt_cv_prog_compiler_c_o=yes
16179 chmod u+w . 2>&5
16180 $RM conftest*
16181 # SGI C++ compiler will create directory out/ii_files/ for
16182 # template instantiation
16183 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16184 $RM out/* && rmdir out
16185 cd ..
16186 $RM -r conftest
16187 $RM conftest*
16190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
16191 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
16196 hard_links="nottested"
16197 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
16198 # do not overwrite the value of need_locks provided by the user
16199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16200 $as_echo_n "checking if we can lock with hard links... " >&6; }
16201 hard_links=yes
16202 $RM conftest*
16203 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16204 touch conftest.a
16205 ln conftest.a conftest.b 2>&5 || hard_links=no
16206 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16208 $as_echo "$hard_links" >&6; }
16209 if test "$hard_links" = no; then
16210 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16211 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16212 need_locks=warn
16214 else
16215 need_locks=no
16223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16224 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16226 runpath_var=
16227 allow_undefined_flag=
16228 always_export_symbols=no
16229 archive_cmds=
16230 archive_expsym_cmds=
16231 compiler_needs_object=no
16232 enable_shared_with_static_runtimes=no
16233 export_dynamic_flag_spec=
16234 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16235 hardcode_automatic=no
16236 hardcode_direct=no
16237 hardcode_direct_absolute=no
16238 hardcode_libdir_flag_spec=
16239 hardcode_libdir_flag_spec_ld=
16240 hardcode_libdir_separator=
16241 hardcode_minus_L=no
16242 hardcode_shlibpath_var=unsupported
16243 inherit_rpath=no
16244 link_all_deplibs=unknown
16245 module_cmds=
16246 module_expsym_cmds=
16247 old_archive_from_new_cmds=
16248 old_archive_from_expsyms_cmds=
16249 thread_safe_flag_spec=
16250 whole_archive_flag_spec=
16251 # include_expsyms should be a list of space-separated symbols to be *always*
16252 # included in the symbol list
16253 include_expsyms=
16254 # exclude_expsyms can be an extended regexp of symbols to exclude
16255 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16256 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16257 # as well as any symbol that contains `d'.
16258 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16259 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16260 # platforms (ab)use it in PIC code, but their linkers get confused if
16261 # the symbol is explicitly referenced. Since portable code cannot
16262 # rely on this symbol name, it's probably fine to never include it in
16263 # preloaded symbol tables.
16264 # Exclude shared library initialization/finalization symbols.
16265 extract_expsyms_cmds=
16267 case $host_os in
16268 cygwin* | mingw* | pw32* | cegcc*)
16269 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16270 # When not using gcc, we currently assume that we are using
16271 # Microsoft Visual C++.
16272 if test "$GCC" != yes; then
16273 with_gnu_ld=no
16276 interix*)
16277 # we just hope/assume this is gcc and not c89 (= MSVC++)
16278 with_gnu_ld=yes
16280 openbsd*)
16281 with_gnu_ld=no
16283 esac
16285 ld_shlibs=yes
16287 # On some targets, GNU ld is compatible enough with the native linker
16288 # that we're better off using the native interface for both.
16289 lt_use_gnu_ld_interface=no
16290 if test "$with_gnu_ld" = yes; then
16291 case $host_os in
16292 aix*)
16293 # The AIX port of GNU ld has always aspired to compatibility
16294 # with the native linker. However, as the warning in the GNU ld
16295 # block says, versions before 2.19.5* couldn't really create working
16296 # shared libraries, regardless of the interface used.
16297 case `$LD -v 2>&1` in
16298 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
16299 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
16300 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
16302 lt_use_gnu_ld_interface=yes
16304 esac
16307 lt_use_gnu_ld_interface=yes
16309 esac
16312 if test "$lt_use_gnu_ld_interface" = yes; then
16313 # If archive_cmds runs LD, not CC, wlarc should be empty
16314 wlarc='${wl}'
16316 # Set some defaults for GNU ld with shared library support. These
16317 # are reset later if shared libraries are not supported. Putting them
16318 # here allows them to be overridden if necessary.
16319 runpath_var=LD_RUN_PATH
16320 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16321 export_dynamic_flag_spec='${wl}--export-dynamic'
16322 # ancient GNU ld didn't support --whole-archive et. al.
16323 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
16324 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16325 else
16326 whole_archive_flag_spec=
16328 supports_anon_versioning=no
16329 case `$LD -v 2>&1` in
16330 *GNU\ gold*) supports_anon_versioning=yes ;;
16331 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16332 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16333 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16334 *\ 2.11.*) ;; # other 2.11 versions
16335 *) supports_anon_versioning=yes ;;
16336 esac
16338 # See if GNU ld supports shared libraries.
16339 case $host_os in
16340 aix[3-9]*)
16341 # On AIX/PPC, the GNU linker is very broken
16342 if test "$host_cpu" != ia64; then
16343 ld_shlibs=no
16344 cat <<_LT_EOF 1>&2
16346 *** Warning: the GNU linker, at least up to release 2.19, is reported
16347 *** to be unable to reliably create shared libraries on AIX.
16348 *** Therefore, libtool is disabling shared libraries support. If you
16349 *** really care for shared libraries, you may want to install binutils
16350 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
16351 *** You will then need to restart the configuration process.
16353 _LT_EOF
16357 amigaos*)
16358 case $host_cpu in
16359 powerpc)
16360 # see comment about AmigaOS4 .so support
16361 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16362 archive_expsym_cmds=''
16364 m68k)
16365 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)'
16366 hardcode_libdir_flag_spec='-L$libdir'
16367 hardcode_minus_L=yes
16369 esac
16372 beos*)
16373 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16374 allow_undefined_flag=unsupported
16375 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16376 # support --undefined. This deserves some investigation. FIXME
16377 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16378 else
16379 ld_shlibs=no
16383 cygwin* | mingw* | pw32* | cegcc*)
16384 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
16385 # as there is no search path for DLLs.
16386 hardcode_libdir_flag_spec='-L$libdir'
16387 export_dynamic_flag_spec='${wl}--export-all-symbols'
16388 allow_undefined_flag=unsupported
16389 always_export_symbols=no
16390 enable_shared_with_static_runtimes=yes
16391 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16393 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
16394 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16395 # If the export-symbols file already is a .def file (1st line
16396 # is EXPORTS), use it as is; otherwise, prepend...
16397 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16398 cp $export_symbols $output_objdir/$soname.def;
16399 else
16400 echo EXPORTS > $output_objdir/$soname.def;
16401 cat $export_symbols >> $output_objdir/$soname.def;
16403 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16404 else
16405 ld_shlibs=no
16409 haiku*)
16410 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16411 link_all_deplibs=yes
16414 interix[3-9]*)
16415 hardcode_direct=no
16416 hardcode_shlibpath_var=no
16417 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16418 export_dynamic_flag_spec='${wl}-E'
16419 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16420 # Instead, shared libraries are loaded at an image base (0x10000000 by
16421 # default) and relocated if they conflict, which is a slow very memory
16422 # consuming and fragmenting process. To avoid this, we pick a random,
16423 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16424 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16425 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16426 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'
16429 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
16430 tmp_diet=no
16431 if test "$host_os" = linux-dietlibc; then
16432 case $cc_basename in
16433 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
16434 esac
16436 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
16437 && test "$tmp_diet" = no
16438 then
16439 tmp_addflag=' $pic_flag'
16440 tmp_sharedflag='-shared'
16441 case $cc_basename,$host_cpu in
16442 pgcc*) # Portland Group C compiler
16443 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'
16444 tmp_addflag=' $pic_flag'
16446 pgf77* | pgf90* | pgf95* | pgfortran*)
16447 # Portland Group f77 and f90 compilers
16448 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'
16449 tmp_addflag=' $pic_flag -Mnomain' ;;
16450 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16451 tmp_addflag=' -i_dynamic' ;;
16452 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16453 tmp_addflag=' -i_dynamic -nofor_main' ;;
16454 ifc* | ifort*) # Intel Fortran compiler
16455 tmp_addflag=' -nofor_main' ;;
16456 lf95*) # Lahey Fortran 8.1
16457 whole_archive_flag_spec=
16458 tmp_sharedflag='--shared' ;;
16459 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
16460 tmp_sharedflag='-qmkshrobj'
16461 tmp_addflag= ;;
16462 nvcc*) # Cuda Compiler Driver 2.2
16463 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'
16464 compiler_needs_object=yes
16466 esac
16467 case `$CC -V 2>&1 | sed 5q` in
16468 *Sun\ C*) # Sun C 5.9
16469 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'
16470 compiler_needs_object=yes
16471 tmp_sharedflag='-G' ;;
16472 *Sun\ F*) # Sun Fortran 8.3
16473 tmp_sharedflag='-G' ;;
16474 esac
16475 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16477 if test "x$supports_anon_versioning" = xyes; then
16478 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16479 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16480 echo "local: *; };" >> $output_objdir/$libname.ver~
16481 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16484 case $cc_basename in
16485 xlf* | bgf* | bgxlf* | mpixlf*)
16486 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
16487 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
16488 hardcode_libdir_flag_spec=
16489 hardcode_libdir_flag_spec_ld='-rpath $libdir'
16490 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
16491 if test "x$supports_anon_versioning" = xyes; then
16492 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16493 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16494 echo "local: *; };" >> $output_objdir/$libname.ver~
16495 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
16498 esac
16499 else
16500 ld_shlibs=no
16504 netbsd*)
16505 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16506 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16507 wlarc=
16508 else
16509 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16510 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16514 solaris*)
16515 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
16516 ld_shlibs=no
16517 cat <<_LT_EOF 1>&2
16519 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16520 *** create shared libraries on Solaris systems. Therefore, libtool
16521 *** is disabling shared libraries support. We urge you to upgrade GNU
16522 *** binutils to release 2.9.1 or newer. Another option is to modify
16523 *** your PATH or compiler configuration so that the native linker is
16524 *** used, and then restart.
16526 _LT_EOF
16527 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16528 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16529 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16530 else
16531 ld_shlibs=no
16535 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16536 case `$LD -v 2>&1` in
16537 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16538 ld_shlibs=no
16539 cat <<_LT_EOF 1>&2
16541 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16542 *** reliably create shared libraries on SCO systems. Therefore, libtool
16543 *** is disabling shared libraries support. We urge you to upgrade GNU
16544 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16545 *** your PATH or compiler configuration so that the native linker is
16546 *** used, and then restart.
16548 _LT_EOF
16551 # For security reasons, it is highly recommended that you always
16552 # use absolute paths for naming shared libraries, and exclude the
16553 # DT_RUNPATH tag from executables and libraries. But doing so
16554 # requires that you compile everything twice, which is a pain.
16555 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16556 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16557 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16558 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16559 else
16560 ld_shlibs=no
16563 esac
16566 sunos4*)
16567 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16568 wlarc=
16569 hardcode_direct=yes
16570 hardcode_shlibpath_var=no
16574 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16575 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16576 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16577 else
16578 ld_shlibs=no
16581 esac
16583 if test "$ld_shlibs" = no; then
16584 runpath_var=
16585 hardcode_libdir_flag_spec=
16586 export_dynamic_flag_spec=
16587 whole_archive_flag_spec=
16589 else
16590 # PORTME fill in a description of your system's linker (not GNU ld)
16591 case $host_os in
16592 aix3*)
16593 allow_undefined_flag=unsupported
16594 always_export_symbols=yes
16595 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'
16596 # Note: this linker hardcodes the directories in LIBPATH if there
16597 # are no directories specified by -L.
16598 hardcode_minus_L=yes
16599 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16600 # Neither direct hardcoding nor static linking is supported with a
16601 # broken collect2.
16602 hardcode_direct=unsupported
16606 aix[4-9]*)
16607 if test "$host_cpu" = ia64; then
16608 # On IA64, the linker does run time linking by default, so we don't
16609 # have to do anything special.
16610 aix_use_runtimelinking=no
16611 exp_sym_flag='-Bexport'
16612 no_entry_flag=""
16613 else
16614 # If we're using GNU nm, then we don't want the "-C" option.
16615 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16616 # Also, AIX nm treats weak defined symbols like other global
16617 # defined symbols, whereas GNU nm marks them as "W".
16618 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16619 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'
16620 else
16621 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'
16623 aix_use_runtimelinking=no
16625 # Test if we are trying to use run time linking or normal
16626 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16627 # need to do runtime linking.
16628 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16629 for ld_flag in $LDFLAGS; do
16630 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16631 aix_use_runtimelinking=yes
16632 break
16634 done
16636 esac
16638 exp_sym_flag='-bexport'
16639 no_entry_flag='-bnoentry'
16642 # When large executables or shared objects are built, AIX ld can
16643 # have problems creating the table of contents. If linking a library
16644 # or program results in "error TOC overflow" add -mminimal-toc to
16645 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16646 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16648 archive_cmds=''
16649 hardcode_direct=yes
16650 hardcode_direct_absolute=yes
16651 hardcode_libdir_separator=':'
16652 link_all_deplibs=yes
16653 file_list_spec='${wl}-f,'
16655 if test "$GCC" = yes; then
16656 case $host_os in aix4.[012]|aix4.[012].*)
16657 # We only want to do this on AIX 4.2 and lower, the check
16658 # below for broken collect2 doesn't work under 4.3+
16659 collect2name=`${CC} -print-prog-name=collect2`
16660 if test -f "$collect2name" &&
16661 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16662 then
16663 # We have reworked collect2
16665 else
16666 # We have old collect2
16667 hardcode_direct=unsupported
16668 # It fails to find uninstalled libraries when the uninstalled
16669 # path is not listed in the libpath. Setting hardcode_minus_L
16670 # to unsupported forces relinking
16671 hardcode_minus_L=yes
16672 hardcode_libdir_flag_spec='-L$libdir'
16673 hardcode_libdir_separator=
16676 esac
16677 shared_flag='-shared'
16678 if test "$aix_use_runtimelinking" = yes; then
16679 shared_flag="$shared_flag "'${wl}-G'
16681 else
16682 # not using gcc
16683 if test "$host_cpu" = ia64; then
16684 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16685 # chokes on -Wl,-G. The following line is correct:
16686 shared_flag='-G'
16687 else
16688 if test "$aix_use_runtimelinking" = yes; then
16689 shared_flag='${wl}-G'
16690 else
16691 shared_flag='${wl}-bM:SRE'
16696 export_dynamic_flag_spec='${wl}-bexpall'
16697 # It seems that -bexpall does not export symbols beginning with
16698 # underscore (_), so it is better to generate a list of symbols to export.
16699 always_export_symbols=yes
16700 if test "$aix_use_runtimelinking" = yes; then
16701 # Warning - without using the other runtime loading flags (-brtl),
16702 # -berok will link without error, but may produce a broken library.
16703 allow_undefined_flag='-berok'
16704 # Determine the default libpath from the value encoded in an
16705 # empty executable.
16706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16707 /* end confdefs.h. */
16710 main ()
16714 return 0;
16716 _ACEOF
16717 if ac_fn_c_try_link "$LINENO"; then :
16719 lt_aix_libpath_sed='
16720 /Import File Strings/,/^$/ {
16721 /^0/ {
16722 s/^0 *\(.*\)$/\1/
16726 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16727 # Check for a 64-bit object if we didn't find anything.
16728 if test -z "$aix_libpath"; then
16729 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16732 rm -f core conftest.err conftest.$ac_objext \
16733 conftest$ac_exeext conftest.$ac_ext
16734 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16736 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16737 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"
16738 else
16739 if test "$host_cpu" = ia64; then
16740 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
16741 allow_undefined_flag="-z nodefs"
16742 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"
16743 else
16744 # Determine the default libpath from the value encoded in an
16745 # empty executable.
16746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16747 /* end confdefs.h. */
16750 main ()
16754 return 0;
16756 _ACEOF
16757 if ac_fn_c_try_link "$LINENO"; then :
16759 lt_aix_libpath_sed='
16760 /Import File Strings/,/^$/ {
16761 /^0/ {
16762 s/^0 *\(.*\)$/\1/
16766 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16767 # Check for a 64-bit object if we didn't find anything.
16768 if test -z "$aix_libpath"; then
16769 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16772 rm -f core conftest.err conftest.$ac_objext \
16773 conftest$ac_exeext conftest.$ac_ext
16774 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16776 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16777 # Warning - without using the other run time loading flags,
16778 # -berok will link without error, but may produce a broken library.
16779 no_undefined_flag=' ${wl}-bernotok'
16780 allow_undefined_flag=' ${wl}-berok'
16781 if test "$with_gnu_ld" = yes; then
16782 # We only use this code for GNU lds that support --whole-archive.
16783 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16784 else
16785 # Exported symbols can be pulled into shared objects from archives
16786 whole_archive_flag_spec='$convenience'
16788 archive_cmds_need_lc=yes
16789 # This is similar to how AIX traditionally builds its shared libraries.
16790 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'
16795 amigaos*)
16796 case $host_cpu in
16797 powerpc)
16798 # see comment about AmigaOS4 .so support
16799 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16800 archive_expsym_cmds=''
16802 m68k)
16803 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)'
16804 hardcode_libdir_flag_spec='-L$libdir'
16805 hardcode_minus_L=yes
16807 esac
16810 bsdi[45]*)
16811 export_dynamic_flag_spec=-rdynamic
16814 cygwin* | mingw* | pw32* | cegcc*)
16815 # When not using gcc, we currently assume that we are using
16816 # Microsoft Visual C++.
16817 # hardcode_libdir_flag_spec is actually meaningless, as there is
16818 # no search path for DLLs.
16819 hardcode_libdir_flag_spec=' '
16820 allow_undefined_flag=unsupported
16821 # Tell ltmain to make .lib files, not .a files.
16822 libext=lib
16823 # Tell ltmain to make .dll files, not .so files.
16824 shrext_cmds=".dll"
16825 # FIXME: Setting linknames here is a bad hack.
16826 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16827 # The linker will automatically build a .lib file if we build a DLL.
16828 old_archive_from_new_cmds='true'
16829 # FIXME: Should let the user specify the lib program.
16830 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
16831 fix_srcfile_path='`cygpath -w "$srcfile"`'
16832 enable_shared_with_static_runtimes=yes
16835 darwin* | rhapsody*)
16838 archive_cmds_need_lc=no
16839 hardcode_direct=no
16840 hardcode_automatic=yes
16841 hardcode_shlibpath_var=unsupported
16842 if test "$lt_cv_ld_force_load" = "yes"; then
16843 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\"`'
16844 else
16845 whole_archive_flag_spec=''
16847 link_all_deplibs=yes
16848 allow_undefined_flag="$_lt_dar_allow_undefined"
16849 case $cc_basename in
16850 ifort*) _lt_dar_can_shared=yes ;;
16851 *) _lt_dar_can_shared=$GCC ;;
16852 esac
16853 if test "$_lt_dar_can_shared" = "yes"; then
16854 output_verbose_link_cmd=func_echo_all
16855 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16856 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16857 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}"
16858 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}"
16860 else
16861 ld_shlibs=no
16866 dgux*)
16867 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16868 hardcode_libdir_flag_spec='-L$libdir'
16869 hardcode_shlibpath_var=no
16872 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16873 # support. Future versions do this automatically, but an explicit c++rt0.o
16874 # does not break anything, and helps significantly (at the cost of a little
16875 # extra space).
16876 freebsd2.2*)
16877 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16878 hardcode_libdir_flag_spec='-R$libdir'
16879 hardcode_direct=yes
16880 hardcode_shlibpath_var=no
16883 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16884 freebsd2.*)
16885 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16886 hardcode_direct=yes
16887 hardcode_minus_L=yes
16888 hardcode_shlibpath_var=no
16891 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16892 freebsd* | dragonfly*)
16893 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16894 hardcode_libdir_flag_spec='-R$libdir'
16895 hardcode_direct=yes
16896 hardcode_shlibpath_var=no
16899 hpux9*)
16900 if test "$GCC" = yes; then
16901 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'
16902 else
16903 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'
16905 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16906 hardcode_libdir_separator=:
16907 hardcode_direct=yes
16909 # hardcode_minus_L: Not really in the search PATH,
16910 # but as the default location of the library.
16911 hardcode_minus_L=yes
16912 export_dynamic_flag_spec='${wl}-E'
16915 hpux10*)
16916 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16917 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16918 else
16919 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16921 if test "$with_gnu_ld" = no; then
16922 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16923 hardcode_libdir_flag_spec_ld='+b $libdir'
16924 hardcode_libdir_separator=:
16925 hardcode_direct=yes
16926 hardcode_direct_absolute=yes
16927 export_dynamic_flag_spec='${wl}-E'
16928 # hardcode_minus_L: Not really in the search PATH,
16929 # but as the default location of the library.
16930 hardcode_minus_L=yes
16934 hpux11*)
16935 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16936 case $host_cpu in
16937 hppa*64*)
16938 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16940 ia64*)
16941 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16944 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16946 esac
16947 else
16948 case $host_cpu in
16949 hppa*64*)
16950 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16952 ia64*)
16953 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16957 # Older versions of the 11.00 compiler do not understand -b yet
16958 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16960 $as_echo_n "checking if $CC understands -b... " >&6; }
16961 if ${lt_cv_prog_compiler__b+:} false; then :
16962 $as_echo_n "(cached) " >&6
16963 else
16964 lt_cv_prog_compiler__b=no
16965 save_LDFLAGS="$LDFLAGS"
16966 LDFLAGS="$LDFLAGS -b"
16967 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16968 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16969 # The linker can only warn and ignore the option if not recognized
16970 # So say no if there are warnings
16971 if test -s conftest.err; then
16972 # Append any errors to the config.log.
16973 cat conftest.err 1>&5
16974 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16975 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16976 if diff conftest.exp conftest.er2 >/dev/null; then
16977 lt_cv_prog_compiler__b=yes
16979 else
16980 lt_cv_prog_compiler__b=yes
16983 $RM -r conftest*
16984 LDFLAGS="$save_LDFLAGS"
16987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16988 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16990 if test x"$lt_cv_prog_compiler__b" = xyes; then
16991 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16992 else
16993 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16997 esac
16999 if test "$with_gnu_ld" = no; then
17000 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
17001 hardcode_libdir_separator=:
17003 case $host_cpu in
17004 hppa*64*|ia64*)
17005 hardcode_direct=no
17006 hardcode_shlibpath_var=no
17009 hardcode_direct=yes
17010 hardcode_direct_absolute=yes
17011 export_dynamic_flag_spec='${wl}-E'
17013 # hardcode_minus_L: Not really in the search PATH,
17014 # but as the default location of the library.
17015 hardcode_minus_L=yes
17017 esac
17021 irix5* | irix6* | nonstopux*)
17022 if test "$GCC" = yes; then
17023 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'
17024 # Try to use the -exported_symbol ld option, if it does not
17025 # work, assume that -exports_file does not work either and
17026 # implicitly export all symbols.
17027 save_LDFLAGS="$LDFLAGS"
17028 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
17029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17030 /* end confdefs.h. */
17031 int foo(void) {}
17032 _ACEOF
17033 if ac_fn_c_try_link "$LINENO"; then :
17034 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'
17037 rm -f core conftest.err conftest.$ac_objext \
17038 conftest$ac_exeext conftest.$ac_ext
17039 LDFLAGS="$save_LDFLAGS"
17040 else
17041 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'
17042 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'
17044 archive_cmds_need_lc='no'
17045 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17046 hardcode_libdir_separator=:
17047 inherit_rpath=yes
17048 link_all_deplibs=yes
17051 netbsd*)
17052 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17053 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17054 else
17055 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17057 hardcode_libdir_flag_spec='-R$libdir'
17058 hardcode_direct=yes
17059 hardcode_shlibpath_var=no
17062 newsos6)
17063 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17064 hardcode_direct=yes
17065 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17066 hardcode_libdir_separator=:
17067 hardcode_shlibpath_var=no
17070 *nto* | *qnx*)
17073 openbsd*)
17074 if test -f /usr/libexec/ld.so; then
17075 hardcode_direct=yes
17076 hardcode_shlibpath_var=no
17077 hardcode_direct_absolute=yes
17078 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17079 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17080 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17081 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
17082 export_dynamic_flag_spec='${wl}-E'
17083 else
17084 case $host_os in
17085 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17086 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17087 hardcode_libdir_flag_spec='-R$libdir'
17090 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17091 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
17093 esac
17095 else
17096 ld_shlibs=no
17100 os2*)
17101 hardcode_libdir_flag_spec='-L$libdir'
17102 hardcode_minus_L=yes
17103 allow_undefined_flag=unsupported
17104 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'
17105 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17108 osf3*)
17109 if test "$GCC" = yes; then
17110 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
17111 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'
17112 else
17113 allow_undefined_flag=' -expect_unresolved \*'
17114 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'
17116 archive_cmds_need_lc='no'
17117 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17118 hardcode_libdir_separator=:
17121 osf4* | osf5*) # as osf3* with the addition of -msym flag
17122 if test "$GCC" = yes; then
17123 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
17124 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'
17125 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17126 else
17127 allow_undefined_flag=' -expect_unresolved \*'
17128 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'
17129 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~
17130 $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'
17132 # Both c and cxx compiler support -rpath directly
17133 hardcode_libdir_flag_spec='-rpath $libdir'
17135 archive_cmds_need_lc='no'
17136 hardcode_libdir_separator=:
17139 solaris*)
17140 no_undefined_flag=' -z defs'
17141 if test "$GCC" = yes; then
17142 wlarc='${wl}'
17143 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17144 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17145 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
17146 else
17147 case `$CC -V 2>&1` in
17148 *"Compilers 5.0"*)
17149 wlarc=''
17150 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17151 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17152 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
17155 wlarc='${wl}'
17156 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
17157 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17158 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
17160 esac
17162 hardcode_libdir_flag_spec='-R$libdir'
17163 hardcode_shlibpath_var=no
17164 case $host_os in
17165 solaris2.[0-5] | solaris2.[0-5].*) ;;
17167 # The compiler driver will combine and reorder linker options,
17168 # but understands `-z linker_flag'. GCC discards it without `$wl',
17169 # but is careful enough not to reorder.
17170 # Supported since Solaris 2.6 (maybe 2.5.1?)
17171 if test "$GCC" = yes; then
17172 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17173 else
17174 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
17177 esac
17178 link_all_deplibs=yes
17181 sunos4*)
17182 if test "x$host_vendor" = xsequent; then
17183 # Use $CC to link under sequent, because it throws in some extra .o
17184 # files that make .init and .fini sections work.
17185 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17186 else
17187 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17189 hardcode_libdir_flag_spec='-L$libdir'
17190 hardcode_direct=yes
17191 hardcode_minus_L=yes
17192 hardcode_shlibpath_var=no
17195 sysv4)
17196 case $host_vendor in
17197 sni)
17198 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17199 hardcode_direct=yes # is this really true???
17201 siemens)
17202 ## LD is ld it makes a PLAMLIB
17203 ## CC just makes a GrossModule.
17204 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17205 reload_cmds='$CC -r -o $output$reload_objs'
17206 hardcode_direct=no
17208 motorola)
17209 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17210 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
17212 esac
17213 runpath_var='LD_RUN_PATH'
17214 hardcode_shlibpath_var=no
17217 sysv4.3*)
17218 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17219 hardcode_shlibpath_var=no
17220 export_dynamic_flag_spec='-Bexport'
17223 sysv4*MP*)
17224 if test -d /usr/nec; then
17225 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17226 hardcode_shlibpath_var=no
17227 runpath_var=LD_RUN_PATH
17228 hardcode_runpath_var=yes
17229 ld_shlibs=yes
17233 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17234 no_undefined_flag='${wl}-z,text'
17235 archive_cmds_need_lc=no
17236 hardcode_shlibpath_var=no
17237 runpath_var='LD_RUN_PATH'
17239 if test "$GCC" = yes; then
17240 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17241 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17242 else
17243 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17244 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17248 sysv5* | sco3.2v5* | sco5v6*)
17249 # Note: We can NOT use -z defs as we might desire, because we do not
17250 # link with -lc, and that would cause any symbols used from libc to
17251 # always be unresolved, which means just about no library would
17252 # ever link correctly. If we're not using GNU ld we use -z text
17253 # though, which does catch some bad symbols but isn't as heavy-handed
17254 # as -z defs.
17255 no_undefined_flag='${wl}-z,text'
17256 allow_undefined_flag='${wl}-z,nodefs'
17257 archive_cmds_need_lc=no
17258 hardcode_shlibpath_var=no
17259 hardcode_libdir_flag_spec='${wl}-R,$libdir'
17260 hardcode_libdir_separator=':'
17261 link_all_deplibs=yes
17262 export_dynamic_flag_spec='${wl}-Bexport'
17263 runpath_var='LD_RUN_PATH'
17265 if test "$GCC" = yes; then
17266 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17267 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17268 else
17269 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17270 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17274 uts4*)
17275 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17276 hardcode_libdir_flag_spec='-L$libdir'
17277 hardcode_shlibpath_var=no
17281 ld_shlibs=no
17283 esac
17285 if test x$host_vendor = xsni; then
17286 case $host in
17287 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17288 export_dynamic_flag_spec='${wl}-Blargedynsym'
17290 esac
17294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
17295 $as_echo "$ld_shlibs" >&6; }
17296 test "$ld_shlibs" = no && can_build_shared=no
17298 with_gnu_ld=$with_gnu_ld
17315 # Do we need to explicitly link libc?
17317 case "x$archive_cmds_need_lc" in
17318 x|xyes)
17319 # Assume -lc should be added
17320 archive_cmds_need_lc=yes
17322 if test "$enable_shared" = yes && test "$GCC" = yes; then
17323 case $archive_cmds in
17324 *'~'*)
17325 # FIXME: we may have to deal with multi-command sequences.
17327 '$CC '*)
17328 # Test whether the compiler implicitly links with -lc since on some
17329 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17330 # to ld, don't add -lc before -lgcc.
17331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17332 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17333 if ${lt_cv_archive_cmds_need_lc+:} false; then :
17334 $as_echo_n "(cached) " >&6
17335 else
17336 $RM conftest*
17337 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17339 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17340 (eval $ac_compile) 2>&5
17341 ac_status=$?
17342 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17343 test $ac_status = 0; } 2>conftest.err; then
17344 soname=conftest
17345 lib=conftest
17346 libobjs=conftest.$ac_objext
17347 deplibs=
17348 wl=$lt_prog_compiler_wl
17349 pic_flag=$lt_prog_compiler_pic
17350 compiler_flags=-v
17351 linker_flags=-v
17352 verstring=
17353 output_objdir=.
17354 libname=conftest
17355 lt_save_allow_undefined_flag=$allow_undefined_flag
17356 allow_undefined_flag=
17357 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17358 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17359 ac_status=$?
17360 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17361 test $ac_status = 0; }
17362 then
17363 lt_cv_archive_cmds_need_lc=no
17364 else
17365 lt_cv_archive_cmds_need_lc=yes
17367 allow_undefined_flag=$lt_save_allow_undefined_flag
17368 else
17369 cat conftest.err 1>&5
17371 $RM conftest*
17374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
17375 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
17376 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
17378 esac
17381 esac
17539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17540 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17542 if test "$GCC" = yes; then
17543 case $host_os in
17544 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
17545 *) lt_awk_arg="/^libraries:/" ;;
17546 esac
17547 case $host_os in
17548 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
17549 *) lt_sed_strip_eq="s,=/,/,g" ;;
17550 esac
17551 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
17552 case $lt_search_path_spec in
17553 *\;*)
17554 # if the path contains ";" then we assume it to be the separator
17555 # otherwise default to the standard path separator (i.e. ":") - it is
17556 # assumed that no part of a normal pathname contains ";" but that should
17557 # okay in the real world where ";" in dirpaths is itself problematic.
17558 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
17561 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
17563 esac
17564 # Ok, now we have the path, separated by spaces, we can step through it
17565 # and add multilib dir if necessary.
17566 lt_tmp_lt_search_path_spec=
17567 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
17568 for lt_sys_path in $lt_search_path_spec; do
17569 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
17570 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
17571 else
17572 test -d "$lt_sys_path" && \
17573 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
17575 done
17576 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
17577 BEGIN {RS=" "; FS="/|\n";} {
17578 lt_foo="";
17579 lt_count=0;
17580 for (lt_i = NF; lt_i > 0; lt_i--) {
17581 if ($lt_i != "" && $lt_i != ".") {
17582 if ($lt_i == "..") {
17583 lt_count++;
17584 } else {
17585 if (lt_count == 0) {
17586 lt_foo="/" $lt_i lt_foo;
17587 } else {
17588 lt_count--;
17593 if (lt_foo != "") { lt_freq[lt_foo]++; }
17594 if (lt_freq[lt_foo] == 1) { print lt_foo; }
17596 # AWK program above erroneously prepends '/' to C:/dos/paths
17597 # for these hosts.
17598 case $host_os in
17599 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
17600 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
17601 esac
17602 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
17603 else
17604 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17606 library_names_spec=
17607 libname_spec='lib$name'
17608 soname_spec=
17609 shrext_cmds=".so"
17610 postinstall_cmds=
17611 postuninstall_cmds=
17612 finish_cmds=
17613 finish_eval=
17614 shlibpath_var=
17615 shlibpath_overrides_runpath=unknown
17616 version_type=none
17617 dynamic_linker="$host_os ld.so"
17618 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17619 need_lib_prefix=unknown
17620 hardcode_into_libs=no
17622 # when you set need_version to no, make sure it does not cause -set_version
17623 # flags to be left without arguments
17624 need_version=unknown
17626 case $host_os in
17627 aix3*)
17628 version_type=linux
17629 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17630 shlibpath_var=LIBPATH
17632 # AIX 3 has no versioning support, so we append a major version to the name.
17633 soname_spec='${libname}${release}${shared_ext}$major'
17636 aix[4-9]*)
17637 version_type=linux
17638 need_lib_prefix=no
17639 need_version=no
17640 hardcode_into_libs=yes
17641 if test "$host_cpu" = ia64; then
17642 # AIX 5 supports IA64
17643 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17644 shlibpath_var=LD_LIBRARY_PATH
17645 else
17646 # With GCC up to 2.95.x, collect2 would create an import file
17647 # for dependence libraries. The import file would start with
17648 # the line `#! .'. This would cause the generated library to
17649 # depend on `.', always an invalid library. This was fixed in
17650 # development snapshots of GCC prior to 3.0.
17651 case $host_os in
17652 aix4 | aix4.[01] | aix4.[01].*)
17653 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17654 echo ' yes '
17655 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
17657 else
17658 can_build_shared=no
17661 esac
17662 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17663 # soname into executable. Probably we can add versioning support to
17664 # collect2, so additional links can be useful in future.
17665 if test "$aix_use_runtimelinking" = yes; then
17666 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17667 # instead of lib<name>.a to let people know that these are not
17668 # typical AIX shared libraries.
17669 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17670 else
17671 # We preserve .a as extension for shared libraries through AIX4.2
17672 # and later when we are not doing run time linking.
17673 library_names_spec='${libname}${release}.a $libname.a'
17674 soname_spec='${libname}${release}${shared_ext}$major'
17676 shlibpath_var=LIBPATH
17680 amigaos*)
17681 case $host_cpu in
17682 powerpc)
17683 # Since July 2007 AmigaOS4 officially supports .so libraries.
17684 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17687 m68k)
17688 library_names_spec='$libname.ixlibrary $libname.a'
17689 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17690 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'
17692 esac
17695 beos*)
17696 library_names_spec='${libname}${shared_ext}'
17697 dynamic_linker="$host_os ld.so"
17698 shlibpath_var=LIBRARY_PATH
17701 bsdi[45]*)
17702 version_type=linux
17703 need_version=no
17704 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17705 soname_spec='${libname}${release}${shared_ext}$major'
17706 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17707 shlibpath_var=LD_LIBRARY_PATH
17708 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17709 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17710 # the default ld.so.conf also contains /usr/contrib/lib and
17711 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17712 # libtool to hard-code these into programs
17715 cygwin* | mingw* | pw32* | cegcc*)
17716 version_type=windows
17717 shrext_cmds=".dll"
17718 need_version=no
17719 need_lib_prefix=no
17721 case $GCC,$host_os in
17722 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
17723 library_names_spec='$libname.dll.a'
17724 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17725 postinstall_cmds='base_file=`basename \${file}`~
17726 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17727 dldir=$destdir/`dirname \$dlpath`~
17728 test -d \$dldir || mkdir -p \$dldir~
17729 $install_prog $dir/$dlname \$dldir/$dlname~
17730 chmod a+x \$dldir/$dlname~
17731 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17732 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17734 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17735 dlpath=$dir/\$dldll~
17736 $RM \$dlpath'
17737 shlibpath_overrides_runpath=yes
17739 case $host_os in
17740 cygwin*)
17741 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17742 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17744 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
17746 mingw* | cegcc*)
17747 # MinGW DLLs use traditional 'lib' prefix
17748 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17750 pw32*)
17751 # pw32 DLLs use 'pw' prefix rather than 'lib'
17752 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17754 esac
17758 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17760 esac
17761 dynamic_linker='Win32 ld.exe'
17762 # FIXME: first we should search . and the directory the executable is in
17763 shlibpath_var=PATH
17766 darwin* | rhapsody*)
17767 dynamic_linker="$host_os dyld"
17768 version_type=darwin
17769 need_lib_prefix=no
17770 need_version=no
17771 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17772 soname_spec='${libname}${release}${major}$shared_ext'
17773 shlibpath_overrides_runpath=yes
17774 shlibpath_var=DYLD_LIBRARY_PATH
17775 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17777 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
17778 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17781 dgux*)
17782 version_type=linux
17783 need_lib_prefix=no
17784 need_version=no
17785 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17786 soname_spec='${libname}${release}${shared_ext}$major'
17787 shlibpath_var=LD_LIBRARY_PATH
17790 freebsd* | dragonfly*)
17791 # DragonFly does not have aout. When/if they implement a new
17792 # versioning mechanism, adjust this.
17793 if test -x /usr/bin/objformat; then
17794 objformat=`/usr/bin/objformat`
17795 else
17796 case $host_os in
17797 freebsd[23].*) objformat=aout ;;
17798 *) objformat=elf ;;
17799 esac
17801 version_type=freebsd-$objformat
17802 case $version_type in
17803 freebsd-elf*)
17804 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17805 need_version=no
17806 need_lib_prefix=no
17808 freebsd-*)
17809 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17810 need_version=yes
17812 esac
17813 shlibpath_var=LD_LIBRARY_PATH
17814 case $host_os in
17815 freebsd2.*)
17816 shlibpath_overrides_runpath=yes
17818 freebsd3.[01]* | freebsdelf3.[01]*)
17819 shlibpath_overrides_runpath=yes
17820 hardcode_into_libs=yes
17822 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17823 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17824 shlibpath_overrides_runpath=no
17825 hardcode_into_libs=yes
17827 *) # from 4.6 on, and DragonFly
17828 shlibpath_overrides_runpath=yes
17829 hardcode_into_libs=yes
17831 esac
17834 gnu*)
17835 version_type=linux
17836 need_lib_prefix=no
17837 need_version=no
17838 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17839 soname_spec='${libname}${release}${shared_ext}$major'
17840 shlibpath_var=LD_LIBRARY_PATH
17841 hardcode_into_libs=yes
17844 haiku*)
17845 version_type=linux
17846 need_lib_prefix=no
17847 need_version=no
17848 dynamic_linker="$host_os runtime_loader"
17849 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17850 soname_spec='${libname}${release}${shared_ext}$major'
17851 shlibpath_var=LIBRARY_PATH
17852 shlibpath_overrides_runpath=yes
17853 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
17854 hardcode_into_libs=yes
17857 hpux9* | hpux10* | hpux11*)
17858 # Give a soname corresponding to the major version so that dld.sl refuses to
17859 # link against other versions.
17860 version_type=sunos
17861 need_lib_prefix=no
17862 need_version=no
17863 case $host_cpu in
17864 ia64*)
17865 shrext_cmds='.so'
17866 hardcode_into_libs=yes
17867 dynamic_linker="$host_os dld.so"
17868 shlibpath_var=LD_LIBRARY_PATH
17869 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17870 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17871 soname_spec='${libname}${release}${shared_ext}$major'
17872 if test "X$HPUX_IA64_MODE" = X32; then
17873 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17874 else
17875 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17877 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17879 hppa*64*)
17880 shrext_cmds='.sl'
17881 hardcode_into_libs=yes
17882 dynamic_linker="$host_os dld.sl"
17883 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17884 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17885 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17886 soname_spec='${libname}${release}${shared_ext}$major'
17887 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17888 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17891 shrext_cmds='.sl'
17892 dynamic_linker="$host_os dld.sl"
17893 shlibpath_var=SHLIB_PATH
17894 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17896 soname_spec='${libname}${release}${shared_ext}$major'
17898 esac
17899 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17900 postinstall_cmds='chmod 555 $lib'
17901 # or fails outright, so override atomically:
17902 install_override_mode=555
17905 interix[3-9]*)
17906 version_type=linux
17907 need_lib_prefix=no
17908 need_version=no
17909 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17910 soname_spec='${libname}${release}${shared_ext}$major'
17911 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17912 shlibpath_var=LD_LIBRARY_PATH
17913 shlibpath_overrides_runpath=no
17914 hardcode_into_libs=yes
17917 irix5* | irix6* | nonstopux*)
17918 case $host_os in
17919 nonstopux*) version_type=nonstopux ;;
17921 if test "$lt_cv_prog_gnu_ld" = yes; then
17922 version_type=linux
17923 else
17924 version_type=irix
17925 fi ;;
17926 esac
17927 need_lib_prefix=no
17928 need_version=no
17929 soname_spec='${libname}${release}${shared_ext}$major'
17930 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17931 case $host_os in
17932 irix5* | nonstopux*)
17933 libsuff= shlibsuff=
17936 case $LD in # libtool.m4 will add one of these switches to LD
17937 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17938 libsuff= shlibsuff= libmagic=32-bit;;
17939 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17940 libsuff=32 shlibsuff=N32 libmagic=N32;;
17941 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17942 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17943 *) libsuff= shlibsuff= libmagic=never-match;;
17944 esac
17946 esac
17947 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17948 shlibpath_overrides_runpath=no
17949 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17950 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17951 hardcode_into_libs=yes
17954 # No shared lib support for Linux oldld, aout, or coff.
17955 linux*oldld* | linux*aout* | linux*coff*)
17956 dynamic_linker=no
17959 # This must be Linux ELF.
17960 linux* | k*bsd*-gnu | kopensolaris*-gnu)
17961 version_type=linux
17962 need_lib_prefix=no
17963 need_version=no
17964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17965 soname_spec='${libname}${release}${shared_ext}$major'
17966 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17967 shlibpath_var=LD_LIBRARY_PATH
17968 shlibpath_overrides_runpath=no
17970 # Some binutils ld are patched to set DT_RUNPATH
17971 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
17972 $as_echo_n "(cached) " >&6
17973 else
17974 lt_cv_shlibpath_overrides_runpath=no
17975 save_LDFLAGS=$LDFLAGS
17976 save_libdir=$libdir
17977 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17978 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17980 /* end confdefs.h. */
17983 main ()
17987 return 0;
17989 _ACEOF
17990 if ac_fn_c_try_link "$LINENO"; then :
17991 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17992 lt_cv_shlibpath_overrides_runpath=yes
17995 rm -f core conftest.err conftest.$ac_objext \
17996 conftest$ac_exeext conftest.$ac_ext
17997 LDFLAGS=$save_LDFLAGS
17998 libdir=$save_libdir
18002 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
18004 # This implies no fast_install, which is unacceptable.
18005 # Some rework will be needed to allow for fast_install
18006 # before this can be enabled.
18007 hardcode_into_libs=yes
18009 # Append ld.so.conf contents to the search path
18010 if test -f /etc/ld.so.conf; then
18011 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' ' '`
18012 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18015 # We used to test for /lib/ld.so.1 and disable shared libraries on
18016 # powerpc, because MkLinux only supported shared libraries with the
18017 # GNU dynamic linker. Since this was broken with cross compilers,
18018 # most powerpc-linux boxes support dynamic linking these days and
18019 # people can always --disable-shared, the test was removed, and we
18020 # assume the GNU/Linux dynamic linker is in use.
18021 dynamic_linker='GNU/Linux ld.so'
18024 netbsd*)
18025 version_type=sunos
18026 need_lib_prefix=no
18027 need_version=no
18028 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18030 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18031 dynamic_linker='NetBSD (a.out) ld.so'
18032 else
18033 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18034 soname_spec='${libname}${release}${shared_ext}$major'
18035 dynamic_linker='NetBSD ld.elf_so'
18037 shlibpath_var=LD_LIBRARY_PATH
18038 shlibpath_overrides_runpath=yes
18039 hardcode_into_libs=yes
18042 newsos6)
18043 version_type=linux
18044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18045 shlibpath_var=LD_LIBRARY_PATH
18046 shlibpath_overrides_runpath=yes
18049 *nto* | *qnx*)
18050 version_type=qnx
18051 need_lib_prefix=no
18052 need_version=no
18053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18054 soname_spec='${libname}${release}${shared_ext}$major'
18055 shlibpath_var=LD_LIBRARY_PATH
18056 shlibpath_overrides_runpath=no
18057 hardcode_into_libs=yes
18058 dynamic_linker='ldqnx.so'
18061 openbsd*)
18062 version_type=sunos
18063 sys_lib_dlsearch_path_spec="/usr/lib"
18064 need_lib_prefix=no
18065 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18066 case $host_os in
18067 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18068 *) need_version=no ;;
18069 esac
18070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18071 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18072 shlibpath_var=LD_LIBRARY_PATH
18073 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18074 case $host_os in
18075 openbsd2.[89] | openbsd2.[89].*)
18076 shlibpath_overrides_runpath=no
18079 shlibpath_overrides_runpath=yes
18081 esac
18082 else
18083 shlibpath_overrides_runpath=yes
18087 os2*)
18088 libname_spec='$name'
18089 shrext_cmds=".dll"
18090 need_lib_prefix=no
18091 library_names_spec='$libname${shared_ext} $libname.a'
18092 dynamic_linker='OS/2 ld.exe'
18093 shlibpath_var=LIBPATH
18096 osf3* | osf4* | osf5*)
18097 version_type=osf
18098 need_lib_prefix=no
18099 need_version=no
18100 soname_spec='${libname}${release}${shared_ext}$major'
18101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18102 shlibpath_var=LD_LIBRARY_PATH
18103 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18104 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18107 rdos*)
18108 dynamic_linker=no
18111 solaris*)
18112 version_type=linux
18113 need_lib_prefix=no
18114 need_version=no
18115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18116 soname_spec='${libname}${release}${shared_ext}$major'
18117 shlibpath_var=LD_LIBRARY_PATH
18118 shlibpath_overrides_runpath=yes
18119 hardcode_into_libs=yes
18120 # ldd complains unless libraries are executable
18121 postinstall_cmds='chmod +x $lib'
18124 sunos4*)
18125 version_type=sunos
18126 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18127 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18128 shlibpath_var=LD_LIBRARY_PATH
18129 shlibpath_overrides_runpath=yes
18130 if test "$with_gnu_ld" = yes; then
18131 need_lib_prefix=no
18133 need_version=yes
18136 sysv4 | sysv4.3*)
18137 version_type=linux
18138 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18139 soname_spec='${libname}${release}${shared_ext}$major'
18140 shlibpath_var=LD_LIBRARY_PATH
18141 case $host_vendor in
18142 sni)
18143 shlibpath_overrides_runpath=no
18144 need_lib_prefix=no
18145 runpath_var=LD_RUN_PATH
18147 siemens)
18148 need_lib_prefix=no
18150 motorola)
18151 need_lib_prefix=no
18152 need_version=no
18153 shlibpath_overrides_runpath=no
18154 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18156 esac
18159 sysv4*MP*)
18160 if test -d /usr/nec ;then
18161 version_type=linux
18162 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18163 soname_spec='$libname${shared_ext}.$major'
18164 shlibpath_var=LD_LIBRARY_PATH
18168 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18169 version_type=freebsd-elf
18170 need_lib_prefix=no
18171 need_version=no
18172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18173 soname_spec='${libname}${release}${shared_ext}$major'
18174 shlibpath_var=LD_LIBRARY_PATH
18175 shlibpath_overrides_runpath=yes
18176 hardcode_into_libs=yes
18177 if test "$with_gnu_ld" = yes; then
18178 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18179 else
18180 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18181 case $host_os in
18182 sco3.2v5*)
18183 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18185 esac
18187 sys_lib_dlsearch_path_spec='/usr/lib'
18190 tpf*)
18191 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
18192 version_type=linux
18193 need_lib_prefix=no
18194 need_version=no
18195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18196 shlibpath_var=LD_LIBRARY_PATH
18197 shlibpath_overrides_runpath=no
18198 hardcode_into_libs=yes
18201 uts4*)
18202 version_type=linux
18203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18204 soname_spec='${libname}${release}${shared_ext}$major'
18205 shlibpath_var=LD_LIBRARY_PATH
18209 dynamic_linker=no
18211 esac
18212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18213 $as_echo "$dynamic_linker" >&6; }
18214 test "$dynamic_linker" = no && can_build_shared=no
18216 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18217 if test "$GCC" = yes; then
18218 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18221 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18222 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18224 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18225 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18320 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18321 hardcode_action=
18322 if test -n "$hardcode_libdir_flag_spec" ||
18323 test -n "$runpath_var" ||
18324 test "X$hardcode_automatic" = "Xyes" ; then
18326 # We can hardcode non-existent directories.
18327 if test "$hardcode_direct" != no &&
18328 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18329 # have to relink, otherwise we might link with an installed library
18330 # when we should be linking with a yet-to-be-installed one
18331 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
18332 test "$hardcode_minus_L" != no; then
18333 # Linking always hardcodes the temporary library directory.
18334 hardcode_action=relink
18335 else
18336 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18337 hardcode_action=immediate
18339 else
18340 # We cannot hardcode anything, or else we can only hardcode existing
18341 # directories.
18342 hardcode_action=unsupported
18344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
18345 $as_echo "$hardcode_action" >&6; }
18347 if test "$hardcode_action" = relink ||
18348 test "$inherit_rpath" = yes; then
18349 # Fast installation is not supported
18350 enable_fast_install=no
18351 elif test "$shlibpath_overrides_runpath" = yes ||
18352 test "$enable_shared" = no; then
18353 # Fast installation is not necessary
18354 enable_fast_install=needless
18362 if test "x$enable_dlopen" != xyes; then
18363 enable_dlopen=unknown
18364 enable_dlopen_self=unknown
18365 enable_dlopen_self_static=unknown
18366 else
18367 lt_cv_dlopen=no
18368 lt_cv_dlopen_libs=
18370 case $host_os in
18371 beos*)
18372 lt_cv_dlopen="load_add_on"
18373 lt_cv_dlopen_libs=
18374 lt_cv_dlopen_self=yes
18377 mingw* | pw32* | cegcc*)
18378 lt_cv_dlopen="LoadLibrary"
18379 lt_cv_dlopen_libs=
18382 cygwin*)
18383 lt_cv_dlopen="dlopen"
18384 lt_cv_dlopen_libs=
18387 darwin*)
18388 # if libdl is installed we need to link against it
18389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18390 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18391 if ${ac_cv_lib_dl_dlopen+:} false; then :
18392 $as_echo_n "(cached) " >&6
18393 else
18394 ac_check_lib_save_LIBS=$LIBS
18395 LIBS="-ldl $LIBS"
18396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18397 /* end confdefs.h. */
18399 /* Override any GCC internal prototype to avoid an error.
18400 Use char because int might match the return type of a GCC
18401 builtin and then its argument prototype would still apply. */
18402 #ifdef __cplusplus
18403 extern "C"
18404 #endif
18405 char dlopen ();
18407 main ()
18409 return dlopen ();
18411 return 0;
18413 _ACEOF
18414 if ac_fn_c_try_link "$LINENO"; then :
18415 ac_cv_lib_dl_dlopen=yes
18416 else
18417 ac_cv_lib_dl_dlopen=no
18419 rm -f core conftest.err conftest.$ac_objext \
18420 conftest$ac_exeext conftest.$ac_ext
18421 LIBS=$ac_check_lib_save_LIBS
18423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18424 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18425 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
18426 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18427 else
18429 lt_cv_dlopen="dyld"
18430 lt_cv_dlopen_libs=
18431 lt_cv_dlopen_self=yes
18438 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
18439 if test "x$ac_cv_func_shl_load" = xyes; then :
18440 lt_cv_dlopen="shl_load"
18441 else
18442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
18443 $as_echo_n "checking for shl_load in -ldld... " >&6; }
18444 if ${ac_cv_lib_dld_shl_load+:} false; then :
18445 $as_echo_n "(cached) " >&6
18446 else
18447 ac_check_lib_save_LIBS=$LIBS
18448 LIBS="-ldld $LIBS"
18449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18450 /* end confdefs.h. */
18452 /* Override any GCC internal prototype to avoid an error.
18453 Use char because int might match the return type of a GCC
18454 builtin and then its argument prototype would still apply. */
18455 #ifdef __cplusplus
18456 extern "C"
18457 #endif
18458 char shl_load ();
18460 main ()
18462 return shl_load ();
18464 return 0;
18466 _ACEOF
18467 if ac_fn_c_try_link "$LINENO"; then :
18468 ac_cv_lib_dld_shl_load=yes
18469 else
18470 ac_cv_lib_dld_shl_load=no
18472 rm -f core conftest.err conftest.$ac_objext \
18473 conftest$ac_exeext conftest.$ac_ext
18474 LIBS=$ac_check_lib_save_LIBS
18476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
18477 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
18478 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
18479 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
18480 else
18481 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
18482 if test "x$ac_cv_func_dlopen" = xyes; then :
18483 lt_cv_dlopen="dlopen"
18484 else
18485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18486 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18487 if ${ac_cv_lib_dl_dlopen+:} false; then :
18488 $as_echo_n "(cached) " >&6
18489 else
18490 ac_check_lib_save_LIBS=$LIBS
18491 LIBS="-ldl $LIBS"
18492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18493 /* end confdefs.h. */
18495 /* Override any GCC internal prototype to avoid an error.
18496 Use char because int might match the return type of a GCC
18497 builtin and then its argument prototype would still apply. */
18498 #ifdef __cplusplus
18499 extern "C"
18500 #endif
18501 char dlopen ();
18503 main ()
18505 return dlopen ();
18507 return 0;
18509 _ACEOF
18510 if ac_fn_c_try_link "$LINENO"; then :
18511 ac_cv_lib_dl_dlopen=yes
18512 else
18513 ac_cv_lib_dl_dlopen=no
18515 rm -f core conftest.err conftest.$ac_objext \
18516 conftest$ac_exeext conftest.$ac_ext
18517 LIBS=$ac_check_lib_save_LIBS
18519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18520 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18521 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
18522 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18523 else
18524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
18525 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
18526 if ${ac_cv_lib_svld_dlopen+:} false; then :
18527 $as_echo_n "(cached) " >&6
18528 else
18529 ac_check_lib_save_LIBS=$LIBS
18530 LIBS="-lsvld $LIBS"
18531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18532 /* end confdefs.h. */
18534 /* Override any GCC internal prototype to avoid an error.
18535 Use char because int might match the return type of a GCC
18536 builtin and then its argument prototype would still apply. */
18537 #ifdef __cplusplus
18538 extern "C"
18539 #endif
18540 char dlopen ();
18542 main ()
18544 return dlopen ();
18546 return 0;
18548 _ACEOF
18549 if ac_fn_c_try_link "$LINENO"; then :
18550 ac_cv_lib_svld_dlopen=yes
18551 else
18552 ac_cv_lib_svld_dlopen=no
18554 rm -f core conftest.err conftest.$ac_objext \
18555 conftest$ac_exeext conftest.$ac_ext
18556 LIBS=$ac_check_lib_save_LIBS
18558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
18559 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
18560 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
18561 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18562 else
18563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
18564 $as_echo_n "checking for dld_link in -ldld... " >&6; }
18565 if ${ac_cv_lib_dld_dld_link+:} false; then :
18566 $as_echo_n "(cached) " >&6
18567 else
18568 ac_check_lib_save_LIBS=$LIBS
18569 LIBS="-ldld $LIBS"
18570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18571 /* end confdefs.h. */
18573 /* Override any GCC internal prototype to avoid an error.
18574 Use char because int might match the return type of a GCC
18575 builtin and then its argument prototype would still apply. */
18576 #ifdef __cplusplus
18577 extern "C"
18578 #endif
18579 char dld_link ();
18581 main ()
18583 return dld_link ();
18585 return 0;
18587 _ACEOF
18588 if ac_fn_c_try_link "$LINENO"; then :
18589 ac_cv_lib_dld_dld_link=yes
18590 else
18591 ac_cv_lib_dld_dld_link=no
18593 rm -f core conftest.err conftest.$ac_objext \
18594 conftest$ac_exeext conftest.$ac_ext
18595 LIBS=$ac_check_lib_save_LIBS
18597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
18598 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
18599 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
18600 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
18619 esac
18621 if test "x$lt_cv_dlopen" != xno; then
18622 enable_dlopen=yes
18623 else
18624 enable_dlopen=no
18627 case $lt_cv_dlopen in
18628 dlopen)
18629 save_CPPFLAGS="$CPPFLAGS"
18630 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18632 save_LDFLAGS="$LDFLAGS"
18633 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18635 save_LIBS="$LIBS"
18636 LIBS="$lt_cv_dlopen_libs $LIBS"
18638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
18639 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
18640 if ${lt_cv_dlopen_self+:} false; then :
18641 $as_echo_n "(cached) " >&6
18642 else
18643 if test "$cross_compiling" = yes; then :
18644 lt_cv_dlopen_self=cross
18645 else
18646 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18647 lt_status=$lt_dlunknown
18648 cat > conftest.$ac_ext <<_LT_EOF
18649 #line 18640 "configure"
18650 #include "confdefs.h"
18652 #if HAVE_DLFCN_H
18653 #include <dlfcn.h>
18654 #endif
18656 #include <stdio.h>
18658 #ifdef RTLD_GLOBAL
18659 # define LT_DLGLOBAL RTLD_GLOBAL
18660 #else
18661 # ifdef DL_GLOBAL
18662 # define LT_DLGLOBAL DL_GLOBAL
18663 # else
18664 # define LT_DLGLOBAL 0
18665 # endif
18666 #endif
18668 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18669 find out it does not work in some platform. */
18670 #ifndef LT_DLLAZY_OR_NOW
18671 # ifdef RTLD_LAZY
18672 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18673 # else
18674 # ifdef DL_LAZY
18675 # define LT_DLLAZY_OR_NOW DL_LAZY
18676 # else
18677 # ifdef RTLD_NOW
18678 # define LT_DLLAZY_OR_NOW RTLD_NOW
18679 # else
18680 # ifdef DL_NOW
18681 # define LT_DLLAZY_OR_NOW DL_NOW
18682 # else
18683 # define LT_DLLAZY_OR_NOW 0
18684 # endif
18685 # endif
18686 # endif
18687 # endif
18688 #endif
18690 /* When -fvisbility=hidden is used, assume the code has been annotated
18691 correspondingly for the symbols needed. */
18692 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18693 void fnord () __attribute__((visibility("default")));
18694 #endif
18696 void fnord () { int i=42; }
18697 int main ()
18699 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18700 int status = $lt_dlunknown;
18702 if (self)
18704 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18705 else
18707 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18708 else puts (dlerror ());
18710 /* dlclose (self); */
18712 else
18713 puts (dlerror ());
18715 return status;
18717 _LT_EOF
18718 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18719 (eval $ac_link) 2>&5
18720 ac_status=$?
18721 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18722 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18723 (./conftest; exit; ) >&5 2>/dev/null
18724 lt_status=$?
18725 case x$lt_status in
18726 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18727 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18728 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
18729 esac
18730 else :
18731 # compilation failed
18732 lt_cv_dlopen_self=no
18735 rm -fr conftest*
18739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18740 $as_echo "$lt_cv_dlopen_self" >&6; }
18742 if test "x$lt_cv_dlopen_self" = xyes; then
18743 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
18744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18745 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18746 if ${lt_cv_dlopen_self_static+:} false; then :
18747 $as_echo_n "(cached) " >&6
18748 else
18749 if test "$cross_compiling" = yes; then :
18750 lt_cv_dlopen_self_static=cross
18751 else
18752 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18753 lt_status=$lt_dlunknown
18754 cat > conftest.$ac_ext <<_LT_EOF
18755 #line 18746 "configure"
18756 #include "confdefs.h"
18758 #if HAVE_DLFCN_H
18759 #include <dlfcn.h>
18760 #endif
18762 #include <stdio.h>
18764 #ifdef RTLD_GLOBAL
18765 # define LT_DLGLOBAL RTLD_GLOBAL
18766 #else
18767 # ifdef DL_GLOBAL
18768 # define LT_DLGLOBAL DL_GLOBAL
18769 # else
18770 # define LT_DLGLOBAL 0
18771 # endif
18772 #endif
18774 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18775 find out it does not work in some platform. */
18776 #ifndef LT_DLLAZY_OR_NOW
18777 # ifdef RTLD_LAZY
18778 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18779 # else
18780 # ifdef DL_LAZY
18781 # define LT_DLLAZY_OR_NOW DL_LAZY
18782 # else
18783 # ifdef RTLD_NOW
18784 # define LT_DLLAZY_OR_NOW RTLD_NOW
18785 # else
18786 # ifdef DL_NOW
18787 # define LT_DLLAZY_OR_NOW DL_NOW
18788 # else
18789 # define LT_DLLAZY_OR_NOW 0
18790 # endif
18791 # endif
18792 # endif
18793 # endif
18794 #endif
18796 /* When -fvisbility=hidden is used, assume the code has been annotated
18797 correspondingly for the symbols needed. */
18798 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18799 void fnord () __attribute__((visibility("default")));
18800 #endif
18802 void fnord () { int i=42; }
18803 int main ()
18805 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18806 int status = $lt_dlunknown;
18808 if (self)
18810 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18811 else
18813 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18814 else puts (dlerror ());
18816 /* dlclose (self); */
18818 else
18819 puts (dlerror ());
18821 return status;
18823 _LT_EOF
18824 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18825 (eval $ac_link) 2>&5
18826 ac_status=$?
18827 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18828 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18829 (./conftest; exit; ) >&5 2>/dev/null
18830 lt_status=$?
18831 case x$lt_status in
18832 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18833 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18834 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
18835 esac
18836 else :
18837 # compilation failed
18838 lt_cv_dlopen_self_static=no
18841 rm -fr conftest*
18845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18846 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18849 CPPFLAGS="$save_CPPFLAGS"
18850 LDFLAGS="$save_LDFLAGS"
18851 LIBS="$save_LIBS"
18853 esac
18855 case $lt_cv_dlopen_self in
18856 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18857 *) enable_dlopen_self=unknown ;;
18858 esac
18860 case $lt_cv_dlopen_self_static in
18861 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18862 *) enable_dlopen_self_static=unknown ;;
18863 esac
18882 striplib=
18883 old_striplib=
18884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18885 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18886 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
18887 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18888 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18890 $as_echo "yes" >&6; }
18891 else
18892 # FIXME - insert some real tests, host_os isn't really good enough
18893 case $host_os in
18894 darwin*)
18895 if test -n "$STRIP" ; then
18896 striplib="$STRIP -x"
18897 old_striplib="$STRIP -S"
18898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18899 $as_echo "yes" >&6; }
18900 else
18901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18902 $as_echo "no" >&6; }
18906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18907 $as_echo "no" >&6; }
18909 esac
18923 # Report which library types will actually be built
18924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18925 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18927 $as_echo "$can_build_shared" >&6; }
18929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18930 $as_echo_n "checking whether to build shared libraries... " >&6; }
18931 test "$can_build_shared" = "no" && enable_shared=no
18933 # On AIX, shared libraries and static libraries use the same namespace, and
18934 # are all built from PIC.
18935 case $host_os in
18936 aix3*)
18937 test "$enable_shared" = yes && enable_static=no
18938 if test -n "$RANLIB"; then
18939 archive_cmds="$archive_cmds~\$RANLIB \$lib"
18940 postinstall_cmds='$RANLIB $lib'
18944 aix[4-9]*)
18945 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
18946 test "$enable_shared" = yes && enable_static=no
18949 esac
18950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18951 $as_echo "$enable_shared" >&6; }
18953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18954 $as_echo_n "checking whether to build static libraries... " >&6; }
18955 # Make sure either enable_shared or enable_static is yes.
18956 test "$enable_shared" = yes || enable_static=yes
18957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18958 $as_echo "$enable_static" >&6; }
18964 ac_ext=cpp
18965 ac_cpp='$CXXCPP $CPPFLAGS'
18966 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18967 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18968 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18970 CC="$lt_save_CC"
18972 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18973 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18974 (test "X$CXX" != "Xg++"))) ; then
18975 ac_ext=cpp
18976 ac_cpp='$CXXCPP $CPPFLAGS'
18977 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18978 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18979 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18981 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18982 if test -z "$CXXCPP"; then
18983 if ${ac_cv_prog_CXXCPP+:} false; then :
18984 $as_echo_n "(cached) " >&6
18985 else
18986 # Double quotes because CXXCPP needs to be expanded
18987 for CXXCPP in "$CXX -E" "/lib/cpp"
18989 ac_preproc_ok=false
18990 for ac_cxx_preproc_warn_flag in '' yes
18992 # Use a header file that comes with gcc, so configuring glibc
18993 # with a fresh cross-compiler works.
18994 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18995 # <limits.h> exists even on freestanding compilers.
18996 # On the NeXT, cc -E runs the code through the compiler's parser,
18997 # not just through cpp. "Syntax error" is here to catch this case.
18998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18999 /* end confdefs.h. */
19000 #ifdef __STDC__
19001 # include <limits.h>
19002 #else
19003 # include <assert.h>
19004 #endif
19005 Syntax error
19006 _ACEOF
19007 if ac_fn_cxx_try_cpp "$LINENO"; then :
19009 else
19010 # Broken: fails on valid input.
19011 continue
19013 rm -f conftest.err conftest.i conftest.$ac_ext
19015 # OK, works on sane cases. Now check whether nonexistent headers
19016 # can be detected and how.
19017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19018 /* end confdefs.h. */
19019 #include <ac_nonexistent.h>
19020 _ACEOF
19021 if ac_fn_cxx_try_cpp "$LINENO"; then :
19022 # Broken: success on invalid input.
19023 continue
19024 else
19025 # Passes both tests.
19026 ac_preproc_ok=:
19027 break
19029 rm -f conftest.err conftest.i conftest.$ac_ext
19031 done
19032 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
19033 rm -f conftest.i conftest.err conftest.$ac_ext
19034 if $ac_preproc_ok; then :
19035 break
19038 done
19039 ac_cv_prog_CXXCPP=$CXXCPP
19042 CXXCPP=$ac_cv_prog_CXXCPP
19043 else
19044 ac_cv_prog_CXXCPP=$CXXCPP
19046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
19047 $as_echo "$CXXCPP" >&6; }
19048 ac_preproc_ok=false
19049 for ac_cxx_preproc_warn_flag in '' yes
19051 # Use a header file that comes with gcc, so configuring glibc
19052 # with a fresh cross-compiler works.
19053 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19054 # <limits.h> exists even on freestanding compilers.
19055 # On the NeXT, cc -E runs the code through the compiler's parser,
19056 # not just through cpp. "Syntax error" is here to catch this case.
19057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19058 /* end confdefs.h. */
19059 #ifdef __STDC__
19060 # include <limits.h>
19061 #else
19062 # include <assert.h>
19063 #endif
19064 Syntax error
19065 _ACEOF
19066 if ac_fn_cxx_try_cpp "$LINENO"; then :
19068 else
19069 # Broken: fails on valid input.
19070 continue
19072 rm -f conftest.err conftest.i conftest.$ac_ext
19074 # OK, works on sane cases. Now check whether nonexistent headers
19075 # can be detected and how.
19076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19077 /* end confdefs.h. */
19078 #include <ac_nonexistent.h>
19079 _ACEOF
19080 if ac_fn_cxx_try_cpp "$LINENO"; then :
19081 # Broken: success on invalid input.
19082 continue
19083 else
19084 # Passes both tests.
19085 ac_preproc_ok=:
19086 break
19088 rm -f conftest.err conftest.i conftest.$ac_ext
19090 done
19091 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
19092 rm -f conftest.i conftest.err conftest.$ac_ext
19093 if $ac_preproc_ok; then :
19095 else
19096 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19097 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19098 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
19099 See \`config.log' for more details" "$LINENO" 5; }
19102 ac_ext=cpp
19103 ac_cpp='$CXXCPP $CPPFLAGS'
19104 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19105 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19106 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19108 else
19109 _lt_caught_CXX_error=yes
19112 ac_ext=cpp
19113 ac_cpp='$CXXCPP $CPPFLAGS'
19114 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19115 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19116 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19118 archive_cmds_need_lc_CXX=no
19119 allow_undefined_flag_CXX=
19120 always_export_symbols_CXX=no
19121 archive_expsym_cmds_CXX=
19122 compiler_needs_object_CXX=no
19123 export_dynamic_flag_spec_CXX=
19124 hardcode_direct_CXX=no
19125 hardcode_direct_absolute_CXX=no
19126 hardcode_libdir_flag_spec_CXX=
19127 hardcode_libdir_flag_spec_ld_CXX=
19128 hardcode_libdir_separator_CXX=
19129 hardcode_minus_L_CXX=no
19130 hardcode_shlibpath_var_CXX=unsupported
19131 hardcode_automatic_CXX=no
19132 inherit_rpath_CXX=no
19133 module_cmds_CXX=
19134 module_expsym_cmds_CXX=
19135 link_all_deplibs_CXX=unknown
19136 old_archive_cmds_CXX=$old_archive_cmds
19137 reload_flag_CXX=$reload_flag
19138 reload_cmds_CXX=$reload_cmds
19139 no_undefined_flag_CXX=
19140 whole_archive_flag_spec_CXX=
19141 enable_shared_with_static_runtimes_CXX=no
19143 # Source file extension for C++ test sources.
19144 ac_ext=cpp
19146 # Object file extension for compiled C++ test sources.
19147 objext=o
19148 objext_CXX=$objext
19150 # No sense in running all these tests if we already determined that
19151 # the CXX compiler isn't working. Some variables (like enable_shared)
19152 # are currently assumed to apply to all compilers on this platform,
19153 # and will be corrupted by setting them based on a non-working compiler.
19154 if test "$_lt_caught_CXX_error" != yes; then
19155 # Code to be used in simple compile tests
19156 lt_simple_compile_test_code="int some_variable = 0;"
19158 # Code to be used in simple link tests
19159 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
19161 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19168 # If no C compiler was specified, use CC.
19169 LTCC=${LTCC-"$CC"}
19171 # If no C compiler flags were specified, use CFLAGS.
19172 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19174 # Allow CC to be a program name with arguments.
19175 compiler=$CC
19178 # save warnings/boilerplate of simple test code
19179 ac_outfile=conftest.$ac_objext
19180 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19181 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19182 _lt_compiler_boilerplate=`cat conftest.err`
19183 $RM conftest*
19185 ac_outfile=conftest.$ac_objext
19186 echo "$lt_simple_link_test_code" >conftest.$ac_ext
19187 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19188 _lt_linker_boilerplate=`cat conftest.err`
19189 $RM -r conftest*
19192 # Allow CC to be a program name with arguments.
19193 lt_save_CC=$CC
19194 lt_save_LD=$LD
19195 lt_save_GCC=$GCC
19196 GCC=$GXX
19197 lt_save_with_gnu_ld=$with_gnu_ld
19198 lt_save_path_LD=$lt_cv_path_LD
19199 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
19200 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
19201 else
19202 $as_unset lt_cv_prog_gnu_ld
19204 if test -n "${lt_cv_path_LDCXX+set}"; then
19205 lt_cv_path_LD=$lt_cv_path_LDCXX
19206 else
19207 $as_unset lt_cv_path_LD
19209 test -z "${LDCXX+set}" || LD=$LDCXX
19210 CC=${CXX-"c++"}
19211 compiler=$CC
19212 compiler_CXX=$CC
19213 for cc_temp in $compiler""; do
19214 case $cc_temp in
19215 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19216 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19217 \-*) ;;
19218 *) break;;
19219 esac
19220 done
19221 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
19224 if test -n "$compiler"; then
19225 # We don't want -fno-exception when compiling C++ code, so set the
19226 # no_builtin_flag separately
19227 if test "$GXX" = yes; then
19228 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
19229 else
19230 lt_prog_compiler_no_builtin_flag_CXX=
19233 if test "$GXX" = yes; then
19234 # Set up default GNU C++ configuration
19238 # Check whether --with-gnu-ld was given.
19239 if test "${with_gnu_ld+set}" = set; then :
19240 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
19241 else
19242 with_gnu_ld=no
19245 ac_prog=ld
19246 if test "$GCC" = yes; then
19247 # Check if gcc -print-prog-name=ld gives a path.
19248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
19249 $as_echo_n "checking for ld used by $CC... " >&6; }
19250 case $host in
19251 *-*-mingw*)
19252 # gcc leaves a trailing carriage return which upsets mingw
19253 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
19255 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
19256 esac
19257 case $ac_prog in
19258 # Accept absolute paths.
19259 [\\/]* | ?:[\\/]*)
19260 re_direlt='/[^/][^/]*/\.\./'
19261 # Canonicalize the pathname of ld
19262 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
19263 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
19264 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
19265 done
19266 test -z "$LD" && LD="$ac_prog"
19269 # If it fails, then pretend we aren't using GCC.
19270 ac_prog=ld
19273 # If it is relative, then search for the first ld in PATH.
19274 with_gnu_ld=unknown
19276 esac
19277 elif test "$with_gnu_ld" = yes; then
19278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
19279 $as_echo_n "checking for GNU ld... " >&6; }
19280 else
19281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
19282 $as_echo_n "checking for non-GNU ld... " >&6; }
19284 if ${lt_cv_path_LD+:} false; then :
19285 $as_echo_n "(cached) " >&6
19286 else
19287 if test -z "$LD"; then
19288 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
19289 for ac_dir in $PATH; do
19290 IFS="$lt_save_ifs"
19291 test -z "$ac_dir" && ac_dir=.
19292 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
19293 lt_cv_path_LD="$ac_dir/$ac_prog"
19294 # Check to see if the program is GNU ld. I'd rather use --version,
19295 # but apparently some variants of GNU ld only accept -v.
19296 # Break only if it was the GNU/non-GNU ld that we prefer.
19297 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
19298 *GNU* | *'with BFD'*)
19299 test "$with_gnu_ld" != no && break
19302 test "$with_gnu_ld" != yes && break
19304 esac
19306 done
19307 IFS="$lt_save_ifs"
19308 else
19309 lt_cv_path_LD="$LD" # Let the user override the test with a path.
19313 LD="$lt_cv_path_LD"
19314 if test -n "$LD"; then
19315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
19316 $as_echo "$LD" >&6; }
19317 else
19318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19319 $as_echo "no" >&6; }
19321 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
19322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
19323 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
19324 if ${lt_cv_prog_gnu_ld+:} false; then :
19325 $as_echo_n "(cached) " >&6
19326 else
19327 # I'd rather use --version here, but apparently some GNU lds only accept -v.
19328 case `$LD -v 2>&1 </dev/null` in
19329 *GNU* | *'with BFD'*)
19330 lt_cv_prog_gnu_ld=yes
19333 lt_cv_prog_gnu_ld=no
19335 esac
19337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
19338 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
19339 with_gnu_ld=$lt_cv_prog_gnu_ld
19347 # Check if GNU C++ uses GNU ld as the underlying linker, since the
19348 # archiving commands below assume that GNU ld is being used.
19349 if test "$with_gnu_ld" = yes; then
19350 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19351 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'
19353 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19354 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19356 # If archive_cmds runs LD, not CC, wlarc should be empty
19357 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
19358 # investigate it a little bit more. (MM)
19359 wlarc='${wl}'
19361 # ancient GNU ld didn't support --whole-archive et. al.
19362 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
19363 $GREP 'no-whole-archive' > /dev/null; then
19364 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19365 else
19366 whole_archive_flag_spec_CXX=
19368 else
19369 with_gnu_ld=no
19370 wlarc=
19372 # A generic and very simple default shared library creation
19373 # command for GNU C++ for the case where it uses the native
19374 # linker, instead of GNU ld. If possible, this setting should
19375 # overridden to take advantage of the native linker features on
19376 # the platform it is being used on.
19377 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19380 # Commands to make compiler produce verbose output that lists
19381 # what "hidden" libraries, object files and flags are used when
19382 # linking a shared library.
19383 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19385 else
19386 GXX=no
19387 with_gnu_ld=no
19388 wlarc=
19391 # PORTME: fill in a description of your system's C++ link characteristics
19392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19393 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19394 ld_shlibs_CXX=yes
19395 case $host_os in
19396 aix3*)
19397 # FIXME: insert proper C++ library support
19398 ld_shlibs_CXX=no
19400 aix[4-9]*)
19401 if test "$host_cpu" = ia64; then
19402 # On IA64, the linker does run time linking by default, so we don't
19403 # have to do anything special.
19404 aix_use_runtimelinking=no
19405 exp_sym_flag='-Bexport'
19406 no_entry_flag=""
19407 else
19408 aix_use_runtimelinking=no
19410 # Test if we are trying to use run time linking or normal
19411 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19412 # need to do runtime linking.
19413 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
19414 for ld_flag in $LDFLAGS; do
19415 case $ld_flag in
19416 *-brtl*)
19417 aix_use_runtimelinking=yes
19418 break
19420 esac
19421 done
19423 esac
19425 exp_sym_flag='-bexport'
19426 no_entry_flag='-bnoentry'
19429 # When large executables or shared objects are built, AIX ld can
19430 # have problems creating the table of contents. If linking a library
19431 # or program results in "error TOC overflow" add -mminimal-toc to
19432 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19433 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19435 archive_cmds_CXX=''
19436 hardcode_direct_CXX=yes
19437 hardcode_direct_absolute_CXX=yes
19438 hardcode_libdir_separator_CXX=':'
19439 link_all_deplibs_CXX=yes
19440 file_list_spec_CXX='${wl}-f,'
19442 if test "$GXX" = yes; then
19443 case $host_os in aix4.[012]|aix4.[012].*)
19444 # We only want to do this on AIX 4.2 and lower, the check
19445 # below for broken collect2 doesn't work under 4.3+
19446 collect2name=`${CC} -print-prog-name=collect2`
19447 if test -f "$collect2name" &&
19448 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
19449 then
19450 # We have reworked collect2
19452 else
19453 # We have old collect2
19454 hardcode_direct_CXX=unsupported
19455 # It fails to find uninstalled libraries when the uninstalled
19456 # path is not listed in the libpath. Setting hardcode_minus_L
19457 # to unsupported forces relinking
19458 hardcode_minus_L_CXX=yes
19459 hardcode_libdir_flag_spec_CXX='-L$libdir'
19460 hardcode_libdir_separator_CXX=
19462 esac
19463 shared_flag='-shared'
19464 if test "$aix_use_runtimelinking" = yes; then
19465 shared_flag="$shared_flag "'${wl}-G'
19467 else
19468 # not using gcc
19469 if test "$host_cpu" = ia64; then
19470 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19471 # chokes on -Wl,-G. The following line is correct:
19472 shared_flag='-G'
19473 else
19474 if test "$aix_use_runtimelinking" = yes; then
19475 shared_flag='${wl}-G'
19476 else
19477 shared_flag='${wl}-bM:SRE'
19482 export_dynamic_flag_spec_CXX='${wl}-bexpall'
19483 # It seems that -bexpall does not export symbols beginning with
19484 # underscore (_), so it is better to generate a list of symbols to
19485 # export.
19486 always_export_symbols_CXX=yes
19487 if test "$aix_use_runtimelinking" = yes; then
19488 # Warning - without using the other runtime loading flags (-brtl),
19489 # -berok will link without error, but may produce a broken library.
19490 allow_undefined_flag_CXX='-berok'
19491 # Determine the default libpath from the value encoded in an empty
19492 # executable.
19493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19494 /* end confdefs.h. */
19497 main ()
19501 return 0;
19503 _ACEOF
19504 if ac_fn_cxx_try_link "$LINENO"; then :
19506 lt_aix_libpath_sed='
19507 /Import File Strings/,/^$/ {
19508 /^0/ {
19509 s/^0 *\(.*\)$/\1/
19513 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19514 # Check for a 64-bit object if we didn't find anything.
19515 if test -z "$aix_libpath"; then
19516 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19519 rm -f core conftest.err conftest.$ac_objext \
19520 conftest$ac_exeext conftest.$ac_ext
19521 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19523 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19525 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"
19526 else
19527 if test "$host_cpu" = ia64; then
19528 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
19529 allow_undefined_flag_CXX="-z nodefs"
19530 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"
19531 else
19532 # Determine the default libpath from the value encoded in an
19533 # empty executable.
19534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19535 /* end confdefs.h. */
19538 main ()
19542 return 0;
19544 _ACEOF
19545 if ac_fn_cxx_try_link "$LINENO"; then :
19547 lt_aix_libpath_sed='
19548 /Import File Strings/,/^$/ {
19549 /^0/ {
19550 s/^0 *\(.*\)$/\1/
19554 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19555 # Check for a 64-bit object if we didn't find anything.
19556 if test -z "$aix_libpath"; then
19557 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19560 rm -f core conftest.err conftest.$ac_objext \
19561 conftest$ac_exeext conftest.$ac_ext
19562 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19564 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19565 # Warning - without using the other run time loading flags,
19566 # -berok will link without error, but may produce a broken library.
19567 no_undefined_flag_CXX=' ${wl}-bernotok'
19568 allow_undefined_flag_CXX=' ${wl}-berok'
19569 if test "$with_gnu_ld" = yes; then
19570 # We only use this code for GNU lds that support --whole-archive.
19571 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19572 else
19573 # Exported symbols can be pulled into shared objects from archives
19574 whole_archive_flag_spec_CXX='$convenience'
19576 archive_cmds_need_lc_CXX=yes
19577 # This is similar to how AIX traditionally builds its shared
19578 # libraries.
19579 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'
19584 beos*)
19585 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
19586 allow_undefined_flag_CXX=unsupported
19587 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19588 # support --undefined. This deserves some investigation. FIXME
19589 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19590 else
19591 ld_shlibs_CXX=no
19595 chorus*)
19596 case $cc_basename in
19598 # FIXME: insert proper C++ library support
19599 ld_shlibs_CXX=no
19601 esac
19604 cygwin* | mingw* | pw32* | cegcc*)
19605 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19606 # as there is no search path for DLLs.
19607 hardcode_libdir_flag_spec_CXX='-L$libdir'
19608 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
19609 allow_undefined_flag_CXX=unsupported
19610 always_export_symbols_CXX=no
19611 enable_shared_with_static_runtimes_CXX=yes
19613 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
19614 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'
19615 # If the export-symbols file already is a .def file (1st line
19616 # is EXPORTS), use it as is; otherwise, prepend...
19617 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19618 cp $export_symbols $output_objdir/$soname.def;
19619 else
19620 echo EXPORTS > $output_objdir/$soname.def;
19621 cat $export_symbols >> $output_objdir/$soname.def;
19623 $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'
19624 else
19625 ld_shlibs_CXX=no
19628 darwin* | rhapsody*)
19631 archive_cmds_need_lc_CXX=no
19632 hardcode_direct_CXX=no
19633 hardcode_automatic_CXX=yes
19634 hardcode_shlibpath_var_CXX=unsupported
19635 if test "$lt_cv_ld_force_load" = "yes"; then
19636 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\"`'
19637 else
19638 whole_archive_flag_spec_CXX=''
19640 link_all_deplibs_CXX=yes
19641 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
19642 case $cc_basename in
19643 ifort*) _lt_dar_can_shared=yes ;;
19644 *) _lt_dar_can_shared=$GCC ;;
19645 esac
19646 if test "$_lt_dar_can_shared" = "yes"; then
19647 output_verbose_link_cmd=func_echo_all
19648 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}"
19649 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19650 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}"
19651 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}"
19652 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
19653 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}"
19654 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}"
19657 else
19658 ld_shlibs_CXX=no
19663 dgux*)
19664 case $cc_basename in
19665 ec++*)
19666 # FIXME: insert proper C++ library support
19667 ld_shlibs_CXX=no
19669 ghcx*)
19670 # Green Hills C++ Compiler
19671 # FIXME: insert proper C++ library support
19672 ld_shlibs_CXX=no
19675 # FIXME: insert proper C++ library support
19676 ld_shlibs_CXX=no
19678 esac
19681 freebsd2.*)
19682 # C++ shared libraries reported to be fairly broken before
19683 # switch to ELF
19684 ld_shlibs_CXX=no
19687 freebsd-elf*)
19688 archive_cmds_need_lc_CXX=no
19691 freebsd* | dragonfly*)
19692 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19693 # conventions
19694 ld_shlibs_CXX=yes
19697 gnu*)
19700 haiku*)
19701 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19702 link_all_deplibs_CXX=yes
19705 hpux9*)
19706 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19707 hardcode_libdir_separator_CXX=:
19708 export_dynamic_flag_spec_CXX='${wl}-E'
19709 hardcode_direct_CXX=yes
19710 hardcode_minus_L_CXX=yes # Not in the search PATH,
19711 # but as the default
19712 # location of the library.
19714 case $cc_basename in
19715 CC*)
19716 # FIXME: insert proper C++ library support
19717 ld_shlibs_CXX=no
19719 aCC*)
19720 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'
19721 # Commands to make compiler produce verbose output that lists
19722 # what "hidden" libraries, object files and flags are used when
19723 # linking a shared library.
19725 # There doesn't appear to be a way to prevent this compiler from
19726 # explicitly linking system object files so we need to strip them
19727 # from the output so that they don't get included in the library
19728 # dependencies.
19729 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"'
19732 if test "$GXX" = yes; then
19733 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'
19734 else
19735 # FIXME: insert proper C++ library support
19736 ld_shlibs_CXX=no
19739 esac
19742 hpux10*|hpux11*)
19743 if test $with_gnu_ld = no; then
19744 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19745 hardcode_libdir_separator_CXX=:
19747 case $host_cpu in
19748 hppa*64*|ia64*)
19751 export_dynamic_flag_spec_CXX='${wl}-E'
19753 esac
19755 case $host_cpu in
19756 hppa*64*|ia64*)
19757 hardcode_direct_CXX=no
19758 hardcode_shlibpath_var_CXX=no
19761 hardcode_direct_CXX=yes
19762 hardcode_direct_absolute_CXX=yes
19763 hardcode_minus_L_CXX=yes # Not in the search PATH,
19764 # but as the default
19765 # location of the library.
19767 esac
19769 case $cc_basename in
19770 CC*)
19771 # FIXME: insert proper C++ library support
19772 ld_shlibs_CXX=no
19774 aCC*)
19775 case $host_cpu in
19776 hppa*64*)
19777 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19779 ia64*)
19780 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19783 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19785 esac
19786 # Commands to make compiler produce verbose output that lists
19787 # what "hidden" libraries, object files and flags are used when
19788 # linking a shared library.
19790 # There doesn't appear to be a way to prevent this compiler from
19791 # explicitly linking system object files so we need to strip them
19792 # from the output so that they don't get included in the library
19793 # dependencies.
19794 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"'
19797 if test "$GXX" = yes; then
19798 if test $with_gnu_ld = no; then
19799 case $host_cpu in
19800 hppa*64*)
19801 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19803 ia64*)
19804 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19807 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'
19809 esac
19811 else
19812 # FIXME: insert proper C++ library support
19813 ld_shlibs_CXX=no
19816 esac
19819 interix[3-9]*)
19820 hardcode_direct_CXX=no
19821 hardcode_shlibpath_var_CXX=no
19822 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19823 export_dynamic_flag_spec_CXX='${wl}-E'
19824 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19825 # Instead, shared libraries are loaded at an image base (0x10000000 by
19826 # default) and relocated if they conflict, which is a slow very memory
19827 # consuming and fragmenting process. To avoid this, we pick a random,
19828 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19829 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19830 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'
19831 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'
19833 irix5* | irix6*)
19834 case $cc_basename in
19835 CC*)
19836 # SGI C++
19837 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'
19839 # Archives containing C++ object files must be created using
19840 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19841 # necessary to make sure instantiated templates are included
19842 # in the archive.
19843 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19846 if test "$GXX" = yes; then
19847 if test "$with_gnu_ld" = no; then
19848 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'
19849 else
19850 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'
19853 link_all_deplibs_CXX=yes
19855 esac
19856 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19857 hardcode_libdir_separator_CXX=:
19858 inherit_rpath_CXX=yes
19861 linux* | k*bsd*-gnu | kopensolaris*-gnu)
19862 case $cc_basename in
19863 KCC*)
19864 # Kuck and Associates, Inc. (KAI) C++ Compiler
19866 # KCC will only create a shared library if the output file
19867 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19868 # to its proper name (with version) after linking.
19869 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'
19870 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'
19871 # Commands to make compiler produce verbose output that lists
19872 # what "hidden" libraries, object files and flags are used when
19873 # linking a shared library.
19875 # There doesn't appear to be a way to prevent this compiler from
19876 # explicitly linking system object files so we need to strip them
19877 # from the output so that they don't get included in the library
19878 # dependencies.
19879 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"'
19881 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19882 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19884 # Archives containing C++ object files must be created using
19885 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19886 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19888 icpc* | ecpc* )
19889 # Intel C++
19890 with_gnu_ld=yes
19891 # version 8.0 and above of icpc choke on multiply defined symbols
19892 # if we add $predep_objects and $postdep_objects, however 7.1 and
19893 # earlier do not add the objects themselves.
19894 case `$CC -V 2>&1` in
19895 *"Version 7."*)
19896 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19897 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'
19899 *) # Version 8.0 or newer
19900 tmp_idyn=
19901 case $host_cpu in
19902 ia64*) tmp_idyn=' -i_dynamic';;
19903 esac
19904 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19905 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'
19907 esac
19908 archive_cmds_need_lc_CXX=no
19909 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19910 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19911 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19913 pgCC* | pgcpp*)
19914 # Portland Group C++ compiler
19915 case `$CC -V` in
19916 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
19917 prelink_cmds_CXX='tpldir=Template.dir~
19918 rm -rf $tpldir~
19919 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19920 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
19921 old_archive_cmds_CXX='tpldir=Template.dir~
19922 rm -rf $tpldir~
19923 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19924 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
19925 $RANLIB $oldlib'
19926 archive_cmds_CXX='tpldir=Template.dir~
19927 rm -rf $tpldir~
19928 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19929 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19930 archive_expsym_cmds_CXX='tpldir=Template.dir~
19931 rm -rf $tpldir~
19932 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19933 $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'
19935 *) # Version 6 and above use weak symbols
19936 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19937 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'
19939 esac
19941 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19942 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19943 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'
19945 cxx*)
19946 # Compaq C++
19947 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19948 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'
19950 runpath_var=LD_RUN_PATH
19951 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19952 hardcode_libdir_separator_CXX=:
19954 # Commands to make compiler produce verbose output that lists
19955 # what "hidden" libraries, object files and flags are used when
19956 # linking a shared library.
19958 # There doesn't appear to be a way to prevent this compiler from
19959 # explicitly linking system object files so we need to strip them
19960 # from the output so that they don't get included in the library
19961 # dependencies.
19962 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'
19964 xl* | mpixl* | bgxl*)
19965 # IBM XL 8.0 on PPC, with GNU ld
19966 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19967 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19968 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19969 if test "x$supports_anon_versioning" = xyes; then
19970 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
19971 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19972 echo "local: *; };" >> $output_objdir/$libname.ver~
19973 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19977 case `$CC -V 2>&1 | sed 5q` in
19978 *Sun\ C*)
19979 # Sun C++ 5.9
19980 no_undefined_flag_CXX=' -zdefs'
19981 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19982 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'
19983 hardcode_libdir_flag_spec_CXX='-R$libdir'
19984 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'
19985 compiler_needs_object_CXX=yes
19987 # Not sure whether something based on
19988 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19989 # would be better.
19990 output_verbose_link_cmd='func_echo_all'
19992 # Archives containing C++ object files must be created using
19993 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19994 # necessary to make sure instantiated templates are included
19995 # in the archive.
19996 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19998 esac
20000 esac
20003 lynxos*)
20004 # FIXME: insert proper C++ library support
20005 ld_shlibs_CXX=no
20008 m88k*)
20009 # FIXME: insert proper C++ library support
20010 ld_shlibs_CXX=no
20013 mvs*)
20014 case $cc_basename in
20015 cxx*)
20016 # FIXME: insert proper C++ library support
20017 ld_shlibs_CXX=no
20020 # FIXME: insert proper C++ library support
20021 ld_shlibs_CXX=no
20023 esac
20026 netbsd*)
20027 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20028 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
20029 wlarc=
20030 hardcode_libdir_flag_spec_CXX='-R$libdir'
20031 hardcode_direct_CXX=yes
20032 hardcode_shlibpath_var_CXX=no
20034 # Workaround some broken pre-1.5 toolchains
20035 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
20038 *nto* | *qnx*)
20039 ld_shlibs_CXX=yes
20042 openbsd2*)
20043 # C++ shared libraries are fairly broken
20044 ld_shlibs_CXX=no
20047 openbsd*)
20048 if test -f /usr/libexec/ld.so; then
20049 hardcode_direct_CXX=yes
20050 hardcode_shlibpath_var_CXX=no
20051 hardcode_direct_absolute_CXX=yes
20052 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
20053 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
20054 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20055 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
20056 export_dynamic_flag_spec_CXX='${wl}-E'
20057 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
20059 output_verbose_link_cmd=func_echo_all
20060 else
20061 ld_shlibs_CXX=no
20065 osf3* | osf4* | osf5*)
20066 case $cc_basename in
20067 KCC*)
20068 # Kuck and Associates, Inc. (KAI) C++ Compiler
20070 # KCC will only create a shared library if the output file
20071 # ends with ".so" (or ".sl" for HP-UX), so rename the library
20072 # to its proper name (with version) after linking.
20073 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'
20075 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
20076 hardcode_libdir_separator_CXX=:
20078 # Archives containing C++ object files must be created using
20079 # the KAI C++ compiler.
20080 case $host in
20081 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
20082 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
20083 esac
20085 RCC*)
20086 # Rational C++ 2.4.1
20087 # FIXME: insert proper C++ library support
20088 ld_shlibs_CXX=no
20090 cxx*)
20091 case $host in
20092 osf3*)
20093 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
20094 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'
20095 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
20098 allow_undefined_flag_CXX=' -expect_unresolved \*'
20099 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'
20100 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
20101 echo "-hidden">> $lib.exp~
20102 $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~
20103 $RM $lib.exp'
20104 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
20106 esac
20108 hardcode_libdir_separator_CXX=:
20110 # Commands to make compiler produce verbose output that lists
20111 # what "hidden" libraries, object files and flags are used when
20112 # linking a shared library.
20114 # There doesn't appear to be a way to prevent this compiler from
20115 # explicitly linking system object files so we need to strip them
20116 # from the output so that they don't get included in the library
20117 # dependencies.
20118 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"'
20121 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
20122 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
20123 case $host in
20124 osf3*)
20125 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'
20128 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'
20130 esac
20132 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
20133 hardcode_libdir_separator_CXX=:
20135 # Commands to make compiler produce verbose output that lists
20136 # what "hidden" libraries, object files and flags are used when
20137 # linking a shared library.
20138 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20140 else
20141 # FIXME: insert proper C++ library support
20142 ld_shlibs_CXX=no
20145 esac
20148 psos*)
20149 # FIXME: insert proper C++ library support
20150 ld_shlibs_CXX=no
20153 sunos4*)
20154 case $cc_basename in
20155 CC*)
20156 # Sun C++ 4.x
20157 # FIXME: insert proper C++ library support
20158 ld_shlibs_CXX=no
20160 lcc*)
20161 # Lucid
20162 # FIXME: insert proper C++ library support
20163 ld_shlibs_CXX=no
20166 # FIXME: insert proper C++ library support
20167 ld_shlibs_CXX=no
20169 esac
20172 solaris*)
20173 case $cc_basename in
20174 CC*)
20175 # Sun C++ 4.2, 5.x and Centerline C++
20176 archive_cmds_need_lc_CXX=yes
20177 no_undefined_flag_CXX=' -zdefs'
20178 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20179 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20180 $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'
20182 hardcode_libdir_flag_spec_CXX='-R$libdir'
20183 hardcode_shlibpath_var_CXX=no
20184 case $host_os in
20185 solaris2.[0-5] | solaris2.[0-5].*) ;;
20187 # The compiler driver will combine and reorder linker options,
20188 # but understands `-z linker_flag'.
20189 # Supported since Solaris 2.6 (maybe 2.5.1?)
20190 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
20192 esac
20193 link_all_deplibs_CXX=yes
20195 output_verbose_link_cmd='func_echo_all'
20197 # Archives containing C++ object files must be created using
20198 # "CC -xar", where "CC" is the Sun C++ compiler. This is
20199 # necessary to make sure instantiated templates are included
20200 # in the archive.
20201 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
20203 gcx*)
20204 # Green Hills C++ Compiler
20205 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20207 # The C++ compiler must be used to create the archive.
20208 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
20211 # GNU C++ compiler with Solaris linker
20212 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
20213 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
20214 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
20215 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20216 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20217 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
20219 # Commands to make compiler produce verbose output that lists
20220 # what "hidden" libraries, object files and flags are used when
20221 # linking a shared library.
20222 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20223 else
20224 # g++ 2.7 appears to require `-G' NOT `-shared' on this
20225 # platform.
20226 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20227 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20228 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
20230 # Commands to make compiler produce verbose output that lists
20231 # what "hidden" libraries, object files and flags are used when
20232 # linking a shared library.
20233 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20236 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
20237 case $host_os in
20238 solaris2.[0-5] | solaris2.[0-5].*) ;;
20240 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
20242 esac
20245 esac
20248 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
20249 no_undefined_flag_CXX='${wl}-z,text'
20250 archive_cmds_need_lc_CXX=no
20251 hardcode_shlibpath_var_CXX=no
20252 runpath_var='LD_RUN_PATH'
20254 case $cc_basename in
20255 CC*)
20256 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20257 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20260 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20261 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20263 esac
20266 sysv5* | sco3.2v5* | sco5v6*)
20267 # Note: We can NOT use -z defs as we might desire, because we do not
20268 # link with -lc, and that would cause any symbols used from libc to
20269 # always be unresolved, which means just about no library would
20270 # ever link correctly. If we're not using GNU ld we use -z text
20271 # though, which does catch some bad symbols but isn't as heavy-handed
20272 # as -z defs.
20273 no_undefined_flag_CXX='${wl}-z,text'
20274 allow_undefined_flag_CXX='${wl}-z,nodefs'
20275 archive_cmds_need_lc_CXX=no
20276 hardcode_shlibpath_var_CXX=no
20277 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
20278 hardcode_libdir_separator_CXX=':'
20279 link_all_deplibs_CXX=yes
20280 export_dynamic_flag_spec_CXX='${wl}-Bexport'
20281 runpath_var='LD_RUN_PATH'
20283 case $cc_basename in
20284 CC*)
20285 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20286 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20287 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
20288 '"$old_archive_cmds_CXX"
20289 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
20290 '"$reload_cmds_CXX"
20293 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20294 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20296 esac
20299 tandem*)
20300 case $cc_basename in
20301 NCC*)
20302 # NonStop-UX NCC 3.20
20303 # FIXME: insert proper C++ library support
20304 ld_shlibs_CXX=no
20307 # FIXME: insert proper C++ library support
20308 ld_shlibs_CXX=no
20310 esac
20313 vxworks*)
20314 # FIXME: insert proper C++ library support
20315 ld_shlibs_CXX=no
20319 # FIXME: insert proper C++ library support
20320 ld_shlibs_CXX=no
20322 esac
20324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20325 $as_echo "$ld_shlibs_CXX" >&6; }
20326 test "$ld_shlibs_CXX" = no && can_build_shared=no
20328 GCC_CXX="$GXX"
20329 LD_CXX="$LD"
20331 ## CAVEAT EMPTOR:
20332 ## There is no encapsulation within the following macros, do not change
20333 ## the running order or otherwise move them around unless you know exactly
20334 ## what you are doing...
20335 # Dependencies to place before and after the object being linked:
20336 predep_objects_CXX=
20337 postdep_objects_CXX=
20338 predeps_CXX=
20339 postdeps_CXX=
20340 compiler_lib_search_path_CXX=
20342 cat > conftest.$ac_ext <<_LT_EOF
20343 class Foo
20345 public:
20346 Foo (void) { a = 0; }
20347 private:
20348 int a;
20350 _LT_EOF
20352 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20353 (eval $ac_compile) 2>&5
20354 ac_status=$?
20355 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20356 test $ac_status = 0; }; then
20357 # Parse the compiler output and extract the necessary
20358 # objects, libraries and library flags.
20360 # Sentinel used to keep track of whether or not we are before
20361 # the conftest object file.
20362 pre_test_object_deps_done=no
20364 for p in `eval "$output_verbose_link_cmd"`; do
20365 case $p in
20367 -L* | -R* | -l*)
20368 # Some compilers place space between "-{L,R}" and the path.
20369 # Remove the space.
20370 if test $p = "-L" ||
20371 test $p = "-R"; then
20372 prev=$p
20373 continue
20374 else
20375 prev=
20378 if test "$pre_test_object_deps_done" = no; then
20379 case $p in
20380 -L* | -R*)
20381 # Internal compiler library paths should come after those
20382 # provided the user. The postdeps already come after the
20383 # user supplied libs so there is no need to process them.
20384 if test -z "$compiler_lib_search_path_CXX"; then
20385 compiler_lib_search_path_CXX="${prev}${p}"
20386 else
20387 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
20390 # The "-l" case would never come before the object being
20391 # linked, so don't bother handling this case.
20392 esac
20393 else
20394 if test -z "$postdeps_CXX"; then
20395 postdeps_CXX="${prev}${p}"
20396 else
20397 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
20402 *.$objext)
20403 # This assumes that the test object file only shows up
20404 # once in the compiler output.
20405 if test "$p" = "conftest.$objext"; then
20406 pre_test_object_deps_done=yes
20407 continue
20410 if test "$pre_test_object_deps_done" = no; then
20411 if test -z "$predep_objects_CXX"; then
20412 predep_objects_CXX="$p"
20413 else
20414 predep_objects_CXX="$predep_objects_CXX $p"
20416 else
20417 if test -z "$postdep_objects_CXX"; then
20418 postdep_objects_CXX="$p"
20419 else
20420 postdep_objects_CXX="$postdep_objects_CXX $p"
20425 *) ;; # Ignore the rest.
20427 esac
20428 done
20430 # Clean up.
20431 rm -f a.out a.exe
20432 else
20433 echo "libtool.m4: error: problem compiling CXX test program"
20436 $RM -f confest.$objext
20438 # PORTME: override above test on systems where it is broken
20439 case $host_os in
20440 interix[3-9]*)
20441 # Interix 3.5 installs completely hosed .la files for C++, so rather than
20442 # hack all around it, let's just trust "g++" to DTRT.
20443 predep_objects_CXX=
20444 postdep_objects_CXX=
20445 postdeps_CXX=
20448 linux*)
20449 case `$CC -V 2>&1 | sed 5q` in
20450 *Sun\ C*)
20451 # Sun C++ 5.9
20453 # The more standards-conforming stlport4 library is
20454 # incompatible with the Cstd library. Avoid specifying
20455 # it if it's in CXXFLAGS. Ignore libCrun as
20456 # -library=stlport4 depends on it.
20457 case " $CXX $CXXFLAGS " in
20458 *" -library=stlport4 "*)
20459 solaris_use_stlport4=yes
20461 esac
20463 if test "$solaris_use_stlport4" != yes; then
20464 postdeps_CXX='-library=Cstd -library=Crun'
20467 esac
20470 solaris*)
20471 case $cc_basename in
20472 CC*)
20473 # The more standards-conforming stlport4 library is
20474 # incompatible with the Cstd library. Avoid specifying
20475 # it if it's in CXXFLAGS. Ignore libCrun as
20476 # -library=stlport4 depends on it.
20477 case " $CXX $CXXFLAGS " in
20478 *" -library=stlport4 "*)
20479 solaris_use_stlport4=yes
20481 esac
20483 # Adding this requires a known-good setup of shared libraries for
20484 # Sun compiler versions before 5.6, else PIC objects from an old
20485 # archive will be linked into the output, leading to subtle bugs.
20486 if test "$solaris_use_stlport4" != yes; then
20487 postdeps_CXX='-library=Cstd -library=Crun'
20490 esac
20492 esac
20495 case " $postdeps_CXX " in
20496 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
20497 esac
20498 compiler_lib_search_dirs_CXX=
20499 if test -n "${compiler_lib_search_path_CXX}"; then
20500 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
20533 lt_prog_compiler_wl_CXX=
20534 lt_prog_compiler_pic_CXX=
20535 lt_prog_compiler_static_CXX=
20537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
20538 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
20540 # C++ specific cases for pic, static, wl, etc.
20541 if test "$GXX" = yes; then
20542 lt_prog_compiler_wl_CXX='-Wl,'
20543 lt_prog_compiler_static_CXX='-static'
20545 case $host_os in
20546 aix*)
20547 # All AIX code is PIC.
20548 if test "$host_cpu" = ia64; then
20549 # AIX 5 now supports IA64 processor
20550 lt_prog_compiler_static_CXX='-Bstatic'
20552 lt_prog_compiler_pic_CXX='-fPIC'
20555 amigaos*)
20556 case $host_cpu in
20557 powerpc)
20558 # see comment about AmigaOS4 .so support
20559 lt_prog_compiler_pic_CXX='-fPIC'
20561 m68k)
20562 # FIXME: we need at least 68020 code to build shared libraries, but
20563 # adding the `-m68020' flag to GCC prevents building anything better,
20564 # like `-m68040'.
20565 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
20567 esac
20570 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20571 # PIC is the default for these OSes.
20573 mingw* | cygwin* | os2* | pw32* | cegcc*)
20574 # This hack is so that the source file can tell whether it is being
20575 # built for inclusion in a dll (and should export symbols for example).
20576 # Although the cygwin gcc ignores -fPIC, still need this for old-style
20577 # (--disable-auto-import) libraries
20578 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
20580 darwin* | rhapsody*)
20581 # PIC is the default on this platform
20582 # Common symbols not allowed in MH_DYLIB files
20583 lt_prog_compiler_pic_CXX='-fno-common'
20585 *djgpp*)
20586 # DJGPP does not support shared libraries at all
20587 lt_prog_compiler_pic_CXX=
20589 haiku*)
20590 # PIC is the default for Haiku.
20591 # The "-static" flag exists, but is broken.
20592 lt_prog_compiler_static_CXX=
20594 interix[3-9]*)
20595 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20596 # Instead, we relocate shared libraries at runtime.
20598 sysv4*MP*)
20599 if test -d /usr/nec; then
20600 lt_prog_compiler_pic_CXX=-Kconform_pic
20603 hpux*)
20604 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
20605 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
20606 # sets the default TLS model and affects inlining.
20607 case $host_cpu in
20608 hppa*64*)
20611 lt_prog_compiler_pic_CXX='-fPIC'
20613 esac
20615 *qnx* | *nto*)
20616 # QNX uses GNU C++, but need to define -shared option too, otherwise
20617 # it will coredump.
20618 lt_prog_compiler_pic_CXX='-fPIC -shared'
20621 lt_prog_compiler_pic_CXX='-fPIC'
20623 esac
20624 else
20625 case $host_os in
20626 aix[4-9]*)
20627 # All AIX code is PIC.
20628 if test "$host_cpu" = ia64; then
20629 # AIX 5 now supports IA64 processor
20630 lt_prog_compiler_static_CXX='-Bstatic'
20631 else
20632 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
20635 chorus*)
20636 case $cc_basename in
20637 cxch68*)
20638 # Green Hills C++ Compiler
20639 # _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"
20641 esac
20643 dgux*)
20644 case $cc_basename in
20645 ec++*)
20646 lt_prog_compiler_pic_CXX='-KPIC'
20648 ghcx*)
20649 # Green Hills C++ Compiler
20650 lt_prog_compiler_pic_CXX='-pic'
20654 esac
20656 freebsd* | dragonfly*)
20657 # FreeBSD uses GNU C++
20659 hpux9* | hpux10* | hpux11*)
20660 case $cc_basename in
20661 CC*)
20662 lt_prog_compiler_wl_CXX='-Wl,'
20663 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20664 if test "$host_cpu" != ia64; then
20665 lt_prog_compiler_pic_CXX='+Z'
20668 aCC*)
20669 lt_prog_compiler_wl_CXX='-Wl,'
20670 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20671 case $host_cpu in
20672 hppa*64*|ia64*)
20673 # +Z the default
20676 lt_prog_compiler_pic_CXX='+Z'
20678 esac
20682 esac
20684 interix*)
20685 # This is c89, which is MS Visual C++ (no shared libs)
20686 # Anyone wants to do a port?
20688 irix5* | irix6* | nonstopux*)
20689 case $cc_basename in
20690 CC*)
20691 lt_prog_compiler_wl_CXX='-Wl,'
20692 lt_prog_compiler_static_CXX='-non_shared'
20693 # CC pic flag -KPIC is the default.
20697 esac
20699 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20700 case $cc_basename in
20701 KCC*)
20702 # KAI C++ Compiler
20703 lt_prog_compiler_wl_CXX='--backend -Wl,'
20704 lt_prog_compiler_pic_CXX='-fPIC'
20706 ecpc* )
20707 # old Intel C++ for x86_64 which still supported -KPIC.
20708 lt_prog_compiler_wl_CXX='-Wl,'
20709 lt_prog_compiler_pic_CXX='-KPIC'
20710 lt_prog_compiler_static_CXX='-static'
20712 icpc* )
20713 # Intel C++, used to be incompatible with GCC.
20714 # ICC 10 doesn't accept -KPIC any more.
20715 lt_prog_compiler_wl_CXX='-Wl,'
20716 lt_prog_compiler_pic_CXX='-fPIC'
20717 lt_prog_compiler_static_CXX='-static'
20719 pgCC* | pgcpp*)
20720 # Portland Group C++ compiler
20721 lt_prog_compiler_wl_CXX='-Wl,'
20722 lt_prog_compiler_pic_CXX='-fpic'
20723 lt_prog_compiler_static_CXX='-Bstatic'
20725 cxx*)
20726 # Compaq C++
20727 # Make sure the PIC flag is empty. It appears that all Alpha
20728 # Linux and Compaq Tru64 Unix objects are PIC.
20729 lt_prog_compiler_pic_CXX=
20730 lt_prog_compiler_static_CXX='-non_shared'
20732 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
20733 # IBM XL 8.0, 9.0 on PPC and BlueGene
20734 lt_prog_compiler_wl_CXX='-Wl,'
20735 lt_prog_compiler_pic_CXX='-qpic'
20736 lt_prog_compiler_static_CXX='-qstaticlink'
20739 case `$CC -V 2>&1 | sed 5q` in
20740 *Sun\ C*)
20741 # Sun C++ 5.9
20742 lt_prog_compiler_pic_CXX='-KPIC'
20743 lt_prog_compiler_static_CXX='-Bstatic'
20744 lt_prog_compiler_wl_CXX='-Qoption ld '
20746 esac
20748 esac
20750 lynxos*)
20752 m88k*)
20754 mvs*)
20755 case $cc_basename in
20756 cxx*)
20757 lt_prog_compiler_pic_CXX='-W c,exportall'
20761 esac
20763 netbsd*)
20765 *qnx* | *nto*)
20766 # QNX uses GNU C++, but need to define -shared option too, otherwise
20767 # it will coredump.
20768 lt_prog_compiler_pic_CXX='-fPIC -shared'
20770 osf3* | osf4* | osf5*)
20771 case $cc_basename in
20772 KCC*)
20773 lt_prog_compiler_wl_CXX='--backend -Wl,'
20775 RCC*)
20776 # Rational C++ 2.4.1
20777 lt_prog_compiler_pic_CXX='-pic'
20779 cxx*)
20780 # Digital/Compaq C++
20781 lt_prog_compiler_wl_CXX='-Wl,'
20782 # Make sure the PIC flag is empty. It appears that all Alpha
20783 # Linux and Compaq Tru64 Unix objects are PIC.
20784 lt_prog_compiler_pic_CXX=
20785 lt_prog_compiler_static_CXX='-non_shared'
20789 esac
20791 psos*)
20793 solaris*)
20794 case $cc_basename in
20795 CC*)
20796 # Sun C++ 4.2, 5.x and Centerline C++
20797 lt_prog_compiler_pic_CXX='-KPIC'
20798 lt_prog_compiler_static_CXX='-Bstatic'
20799 lt_prog_compiler_wl_CXX='-Qoption ld '
20801 gcx*)
20802 # Green Hills C++ Compiler
20803 lt_prog_compiler_pic_CXX='-PIC'
20807 esac
20809 sunos4*)
20810 case $cc_basename in
20811 CC*)
20812 # Sun C++ 4.x
20813 lt_prog_compiler_pic_CXX='-pic'
20814 lt_prog_compiler_static_CXX='-Bstatic'
20816 lcc*)
20817 # Lucid
20818 lt_prog_compiler_pic_CXX='-pic'
20822 esac
20824 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20825 case $cc_basename in
20826 CC*)
20827 lt_prog_compiler_wl_CXX='-Wl,'
20828 lt_prog_compiler_pic_CXX='-KPIC'
20829 lt_prog_compiler_static_CXX='-Bstatic'
20831 esac
20833 tandem*)
20834 case $cc_basename in
20835 NCC*)
20836 # NonStop-UX NCC 3.20
20837 lt_prog_compiler_pic_CXX='-KPIC'
20841 esac
20843 vxworks*)
20846 lt_prog_compiler_can_build_shared_CXX=no
20848 esac
20851 case $host_os in
20852 # For platforms which do not support PIC, -DPIC is meaningless:
20853 *djgpp*)
20854 lt_prog_compiler_pic_CXX=
20857 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20859 esac
20860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
20861 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
20866 # Check to make sure the PIC flag actually works.
20868 if test -n "$lt_prog_compiler_pic_CXX"; then
20869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20870 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20871 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
20872 $as_echo_n "(cached) " >&6
20873 else
20874 lt_cv_prog_compiler_pic_works_CXX=no
20875 ac_outfile=conftest.$ac_objext
20876 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20877 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20878 # Insert the option either (1) after the last *FLAGS variable, or
20879 # (2) before a word containing "conftest.", or (3) at the end.
20880 # Note that $ac_compile itself does not contain backslashes and begins
20881 # with a dollar sign (not a hyphen), so the echo should work correctly.
20882 # The option is referenced via a variable to avoid confusing sed.
20883 lt_compile=`echo "$ac_compile" | $SED \
20884 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20885 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20886 -e 's:$: $lt_compiler_flag:'`
20887 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20888 (eval "$lt_compile" 2>conftest.err)
20889 ac_status=$?
20890 cat conftest.err >&5
20891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20892 if (exit $ac_status) && test -s "$ac_outfile"; then
20893 # The compiler can only warn and ignore the option if not recognized
20894 # So say no if there are warnings other than the usual output.
20895 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
20896 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20897 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20898 lt_cv_prog_compiler_pic_works_CXX=yes
20901 $RM conftest*
20904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20905 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20907 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
20908 case $lt_prog_compiler_pic_CXX in
20909 "" | " "*) ;;
20910 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20911 esac
20912 else
20913 lt_prog_compiler_pic_CXX=
20914 lt_prog_compiler_can_build_shared_CXX=no
20922 # Check to make sure the static flag actually works.
20924 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20926 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20927 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
20928 $as_echo_n "(cached) " >&6
20929 else
20930 lt_cv_prog_compiler_static_works_CXX=no
20931 save_LDFLAGS="$LDFLAGS"
20932 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20933 echo "$lt_simple_link_test_code" > conftest.$ac_ext
20934 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20935 # The linker can only warn and ignore the option if not recognized
20936 # So say no if there are warnings
20937 if test -s conftest.err; then
20938 # Append any errors to the config.log.
20939 cat conftest.err 1>&5
20940 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
20941 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20942 if diff conftest.exp conftest.er2 >/dev/null; then
20943 lt_cv_prog_compiler_static_works_CXX=yes
20945 else
20946 lt_cv_prog_compiler_static_works_CXX=yes
20949 $RM -r conftest*
20950 LDFLAGS="$save_LDFLAGS"
20953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20954 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20956 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
20958 else
20959 lt_prog_compiler_static_CXX=
20965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20966 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20967 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
20968 $as_echo_n "(cached) " >&6
20969 else
20970 lt_cv_prog_compiler_c_o_CXX=no
20971 $RM -r conftest 2>/dev/null
20972 mkdir conftest
20973 cd conftest
20974 mkdir out
20975 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20977 lt_compiler_flag="-o out/conftest2.$ac_objext"
20978 # Insert the option either (1) after the last *FLAGS variable, or
20979 # (2) before a word containing "conftest.", or (3) at the end.
20980 # Note that $ac_compile itself does not contain backslashes and begins
20981 # with a dollar sign (not a hyphen), so the echo should work correctly.
20982 lt_compile=`echo "$ac_compile" | $SED \
20983 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20984 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20985 -e 's:$: $lt_compiler_flag:'`
20986 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20987 (eval "$lt_compile" 2>out/conftest.err)
20988 ac_status=$?
20989 cat out/conftest.err >&5
20990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20991 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20992 then
20993 # The compiler can only warn and ignore the option if not recognized
20994 # So say no if there are warnings
20995 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20996 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20997 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20998 lt_cv_prog_compiler_c_o_CXX=yes
21001 chmod u+w . 2>&5
21002 $RM conftest*
21003 # SGI C++ compiler will create directory out/ii_files/ for
21004 # template instantiation
21005 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
21006 $RM out/* && rmdir out
21007 cd ..
21008 $RM -r conftest
21009 $RM conftest*
21012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
21013 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
21017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
21018 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
21019 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
21020 $as_echo_n "(cached) " >&6
21021 else
21022 lt_cv_prog_compiler_c_o_CXX=no
21023 $RM -r conftest 2>/dev/null
21024 mkdir conftest
21025 cd conftest
21026 mkdir out
21027 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21029 lt_compiler_flag="-o out/conftest2.$ac_objext"
21030 # Insert the option either (1) after the last *FLAGS variable, or
21031 # (2) before a word containing "conftest.", or (3) at the end.
21032 # Note that $ac_compile itself does not contain backslashes and begins
21033 # with a dollar sign (not a hyphen), so the echo should work correctly.
21034 lt_compile=`echo "$ac_compile" | $SED \
21035 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21036 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21037 -e 's:$: $lt_compiler_flag:'`
21038 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
21039 (eval "$lt_compile" 2>out/conftest.err)
21040 ac_status=$?
21041 cat out/conftest.err >&5
21042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21043 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21044 then
21045 # The compiler can only warn and ignore the option if not recognized
21046 # So say no if there are warnings
21047 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
21048 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21049 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21050 lt_cv_prog_compiler_c_o_CXX=yes
21053 chmod u+w . 2>&5
21054 $RM conftest*
21055 # SGI C++ compiler will create directory out/ii_files/ for
21056 # template instantiation
21057 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
21058 $RM out/* && rmdir out
21059 cd ..
21060 $RM -r conftest
21061 $RM conftest*
21064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
21065 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
21070 hard_links="nottested"
21071 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
21072 # do not overwrite the value of need_locks provided by the user
21073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
21074 $as_echo_n "checking if we can lock with hard links... " >&6; }
21075 hard_links=yes
21076 $RM conftest*
21077 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21078 touch conftest.a
21079 ln conftest.a conftest.b 2>&5 || hard_links=no
21080 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
21082 $as_echo "$hard_links" >&6; }
21083 if test "$hard_links" = no; then
21084 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21085 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21086 need_locks=warn
21088 else
21089 need_locks=no
21094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21095 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
21097 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21098 case $host_os in
21099 aix[4-9]*)
21100 # If we're using GNU nm, then we don't want the "-C" option.
21101 # -C means demangle to AIX nm, but means don't demangle with GNU nm
21102 # Also, AIX nm treats weak defined symbols like other global defined
21103 # symbols, whereas GNU nm marks them as "W".
21104 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
21105 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'
21106 else
21107 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'
21110 pw32*)
21111 export_symbols_cmds_CXX="$ltdll_cmds"
21113 cygwin* | mingw* | cegcc*)
21114 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'
21117 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21119 esac
21120 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
21122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
21123 $as_echo "$ld_shlibs_CXX" >&6; }
21124 test "$ld_shlibs_CXX" = no && can_build_shared=no
21126 with_gnu_ld_CXX=$with_gnu_ld
21134 # Do we need to explicitly link libc?
21136 case "x$archive_cmds_need_lc_CXX" in
21137 x|xyes)
21138 # Assume -lc should be added
21139 archive_cmds_need_lc_CXX=yes
21141 if test "$enable_shared" = yes && test "$GCC" = yes; then
21142 case $archive_cmds_CXX in
21143 *'~'*)
21144 # FIXME: we may have to deal with multi-command sequences.
21146 '$CC '*)
21147 # Test whether the compiler implicitly links with -lc since on some
21148 # systems, -lgcc has to come before -lc. If gcc already passes -lc
21149 # to ld, don't add -lc before -lgcc.
21150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
21151 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
21152 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
21153 $as_echo_n "(cached) " >&6
21154 else
21155 $RM conftest*
21156 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21158 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
21159 (eval $ac_compile) 2>&5
21160 ac_status=$?
21161 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21162 test $ac_status = 0; } 2>conftest.err; then
21163 soname=conftest
21164 lib=conftest
21165 libobjs=conftest.$ac_objext
21166 deplibs=
21167 wl=$lt_prog_compiler_wl_CXX
21168 pic_flag=$lt_prog_compiler_pic_CXX
21169 compiler_flags=-v
21170 linker_flags=-v
21171 verstring=
21172 output_objdir=.
21173 libname=conftest
21174 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
21175 allow_undefined_flag_CXX=
21176 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
21177 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
21178 ac_status=$?
21179 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21180 test $ac_status = 0; }
21181 then
21182 lt_cv_archive_cmds_need_lc_CXX=no
21183 else
21184 lt_cv_archive_cmds_need_lc_CXX=yes
21186 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
21187 else
21188 cat conftest.err 1>&5
21190 $RM conftest*
21193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
21194 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
21195 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
21197 esac
21200 esac
21265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
21266 $as_echo_n "checking dynamic linker characteristics... " >&6; }
21268 library_names_spec=
21269 libname_spec='lib$name'
21270 soname_spec=
21271 shrext_cmds=".so"
21272 postinstall_cmds=
21273 postuninstall_cmds=
21274 finish_cmds=
21275 finish_eval=
21276 shlibpath_var=
21277 shlibpath_overrides_runpath=unknown
21278 version_type=none
21279 dynamic_linker="$host_os ld.so"
21280 sys_lib_dlsearch_path_spec="/lib /usr/lib"
21281 need_lib_prefix=unknown
21282 hardcode_into_libs=no
21284 # when you set need_version to no, make sure it does not cause -set_version
21285 # flags to be left without arguments
21286 need_version=unknown
21288 case $host_os in
21289 aix3*)
21290 version_type=linux
21291 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
21292 shlibpath_var=LIBPATH
21294 # AIX 3 has no versioning support, so we append a major version to the name.
21295 soname_spec='${libname}${release}${shared_ext}$major'
21298 aix[4-9]*)
21299 version_type=linux
21300 need_lib_prefix=no
21301 need_version=no
21302 hardcode_into_libs=yes
21303 if test "$host_cpu" = ia64; then
21304 # AIX 5 supports IA64
21305 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
21306 shlibpath_var=LD_LIBRARY_PATH
21307 else
21308 # With GCC up to 2.95.x, collect2 would create an import file
21309 # for dependence libraries. The import file would start with
21310 # the line `#! .'. This would cause the generated library to
21311 # depend on `.', always an invalid library. This was fixed in
21312 # development snapshots of GCC prior to 3.0.
21313 case $host_os in
21314 aix4 | aix4.[01] | aix4.[01].*)
21315 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
21316 echo ' yes '
21317 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
21319 else
21320 can_build_shared=no
21323 esac
21324 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
21325 # soname into executable. Probably we can add versioning support to
21326 # collect2, so additional links can be useful in future.
21327 if test "$aix_use_runtimelinking" = yes; then
21328 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
21329 # instead of lib<name>.a to let people know that these are not
21330 # typical AIX shared libraries.
21331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21332 else
21333 # We preserve .a as extension for shared libraries through AIX4.2
21334 # and later when we are not doing run time linking.
21335 library_names_spec='${libname}${release}.a $libname.a'
21336 soname_spec='${libname}${release}${shared_ext}$major'
21338 shlibpath_var=LIBPATH
21342 amigaos*)
21343 case $host_cpu in
21344 powerpc)
21345 # Since July 2007 AmigaOS4 officially supports .so libraries.
21346 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
21347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21349 m68k)
21350 library_names_spec='$libname.ixlibrary $libname.a'
21351 # Create ${libname}_ixlibrary.a entries in /sys/libs.
21352 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'
21354 esac
21357 beos*)
21358 library_names_spec='${libname}${shared_ext}'
21359 dynamic_linker="$host_os ld.so"
21360 shlibpath_var=LIBRARY_PATH
21363 bsdi[45]*)
21364 version_type=linux
21365 need_version=no
21366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21367 soname_spec='${libname}${release}${shared_ext}$major'
21368 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
21369 shlibpath_var=LD_LIBRARY_PATH
21370 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
21371 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
21372 # the default ld.so.conf also contains /usr/contrib/lib and
21373 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
21374 # libtool to hard-code these into programs
21377 cygwin* | mingw* | pw32* | cegcc*)
21378 version_type=windows
21379 shrext_cmds=".dll"
21380 need_version=no
21381 need_lib_prefix=no
21383 case $GCC,$host_os in
21384 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
21385 library_names_spec='$libname.dll.a'
21386 # DLL is installed to $(libdir)/../bin by postinstall_cmds
21387 postinstall_cmds='base_file=`basename \${file}`~
21388 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
21389 dldir=$destdir/`dirname \$dlpath`~
21390 test -d \$dldir || mkdir -p \$dldir~
21391 $install_prog $dir/$dlname \$dldir/$dlname~
21392 chmod a+x \$dldir/$dlname~
21393 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
21394 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
21396 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
21397 dlpath=$dir/\$dldll~
21398 $RM \$dlpath'
21399 shlibpath_overrides_runpath=yes
21401 case $host_os in
21402 cygwin*)
21403 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
21404 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21407 mingw* | cegcc*)
21408 # MinGW DLLs use traditional 'lib' prefix
21409 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21411 pw32*)
21412 # pw32 DLLs use 'pw' prefix rather than 'lib'
21413 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21415 esac
21419 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
21421 esac
21422 dynamic_linker='Win32 ld.exe'
21423 # FIXME: first we should search . and the directory the executable is in
21424 shlibpath_var=PATH
21427 darwin* | rhapsody*)
21428 dynamic_linker="$host_os dyld"
21429 version_type=darwin
21430 need_lib_prefix=no
21431 need_version=no
21432 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
21433 soname_spec='${libname}${release}${major}$shared_ext'
21434 shlibpath_overrides_runpath=yes
21435 shlibpath_var=DYLD_LIBRARY_PATH
21436 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
21438 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
21441 dgux*)
21442 version_type=linux
21443 need_lib_prefix=no
21444 need_version=no
21445 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
21446 soname_spec='${libname}${release}${shared_ext}$major'
21447 shlibpath_var=LD_LIBRARY_PATH
21450 freebsd* | dragonfly*)
21451 # DragonFly does not have aout. When/if they implement a new
21452 # versioning mechanism, adjust this.
21453 if test -x /usr/bin/objformat; then
21454 objformat=`/usr/bin/objformat`
21455 else
21456 case $host_os in
21457 freebsd[23].*) objformat=aout ;;
21458 *) objformat=elf ;;
21459 esac
21461 version_type=freebsd-$objformat
21462 case $version_type in
21463 freebsd-elf*)
21464 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21465 need_version=no
21466 need_lib_prefix=no
21468 freebsd-*)
21469 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
21470 need_version=yes
21472 esac
21473 shlibpath_var=LD_LIBRARY_PATH
21474 case $host_os in
21475 freebsd2.*)
21476 shlibpath_overrides_runpath=yes
21478 freebsd3.[01]* | freebsdelf3.[01]*)
21479 shlibpath_overrides_runpath=yes
21480 hardcode_into_libs=yes
21482 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
21483 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
21484 shlibpath_overrides_runpath=no
21485 hardcode_into_libs=yes
21487 *) # from 4.6 on, and DragonFly
21488 shlibpath_overrides_runpath=yes
21489 hardcode_into_libs=yes
21491 esac
21494 gnu*)
21495 version_type=linux
21496 need_lib_prefix=no
21497 need_version=no
21498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21499 soname_spec='${libname}${release}${shared_ext}$major'
21500 shlibpath_var=LD_LIBRARY_PATH
21501 hardcode_into_libs=yes
21504 haiku*)
21505 version_type=linux
21506 need_lib_prefix=no
21507 need_version=no
21508 dynamic_linker="$host_os runtime_loader"
21509 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21510 soname_spec='${libname}${release}${shared_ext}$major'
21511 shlibpath_var=LIBRARY_PATH
21512 shlibpath_overrides_runpath=yes
21513 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
21514 hardcode_into_libs=yes
21517 hpux9* | hpux10* | hpux11*)
21518 # Give a soname corresponding to the major version so that dld.sl refuses to
21519 # link against other versions.
21520 version_type=sunos
21521 need_lib_prefix=no
21522 need_version=no
21523 case $host_cpu in
21524 ia64*)
21525 shrext_cmds='.so'
21526 hardcode_into_libs=yes
21527 dynamic_linker="$host_os dld.so"
21528 shlibpath_var=LD_LIBRARY_PATH
21529 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21531 soname_spec='${libname}${release}${shared_ext}$major'
21532 if test "X$HPUX_IA64_MODE" = X32; then
21533 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
21534 else
21535 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
21537 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21539 hppa*64*)
21540 shrext_cmds='.sl'
21541 hardcode_into_libs=yes
21542 dynamic_linker="$host_os dld.sl"
21543 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
21544 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21546 soname_spec='${libname}${release}${shared_ext}$major'
21547 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
21548 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21551 shrext_cmds='.sl'
21552 dynamic_linker="$host_os dld.sl"
21553 shlibpath_var=SHLIB_PATH
21554 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
21555 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21556 soname_spec='${libname}${release}${shared_ext}$major'
21558 esac
21559 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
21560 postinstall_cmds='chmod 555 $lib'
21561 # or fails outright, so override atomically:
21562 install_override_mode=555
21565 interix[3-9]*)
21566 version_type=linux
21567 need_lib_prefix=no
21568 need_version=no
21569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21570 soname_spec='${libname}${release}${shared_ext}$major'
21571 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
21572 shlibpath_var=LD_LIBRARY_PATH
21573 shlibpath_overrides_runpath=no
21574 hardcode_into_libs=yes
21577 irix5* | irix6* | nonstopux*)
21578 case $host_os in
21579 nonstopux*) version_type=nonstopux ;;
21581 if test "$lt_cv_prog_gnu_ld" = yes; then
21582 version_type=linux
21583 else
21584 version_type=irix
21585 fi ;;
21586 esac
21587 need_lib_prefix=no
21588 need_version=no
21589 soname_spec='${libname}${release}${shared_ext}$major'
21590 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21591 case $host_os in
21592 irix5* | nonstopux*)
21593 libsuff= shlibsuff=
21596 case $LD in # libtool.m4 will add one of these switches to LD
21597 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
21598 libsuff= shlibsuff= libmagic=32-bit;;
21599 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
21600 libsuff=32 shlibsuff=N32 libmagic=N32;;
21601 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
21602 libsuff=64 shlibsuff=64 libmagic=64-bit;;
21603 *) libsuff= shlibsuff= libmagic=never-match;;
21604 esac
21606 esac
21607 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
21608 shlibpath_overrides_runpath=no
21609 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21610 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
21611 hardcode_into_libs=yes
21614 # No shared lib support for Linux oldld, aout, or coff.
21615 linux*oldld* | linux*aout* | linux*coff*)
21616 dynamic_linker=no
21619 # This must be Linux ELF.
21620 linux* | k*bsd*-gnu | kopensolaris*-gnu)
21621 version_type=linux
21622 need_lib_prefix=no
21623 need_version=no
21624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21625 soname_spec='${libname}${release}${shared_ext}$major'
21626 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21627 shlibpath_var=LD_LIBRARY_PATH
21628 shlibpath_overrides_runpath=no
21630 # Some binutils ld are patched to set DT_RUNPATH
21631 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
21632 $as_echo_n "(cached) " >&6
21633 else
21634 lt_cv_shlibpath_overrides_runpath=no
21635 save_LDFLAGS=$LDFLAGS
21636 save_libdir=$libdir
21637 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
21638 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
21639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21640 /* end confdefs.h. */
21643 main ()
21647 return 0;
21649 _ACEOF
21650 if ac_fn_cxx_try_link "$LINENO"; then :
21651 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
21652 lt_cv_shlibpath_overrides_runpath=yes
21655 rm -f core conftest.err conftest.$ac_objext \
21656 conftest$ac_exeext conftest.$ac_ext
21657 LDFLAGS=$save_LDFLAGS
21658 libdir=$save_libdir
21662 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
21664 # This implies no fast_install, which is unacceptable.
21665 # Some rework will be needed to allow for fast_install
21666 # before this can be enabled.
21667 hardcode_into_libs=yes
21669 # Append ld.so.conf contents to the search path
21670 if test -f /etc/ld.so.conf; then
21671 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' ' '`
21672 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
21675 # We used to test for /lib/ld.so.1 and disable shared libraries on
21676 # powerpc, because MkLinux only supported shared libraries with the
21677 # GNU dynamic linker. Since this was broken with cross compilers,
21678 # most powerpc-linux boxes support dynamic linking these days and
21679 # people can always --disable-shared, the test was removed, and we
21680 # assume the GNU/Linux dynamic linker is in use.
21681 dynamic_linker='GNU/Linux ld.so'
21684 netbsd*)
21685 version_type=sunos
21686 need_lib_prefix=no
21687 need_version=no
21688 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
21689 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21690 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21691 dynamic_linker='NetBSD (a.out) ld.so'
21692 else
21693 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21694 soname_spec='${libname}${release}${shared_ext}$major'
21695 dynamic_linker='NetBSD ld.elf_so'
21697 shlibpath_var=LD_LIBRARY_PATH
21698 shlibpath_overrides_runpath=yes
21699 hardcode_into_libs=yes
21702 newsos6)
21703 version_type=linux
21704 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21705 shlibpath_var=LD_LIBRARY_PATH
21706 shlibpath_overrides_runpath=yes
21709 *nto* | *qnx*)
21710 version_type=qnx
21711 need_lib_prefix=no
21712 need_version=no
21713 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21714 soname_spec='${libname}${release}${shared_ext}$major'
21715 shlibpath_var=LD_LIBRARY_PATH
21716 shlibpath_overrides_runpath=no
21717 hardcode_into_libs=yes
21718 dynamic_linker='ldqnx.so'
21721 openbsd*)
21722 version_type=sunos
21723 sys_lib_dlsearch_path_spec="/usr/lib"
21724 need_lib_prefix=no
21725 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21726 case $host_os in
21727 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
21728 *) need_version=no ;;
21729 esac
21730 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21731 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21732 shlibpath_var=LD_LIBRARY_PATH
21733 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21734 case $host_os in
21735 openbsd2.[89] | openbsd2.[89].*)
21736 shlibpath_overrides_runpath=no
21739 shlibpath_overrides_runpath=yes
21741 esac
21742 else
21743 shlibpath_overrides_runpath=yes
21747 os2*)
21748 libname_spec='$name'
21749 shrext_cmds=".dll"
21750 need_lib_prefix=no
21751 library_names_spec='$libname${shared_ext} $libname.a'
21752 dynamic_linker='OS/2 ld.exe'
21753 shlibpath_var=LIBPATH
21756 osf3* | osf4* | osf5*)
21757 version_type=osf
21758 need_lib_prefix=no
21759 need_version=no
21760 soname_spec='${libname}${release}${shared_ext}$major'
21761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21762 shlibpath_var=LD_LIBRARY_PATH
21763 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21764 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21767 rdos*)
21768 dynamic_linker=no
21771 solaris*)
21772 version_type=linux
21773 need_lib_prefix=no
21774 need_version=no
21775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21776 soname_spec='${libname}${release}${shared_ext}$major'
21777 shlibpath_var=LD_LIBRARY_PATH
21778 shlibpath_overrides_runpath=yes
21779 hardcode_into_libs=yes
21780 # ldd complains unless libraries are executable
21781 postinstall_cmds='chmod +x $lib'
21784 sunos4*)
21785 version_type=sunos
21786 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21787 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21788 shlibpath_var=LD_LIBRARY_PATH
21789 shlibpath_overrides_runpath=yes
21790 if test "$with_gnu_ld" = yes; then
21791 need_lib_prefix=no
21793 need_version=yes
21796 sysv4 | sysv4.3*)
21797 version_type=linux
21798 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21799 soname_spec='${libname}${release}${shared_ext}$major'
21800 shlibpath_var=LD_LIBRARY_PATH
21801 case $host_vendor in
21802 sni)
21803 shlibpath_overrides_runpath=no
21804 need_lib_prefix=no
21805 runpath_var=LD_RUN_PATH
21807 siemens)
21808 need_lib_prefix=no
21810 motorola)
21811 need_lib_prefix=no
21812 need_version=no
21813 shlibpath_overrides_runpath=no
21814 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21816 esac
21819 sysv4*MP*)
21820 if test -d /usr/nec ;then
21821 version_type=linux
21822 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21823 soname_spec='$libname${shared_ext}.$major'
21824 shlibpath_var=LD_LIBRARY_PATH
21828 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21829 version_type=freebsd-elf
21830 need_lib_prefix=no
21831 need_version=no
21832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21833 soname_spec='${libname}${release}${shared_ext}$major'
21834 shlibpath_var=LD_LIBRARY_PATH
21835 shlibpath_overrides_runpath=yes
21836 hardcode_into_libs=yes
21837 if test "$with_gnu_ld" = yes; then
21838 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21839 else
21840 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21841 case $host_os in
21842 sco3.2v5*)
21843 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21845 esac
21847 sys_lib_dlsearch_path_spec='/usr/lib'
21850 tpf*)
21851 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
21852 version_type=linux
21853 need_lib_prefix=no
21854 need_version=no
21855 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21856 shlibpath_var=LD_LIBRARY_PATH
21857 shlibpath_overrides_runpath=no
21858 hardcode_into_libs=yes
21861 uts4*)
21862 version_type=linux
21863 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21864 soname_spec='${libname}${release}${shared_ext}$major'
21865 shlibpath_var=LD_LIBRARY_PATH
21869 dynamic_linker=no
21871 esac
21872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21873 $as_echo "$dynamic_linker" >&6; }
21874 test "$dynamic_linker" = no && can_build_shared=no
21876 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21877 if test "$GCC" = yes; then
21878 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21881 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21882 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
21884 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21885 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
21925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21926 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21927 hardcode_action_CXX=
21928 if test -n "$hardcode_libdir_flag_spec_CXX" ||
21929 test -n "$runpath_var_CXX" ||
21930 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21932 # We can hardcode non-existent directories.
21933 if test "$hardcode_direct_CXX" != no &&
21934 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21935 # have to relink, otherwise we might link with an installed library
21936 # when we should be linking with a yet-to-be-installed one
21937 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21938 test "$hardcode_minus_L_CXX" != no; then
21939 # Linking always hardcodes the temporary library directory.
21940 hardcode_action_CXX=relink
21941 else
21942 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21943 hardcode_action_CXX=immediate
21945 else
21946 # We cannot hardcode anything, or else we can only hardcode existing
21947 # directories.
21948 hardcode_action_CXX=unsupported
21950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21951 $as_echo "$hardcode_action_CXX" >&6; }
21953 if test "$hardcode_action_CXX" = relink ||
21954 test "$inherit_rpath_CXX" = yes; then
21955 # Fast installation is not supported
21956 enable_fast_install=no
21957 elif test "$shlibpath_overrides_runpath" = yes ||
21958 test "$enable_shared" = no; then
21959 # Fast installation is not necessary
21960 enable_fast_install=needless
21969 fi # test -n "$compiler"
21971 CC=$lt_save_CC
21972 LDCXX=$LD
21973 LD=$lt_save_LD
21974 GCC=$lt_save_GCC
21975 with_gnu_ld=$lt_save_with_gnu_ld
21976 lt_cv_path_LDCXX=$lt_cv_path_LD
21977 lt_cv_path_LD=$lt_save_path_LD
21978 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21979 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21980 fi # test "$_lt_caught_CXX_error" != yes
21982 ac_ext=cpp
21983 ac_cpp='$CXXCPP $CPPFLAGS'
21984 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21985 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21986 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22003 # Only expand once:
22009 # Identify the assembler which will work hand-in-glove with the newly
22010 # built GCC, so that we can examine its features. This is the assembler
22011 # which will be driven by the driver program.
22013 # If build != host, and we aren't building gas in-tree, we identify a
22014 # build->target assembler and hope that it will have the same features
22015 # as the host->target assembler we'll be using.
22016 gcc_cv_gas_major_version=
22017 gcc_cv_gas_minor_version=
22018 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
22020 if ${gcc_cv_as+:} false; then :
22022 else
22024 if test -x "$DEFAULT_ASSEMBLER"; then
22025 gcc_cv_as="$DEFAULT_ASSEMBLER"
22026 elif test -f $gcc_cv_as_gas_srcdir/configure.ac \
22027 && test -f ../gas/Makefile \
22028 && test x$build = x$host; then
22029 gcc_cv_as=../gas/as-new$build_exeext
22030 elif test -x as$build_exeext; then
22031 # Build using assembler in the current directory.
22032 gcc_cv_as=./as$build_exeext
22033 elif ( set dummy $AS_FOR_TARGET; test -x $2 ); then
22034 gcc_cv_as="$AS_FOR_TARGET"
22035 else
22036 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
22037 set dummy $AS_FOR_TARGET; ac_word=$2
22038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22039 $as_echo_n "checking for $ac_word... " >&6; }
22040 if ${ac_cv_path_gcc_cv_as+:} false; then :
22041 $as_echo_n "(cached) " >&6
22042 else
22043 case $gcc_cv_as in
22044 [\\/]* | ?:[\\/]*)
22045 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
22048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22049 for as_dir in $PATH
22051 IFS=$as_save_IFS
22052 test -z "$as_dir" && as_dir=.
22053 for ac_exec_ext in '' $ac_executable_extensions; do
22054 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22055 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
22056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22057 break 2
22059 done
22060 done
22061 IFS=$as_save_IFS
22064 esac
22066 gcc_cv_as=$ac_cv_path_gcc_cv_as
22067 if test -n "$gcc_cv_as"; then
22068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
22069 $as_echo "$gcc_cv_as" >&6; }
22070 else
22071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22072 $as_echo "no" >&6; }
22079 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
22081 case "$ORIGINAL_AS_FOR_TARGET" in
22082 ./as | ./as$build_exeext) ;;
22083 *) ac_config_files="$ac_config_files as:exec-tool.in"
22085 esac
22087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
22088 $as_echo_n "checking what assembler to use... " >&6; }
22089 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
22090 # Single tree build which includes gas. We want to prefer it
22091 # over whatever linker top-level may have detected, since
22092 # we'll use what we're building after installation anyway.
22093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
22094 $as_echo "newly built gas" >&6; }
22095 in_tree_gas=yes
22096 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
22097 for f in $gcc_cv_as_bfd_srcdir/configure \
22098 $gcc_cv_as_gas_srcdir/configure \
22099 $gcc_cv_as_gas_srcdir/configure.ac \
22100 $gcc_cv_as_gas_srcdir/Makefile.in ; do
22101 gcc_cv_gas_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
22102 if test x$gcc_cv_gas_version != x; then
22103 break
22105 done
22106 case $gcc_cv_gas_version in
22107 VERSION=[0-9]*) ;;
22108 *) as_fn_error $? "cannot find version of in-tree assembler" "$LINENO" 5;;
22109 esac
22110 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
22111 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
22112 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
22113 case $gcc_cv_gas_patch_version in
22114 "") gcc_cv_gas_patch_version="0" ;;
22115 esac
22116 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
22117 + $gcc_cv_gas_minor_version \) \* 1000 \
22118 + $gcc_cv_gas_patch_version`
22120 in_tree_gas_is_elf=no
22121 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
22122 || (grep 'obj_format = multi' ../gas/Makefile \
22123 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
22124 then
22125 in_tree_gas_is_elf=yes
22127 else
22128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
22129 $as_echo "$gcc_cv_as" >&6; }
22130 in_tree_gas=no
22133 default_ld=
22134 # Check whether --enable-ld was given.
22135 if test "${enable_ld+set}" = set; then :
22136 enableval=$enable_ld; case "${enableval}" in
22138 default_ld=ld.gold
22140 esac
22144 install_gold_as_default=no
22145 # Check whether --enable-gold was given.
22146 if test "${enable_gold+set}" = set; then :
22147 enableval=$enable_gold; case "${enableval}" in
22148 default)
22149 install_gold_as_default=yes
22151 yes)
22152 if test x${default_ld} != x; then
22153 install_gold_as_default=yes
22159 as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5
22161 esac
22165 # Identify the linker which will work hand-in-glove with the newly
22166 # built GCC, so that we can examine its features. This is the linker
22167 # which will be driven by the driver program.
22169 # If build != host, and we aren't building gas in-tree, we identify a
22170 # build->target linker and hope that it will have the same features
22171 # as the host->target linker we'll be using.
22172 gcc_cv_gld_major_version=
22173 gcc_cv_gld_minor_version=
22174 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
22175 gcc_cv_ld_gold_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gold
22176 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
22178 if ${gcc_cv_ld+:} false; then :
22180 else
22182 if test -x "$DEFAULT_LINKER"; then
22183 gcc_cv_ld="$DEFAULT_LINKER"
22184 elif test $install_gold_as_default = yes \
22185 && test -f $gcc_cv_ld_gold_srcdir/configure.ac \
22186 && test -f ../gold/Makefile \
22187 && test x$build = x$host; then
22188 gcc_cv_ld=../gold/ld-new$build_exeext
22189 elif test -f $gcc_cv_ld_gld_srcdir/configure.ac \
22190 && test -f ../ld/Makefile \
22191 && test x$build = x$host; then
22192 gcc_cv_ld=../ld/ld-new$build_exeext
22193 elif test -x collect-ld$build_exeext; then
22194 # Build using linker in the current directory.
22195 gcc_cv_ld=./collect-ld$build_exeext
22196 elif ( set dummy $LD_FOR_TARGET; test -x $2 ); then
22197 gcc_cv_ld="$LD_FOR_TARGET"
22198 else
22199 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
22200 set dummy $LD_FOR_TARGET; ac_word=$2
22201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22202 $as_echo_n "checking for $ac_word... " >&6; }
22203 if ${ac_cv_path_gcc_cv_ld+:} false; then :
22204 $as_echo_n "(cached) " >&6
22205 else
22206 case $gcc_cv_ld in
22207 [\\/]* | ?:[\\/]*)
22208 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
22211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22212 for as_dir in $PATH
22214 IFS=$as_save_IFS
22215 test -z "$as_dir" && as_dir=.
22216 for ac_exec_ext in '' $ac_executable_extensions; do
22217 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22218 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
22219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22220 break 2
22222 done
22223 done
22224 IFS=$as_save_IFS
22227 esac
22229 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
22230 if test -n "$gcc_cv_ld"; then
22231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
22232 $as_echo "$gcc_cv_ld" >&6; }
22233 else
22234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22235 $as_echo "no" >&6; }
22242 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
22243 PLUGIN_LD_SUFFIX=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
22244 # if the PLUGIN_LD is set ld-new, just have it as ld
22245 # as that is the installed named.
22246 if test x$PLUGIN_LD_SUFFIX = xld-new \
22247 || test x$PLUGIN_LD_SUFFIX = xcollect-ld ; then
22248 PLUGIN_LD_SUFFIX=ld
22251 # Check whether --with-plugin-ld was given.
22252 if test "${with_plugin_ld+set}" = set; then :
22253 withval=$with_plugin_ld; if test x"$withval" != x; then
22254 ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
22255 PLUGIN_LD_SUFFIX="$withval"
22261 cat >>confdefs.h <<_ACEOF
22262 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
22263 _ACEOF
22266 # Check to see if we are using gold instead of ld
22267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
22268 $as_echo_n "checking whether we are using gold... " >&6; }
22269 ld_is_gold=no
22270 if test x$gcc_cv_ld != x; then
22271 if $gcc_cv_ld --version 2>/dev/null | sed 1q \
22272 | grep "GNU gold" > /dev/null; then
22273 ld_is_gold=yes
22276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
22277 $as_echo "$ld_is_gold" >&6; }
22279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gold linker with split stack support as non default" >&5
22280 $as_echo_n "checking gold linker with split stack support as non default... " >&6; }
22281 # Check to see if default ld is not gold, but gold is
22282 # available and has support for split stack. If gcc was configured
22283 # with gold then no checking is done.
22285 if test x$ld_is_gold = xno && which ${gcc_cv_ld}.gold >/dev/null 2>&1; then
22287 # For platforms other than powerpc64*, enable as appropriate.
22289 gold_non_default=no
22290 ld_gold=`which ${gcc_cv_ld}.gold`
22291 # Make sure this gold has minimal split stack support
22292 if $ld_gold --help 2>/dev/null | grep split-stack-adjust-size >/dev/null 2>&1; then
22293 ld_vers=`$ld_gold --version | sed 1q`
22294 gold_vers=`echo $ld_vers | sed -n \
22295 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22296 case $target in
22297 # check that the gold version contains the complete split stack support
22298 # on powerpc64 big and little endian
22299 powerpc64*-*-*)
22300 case "$gold_vers" in
22301 2.25.[1-9]*|2.2[6-9][.0-9]*|2.[3-9][.0-9]*|[3-9].[.0-9]*) gold_non_default=yes
22303 *) gold_non_default=no
22305 esac
22307 esac
22309 if test $gold_non_default = yes; then
22311 $as_echo "#define HAVE_GOLD_NON_DEFAULT_SPLIT_STACK 1" >>confdefs.h
22315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_non_default" >&5
22316 $as_echo "$gold_non_default" >&6; }
22318 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
22320 case "$ORIGINAL_LD_FOR_TARGET" in
22321 ./collect-ld | ./collect-ld$build_exeext) ;;
22322 *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
22324 esac
22326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
22327 $as_echo_n "checking what linker to use... " >&6; }
22328 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext \
22329 || test "$gcc_cv_ld" = ../gold/ld-new$build_exeext; then
22330 # Single tree build which includes ld. We want to prefer it
22331 # over whatever linker top-level may have detected, since
22332 # we'll use what we're building after installation anyway.
22333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
22334 $as_echo "newly built ld" >&6; }
22335 in_tree_ld=yes
22336 in_tree_ld_is_elf=no
22337 if (grep 'EMUL = .*elf' ../ld/Makefile \
22338 || grep 'EMUL = .*linux' ../ld/Makefile \
22339 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
22340 in_tree_ld_is_elf=yes
22341 elif test "$ld_is_gold" = yes; then
22342 in_tree_ld_is_elf=yes
22344 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
22346 gcc_cv_gld_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
22347 if test x$gcc_cv_gld_version != x; then
22348 break
22350 done
22351 case $gcc_cv_gld_version in
22352 VERSION=[0-9]*) ;;
22353 *) as_fn_error $? "cannot find version of in-tree linker" "$LINENO" 5 ;;
22354 esac
22355 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
22356 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
22357 ORIGINAL_LD_BFD_FOR_TARGET=../ld/ld-new$build_exeext
22358 ORIGINAL_LD_GOLD_FOR_TARGET=../gold/ld-new$build_exeext
22359 else
22360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
22361 $as_echo "$gcc_cv_ld" >&6; }
22362 in_tree_ld=no
22363 gcc_cvs_ld_program=`dirname $gcc_cv_ld`/`basename $gcc_cv_ld $host_exeext`
22364 ORIGINAL_LD_BFD_FOR_TARGET=${gcc_cvs_ld_program}.bfd$host_exeext
22365 ORIGINAL_LD_GOLD_FOR_TARGET=${gcc_cvs_ld_program}.gold$host_exeext
22371 # Figure out what nm we will be using.
22372 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
22373 if ${gcc_cv_nm+:} false; then :
22375 else
22377 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22378 && test -f ../binutils/Makefile \
22379 && test x$build = x$host; then
22380 gcc_cv_nm=../binutils/nm-new$build_exeext
22381 elif test -x nm$build_exeext; then
22382 gcc_cv_nm=./nm$build_exeext
22383 elif ( set dummy $NM_FOR_TARGET; test -x $2 ); then
22384 gcc_cv_nm="$NM_FOR_TARGET"
22385 else
22386 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
22387 set dummy $NM_FOR_TARGET; ac_word=$2
22388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22389 $as_echo_n "checking for $ac_word... " >&6; }
22390 if ${ac_cv_path_gcc_cv_nm+:} false; then :
22391 $as_echo_n "(cached) " >&6
22392 else
22393 case $gcc_cv_nm in
22394 [\\/]* | ?:[\\/]*)
22395 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
22398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22399 for as_dir in $PATH
22401 IFS=$as_save_IFS
22402 test -z "$as_dir" && as_dir=.
22403 for ac_exec_ext in '' $ac_executable_extensions; do
22404 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22405 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
22406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22407 break 2
22409 done
22410 done
22411 IFS=$as_save_IFS
22414 esac
22416 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
22417 if test -n "$gcc_cv_nm"; then
22418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
22419 $as_echo "$gcc_cv_nm" >&6; }
22420 else
22421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22422 $as_echo "no" >&6; }
22429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
22430 $as_echo_n "checking what nm to use... " >&6; }
22431 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
22432 # Single tree build which includes binutils.
22433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
22434 $as_echo "newly built nm" >&6; }
22435 in_tree_nm=yes
22436 else
22437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
22438 $as_echo "$gcc_cv_nm" >&6; }
22439 in_tree_nm=no
22442 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
22444 case "$ORIGINAL_NM_FOR_TARGET" in
22445 ./nm | ./nm$build_exeext) ;;
22446 *) ac_config_files="$ac_config_files nm:exec-tool.in"
22448 esac
22451 # Figure out what objdump we will be using.
22452 if ${gcc_cv_objdump+:} false; then :
22454 else
22456 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22457 && test -f ../binutils/Makefile \
22458 && test x$build = x$host; then
22459 # Single tree build which includes binutils.
22460 gcc_cv_objdump=../binutils/objdump$build_exeext
22461 elif test -x objdump$build_exeext; then
22462 gcc_cv_objdump=./objdump$build_exeext
22463 elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $2 ); then
22464 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
22465 else
22466 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
22467 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
22468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22469 $as_echo_n "checking for $ac_word... " >&6; }
22470 if ${ac_cv_path_gcc_cv_objdump+:} false; then :
22471 $as_echo_n "(cached) " >&6
22472 else
22473 case $gcc_cv_objdump in
22474 [\\/]* | ?:[\\/]*)
22475 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
22478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22479 for as_dir in $PATH
22481 IFS=$as_save_IFS
22482 test -z "$as_dir" && as_dir=.
22483 for ac_exec_ext in '' $ac_executable_extensions; do
22484 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22485 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
22486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22487 break 2
22489 done
22490 done
22491 IFS=$as_save_IFS
22494 esac
22496 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
22497 if test -n "$gcc_cv_objdump"; then
22498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
22499 $as_echo "$gcc_cv_objdump" >&6; }
22500 else
22501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22502 $as_echo "no" >&6; }
22509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
22510 $as_echo_n "checking what objdump to use... " >&6; }
22511 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
22512 # Single tree build which includes binutils.
22513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
22514 $as_echo "newly built objdump" >&6; }
22515 elif test x$gcc_cv_objdump = x; then
22516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22517 $as_echo "not found" >&6; }
22518 else
22519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
22520 $as_echo "$gcc_cv_objdump" >&6; }
22523 # Figure out what readelf we will be using.
22524 if ${gcc_cv_readelf+:} false; then :
22526 else
22528 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22529 && test -f ../binutils/Makefile \
22530 && test x$build = x$host; then
22531 # Single tree build which includes binutils.
22532 gcc_cv_readelf=../binutils/readelf$build_exeext
22533 elif test -x readelf$build_exeext; then
22534 gcc_cv_readelf=./readelf$build_exeext
22535 elif ( set dummy $READELF_FOR_TARGET; test -x $2 ); then
22536 gcc_cv_readelf="$READELF_FOR_TARGET"
22537 else
22538 # Extract the first word of "$READELF_FOR_TARGET", so it can be a program name with args.
22539 set dummy $READELF_FOR_TARGET; ac_word=$2
22540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22541 $as_echo_n "checking for $ac_word... " >&6; }
22542 if ${ac_cv_path_gcc_cv_readelf+:} false; then :
22543 $as_echo_n "(cached) " >&6
22544 else
22545 case $gcc_cv_readelf in
22546 [\\/]* | ?:[\\/]*)
22547 ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
22550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22551 for as_dir in $PATH
22553 IFS=$as_save_IFS
22554 test -z "$as_dir" && as_dir=.
22555 for ac_exec_ext in '' $ac_executable_extensions; do
22556 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22557 ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
22558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22559 break 2
22561 done
22562 done
22563 IFS=$as_save_IFS
22566 esac
22568 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
22569 if test -n "$gcc_cv_readelf"; then
22570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22571 $as_echo "$gcc_cv_readelf" >&6; }
22572 else
22573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22574 $as_echo "no" >&6; }
22581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
22582 $as_echo_n "checking what readelf to use... " >&6; }
22583 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
22584 # Single tree build which includes binutils.
22585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
22586 $as_echo "newly built readelf" >&6; }
22587 elif test x$gcc_cv_readelf = x; then
22588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22589 $as_echo "not found" >&6; }
22590 else
22591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22592 $as_echo "$gcc_cv_readelf" >&6; }
22595 # Figure out what otool we will be using.
22596 if ${gcc_cv_otool+:} false; then :
22598 else
22600 if test -x otool$build_exeext; then
22601 gcc_cv_otool=./otool$build_exeext
22602 elif ( set dummy $OTOOL_FOR_TARGET; test -x $2 ); then
22603 gcc_cv_otool="$OTOOL_FOR_TARGET"
22604 else
22605 # Extract the first word of "$OTOOL_FOR_TARGET", so it can be a program name with args.
22606 set dummy $OTOOL_FOR_TARGET; ac_word=$2
22607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22608 $as_echo_n "checking for $ac_word... " >&6; }
22609 if ${ac_cv_path_gcc_cv_otool+:} false; then :
22610 $as_echo_n "(cached) " >&6
22611 else
22612 case $gcc_cv_otool in
22613 [\\/]* | ?:[\\/]*)
22614 ac_cv_path_gcc_cv_otool="$gcc_cv_otool" # Let the user override the test with a path.
22617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22618 for as_dir in $PATH
22620 IFS=$as_save_IFS
22621 test -z "$as_dir" && as_dir=.
22622 for ac_exec_ext in '' $ac_executable_extensions; do
22623 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22624 ac_cv_path_gcc_cv_otool="$as_dir/$ac_word$ac_exec_ext"
22625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22626 break 2
22628 done
22629 done
22630 IFS=$as_save_IFS
22633 esac
22635 gcc_cv_otool=$ac_cv_path_gcc_cv_otool
22636 if test -n "$gcc_cv_otool"; then
22637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_otool" >&5
22638 $as_echo "$gcc_cv_otool" >&6; }
22639 else
22640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22641 $as_echo "no" >&6; }
22648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what otool to use" >&5
22649 $as_echo_n "checking what otool to use... " >&6; }
22650 if test x$gcc_cv_otool = x; then
22651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22652 $as_echo "not found" >&6; }
22653 else
22654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_otool" >&5
22655 $as_echo "$gcc_cv_otool" >&6; }
22658 # Figure out what assembler alignment features are present.
22659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
22660 $as_echo_n "checking assembler flags... " >&6; }
22661 if ${gcc_cv_as_flags+:} false; then :
22662 $as_echo_n "(cached) " >&6
22663 else
22664 case "$target" in
22665 i[34567]86-*-linux*)
22666 gcc_cv_as_flags=--32
22668 x86_64-*-linux-gnux32)
22669 gcc_cv_as_flags=--x32
22671 x86_64-*-linux*)
22672 gcc_cv_as_flags=--64
22674 powerpc*-*-darwin*)
22675 gcc_cv_as_flags="-arch ppc"
22678 gcc_cv_as_flags=" "
22680 esac
22682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
22683 $as_echo "$gcc_cv_as_flags" >&6; }
22685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
22686 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
22687 if ${gcc_cv_as_balign_and_p2align+:} false; then :
22688 $as_echo_n "(cached) " >&6
22689 else
22690 gcc_cv_as_balign_and_p2align=no
22691 if test $in_tree_gas = yes; then
22692 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
22693 then gcc_cv_as_balign_and_p2align=yes
22695 elif test x$gcc_cv_as != x; then
22696 $as_echo '.balign 4
22697 .p2align 2' > conftest.s
22698 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22699 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22700 (eval $ac_try) 2>&5
22701 ac_status=$?
22702 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22703 test $ac_status = 0; }; }
22704 then
22705 gcc_cv_as_balign_and_p2align=yes
22706 else
22707 echo "configure: failed program was" >&5
22708 cat conftest.s >&5
22710 rm -f conftest.o conftest.s
22713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
22714 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
22715 if test $gcc_cv_as_balign_and_p2align = yes; then
22717 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
22722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
22723 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
22724 if ${gcc_cv_as_max_skip_p2align+:} false; then :
22725 $as_echo_n "(cached) " >&6
22726 else
22727 gcc_cv_as_max_skip_p2align=no
22728 if test $in_tree_gas = yes; then
22729 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22730 then gcc_cv_as_max_skip_p2align=yes
22732 elif test x$gcc_cv_as != x; then
22733 $as_echo '.p2align 4,,7' > conftest.s
22734 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22735 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22736 (eval $ac_try) 2>&5
22737 ac_status=$?
22738 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22739 test $ac_status = 0; }; }
22740 then
22741 gcc_cv_as_max_skip_p2align=yes
22742 else
22743 echo "configure: failed program was" >&5
22744 cat conftest.s >&5
22746 rm -f conftest.o conftest.s
22749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
22750 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
22751 if test $gcc_cv_as_max_skip_p2align = yes; then
22753 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
22758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
22759 $as_echo_n "checking assembler for .literal16... " >&6; }
22760 if ${gcc_cv_as_literal16+:} false; then :
22761 $as_echo_n "(cached) " >&6
22762 else
22763 gcc_cv_as_literal16=no
22764 if test $in_tree_gas = yes; then
22765 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22766 then gcc_cv_as_literal16=yes
22768 elif test x$gcc_cv_as != x; then
22769 $as_echo '.literal16' > conftest.s
22770 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22771 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22772 (eval $ac_try) 2>&5
22773 ac_status=$?
22774 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22775 test $ac_status = 0; }; }
22776 then
22777 gcc_cv_as_literal16=yes
22778 else
22779 echo "configure: failed program was" >&5
22780 cat conftest.s >&5
22782 rm -f conftest.o conftest.s
22785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
22786 $as_echo "$gcc_cv_as_literal16" >&6; }
22787 if test $gcc_cv_as_literal16 = yes; then
22789 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
22794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
22795 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
22796 if ${gcc_cv_as_subsection_m1+:} false; then :
22797 $as_echo_n "(cached) " >&6
22798 else
22799 gcc_cv_as_subsection_m1=no
22800 if test $in_tree_gas = yes; then
22801 if test $in_tree_gas_is_elf = yes \
22802 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
22803 then gcc_cv_as_subsection_m1=yes
22805 elif test x$gcc_cv_as != x; then
22806 $as_echo 'conftest_label1: .word 0
22807 .subsection -1
22808 conftest_label2: .word 0
22809 .previous' > conftest.s
22810 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22811 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22812 (eval $ac_try) 2>&5
22813 ac_status=$?
22814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22815 test $ac_status = 0; }; }
22816 then
22817 if test x$gcc_cv_nm != x; then
22818 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
22819 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
22820 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
22821 then :
22822 else gcc_cv_as_subsection_m1=yes
22824 rm -f conftest.nm1 conftest.nm2
22826 else
22827 echo "configure: failed program was" >&5
22828 cat conftest.s >&5
22830 rm -f conftest.o conftest.s
22833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
22834 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
22835 if test $gcc_cv_as_subsection_m1 = yes; then
22837 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
22842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
22843 $as_echo_n "checking assembler for .weak... " >&6; }
22844 if ${gcc_cv_as_weak+:} false; then :
22845 $as_echo_n "(cached) " >&6
22846 else
22847 gcc_cv_as_weak=no
22848 if test $in_tree_gas = yes; then
22849 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
22850 then gcc_cv_as_weak=yes
22852 elif test x$gcc_cv_as != x; then
22853 $as_echo ' .weak foobar' > conftest.s
22854 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22855 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22856 (eval $ac_try) 2>&5
22857 ac_status=$?
22858 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22859 test $ac_status = 0; }; }
22860 then
22861 gcc_cv_as_weak=yes
22862 else
22863 echo "configure: failed program was" >&5
22864 cat conftest.s >&5
22866 rm -f conftest.o conftest.s
22869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
22870 $as_echo "$gcc_cv_as_weak" >&6; }
22871 if test $gcc_cv_as_weak = yes; then
22873 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
22878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
22879 $as_echo_n "checking assembler for .weakref... " >&6; }
22880 if ${gcc_cv_as_weakref+:} false; then :
22881 $as_echo_n "(cached) " >&6
22882 else
22883 gcc_cv_as_weakref=no
22884 if test $in_tree_gas = yes; then
22885 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
22886 then gcc_cv_as_weakref=yes
22888 elif test x$gcc_cv_as != x; then
22889 $as_echo ' .weakref foobar, barfnot' > conftest.s
22890 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22891 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22892 (eval $ac_try) 2>&5
22893 ac_status=$?
22894 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22895 test $ac_status = 0; }; }
22896 then
22897 gcc_cv_as_weakref=yes
22898 else
22899 echo "configure: failed program was" >&5
22900 cat conftest.s >&5
22902 rm -f conftest.o conftest.s
22905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
22906 $as_echo "$gcc_cv_as_weakref" >&6; }
22907 if test $gcc_cv_as_weakref = yes; then
22909 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
22914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
22915 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
22916 if ${gcc_cv_as_nsubspa_comdat+:} false; then :
22917 $as_echo_n "(cached) " >&6
22918 else
22919 gcc_cv_as_nsubspa_comdat=no
22920 if test $in_tree_gas = yes; then
22921 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22922 then gcc_cv_as_nsubspa_comdat=yes
22924 elif test x$gcc_cv_as != x; then
22925 $as_echo ' .SPACE $TEXT$
22926 .NSUBSPA $CODE$,COMDAT' > conftest.s
22927 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22928 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22929 (eval $ac_try) 2>&5
22930 ac_status=$?
22931 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22932 test $ac_status = 0; }; }
22933 then
22934 gcc_cv_as_nsubspa_comdat=yes
22935 else
22936 echo "configure: failed program was" >&5
22937 cat conftest.s >&5
22939 rm -f conftest.o conftest.s
22942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
22943 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
22944 if test $gcc_cv_as_nsubspa_comdat = yes; then
22946 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
22951 # .hidden needs to be supported in both the assembler and the linker,
22952 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
22953 # This is irritatingly difficult to feature test for; we have to check the
22954 # date string after the version number. If we've got an in-tree
22955 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
22956 # to be safe.
22957 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
22958 case "${target}" in
22959 *-*-aix*)
22960 conftest_s=' .globl foobar,hidden'
22963 conftest_s=' .hidden foobar
22964 foobar:'
22966 esac
22967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
22968 $as_echo_n "checking assembler for .hidden... " >&6; }
22969 if ${gcc_cv_as_hidden+:} false; then :
22970 $as_echo_n "(cached) " >&6
22971 else
22972 gcc_cv_as_hidden=no
22973 if test $in_tree_gas = yes; then
22974 if test $in_tree_gas_is_elf = yes \
22975 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
22976 then gcc_cv_as_hidden=yes
22978 elif test x$gcc_cv_as != x; then
22979 $as_echo "$conftest_s" > conftest.s
22980 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22981 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22982 (eval $ac_try) 2>&5
22983 ac_status=$?
22984 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22985 test $ac_status = 0; }; }
22986 then
22987 gcc_cv_as_hidden=yes
22988 else
22989 echo "configure: failed program was" >&5
22990 cat conftest.s >&5
22992 rm -f conftest.o conftest.s
22995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
22996 $as_echo "$gcc_cv_as_hidden" >&6; }
22999 case "${target}" in
23000 *-*-darwin*)
23001 # Darwin as has some visibility support, though with a different syntax.
23002 gcc_cv_as_hidden=yes
23004 esac
23006 # gnu_indirect_function type is an extension proposed at
23007 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
23008 # selection of function implementation
23009 # Check whether --enable-gnu-indirect-function was given.
23010 if test "${enable_gnu_indirect_function+set}" = set; then :
23011 enableval=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
23012 yes | no) ;;
23013 *) as_fn_error $? "'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
23014 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
23015 esac
23016 else
23017 enable_gnu_indirect_function="$default_gnu_indirect_function"
23021 gif=`if test x$enable_gnu_indirect_function = xyes; then echo 1; else echo 0; fi`
23023 cat >>confdefs.h <<_ACEOF
23024 #define HAVE_GNU_INDIRECT_FUNCTION $gif
23025 _ACEOF
23029 if test $in_tree_ld != yes ; then
23030 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
23031 if echo "$ld_ver" | grep GNU > /dev/null; then
23032 if test x"$ld_is_gold" = xyes; then
23033 # GNU gold --version looks like this:
23035 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
23037 # We extract the binutils version which is more familiar and specific
23038 # than the gold version.
23039 ld_vers=`echo $ld_ver | sed -n \
23040 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
23041 else
23042 # GNU ld --version looks like this:
23044 # GNU ld (GNU Binutils) 2.21.51.20110225
23045 ld_vers=`echo $ld_ver | sed -n \
23046 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23048 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'`
23049 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
23050 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
23051 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
23052 else
23053 case "${target}" in
23054 *-*-solaris2*)
23055 # Solaris 2 ld -V output looks like this for a regular version:
23057 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
23059 # but test versions add stuff at the end:
23061 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
23063 # In Solaris 11.4, this was changed to
23065 # ld: Solaris ELF Utilities: 11.4-1.3123
23067 # ld and ld.so.1 are guaranteed to be updated in lockstep, so ld version
23068 # numbers can be used in ld.so.1 feature checks even if a different
23069 # linker is configured.
23070 ld_ver=`$gcc_cv_ld -V 2>&1`
23071 if echo "$ld_ver" | $EGREP 'Solaris Link Editors|Solaris ELF Utilities' > /dev/null; then
23072 ld_vers=`echo $ld_ver | sed -n \
23073 -e 's,^.*: \(5\|1[0-9]\)\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\2,p'`
23074 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
23075 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
23078 esac
23082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
23083 $as_echo_n "checking linker for .hidden support... " >&6; }
23084 if ${gcc_cv_ld_hidden+:} false; then :
23085 $as_echo_n "(cached) " >&6
23086 else
23087 if test $in_tree_ld = yes ; then
23088 gcc_cv_ld_hidden=no
23089 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 \
23090 && test $in_tree_ld_is_elf = yes; then
23091 gcc_cv_ld_hidden=yes
23093 else
23094 gcc_cv_ld_hidden=yes
23095 if test x"$ld_is_gold" = xyes; then
23097 elif echo "$ld_ver" | grep GNU > /dev/null; then
23098 case "${target}" in
23099 mmix-knuth-mmixware)
23100 # The linker emits by default mmo, not ELF, so "no" is appropriate.
23101 gcc_cv_ld_hidden=no
23103 esac
23104 if test 0"$ld_date" -lt 20020404; then
23105 if test -n "$ld_date"; then
23106 # If there was date string, but was earlier than 2002-04-04, fail
23107 gcc_cv_ld_hidden=no
23108 elif test -z "$ld_vers"; then
23109 # If there was no date string nor ld version number, something is wrong
23110 gcc_cv_ld_hidden=no
23111 else
23112 test -z "$ld_vers_patch" && ld_vers_patch=0
23113 if test "$ld_vers_major" -lt 2; then
23114 gcc_cv_ld_hidden=no
23115 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
23116 gcc_cv_ld_hidden="no"
23117 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
23118 gcc_cv_ld_hidden=no
23122 else
23123 case "${target}" in
23124 *-*-aix[789]*)
23125 gcc_cv_ld_hidden=yes
23127 *-*-darwin*)
23128 # Darwin ld has some visibility support.
23129 gcc_cv_ld_hidden=yes
23131 hppa64*-*-hpux* | ia64*-*-hpux*)
23132 gcc_cv_ld_hidden=yes
23134 *-*-solaris2.1[0-9]*)
23135 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
23136 # .symbolic was only added in Solaris 9 12/02.
23137 gcc_cv_ld_hidden=yes
23140 gcc_cv_ld_hidden=no
23142 esac
23146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
23147 $as_echo "$gcc_cv_ld_hidden" >&6; }
23148 libgcc_visibility=no
23151 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
23152 libgcc_visibility=yes
23154 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
23158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
23159 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
23160 gcc_cv_ld_ro_rw_mix=unknown
23161 if test $in_tree_ld = yes ; then
23162 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 \
23163 && test $in_tree_ld_is_elf = yes; then
23164 gcc_cv_ld_ro_rw_mix=read-write
23166 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
23167 echo '.section myfoosect, "a"' > conftest1.s
23168 echo '.section myfoosect, "aw"' > conftest2.s
23169 echo '.byte 1' >> conftest2.s
23170 echo '.section myfoosect, "a"' > conftest3.s
23171 echo '.byte 0' >> conftest3.s
23172 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
23173 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
23174 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
23175 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
23176 conftest2.o conftest3.o > /dev/null 2>&1; then
23177 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
23178 | sed -e '/myfoosect/!d' -e N`
23179 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
23180 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
23181 gcc_cv_ld_ro_rw_mix=read-only
23182 else
23183 gcc_cv_ld_ro_rw_mix=read-write
23187 rm -f conftest.* conftest[123].*
23189 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
23191 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
23194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
23195 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
23197 # Check whether --enable-initfini-array was given.
23198 if test "${enable_initfini_array+set}" = set; then :
23199 enableval=$enable_initfini_array;
23200 else
23202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
23203 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
23204 if ${gcc_cv_initfini_array+:} false; then :
23205 $as_echo_n "(cached) " >&6
23206 else
23207 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
23208 case "${target}" in
23209 ia64-*)
23210 if test "$cross_compiling" = yes; then :
23211 gcc_cv_initfini_array=no
23212 else
23213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23214 /* end confdefs.h. */
23216 #ifndef __ELF__
23217 #error Not an ELF OS
23218 #endif
23219 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
23220 if it can be used. */
23221 static int x = -1;
23222 int main (void) { return x; }
23223 int foo (void) { x = 0; }
23224 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
23226 _ACEOF
23227 if ac_fn_cxx_try_run "$LINENO"; then :
23228 gcc_cv_initfini_array=yes
23229 else
23230 gcc_cv_initfini_array=no
23232 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23233 conftest.$ac_objext conftest.beam conftest.$ac_ext
23237 gcc_cv_initfini_array=no
23238 if test $in_tree_ld = yes ; then
23239 if test "$gcc_cv_gld_major_version" -eq 2 \
23240 -a "$gcc_cv_gld_minor_version" -ge 22 \
23241 -o "$gcc_cv_gld_major_version" -gt 2 \
23242 && test $in_tree_ld_is_elf = yes; then
23243 gcc_cv_initfini_array=yes
23245 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
23246 case $target:$gas in
23247 *:yes)
23248 sh_flags='"a"'
23249 sh_type='%progbits'
23251 i?86-*-solaris2*:no | x86_64-*-solaris2*:no)
23252 sh_flags='"a"'
23253 sh_type='@progbits'
23255 sparc*-*-solaris2*:no)
23256 sh_flags='#alloc'
23257 sh_type='#progbits'
23258 sh_quote='"'
23260 esac
23261 case "$target:$gnu_ld" in
23262 *:yes)
23263 cat > conftest.s <<EOF
23264 .section .dtors,$sh_flags,$sh_type
23265 .balign 4
23266 .byte 'A', 'A', 'A', 'A'
23267 .section .ctors,$sh_flags,$sh_type
23268 .balign 4
23269 .byte 'B', 'B', 'B', 'B'
23270 .section .fini_array.65530,$sh_flags,$sh_type
23271 .balign 4
23272 .byte 'C', 'C', 'C', 'C'
23273 .section .init_array.65530,$sh_flags,$sh_type
23274 .balign 4
23275 .byte 'D', 'D', 'D', 'D'
23276 .section .dtors.64528,$sh_flags,$sh_type
23277 .balign 4
23278 .byte 'E', 'E', 'E', 'E'
23279 .section .ctors.64528,$sh_flags,$sh_type
23280 .balign 4
23281 .byte 'F', 'F', 'F', 'F'
23282 .section .fini_array.01005,$sh_flags,$sh_type
23283 .balign 4
23284 .byte 'G', 'G', 'G', 'G'
23285 .section .init_array.01005,$sh_flags,$sh_type
23286 .balign 4
23287 .byte 'H', 'H', 'H', 'H'
23288 .text
23289 .globl _start
23290 _start:
23292 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
23293 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
23294 && $gcc_cv_objdump -s -j .init_array conftest \
23295 | grep HHHHFFFFDDDDBBBB > /dev/null 2>&1 \
23296 && $gcc_cv_objdump -s -j .fini_array conftest \
23297 | grep GGGGEEEECCCCAAAA > /dev/null 2>&1; then
23298 gcc_cv_initfini_array=yes
23301 *-*-solaris2*:no)
23302 # When Solaris ld added constructor priority support, it was
23303 # decided to only handle .init_array.N/.fini_array.N since
23304 # there was no need for backwards compatibility with
23305 # .ctors.N/.dtors.N. .ctors/.dtors remain as separate
23306 # sections with correct execution order resp. to
23307 # .init_array/.fini_array, while gld merges them into
23308 # .init_array/.fini_array.
23309 cat > conftest.s <<EOF
23310 .section $sh_quote.fini_array.65530$sh_quote,$sh_flags,$sh_type
23311 .align 4
23312 .byte 'C', 'C', 'C', 'C'
23313 .section $sh_quote.init_array.65530$sh_quote,$sh_flags,$sh_type
23314 .align 4
23315 .byte 'D', 'D', 'D', 'D'
23316 .section $sh_quote.fini_array.01005$sh_quote,$sh_flags,$sh_type
23317 .align 4
23318 .byte 'G', 'G', 'G', 'G'
23319 .section $sh_quote.init_array.01005$sh_quote,$sh_flags,$sh_type
23320 .align 4
23321 .byte 'H', 'H', 'H', 'H'
23322 .text
23323 .globl _start
23324 _start:
23326 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
23327 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
23328 && $gcc_cv_objdump -s -j .init_array conftest \
23329 | grep HHHHDDDD > /dev/null 2>&1 \
23330 && $gcc_cv_objdump -s -j .fini_array conftest \
23331 | grep GGGGCCCC > /dev/null 2>&1; then
23332 gcc_cv_initfini_array=yes
23335 esac
23336 rm -f conftest conftest.*
23338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23339 /* end confdefs.h. */
23341 #ifndef __ELF__
23342 # error Not an ELF OS
23343 #endif
23344 #include <stdlib.h>
23345 #if defined __GLIBC_PREREQ
23346 # if __GLIBC_PREREQ (2, 4)
23347 # else
23348 # error GLIBC 2.4 required
23349 # endif
23350 #else
23351 # if defined __sun__ && defined __svr4__
23352 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
23353 # else
23354 # error The C library not known to support .init_array/.fini_array
23355 # endif
23356 #endif
23358 _ACEOF
23359 if ac_fn_cxx_try_cpp "$LINENO"; then :
23361 else
23362 gcc_cv_initfini_array=no
23364 rm -f conftest.err conftest.i conftest.$ac_ext;;
23365 esac
23366 else
23367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
23368 $as_echo_n "checking cross compile... guessing... " >&6; }
23369 gcc_cv_initfini_array=no
23372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
23373 $as_echo "$gcc_cv_initfini_array" >&6; }
23374 enable_initfini_array=$gcc_cv_initfini_array
23379 cat >>confdefs.h <<_ACEOF
23380 #define HAVE_INITFINI_ARRAY_SUPPORT `if test $enable_initfini_array = yes; then echo 1; else echo 0; fi`
23381 _ACEOF
23385 # Check if we have .[us]leb128, and support symbol arithmetic with it.
23386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
23387 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
23388 if ${gcc_cv_as_leb128+:} false; then :
23389 $as_echo_n "(cached) " >&6
23390 else
23391 gcc_cv_as_leb128=no
23392 if test $in_tree_gas = yes; then
23393 if test $in_tree_gas_is_elf = yes \
23394 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
23395 then gcc_cv_as_leb128=yes
23397 elif test x$gcc_cv_as != x; then
23398 $as_echo ' .data
23399 .uleb128 L2 - L1
23401 .uleb128 1280
23402 .sleb128 -1010
23403 L2:' > conftest.s
23404 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23405 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23406 (eval $ac_try) 2>&5
23407 ac_status=$?
23408 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23409 test $ac_status = 0; }; }
23410 then
23411 # GAS versions before 2.11 do not support uleb128,
23412 # despite appearing to.
23413 # ??? There exists an elf-specific test that will crash
23414 # the assembler. Perhaps it's better to figure out whether
23415 # arbitrary sections are supported and try the test.
23416 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
23417 if echo "$as_ver" | grep GNU > /dev/null; then
23418 as_vers=`echo $as_ver | sed -n \
23419 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23420 as_major=`expr "$as_vers" : '\([0-9]*\)'`
23421 as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
23422 if test $as_major -eq 2 && test $as_minor -lt 11
23423 then :
23424 else gcc_cv_as_leb128=yes
23427 else
23428 echo "configure: failed program was" >&5
23429 cat conftest.s >&5
23431 rm -f conftest.o conftest.s
23434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
23435 $as_echo "$gcc_cv_as_leb128" >&6; }
23436 if test $gcc_cv_as_leb128 = yes; then
23438 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
23441 if test $gcc_cv_as_leb128 != yes; then
23443 $as_echo "#define HAVE_AS_LEB128 0" >>confdefs.h
23447 # Determine if an .eh_frame section is read-only.
23448 gcc_fn_eh_frame_ro () {
23449 $gcc_cv_as $1 -o conftest.o conftest.s > /dev/null 2>&1 && \
23450 $gcc_cv_objdump -h conftest.o 2>/dev/null | \
23451 sed -e '/.eh_frame/!d' -e N | grep READONLY > /dev/null
23454 # Check if we have assembler support for unwind directives.
23455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
23456 $as_echo_n "checking assembler for cfi directives... " >&6; }
23457 if ${gcc_cv_as_cfi_directive+:} false; then :
23458 $as_echo_n "(cached) " >&6
23459 else
23460 gcc_cv_as_cfi_directive=no
23461 if test x$gcc_cv_as != x; then
23462 $as_echo ' .text
23463 .cfi_startproc
23464 .cfi_offset 0, 0
23465 .cfi_same_value 1
23466 .cfi_def_cfa 1, 2
23467 .cfi_escape 1, 2, 3, 4, 5
23468 .cfi_endproc' > conftest.s
23469 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23470 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23471 (eval $ac_try) 2>&5
23472 ac_status=$?
23473 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23474 test $ac_status = 0; }; }
23475 then
23476 case "$target" in
23477 *-*-solaris*)
23478 # If the linker used on Solaris (like Sun ld) isn't capable of merging
23479 # read-only and read-write sections, we need to make sure that the
23480 # assembler used emits read-write .eh_frame sections.
23481 if test "x$gcc_cv_ld_ro_rw_mix" = xread-write; then
23482 gcc_cv_as_cfi_directive=yes
23483 elif test "x$gcc_cv_objdump" = x; then
23484 # No objdump, err on the side of caution.
23485 gcc_cv_as_cfi_directive=no
23486 else
23487 if test x$gas = xyes; then
23488 as_32_opt="--32"
23489 as_64_opt="--64"
23490 else
23491 as_32_opt="-m32"
23492 as_64_opt="-m64"
23494 case "$target" in
23495 sparc*-*-solaris2.*)
23496 # On Solaris/SPARC, .eh_frame sections should always be read-write.
23497 if gcc_fn_eh_frame_ro $as_32_opt \
23498 || gcc_fn_eh_frame_ro $as_64_opt; then
23499 gcc_cv_as_cfi_directive=no
23500 else
23501 gcc_cv_as_cfi_directive=yes
23504 i?86-*-solaris2.* | x86_64-*-solaris2.*)
23505 # On Solaris/x86, make sure that GCC and assembler agree on using
23506 # read-only .eh_frame sections for 64-bit.
23507 if gcc_fn_eh_frame_ro $as_32_opt; then
23508 gcc_cv_as_cfi_directive=no
23509 elif gcc_fn_eh_frame_ro $as_64_opt; then
23510 gcc_cv_as_cfi_directive=yes
23511 else
23512 gcc_cv_as_cfi_directive=no
23515 esac
23518 *-*-*)
23519 gcc_cv_as_cfi_directive=yes
23521 esac
23522 else
23523 echo "configure: failed program was" >&5
23524 cat conftest.s >&5
23526 rm -f conftest.o conftest.s
23529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
23530 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
23533 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then
23534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
23535 $as_echo_n "checking assembler for working cfi advance... " >&6; }
23536 if ${gcc_cv_as_cfi_advance_working+:} false; then :
23537 $as_echo_n "(cached) " >&6
23538 else
23539 gcc_cv_as_cfi_advance_working=no
23540 if test x$gcc_cv_as != x; then
23541 $as_echo ' .text
23542 .cfi_startproc
23543 .cfi_adjust_cfa_offset 64
23544 .skip 75040, 0
23545 .cfi_adjust_cfa_offset 128
23546 .cfi_endproc' > conftest.s
23547 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23548 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23549 (eval $ac_try) 2>&5
23550 ac_status=$?
23551 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23552 test $ac_status = 0; }; }
23553 then
23555 if $gcc_cv_objdump -Wf conftest.o 2>/dev/null \
23556 | grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev/null; then
23557 gcc_cv_as_cfi_advance_working=yes
23560 else
23561 echo "configure: failed program was" >&5
23562 cat conftest.s >&5
23564 rm -f conftest.o conftest.s
23567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
23568 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
23571 else
23572 # no objdump, err on the side of caution
23573 gcc_cv_as_cfi_advance_working=no
23577 cat >>confdefs.h <<_ACEOF
23578 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
23579 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
23580 _ACEOF
23584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
23585 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
23586 if ${gcc_cv_as_cfi_personality_directive+:} false; then :
23587 $as_echo_n "(cached) " >&6
23588 else
23589 gcc_cv_as_cfi_personality_directive=no
23590 if test x$gcc_cv_as != x; then
23591 $as_echo ' .text
23592 .cfi_startproc
23593 .cfi_personality 0, symbol
23594 .cfi_endproc' > conftest.s
23595 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23596 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23597 (eval $ac_try) 2>&5
23598 ac_status=$?
23599 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23600 test $ac_status = 0; }; }
23601 then
23602 gcc_cv_as_cfi_personality_directive=yes
23603 else
23604 echo "configure: failed program was" >&5
23605 cat conftest.s >&5
23607 rm -f conftest.o conftest.s
23610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
23611 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
23615 cat >>confdefs.h <<_ACEOF
23616 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes; then echo 1; else echo 0; fi`
23617 _ACEOF
23620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
23621 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
23622 if ${gcc_cv_as_cfi_sections_directive+:} false; then :
23623 $as_echo_n "(cached) " >&6
23624 else
23625 gcc_cv_as_cfi_sections_directive=no
23626 if test x$gcc_cv_as != x; then
23627 $as_echo ' .text
23628 .cfi_sections .debug_frame, .eh_frame
23629 .cfi_startproc
23630 .cfi_endproc' > conftest.s
23631 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23632 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23633 (eval $ac_try) 2>&5
23634 ac_status=$?
23635 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23636 test $ac_status = 0; }; }
23637 then
23638 case $target_os in
23639 win32 | pe | cygwin* | mingw32*)
23640 # Need to check that we generated the correct relocation for the
23641 # .debug_frame section. This was fixed for binutils 2.21.
23642 gcc_cv_as_cfi_sections_directive=no
23643 if test "x$gcc_cv_objdump" != x; then
23644 if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
23645 grep secrel > /dev/null; then
23646 gcc_cv_as_cfi_sections_directive=yes
23651 gcc_cv_as_cfi_sections_directive=yes
23653 esac
23654 else
23655 echo "configure: failed program was" >&5
23656 cat conftest.s >&5
23658 rm -f conftest.o conftest.s
23661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
23662 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
23667 cat >>confdefs.h <<_ACEOF
23668 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes; then echo 1; else echo 0; fi`
23669 _ACEOF
23672 # GAS versions up to and including 2.11.0 may mis-optimize
23673 # .eh_frame data.
23674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
23675 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
23676 if ${gcc_cv_as_eh_frame+:} false; then :
23677 $as_echo_n "(cached) " >&6
23678 else
23679 gcc_cv_as_eh_frame=no
23680 if test $in_tree_gas = yes; then
23681 if test $in_tree_gas_is_elf = yes \
23682 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23683 then gcc_cv_as_eh_frame=yes
23685 elif test x$gcc_cv_as != x; then
23686 $as_echo ' .text
23687 .LFB1:
23688 .4byte 0
23689 .L1:
23690 .4byte 0
23691 .LFE1:
23692 .section .eh_frame,"aw",@progbits
23693 __FRAME_BEGIN__:
23694 .4byte .LECIE1-.LSCIE1
23695 .LSCIE1:
23696 .4byte 0x0
23697 .byte 0x1
23698 .ascii "z\0"
23699 .byte 0x1
23700 .byte 0x78
23701 .byte 0x1a
23702 .byte 0x0
23703 .byte 0x4
23704 .4byte 1
23705 .p2align 1
23706 .LECIE1:
23707 .LSFDE1:
23708 .4byte .LEFDE1-.LASFDE1
23709 .LASFDE1:
23710 .4byte .LASFDE1-__FRAME_BEGIN__
23711 .4byte .LFB1
23712 .4byte .LFE1-.LFB1
23713 .byte 0x4
23714 .4byte .LFE1-.LFB1
23715 .byte 0x4
23716 .4byte .L1-.LFB1
23717 .LEFDE1:' > conftest.s
23718 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23719 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23720 (eval $ac_try) 2>&5
23721 ac_status=$?
23722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23723 test $ac_status = 0; }; }
23724 then
23725 cat > conftest.lit <<EOF
23726 0000 10000000 00000000 017a0001 781a0004 .........z..x...
23727 0010 01000000 12000000 18000000 00000000 ................
23728 0020 08000000 04080000 0044 .........D
23730 cat > conftest.big <<EOF
23731 0000 00000010 00000000 017a0001 781a0004 .........z..x...
23732 0010 00000001 00000012 00000018 00000000 ................
23733 0020 00000008 04000000 0844 .........D
23735 # If the assembler didn't choke, and we can objdump,
23736 # and we got the correct data, then succeed.
23737 # The text in the here-document typically retains its unix-style line
23738 # endings, while the output of objdump will use host line endings.
23739 # Therefore, use diff -b for the comparisons.
23740 if test x$gcc_cv_objdump != x \
23741 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
23742 | tail -3 > conftest.got \
23743 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
23744 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
23745 then
23746 gcc_cv_as_eh_frame=yes
23747 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
23748 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23749 (eval $ac_try) 2>&5
23750 ac_status=$?
23751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23752 test $ac_status = 0; }; }; then
23753 gcc_cv_as_eh_frame=buggy
23754 else
23755 # Uh oh, what do we do now?
23756 gcc_cv_as_eh_frame=no
23758 else
23759 echo "configure: failed program was" >&5
23760 cat conftest.s >&5
23762 rm -f conftest.o conftest.s
23765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
23766 $as_echo "$gcc_cv_as_eh_frame" >&6; }
23770 if test $gcc_cv_as_eh_frame = buggy; then
23772 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
23776 # Test if the assembler supports the section flag 'e' or #exclude for
23777 # specifying an excluded section.
23778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section exclude flag" >&5
23779 $as_echo_n "checking assembler for section exclude flag... " >&6; }
23780 if ${gcc_cv_as_section_exclude_e+:} false; then :
23781 $as_echo_n "(cached) " >&6
23782 else
23783 gcc_cv_as_section_exclude_e=no
23784 if test $in_tree_gas = yes; then
23785 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
23786 then gcc_cv_as_section_exclude_e=yes
23788 elif test x$gcc_cv_as != x; then
23789 $as_echo '.section foo1,"e"
23790 .byte 0,0,0,0' > conftest.s
23791 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23792 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23793 (eval $ac_try) 2>&5
23794 ac_status=$?
23795 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23796 test $ac_status = 0; }; }
23797 then
23798 gcc_cv_as_section_exclude_e=yes
23799 else
23800 echo "configure: failed program was" >&5
23801 cat conftest.s >&5
23803 rm -f conftest.o conftest.s
23806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_exclude_e" >&5
23807 $as_echo "$gcc_cv_as_section_exclude_e" >&6; }
23810 if test $gcc_cv_as_section_exclude_e = no; then
23811 case "${target}" in
23812 # Solaris as uses #exclude instead.
23813 *-*-solaris2*)
23814 case "${target}" in
23815 sparc*-*-solaris2*)
23816 conftest_s='.section "foo1", #exclude'
23818 i?86-*-solaris2* | x86_64-*-solaris2*)
23819 conftest_s='.section foo1, #exclude'
23821 esac
23823 esac
23824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section exclude flag" >&5
23825 $as_echo_n "checking assembler for section exclude flag... " >&6; }
23826 if ${gcc_cv_as_section_exclude_hash+:} false; then :
23827 $as_echo_n "(cached) " >&6
23828 else
23829 gcc_cv_as_section_exclude_hash=no
23830 if test x$gcc_cv_as != x; then
23831 $as_echo "$conftest_s
23832 .byte 0,0,0,0" > conftest.s
23833 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23834 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23835 (eval $ac_try) 2>&5
23836 ac_status=$?
23837 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23838 test $ac_status = 0; }; }
23839 then
23840 gcc_cv_as_section_exclude_hash=yes
23841 else
23842 echo "configure: failed program was" >&5
23843 cat conftest.s >&5
23845 rm -f conftest.o conftest.s
23848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_exclude_hash" >&5
23849 $as_echo "$gcc_cv_as_section_exclude_hash" >&6; }
23854 cat >>confdefs.h <<_ACEOF
23855 #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`
23856 _ACEOF
23859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
23860 $as_echo_n "checking assembler for section merging support... " >&6; }
23861 if ${gcc_cv_as_shf_merge+:} false; then :
23862 $as_echo_n "(cached) " >&6
23863 else
23864 gcc_cv_as_shf_merge=no
23865 if test $in_tree_gas = yes; then
23866 if test $in_tree_gas_is_elf = yes \
23867 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23868 then gcc_cv_as_shf_merge=yes
23870 elif test x$gcc_cv_as != x; then
23871 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
23872 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23873 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23874 (eval $ac_try) 2>&5
23875 ac_status=$?
23876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23877 test $ac_status = 0; }; }
23878 then
23879 gcc_cv_as_shf_merge=yes
23880 else
23881 echo "configure: failed program was" >&5
23882 cat conftest.s >&5
23884 rm -f conftest.o conftest.s
23887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23888 $as_echo "$gcc_cv_as_shf_merge" >&6; }
23891 if test $gcc_cv_as_shf_merge = no; then
23892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
23893 $as_echo_n "checking assembler for section merging support... " >&6; }
23894 if ${gcc_cv_as_shf_merge+:} false; then :
23895 $as_echo_n "(cached) " >&6
23896 else
23897 gcc_cv_as_shf_merge=no
23898 if test $in_tree_gas = yes; then
23899 if test $in_tree_gas_is_elf = yes \
23900 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23901 then gcc_cv_as_shf_merge=yes
23903 elif test x$gcc_cv_as != x; then
23904 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
23905 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23906 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23907 (eval $ac_try) 2>&5
23908 ac_status=$?
23909 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23910 test $ac_status = 0; }; }
23911 then
23912 gcc_cv_as_shf_merge=yes
23913 else
23914 echo "configure: failed program was" >&5
23915 cat conftest.s >&5
23917 rm -f conftest.o conftest.s
23920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23921 $as_echo "$gcc_cv_as_shf_merge" >&6; }
23925 case "$target" in
23926 i?86-*-solaris2.10* | x86_64-*-solaris2.10*)
23927 # SHF_MERGE support in Solaris 10/x86 ld is broken.
23928 if test x"$gnu_ld" = xno; then
23929 gcc_cv_as_shf_merge=no
23932 esac
23934 cat >>confdefs.h <<_ACEOF
23935 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
23936 _ACEOF
23939 gcc_cv_ld_aligned_shf_merge=yes
23940 case "$target" in
23941 # While Solaris 10/SPARC ld isn't affected, disable to avoid problems
23942 # relinking on Solaris 11 < 11.4.
23943 sparc*-*-solaris2.10*)
23944 if test x"$gnu_ld" = xno; then
23945 gcc_cv_ld_aligned_shf_merge=no
23948 # SHF_MERGE support is broken in Solaris ld up to Solaris 11.3/SPARC for
23949 # alignment > 1.
23950 sparc*-*-solaris2.11*)
23951 if test x"$gnu_ld" = xno \
23952 && test "$ld_vers_major" -lt 2 && test "$ld_vers_minor" -lt 3159; then
23953 gcc_cv_ld_aligned_shf_merge=no
23956 esac
23958 cat >>confdefs.h <<_ACEOF
23959 #define HAVE_LD_ALIGNED_SHF_MERGE `if test $gcc_cv_ld_aligned_shf_merge = yes; then echo 1; else echo 0; fi`
23960 _ACEOF
23963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for stabs directive" >&5
23964 $as_echo_n "checking assembler for stabs directive... " >&6; }
23965 if ${gcc_cv_as_stabs_directive+:} false; then :
23966 $as_echo_n "(cached) " >&6
23967 else
23968 gcc_cv_as_stabs_directive=no
23969 if test x$gcc_cv_as != x; then
23970 $as_echo '.stabs "gcc2_compiled.",60,0,0,0' > conftest.s
23971 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23972 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23973 (eval $ac_try) 2>&5
23974 ac_status=$?
23975 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23976 test $ac_status = 0; }; }
23977 then
23978 gcc_cv_as_stabs_directive=yes
23979 else
23980 echo "configure: failed program was" >&5
23981 cat conftest.s >&5
23983 rm -f conftest.o conftest.s
23986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_stabs_directive" >&5
23987 $as_echo "$gcc_cv_as_stabs_directive" >&6; }
23988 if test $gcc_cv_as_stabs_directive = yes; then
23990 $as_echo "#define HAVE_AS_STABS_DIRECTIVE 1" >>confdefs.h
23995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
23996 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
23997 if ${gcc_cv_as_comdat_group+:} false; then :
23998 $as_echo_n "(cached) " >&6
23999 else
24000 gcc_cv_as_comdat_group=no
24001 if test $in_tree_gas = yes; then
24002 if test $in_tree_gas_is_elf = yes \
24003 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
24004 then gcc_cv_as_comdat_group=yes
24006 elif test x$gcc_cv_as != x; then
24007 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
24008 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24009 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24010 (eval $ac_try) 2>&5
24011 ac_status=$?
24012 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24013 test $ac_status = 0; }; }
24014 then
24015 gcc_cv_as_comdat_group=yes
24016 else
24017 echo "configure: failed program was" >&5
24018 cat conftest.s >&5
24020 rm -f conftest.o conftest.s
24023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
24024 $as_echo "$gcc_cv_as_comdat_group" >&6; }
24027 if test $gcc_cv_as_comdat_group = yes; then
24028 gcc_cv_as_comdat_group_percent=no
24029 gcc_cv_as_comdat_group_group=no
24030 else
24031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
24032 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
24033 if ${gcc_cv_as_comdat_group_percent+:} false; then :
24034 $as_echo_n "(cached) " >&6
24035 else
24036 gcc_cv_as_comdat_group_percent=no
24037 if test $in_tree_gas = yes; then
24038 if test $in_tree_gas_is_elf = yes \
24039 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
24040 then gcc_cv_as_comdat_group_percent=yes
24042 elif test x$gcc_cv_as != x; then
24043 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
24044 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24045 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24046 (eval $ac_try) 2>&5
24047 ac_status=$?
24048 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24049 test $ac_status = 0; }; }
24050 then
24051 gcc_cv_as_comdat_group_percent=yes
24052 else
24053 echo "configure: failed program was" >&5
24054 cat conftest.s >&5
24056 rm -f conftest.o conftest.s
24059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
24060 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
24063 if test $gcc_cv_as_comdat_group_percent = yes; then
24064 gcc_cv_as_comdat_group_group=no
24065 else
24066 case "${target}" in
24067 # Sun as uses a completely different syntax.
24068 *-*-solaris2*)
24069 case "${target}" in
24070 sparc*-*-solaris2*)
24071 conftest_s='
24072 .group foo,".text%foo",#comdat
24073 .section ".text%foo", #alloc,#execinstr,#progbits
24074 .globl foo
24075 foo:
24078 i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
24079 conftest_s='
24080 .group foo,.text%foo,#comdat
24081 .section .text%foo, "ax", @progbits
24082 .globl foo
24083 foo:
24086 esac
24087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
24088 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
24089 if ${gcc_cv_as_comdat_group_group+:} false; then :
24090 $as_echo_n "(cached) " >&6
24091 else
24092 gcc_cv_as_comdat_group_group=no
24093 if test x$gcc_cv_as != x; then
24094 $as_echo "$conftest_s" > conftest.s
24095 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24096 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24097 (eval $ac_try) 2>&5
24098 ac_status=$?
24099 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24100 test $ac_status = 0; }; }
24101 then
24102 gcc_cv_as_comdat_group_group=yes
24103 else
24104 echo "configure: failed program was" >&5
24105 cat conftest.s >&5
24107 rm -f conftest.o conftest.s
24110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
24111 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
24115 esac
24116 if test -z "${gcc_cv_as_comdat_group_group+set}"; then
24117 gcc_cv_as_comdat_group_group=no
24121 if test x"$ld_is_gold" = xyes; then
24122 comdat_group=yes
24123 elif test $in_tree_ld = yes ; then
24124 comdat_group=no
24125 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 \
24126 && test $in_tree_ld_is_elf = yes; then
24127 comdat_group=yes
24129 elif echo "$ld_ver" | grep GNU > /dev/null; then
24130 comdat_group=yes
24131 if test 0"$ld_date" -lt 20050308; then
24132 if test -n "$ld_date"; then
24133 # If there was date string, but was earlier than 2005-03-08, fail
24134 comdat_group=no
24135 elif test "$ld_vers_major" -lt 2; then
24136 comdat_group=no
24137 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
24138 comdat_group=no
24141 else
24142 case "${target}" in
24143 *-*-solaris2.1[1-9]*)
24144 comdat_group=no
24145 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
24146 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
24147 # version 1.688.
24149 # If using Sun as for COMDAT group as emitted by GCC, one needs at
24150 # least ld version 1.2267.
24151 if test "$ld_vers_major" -gt 1; then
24152 comdat_group=yes
24153 elif test "x$gas_flag" = xyes && test "$ld_vers_minor" -ge 1688; then
24154 comdat_group=yes
24155 elif test "$ld_vers_minor" -ge 2267; then
24156 comdat_group=yes
24160 # Assume linkers other than GNU ld don't support COMDAT group.
24161 comdat_group=no
24163 esac
24165 # Allow overriding the automatic COMDAT group tests above.
24166 # Check whether --enable-comdat was given.
24167 if test "${enable_comdat+set}" = set; then :
24168 enableval=$enable_comdat; comdat_group="$enable_comdat"
24171 if test $comdat_group = no; then
24172 gcc_cv_as_comdat_group=no
24173 gcc_cv_as_comdat_group_percent=no
24174 gcc_cv_as_comdat_group_group=no
24177 cat >>confdefs.h <<_ACEOF
24178 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
24179 || test $gcc_cv_as_comdat_group_percent = yes \
24180 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
24181 _ACEOF
24184 # Restrict this test to Solaris/x86: other targets define this statically.
24185 case "${target}" in
24186 i?86-*-solaris2* | x86_64-*-solaris2*)
24187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for hidden thunks in linkonce sections" >&5
24188 $as_echo_n "checking support for hidden thunks in linkonce sections... " >&6; }
24189 if test $in_tree_ld = yes || echo "$ld_ver" | grep GNU > /dev/null; then
24190 hidden_linkonce=yes
24191 else
24192 case "${target}" in
24193 # Full support for hidden thunks in linkonce sections only appeared in
24194 # Solaris 11/OpenSolaris.
24195 *-*-solaris2.1[1-9]*)
24196 hidden_linkonce=yes
24199 hidden_linkonce=no
24201 esac
24203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hidden_linkonce" >&5
24204 $as_echo "$hidden_linkonce" >&6; }
24206 cat >>confdefs.h <<_ACEOF
24207 #define USE_HIDDEN_LINKONCE `if test $hidden_linkonce = yes; then echo 1; else echo 0; fi`
24208 _ACEOF
24211 esac
24213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table is_stmt support" >&5
24214 $as_echo_n "checking assembler for line table is_stmt support... " >&6; }
24215 if ${gcc_cv_as_is_stmt+:} false; then :
24216 $as_echo_n "(cached) " >&6
24217 else
24218 gcc_cv_as_is_stmt=no
24219 if test $in_tree_gas = yes; then
24220 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 92`
24221 then gcc_cv_as_is_stmt=yes
24223 elif test x$gcc_cv_as != x; then
24224 $as_echo ' .text
24225 .file 1 "conf.c"
24226 .loc 1 1 0 is_stmt 1' > conftest.s
24227 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24228 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24229 (eval $ac_try) 2>&5
24230 ac_status=$?
24231 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24232 test $ac_status = 0; }; }
24233 then
24234 gcc_cv_as_is_stmt=yes
24235 else
24236 echo "configure: failed program was" >&5
24237 cat conftest.s >&5
24239 rm -f conftest.o conftest.s
24242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_is_stmt" >&5
24243 $as_echo "$gcc_cv_as_is_stmt" >&6; }
24244 if test $gcc_cv_as_is_stmt = yes; then
24246 $as_echo "#define HAVE_GAS_LOC_STMT 1" >>confdefs.h
24251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
24252 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
24253 if ${gcc_cv_as_discriminator+:} false; then :
24254 $as_echo_n "(cached) " >&6
24255 else
24256 gcc_cv_as_discriminator=no
24257 if test $in_tree_gas = yes; then
24258 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
24259 then gcc_cv_as_discriminator=yes
24261 elif test x$gcc_cv_as != x; then
24262 $as_echo ' .text
24263 .file 1 "conf.c"
24264 .loc 1 1 0 discriminator 1' > conftest.s
24265 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24266 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24267 (eval $ac_try) 2>&5
24268 ac_status=$?
24269 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24270 test $ac_status = 0; }; }
24271 then
24272 gcc_cv_as_discriminator=yes
24273 else
24274 echo "configure: failed program was" >&5
24275 cat conftest.s >&5
24277 rm -f conftest.o conftest.s
24280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
24281 $as_echo "$gcc_cv_as_discriminator" >&6; }
24282 if test $gcc_cv_as_discriminator = yes; then
24284 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
24289 # Thread-local storage - the check is heavily parameterized.
24290 conftest_s=
24291 tls_first_major=
24292 tls_first_minor=
24293 tls_as_opt=
24294 case "$target" in
24295 alpha*-*-*)
24296 conftest_s='
24297 .section ".tdata","awT",@progbits
24298 foo: .long 25
24299 .text
24300 ldq $27,__tls_get_addr($29) !literal!1
24301 lda $16,foo($29) !tlsgd!1
24302 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
24303 ldq $27,__tls_get_addr($29) !literal!2
24304 lda $16,foo($29) !tlsldm!2
24305 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
24306 ldq $1,foo($29) !gotdtprel
24307 ldah $2,foo($29) !dtprelhi
24308 lda $3,foo($2) !dtprello
24309 lda $4,foo($29) !dtprel
24310 ldq $1,foo($29) !gottprel
24311 ldah $2,foo($29) !tprelhi
24312 lda $3,foo($2) !tprello
24313 lda $4,foo($29) !tprel'
24314 tls_first_major=2
24315 tls_first_minor=13
24316 tls_as_opt=--fatal-warnings
24318 arc*-*-*)
24319 conftest_s='
24320 add_s r0,r0, @foo@tpoff'
24321 tls_first_major=2
24322 tls_first_minor=23
24324 cris-*-*|crisv32-*-*)
24325 conftest_s='
24326 .section ".tdata","awT",@progbits
24327 x: .long 25
24328 .text
24329 move.d x:IE,$r10
24330 nop'
24331 tls_first_major=2
24332 tls_first_minor=20
24333 tls_as_opt=--fatal-warnings
24335 frv*-*-*)
24336 conftest_s='
24337 .section ".tdata","awT",@progbits
24338 x: .long 25
24339 .text
24340 call #gettlsoff(x)'
24341 tls_first_major=2
24342 tls_first_minor=14
24344 hppa*-*-linux*)
24345 conftest_s='
24346 t1: .reg %r20
24347 t2: .reg %r21
24348 gp: .reg %r19
24349 .section ".tdata","awT",@progbits
24350 foo: .long 25
24351 .text
24352 .align 4
24353 addil LT%foo-$tls_gdidx$,gp
24354 ldo RT%foo-$tls_gdidx$(%r1),%arg0
24355 b __tls_get_addr
24357 addil LT%foo-$tls_ldidx$,gp
24358 b __tls_get_addr
24359 ldo RT%foo-$tls_ldidx$(%r1),%arg0
24360 addil LR%foo-$tls_dtpoff$,%ret0
24361 ldo RR%foo-$tls_dtpoff$(%r1),%t1
24362 mfctl %cr27,%t1
24363 addil LT%foo-$tls_ieoff$,gp
24364 ldw RT%foo-$tls_ieoff$(%r1),%t2
24365 add %t1,%t2,%t3
24366 mfctl %cr27,%t1
24367 addil LR%foo-$tls_leoff$,%t1
24368 ldo RR%foo-$tls_leoff$(%r1),%t2'
24369 tls_first_major=2
24370 tls_first_minor=15
24371 tls_as_opt=--fatal-warnings
24373 arm*-*-*)
24374 conftest_s='
24375 .section ".tdata","awT",%progbits
24376 foo: .long 25
24377 .text
24378 .word foo(gottpoff)
24379 .word foo(tpoff)
24380 .word foo(tlsgd)
24381 .word foo(tlsldm)
24382 .word foo(tlsldo)'
24383 tls_first_major=2
24384 tls_first_minor=17
24386 i[34567]86-*-* | x86_64-*-*)
24387 case "$target" in
24388 i[34567]86-*-solaris2.* | x86_64-*-solaris2.1[0-9]*)
24389 on_solaris=yes
24392 on_solaris=no
24394 esac
24395 if test x$on_solaris = xyes && test x$gas_flag = xno; then
24396 conftest_s='
24397 .section .tdata,"awt",@progbits'
24398 tls_first_major=0
24399 tls_first_minor=0
24400 tls_section_flag=t
24402 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
24404 else
24405 conftest_s='
24406 .section ".tdata","awT",@progbits'
24407 tls_first_major=2
24408 tls_first_minor=14
24409 tls_section_flag=T
24410 tls_as_opt="--fatal-warnings"
24412 case "$target" in
24413 i[34567]86-*-*)
24414 conftest_s="$conftest_s
24415 foo: .long 25
24416 .text
24417 movl %gs:0, %eax
24418 leal foo@tlsgd(,%ebx,1), %eax
24419 leal foo@tlsldm(%ebx), %eax
24420 leal foo@dtpoff(%eax), %edx
24421 movl foo@gottpoff(%ebx), %eax
24422 subl foo@gottpoff(%ebx), %eax
24423 addl foo@gotntpoff(%ebx), %eax
24424 movl foo@indntpoff, %eax
24425 movl \$foo@tpoff, %eax
24426 subl \$foo@tpoff, %eax
24427 leal foo@ntpoff(%ecx), %eax"
24429 x86_64-*-*)
24430 if test x$on_solaris = xyes; then
24431 case $gas_flag in
24432 yes) tls_as_opt="$tls_as_opt --64" ;;
24433 no) tls_as_opt="$tls_as_opt -xarch=amd64" ;;
24434 esac
24436 conftest_s="$conftest_s
24437 foo: .long 25
24438 .text
24439 movq %fs:0, %rax
24440 leaq foo@tlsgd(%rip), %rdi
24441 leaq foo@tlsld(%rip), %rdi
24442 leaq foo@dtpoff(%rax), %rdx
24443 movq foo@gottpoff(%rip), %rax
24444 movq \$foo@tpoff, %rax"
24446 esac
24448 ia64-*-*)
24449 conftest_s='
24450 .section ".tdata","awT",@progbits
24451 foo: data8 25
24452 .text
24453 addl r16 = @ltoff(@dtpmod(foo#)), gp
24454 addl r17 = @ltoff(@dtprel(foo#)), gp
24455 addl r18 = @ltoff(@tprel(foo#)), gp
24456 addl r19 = @dtprel(foo#), gp
24457 adds r21 = @dtprel(foo#), r13
24458 movl r23 = @dtprel(foo#)
24459 addl r20 = @tprel(foo#), gp
24460 adds r22 = @tprel(foo#), r13
24461 movl r24 = @tprel(foo#)'
24462 tls_first_major=2
24463 tls_first_minor=13
24464 tls_as_opt=--fatal-warnings
24466 microblaze*-*-*)
24467 conftest_s='
24468 .section .tdata,"awT",@progbits
24470 .word 2
24471 .text
24472 addik r5,r20,x@TLSGD
24473 addik r5,r20,x@TLSLDM'
24474 tls_first_major=2
24475 tls_first_minor=20
24476 tls_as_opt='--fatal-warnings'
24478 mips*-*-*)
24479 conftest_s='
24480 .section .tdata,"awT",@progbits
24482 .word 2
24483 .text
24484 addiu $4, $28, %tlsgd(x)
24485 addiu $4, $28, %tlsldm(x)
24486 lui $4, %dtprel_hi(x)
24487 addiu $4, $4, %dtprel_lo(x)
24488 lw $4, %gottprel(x)($28)
24489 lui $4, %tprel_hi(x)
24490 addiu $4, $4, %tprel_lo(x)'
24491 tls_first_major=2
24492 tls_first_minor=16
24493 tls_as_opt='-32 --fatal-warnings'
24495 m68k-*-*)
24496 conftest_s='
24497 .section .tdata,"awT",@progbits
24499 .word 2
24500 .text
24501 foo:
24502 move.l x@TLSGD(%a5),%a0
24503 move.l x@TLSLDM(%a5),%a0
24504 move.l x@TLSLDO(%a5),%a0
24505 move.l x@TLSIE(%a5),%a0
24506 move.l x@TLSLE(%a5),%a0'
24507 tls_first_major=2
24508 tls_first_minor=19
24509 tls_as_opt='--fatal-warnings'
24511 nios2-*-*)
24512 conftest_s='
24513 .section ".tdata","awT",@progbits'
24514 tls_first_major=2
24515 tls_first_minor=23
24516 tls_as_opt="--fatal-warnings"
24518 aarch64*-*-*)
24519 conftest_s='
24520 .section ".tdata","awT",%progbits
24521 foo: .long 25
24522 .text
24523 adrp x0, :tlsgd:x
24524 add x0, x0, #:tlsgd_lo12:x
24525 bl __tls_get_addr
24526 nop'
24527 tls_first_major=2
24528 tls_first_minor=20
24529 tls_as_opt='--fatal-warnings'
24531 or1k*-*-*)
24532 conftest_s='
24533 .section ".tdata","awT",@progbits
24534 foo: .long 25
24535 .text
24536 l.movhi r3, tpoffha(foo)
24537 l.add r3, r3, r10
24538 l.lwz r4, tpofflo(foo)(r3)'
24539 tls_first_major=2
24540 tls_first_minor=30
24541 tls_as_opt=--fatal-warnings
24543 powerpc-ibm-aix*)
24544 conftest_s='
24545 .extern __get_tpointer
24546 .toc
24547 LC..1:
24548 .tc a[TC],a[TL]@le
24549 .csect .text[PR]
24550 .tlstest:
24551 lwz 9,LC..1(2)
24552 bla __get_tpointer
24553 lwzx 3,9,3
24554 .globl a
24555 .csect a[TL],4
24557 .space 4'
24558 tls_first_major=0
24559 tls_first_minor=0
24561 powerpc64*-*-*)
24562 conftest_s='
24563 .section ".tdata","awT",@progbits
24564 .align 3
24565 ld0: .space 8
24566 ld1: .space 8
24567 x1: .space 8
24568 x2: .space 8
24569 x3: .space 8
24570 .text
24571 addi 3,2,ld0@got@tlsgd
24572 bl .__tls_get_addr
24574 addi 3,2,ld1@toc
24575 bl .__tls_get_addr
24577 addi 3,2,x1@got@tlsld
24578 bl .__tls_get_addr
24580 addi 9,3,x1@dtprel
24581 bl .__tls_get_addr
24583 addis 9,3,x2@dtprel@ha
24584 addi 9,9,x2@dtprel@l
24585 bl .__tls_get_addr
24587 ld 9,x3@got@dtprel(2)
24588 add 9,9,3
24589 bl .__tls_get_addr
24590 nop'
24591 tls_first_major=2
24592 tls_first_minor=14
24593 tls_as_opt="-a64 --fatal-warnings"
24595 powerpc*-*-*)
24596 conftest_s='
24597 .section ".tdata","awT",@progbits
24598 .align 2
24599 ld0: .space 4
24600 ld1: .space 4
24601 x1: .space 4
24602 x2: .space 4
24603 x3: .space 4
24604 .text
24605 addi 3,31,ld0@got@tlsgd
24606 bl __tls_get_addr
24607 addi 3,31,x1@got@tlsld
24608 bl __tls_get_addr
24609 addi 9,3,x1@dtprel
24610 addis 9,3,x2@dtprel@ha
24611 addi 9,9,x2@dtprel@l
24612 lwz 9,x3@got@tprel(31)
24613 add 9,9,x@tls
24614 addi 9,2,x1@tprel
24615 addis 9,2,x2@tprel@ha
24616 addi 9,9,x2@tprel@l'
24617 tls_first_major=2
24618 tls_first_minor=14
24619 tls_as_opt="-a32 --fatal-warnings"
24621 riscv*-*-*)
24622 conftest_s='
24623 .section .tdata,"awT",@progbits
24624 x: .word 2
24625 .text
24626 la.tls.gd a0,x
24627 call __tls_get_addr'
24628 tls_first_major=2
24629 tls_first_minor=21
24630 tls_as_opt='--fatal-warnings'
24632 s390-*-*)
24633 conftest_s='
24634 .section ".tdata","awT",@progbits
24635 foo: .long 25
24636 .text
24637 .long foo@TLSGD
24638 .long foo@TLSLDM
24639 .long foo@DTPOFF
24640 .long foo@NTPOFF
24641 .long foo@GOTNTPOFF
24642 .long foo@INDNTPOFF
24643 l %r1,foo@GOTNTPOFF(%r12)
24644 l %r1,0(%r1):tls_load:foo
24645 bas %r14,0(%r1,%r13):tls_gdcall:foo
24646 bas %r14,0(%r1,%r13):tls_ldcall:foo'
24647 tls_first_major=2
24648 tls_first_minor=14
24649 tls_as_opt="-m31 --fatal-warnings"
24651 s390x-*-*)
24652 conftest_s='
24653 .section ".tdata","awT",@progbits
24654 foo: .long 25
24655 .text
24656 .quad foo@TLSGD
24657 .quad foo@TLSLDM
24658 .quad foo@DTPOFF
24659 .quad foo@NTPOFF
24660 .quad foo@GOTNTPOFF
24661 lg %r1,foo@GOTNTPOFF(%r12)
24662 larl %r1,foo@INDNTPOFF
24663 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
24664 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
24665 tls_first_major=2
24666 tls_first_minor=14
24667 tls_as_opt="-m64 -Aesame --fatal-warnings"
24669 sh-*-* | sh[123456789lbe]*-*-*)
24670 conftest_s='
24671 .section ".tdata","awT",@progbits
24672 foo: .long 25
24673 .text
24674 .long foo@TLSGD
24675 .long foo@TLSLDM
24676 .long foo@DTPOFF
24677 .long foo@GOTTPOFF
24678 .long foo@TPOFF'
24679 tls_first_major=2
24680 tls_first_minor=13
24681 tls_as_opt=--fatal-warnings
24683 sparc*-*-*)
24684 case "$target" in
24685 sparc*-sun-solaris2.*)
24686 on_solaris=yes
24689 on_solaris=no
24691 esac
24692 if test x$on_solaris = xyes && test x$gas_flag = xno; then
24693 conftest_s='
24694 .section ".tdata",#alloc,#write,#tls'
24695 tls_first_major=0
24696 tls_first_minor=0
24697 else
24698 conftest_s='
24699 .section ".tdata","awT",@progbits'
24700 tls_first_major=2
24701 tls_first_minor=14
24702 tls_as_opt="-32 --fatal-warnings"
24704 conftest_s="$conftest_s
24705 foo: .long 25
24706 .text
24707 sethi %tgd_hi22(foo), %o0
24708 add %o0, %tgd_lo10(foo), %o1
24709 add %l7, %o1, %o0, %tgd_add(foo)
24710 call __tls_get_addr, %tgd_call(foo)
24711 sethi %tldm_hi22(foo), %l1
24712 add %l1, %tldm_lo10(foo), %l2
24713 add %l7, %l2, %o0, %tldm_add(foo)
24714 call __tls_get_addr, %tldm_call(foo)
24715 sethi %tldo_hix22(foo), %l3
24716 xor %l3, %tldo_lox10(foo), %l4
24717 add %o0, %l4, %l5, %tldo_add(foo)
24718 sethi %tie_hi22(foo), %o3
24719 add %o3, %tie_lo10(foo), %o3
24720 ld [%l7 + %o3], %o2, %tie_ld(foo)
24721 add %g7, %o2, %o4, %tie_add(foo)
24722 sethi %tle_hix22(foo), %l1
24723 xor %l1, %tle_lox10(foo), %o5
24724 ld [%g7 + %o5], %o1"
24726 tilepro*-*-*)
24727 conftest_s='
24728 .section ".tdata","awT",@progbits
24729 foo: .long 25
24730 .text
24731 addli r0, zero, tls_gd(foo)
24732 auli r0, zero, tls_gd_ha16(foo)
24733 addli r0, r0, tls_gd_lo16(foo)
24734 jal __tls_get_addr
24735 addli r0, zero, tls_ie(foo)
24736 auli r0, r0, tls_ie_ha16(foo)
24737 addli r0, r0, tls_ie_lo16(foo)'
24738 tls_first_major=2
24739 tls_first_minor=22
24740 tls_as_opt="--fatal-warnings"
24742 tilegx*-*-*)
24743 conftest_s='
24744 .section ".tdata","awT",@progbits
24745 foo: .long 25
24746 .text
24747 shl16insli r0, zero, hw0_last_tls_gd(foo)
24748 shl16insli r0, zero, hw1_last_tls_gd(foo)
24749 shl16insli r0, r0, hw0_tls_gd(foo)
24750 jal __tls_get_addr
24751 shl16insli r0, zero, hw1_last_tls_ie(foo)
24752 shl16insli r0, r0, hw0_tls_ie(foo)'
24753 tls_first_major=2
24754 tls_first_minor=22
24755 tls_as_opt="--fatal-warnings"
24757 xtensa*-*-*)
24758 conftest_s='
24759 .section ".tdata","awT",@progbits
24760 foo: .long 25
24761 .text
24762 movi a8, foo@TLSFUNC
24763 movi a10, foo@TLSARG
24764 callx8.tls a8, foo@TLSCALL'
24765 tls_first_major=2
24766 tls_first_minor=19
24768 esac
24769 set_have_as_tls=no
24770 if test "x$enable_tls" = xno ; then
24771 : # TLS explicitly disabled.
24772 elif test "x$enable_tls" = xyes ; then
24773 set_have_as_tls=yes # TLS explicitly enabled.
24774 elif test -z "$tls_first_major"; then
24775 : # If we don't have a check, assume no support.
24776 else
24777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
24778 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
24779 if ${gcc_cv_as_tls+:} false; then :
24780 $as_echo_n "(cached) " >&6
24781 else
24782 gcc_cv_as_tls=no
24783 if test $in_tree_gas = yes; then
24784 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
24785 then gcc_cv_as_tls=yes
24787 elif test x$gcc_cv_as != x; then
24788 $as_echo "$conftest_s" > conftest.s
24789 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
24790 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24791 (eval $ac_try) 2>&5
24792 ac_status=$?
24793 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24794 test $ac_status = 0; }; }
24795 then
24796 gcc_cv_as_tls=yes
24797 else
24798 echo "configure: failed program was" >&5
24799 cat conftest.s >&5
24801 rm -f conftest.o conftest.s
24804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
24805 $as_echo "$gcc_cv_as_tls" >&6; }
24806 if test $gcc_cv_as_tls = yes; then
24807 set_have_as_tls=yes
24811 if test $set_have_as_tls = yes ; then
24813 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
24817 # Target-specific assembler checks.
24819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
24820 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
24821 gcc_cv_ld_static_dynamic=no
24822 gcc_cv_ld_static_option='-Bstatic'
24823 gcc_cv_ld_dynamic_option='-Bdynamic'
24824 if test $in_tree_ld = yes ; then
24825 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
24826 gcc_cv_ld_static_dynamic=yes
24828 elif test x$gcc_cv_ld != x; then
24829 # Check if linker supports -Bstatic/-Bdynamic option
24830 if $gcc_cv_ld --help 2>&1 | grep -- -Bstatic > /dev/null \
24831 && $gcc_cv_ld --help 2>&1 | grep -- -Bdynamic > /dev/null; then
24832 gcc_cv_ld_static_dynamic=yes
24833 else
24834 case "$target" in
24835 # AIX ld uses -b flags
24836 *-*-aix4.[23]* | *-*-aix[5-9]*)
24837 gcc_cv_ld_static_dynamic=yes
24838 gcc_cv_ld_static_option="-bstatic"
24839 gcc_cv_ld_dynamic_option="-bdynamic"
24841 # HP-UX ld uses -a flags to select between shared and archive.
24842 *-*-hpux*)
24843 if test x"$gnu_ld" = xno; then
24844 gcc_cv_ld_static_dynamic=yes
24845 gcc_cv_ld_static_option="-aarchive_shared"
24846 gcc_cv_ld_dynamic_option="-adefault"
24849 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
24850 *-*-solaris2*)
24851 gcc_cv_ld_static_dynamic=yes
24853 esac
24856 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
24858 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
24861 cat >>confdefs.h <<_ACEOF
24862 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
24863 _ACEOF
24866 cat >>confdefs.h <<_ACEOF
24867 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
24868 _ACEOF
24871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
24872 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
24874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --version-script option" >&5
24875 $as_echo_n "checking linker --version-script option... " >&6; }
24876 gcc_cv_ld_version_script=no
24877 ld_version_script_option=''
24878 if test $in_tree_ld = yes || test x"$gnu_ld" = xyes; then
24879 gcc_cv_ld_version_script=yes
24880 ld_version_script_option='--version-script'
24881 elif test x$gcc_cv_ld != x; then
24882 case "$target" in
24883 # Solaris 2 ld always supports -M. It also supports a subset of
24884 # --version-script since Solaris 11.4, but requires
24885 # -z gnu-version-script-compat to activate.
24886 *-*-solaris2*)
24887 gcc_cv_ld_version_script=yes
24888 ld_version_script_option='-M'
24890 esac
24892 # Don't AC_DEFINE result, only used in jit/Make-lang.in so far.
24893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_version_script" >&5
24894 $as_echo "$gcc_cv_ld_version_script" >&6; }
24897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker soname option" >&5
24898 $as_echo_n "checking linker soname option... " >&6; }
24899 gcc_cv_ld_soname=no
24900 if test $in_tree_ld = yes || test x"$gnu_ld" = xyes; then
24901 gcc_cv_ld_soname=yes
24902 ld_soname_option='-soname'
24903 elif test x$gcc_cv_ld != x; then
24904 case "$target" in
24905 *-*-darwin*)
24906 gcc_cv_ld_soname=yes
24907 ld_soname_option='-install_name'
24909 # Solaris 2 ld always supports -h. It also supports --soname for GNU
24910 # ld compatiblity since some Solaris 10 update.
24911 *-*-solaris2*)
24912 gcc_cv_ld_soname=yes
24913 ld_soname_option='-h'
24915 esac
24917 # Don't AC_DEFINE result, only used in jit/Make-lang.in so far.
24918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_soname" >&5
24919 $as_echo "$gcc_cv_ld_soname" >&6; }
24922 if test x"$demangler_in_ld" = xyes; then
24923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
24924 $as_echo_n "checking linker --demangle support... " >&6; }
24925 gcc_cv_ld_demangle=no
24926 if test $in_tree_ld = yes; then
24927 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 \
24928 gcc_cv_ld_demangle=yes
24930 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
24931 # Check if the GNU linker supports --demangle option
24932 if $gcc_cv_ld --help 2>&1 | grep no-demangle > /dev/null; then
24933 gcc_cv_ld_demangle=yes
24936 if test x"$gcc_cv_ld_demangle" = xyes; then
24938 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
24941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
24942 $as_echo "$gcc_cv_ld_demangle" >&6; }
24945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
24946 $as_echo_n "checking linker plugin support... " >&6; }
24947 gcc_cv_lto_plugin=0
24948 if test -f liblto_plugin.la; then
24949 save_ld_ver="$ld_ver"
24950 save_ld_vers_major="$ld_vers_major"
24951 save_ld_vers_minor="$ld_vers_minor"
24952 save_ld_is_gold="$ld_is_gold"
24954 ld_is_gold=no
24956 if test $in_tree_ld = yes -a x"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x"$gcc_cv_ld"; then
24957 ld_ver="GNU ld"
24958 # FIXME: ld_is_gold?
24959 ld_vers_major="$gcc_cv_gld_major_version"
24960 ld_vers_minor="$gcc_cv_gld_minor_version"
24961 else
24962 # Determine plugin linker version.
24963 # FIXME: Partial duplicate from above, generalize.
24964 ld_ver=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
24965 if echo "$ld_ver" | grep GNU > /dev/null; then
24966 if echo "$ld_ver" | grep "GNU gold" > /dev/null; then
24967 ld_is_gold=yes
24968 ld_vers=`echo $ld_ver | sed -n \
24969 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
24970 else
24971 ld_vers=`echo $ld_ver | sed -n \
24972 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
24974 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
24975 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
24979 # Determine plugin support.
24980 if echo "$ld_ver" | grep GNU > /dev/null; then
24981 # Require GNU ld or gold 2.21+ for plugin support by default.
24982 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
24983 gcc_cv_lto_plugin=2
24984 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
24985 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
24986 gcc_cv_lto_plugin=1
24990 ld_ver="$save_ld_ver"
24991 ld_vers_major="$save_ld_vers_major"
24992 ld_vers_minor="$save_ld_vers_minor"
24993 ld_is_gold="$save_ld_is_gold"
24996 cat >>confdefs.h <<_ACEOF
24997 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
24998 _ACEOF
25000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
25001 $as_echo "$gcc_cv_lto_plugin" >&6; }
25003 # Target OS-specific assembler checks.
25005 case "$target_os" in
25006 darwin*)
25007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mmacosx-version-min option" >&5
25008 $as_echo_n "checking assembler for -mmacosx-version-min option... " >&6; }
25009 if ${gcc_cv_as_mmacosx_version_min+:} false; then :
25010 $as_echo_n "(cached) " >&6
25011 else
25012 gcc_cv_as_mmacosx_version_min=no
25013 if test x$gcc_cv_as != x; then
25014 $as_echo '.text' > conftest.s
25015 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mmacosx-version-min=10.1 -o conftest.o conftest.s >&5'
25016 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25017 (eval $ac_try) 2>&5
25018 ac_status=$?
25019 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25020 test $ac_status = 0; }; }
25021 then
25022 gcc_cv_as_mmacosx_version_min=yes
25023 else
25024 echo "configure: failed program was" >&5
25025 cat conftest.s >&5
25027 rm -f conftest.o conftest.s
25030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mmacosx_version_min" >&5
25031 $as_echo "$gcc_cv_as_mmacosx_version_min" >&6; }
25032 if test $gcc_cv_as_mmacosx_version_min = yes; then
25034 $as_echo "#define HAVE_AS_MMACOSX_VERSION_MIN_OPTION 1" >>confdefs.h
25039 esac
25041 # Target CPU-specific assembler checks.
25043 case "$target" in
25044 aarch64*-*-*)
25045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mabi option" >&5
25046 $as_echo_n "checking assembler for -mabi option... " >&6; }
25047 if ${gcc_cv_as_aarch64_mabi+:} false; then :
25048 $as_echo_n "(cached) " >&6
25049 else
25050 gcc_cv_as_aarch64_mabi=no
25051 if test x$gcc_cv_as != x; then
25052 $as_echo '.text' > conftest.s
25053 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mabi=lp64 -o conftest.o conftest.s >&5'
25054 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25055 (eval $ac_try) 2>&5
25056 ac_status=$?
25057 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25058 test $ac_status = 0; }; }
25059 then
25060 gcc_cv_as_aarch64_mabi=yes
25061 else
25062 echo "configure: failed program was" >&5
25063 cat conftest.s >&5
25065 rm -f conftest.o conftest.s
25068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_mabi" >&5
25069 $as_echo "$gcc_cv_as_aarch64_mabi" >&6; }
25072 if test x$gcc_cv_as_aarch64_mabi = xyes; then
25074 $as_echo "#define HAVE_AS_MABI_OPTION 1" >>confdefs.h
25076 else
25077 if test x$with_abi = xilp32; then
25078 as_fn_error $? "Assembler does not support -mabi=ilp32.\
25079 Upgrade the Assembler." "$LINENO" 5
25081 if test x"$with_multilib_list" = xdefault; then
25082 TM_MULTILIB_CONFIG=lp64
25083 else
25084 aarch64_multilibs=`echo $with_multilib_list | sed -e 's/,/ /g'`
25085 for aarch64_multilib in ${aarch64_multilibs}; do
25086 case ${aarch64_multilib} in
25087 ilp32)
25088 as_fn_error $? "Assembler does not support -mabi=ilp32.\
25089 Upgrade the Assembler." "$LINENO" 5
25093 esac
25094 done
25097 # Check if we have binutils support for relocations types needed by -fpic
25098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -fpic relocs" >&5
25099 $as_echo_n "checking assembler for -fpic relocs... " >&6; }
25100 if ${gcc_cv_as_aarch64_picreloc+:} false; then :
25101 $as_echo_n "(cached) " >&6
25102 else
25103 gcc_cv_as_aarch64_picreloc=no
25104 if test x$gcc_cv_as != x; then
25105 $as_echo '
25106 .text
25107 ldr x0, [x2, #:gotpage_lo15:globalsym]
25108 ' > conftest.s
25109 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25110 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25111 (eval $ac_try) 2>&5
25112 ac_status=$?
25113 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25114 test $ac_status = 0; }; }
25115 then
25116 gcc_cv_as_aarch64_picreloc=yes
25117 else
25118 echo "configure: failed program was" >&5
25119 cat conftest.s >&5
25121 rm -f conftest.o conftest.s
25124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_picreloc" >&5
25125 $as_echo "$gcc_cv_as_aarch64_picreloc" >&6; }
25126 if test $gcc_cv_as_aarch64_picreloc = yes; then
25128 $as_echo "#define HAVE_AS_SMALL_PIC_RELOCS 1" >>confdefs.h
25132 # Enable Branch Target Identification Mechanism and Return Address
25133 # Signing by default.
25134 # Check whether --enable-standard-branch-protection was given.
25135 if test "${enable_standard_branch_protection+set}" = set; then :
25136 enableval=$enable_standard_branch_protection;
25137 case $enableval in
25138 yes)
25139 tm_defines="${tm_defines} TARGET_ENABLE_BTI=1 TARGET_ENABLE_PAC_RET=1"
25144 as_fn_error "'$enableval' is an invalid value for --enable-standard-branch-protection.\
25145 Valid choices are 'yes' and 'no'." "$LINENO" 5
25147 esac
25151 # Enable default workaround for AArch64 Cortex-A53 erratum 835769.
25152 # Check whether --enable-fix-cortex-a53-835769 was given.
25153 if test "${enable_fix_cortex_a53_835769+set}" = set; then :
25154 enableval=$enable_fix_cortex_a53_835769;
25155 case $enableval in
25156 yes)
25157 tm_defines="${tm_defines} TARGET_FIX_ERR_A53_835769_DEFAULT=1"
25162 as_fn_error $? "'$enableval' is an invalid value for --enable-fix-cortex-a53-835769.\
25163 Valid choices are 'yes' and 'no'." "$LINENO" 5
25166 esac
25170 # Enable default workaround for AArch64 Cortex-A53 erratum 843419.
25171 # Check whether --enable-fix-cortex-a53-843419 was given.
25172 if test "${enable_fix_cortex_a53_843419+set}" = set; then :
25173 enableval=$enable_fix_cortex_a53_843419;
25174 case $enableval in
25175 yes)
25176 tm_defines="${tm_defines} TARGET_FIX_ERR_A53_843419_DEFAULT=1"
25181 as_fn_error $? "'$enableval' is an invalid value for --enable-fix-cortex-a53-843419.\
25182 Valid choices are 'yes' and 'no'." "$LINENO" 5
25185 esac
25191 # All TARGET_ABI_OSF targets.
25192 alpha*-*-linux* | alpha*-*-*bsd*)
25193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
25194 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
25195 if ${gcc_cv_as_alpha_explicit_relocs+:} false; then :
25196 $as_echo_n "(cached) " >&6
25197 else
25198 gcc_cv_as_alpha_explicit_relocs=no
25199 if test $in_tree_gas = yes; then
25200 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
25201 then gcc_cv_as_alpha_explicit_relocs=yes
25203 elif test x$gcc_cv_as != x; then
25204 $as_echo ' .set nomacro
25205 .text
25206 extbl $3, $2, $3 !lituse_bytoff!1
25207 ldq $2, a($29) !literal!1
25208 ldq $4, b($29) !literal!2
25209 ldq_u $3, 0($2) !lituse_base!1
25210 ldq $27, f($29) !literal!5
25211 jsr $26, ($27), f !lituse_jsr!5
25212 ldah $29, 0($26) !gpdisp!3
25213 lda $0, c($29) !gprel
25214 ldah $1, d($29) !gprelhigh
25215 lda $1, d($1) !gprellow
25216 lda $29, 0($29) !gpdisp!3' > conftest.s
25217 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25218 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25219 (eval $ac_try) 2>&5
25220 ac_status=$?
25221 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25222 test $ac_status = 0; }; }
25223 then
25224 gcc_cv_as_alpha_explicit_relocs=yes
25225 else
25226 echo "configure: failed program was" >&5
25227 cat conftest.s >&5
25229 rm -f conftest.o conftest.s
25232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
25233 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
25234 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
25236 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
25240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
25241 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
25242 if ${gcc_cv_as_alpha_jsrdirect_relocs+:} false; then :
25243 $as_echo_n "(cached) " >&6
25244 else
25245 gcc_cv_as_alpha_jsrdirect_relocs=no
25246 if test $in_tree_gas = yes; then
25247 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
25248 then gcc_cv_as_alpha_jsrdirect_relocs=yes
25250 elif test x$gcc_cv_as != x; then
25251 $as_echo ' .set nomacro
25252 .text
25253 ldq $27, a($29) !literal!1
25254 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
25255 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25256 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25257 (eval $ac_try) 2>&5
25258 ac_status=$?
25259 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25260 test $ac_status = 0; }; }
25261 then
25262 gcc_cv_as_alpha_jsrdirect_relocs=yes
25263 else
25264 echo "configure: failed program was" >&5
25265 cat conftest.s >&5
25267 rm -f conftest.o conftest.s
25270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
25271 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
25272 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
25274 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
25280 avr-*-*)
25281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --mlink-relax option" >&5
25282 $as_echo_n "checking assembler for --mlink-relax option... " >&6; }
25283 if ${gcc_cv_as_avr_mlink_relax+:} false; then :
25284 $as_echo_n "(cached) " >&6
25285 else
25286 gcc_cv_as_avr_mlink_relax=no
25287 if test x$gcc_cv_as != x; then
25288 $as_echo '.text' > conftest.s
25289 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --mlink-relax -o conftest.o conftest.s >&5'
25290 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25291 (eval $ac_try) 2>&5
25292 ac_status=$?
25293 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25294 test $ac_status = 0; }; }
25295 then
25296 gcc_cv_as_avr_mlink_relax=yes
25297 else
25298 echo "configure: failed program was" >&5
25299 cat conftest.s >&5
25301 rm -f conftest.o conftest.s
25304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mlink_relax" >&5
25305 $as_echo "$gcc_cv_as_avr_mlink_relax" >&6; }
25306 if test $gcc_cv_as_avr_mlink_relax = yes; then
25308 $as_echo "#define HAVE_AS_AVR_MLINK_RELAX_OPTION 1" >>confdefs.h
25313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mrmw option" >&5
25314 $as_echo_n "checking assembler for -mrmw option... " >&6; }
25315 if ${gcc_cv_as_avr_mrmw+:} false; then :
25316 $as_echo_n "(cached) " >&6
25317 else
25318 gcc_cv_as_avr_mrmw=no
25319 if test x$gcc_cv_as != x; then
25320 $as_echo '.text' > conftest.s
25321 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mrmw -o conftest.o conftest.s >&5'
25322 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25323 (eval $ac_try) 2>&5
25324 ac_status=$?
25325 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25326 test $ac_status = 0; }; }
25327 then
25328 gcc_cv_as_avr_mrmw=yes
25329 else
25330 echo "configure: failed program was" >&5
25331 cat conftest.s >&5
25333 rm -f conftest.o conftest.s
25336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mrmw" >&5
25337 $as_echo "$gcc_cv_as_avr_mrmw" >&6; }
25338 if test $gcc_cv_as_avr_mrmw = yes; then
25340 $as_echo "#define HAVE_AS_AVR_MRMW_OPTION 1" >>confdefs.h
25345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for __gcc_isr pseudo instruction" >&5
25346 $as_echo_n "checking assembler for __gcc_isr pseudo instruction... " >&6; }
25347 if ${gcc_cv_as_avr_mgccisr+:} false; then :
25348 $as_echo_n "(cached) " >&6
25349 else
25350 gcc_cv_as_avr_mgccisr=no
25351 if test x$gcc_cv_as != x; then
25352 $as_echo '.text
25353 __gcc_isr 1
25354 __gcc_isr 2
25355 __gcc_isr 0,r24
25356 ' > conftest.s
25357 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mgcc-isr -o conftest.o conftest.s >&5'
25358 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25359 (eval $ac_try) 2>&5
25360 ac_status=$?
25361 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25362 test $ac_status = 0; }; }
25363 then
25364 gcc_cv_as_avr_mgccisr=yes
25365 else
25366 echo "configure: failed program was" >&5
25367 cat conftest.s >&5
25369 rm -f conftest.o conftest.s
25372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mgccisr" >&5
25373 $as_echo "$gcc_cv_as_avr_mgccisr" >&6; }
25374 if test $gcc_cv_as_avr_mgccisr = yes; then
25376 $as_echo "#define HAVE_AS_AVR_MGCCISR_OPTION 1" >>confdefs.h
25381 # Check how default linker description file implements .rodata for
25382 # avrxmega3 (PR21472). avr-gcc assumes .rodata is *not* loaded to
25383 # RAM so avr-gcc skips __do_copy_data for .rodata objects.
25384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking binutils for avrxmega3 .rodata support" >&5
25385 $as_echo_n "checking binutils for avrxmega3 .rodata support... " >&6; }
25386 cat > conftest.s <<EOF
25387 .section .rodata,"a",@progbits
25388 .global xxvaryy
25389 ;; avr-nm should print "... R xxvaryy", not "... D xxvaryy".
25390 xxvaryy:
25391 .word 1
25393 rm -f conftest.nm
25394 { ac_try='$gcc_cv_as -mmcu=avrxmega3 conftest.s -o conftest.o'
25395 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25396 (eval $ac_try) 2>&5
25397 ac_status=$?
25398 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25399 test $ac_status = 0; }; }
25400 { ac_try='$gcc_cv_ld -mavrxmega3 conftest.o -o conftest.elf'
25401 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25402 (eval $ac_try) 2>&5
25403 ac_status=$?
25404 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25405 test $ac_status = 0; }; }
25406 { ac_try='$gcc_cv_nm conftest.elf > conftest.nm'
25407 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25408 (eval $ac_try) 2>&5
25409 ac_status=$?
25410 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25411 test $ac_status = 0; }; }
25412 if test -s conftest.nm
25413 then
25414 if grep ' R xxvaryy' conftest.nm > /dev/null; then
25415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25416 $as_echo "yes" >&6; }
25418 $as_echo "#define HAVE_LD_AVR_AVRXMEGA3_RODATA_IN_FLASH 1" >>confdefs.h
25420 else
25421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: avrxmega3 .rodata located in RAM" >&5
25422 $as_echo "no: avrxmega3 .rodata located in RAM" >&6; }
25423 echo "$as_me: nm output was" >&5
25424 cat conftest.nm >&5
25425 avr_ld_ver="`$gcc_cv_ld -v | sed -e 's:^.* ::'`"
25426 { $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
25427 $as_echo "$as_me: WARNING: support for avrxmega3 .rodata in flash needs Binutils 2.29 or higher (have $avr_ld_ver)" >&2;}
25429 else
25430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: test failed" >&5
25431 $as_echo "test failed" >&6; }
25432 echo "$as_me: failed program was" >&5
25433 cat conftest.s >&5
25434 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: see \`config.log' for details" >&5
25435 $as_echo "$as_me: WARNING: see \`config.log' for details" >&2;}
25437 rm -f conftest.s conftest.o conftest.elf conftest.nm
25440 cris-*-*)
25441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
25442 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
25443 if ${gcc_cv_as_cris_no_mul_bug+:} false; then :
25444 $as_echo_n "(cached) " >&6
25445 else
25446 gcc_cv_as_cris_no_mul_bug=no
25447 if test $in_tree_gas = yes; then
25448 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
25449 then gcc_cv_as_cris_no_mul_bug=yes
25451 elif test x$gcc_cv_as != x; then
25452 $as_echo '.text' > conftest.s
25453 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
25454 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25455 (eval $ac_try) 2>&5
25456 ac_status=$?
25457 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25458 test $ac_status = 0; }; }
25459 then
25460 gcc_cv_as_cris_no_mul_bug=yes
25461 else
25462 echo "configure: failed program was" >&5
25463 cat conftest.s >&5
25465 rm -f conftest.o conftest.s
25468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
25469 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
25470 if test $gcc_cv_as_cris_no_mul_bug = yes; then
25472 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
25478 sparc*-*-*)
25479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
25480 $as_echo_n "checking assembler for -relax option... " >&6; }
25481 if ${gcc_cv_as_sparc_relax+:} false; then :
25482 $as_echo_n "(cached) " >&6
25483 else
25484 gcc_cv_as_sparc_relax=no
25485 if test x$gcc_cv_as != x; then
25486 $as_echo '.text' > conftest.s
25487 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
25488 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25489 (eval $ac_try) 2>&5
25490 ac_status=$?
25491 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25492 test $ac_status = 0; }; }
25493 then
25494 gcc_cv_as_sparc_relax=yes
25495 else
25496 echo "configure: failed program was" >&5
25497 cat conftest.s >&5
25499 rm -f conftest.o conftest.s
25502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
25503 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
25504 if test $gcc_cv_as_sparc_relax = yes; then
25506 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
25511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
25512 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
25513 if ${gcc_cv_as_sparc_gotdata_op+:} false; then :
25514 $as_echo_n "(cached) " >&6
25515 else
25516 gcc_cv_as_sparc_gotdata_op=no
25517 if test x$gcc_cv_as != x; then
25518 $as_echo '.text
25519 .align 4
25520 foo:
25522 bar:
25523 sethi %gdop_hix22(foo), %g1
25524 xor %g1, %gdop_lox10(foo), %g1
25525 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
25526 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
25527 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25528 (eval $ac_try) 2>&5
25529 ac_status=$?
25530 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25531 test $ac_status = 0; }; }
25532 then
25533 if test x$gcc_cv_ld != x \
25534 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
25535 if test x$gcc_cv_objdump != x; then
25536 if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
25537 | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
25538 gcc_cv_as_sparc_gotdata_op=no
25539 else
25540 gcc_cv_as_sparc_gotdata_op=yes
25544 rm -f conftest
25545 else
25546 echo "configure: failed program was" >&5
25547 cat conftest.s >&5
25549 rm -f conftest.o conftest.s
25552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
25553 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
25554 if test $gcc_cv_as_sparc_gotdata_op = yes; then
25556 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
25561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
25562 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
25563 if ${gcc_cv_as_sparc_ua_pcrel+:} false; then :
25564 $as_echo_n "(cached) " >&6
25565 else
25566 gcc_cv_as_sparc_ua_pcrel=no
25567 if test x$gcc_cv_as != x; then
25568 $as_echo '.text
25569 foo:
25571 .data
25572 .align 4
25573 .byte 0
25574 .uaword %r_disp32(foo)' > conftest.s
25575 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
25576 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25577 (eval $ac_try) 2>&5
25578 ac_status=$?
25579 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25580 test $ac_status = 0; }; }
25581 then
25582 if test x$gcc_cv_ld != x \
25583 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
25584 gcc_cv_as_sparc_ua_pcrel=yes
25586 rm -f conftest
25587 else
25588 echo "configure: failed program was" >&5
25589 cat conftest.s >&5
25591 rm -f conftest.o conftest.s
25594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
25595 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
25596 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
25598 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
25601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
25602 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
25603 if ${gcc_cv_as_sparc_ua_pcrel_hidden+:} false; then :
25604 $as_echo_n "(cached) " >&6
25605 else
25606 gcc_cv_as_sparc_ua_pcrel_hidden=no
25607 if test x$gcc_cv_as != x; then
25608 $as_echo '.data
25609 .align 4
25610 .byte 0x31
25611 .uaword %r_disp32(foo)
25612 .byte 0x32, 0x33, 0x34
25613 .global foo
25614 .hidden foo
25615 foo:
25616 .skip 4' > conftest.s
25617 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
25618 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25619 (eval $ac_try) 2>&5
25620 ac_status=$?
25621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25622 test $ac_status = 0; }; }
25623 then
25624 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
25625 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
25626 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
25627 | grep ' 31000000 07323334' > /dev/null 2>&1; then
25628 if $gcc_cv_objdump -R conftest 2> /dev/null \
25629 | grep 'DISP32' > /dev/null 2>&1; then
25631 else
25632 gcc_cv_as_sparc_ua_pcrel_hidden=yes
25635 rm -f conftest
25636 else
25637 echo "configure: failed program was" >&5
25638 cat conftest.s >&5
25640 rm -f conftest.o conftest.s
25643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
25644 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
25645 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
25647 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
25653 # unaligned pcrel relocs
25655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
25656 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
25657 if ${gcc_cv_as_sparc_offsetable_lo10+:} false; then :
25658 $as_echo_n "(cached) " >&6
25659 else
25660 gcc_cv_as_sparc_offsetable_lo10=no
25661 if test x$gcc_cv_as != x; then
25662 $as_echo '.text
25663 or %g1, %lo(ab) + 12, %g1
25664 or %g1, %lo(ab + 12), %g1' > conftest.s
25665 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
25666 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25667 (eval $ac_try) 2>&5
25668 ac_status=$?
25669 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25670 test $ac_status = 0; }; }
25671 then
25672 if test x$gcc_cv_objdump != x \
25673 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
25674 | grep ' 82106000 82106000' > /dev/null 2>&1; then
25675 gcc_cv_as_sparc_offsetable_lo10=yes
25677 else
25678 echo "configure: failed program was" >&5
25679 cat conftest.s >&5
25681 rm -f conftest.o conftest.s
25684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
25685 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
25686 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
25688 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
25693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
25694 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
25695 if ${gcc_cv_as_sparc_fmaf+:} false; then :
25696 $as_echo_n "(cached) " >&6
25697 else
25698 gcc_cv_as_sparc_fmaf=no
25699 if test x$gcc_cv_as != x; then
25700 $as_echo '.text
25701 .register %g2, #scratch
25702 .register %g3, #scratch
25703 .align 4
25704 fmaddd %f0, %f2, %f4, %f6
25705 addxccc %g1, %g2, %g3
25706 fsrl32 %f2, %f4, %f8
25707 fnaddd %f10, %f12, %f14' > conftest.s
25708 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
25709 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25710 (eval $ac_try) 2>&5
25711 ac_status=$?
25712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25713 test $ac_status = 0; }; }
25714 then
25715 gcc_cv_as_sparc_fmaf=yes
25716 else
25717 echo "configure: failed program was" >&5
25718 cat conftest.s >&5
25720 rm -f conftest.o conftest.s
25723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
25724 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
25725 if test $gcc_cv_as_sparc_fmaf = yes; then
25727 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
25732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
25733 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
25734 if ${gcc_cv_as_sparc_sparc4+:} false; then :
25735 $as_echo_n "(cached) " >&6
25736 else
25737 gcc_cv_as_sparc_sparc4=no
25738 if test x$gcc_cv_as != x; then
25739 $as_echo '.text
25740 .register %g2, #scratch
25741 .register %g3, #scratch
25742 .align 4
25743 cxbe %g2, %g3, 1f
25744 1: cwbneg %g2, %g3, 1f
25745 1: sha1
25747 aes_kexpand0 %f4, %f6, %f8
25748 des_round %f38, %f40, %f42, %f44
25749 camellia_f %f54, %f56, %f58, %f60
25750 kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
25751 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
25752 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25753 (eval $ac_try) 2>&5
25754 ac_status=$?
25755 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25756 test $ac_status = 0; }; }
25757 then
25758 gcc_cv_as_sparc_sparc4=yes
25759 else
25760 echo "configure: failed program was" >&5
25761 cat conftest.s >&5
25763 rm -f conftest.o conftest.s
25766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
25767 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
25768 if test $gcc_cv_as_sparc_sparc4 = yes; then
25770 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
25775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC5 and VIS 4.0 instructions" >&5
25776 $as_echo_n "checking assembler for SPARC5 and VIS 4.0 instructions... " >&6; }
25777 if ${gcc_cv_as_sparc_sparc5+:} false; then :
25778 $as_echo_n "(cached) " >&6
25779 else
25780 gcc_cv_as_sparc_sparc5=no
25781 if test x$gcc_cv_as != x; then
25782 $as_echo '.text
25783 .register %g2, #scratch
25784 .register %g3, #scratch
25785 .align 4
25786 subxc %g1, %g2, %g3
25787 fpadd8 %f0, %f2, %f4' > conftest.s
25788 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc5 -o conftest.o conftest.s >&5'
25789 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25790 (eval $ac_try) 2>&5
25791 ac_status=$?
25792 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25793 test $ac_status = 0; }; }
25794 then
25795 gcc_cv_as_sparc_sparc5=yes
25796 else
25797 echo "configure: failed program was" >&5
25798 cat conftest.s >&5
25800 rm -f conftest.o conftest.s
25803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc5" >&5
25804 $as_echo "$gcc_cv_as_sparc_sparc5" >&6; }
25805 if test $gcc_cv_as_sparc_sparc5 = yes; then
25807 $as_echo "#define HAVE_AS_SPARC5_VIS4 1" >>confdefs.h
25812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC6 instructions" >&5
25813 $as_echo_n "checking assembler for SPARC6 instructions... " >&6; }
25814 if ${gcc_cv_as_sparc_sparc6+:} false; then :
25815 $as_echo_n "(cached) " >&6
25816 else
25817 gcc_cv_as_sparc_sparc6=no
25818 if test x$gcc_cv_as != x; then
25819 $as_echo '.text
25820 .register %g2, #scratch
25821 .register %g3, #scratch
25822 .align 4
25823 rd %entropy, %g1
25824 fpsll64x %f0, %f2, %f4' > conftest.s
25825 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc6 -o conftest.o conftest.s >&5'
25826 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25827 (eval $ac_try) 2>&5
25828 ac_status=$?
25829 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25830 test $ac_status = 0; }; }
25831 then
25832 gcc_cv_as_sparc_sparc6=yes
25833 else
25834 echo "configure: failed program was" >&5
25835 cat conftest.s >&5
25837 rm -f conftest.o conftest.s
25840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc6" >&5
25841 $as_echo "$gcc_cv_as_sparc_sparc6" >&6; }
25842 if test $gcc_cv_as_sparc_sparc6 = yes; then
25844 $as_echo "#define HAVE_AS_SPARC6 1" >>confdefs.h
25849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for LEON instructions" >&5
25850 $as_echo_n "checking assembler for LEON instructions... " >&6; }
25851 if ${gcc_cv_as_sparc_leon+:} false; then :
25852 $as_echo_n "(cached) " >&6
25853 else
25854 gcc_cv_as_sparc_leon=no
25855 if test x$gcc_cv_as != x; then
25856 $as_echo '.text
25857 .register %g2, #scratch
25858 .register %g3, #scratch
25859 .align 4
25860 smac %g2, %g3, %g1
25861 umac %g2, %g3, %g1
25862 casa [%g2] 0xb, %g3, %g1' > conftest.s
25863 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -Aleon -o conftest.o conftest.s >&5'
25864 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25865 (eval $ac_try) 2>&5
25866 ac_status=$?
25867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25868 test $ac_status = 0; }; }
25869 then
25870 gcc_cv_as_sparc_leon=yes
25871 else
25872 echo "configure: failed program was" >&5
25873 cat conftest.s >&5
25875 rm -f conftest.o conftest.s
25878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_leon" >&5
25879 $as_echo "$gcc_cv_as_sparc_leon" >&6; }
25880 if test $gcc_cv_as_sparc_leon = yes; then
25882 $as_echo "#define HAVE_AS_LEON 1" >>confdefs.h
25888 i[34567]86-*-* | x86_64-*-*)
25889 case $target_os in
25890 cygwin*)
25891 # Full C++ conformance when using a shared libstdc++-v3 requires some
25892 # support from the Cygwin DLL, which in more recent versions exports
25893 # wrappers to aid in interposing and redirecting operators new, delete,
25894 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
25895 # are configuring for a version of Cygwin that exports the wrappers.
25896 if test x$host = x$target && test x$host_cpu = xi686; then
25897 ac_fn_cxx_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
25898 if test "x$ac_cv_func___wrap__Znaj" = xyes; then :
25899 gcc_ac_cygwin_dll_wrappers=yes
25900 else
25901 gcc_ac_cygwin_dll_wrappers=no
25904 else
25905 # Can't check presence of libc functions during cross-compile, so
25906 # we just have to assume we're building for an up-to-date target.
25907 gcc_ac_cygwin_dll_wrappers=yes
25910 cat >>confdefs.h <<_ACEOF
25911 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
25912 _ACEOF
25914 esac
25915 case $target_os in
25916 cygwin* | pe | mingw32*)
25917 # Recent binutils allows the three-operand form of ".comm" on PE. This
25918 # definition is used unconditionally to initialise the default state of
25919 # the target option variable that governs usage of the feature.
25920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
25921 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
25922 if ${gcc_cv_as_comm_has_align+:} false; then :
25923 $as_echo_n "(cached) " >&6
25924 else
25925 gcc_cv_as_comm_has_align=no
25926 if test $in_tree_gas = yes; then
25927 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
25928 then gcc_cv_as_comm_has_align=yes
25930 elif test x$gcc_cv_as != x; then
25931 $as_echo '.comm foo,1,32' > conftest.s
25932 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25933 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25934 (eval $ac_try) 2>&5
25935 ac_status=$?
25936 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25937 test $ac_status = 0; }; }
25938 then
25939 gcc_cv_as_comm_has_align=yes
25940 else
25941 echo "configure: failed program was" >&5
25942 cat conftest.s >&5
25944 rm -f conftest.o conftest.s
25947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
25948 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
25952 cat >>confdefs.h <<_ACEOF
25953 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
25954 _ACEOF
25956 # Used for DWARF 2 in PE
25957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
25958 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
25959 if ${gcc_cv_as_ix86_pe_secrel32+:} false; then :
25960 $as_echo_n "(cached) " >&6
25961 else
25962 gcc_cv_as_ix86_pe_secrel32=no
25963 if test $in_tree_gas = yes; then
25964 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
25965 then gcc_cv_as_ix86_pe_secrel32=yes
25967 elif test x$gcc_cv_as != x; then
25968 $as_echo '.text
25969 foo: nop
25970 .data
25971 .secrel32 foo' > conftest.s
25972 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25973 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25974 (eval $ac_try) 2>&5
25975 ac_status=$?
25976 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25977 test $ac_status = 0; }; }
25978 then
25979 if test x$gcc_cv_ld != x \
25980 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
25981 gcc_cv_as_ix86_pe_secrel32=yes
25983 rm -f conftest
25984 else
25985 echo "configure: failed program was" >&5
25986 cat conftest.s >&5
25988 rm -f conftest.o conftest.s
25991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
25992 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
25993 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
25995 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
25999 # Test if the assembler supports the extended form of the .section
26000 # directive that specifies section alignment. LTO support uses this,
26001 # but normally only after installation, so we warn but don't fail the
26002 # configure if LTO is enabled but the assembler does not support it.
26003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
26004 $as_echo_n "checking assembler for .section with alignment... " >&6; }
26005 if ${gcc_cv_as_section_has_align+:} false; then :
26006 $as_echo_n "(cached) " >&6
26007 else
26008 gcc_cv_as_section_has_align=no
26009 if test $in_tree_gas = yes; then
26010 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
26011 then gcc_cv_as_section_has_align=yes
26013 elif test x$gcc_cv_as != x; then
26014 $as_echo '.section lto_test,"dr0"' > conftest.s
26015 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
26016 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26017 (eval $ac_try) 2>&5
26018 ac_status=$?
26019 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26020 test $ac_status = 0; }; }
26021 then
26022 gcc_cv_as_section_has_align=yes
26023 else
26024 echo "configure: failed program was" >&5
26025 cat conftest.s >&5
26027 rm -f conftest.o conftest.s
26030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
26031 $as_echo "$gcc_cv_as_section_has_align" >&6; }
26034 if test x$gcc_cv_as_section_has_align != xyes; then
26035 case ",$enable_languages," in
26036 *,lto,*)
26037 { $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
26038 $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;}
26040 esac
26043 esac
26045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -xbrace_comment" >&5
26046 $as_echo_n "checking assembler for -xbrace_comment... " >&6; }
26047 if ${gcc_cv_as_ix86_xbrace_comment+:} false; then :
26048 $as_echo_n "(cached) " >&6
26049 else
26050 gcc_cv_as_ix86_xbrace_comment=no
26051 if test x$gcc_cv_as != x; then
26052 $as_echo '.text' > conftest.s
26053 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xbrace_comment=no -o conftest.o conftest.s >&5'
26054 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26055 (eval $ac_try) 2>&5
26056 ac_status=$?
26057 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26058 test $ac_status = 0; }; }
26059 then
26060 gcc_cv_as_ix86_xbrace_comment=yes
26061 else
26062 echo "configure: failed program was" >&5
26063 cat conftest.s >&5
26065 rm -f conftest.o conftest.s
26068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_xbrace_comment" >&5
26069 $as_echo "$gcc_cv_as_ix86_xbrace_comment" >&6; }
26070 if test $gcc_cv_as_ix86_xbrace_comment = yes; then
26072 $as_echo "#define HAVE_AS_XBRACE_COMMENT_OPTION 1" >>confdefs.h
26077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
26078 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
26079 if ${gcc_cv_as_ix86_filds+:} false; then :
26080 $as_echo_n "(cached) " >&6
26081 else
26082 gcc_cv_as_ix86_filds=no
26083 if test x$gcc_cv_as != x; then
26084 $as_echo 'filds (%ebp); fists (%ebp)' > conftest.s
26085 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26086 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26087 (eval $ac_try) 2>&5
26088 ac_status=$?
26089 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26090 test $ac_status = 0; }; }
26091 then
26092 gcc_cv_as_ix86_filds=yes
26093 else
26094 echo "configure: failed program was" >&5
26095 cat conftest.s >&5
26097 rm -f conftest.o conftest.s
26100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
26101 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
26102 if test $gcc_cv_as_ix86_filds = yes; then
26104 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
26109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
26110 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
26111 if ${gcc_cv_as_ix86_fildq+:} false; then :
26112 $as_echo_n "(cached) " >&6
26113 else
26114 gcc_cv_as_ix86_fildq=no
26115 if test x$gcc_cv_as != x; then
26116 $as_echo 'fildq (%ebp); fistpq (%ebp)' > conftest.s
26117 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26118 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26119 (eval $ac_try) 2>&5
26120 ac_status=$?
26121 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26122 test $ac_status = 0; }; }
26123 then
26124 gcc_cv_as_ix86_fildq=yes
26125 else
26126 echo "configure: failed program was" >&5
26127 cat conftest.s >&5
26129 rm -f conftest.o conftest.s
26132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
26133 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
26134 if test $gcc_cv_as_ix86_fildq = yes; then
26136 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
26141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
26142 $as_echo_n "checking assembler for cmov syntax... " >&6; }
26143 if ${gcc_cv_as_ix86_cmov_sun_syntax+:} false; then :
26144 $as_echo_n "(cached) " >&6
26145 else
26146 gcc_cv_as_ix86_cmov_sun_syntax=no
26147 if test x$gcc_cv_as != x; then
26148 $as_echo 'cmovl.l %edx, %eax' > conftest.s
26149 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26150 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26151 (eval $ac_try) 2>&5
26152 ac_status=$?
26153 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26154 test $ac_status = 0; }; }
26155 then
26156 gcc_cv_as_ix86_cmov_sun_syntax=yes
26157 else
26158 echo "configure: failed program was" >&5
26159 cat conftest.s >&5
26161 rm -f conftest.o conftest.s
26164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
26165 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
26166 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
26168 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
26173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
26174 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
26175 if ${gcc_cv_as_ix86_ffreep+:} false; then :
26176 $as_echo_n "(cached) " >&6
26177 else
26178 gcc_cv_as_ix86_ffreep=no
26179 if test x$gcc_cv_as != x; then
26180 $as_echo 'ffreep %st(1)' > conftest.s
26181 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26182 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26183 (eval $ac_try) 2>&5
26184 ac_status=$?
26185 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26186 test $ac_status = 0; }; }
26187 then
26188 gcc_cv_as_ix86_ffreep=yes
26189 else
26190 echo "configure: failed program was" >&5
26191 cat conftest.s >&5
26193 rm -f conftest.o conftest.s
26196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
26197 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
26198 if test $gcc_cv_as_ix86_ffreep = yes; then
26200 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
26205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
26206 $as_echo_n "checking assembler for .quad directive... " >&6; }
26207 if ${gcc_cv_as_ix86_quad+:} false; then :
26208 $as_echo_n "(cached) " >&6
26209 else
26210 gcc_cv_as_ix86_quad=no
26211 if test x$gcc_cv_as != x; then
26212 $as_echo '.quad 0' > conftest.s
26213 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26214 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26215 (eval $ac_try) 2>&5
26216 ac_status=$?
26217 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26218 test $ac_status = 0; }; }
26219 then
26220 gcc_cv_as_ix86_quad=yes
26221 else
26222 echo "configure: failed program was" >&5
26223 cat conftest.s >&5
26225 rm -f conftest.o conftest.s
26228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
26229 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
26230 if test $gcc_cv_as_ix86_quad = yes; then
26232 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
26237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
26238 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
26239 if ${gcc_cv_as_ix86_sahf+:} false; then :
26240 $as_echo_n "(cached) " >&6
26241 else
26242 gcc_cv_as_ix86_sahf=no
26243 if test x$gcc_cv_as != x; then
26244 $as_echo '.code64
26245 sahf' > conftest.s
26246 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26247 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26248 (eval $ac_try) 2>&5
26249 ac_status=$?
26250 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26251 test $ac_status = 0; }; }
26252 then
26253 gcc_cv_as_ix86_sahf=yes
26254 else
26255 echo "configure: failed program was" >&5
26256 cat conftest.s >&5
26258 rm -f conftest.o conftest.s
26261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
26262 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
26263 if test $gcc_cv_as_ix86_sahf = yes; then
26265 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
26270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for interunit movq mnemonic" >&5
26271 $as_echo_n "checking assembler for interunit movq mnemonic... " >&6; }
26272 if ${gcc_cv_as_ix86_interunit_movq+:} false; then :
26273 $as_echo_n "(cached) " >&6
26274 else
26275 gcc_cv_as_ix86_interunit_movq=no
26276 if test x$gcc_cv_as != x; then
26277 $as_echo '.code64
26278 movq %mm0, %rax
26279 movq %rax, %xmm0' > conftest.s
26280 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26281 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26282 (eval $ac_try) 2>&5
26283 ac_status=$?
26284 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26285 test $ac_status = 0; }; }
26286 then
26287 gcc_cv_as_ix86_interunit_movq=yes
26288 else
26289 echo "configure: failed program was" >&5
26290 cat conftest.s >&5
26292 rm -f conftest.o conftest.s
26295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_interunit_movq" >&5
26296 $as_echo "$gcc_cv_as_ix86_interunit_movq" >&6; }
26300 cat >>confdefs.h <<_ACEOF
26301 #define HAVE_AS_IX86_INTERUNIT_MOVQ `if test $gcc_cv_as_ix86_interunit_movq = yes; then echo 1; else echo 0; fi`
26302 _ACEOF
26305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
26306 $as_echo_n "checking assembler for hle prefixes... " >&6; }
26307 if ${gcc_cv_as_ix86_hle+:} false; then :
26308 $as_echo_n "(cached) " >&6
26309 else
26310 gcc_cv_as_ix86_hle=no
26311 if test x$gcc_cv_as != x; then
26312 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
26313 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26314 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26315 (eval $ac_try) 2>&5
26316 ac_status=$?
26317 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26318 test $ac_status = 0; }; }
26319 then
26320 gcc_cv_as_ix86_hle=yes
26321 else
26322 echo "configure: failed program was" >&5
26323 cat conftest.s >&5
26325 rm -f conftest.o conftest.s
26328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
26329 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
26330 if test $gcc_cv_as_ix86_hle = yes; then
26332 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
26337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
26338 $as_echo_n "checking assembler for swap suffix... " >&6; }
26339 if ${gcc_cv_as_ix86_swap+:} false; then :
26340 $as_echo_n "(cached) " >&6
26341 else
26342 gcc_cv_as_ix86_swap=no
26343 if test x$gcc_cv_as != x; then
26344 $as_echo 'movl.s %esp, %ebp' > conftest.s
26345 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26346 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26347 (eval $ac_try) 2>&5
26348 ac_status=$?
26349 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26350 test $ac_status = 0; }; }
26351 then
26352 gcc_cv_as_ix86_swap=yes
26353 else
26354 echo "configure: failed program was" >&5
26355 cat conftest.s >&5
26357 rm -f conftest.o conftest.s
26360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
26361 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
26362 if test $gcc_cv_as_ix86_swap = yes; then
26364 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
26369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
26370 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
26371 if ${gcc_cv_as_ix86_diff_sect_delta+:} false; then :
26372 $as_echo_n "(cached) " >&6
26373 else
26374 gcc_cv_as_ix86_diff_sect_delta=no
26375 if test x$gcc_cv_as != x; then
26376 $as_echo '.section .rodata
26377 .L1:
26378 .long .L2-.L1
26379 .long .L3-.L1
26380 .text
26381 .L3: nop
26382 .L2: nop' > conftest.s
26383 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26384 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26385 (eval $ac_try) 2>&5
26386 ac_status=$?
26387 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26388 test $ac_status = 0; }; }
26389 then
26390 gcc_cv_as_ix86_diff_sect_delta=yes
26391 else
26392 echo "configure: failed program was" >&5
26393 cat conftest.s >&5
26395 rm -f conftest.o conftest.s
26398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
26399 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
26400 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
26402 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
26407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
26408 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
26409 if ${gcc_cv_as_ix86_rep_lock_prefix+:} false; then :
26410 $as_echo_n "(cached) " >&6
26411 else
26412 gcc_cv_as_ix86_rep_lock_prefix=no
26413 if test x$gcc_cv_as != x; then
26414 $as_echo 'rep movsl
26415 rep ret
26416 rep nop
26417 rep bsf %ecx, %eax
26418 rep bsr %ecx, %eax
26419 lock addl %edi, (%eax,%esi)
26420 lock orl $0, (%esp)' > conftest.s
26421 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26422 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26423 (eval $ac_try) 2>&5
26424 ac_status=$?
26425 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26426 test $ac_status = 0; }; }
26427 then
26428 gcc_cv_as_ix86_rep_lock_prefix=yes
26429 else
26430 echo "configure: failed program was" >&5
26431 cat conftest.s >&5
26433 rm -f conftest.o conftest.s
26436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
26437 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
26438 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
26440 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
26445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ud2 mnemonic" >&5
26446 $as_echo_n "checking assembler for ud2 mnemonic... " >&6; }
26447 if ${gcc_cv_as_ix86_ud2+:} false; then :
26448 $as_echo_n "(cached) " >&6
26449 else
26450 gcc_cv_as_ix86_ud2=no
26451 if test x$gcc_cv_as != x; then
26452 $as_echo 'ud2' > conftest.s
26453 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26454 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26455 (eval $ac_try) 2>&5
26456 ac_status=$?
26457 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26458 test $ac_status = 0; }; }
26459 then
26460 gcc_cv_as_ix86_ud2=yes
26461 else
26462 echo "configure: failed program was" >&5
26463 cat conftest.s >&5
26465 rm -f conftest.o conftest.s
26468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ud2" >&5
26469 $as_echo "$gcc_cv_as_ix86_ud2" >&6; }
26470 if test $gcc_cv_as_ix86_ud2 = yes; then
26472 $as_echo "#define HAVE_AS_IX86_UD2 1" >>confdefs.h
26477 # Enforce 32-bit output with gas and gld.
26478 if test x$gas = xyes; then
26479 as_ix86_gas_32_opt="--32"
26481 if echo "$ld_ver" | grep GNU > /dev/null; then
26482 if $gcc_cv_ld -V 2>/dev/null | grep elf_i386_sol2 > /dev/null; then
26483 ld_ix86_gld_32_opt="-melf_i386_sol2"
26484 else
26485 ld_ix86_gld_32_opt="-melf_i386"
26489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
26490 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
26491 if ${gcc_cv_as_ix86_tlsgdplt+:} false; then :
26492 $as_echo_n "(cached) " >&6
26493 else
26494 gcc_cv_as_ix86_tlsgdplt=no
26495 if test x$gcc_cv_as != x; then
26496 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
26497 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26498 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26499 (eval $ac_try) 2>&5
26500 ac_status=$?
26501 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26502 test $ac_status = 0; }; }
26503 then
26504 if test x$gcc_cv_ld != x \
26505 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o -G > /dev/null 2>&1; then
26506 gcc_cv_as_ix86_tlsgdplt=yes
26508 rm -f conftest
26509 else
26510 echo "configure: failed program was" >&5
26511 cat conftest.s >&5
26513 rm -f conftest.o conftest.s
26516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
26517 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
26518 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
26520 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
26525 conftest_s='
26526 .section .tdata,"aw'$tls_section_flag'",@progbits
26527 tls_ld:
26528 .section .text,"ax",@progbits
26529 call tls_ld@tlsldmplt'
26531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
26532 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
26533 if ${gcc_cv_as_ix86_tlsldmplt+:} false; then :
26534 $as_echo_n "(cached) " >&6
26535 else
26536 gcc_cv_as_ix86_tlsldmplt=no
26537 if test x$gcc_cv_as != x; then
26538 $as_echo "$conftest_s" > conftest.s
26539 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26540 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26541 (eval $ac_try) 2>&5
26542 ac_status=$?
26543 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26544 test $ac_status = 0; }; }
26545 then
26546 if test x$gcc_cv_ld != x \
26547 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o -G > /dev/null 2>&1; then
26548 gcc_cv_as_ix86_tlsldmplt=yes
26550 rm -f conftest
26551 else
26552 echo "configure: failed program was" >&5
26553 cat conftest.s >&5
26555 rm -f conftest.o conftest.s
26558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
26559 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
26563 cat >>confdefs.h <<_ACEOF
26564 #define HAVE_AS_IX86_TLSLDMPLT `if test $gcc_cv_as_ix86_tlsldmplt = yes; then echo 1; else echo 0; fi`
26565 _ACEOF
26568 conftest_s='
26569 .section .text,"ax",@progbits
26570 .globl _start
26571 .type _start, @function
26572 _start:
26573 leal value@tlsldm(%ebx), %eax
26574 call ___tls_get_addr@plt
26576 .section .tdata,"aw'$tls_section_flag'",@progbits
26577 .type value, @object
26578 value:'
26579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM reloc" >&5
26580 $as_echo_n "checking assembler for R_386_TLS_LDM reloc... " >&6; }
26581 if ${gcc_cv_as_ix86_tlsldm+:} false; then :
26582 $as_echo_n "(cached) " >&6
26583 else
26584 gcc_cv_as_ix86_tlsldm=no
26585 if test x$gcc_cv_as != x; then
26586 $as_echo "$conftest_s" > conftest.s
26587 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26588 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26589 (eval $ac_try) 2>&5
26590 ac_status=$?
26591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26592 test $ac_status = 0; }; }
26593 then
26594 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
26595 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o $ld_tls_libs -lc > /dev/null 2>&1; then
26596 if $gcc_cv_objdump -d conftest 2>/dev/null | grep nop > /dev/null \
26597 || dis conftest 2>/dev/null | grep nop > /dev/null; then
26598 gcc_cv_as_ix86_tlsldm=yes
26601 rm -f conftest
26602 else
26603 echo "configure: failed program was" >&5
26604 cat conftest.s >&5
26606 rm -f conftest.o conftest.s
26609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldm" >&5
26610 $as_echo "$gcc_cv_as_ix86_tlsldm" >&6; }
26614 cat >>confdefs.h <<_ACEOF
26615 #define HAVE_AS_IX86_TLSLDM `if test $gcc_cv_as_ix86_tlsldm = yes; then echo 1; else echo 0; fi`
26616 _ACEOF
26619 conftest_s='
26620 .data
26621 bar:
26622 .byte 1
26623 .text
26624 .global _start
26625 _start:
26626 cmpl $0, bar@GOT
26627 jmp *_start@GOT'
26628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_GOT32X reloc" >&5
26629 $as_echo_n "checking assembler for R_386_GOT32X reloc... " >&6; }
26630 if ${gcc_cv_as_ix86_got32x+:} false; then :
26631 $as_echo_n "(cached) " >&6
26632 else
26633 gcc_cv_as_ix86_got32x=no
26634 if test x$gcc_cv_as != x; then
26635 $as_echo "$conftest_s" > conftest.s
26636 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26637 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26638 (eval $ac_try) 2>&5
26639 ac_status=$?
26640 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26641 test $ac_status = 0; }; }
26642 then
26643 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
26644 && test x$gcc_cv_readelf != x \
26645 && $gcc_cv_readelf --relocs --wide conftest.o 2>&1 \
26646 | grep R_386_GOT32X > /dev/null 2>&1 \
26647 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o > /dev/null 2>&1; then
26648 if $gcc_cv_objdump -dw conftest 2>&1 \
26649 | grep 0xffffff > /dev/null 2>&1; then
26650 gcc_cv_as_ix86_got32x=no
26651 else
26652 gcc_cv_as_ix86_got32x=yes
26655 rm -f conftest
26656 else
26657 echo "configure: failed program was" >&5
26658 cat conftest.s >&5
26660 rm -f conftest.o conftest.s
26663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_got32x" >&5
26664 $as_echo "$gcc_cv_as_ix86_got32x" >&6; }
26668 cat >>confdefs.h <<_ACEOF
26669 #define HAVE_AS_IX86_GOT32X `if test x"$gcc_cv_as_ix86_got32x" = xyes; then echo 1; else echo 0; fi`
26670 _ACEOF
26673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
26674 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
26675 if ${gcc_cv_as_ix86_gotoff_in_data+:} false; then :
26676 $as_echo_n "(cached) " >&6
26677 else
26678 gcc_cv_as_ix86_gotoff_in_data=no
26679 if test $in_tree_gas = yes; then
26680 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26681 then gcc_cv_as_ix86_gotoff_in_data=yes
26683 elif test x$gcc_cv_as != x; then
26684 $as_echo ' .text
26685 .L0:
26687 .data
26688 .long .L0@GOTOFF' > conftest.s
26689 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26690 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26691 (eval $ac_try) 2>&5
26692 ac_status=$?
26693 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26694 test $ac_status = 0; }; }
26695 then
26696 gcc_cv_as_ix86_gotoff_in_data=yes
26697 else
26698 echo "configure: failed program was" >&5
26699 cat conftest.s >&5
26701 rm -f conftest.o conftest.s
26704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
26705 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
26709 cat >>confdefs.h <<_ACEOF
26710 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
26711 _ACEOF
26714 conftest_s='
26715 .section .text,"ax",@progbits
26716 .globl _start
26717 .type _start, @function
26718 _start:
26719 leal ld@tlsldm(%ecx), %eax
26720 call *___tls_get_addr@GOT(%ecx)
26721 leal gd@tlsgd(%ecx), %eax
26722 call *___tls_get_addr@GOT(%ecx)
26724 .section .tdata,"aw'$tls_section_flag'",@progbits
26725 .type ld, @object
26727 .byte 0
26728 .globl gd
26729 .type gd, @object
26731 .byte 0'
26732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for calling ___tls_get_addr via GOT" >&5
26733 $as_echo_n "checking assembler for calling ___tls_get_addr via GOT... " >&6; }
26734 if ${gcc_cv_as_ix86_tls_get_addr_via_got+:} false; then :
26735 $as_echo_n "(cached) " >&6
26736 else
26737 gcc_cv_as_ix86_tls_get_addr_via_got=no
26738 if test x$gcc_cv_as != x; then
26739 $as_echo "$conftest_s" > conftest.s
26740 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26741 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26742 (eval $ac_try) 2>&5
26743 ac_status=$?
26744 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26745 test $ac_status = 0; }; }
26746 then
26747 if test x$gcc_cv_ld != x \
26748 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o > /dev/null 2>&1; then
26749 gcc_cv_as_ix86_tls_get_addr_via_got=yes
26751 rm -f conftest
26752 else
26753 echo "configure: failed program was" >&5
26754 cat conftest.s >&5
26756 rm -f conftest.o conftest.s
26759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tls_get_addr_via_got" >&5
26760 $as_echo "$gcc_cv_as_ix86_tls_get_addr_via_got" >&6; }
26764 cat >>confdefs.h <<_ACEOF
26765 #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`
26766 _ACEOF
26770 ia64*-*-*)
26771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
26772 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
26773 if ${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+:} false; then :
26774 $as_echo_n "(cached) " >&6
26775 else
26776 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
26777 if test $in_tree_gas = yes; then
26778 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
26779 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
26781 elif test x$gcc_cv_as != x; then
26782 $as_echo ' .text
26783 addl r15 = @ltoffx(x#), gp
26785 ld8.mov r16 = [r15], x#
26786 ' > conftest.s
26787 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26788 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26789 (eval $ac_try) 2>&5
26790 ac_status=$?
26791 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26792 test $ac_status = 0; }; }
26793 then
26794 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
26795 else
26796 echo "configure: failed program was" >&5
26797 cat conftest.s >&5
26799 rm -f conftest.o conftest.s
26802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
26803 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
26804 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
26806 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
26813 powerpc*-*-*)
26815 case $target in
26816 *-*-darwin*)
26817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
26818 $as_echo_n "checking assembler for .machine directive support... " >&6; }
26819 if ${gcc_cv_as_machine_directive+:} false; then :
26820 $as_echo_n "(cached) " >&6
26821 else
26822 gcc_cv_as_machine_directive=no
26823 if test x$gcc_cv_as != x; then
26824 $as_echo ' .machine ppc7400' > conftest.s
26825 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26826 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26827 (eval $ac_try) 2>&5
26828 ac_status=$?
26829 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26830 test $ac_status = 0; }; }
26831 then
26832 gcc_cv_as_machine_directive=yes
26833 else
26834 echo "configure: failed program was" >&5
26835 cat conftest.s >&5
26837 rm -f conftest.o conftest.s
26840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
26841 $as_echo "$gcc_cv_as_machine_directive" >&6; }
26844 if test x$gcc_cv_as_machine_directive != xyes; then
26845 echo "*** This target requires an assembler supporting \".machine\"" >&2
26846 echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
26847 test x$build = x$target && exit 1
26850 esac
26852 case $target in
26853 *-*-aix*) conftest_s=' .machine "pwr5"
26854 .csect .text[PR]
26855 mfcr 3,128';;
26856 *-*-darwin*) conftest_s=' .text
26857 mfcr r3,128';;
26858 *) conftest_s=' .machine power4
26859 .text
26860 mfcr 3,128';;
26861 esac
26863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
26864 $as_echo_n "checking assembler for mfcr field support... " >&6; }
26865 if ${gcc_cv_as_powerpc_mfcrf+:} false; then :
26866 $as_echo_n "(cached) " >&6
26867 else
26868 gcc_cv_as_powerpc_mfcrf=no
26869 if test $in_tree_gas = yes; then
26870 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
26871 then gcc_cv_as_powerpc_mfcrf=yes
26873 elif test x$gcc_cv_as != x; then
26874 $as_echo "$conftest_s" > conftest.s
26875 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26876 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26877 (eval $ac_try) 2>&5
26878 ac_status=$?
26879 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26880 test $ac_status = 0; }; }
26881 then
26882 gcc_cv_as_powerpc_mfcrf=yes
26883 else
26884 echo "configure: failed program was" >&5
26885 cat conftest.s >&5
26887 rm -f conftest.o conftest.s
26890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
26891 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
26892 if test $gcc_cv_as_powerpc_mfcrf = yes; then
26894 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
26899 case $target in
26900 *-*-aix*) conftest_s=' .csect .text[PR]
26901 LCF..0:
26902 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
26903 *-*-darwin*)
26904 conftest_s=' .text
26905 LCF0:
26906 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
26907 *) conftest_s=' .text
26908 .LCF0:
26909 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
26910 esac
26912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
26913 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
26914 if ${gcc_cv_as_powerpc_rel16+:} false; then :
26915 $as_echo_n "(cached) " >&6
26916 else
26917 gcc_cv_as_powerpc_rel16=no
26918 if test $in_tree_gas = yes; then
26919 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
26920 then gcc_cv_as_powerpc_rel16=yes
26922 elif test x$gcc_cv_as != x; then
26923 $as_echo "$conftest_s" > conftest.s
26924 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26925 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26926 (eval $ac_try) 2>&5
26927 ac_status=$?
26928 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26929 test $ac_status = 0; }; }
26930 then
26931 gcc_cv_as_powerpc_rel16=yes
26932 else
26933 echo "configure: failed program was" >&5
26934 cat conftest.s >&5
26936 rm -f conftest.o conftest.s
26939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
26940 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
26941 if test $gcc_cv_as_powerpc_rel16 = yes; then
26943 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
26948 case $target in
26949 *-*-aix*) conftest_s=' .machine "pwr7"
26950 .csect .text[PR]
26951 lxvd2x 1,2,3';;
26952 *) conftest_s=' .machine power7
26953 .text
26954 lxvd2x 1,2,3';;
26955 esac
26957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
26958 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
26959 if ${gcc_cv_as_powerpc_vsx+:} false; then :
26960 $as_echo_n "(cached) " >&6
26961 else
26962 gcc_cv_as_powerpc_vsx=no
26963 if test $in_tree_gas = yes; then
26964 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26965 then gcc_cv_as_powerpc_vsx=yes
26967 elif test x$gcc_cv_as != x; then
26968 $as_echo "$conftest_s" > conftest.s
26969 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26970 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26971 (eval $ac_try) 2>&5
26972 ac_status=$?
26973 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26974 test $ac_status = 0; }; }
26975 then
26976 gcc_cv_as_powerpc_vsx=yes
26977 else
26978 echo "configure: failed program was" >&5
26979 cat conftest.s >&5
26981 rm -f conftest.o conftest.s
26984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
26985 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
26986 if test $gcc_cv_as_powerpc_vsx = yes; then
26988 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
26993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
26994 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
26995 if ${gcc_cv_as_powerpc_gnu_attribute+:} false; then :
26996 $as_echo_n "(cached) " >&6
26997 else
26998 gcc_cv_as_powerpc_gnu_attribute=no
26999 if test $in_tree_gas = yes; then
27000 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27001 then gcc_cv_as_powerpc_gnu_attribute=yes
27003 elif test x$gcc_cv_as != x; then
27004 $as_echo '.gnu_attribute 4,1' > conftest.s
27005 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27006 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27007 (eval $ac_try) 2>&5
27008 ac_status=$?
27009 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27010 test $ac_status = 0; }; }
27011 then
27012 gcc_cv_as_powerpc_gnu_attribute=yes
27013 else
27014 echo "configure: failed program was" >&5
27015 cat conftest.s >&5
27017 rm -f conftest.o conftest.s
27020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
27021 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
27022 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
27024 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
27029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
27030 $as_echo_n "checking assembler for tls marker support... " >&6; }
27031 if ${gcc_cv_as_powerpc_tls_markers+:} false; then :
27032 $as_echo_n "(cached) " >&6
27033 else
27034 gcc_cv_as_powerpc_tls_markers=no
27035 if test $in_tree_gas = yes; then
27036 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
27037 then gcc_cv_as_powerpc_tls_markers=yes
27039 elif test x$gcc_cv_as != x; then
27040 $as_echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
27041 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27042 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27043 (eval $ac_try) 2>&5
27044 ac_status=$?
27045 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27046 test $ac_status = 0; }; }
27047 then
27048 gcc_cv_as_powerpc_tls_markers=yes
27049 else
27050 echo "configure: failed program was" >&5
27051 cat conftest.s >&5
27053 rm -f conftest.o conftest.s
27056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
27057 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
27058 if test $gcc_cv_as_powerpc_tls_markers = yes; then
27060 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
27065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for prologue entry point marker support" >&5
27066 $as_echo_n "checking assembler for prologue entry point marker support... " >&6; }
27067 if ${gcc_cv_as_powerpc_entry_markers+:} false; then :
27068 $as_echo_n "(cached) " >&6
27069 else
27070 gcc_cv_as_powerpc_entry_markers=no
27071 if test $in_tree_gas = yes; then
27072 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 26 \) \* 1000 + 0`
27073 then gcc_cv_as_powerpc_entry_markers=yes
27075 elif test x$gcc_cv_as != x; then
27076 $as_echo ' .reloc .,R_PPC64_ENTRY; nop' > conftest.s
27077 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a64 --fatal-warnings -o conftest.o conftest.s >&5'
27078 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27079 (eval $ac_try) 2>&5
27080 ac_status=$?
27081 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27082 test $ac_status = 0; }; }
27083 then
27084 gcc_cv_as_powerpc_entry_markers=yes
27085 else
27086 echo "configure: failed program was" >&5
27087 cat conftest.s >&5
27089 rm -f conftest.o conftest.s
27092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_entry_markers" >&5
27093 $as_echo "$gcc_cv_as_powerpc_entry_markers" >&6; }
27094 if test $gcc_cv_as_powerpc_entry_markers = yes; then
27096 $as_echo "#define HAVE_AS_ENTRY_MARKERS 1" >>confdefs.h
27101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for plt sequence marker support" >&5
27102 $as_echo_n "checking assembler for plt sequence marker support... " >&6; }
27103 if ${gcc_cv_as_powerpc_pltseq_markers+:} false; then :
27104 $as_echo_n "(cached) " >&6
27105 else
27106 gcc_cv_as_powerpc_pltseq_markers=no
27107 if test $in_tree_gas = yes; then
27108 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 31 \) \* 1000 + 0`
27109 then gcc_cv_as_powerpc_pltseq_markers=yes
27111 elif test x$gcc_cv_as != x; then
27112 $as_echo ' .reloc .,R_PPC_PLTSEQ; nop' > conftest.s
27113 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 --fatal-warnings -o conftest.o conftest.s >&5'
27114 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27115 (eval $ac_try) 2>&5
27116 ac_status=$?
27117 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27118 test $ac_status = 0; }; }
27119 then
27120 gcc_cv_as_powerpc_pltseq_markers=yes
27121 else
27122 echo "configure: failed program was" >&5
27123 cat conftest.s >&5
27125 rm -f conftest.o conftest.s
27128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_pltseq_markers" >&5
27129 $as_echo "$gcc_cv_as_powerpc_pltseq_markers" >&6; }
27130 if test $gcc_cv_as_powerpc_pltseq_markers = yes; then
27132 $as_echo "#define HAVE_AS_PLTSEQ 1" >>confdefs.h
27137 case $target in
27138 *-*-aix*)
27139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX .ref support" >&5
27140 $as_echo_n "checking assembler for AIX .ref support... " >&6; }
27141 if ${gcc_cv_as_aix_ref+:} false; then :
27142 $as_echo_n "(cached) " >&6
27143 else
27144 gcc_cv_as_aix_ref=no
27145 if test $in_tree_gas = yes; then
27146 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
27147 then gcc_cv_as_aix_ref=yes
27149 elif test x$gcc_cv_as != x; then
27150 $as_echo ' .csect stuff[rw]
27151 stuff:
27152 .long 1
27153 .extern sym
27154 .ref sym
27155 ' > conftest.s
27156 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27157 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27158 (eval $ac_try) 2>&5
27159 ac_status=$?
27160 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27161 test $ac_status = 0; }; }
27162 then
27163 gcc_cv_as_aix_ref=yes
27164 else
27165 echo "configure: failed program was" >&5
27166 cat conftest.s >&5
27168 rm -f conftest.o conftest.s
27171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
27172 $as_echo "$gcc_cv_as_aix_ref" >&6; }
27173 if test $gcc_cv_as_aix_ref = yes; then
27175 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
27180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX DWARF location lists section support" >&5
27181 $as_echo_n "checking assembler for AIX DWARF location lists section support... " >&6; }
27182 if ${gcc_cv_as_aix_dwloc+:} false; then :
27183 $as_echo_n "(cached) " >&6
27184 else
27185 gcc_cv_as_aix_dwloc=no
27186 if test $in_tree_gas = yes; then
27187 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
27188 then gcc_cv_as_aix_dwloc=yes
27190 elif test x$gcc_cv_as != x; then
27191 $as_echo ' .dwsect 0xA0000
27192 Lframe..0:
27193 .vbyte 4,Lframe..0
27194 ' > conftest.s
27195 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27196 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27197 (eval $ac_try) 2>&5
27198 ac_status=$?
27199 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27200 test $ac_status = 0; }; }
27201 then
27202 gcc_cv_as_aix_dwloc=yes
27203 else
27204 echo "configure: failed program was" >&5
27205 cat conftest.s >&5
27207 rm -f conftest.o conftest.s
27210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_dwloc" >&5
27211 $as_echo "$gcc_cv_as_aix_dwloc" >&6; }
27212 if test $gcc_cv_as_aix_dwloc = yes; then
27214 $as_echo "#define HAVE_XCOFF_DWARF_EXTRAS 1" >>confdefs.h
27219 esac
27222 mips*-*-*)
27223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
27224 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
27225 if ${gcc_cv_as_mips_explicit_relocs+:} false; then :
27226 $as_echo_n "(cached) " >&6
27227 else
27228 gcc_cv_as_mips_explicit_relocs=no
27229 if test $in_tree_gas = yes; then
27230 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
27231 then gcc_cv_as_mips_explicit_relocs=yes
27233 elif test x$gcc_cv_as != x; then
27234 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
27235 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27236 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27237 (eval $ac_try) 2>&5
27238 ac_status=$?
27239 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27240 test $ac_status = 0; }; }
27241 then
27242 gcc_cv_as_mips_explicit_relocs=yes
27243 else
27244 echo "configure: failed program was" >&5
27245 cat conftest.s >&5
27247 rm -f conftest.o conftest.s
27250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
27251 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
27252 if test $gcc_cv_as_mips_explicit_relocs = yes; then
27253 if test x$target_cpu_default = x
27254 then target_cpu_default=MASK_EXPLICIT_RELOCS
27255 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
27260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
27261 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
27262 if ${gcc_cv_as_mips_no_shared+:} false; then :
27263 $as_echo_n "(cached) " >&6
27264 else
27265 gcc_cv_as_mips_no_shared=no
27266 if test $in_tree_gas = yes; then
27267 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
27268 then gcc_cv_as_mips_no_shared=yes
27270 elif test x$gcc_cv_as != x; then
27271 $as_echo 'nop' > conftest.s
27272 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
27273 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27274 (eval $ac_try) 2>&5
27275 ac_status=$?
27276 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27277 test $ac_status = 0; }; }
27278 then
27279 gcc_cv_as_mips_no_shared=yes
27280 else
27281 echo "configure: failed program was" >&5
27282 cat conftest.s >&5
27284 rm -f conftest.o conftest.s
27287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
27288 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
27289 if test $gcc_cv_as_mips_no_shared = yes; then
27291 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
27296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
27297 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
27298 if ${gcc_cv_as_mips_gnu_attribute+:} false; then :
27299 $as_echo_n "(cached) " >&6
27300 else
27301 gcc_cv_as_mips_gnu_attribute=no
27302 if test $in_tree_gas = yes; then
27303 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27304 then gcc_cv_as_mips_gnu_attribute=yes
27306 elif test x$gcc_cv_as != x; then
27307 $as_echo '.gnu_attribute 4,1' > conftest.s
27308 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27309 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27310 (eval $ac_try) 2>&5
27311 ac_status=$?
27312 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27313 test $ac_status = 0; }; }
27314 then
27315 gcc_cv_as_mips_gnu_attribute=yes
27316 else
27317 echo "configure: failed program was" >&5
27318 cat conftest.s >&5
27320 rm -f conftest.o conftest.s
27323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
27324 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
27325 if test $gcc_cv_as_mips_gnu_attribute = yes; then
27327 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
27332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .module support" >&5
27333 $as_echo_n "checking assembler for .module support... " >&6; }
27334 if ${gcc_cv_as_mips_dot_module+:} false; then :
27335 $as_echo_n "(cached) " >&6
27336 else
27337 gcc_cv_as_mips_dot_module=no
27338 if test x$gcc_cv_as != x; then
27339 $as_echo '.module mips2
27340 .module fp=xx' > conftest.s
27341 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -32 -o conftest.o conftest.s >&5'
27342 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27343 (eval $ac_try) 2>&5
27344 ac_status=$?
27345 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27346 test $ac_status = 0; }; }
27347 then
27348 gcc_cv_as_mips_dot_module=yes
27349 else
27350 echo "configure: failed program was" >&5
27351 cat conftest.s >&5
27353 rm -f conftest.o conftest.s
27356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dot_module" >&5
27357 $as_echo "$gcc_cv_as_mips_dot_module" >&6; }
27358 if test $gcc_cv_as_mips_dot_module = yes; then
27360 $as_echo "#define HAVE_AS_DOT_MODULE 1" >>confdefs.h
27364 if test x$gcc_cv_as_mips_dot_module = xno \
27365 && test x$with_fp_32 != x; then
27366 as_fn_error $? "Requesting --with-fp-32= requires assembler support for .module." "$LINENO" 5
27369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .micromips support" >&5
27370 $as_echo_n "checking assembler for .micromips support... " >&6; }
27371 if ${gcc_cv_as_micromips_support+:} false; then :
27372 $as_echo_n "(cached) " >&6
27373 else
27374 gcc_cv_as_micromips_support=no
27375 if test x$gcc_cv_as != x; then
27376 $as_echo '.set micromips' > conftest.s
27377 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
27378 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27379 (eval $ac_try) 2>&5
27380 ac_status=$?
27381 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27382 test $ac_status = 0; }; }
27383 then
27384 gcc_cv_as_micromips_support=yes
27385 else
27386 echo "configure: failed program was" >&5
27387 cat conftest.s >&5
27389 rm -f conftest.o conftest.s
27392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_micromips_support" >&5
27393 $as_echo "$gcc_cv_as_micromips_support" >&6; }
27394 if test $gcc_cv_as_micromips_support = yes; then
27396 $as_echo "#define HAVE_GAS_MICROMIPS 1" >>confdefs.h
27401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
27402 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
27403 if ${gcc_cv_as_mips_dtprelword+:} false; then :
27404 $as_echo_n "(cached) " >&6
27405 else
27406 gcc_cv_as_mips_dtprelword=no
27407 if test $in_tree_gas = yes; then
27408 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27409 then gcc_cv_as_mips_dtprelword=yes
27411 elif test x$gcc_cv_as != x; then
27412 $as_echo '.section .tdata,"awT",@progbits
27414 .word 2
27415 .text
27416 .dtprelword x+0x8000' > conftest.s
27417 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27418 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27419 (eval $ac_try) 2>&5
27420 ac_status=$?
27421 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27422 test $ac_status = 0; }; }
27423 then
27424 gcc_cv_as_mips_dtprelword=yes
27425 else
27426 echo "configure: failed program was" >&5
27427 cat conftest.s >&5
27429 rm -f conftest.o conftest.s
27432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
27433 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
27434 if test $gcc_cv_as_mips_dtprelword = yes; then
27436 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
27441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
27442 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
27443 if ${gcc_cv_as_mips_dspr1_mult+:} false; then :
27444 $as_echo_n "(cached) " >&6
27445 else
27446 gcc_cv_as_mips_dspr1_mult=no
27447 if test x$gcc_cv_as != x; then
27448 $as_echo ' .set mips32r2
27449 .set nodspr2
27450 .set dsp
27451 madd $ac3,$4,$5
27452 maddu $ac3,$4,$5
27453 msub $ac3,$4,$5
27454 msubu $ac3,$4,$5
27455 mult $ac3,$4,$5
27456 multu $ac3,$4,$5' > conftest.s
27457 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27458 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27459 (eval $ac_try) 2>&5
27460 ac_status=$?
27461 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27462 test $ac_status = 0; }; }
27463 then
27464 gcc_cv_as_mips_dspr1_mult=yes
27465 else
27466 echo "configure: failed program was" >&5
27467 cat conftest.s >&5
27469 rm -f conftest.o conftest.s
27472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
27473 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
27474 if test $gcc_cv_as_mips_dspr1_mult = yes; then
27476 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
27481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
27482 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
27483 gcc_cv_as_ld_jalr_reloc=no
27484 if test $gcc_cv_as_mips_explicit_relocs = yes; then
27485 if test $in_tree_ld = yes ; then
27486 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 \
27487 && test $in_tree_ld_is_elf = yes; then
27488 gcc_cv_as_ld_jalr_reloc=yes
27490 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
27491 echo ' .ent x' > conftest.s
27492 echo 'x: lw $2,%got_disp(y)($3)' >> conftest.s
27493 echo ' lw $25,%call16(y)($28)' >> conftest.s
27494 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
27495 echo '1: jalr $25' >> conftest.s
27496 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
27497 echo '1: jalr $25' >> conftest.s
27498 echo ' .end x' >> conftest.s
27499 if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
27500 && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
27501 if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
27502 && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
27503 gcc_cv_as_ld_jalr_reloc=yes
27506 rm -f conftest.*
27509 if test $gcc_cv_as_ld_jalr_reloc = yes; then
27510 if test x$target_cpu_default = x; then
27511 target_cpu_default=MASK_RELAX_PIC_CALLS
27512 else
27513 target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
27516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
27517 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
27519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
27520 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
27521 if ${gcc_cv_ld_mips_personality_relaxation+:} false; then :
27522 $as_echo_n "(cached) " >&6
27523 else
27524 gcc_cv_ld_mips_personality_relaxation=no
27525 if test $in_tree_ld = yes ; then
27526 if test "$gcc_cv_gld_major_version" -eq 2 \
27527 -a "$gcc_cv_gld_minor_version" -ge 21 \
27528 -o "$gcc_cv_gld_major_version" -gt 2; then
27529 gcc_cv_ld_mips_personality_relaxation=yes
27531 elif test x$gcc_cv_as != x \
27532 -a x$gcc_cv_ld != x \
27533 -a x$gcc_cv_readelf != x ; then
27534 cat > conftest.s <<EOF
27535 .cfi_startproc
27536 .cfi_personality 0x80,indirect_ptr
27537 .ent test
27538 test:
27540 .end test
27541 .cfi_endproc
27543 .section .data,"aw",@progbits
27544 indirect_ptr:
27545 .dc.a personality
27547 if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
27548 && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
27549 if $gcc_cv_readelf -d conftest 2>&1 \
27550 | grep TEXTREL > /dev/null 2>&1; then
27552 elif $gcc_cv_readelf --relocs conftest 2>&1 \
27553 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
27555 else
27556 gcc_cv_ld_mips_personality_relaxation=yes
27560 rm -f conftest.s conftest.o conftest
27562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
27563 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
27564 if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
27566 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
27570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mnan= support" >&5
27571 $as_echo_n "checking assembler for -mnan= support... " >&6; }
27572 if ${gcc_cv_as_mips_nan+:} false; then :
27573 $as_echo_n "(cached) " >&6
27574 else
27575 gcc_cv_as_mips_nan=no
27576 if test x$gcc_cv_as != x; then
27577 $as_echo '' > conftest.s
27578 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mnan=2008 -o conftest.o conftest.s >&5'
27579 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27580 (eval $ac_try) 2>&5
27581 ac_status=$?
27582 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27583 test $ac_status = 0; }; }
27584 then
27585 gcc_cv_as_mips_nan=yes
27586 else
27587 echo "configure: failed program was" >&5
27588 cat conftest.s >&5
27590 rm -f conftest.o conftest.s
27593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_nan" >&5
27594 $as_echo "$gcc_cv_as_mips_nan" >&6; }
27595 if test $gcc_cv_as_mips_nan = yes; then
27597 $as_echo "#define HAVE_AS_NAN 1" >>confdefs.h
27601 if test x$gcc_cv_as_mips_nan = xno \
27602 && test x$with_nan != x; then
27603 as_fn_error $? "Requesting --with-nan= requires assembler support for -mnan=" "$LINENO" 5
27606 s390*-*-*)
27607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
27608 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
27609 if ${gcc_cv_as_s390_gnu_attribute+:} false; then :
27610 $as_echo_n "(cached) " >&6
27611 else
27612 gcc_cv_as_s390_gnu_attribute=no
27613 if test $in_tree_gas = yes; then
27614 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27615 then gcc_cv_as_s390_gnu_attribute=yes
27617 elif test x$gcc_cv_as != x; then
27618 $as_echo '.gnu_attribute 8,1' > conftest.s
27619 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27620 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27621 (eval $ac_try) 2>&5
27622 ac_status=$?
27623 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27624 test $ac_status = 0; }; }
27625 then
27626 gcc_cv_as_s390_gnu_attribute=yes
27627 else
27628 echo "configure: failed program was" >&5
27629 cat conftest.s >&5
27631 rm -f conftest.o conftest.s
27634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_gnu_attribute" >&5
27635 $as_echo "$gcc_cv_as_s390_gnu_attribute" >&6; }
27636 if test $gcc_cv_as_s390_gnu_attribute = yes; then
27638 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
27642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine and .machinemode support" >&5
27643 $as_echo_n "checking assembler for .machine and .machinemode support... " >&6; }
27644 if ${gcc_cv_as_s390_machine_machinemode+:} false; then :
27645 $as_echo_n "(cached) " >&6
27646 else
27647 gcc_cv_as_s390_machine_machinemode=no
27648 if test $in_tree_gas = yes; then
27649 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 24 \) \* 1000 + 0`
27650 then gcc_cv_as_s390_machine_machinemode=yes
27652 elif test x$gcc_cv_as != x; then
27653 $as_echo ' .machinemode push
27654 .machinemode pop
27655 .machine push
27656 .machine pop' > conftest.s
27657 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27658 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27659 (eval $ac_try) 2>&5
27660 ac_status=$?
27661 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27662 test $ac_status = 0; }; }
27663 then
27664 gcc_cv_as_s390_machine_machinemode=yes
27665 else
27666 echo "configure: failed program was" >&5
27667 cat conftest.s >&5
27669 rm -f conftest.o conftest.s
27672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_machine_machinemode" >&5
27673 $as_echo "$gcc_cv_as_s390_machine_machinemode" >&6; }
27674 if test $gcc_cv_as_s390_machine_machinemode = yes; then
27676 $as_echo "#define HAVE_AS_MACHINE_MACHINEMODE 1" >>confdefs.h
27680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for architecture modifiers support" >&5
27681 $as_echo_n "checking assembler for architecture modifiers support... " >&6; }
27682 if ${gcc_cv_as_s390_architecture_modifiers+:} false; then :
27683 $as_echo_n "(cached) " >&6
27684 else
27685 gcc_cv_as_s390_architecture_modifiers=no
27686 if test $in_tree_gas = yes; then
27687 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 26 \) \* 1000 + 0`
27688 then gcc_cv_as_s390_architecture_modifiers=yes
27690 elif test x$gcc_cv_as != x; then
27691 $as_echo ' .machine z13+vx ' > conftest.s
27692 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27693 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27694 (eval $ac_try) 2>&5
27695 ac_status=$?
27696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27697 test $ac_status = 0; }; }
27698 then
27699 gcc_cv_as_s390_architecture_modifiers=yes
27700 else
27701 echo "configure: failed program was" >&5
27702 cat conftest.s >&5
27704 rm -f conftest.o conftest.s
27707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_architecture_modifiers" >&5
27708 $as_echo "$gcc_cv_as_s390_architecture_modifiers" >&6; }
27709 if test $gcc_cv_as_s390_architecture_modifiers = yes; then
27711 $as_echo "#define HAVE_AS_ARCHITECTURE_MODIFIERS 1" >>confdefs.h
27715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector load/store alignment hints" >&5
27716 $as_echo_n "checking assembler for vector load/store alignment hints... " >&6; }
27717 if ${gcc_cv_as_s390_vector_loadstore_alignment_hints+:} false; then :
27718 $as_echo_n "(cached) " >&6
27719 else
27720 gcc_cv_as_s390_vector_loadstore_alignment_hints=no
27721 if test $in_tree_gas = yes; then
27722 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 31 \) \* 1000 + 0`
27723 then gcc_cv_as_s390_vector_loadstore_alignment_hints=yes
27725 elif test x$gcc_cv_as != x; then
27726 $as_echo ' vl %v24,0(%r15),3 ' > conftest.s
27727 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27728 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27729 (eval $ac_try) 2>&5
27730 ac_status=$?
27731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27732 test $ac_status = 0; }; }
27733 then
27734 gcc_cv_as_s390_vector_loadstore_alignment_hints=yes
27735 else
27736 echo "configure: failed program was" >&5
27737 cat conftest.s >&5
27739 rm -f conftest.o conftest.s
27742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_vector_loadstore_alignment_hints" >&5
27743 $as_echo "$gcc_cv_as_s390_vector_loadstore_alignment_hints" >&6; }
27744 if test $gcc_cv_as_s390_vector_loadstore_alignment_hints = yes; then
27746 $as_echo "#define HAVE_AS_VECTOR_LOADSTORE_ALIGNMENT_HINTS 1" >>confdefs.h
27752 esac
27754 # Mips and HP-UX need the GNU assembler.
27755 # Linux on IA64 might be able to use the Intel assembler.
27757 case "$target" in
27758 mips*-*-* | *-*-hpux* )
27759 if test x$gas_flag = xyes \
27760 || test x"$host" != x"$build" \
27761 || test ! -x "$gcc_cv_as" \
27762 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
27764 else
27765 echo "*** This configuration requires the GNU assembler" >&2
27766 exit 1
27769 esac
27771 # ??? Not all targets support dwarf2 debug_line, even within a version
27772 # of gas. Moreover, we need to emit a valid instruction to trigger any
27773 # info to the output file. So, as supported targets are added to gas 2.11,
27774 # add some instruction here to (also) show we expect this might work.
27775 # ??? Once 2.11 is released, probably need to add first known working
27776 # version to the per-target configury.
27777 case "$cpu_type" in
27778 aarch64 | alpha | arc | arm | avr | bfin | cris | csky | i386 | m32c | m68k \
27779 | microblaze | mips | nios2 | pa | riscv | rs6000 | score | sparc | spu \
27780 | tilegx | tilepro | visium | xstormy16 | xtensa)
27781 insn="nop"
27783 ia64 | s390)
27784 insn="nop 0"
27786 mmix)
27787 insn="swym 0"
27789 esac
27790 if test x"$insn" != x; then
27791 conftest_s="\
27792 .file 1 \"conftest.s\"
27793 .loc 1 3 0
27794 $insn"
27795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
27796 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
27797 if ${gcc_cv_as_dwarf2_debug_line+:} false; then :
27798 $as_echo_n "(cached) " >&6
27799 else
27800 gcc_cv_as_dwarf2_debug_line=no
27801 if test $in_tree_gas = yes; then
27802 if test $in_tree_gas_is_elf = yes \
27803 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
27804 then gcc_cv_as_dwarf2_debug_line=yes
27806 elif test x$gcc_cv_as != x; then
27807 $as_echo "$conftest_s" > conftest.s
27808 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27809 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27810 (eval $ac_try) 2>&5
27811 ac_status=$?
27812 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27813 test $ac_status = 0; }; }
27814 then
27815 if test x$gcc_cv_objdump != x \
27816 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
27817 | grep debug_line > /dev/null 2>&1; then
27818 gcc_cv_as_dwarf2_debug_line=yes
27819 elif test x$gcc_cv_otool != x \
27820 && $gcc_cv_otool -l conftest.o 2> /dev/null \
27821 | grep debug_line > /dev/null 2>&1; then
27822 gcc_cv_as_dwarf2_debug_line=yes
27824 else
27825 echo "configure: failed program was" >&5
27826 cat conftest.s >&5
27828 rm -f conftest.o conftest.s
27831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
27832 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
27836 # The .debug_line file table must be in the exact order that
27837 # we specified the files, since these indices are also used
27838 # by DW_AT_decl_file. Approximate this test by testing if
27839 # the assembler bitches if the same index is assigned twice.
27840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
27841 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
27842 if ${gcc_cv_as_dwarf2_file_buggy+:} false; then :
27843 $as_echo_n "(cached) " >&6
27844 else
27845 gcc_cv_as_dwarf2_file_buggy=no
27846 if test x$gcc_cv_as != x; then
27847 $as_echo ' .file 1 "foo.s"
27848 .file 1 "bar.s"' > conftest.s
27849 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27850 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27851 (eval $ac_try) 2>&5
27852 ac_status=$?
27853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27854 test $ac_status = 0; }; }
27855 then
27856 gcc_cv_as_dwarf2_file_buggy=yes
27857 else
27858 echo "configure: failed program was" >&5
27859 cat conftest.s >&5
27861 rm -f conftest.o conftest.s
27864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
27865 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
27869 if test $gcc_cv_as_dwarf2_debug_line = yes \
27870 && test $gcc_cv_as_dwarf2_file_buggy = no; then
27872 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
27875 if test $gcc_cv_as_leb128 = yes; then
27876 conftest_s="\
27877 .file 1 \"conftest.s\"
27878 .loc 1 3 0 view .LVU1
27879 $insn
27880 .data
27881 .uleb128 .LVU1
27882 .uleb128 .LVU1
27884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_view support" >&5
27885 $as_echo_n "checking assembler for dwarf2 debug_view support... " >&6; }
27886 if ${gcc_cv_as_dwarf2_debug_view+:} false; then :
27887 $as_echo_n "(cached) " >&6
27888 else
27889 gcc_cv_as_dwarf2_debug_view=no
27890 if test $in_tree_gas = yes; then
27891 if test $in_tree_gas_is_elf = yes \
27892 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 27 \) \* 1000 + 0`
27893 then gcc_cv_as_dwarf2_debug_view=yes
27895 elif test x$gcc_cv_as != x; then
27896 $as_echo "$conftest_s" > conftest.s
27897 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27898 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27899 (eval $ac_try) 2>&5
27900 ac_status=$?
27901 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27902 test $ac_status = 0; }; }
27903 then
27904 gcc_cv_as_dwarf2_debug_view=yes
27905 else
27906 echo "configure: failed program was" >&5
27907 cat conftest.s >&5
27909 rm -f conftest.o conftest.s
27912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_view" >&5
27913 $as_echo "$gcc_cv_as_dwarf2_debug_view" >&6; }
27914 if test $gcc_cv_as_dwarf2_debug_view = yes; then
27916 $as_echo "#define HAVE_AS_DWARF2_DEBUG_VIEW 1" >>confdefs.h
27923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
27924 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
27925 if ${gcc_cv_as_gdwarf2_flag+:} false; then :
27926 $as_echo_n "(cached) " >&6
27927 else
27928 gcc_cv_as_gdwarf2_flag=no
27929 if test $in_tree_gas = yes; then
27930 if test $in_tree_gas_is_elf = yes \
27931 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
27932 then gcc_cv_as_gdwarf2_flag=yes
27934 elif test x$gcc_cv_as != x; then
27935 $as_echo "$insn" > conftest.s
27936 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
27937 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27938 (eval $ac_try) 2>&5
27939 ac_status=$?
27940 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27941 test $ac_status = 0; }; }
27942 then
27943 gcc_cv_as_gdwarf2_flag=yes
27944 else
27945 echo "configure: failed program was" >&5
27946 cat conftest.s >&5
27948 rm -f conftest.o conftest.s
27951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
27952 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
27953 if test $gcc_cv_as_gdwarf2_flag = yes; then
27955 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
27960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
27961 $as_echo_n "checking assembler for --gstabs option... " >&6; }
27962 if ${gcc_cv_as_gstabs_flag+:} false; then :
27963 $as_echo_n "(cached) " >&6
27964 else
27965 gcc_cv_as_gstabs_flag=no
27966 if test $in_tree_gas = yes; then
27967 if test $in_tree_gas_is_elf = yes \
27968 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
27969 then gcc_cv_as_gstabs_flag=yes
27971 elif test x$gcc_cv_as != x; then
27972 $as_echo "$insn" > conftest.s
27973 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
27974 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27975 (eval $ac_try) 2>&5
27976 ac_status=$?
27977 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27978 test $ac_status = 0; }; }
27979 then
27980 gcc_cv_as_gstabs_flag=yes
27981 else
27982 echo "configure: failed program was" >&5
27983 cat conftest.s >&5
27985 rm -f conftest.o conftest.s
27988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
27989 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
27990 if test $gcc_cv_as_gstabs_flag = yes; then
27992 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
27997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
27998 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
27999 if ${gcc_cv_as_debug_prefix_map_flag+:} false; then :
28000 $as_echo_n "(cached) " >&6
28001 else
28002 gcc_cv_as_debug_prefix_map_flag=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_debug_prefix_map_flag=yes
28007 elif test x$gcc_cv_as != x; then
28008 $as_echo "$insn" > conftest.s
28009 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -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_debug_prefix_map_flag=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_debug_prefix_map_flag" >&5
28025 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
28026 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
28028 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
28034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compressed debug sections" >&5
28035 $as_echo_n "checking assembler for compressed debug sections... " >&6; }
28036 if ${gcc_cv_as_compress_debug+:} false; then :
28037 $as_echo_n "(cached) " >&6
28038 else
28039 gcc_cv_as_compress_debug=no
28040 if test x$gcc_cv_as != x; then
28041 $as_echo '' > conftest.s
28042 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28043 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28044 (eval $ac_try) 2>&5
28045 ac_status=$?
28046 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28047 test $ac_status = 0; }; }
28048 then
28049 # gas compiled without zlib cannot compress debug sections and warns
28050 # about it, but still exits successfully. So check for this, too.
28051 if $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null
28052 then
28053 gcc_cv_as_compress_debug=0
28054 # Since binutils 2.26, gas supports --compress-debug-sections=type,
28055 # defaulting to the ELF gABI format.
28056 elif $gcc_cv_as --compress-debug-sections=zlib-gnu -o conftest.o conftest.s > /dev/null 2>&1
28057 then
28058 gcc_cv_as_compress_debug=2
28059 gcc_cv_as_compress_debug_option="--compress-debug-sections"
28060 gcc_cv_as_no_compress_debug_option="--nocompress-debug-sections"
28061 # Before binutils 2.26, gas only supported --compress-debug-options and
28062 # emitted the traditional GNU format.
28063 elif $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s > /dev/null 2>&1
28064 then
28065 gcc_cv_as_compress_debug=1
28066 gcc_cv_as_compress_debug_option="--compress-debug-sections"
28067 gcc_cv_as_no_compress_debug_option="--nocompress-debug-sections"
28068 else
28069 gcc_cv_as_compress_debug=0
28071 else
28072 echo "configure: failed program was" >&5
28073 cat conftest.s >&5
28075 rm -f conftest.o conftest.s
28078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_compress_debug" >&5
28079 $as_echo "$gcc_cv_as_compress_debug" >&6; }
28083 cat >>confdefs.h <<_ACEOF
28084 #define HAVE_AS_COMPRESS_DEBUG $gcc_cv_as_compress_debug
28085 _ACEOF
28088 cat >>confdefs.h <<_ACEOF
28089 #define AS_COMPRESS_DEBUG_OPTION "$gcc_cv_as_compress_debug_option"
28090 _ACEOF
28093 cat >>confdefs.h <<_ACEOF
28094 #define AS_NO_COMPRESS_DEBUG_OPTION "$gcc_cv_as_no_compress_debug_option"
28095 _ACEOF
28098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
28099 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
28100 if ${gcc_cv_as_lcomm_with_alignment+:} false; then :
28101 $as_echo_n "(cached) " >&6
28102 else
28103 gcc_cv_as_lcomm_with_alignment=no
28104 if test x$gcc_cv_as != x; then
28105 $as_echo '.lcomm bar,4,16' > conftest.s
28106 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28107 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28108 (eval $ac_try) 2>&5
28109 ac_status=$?
28110 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28111 test $ac_status = 0; }; }
28112 then
28113 gcc_cv_as_lcomm_with_alignment=yes
28114 else
28115 echo "configure: failed program was" >&5
28116 cat conftest.s >&5
28118 rm -f conftest.o conftest.s
28121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
28122 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
28123 if test $gcc_cv_as_lcomm_with_alignment = yes; then
28125 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
28130 if test x$with_sysroot = x && test x$host = x$target \
28131 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
28132 && test "$prefix" != "NONE"; then
28134 cat >>confdefs.h <<_ACEOF
28135 #define PREFIX_INCLUDE_DIR "$prefix/include"
28136 _ACEOF
28140 # Determine the version of glibc, if any, used on the target.
28141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target glibc version" >&5
28142 $as_echo_n "checking for target glibc version... " >&6; }
28144 # Check whether --with-glibc-version was given.
28145 if test "${with_glibc_version+set}" = set; then :
28146 withval=$with_glibc_version;
28147 if echo "$with_glibc_version" | grep '^[0-9][0-9]*\.[0-9][0-9]*$'; then
28148 glibc_version_major=`echo "$with_glibc_version" | sed -e 's/\..*//'`
28149 glibc_version_minor=`echo "$with_glibc_version" | sed -e 's/.*\.//'`
28150 else
28151 as_fn_error $? "option --with-glibc-version requires a version number M.N" "$LINENO" 5
28153 else
28155 glibc_version_major=0
28156 glibc_version_minor=0
28157 if test -f $target_header_dir/features.h \
28158 && glibc_version_major_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+[0-9]' $target_header_dir/features.h` \
28159 && glibc_version_minor_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+[0-9]' $target_header_dir/features.h`; then
28160 glibc_version_major=`echo "$glibc_version_major_define" | sed -e 's/.*__GLIBC__[ ]*//'`
28161 glibc_version_minor=`echo "$glibc_version_minor_define" | sed -e 's/.*__GLIBC_MINOR__[ ]*//'`
28165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc_version_major.$glibc_version_minor" >&5
28166 $as_echo "$glibc_version_major.$glibc_version_minor" >&6; }
28168 cat >>confdefs.h <<_ACEOF
28169 #define TARGET_GLIBC_MAJOR $glibc_version_major
28170 _ACEOF
28173 cat >>confdefs.h <<_ACEOF
28174 #define TARGET_GLIBC_MINOR $glibc_version_minor
28175 _ACEOF
28178 # Check whether --enable-gnu-unique-object was given.
28179 if test "${enable_gnu_unique_object+set}" = set; then :
28180 enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
28181 yes | no) ;;
28182 *) as_fn_error $? "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
28183 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
28184 esac
28185 else
28186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
28187 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
28188 if ${gcc_cv_as_gnu_unique_object+:} false; then :
28189 $as_echo_n "(cached) " >&6
28190 else
28191 gcc_cv_as_gnu_unique_object=no
28192 if test $in_tree_gas = yes; then
28193 if test $in_tree_gas_is_elf = yes \
28194 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
28195 then gcc_cv_as_gnu_unique_object=yes
28197 elif test x$gcc_cv_as != x; then
28198 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
28199 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28200 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28201 (eval $ac_try) 2>&5
28202 ac_status=$?
28203 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28204 test $ac_status = 0; }; }
28205 then
28206 gcc_cv_as_gnu_unique_object=yes
28207 else
28208 echo "configure: failed program was" >&5
28209 cat conftest.s >&5
28211 rm -f conftest.o conftest.s
28214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
28215 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
28216 if test $gcc_cv_as_gnu_unique_object = yes; then
28217 # We need to unquote above to to use the definition from config.gcc.
28218 # Also check for ld.so support, i.e. glibc 2.11 or higher.
28220 if test $glibc_version_major -gt 2 \
28221 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 11 ); then :
28222 enable_gnu_unique_object=yes
28229 if test x$enable_gnu_unique_object = xyes; then
28231 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
28235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
28236 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
28237 if ${gcc_cv_as_line_zero+:} false; then :
28238 $as_echo_n "(cached) " >&6
28239 else
28240 gcc_cv_as_line_zero=no
28241 if test $in_tree_gas = yes; then
28242 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
28243 then gcc_cv_as_line_zero=yes
28245 elif test "x$gcc_cv_as" != x; then
28246 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
28247 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
28248 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28249 (eval $ac_try) 2>&5
28250 ac_status=$?
28251 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28252 test $ac_status = 0; }; } &&
28253 test "x`cat conftest.out`" = x
28254 then
28255 gcc_cv_as_line_zero=yes
28256 else
28257 echo "configure: failed program was" >&5
28258 cat conftest.s >&5
28259 echo "configure: error output was" >&5
28260 cat conftest.out >&5
28262 rm -f conftest.o conftest.s conftest.out
28265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
28266 $as_echo "$gcc_cv_as_line_zero" >&6; }
28267 if test "x$gcc_cv_as_line_zero" = xyes; then
28269 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
28273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for thin archives" >&5
28274 $as_echo_n "checking support for thin archives... " >&6; }
28275 thin_archive_support=no
28276 echo 'int main (void) { return 0; }' > conftest.c
28277 if ($AR --version | sed 1q | grep "GNU ar" \
28278 && $CC $CFLAGS -c conftest.c \
28279 && $AR rcT conftest.a conftest.o \
28280 && $CC $CFLAGS $LDFLAGS -o conftest conftest.a) >/dev/null 2>&1; then
28281 thin_archive_support=yes
28283 rm -f conftest.c conftest.o conftest.a conftest
28284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $thin_archive_support" >&5
28285 $as_echo "$thin_archive_support" >&6; }
28288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
28289 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
28290 gcc_cv_ld_eh_frame_hdr=no
28291 if test $in_tree_ld = yes ; then
28292 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 \
28293 && test $in_tree_ld_is_elf = yes; then
28294 gcc_cv_ld_eh_frame_hdr=yes
28296 elif test x$gcc_cv_ld != x; then
28297 if echo "$ld_ver" | grep GNU > /dev/null; then
28298 # Check if linker supports --eh-frame-hdr option
28299 if $gcc_cv_ld --help 2>&1 | grep eh-frame-hdr > /dev/null; then
28300 gcc_cv_ld_eh_frame_hdr=yes
28302 else
28303 case "$target" in
28304 *-*-solaris2*)
28305 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
28306 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2251; then
28307 gcc_cv_ld_eh_frame_hdr=yes
28310 esac
28314 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
28316 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
28319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
28320 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
28322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker CIEv3 in .eh_frame support" >&5
28323 $as_echo_n "checking linker CIEv3 in .eh_frame support... " >&6; }
28324 gcc_cv_ld_eh_frame_ciev3=no
28325 if test $in_tree_ld = yes ; then
28326 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 \
28327 && test $in_tree_ld_is_elf = yes; then
28328 gcc_cv_ld_eh_frame_ciev3=yes
28330 elif test x$gcc_cv_ld != x; then
28331 if echo "$ld_ver" | grep GNU > /dev/null; then
28332 gcc_cv_ld_eh_frame_ciev3=yes
28333 if test 0"$ld_date" -lt 20040513; then
28334 if test -n "$ld_date"; then
28335 # If there was date string, but was earlier than 2004-05-13, fail
28336 gcc_cv_ld_eh_frame_ciev3=no
28337 elif test "$ld_vers_major" -lt 2; then
28338 gcc_cv_ld_eh_frame_ciev3=no
28339 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
28340 gcc_cv_ld_eh_frame_ciev3=no
28343 else
28344 case "$target" in
28345 *-*-solaris2*)
28346 # Sun ld added support for CIE v3 in .eh_frame in Solaris 11.1.
28347 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2324; then
28348 gcc_cv_ld_eh_frame_ciev3=yes
28351 esac
28355 cat >>confdefs.h <<_ACEOF
28356 #define HAVE_LD_EH_FRAME_CIEV3 `if test x"$gcc_cv_ld_eh_frame_ciev3" = xyes; then echo 1; else echo 0; fi`
28357 _ACEOF
28359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_ciev3" >&5
28360 $as_echo "$gcc_cv_ld_eh_frame_ciev3" >&6; }
28362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
28363 $as_echo_n "checking linker position independent executable support... " >&6; }
28364 gcc_cv_ld_pie=no
28365 if test $in_tree_ld = yes ; then
28366 case "$target" in
28367 # Full PIE support on Solaris was only introduced in gld 2.26.
28368 *-*-solaris2*) gcc_gld_pie_min_version=26 ;;
28369 *) gcc_gld_pie_min_version=15 ;;
28370 esac
28371 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 \
28372 && test $in_tree_ld_is_elf = yes; then
28373 gcc_cv_ld_pie=yes
28375 elif test x$gcc_cv_ld != x; then
28376 # Check if linker supports -pie option
28377 if $gcc_cv_ld --help 2>&1 | grep -- -pie > /dev/null; then
28378 gcc_cv_ld_pie=yes
28379 case "$target" in
28380 *-*-solaris2*)
28381 if echo "$ld_ver" | grep GNU > /dev/null \
28382 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
28383 gcc_cv_ld_pie=no
28386 esac
28387 else
28388 case "$target" in
28389 *-*-solaris2.1[1-9]*)
28390 # Solaris 11.3 added PIE support.
28391 if $gcc_cv_ld -z help 2>&1 | grep -- type.*pie > /dev/null; then
28392 gcc_cv_ld_pie=yes
28395 esac
28398 if test x"$gcc_cv_ld_pie" = xyes; then
28400 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
28403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
28404 $as_echo "$gcc_cv_ld_pie" >&6; }
28406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PIE support with copy reloc" >&5
28407 $as_echo_n "checking linker PIE support with copy reloc... " >&6; }
28408 gcc_cv_ld_pie_copyreloc=no
28409 if test $gcc_cv_ld_pie = yes ; then
28410 if test $in_tree_ld = yes ; then
28411 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
28412 gcc_cv_ld_pie_copyreloc=yes
28414 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
28415 # Check if linker supports -pie option with copy reloc
28416 case "$target" in
28417 i?86-*-linux* | x86_64-*-linux*)
28418 cat > conftest1.s <<EOF
28419 .globl a_glob
28420 .data
28421 .type a_glob, @object
28422 .size a_glob, 4
28423 a_glob:
28424 .long 2
28426 cat > conftest2.s <<EOF
28427 .text
28428 .globl main
28429 .type main, @function
28430 main:
28431 movl %eax, a_glob(%rip)
28432 .size main, .-main
28433 .globl ptr
28434 .section .data.rel,"aw",@progbits
28435 .type ptr, @object
28436 ptr:
28437 .quad a_glob
28439 if $gcc_cv_as --64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
28440 && $gcc_cv_ld -shared -melf_x86_64 -o conftest1.so conftest1.o > /dev/null 2>&1 \
28441 && $gcc_cv_as --64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
28442 && $gcc_cv_ld -pie -melf_x86_64 -o conftest conftest2.o conftest1.so > /dev/null 2>&1; then
28443 gcc_cv_ld_pie_copyreloc=yes
28445 rm -f conftest conftest1.so conftest1.o conftest2.o conftest1.s conftest2.s
28447 esac
28451 cat >>confdefs.h <<_ACEOF
28452 #define HAVE_LD_PIE_COPYRELOC `if test x"$gcc_cv_ld_pie_copyreloc" = xyes; then echo 1; else echo 0; fi`
28453 _ACEOF
28455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie_copyreloc" >&5
28456 $as_echo "$gcc_cv_ld_pie_copyreloc" >&6; }
28458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
28459 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
28460 gcc_cv_ld_eh_gc_sections=no
28461 if test $in_tree_ld = yes ; then
28462 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 \
28463 && test $in_tree_ld_is_elf = yes; then
28464 gcc_cv_ld_eh_gc_sections=yes
28466 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
28467 cat > conftest.s <<EOF
28468 .section .text
28469 .globl _start
28470 .type _start, @function
28471 _start:
28472 .long foo
28473 .size _start, .-_start
28474 .section .text.foo,"ax",@progbits
28475 .type foo, @function
28476 foo:
28477 .long 0
28478 .size foo, .-foo
28479 .section .gcc_except_table.foo,"a",@progbits
28480 .L0:
28481 .long 0
28482 .section .eh_frame,"a",@progbits
28483 .long .L0
28485 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
28486 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
28487 | grep "gc-sections option ignored" > /dev/null; then
28488 gcc_cv_ld_eh_gc_sections=no
28489 elif $gcc_cv_objdump -h conftest 2> /dev/null \
28490 | grep gcc_except_table > /dev/null; then
28491 gcc_cv_ld_eh_gc_sections=yes
28492 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
28493 if test x$gcc_cv_as_comdat_group != xyes; then
28494 gcc_cv_ld_eh_gc_sections=no
28495 cat > conftest.s <<EOF
28496 .section .text
28497 .globl _start
28498 .type _start, @function
28499 _start:
28500 .long foo
28501 .size _start, .-_start
28502 .section .gnu.linkonce.t.foo,"ax",@progbits
28503 .type foo, @function
28504 foo:
28505 .long 0
28506 .size foo, .-foo
28507 .section .gcc_except_table.foo,"a",@progbits
28508 .L0:
28509 .long 0
28510 .section .eh_frame,"a",@progbits
28511 .long .L0
28513 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
28514 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
28515 | grep "gc-sections option ignored" > /dev/null; then
28516 gcc_cv_ld_eh_gc_sections=no
28517 elif $gcc_cv_objdump -h conftest 2> /dev/null \
28518 | grep gcc_except_table > /dev/null; then
28519 gcc_cv_ld_eh_gc_sections=yes
28525 rm -f conftest.s conftest.o conftest
28527 case "$target" in
28528 hppa*-*-linux*)
28529 # ??? This apparently exposes a binutils bug with PC-relative relocations.
28530 gcc_cv_ld_eh_gc_sections=no
28532 esac
28533 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
28535 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
28538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
28539 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
28541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
28542 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
28543 gcc_cv_ld_eh_gc_sections_bug=no
28544 if test $in_tree_ld = yes ; then
28545 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 \
28546 && test $in_tree_ld_is_elf = yes; then
28547 gcc_cv_ld_eh_gc_sections_bug=yes
28549 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
28550 gcc_cv_ld_eh_gc_sections_bug=yes
28551 cat > conftest.s <<EOF
28552 .section .text
28553 .globl _start
28554 .type _start, @function
28555 _start:
28556 .long foo
28557 .size _start, .-_start
28558 .section .text.startup.foo,"ax",@progbits
28559 .type foo, @function
28560 foo:
28561 .long 0
28562 .size foo, .-foo
28563 .section .gcc_except_table.foo,"a",@progbits
28564 .L0:
28565 .long 0
28566 .section .eh_frame,"a",@progbits
28567 .long .L0
28569 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
28570 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
28571 | grep "gc-sections option ignored" > /dev/null; then
28573 elif $gcc_cv_objdump -h conftest 2> /dev/null \
28574 | grep gcc_except_table > /dev/null; then
28575 gcc_cv_ld_eh_gc_sections_bug=no
28578 rm -f conftest.s conftest.o conftest
28580 if test x$gcc_cv_ld_eh_gc_sections_bug = xyes; then
28582 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
28585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
28586 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
28588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for compressed debug sections" >&5
28589 $as_echo_n "checking linker for compressed debug sections... " >&6; }
28590 # gold/gld support compressed debug sections since binutils 2.19/2.21
28591 # In binutils 2.26, gld gained support for the ELF gABI format.
28592 if test $in_tree_ld = yes ; then
28593 gcc_cv_ld_compress_debug=0
28594 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 \
28595 && test $in_tree_ld_is_elf = yes && test $ld_is_gold = yes; then
28596 gcc_cv_ld_compress_debug=2
28597 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
28598 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 \
28599 && test $in_tree_ld_is_elf = yes && test $ld_is_gold = no; then
28600 gcc_cv_ld_compress_debug=3
28601 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
28602 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 \
28603 && test $in_tree_ld_is_elf = yes; then
28604 gcc_cv_ld_compress_debug=1
28606 elif echo "$ld_ver" | grep GNU > /dev/null; then
28607 if test "$ld_vers_major" -lt 2 \
28608 || test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 21; then
28609 gcc_cv_ld_compress_debug=0
28610 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
28611 gcc_cv_ld_compress_debug=1
28612 else
28613 gcc_cv_ld_compress_debug=3
28614 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
28616 if test $ld_is_gold = yes; then
28617 gcc_cv_ld_compress_debug=2
28618 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
28620 else
28621 case "${target}" in
28622 *-*-solaris2*)
28623 # Introduced in Solaris 11.2.
28624 if $gcc_cv_ld --help 2>&1 | grep -- '-z compress-sections' > /dev/null; then
28625 gcc_cv_ld_compress_debug=3
28626 gcc_cv_ld_compress_debug_option="-z compress-sections"
28627 else
28628 gcc_cv_ld_compress_debug=0
28632 # Assume linkers other than GNU ld don't support compessed debug
28633 # sections.
28634 gcc_cv_ld_compress_debug=0
28636 esac
28639 cat >>confdefs.h <<_ACEOF
28640 #define HAVE_LD_COMPRESS_DEBUG $gcc_cv_ld_compress_debug
28641 _ACEOF
28644 cat >>confdefs.h <<_ACEOF
28645 #define LD_COMPRESS_DEBUG_OPTION "$gcc_cv_ld_compress_debug_option"
28646 _ACEOF
28648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_compress_debug" >&5
28649 $as_echo "$gcc_cv_ld_compress_debug" >&6; }
28651 if test x"$ld64_flag" = x"yes"; then
28653 # Set defaults for possibly untestable items.
28654 gcc_cv_ld64_export_dynamic=0
28656 if test "$build" = "$host"; then
28657 darwin_try_test=1
28658 else
28659 darwin_try_test=0
28662 # On Darwin, because of FAT library support, it is often possible to execute
28663 # exes from compatible archs even when the host differs from the build system.
28664 case "$build","$host" in
28665 x86_64-*-darwin*,i?86-*-darwin* | powerpc64*-*-darwin*,powerpc*-*-darwin*)
28666 darwin_try_test=1;;
28667 *) ;;
28668 esac
28670 # If the configurer specified a minimum ld64 version to be supported, then use
28671 # that to determine feature support.
28672 if test x"${gcc_cv_ld64_version}" != x; then
28673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ld64 specified version" >&5
28674 $as_echo_n "checking ld64 specified version... " >&6; }
28675 gcc_cv_ld64_major=`echo "$gcc_cv_ld64_version" | sed -e 's/\..*//'`
28676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_major" >&5
28677 $as_echo "$gcc_cv_ld64_major" >&6; }
28678 if test "$gcc_cv_ld64_major" -ge 236; then
28679 gcc_cv_ld64_export_dynamic=1
28681 elif test -x "$gcc_cv_ld" -a "$darwin_try_test" -eq 1; then
28682 # If the version was not specified, try to find it.
28683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker version" >&5
28684 $as_echo_n "checking linker version... " >&6; }
28685 if test x"${gcc_cv_ld64_version}" = x; then
28686 gcc_cv_ld64_version=`$gcc_cv_ld -v 2>&1 | grep ld64 | sed s/.*ld64-// | awk '{print $1}'`
28688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_version" >&5
28689 $as_echo "$gcc_cv_ld64_version" >&6; }
28691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for -export_dynamic support" >&5
28692 $as_echo_n "checking linker for -export_dynamic support... " >&6; }
28693 gcc_cv_ld64_export_dynamic=1
28694 if $gcc_cv_ld -export_dynamic < /dev/null 2>&1 | grep 'unknown option' > /dev/null; then
28695 gcc_cv_ld64_export_dynamic=0
28697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_export_dynamic" >&5
28698 $as_echo "$gcc_cv_ld64_export_dynamic" >&6; }
28701 if test x"${gcc_cv_ld64_version}" != x; then
28703 cat >>confdefs.h <<_ACEOF
28704 #define LD64_VERSION "${gcc_cv_ld64_version}"
28705 _ACEOF
28710 cat >>confdefs.h <<_ACEOF
28711 #define LD64_HAS_EXPORT_DYNAMIC $gcc_cv_ld64_export_dynamic
28712 _ACEOF
28716 # --------
28717 # UNSORTED
28718 # --------
28720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
28721 $as_echo_n "checking linker --as-needed support... " >&6; }
28722 if ${gcc_cv_ld_as_needed+:} false; then :
28723 $as_echo_n "(cached) " >&6
28724 else
28725 gcc_cv_ld_as_needed=no
28726 gcc_cv_ld_as_needed_option='--as-needed'
28727 gcc_cv_ld_no_as_needed_option='--no-as-needed'
28728 if test $in_tree_ld = yes ; then
28729 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 \
28730 && test $in_tree_ld_is_elf = yes; then
28731 gcc_cv_ld_as_needed=yes
28732 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 28; then
28733 gcc_cv_ld_as_needed_option='--push-state --as-needed'
28734 gcc_cv_ld_no_as_needed_option='--pop-state'
28737 elif test x$gcc_cv_ld != x; then
28738 # Check if linker supports --as-needed and --no-as-needed options
28739 if $gcc_cv_ld --help 2>&1 | grep as-needed > /dev/null; then
28740 gcc_cv_ld_as_needed=yes
28741 if $gcc_cv_ld --help 2>&1 | grep push-state > /dev/null \
28742 && $gcc_cv_ld --help 2>&1 | grep pop-state > /dev/null \
28743 && echo "$ld_ver" | grep GNU > /dev/null \
28744 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 28; then
28745 # Use these options only when both ld.bfd and ld.gold support
28746 # --push-state/--pop-state, which unfortunately wasn't added
28747 # at the same time.
28748 gcc_cv_ld_as_needed_option='--push-state --as-needed'
28749 gcc_cv_ld_no_as_needed_option='--pop-state'
28752 case "$target:$gnu_ld" in
28753 *-*-solaris2*:no)
28754 # Solaris 2 ld always supports -z ignore/-z record. Prefer the native
28755 # forms.
28756 gcc_cv_ld_as_needed=yes
28757 gcc_cv_ld_as_needed_option="-z ignore"
28758 gcc_cv_ld_no_as_needed_option="-z record"
28760 esac
28762 # --as-needed/-z ignore can only be used if libgcc_s.so.1 uses
28763 # dl_iterate_phdr, i.e. since Solaris 11.
28764 case "$target" in
28765 *-*-solaris2.1[1-9]*)
28766 case "$target" in
28767 i?86-*-* | x86_64-*-*)
28768 if echo "$ld_ver" | grep GNU > /dev/null; then
28769 # Doesn't work with gld on Solaris/x86 due to PR ld/12320.
28770 gcc_cv_ld_as_needed=no
28773 esac
28775 *-*-solaris2*)
28776 gcc_cv_ld_as_needed=no
28778 esac
28781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
28782 $as_echo "$gcc_cv_ld_as_needed" >&6; }
28783 if test x"$gcc_cv_ld_as_needed" = xyes; then
28785 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
28788 cat >>confdefs.h <<_ACEOF
28789 #define LD_AS_NEEDED_OPTION "$gcc_cv_ld_as_needed_option"
28790 _ACEOF
28793 cat >>confdefs.h <<_ACEOF
28794 #define LD_NO_AS_NEEDED_OPTION "$gcc_cv_ld_no_as_needed_option"
28795 _ACEOF
28799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker mapfile support for clearing hardware capabilities" >&5
28800 $as_echo_n "checking linker mapfile support for clearing hardware capabilities... " >&6; }
28801 saved_LDFLAGS="$LDFLAGS"
28802 for clearcap_map in sol2-clearcapv2.map sol2-clearcap.map; do
28803 LDFLAGS="$saved_LDFLAGS -Wl,-M,${srcdir}/config/$clearcap_map"
28804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28805 /* end confdefs.h. */
28806 int main(void) {return 0;}
28807 _ACEOF
28808 if ac_fn_cxx_try_link "$LINENO"; then :
28809 gcc_cv_ld_clearcap=yes; break
28810 else
28811 gcc_cv_ld_clearcap=no
28813 rm -f core conftest.err conftest.$ac_objext \
28814 conftest$ac_exeext conftest.$ac_ext
28815 done
28816 LDFLAGS="$saved_LDFLAGS"
28817 if test "x$gcc_cv_ld_clearcap" = xyes; then
28819 $as_echo "#define HAVE_LD_CLEARCAP 1" >>confdefs.h
28821 ac_config_links="$ac_config_links clearcap.map:${srcdir}/config/$clearcap_map"
28824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_clearcap" >&5
28825 $as_echo "$gcc_cv_ld_clearcap" >&6; }
28827 case "$target" in
28828 powerpc*-*-*)
28829 case "$target" in
28830 *le-*-linux*)
28831 emul_name="-melf32lppc"
28834 emul_name="-melf32ppc"
28836 esac
28837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker .gnu.attributes long double support" >&5
28838 $as_echo_n "checking linker .gnu.attributes long double support... " >&6; }
28839 if ${gcc_cv_ld_ppc_attr+:} false; then :
28840 $as_echo_n "(cached) " >&6
28841 else
28842 gcc_cv_ld_ppc_attr=no
28843 if test x"$ld_is_gold" = xyes; then
28844 gcc_cv_ld_ppc_attr=yes
28845 elif test $in_tree_ld = yes ; then
28846 if test "$gcc_cv_gld_major_version" -eq 2 \
28847 -a "$gcc_cv_gld_minor_version" -ge 28 \
28848 -o "$gcc_cv_gld_major_version" -gt 2; then
28849 gcc_cv_ld_ppc_attr=yes
28851 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
28852 # check that merging the long double .gnu_attribute doesn't warn
28853 cat > conftest1.s <<EOF
28854 .gnu_attribute 4,1
28856 cat > conftest2.s <<EOF
28857 .gnu_attribute 4,9
28859 if $gcc_cv_as -a32 -o conftest1.o conftest1.s > /dev/null 2>&1 \
28860 && $gcc_cv_as -a32 -o conftest2.o conftest2.s > /dev/null 2>&1 \
28861 && $gcc_cv_ld $emul_name -r -o conftest.o conftest1.o conftest2.o > /dev/null 2> conftest.err \
28862 && test ! -s conftest.err; then
28863 gcc_cv_ld_ppc_attr=yes
28865 rm -f conftest.err conftest.o conftest1.o conftest2.o conftest1.s conftest2.s
28869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ppc_attr" >&5
28870 $as_echo "$gcc_cv_ld_ppc_attr" >&6; }
28871 if test x$gcc_cv_ld_ppc_attr = xyes; then
28873 $as_echo "#define HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE 1" >>confdefs.h
28877 esac
28879 case "$target:$tm_file" in
28880 powerpc64-*-freebsd* | powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
28881 case "$target" in
28882 *le-*-linux*)
28883 emul_name="-melf64lppc"
28885 *-*-linux*)
28886 emul_name="-melf64ppc"
28888 *-*-freebsd*)
28889 emul_name="-melf64ppc_fbsd"
28891 esac
28892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
28893 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
28894 if ${gcc_cv_ld_no_dot_syms+:} false; then :
28895 $as_echo_n "(cached) " >&6
28896 else
28897 gcc_cv_ld_no_dot_syms=no
28898 if test x"$ld_is_gold" = xyes; then
28899 gcc_cv_ld_no_dot_syms=yes
28900 elif test $in_tree_ld = yes ; then
28901 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
28902 gcc_cv_ld_no_dot_syms=yes
28904 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
28905 cat > conftest1.s <<EOF
28906 .text
28907 bl .foo
28909 cat > conftest2.s <<EOF
28910 .section ".opd","aw"
28911 .align 3
28912 .globl foo
28913 .type foo,@function
28914 foo:
28915 .quad .LEfoo,.TOC.@tocbase,0
28916 .text
28917 .LEfoo:
28919 .size foo,.-.LEfoo
28921 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
28922 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
28923 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
28924 gcc_cv_ld_no_dot_syms=yes
28926 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
28930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
28931 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
28932 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
28934 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
28938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
28939 $as_echo_n "checking linker large toc support... " >&6; }
28940 if ${gcc_cv_ld_large_toc+:} false; then :
28941 $as_echo_n "(cached) " >&6
28942 else
28943 gcc_cv_ld_large_toc=no
28944 if test x"$ld_is_gold" = xyes; then
28945 gcc_cv_ld_large_toc=yes
28946 elif test $in_tree_ld = yes ; then
28947 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
28948 gcc_cv_ld_large_toc=yes
28950 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
28951 cat > conftest.s <<EOF
28952 .section ".tbss","awT",@nobits
28953 .align 3
28954 ie0: .space 8
28955 .global _start
28956 .text
28957 _start:
28958 addis 9,13,ie0@got@tprel@ha
28959 ld 9,ie0@got@tprel@l(9)
28961 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
28962 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
28963 gcc_cv_ld_large_toc=yes
28965 rm -f conftest conftest.o conftest.s
28969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
28970 $as_echo "$gcc_cv_ld_large_toc" >&6; }
28971 if test x"$gcc_cv_ld_large_toc" = xyes; then
28973 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
28977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker toc pointer alignment" >&5
28978 $as_echo_n "checking linker toc pointer alignment... " >&6; }
28979 if ${gcc_cv_ld_toc_align+:} false; then :
28980 $as_echo_n "(cached) " >&6
28981 else
28982 if test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_nm != x; then
28983 cat > conftest.s <<EOF
28984 .global _start
28985 .text
28986 _start:
28987 addis 9,2,x@got@ha
28988 .section .data.rel.ro,"aw",@progbits
28989 .p2align 16
28990 .space 32768
28991 x: .quad .TOC.
28993 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
28994 && $gcc_cv_ld $emul_name -z norelro -o conftest conftest.o > /dev/null 2>&1; then
28995 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)) }'`
28997 rm -f conftest conftest.o conftest.s
29001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_toc_align" >&5
29002 $as_echo "$gcc_cv_ld_toc_align" >&6; }
29003 if test -n "$gcc_cv_ld_toc_align" && test $gcc_cv_ld_toc_align -gt 8; then
29005 cat >>confdefs.h <<_ACEOF
29006 #define POWERPC64_TOC_POINTER_ALIGNMENT $gcc_cv_ld_toc_align
29007 _ACEOF
29011 esac
29013 case "$target" in
29014 *-*-aix*)
29015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
29016 $as_echo_n "checking linker large toc support... " >&6; }
29017 if ${gcc_cv_ld_large_toc+:} false; then :
29018 $as_echo_n "(cached) " >&6
29019 else
29020 gcc_cv_ld_large_toc=no
29021 if test x$gcc_cv_as != x ; then
29022 cat > conftest.s <<EOF
29023 .toc
29024 LC..1:
29025 .tc a[TC],a[RW]
29026 .extern a[RW]
29027 .csect .text[PR]
29028 .largetoctest:
29029 addis 9,LC..1@u(2)
29030 ld 3,LC..1@l(9)
29032 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1; then
29033 gcc_cv_ld_large_toc=yes
29035 rm -f conftest conftest.o conftest.s
29039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
29040 $as_echo "$gcc_cv_ld_large_toc" >&6; }
29041 if test x"$gcc_cv_ld_large_toc" = xyes; then
29043 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
29047 esac
29049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
29050 $as_echo_n "checking linker --build-id support... " >&6; }
29051 if ${gcc_cv_ld_buildid+:} false; then :
29052 $as_echo_n "(cached) " >&6
29053 else
29054 gcc_cv_ld_buildid=no
29055 if test $in_tree_ld = yes ; then
29056 if test "$gcc_cv_gld_major_version" -eq 2 -a \
29057 "$gcc_cv_gld_minor_version" -ge 18 -o \
29058 "$gcc_cv_gld_major_version" -gt 2 \
29059 && test $in_tree_ld_is_elf = yes; then
29060 gcc_cv_ld_buildid=yes
29062 elif test x$gcc_cv_ld != x; then
29063 if $gcc_cv_ld --help 2>&1 | grep build-id > /dev/null; then
29064 gcc_cv_ld_buildid=yes
29068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
29069 $as_echo "$gcc_cv_ld_buildid" >&6; }
29070 if test x"$gcc_cv_ld_buildid" = xyes; then
29072 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
29076 # Check whether --enable-linker-build-id was given.
29077 if test "${enable_linker_build_id+set}" = set; then :
29078 enableval=$enable_linker_build_id;
29079 else
29080 enable_linker_build_id=no
29084 if test x"$enable_linker_build_id" = xyes; then
29085 if test x"$gcc_cv_ld_buildid" = xyes; then
29087 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
29089 else
29090 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
29091 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
29095 # In binutils 2.21, GNU ld gained support for new emulations fully
29096 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
29097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
29098 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
29099 if ${gcc_cv_ld_sol2_emulation+:} false; then :
29100 $as_echo_n "(cached) " >&6
29101 else
29102 gcc_cv_ld_sol2_emulation=no
29103 if test $in_tree_ld = yes ; then
29104 if test "$gcc_cv_gld_major_version" -eq 2 -a \
29105 "$gcc_cv_gld_minor_version" -ge 21 -o \
29106 "$gcc_cv_gld_major_version" -gt 2 \
29107 && test $in_tree_ld_is_elf = yes; then
29108 gcc_cv_ld_sol2_emulation=yes
29110 elif test x$gcc_cv_ld != x; then
29111 if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
29112 grep _sol2 > /dev/null; then
29113 gcc_cv_ld_sol2_emulation=yes
29117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
29118 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
29119 if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
29121 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
29125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
29126 $as_echo_n "checking linker --sysroot support... " >&6; }
29127 if ${gcc_cv_ld_sysroot+:} false; then :
29128 $as_echo_n "(cached) " >&6
29129 else
29130 gcc_cv_ld_sysroot=no
29131 if test $in_tree_ld = yes ; then
29132 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
29133 gcc_cv_ld_sysroot=yes
29135 elif test x$gcc_cv_ld != x; then
29136 if $gcc_cv_ld --help 2>&1 | grep sysroot > /dev/null; then
29137 gcc_cv_ld_sysroot=yes
29141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
29142 $as_echo "$gcc_cv_ld_sysroot" >&6; }
29143 if test x"$gcc_cv_ld_sysroot" = xyes; then
29145 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
29149 case $target in
29150 *-*-solaris2*)
29151 # Check for system-provided CRTs on Solaris 11.x and Solaris 12.
29152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking system-provided CRTs on Solaris" >&5
29153 $as_echo_n "checking system-provided CRTs on Solaris... " >&6; }
29154 if ${gcc_cv_solaris_crts+:} false; then :
29155 $as_echo_n "(cached) " >&6
29156 else
29157 gcc_cv_solaris_crts=no
29158 if test x$host != x$target; then
29159 if test "x$with_sysroot" = xyes; then
29160 target_sysroot="${test_exec_prefix}/${target_noncanonical}/sys-root"
29161 else
29162 target_sysroot="${with_sysroot}"
29165 target_libdir="$target_sysroot/usr/lib"
29166 # At the time they were added, gcrt1.o became a symlink for backwards
29167 # compatibility on x86, while crt1.o was added on sparc, so check for that.
29168 case $target in
29169 i?86-*-solaris2* | x86_64-*-solaris2*)
29170 if test -h "$target_libdir/gcrt1.o"; then gcc_cv_solaris_crts=yes; fi
29172 sparc*-*-solaris2*)
29173 if test -f "$target_libdir/crt1.o"; then gcc_cv_solaris_crts=yes; fi
29175 esac
29177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_solaris_crts" >&5
29178 $as_echo "$gcc_cv_solaris_crts" >&6; }
29180 esac
29181 if test x$gcc_cv_solaris_crts = xyes; then
29183 $as_echo "#define HAVE_SOLARIS_CRTS 1" >>confdefs.h
29187 # Check whether --enable-libssp was given.
29188 if test "${enable_libssp+set}" = set; then :
29189 enableval=$enable_libssp; case "${enableval}" in
29190 yes|no)
29193 as_fn_error $? "unknown libssp setting $enableval" "$LINENO" 5
29195 esac
29199 # Test for stack protector support in target C library.
29200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
29201 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
29202 if ${gcc_cv_libc_provides_ssp+:} false; then :
29203 $as_echo_n "(cached) " >&6
29204 else
29205 gcc_cv_libc_provides_ssp=no
29206 if test "x$enable_libssp" = "xno"; then
29207 gcc_cv_libc_provides_ssp=yes
29208 elif test "x$enable_libssp" = "xyes"; then
29209 gcc_cv_libc_provides_ssp=no
29210 else
29211 case "$target" in
29212 *-*-musl*)
29213 # All versions of musl provide stack protector
29214 gcc_cv_libc_provides_ssp=yes;;
29215 *-*-linux* | *-*-kfreebsd*-gnu)
29216 # glibc 2.4 and later provides __stack_chk_fail and
29217 # either __stack_chk_guard, or TLS access to stack guard canary.
29219 if test $glibc_version_major -gt 2 \
29220 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
29221 gcc_cv_libc_provides_ssp=yes
29222 else
29224 if test -f $target_header_dir/features.h \
29225 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
29226 $target_header_dir/features.h > /dev/null; then
29227 if $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
29228 $target_header_dir/features.h > /dev/null && \
29229 test -f $target_header_dir/bits/uClibc_config.h && \
29230 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
29231 $target_header_dir/bits/uClibc_config.h > /dev/null; then
29232 gcc_cv_libc_provides_ssp=yes
29234 # all versions of Bionic support stack protector
29235 elif test -f $target_header_dir/sys/cdefs.h \
29236 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
29237 $target_header_dir/sys/cdefs.h > /dev/null; then
29238 gcc_cv_libc_provides_ssp=yes
29242 *-*-gnu*)
29243 # Avoid complicated tests (see
29244 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
29245 # simply assert that glibc does provide this, which is true for all
29246 # realistically usable GNU/Hurd configurations.
29247 # All supported versions of musl provide it as well
29248 gcc_cv_libc_provides_ssp=yes;;
29249 *-*-darwin* | *-*-freebsd* | *-*-netbsd*)
29250 ac_fn_cxx_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
29251 if test "x$ac_cv_func___stack_chk_fail" = xyes; then :
29252 gcc_cv_libc_provides_ssp=yes
29253 else
29254 echo "no __stack_chk_fail on this target"
29258 *) gcc_cv_libc_provides_ssp=no ;;
29259 esac
29262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
29263 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
29265 if test x$gcc_cv_libc_provides_ssp = xyes; then
29267 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
29271 # Check whether --enable-default-ssp was given.
29272 # Check whether --enable-default-ssp was given.
29273 if test "${enable_default_ssp+set}" = set; then :
29274 enableval=$enable_default_ssp;
29275 if test x$gcc_cv_libc_provides_ssp = xyes; then
29276 case "$target" in
29277 ia64*-*-*) enable_default_ssp=no ;;
29278 *) enable_default_ssp=$enableval ;;
29279 esac
29280 else
29281 enable_default_ssp=no
29283 else
29284 enable_default_ssp=no
29287 if test x$enable_default_ssp = xyes ; then
29289 $as_echo "#define ENABLE_DEFAULT_SSP 1" >>confdefs.h
29294 # Test for <sys/sdt.h> on the target.
29296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
29297 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
29298 have_sys_sdt_h=no
29299 if test -f $target_header_dir/sys/sdt.h; then
29300 have_sys_sdt_h=yes
29302 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
29305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
29306 $as_echo "$have_sys_sdt_h" >&6; }
29308 # Check if TFmode long double should be used by default or not.
29309 # Some glibc targets used DFmode long double, but with glibc 2.4
29310 # and later they can use TFmode.
29311 case "$target" in
29312 powerpc*-*-linux* | \
29313 sparc*-*-linux* | \
29314 s390*-*-linux* | \
29315 alpha*-*-linux*)
29317 # Check whether --with-long-double-128 was given.
29318 if test "${with_long_double_128+set}" = set; then :
29319 withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
29320 else
29322 if test $glibc_version_major -gt 2 \
29323 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
29324 gcc_cv_target_ldbl128=yes
29325 else
29327 gcc_cv_target_ldbl128=no
29328 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
29329 $target_header_dir/bits/wordsize.h > /dev/null 2>&1 \
29330 && gcc_cv_target_ldbl128=yes
29336 esac
29337 if test x$gcc_cv_target_ldbl128 = xyes; then
29339 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
29343 # Check if TFmode long double target should use the IBM extended double or IEEE
29344 # 128-bit floating point formats if long doubles are 128-bits long. The long
29345 # double type can only be switched on powerpc64 bit Linux systems where VSX is
29346 # supported. Other PowerPC systems do not build the IEEE 128-bit emulator in
29347 # libgcc.
29349 # Check whether --with-long-double-format was given.
29350 if test "${with_long_double_format+set}" = set; then :
29351 withval=$with_long_double_format;
29352 case "$target:$with_long_double_format" in
29353 powerpc64le-*-linux*:ieee | powerpc64le-*-linux*:ibm)
29356 powerpc64-*-linux*:ieee | powerpc64-*-linux*:ibm)
29357 # IEEE 128-bit emulation is only built on 64-bit VSX Linux systems
29358 case "$with_cpu" in
29359 power7 | power8 | power9 | power1*)
29363 as_fn_error $? "Configuration option --with-long-double-format is only \
29364 supported if the default cpu is power7 or newer" "$LINENO" 5
29365 with_long_double_format=""
29367 esac
29369 xpowerpc64*-*-linux*:*)
29370 as_fn_error $? "--with-long-double-format argument should be ibm or ieee" "$LINENO" 5
29371 with_long_double_format=""
29374 as_fn_error $? "Configure option --with-long-double-format is only supported \
29375 on 64-bit PowerPC VSX Linux systems" "$LINENO" 5
29376 with_long_double_format=""
29378 esac
29382 # Check if the target LIBC supports exporting the AT_PLATFORM and AT_HWCAP
29383 # values in the TCB. Currently, only GLIBC 2.23 and later support this.
29384 gcc_cv_libc_provides_hwcap_in_tcb=no
29385 case "$target" in
29386 powerpc*-*-linux*)
29388 if test $glibc_version_major -gt 2 \
29389 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 23 ); then :
29390 gcc_cv_libc_provides_hwcap_in_tcb=yes
29393 esac
29394 if test x$gcc_cv_libc_provides_hwcap_in_tcb = xyes; then
29396 $as_echo "#define TARGET_LIBC_PROVIDES_HWCAP_IN_TCB 1" >>confdefs.h
29400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
29401 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
29402 gcc_cv_target_dl_iterate_phdr=unknown
29403 case "$target" in
29404 # Restrict to Solaris 11+. While most of the Solaris 11 linker changes
29405 # were backported to Solaris 10 Update 10, dl_iterate_phdr only lives in
29406 # libdl there, both complicating its use and breaking compatibility
29407 # between Solaris 10 updates.
29408 *-*-solaris2.1[1-9]*)
29409 # <link.h> needs both a dl_iterate_phdr declaration and support for
29410 # compilation with largefile support.
29411 if grep dl_iterate_phdr $target_header_dir/link.h > /dev/null 2>&1 \
29412 && grep 'large file capable' $target_header_dir/link.h > /dev/null 2>&1; then
29413 gcc_cv_target_dl_iterate_phdr=yes
29414 else
29415 gcc_cv_target_dl_iterate_phdr=no
29418 *-*-dragonfly* | *-*-freebsd*)
29419 if grep dl_iterate_phdr $target_header_dir/sys/link_elf.h > /dev/null 2>&1; then
29420 gcc_cv_target_dl_iterate_phdr=yes
29421 else
29422 gcc_cv_target_dl_iterate_phdr=no
29425 *-linux-musl*)
29426 gcc_cv_target_dl_iterate_phdr=yes
29428 esac
29430 if test x$gcc_cv_target_dl_iterate_phdr = xyes; then
29432 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
29435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
29436 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
29438 # We no longer support different GC mechanisms. Emit an error if
29439 # the user configures with --with-gc.
29441 # Check whether --with-gc was given.
29442 if test "${with_gc+set}" = set; then :
29443 withval=$with_gc; as_fn_error $? "Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
29447 # Libraries to use on the host. This will normally be set by the top
29448 # level Makefile. Here we simply capture the value for our Makefile.
29449 if test -z "${HOST_LIBS+set}"; then
29450 HOST_LIBS=
29454 # Use the system's zlib library.
29456 # Use the system's zlib library.
29457 zlibdir="-L\$(top_builddir)/../zlib"
29458 zlibinc="-I\$(top_srcdir)/../zlib"
29460 # Check whether --with-system-zlib was given.
29461 if test "${with_system_zlib+set}" = set; then :
29462 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
29463 zlibdir=
29464 zlibinc=
29474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
29475 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
29476 # Check whether --enable-maintainer-mode was given.
29477 if test "${enable_maintainer_mode+set}" = set; then :
29478 enableval=$enable_maintainer_mode; maintainer_mode=$enableval
29479 else
29480 maintainer_mode=no
29484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
29485 $as_echo "$maintainer_mode" >&6; }
29487 if test "$maintainer_mode" = "yes"; then
29488 MAINT=''
29489 else
29490 MAINT='#'
29494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid linking multiple front-ends at once" >&5
29495 $as_echo_n "checking whether to avoid linking multiple front-ends at once... " >&6; }
29496 # Check whether --enable-link-mutex was given.
29497 if test "${enable_link_mutex+set}" = set; then :
29498 enableval=$enable_link_mutex; do_link_mutex=$enableval
29499 else
29500 do_link_mutex=no
29503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_mutex" >&5
29504 $as_echo "$do_link_mutex" >&6; }
29506 if test "$do_link_mutex" = "yes"; then
29507 DO_LINK_MUTEX=true
29508 else
29509 DO_LINK_MUTEX=false
29513 # --------------
29514 # Language hooks
29515 # --------------
29517 # Make empty files to contain the specs and options for each language.
29518 # Then add #include lines to for a compiler that has specs and/or options.
29520 subdirs=
29521 lang_opt_files=
29522 lang_specs_files=
29523 lang_tree_files=
29524 # These (without "all_") are set in each config-lang.in.
29525 # `language' must be a single word so is spelled singularly.
29526 all_languages=
29527 all_compilers=
29528 all_outputs='Makefile'
29529 # List of language makefile fragments.
29530 all_lang_makefrags=
29531 # Additional files for gengtype
29532 all_gtfiles="$target_gtfiles"
29534 # These are the languages that are set in --enable-languages,
29535 # and are available in the GCC tree.
29536 all_selected_languages=
29538 # Add the language fragments.
29539 # Languages are added via two mechanisms. Some information must be
29540 # recorded in makefile variables, these are defined in config-lang.in.
29541 # We accumulate them and plug them into the main Makefile.
29542 # The other mechanism is a set of hooks for each of the main targets
29543 # like `clean', `install', etc.
29545 language_hooks="Make-hooks"
29547 for lang in ${srcdir}/*/config-lang.in
29549 test "$lang" = "${srcdir}/*/config-lang.in" && continue
29551 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
29552 if test "x$lang_alias" = x
29553 then
29554 echo "$lang doesn't set \$language." 1>&2
29555 exit 1
29557 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
29558 subdirs="$subdirs $subdir"
29560 # $gcc_subdir is where the gcc integration files are to be found
29561 # for a language, both for internal compiler purposes (compiler
29562 # sources implementing front-end to GCC tree converters), and for
29563 # build infrastructure purposes (Make-lang.in, etc.)
29565 # This will be <subdir> (relative to $srcdir) if a line like
29566 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
29567 # is found in <langdir>/config-lang.in, and will remain <langdir>
29568 # otherwise.
29570 # Except for the language alias (fetched above), the regular
29571 # "config-lang.in" contents are always retrieved from $gcc_subdir,
29572 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
29573 # only this and the language alias.
29575 gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
29576 if [ "$gcc_subdir" = "" ]; then
29577 gcc_subdir="$subdir"
29580 case ",$enable_languages," in
29581 *,$lang_alias,*)
29582 all_selected_languages="$all_selected_languages $lang_alias"
29583 if test -f $srcdir/$gcc_subdir/lang-specs.h; then
29584 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
29587 esac
29589 language=
29590 boot_language=
29591 compilers=
29592 outputs=
29593 gtfiles=
29594 subdir_requires=
29595 . ${srcdir}/$gcc_subdir/config-lang.in
29596 if test "x$language" = x
29597 then
29598 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
29599 exit 1
29602 ok=:
29603 case ",$enable_languages," in
29604 *,$lang_alias,*) ;;
29606 for i in $subdir_requires; do
29607 test -f "${srcdir}/$i/config-lang.in" && continue
29608 ok=false
29609 break
29610 done
29612 esac
29613 $ok || continue
29615 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
29616 if test -f $srcdir/$gcc_subdir/lang.opt; then
29617 lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
29618 all_opt_files="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
29620 if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
29621 lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
29623 all_languages="$all_languages $language"
29624 all_compilers="$all_compilers $compilers"
29625 all_outputs="$all_outputs $outputs"
29626 all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
29627 case ",$enable_languages," in
29628 *,lto,*)
29630 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
29632 enable_lto=yes
29635 *) ;;
29636 esac
29637 done
29639 check_languages=
29640 for language in $all_selected_languages
29642 check_languages="$check_languages check-$language"
29643 done
29645 selftest_languages=
29646 for language in $all_selected_languages
29648 selftest_languages="$selftest_languages selftest-$language"
29649 done
29651 # We link each language in with a set of hooks, reached indirectly via
29652 # lang.${target}. Only do so for selected languages.
29654 rm -f Make-hooks
29655 touch Make-hooks
29656 target_list="all.cross start.encap rest.encap tags \
29657 install-common install-man install-info install-pdf install-html dvi \
29658 pdf html uninstall info man srcextra srcman srcinfo \
29659 mostlyclean clean distclean maintainer-clean install-plugin"
29661 for t in $target_list
29664 for lang in $all_selected_languages
29666 x="$x $lang.$t"
29667 done
29668 echo "lang.$t: $x" >> Make-hooks
29669 done
29671 # --------
29672 # Option include files
29673 # --------
29675 ${AWK} -f $srcdir/opt-include.awk $all_opt_files > option-includes.mk
29676 option_includes="option-includes.mk"
29679 # --------
29680 # UNSORTED
29681 # --------
29683 # Create .gdbinit.
29685 echo "dir ." > .gdbinit
29686 echo "dir ${srcdir}" >> .gdbinit
29687 if test x$gdb_needs_out_file_path = xyes
29688 then
29689 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
29691 if test "x$subdirs" != x; then
29692 for s in $subdirs
29694 echo "dir ${srcdir}/$s" >> .gdbinit
29695 done
29697 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
29698 echo "python import sys; sys.path.append('${srcdir}'); import gdbhooks" >> .gdbinit
29700 # Put a breakpoint on __asan_report_error to help with debugging buffer
29701 # overflow.
29702 case "$CFLAGS" in
29703 *-fsanitize=address*)
29704 echo "source ${srcdir}/gdbasan.in" >> .gdbinit
29706 esac
29708 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
29712 # Find a directory in which to install a shared libgcc.
29714 # Check whether --enable-version-specific-runtime-libs was given.
29715 if test "${enable_version_specific_runtime_libs+set}" = set; then :
29716 enableval=$enable_version_specific_runtime_libs;
29720 # Substitute configuration variables
29787 # Echo link setup.
29788 if test x${build} = x${host} ; then
29789 if test x${host} = x${target} ; then
29790 echo "Links are now set up to build a native compiler for ${target}." 1>&2
29791 else
29792 echo "Links are now set up to build a cross-compiler" 1>&2
29793 echo " from ${host} to ${target}." 1>&2
29795 else
29796 if test x${host} = x${target} ; then
29797 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
29798 echo " for ${target}." 1>&2
29799 else
29800 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
29801 echo " from ${host} to ${target}." 1>&2
29810 if test "x${ISLLIBS}" != "x" ; then
29812 $as_echo "#define HAVE_isl 1" >>confdefs.h
29816 # Check for plugin support
29817 # Check whether --enable-plugin was given.
29818 if test "${enable_plugin+set}" = set; then :
29819 enableval=$enable_plugin; enable_plugin=$enableval
29820 else
29821 enable_plugin=yes; default_plugin=yes
29825 pluginlibs=
29826 plugin_check=yes
29828 case "${host}" in
29829 *-*-mingw*)
29830 # Since plugin support under MinGW is not as straightforward as on
29831 # other platforms (e.g., we have to link import library, etc), we
29832 # only enable it if explicitly requested.
29833 if test x"$default_plugin" = x"yes"; then
29834 enable_plugin=no
29835 elif test x"$enable_plugin" = x"yes"; then
29836 # Use make's target variable to derive import library name.
29837 pluginlibs='-Wl,--export-all-symbols -Wl,--out-implib=$@.a'
29838 plugin_check=no
29841 *-*-darwin*)
29842 if test x$build = x$host; then
29843 export_sym_check="nm${exeext} -g"
29844 elif test x$host = x$target; then
29845 export_sym_check="$gcc_cv_nm -g"
29846 else
29847 export_sym_check=
29851 if test x$build = x$host; then
29852 export_sym_check="objdump${exeext} -T"
29853 elif test x$host = x$target; then
29854 export_sym_check="$gcc_cv_objdump -T"
29855 else
29856 export_sym_check=
29859 esac
29861 if test x"$enable_plugin" = x"yes" -a x"$plugin_check" = x"yes"; then
29863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
29864 $as_echo_n "checking for exported symbols... " >&6; }
29865 if test "x$export_sym_check" != x; then
29866 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
29867 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest$ac_exeext > /dev/null 2>&1
29868 if $export_sym_check conftest$ac_exeext | grep foobar > /dev/null; then
29869 : # No need to use a flag
29870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29871 $as_echo "yes" >&6; }
29872 else
29873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29874 $as_echo "yes" >&6; }
29875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
29876 $as_echo_n "checking for -rdynamic... " >&6; }
29877 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest$ac_exeext > /dev/null 2>&1
29878 if $export_sym_check conftest$ac_exeext | grep foobar > /dev/null; then
29879 plugin_rdynamic=yes
29880 pluginlibs="-rdynamic"
29881 else
29882 plugin_rdynamic=no
29883 enable_plugin=no
29885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
29886 $as_echo "$plugin_rdynamic" >&6; }
29888 else
29889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
29890 $as_echo "unable to check" >&6; }
29893 # Check -ldl
29894 saved_LIBS="$LIBS"
29895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
29896 $as_echo_n "checking for library containing dlopen... " >&6; }
29897 if ${ac_cv_search_dlopen+:} false; then :
29898 $as_echo_n "(cached) " >&6
29899 else
29900 ac_func_search_save_LIBS=$LIBS
29901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29902 /* end confdefs.h. */
29904 /* Override any GCC internal prototype to avoid an error.
29905 Use char because int might match the return type of a GCC
29906 builtin and then its argument prototype would still apply. */
29907 #ifdef __cplusplus
29908 extern "C"
29909 #endif
29910 char dlopen ();
29912 main ()
29914 return dlopen ();
29916 return 0;
29918 _ACEOF
29919 for ac_lib in '' dl; do
29920 if test -z "$ac_lib"; then
29921 ac_res="none required"
29922 else
29923 ac_res=-l$ac_lib
29924 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
29926 if ac_fn_cxx_try_link "$LINENO"; then :
29927 ac_cv_search_dlopen=$ac_res
29929 rm -f core conftest.err conftest.$ac_objext \
29930 conftest$ac_exeext
29931 if ${ac_cv_search_dlopen+:} false; then :
29932 break
29934 done
29935 if ${ac_cv_search_dlopen+:} false; then :
29937 else
29938 ac_cv_search_dlopen=no
29940 rm conftest.$ac_ext
29941 LIBS=$ac_func_search_save_LIBS
29943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
29944 $as_echo "$ac_cv_search_dlopen" >&6; }
29945 ac_res=$ac_cv_search_dlopen
29946 if test "$ac_res" != no; then :
29947 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29951 if test x"$ac_cv_search_dlopen" = x"-ldl"; then
29952 pluginlibs="$pluginlibs -ldl"
29954 LIBS="$saved_LIBS"
29956 # Check that we can build shared objects with -fPIC -shared
29957 saved_LDFLAGS="$LDFLAGS"
29958 saved_CFLAGS="$CFLAGS"
29959 case "${host}" in
29960 *-*-darwin*)
29961 CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
29962 CFLAGS="$CFLAGS -fPIC"
29963 LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
29966 CFLAGS="$CFLAGS -fPIC"
29967 LDFLAGS="$LDFLAGS -fPIC -shared"
29969 esac
29970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
29971 $as_echo_n "checking for -fPIC -shared... " >&6; }
29972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29973 /* end confdefs.h. */
29974 extern int X;
29976 main ()
29978 return X == 0;
29980 return 0;
29982 _ACEOF
29983 if ac_fn_cxx_try_link "$LINENO"; then :
29984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29985 $as_echo "yes" >&6; }; have_pic_shared=yes
29986 else
29987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29988 $as_echo "no" >&6; }; have_pic_shared=no
29990 rm -f core conftest.err conftest.$ac_objext \
29991 conftest$ac_exeext conftest.$ac_ext
29992 if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
29993 pluginlibs=
29994 enable_plugin=no
29996 LDFLAGS="$saved_LDFLAGS"
29997 CFLAGS="$saved_CFLAGS"
29999 # If plugin support had been requested but not available, fail.
30000 if test x"$enable_plugin" = x"no" ; then
30001 if test x"$default_plugin" != x"yes"; then
30002 as_fn_error $? "
30003 Building GCC with plugin support requires a host that supports
30004 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
30011 if test x"$enable_plugin" = x"yes"; then
30013 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
30018 # Enable --enable-host-shared
30019 # Check whether --enable-host-shared was given.
30020 if test "${enable_host_shared+set}" = set; then :
30021 enableval=$enable_host_shared; PICFLAG=-fPIC
30022 else
30023 PICFLAG=
30030 # Check whether --enable-libquadmath-support was given.
30031 if test "${enable_libquadmath_support+set}" = set; then :
30032 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
30033 else
30034 ENABLE_LIBQUADMATH_SUPPORT=yes
30037 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
30039 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
30044 # Specify what hash style to use by default.
30046 # Check whether --with-linker-hash-style was given.
30047 if test "${with_linker_hash_style+set}" = set; then :
30048 withval=$with_linker_hash_style; case x"$withval" in
30049 xsysv)
30050 LINKER_HASH_STYLE=sysv
30052 xgnu)
30053 LINKER_HASH_STYLE=gnu
30055 xboth)
30056 LINKER_HASH_STYLE=both
30059 as_fn_error $? "$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
30061 esac
30062 else
30063 LINKER_HASH_STYLE=''
30066 if test x"${LINKER_HASH_STYLE}" != x; then
30068 cat >>confdefs.h <<_ACEOF
30069 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
30070 _ACEOF
30074 # Specify what should be the default of -fdiagnostics-color option.
30076 # Check whether --with-diagnostics-color was given.
30077 if test "${with_diagnostics_color+set}" = set; then :
30078 withval=$with_diagnostics_color; case x"$withval" in
30079 xnever)
30080 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_NO
30082 xauto)
30083 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO
30085 xauto-if-env)
30086 DIAGNOSTICS_COLOR_DEFAULT=-1
30088 xalways)
30089 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_YES
30092 as_fn_error $? "$withval is an invalid option to --with-diagnostics-color" "$LINENO" 5
30094 esac
30095 else
30096 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO
30100 cat >>confdefs.h <<_ACEOF
30101 #define DIAGNOSTICS_COLOR_DEFAULT $DIAGNOSTICS_COLOR_DEFAULT
30102 _ACEOF
30105 # Generate gcc-driver-name.h containing GCC_DRIVER_NAME for the benefit
30106 # of jit/jit-playback.c.
30107 gcc_driver_version=`eval "${get_gcc_base_ver} $srcdir/BASE-VER"`
30108 echo "gcc_driver_version: ${gcc_driver_version}"
30109 cat > gcc-driver-name.h <<EOF
30110 #define GCC_DRIVER_NAME "${target_noncanonical}-gcc-${gcc_driver_version}${exeext}"
30113 # Check whether --enable-default-pie was given.
30114 # Check whether --enable-default-pie was given.
30115 if test "${enable_default_pie+set}" = set; then :
30116 enableval=$enable_default_pie; enable_default_pie=$enableval
30117 else
30118 enable_default_pie=no
30121 if test x$enable_default_pie = xyes ; then
30123 $as_echo "#define ENABLE_DEFAULT_PIE 1" >>confdefs.h
30128 # Check if -fno-PIE works.
30129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fno-PIE option" >&5
30130 $as_echo_n "checking for -fno-PIE option... " >&6; }
30131 if ${gcc_cv_c_no_fpie+:} false; then :
30132 $as_echo_n "(cached) " >&6
30133 else
30134 saved_CXXFLAGS="$CXXFLAGS"
30135 CXXFLAGS="$CXXFLAGS -fno-PIE"
30136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30137 /* end confdefs.h. */
30138 int main(void) {return 0;}
30139 _ACEOF
30140 if ac_fn_cxx_try_compile "$LINENO"; then :
30141 gcc_cv_c_no_fpie=yes
30142 else
30143 gcc_cv_c_no_fpie=no
30145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30146 CXXFLAGS="$saved_CXXFLAGS"
30148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_no_fpie" >&5
30149 $as_echo "$gcc_cv_c_no_fpie" >&6; }
30150 if test "$gcc_cv_c_no_fpie" = "yes"; then
30151 NO_PIE_CFLAGS="-fno-PIE"
30155 # Check if -no-pie works.
30156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -no-pie option" >&5
30157 $as_echo_n "checking for -no-pie option... " >&6; }
30158 if ${gcc_cv_no_pie+:} false; then :
30159 $as_echo_n "(cached) " >&6
30160 else
30161 saved_LDFLAGS="$LDFLAGS"
30162 LDFLAGS="$LDFLAGS -no-pie"
30163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30164 /* end confdefs.h. */
30165 int main(void) {return 0;}
30166 _ACEOF
30167 if ac_fn_cxx_try_link "$LINENO"; then :
30168 gcc_cv_no_pie=yes
30169 else
30170 gcc_cv_no_pie=no
30172 rm -f core conftest.err conftest.$ac_objext \
30173 conftest$ac_exeext conftest.$ac_ext
30174 LDFLAGS="$saved_LDFLAGS"
30176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_no_pie" >&5
30177 $as_echo "$gcc_cv_no_pie" >&6; }
30178 if test "$gcc_cv_no_pie" = "yes"; then
30179 NO_PIE_FLAG="-no-pie"
30183 # Check linker supports '-z bndplt'
30184 ld_bndplt_support=no
30185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -z bndplt option" >&5
30186 $as_echo_n "checking linker -z bndplt option... " >&6; }
30187 if test x"$ld_is_gold" = xno; then
30188 if test $in_tree_ld = yes ; then
30189 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
30190 ld_bndplt_support=yes
30192 elif test x$gcc_cv_ld != x; then
30193 # Check if linker supports -a bndplt option
30194 if $gcc_cv_ld --help 2>&1 | grep -- '-z bndplt' > /dev/null; then
30195 ld_bndplt_support=yes
30199 if test x"$ld_bndplt_support" = xyes; then
30201 $as_echo "#define HAVE_LD_BNDPLT_SUPPORT 1" >>confdefs.h
30204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_bndplt_support" >&5
30205 $as_echo "$ld_bndplt_support" >&6; }
30207 # Check linker supports '--push-state'/'--pop-state'
30208 ld_pushpopstate_support=no
30209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --push-state/--pop-state options" >&5
30210 $as_echo_n "checking linker --push-state/--pop-state options... " >&6; }
30211 if test x"$ld_is_gold" = xno; then
30212 if test $in_tree_ld = yes ; then
30213 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
30214 ld_pushpopstate_support=yes
30216 elif test x$gcc_cv_ld != x; then
30217 # Check if linker supports --push-state/--pop-state options
30218 if $gcc_cv_ld --help 2>&1 | grep -- '--push-state' > /dev/null; then
30219 ld_pushpopstate_support=yes
30223 if test x"$ld_pushpopstate_support" = xyes; then
30225 $as_echo "#define HAVE_LD_PUSHPOPSTATE_SUPPORT 1" >>confdefs.h
30228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_pushpopstate_support" >&5
30229 $as_echo "$ld_pushpopstate_support" >&6; }
30231 # Configure the subdirectories
30232 # AC_CONFIG_SUBDIRS($subdirs)
30234 # Create the Makefile
30235 # and configure language subdirectories
30236 ac_config_files="$ac_config_files $all_outputs"
30239 ac_config_commands="$ac_config_commands default"
30241 cat >confcache <<\_ACEOF
30242 # This file is a shell script that caches the results of configure
30243 # tests run on this system so they can be shared between configure
30244 # scripts and configure runs, see configure's option --config-cache.
30245 # It is not useful on other systems. If it contains results you don't
30246 # want to keep, you may remove or edit it.
30248 # config.status only pays attention to the cache file if you give it
30249 # the --recheck option to rerun configure.
30251 # `ac_cv_env_foo' variables (set or unset) will be overridden when
30252 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30253 # following values.
30255 _ACEOF
30257 # The following way of writing the cache mishandles newlines in values,
30258 # but we know of no workaround that is simple, portable, and efficient.
30259 # So, we kill variables containing newlines.
30260 # Ultrix sh set writes to stderr and can't be redirected directly,
30261 # and sets the high bit in the cache file unless we assign to the vars.
30263 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
30264 eval ac_val=\$$ac_var
30265 case $ac_val in #(
30266 *${as_nl}*)
30267 case $ac_var in #(
30268 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
30269 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
30270 esac
30271 case $ac_var in #(
30272 _ | IFS | as_nl) ;; #(
30273 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
30274 *) { eval $ac_var=; unset $ac_var;} ;;
30275 esac ;;
30276 esac
30277 done
30279 (set) 2>&1 |
30280 case $as_nl`(ac_space=' '; set) 2>&1` in #(
30281 *${as_nl}ac_space=\ *)
30282 # `set' does not quote correctly, so add quotes: double-quote
30283 # substitution turns \\\\ into \\, and sed turns \\ into \.
30284 sed -n \
30285 "s/'/'\\\\''/g;
30286 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30287 ;; #(
30289 # `set' quotes correctly as required by POSIX, so do not add quotes.
30290 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
30292 esac |
30293 sort
30295 sed '
30296 /^ac_cv_env_/b end
30297 t clear
30298 :clear
30299 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30300 t end
30301 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30302 :end' >>confcache
30303 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
30304 if test -w "$cache_file"; then
30305 if test "x$cache_file" != "x/dev/null"; then
30306 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
30307 $as_echo "$as_me: updating cache $cache_file" >&6;}
30308 if test ! -f "$cache_file" || test -h "$cache_file"; then
30309 cat confcache >"$cache_file"
30310 else
30311 case $cache_file in #(
30312 */* | ?:*)
30313 mv -f confcache "$cache_file"$$ &&
30314 mv -f "$cache_file"$$ "$cache_file" ;; #(
30316 mv -f confcache "$cache_file" ;;
30317 esac
30320 else
30321 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
30322 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
30325 rm -f confcache
30327 test "x$prefix" = xNONE && prefix=$ac_default_prefix
30328 # Let make expand exec_prefix.
30329 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30331 DEFS=-DHAVE_CONFIG_H
30333 ac_libobjs=
30334 ac_ltlibobjs=
30336 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30337 # 1. Remove the extension, and $U if already installed.
30338 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
30339 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
30340 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
30341 # will be set to the directory where LIBOBJS objects are built.
30342 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
30343 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
30344 done
30345 LIBOBJS=$ac_libobjs
30347 LTLIBOBJS=$ac_ltlibobjs
30352 : "${CONFIG_STATUS=./config.status}"
30353 ac_write_fail=0
30354 ac_clean_files_save=$ac_clean_files
30355 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30356 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
30357 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
30358 as_write_fail=0
30359 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
30360 #! $SHELL
30361 # Generated by $as_me.
30362 # Run this file to recreate the current configuration.
30363 # Compiler output produced by configure, useful for debugging
30364 # configure, is in config.log if it exists.
30366 debug=false
30367 ac_cs_recheck=false
30368 ac_cs_silent=false
30370 SHELL=\${CONFIG_SHELL-$SHELL}
30371 export SHELL
30372 _ASEOF
30373 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
30374 ## -------------------- ##
30375 ## M4sh Initialization. ##
30376 ## -------------------- ##
30378 # Be more Bourne compatible
30379 DUALCASE=1; export DUALCASE # for MKS sh
30380 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
30381 emulate sh
30382 NULLCMD=:
30383 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
30384 # is contrary to our usage. Disable this feature.
30385 alias -g '${1+"$@"}'='"$@"'
30386 setopt NO_GLOB_SUBST
30387 else
30388 case `(set -o) 2>/dev/null` in #(
30389 *posix*) :
30390 set -o posix ;; #(
30391 *) :
30393 esac
30397 as_nl='
30399 export as_nl
30400 # Printing a long string crashes Solaris 7 /usr/bin/printf.
30401 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
30402 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
30403 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
30404 # Prefer a ksh shell builtin over an external printf program on Solaris,
30405 # but without wasting forks for bash or zsh.
30406 if test -z "$BASH_VERSION$ZSH_VERSION" \
30407 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
30408 as_echo='print -r --'
30409 as_echo_n='print -rn --'
30410 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
30411 as_echo='printf %s\n'
30412 as_echo_n='printf %s'
30413 else
30414 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
30415 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
30416 as_echo_n='/usr/ucb/echo -n'
30417 else
30418 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
30419 as_echo_n_body='eval
30420 arg=$1;
30421 case $arg in #(
30422 *"$as_nl"*)
30423 expr "X$arg" : "X\\(.*\\)$as_nl";
30424 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
30425 esac;
30426 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
30428 export as_echo_n_body
30429 as_echo_n='sh -c $as_echo_n_body as_echo'
30431 export as_echo_body
30432 as_echo='sh -c $as_echo_body as_echo'
30435 # The user is always right.
30436 if test "${PATH_SEPARATOR+set}" != set; then
30437 PATH_SEPARATOR=:
30438 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
30439 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
30440 PATH_SEPARATOR=';'
30445 # IFS
30446 # We need space, tab and new line, in precisely that order. Quoting is
30447 # there to prevent editors from complaining about space-tab.
30448 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
30449 # splitting by setting IFS to empty value.)
30450 IFS=" "" $as_nl"
30452 # Find who we are. Look in the path if we contain no directory separator.
30453 as_myself=
30454 case $0 in #((
30455 *[\\/]* ) as_myself=$0 ;;
30456 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30457 for as_dir in $PATH
30459 IFS=$as_save_IFS
30460 test -z "$as_dir" && as_dir=.
30461 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30462 done
30463 IFS=$as_save_IFS
30466 esac
30467 # We did not find ourselves, most probably we were run as `sh COMMAND'
30468 # in which case we are not to be found in the path.
30469 if test "x$as_myself" = x; then
30470 as_myself=$0
30472 if test ! -f "$as_myself"; then
30473 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
30474 exit 1
30477 # Unset variables that we do not need and which cause bugs (e.g. in
30478 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
30479 # suppresses any "Segmentation fault" message there. '((' could
30480 # trigger a bug in pdksh 5.2.14.
30481 for as_var in BASH_ENV ENV MAIL MAILPATH
30482 do eval test x\${$as_var+set} = xset \
30483 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
30484 done
30485 PS1='$ '
30486 PS2='> '
30487 PS4='+ '
30489 # NLS nuisances.
30490 LC_ALL=C
30491 export LC_ALL
30492 LANGUAGE=C
30493 export LANGUAGE
30495 # CDPATH.
30496 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
30499 # as_fn_error STATUS ERROR [LINENO LOG_FD]
30500 # ----------------------------------------
30501 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
30502 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
30503 # script with STATUS, using 1 if that was 0.
30504 as_fn_error ()
30506 as_status=$1; test $as_status -eq 0 && as_status=1
30507 if test "$4"; then
30508 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
30509 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
30511 $as_echo "$as_me: error: $2" >&2
30512 as_fn_exit $as_status
30513 } # as_fn_error
30516 # as_fn_set_status STATUS
30517 # -----------------------
30518 # Set $? to STATUS, without forking.
30519 as_fn_set_status ()
30521 return $1
30522 } # as_fn_set_status
30524 # as_fn_exit STATUS
30525 # -----------------
30526 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
30527 as_fn_exit ()
30529 set +e
30530 as_fn_set_status $1
30531 exit $1
30532 } # as_fn_exit
30534 # as_fn_unset VAR
30535 # ---------------
30536 # Portably unset VAR.
30537 as_fn_unset ()
30539 { eval $1=; unset $1;}
30541 as_unset=as_fn_unset
30542 # as_fn_append VAR VALUE
30543 # ----------------------
30544 # Append the text in VALUE to the end of the definition contained in VAR. Take
30545 # advantage of any shell optimizations that allow amortized linear growth over
30546 # repeated appends, instead of the typical quadratic growth present in naive
30547 # implementations.
30548 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
30549 eval 'as_fn_append ()
30551 eval $1+=\$2
30553 else
30554 as_fn_append ()
30556 eval $1=\$$1\$2
30558 fi # as_fn_append
30560 # as_fn_arith ARG...
30561 # ------------------
30562 # Perform arithmetic evaluation on the ARGs, and store the result in the
30563 # global $as_val. Take advantage of shells that can avoid forks. The arguments
30564 # must be portable across $(()) and expr.
30565 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
30566 eval 'as_fn_arith ()
30568 as_val=$(( $* ))
30570 else
30571 as_fn_arith ()
30573 as_val=`expr "$@" || test $? -eq 1`
30575 fi # as_fn_arith
30578 if expr a : '\(a\)' >/dev/null 2>&1 &&
30579 test "X`expr 00001 : '.*\(...\)'`" = X001; then
30580 as_expr=expr
30581 else
30582 as_expr=false
30585 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
30586 as_basename=basename
30587 else
30588 as_basename=false
30591 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
30592 as_dirname=dirname
30593 else
30594 as_dirname=false
30597 as_me=`$as_basename -- "$0" ||
30598 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30599 X"$0" : 'X\(//\)$' \| \
30600 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
30601 $as_echo X/"$0" |
30602 sed '/^.*\/\([^/][^/]*\)\/*$/{
30603 s//\1/
30606 /^X\/\(\/\/\)$/{
30607 s//\1/
30610 /^X\/\(\/\).*/{
30611 s//\1/
30614 s/.*/./; q'`
30616 # Avoid depending upon Character Ranges.
30617 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30618 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30619 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30620 as_cr_digits='0123456789'
30621 as_cr_alnum=$as_cr_Letters$as_cr_digits
30623 ECHO_C= ECHO_N= ECHO_T=
30624 case `echo -n x` in #(((((
30625 -n*)
30626 case `echo 'xy\c'` in
30627 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
30628 xy) ECHO_C='\c';;
30629 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
30630 ECHO_T=' ';;
30631 esac;;
30633 ECHO_N='-n';;
30634 esac
30636 rm -f conf$$ conf$$.exe conf$$.file
30637 if test -d conf$$.dir; then
30638 rm -f conf$$.dir/conf$$.file
30639 else
30640 rm -f conf$$.dir
30641 mkdir conf$$.dir 2>/dev/null
30643 if (echo >conf$$.file) 2>/dev/null; then
30644 if ln -s conf$$.file conf$$ 2>/dev/null; then
30645 as_ln_s='ln -s'
30646 # ... but there are two gotchas:
30647 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
30648 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
30649 # In both cases, we have to default to `cp -pR'.
30650 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
30651 as_ln_s='cp -pR'
30652 elif ln conf$$.file conf$$ 2>/dev/null; then
30653 as_ln_s=ln
30654 else
30655 as_ln_s='cp -pR'
30657 else
30658 as_ln_s='cp -pR'
30660 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
30661 rmdir conf$$.dir 2>/dev/null
30664 # as_fn_mkdir_p
30665 # -------------
30666 # Create "$as_dir" as a directory, including parents if necessary.
30667 as_fn_mkdir_p ()
30670 case $as_dir in #(
30671 -*) as_dir=./$as_dir;;
30672 esac
30673 test -d "$as_dir" || eval $as_mkdir_p || {
30674 as_dirs=
30675 while :; do
30676 case $as_dir in #(
30677 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
30678 *) as_qdir=$as_dir;;
30679 esac
30680 as_dirs="'$as_qdir' $as_dirs"
30681 as_dir=`$as_dirname -- "$as_dir" ||
30682 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30683 X"$as_dir" : 'X\(//\)[^/]' \| \
30684 X"$as_dir" : 'X\(//\)$' \| \
30685 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
30686 $as_echo X"$as_dir" |
30687 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30688 s//\1/
30691 /^X\(\/\/\)[^/].*/{
30692 s//\1/
30695 /^X\(\/\/\)$/{
30696 s//\1/
30699 /^X\(\/\).*/{
30700 s//\1/
30703 s/.*/./; q'`
30704 test -d "$as_dir" && break
30705 done
30706 test -z "$as_dirs" || eval "mkdir $as_dirs"
30707 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
30710 } # as_fn_mkdir_p
30711 if mkdir -p . 2>/dev/null; then
30712 as_mkdir_p='mkdir -p "$as_dir"'
30713 else
30714 test -d ./-p && rmdir ./-p
30715 as_mkdir_p=false
30719 # as_fn_executable_p FILE
30720 # -----------------------
30721 # Test if FILE is an executable regular file.
30722 as_fn_executable_p ()
30724 test -f "$1" && test -x "$1"
30725 } # as_fn_executable_p
30726 as_test_x='test -x'
30727 as_executable_p=as_fn_executable_p
30729 # Sed expression to map a string onto a valid CPP name.
30730 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30732 # Sed expression to map a string onto a valid variable name.
30733 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30736 exec 6>&1
30737 ## ----------------------------------- ##
30738 ## Main body of $CONFIG_STATUS script. ##
30739 ## ----------------------------------- ##
30740 _ASEOF
30741 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
30743 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30744 # Save the log message, to keep $0 and so on meaningful, and to
30745 # report actual input values of CONFIG_FILES etc. instead of their
30746 # values after options handling.
30747 ac_log="
30748 This file was extended by $as_me, which was
30749 generated by GNU Autoconf 2.69. Invocation command line was
30751 CONFIG_FILES = $CONFIG_FILES
30752 CONFIG_HEADERS = $CONFIG_HEADERS
30753 CONFIG_LINKS = $CONFIG_LINKS
30754 CONFIG_COMMANDS = $CONFIG_COMMANDS
30755 $ $0 $@
30757 on `(hostname || uname -n) 2>/dev/null | sed 1q`
30760 _ACEOF
30762 case $ac_config_files in *"
30763 "*) set x $ac_config_files; shift; ac_config_files=$*;;
30764 esac
30766 case $ac_config_headers in *"
30767 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
30768 esac
30771 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30772 # Files that config.status was made for.
30773 config_files="$ac_config_files"
30774 config_headers="$ac_config_headers"
30775 config_links="$ac_config_links"
30776 config_commands="$ac_config_commands"
30778 _ACEOF
30780 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30781 ac_cs_usage="\
30782 \`$as_me' instantiates files and other configuration actions
30783 from templates according to the current configuration. Unless the files
30784 and actions are specified as TAGs, all are instantiated by default.
30786 Usage: $0 [OPTION]... [TAG]...
30788 -h, --help print this help, then exit
30789 -V, --version print version number and configuration settings, then exit
30790 --config print configuration, then exit
30791 -q, --quiet, --silent
30792 do not print progress messages
30793 -d, --debug don't remove temporary files
30794 --recheck update $as_me by reconfiguring in the same conditions
30795 --file=FILE[:TEMPLATE]
30796 instantiate the configuration file FILE
30797 --header=FILE[:TEMPLATE]
30798 instantiate the configuration header FILE
30800 Configuration files:
30801 $config_files
30803 Configuration headers:
30804 $config_headers
30806 Configuration links:
30807 $config_links
30809 Configuration commands:
30810 $config_commands
30812 Report bugs to the package provider."
30814 _ACEOF
30815 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30816 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
30817 ac_cs_version="\\
30818 config.status
30819 configured by $0, generated by GNU Autoconf 2.69,
30820 with options \\"\$ac_cs_config\\"
30822 Copyright (C) 2012 Free Software Foundation, Inc.
30823 This config.status script is free software; the Free Software Foundation
30824 gives unlimited permission to copy, distribute and modify it."
30826 ac_pwd='$ac_pwd'
30827 srcdir='$srcdir'
30828 AWK='$AWK'
30829 test -n "\$AWK" || AWK=awk
30830 _ACEOF
30832 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30833 # The default lists apply if the user does not specify any file.
30834 ac_need_defaults=:
30835 while test $# != 0
30837 case $1 in
30838 --*=?*)
30839 ac_option=`expr "X$1" : 'X\([^=]*\)='`
30840 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
30841 ac_shift=:
30843 --*=)
30844 ac_option=`expr "X$1" : 'X\([^=]*\)='`
30845 ac_optarg=
30846 ac_shift=:
30849 ac_option=$1
30850 ac_optarg=$2
30851 ac_shift=shift
30853 esac
30855 case $ac_option in
30856 # Handling of the options.
30857 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30858 ac_cs_recheck=: ;;
30859 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
30860 $as_echo "$ac_cs_version"; exit ;;
30861 --config | --confi | --conf | --con | --co | --c )
30862 $as_echo "$ac_cs_config"; exit ;;
30863 --debug | --debu | --deb | --de | --d | -d )
30864 debug=: ;;
30865 --file | --fil | --fi | --f )
30866 $ac_shift
30867 case $ac_optarg in
30868 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30869 '') as_fn_error $? "missing file argument" ;;
30870 esac
30871 as_fn_append CONFIG_FILES " '$ac_optarg'"
30872 ac_need_defaults=false;;
30873 --header | --heade | --head | --hea )
30874 $ac_shift
30875 case $ac_optarg in
30876 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30877 esac
30878 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
30879 ac_need_defaults=false;;
30880 --he | --h)
30881 # Conflict between --help and --header
30882 as_fn_error $? "ambiguous option: \`$1'
30883 Try \`$0 --help' for more information.";;
30884 --help | --hel | -h )
30885 $as_echo "$ac_cs_usage"; exit ;;
30886 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30887 | -silent | --silent | --silen | --sile | --sil | --si | --s)
30888 ac_cs_silent=: ;;
30890 # This is an error.
30891 -*) as_fn_error $? "unrecognized option: \`$1'
30892 Try \`$0 --help' for more information." ;;
30894 *) as_fn_append ac_config_targets " $1"
30895 ac_need_defaults=false ;;
30897 esac
30898 shift
30899 done
30901 ac_configure_extra_args=
30903 if $ac_cs_silent; then
30904 exec 6>/dev/null
30905 ac_configure_extra_args="$ac_configure_extra_args --silent"
30908 _ACEOF
30909 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30910 if \$ac_cs_recheck; then
30911 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30912 shift
30913 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
30914 CONFIG_SHELL='$SHELL'
30915 export CONFIG_SHELL
30916 exec "\$@"
30919 _ACEOF
30920 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30921 exec 5>>config.log
30923 echo
30924 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30925 ## Running $as_me. ##
30926 _ASBOX
30927 $as_echo "$ac_log"
30928 } >&5
30930 _ACEOF
30931 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30933 # INIT-COMMANDS
30935 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
30936 subdirs="$subdirs" ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
30937 subdirs='$subdirs'
30939 _ACEOF
30941 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30943 # Handling of arguments.
30944 for ac_config_target in $ac_config_targets
30946 case $ac_config_target in
30947 "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
30948 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
30949 "gccdepdir") CONFIG_COMMANDS="$CONFIG_COMMANDS gccdepdir" ;;
30950 "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
30951 "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
30952 "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
30953 "clearcap.map") CONFIG_LINKS="$CONFIG_LINKS clearcap.map:${srcdir}/config/$clearcap_map" ;;
30954 "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
30955 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
30957 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
30958 esac
30959 done
30962 # If the user did not use the arguments to specify the items to instantiate,
30963 # then the envvar interface is used. Set only those that are not.
30964 # We use the long form for the default assignment because of an extremely
30965 # bizarre bug on SunOS 4.1.3.
30966 if $ac_need_defaults; then
30967 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30968 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
30969 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
30970 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
30973 # Have a temporary directory for convenience. Make it in the build tree
30974 # simply because there is no reason against having it here, and in addition,
30975 # creating and moving files from /tmp can sometimes cause problems.
30976 # Hook for its removal unless debugging.
30977 # Note that there is a small window in which the directory will not be cleaned:
30978 # after its creation but before its name has been assigned to `$tmp'.
30979 $debug ||
30981 tmp= ac_tmp=
30982 trap 'exit_status=$?
30983 : "${ac_tmp:=$tmp}"
30984 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
30986 trap 'as_fn_exit 1' 1 2 13 15
30988 # Create a (secure) tmp directory for tmp files.
30991 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
30992 test -d "$tmp"
30993 } ||
30995 tmp=./conf$$-$RANDOM
30996 (umask 077 && mkdir "$tmp")
30997 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
30998 ac_tmp=$tmp
31000 # Set up the scripts for CONFIG_FILES section.
31001 # No need to generate them if there are no CONFIG_FILES.
31002 # This happens for instance with `./config.status config.h'.
31003 if test -n "$CONFIG_FILES"; then
31005 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
31006 ac_cs_awk_getline=:
31007 ac_cs_awk_pipe_init=
31008 ac_cs_awk_read_file='
31009 while ((getline aline < (F[key])) > 0)
31010 print(aline)
31011 close(F[key])'
31012 ac_cs_awk_pipe_fini=
31013 else
31014 ac_cs_awk_getline=false
31015 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
31016 ac_cs_awk_read_file='
31017 print "|#_!!_#|"
31018 print "cat " F[key] " &&"
31019 '$ac_cs_awk_pipe_init
31020 # The final `:' finishes the AND list.
31021 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
31023 ac_cr=`echo X | tr X '\015'`
31024 # On cygwin, bash can eat \r inside `` if the user requested igncr.
31025 # But we know of no other shell where ac_cr would be empty at this
31026 # point, so we can use a bashism as a fallback.
31027 if test "x$ac_cr" = x; then
31028 eval ac_cr=\$\'\\r\'
31030 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
31031 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
31032 ac_cs_awk_cr='\\r'
31033 else
31034 ac_cs_awk_cr=$ac_cr
31037 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
31038 _ACEOF
31040 # Create commands to substitute file output variables.
31042 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
31043 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
31044 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
31045 echo "_ACAWK" &&
31046 echo "_ACEOF"
31047 } >conf$$files.sh &&
31048 . ./conf$$files.sh ||
31049 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
31050 rm -f conf$$files.sh
31053 echo "cat >conf$$subs.awk <<_ACEOF" &&
31054 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
31055 echo "_ACEOF"
31056 } >conf$$subs.sh ||
31057 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
31058 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
31059 ac_delim='%!_!# '
31060 for ac_last_try in false false false false false :; do
31061 . ./conf$$subs.sh ||
31062 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
31064 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
31065 if test $ac_delim_n = $ac_delim_num; then
31066 break
31067 elif $ac_last_try; then
31068 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
31069 else
31070 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31072 done
31073 rm -f conf$$subs.sh
31075 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31076 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
31077 _ACEOF
31078 sed -n '
31080 s/^/S["/; s/!.*/"]=/
31083 s/^[^!]*!//
31084 :repl
31085 t repl
31086 s/'"$ac_delim"'$//
31087 t delim
31090 s/\(.\{148\}\)..*/\1/
31091 t more1
31092 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
31095 b repl
31096 :more1
31097 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
31100 s/.\{148\}//
31101 t nl
31102 :delim
31104 s/\(.\{148\}\)..*/\1/
31105 t more2
31106 s/["\\]/\\&/g; s/^/"/; s/$/"/
31109 :more2
31110 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
31113 s/.\{148\}//
31114 t delim
31115 ' <conf$$subs.awk | sed '
31116 /^[^""]/{
31118 s/\n//
31120 ' >>$CONFIG_STATUS || ac_write_fail=1
31121 rm -f conf$$subs.awk
31122 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31123 _ACAWK
31124 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
31125 for (key in S) S_is_set[key] = 1
31126 FS = "\a"
31127 \$ac_cs_awk_pipe_init
31130 line = $ 0
31131 nfields = split(line, field, "@")
31132 substed = 0
31133 len = length(field[1])
31134 for (i = 2; i < nfields; i++) {
31135 key = field[i]
31136 keylen = length(key)
31137 if (S_is_set[key]) {
31138 value = S[key]
31139 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
31140 len += length(value) + length(field[++i])
31141 substed = 1
31142 } else
31143 len += 1 + keylen
31145 if (nfields == 3 && !substed) {
31146 key = field[2]
31147 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
31148 \$ac_cs_awk_read_file
31149 next
31152 print line
31154 \$ac_cs_awk_pipe_fini
31155 _ACAWK
31156 _ACEOF
31157 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31158 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
31159 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
31160 else
31162 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
31163 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
31164 _ACEOF
31166 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
31167 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
31168 # trailing colons and then remove the whole line if VPATH becomes empty
31169 # (actually we leave an empty line to preserve line numbers).
31170 if test "x$srcdir" = x.; then
31171 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
31173 s///
31174 s/^/:/
31175 s/[ ]*$/:/
31176 s/:\$(srcdir):/:/g
31177 s/:\${srcdir}:/:/g
31178 s/:@srcdir@:/:/g
31179 s/^:*//
31180 s/:*$//
31182 s/\(=[ ]*\).*/\1/
31184 s/\n//
31185 s/^[^=]*=[ ]*$//
31189 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31190 fi # test -n "$CONFIG_FILES"
31192 # Set up the scripts for CONFIG_HEADERS section.
31193 # No need to generate them if there are no CONFIG_HEADERS.
31194 # This happens for instance with `./config.status Makefile'.
31195 if test -n "$CONFIG_HEADERS"; then
31196 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
31197 BEGIN {
31198 _ACEOF
31200 # Transform confdefs.h into an awk script `defines.awk', embedded as
31201 # here-document in config.status, that substitutes the proper values into
31202 # config.h.in to produce config.h.
31204 # Create a delimiter string that does not exist in confdefs.h, to ease
31205 # handling of long lines.
31206 ac_delim='%!_!# '
31207 for ac_last_try in false false :; do
31208 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
31209 if test -z "$ac_tt"; then
31210 break
31211 elif $ac_last_try; then
31212 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
31213 else
31214 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31216 done
31218 # For the awk script, D is an array of macro values keyed by name,
31219 # likewise P contains macro parameters if any. Preserve backslash
31220 # newline sequences.
31222 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
31223 sed -n '
31224 s/.\{148\}/&'"$ac_delim"'/g
31225 t rset
31226 :rset
31227 s/^[ ]*#[ ]*define[ ][ ]*/ /
31228 t def
31230 :def
31231 s/\\$//
31232 t bsnl
31233 s/["\\]/\\&/g
31234 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
31235 D["\1"]=" \3"/p
31236 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
31238 :bsnl
31239 s/["\\]/\\&/g
31240 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
31241 D["\1"]=" \3\\\\\\n"\\/p
31242 t cont
31243 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
31244 t cont
31246 :cont
31248 s/.\{148\}/&'"$ac_delim"'/g
31249 t clear
31250 :clear
31251 s/\\$//
31252 t bsnlc
31253 s/["\\]/\\&/g; s/^/"/; s/$/"/p
31255 :bsnlc
31256 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
31257 b cont
31258 ' <confdefs.h | sed '
31259 s/'"$ac_delim"'/"\\\
31260 "/g' >>$CONFIG_STATUS || ac_write_fail=1
31262 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31263 for (key in D) D_is_set[key] = 1
31264 FS = "\a"
31266 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
31267 line = \$ 0
31268 split(line, arg, " ")
31269 if (arg[1] == "#") {
31270 defundef = arg[2]
31271 mac1 = arg[3]
31272 } else {
31273 defundef = substr(arg[1], 2)
31274 mac1 = arg[2]
31276 split(mac1, mac2, "(") #)
31277 macro = mac2[1]
31278 prefix = substr(line, 1, index(line, defundef) - 1)
31279 if (D_is_set[macro]) {
31280 # Preserve the white space surrounding the "#".
31281 print prefix "define", macro P[macro] D[macro]
31282 next
31283 } else {
31284 # Replace #undef with comments. This is necessary, for example,
31285 # in the case of _POSIX_SOURCE, which is predefined and required
31286 # on some systems where configure will not decide to define it.
31287 if (defundef == "undef") {
31288 print "/*", prefix defundef, macro, "*/"
31289 next
31293 { print }
31294 _ACAWK
31295 _ACEOF
31296 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31297 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
31298 fi # test -n "$CONFIG_HEADERS"
31301 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
31302 shift
31303 for ac_tag
31305 case $ac_tag in
31306 :[FHLC]) ac_mode=$ac_tag; continue;;
31307 esac
31308 case $ac_mode$ac_tag in
31309 :[FHL]*:*);;
31310 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
31311 :[FH]-) ac_tag=-:-;;
31312 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
31313 esac
31314 ac_save_IFS=$IFS
31315 IFS=:
31316 set x $ac_tag
31317 IFS=$ac_save_IFS
31318 shift
31319 ac_file=$1
31320 shift
31322 case $ac_mode in
31323 :L) ac_source=$1;;
31324 :[FH])
31325 ac_file_inputs=
31326 for ac_f
31328 case $ac_f in
31329 -) ac_f="$ac_tmp/stdin";;
31330 *) # Look for the file first in the build tree, then in the source tree
31331 # (if the path is not absolute). The absolute path cannot be DOS-style,
31332 # because $ac_f cannot contain `:'.
31333 test -f "$ac_f" ||
31334 case $ac_f in
31335 [\\/$]*) false;;
31336 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
31337 esac ||
31338 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
31339 esac
31340 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
31341 as_fn_append ac_file_inputs " '$ac_f'"
31342 done
31344 # Let's still pretend it is `configure' which instantiates (i.e., don't
31345 # use $as_me), people would be surprised to read:
31346 # /* config.h. Generated by config.status. */
31347 configure_input='Generated from '`
31348 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
31349 `' by configure.'
31350 if test x"$ac_file" != x-; then
31351 configure_input="$ac_file. $configure_input"
31352 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
31353 $as_echo "$as_me: creating $ac_file" >&6;}
31355 # Neutralize special characters interpreted by sed in replacement strings.
31356 case $configure_input in #(
31357 *\&* | *\|* | *\\* )
31358 ac_sed_conf_input=`$as_echo "$configure_input" |
31359 sed 's/[\\\\&|]/\\\\&/g'`;; #(
31360 *) ac_sed_conf_input=$configure_input;;
31361 esac
31363 case $ac_tag in
31364 *:-:* | *:-) cat >"$ac_tmp/stdin" \
31365 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
31366 esac
31368 esac
31370 ac_dir=`$as_dirname -- "$ac_file" ||
31371 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31372 X"$ac_file" : 'X\(//\)[^/]' \| \
31373 X"$ac_file" : 'X\(//\)$' \| \
31374 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
31375 $as_echo X"$ac_file" |
31376 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31377 s//\1/
31380 /^X\(\/\/\)[^/].*/{
31381 s//\1/
31384 /^X\(\/\/\)$/{
31385 s//\1/
31388 /^X\(\/\).*/{
31389 s//\1/
31392 s/.*/./; q'`
31393 as_dir="$ac_dir"; as_fn_mkdir_p
31394 ac_builddir=.
31396 case "$ac_dir" in
31397 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
31399 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
31400 # A ".." for each directory in $ac_dir_suffix.
31401 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
31402 case $ac_top_builddir_sub in
31403 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
31404 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
31405 esac ;;
31406 esac
31407 ac_abs_top_builddir=$ac_pwd
31408 ac_abs_builddir=$ac_pwd$ac_dir_suffix
31409 # for backward compatibility:
31410 ac_top_builddir=$ac_top_build_prefix
31412 case $srcdir in
31413 .) # We are building in place.
31414 ac_srcdir=.
31415 ac_top_srcdir=$ac_top_builddir_sub
31416 ac_abs_top_srcdir=$ac_pwd ;;
31417 [\\/]* | ?:[\\/]* ) # Absolute name.
31418 ac_srcdir=$srcdir$ac_dir_suffix;
31419 ac_top_srcdir=$srcdir
31420 ac_abs_top_srcdir=$srcdir ;;
31421 *) # Relative name.
31422 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
31423 ac_top_srcdir=$ac_top_build_prefix$srcdir
31424 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
31425 esac
31426 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
31429 case $ac_mode in
31432 # CONFIG_FILE
31435 _ACEOF
31437 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31438 # If the template does not know about datarootdir, expand it.
31439 # FIXME: This hack should be removed a few years after 2.60.
31440 ac_datarootdir_hack=; ac_datarootdir_seen=
31441 ac_sed_dataroot='
31442 /datarootdir/ {
31446 /@datadir@/p
31447 /@docdir@/p
31448 /@infodir@/p
31449 /@localedir@/p
31450 /@mandir@/p'
31451 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
31452 *datarootdir*) ac_datarootdir_seen=yes;;
31453 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
31454 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
31455 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
31456 _ACEOF
31457 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31458 ac_datarootdir_hack='
31459 s&@datadir@&$datadir&g
31460 s&@docdir@&$docdir&g
31461 s&@infodir@&$infodir&g
31462 s&@localedir@&$localedir&g
31463 s&@mandir@&$mandir&g
31464 s&\\\${datarootdir}&$datarootdir&g' ;;
31465 esac
31466 _ACEOF
31468 # Neutralize VPATH when `$srcdir' = `.'.
31469 # Shell code in configure.ac might set extrasub.
31470 # FIXME: do we really want to maintain this feature?
31471 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31472 ac_sed_extra="$ac_vpsub
31473 $extrasub
31474 _ACEOF
31475 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31477 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31478 s|@configure_input@|$ac_sed_conf_input|;t t
31479 s&@top_builddir@&$ac_top_builddir_sub&;t t
31480 s&@top_build_prefix@&$ac_top_build_prefix&;t t
31481 s&@srcdir@&$ac_srcdir&;t t
31482 s&@abs_srcdir@&$ac_abs_srcdir&;t t
31483 s&@top_srcdir@&$ac_top_srcdir&;t t
31484 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
31485 s&@builddir@&$ac_builddir&;t t
31486 s&@abs_builddir@&$ac_abs_builddir&;t t
31487 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
31488 $ac_datarootdir_hack
31490 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
31491 if $ac_cs_awk_getline; then
31492 $AWK -f "$ac_tmp/subs.awk"
31493 else
31494 $AWK -f "$ac_tmp/subs.awk" | $SHELL
31495 fi \
31496 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
31498 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
31499 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
31500 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
31501 "$ac_tmp/out"`; test -z "$ac_out"; } &&
31502 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31503 which seems to be undefined. Please make sure it is defined" >&5
31504 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31505 which seems to be undefined. Please make sure it is defined" >&2;}
31507 rm -f "$ac_tmp/stdin"
31508 case $ac_file in
31509 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
31510 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
31511 esac \
31512 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
31516 # CONFIG_HEADER
31518 if test x"$ac_file" != x-; then
31520 $as_echo "/* $configure_input */" \
31521 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
31522 } >"$ac_tmp/config.h" \
31523 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
31524 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
31525 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
31526 $as_echo "$as_me: $ac_file is unchanged" >&6;}
31527 else
31528 rm -f "$ac_file"
31529 mv "$ac_tmp/config.h" "$ac_file" \
31530 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
31532 else
31533 $as_echo "/* $configure_input */" \
31534 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
31535 || as_fn_error $? "could not create -" "$LINENO" 5
31540 # CONFIG_LINK
31543 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
31545 else
31546 # Prefer the file from the source tree if names are identical.
31547 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
31548 ac_source=$srcdir/$ac_source
31551 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
31552 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
31554 if test ! -r "$ac_source"; then
31555 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
31557 rm -f "$ac_file"
31559 # Try a relative symlink, then a hard link, then a copy.
31560 case $ac_source in
31561 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
31562 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
31563 esac
31564 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
31565 ln "$ac_source" "$ac_file" 2>/dev/null ||
31566 cp -p "$ac_source" "$ac_file" ||
31567 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
31570 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
31571 $as_echo "$as_me: executing $ac_file commands" >&6;}
31573 esac
31576 case $ac_file$ac_mode in
31577 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
31578 "gccdepdir":C)
31579 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs build/$DEPDIR
31580 for lang in $subdirs c-family common
31582 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs $lang/$DEPDIR
31583 done ;;
31584 "as":F) chmod +x as ;;
31585 "collect-ld":F) chmod +x collect-ld ;;
31586 "nm":F) chmod +x nm ;;
31587 "default":C)
31588 case ${CONFIG_HEADERS} in
31589 *auto-host.h:config.in*)
31590 echo > cstamp-h ;;
31591 esac
31592 # Make sure all the subdirs exist.
31593 for d in $subdirs doc build common c-family
31595 test -d $d || mkdir $d
31596 done
31599 esac
31600 done # for ac_tag
31603 as_fn_exit 0
31604 _ACEOF
31605 ac_clean_files=$ac_clean_files_save
31607 test $ac_write_fail = 0 ||
31608 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
31611 # configure is writing to config.log, and then calls config.status.
31612 # config.status does its own redirection, appending to config.log.
31613 # Unfortunately, on DOS this fails, as config.log is still kept open
31614 # by configure, so config.status won't be able to write to it; its
31615 # output is simply discarded. So we exec the FD to /dev/null,
31616 # effectively closing config.log, so it can be properly (re)opened and
31617 # appended to by config.status. When coming back to configure, we
31618 # need to make the FD available again.
31619 if test "$no_create" != yes; then
31620 ac_cs_success=:
31621 ac_config_status_args=
31622 test "$silent" = yes &&
31623 ac_config_status_args="$ac_config_status_args --quiet"
31624 exec 5>/dev/null
31625 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31626 exec 5>>config.log
31627 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31628 # would make configure fail if this is the last instruction.
31629 $ac_cs_success || as_fn_exit 1
31631 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
31632 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
31633 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}