]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/configure
2017-05-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
[thirdparty/gcc.git] / gcc / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
8 #
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 ## -------------------- ##
14
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 *) :
29 ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
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"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70 fi
71
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=';'
78 }
79 fi
80
81
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"
88
89 # Find who we are. Look in the path if we contain no directory separator.
90 case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
94 do
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99 IFS=$as_save_IFS
100
101 ;;
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106 as_myself=$0
107 fi
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
111 fi
112
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
124
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
130
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142 else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
147 ;;
148 esac
149 fi
150 "
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
156
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164 else
165 exitcode=1; echo positional parameters were not saved.
166 fi
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1
173
174 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
175 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178 PATH=/empty FPATH=/empty; export PATH FPATH
179 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
180 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
181 if (eval "$as_required") 2>/dev/null; then :
182 as_have_required=yes
183 else
184 as_have_required=no
185 fi
186 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
187
188 else
189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190 as_found=false
191 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
192 do
193 IFS=$as_save_IFS
194 test -z "$as_dir" && as_dir=.
195 as_found=:
196 case $as_dir in #(
197 /*)
198 for as_base in sh bash ksh sh5; do
199 # Try only shells that exist, to save several forks.
200 as_shell=$as_dir/$as_base
201 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203 CONFIG_SHELL=$as_shell as_have_required=yes
204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
205 break 2
206 fi
207 fi
208 done;;
209 esac
210 as_found=false
211 done
212 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214 CONFIG_SHELL=$SHELL as_have_required=yes
215 fi; }
216 IFS=$as_save_IFS
217
218
219 if test "x$CONFIG_SHELL" != x; then :
220 # We cannot yet assume a decent shell, so we have to provide a
221 # neutralization value for shells without unset; and this also
222 # works around shells that cannot unset nonexistent variables.
223 BASH_ENV=/dev/null
224 ENV=/dev/null
225 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226 export CONFIG_SHELL
227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
228 fi
229
230 if test x$as_have_required = xno; then :
231 $as_echo "$0: This script requires a shell more modern than all"
232 $as_echo "$0: the shells that I found on your system."
233 if test x${ZSH_VERSION+set} = xset ; then
234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
236 else
237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238 $0: including any error possibly output before this
239 $0: message. Then install a modern shell, or manually run
240 $0: the script under such a shell if you do have one."
241 fi
242 exit 1
243 fi
244 fi
245 fi
246 SHELL=${CONFIG_SHELL-/bin/sh}
247 export SHELL
248 # Unset more variables known to interfere with behavior of common tools.
249 CLICOLOR_FORCE= GREP_OPTIONS=
250 unset CLICOLOR_FORCE GREP_OPTIONS
251
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
255 # as_fn_unset VAR
256 # ---------------
257 # Portably unset VAR.
258 as_fn_unset ()
259 {
260 { eval $1=; unset $1;}
261 }
262 as_unset=as_fn_unset
263
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
267 as_fn_set_status ()
268 {
269 return $1
270 } # as_fn_set_status
271
272 # as_fn_exit STATUS
273 # -----------------
274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
275 as_fn_exit ()
276 {
277 set +e
278 as_fn_set_status $1
279 exit $1
280 } # as_fn_exit
281
282 # as_fn_mkdir_p
283 # -------------
284 # Create "$as_dir" as a directory, including parents if necessary.
285 as_fn_mkdir_p ()
286 {
287
288 case $as_dir in #(
289 -*) as_dir=./$as_dir;;
290 esac
291 test -d "$as_dir" || eval $as_mkdir_p || {
292 as_dirs=
293 while :; do
294 case $as_dir in #(
295 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296 *) as_qdir=$as_dir;;
297 esac
298 as_dirs="'$as_qdir' $as_dirs"
299 as_dir=`$as_dirname -- "$as_dir" ||
300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301 X"$as_dir" : 'X\(//\)[^/]' \| \
302 X"$as_dir" : 'X\(//\)$' \| \
303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304 $as_echo X"$as_dir" |
305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
306 s//\1/
307 q
308 }
309 /^X\(\/\/\)[^/].*/{
310 s//\1/
311 q
312 }
313 /^X\(\/\/\)$/{
314 s//\1/
315 q
316 }
317 /^X\(\/\).*/{
318 s//\1/
319 q
320 }
321 s/.*/./; q'`
322 test -d "$as_dir" && break
323 done
324 test -z "$as_dirs" || eval "mkdir $as_dirs"
325 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
326
327
328 } # as_fn_mkdir_p
329 # as_fn_append VAR VALUE
330 # ----------------------
331 # Append the text in VALUE to the end of the definition contained in VAR. Take
332 # advantage of any shell optimizations that allow amortized linear growth over
333 # repeated appends, instead of the typical quadratic growth present in naive
334 # implementations.
335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336 eval 'as_fn_append ()
337 {
338 eval $1+=\$2
339 }'
340 else
341 as_fn_append ()
342 {
343 eval $1=\$$1\$2
344 }
345 fi # as_fn_append
346
347 # as_fn_arith ARG...
348 # ------------------
349 # Perform arithmetic evaluation on the ARGs, and store the result in the
350 # global $as_val. Take advantage of shells that can avoid forks. The arguments
351 # must be portable across $(()) and expr.
352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353 eval 'as_fn_arith ()
354 {
355 as_val=$(( $* ))
356 }'
357 else
358 as_fn_arith ()
359 {
360 as_val=`expr "$@" || test $? -eq 1`
361 }
362 fi # as_fn_arith
363
364
365 # as_fn_error ERROR [LINENO LOG_FD]
366 # ---------------------------------
367 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369 # script with status $?, using 1 if that was 0.
370 as_fn_error ()
371 {
372 as_status=$?; test $as_status -eq 0 && as_status=1
373 if test "$3"; then
374 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
376 fi
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit $as_status
379 } # as_fn_error
380
381 if expr a : '\(a\)' >/dev/null 2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001; then
383 as_expr=expr
384 else
385 as_expr=false
386 fi
387
388 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389 as_basename=basename
390 else
391 as_basename=false
392 fi
393
394 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395 as_dirname=dirname
396 else
397 as_dirname=false
398 fi
399
400 as_me=`$as_basename -- "$0" ||
401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404 $as_echo X/"$0" |
405 sed '/^.*\/\([^/][^/]*\)\/*$/{
406 s//\1/
407 q
408 }
409 /^X\/\(\/\/\)$/{
410 s//\1/
411 q
412 }
413 /^X\/\(\/\).*/{
414 s//\1/
415 q
416 }
417 s/.*/./; q'`
418
419 # Avoid depending upon Character Ranges.
420 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423 as_cr_digits='0123456789'
424 as_cr_alnum=$as_cr_Letters$as_cr_digits
425
426
427 as_lineno_1=$LINENO as_lineno_1a=$LINENO
428 as_lineno_2=$LINENO as_lineno_2a=$LINENO
429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
432 sed -n '
433 p
434 /[$]LINENO/=
435 ' <$as_myself |
436 sed '
437 s/[$]LINENO.*/&-/
438 t lineno
439 b
440 :lineno
441 N
442 :loop
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444 t loop
445 s/-\n.*//
446 ' >$as_me.lineno &&
447 chmod +x "$as_me.lineno" ||
448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
449
450 # Don't try to exec as it changes $[0], causing all sort of problems
451 # (the dirname of $[0] is not the place where we might find the
452 # original and so on. Autoconf is especially sensitive to this).
453 . "./$as_me.lineno"
454 # Exit status is that of the last command.
455 exit
456 }
457
458 ECHO_C= ECHO_N= ECHO_T=
459 case `echo -n x` in #(((((
460 -n*)
461 case `echo 'xy\c'` in
462 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
463 xy) ECHO_C='\c';;
464 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
465 ECHO_T=' ';;
466 esac;;
467 *)
468 ECHO_N='-n';;
469 esac
470
471 rm -f conf$$ conf$$.exe conf$$.file
472 if test -d conf$$.dir; then
473 rm -f conf$$.dir/conf$$.file
474 else
475 rm -f conf$$.dir
476 mkdir conf$$.dir 2>/dev/null
477 fi
478 if (echo >conf$$.file) 2>/dev/null; then
479 if ln -s conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s='ln -s'
481 # ... but there are two gotchas:
482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484 # In both cases, we have to default to `cp -p'.
485 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
486 as_ln_s='cp -p'
487 elif ln conf$$.file conf$$ 2>/dev/null; then
488 as_ln_s=ln
489 else
490 as_ln_s='cp -p'
491 fi
492 else
493 as_ln_s='cp -p'
494 fi
495 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496 rmdir conf$$.dir 2>/dev/null
497
498 if mkdir -p . 2>/dev/null; then
499 as_mkdir_p='mkdir -p "$as_dir"'
500 else
501 test -d ./-p && rmdir ./-p
502 as_mkdir_p=false
503 fi
504
505 if test -x / >/dev/null 2>&1; then
506 as_test_x='test -x'
507 else
508 if ls -dL / >/dev/null 2>&1; then
509 as_ls_L_option=L
510 else
511 as_ls_L_option=
512 fi
513 as_test_x='
514 eval sh -c '\''
515 if test -d "$1"; then
516 test -d "$1/.";
517 else
518 case $1 in #(
519 -*)set "./$1";;
520 esac;
521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522 ???[sx]*):;;*)false;;esac;fi
523 '\'' sh
524 '
525 fi
526 as_executable_p=$as_test_x
527
528 # Sed expression to map a string onto a valid CPP name.
529 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
530
531 # Sed expression to map a string onto a valid variable name.
532 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
533
534 SHELL=${CONFIG_SHELL-/bin/sh}
535
536
537 exec 7<&0 </dev/null 6>&1
538
539 # Name of the host.
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
543
544 #
545 # Initializations.
546 #
547 ac_default_prefix=/usr/local
548 ac_clean_files=
549 ac_config_libobj_dir=.
550 LIBOBJS=
551 cross_compiling=no
552 subdirs=
553 MFLAGS=
554 MAKEFLAGS=
555
556 # Identity of this package.
557 PACKAGE_NAME=
558 PACKAGE_TARNAME=
559 PACKAGE_VERSION=
560 PACKAGE_STRING=
561 PACKAGE_BUGREPORT=
562 PACKAGE_URL=
563
564 ac_unique_file="tree.c"
565 # Factoring default headers for most tests.
566 ac_includes_default="\
567 #include <stdio.h>
568 #ifdef HAVE_SYS_TYPES_H
569 # include <sys/types.h>
570 #endif
571 #ifdef HAVE_SYS_STAT_H
572 # include <sys/stat.h>
573 #endif
574 #ifdef STDC_HEADERS
575 # include <stdlib.h>
576 # include <stddef.h>
577 #else
578 # ifdef HAVE_STDLIB_H
579 # include <stdlib.h>
580 # endif
581 #endif
582 #ifdef HAVE_STRING_H
583 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
584 # include <memory.h>
585 # endif
586 # include <string.h>
587 #endif
588 #ifdef HAVE_STRINGS_H
589 # include <strings.h>
590 #endif
591 #ifdef HAVE_INTTYPES_H
592 # include <inttypes.h>
593 #endif
594 #ifdef HAVE_STDINT_H
595 # include <stdint.h>
596 #endif
597 #ifdef HAVE_UNISTD_H
598 # include <unistd.h>
599 #endif"
600
601 ac_subst_vars='LTLIBOBJS
602 LIBOBJS
603 NO_PIE_FLAG
604 NO_PIE_CFLAGS
605 enable_default_pie
606 PICFLAG
607 enable_host_shared
608 enable_plugin
609 pluginlibs
610 ISLINC
611 ISLLIBS
612 GMPINC
613 GMPLIBS
614 target_cpu_default
615 fortran_target_objs
616 cxx_target_objs
617 c_target_objs
618 use_gcc_stdint
619 xm_defines
620 xm_include_list
621 xm_file_list
622 tm_p_include_list
623 tm_p_file_list
624 tm_defines
625 tm_include_list
626 tm_file_list
627 common_out_object_file
628 common_out_file
629 out_object_file
630 out_file
631 objc_boehm_gc
632 md_file
633 local_prefix
634 lang_tree_files
635 lang_specs_files
636 lang_opt_files
637 install
638 out_host_hook_obj
639 host_xm_defines
640 host_xm_include_list
641 host_xm_file_list
642 host_exeext
643 gcc_gxx_include_dir_add_sysroot
644 gcc_gxx_include_dir
645 gcc_config_arguments
646 float_h_file
647 extra_programs
648 extra_objs
649 extra_headers_list
650 user_headers_inc_next_post
651 user_headers_inc_next_pre
652 extra_gcc_objs
653 TM_MULTILIB_EXCEPTIONS_CONFIG
654 TM_MULTILIB_CONFIG
655 TM_ENDIAN_CONFIG
656 tmake_file
657 xmake_file
658 cpp_install_dir
659 check_languages
660 build_file_translate
661 build_xm_defines
662 build_xm_include_list
663 build_xm_file_list
664 build_install_headers_dir
665 build_exeext
666 all_selected_languages
667 all_languages
668 all_lang_makefrags
669 all_gtfiles
670 all_compilers
671 srcdir
672 subdirs
673 dollar
674 gcc_tooldir
675 enable_lto
676 DO_LINK_MUTEX
677 MAINT
678 zlibinc
679 zlibdir
680 HOST_LIBS
681 enable_default_ssp
682 thin_archive_support
683 libgcc_visibility
684 gcc_cv_readelf
685 gcc_cv_objdump
686 ORIGINAL_NM_FOR_TARGET
687 gcc_cv_nm
688 ORIGINAL_LD_GOLD_FOR_TARGET
689 ORIGINAL_LD_BFD_FOR_TARGET
690 ORIGINAL_LD_FOR_TARGET
691 ORIGINAL_PLUGIN_LD_FOR_TARGET
692 gcc_cv_ld
693 ORIGINAL_AS_FOR_TARGET
694 gcc_cv_as
695 enable_fast_install
696 objdir
697 OTOOL64
698 OTOOL
699 LIPO
700 NMEDIT
701 DSYMUTIL
702 STRIP
703 OBJDUMP
704 ac_ct_DUMPBIN
705 DUMPBIN
706 LD
707 FGREP
708 SED
709 LIBTOOL
710 collect2
711 NO_PIE_FLAG_FOR_BUILD
712 NO_PIE_CFLAGS_FOR_BUILD
713 BUILD_NO_PIE_FLAG
714 BUILD_NO_PIE_CFLAGS
715 STMP_FIXINC
716 BUILD_LDFLAGS
717 BUILD_CXXFLAGS
718 BUILD_CFLAGS
719 CXX_FOR_BUILD
720 CC_FOR_BUILD
721 inhibit_libc
722 BUILD_SYSTEM_HEADER_DIR
723 SYSTEM_HEADER_DIR
724 ALL
725 CROSS
726 CATOBJEXT
727 GENCAT
728 INSTOBJEXT
729 DATADIRNAME
730 CATALOGS
731 POSUB
732 GMSGFMT
733 XGETTEXT
734 INCINTL
735 LIBINTL_DEP
736 LIBINTL
737 USE_NLS
738 get_gcc_base_ver
739 extra_opt_files
740 extra_modes_file
741 NATIVE_SYSTEM_HEADER_DIR
742 objext
743 manext
744 LIBICONV_DEP
745 LTLIBICONV
746 LIBICONV
747 LDEXP_LIB
748 EXTRA_GCC_LIBS
749 GNAT_LIBEXC
750 COLLECT2_LIBS
751 CXXDEPMODE
752 DEPDIR
753 am__leading_dot
754 doc_build_sys
755 AR
756 NM
757 BISON
758 FLEX
759 GENERATED_MANPAGES
760 BUILD_INFO
761 MAKEINFO
762 have_mktemp_command
763 make_compare_target
764 INSTALL_DATA
765 INSTALL_PROGRAM
766 INSTALL
767 ranlib_flags
768 RANLIB
769 LN
770 LN_S
771 AWK
772 SET_MAKE
773 accel_dir_suffix
774 real_target_noncanonical
775 enable_as_accelerator
776 REPORT_BUGS_TEXI
777 REPORT_BUGS_TO
778 PKGVERSION
779 CONFIGURE_SPECS
780 enable_shared
781 enable_fixed_point
782 enable_decimal_float
783 with_float
784 with_cpu
785 enable_multiarch
786 enable_multilib
787 coverage_flags
788 valgrind_command
789 valgrind_path_defines
790 valgrind_path
791 TREECHECKING
792 nocommon_flag
793 noexception_flags
794 warn_cxxflags
795 warn_cflags
796 c_strict_warn
797 strict_warn
798 c_loose_warn
799 loose_warn
800 aliasing_flags
801 CPP
802 EGREP
803 GREP
804 CXXCPP
805 PICFLAG_FOR_TARGET
806 GNATMAKE
807 GNATBIND
808 ac_ct_CXX
809 CXXFLAGS
810 CXX
811 OBJEXT
812 EXEEXT
813 ac_ct_CC
814 CPPFLAGS
815 LDFLAGS
816 CFLAGS
817 CC
818 GENINSRC
819 CROSS_SYSTEM_HEADER_DIR
820 TARGET_SYSTEM_ROOT_DEFINE
821 TARGET_SYSTEM_ROOT
822 SYSROOT_CFLAGS_FOR_TARGET
823 target_subdir
824 host_subdir
825 build_subdir
826 build_libsubdir
827 target_noncanonical
828 host_noncanonical
829 target_os
830 target_vendor
831 target_cpu
832 target
833 host_os
834 host_vendor
835 host_cpu
836 host
837 build_os
838 build_vendor
839 build_cpu
840 build
841 target_alias
842 host_alias
843 build_alias
844 LIBS
845 ECHO_T
846 ECHO_N
847 ECHO_C
848 DEFS
849 mandir
850 localedir
851 libdir
852 psdir
853 pdfdir
854 dvidir
855 htmldir
856 infodir
857 docdir
858 oldincludedir
859 includedir
860 localstatedir
861 sharedstatedir
862 sysconfdir
863 datadir
864 datarootdir
865 libexecdir
866 sbindir
867 bindir
868 program_transform_name
869 prefix
870 exec_prefix
871 PACKAGE_URL
872 PACKAGE_BUGREPORT
873 PACKAGE_STRING
874 PACKAGE_VERSION
875 PACKAGE_TARNAME
876 PACKAGE_NAME
877 PATH_SEPARATOR
878 SHELL'
879 ac_subst_files='option_includes
880 language_hooks'
881 ac_user_opts='
882 enable_option_checking
883 with_build_libsubdir
884 with_local_prefix
885 with_native_system_header_dir
886 with_build_sysroot
887 with_sysroot
888 with_gxx_include_dir
889 with_cpp_install_dir
890 enable_generated_files_in_srcdir
891 with_gnu_ld
892 with_ld
893 with_demangler_in_ld
894 with_gnu_as
895 with_as
896 enable_largefile
897 enable_build_format_warnings
898 enable_werror_always
899 enable_checking
900 enable_coverage
901 enable_gather_detailed_mem_stats
902 enable_valgrind_annotations
903 with_stabs
904 enable_multilib
905 enable_multiarch
906 enable___cxa_atexit
907 enable_decimal_float
908 enable_fixed_point
909 enable_threads
910 enable_tls
911 enable_vtable_verify
912 enable_objc_gc
913 with_dwarf2
914 enable_shared
915 with_specs
916 with_pkgversion
917 with_bugurl
918 enable_languages
919 with_multilib_list
920 enable_rpath
921 with_libiconv_prefix
922 enable_sjlj_exceptions
923 with_gcc_major_version_only
924 enable_secureplt
925 enable_mingw_wildcard
926 enable_leading_mingw64_underscores
927 enable_cld
928 enable_frame_pointer
929 enable_win32_registry
930 enable_static
931 with_pic
932 enable_fast_install
933 enable_libtool_lock
934 enable_ld
935 enable_gold
936 with_plugin_ld
937 enable_gnu_indirect_function
938 enable_initfini_array
939 enable_comdat
940 enable_fix_cortex_a53_835769
941 enable_fix_cortex_a53_843419
942 with_glibc_version
943 enable_gnu_unique_object
944 enable_linker_build_id
945 enable_default_ssp
946 with_long_double_128
947 with_gc
948 with_system_zlib
949 enable_maintainer_mode
950 enable_link_mutex
951 enable_version_specific_runtime_libs
952 enable_plugin
953 enable_host_shared
954 enable_libquadmath_support
955 with_linker_hash_style
956 with_diagnostics_color
957 enable_default_pie
958 '
959 ac_precious_vars='build_alias
960 host_alias
961 target_alias
962 CC
963 CFLAGS
964 LDFLAGS
965 LIBS
966 CPPFLAGS
967 CXX
968 CXXFLAGS
969 CCC
970 CXXCPP
971 CPP
972 GMPLIBS
973 GMPINC
974 ISLLIBS
975 ISLINC'
976
977
978 # Initialize some variables set by options.
979 ac_init_help=
980 ac_init_version=false
981 ac_unrecognized_opts=
982 ac_unrecognized_sep=
983 # The variables have the same names as the options, with
984 # dashes changed to underlines.
985 cache_file=/dev/null
986 exec_prefix=NONE
987 no_create=
988 no_recursion=
989 prefix=NONE
990 program_prefix=NONE
991 program_suffix=NONE
992 program_transform_name=s,x,x,
993 silent=
994 site=
995 srcdir=
996 verbose=
997 x_includes=NONE
998 x_libraries=NONE
999
1000 # Installation directory options.
1001 # These are left unexpanded so users can "make install exec_prefix=/foo"
1002 # and all the variables that are supposed to be based on exec_prefix
1003 # by default will actually change.
1004 # Use braces instead of parens because sh, perl, etc. also accept them.
1005 # (The list follows the same order as the GNU Coding Standards.)
1006 bindir='${exec_prefix}/bin'
1007 sbindir='${exec_prefix}/sbin'
1008 libexecdir='${exec_prefix}/libexec'
1009 datarootdir='${prefix}/share'
1010 datadir='${datarootdir}'
1011 sysconfdir='${prefix}/etc'
1012 sharedstatedir='${prefix}/com'
1013 localstatedir='${prefix}/var'
1014 includedir='${prefix}/include'
1015 oldincludedir='/usr/include'
1016 docdir='${datarootdir}/doc/${PACKAGE}'
1017 infodir='${datarootdir}/info'
1018 htmldir='${docdir}'
1019 dvidir='${docdir}'
1020 pdfdir='${docdir}'
1021 psdir='${docdir}'
1022 libdir='${exec_prefix}/lib'
1023 localedir='${datarootdir}/locale'
1024 mandir='${datarootdir}/man'
1025
1026 ac_prev=
1027 ac_dashdash=
1028 for ac_option
1029 do
1030 # If the previous option needs an argument, assign it.
1031 if test -n "$ac_prev"; then
1032 eval $ac_prev=\$ac_option
1033 ac_prev=
1034 continue
1035 fi
1036
1037 case $ac_option in
1038 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1039 *) ac_optarg=yes ;;
1040 esac
1041
1042 # Accept the important Cygnus configure options, so we can diagnose typos.
1043
1044 case $ac_dashdash$ac_option in
1045 --)
1046 ac_dashdash=yes ;;
1047
1048 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1049 ac_prev=bindir ;;
1050 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1051 bindir=$ac_optarg ;;
1052
1053 -build | --build | --buil | --bui | --bu)
1054 ac_prev=build_alias ;;
1055 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1056 build_alias=$ac_optarg ;;
1057
1058 -cache-file | --cache-file | --cache-fil | --cache-fi \
1059 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1060 ac_prev=cache_file ;;
1061 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1062 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1063 cache_file=$ac_optarg ;;
1064
1065 --config-cache | -C)
1066 cache_file=config.cache ;;
1067
1068 -datadir | --datadir | --datadi | --datad)
1069 ac_prev=datadir ;;
1070 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1071 datadir=$ac_optarg ;;
1072
1073 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1074 | --dataroo | --dataro | --datar)
1075 ac_prev=datarootdir ;;
1076 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1077 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1078 datarootdir=$ac_optarg ;;
1079
1080 -disable-* | --disable-*)
1081 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1082 # Reject names that are not valid shell variable names.
1083 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1084 as_fn_error "invalid feature name: $ac_useropt"
1085 ac_useropt_orig=$ac_useropt
1086 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1087 case $ac_user_opts in
1088 *"
1089 "enable_$ac_useropt"
1090 "*) ;;
1091 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1092 ac_unrecognized_sep=', ';;
1093 esac
1094 eval enable_$ac_useropt=no ;;
1095
1096 -docdir | --docdir | --docdi | --doc | --do)
1097 ac_prev=docdir ;;
1098 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1099 docdir=$ac_optarg ;;
1100
1101 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1102 ac_prev=dvidir ;;
1103 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1104 dvidir=$ac_optarg ;;
1105
1106 -enable-* | --enable-*)
1107 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1108 # Reject names that are not valid shell variable names.
1109 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1110 as_fn_error "invalid feature name: $ac_useropt"
1111 ac_useropt_orig=$ac_useropt
1112 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1113 case $ac_user_opts in
1114 *"
1115 "enable_$ac_useropt"
1116 "*) ;;
1117 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1118 ac_unrecognized_sep=', ';;
1119 esac
1120 eval enable_$ac_useropt=\$ac_optarg ;;
1121
1122 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1123 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1124 | --exec | --exe | --ex)
1125 ac_prev=exec_prefix ;;
1126 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1127 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1128 | --exec=* | --exe=* | --ex=*)
1129 exec_prefix=$ac_optarg ;;
1130
1131 -gas | --gas | --ga | --g)
1132 # Obsolete; use --with-gas.
1133 with_gas=yes ;;
1134
1135 -help | --help | --hel | --he | -h)
1136 ac_init_help=long ;;
1137 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1138 ac_init_help=recursive ;;
1139 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1140 ac_init_help=short ;;
1141
1142 -host | --host | --hos | --ho)
1143 ac_prev=host_alias ;;
1144 -host=* | --host=* | --hos=* | --ho=*)
1145 host_alias=$ac_optarg ;;
1146
1147 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1148 ac_prev=htmldir ;;
1149 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1150 | --ht=*)
1151 htmldir=$ac_optarg ;;
1152
1153 -includedir | --includedir | --includedi | --included | --include \
1154 | --includ | --inclu | --incl | --inc)
1155 ac_prev=includedir ;;
1156 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1157 | --includ=* | --inclu=* | --incl=* | --inc=*)
1158 includedir=$ac_optarg ;;
1159
1160 -infodir | --infodir | --infodi | --infod | --info | --inf)
1161 ac_prev=infodir ;;
1162 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1163 infodir=$ac_optarg ;;
1164
1165 -libdir | --libdir | --libdi | --libd)
1166 ac_prev=libdir ;;
1167 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1168 libdir=$ac_optarg ;;
1169
1170 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1171 | --libexe | --libex | --libe)
1172 ac_prev=libexecdir ;;
1173 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1174 | --libexe=* | --libex=* | --libe=*)
1175 libexecdir=$ac_optarg ;;
1176
1177 -localedir | --localedir | --localedi | --localed | --locale)
1178 ac_prev=localedir ;;
1179 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1180 localedir=$ac_optarg ;;
1181
1182 -localstatedir | --localstatedir | --localstatedi | --localstated \
1183 | --localstate | --localstat | --localsta | --localst | --locals)
1184 ac_prev=localstatedir ;;
1185 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1186 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1187 localstatedir=$ac_optarg ;;
1188
1189 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1190 ac_prev=mandir ;;
1191 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1192 mandir=$ac_optarg ;;
1193
1194 -nfp | --nfp | --nf)
1195 # Obsolete; use --without-fp.
1196 with_fp=no ;;
1197
1198 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1199 | --no-cr | --no-c | -n)
1200 no_create=yes ;;
1201
1202 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1203 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1204 no_recursion=yes ;;
1205
1206 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1207 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1208 | --oldin | --oldi | --old | --ol | --o)
1209 ac_prev=oldincludedir ;;
1210 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1211 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1212 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1213 oldincludedir=$ac_optarg ;;
1214
1215 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1216 ac_prev=prefix ;;
1217 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1218 prefix=$ac_optarg ;;
1219
1220 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1221 | --program-pre | --program-pr | --program-p)
1222 ac_prev=program_prefix ;;
1223 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1224 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1225 program_prefix=$ac_optarg ;;
1226
1227 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1228 | --program-suf | --program-su | --program-s)
1229 ac_prev=program_suffix ;;
1230 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1231 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1232 program_suffix=$ac_optarg ;;
1233
1234 -program-transform-name | --program-transform-name \
1235 | --program-transform-nam | --program-transform-na \
1236 | --program-transform-n | --program-transform- \
1237 | --program-transform | --program-transfor \
1238 | --program-transfo | --program-transf \
1239 | --program-trans | --program-tran \
1240 | --progr-tra | --program-tr | --program-t)
1241 ac_prev=program_transform_name ;;
1242 -program-transform-name=* | --program-transform-name=* \
1243 | --program-transform-nam=* | --program-transform-na=* \
1244 | --program-transform-n=* | --program-transform-=* \
1245 | --program-transform=* | --program-transfor=* \
1246 | --program-transfo=* | --program-transf=* \
1247 | --program-trans=* | --program-tran=* \
1248 | --progr-tra=* | --program-tr=* | --program-t=*)
1249 program_transform_name=$ac_optarg ;;
1250
1251 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1252 ac_prev=pdfdir ;;
1253 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1254 pdfdir=$ac_optarg ;;
1255
1256 -psdir | --psdir | --psdi | --psd | --ps)
1257 ac_prev=psdir ;;
1258 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1259 psdir=$ac_optarg ;;
1260
1261 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1262 | -silent | --silent | --silen | --sile | --sil)
1263 silent=yes ;;
1264
1265 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1266 ac_prev=sbindir ;;
1267 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1268 | --sbi=* | --sb=*)
1269 sbindir=$ac_optarg ;;
1270
1271 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1272 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1273 | --sharedst | --shareds | --shared | --share | --shar \
1274 | --sha | --sh)
1275 ac_prev=sharedstatedir ;;
1276 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1277 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1278 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1279 | --sha=* | --sh=*)
1280 sharedstatedir=$ac_optarg ;;
1281
1282 -site | --site | --sit)
1283 ac_prev=site ;;
1284 -site=* | --site=* | --sit=*)
1285 site=$ac_optarg ;;
1286
1287 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1288 ac_prev=srcdir ;;
1289 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1290 srcdir=$ac_optarg ;;
1291
1292 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1293 | --syscon | --sysco | --sysc | --sys | --sy)
1294 ac_prev=sysconfdir ;;
1295 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1296 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1297 sysconfdir=$ac_optarg ;;
1298
1299 -target | --target | --targe | --targ | --tar | --ta | --t)
1300 ac_prev=target_alias ;;
1301 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1302 target_alias=$ac_optarg ;;
1303
1304 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1305 verbose=yes ;;
1306
1307 -version | --version | --versio | --versi | --vers | -V)
1308 ac_init_version=: ;;
1309
1310 -with-* | --with-*)
1311 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1312 # Reject names that are not valid shell variable names.
1313 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1314 as_fn_error "invalid package name: $ac_useropt"
1315 ac_useropt_orig=$ac_useropt
1316 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1317 case $ac_user_opts in
1318 *"
1319 "with_$ac_useropt"
1320 "*) ;;
1321 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1322 ac_unrecognized_sep=', ';;
1323 esac
1324 eval with_$ac_useropt=\$ac_optarg ;;
1325
1326 -without-* | --without-*)
1327 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1328 # Reject names that are not valid shell variable names.
1329 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1330 as_fn_error "invalid package name: $ac_useropt"
1331 ac_useropt_orig=$ac_useropt
1332 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1333 case $ac_user_opts in
1334 *"
1335 "with_$ac_useropt"
1336 "*) ;;
1337 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1338 ac_unrecognized_sep=', ';;
1339 esac
1340 eval with_$ac_useropt=no ;;
1341
1342 --x)
1343 # Obsolete; use --with-x.
1344 with_x=yes ;;
1345
1346 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1347 | --x-incl | --x-inc | --x-in | --x-i)
1348 ac_prev=x_includes ;;
1349 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1350 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1351 x_includes=$ac_optarg ;;
1352
1353 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1354 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1355 ac_prev=x_libraries ;;
1356 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1357 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1358 x_libraries=$ac_optarg ;;
1359
1360 -*) as_fn_error "unrecognized option: \`$ac_option'
1361 Try \`$0 --help' for more information."
1362 ;;
1363
1364 *=*)
1365 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1366 # Reject names that are not valid shell variable names.
1367 case $ac_envvar in #(
1368 '' | [0-9]* | *[!_$as_cr_alnum]* )
1369 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1370 esac
1371 eval $ac_envvar=\$ac_optarg
1372 export $ac_envvar ;;
1373
1374 *)
1375 # FIXME: should be removed in autoconf 3.0.
1376 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1377 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1378 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1379 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1380 ;;
1381
1382 esac
1383 done
1384
1385 if test -n "$ac_prev"; then
1386 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1387 as_fn_error "missing argument to $ac_option"
1388 fi
1389
1390 if test -n "$ac_unrecognized_opts"; then
1391 case $enable_option_checking in
1392 no) ;;
1393 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1394 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1395 esac
1396 fi
1397
1398 # Check all directory arguments for consistency.
1399 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1400 datadir sysconfdir sharedstatedir localstatedir includedir \
1401 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1402 libdir localedir mandir
1403 do
1404 eval ac_val=\$$ac_var
1405 # Remove trailing slashes.
1406 case $ac_val in
1407 */ )
1408 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1409 eval $ac_var=\$ac_val;;
1410 esac
1411 # Be sure to have absolute directory names.
1412 case $ac_val in
1413 [\\/$]* | ?:[\\/]* ) continue;;
1414 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1415 esac
1416 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1417 done
1418
1419 # There might be people who depend on the old broken behavior: `$host'
1420 # used to hold the argument of --host etc.
1421 # FIXME: To remove some day.
1422 build=$build_alias
1423 host=$host_alias
1424 target=$target_alias
1425
1426 # FIXME: To remove some day.
1427 if test "x$host_alias" != x; then
1428 if test "x$build_alias" = x; then
1429 cross_compiling=maybe
1430 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1431 If a cross compiler is detected then cross compile mode will be used." >&2
1432 elif test "x$build_alias" != "x$host_alias"; then
1433 cross_compiling=yes
1434 fi
1435 fi
1436
1437 ac_tool_prefix=
1438 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1439
1440 test "$silent" = yes && exec 6>/dev/null
1441
1442
1443 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1444 ac_ls_di=`ls -di .` &&
1445 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1446 as_fn_error "working directory cannot be determined"
1447 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1448 as_fn_error "pwd does not report name of working directory"
1449
1450
1451 # Find the source files, if location was not specified.
1452 if test -z "$srcdir"; then
1453 ac_srcdir_defaulted=yes
1454 # Try the directory containing this script, then the parent directory.
1455 ac_confdir=`$as_dirname -- "$as_myself" ||
1456 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1457 X"$as_myself" : 'X\(//\)[^/]' \| \
1458 X"$as_myself" : 'X\(//\)$' \| \
1459 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1460 $as_echo X"$as_myself" |
1461 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1462 s//\1/
1463 q
1464 }
1465 /^X\(\/\/\)[^/].*/{
1466 s//\1/
1467 q
1468 }
1469 /^X\(\/\/\)$/{
1470 s//\1/
1471 q
1472 }
1473 /^X\(\/\).*/{
1474 s//\1/
1475 q
1476 }
1477 s/.*/./; q'`
1478 srcdir=$ac_confdir
1479 if test ! -r "$srcdir/$ac_unique_file"; then
1480 srcdir=..
1481 fi
1482 else
1483 ac_srcdir_defaulted=no
1484 fi
1485 if test ! -r "$srcdir/$ac_unique_file"; then
1486 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1487 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1488 fi
1489 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1490 ac_abs_confdir=`(
1491 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1492 pwd)`
1493 # When building in place, set srcdir=.
1494 if test "$ac_abs_confdir" = "$ac_pwd"; then
1495 srcdir=.
1496 fi
1497 # Remove unnecessary trailing slashes from srcdir.
1498 # Double slashes in file names in object file debugging info
1499 # mess up M-x gdb in Emacs.
1500 case $srcdir in
1501 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1502 esac
1503 for ac_var in $ac_precious_vars; do
1504 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1505 eval ac_env_${ac_var}_value=\$${ac_var}
1506 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1507 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1508 done
1509
1510 #
1511 # Report the --help message.
1512 #
1513 if test "$ac_init_help" = "long"; then
1514 # Omit some internal or obsolete options to make the list less imposing.
1515 # This message is too long to be a string in the A/UX 3.1 sh.
1516 cat <<_ACEOF
1517 \`configure' configures this package to adapt to many kinds of systems.
1518
1519 Usage: $0 [OPTION]... [VAR=VALUE]...
1520
1521 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1522 VAR=VALUE. See below for descriptions of some of the useful variables.
1523
1524 Defaults for the options are specified in brackets.
1525
1526 Configuration:
1527 -h, --help display this help and exit
1528 --help=short display options specific to this package
1529 --help=recursive display the short help of all the included packages
1530 -V, --version display version information and exit
1531 -q, --quiet, --silent do not print \`checking...' messages
1532 --cache-file=FILE cache test results in FILE [disabled]
1533 -C, --config-cache alias for \`--cache-file=config.cache'
1534 -n, --no-create do not create output files
1535 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1536
1537 Installation directories:
1538 --prefix=PREFIX install architecture-independent files in PREFIX
1539 [$ac_default_prefix]
1540 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1541 [PREFIX]
1542
1543 By default, \`make install' will install all the files in
1544 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1545 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1546 for instance \`--prefix=\$HOME'.
1547
1548 For better control, use the options below.
1549
1550 Fine tuning of the installation directories:
1551 --bindir=DIR user executables [EPREFIX/bin]
1552 --sbindir=DIR system admin executables [EPREFIX/sbin]
1553 --libexecdir=DIR program executables [EPREFIX/libexec]
1554 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1555 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1556 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1557 --libdir=DIR object code libraries [EPREFIX/lib]
1558 --includedir=DIR C header files [PREFIX/include]
1559 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1560 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1561 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1562 --infodir=DIR info documentation [DATAROOTDIR/info]
1563 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1564 --mandir=DIR man documentation [DATAROOTDIR/man]
1565 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1566 --htmldir=DIR html documentation [DOCDIR]
1567 --dvidir=DIR dvi documentation [DOCDIR]
1568 --pdfdir=DIR pdf documentation [DOCDIR]
1569 --psdir=DIR ps documentation [DOCDIR]
1570 _ACEOF
1571
1572 cat <<\_ACEOF
1573
1574 Program names:
1575 --program-prefix=PREFIX prepend PREFIX to installed program names
1576 --program-suffix=SUFFIX append SUFFIX to installed program names
1577 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1578
1579 System types:
1580 --build=BUILD configure for building on BUILD [guessed]
1581 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1582 --target=TARGET configure for building compilers for TARGET [HOST]
1583 _ACEOF
1584 fi
1585
1586 if test -n "$ac_init_help"; then
1587
1588 cat <<\_ACEOF
1589
1590 Optional Features:
1591 --disable-option-checking ignore unrecognized --enable/--with options
1592 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1593 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1594 --enable-generated-files-in-srcdir
1595 put copies of generated files in source dir intended
1596 for creating source tarballs for users without
1597 texinfo bison or flex
1598 --disable-largefile omit support for large files
1599 --disable-build-format-warnings
1600 don't use -Wformat while building GCC
1601 --enable-werror-always enable -Werror despite compiler version
1602 --enable-checking[=LIST]
1603 enable expensive run-time checks. With LIST, enable
1604 only specific categories of checks. Categories are:
1605 yes,no,all,none,release. Flags are:
1606 assert,df,extra,fold,gc,gcac,gimple,misc,
1607 rtlflag,rtl,runtime,tree,valgrind,types
1608 --enable-coverage[=LEVEL]
1609 enable compiler's code coverage collection. Use to
1610 measure compiler performance and locate unused parts
1611 of the compiler. With LEVEL, specify optimization.
1612 Values are opt, noopt, default is noopt
1613 --enable-gather-detailed-mem-stats
1614 enable detailed memory allocation stats gathering
1615 --enable-valgrind-annotations
1616 enable valgrind runtime interaction
1617 --enable-multilib enable library support for multiple ABIs
1618 --enable-multiarch enable support for multiarch paths
1619 --enable-__cxa_atexit enable __cxa_atexit for C++
1620 --enable-decimal-float={no,yes,bid,dpd}
1621 enable decimal float extension to C. Selecting 'bid'
1622 or 'dpd' choses which decimal floating point format
1623 to use
1624 --enable-fixed-point enable fixed-point arithmetic extension to C
1625 --enable-threads[=LIB] enable thread usage for target GCC, using LIB thread
1626 package
1627 --enable-tls enable or disable generation of tls code overriding
1628 the assembler check for tls support
1629 --enable-vtable-verify enable vtable verification feature
1630 --enable-objc-gc enable the use of Boehm's garbage collector with the
1631 GNU Objective-C runtime
1632 --disable-shared don't provide a shared libgcc
1633 --enable-languages=LIST specify which front-ends to build
1634 --disable-rpath do not hardcode runtime library paths
1635 --enable-sjlj-exceptions
1636 arrange to use setjmp/longjmp exception handling
1637 --enable-secureplt enable -msecure-plt by default for PowerPC
1638 --enable-mingw-wildcard Set whether to expand wildcard on command-line.
1639 Default to platform configuration
1640 --enable-leading-mingw64-underscores
1641 enable leading underscores on 64 bit mingw targets
1642 --enable-cld enable -mcld by default for 32bit x86
1643 --enable-frame-pointer enable -fno-omit-frame-pointer by default for 32bit
1644 x86
1645 --disable-win32-registry
1646 disable lookup of installation paths in the Registry
1647 on Windows hosts
1648 --enable-win32-registry enable registry lookup (default)
1649 --enable-win32-registry=KEY
1650 use KEY instead of GCC version as the last portion
1651 of the registry key
1652 --enable-shared[=PKGS] build shared libraries [default=yes]
1653 --enable-static[=PKGS] build static libraries [default=yes]
1654 --enable-fast-install[=PKGS]
1655 optimize for fast installation [default=yes]
1656 --disable-libtool-lock avoid locking (might break parallel builds)
1657 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1658 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1659 --enable-gnu-indirect-function
1660 enable the use of the @gnu_indirect_function to
1661 glibc systems
1662 --enable-initfini-array use .init_array/.fini_array sections
1663 --enable-comdat enable COMDAT group support
1664
1665 --enable-fix-cortex-a53-835769
1666 enable workaround for AArch64 Cortex-A53 erratum
1667 835769 by default
1668 --disable-fix-cortex-a53-835769
1669 disable workaround for AArch64 Cortex-A53 erratum
1670 835769 by default
1671
1672
1673 --enable-fix-cortex-a53-843419
1674 enable workaround for AArch64 Cortex-A53 erratum
1675 843419 by default
1676 --disable-fix-cortex-a53-843419
1677 disable workaround for AArch64 Cortex-A53 erratum
1678 843419 by default
1679
1680 --enable-gnu-unique-object
1681 enable the use of the @gnu_unique_object ELF
1682 extension on glibc systems
1683 --enable-linker-build-id
1684 compiler will always pass --build-id to linker
1685 --enable-default-ssp enable Stack Smashing Protection as default
1686 --enable-maintainer-mode
1687 enable make rules and dependencies not useful (and
1688 sometimes confusing) to the casual installer
1689 --enable-link-mutex avoid linking multiple front-ends at once to avoid
1690 thrashing on the build machine
1691 --enable-version-specific-runtime-libs
1692 specify that runtime libraries should be installed
1693 in a compiler-specific directory
1694 --enable-plugin enable plugin support
1695 --enable-host-shared build host code as shared libraries
1696 --disable-libquadmath-support
1697 disable libquadmath support for Fortran
1698 --enable-default-pie enable Position Independent Executable as default
1699
1700 Optional Packages:
1701 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1702 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1703 --with-build-libsubdir=DIR Directory where to find libraries for build system
1704 --with-local-prefix=DIR specifies directory to put local include
1705 --with-native-system-header-dir=dir
1706 use dir as the directory to look for standard
1707 system header files in. Defaults to /usr/include.
1708 --with-build-sysroot=sysroot
1709 use sysroot as the system root during the build
1710 --with-sysroot[=DIR] search for usr/lib, usr/include, et al, within DIR
1711 --with-gxx-include-dir=DIR
1712 specifies directory to put g++ header files
1713 --with-cpp-install-dir=DIR
1714 install the user visible C preprocessor in DIR
1715 (relative to PREFIX) as well as PREFIX/bin
1716 --with-gnu-ld arrange to work with GNU ld
1717 --with-ld arrange to use the specified ld (full pathname)
1718 --with-demangler-in-ld try to use demangler in GNU ld
1719 --with-gnu-as arrange to work with GNU as
1720 --with-as arrange to use the specified as (full pathname)
1721 --with-stabs arrange to use stabs instead of host debug format
1722 --with-dwarf2 force the default debug format to be DWARF 2
1723 --with-specs=SPECS add SPECS to driver command-line processing
1724 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1725 --with-bugurl=URL Direct users to URL to report a bug
1726 --with-multilib-list select multilibs (AArch64, SH and x86-64 only)
1727 --with-gnu-ld assume the C compiler uses GNU ld default=no
1728 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1729 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1730 --with-gcc-major-version-only
1731 use only GCC major number in filesystem paths
1732 --with-pic try to use only PIC/non-PIC objects [default=use
1733 both]
1734 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1735 --with-plugin-ld=[ARG] specify the plugin linker
1736 --with-glibc-version=M.N
1737 assume GCC used with glibc version M.N or later
1738 --with-long-double-128 use 128-bit long double by default
1739 --with-gc={page,zone} this option is not supported anymore. It used to
1740 choose the garbage collection mechanism to use with
1741 the compiler
1742 --with-system-zlib use installed libz
1743 --with-linker-hash-style={sysv,gnu,both}
1744 specify the linker hash style
1745 --with-diagnostics-color={never,auto,auto-if-env,always}
1746 specify the default of -fdiagnostics-color option
1747 auto-if-env stands for -fdiagnostics-color=auto if
1748 GCC_COLOR environment variable is present and
1749 -fdiagnostics-color=never otherwise
1750
1751 Some influential environment variables:
1752 CC C compiler command
1753 CFLAGS C compiler flags
1754 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1755 nonstandard directory <lib dir>
1756 LIBS libraries to pass to the linker, e.g. -l<library>
1757 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1758 you have headers in a nonstandard directory <include dir>
1759 CXX C++ compiler command
1760 CXXFLAGS C++ compiler flags
1761 CXXCPP C++ preprocessor
1762 CPP C preprocessor
1763 GMPLIBS How to link GMP
1764 GMPINC How to find GMP include files
1765 ISLLIBS How to link isl
1766 ISLINC How to find isl include files
1767
1768 Use these variables to override the choices made by `configure' or to help
1769 it to find libraries and programs with nonstandard names/locations.
1770
1771 Report bugs to the package provider.
1772 _ACEOF
1773 ac_status=$?
1774 fi
1775
1776 if test "$ac_init_help" = "recursive"; then
1777 # If there are subdirs, report their specific --help.
1778 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1779 test -d "$ac_dir" ||
1780 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1781 continue
1782 ac_builddir=.
1783
1784 case "$ac_dir" in
1785 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1786 *)
1787 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1788 # A ".." for each directory in $ac_dir_suffix.
1789 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1790 case $ac_top_builddir_sub in
1791 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1792 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1793 esac ;;
1794 esac
1795 ac_abs_top_builddir=$ac_pwd
1796 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1797 # for backward compatibility:
1798 ac_top_builddir=$ac_top_build_prefix
1799
1800 case $srcdir in
1801 .) # We are building in place.
1802 ac_srcdir=.
1803 ac_top_srcdir=$ac_top_builddir_sub
1804 ac_abs_top_srcdir=$ac_pwd ;;
1805 [\\/]* | ?:[\\/]* ) # Absolute name.
1806 ac_srcdir=$srcdir$ac_dir_suffix;
1807 ac_top_srcdir=$srcdir
1808 ac_abs_top_srcdir=$srcdir ;;
1809 *) # Relative name.
1810 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1811 ac_top_srcdir=$ac_top_build_prefix$srcdir
1812 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1813 esac
1814 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1815
1816 cd "$ac_dir" || { ac_status=$?; continue; }
1817 # Check for guested configure.
1818 if test -f "$ac_srcdir/configure.gnu"; then
1819 echo &&
1820 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1821 elif test -f "$ac_srcdir/configure"; then
1822 echo &&
1823 $SHELL "$ac_srcdir/configure" --help=recursive
1824 else
1825 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1826 fi || ac_status=$?
1827 cd "$ac_pwd" || { ac_status=$?; break; }
1828 done
1829 fi
1830
1831 test -n "$ac_init_help" && exit $ac_status
1832 if $ac_init_version; then
1833 cat <<\_ACEOF
1834 configure
1835 generated by GNU Autoconf 2.64
1836
1837 Copyright (C) 2009 Free Software Foundation, Inc.
1838 This configure script is free software; the Free Software Foundation
1839 gives unlimited permission to copy, distribute and modify it.
1840 _ACEOF
1841 exit
1842 fi
1843
1844 ## ------------------------ ##
1845 ## Autoconf initialization. ##
1846 ## ------------------------ ##
1847
1848 # ac_fn_c_try_compile LINENO
1849 # --------------------------
1850 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1851 ac_fn_c_try_compile ()
1852 {
1853 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1854 rm -f conftest.$ac_objext
1855 if { { ac_try="$ac_compile"
1856 case "(($ac_try" in
1857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1858 *) ac_try_echo=$ac_try;;
1859 esac
1860 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1861 $as_echo "$ac_try_echo"; } >&5
1862 (eval "$ac_compile") 2>conftest.err
1863 ac_status=$?
1864 if test -s conftest.err; then
1865 grep -v '^ *+' conftest.err >conftest.er1
1866 cat conftest.er1 >&5
1867 mv -f conftest.er1 conftest.err
1868 fi
1869 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1870 test $ac_status = 0; } && {
1871 test -z "$ac_c_werror_flag" ||
1872 test ! -s conftest.err
1873 } && test -s conftest.$ac_objext; then :
1874 ac_retval=0
1875 else
1876 $as_echo "$as_me: failed program was:" >&5
1877 sed 's/^/| /' conftest.$ac_ext >&5
1878
1879 ac_retval=1
1880 fi
1881 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1882 return $ac_retval
1883
1884 } # ac_fn_c_try_compile
1885
1886 # ac_fn_cxx_try_compile LINENO
1887 # ----------------------------
1888 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1889 ac_fn_cxx_try_compile ()
1890 {
1891 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1892 rm -f conftest.$ac_objext
1893 if { { ac_try="$ac_compile"
1894 case "(($ac_try" in
1895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1896 *) ac_try_echo=$ac_try;;
1897 esac
1898 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1899 $as_echo "$ac_try_echo"; } >&5
1900 (eval "$ac_compile") 2>conftest.err
1901 ac_status=$?
1902 if test -s conftest.err; then
1903 grep -v '^ *+' conftest.err >conftest.er1
1904 cat conftest.er1 >&5
1905 mv -f conftest.er1 conftest.err
1906 fi
1907 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1908 test $ac_status = 0; } && {
1909 test -z "$ac_cxx_werror_flag" ||
1910 test ! -s conftest.err
1911 } && test -s conftest.$ac_objext; then :
1912 ac_retval=0
1913 else
1914 $as_echo "$as_me: failed program was:" >&5
1915 sed 's/^/| /' conftest.$ac_ext >&5
1916
1917 ac_retval=1
1918 fi
1919 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1920 return $ac_retval
1921
1922 } # ac_fn_cxx_try_compile
1923
1924 # ac_fn_cxx_try_cpp LINENO
1925 # ------------------------
1926 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1927 ac_fn_cxx_try_cpp ()
1928 {
1929 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1930 if { { ac_try="$ac_cpp conftest.$ac_ext"
1931 case "(($ac_try" in
1932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1933 *) ac_try_echo=$ac_try;;
1934 esac
1935 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1936 $as_echo "$ac_try_echo"; } >&5
1937 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1938 ac_status=$?
1939 if test -s conftest.err; then
1940 grep -v '^ *+' conftest.err >conftest.er1
1941 cat conftest.er1 >&5
1942 mv -f conftest.er1 conftest.err
1943 fi
1944 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1945 test $ac_status = 0; } >/dev/null && {
1946 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1947 test ! -s conftest.err
1948 }; then :
1949 ac_retval=0
1950 else
1951 $as_echo "$as_me: failed program was:" >&5
1952 sed 's/^/| /' conftest.$ac_ext >&5
1953
1954 ac_retval=1
1955 fi
1956 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1957 return $ac_retval
1958
1959 } # ac_fn_cxx_try_cpp
1960
1961 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
1962 # ---------------------------------------------------------
1963 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1964 # the include files in INCLUDES and setting the cache variable VAR
1965 # accordingly.
1966 ac_fn_cxx_check_header_mongrel ()
1967 {
1968 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1969 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1971 $as_echo_n "checking for $2... " >&6; }
1972 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1973 $as_echo_n "(cached) " >&6
1974 fi
1975 eval ac_res=\$$3
1976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1977 $as_echo "$ac_res" >&6; }
1978 else
1979 # Is the header compilable?
1980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1981 $as_echo_n "checking $2 usability... " >&6; }
1982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1983 /* end confdefs.h. */
1984 $4
1985 #include <$2>
1986 _ACEOF
1987 if ac_fn_cxx_try_compile "$LINENO"; then :
1988 ac_header_compiler=yes
1989 else
1990 ac_header_compiler=no
1991 fi
1992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1994 $as_echo "$ac_header_compiler" >&6; }
1995
1996 # Is the header present?
1997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1998 $as_echo_n "checking $2 presence... " >&6; }
1999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2000 /* end confdefs.h. */
2001 #include <$2>
2002 _ACEOF
2003 if ac_fn_cxx_try_cpp "$LINENO"; then :
2004 ac_header_preproc=yes
2005 else
2006 ac_header_preproc=no
2007 fi
2008 rm -f conftest.err conftest.$ac_ext
2009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2010 $as_echo "$ac_header_preproc" >&6; }
2011
2012 # So? What about this header?
2013 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2014 yes:no: )
2015 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2016 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2017 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2018 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2019 ;;
2020 no:yes:* )
2021 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2022 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2023 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2024 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2025 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2026 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2027 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2028 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2029 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2030 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2031 ;;
2032 esac
2033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2034 $as_echo_n "checking for $2... " >&6; }
2035 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2036 $as_echo_n "(cached) " >&6
2037 else
2038 eval "$3=\$ac_header_compiler"
2039 fi
2040 eval ac_res=\$$3
2041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2042 $as_echo "$ac_res" >&6; }
2043 fi
2044 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2045
2046 } # ac_fn_cxx_check_header_mongrel
2047
2048 # ac_fn_cxx_try_run LINENO
2049 # ------------------------
2050 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2051 # that executables *can* be run.
2052 ac_fn_cxx_try_run ()
2053 {
2054 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2055 if { { ac_try="$ac_link"
2056 case "(($ac_try" in
2057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2058 *) ac_try_echo=$ac_try;;
2059 esac
2060 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2061 $as_echo "$ac_try_echo"; } >&5
2062 (eval "$ac_link") 2>&5
2063 ac_status=$?
2064 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2065 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2066 { { case "(($ac_try" in
2067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2068 *) ac_try_echo=$ac_try;;
2069 esac
2070 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2071 $as_echo "$ac_try_echo"; } >&5
2072 (eval "$ac_try") 2>&5
2073 ac_status=$?
2074 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2075 test $ac_status = 0; }; }; then :
2076 ac_retval=0
2077 else
2078 $as_echo "$as_me: program exited with status $ac_status" >&5
2079 $as_echo "$as_me: failed program was:" >&5
2080 sed 's/^/| /' conftest.$ac_ext >&5
2081
2082 ac_retval=$ac_status
2083 fi
2084 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2085 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2086 return $ac_retval
2087
2088 } # ac_fn_cxx_try_run
2089
2090 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2091 # ---------------------------------------------------------
2092 # Tests whether HEADER exists and can be compiled using the include files in
2093 # INCLUDES, setting the cache variable VAR accordingly.
2094 ac_fn_cxx_check_header_compile ()
2095 {
2096 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2098 $as_echo_n "checking for $2... " >&6; }
2099 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2100 $as_echo_n "(cached) " >&6
2101 else
2102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2103 /* end confdefs.h. */
2104 $4
2105 #include <$2>
2106 _ACEOF
2107 if ac_fn_cxx_try_compile "$LINENO"; then :
2108 eval "$3=yes"
2109 else
2110 eval "$3=no"
2111 fi
2112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2113 fi
2114 eval ac_res=\$$3
2115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2116 $as_echo "$ac_res" >&6; }
2117 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2118
2119 } # ac_fn_cxx_check_header_compile
2120
2121 # ac_fn_c_try_cpp LINENO
2122 # ----------------------
2123 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2124 ac_fn_c_try_cpp ()
2125 {
2126 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2127 if { { ac_try="$ac_cpp conftest.$ac_ext"
2128 case "(($ac_try" in
2129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2130 *) ac_try_echo=$ac_try;;
2131 esac
2132 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2133 $as_echo "$ac_try_echo"; } >&5
2134 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2135 ac_status=$?
2136 if test -s conftest.err; then
2137 grep -v '^ *+' conftest.err >conftest.er1
2138 cat conftest.er1 >&5
2139 mv -f conftest.er1 conftest.err
2140 fi
2141 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2142 test $ac_status = 0; } >/dev/null && {
2143 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2144 test ! -s conftest.err
2145 }; then :
2146 ac_retval=0
2147 else
2148 $as_echo "$as_me: failed program was:" >&5
2149 sed 's/^/| /' conftest.$ac_ext >&5
2150
2151 ac_retval=1
2152 fi
2153 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2154 return $ac_retval
2155
2156 } # ac_fn_c_try_cpp
2157
2158 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2159 # ----------------------------------------------
2160 # Tries to find the compile-time value of EXPR in a program that includes
2161 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2162 # computed
2163 ac_fn_cxx_compute_int ()
2164 {
2165 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2166 if test "$cross_compiling" = yes; then
2167 # Depending upon the size, compute the lo and hi bounds.
2168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2169 /* end confdefs.h. */
2170 $4
2171 int
2172 main ()
2173 {
2174 static int test_array [1 - 2 * !(($2) >= 0)];
2175 test_array [0] = 0
2176
2177 ;
2178 return 0;
2179 }
2180 _ACEOF
2181 if ac_fn_cxx_try_compile "$LINENO"; then :
2182 ac_lo=0 ac_mid=0
2183 while :; do
2184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2185 /* end confdefs.h. */
2186 $4
2187 int
2188 main ()
2189 {
2190 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2191 test_array [0] = 0
2192
2193 ;
2194 return 0;
2195 }
2196 _ACEOF
2197 if ac_fn_cxx_try_compile "$LINENO"; then :
2198 ac_hi=$ac_mid; break
2199 else
2200 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2201 if test $ac_lo -le $ac_mid; then
2202 ac_lo= ac_hi=
2203 break
2204 fi
2205 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2206 fi
2207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2208 done
2209 else
2210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2211 /* end confdefs.h. */
2212 $4
2213 int
2214 main ()
2215 {
2216 static int test_array [1 - 2 * !(($2) < 0)];
2217 test_array [0] = 0
2218
2219 ;
2220 return 0;
2221 }
2222 _ACEOF
2223 if ac_fn_cxx_try_compile "$LINENO"; then :
2224 ac_hi=-1 ac_mid=-1
2225 while :; do
2226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2227 /* end confdefs.h. */
2228 $4
2229 int
2230 main ()
2231 {
2232 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2233 test_array [0] = 0
2234
2235 ;
2236 return 0;
2237 }
2238 _ACEOF
2239 if ac_fn_cxx_try_compile "$LINENO"; then :
2240 ac_lo=$ac_mid; break
2241 else
2242 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2243 if test $ac_mid -le $ac_hi; then
2244 ac_lo= ac_hi=
2245 break
2246 fi
2247 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2248 fi
2249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2250 done
2251 else
2252 ac_lo= ac_hi=
2253 fi
2254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2255 fi
2256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2257 # Binary search between lo and hi bounds.
2258 while test "x$ac_lo" != "x$ac_hi"; do
2259 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2261 /* end confdefs.h. */
2262 $4
2263 int
2264 main ()
2265 {
2266 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2267 test_array [0] = 0
2268
2269 ;
2270 return 0;
2271 }
2272 _ACEOF
2273 if ac_fn_cxx_try_compile "$LINENO"; then :
2274 ac_hi=$ac_mid
2275 else
2276 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2277 fi
2278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2279 done
2280 case $ac_lo in #((
2281 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2282 '') ac_retval=1 ;;
2283 esac
2284 else
2285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2286 /* end confdefs.h. */
2287 $4
2288 static long int longval () { return $2; }
2289 static unsigned long int ulongval () { return $2; }
2290 #include <stdio.h>
2291 #include <stdlib.h>
2292 int
2293 main ()
2294 {
2295
2296 FILE *f = fopen ("conftest.val", "w");
2297 if (! f)
2298 return 1;
2299 if (($2) < 0)
2300 {
2301 long int i = longval ();
2302 if (i != ($2))
2303 return 1;
2304 fprintf (f, "%ld", i);
2305 }
2306 else
2307 {
2308 unsigned long int i = ulongval ();
2309 if (i != ($2))
2310 return 1;
2311 fprintf (f, "%lu", i);
2312 }
2313 /* Do not output a trailing newline, as this causes \r\n confusion
2314 on some platforms. */
2315 return ferror (f) || fclose (f) != 0;
2316
2317 ;
2318 return 0;
2319 }
2320 _ACEOF
2321 if ac_fn_cxx_try_run "$LINENO"; then :
2322 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2323 else
2324 ac_retval=1
2325 fi
2326 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2327 conftest.$ac_objext conftest.beam conftest.$ac_ext
2328 rm -f conftest.val
2329
2330 fi
2331 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2332 return $ac_retval
2333
2334 } # ac_fn_cxx_compute_int
2335
2336 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2337 # ---------------------------------------------
2338 # Tests whether TYPE exists after having included INCLUDES, setting cache
2339 # variable VAR accordingly.
2340 ac_fn_cxx_check_type ()
2341 {
2342 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2344 $as_echo_n "checking for $2... " >&6; }
2345 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2346 $as_echo_n "(cached) " >&6
2347 else
2348 eval "$3=no"
2349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2350 /* end confdefs.h. */
2351 $4
2352 int
2353 main ()
2354 {
2355 if (sizeof ($2))
2356 return 0;
2357 ;
2358 return 0;
2359 }
2360 _ACEOF
2361 if ac_fn_cxx_try_compile "$LINENO"; then :
2362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2363 /* end confdefs.h. */
2364 $4
2365 int
2366 main ()
2367 {
2368 if (sizeof (($2)))
2369 return 0;
2370 ;
2371 return 0;
2372 }
2373 _ACEOF
2374 if ac_fn_cxx_try_compile "$LINENO"; then :
2375
2376 else
2377 eval "$3=yes"
2378 fi
2379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2380 fi
2381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2382 fi
2383 eval ac_res=\$$3
2384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2385 $as_echo "$ac_res" >&6; }
2386 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2387
2388 } # ac_fn_cxx_check_type
2389
2390 # ac_fn_c_find_intX_t LINENO BITS VAR
2391 # -----------------------------------
2392 # Finds a signed integer type with width BITS, setting cache variable VAR
2393 # accordingly.
2394 ac_fn_c_find_intX_t ()
2395 {
2396 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2398 $as_echo_n "checking for int$2_t... " >&6; }
2399 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2400 $as_echo_n "(cached) " >&6
2401 else
2402 eval "$3=no"
2403 for ac_type in int$2_t 'int' 'long int' \
2404 'long long int' 'short int' 'signed char'; do
2405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2406 /* end confdefs.h. */
2407 $ac_includes_default
2408 int
2409 main ()
2410 {
2411 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2412 test_array [0] = 0
2413
2414 ;
2415 return 0;
2416 }
2417 _ACEOF
2418 if ac_fn_cxx_try_compile "$LINENO"; then :
2419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2420 /* end confdefs.h. */
2421 $ac_includes_default
2422 int
2423 main ()
2424 {
2425 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2426 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2427 test_array [0] = 0
2428
2429 ;
2430 return 0;
2431 }
2432 _ACEOF
2433 if ac_fn_cxx_try_compile "$LINENO"; then :
2434
2435 else
2436 case $ac_type in #(
2437 int$2_t) :
2438 eval "$3=yes" ;; #(
2439 *) :
2440 eval "$3=\$ac_type" ;;
2441 esac
2442 fi
2443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2444 fi
2445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2446 eval as_val=\$$3
2447 if test "x$as_val" = x""no; then :
2448
2449 else
2450 break
2451 fi
2452 done
2453 fi
2454 eval ac_res=\$$3
2455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2456 $as_echo "$ac_res" >&6; }
2457 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2458
2459 } # ac_fn_c_find_intX_t
2460
2461 # ac_fn_cxx_try_link LINENO
2462 # -------------------------
2463 # Try to link conftest.$ac_ext, and return whether this succeeded.
2464 ac_fn_cxx_try_link ()
2465 {
2466 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2467 rm -f conftest.$ac_objext conftest$ac_exeext
2468 if { { ac_try="$ac_link"
2469 case "(($ac_try" in
2470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2471 *) ac_try_echo=$ac_try;;
2472 esac
2473 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2474 $as_echo "$ac_try_echo"; } >&5
2475 (eval "$ac_link") 2>conftest.err
2476 ac_status=$?
2477 if test -s conftest.err; then
2478 grep -v '^ *+' conftest.err >conftest.er1
2479 cat conftest.er1 >&5
2480 mv -f conftest.er1 conftest.err
2481 fi
2482 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2483 test $ac_status = 0; } && {
2484 test -z "$ac_cxx_werror_flag" ||
2485 test ! -s conftest.err
2486 } && test -s conftest$ac_exeext && {
2487 test "$cross_compiling" = yes ||
2488 $as_test_x conftest$ac_exeext
2489 }; then :
2490 ac_retval=0
2491 else
2492 $as_echo "$as_me: failed program was:" >&5
2493 sed 's/^/| /' conftest.$ac_ext >&5
2494
2495 ac_retval=1
2496 fi
2497 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2498 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2499 # interfere with the next link command; also delete a directory that is
2500 # left behind by Apple's compiler. We do this before executing the actions.
2501 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2502 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2503 return $ac_retval
2504
2505 } # ac_fn_cxx_try_link
2506
2507 # ac_fn_c_find_uintX_t LINENO BITS VAR
2508 # ------------------------------------
2509 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2510 # accordingly.
2511 ac_fn_c_find_uintX_t ()
2512 {
2513 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2515 $as_echo_n "checking for uint$2_t... " >&6; }
2516 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2517 $as_echo_n "(cached) " >&6
2518 else
2519 eval "$3=no"
2520 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2521 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2523 /* end confdefs.h. */
2524 $ac_includes_default
2525 int
2526 main ()
2527 {
2528 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2529 test_array [0] = 0
2530
2531 ;
2532 return 0;
2533 }
2534 _ACEOF
2535 if ac_fn_cxx_try_compile "$LINENO"; then :
2536 case $ac_type in #(
2537 uint$2_t) :
2538 eval "$3=yes" ;; #(
2539 *) :
2540 eval "$3=\$ac_type" ;;
2541 esac
2542 fi
2543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2544 eval as_val=\$$3
2545 if test "x$as_val" = x""no; then :
2546
2547 else
2548 break
2549 fi
2550 done
2551 fi
2552 eval ac_res=\$$3
2553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2554 $as_echo "$ac_res" >&6; }
2555 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2556
2557 } # ac_fn_c_find_uintX_t
2558
2559 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2560 # ------------------------------------------------
2561 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2562 ac_fn_cxx_check_header_preproc ()
2563 {
2564 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2566 $as_echo_n "checking for $2... " >&6; }
2567 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2568 $as_echo_n "(cached) " >&6
2569 else
2570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2571 /* end confdefs.h. */
2572 #include <$2>
2573 _ACEOF
2574 if ac_fn_cxx_try_cpp "$LINENO"; then :
2575 eval "$3=yes"
2576 else
2577 eval "$3=no"
2578 fi
2579 rm -f conftest.err conftest.$ac_ext
2580 fi
2581 eval ac_res=\$$3
2582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2583 $as_echo "$ac_res" >&6; }
2584 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2585
2586 } # ac_fn_cxx_check_header_preproc
2587
2588 # ac_fn_cxx_check_func LINENO FUNC VAR
2589 # ------------------------------------
2590 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2591 ac_fn_cxx_check_func ()
2592 {
2593 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2595 $as_echo_n "checking for $2... " >&6; }
2596 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2597 $as_echo_n "(cached) " >&6
2598 else
2599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2600 /* end confdefs.h. */
2601 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2602 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2603 #define $2 innocuous_$2
2604
2605 /* System header to define __stub macros and hopefully few prototypes,
2606 which can conflict with char $2 (); below.
2607 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2608 <limits.h> exists even on freestanding compilers. */
2609
2610 #ifdef __STDC__
2611 # include <limits.h>
2612 #else
2613 # include <assert.h>
2614 #endif
2615
2616 #undef $2
2617
2618 /* Override any GCC internal prototype to avoid an error.
2619 Use char because int might match the return type of a GCC
2620 builtin and then its argument prototype would still apply. */
2621 #ifdef __cplusplus
2622 extern "C"
2623 #endif
2624 char $2 ();
2625 /* The GNU C library defines this for functions which it implements
2626 to always fail with ENOSYS. Some functions are actually named
2627 something starting with __ and the normal name is an alias. */
2628 #if defined __stub_$2 || defined __stub___$2
2629 choke me
2630 #endif
2631
2632 int
2633 main ()
2634 {
2635 return $2 ();
2636 ;
2637 return 0;
2638 }
2639 _ACEOF
2640 if ac_fn_cxx_try_link "$LINENO"; then :
2641 eval "$3=yes"
2642 else
2643 eval "$3=no"
2644 fi
2645 rm -f core conftest.err conftest.$ac_objext \
2646 conftest$ac_exeext conftest.$ac_ext
2647 fi
2648 eval ac_res=\$$3
2649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2650 $as_echo "$ac_res" >&6; }
2651 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2652
2653 } # ac_fn_cxx_check_func
2654
2655 # ac_fn_cxx_check_decl LINENO SYMBOL VAR
2656 # --------------------------------------
2657 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2658 ac_fn_cxx_check_decl ()
2659 {
2660 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2661 as_decl_name=`echo $2|sed 's/ *(.*//'`
2662 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2664 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2665 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2666 $as_echo_n "(cached) " >&6
2667 else
2668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2669 /* end confdefs.h. */
2670 $4
2671 int
2672 main ()
2673 {
2674 #ifndef $as_decl_name
2675 #ifdef __cplusplus
2676 (void) $as_decl_use;
2677 #else
2678 (void) $as_decl_name;
2679 #endif
2680 #endif
2681
2682 ;
2683 return 0;
2684 }
2685 _ACEOF
2686 if ac_fn_cxx_try_compile "$LINENO"; then :
2687 eval "$3=yes"
2688 else
2689 eval "$3=no"
2690 fi
2691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2692 fi
2693 eval ac_res=\$$3
2694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2695 $as_echo "$ac_res" >&6; }
2696 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2697
2698 } # ac_fn_cxx_check_decl
2699
2700 # ac_fn_c_try_link LINENO
2701 # -----------------------
2702 # Try to link conftest.$ac_ext, and return whether this succeeded.
2703 ac_fn_c_try_link ()
2704 {
2705 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2706 rm -f conftest.$ac_objext conftest$ac_exeext
2707 if { { ac_try="$ac_link"
2708 case "(($ac_try" in
2709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2710 *) ac_try_echo=$ac_try;;
2711 esac
2712 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2713 $as_echo "$ac_try_echo"; } >&5
2714 (eval "$ac_link") 2>conftest.err
2715 ac_status=$?
2716 if test -s conftest.err; then
2717 grep -v '^ *+' conftest.err >conftest.er1
2718 cat conftest.er1 >&5
2719 mv -f conftest.er1 conftest.err
2720 fi
2721 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2722 test $ac_status = 0; } && {
2723 test -z "$ac_c_werror_flag" ||
2724 test ! -s conftest.err
2725 } && test -s conftest$ac_exeext && {
2726 test "$cross_compiling" = yes ||
2727 $as_test_x conftest$ac_exeext
2728 }; then :
2729 ac_retval=0
2730 else
2731 $as_echo "$as_me: failed program was:" >&5
2732 sed 's/^/| /' conftest.$ac_ext >&5
2733
2734 ac_retval=1
2735 fi
2736 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2737 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2738 # interfere with the next link command; also delete a directory that is
2739 # left behind by Apple's compiler. We do this before executing the actions.
2740 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2741 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2742 return $ac_retval
2743
2744 } # ac_fn_c_try_link
2745
2746 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2747 # ----------------------------------------------
2748 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2749 ac_fn_c_check_header_preproc ()
2750 {
2751 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2753 $as_echo_n "checking for $2... " >&6; }
2754 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2755 $as_echo_n "(cached) " >&6
2756 else
2757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2758 /* end confdefs.h. */
2759 #include <$2>
2760 _ACEOF
2761 if ac_fn_c_try_cpp "$LINENO"; then :
2762 eval "$3=yes"
2763 else
2764 eval "$3=no"
2765 fi
2766 rm -f conftest.err conftest.$ac_ext
2767 fi
2768 eval ac_res=\$$3
2769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2770 $as_echo "$ac_res" >&6; }
2771 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2772
2773 } # ac_fn_c_check_header_preproc
2774
2775 # ac_fn_c_check_func LINENO FUNC VAR
2776 # ----------------------------------
2777 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2778 ac_fn_c_check_func ()
2779 {
2780 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2782 $as_echo_n "checking for $2... " >&6; }
2783 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2784 $as_echo_n "(cached) " >&6
2785 else
2786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2787 /* end confdefs.h. */
2788 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2789 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2790 #define $2 innocuous_$2
2791
2792 /* System header to define __stub macros and hopefully few prototypes,
2793 which can conflict with char $2 (); below.
2794 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2795 <limits.h> exists even on freestanding compilers. */
2796
2797 #ifdef __STDC__
2798 # include <limits.h>
2799 #else
2800 # include <assert.h>
2801 #endif
2802
2803 #undef $2
2804
2805 /* Override any GCC internal prototype to avoid an error.
2806 Use char because int might match the return type of a GCC
2807 builtin and then its argument prototype would still apply. */
2808 #ifdef __cplusplus
2809 extern "C"
2810 #endif
2811 char $2 ();
2812 /* The GNU C library defines this for functions which it implements
2813 to always fail with ENOSYS. Some functions are actually named
2814 something starting with __ and the normal name is an alias. */
2815 #if defined __stub_$2 || defined __stub___$2
2816 choke me
2817 #endif
2818
2819 int
2820 main ()
2821 {
2822 return $2 ();
2823 ;
2824 return 0;
2825 }
2826 _ACEOF
2827 if ac_fn_c_try_link "$LINENO"; then :
2828 eval "$3=yes"
2829 else
2830 eval "$3=no"
2831 fi
2832 rm -f core conftest.err conftest.$ac_objext \
2833 conftest$ac_exeext conftest.$ac_ext
2834 fi
2835 eval ac_res=\$$3
2836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2837 $as_echo "$ac_res" >&6; }
2838 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2839
2840 } # ac_fn_c_check_func
2841 cat >config.log <<_ACEOF
2842 This file contains any messages produced by compilers while
2843 running configure, to aid debugging if configure makes a mistake.
2844
2845 It was created by $as_me, which was
2846 generated by GNU Autoconf 2.64. Invocation command line was
2847
2848 $ $0 $@
2849
2850 _ACEOF
2851 exec 5>>config.log
2852 {
2853 cat <<_ASUNAME
2854 ## --------- ##
2855 ## Platform. ##
2856 ## --------- ##
2857
2858 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2859 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2860 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2861 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2862 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2863
2864 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2865 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2866
2867 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2868 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2869 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2870 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2871 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2872 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2873 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2874
2875 _ASUNAME
2876
2877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2878 for as_dir in $PATH
2879 do
2880 IFS=$as_save_IFS
2881 test -z "$as_dir" && as_dir=.
2882 $as_echo "PATH: $as_dir"
2883 done
2884 IFS=$as_save_IFS
2885
2886 } >&5
2887
2888 cat >&5 <<_ACEOF
2889
2890
2891 ## ----------- ##
2892 ## Core tests. ##
2893 ## ----------- ##
2894
2895 _ACEOF
2896
2897
2898 # Keep a trace of the command line.
2899 # Strip out --no-create and --no-recursion so they do not pile up.
2900 # Strip out --silent because we don't want to record it for future runs.
2901 # Also quote any args containing shell meta-characters.
2902 # Make two passes to allow for proper duplicate-argument suppression.
2903 ac_configure_args=
2904 ac_configure_args0=
2905 ac_configure_args1=
2906 ac_must_keep_next=false
2907 for ac_pass in 1 2
2908 do
2909 for ac_arg
2910 do
2911 case $ac_arg in
2912 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2913 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2914 | -silent | --silent | --silen | --sile | --sil)
2915 continue ;;
2916 *\'*)
2917 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2918 esac
2919 case $ac_pass in
2920 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2921 2)
2922 as_fn_append ac_configure_args1 " '$ac_arg'"
2923 if test $ac_must_keep_next = true; then
2924 ac_must_keep_next=false # Got value, back to normal.
2925 else
2926 case $ac_arg in
2927 *=* | --config-cache | -C | -disable-* | --disable-* \
2928 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2929 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2930 | -with-* | --with-* | -without-* | --without-* | --x)
2931 case "$ac_configure_args0 " in
2932 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2933 esac
2934 ;;
2935 -* ) ac_must_keep_next=true ;;
2936 esac
2937 fi
2938 as_fn_append ac_configure_args " '$ac_arg'"
2939 ;;
2940 esac
2941 done
2942 done
2943 { ac_configure_args0=; unset ac_configure_args0;}
2944 { ac_configure_args1=; unset ac_configure_args1;}
2945
2946 # When interrupted or exit'd, cleanup temporary files, and complete
2947 # config.log. We remove comments because anyway the quotes in there
2948 # would cause problems or look ugly.
2949 # WARNING: Use '\'' to represent an apostrophe within the trap.
2950 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2951 trap 'exit_status=$?
2952 # Save into config.log some information that might help in debugging.
2953 {
2954 echo
2955
2956 cat <<\_ASBOX
2957 ## ---------------- ##
2958 ## Cache variables. ##
2959 ## ---------------- ##
2960 _ASBOX
2961 echo
2962 # The following way of writing the cache mishandles newlines in values,
2963 (
2964 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2965 eval ac_val=\$$ac_var
2966 case $ac_val in #(
2967 *${as_nl}*)
2968 case $ac_var in #(
2969 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2970 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2971 esac
2972 case $ac_var in #(
2973 _ | IFS | as_nl) ;; #(
2974 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2975 *) { eval $ac_var=; unset $ac_var;} ;;
2976 esac ;;
2977 esac
2978 done
2979 (set) 2>&1 |
2980 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2981 *${as_nl}ac_space=\ *)
2982 sed -n \
2983 "s/'\''/'\''\\\\'\'''\''/g;
2984 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2985 ;; #(
2986 *)
2987 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2988 ;;
2989 esac |
2990 sort
2991 )
2992 echo
2993
2994 cat <<\_ASBOX
2995 ## ----------------- ##
2996 ## Output variables. ##
2997 ## ----------------- ##
2998 _ASBOX
2999 echo
3000 for ac_var in $ac_subst_vars
3001 do
3002 eval ac_val=\$$ac_var
3003 case $ac_val in
3004 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3005 esac
3006 $as_echo "$ac_var='\''$ac_val'\''"
3007 done | sort
3008 echo
3009
3010 if test -n "$ac_subst_files"; then
3011 cat <<\_ASBOX
3012 ## ------------------- ##
3013 ## File substitutions. ##
3014 ## ------------------- ##
3015 _ASBOX
3016 echo
3017 for ac_var in $ac_subst_files
3018 do
3019 eval ac_val=\$$ac_var
3020 case $ac_val in
3021 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3022 esac
3023 $as_echo "$ac_var='\''$ac_val'\''"
3024 done | sort
3025 echo
3026 fi
3027
3028 if test -s confdefs.h; then
3029 cat <<\_ASBOX
3030 ## ----------- ##
3031 ## confdefs.h. ##
3032 ## ----------- ##
3033 _ASBOX
3034 echo
3035 cat confdefs.h
3036 echo
3037 fi
3038 test "$ac_signal" != 0 &&
3039 $as_echo "$as_me: caught signal $ac_signal"
3040 $as_echo "$as_me: exit $exit_status"
3041 } >&5
3042 rm -f core *.core core.conftest.* &&
3043 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3044 exit $exit_status
3045 ' 0
3046 for ac_signal in 1 2 13 15; do
3047 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3048 done
3049 ac_signal=0
3050
3051 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3052 rm -f -r conftest* confdefs.h
3053
3054 $as_echo "/* confdefs.h */" > confdefs.h
3055
3056 # Predefined preprocessor variables.
3057
3058 cat >>confdefs.h <<_ACEOF
3059 #define PACKAGE_NAME "$PACKAGE_NAME"
3060 _ACEOF
3061
3062 cat >>confdefs.h <<_ACEOF
3063 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3064 _ACEOF
3065
3066 cat >>confdefs.h <<_ACEOF
3067 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3068 _ACEOF
3069
3070 cat >>confdefs.h <<_ACEOF
3071 #define PACKAGE_STRING "$PACKAGE_STRING"
3072 _ACEOF
3073
3074 cat >>confdefs.h <<_ACEOF
3075 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3076 _ACEOF
3077
3078 cat >>confdefs.h <<_ACEOF
3079 #define PACKAGE_URL "$PACKAGE_URL"
3080 _ACEOF
3081
3082
3083 # Let the site file select an alternate cache file if it wants to.
3084 # Prefer an explicitly selected file to automatically selected ones.
3085 ac_site_file1=NONE
3086 ac_site_file2=NONE
3087 if test -n "$CONFIG_SITE"; then
3088 ac_site_file1=$CONFIG_SITE
3089 elif test "x$prefix" != xNONE; then
3090 ac_site_file1=$prefix/share/config.site
3091 ac_site_file2=$prefix/etc/config.site
3092 else
3093 ac_site_file1=$ac_default_prefix/share/config.site
3094 ac_site_file2=$ac_default_prefix/etc/config.site
3095 fi
3096 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3097 do
3098 test "x$ac_site_file" = xNONE && continue
3099 if test -r "$ac_site_file"; then
3100 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3101 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3102 sed 's/^/| /' "$ac_site_file" >&5
3103 . "$ac_site_file"
3104 fi
3105 done
3106
3107 if test -r "$cache_file"; then
3108 # Some versions of bash will fail to source /dev/null (special
3109 # files actually), so we avoid doing that.
3110 if test -f "$cache_file"; then
3111 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3112 $as_echo "$as_me: loading cache $cache_file" >&6;}
3113 case $cache_file in
3114 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3115 *) . "./$cache_file";;
3116 esac
3117 fi
3118 else
3119 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3120 $as_echo "$as_me: creating cache $cache_file" >&6;}
3121 >$cache_file
3122 fi
3123
3124 # Check that the precious variables saved in the cache have kept the same
3125 # value.
3126 ac_cache_corrupted=false
3127 for ac_var in $ac_precious_vars; do
3128 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3129 eval ac_new_set=\$ac_env_${ac_var}_set
3130 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3131 eval ac_new_val=\$ac_env_${ac_var}_value
3132 case $ac_old_set,$ac_new_set in
3133 set,)
3134 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3135 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3136 ac_cache_corrupted=: ;;
3137 ,set)
3138 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3139 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3140 ac_cache_corrupted=: ;;
3141 ,);;
3142 *)
3143 if test "x$ac_old_val" != "x$ac_new_val"; then
3144 # differences in whitespace do not lead to failure.
3145 ac_old_val_w=`echo x $ac_old_val`
3146 ac_new_val_w=`echo x $ac_new_val`
3147 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3148 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3149 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3150 ac_cache_corrupted=:
3151 else
3152 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3153 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3154 eval $ac_var=\$ac_old_val
3155 fi
3156 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3157 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3158 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3159 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3160 fi;;
3161 esac
3162 # Pass precious variables to config.status.
3163 if test "$ac_new_set" = set; then
3164 case $ac_new_val in
3165 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3166 *) ac_arg=$ac_var=$ac_new_val ;;
3167 esac
3168 case " $ac_configure_args " in
3169 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3170 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3171 esac
3172 fi
3173 done
3174 if $ac_cache_corrupted; then
3175 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3176 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3177 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3178 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3179 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3180 fi
3181 ## -------------------- ##
3182 ## Main body of script. ##
3183 ## -------------------- ##
3184
3185 ac_ext=c
3186 ac_cpp='$CPP $CPPFLAGS'
3187 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3188 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3189 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3190
3191
3192
3193
3194
3195
3196 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3197
3198
3199 gcc_version=`cat $srcdir/BASE-VER`
3200
3201 # Determine the host, build, and target systems
3202 ac_aux_dir=
3203 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3204 for ac_t in install-sh install.sh shtool; do
3205 if test -f "$ac_dir/$ac_t"; then
3206 ac_aux_dir=$ac_dir
3207 ac_install_sh="$ac_aux_dir/$ac_t -c"
3208 break 2
3209 fi
3210 done
3211 done
3212 if test -z "$ac_aux_dir"; then
3213 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3214 fi
3215
3216 # These three variables are undocumented and unsupported,
3217 # and are intended to be withdrawn in a future Autoconf release.
3218 # They can cause serious problems if a builder's source tree is in a directory
3219 # whose full name contains unusual characters.
3220 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3221 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3222 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3223
3224
3225 # Make sure we can run config.sub.
3226 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3227 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3228
3229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3230 $as_echo_n "checking build system type... " >&6; }
3231 if test "${ac_cv_build+set}" = set; then :
3232 $as_echo_n "(cached) " >&6
3233 else
3234 ac_build_alias=$build_alias
3235 test "x$ac_build_alias" = x &&
3236 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3237 test "x$ac_build_alias" = x &&
3238 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3239 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3240 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3241
3242 fi
3243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3244 $as_echo "$ac_cv_build" >&6; }
3245 case $ac_cv_build in
3246 *-*-*) ;;
3247 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3248 esac
3249 build=$ac_cv_build
3250 ac_save_IFS=$IFS; IFS='-'
3251 set x $ac_cv_build
3252 shift
3253 build_cpu=$1
3254 build_vendor=$2
3255 shift; shift
3256 # Remember, the first character of IFS is used to create $*,
3257 # except with old shells:
3258 build_os=$*
3259 IFS=$ac_save_IFS
3260 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3261
3262
3263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3264 $as_echo_n "checking host system type... " >&6; }
3265 if test "${ac_cv_host+set}" = set; then :
3266 $as_echo_n "(cached) " >&6
3267 else
3268 if test "x$host_alias" = x; then
3269 ac_cv_host=$ac_cv_build
3270 else
3271 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3272 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3273 fi
3274
3275 fi
3276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3277 $as_echo "$ac_cv_host" >&6; }
3278 case $ac_cv_host in
3279 *-*-*) ;;
3280 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3281 esac
3282 host=$ac_cv_host
3283 ac_save_IFS=$IFS; IFS='-'
3284 set x $ac_cv_host
3285 shift
3286 host_cpu=$1
3287 host_vendor=$2
3288 shift; shift
3289 # Remember, the first character of IFS is used to create $*,
3290 # except with old shells:
3291 host_os=$*
3292 IFS=$ac_save_IFS
3293 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3294
3295
3296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3297 $as_echo_n "checking target system type... " >&6; }
3298 if test "${ac_cv_target+set}" = set; then :
3299 $as_echo_n "(cached) " >&6
3300 else
3301 if test "x$target_alias" = x; then
3302 ac_cv_target=$ac_cv_host
3303 else
3304 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3305 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3306 fi
3307
3308 fi
3309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3310 $as_echo "$ac_cv_target" >&6; }
3311 case $ac_cv_target in
3312 *-*-*) ;;
3313 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3314 esac
3315 target=$ac_cv_target
3316 ac_save_IFS=$IFS; IFS='-'
3317 set x $ac_cv_target
3318 shift
3319 target_cpu=$1
3320 target_vendor=$2
3321 shift; shift
3322 # Remember, the first character of IFS is used to create $*,
3323 # except with old shells:
3324 target_os=$*
3325 IFS=$ac_save_IFS
3326 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3327
3328
3329 # The aliases save the names the user supplied, while $host etc.
3330 # will get canonicalized.
3331 test -n "$target_alias" &&
3332 test "$program_prefix$program_suffix$program_transform_name" = \
3333 NONENONEs,x,x, &&
3334 program_prefix=${target_alias}-
3335
3336 # Determine the noncanonical host name, for Ada.
3337 case ${build_alias} in
3338 "") build_noncanonical=${build} ;;
3339 *) build_noncanonical=${build_alias} ;;
3340 esac
3341
3342 case ${host_alias} in
3343 "") host_noncanonical=${build_noncanonical} ;;
3344 *) host_noncanonical=${host_alias} ;;
3345 esac
3346
3347
3348
3349
3350 # Determine the noncanonical target name, for directory use.
3351 case ${target_alias} in
3352 "") target_noncanonical=${host_noncanonical} ;;
3353 *) target_noncanonical=${target_alias} ;;
3354 esac
3355
3356
3357
3358
3359 # Used for constructing correct paths for offload compilers.
3360 real_target_noncanonical=${target_noncanonical}
3361 accel_dir_suffix=
3362
3363 # Determine the target- and build-specific subdirectories
3364
3365 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3366 # have matching libraries, they should use host libraries: Makefile.tpl
3367 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3368 # However, they still use the build modules, because the corresponding
3369 # host modules (e.g. bison) are only built for the host when bootstrap
3370 # finishes. So:
3371 # - build_subdir is where we find build modules, and never changes.
3372 # - build_libsubdir is where we find build libraries, and can be overridden.
3373
3374 # Prefix 'build-' so this never conflicts with target_subdir.
3375 build_subdir="build-${build_noncanonical}"
3376
3377 # Check whether --with-build-libsubdir was given.
3378 if test "${with_build_libsubdir+set}" = set; then :
3379 withval=$with_build_libsubdir; build_libsubdir="$withval"
3380 else
3381 build_libsubdir="$build_subdir"
3382 fi
3383
3384 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3385 if ( test $srcdir = . && test -d gcc ) \
3386 || test -d $srcdir/../host-${host_noncanonical}; then
3387 host_subdir="host-${host_noncanonical}"
3388 else
3389 host_subdir=.
3390 fi
3391 # No prefix.
3392 target_subdir=${target_noncanonical}
3393
3394
3395 # Set program_transform_name
3396 test "$program_prefix" != NONE &&
3397 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3398 # Use a double $ so make ignores it.
3399 test "$program_suffix" != NONE &&
3400 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3401 # Double any \ or $.
3402 # By default was `s,x,x', remove it if useless.
3403 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3404 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3405
3406
3407 # Check for bogus environment variables.
3408 # Test if LIBRARY_PATH contains the notation for the current directory
3409 # since this would lead to problems installing/building glibc.
3410 # LIBRARY_PATH contains the current directory if one of the following
3411 # is true:
3412 # - one of the terminals (":" and ";") is the first or last sign
3413 # - two terminals occur directly after each other
3414 # - the path contains an element with a dot in it
3415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3416 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3417 case ${LIBRARY_PATH} in
3418 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3419 library_path_setting="contains current directory"
3420 ;;
3421 *)
3422 library_path_setting="ok"
3423 ;;
3424 esac
3425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3426 $as_echo "$library_path_setting" >&6; }
3427 if test "$library_path_setting" != "ok"; then
3428 as_fn_error "
3429 *** LIBRARY_PATH shouldn't contain the current directory when
3430 *** building gcc. Please change the environment variable
3431 *** and run configure again." "$LINENO" 5
3432 fi
3433
3434 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3435 # since this would lead to problems installing/building glibc.
3436 # GCC_EXEC_PREFIX contains the current directory if one of the following
3437 # is true:
3438 # - one of the terminals (":" and ";") is the first or last sign
3439 # - two terminals occur directly after each other
3440 # - the path contains an element with a dot in it
3441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3442 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3443 case ${GCC_EXEC_PREFIX} in
3444 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3445 gcc_exec_prefix_setting="contains current directory"
3446 ;;
3447 *)
3448 gcc_exec_prefix_setting="ok"
3449 ;;
3450 esac
3451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3452 $as_echo "$gcc_exec_prefix_setting" >&6; }
3453 if test "$gcc_exec_prefix_setting" != "ok"; then
3454 as_fn_error "
3455 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3456 *** building gcc. Please change the environment variable
3457 *** and run configure again." "$LINENO" 5
3458 fi
3459
3460 # -----------
3461 # Directories
3462 # -----------
3463
3464 # Specify the local prefix
3465 local_prefix=
3466
3467 # Check whether --with-local-prefix was given.
3468 if test "${with_local_prefix+set}" = set; then :
3469 withval=$with_local_prefix; case "${withval}" in
3470 yes) as_fn_error "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3471 no) ;;
3472 *) local_prefix=$with_local_prefix ;;
3473 esac
3474 fi
3475
3476
3477 # Default local prefix if it is empty
3478 if test x$local_prefix = x; then
3479 local_prefix=/usr/local
3480 fi
3481
3482
3483 # Check whether --with-native-system-header-dir was given.
3484 if test "${with_native_system_header_dir+set}" = set; then :
3485 withval=$with_native_system_header_dir;
3486 case ${with_native_system_header_dir} in
3487 yes|no) as_fn_error "bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
3488 /* | [A-Za-z]:[\\/]*) ;;
3489 *) as_fn_error "--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
3490 esac
3491 configured_native_system_header_dir="${withval}"
3492
3493 else
3494 configured_native_system_header_dir=
3495 fi
3496
3497
3498
3499 # Check whether --with-build-sysroot was given.
3500 if test "${with_build_sysroot+set}" = set; then :
3501 withval=$with_build_sysroot; if test x"$withval" != x ; then
3502 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
3503 fi
3504 else
3505 SYSROOT_CFLAGS_FOR_TARGET=
3506 fi
3507
3508
3509
3510 if test "x$prefix" = xNONE; then
3511 test_prefix=/usr/local
3512 else
3513 test_prefix=$prefix
3514 fi
3515 if test "x$exec_prefix" = xNONE; then
3516 test_exec_prefix=$test_prefix
3517 else
3518 test_exec_prefix=$exec_prefix
3519 fi
3520
3521
3522 # Check whether --with-sysroot was given.
3523 if test "${with_sysroot+set}" = set; then :
3524 withval=$with_sysroot;
3525 case ${with_sysroot} in
3526 /) ;;
3527 */) with_sysroot=`echo $with_sysroot | sed 's,/$,,'` ;;
3528 esac
3529 case ${with_sysroot} in
3530 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
3531 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
3532 esac
3533
3534 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
3535 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
3536
3537 case ${TARGET_SYSTEM_ROOT} in
3538 "${test_prefix}"|"${test_prefix}/"*|\
3539 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
3540 '${prefix}'|'${prefix}/'*|\
3541 '${exec_prefix}'|'${exec_prefix}/'*)
3542 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
3543 TARGET_SYSTEM_ROOT_DEFINE="$t"
3544 ;;
3545 esac
3546
3547 else
3548
3549 TARGET_SYSTEM_ROOT=
3550 TARGET_SYSTEM_ROOT_DEFINE=
3551 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
3552
3553 fi
3554
3555
3556
3557
3558
3559 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3560 # passed in by the toplevel make and thus we'd get different behavior
3561 # depending on where we built the sources.
3562 gcc_gxx_include_dir=
3563 # Specify the g++ header file directory
3564
3565 # Check whether --with-gxx-include-dir was given.
3566 if test "${with_gxx_include_dir+set}" = set; then :
3567 withval=$with_gxx_include_dir; case "${withval}" in
3568 yes) as_fn_error "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3569 no) ;;
3570 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
3571 esac
3572 fi
3573
3574
3575 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3576 if test x${gcc_gxx_include_dir} = x; then
3577 if test x${enable_version_specific_runtime_libs} = xyes; then
3578 gcc_gxx_include_dir='${libsubdir}/include/c++'
3579 else
3580 libstdcxx_incdir='include/c++/$(version)'
3581 if test x$host != x$target; then
3582 libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3583 fi
3584 gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3585 fi
3586 fi
3587
3588 gcc_gxx_include_dir_add_sysroot=0
3589 if test "${with_sysroot+set}" = set; then
3590 gcc_gxx_without_sysroot=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3591 if test "${gcc_gxx_without_sysroot}"; then
3592 if test x${with_sysroot} != x/; then
3593 gcc_gxx_include_dir="${gcc_gxx_without_sysroot}"
3594 fi
3595 gcc_gxx_include_dir_add_sysroot=1
3596 fi
3597 fi
3598
3599
3600 # Check whether --with-cpp_install_dir was given.
3601 if test "${with_cpp_install_dir+set}" = set; then :
3602 withval=$with_cpp_install_dir; if test x$withval = xyes; then
3603 as_fn_error "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3604 elif test x$withval != xno; then
3605 cpp_install_dir=$withval
3606 fi
3607 fi
3608
3609
3610 # We would like to our source tree to be readonly. However when releases or
3611 # pre-releases are generated, the flex/bison generated files as well as the
3612 # various formats of manuals need to be included along with the rest of the
3613 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3614 # just that.
3615
3616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3617 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3618 # Check whether --enable-generated-files-in-srcdir was given.
3619 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3620 enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3621 else
3622 generated_files_in_srcdir=no
3623 fi
3624
3625
3626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3627 $as_echo "$generated_files_in_srcdir" >&6; }
3628
3629 if test "$generated_files_in_srcdir" = "yes"; then
3630 GENINSRC=''
3631 else
3632 GENINSRC='#'
3633 fi
3634
3635
3636 # -------------------
3637 # Find default linker
3638 # -------------------
3639
3640 # With GNU ld
3641
3642 # Check whether --with-gnu-ld was given.
3643 if test "${with_gnu_ld+set}" = set; then :
3644 withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3645 else
3646 gnu_ld_flag=no
3647 fi
3648
3649
3650 case $target in
3651 *darwin*) ld64_flag=yes;; # Darwin can only use a ld64-compatible linker.
3652 *) ld64_flag=no;;
3653 esac
3654
3655 # With pre-defined ld
3656
3657 # Check whether --with-ld was given.
3658 if test "${with_ld+set}" = set; then :
3659 withval=$with_ld; DEFAULT_LINKER="$with_ld"
3660 fi
3661
3662 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3663 if test ! -x "$DEFAULT_LINKER"; then
3664 as_fn_error "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3665 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3666 gnu_ld_flag=yes
3667 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep ld64- > /dev/null; then
3668 ld64_flag=yes
3669 fi
3670
3671 cat >>confdefs.h <<_ACEOF
3672 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3673 _ACEOF
3674
3675 fi
3676
3677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3678 $as_echo_n "checking whether a default linker was specified... " >&6; }
3679 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3680 if test x"$gnu_ld_flag" = x"no"; then
3681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3682 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3683 else
3684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3685 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3686 fi
3687 else
3688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3689 $as_echo "no" >&6; }
3690 fi
3691
3692 # With demangler in GNU ld
3693
3694 # Check whether --with-demangler-in-ld was given.
3695 if test "${with_demangler_in_ld+set}" = set; then :
3696 withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3697 else
3698 demangler_in_ld=yes
3699 fi
3700
3701
3702 # ----------------------
3703 # Find default assembler
3704 # ----------------------
3705
3706 # With GNU as
3707
3708 # Check whether --with-gnu-as was given.
3709 if test "${with_gnu_as+set}" = set; then :
3710 withval=$with_gnu_as; gas_flag="$with_gnu_as"
3711 else
3712 gas_flag=no
3713 fi
3714
3715
3716
3717 # Check whether --with-as was given.
3718 if test "${with_as+set}" = set; then :
3719 withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
3720 fi
3721
3722 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3723 if test ! -x "$DEFAULT_ASSEMBLER"; then
3724 as_fn_error "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3725 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3726 gas_flag=yes
3727 fi
3728
3729 cat >>confdefs.h <<_ACEOF
3730 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3731 _ACEOF
3732
3733 fi
3734
3735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3736 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3737 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3738 if test x"$gas_flag" = x"no"; then
3739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3740 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3741 else
3742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3743 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3744 fi
3745 else
3746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3747 $as_echo "no" >&6; }
3748 fi
3749
3750 # ---------------
3751 # Find C compiler
3752 # ---------------
3753
3754 # If a non-executable a.out is present (e.g. created by GNU as above even if
3755 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3756 # file, even when creating an executable, so an execution test fails.
3757 # Remove possible default executable files to avoid this.
3758 #
3759 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3760 # Autoconf includes it.
3761 rm -f a.out a.exe b.out
3762
3763 # Find the native compiler
3764 ac_ext=c
3765 ac_cpp='$CPP $CPPFLAGS'
3766 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3767 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3768 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3769 if test -n "$ac_tool_prefix"; then
3770 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3771 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3773 $as_echo_n "checking for $ac_word... " >&6; }
3774 if test "${ac_cv_prog_CC+set}" = set; then :
3775 $as_echo_n "(cached) " >&6
3776 else
3777 if test -n "$CC"; then
3778 ac_cv_prog_CC="$CC" # Let the user override the test.
3779 else
3780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3781 for as_dir in $PATH
3782 do
3783 IFS=$as_save_IFS
3784 test -z "$as_dir" && as_dir=.
3785 for ac_exec_ext in '' $ac_executable_extensions; do
3786 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3787 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3789 break 2
3790 fi
3791 done
3792 done
3793 IFS=$as_save_IFS
3794
3795 fi
3796 fi
3797 CC=$ac_cv_prog_CC
3798 if test -n "$CC"; then
3799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3800 $as_echo "$CC" >&6; }
3801 else
3802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3803 $as_echo "no" >&6; }
3804 fi
3805
3806
3807 fi
3808 if test -z "$ac_cv_prog_CC"; then
3809 ac_ct_CC=$CC
3810 # Extract the first word of "gcc", so it can be a program name with args.
3811 set dummy gcc; ac_word=$2
3812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3813 $as_echo_n "checking for $ac_word... " >&6; }
3814 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3815 $as_echo_n "(cached) " >&6
3816 else
3817 if test -n "$ac_ct_CC"; then
3818 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3819 else
3820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3821 for as_dir in $PATH
3822 do
3823 IFS=$as_save_IFS
3824 test -z "$as_dir" && as_dir=.
3825 for ac_exec_ext in '' $ac_executable_extensions; do
3826 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3827 ac_cv_prog_ac_ct_CC="gcc"
3828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3829 break 2
3830 fi
3831 done
3832 done
3833 IFS=$as_save_IFS
3834
3835 fi
3836 fi
3837 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3838 if test -n "$ac_ct_CC"; then
3839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3840 $as_echo "$ac_ct_CC" >&6; }
3841 else
3842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3843 $as_echo "no" >&6; }
3844 fi
3845
3846 if test "x$ac_ct_CC" = x; then
3847 CC=""
3848 else
3849 case $cross_compiling:$ac_tool_warned in
3850 yes:)
3851 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3852 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3853 ac_tool_warned=yes ;;
3854 esac
3855 CC=$ac_ct_CC
3856 fi
3857 else
3858 CC="$ac_cv_prog_CC"
3859 fi
3860
3861 if test -z "$CC"; then
3862 if test -n "$ac_tool_prefix"; then
3863 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3864 set dummy ${ac_tool_prefix}cc; ac_word=$2
3865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3866 $as_echo_n "checking for $ac_word... " >&6; }
3867 if test "${ac_cv_prog_CC+set}" = set; then :
3868 $as_echo_n "(cached) " >&6
3869 else
3870 if test -n "$CC"; then
3871 ac_cv_prog_CC="$CC" # Let the user override the test.
3872 else
3873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3874 for as_dir in $PATH
3875 do
3876 IFS=$as_save_IFS
3877 test -z "$as_dir" && as_dir=.
3878 for ac_exec_ext in '' $ac_executable_extensions; do
3879 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3880 ac_cv_prog_CC="${ac_tool_prefix}cc"
3881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3882 break 2
3883 fi
3884 done
3885 done
3886 IFS=$as_save_IFS
3887
3888 fi
3889 fi
3890 CC=$ac_cv_prog_CC
3891 if test -n "$CC"; then
3892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3893 $as_echo "$CC" >&6; }
3894 else
3895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3896 $as_echo "no" >&6; }
3897 fi
3898
3899
3900 fi
3901 fi
3902 if test -z "$CC"; then
3903 # Extract the first word of "cc", so it can be a program name with args.
3904 set dummy cc; ac_word=$2
3905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3906 $as_echo_n "checking for $ac_word... " >&6; }
3907 if test "${ac_cv_prog_CC+set}" = set; then :
3908 $as_echo_n "(cached) " >&6
3909 else
3910 if test -n "$CC"; then
3911 ac_cv_prog_CC="$CC" # Let the user override the test.
3912 else
3913 ac_prog_rejected=no
3914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3915 for as_dir in $PATH
3916 do
3917 IFS=$as_save_IFS
3918 test -z "$as_dir" && as_dir=.
3919 for ac_exec_ext in '' $ac_executable_extensions; do
3920 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3921 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3922 ac_prog_rejected=yes
3923 continue
3924 fi
3925 ac_cv_prog_CC="cc"
3926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3927 break 2
3928 fi
3929 done
3930 done
3931 IFS=$as_save_IFS
3932
3933 if test $ac_prog_rejected = yes; then
3934 # We found a bogon in the path, so make sure we never use it.
3935 set dummy $ac_cv_prog_CC
3936 shift
3937 if test $# != 0; then
3938 # We chose a different compiler from the bogus one.
3939 # However, it has the same basename, so the bogon will be chosen
3940 # first if we set CC to just the basename; use the full file name.
3941 shift
3942 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3943 fi
3944 fi
3945 fi
3946 fi
3947 CC=$ac_cv_prog_CC
3948 if test -n "$CC"; then
3949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3950 $as_echo "$CC" >&6; }
3951 else
3952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3953 $as_echo "no" >&6; }
3954 fi
3955
3956
3957 fi
3958 if test -z "$CC"; then
3959 if test -n "$ac_tool_prefix"; then
3960 for ac_prog in cl.exe
3961 do
3962 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3963 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3965 $as_echo_n "checking for $ac_word... " >&6; }
3966 if test "${ac_cv_prog_CC+set}" = set; then :
3967 $as_echo_n "(cached) " >&6
3968 else
3969 if test -n "$CC"; then
3970 ac_cv_prog_CC="$CC" # Let the user override the test.
3971 else
3972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3973 for as_dir in $PATH
3974 do
3975 IFS=$as_save_IFS
3976 test -z "$as_dir" && as_dir=.
3977 for ac_exec_ext in '' $ac_executable_extensions; do
3978 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3979 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3981 break 2
3982 fi
3983 done
3984 done
3985 IFS=$as_save_IFS
3986
3987 fi
3988 fi
3989 CC=$ac_cv_prog_CC
3990 if test -n "$CC"; then
3991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3992 $as_echo "$CC" >&6; }
3993 else
3994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3995 $as_echo "no" >&6; }
3996 fi
3997
3998
3999 test -n "$CC" && break
4000 done
4001 fi
4002 if test -z "$CC"; then
4003 ac_ct_CC=$CC
4004 for ac_prog in cl.exe
4005 do
4006 # Extract the first word of "$ac_prog", so it can be a program name with args.
4007 set dummy $ac_prog; ac_word=$2
4008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4009 $as_echo_n "checking for $ac_word... " >&6; }
4010 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4011 $as_echo_n "(cached) " >&6
4012 else
4013 if test -n "$ac_ct_CC"; then
4014 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4015 else
4016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4017 for as_dir in $PATH
4018 do
4019 IFS=$as_save_IFS
4020 test -z "$as_dir" && as_dir=.
4021 for ac_exec_ext in '' $ac_executable_extensions; do
4022 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4023 ac_cv_prog_ac_ct_CC="$ac_prog"
4024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4025 break 2
4026 fi
4027 done
4028 done
4029 IFS=$as_save_IFS
4030
4031 fi
4032 fi
4033 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4034 if test -n "$ac_ct_CC"; then
4035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4036 $as_echo "$ac_ct_CC" >&6; }
4037 else
4038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4039 $as_echo "no" >&6; }
4040 fi
4041
4042
4043 test -n "$ac_ct_CC" && break
4044 done
4045
4046 if test "x$ac_ct_CC" = x; then
4047 CC=""
4048 else
4049 case $cross_compiling:$ac_tool_warned in
4050 yes:)
4051 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4052 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4053 ac_tool_warned=yes ;;
4054 esac
4055 CC=$ac_ct_CC
4056 fi
4057 fi
4058
4059 fi
4060
4061
4062 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4063 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4064 as_fn_error "no acceptable C compiler found in \$PATH
4065 See \`config.log' for more details." "$LINENO" 5; }
4066
4067 # Provide some information about the compiler.
4068 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4069 set X $ac_compile
4070 ac_compiler=$2
4071 for ac_option in --version -v -V -qversion; do
4072 { { ac_try="$ac_compiler $ac_option >&5"
4073 case "(($ac_try" in
4074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4075 *) ac_try_echo=$ac_try;;
4076 esac
4077 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4078 $as_echo "$ac_try_echo"; } >&5
4079 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4080 ac_status=$?
4081 if test -s conftest.err; then
4082 sed '10a\
4083 ... rest of stderr output deleted ...
4084 10q' conftest.err >conftest.er1
4085 cat conftest.er1 >&5
4086 rm -f conftest.er1 conftest.err
4087 fi
4088 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4089 test $ac_status = 0; }
4090 done
4091
4092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4093 /* end confdefs.h. */
4094
4095 int
4096 main ()
4097 {
4098
4099 ;
4100 return 0;
4101 }
4102 _ACEOF
4103 ac_clean_files_save=$ac_clean_files
4104 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
4105 # Try to create an executable without -o first, disregard a.out.
4106 # It will help us diagnose broken compilers, and finding out an intuition
4107 # of exeext.
4108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4109 $as_echo_n "checking for C compiler default output file name... " >&6; }
4110 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4111
4112 # The possible output files:
4113 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4114
4115 ac_rmfiles=
4116 for ac_file in $ac_files
4117 do
4118 case $ac_file in
4119 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4120 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4121 esac
4122 done
4123 rm -f $ac_rmfiles
4124
4125 if { { ac_try="$ac_link_default"
4126 case "(($ac_try" in
4127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4128 *) ac_try_echo=$ac_try;;
4129 esac
4130 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4131 $as_echo "$ac_try_echo"; } >&5
4132 (eval "$ac_link_default") 2>&5
4133 ac_status=$?
4134 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4135 test $ac_status = 0; }; then :
4136 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4137 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4138 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4139 # so that the user can short-circuit this test for compilers unknown to
4140 # Autoconf.
4141 for ac_file in $ac_files ''
4142 do
4143 test -f "$ac_file" || continue
4144 case $ac_file in
4145 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4146 ;;
4147 [ab].out )
4148 # We found the default executable, but exeext='' is most
4149 # certainly right.
4150 break;;
4151 *.* )
4152 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4153 then :; else
4154 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4155 fi
4156 # We set ac_cv_exeext here because the later test for it is not
4157 # safe: cross compilers may not add the suffix if given an `-o'
4158 # argument, so we may need to know it at that point already.
4159 # Even if this section looks crufty: it has the advantage of
4160 # actually working.
4161 break;;
4162 * )
4163 break;;
4164 esac
4165 done
4166 test "$ac_cv_exeext" = no && ac_cv_exeext=
4167
4168 else
4169 ac_file=''
4170 fi
4171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4172 $as_echo "$ac_file" >&6; }
4173 if test -z "$ac_file"; then :
4174 $as_echo "$as_me: failed program was:" >&5
4175 sed 's/^/| /' conftest.$ac_ext >&5
4176
4177 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4178 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4179 { as_fn_set_status 77
4180 as_fn_error "C compiler cannot create executables
4181 See \`config.log' for more details." "$LINENO" 5; }; }
4182 fi
4183 ac_exeext=$ac_cv_exeext
4184
4185 # Check that the compiler produces executables we can run. If not, either
4186 # the compiler is broken, or we cross compile.
4187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4188 $as_echo_n "checking whether the C compiler works... " >&6; }
4189 # If not cross compiling, check that we can run a simple program.
4190 if test "$cross_compiling" != yes; then
4191 if { ac_try='./$ac_file'
4192 { { case "(($ac_try" in
4193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4194 *) ac_try_echo=$ac_try;;
4195 esac
4196 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4197 $as_echo "$ac_try_echo"; } >&5
4198 (eval "$ac_try") 2>&5
4199 ac_status=$?
4200 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4201 test $ac_status = 0; }; }; then
4202 cross_compiling=no
4203 else
4204 if test "$cross_compiling" = maybe; then
4205 cross_compiling=yes
4206 else
4207 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4208 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4209 as_fn_error "cannot run C compiled programs.
4210 If you meant to cross compile, use \`--host'.
4211 See \`config.log' for more details." "$LINENO" 5; }
4212 fi
4213 fi
4214 fi
4215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4216 $as_echo "yes" >&6; }
4217
4218 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4219 ac_clean_files=$ac_clean_files_save
4220 # Check that the compiler produces executables we can run. If not, either
4221 # the compiler is broken, or we cross compile.
4222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4223 $as_echo_n "checking whether we are cross compiling... " >&6; }
4224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4225 $as_echo "$cross_compiling" >&6; }
4226
4227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4228 $as_echo_n "checking for suffix of executables... " >&6; }
4229 if { { ac_try="$ac_link"
4230 case "(($ac_try" in
4231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4232 *) ac_try_echo=$ac_try;;
4233 esac
4234 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4235 $as_echo "$ac_try_echo"; } >&5
4236 (eval "$ac_link") 2>&5
4237 ac_status=$?
4238 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4239 test $ac_status = 0; }; then :
4240 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4241 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4242 # work properly (i.e., refer to `conftest.exe'), while it won't with
4243 # `rm'.
4244 for ac_file in conftest.exe conftest conftest.*; do
4245 test -f "$ac_file" || continue
4246 case $ac_file in
4247 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4248 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4249 break;;
4250 * ) break;;
4251 esac
4252 done
4253 else
4254 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4255 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4256 as_fn_error "cannot compute suffix of executables: cannot compile and link
4257 See \`config.log' for more details." "$LINENO" 5; }
4258 fi
4259 rm -f conftest$ac_cv_exeext
4260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4261 $as_echo "$ac_cv_exeext" >&6; }
4262
4263 rm -f conftest.$ac_ext
4264 EXEEXT=$ac_cv_exeext
4265 ac_exeext=$EXEEXT
4266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4267 $as_echo_n "checking for suffix of object files... " >&6; }
4268 if test "${ac_cv_objext+set}" = set; then :
4269 $as_echo_n "(cached) " >&6
4270 else
4271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4272 /* end confdefs.h. */
4273
4274 int
4275 main ()
4276 {
4277
4278 ;
4279 return 0;
4280 }
4281 _ACEOF
4282 rm -f conftest.o conftest.obj
4283 if { { ac_try="$ac_compile"
4284 case "(($ac_try" in
4285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4286 *) ac_try_echo=$ac_try;;
4287 esac
4288 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4289 $as_echo "$ac_try_echo"; } >&5
4290 (eval "$ac_compile") 2>&5
4291 ac_status=$?
4292 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4293 test $ac_status = 0; }; then :
4294 for ac_file in conftest.o conftest.obj conftest.*; do
4295 test -f "$ac_file" || continue;
4296 case $ac_file in
4297 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4298 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4299 break;;
4300 esac
4301 done
4302 else
4303 $as_echo "$as_me: failed program was:" >&5
4304 sed 's/^/| /' conftest.$ac_ext >&5
4305
4306 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4307 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4308 as_fn_error "cannot compute suffix of object files: cannot compile
4309 See \`config.log' for more details." "$LINENO" 5; }
4310 fi
4311 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4312 fi
4313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4314 $as_echo "$ac_cv_objext" >&6; }
4315 OBJEXT=$ac_cv_objext
4316 ac_objext=$OBJEXT
4317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4318 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4319 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4320 $as_echo_n "(cached) " >&6
4321 else
4322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4323 /* end confdefs.h. */
4324
4325 int
4326 main ()
4327 {
4328 #ifndef __GNUC__
4329 choke me
4330 #endif
4331
4332 ;
4333 return 0;
4334 }
4335 _ACEOF
4336 if ac_fn_c_try_compile "$LINENO"; then :
4337 ac_compiler_gnu=yes
4338 else
4339 ac_compiler_gnu=no
4340 fi
4341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4342 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4343
4344 fi
4345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4346 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4347 if test $ac_compiler_gnu = yes; then
4348 GCC=yes
4349 else
4350 GCC=
4351 fi
4352 ac_test_CFLAGS=${CFLAGS+set}
4353 ac_save_CFLAGS=$CFLAGS
4354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4355 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4356 if test "${ac_cv_prog_cc_g+set}" = set; then :
4357 $as_echo_n "(cached) " >&6
4358 else
4359 ac_save_c_werror_flag=$ac_c_werror_flag
4360 ac_c_werror_flag=yes
4361 ac_cv_prog_cc_g=no
4362 CFLAGS="-g"
4363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4364 /* end confdefs.h. */
4365
4366 int
4367 main ()
4368 {
4369
4370 ;
4371 return 0;
4372 }
4373 _ACEOF
4374 if ac_fn_c_try_compile "$LINENO"; then :
4375 ac_cv_prog_cc_g=yes
4376 else
4377 CFLAGS=""
4378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4379 /* end confdefs.h. */
4380
4381 int
4382 main ()
4383 {
4384
4385 ;
4386 return 0;
4387 }
4388 _ACEOF
4389 if ac_fn_c_try_compile "$LINENO"; then :
4390
4391 else
4392 ac_c_werror_flag=$ac_save_c_werror_flag
4393 CFLAGS="-g"
4394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4395 /* end confdefs.h. */
4396
4397 int
4398 main ()
4399 {
4400
4401 ;
4402 return 0;
4403 }
4404 _ACEOF
4405 if ac_fn_c_try_compile "$LINENO"; then :
4406 ac_cv_prog_cc_g=yes
4407 fi
4408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4409 fi
4410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4411 fi
4412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4413 ac_c_werror_flag=$ac_save_c_werror_flag
4414 fi
4415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4416 $as_echo "$ac_cv_prog_cc_g" >&6; }
4417 if test "$ac_test_CFLAGS" = set; then
4418 CFLAGS=$ac_save_CFLAGS
4419 elif test $ac_cv_prog_cc_g = yes; then
4420 if test "$GCC" = yes; then
4421 CFLAGS="-g -O2"
4422 else
4423 CFLAGS="-g"
4424 fi
4425 else
4426 if test "$GCC" = yes; then
4427 CFLAGS="-O2"
4428 else
4429 CFLAGS=
4430 fi
4431 fi
4432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4433 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4434 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4435 $as_echo_n "(cached) " >&6
4436 else
4437 ac_cv_prog_cc_c89=no
4438 ac_save_CC=$CC
4439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4440 /* end confdefs.h. */
4441 #include <stdarg.h>
4442 #include <stdio.h>
4443 #include <sys/types.h>
4444 #include <sys/stat.h>
4445 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4446 struct buf { int x; };
4447 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4448 static char *e (p, i)
4449 char **p;
4450 int i;
4451 {
4452 return p[i];
4453 }
4454 static char *f (char * (*g) (char **, int), char **p, ...)
4455 {
4456 char *s;
4457 va_list v;
4458 va_start (v,p);
4459 s = g (p, va_arg (v,int));
4460 va_end (v);
4461 return s;
4462 }
4463
4464 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4465 function prototypes and stuff, but not '\xHH' hex character constants.
4466 These don't provoke an error unfortunately, instead are silently treated
4467 as 'x'. The following induces an error, until -std is added to get
4468 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4469 array size at least. It's necessary to write '\x00'==0 to get something
4470 that's true only with -std. */
4471 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4472
4473 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4474 inside strings and character constants. */
4475 #define FOO(x) 'x'
4476 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4477
4478 int test (int i, double x);
4479 struct s1 {int (*f) (int a);};
4480 struct s2 {int (*f) (double a);};
4481 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4482 int argc;
4483 char **argv;
4484 int
4485 main ()
4486 {
4487 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4488 ;
4489 return 0;
4490 }
4491 _ACEOF
4492 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4493 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4494 do
4495 CC="$ac_save_CC $ac_arg"
4496 if ac_fn_c_try_compile "$LINENO"; then :
4497 ac_cv_prog_cc_c89=$ac_arg
4498 fi
4499 rm -f core conftest.err conftest.$ac_objext
4500 test "x$ac_cv_prog_cc_c89" != "xno" && break
4501 done
4502 rm -f conftest.$ac_ext
4503 CC=$ac_save_CC
4504
4505 fi
4506 # AC_CACHE_VAL
4507 case "x$ac_cv_prog_cc_c89" in
4508 x)
4509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4510 $as_echo "none needed" >&6; } ;;
4511 xno)
4512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4513 $as_echo "unsupported" >&6; } ;;
4514 *)
4515 CC="$CC $ac_cv_prog_cc_c89"
4516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4517 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4518 esac
4519 if test "x$ac_cv_prog_cc_c89" != xno; then :
4520
4521 fi
4522
4523 ac_ext=c
4524 ac_cpp='$CPP $CPPFLAGS'
4525 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4526 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4527 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4528
4529 ac_ext=cpp
4530 ac_cpp='$CXXCPP $CPPFLAGS'
4531 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4532 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4533 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4534 if test -z "$CXX"; then
4535 if test -n "$CCC"; then
4536 CXX=$CCC
4537 else
4538 if test -n "$ac_tool_prefix"; then
4539 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4540 do
4541 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4542 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4544 $as_echo_n "checking for $ac_word... " >&6; }
4545 if test "${ac_cv_prog_CXX+set}" = set; then :
4546 $as_echo_n "(cached) " >&6
4547 else
4548 if test -n "$CXX"; then
4549 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4550 else
4551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4552 for as_dir in $PATH
4553 do
4554 IFS=$as_save_IFS
4555 test -z "$as_dir" && as_dir=.
4556 for ac_exec_ext in '' $ac_executable_extensions; do
4557 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4558 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4560 break 2
4561 fi
4562 done
4563 done
4564 IFS=$as_save_IFS
4565
4566 fi
4567 fi
4568 CXX=$ac_cv_prog_CXX
4569 if test -n "$CXX"; then
4570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4571 $as_echo "$CXX" >&6; }
4572 else
4573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4574 $as_echo "no" >&6; }
4575 fi
4576
4577
4578 test -n "$CXX" && break
4579 done
4580 fi
4581 if test -z "$CXX"; then
4582 ac_ct_CXX=$CXX
4583 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4584 do
4585 # Extract the first word of "$ac_prog", so it can be a program name with args.
4586 set dummy $ac_prog; ac_word=$2
4587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4588 $as_echo_n "checking for $ac_word... " >&6; }
4589 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4590 $as_echo_n "(cached) " >&6
4591 else
4592 if test -n "$ac_ct_CXX"; then
4593 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4594 else
4595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4596 for as_dir in $PATH
4597 do
4598 IFS=$as_save_IFS
4599 test -z "$as_dir" && as_dir=.
4600 for ac_exec_ext in '' $ac_executable_extensions; do
4601 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4602 ac_cv_prog_ac_ct_CXX="$ac_prog"
4603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4604 break 2
4605 fi
4606 done
4607 done
4608 IFS=$as_save_IFS
4609
4610 fi
4611 fi
4612 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4613 if test -n "$ac_ct_CXX"; then
4614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4615 $as_echo "$ac_ct_CXX" >&6; }
4616 else
4617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4618 $as_echo "no" >&6; }
4619 fi
4620
4621
4622 test -n "$ac_ct_CXX" && break
4623 done
4624
4625 if test "x$ac_ct_CXX" = x; then
4626 CXX="g++"
4627 else
4628 case $cross_compiling:$ac_tool_warned in
4629 yes:)
4630 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4631 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4632 ac_tool_warned=yes ;;
4633 esac
4634 CXX=$ac_ct_CXX
4635 fi
4636 fi
4637
4638 fi
4639 fi
4640 # Provide some information about the compiler.
4641 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4642 set X $ac_compile
4643 ac_compiler=$2
4644 for ac_option in --version -v -V -qversion; do
4645 { { ac_try="$ac_compiler $ac_option >&5"
4646 case "(($ac_try" in
4647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4648 *) ac_try_echo=$ac_try;;
4649 esac
4650 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4651 $as_echo "$ac_try_echo"; } >&5
4652 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4653 ac_status=$?
4654 if test -s conftest.err; then
4655 sed '10a\
4656 ... rest of stderr output deleted ...
4657 10q' conftest.err >conftest.er1
4658 cat conftest.er1 >&5
4659 rm -f conftest.er1 conftest.err
4660 fi
4661 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4662 test $ac_status = 0; }
4663 done
4664
4665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4666 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4667 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4668 $as_echo_n "(cached) " >&6
4669 else
4670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4671 /* end confdefs.h. */
4672
4673 int
4674 main ()
4675 {
4676 #ifndef __GNUC__
4677 choke me
4678 #endif
4679
4680 ;
4681 return 0;
4682 }
4683 _ACEOF
4684 if ac_fn_cxx_try_compile "$LINENO"; then :
4685 ac_compiler_gnu=yes
4686 else
4687 ac_compiler_gnu=no
4688 fi
4689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4690 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4691
4692 fi
4693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4694 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4695 if test $ac_compiler_gnu = yes; then
4696 GXX=yes
4697 else
4698 GXX=
4699 fi
4700 ac_test_CXXFLAGS=${CXXFLAGS+set}
4701 ac_save_CXXFLAGS=$CXXFLAGS
4702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4703 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4704 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4705 $as_echo_n "(cached) " >&6
4706 else
4707 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4708 ac_cxx_werror_flag=yes
4709 ac_cv_prog_cxx_g=no
4710 CXXFLAGS="-g"
4711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4712 /* end confdefs.h. */
4713
4714 int
4715 main ()
4716 {
4717
4718 ;
4719 return 0;
4720 }
4721 _ACEOF
4722 if ac_fn_cxx_try_compile "$LINENO"; then :
4723 ac_cv_prog_cxx_g=yes
4724 else
4725 CXXFLAGS=""
4726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4727 /* end confdefs.h. */
4728
4729 int
4730 main ()
4731 {
4732
4733 ;
4734 return 0;
4735 }
4736 _ACEOF
4737 if ac_fn_cxx_try_compile "$LINENO"; then :
4738
4739 else
4740 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4741 CXXFLAGS="-g"
4742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4743 /* end confdefs.h. */
4744
4745 int
4746 main ()
4747 {
4748
4749 ;
4750 return 0;
4751 }
4752 _ACEOF
4753 if ac_fn_cxx_try_compile "$LINENO"; then :
4754 ac_cv_prog_cxx_g=yes
4755 fi
4756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4757 fi
4758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4759 fi
4760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4761 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4762 fi
4763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4764 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4765 if test "$ac_test_CXXFLAGS" = set; then
4766 CXXFLAGS=$ac_save_CXXFLAGS
4767 elif test $ac_cv_prog_cxx_g = yes; then
4768 if test "$GXX" = yes; then
4769 CXXFLAGS="-g -O2"
4770 else
4771 CXXFLAGS="-g"
4772 fi
4773 else
4774 if test "$GXX" = yes; then
4775 CXXFLAGS="-O2"
4776 else
4777 CXXFLAGS=
4778 fi
4779 fi
4780 ac_ext=c
4781 ac_cpp='$CPP $CPPFLAGS'
4782 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4783 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4784 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4785
4786
4787
4788
4789 if test -n "$ac_tool_prefix"; then
4790 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4791 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4793 $as_echo_n "checking for $ac_word... " >&6; }
4794 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4795 $as_echo_n "(cached) " >&6
4796 else
4797 if test -n "$GNATBIND"; then
4798 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4799 else
4800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4801 for as_dir in $PATH
4802 do
4803 IFS=$as_save_IFS
4804 test -z "$as_dir" && as_dir=.
4805 for ac_exec_ext in '' $ac_executable_extensions; do
4806 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4807 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4809 break 2
4810 fi
4811 done
4812 done
4813 IFS=$as_save_IFS
4814
4815 fi
4816 fi
4817 GNATBIND=$ac_cv_prog_GNATBIND
4818 if test -n "$GNATBIND"; then
4819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4820 $as_echo "$GNATBIND" >&6; }
4821 else
4822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4823 $as_echo "no" >&6; }
4824 fi
4825
4826
4827 fi
4828 if test -z "$ac_cv_prog_GNATBIND"; then
4829 ac_ct_GNATBIND=$GNATBIND
4830 # Extract the first word of "gnatbind", so it can be a program name with args.
4831 set dummy gnatbind; ac_word=$2
4832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4833 $as_echo_n "checking for $ac_word... " >&6; }
4834 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4835 $as_echo_n "(cached) " >&6
4836 else
4837 if test -n "$ac_ct_GNATBIND"; then
4838 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4839 else
4840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4841 for as_dir in $PATH
4842 do
4843 IFS=$as_save_IFS
4844 test -z "$as_dir" && as_dir=.
4845 for ac_exec_ext in '' $ac_executable_extensions; do
4846 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4847 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4849 break 2
4850 fi
4851 done
4852 done
4853 IFS=$as_save_IFS
4854
4855 fi
4856 fi
4857 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4858 if test -n "$ac_ct_GNATBIND"; then
4859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4860 $as_echo "$ac_ct_GNATBIND" >&6; }
4861 else
4862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4863 $as_echo "no" >&6; }
4864 fi
4865
4866 if test "x$ac_ct_GNATBIND" = x; then
4867 GNATBIND="no"
4868 else
4869 case $cross_compiling:$ac_tool_warned in
4870 yes:)
4871 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4872 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4873 ac_tool_warned=yes ;;
4874 esac
4875 GNATBIND=$ac_ct_GNATBIND
4876 fi
4877 else
4878 GNATBIND="$ac_cv_prog_GNATBIND"
4879 fi
4880
4881 if test -n "$ac_tool_prefix"; then
4882 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4883 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4885 $as_echo_n "checking for $ac_word... " >&6; }
4886 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4887 $as_echo_n "(cached) " >&6
4888 else
4889 if test -n "$GNATMAKE"; then
4890 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4891 else
4892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4893 for as_dir in $PATH
4894 do
4895 IFS=$as_save_IFS
4896 test -z "$as_dir" && as_dir=.
4897 for ac_exec_ext in '' $ac_executable_extensions; do
4898 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4899 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4901 break 2
4902 fi
4903 done
4904 done
4905 IFS=$as_save_IFS
4906
4907 fi
4908 fi
4909 GNATMAKE=$ac_cv_prog_GNATMAKE
4910 if test -n "$GNATMAKE"; then
4911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4912 $as_echo "$GNATMAKE" >&6; }
4913 else
4914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4915 $as_echo "no" >&6; }
4916 fi
4917
4918
4919 fi
4920 if test -z "$ac_cv_prog_GNATMAKE"; then
4921 ac_ct_GNATMAKE=$GNATMAKE
4922 # Extract the first word of "gnatmake", so it can be a program name with args.
4923 set dummy gnatmake; ac_word=$2
4924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4925 $as_echo_n "checking for $ac_word... " >&6; }
4926 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4927 $as_echo_n "(cached) " >&6
4928 else
4929 if test -n "$ac_ct_GNATMAKE"; then
4930 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4931 else
4932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4933 for as_dir in $PATH
4934 do
4935 IFS=$as_save_IFS
4936 test -z "$as_dir" && as_dir=.
4937 for ac_exec_ext in '' $ac_executable_extensions; do
4938 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4939 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4941 break 2
4942 fi
4943 done
4944 done
4945 IFS=$as_save_IFS
4946
4947 fi
4948 fi
4949 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4950 if test -n "$ac_ct_GNATMAKE"; then
4951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4952 $as_echo "$ac_ct_GNATMAKE" >&6; }
4953 else
4954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4955 $as_echo "no" >&6; }
4956 fi
4957
4958 if test "x$ac_ct_GNATMAKE" = x; then
4959 GNATMAKE="no"
4960 else
4961 case $cross_compiling:$ac_tool_warned in
4962 yes:)
4963 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4964 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4965 ac_tool_warned=yes ;;
4966 esac
4967 GNATMAKE=$ac_ct_GNATMAKE
4968 fi
4969 else
4970 GNATMAKE="$ac_cv_prog_GNATMAKE"
4971 fi
4972
4973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4974 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4975 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4976 $as_echo_n "(cached) " >&6
4977 else
4978 cat >conftest.adb <<EOF
4979 procedure conftest is begin null; end conftest;
4980 EOF
4981 acx_cv_cc_gcc_supports_ada=no
4982 # There is a bug in old released versions of GCC which causes the
4983 # driver to exit successfully when the appropriate language module
4984 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4985 # Therefore we must check for the error message as well as an
4986 # unsuccessful exit.
4987 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4988 # given a .adb file, but produce no object file. So we must check
4989 # if an object file was really produced to guard against this.
4990 errors=`(${CC} -I"$srcdir"/ada -c conftest.adb) 2>&1 || echo failure`
4991 if test x"$errors" = x && test -f conftest.$ac_objext; then
4992 acx_cv_cc_gcc_supports_ada=yes
4993 fi
4994 rm -f conftest.*
4995 fi
4996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4997 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4998
4999 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5000 have_gnat=yes
5001 else
5002 have_gnat=no
5003 fi
5004
5005
5006 # Do configure tests with the C++ compiler, since that's what we build with.
5007 ac_ext=cpp
5008 ac_cpp='$CXXCPP $CPPFLAGS'
5009 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5010 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5011 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5012
5013
5014 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
5015 # optimizations to be activated explicitly by the toplevel.
5016 case "$CC" in
5017 */prev-gcc/xgcc*) ;;
5018 *) CFLAGS=`echo "$CFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" `
5019 CXXFLAGS=`echo "$CXXFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` ;;
5020 esac
5021
5022
5023
5024 # Determine PICFLAG for target gnatlib.
5025
5026
5027
5028
5029 case "${target}" in
5030 # PIC is the default on some targets or must not be used.
5031 *-*-darwin*)
5032 # For darwin, common symbols are not allowed in MH_DYLIB files
5033 case "${CFLAGS}" in
5034 # If we are using a compiler supporting mdynamic-no-pic
5035 # and the option has been tested as safe to add, then cancel
5036 # it here, since the code generated is incompatible with shared
5037 # libs.
5038 *-mdynamic-no-pic*) PICFLAG_FOR_TARGET='-fno-common -mno-dynamic-no-pic' ;;
5039 *) PICFLAG_FOR_TARGET=-fno-common ;;
5040 esac
5041 ;;
5042 alpha*-dec-osf5*)
5043 # PIC is the default.
5044 ;;
5045 hppa*64*-*-hpux*)
5046 # PIC is the default for 64-bit PA HP-UX.
5047 ;;
5048 i[34567]86-*-cygwin* | x86_64-*-cygwin*)
5049 ;;
5050 i[34567]86-*-mingw* | x86_64-*-mingw*)
5051 ;;
5052 i[34567]86-*-interix[3-9]*)
5053 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5054 # Instead, we relocate shared libraries at runtime.
5055 ;;
5056 i[34567]86-*-nto-qnx*)
5057 # QNX uses GNU C++, but need to define -shared option too, otherwise
5058 # it will coredump.
5059 PICFLAG_FOR_TARGET='-fPIC -shared'
5060 ;;
5061 i[34567]86-pc-msdosdjgpp*)
5062 # DJGPP does not support shared libraries at all.
5063 ;;
5064 ia64*-*-hpux*)
5065 # On IA64 HP-UX, PIC is the default but the pic flag
5066 # sets the default TLS model and affects inlining.
5067 PICFLAG_FOR_TARGET=-fPIC
5068 ;;
5069 mips-sgi-irix6*)
5070 # PIC is the default.
5071 ;;
5072 rs6000-ibm-aix* | powerpc-ibm-aix*)
5073 # All AIX code is PIC.
5074 ;;
5075
5076 # Some targets support both -fPIC and -fpic, but prefer the latter.
5077 # FIXME: Why?
5078 i[34567]86-*-* | x86_64-*-*)
5079 PICFLAG_FOR_TARGET=-fpic
5080 ;;
5081 # FIXME: Override -fPIC default in libgcc only?
5082 sh-*-linux* | sh[2346lbe]*-*-linux*)
5083 PICFLAG_FOR_TARGET=-fpic
5084 ;;
5085 # FIXME: Simplify to sh*-*-netbsd*?
5086 sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
5087 sh64-*-netbsd* | sh64l*-*-netbsd*)
5088 PICFLAG_FOR_TARGET=-fpic
5089 ;;
5090 # Default to -fPIC unless specified otherwise.
5091 *)
5092 PICFLAG_FOR_TARGET=-fPIC
5093 ;;
5094 esac
5095
5096 # If the user explicitly uses -fpic/-fPIC, keep that.
5097 case "${CFLAGS_FOR_TARGET}" in
5098 *-fpic*)
5099 PICFLAG_FOR_TARGET=-fpic
5100 ;;
5101 *-fPIC*)
5102 PICFLAG_FOR_TARGET=-fPIC
5103 ;;
5104 esac
5105
5106
5107
5108 # -------------------------
5109 # Check C compiler features
5110 # -------------------------
5111
5112
5113 ac_ext=cpp
5114 ac_cpp='$CXXCPP $CPPFLAGS'
5115 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5116 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5117 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5119 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5120 if test -z "$CXXCPP"; then
5121 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
5122 $as_echo_n "(cached) " >&6
5123 else
5124 # Double quotes because CXXCPP needs to be expanded
5125 for CXXCPP in "$CXX -E" "/lib/cpp"
5126 do
5127 ac_preproc_ok=false
5128 for ac_cxx_preproc_warn_flag in '' yes
5129 do
5130 # Use a header file that comes with gcc, so configuring glibc
5131 # with a fresh cross-compiler works.
5132 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5133 # <limits.h> exists even on freestanding compilers.
5134 # On the NeXT, cc -E runs the code through the compiler's parser,
5135 # not just through cpp. "Syntax error" is here to catch this case.
5136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5137 /* end confdefs.h. */
5138 #ifdef __STDC__
5139 # include <limits.h>
5140 #else
5141 # include <assert.h>
5142 #endif
5143 Syntax error
5144 _ACEOF
5145 if ac_fn_cxx_try_cpp "$LINENO"; then :
5146
5147 else
5148 # Broken: fails on valid input.
5149 continue
5150 fi
5151 rm -f conftest.err conftest.$ac_ext
5152
5153 # OK, works on sane cases. Now check whether nonexistent headers
5154 # can be detected and how.
5155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5156 /* end confdefs.h. */
5157 #include <ac_nonexistent.h>
5158 _ACEOF
5159 if ac_fn_cxx_try_cpp "$LINENO"; then :
5160 # Broken: success on invalid input.
5161 continue
5162 else
5163 # Passes both tests.
5164 ac_preproc_ok=:
5165 break
5166 fi
5167 rm -f conftest.err conftest.$ac_ext
5168
5169 done
5170 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5171 rm -f conftest.err conftest.$ac_ext
5172 if $ac_preproc_ok; then :
5173 break
5174 fi
5175
5176 done
5177 ac_cv_prog_CXXCPP=$CXXCPP
5178
5179 fi
5180 CXXCPP=$ac_cv_prog_CXXCPP
5181 else
5182 ac_cv_prog_CXXCPP=$CXXCPP
5183 fi
5184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5185 $as_echo "$CXXCPP" >&6; }
5186 ac_preproc_ok=false
5187 for ac_cxx_preproc_warn_flag in '' yes
5188 do
5189 # Use a header file that comes with gcc, so configuring glibc
5190 # with a fresh cross-compiler works.
5191 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5192 # <limits.h> exists even on freestanding compilers.
5193 # On the NeXT, cc -E runs the code through the compiler's parser,
5194 # not just through cpp. "Syntax error" is here to catch this case.
5195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5196 /* end confdefs.h. */
5197 #ifdef __STDC__
5198 # include <limits.h>
5199 #else
5200 # include <assert.h>
5201 #endif
5202 Syntax error
5203 _ACEOF
5204 if ac_fn_cxx_try_cpp "$LINENO"; then :
5205
5206 else
5207 # Broken: fails on valid input.
5208 continue
5209 fi
5210 rm -f conftest.err conftest.$ac_ext
5211
5212 # OK, works on sane cases. Now check whether nonexistent headers
5213 # can be detected and how.
5214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5215 /* end confdefs.h. */
5216 #include <ac_nonexistent.h>
5217 _ACEOF
5218 if ac_fn_cxx_try_cpp "$LINENO"; then :
5219 # Broken: success on invalid input.
5220 continue
5221 else
5222 # Passes both tests.
5223 ac_preproc_ok=:
5224 break
5225 fi
5226 rm -f conftest.err conftest.$ac_ext
5227
5228 done
5229 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5230 rm -f conftest.err conftest.$ac_ext
5231 if $ac_preproc_ok; then :
5232
5233 else
5234 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5235 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5236 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
5237 See \`config.log' for more details." "$LINENO" 5; }
5238 fi
5239
5240 ac_ext=cpp
5241 ac_cpp='$CXXCPP $CPPFLAGS'
5242 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5243 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5244 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5245
5246
5247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5248 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5249 if test "${ac_cv_path_GREP+set}" = set; then :
5250 $as_echo_n "(cached) " >&6
5251 else
5252 if test -z "$GREP"; then
5253 ac_path_GREP_found=false
5254 # Loop through the user's path and test for each of PROGNAME-LIST
5255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5256 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5257 do
5258 IFS=$as_save_IFS
5259 test -z "$as_dir" && as_dir=.
5260 for ac_prog in grep ggrep; do
5261 for ac_exec_ext in '' $ac_executable_extensions; do
5262 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5263 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5264 # Check for GNU ac_path_GREP and select it if it is found.
5265 # Check for GNU $ac_path_GREP
5266 case `"$ac_path_GREP" --version 2>&1` in
5267 *GNU*)
5268 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5269 *)
5270 ac_count=0
5271 $as_echo_n 0123456789 >"conftest.in"
5272 while :
5273 do
5274 cat "conftest.in" "conftest.in" >"conftest.tmp"
5275 mv "conftest.tmp" "conftest.in"
5276 cp "conftest.in" "conftest.nl"
5277 $as_echo 'GREP' >> "conftest.nl"
5278 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5279 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5280 as_fn_arith $ac_count + 1 && ac_count=$as_val
5281 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5282 # Best one so far, save it but keep looking for a better one
5283 ac_cv_path_GREP="$ac_path_GREP"
5284 ac_path_GREP_max=$ac_count
5285 fi
5286 # 10*(2^10) chars as input seems more than enough
5287 test $ac_count -gt 10 && break
5288 done
5289 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5290 esac
5291
5292 $ac_path_GREP_found && break 3
5293 done
5294 done
5295 done
5296 IFS=$as_save_IFS
5297 if test -z "$ac_cv_path_GREP"; then
5298 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5299 fi
5300 else
5301 ac_cv_path_GREP=$GREP
5302 fi
5303
5304 fi
5305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5306 $as_echo "$ac_cv_path_GREP" >&6; }
5307 GREP="$ac_cv_path_GREP"
5308
5309
5310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5311 $as_echo_n "checking for egrep... " >&6; }
5312 if test "${ac_cv_path_EGREP+set}" = set; then :
5313 $as_echo_n "(cached) " >&6
5314 else
5315 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5316 then ac_cv_path_EGREP="$GREP -E"
5317 else
5318 if test -z "$EGREP"; then
5319 ac_path_EGREP_found=false
5320 # Loop through the user's path and test for each of PROGNAME-LIST
5321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5322 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5323 do
5324 IFS=$as_save_IFS
5325 test -z "$as_dir" && as_dir=.
5326 for ac_prog in egrep; do
5327 for ac_exec_ext in '' $ac_executable_extensions; do
5328 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5329 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5330 # Check for GNU ac_path_EGREP and select it if it is found.
5331 # Check for GNU $ac_path_EGREP
5332 case `"$ac_path_EGREP" --version 2>&1` in
5333 *GNU*)
5334 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5335 *)
5336 ac_count=0
5337 $as_echo_n 0123456789 >"conftest.in"
5338 while :
5339 do
5340 cat "conftest.in" "conftest.in" >"conftest.tmp"
5341 mv "conftest.tmp" "conftest.in"
5342 cp "conftest.in" "conftest.nl"
5343 $as_echo 'EGREP' >> "conftest.nl"
5344 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5345 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5346 as_fn_arith $ac_count + 1 && ac_count=$as_val
5347 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5348 # Best one so far, save it but keep looking for a better one
5349 ac_cv_path_EGREP="$ac_path_EGREP"
5350 ac_path_EGREP_max=$ac_count
5351 fi
5352 # 10*(2^10) chars as input seems more than enough
5353 test $ac_count -gt 10 && break
5354 done
5355 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5356 esac
5357
5358 $ac_path_EGREP_found && break 3
5359 done
5360 done
5361 done
5362 IFS=$as_save_IFS
5363 if test -z "$ac_cv_path_EGREP"; then
5364 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5365 fi
5366 else
5367 ac_cv_path_EGREP=$EGREP
5368 fi
5369
5370 fi
5371 fi
5372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5373 $as_echo "$ac_cv_path_EGREP" >&6; }
5374 EGREP="$ac_cv_path_EGREP"
5375
5376
5377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5378 $as_echo_n "checking for ANSI C header files... " >&6; }
5379 if test "${ac_cv_header_stdc+set}" = set; then :
5380 $as_echo_n "(cached) " >&6
5381 else
5382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5383 /* end confdefs.h. */
5384 #include <stdlib.h>
5385 #include <stdarg.h>
5386 #include <string.h>
5387 #include <float.h>
5388
5389 int
5390 main ()
5391 {
5392
5393 ;
5394 return 0;
5395 }
5396 _ACEOF
5397 if ac_fn_cxx_try_compile "$LINENO"; then :
5398 ac_cv_header_stdc=yes
5399 else
5400 ac_cv_header_stdc=no
5401 fi
5402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5403
5404 if test $ac_cv_header_stdc = yes; then
5405 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5407 /* end confdefs.h. */
5408 #include <string.h>
5409
5410 _ACEOF
5411 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5412 $EGREP "memchr" >/dev/null 2>&1; then :
5413
5414 else
5415 ac_cv_header_stdc=no
5416 fi
5417 rm -f conftest*
5418
5419 fi
5420
5421 if test $ac_cv_header_stdc = yes; then
5422 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5424 /* end confdefs.h. */
5425 #include <stdlib.h>
5426
5427 _ACEOF
5428 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5429 $EGREP "free" >/dev/null 2>&1; then :
5430
5431 else
5432 ac_cv_header_stdc=no
5433 fi
5434 rm -f conftest*
5435
5436 fi
5437
5438 if test $ac_cv_header_stdc = yes; then
5439 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5440 if test "$cross_compiling" = yes; then :
5441 :
5442 else
5443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5444 /* end confdefs.h. */
5445 #include <ctype.h>
5446 #include <stdlib.h>
5447 #if ((' ' & 0x0FF) == 0x020)
5448 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5449 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5450 #else
5451 # define ISLOWER(c) \
5452 (('a' <= (c) && (c) <= 'i') \
5453 || ('j' <= (c) && (c) <= 'r') \
5454 || ('s' <= (c) && (c) <= 'z'))
5455 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5456 #endif
5457
5458 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5459 int
5460 main ()
5461 {
5462 int i;
5463 for (i = 0; i < 256; i++)
5464 if (XOR (islower (i), ISLOWER (i))
5465 || toupper (i) != TOUPPER (i))
5466 return 2;
5467 return 0;
5468 }
5469 _ACEOF
5470 if ac_fn_cxx_try_run "$LINENO"; then :
5471
5472 else
5473 ac_cv_header_stdc=no
5474 fi
5475 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5476 conftest.$ac_objext conftest.beam conftest.$ac_ext
5477 fi
5478
5479 fi
5480 fi
5481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5482 $as_echo "$ac_cv_header_stdc" >&6; }
5483 if test $ac_cv_header_stdc = yes; then
5484
5485 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5486
5487 fi
5488
5489 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5490 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5491 inttypes.h stdint.h unistd.h
5492 do :
5493 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5494 ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5495 "
5496 eval as_val=\$$as_ac_Header
5497 if test "x$as_val" = x""yes; then :
5498 cat >>confdefs.h <<_ACEOF
5499 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5500 _ACEOF
5501
5502 fi
5503
5504 done
5505
5506
5507
5508 ac_fn_cxx_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5509 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5510 MINIX=yes
5511 else
5512 MINIX=
5513 fi
5514
5515
5516 if test "$MINIX" = yes; then
5517
5518 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5519
5520
5521 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5522
5523
5524 $as_echo "#define _MINIX 1" >>confdefs.h
5525
5526 fi
5527
5528
5529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5530 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5531 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5532 $as_echo_n "(cached) " >&6
5533 else
5534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5535 /* end confdefs.h. */
5536
5537 # define __EXTENSIONS__ 1
5538 $ac_includes_default
5539 int
5540 main ()
5541 {
5542
5543 ;
5544 return 0;
5545 }
5546 _ACEOF
5547 if ac_fn_cxx_try_compile "$LINENO"; then :
5548 ac_cv_safe_to_define___extensions__=yes
5549 else
5550 ac_cv_safe_to_define___extensions__=no
5551 fi
5552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5553 fi
5554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5555 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5556 test $ac_cv_safe_to_define___extensions__ = yes &&
5557 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5558
5559 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5560
5561 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5562
5563 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5564
5565 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5566
5567
5568 ac_ext=c
5569 ac_cpp='$CPP $CPPFLAGS'
5570 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5571 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5572 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5574 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5575 # On Suns, sometimes $CPP names a directory.
5576 if test -n "$CPP" && test -d "$CPP"; then
5577 CPP=
5578 fi
5579 if test -z "$CPP"; then
5580 if test "${ac_cv_prog_CPP+set}" = set; then :
5581 $as_echo_n "(cached) " >&6
5582 else
5583 # Double quotes because CPP needs to be expanded
5584 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5585 do
5586 ac_preproc_ok=false
5587 for ac_c_preproc_warn_flag in '' yes
5588 do
5589 # Use a header file that comes with gcc, so configuring glibc
5590 # with a fresh cross-compiler works.
5591 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5592 # <limits.h> exists even on freestanding compilers.
5593 # On the NeXT, cc -E runs the code through the compiler's parser,
5594 # not just through cpp. "Syntax error" is here to catch this case.
5595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5596 /* end confdefs.h. */
5597 #ifdef __STDC__
5598 # include <limits.h>
5599 #else
5600 # include <assert.h>
5601 #endif
5602 Syntax error
5603 _ACEOF
5604 if ac_fn_c_try_cpp "$LINENO"; then :
5605
5606 else
5607 # Broken: fails on valid input.
5608 continue
5609 fi
5610 rm -f conftest.err conftest.$ac_ext
5611
5612 # OK, works on sane cases. Now check whether nonexistent headers
5613 # can be detected and how.
5614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5615 /* end confdefs.h. */
5616 #include <ac_nonexistent.h>
5617 _ACEOF
5618 if ac_fn_c_try_cpp "$LINENO"; then :
5619 # Broken: success on invalid input.
5620 continue
5621 else
5622 # Passes both tests.
5623 ac_preproc_ok=:
5624 break
5625 fi
5626 rm -f conftest.err conftest.$ac_ext
5627
5628 done
5629 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5630 rm -f conftest.err conftest.$ac_ext
5631 if $ac_preproc_ok; then :
5632 break
5633 fi
5634
5635 done
5636 ac_cv_prog_CPP=$CPP
5637
5638 fi
5639 CPP=$ac_cv_prog_CPP
5640 else
5641 ac_cv_prog_CPP=$CPP
5642 fi
5643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5644 $as_echo "$CPP" >&6; }
5645 ac_preproc_ok=false
5646 for ac_c_preproc_warn_flag in '' yes
5647 do
5648 # Use a header file that comes with gcc, so configuring glibc
5649 # with a fresh cross-compiler works.
5650 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5651 # <limits.h> exists even on freestanding compilers.
5652 # On the NeXT, cc -E runs the code through the compiler's parser,
5653 # not just through cpp. "Syntax error" is here to catch this case.
5654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5655 /* end confdefs.h. */
5656 #ifdef __STDC__
5657 # include <limits.h>
5658 #else
5659 # include <assert.h>
5660 #endif
5661 Syntax error
5662 _ACEOF
5663 if ac_fn_c_try_cpp "$LINENO"; then :
5664
5665 else
5666 # Broken: fails on valid input.
5667 continue
5668 fi
5669 rm -f conftest.err conftest.$ac_ext
5670
5671 # OK, works on sane cases. Now check whether nonexistent headers
5672 # can be detected and how.
5673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5674 /* end confdefs.h. */
5675 #include <ac_nonexistent.h>
5676 _ACEOF
5677 if ac_fn_c_try_cpp "$LINENO"; then :
5678 # Broken: success on invalid input.
5679 continue
5680 else
5681 # Passes both tests.
5682 ac_preproc_ok=:
5683 break
5684 fi
5685 rm -f conftest.err conftest.$ac_ext
5686
5687 done
5688 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5689 rm -f conftest.err conftest.$ac_ext
5690 if $ac_preproc_ok; then :
5691
5692 else
5693 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5694 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5695 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5696 See \`config.log' for more details." "$LINENO" 5; }
5697 fi
5698
5699 ac_ext=cpp
5700 ac_cpp='$CXXCPP $CPPFLAGS'
5701 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5702 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5703 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5704
5705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5706 $as_echo_n "checking for inline... " >&6; }
5707 if test "${ac_cv_c_inline+set}" = set; then :
5708 $as_echo_n "(cached) " >&6
5709 else
5710 ac_cv_c_inline=no
5711 for ac_kw in inline __inline__ __inline; do
5712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5713 /* end confdefs.h. */
5714 #ifndef __cplusplus
5715 typedef int foo_t;
5716 static $ac_kw foo_t static_foo () {return 0; }
5717 $ac_kw foo_t foo () {return 0; }
5718 #endif
5719
5720 _ACEOF
5721 if ac_fn_cxx_try_compile "$LINENO"; then :
5722 ac_cv_c_inline=$ac_kw
5723 fi
5724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5725 test "$ac_cv_c_inline" != no && break
5726 done
5727
5728 fi
5729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5730 $as_echo "$ac_cv_c_inline" >&6; }
5731
5732 case $ac_cv_c_inline in
5733 inline | yes) ;;
5734 *)
5735 case $ac_cv_c_inline in
5736 no) ac_val=;;
5737 *) ac_val=$ac_cv_c_inline;;
5738 esac
5739 cat >>confdefs.h <<_ACEOF
5740 #ifndef __cplusplus
5741 #define inline $ac_val
5742 #endif
5743 _ACEOF
5744 ;;
5745 esac
5746
5747
5748 # Check whether --enable-largefile was given.
5749 if test "${enable_largefile+set}" = set; then :
5750 enableval=$enable_largefile;
5751 fi
5752
5753 if test "$enable_largefile" != no; then
5754
5755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5756 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5757 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5758 $as_echo_n "(cached) " >&6
5759 else
5760 ac_cv_sys_largefile_CC=no
5761 if test "$GCC" != yes; then
5762 ac_save_CC=$CC
5763 while :; do
5764 # IRIX 6.2 and later do not support large files by default,
5765 # so use the C compiler's -n32 option if that helps.
5766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5767 /* end confdefs.h. */
5768 #include <sys/types.h>
5769 /* Check that off_t can represent 2**63 - 1 correctly.
5770 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5771 since some C++ compilers masquerading as C compilers
5772 incorrectly reject 9223372036854775807. */
5773 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5774 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5775 && LARGE_OFF_T % 2147483647 == 1)
5776 ? 1 : -1];
5777 int
5778 main ()
5779 {
5780
5781 ;
5782 return 0;
5783 }
5784 _ACEOF
5785 if ac_fn_cxx_try_compile "$LINENO"; then :
5786 break
5787 fi
5788 rm -f core conftest.err conftest.$ac_objext
5789 CC="$CC -n32"
5790 if ac_fn_cxx_try_compile "$LINENO"; then :
5791 ac_cv_sys_largefile_CC=' -n32'; break
5792 fi
5793 rm -f core conftest.err conftest.$ac_objext
5794 break
5795 done
5796 CC=$ac_save_CC
5797 rm -f conftest.$ac_ext
5798 fi
5799 fi
5800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5801 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5802 if test "$ac_cv_sys_largefile_CC" != no; then
5803 CC=$CC$ac_cv_sys_largefile_CC
5804 fi
5805
5806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5807 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5808 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5809 $as_echo_n "(cached) " >&6
5810 else
5811 while :; do
5812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5813 /* end confdefs.h. */
5814 #include <sys/types.h>
5815 /* Check that off_t can represent 2**63 - 1 correctly.
5816 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5817 since some C++ compilers masquerading as C compilers
5818 incorrectly reject 9223372036854775807. */
5819 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5820 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5821 && LARGE_OFF_T % 2147483647 == 1)
5822 ? 1 : -1];
5823 int
5824 main ()
5825 {
5826
5827 ;
5828 return 0;
5829 }
5830 _ACEOF
5831 if ac_fn_cxx_try_compile "$LINENO"; then :
5832 ac_cv_sys_file_offset_bits=no; break
5833 fi
5834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5836 /* end confdefs.h. */
5837 #define _FILE_OFFSET_BITS 64
5838 #include <sys/types.h>
5839 /* Check that off_t can represent 2**63 - 1 correctly.
5840 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5841 since some C++ compilers masquerading as C compilers
5842 incorrectly reject 9223372036854775807. */
5843 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5844 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5845 && LARGE_OFF_T % 2147483647 == 1)
5846 ? 1 : -1];
5847 int
5848 main ()
5849 {
5850
5851 ;
5852 return 0;
5853 }
5854 _ACEOF
5855 if ac_fn_cxx_try_compile "$LINENO"; then :
5856 ac_cv_sys_file_offset_bits=64; break
5857 fi
5858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5859 ac_cv_sys_file_offset_bits=unknown
5860 break
5861 done
5862 fi
5863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5864 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5865 case $ac_cv_sys_file_offset_bits in #(
5866 no | unknown) ;;
5867 *)
5868 cat >>confdefs.h <<_ACEOF
5869 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5870 _ACEOF
5871 ;;
5872 esac
5873 rm -rf conftest*
5874 if test $ac_cv_sys_file_offset_bits = unknown; then
5875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5876 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5877 if test "${ac_cv_sys_large_files+set}" = set; then :
5878 $as_echo_n "(cached) " >&6
5879 else
5880 while :; do
5881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5882 /* end confdefs.h. */
5883 #include <sys/types.h>
5884 /* Check that off_t can represent 2**63 - 1 correctly.
5885 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5886 since some C++ compilers masquerading as C compilers
5887 incorrectly reject 9223372036854775807. */
5888 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5889 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5890 && LARGE_OFF_T % 2147483647 == 1)
5891 ? 1 : -1];
5892 int
5893 main ()
5894 {
5895
5896 ;
5897 return 0;
5898 }
5899 _ACEOF
5900 if ac_fn_cxx_try_compile "$LINENO"; then :
5901 ac_cv_sys_large_files=no; break
5902 fi
5903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5905 /* end confdefs.h. */
5906 #define _LARGE_FILES 1
5907 #include <sys/types.h>
5908 /* Check that off_t can represent 2**63 - 1 correctly.
5909 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5910 since some C++ compilers masquerading as C compilers
5911 incorrectly reject 9223372036854775807. */
5912 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5913 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5914 && LARGE_OFF_T % 2147483647 == 1)
5915 ? 1 : -1];
5916 int
5917 main ()
5918 {
5919
5920 ;
5921 return 0;
5922 }
5923 _ACEOF
5924 if ac_fn_cxx_try_compile "$LINENO"; then :
5925 ac_cv_sys_large_files=1; break
5926 fi
5927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5928 ac_cv_sys_large_files=unknown
5929 break
5930 done
5931 fi
5932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5933 $as_echo "$ac_cv_sys_large_files" >&6; }
5934 case $ac_cv_sys_large_files in #(
5935 no | unknown) ;;
5936 *)
5937 cat >>confdefs.h <<_ACEOF
5938 #define _LARGE_FILES $ac_cv_sys_large_files
5939 _ACEOF
5940 ;;
5941 esac
5942 rm -rf conftest*
5943 fi
5944 fi
5945
5946
5947 # sizeof(char) is 1 by definition.
5948 # The cast to long int works around a bug in the HP C Compiler
5949 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5950 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5951 # This bug is HP SR number 8606223364.
5952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5953 $as_echo_n "checking size of void *... " >&6; }
5954 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5955 $as_echo_n "(cached) " >&6
5956 else
5957 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5958
5959 else
5960 if test "$ac_cv_type_void_p" = yes; then
5961 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5962 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5963 { as_fn_set_status 77
5964 as_fn_error "cannot compute sizeof (void *)
5965 See \`config.log' for more details." "$LINENO" 5; }; }
5966 else
5967 ac_cv_sizeof_void_p=0
5968 fi
5969 fi
5970
5971 fi
5972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5973 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5974
5975
5976
5977 cat >>confdefs.h <<_ACEOF
5978 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5979 _ACEOF
5980
5981
5982 # The cast to long int works around a bug in the HP C Compiler
5983 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5984 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5985 # This bug is HP SR number 8606223364.
5986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5987 $as_echo_n "checking size of short... " >&6; }
5988 if test "${ac_cv_sizeof_short+set}" = set; then :
5989 $as_echo_n "(cached) " >&6
5990 else
5991 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5992
5993 else
5994 if test "$ac_cv_type_short" = yes; then
5995 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5996 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5997 { as_fn_set_status 77
5998 as_fn_error "cannot compute sizeof (short)
5999 See \`config.log' for more details." "$LINENO" 5; }; }
6000 else
6001 ac_cv_sizeof_short=0
6002 fi
6003 fi
6004
6005 fi
6006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
6007 $as_echo "$ac_cv_sizeof_short" >&6; }
6008
6009
6010
6011 cat >>confdefs.h <<_ACEOF
6012 #define SIZEOF_SHORT $ac_cv_sizeof_short
6013 _ACEOF
6014
6015
6016 # The cast to long int works around a bug in the HP C Compiler
6017 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6018 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6019 # This bug is HP SR number 8606223364.
6020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
6021 $as_echo_n "checking size of int... " >&6; }
6022 if test "${ac_cv_sizeof_int+set}" = set; then :
6023 $as_echo_n "(cached) " >&6
6024 else
6025 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
6026
6027 else
6028 if test "$ac_cv_type_int" = yes; then
6029 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6030 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6031 { as_fn_set_status 77
6032 as_fn_error "cannot compute sizeof (int)
6033 See \`config.log' for more details." "$LINENO" 5; }; }
6034 else
6035 ac_cv_sizeof_int=0
6036 fi
6037 fi
6038
6039 fi
6040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
6041 $as_echo "$ac_cv_sizeof_int" >&6; }
6042
6043
6044
6045 cat >>confdefs.h <<_ACEOF
6046 #define SIZEOF_INT $ac_cv_sizeof_int
6047 _ACEOF
6048
6049
6050 # The cast to long int works around a bug in the HP C Compiler
6051 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6052 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6053 # This bug is HP SR number 8606223364.
6054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6055 $as_echo_n "checking size of long... " >&6; }
6056 if test "${ac_cv_sizeof_long+set}" = set; then :
6057 $as_echo_n "(cached) " >&6
6058 else
6059 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
6060
6061 else
6062 if test "$ac_cv_type_long" = yes; then
6063 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6064 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6065 { as_fn_set_status 77
6066 as_fn_error "cannot compute sizeof (long)
6067 See \`config.log' for more details." "$LINENO" 5; }; }
6068 else
6069 ac_cv_sizeof_long=0
6070 fi
6071 fi
6072
6073 fi
6074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6075 $as_echo "$ac_cv_sizeof_long" >&6; }
6076
6077
6078
6079 cat >>confdefs.h <<_ACEOF
6080 #define SIZEOF_LONG $ac_cv_sizeof_long
6081 _ACEOF
6082
6083
6084 ac_fn_cxx_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
6085 if test "x$ac_cv_type_long_long" = x""yes; then :
6086
6087 cat >>confdefs.h <<_ACEOF
6088 #define HAVE_LONG_LONG 1
6089 _ACEOF
6090
6091 # The cast to long int works around a bug in the HP C Compiler
6092 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6093 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6094 # This bug is HP SR number 8606223364.
6095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
6096 $as_echo_n "checking size of long long... " >&6; }
6097 if test "${ac_cv_sizeof_long_long+set}" = set; then :
6098 $as_echo_n "(cached) " >&6
6099 else
6100 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
6101
6102 else
6103 if test "$ac_cv_type_long_long" = yes; then
6104 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6105 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6106 { as_fn_set_status 77
6107 as_fn_error "cannot compute sizeof (long long)
6108 See \`config.log' for more details." "$LINENO" 5; }; }
6109 else
6110 ac_cv_sizeof_long_long=0
6111 fi
6112 fi
6113
6114 fi
6115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
6116 $as_echo "$ac_cv_sizeof_long_long" >&6; }
6117
6118
6119
6120 cat >>confdefs.h <<_ACEOF
6121 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6122 _ACEOF
6123
6124
6125 fi
6126
6127 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
6128 case $ac_cv_c_int8_t in #(
6129 no|yes) ;; #(
6130 *)
6131
6132 cat >>confdefs.h <<_ACEOF
6133 #define int8_t $ac_cv_c_int8_t
6134 _ACEOF
6135 ;;
6136 esac
6137
6138 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
6139 case $ac_cv_c_int16_t in #(
6140 no|yes) ;; #(
6141 *)
6142
6143 cat >>confdefs.h <<_ACEOF
6144 #define int16_t $ac_cv_c_int16_t
6145 _ACEOF
6146 ;;
6147 esac
6148
6149 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
6150 case $ac_cv_c_int32_t in #(
6151 no|yes) ;; #(
6152 *)
6153
6154 cat >>confdefs.h <<_ACEOF
6155 #define int32_t $ac_cv_c_int32_t
6156 _ACEOF
6157 ;;
6158 esac
6159
6160 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
6161 case $ac_cv_c_int64_t in #(
6162 no|yes) ;; #(
6163 *)
6164
6165 cat >>confdefs.h <<_ACEOF
6166 #define int64_t $ac_cv_c_int64_t
6167 _ACEOF
6168 ;;
6169 esac
6170
6171
6172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6173 $as_echo_n "checking for long long int... " >&6; }
6174 if test "${ac_cv_type_long_long_int+set}" = set; then :
6175 $as_echo_n "(cached) " >&6
6176 else
6177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6178 /* end confdefs.h. */
6179
6180 /* For now, do not test the preprocessor; as of 2007 there are too many
6181 implementations with broken preprocessors. Perhaps this can
6182 be revisited in 2012. In the meantime, code should not expect
6183 #if to work with literals wider than 32 bits. */
6184 /* Test literals. */
6185 long long int ll = 9223372036854775807ll;
6186 long long int nll = -9223372036854775807LL;
6187 unsigned long long int ull = 18446744073709551615ULL;
6188 /* Test constant expressions. */
6189 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6190 ? 1 : -1)];
6191 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6192 ? 1 : -1)];
6193 int i = 63;
6194 int
6195 main ()
6196 {
6197 /* Test availability of runtime routines for shift and division. */
6198 long long int llmax = 9223372036854775807ll;
6199 unsigned long long int ullmax = 18446744073709551615ull;
6200 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6201 | (llmax / ll) | (llmax % ll)
6202 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6203 | (ullmax / ull) | (ullmax % ull));
6204 ;
6205 return 0;
6206 }
6207
6208 _ACEOF
6209 if ac_fn_cxx_try_link "$LINENO"; then :
6210 if test "$cross_compiling" = yes; then :
6211 ac_cv_type_long_long_int=yes
6212 else
6213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6214 /* end confdefs.h. */
6215 #include <limits.h>
6216 #ifndef LLONG_MAX
6217 # define HALF \
6218 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6219 # define LLONG_MAX (HALF - 1 + HALF)
6220 #endif
6221 int
6222 main ()
6223 {
6224 long long int n = 1;
6225 int i;
6226 for (i = 0; ; i++)
6227 {
6228 long long int m = n << i;
6229 if (m >> i != n)
6230 return 1;
6231 if (LLONG_MAX / 2 < m)
6232 break;
6233 }
6234 return 0;
6235 ;
6236 return 0;
6237 }
6238 _ACEOF
6239 if ac_fn_cxx_try_run "$LINENO"; then :
6240 ac_cv_type_long_long_int=yes
6241 else
6242 ac_cv_type_long_long_int=no
6243 fi
6244 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6245 conftest.$ac_objext conftest.beam conftest.$ac_ext
6246 fi
6247
6248 else
6249 ac_cv_type_long_long_int=no
6250 fi
6251 rm -f core conftest.err conftest.$ac_objext \
6252 conftest$ac_exeext conftest.$ac_ext
6253 fi
6254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6255 $as_echo "$ac_cv_type_long_long_int" >&6; }
6256 if test $ac_cv_type_long_long_int = yes; then
6257
6258 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6259
6260 fi
6261
6262
6263
6264 ac_fn_cxx_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6265 if test "x$ac_cv_type_intmax_t" = x""yes; then :
6266
6267 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6268
6269 else
6270 test $ac_cv_type_long_long_int = yes \
6271 && ac_type='long long int' \
6272 || ac_type='long int'
6273
6274 cat >>confdefs.h <<_ACEOF
6275 #define intmax_t $ac_type
6276 _ACEOF
6277
6278 fi
6279
6280
6281
6282 ac_fn_cxx_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6283 if test "x$ac_cv_type_intptr_t" = x""yes; then :
6284
6285 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6286
6287 else
6288 for ac_type in 'int' 'long int' 'long long int'; do
6289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6290 /* end confdefs.h. */
6291 $ac_includes_default
6292 int
6293 main ()
6294 {
6295 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6296 test_array [0] = 0
6297
6298 ;
6299 return 0;
6300 }
6301 _ACEOF
6302 if ac_fn_cxx_try_compile "$LINENO"; then :
6303
6304 cat >>confdefs.h <<_ACEOF
6305 #define intptr_t $ac_type
6306 _ACEOF
6307
6308 ac_type=
6309 fi
6310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6311 test -z "$ac_type" && break
6312 done
6313 fi
6314
6315
6316 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
6317 case $ac_cv_c_uint8_t in #(
6318 no|yes) ;; #(
6319 *)
6320
6321 $as_echo "#define _UINT8_T 1" >>confdefs.h
6322
6323
6324 cat >>confdefs.h <<_ACEOF
6325 #define uint8_t $ac_cv_c_uint8_t
6326 _ACEOF
6327 ;;
6328 esac
6329
6330 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6331 case $ac_cv_c_uint16_t in #(
6332 no|yes) ;; #(
6333 *)
6334
6335
6336 cat >>confdefs.h <<_ACEOF
6337 #define uint16_t $ac_cv_c_uint16_t
6338 _ACEOF
6339 ;;
6340 esac
6341
6342 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6343 case $ac_cv_c_uint32_t in #(
6344 no|yes) ;; #(
6345 *)
6346
6347 $as_echo "#define _UINT32_T 1" >>confdefs.h
6348
6349
6350 cat >>confdefs.h <<_ACEOF
6351 #define uint32_t $ac_cv_c_uint32_t
6352 _ACEOF
6353 ;;
6354 esac
6355
6356 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
6357 case $ac_cv_c_uint64_t in #(
6358 no|yes) ;; #(
6359 *)
6360
6361 $as_echo "#define _UINT64_T 1" >>confdefs.h
6362
6363
6364 cat >>confdefs.h <<_ACEOF
6365 #define uint64_t $ac_cv_c_uint64_t
6366 _ACEOF
6367 ;;
6368 esac
6369
6370
6371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6372 $as_echo_n "checking for unsigned long long int... " >&6; }
6373 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6374 $as_echo_n "(cached) " >&6
6375 else
6376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6377 /* end confdefs.h. */
6378
6379 /* For now, do not test the preprocessor; as of 2007 there are too many
6380 implementations with broken preprocessors. Perhaps this can
6381 be revisited in 2012. In the meantime, code should not expect
6382 #if to work with literals wider than 32 bits. */
6383 /* Test literals. */
6384 long long int ll = 9223372036854775807ll;
6385 long long int nll = -9223372036854775807LL;
6386 unsigned long long int ull = 18446744073709551615ULL;
6387 /* Test constant expressions. */
6388 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6389 ? 1 : -1)];
6390 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6391 ? 1 : -1)];
6392 int i = 63;
6393 int
6394 main ()
6395 {
6396 /* Test availability of runtime routines for shift and division. */
6397 long long int llmax = 9223372036854775807ll;
6398 unsigned long long int ullmax = 18446744073709551615ull;
6399 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6400 | (llmax / ll) | (llmax % ll)
6401 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6402 | (ullmax / ull) | (ullmax % ull));
6403 ;
6404 return 0;
6405 }
6406
6407 _ACEOF
6408 if ac_fn_cxx_try_link "$LINENO"; then :
6409 ac_cv_type_unsigned_long_long_int=yes
6410 else
6411 ac_cv_type_unsigned_long_long_int=no
6412 fi
6413 rm -f core conftest.err conftest.$ac_objext \
6414 conftest$ac_exeext conftest.$ac_ext
6415 fi
6416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6417 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6418 if test $ac_cv_type_unsigned_long_long_int = yes; then
6419
6420 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6421
6422 fi
6423
6424
6425
6426 ac_fn_cxx_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6427 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
6428
6429 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6430
6431 else
6432 test $ac_cv_type_unsigned_long_long_int = yes \
6433 && ac_type='unsigned long long int' \
6434 || ac_type='unsigned long int'
6435
6436 cat >>confdefs.h <<_ACEOF
6437 #define uintmax_t $ac_type
6438 _ACEOF
6439
6440 fi
6441
6442
6443
6444 ac_fn_cxx_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6445 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
6446
6447 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6448
6449 else
6450 for ac_type in 'unsigned int' 'unsigned long int' \
6451 'unsigned long long int'; do
6452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6453 /* end confdefs.h. */
6454 $ac_includes_default
6455 int
6456 main ()
6457 {
6458 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6459 test_array [0] = 0
6460
6461 ;
6462 return 0;
6463 }
6464 _ACEOF
6465 if ac_fn_cxx_try_compile "$LINENO"; then :
6466
6467 cat >>confdefs.h <<_ACEOF
6468 #define uintptr_t $ac_type
6469 _ACEOF
6470
6471 ac_type=
6472 fi
6473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6474 test -z "$ac_type" && break
6475 done
6476 fi
6477
6478
6479
6480
6481
6482
6483
6484
6485
6486
6487
6488
6489
6490
6491 if test x"$ac_cv_c_uint64_t" = x"no" -o x"$ac_cv_c_int64_t" = x"no"; then
6492 as_fn_error "uint64_t or int64_t not found" "$LINENO" 5
6493 fi
6494
6495 # check what underlying integer type int64_t uses
6496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t underlying type" >&5
6497 $as_echo_n "checking for int64_t underlying type... " >&6; }
6498 if test "${ac_cv_int64_t_type+set}" = set; then :
6499 $as_echo_n "(cached) " >&6
6500 else
6501
6502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6503 /* end confdefs.h. */
6504
6505 #ifdef HAVE_STDINT_H
6506 #include <stdint.h>
6507 #endif
6508 template <typename T> struct X { };
6509 template <>
6510 struct X<long> { typedef long t; };
6511
6512 int
6513 main ()
6514 {
6515 X<int64_t>::t x;
6516 ;
6517 return 0;
6518 }
6519 _ACEOF
6520 if ac_fn_cxx_try_compile "$LINENO"; then :
6521 ac_cv_int64_t_type=long
6522 else
6523 ac_cv_int64_t_type="long long"
6524 fi
6525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6526 fi
6527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_int64_t_type" >&5
6528 $as_echo "$ac_cv_int64_t_type" >&6; }
6529 if test "$ac_cv_int64_t_type" = "long"; then
6530
6531 $as_echo "#define INT64_T_IS_LONG 1" >>confdefs.h
6532
6533 else
6534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6535 /* end confdefs.h. */
6536
6537 #ifdef HAVE_STDINT_H
6538 #include <stdint.h>
6539 #endif
6540 template <typename T> struct X { };
6541 template <>
6542 struct X<long long> { typedef long long t; };
6543
6544 int
6545 main ()
6546 {
6547 X<int64_t>::t x;
6548 ;
6549 return 0;
6550 }
6551 _ACEOF
6552 if ac_fn_cxx_try_compile "$LINENO"; then :
6553
6554 else
6555 as_fn_error "error verifying int64_t uses long long" "$LINENO" 5
6556 fi
6557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6558 fi
6559
6560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::swap in <utility>" >&5
6561 $as_echo_n "checking for std::swap in <utility>... " >&6; }
6562 if test "${ac_cv_std_swap_in_utility+set}" = set; then :
6563 $as_echo_n "(cached) " >&6
6564 else
6565
6566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6567 /* end confdefs.h. */
6568
6569 #include <utility>
6570
6571 int
6572 main ()
6573 {
6574 int a, b; std::swap(a,b);
6575 ;
6576 return 0;
6577 }
6578 _ACEOF
6579 if ac_fn_cxx_try_compile "$LINENO"; then :
6580 ac_cv_std_swap_in_utility=yes
6581 else
6582 ac_cv_std_swap_in_utility=no
6583 fi
6584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6585 fi
6586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_std_swap_in_utility" >&5
6587 $as_echo "$ac_cv_std_swap_in_utility" >&6; }
6588 if test $ac_cv_std_swap_in_utility = yes; then
6589
6590 $as_echo "#define HAVE_SWAP_IN_UTILITY 1" >>confdefs.h
6591
6592 fi
6593
6594 # Check whether compiler is affected by placement new aliasing bug (PR 29286).
6595 # If the host compiler is affected by the bug, and we build with optimization
6596 # enabled (which happens e.g. when cross-compiling), the pool allocator may
6597 # get miscompiled. Use -fno-strict-aliasing to work around this problem.
6598 # Since there is no reliable feature check for the presence of this bug,
6599 # we simply use a GCC version number check. (This should never trigger for
6600 # stages 2 or 3 of a native bootstrap.)
6601 aliasing_flags=
6602 if test "$GCC" = yes; then
6603 saved_CXXFLAGS="$CXXFLAGS"
6604
6605 # The following test compilation will succeed if and only if $CXX accepts
6606 # -fno-strict-aliasing *and* is older than GCC 4.3.
6607 CXXFLAGS="$CXXFLAGS -fno-strict-aliasing"
6608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX is affected by placement new aliasing bug" >&5
6609 $as_echo_n "checking whether $CXX is affected by placement new aliasing bug... " >&6; }
6610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6611 /* end confdefs.h. */
6612
6613 #if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3)
6614 #error compiler not affected by placement new aliasing bug
6615 #endif
6616
6617 _ACEOF
6618 if ac_fn_cxx_try_compile "$LINENO"; then :
6619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6620 $as_echo "yes" >&6; }; aliasing_flags='-fno-strict-aliasing'
6621 else
6622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6623 $as_echo "no" >&6; }
6624 fi
6625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6626
6627 CXXFLAGS="$saved_CXXFLAGS"
6628 fi
6629
6630
6631
6632
6633 # ---------------------
6634 # Warnings and checking
6635 # ---------------------
6636
6637 # Check $CC warning features (if it's GCC).
6638 # We want to use -pedantic, but we don't want warnings about
6639 # * 'long long'
6640 # * variadic macros
6641 # * overlong strings
6642 # * C++11 narrowing conversions in { }
6643 # So, we only use -pedantic if we can disable those warnings.
6644
6645 # In stage 1, disable -Wformat warnings from old GCCs about new % codes
6646 # Check whether --enable-build-format-warnings was given.
6647 if test "${enable_build_format_warnings+set}" = set; then :
6648 enableval=$enable_build_format_warnings;
6649 else
6650 enable_build_format_warnings=yes
6651 fi
6652
6653 if test $enable_build_format_warnings = no; then :
6654 wf_opt=-Wno-format
6655 else
6656 wf_opt=
6657 fi
6658 ac_ext=cpp
6659 ac_cpp='$CXXCPP $CPPFLAGS'
6660 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6661 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6662 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6663
6664 loose_warn=
6665 save_CXXFLAGS="$CXXFLAGS"
6666 for real_option in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual $wf_opt; do
6667 # Do the check with the no- prefix removed since gcc silently
6668 # accepts any -Wno-* option on purpose
6669 case $real_option in
6670 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6671 *) option=$real_option ;;
6672 esac
6673 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6674
6675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6676 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6677 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6678 $as_echo_n "(cached) " >&6
6679 else
6680 CXXFLAGS="$option"
6681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6682 /* end confdefs.h. */
6683
6684 int
6685 main ()
6686 {
6687
6688 ;
6689 return 0;
6690 }
6691 _ACEOF
6692 if ac_fn_cxx_try_compile "$LINENO"; then :
6693 eval "$as_acx_Woption=yes"
6694 else
6695 eval "$as_acx_Woption=no"
6696 fi
6697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6698
6699 fi
6700 eval ac_res=\$$as_acx_Woption
6701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6702 $as_echo "$ac_res" >&6; }
6703 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6704 loose_warn="$loose_warn${loose_warn:+ }$real_option"
6705 fi
6706 done
6707 CXXFLAGS="$save_CXXFLAGS"
6708 ac_ext=cpp
6709 ac_cpp='$CXXCPP $CPPFLAGS'
6710 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6711 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6712 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6713
6714
6715
6716 ac_ext=c
6717 ac_cpp='$CPP $CPPFLAGS'
6718 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6719 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6720 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6721
6722 c_loose_warn=
6723 save_CFLAGS="$CFLAGS"
6724 for real_option in -Wstrict-prototypes -Wmissing-prototypes; do
6725 # Do the check with the no- prefix removed since gcc silently
6726 # accepts any -Wno-* option on purpose
6727 case $real_option in
6728 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6729 *) option=$real_option ;;
6730 esac
6731 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6732
6733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6734 $as_echo_n "checking whether $CC supports $option... " >&6; }
6735 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6736 $as_echo_n "(cached) " >&6
6737 else
6738 CFLAGS="$option"
6739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6740 /* end confdefs.h. */
6741
6742 int
6743 main ()
6744 {
6745
6746 ;
6747 return 0;
6748 }
6749 _ACEOF
6750 if ac_fn_c_try_compile "$LINENO"; then :
6751 eval "$as_acx_Woption=yes"
6752 else
6753 eval "$as_acx_Woption=no"
6754 fi
6755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6756
6757 fi
6758 eval ac_res=\$$as_acx_Woption
6759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6760 $as_echo "$ac_res" >&6; }
6761 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6762 c_loose_warn="$c_loose_warn${c_loose_warn:+ }$real_option"
6763 fi
6764 done
6765 CFLAGS="$save_CFLAGS"
6766 ac_ext=cpp
6767 ac_cpp='$CXXCPP $CPPFLAGS'
6768 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6769 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6770 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6771
6772
6773 ac_ext=cpp
6774 ac_cpp='$CXXCPP $CPPFLAGS'
6775 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6776 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6777 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6778
6779 strict_warn=
6780 save_CXXFLAGS="$CXXFLAGS"
6781 for real_option in -Wmissing-format-attribute -Woverloaded-virtual; do
6782 # Do the check with the no- prefix removed since gcc silently
6783 # accepts any -Wno-* option on purpose
6784 case $real_option in
6785 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6786 *) option=$real_option ;;
6787 esac
6788 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6789
6790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6791 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6792 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6793 $as_echo_n "(cached) " >&6
6794 else
6795 CXXFLAGS="$option"
6796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6797 /* end confdefs.h. */
6798
6799 int
6800 main ()
6801 {
6802
6803 ;
6804 return 0;
6805 }
6806 _ACEOF
6807 if ac_fn_cxx_try_compile "$LINENO"; then :
6808 eval "$as_acx_Woption=yes"
6809 else
6810 eval "$as_acx_Woption=no"
6811 fi
6812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6813
6814 fi
6815 eval ac_res=\$$as_acx_Woption
6816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6817 $as_echo "$ac_res" >&6; }
6818 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6819 strict_warn="$strict_warn${strict_warn:+ }$real_option"
6820 fi
6821 done
6822 CXXFLAGS="$save_CXXFLAGS"
6823 ac_ext=cpp
6824 ac_cpp='$CXXCPP $CPPFLAGS'
6825 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6826 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6827 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6828
6829
6830 ac_ext=c
6831 ac_cpp='$CPP $CPPFLAGS'
6832 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6833 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6834 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6835
6836 c_strict_warn=
6837 save_CFLAGS="$CFLAGS"
6838 for real_option in -Wold-style-definition -Wc++-compat; do
6839 # Do the check with the no- prefix removed since gcc silently
6840 # accepts any -Wno-* option on purpose
6841 case $real_option in
6842 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6843 *) option=$real_option ;;
6844 esac
6845 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6846
6847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6848 $as_echo_n "checking whether $CC supports $option... " >&6; }
6849 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6850 $as_echo_n "(cached) " >&6
6851 else
6852 CFLAGS="$option"
6853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6854 /* end confdefs.h. */
6855
6856 int
6857 main ()
6858 {
6859
6860 ;
6861 return 0;
6862 }
6863 _ACEOF
6864 if ac_fn_c_try_compile "$LINENO"; then :
6865 eval "$as_acx_Woption=yes"
6866 else
6867 eval "$as_acx_Woption=no"
6868 fi
6869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6870
6871 fi
6872 eval ac_res=\$$as_acx_Woption
6873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6874 $as_echo "$ac_res" >&6; }
6875 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6876 c_strict_warn="$c_strict_warn${c_strict_warn:+ }$real_option"
6877 fi
6878 done
6879 CFLAGS="$save_CFLAGS"
6880 ac_ext=cpp
6881 ac_cpp='$CXXCPP $CPPFLAGS'
6882 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6883 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6884 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6885
6886
6887 ac_ext=cpp
6888 ac_cpp='$CXXCPP $CPPFLAGS'
6889 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6890 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6891 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6892
6893 # Do the check with the no- prefix removed from the warning options
6894 # since gcc silently accepts any -Wno-* option on purpose
6895 if test "$GXX" = yes; then :
6896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
6897 $as_echo_n "checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
6898 if test "${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+set}" = set; then :
6899 $as_echo_n "(cached) " >&6
6900 else
6901 save_CXXFLAGS="$CXXFLAGS"
6902 CXXFLAGS="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
6903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6904 /* end confdefs.h. */
6905
6906 int
6907 main ()
6908 {
6909
6910 ;
6911 return 0;
6912 }
6913 _ACEOF
6914 if ac_fn_cxx_try_compile "$LINENO"; then :
6915 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=yes
6916 else
6917 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=no
6918 fi
6919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6920 CXXFLAGS="$save_CXXFLAGS"
6921 fi
6922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
6923 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
6924 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
6925 strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6926 fi
6927
6928 fi
6929 ac_ext=cpp
6930 ac_cpp='$CXXCPP $CPPFLAGS'
6931 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6932 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6933 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6934
6935
6936 ac_ext=cpp
6937 ac_cpp='$CXXCPP $CPPFLAGS'
6938 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6939 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6940 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6941
6942 # Check whether --enable-werror-always was given.
6943 if test "${enable_werror_always+set}" = set; then :
6944 enableval=$enable_werror_always;
6945 else
6946 enable_werror_always=no
6947 fi
6948
6949 if test $enable_werror_always = yes; then :
6950 strict_warn="$strict_warn${strict_warn:+ }-Werror"
6951 fi
6952
6953 ac_ext=cpp
6954 ac_cpp='$CXXCPP $CPPFLAGS'
6955 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6956 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6957 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6958
6959
6960
6961 # The above macros do nothing if the compiler is not GCC. However, the
6962 # Makefile has more goo to add other flags, so these variables are used
6963 # to enable warnings only for GCC.
6964 warn_cflags=
6965 warn_cxxflags=
6966 if test "x$GCC" = "xyes"; then
6967 warn_cflags='$(GCC_WARN_CFLAGS)'
6968 warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
6969 fi
6970
6971
6972
6973 # Disable exceptions and RTTI if building with g++
6974 ac_ext=c
6975 ac_cpp='$CPP $CPPFLAGS'
6976 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6977 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6978 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6979
6980 noexception_flags=
6981 save_CFLAGS="$CFLAGS"
6982 for real_option in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
6983 # Do the check with the no- prefix removed since gcc silently
6984 # accepts any -Wno-* option on purpose
6985 case $real_option in
6986 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6987 *) option=$real_option ;;
6988 esac
6989 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6990
6991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6992 $as_echo_n "checking whether $CC supports $option... " >&6; }
6993 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6994 $as_echo_n "(cached) " >&6
6995 else
6996 CFLAGS="$option"
6997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6998 /* end confdefs.h. */
6999
7000 int
7001 main ()
7002 {
7003
7004 ;
7005 return 0;
7006 }
7007 _ACEOF
7008 if ac_fn_c_try_compile "$LINENO"; then :
7009 eval "$as_acx_Woption=yes"
7010 else
7011 eval "$as_acx_Woption=no"
7012 fi
7013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7014
7015 fi
7016 eval ac_res=\$$as_acx_Woption
7017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7018 $as_echo "$ac_res" >&6; }
7019 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7020 noexception_flags="$noexception_flags${noexception_flags:+ }$real_option"
7021 fi
7022 done
7023 CFLAGS="$save_CFLAGS"
7024 ac_ext=cpp
7025 ac_cpp='$CXXCPP $CPPFLAGS'
7026 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7027 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7028 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7029
7030
7031
7032 # Enable expensive internal checks
7033 is_release=
7034 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
7035 is_release=yes
7036 fi
7037
7038 # Check whether --enable-checking was given.
7039 if test "${enable_checking+set}" = set; then :
7040 enableval=$enable_checking; ac_checking_flags="${enableval}"
7041 else
7042
7043 # Determine the default checks.
7044 if test x$is_release = x ; then
7045 ac_checking_flags=yes,extra
7046 else
7047 ac_checking_flags=release
7048 fi
7049 fi
7050
7051 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
7052 for check in release $ac_checking_flags
7053 do
7054 case $check in
7055 # these set all the flags to specific states
7056 yes) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
7057 ac_fold_checking= ; ac_gc_checking=1 ; ac_extra_checking= ;
7058 ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
7059 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7060 ac_tree_checking=1 ; ac_valgrind_checking= ;
7061 ac_types_checking=1 ;;
7062 no|none) ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
7063 ac_fold_checking= ; ac_gc_checking= ; ac_extra_checking= ;
7064 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
7065 ac_rtlflag_checking= ; ac_runtime_checking= ;
7066 ac_tree_checking= ; ac_valgrind_checking= ;
7067 ac_types_checking= ;;
7068 all) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
7069 ac_fold_checking=1 ; ac_gc_checking=1 ; ac_extra_checking=1 ;
7070 ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
7071 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7072 ac_tree_checking=1 ; ac_valgrind_checking= ;
7073 ac_types_checking=1 ;;
7074 release) ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
7075 ac_fold_checking= ; ac_gc_checking= ; ac_extra_checking= ;
7076 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
7077 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
7078 ac_tree_checking= ; ac_valgrind_checking= ;
7079 ac_types_checking= ;;
7080 # these enable particular checks
7081 assert) ac_assert_checking=1 ;;
7082 df) ac_df_checking=1 ;;
7083 extra) ac_extra_checking=1 ;;
7084 fold) ac_fold_checking=1 ;;
7085 gc) ac_gc_checking=1 ;;
7086 gcac) ac_gc_always_collect=1 ;;
7087 gimple) ac_gimple_checking=1 ;;
7088 misc) ac_checking=1 ;;
7089 rtl) ac_rtl_checking=1 ;;
7090 rtlflag) ac_rtlflag_checking=1 ;;
7091 runtime) ac_runtime_checking=1 ;;
7092 tree) ac_tree_checking=1 ;;
7093 types) ac_types_checking=1 ;;
7094 valgrind) ac_valgrind_checking=1 ;;
7095 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
7096 esac
7097 done
7098 IFS="$ac_save_IFS"
7099
7100 nocommon_flag=""
7101 if test x$ac_checking != x ; then
7102
7103 $as_echo "#define CHECKING_P 1" >>confdefs.h
7104
7105 nocommon_flag=-fno-common
7106 else
7107 $as_echo "#define CHECKING_P 0" >>confdefs.h
7108
7109 fi
7110
7111 if test x$ac_extra_checking != x ; then
7112
7113 $as_echo "#define ENABLE_EXTRA_CHECKING 1" >>confdefs.h
7114
7115 else
7116 $as_echo "#define ENABLE_EXTRA_CHECKING 0" >>confdefs.h
7117
7118 fi
7119 if test x$ac_df_checking != x ; then
7120
7121 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
7122
7123 fi
7124 if test x$ac_assert_checking != x ; then
7125
7126 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
7127
7128 fi
7129 if test x$ac_gimple_checking != x ; then
7130
7131 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
7132
7133 fi
7134
7135 if test x$ac_runtime_checking != x ; then
7136
7137 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
7138
7139 fi
7140 if test x$ac_tree_checking != x ; then
7141
7142 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
7143
7144 TREECHECKING=yes
7145 fi
7146 if test x$ac_types_checking != x ; then
7147
7148 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
7149
7150 fi
7151
7152 if test x$ac_rtl_checking != x ; then
7153
7154 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
7155
7156 fi
7157 if test x$ac_rtlflag_checking != x ; then
7158
7159 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
7160
7161 fi
7162 if test x$ac_gc_checking != x ; then
7163
7164 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
7165
7166 fi
7167 if test x$ac_gc_always_collect != x ; then
7168
7169 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
7170
7171 fi
7172 if test x$ac_fold_checking != x ; then
7173
7174 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
7175
7176 fi
7177 valgrind_path_defines=
7178 valgrind_command=
7179
7180 ac_fn_cxx_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
7181 if test "x$ac_cv_header_valgrind_h" = x""yes; then :
7182 have_valgrind_h=yes
7183 else
7184 have_valgrind_h=no
7185 fi
7186
7187
7188
7189 # It is certainly possible that there's valgrind but no valgrind.h.
7190 # GCC relies on making annotations so we must have both.
7191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
7192 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
7193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7194 /* end confdefs.h. */
7195 #include <valgrind/memcheck.h>
7196 #ifndef VALGRIND_DISCARD
7197 #error VALGRIND_DISCARD not defined
7198 #endif
7199 _ACEOF
7200 if ac_fn_cxx_try_cpp "$LINENO"; then :
7201 gcc_cv_header_valgrind_memcheck_h=yes
7202 else
7203 gcc_cv_header_valgrind_memcheck_h=no
7204 fi
7205 rm -f conftest.err conftest.$ac_ext
7206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
7207 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
7208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
7209 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
7210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7211 /* end confdefs.h. */
7212 #include <memcheck.h>
7213 #ifndef VALGRIND_DISCARD
7214 #error VALGRIND_DISCARD not defined
7215 #endif
7216 _ACEOF
7217 if ac_fn_cxx_try_cpp "$LINENO"; then :
7218 gcc_cv_header_memcheck_h=yes
7219 else
7220 gcc_cv_header_memcheck_h=no
7221 fi
7222 rm -f conftest.err conftest.$ac_ext
7223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
7224 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
7225 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
7226
7227 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
7228
7229 fi
7230 if test $gcc_cv_header_memcheck_h = yes; then
7231
7232 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
7233
7234 fi
7235
7236 if test x$ac_valgrind_checking != x ; then
7237
7238 # Prepare PATH_SEPARATOR.
7239 # The user is always right.
7240 if test "${PATH_SEPARATOR+set}" != set; then
7241 echo "#! /bin/sh" >conf$$.sh
7242 echo "exit 0" >>conf$$.sh
7243 chmod +x conf$$.sh
7244 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7245 PATH_SEPARATOR=';'
7246 else
7247 PATH_SEPARATOR=:
7248 fi
7249 rm -f conf$$.sh
7250 fi
7251
7252 # Find out how to test for executable files. Don't use a zero-byte file,
7253 # as systems may use methods other than mode bits to determine executability.
7254 cat >conf$$.file <<_ASEOF
7255 #! /bin/sh
7256 exit 0
7257 _ASEOF
7258 chmod +x conf$$.file
7259 if test -x conf$$.file >/dev/null 2>&1; then
7260 ac_executable_p="test -x"
7261 else
7262 ac_executable_p="test -f"
7263 fi
7264 rm -f conf$$.file
7265
7266 # Extract the first word of "valgrind", so it can be a program name with args.
7267 set dummy valgrind; ac_word=$2
7268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7269 $as_echo_n "checking for $ac_word... " >&6; }
7270 if test "${ac_cv_path_valgrind_path+set}" = set; then :
7271 $as_echo_n "(cached) " >&6
7272 else
7273 case "$valgrind_path" in
7274 [\\/]* | ?:[\\/]*)
7275 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
7276 ;;
7277 *)
7278 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7279 for ac_dir in $PATH; do
7280 IFS="$ac_save_IFS"
7281 test -z "$ac_dir" && ac_dir=.
7282 for ac_exec_ext in '' $ac_executable_extensions; do
7283 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7284 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
7285 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
7286 break 2
7287 fi
7288 fi
7289 done
7290 done
7291 IFS="$ac_save_IFS"
7292 ;;
7293 esac
7294 fi
7295 valgrind_path="$ac_cv_path_valgrind_path"
7296 if test -n "$valgrind_path"; then
7297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
7298 $as_echo "$valgrind_path" >&6; }
7299 else
7300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7301 $as_echo "no" >&6; }
7302 fi
7303
7304 if test "x$valgrind_path" = "x" \
7305 || (test $have_valgrind_h = no \
7306 && test $gcc_cv_header_memcheck_h = no \
7307 && test $gcc_cv_header_valgrind_memcheck_h = no); then
7308 as_fn_error "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7309 fi
7310 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
7311 valgrind_command="$valgrind_path -q"
7312
7313 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
7314
7315 fi
7316
7317
7318
7319 # Enable code coverage collection
7320 # Check whether --enable-coverage was given.
7321 if test "${enable_coverage+set}" = set; then :
7322 enableval=$enable_coverage; case "${enableval}" in
7323 yes|noopt)
7324 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
7325 ;;
7326 opt)
7327 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
7328 ;;
7329 no)
7330 # a.k.a. --disable-coverage
7331 coverage_flags=""
7332 ;;
7333 *)
7334 as_fn_error "unknown coverage setting $enableval" "$LINENO" 5
7335 ;;
7336 esac
7337 else
7338 coverage_flags=""
7339 fi
7340
7341
7342
7343 # Check whether --enable-gather-detailed-mem-stats was given.
7344 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
7345 enableval=$enable_gather_detailed_mem_stats;
7346 else
7347 enable_gather_detailed_mem_stats=no
7348 fi
7349
7350 gather_stats=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
7351
7352 cat >>confdefs.h <<_ACEOF
7353 #define GATHER_STATISTICS $gather_stats
7354 _ACEOF
7355
7356
7357 # Check whether --enable-valgrind-annotations was given.
7358 if test "${enable_valgrind_annotations+set}" = set; then :
7359 enableval=$enable_valgrind_annotations;
7360 else
7361 enable_valgrind_annotations=no
7362 fi
7363
7364 if test x$enable_valgrind_annotations != xno \
7365 || test x$ac_valgrind_checking != x; then
7366 if (test $have_valgrind_h = no \
7367 && test $gcc_cv_header_memcheck_h = no \
7368 && test $gcc_cv_header_valgrind_memcheck_h = no); then
7369 as_fn_error "*** Can't find valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7370 fi
7371
7372 $as_echo "#define ENABLE_VALGRIND_ANNOTATIONS 1" >>confdefs.h
7373
7374 fi
7375
7376 # -------------------------------
7377 # Miscenalleous configure options
7378 # -------------------------------
7379
7380 # With stabs
7381
7382 # Check whether --with-stabs was given.
7383 if test "${with_stabs+set}" = set; then :
7384 withval=$with_stabs; stabs="$with_stabs"
7385 else
7386 stabs=no
7387 fi
7388
7389
7390 # Determine whether or not multilibs are enabled.
7391 # Check whether --enable-multilib was given.
7392 if test "${enable_multilib+set}" = set; then :
7393 enableval=$enable_multilib;
7394 else
7395 enable_multilib=yes
7396 fi
7397
7398
7399
7400 # Determine whether or not multiarch is enabled.
7401 # Check whether --enable-multiarch was given.
7402 if test "${enable_multiarch+set}" = set; then :
7403 enableval=$enable_multiarch; case "${enableval}" in
7404 yes|no|auto) enable_multiarch=$enableval;;
7405 *) as_fn_error "bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
7406 esac
7407 else
7408 enable_multiarch=auto
7409 fi
7410
7411 if test x${enable_multiarch} = xauto; then
7412 if test x${with_native_system_header_dir} != x; then
7413 ma_msg_suffix=", disabled auto check (configured with --native-system-header-dir)"
7414 enable_multiarch=no
7415 fi
7416 if test x$host != x$target && test "x$with_sysroot" = x; then
7417 ma_msg_suffix=", disabled auto check (cross build configured without --with-sysroot)"
7418 enable_multiarch=no
7419 fi
7420 fi
7421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
7422 $as_echo_n "checking for multiarch configuration... " >&6; }
7423
7424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
7425 $as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
7426
7427 # needed for setting the multiarch name for soft-float/hard-float ABIs
7428
7429
7430
7431 # Enable __cxa_atexit for C++.
7432 # Check whether --enable-__cxa_atexit was given.
7433 if test "${enable___cxa_atexit+set}" = set; then :
7434 enableval=$enable___cxa_atexit;
7435 fi
7436
7437
7438 # Enable C extension for decimal float if target supports it.
7439
7440 # Check whether --enable-decimal-float was given.
7441 if test "${enable_decimal_float+set}" = set; then :
7442 enableval=$enable_decimal_float;
7443 case $enable_decimal_float in
7444 yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
7445 *) as_fn_error "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7446 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7447 esac
7448
7449 else
7450
7451 case $target in
7452 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
7453 i?86*-*-elfiamcu | i?86*-*-gnu* | \
7454 i?86*-*-mingw* | x86_64*-*-mingw* | \
7455 i?86*-*-cygwin* | x86_64*-*-cygwin*)
7456 enable_decimal_float=yes
7457 ;;
7458 *)
7459 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7460 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7461 enable_decimal_float=no
7462 ;;
7463 esac
7464
7465 fi
7466
7467
7468 # x86's use BID format instead of DPD
7469 case x$enable_decimal_float in
7470 xyes)
7471 case $target in
7472 i?86*-*-* | x86_64*-*-*)
7473 enable_decimal_float=bid
7474 ;;
7475 *)
7476 enable_decimal_float=dpd
7477 ;;
7478 esac
7479 default_decimal_float=$enable_decimal_float
7480 ;;
7481 xno)
7482 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7483 # dependency on libdecnumber.
7484 default_decimal_float=dpd
7485 ;;
7486 esac
7487
7488
7489
7490
7491 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7492
7493 cat >>confdefs.h <<_ACEOF
7494 #define ENABLE_DECIMAL_FLOAT $dfp
7495 _ACEOF
7496
7497
7498 # Use default_decimal_float for dependency.
7499 enable_decimal_float=$default_decimal_float
7500
7501 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7502
7503 cat >>confdefs.h <<_ACEOF
7504 #define ENABLE_DECIMAL_BID_FORMAT $bid
7505 _ACEOF
7506
7507
7508 # Enable C extension for fixed-point arithmetic.
7509 # Check whether --enable-fixed-point was given.
7510 if test "${enable_fixed_point+set}" = set; then :
7511 enableval=$enable_fixed_point;
7512 else
7513
7514 case $target in
7515 arm*)
7516 enable_fixed_point=yes
7517 ;;
7518
7519 mips*-*-*)
7520 enable_fixed_point=yes
7521 ;;
7522 *)
7523 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7524 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7525 enable_fixed_point=no
7526 ;;
7527 esac
7528
7529 fi
7530
7531
7532
7533 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7534
7535 cat >>confdefs.h <<_ACEOF
7536 #define ENABLE_FIXED_POINT $fixedpoint
7537 _ACEOF
7538
7539
7540 # Enable threads
7541 # Pass with no value to take the default
7542 # Pass with a value to specify a thread package
7543 # Check whether --enable-threads was given.
7544 if test "${enable_threads+set}" = set; then :
7545 enableval=$enable_threads;
7546 else
7547 enable_threads=''
7548 fi
7549
7550
7551 # Check whether --enable-tls was given.
7552 if test "${enable_tls+set}" = set; then :
7553 enableval=$enable_tls;
7554 case $enable_tls in
7555 yes | no) ;;
7556 *) as_fn_error "'$enable_tls' is an invalid value for --enable-tls.
7557 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7558 esac
7559
7560 else
7561 enable_tls=''
7562 fi
7563
7564
7565 # Check whether --enable-vtable-verify was given.
7566 if test "${enable_vtable_verify+set}" = set; then :
7567 enableval=$enable_vtable_verify;
7568 else
7569 enable_vtable_verify=no
7570 fi
7571
7572 vtable_verify=`if test x$enable_vtable_verify = xyes; then echo 1; else echo 0; fi`
7573
7574 cat >>confdefs.h <<_ACEOF
7575 #define ENABLE_VTABLE_VERIFY $vtable_verify
7576 _ACEOF
7577
7578
7579 # Check whether --enable-objc-gc was given.
7580 if test "${enable_objc_gc+set}" = set; then :
7581 enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
7582 objc_boehm_gc=''
7583 else
7584 objc_boehm_gc=1
7585 fi
7586 else
7587 objc_boehm_gc=''
7588 fi
7589
7590
7591
7592 # Check whether --with-dwarf2 was given.
7593 if test "${with_dwarf2+set}" = set; then :
7594 withval=$with_dwarf2; dwarf2="$with_dwarf2"
7595 else
7596 dwarf2=no
7597 fi
7598
7599
7600 # Check whether --enable-shared was given.
7601 if test "${enable_shared+set}" = set; then :
7602 enableval=$enable_shared;
7603 case $enable_shared in
7604 yes | no) ;;
7605 *)
7606 enable_shared=no
7607 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7608 for pkg in $enableval; do
7609 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7610 enable_shared=yes
7611 fi
7612 done
7613 IFS="$ac_save_ifs"
7614 ;;
7615 esac
7616
7617 else
7618 enable_shared=yes
7619 fi
7620
7621
7622
7623
7624 # Check whether --with-specs was given.
7625 if test "${with_specs+set}" = set; then :
7626 withval=$with_specs; CONFIGURE_SPECS=$withval
7627 else
7628 CONFIGURE_SPECS=
7629
7630 fi
7631
7632
7633
7634
7635
7636 # Check whether --with-pkgversion was given.
7637 if test "${with_pkgversion+set}" = set; then :
7638 withval=$with_pkgversion; case "$withval" in
7639 yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
7640 no) PKGVERSION= ;;
7641 *) PKGVERSION="($withval) " ;;
7642 esac
7643 else
7644 PKGVERSION="(GCC) "
7645
7646 fi
7647
7648
7649
7650
7651
7652 # Check whether --with-bugurl was given.
7653 if test "${with_bugurl+set}" = set; then :
7654 withval=$with_bugurl; case "$withval" in
7655 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
7656 no) BUGURL=
7657 ;;
7658 *) BUGURL="$withval"
7659 ;;
7660 esac
7661 else
7662 BUGURL="https://gcc.gnu.org/bugs/"
7663
7664 fi
7665
7666 case ${BUGURL} in
7667 "")
7668 REPORT_BUGS_TO=
7669 REPORT_BUGS_TEXI=
7670 ;;
7671 *)
7672 REPORT_BUGS_TO="<$BUGURL>"
7673 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
7674 ;;
7675 esac;
7676
7677
7678
7679
7680 # Sanity check enable_languages in case someone does not run the toplevel
7681 # configure # script.
7682 # Check whether --enable-languages was given.
7683 if test "${enable_languages+set}" = set; then :
7684 enableval=$enable_languages; case ,${enable_languages}, in
7685 ,,|,yes,)
7686 # go safe -- we cannot be much sure without the toplevel
7687 # configure's
7688 # analysis of which target libs are present and usable
7689 enable_languages=c
7690 ;;
7691 *,all,*)
7692 as_fn_error "only the toplevel supports --enable-languages=all" "$LINENO" 5
7693 ;;
7694 *,c,*)
7695 ;;
7696 *)
7697 enable_languages=c,${enable_languages}
7698 ;;
7699 esac
7700 else
7701 enable_languages=c
7702 fi
7703
7704
7705 if test x"$enable_as_accelerator_for" != x; then
7706
7707 $as_echo "#define ACCEL_COMPILER 1" >>confdefs.h
7708
7709 enable_as_accelerator=yes
7710 case "${target}" in
7711 *-intelmicemul-*)
7712 # In this case we expect offload compiler to be built as native, so we
7713 # need to rename the driver to avoid clashes with host's drivers.
7714 program_transform_name="s&^&${target}-&" ;;
7715 esac
7716 sedscript="s#${target_noncanonical}#${enable_as_accelerator_for}-accel-${target_noncanonical}#"
7717 program_transform_name=`echo $program_transform_name | sed $sedscript`
7718 accel_dir_suffix=/accel/${target_noncanonical}
7719 real_target_noncanonical=${enable_as_accelerator_for}
7720 fi
7721
7722
7723
7724
7725 for tgt in `echo $enable_offload_targets | sed 's/,/ /g'`; do
7726 tgt=`echo $tgt | sed 's/=.*//'`
7727
7728 if echo "$tgt" | grep "^hsa" > /dev/null ; then
7729 enable_hsa=1
7730 else
7731 enable_offloading=1
7732 fi
7733
7734 if test x"$offload_targets" = x; then
7735 offload_targets=$tgt
7736 else
7737 offload_targets="$offload_targets,$tgt"
7738 fi
7739 done
7740
7741 cat >>confdefs.h <<_ACEOF
7742 #define OFFLOAD_TARGETS "$offload_targets"
7743 _ACEOF
7744
7745 if test x"$enable_offloading" != x; then
7746
7747 $as_echo "#define ENABLE_OFFLOADING 1" >>confdefs.h
7748
7749 else
7750
7751 $as_echo "#define ENABLE_OFFLOADING 0" >>confdefs.h
7752
7753 fi
7754
7755 if test x"$enable_hsa" = x1 ; then
7756
7757 $as_echo "#define ENABLE_HSA 1" >>confdefs.h
7758
7759 fi
7760
7761
7762 # Check whether --with-multilib-list was given.
7763 if test "${with_multilib_list+set}" = set; then :
7764 withval=$with_multilib_list; :
7765 else
7766 with_multilib_list=default
7767 fi
7768
7769
7770 # -------------------------
7771 # Checks for other programs
7772 # -------------------------
7773
7774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7775 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7776 set x ${MAKE-make}
7777 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7778 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7779 $as_echo_n "(cached) " >&6
7780 else
7781 cat >conftest.make <<\_ACEOF
7782 SHELL = /bin/sh
7783 all:
7784 @echo '@@@%%%=$(MAKE)=@@@%%%'
7785 _ACEOF
7786 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7787 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7788 *@@@%%%=?*=@@@%%%*)
7789 eval ac_cv_prog_make_${ac_make}_set=yes;;
7790 *)
7791 eval ac_cv_prog_make_${ac_make}_set=no;;
7792 esac
7793 rm -f conftest.make
7794 fi
7795 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7797 $as_echo "yes" >&6; }
7798 SET_MAKE=
7799 else
7800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7801 $as_echo "no" >&6; }
7802 SET_MAKE="MAKE=${MAKE-make}"
7803 fi
7804
7805
7806 # Find some useful tools
7807 for ac_prog in gawk mawk nawk awk
7808 do
7809 # Extract the first word of "$ac_prog", so it can be a program name with args.
7810 set dummy $ac_prog; ac_word=$2
7811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7812 $as_echo_n "checking for $ac_word... " >&6; }
7813 if test "${ac_cv_prog_AWK+set}" = set; then :
7814 $as_echo_n "(cached) " >&6
7815 else
7816 if test -n "$AWK"; then
7817 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7818 else
7819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7820 for as_dir in $PATH
7821 do
7822 IFS=$as_save_IFS
7823 test -z "$as_dir" && as_dir=.
7824 for ac_exec_ext in '' $ac_executable_extensions; do
7825 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7826 ac_cv_prog_AWK="$ac_prog"
7827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7828 break 2
7829 fi
7830 done
7831 done
7832 IFS=$as_save_IFS
7833
7834 fi
7835 fi
7836 AWK=$ac_cv_prog_AWK
7837 if test -n "$AWK"; then
7838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7839 $as_echo "$AWK" >&6; }
7840 else
7841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7842 $as_echo "no" >&6; }
7843 fi
7844
7845
7846 test -n "$AWK" && break
7847 done
7848
7849 # We need awk to create options.c and options.h.
7850 # Bail out if it's missing.
7851 case ${AWK} in
7852 "") as_fn_error "can't build without awk, bailing out" "$LINENO" 5 ;;
7853 esac
7854
7855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7856 $as_echo_n "checking whether ln -s works... " >&6; }
7857 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7858 $as_echo_n "(cached) " >&6
7859 else
7860 rm -f conftestdata_t
7861 echo >conftestdata_f
7862 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7863 then
7864 gcc_cv_prog_LN_S="ln -s"
7865 else
7866 if ln conftestdata_f conftestdata_t 2>/dev/null
7867 then
7868 gcc_cv_prog_LN_S=ln
7869 else
7870 if cp -p conftestdata_f conftestdata_t 2>/dev/null
7871 then
7872 gcc_cv_prog_LN_S="cp -p"
7873 else
7874 gcc_cv_prog_LN_S=cp
7875 fi
7876 fi
7877 fi
7878 rm -f conftestdata_f conftestdata_t
7879
7880 fi
7881 LN_S="$gcc_cv_prog_LN_S"
7882 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7884 $as_echo "yes" >&6; }
7885 else
7886 if test "$gcc_cv_prog_LN_S" = "ln"; then
7887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7888 $as_echo "no, using ln" >&6; }
7889 else
7890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7891 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7892 fi
7893 fi
7894
7895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7896 $as_echo_n "checking whether ln works... " >&6; }
7897 if test "${acx_cv_prog_LN+set}" = set; then :
7898 $as_echo_n "(cached) " >&6
7899 else
7900 rm -f conftestdata_t
7901 echo >conftestdata_f
7902 if ln conftestdata_f conftestdata_t 2>/dev/null
7903 then
7904 acx_cv_prog_LN=ln
7905 else
7906 acx_cv_prog_LN=no
7907 fi
7908 rm -f conftestdata_f conftestdata_t
7909
7910 fi
7911 if test $acx_cv_prog_LN = no; then
7912 LN="$LN_S"
7913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7914 $as_echo "no, using $LN" >&6; }
7915 else
7916 LN="$acx_cv_prog_LN"
7917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7918 $as_echo "yes" >&6; }
7919 fi
7920
7921 if test -n "$ac_tool_prefix"; then
7922 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7923 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7925 $as_echo_n "checking for $ac_word... " >&6; }
7926 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7927 $as_echo_n "(cached) " >&6
7928 else
7929 if test -n "$RANLIB"; then
7930 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7931 else
7932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7933 for as_dir in $PATH
7934 do
7935 IFS=$as_save_IFS
7936 test -z "$as_dir" && as_dir=.
7937 for ac_exec_ext in '' $ac_executable_extensions; do
7938 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7939 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7941 break 2
7942 fi
7943 done
7944 done
7945 IFS=$as_save_IFS
7946
7947 fi
7948 fi
7949 RANLIB=$ac_cv_prog_RANLIB
7950 if test -n "$RANLIB"; then
7951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7952 $as_echo "$RANLIB" >&6; }
7953 else
7954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7955 $as_echo "no" >&6; }
7956 fi
7957
7958
7959 fi
7960 if test -z "$ac_cv_prog_RANLIB"; then
7961 ac_ct_RANLIB=$RANLIB
7962 # Extract the first word of "ranlib", so it can be a program name with args.
7963 set dummy ranlib; ac_word=$2
7964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7965 $as_echo_n "checking for $ac_word... " >&6; }
7966 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7967 $as_echo_n "(cached) " >&6
7968 else
7969 if test -n "$ac_ct_RANLIB"; then
7970 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7971 else
7972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7973 for as_dir in $PATH
7974 do
7975 IFS=$as_save_IFS
7976 test -z "$as_dir" && as_dir=.
7977 for ac_exec_ext in '' $ac_executable_extensions; do
7978 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7979 ac_cv_prog_ac_ct_RANLIB="ranlib"
7980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7981 break 2
7982 fi
7983 done
7984 done
7985 IFS=$as_save_IFS
7986
7987 fi
7988 fi
7989 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7990 if test -n "$ac_ct_RANLIB"; then
7991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7992 $as_echo "$ac_ct_RANLIB" >&6; }
7993 else
7994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7995 $as_echo "no" >&6; }
7996 fi
7997
7998 if test "x$ac_ct_RANLIB" = x; then
7999 RANLIB=":"
8000 else
8001 case $cross_compiling:$ac_tool_warned in
8002 yes:)
8003 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8004 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8005 ac_tool_warned=yes ;;
8006 esac
8007 RANLIB=$ac_ct_RANLIB
8008 fi
8009 else
8010 RANLIB="$ac_cv_prog_RANLIB"
8011 fi
8012
8013 ranlib_flags=""
8014
8015
8016 # Find a good install program. We prefer a C program (faster),
8017 # so one script is as good as another. But avoid the broken or
8018 # incompatible versions:
8019 # SysV /etc/install, /usr/sbin/install
8020 # SunOS /usr/etc/install
8021 # IRIX /sbin/install
8022 # AIX /bin/install
8023 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8024 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8025 # ./install, which can be erroneously created by make from ./install.sh.
8026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
8027 $as_echo_n "checking for a BSD compatible install... " >&6; }
8028 if test -z "$INSTALL"; then
8029 if test "${ac_cv_path_install+set}" = set; then :
8030 $as_echo_n "(cached) " >&6
8031 else
8032 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
8033 for ac_dir in $PATH; do
8034 # Account for people who put trailing slashes in PATH elements.
8035 case "$ac_dir/" in
8036 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
8037 *)
8038 # OSF1 and SCO ODT 3.0 have their own names for install.
8039 for ac_prog in ginstall scoinst install; do
8040 if test -f $ac_dir/$ac_prog; then
8041 if test $ac_prog = install &&
8042 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
8043 # AIX install. It has an incompatible calling convention.
8044 # OSF/1 installbsd also uses dspmsg, but is usable.
8045 :
8046 else
8047 ac_cv_path_install="$ac_dir/$ac_prog -c"
8048 break 2
8049 fi
8050 fi
8051 done
8052 ;;
8053 esac
8054 done
8055 IFS="$ac_save_IFS"
8056
8057 fi
8058 if test "${ac_cv_path_install+set}" = set; then
8059 INSTALL="$ac_cv_path_install"
8060 else
8061 # As a last resort, use the slow shell script. We don't cache a
8062 # path for INSTALL within a source directory, because that will
8063 # break other packages using the cache if that directory is
8064 # removed, or if the path is relative.
8065 INSTALL="$ac_install_sh"
8066 fi
8067 fi
8068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
8069 $as_echo "$INSTALL" >&6; }
8070
8071 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8072 # It thinks the first close brace ends the variable substitution.
8073 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8074
8075 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8076
8077
8078 # See if cmp has --ignore-initial.
8079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
8080 $as_echo_n "checking for cmp's capabilities... " >&6; }
8081 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
8082 $as_echo_n "(cached) " >&6
8083 else
8084 echo abfoo >t1
8085 echo cdfoo >t2
8086 gcc_cv_prog_cmp_skip=slowcompare
8087 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
8088 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
8089 :
8090 else
8091 gcc_cv_prog_cmp_skip=gnucompare
8092 fi
8093 fi
8094 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
8095 if cmp t1 t2 2 2 > /dev/null 2>&1; then
8096 if cmp t1 t2 1 1 > /dev/null 2>&1; then
8097 :
8098 else
8099 gcc_cv_prog_cmp_skip=fastcompare
8100 fi
8101 fi
8102 fi
8103 rm t1 t2
8104
8105 fi
8106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
8107 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
8108 make_compare_target=$gcc_cv_prog_cmp_skip
8109
8110
8111
8112 # See if we have the mktemp command.
8113 # Extract the first word of "mktemp", so it can be a program name with args.
8114 set dummy mktemp; ac_word=$2
8115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8116 $as_echo_n "checking for $ac_word... " >&6; }
8117 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
8118 $as_echo_n "(cached) " >&6
8119 else
8120 if test -n "$have_mktemp_command"; then
8121 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
8122 else
8123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8124 for as_dir in $PATH
8125 do
8126 IFS=$as_save_IFS
8127 test -z "$as_dir" && as_dir=.
8128 for ac_exec_ext in '' $ac_executable_extensions; do
8129 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8130 ac_cv_prog_have_mktemp_command="yes"
8131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8132 break 2
8133 fi
8134 done
8135 done
8136 IFS=$as_save_IFS
8137
8138 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
8139 fi
8140 fi
8141 have_mktemp_command=$ac_cv_prog_have_mktemp_command
8142 if test -n "$have_mktemp_command"; then
8143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
8144 $as_echo "$have_mktemp_command" >&6; }
8145 else
8146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8147 $as_echo "no" >&6; }
8148 fi
8149
8150
8151
8152 # See if makeinfo has been installed and is modern enough
8153 # that we can use it.
8154
8155 # Extract the first word of "makeinfo", so it can be a program name with args.
8156 set dummy makeinfo; ac_word=$2
8157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8158 $as_echo_n "checking for $ac_word... " >&6; }
8159 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
8160 $as_echo_n "(cached) " >&6
8161 else
8162 if test -n "$MAKEINFO"; then
8163 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
8164 else
8165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8166 for as_dir in $PATH
8167 do
8168 IFS=$as_save_IFS
8169 test -z "$as_dir" && as_dir=.
8170 for ac_exec_ext in '' $ac_executable_extensions; do
8171 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8172 ac_cv_prog_MAKEINFO="makeinfo"
8173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8174 break 2
8175 fi
8176 done
8177 done
8178 IFS=$as_save_IFS
8179
8180 fi
8181 fi
8182 MAKEINFO=$ac_cv_prog_MAKEINFO
8183 if test -n "$MAKEINFO"; then
8184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8185 $as_echo "$MAKEINFO" >&6; }
8186 else
8187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8188 $as_echo "no" >&6; }
8189 fi
8190
8191
8192 if test -n "$MAKEINFO"; then
8193 # Found it, now check the version.
8194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
8195 $as_echo_n "checking for modern makeinfo... " >&6; }
8196 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
8197 $as_echo_n "(cached) " >&6
8198 else
8199 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
8200 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
8201
8202 case $ac_prog_version in
8203 '') gcc_cv_prog_makeinfo_modern=no;;
8204 4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
8205 *) gcc_cv_prog_makeinfo_modern=no;;
8206 esac
8207
8208 fi
8209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
8210 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
8211 else
8212 gcc_cv_prog_makeinfo_modern=no
8213 fi
8214 if test $gcc_cv_prog_makeinfo_modern = no; then
8215 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
8216 fi
8217
8218 if test $gcc_cv_prog_makeinfo_modern = no; then
8219 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8220 *** Makeinfo is missing or too old.
8221 *** Info documentation will not be built." >&5
8222 $as_echo "$as_me: WARNING:
8223 *** Makeinfo is missing or too old.
8224 *** Info documentation will not be built." >&2;}
8225 BUILD_INFO=
8226 else
8227 BUILD_INFO=info
8228 fi
8229
8230
8231 # Is pod2man recent enough to regenerate manpages?
8232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
8233 $as_echo_n "checking for recent Pod::Man... " >&6; }
8234 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
8235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8236 $as_echo "yes" >&6; }
8237 GENERATED_MANPAGES=generated-manpages
8238 else
8239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8240 $as_echo "no" >&6; }
8241 GENERATED_MANPAGES=
8242 fi
8243
8244
8245 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
8246
8247 # How about lex?
8248 for ac_prog in flex
8249 do
8250 # Extract the first word of "$ac_prog", so it can be a program name with args.
8251 set dummy $ac_prog; ac_word=$2
8252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8253 $as_echo_n "checking for $ac_word... " >&6; }
8254 if test "${ac_cv_prog_FLEX+set}" = set; then :
8255 $as_echo_n "(cached) " >&6
8256 else
8257 if test -n "$FLEX"; then
8258 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
8259 else
8260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8261 for as_dir in $PATH
8262 do
8263 IFS=$as_save_IFS
8264 test -z "$as_dir" && as_dir=.
8265 for ac_exec_ext in '' $ac_executable_extensions; do
8266 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8267 ac_cv_prog_FLEX="$ac_prog"
8268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8269 break 2
8270 fi
8271 done
8272 done
8273 IFS=$as_save_IFS
8274
8275 fi
8276 fi
8277 FLEX=$ac_cv_prog_FLEX
8278 if test -n "$FLEX"; then
8279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
8280 $as_echo "$FLEX" >&6; }
8281 else
8282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8283 $as_echo "no" >&6; }
8284 fi
8285
8286
8287 test -n "$FLEX" && break
8288 done
8289 test -n "$FLEX" || FLEX="$MISSING flex"
8290
8291
8292 # Bison?
8293 for ac_prog in bison
8294 do
8295 # Extract the first word of "$ac_prog", so it can be a program name with args.
8296 set dummy $ac_prog; ac_word=$2
8297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8298 $as_echo_n "checking for $ac_word... " >&6; }
8299 if test "${ac_cv_prog_BISON+set}" = set; then :
8300 $as_echo_n "(cached) " >&6
8301 else
8302 if test -n "$BISON"; then
8303 ac_cv_prog_BISON="$BISON" # Let the user override the test.
8304 else
8305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8306 for as_dir in $PATH
8307 do
8308 IFS=$as_save_IFS
8309 test -z "$as_dir" && as_dir=.
8310 for ac_exec_ext in '' $ac_executable_extensions; do
8311 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8312 ac_cv_prog_BISON="$ac_prog"
8313 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8314 break 2
8315 fi
8316 done
8317 done
8318 IFS=$as_save_IFS
8319
8320 fi
8321 fi
8322 BISON=$ac_cv_prog_BISON
8323 if test -n "$BISON"; then
8324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
8325 $as_echo "$BISON" >&6; }
8326 else
8327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8328 $as_echo "no" >&6; }
8329 fi
8330
8331
8332 test -n "$BISON" && break
8333 done
8334 test -n "$BISON" || BISON="$MISSING bison"
8335
8336
8337 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
8338 # check for build == host before using them.
8339
8340 # NM
8341 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
8342 && test -d ../binutils ; then
8343 NM='${objdir}/../binutils/nm-new'
8344 else
8345 # Extract the first word of "nm", so it can be a program name with args.
8346 set dummy nm; ac_word=$2
8347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8348 $as_echo_n "checking for $ac_word... " >&6; }
8349 if test "${ac_cv_prog_NM+set}" = set; then :
8350 $as_echo_n "(cached) " >&6
8351 else
8352 if test -n "$NM"; then
8353 ac_cv_prog_NM="$NM" # Let the user override the test.
8354 else
8355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8356 for as_dir in $PATH
8357 do
8358 IFS=$as_save_IFS
8359 test -z "$as_dir" && as_dir=.
8360 for ac_exec_ext in '' $ac_executable_extensions; do
8361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8362 ac_cv_prog_NM="nm"
8363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8364 break 2
8365 fi
8366 done
8367 done
8368 IFS=$as_save_IFS
8369
8370 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
8371 fi
8372 fi
8373 NM=$ac_cv_prog_NM
8374 if test -n "$NM"; then
8375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8376 $as_echo "$NM" >&6; }
8377 else
8378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8379 $as_echo "no" >&6; }
8380 fi
8381
8382
8383 fi
8384
8385 # AR
8386 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
8387 && test -d ../binutils ; then
8388 AR='${objdir}/../binutils/ar'
8389 else
8390 # Extract the first word of "ar", so it can be a program name with args.
8391 set dummy ar; ac_word=$2
8392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8393 $as_echo_n "checking for $ac_word... " >&6; }
8394 if test "${ac_cv_prog_AR+set}" = set; then :
8395 $as_echo_n "(cached) " >&6
8396 else
8397 if test -n "$AR"; then
8398 ac_cv_prog_AR="$AR" # Let the user override the test.
8399 else
8400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8401 for as_dir in $PATH
8402 do
8403 IFS=$as_save_IFS
8404 test -z "$as_dir" && as_dir=.
8405 for ac_exec_ext in '' $ac_executable_extensions; do
8406 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8407 ac_cv_prog_AR="ar"
8408 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8409 break 2
8410 fi
8411 done
8412 done
8413 IFS=$as_save_IFS
8414
8415 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8416 fi
8417 fi
8418 AR=$ac_cv_prog_AR
8419 if test -n "$AR"; then
8420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8421 $as_echo "$AR" >&6; }
8422 else
8423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8424 $as_echo "no" >&6; }
8425 fi
8426
8427
8428 fi
8429
8430 # The jit documentation looks better if built with sphinx, but can be
8431 # built with texinfo if sphinx is not available.
8432 # Set "doc_build_sys" to "sphinx" or "texinfo" accordingly.
8433 # Extract the first word of "sphinx-build", so it can be a program name with args.
8434 set dummy sphinx-build; ac_word=$2
8435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8436 $as_echo_n "checking for $ac_word... " >&6; }
8437 if test "${ac_cv_prog_doc_build_sys+set}" = set; then :
8438 $as_echo_n "(cached) " >&6
8439 else
8440 if test -n "$doc_build_sys"; then
8441 ac_cv_prog_doc_build_sys="$doc_build_sys" # Let the user override the test.
8442 else
8443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8444 for as_dir in $PATH
8445 do
8446 IFS=$as_save_IFS
8447 test -z "$as_dir" && as_dir=.
8448 for ac_exec_ext in '' $ac_executable_extensions; do
8449 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8450 ac_cv_prog_doc_build_sys="sphinx"
8451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8452 break 2
8453 fi
8454 done
8455 done
8456 IFS=$as_save_IFS
8457
8458 test -z "$ac_cv_prog_doc_build_sys" && ac_cv_prog_doc_build_sys="texinfo"
8459 fi
8460 fi
8461 doc_build_sys=$ac_cv_prog_doc_build_sys
8462 if test -n "$doc_build_sys"; then
8463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doc_build_sys" >&5
8464 $as_echo "$doc_build_sys" >&6; }
8465 else
8466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8467 $as_echo "no" >&6; }
8468 fi
8469
8470
8471
8472 # --------------------
8473 # Checks for C headers
8474 # --------------------
8475
8476 # Need to reject headers which give warnings, so that the -Werror bootstrap
8477 # works later. *sigh* This needs to come before all header checks.
8478
8479 ac_c_preproc_warn_flag=yes
8480
8481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8482 $as_echo_n "checking for ANSI C header files... " >&6; }
8483 if test "${ac_cv_header_stdc+set}" = set; then :
8484 $as_echo_n "(cached) " >&6
8485 else
8486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8487 /* end confdefs.h. */
8488 #include <stdlib.h>
8489 #include <stdarg.h>
8490 #include <string.h>
8491 #include <float.h>
8492
8493 int
8494 main ()
8495 {
8496
8497 ;
8498 return 0;
8499 }
8500 _ACEOF
8501 if ac_fn_cxx_try_compile "$LINENO"; then :
8502 ac_cv_header_stdc=yes
8503 else
8504 ac_cv_header_stdc=no
8505 fi
8506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8507
8508 if test $ac_cv_header_stdc = yes; then
8509 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8511 /* end confdefs.h. */
8512 #include <string.h>
8513
8514 _ACEOF
8515 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8516 $EGREP "memchr" >/dev/null 2>&1; then :
8517
8518 else
8519 ac_cv_header_stdc=no
8520 fi
8521 rm -f conftest*
8522
8523 fi
8524
8525 if test $ac_cv_header_stdc = yes; then
8526 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8528 /* end confdefs.h. */
8529 #include <stdlib.h>
8530
8531 _ACEOF
8532 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8533 $EGREP "free" >/dev/null 2>&1; then :
8534
8535 else
8536 ac_cv_header_stdc=no
8537 fi
8538 rm -f conftest*
8539
8540 fi
8541
8542 if test $ac_cv_header_stdc = yes; then
8543 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8544 if test "$cross_compiling" = yes; then :
8545 :
8546 else
8547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8548 /* end confdefs.h. */
8549 #include <ctype.h>
8550 #include <stdlib.h>
8551 #if ((' ' & 0x0FF) == 0x020)
8552 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8553 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8554 #else
8555 # define ISLOWER(c) \
8556 (('a' <= (c) && (c) <= 'i') \
8557 || ('j' <= (c) && (c) <= 'r') \
8558 || ('s' <= (c) && (c) <= 'z'))
8559 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8560 #endif
8561
8562 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8563 int
8564 main ()
8565 {
8566 int i;
8567 for (i = 0; i < 256; i++)
8568 if (XOR (islower (i), ISLOWER (i))
8569 || toupper (i) != TOUPPER (i))
8570 return 2;
8571 return 0;
8572 }
8573 _ACEOF
8574 if ac_fn_cxx_try_run "$LINENO"; then :
8575
8576 else
8577 ac_cv_header_stdc=no
8578 fi
8579 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8580 conftest.$ac_objext conftest.beam conftest.$ac_ext
8581 fi
8582
8583 fi
8584 fi
8585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8586 $as_echo "$ac_cv_header_stdc" >&6; }
8587 if test $ac_cv_header_stdc = yes; then
8588
8589 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8590
8591 fi
8592
8593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8594 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8595 if test "${ac_cv_header_time+set}" = set; then :
8596 $as_echo_n "(cached) " >&6
8597 else
8598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8599 /* end confdefs.h. */
8600 #include <sys/types.h>
8601 #include <sys/time.h>
8602 #include <time.h>
8603
8604 int
8605 main ()
8606 {
8607 if ((struct tm *) 0)
8608 return 0;
8609 ;
8610 return 0;
8611 }
8612 _ACEOF
8613 if ac_fn_cxx_try_compile "$LINENO"; then :
8614 ac_cv_header_time=yes
8615 else
8616 ac_cv_header_time=no
8617 fi
8618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8619 fi
8620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8621 $as_echo "$ac_cv_header_time" >&6; }
8622 if test $ac_cv_header_time = yes; then
8623
8624 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8625
8626 fi
8627
8628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8629 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8630 if test "${gcc_cv_header_string+set}" = set; then :
8631 $as_echo_n "(cached) " >&6
8632 else
8633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8634 /* end confdefs.h. */
8635 #include <string.h>
8636 #include <strings.h>
8637 int
8638 main ()
8639 {
8640
8641 ;
8642 return 0;
8643 }
8644 _ACEOF
8645 if ac_fn_cxx_try_compile "$LINENO"; then :
8646 gcc_cv_header_string=yes
8647 else
8648 gcc_cv_header_string=no
8649 fi
8650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8651 fi
8652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8653 $as_echo "$gcc_cv_header_string" >&6; }
8654 if test $gcc_cv_header_string = yes; then
8655
8656 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8657
8658 fi
8659
8660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8661 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8662 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8663 $as_echo_n "(cached) " >&6
8664 else
8665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8666 /* end confdefs.h. */
8667 #include <sys/types.h>
8668 #include <sys/wait.h>
8669 #ifndef WEXITSTATUS
8670 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8671 #endif
8672 #ifndef WIFEXITED
8673 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8674 #endif
8675
8676 int
8677 main ()
8678 {
8679 int s;
8680 wait (&s);
8681 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8682 ;
8683 return 0;
8684 }
8685 _ACEOF
8686 if ac_fn_cxx_try_compile "$LINENO"; then :
8687 ac_cv_header_sys_wait_h=yes
8688 else
8689 ac_cv_header_sys_wait_h=no
8690 fi
8691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8692 fi
8693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8694 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8695 if test $ac_cv_header_sys_wait_h = yes; then
8696
8697 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8698
8699 fi
8700
8701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
8702 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
8703 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then :
8704 $as_echo_n "(cached) " >&6
8705 else
8706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8707 /* end confdefs.h. */
8708 #include <sys/types.h>
8709 #include <termios.h>
8710 #ifdef TIOCGWINSZ
8711 yes
8712 #endif
8713
8714 _ACEOF
8715 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8716 $EGREP "yes" >/dev/null 2>&1; then :
8717 ac_cv_sys_tiocgwinsz_in_termios_h=yes
8718 else
8719 ac_cv_sys_tiocgwinsz_in_termios_h=no
8720 fi
8721 rm -f conftest*
8722
8723 fi
8724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
8725 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
8726
8727 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
8728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
8729 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
8730 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then :
8731 $as_echo_n "(cached) " >&6
8732 else
8733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8734 /* end confdefs.h. */
8735 #include <sys/types.h>
8736 #include <sys/ioctl.h>
8737 #ifdef TIOCGWINSZ
8738 yes
8739 #endif
8740
8741 _ACEOF
8742 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8743 $EGREP "yes" >/dev/null 2>&1; then :
8744 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
8745 else
8746 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
8747 fi
8748 rm -f conftest*
8749
8750 fi
8751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
8752 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
8753
8754 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
8755
8756 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
8757
8758 fi
8759 fi
8760
8761 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8762 fcntl.h ftw.h unistd.h sys/file.h sys/time.h sys/mman.h \
8763 sys/resource.h sys/param.h sys/times.h sys/stat.h \
8764 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8765 do :
8766 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8767 ac_fn_cxx_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
8768 eval as_val=\$$as_ac_Header
8769 if test "x$as_val" = x""yes; then :
8770 cat >>confdefs.h <<_ACEOF
8771 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8772 _ACEOF
8773
8774 fi
8775 done
8776
8777
8778 # Check for thread headers.
8779 ac_fn_cxx_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
8780 if test "x$ac_cv_header_thread_h" = x""yes; then :
8781 have_thread_h=yes
8782 else
8783 have_thread_h=
8784 fi
8785
8786 ac_fn_cxx_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8787 if test "x$ac_cv_header_pthread_h" = x""yes; then :
8788 have_pthread_h=yes
8789 else
8790 have_pthread_h=
8791 fi
8792
8793
8794 # These tests can't be done till we know if we have limits.h.
8795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8796 $as_echo_n "checking for CHAR_BIT... " >&6; }
8797 if test "${gcc_cv_decl_char_bit+set}" = set; then :
8798 $as_echo_n "(cached) " >&6
8799 else
8800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8801 /* end confdefs.h. */
8802 #ifdef HAVE_LIMITS_H
8803 #include <limits.h>
8804 #endif
8805 #ifdef CHAR_BIT
8806 found
8807 #endif
8808 _ACEOF
8809 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8810 $EGREP "found" >/dev/null 2>&1; then :
8811 gcc_cv_decl_char_bit=yes
8812 else
8813 gcc_cv_decl_char_bit=no
8814 fi
8815 rm -f conftest*
8816
8817
8818 fi
8819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8820 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8821 if test $gcc_cv_decl_char_bit = no; then
8822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8823 $as_echo_n "checking number of bits in a byte... " >&6; }
8824 if test "${gcc_cv_c_nbby+set}" = set; then :
8825 $as_echo_n "(cached) " >&6
8826 else
8827 i=8
8828 gcc_cv_c_nbby=
8829 while test $i -lt 65; do
8830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8831 /* end confdefs.h. */
8832
8833 int
8834 main ()
8835 {
8836 switch(0) {
8837 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8838 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8839 ; }
8840 ;
8841 return 0;
8842 }
8843 _ACEOF
8844 if ac_fn_cxx_try_compile "$LINENO"; then :
8845 gcc_cv_c_nbby=$i; break
8846 fi
8847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8848 i=`expr $i + 1`
8849 done
8850 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
8851
8852 fi
8853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8854 $as_echo "$gcc_cv_c_nbby" >&6; }
8855 if test $gcc_cv_c_nbby = failed; then
8856 as_fn_error "cannot determine number of bits in a byte" "$LINENO" 5
8857 else
8858
8859 cat >>confdefs.h <<_ACEOF
8860 #define CHAR_BIT $gcc_cv_c_nbby
8861 _ACEOF
8862
8863 fi
8864 fi
8865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8866 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8867 if test "${ac_cv_c_bigendian+set}" = set; then :
8868 $as_echo_n "(cached) " >&6
8869 else
8870 ac_cv_c_bigendian=unknown
8871 # See if we're dealing with a universal compiler.
8872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8873 /* end confdefs.h. */
8874 #ifndef __APPLE_CC__
8875 not a universal capable compiler
8876 #endif
8877 typedef int dummy;
8878
8879 _ACEOF
8880 if ac_fn_cxx_try_compile "$LINENO"; then :
8881
8882 # Check for potential -arch flags. It is not universal unless
8883 # there are at least two -arch flags with different values.
8884 ac_arch=
8885 ac_prev=
8886 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8887 if test -n "$ac_prev"; then
8888 case $ac_word in
8889 i?86 | x86_64 | ppc | ppc64)
8890 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8891 ac_arch=$ac_word
8892 else
8893 ac_cv_c_bigendian=universal
8894 break
8895 fi
8896 ;;
8897 esac
8898 ac_prev=
8899 elif test "x$ac_word" = "x-arch"; then
8900 ac_prev=arch
8901 fi
8902 done
8903 fi
8904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8905 if test $ac_cv_c_bigendian = unknown; then
8906 # See if sys/param.h defines the BYTE_ORDER macro.
8907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8908 /* end confdefs.h. */
8909 #include <sys/types.h>
8910 #include <sys/param.h>
8911
8912 int
8913 main ()
8914 {
8915 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8916 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8917 && LITTLE_ENDIAN)
8918 bogus endian macros
8919 #endif
8920
8921 ;
8922 return 0;
8923 }
8924 _ACEOF
8925 if ac_fn_cxx_try_compile "$LINENO"; then :
8926 # It does; now see whether it defined to BIG_ENDIAN or not.
8927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8928 /* end confdefs.h. */
8929 #include <sys/types.h>
8930 #include <sys/param.h>
8931
8932 int
8933 main ()
8934 {
8935 #if BYTE_ORDER != BIG_ENDIAN
8936 not big endian
8937 #endif
8938
8939 ;
8940 return 0;
8941 }
8942 _ACEOF
8943 if ac_fn_cxx_try_compile "$LINENO"; then :
8944 ac_cv_c_bigendian=yes
8945 else
8946 ac_cv_c_bigendian=no
8947 fi
8948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8949 fi
8950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8951 fi
8952 if test $ac_cv_c_bigendian = unknown; then
8953 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8955 /* end confdefs.h. */
8956 #include <limits.h>
8957
8958 int
8959 main ()
8960 {
8961 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8962 bogus endian macros
8963 #endif
8964
8965 ;
8966 return 0;
8967 }
8968 _ACEOF
8969 if ac_fn_cxx_try_compile "$LINENO"; then :
8970 # It does; now see whether it defined to _BIG_ENDIAN or not.
8971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8972 /* end confdefs.h. */
8973 #include <limits.h>
8974
8975 int
8976 main ()
8977 {
8978 #ifndef _BIG_ENDIAN
8979 not big endian
8980 #endif
8981
8982 ;
8983 return 0;
8984 }
8985 _ACEOF
8986 if ac_fn_cxx_try_compile "$LINENO"; then :
8987 ac_cv_c_bigendian=yes
8988 else
8989 ac_cv_c_bigendian=no
8990 fi
8991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8992 fi
8993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8994 fi
8995 if test $ac_cv_c_bigendian = unknown; then
8996 # Compile a test program.
8997 if test "$cross_compiling" = yes; then :
8998 # Try to guess by grepping values from an object file.
8999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9000 /* end confdefs.h. */
9001 short int ascii_mm[] =
9002 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9003 short int ascii_ii[] =
9004 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9005 int use_ascii (int i) {
9006 return ascii_mm[i] + ascii_ii[i];
9007 }
9008 short int ebcdic_ii[] =
9009 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9010 short int ebcdic_mm[] =
9011 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9012 int use_ebcdic (int i) {
9013 return ebcdic_mm[i] + ebcdic_ii[i];
9014 }
9015 extern int foo;
9016
9017 int
9018 main ()
9019 {
9020 return use_ascii (foo) == use_ebcdic (foo);
9021 ;
9022 return 0;
9023 }
9024 _ACEOF
9025 if ac_fn_cxx_try_compile "$LINENO"; then :
9026 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
9027 ac_cv_c_bigendian=yes
9028 fi
9029 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
9030 if test "$ac_cv_c_bigendian" = unknown; then
9031 ac_cv_c_bigendian=no
9032 else
9033 # finding both strings is unlikely to happen, but who knows?
9034 ac_cv_c_bigendian=unknown
9035 fi
9036 fi
9037 fi
9038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9039 else
9040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9041 /* end confdefs.h. */
9042 $ac_includes_default
9043 int
9044 main ()
9045 {
9046
9047 /* Are we little or big endian? From Harbison&Steele. */
9048 union
9049 {
9050 long int l;
9051 char c[sizeof (long int)];
9052 } u;
9053 u.l = 1;
9054 return u.c[sizeof (long int) - 1] == 1;
9055
9056 ;
9057 return 0;
9058 }
9059 _ACEOF
9060 if ac_fn_cxx_try_run "$LINENO"; then :
9061 ac_cv_c_bigendian=no
9062 else
9063 ac_cv_c_bigendian=yes
9064 fi
9065 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9066 conftest.$ac_objext conftest.beam conftest.$ac_ext
9067 fi
9068
9069 fi
9070 fi
9071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9072 $as_echo "$ac_cv_c_bigendian" >&6; }
9073 case $ac_cv_c_bigendian in #(
9074 yes)
9075 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9076 ;; #(
9077 no)
9078 ;; #(
9079 universal)
9080
9081 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9082
9083 ;; #(
9084 *)
9085 as_fn_error "unknown endianness
9086 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9087 esac
9088
9089
9090 # ----------------------
9091 # Checks for C++ headers
9092 # ----------------------
9093
9094 ac_ext=cpp
9095 ac_cpp='$CXXCPP $CPPFLAGS'
9096 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9097 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9098 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
9100 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
9101 if test -z "$CXXCPP"; then
9102 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
9103 $as_echo_n "(cached) " >&6
9104 else
9105 # Double quotes because CXXCPP needs to be expanded
9106 for CXXCPP in "$CXX -E" "/lib/cpp"
9107 do
9108 ac_preproc_ok=false
9109 for ac_cxx_preproc_warn_flag in '' yes
9110 do
9111 # Use a header file that comes with gcc, so configuring glibc
9112 # with a fresh cross-compiler works.
9113 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9114 # <limits.h> exists even on freestanding compilers.
9115 # On the NeXT, cc -E runs the code through the compiler's parser,
9116 # not just through cpp. "Syntax error" is here to catch this case.
9117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9118 /* end confdefs.h. */
9119 #ifdef __STDC__
9120 # include <limits.h>
9121 #else
9122 # include <assert.h>
9123 #endif
9124 Syntax error
9125 _ACEOF
9126 if ac_fn_cxx_try_cpp "$LINENO"; then :
9127
9128 else
9129 # Broken: fails on valid input.
9130 continue
9131 fi
9132 rm -f conftest.err conftest.$ac_ext
9133
9134 # OK, works on sane cases. Now check whether nonexistent headers
9135 # can be detected and how.
9136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9137 /* end confdefs.h. */
9138 #include <ac_nonexistent.h>
9139 _ACEOF
9140 if ac_fn_cxx_try_cpp "$LINENO"; then :
9141 # Broken: success on invalid input.
9142 continue
9143 else
9144 # Passes both tests.
9145 ac_preproc_ok=:
9146 break
9147 fi
9148 rm -f conftest.err conftest.$ac_ext
9149
9150 done
9151 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9152 rm -f conftest.err conftest.$ac_ext
9153 if $ac_preproc_ok; then :
9154 break
9155 fi
9156
9157 done
9158 ac_cv_prog_CXXCPP=$CXXCPP
9159
9160 fi
9161 CXXCPP=$ac_cv_prog_CXXCPP
9162 else
9163 ac_cv_prog_CXXCPP=$CXXCPP
9164 fi
9165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
9166 $as_echo "$CXXCPP" >&6; }
9167 ac_preproc_ok=false
9168 for ac_cxx_preproc_warn_flag in '' yes
9169 do
9170 # Use a header file that comes with gcc, so configuring glibc
9171 # with a fresh cross-compiler works.
9172 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9173 # <limits.h> exists even on freestanding compilers.
9174 # On the NeXT, cc -E runs the code through the compiler's parser,
9175 # not just through cpp. "Syntax error" is here to catch this case.
9176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9177 /* end confdefs.h. */
9178 #ifdef __STDC__
9179 # include <limits.h>
9180 #else
9181 # include <assert.h>
9182 #endif
9183 Syntax error
9184 _ACEOF
9185 if ac_fn_cxx_try_cpp "$LINENO"; then :
9186
9187 else
9188 # Broken: fails on valid input.
9189 continue
9190 fi
9191 rm -f conftest.err conftest.$ac_ext
9192
9193 # OK, works on sane cases. Now check whether nonexistent headers
9194 # can be detected and how.
9195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9196 /* end confdefs.h. */
9197 #include <ac_nonexistent.h>
9198 _ACEOF
9199 if ac_fn_cxx_try_cpp "$LINENO"; then :
9200 # Broken: success on invalid input.
9201 continue
9202 else
9203 # Passes both tests.
9204 ac_preproc_ok=:
9205 break
9206 fi
9207 rm -f conftest.err conftest.$ac_ext
9208
9209 done
9210 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9211 rm -f conftest.err conftest.$ac_ext
9212 if $ac_preproc_ok; then :
9213
9214 else
9215 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9216 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9217 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9218 See \`config.log' for more details." >&5
9219 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9220 See \`config.log' for more details." >&2;}; }
9221 fi
9222
9223 ac_ext=cpp
9224 ac_cpp='$CXXCPP $CPPFLAGS'
9225 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9226 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9227 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9228
9229
9230 for ac_header in unordered_map
9231 do :
9232 ac_fn_cxx_check_header_preproc "$LINENO" "unordered_map" "ac_cv_header_unordered_map"
9233 if test "x$ac_cv_header_unordered_map" = x""yes; then :
9234 cat >>confdefs.h <<_ACEOF
9235 #define HAVE_UNORDERED_MAP 1
9236 _ACEOF
9237
9238 fi
9239 done
9240
9241 for ac_header in tr1/unordered_map
9242 do :
9243 ac_fn_cxx_check_header_preproc "$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
9244 if test "x$ac_cv_header_tr1_unordered_map" = x""yes; then :
9245 cat >>confdefs.h <<_ACEOF
9246 #define HAVE_TR1_UNORDERED_MAP 1
9247 _ACEOF
9248
9249 fi
9250 done
9251
9252 for ac_header in ext/hash_map
9253 do :
9254 ac_fn_cxx_check_header_preproc "$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
9255 if test "x$ac_cv_header_ext_hash_map" = x""yes; then :
9256 cat >>confdefs.h <<_ACEOF
9257 #define HAVE_EXT_HASH_MAP 1
9258 _ACEOF
9259
9260 fi
9261 done
9262
9263
9264 # --------
9265 # Dependency checking.
9266 # --------
9267
9268 rm -rf .tst 2>/dev/null
9269 mkdir .tst 2>/dev/null
9270 if test -d .tst; then
9271 am__leading_dot=.
9272 else
9273 am__leading_dot=_
9274 fi
9275 rmdir .tst 2>/dev/null
9276
9277 DEPDIR="${am__leading_dot}deps"
9278
9279 ac_config_commands="$ac_config_commands depdir"
9280
9281
9282 ac_config_commands="$ac_config_commands gccdepdir"
9283
9284
9285 depcc="$CXX" am_compiler_list=
9286
9287 am_depcomp=$ac_aux_dir/depcomp
9288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
9289 $as_echo_n "checking dependency style of $depcc... " >&6; }
9290 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
9291 $as_echo_n "(cached) " >&6
9292 else
9293 if test -f "$am_depcomp"; then
9294 # We make a subdir and do the tests there. Otherwise we can end up
9295 # making bogus files that we don't know about and never remove. For
9296 # instance it was reported that on HP-UX the gcc test will end up
9297 # making a dummy file named `D' -- because `-MD' means `put the output
9298 # in D'.
9299 mkdir conftest.dir
9300 # Copy depcomp to subdir because otherwise we won't find it if we're
9301 # using a relative directory.
9302 cp "$am_depcomp" conftest.dir
9303 cd conftest.dir
9304 # We will build objects and dependencies in a subdirectory because
9305 # it helps to detect inapplicable dependency modes. For instance
9306 # both Tru64's cc and ICC support -MD to output dependencies as a
9307 # side effect of compilation, but ICC will put the dependencies in
9308 # the current directory while Tru64 will put them in the object
9309 # directory.
9310 mkdir sub
9311
9312 am_cv_CXX_dependencies_compiler_type=none
9313 if test "$am_compiler_list" = ""; then
9314 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
9315 fi
9316 for depmode in $am_compiler_list; do
9317 if test $depmode = none; then break; fi
9318
9319 $as_echo "$as_me:$LINENO: trying $depmode" >&5
9320 # Setup a source with many dependencies, because some compilers
9321 # like to wrap large dependency lists on column 80 (with \), and
9322 # we should not choose a depcomp mode which is confused by this.
9323 #
9324 # We need to recreate these files for each test, as the compiler may
9325 # overwrite some of them when testing with obscure command lines.
9326 # This happens at least with the AIX C compiler.
9327 : > sub/conftest.c
9328 for i in 1 2 3 4 5 6; do
9329 echo '#include "conftst'$i'.h"' >> sub/conftest.c
9330 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
9331 # Solaris 8's {/usr,}/bin/sh.
9332 touch sub/conftst$i.h
9333 done
9334 echo "include sub/conftest.Po" > confmf
9335
9336 # We check with `-c' and `-o' for the sake of the "dashmstdout"
9337 # mode. It turns out that the SunPro C++ compiler does not properly
9338 # handle `-M -o', and we need to detect this.
9339 depcmd="depmode=$depmode \
9340 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
9341 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
9342 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
9343 echo "| $depcmd" | sed -e 's/ */ /g' >&5
9344 if env $depcmd > conftest.err 2>&1 &&
9345 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
9346 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
9347 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
9348 # icc doesn't choke on unknown options, it will just issue warnings
9349 # or remarks (even with -Werror). So we grep stderr for any message
9350 # that says an option was ignored or not supported.
9351 # When given -MP, icc 7.0 and 7.1 complain thusly:
9352 # icc: Command line warning: ignoring option '-M'; no argument required
9353 # The diagnosis changed in icc 8.0:
9354 # icc: Command line remark: option '-MP' not supported
9355 if (grep 'ignoring option' conftest.err ||
9356 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
9357 am_cv_CXX_dependencies_compiler_type=$depmode
9358 $as_echo "$as_me:$LINENO: success" >&5
9359 break
9360 fi
9361 fi
9362 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
9363 sed -e 's/^/| /' < conftest.err >&5
9364 done
9365
9366 cd ..
9367 rm -rf conftest.dir
9368 else
9369 am_cv_CXX_dependencies_compiler_type=none
9370 fi
9371
9372 fi
9373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
9374 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
9375 if test x${am_cv_CXX_dependencies_compiler_type-none} = xnone
9376 then as_fn_error "no usable dependency style found" "$LINENO" 5
9377 else CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
9378
9379 fi
9380
9381
9382 # --------
9383 # UNSORTED
9384 # --------
9385
9386
9387 # These libraries may be used by collect2.
9388 # We may need a special search path to get them linked.
9389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
9390 $as_echo_n "checking for collect2 libraries... " >&6; }
9391 if test "${gcc_cv_collect2_libs+set}" = set; then :
9392 $as_echo_n "(cached) " >&6
9393 else
9394 save_LIBS="$LIBS"
9395 for libs in '' -lld -lmld \
9396 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
9397 '-L/usr/lib/cmplrs/cc3.11 -lmld'
9398 do
9399 LIBS="$libs"
9400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9401 /* end confdefs.h. */
9402
9403 /* Override any GCC internal prototype to avoid an error.
9404 Use char because int might match the return type of a GCC
9405 builtin and then its argument prototype would still apply. */
9406 #ifdef __cplusplus
9407 extern "C"
9408 #endif
9409 char ldopen ();
9410 int
9411 main ()
9412 {
9413 return ldopen ();
9414 ;
9415 return 0;
9416 }
9417 _ACEOF
9418 if ac_fn_cxx_try_link "$LINENO"; then :
9419 gcc_cv_collect2_libs="$libs"; break
9420 fi
9421 rm -f core conftest.err conftest.$ac_objext \
9422 conftest$ac_exeext conftest.$ac_ext
9423 done
9424 LIBS="$save_LIBS"
9425 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
9426 fi
9427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
9428 $as_echo "$gcc_cv_collect2_libs" >&6; }
9429 case $gcc_cv_collect2_libs in
9430 "none required") ;;
9431 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
9432 esac
9433
9434
9435 # When building Ada code on Alpha, we need exc_resume which is usually in
9436 # -lexc. So test for it.
9437 save_LIBS="$LIBS"
9438 LIBS=
9439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
9440 $as_echo_n "checking for library containing exc_resume... " >&6; }
9441 if test "${ac_cv_search_exc_resume+set}" = set; then :
9442 $as_echo_n "(cached) " >&6
9443 else
9444 ac_func_search_save_LIBS=$LIBS
9445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9446 /* end confdefs.h. */
9447
9448 /* Override any GCC internal prototype to avoid an error.
9449 Use char because int might match the return type of a GCC
9450 builtin and then its argument prototype would still apply. */
9451 #ifdef __cplusplus
9452 extern "C"
9453 #endif
9454 char exc_resume ();
9455 int
9456 main ()
9457 {
9458 return exc_resume ();
9459 ;
9460 return 0;
9461 }
9462 _ACEOF
9463 for ac_lib in '' exc; do
9464 if test -z "$ac_lib"; then
9465 ac_res="none required"
9466 else
9467 ac_res=-l$ac_lib
9468 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9469 fi
9470 if ac_fn_cxx_try_link "$LINENO"; then :
9471 ac_cv_search_exc_resume=$ac_res
9472 fi
9473 rm -f core conftest.err conftest.$ac_objext \
9474 conftest$ac_exeext
9475 if test "${ac_cv_search_exc_resume+set}" = set; then :
9476 break
9477 fi
9478 done
9479 if test "${ac_cv_search_exc_resume+set}" = set; then :
9480
9481 else
9482 ac_cv_search_exc_resume=no
9483 fi
9484 rm conftest.$ac_ext
9485 LIBS=$ac_func_search_save_LIBS
9486 fi
9487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
9488 $as_echo "$ac_cv_search_exc_resume" >&6; }
9489 ac_res=$ac_cv_search_exc_resume
9490 if test "$ac_res" != no; then :
9491 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9492
9493 fi
9494
9495 GNAT_LIBEXC="$LIBS"
9496 LIBS="$save_LIBS"
9497
9498
9499 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
9500 save_LIBS="$LIBS"
9501 LIBS=
9502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
9503 $as_echo_n "checking for library containing kstat_open... " >&6; }
9504 if test "${ac_cv_search_kstat_open+set}" = set; then :
9505 $as_echo_n "(cached) " >&6
9506 else
9507 ac_func_search_save_LIBS=$LIBS
9508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9509 /* end confdefs.h. */
9510
9511 /* Override any GCC internal prototype to avoid an error.
9512 Use char because int might match the return type of a GCC
9513 builtin and then its argument prototype would still apply. */
9514 #ifdef __cplusplus
9515 extern "C"
9516 #endif
9517 char kstat_open ();
9518 int
9519 main ()
9520 {
9521 return kstat_open ();
9522 ;
9523 return 0;
9524 }
9525 _ACEOF
9526 for ac_lib in '' kstat; do
9527 if test -z "$ac_lib"; then
9528 ac_res="none required"
9529 else
9530 ac_res=-l$ac_lib
9531 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9532 fi
9533 if ac_fn_cxx_try_link "$LINENO"; then :
9534 ac_cv_search_kstat_open=$ac_res
9535 fi
9536 rm -f core conftest.err conftest.$ac_objext \
9537 conftest$ac_exeext
9538 if test "${ac_cv_search_kstat_open+set}" = set; then :
9539 break
9540 fi
9541 done
9542 if test "${ac_cv_search_kstat_open+set}" = set; then :
9543
9544 else
9545 ac_cv_search_kstat_open=no
9546 fi
9547 rm conftest.$ac_ext
9548 LIBS=$ac_func_search_save_LIBS
9549 fi
9550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
9551 $as_echo "$ac_cv_search_kstat_open" >&6; }
9552 ac_res=$ac_cv_search_kstat_open
9553 if test "$ac_res" != no; then :
9554 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9555
9556 fi
9557
9558 EXTRA_GCC_LIBS="$LIBS"
9559 LIBS="$save_LIBS"
9560
9561
9562 # Some systems put ldexp and frexp in libm instead of libc; assume
9563 # they're both in the same place. jcf-dump needs them.
9564 save_LIBS="$LIBS"
9565 LIBS=
9566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
9567 $as_echo_n "checking for library containing ldexp... " >&6; }
9568 if test "${ac_cv_search_ldexp+set}" = set; then :
9569 $as_echo_n "(cached) " >&6
9570 else
9571 ac_func_search_save_LIBS=$LIBS
9572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9573 /* end confdefs.h. */
9574
9575 /* Override any GCC internal prototype to avoid an error.
9576 Use char because int might match the return type of a GCC
9577 builtin and then its argument prototype would still apply. */
9578 #ifdef __cplusplus
9579 extern "C"
9580 #endif
9581 char ldexp ();
9582 int
9583 main ()
9584 {
9585 return ldexp ();
9586 ;
9587 return 0;
9588 }
9589 _ACEOF
9590 for ac_lib in '' m; do
9591 if test -z "$ac_lib"; then
9592 ac_res="none required"
9593 else
9594 ac_res=-l$ac_lib
9595 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9596 fi
9597 if ac_fn_cxx_try_link "$LINENO"; then :
9598 ac_cv_search_ldexp=$ac_res
9599 fi
9600 rm -f core conftest.err conftest.$ac_objext \
9601 conftest$ac_exeext
9602 if test "${ac_cv_search_ldexp+set}" = set; then :
9603 break
9604 fi
9605 done
9606 if test "${ac_cv_search_ldexp+set}" = set; then :
9607
9608 else
9609 ac_cv_search_ldexp=no
9610 fi
9611 rm conftest.$ac_ext
9612 LIBS=$ac_func_search_save_LIBS
9613 fi
9614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
9615 $as_echo "$ac_cv_search_ldexp" >&6; }
9616 ac_res=$ac_cv_search_ldexp
9617 if test "$ac_res" != no; then :
9618 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9619
9620 fi
9621
9622 LDEXP_LIB="$LIBS"
9623 LIBS="$save_LIBS"
9624
9625
9626 # Use <inttypes.h> only if it exists,
9627 # doesn't clash with <sys/types.h>, declares intmax_t and defines
9628 # PRId64
9629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
9630 $as_echo_n "checking for inttypes.h... " >&6; }
9631 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
9632 $as_echo_n "(cached) " >&6
9633 else
9634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9635 /* end confdefs.h. */
9636 #define __STDC_FORMAT_MACROS
9637 #include <sys/types.h>
9638 #include <inttypes.h>
9639 int
9640 main ()
9641 {
9642 intmax_t i = -1;
9643 #ifndef PRId64
9644 choke me
9645 #endif
9646 ;
9647 return 0;
9648 }
9649 _ACEOF
9650 if ac_fn_cxx_try_compile "$LINENO"; then :
9651 gcc_cv_header_inttypes_h=yes
9652 else
9653 gcc_cv_header_inttypes_h=no
9654 fi
9655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9656 fi
9657
9658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
9659 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
9660 if test $gcc_cv_header_inttypes_h = yes; then
9661
9662 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
9663
9664 fi
9665
9666
9667
9668 for ac_func in times clock kill getrlimit setrlimit atoq \
9669 popen sysconf strsignal getrusage nl_langinfo \
9670 gettimeofday mbstowcs wcswidth mmap setlocale \
9671 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
9672 do :
9673 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9674 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
9675 eval as_val=\$$as_ac_var
9676 if test "x$as_val" = x""yes; then :
9677 cat >>confdefs.h <<_ACEOF
9678 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9679 _ACEOF
9680
9681 fi
9682 done
9683
9684
9685 if test x$ac_cv_func_mbstowcs = xyes; then
9686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
9687 $as_echo_n "checking whether mbstowcs works... " >&6; }
9688 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
9689 $as_echo_n "(cached) " >&6
9690 else
9691 if test "$cross_compiling" = yes; then :
9692 gcc_cv_func_mbstowcs_works=yes
9693 else
9694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9695 /* end confdefs.h. */
9696 #include <stdlib.h>
9697 int main()
9698 {
9699 mbstowcs(0, "", 0);
9700 return 0;
9701 }
9702 _ACEOF
9703 if ac_fn_cxx_try_run "$LINENO"; then :
9704 gcc_cv_func_mbstowcs_works=yes
9705 else
9706 gcc_cv_func_mbstowcs_works=no
9707 fi
9708 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9709 conftest.$ac_objext conftest.beam conftest.$ac_ext
9710 fi
9711
9712 fi
9713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
9714 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
9715 if test x$gcc_cv_func_mbstowcs_works = xyes; then
9716
9717 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
9718
9719 fi
9720 fi
9721
9722 ac_fn_cxx_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
9723 if test "x$ac_cv_type_ssize_t" = x""yes; then :
9724
9725 else
9726
9727 cat >>confdefs.h <<_ACEOF
9728 #define ssize_t int
9729 _ACEOF
9730
9731 fi
9732
9733 ac_fn_cxx_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
9734 if test "x$ac_cv_type_caddr_t" = x""yes; then :
9735
9736 else
9737
9738 cat >>confdefs.h <<_ACEOF
9739 #define caddr_t char *
9740 _ACEOF
9741
9742 fi
9743
9744
9745
9746 ac_fn_cxx_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
9747 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
9748 gcc_header_sys_mman_h=yes
9749 else
9750 gcc_header_sys_mman_h=no
9751 fi
9752
9753 ac_fn_cxx_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
9754 if test "x$ac_cv_func_mmap" = x""yes; then :
9755 gcc_func_mmap=yes
9756 else
9757 gcc_func_mmap=no
9758 fi
9759
9760 if test "$gcc_header_sys_mman_h" != yes \
9761 || test "$gcc_func_mmap" != yes; then
9762 gcc_cv_func_mmap_file=no
9763 gcc_cv_func_mmap_dev_zero=no
9764 gcc_cv_func_mmap_anon=no
9765 else
9766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
9767 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
9768 if test "${gcc_cv_func_mmap_file+set}" = set; then :
9769 $as_echo_n "(cached) " >&6
9770 else
9771 # Add a system to this blacklist if
9772 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9773 # memory area containing the same data that you'd get if you applied
9774 # read() to the same fd. The only system known to have a problem here
9775 # is VMS, where text files have record structure.
9776 case "$host_os" in
9777 *vms* | ultrix*)
9778 gcc_cv_func_mmap_file=no ;;
9779 *)
9780 gcc_cv_func_mmap_file=yes;;
9781 esac
9782 fi
9783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
9784 $as_echo "$gcc_cv_func_mmap_file" >&6; }
9785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
9786 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
9787 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
9788 $as_echo_n "(cached) " >&6
9789 else
9790 # Add a system to this blacklist if it has mmap() but /dev/zero
9791 # does not exist, or if mmapping /dev/zero does not give anonymous
9792 # zeroed pages with both the following properties:
9793 # 1. If you map N consecutive pages in with one call, and then
9794 # unmap any subset of those pages, the pages that were not
9795 # explicitly unmapped remain accessible.
9796 # 2. If you map two adjacent blocks of memory and then unmap them
9797 # both at once, they must both go away.
9798 # Systems known to be in this category are Windows (all variants),
9799 # VMS, and Darwin.
9800 case "$host_os" in
9801 *vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
9802 gcc_cv_func_mmap_dev_zero=no ;;
9803 *)
9804 gcc_cv_func_mmap_dev_zero=yes;;
9805 esac
9806 fi
9807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
9808 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
9809
9810 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
9812 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
9813 if test "${gcc_cv_decl_map_anon+set}" = set; then :
9814 $as_echo_n "(cached) " >&6
9815 else
9816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9817 /* end confdefs.h. */
9818 #include <sys/types.h>
9819 #include <sys/mman.h>
9820 #include <unistd.h>
9821
9822 #ifndef MAP_ANONYMOUS
9823 #define MAP_ANONYMOUS MAP_ANON
9824 #endif
9825
9826 int
9827 main ()
9828 {
9829 int n = MAP_ANONYMOUS;
9830 ;
9831 return 0;
9832 }
9833 _ACEOF
9834 if ac_fn_cxx_try_compile "$LINENO"; then :
9835 gcc_cv_decl_map_anon=yes
9836 else
9837 gcc_cv_decl_map_anon=no
9838 fi
9839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9840 fi
9841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
9842 $as_echo "$gcc_cv_decl_map_anon" >&6; }
9843
9844 if test $gcc_cv_decl_map_anon = no; then
9845 gcc_cv_func_mmap_anon=no
9846 else
9847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9848 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
9849 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
9850 $as_echo_n "(cached) " >&6
9851 else
9852 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9853 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9854 # doesn't give anonymous zeroed pages with the same properties listed
9855 # above for use of /dev/zero.
9856 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9857 case "$host_os" in
9858 *vms* | cygwin* | pe | mingw* | sco* | udk* )
9859 gcc_cv_func_mmap_anon=no ;;
9860 *)
9861 gcc_cv_func_mmap_anon=yes;;
9862 esac
9863 fi
9864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
9865 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
9866 fi
9867 fi
9868
9869 if test $gcc_cv_func_mmap_file = yes; then
9870
9871 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
9872
9873 fi
9874 if test $gcc_cv_func_mmap_dev_zero = yes; then
9875
9876 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
9877
9878 fi
9879 if test $gcc_cv_func_mmap_anon = yes; then
9880
9881 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
9882
9883 fi
9884
9885
9886 case "${host}" in
9887 *-*-*vms*)
9888 # Under VMS, vfork works very differently than on Unix. The standard test
9889 # won't work, and it isn't easily adaptable. It makes more sense to
9890 # just force it.
9891 ac_cv_func_vfork_works=yes
9892 ;;
9893 esac
9894 ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9895 if test "x$ac_cv_type_pid_t" = x""yes; then :
9896
9897 else
9898
9899 cat >>confdefs.h <<_ACEOF
9900 #define pid_t int
9901 _ACEOF
9902
9903 fi
9904
9905 for ac_header in vfork.h
9906 do :
9907 ac_fn_cxx_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
9908 if test "x$ac_cv_header_vfork_h" = x""yes; then :
9909 cat >>confdefs.h <<_ACEOF
9910 #define HAVE_VFORK_H 1
9911 _ACEOF
9912
9913 fi
9914 done
9915
9916 for ac_func in fork vfork
9917 do :
9918 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9919 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
9920 eval as_val=\$$as_ac_var
9921 if test "x$as_val" = x""yes; then :
9922 cat >>confdefs.h <<_ACEOF
9923 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9924 _ACEOF
9925
9926 fi
9927 done
9928
9929 if test "x$ac_cv_func_fork" = xyes; then
9930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9931 $as_echo_n "checking for working fork... " >&6; }
9932 if test "${ac_cv_func_fork_works+set}" = set; then :
9933 $as_echo_n "(cached) " >&6
9934 else
9935 if test "$cross_compiling" = yes; then :
9936 ac_cv_func_fork_works=cross
9937 else
9938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9939 /* end confdefs.h. */
9940 $ac_includes_default
9941 int
9942 main ()
9943 {
9944
9945 /* By Ruediger Kuhlmann. */
9946 return fork () < 0;
9947
9948 ;
9949 return 0;
9950 }
9951 _ACEOF
9952 if ac_fn_cxx_try_run "$LINENO"; then :
9953 ac_cv_func_fork_works=yes
9954 else
9955 ac_cv_func_fork_works=no
9956 fi
9957 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9958 conftest.$ac_objext conftest.beam conftest.$ac_ext
9959 fi
9960
9961 fi
9962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9963 $as_echo "$ac_cv_func_fork_works" >&6; }
9964
9965 else
9966 ac_cv_func_fork_works=$ac_cv_func_fork
9967 fi
9968 if test "x$ac_cv_func_fork_works" = xcross; then
9969 case $host in
9970 *-*-amigaos* | *-*-msdosdjgpp*)
9971 # Override, as these systems have only a dummy fork() stub
9972 ac_cv_func_fork_works=no
9973 ;;
9974 *)
9975 ac_cv_func_fork_works=yes
9976 ;;
9977 esac
9978 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9979 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9980 fi
9981 ac_cv_func_vfork_works=$ac_cv_func_vfork
9982 if test "x$ac_cv_func_vfork" = xyes; then
9983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
9984 $as_echo_n "checking for working vfork... " >&6; }
9985 if test "${ac_cv_func_vfork_works+set}" = set; then :
9986 $as_echo_n "(cached) " >&6
9987 else
9988 if test "$cross_compiling" = yes; then :
9989 ac_cv_func_vfork_works=cross
9990 else
9991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9992 /* end confdefs.h. */
9993 /* Thanks to Paul Eggert for this test. */
9994 $ac_includes_default
9995 #include <sys/wait.h>
9996 #ifdef HAVE_VFORK_H
9997 # include <vfork.h>
9998 #endif
9999 /* On some sparc systems, changes by the child to local and incoming
10000 argument registers are propagated back to the parent. The compiler
10001 is told about this with #include <vfork.h>, but some compilers
10002 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
10003 static variable whose address is put into a register that is
10004 clobbered by the vfork. */
10005 static void
10006 #ifdef __cplusplus
10007 sparc_address_test (int arg)
10008 # else
10009 sparc_address_test (arg) int arg;
10010 #endif
10011 {
10012 static pid_t child;
10013 if (!child) {
10014 child = vfork ();
10015 if (child < 0) {
10016 perror ("vfork");
10017 _exit(2);
10018 }
10019 if (!child) {
10020 arg = getpid();
10021 write(-1, "", 0);
10022 _exit (arg);
10023 }
10024 }
10025 }
10026
10027 int
10028 main ()
10029 {
10030 pid_t parent = getpid ();
10031 pid_t child;
10032
10033 sparc_address_test (0);
10034
10035 child = vfork ();
10036
10037 if (child == 0) {
10038 /* Here is another test for sparc vfork register problems. This
10039 test uses lots of local variables, at least as many local
10040 variables as main has allocated so far including compiler
10041 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
10042 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
10043 reuse the register of parent for one of the local variables,
10044 since it will think that parent can't possibly be used any more
10045 in this routine. Assigning to the local variable will thus
10046 munge parent in the parent process. */
10047 pid_t
10048 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10049 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10050 /* Convince the compiler that p..p7 are live; otherwise, it might
10051 use the same hardware register for all 8 local variables. */
10052 if (p != p1 || p != p2 || p != p3 || p != p4
10053 || p != p5 || p != p6 || p != p7)
10054 _exit(1);
10055
10056 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10057 from child file descriptors. If the child closes a descriptor
10058 before it execs or exits, this munges the parent's descriptor
10059 as well. Test for this by closing stdout in the child. */
10060 _exit(close(fileno(stdout)) != 0);
10061 } else {
10062 int status;
10063 struct stat st;
10064
10065 while (wait(&status) != child)
10066 ;
10067 return (
10068 /* Was there some problem with vforking? */
10069 child < 0
10070
10071 /* Did the child fail? (This shouldn't happen.) */
10072 || status
10073
10074 /* Did the vfork/compiler bug occur? */
10075 || parent != getpid()
10076
10077 /* Did the file descriptor bug occur? */
10078 || fstat(fileno(stdout), &st) != 0
10079 );
10080 }
10081 }
10082 _ACEOF
10083 if ac_fn_cxx_try_run "$LINENO"; then :
10084 ac_cv_func_vfork_works=yes
10085 else
10086 ac_cv_func_vfork_works=no
10087 fi
10088 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10089 conftest.$ac_objext conftest.beam conftest.$ac_ext
10090 fi
10091
10092 fi
10093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
10094 $as_echo "$ac_cv_func_vfork_works" >&6; }
10095
10096 fi;
10097 if test "x$ac_cv_func_fork_works" = xcross; then
10098 ac_cv_func_vfork_works=$ac_cv_func_vfork
10099 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10100 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10101 fi
10102
10103 if test "x$ac_cv_func_vfork_works" = xyes; then
10104
10105 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
10106
10107 else
10108
10109 $as_echo "#define vfork fork" >>confdefs.h
10110
10111 fi
10112 if test "x$ac_cv_func_fork_works" = xyes; then
10113
10114 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
10115
10116 fi
10117
10118
10119
10120 if test "X$prefix" = "XNONE"; then
10121 acl_final_prefix="$ac_default_prefix"
10122 else
10123 acl_final_prefix="$prefix"
10124 fi
10125 if test "X$exec_prefix" = "XNONE"; then
10126 acl_final_exec_prefix='${prefix}'
10127 else
10128 acl_final_exec_prefix="$exec_prefix"
10129 fi
10130 acl_save_prefix="$prefix"
10131 prefix="$acl_final_prefix"
10132 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10133 prefix="$acl_save_prefix"
10134
10135
10136 # Check whether --with-gnu-ld was given.
10137 if test "${with_gnu_ld+set}" = set; then :
10138 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10139 else
10140 with_gnu_ld=no
10141 fi
10142
10143 # Prepare PATH_SEPARATOR.
10144 # The user is always right.
10145 if test "${PATH_SEPARATOR+set}" != set; then
10146 echo "#! /bin/sh" >conf$$.sh
10147 echo "exit 0" >>conf$$.sh
10148 chmod +x conf$$.sh
10149 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10150 PATH_SEPARATOR=';'
10151 else
10152 PATH_SEPARATOR=:
10153 fi
10154 rm -f conf$$.sh
10155 fi
10156 ac_prog=ld
10157 if test "$GCC" = yes; then
10158 # Check if gcc -print-prog-name=ld gives a path.
10159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
10160 $as_echo_n "checking for ld used by GCC... " >&6; }
10161 case $host in
10162 *-*-mingw*)
10163 # gcc leaves a trailing carriage return which upsets mingw
10164 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10165 *)
10166 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10167 esac
10168 case $ac_prog in
10169 # Accept absolute paths.
10170 [\\/]* | [A-Za-z]:[\\/]*)
10171 re_direlt='/[^/][^/]*/\.\./'
10172 # Canonicalize the path of ld
10173 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10174 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10175 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10176 done
10177 test -z "$LD" && LD="$ac_prog"
10178 ;;
10179 "")
10180 # If it fails, then pretend we aren't using GCC.
10181 ac_prog=ld
10182 ;;
10183 *)
10184 # If it is relative, then search for the first ld in PATH.
10185 with_gnu_ld=unknown
10186 ;;
10187 esac
10188 elif test "$with_gnu_ld" = yes; then
10189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
10190 $as_echo_n "checking for GNU ld... " >&6; }
10191 else
10192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
10193 $as_echo_n "checking for non-GNU ld... " >&6; }
10194 fi
10195 if test "${acl_cv_path_LD+set}" = set; then :
10196 $as_echo_n "(cached) " >&6
10197 else
10198 if test -z "$LD"; then
10199 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10200 for ac_dir in $PATH; do
10201 test -z "$ac_dir" && ac_dir=.
10202 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10203 acl_cv_path_LD="$ac_dir/$ac_prog"
10204 # Check to see if the program is GNU ld. I'd rather use --version,
10205 # but apparently some GNU ld's only accept -v.
10206 # Break only if it was the GNU/non-GNU ld that we prefer.
10207 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
10208 test "$with_gnu_ld" != no && break
10209 else
10210 test "$with_gnu_ld" != yes && break
10211 fi
10212 fi
10213 done
10214 IFS="$ac_save_ifs"
10215 else
10216 acl_cv_path_LD="$LD" # Let the user override the test with a path.
10217 fi
10218 fi
10219
10220 LD="$acl_cv_path_LD"
10221 if test -n "$LD"; then
10222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10223 $as_echo "$LD" >&6; }
10224 else
10225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10226 $as_echo "no" >&6; }
10227 fi
10228 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
10229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
10230 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
10231 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
10232 $as_echo_n "(cached) " >&6
10233 else
10234 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10235 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
10236 acl_cv_prog_gnu_ld=yes
10237 else
10238 acl_cv_prog_gnu_ld=no
10239 fi
10240 fi
10241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
10242 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
10243 with_gnu_ld=$acl_cv_prog_gnu_ld
10244
10245
10246
10247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
10248 $as_echo_n "checking for shared library run path origin... " >&6; }
10249 if test "${acl_cv_rpath+set}" = set; then :
10250 $as_echo_n "(cached) " >&6
10251 else
10252
10253 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10254 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10255 . ./conftest.sh
10256 rm -f ./conftest.sh
10257 acl_cv_rpath=done
10258
10259 fi
10260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
10261 $as_echo "$acl_cv_rpath" >&6; }
10262 wl="$acl_cv_wl"
10263 libext="$acl_cv_libext"
10264 shlibext="$acl_cv_shlibext"
10265 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10266 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10267 hardcode_direct="$acl_cv_hardcode_direct"
10268 hardcode_minus_L="$acl_cv_hardcode_minus_L"
10269 # Check whether --enable-rpath was given.
10270 if test "${enable_rpath+set}" = set; then :
10271 enableval=$enable_rpath; :
10272 else
10273 enable_rpath=yes
10274 fi
10275
10276
10277
10278
10279
10280
10281
10282
10283 use_additional=yes
10284
10285 acl_save_prefix="$prefix"
10286 prefix="$acl_final_prefix"
10287 acl_save_exec_prefix="$exec_prefix"
10288 exec_prefix="$acl_final_exec_prefix"
10289
10290 eval additional_includedir=\"$includedir\"
10291 eval additional_libdir=\"$libdir\"
10292
10293 exec_prefix="$acl_save_exec_prefix"
10294 prefix="$acl_save_prefix"
10295
10296
10297 # Check whether --with-libiconv-prefix was given.
10298 if test "${with_libiconv_prefix+set}" = set; then :
10299 withval=$with_libiconv_prefix;
10300 if test "X$withval" = "Xno"; then
10301 use_additional=no
10302 else
10303 if test "X$withval" = "X"; then
10304
10305 acl_save_prefix="$prefix"
10306 prefix="$acl_final_prefix"
10307 acl_save_exec_prefix="$exec_prefix"
10308 exec_prefix="$acl_final_exec_prefix"
10309
10310 eval additional_includedir=\"$includedir\"
10311 eval additional_libdir=\"$libdir\"
10312
10313 exec_prefix="$acl_save_exec_prefix"
10314 prefix="$acl_save_prefix"
10315
10316 else
10317 additional_includedir="$withval/include"
10318 additional_libdir="$withval/lib"
10319 fi
10320 fi
10321
10322 fi
10323
10324 LIBICONV=
10325 LTLIBICONV=
10326 INCICONV=
10327 rpathdirs=
10328 ltrpathdirs=
10329 names_already_handled=
10330 names_next_round='iconv '
10331 while test -n "$names_next_round"; do
10332 names_this_round="$names_next_round"
10333 names_next_round=
10334 for name in $names_this_round; do
10335 already_handled=
10336 for n in $names_already_handled; do
10337 if test "$n" = "$name"; then
10338 already_handled=yes
10339 break
10340 fi
10341 done
10342 if test -z "$already_handled"; then
10343 names_already_handled="$names_already_handled $name"
10344 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10345 eval value=\"\$HAVE_LIB$uppername\"
10346 if test -n "$value"; then
10347 if test "$value" = yes; then
10348 eval value=\"\$LIB$uppername\"
10349 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
10350 eval value=\"\$LTLIB$uppername\"
10351 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
10352 else
10353 :
10354 fi
10355 else
10356 found_dir=
10357 found_la=
10358 found_so=
10359 found_a=
10360 if test $use_additional = yes; then
10361 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10362 found_dir="$additional_libdir"
10363 found_so="$additional_libdir/lib$name.$shlibext"
10364 if test -f "$additional_libdir/lib$name.la"; then
10365 found_la="$additional_libdir/lib$name.la"
10366 fi
10367 else
10368 if test -f "$additional_libdir/lib$name.$libext"; then
10369 found_dir="$additional_libdir"
10370 found_a="$additional_libdir/lib$name.$libext"
10371 if test -f "$additional_libdir/lib$name.la"; then
10372 found_la="$additional_libdir/lib$name.la"
10373 fi
10374 fi
10375 fi
10376 fi
10377 if test "X$found_dir" = "X"; then
10378 for x in $LDFLAGS $LTLIBICONV; do
10379
10380 acl_save_prefix="$prefix"
10381 prefix="$acl_final_prefix"
10382 acl_save_exec_prefix="$exec_prefix"
10383 exec_prefix="$acl_final_exec_prefix"
10384 eval x=\"$x\"
10385 exec_prefix="$acl_save_exec_prefix"
10386 prefix="$acl_save_prefix"
10387
10388 case "$x" in
10389 -L*)
10390 dir=`echo "X$x" | sed -e 's/^X-L//'`
10391 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10392 found_dir="$dir"
10393 found_so="$dir/lib$name.$shlibext"
10394 if test -f "$dir/lib$name.la"; then
10395 found_la="$dir/lib$name.la"
10396 fi
10397 else
10398 if test -f "$dir/lib$name.$libext"; then
10399 found_dir="$dir"
10400 found_a="$dir/lib$name.$libext"
10401 if test -f "$dir/lib$name.la"; then
10402 found_la="$dir/lib$name.la"
10403 fi
10404 fi
10405 fi
10406 ;;
10407 esac
10408 if test "X$found_dir" != "X"; then
10409 break
10410 fi
10411 done
10412 fi
10413 if test "X$found_dir" != "X"; then
10414 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10415 if test "X$found_so" != "X"; then
10416 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10417 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10418 else
10419 haveit=
10420 for x in $ltrpathdirs; do
10421 if test "X$x" = "X$found_dir"; then
10422 haveit=yes
10423 break
10424 fi
10425 done
10426 if test -z "$haveit"; then
10427 ltrpathdirs="$ltrpathdirs $found_dir"
10428 fi
10429 if test "$hardcode_direct" = yes; then
10430 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10431 else
10432 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10433 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10434 haveit=
10435 for x in $rpathdirs; do
10436 if test "X$x" = "X$found_dir"; then
10437 haveit=yes
10438 break
10439 fi
10440 done
10441 if test -z "$haveit"; then
10442 rpathdirs="$rpathdirs $found_dir"
10443 fi
10444 else
10445 haveit=
10446 for x in $LDFLAGS $LIBICONV; do
10447
10448 acl_save_prefix="$prefix"
10449 prefix="$acl_final_prefix"
10450 acl_save_exec_prefix="$exec_prefix"
10451 exec_prefix="$acl_final_exec_prefix"
10452 eval x=\"$x\"
10453 exec_prefix="$acl_save_exec_prefix"
10454 prefix="$acl_save_prefix"
10455
10456 if test "X$x" = "X-L$found_dir"; then
10457 haveit=yes
10458 break
10459 fi
10460 done
10461 if test -z "$haveit"; then
10462 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10463 fi
10464 if test "$hardcode_minus_L" != no; then
10465 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10466 else
10467 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10468 fi
10469 fi
10470 fi
10471 fi
10472 else
10473 if test "X$found_a" != "X"; then
10474 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
10475 else
10476 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10477 fi
10478 fi
10479 additional_includedir=
10480 case "$found_dir" in
10481 */lib | */lib/)
10482 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10483 additional_includedir="$basedir/include"
10484 ;;
10485 esac
10486 if test "X$additional_includedir" != "X"; then
10487 if test "X$additional_includedir" != "X/usr/include"; then
10488 haveit=
10489 if test "X$additional_includedir" = "X/usr/local/include"; then
10490 if test -n "$GCC"; then
10491 case $host_os in
10492 linux*) haveit=yes;;
10493 esac
10494 fi
10495 fi
10496 if test -z "$haveit"; then
10497 for x in $CPPFLAGS $INCICONV; do
10498
10499 acl_save_prefix="$prefix"
10500 prefix="$acl_final_prefix"
10501 acl_save_exec_prefix="$exec_prefix"
10502 exec_prefix="$acl_final_exec_prefix"
10503 eval x=\"$x\"
10504 exec_prefix="$acl_save_exec_prefix"
10505 prefix="$acl_save_prefix"
10506
10507 if test "X$x" = "X-I$additional_includedir"; then
10508 haveit=yes
10509 break
10510 fi
10511 done
10512 if test -z "$haveit"; then
10513 if test -d "$additional_includedir"; then
10514 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10515 fi
10516 fi
10517 fi
10518 fi
10519 fi
10520 if test -n "$found_la"; then
10521 save_libdir="$libdir"
10522 case "$found_la" in
10523 */* | *\\*) . "$found_la" ;;
10524 *) . "./$found_la" ;;
10525 esac
10526 libdir="$save_libdir"
10527 for dep in $dependency_libs; do
10528 case "$dep" in
10529 -L*)
10530 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10531 if test "X$additional_libdir" != "X/usr/lib"; then
10532 haveit=
10533 if test "X$additional_libdir" = "X/usr/local/lib"; then
10534 if test -n "$GCC"; then
10535 case $host_os in
10536 linux*) haveit=yes;;
10537 esac
10538 fi
10539 fi
10540 if test -z "$haveit"; then
10541 haveit=
10542 for x in $LDFLAGS $LIBICONV; do
10543
10544 acl_save_prefix="$prefix"
10545 prefix="$acl_final_prefix"
10546 acl_save_exec_prefix="$exec_prefix"
10547 exec_prefix="$acl_final_exec_prefix"
10548 eval x=\"$x\"
10549 exec_prefix="$acl_save_exec_prefix"
10550 prefix="$acl_save_prefix"
10551
10552 if test "X$x" = "X-L$additional_libdir"; then
10553 haveit=yes
10554 break
10555 fi
10556 done
10557 if test -z "$haveit"; then
10558 if test -d "$additional_libdir"; then
10559 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10560 fi
10561 fi
10562 haveit=
10563 for x in $LDFLAGS $LTLIBICONV; do
10564
10565 acl_save_prefix="$prefix"
10566 prefix="$acl_final_prefix"
10567 acl_save_exec_prefix="$exec_prefix"
10568 exec_prefix="$acl_final_exec_prefix"
10569 eval x=\"$x\"
10570 exec_prefix="$acl_save_exec_prefix"
10571 prefix="$acl_save_prefix"
10572
10573 if test "X$x" = "X-L$additional_libdir"; then
10574 haveit=yes
10575 break
10576 fi
10577 done
10578 if test -z "$haveit"; then
10579 if test -d "$additional_libdir"; then
10580 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10581 fi
10582 fi
10583 fi
10584 fi
10585 ;;
10586 -R*)
10587 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10588 if test "$enable_rpath" != no; then
10589 haveit=
10590 for x in $rpathdirs; do
10591 if test "X$x" = "X$dir"; then
10592 haveit=yes
10593 break
10594 fi
10595 done
10596 if test -z "$haveit"; then
10597 rpathdirs="$rpathdirs $dir"
10598 fi
10599 haveit=
10600 for x in $ltrpathdirs; do
10601 if test "X$x" = "X$dir"; then
10602 haveit=yes
10603 break
10604 fi
10605 done
10606 if test -z "$haveit"; then
10607 ltrpathdirs="$ltrpathdirs $dir"
10608 fi
10609 fi
10610 ;;
10611 -l*)
10612 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10613 ;;
10614 *.la)
10615 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10616 ;;
10617 *)
10618 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10619 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10620 ;;
10621 esac
10622 done
10623 fi
10624 else
10625 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10626 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10627 fi
10628 fi
10629 fi
10630 done
10631 done
10632 if test "X$rpathdirs" != "X"; then
10633 if test -n "$hardcode_libdir_separator"; then
10634 alldirs=
10635 for found_dir in $rpathdirs; do
10636 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10637 done
10638 acl_save_libdir="$libdir"
10639 libdir="$alldirs"
10640 eval flag=\"$hardcode_libdir_flag_spec\"
10641 libdir="$acl_save_libdir"
10642 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10643 else
10644 for found_dir in $rpathdirs; do
10645 acl_save_libdir="$libdir"
10646 libdir="$found_dir"
10647 eval flag=\"$hardcode_libdir_flag_spec\"
10648 libdir="$acl_save_libdir"
10649 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10650 done
10651 fi
10652 fi
10653 if test "X$ltrpathdirs" != "X"; then
10654 for found_dir in $ltrpathdirs; do
10655 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10656 done
10657 fi
10658
10659
10660
10661
10662
10663
10664
10665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10666 $as_echo_n "checking for iconv... " >&6; }
10667 if test "${am_cv_func_iconv+set}" = set; then :
10668 $as_echo_n "(cached) " >&6
10669 else
10670
10671 am_cv_func_iconv="no, consider installing GNU libiconv"
10672 am_cv_lib_iconv=no
10673 am_save_CPPFLAGS="$CPPFLAGS"
10674 CPPFLAGS="$CPPFLAGS $INCICONV"
10675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10676 /* end confdefs.h. */
10677 #include <stdlib.h>
10678 #include <iconv.h>
10679 int
10680 main ()
10681 {
10682 iconv_t cd = iconv_open("","");
10683 iconv(cd,NULL,NULL,NULL,NULL);
10684 iconv_close(cd);
10685 ;
10686 return 0;
10687 }
10688 _ACEOF
10689 if ac_fn_cxx_try_link "$LINENO"; then :
10690 am_cv_func_iconv=yes
10691 fi
10692 rm -f core conftest.err conftest.$ac_objext \
10693 conftest$ac_exeext conftest.$ac_ext
10694 CPPFLAGS="$am_save_CPPFLAGS"
10695
10696 if test "$am_cv_func_iconv" != yes && test -d ../libiconv; then
10697 for _libs in .libs _libs; do
10698 am_save_CPPFLAGS="$CPPFLAGS"
10699 am_save_LIBS="$LIBS"
10700 CPPFLAGS="$CPPFLAGS -I../libiconv/include"
10701 LIBS="$LIBS ../libiconv/lib/$_libs/libiconv.a"
10702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10703 /* end confdefs.h. */
10704 #include <stdlib.h>
10705 #include <iconv.h>
10706 int
10707 main ()
10708 {
10709 iconv_t cd = iconv_open("","");
10710 iconv(cd,NULL,NULL,NULL,NULL);
10711 iconv_close(cd);
10712 ;
10713 return 0;
10714 }
10715 _ACEOF
10716 if ac_fn_cxx_try_link "$LINENO"; then :
10717 INCICONV="-I../libiconv/include"
10718 LIBICONV='${top_builddir}'/../libiconv/lib/$_libs/libiconv.a
10719 LTLIBICONV='${top_builddir}'/../libiconv/lib/libiconv.la
10720 am_cv_lib_iconv=yes
10721 am_cv_func_iconv=yes
10722 fi
10723 rm -f core conftest.err conftest.$ac_objext \
10724 conftest$ac_exeext conftest.$ac_ext
10725 CPPFLAGS="$am_save_CPPFLAGS"
10726 LIBS="$am_save_LIBS"
10727 if test "$am_cv_func_iconv" = "yes"; then
10728 break
10729 fi
10730 done
10731 fi
10732
10733 if test "$am_cv_func_iconv" != yes; then
10734 am_save_CPPFLAGS="$CPPFLAGS"
10735 am_save_LIBS="$LIBS"
10736 CPPFLAGS="$LIBS $INCICONV"
10737 LIBS="$LIBS $LIBICONV"
10738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10739 /* end confdefs.h. */
10740 #include <stdlib.h>
10741 #include <iconv.h>
10742 int
10743 main ()
10744 {
10745 iconv_t cd = iconv_open("","");
10746 iconv(cd,NULL,NULL,NULL,NULL);
10747 iconv_close(cd);
10748 ;
10749 return 0;
10750 }
10751 _ACEOF
10752 if ac_fn_cxx_try_link "$LINENO"; then :
10753 am_cv_lib_iconv=yes
10754 am_cv_func_iconv=yes
10755 fi
10756 rm -f core conftest.err conftest.$ac_objext \
10757 conftest$ac_exeext conftest.$ac_ext
10758 CPPFLAGS="$am_save_CPPFLAGS"
10759 LIBS="$am_save_LIBS"
10760 fi
10761
10762 fi
10763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10764 $as_echo "$am_cv_func_iconv" >&6; }
10765 if test "$am_cv_func_iconv" = yes; then
10766
10767 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10768
10769 fi
10770 if test "$am_cv_lib_iconv" = yes; then
10771
10772 for element in $INCICONV; do
10773 haveit=
10774 for x in $CPPFLAGS; do
10775
10776 acl_save_prefix="$prefix"
10777 prefix="$acl_final_prefix"
10778 acl_save_exec_prefix="$exec_prefix"
10779 exec_prefix="$acl_final_exec_prefix"
10780 eval x=\"$x\"
10781 exec_prefix="$acl_save_exec_prefix"
10782 prefix="$acl_save_prefix"
10783
10784 if test "X$x" = "X$element"; then
10785 haveit=yes
10786 break
10787 fi
10788 done
10789 if test -z "$haveit"; then
10790 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10791 fi
10792 done
10793
10794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10795 $as_echo_n "checking how to link with libiconv... " >&6; }
10796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10797 $as_echo "$LIBICONV" >&6; }
10798 else
10799 LIBICONV=
10800 LTLIBICONV=
10801 fi
10802
10803
10804
10805 if test "$am_cv_func_iconv" = yes; then
10806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10807 $as_echo_n "checking for iconv declaration... " >&6; }
10808 if test "${am_cv_proto_iconv+set}" = set; then :
10809 $as_echo_n "(cached) " >&6
10810 else
10811
10812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10813 /* end confdefs.h. */
10814
10815 #include <stdlib.h>
10816 #include <iconv.h>
10817 extern
10818 #ifdef __cplusplus
10819 "C"
10820 #endif
10821 #if defined(__STDC__) || defined(__cplusplus)
10822 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10823 #else
10824 size_t iconv();
10825 #endif
10826
10827 int
10828 main ()
10829 {
10830
10831 ;
10832 return 0;
10833 }
10834 _ACEOF
10835 if ac_fn_cxx_try_compile "$LINENO"; then :
10836 am_cv_proto_iconv_arg1=""
10837 else
10838 am_cv_proto_iconv_arg1="const"
10839 fi
10840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10841 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);"
10842 fi
10843
10844 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10846 }$am_cv_proto_iconv" >&5
10847 $as_echo "${ac_t:-
10848 }$am_cv_proto_iconv" >&6; }
10849
10850 cat >>confdefs.h <<_ACEOF
10851 #define ICONV_CONST $am_cv_proto_iconv_arg1
10852 _ACEOF
10853
10854 fi
10855
10856
10857 # Until we have in-tree GNU iconv:
10858 LIBICONV_DEP=
10859 if test -f "$LTLIBICONV"; then
10860 LIBICONV_DEP=$LTLIBICONV
10861 fi
10862
10863
10864
10865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10866 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10867 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
10868 $as_echo_n "(cached) " >&6
10869 else
10870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10871 /* end confdefs.h. */
10872 #include <locale.h>
10873 int
10874 main ()
10875 {
10876 return LC_MESSAGES
10877 ;
10878 return 0;
10879 }
10880 _ACEOF
10881 if ac_fn_cxx_try_link "$LINENO"; then :
10882 am_cv_val_LC_MESSAGES=yes
10883 else
10884 am_cv_val_LC_MESSAGES=no
10885 fi
10886 rm -f core conftest.err conftest.$ac_objext \
10887 conftest$ac_exeext conftest.$ac_ext
10888 fi
10889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10890 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10891 if test $am_cv_val_LC_MESSAGES = yes; then
10892
10893 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10894
10895 fi
10896
10897
10898
10899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10900 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10901 if test "${am_cv_langinfo_codeset+set}" = set; then :
10902 $as_echo_n "(cached) " >&6
10903 else
10904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10905 /* end confdefs.h. */
10906 #include <langinfo.h>
10907 int
10908 main ()
10909 {
10910 char* cs = nl_langinfo(CODESET);
10911 ;
10912 return 0;
10913 }
10914 _ACEOF
10915 if ac_fn_cxx_try_link "$LINENO"; then :
10916 am_cv_langinfo_codeset=yes
10917 else
10918 am_cv_langinfo_codeset=no
10919 fi
10920 rm -f core conftest.err conftest.$ac_objext \
10921 conftest$ac_exeext conftest.$ac_ext
10922
10923 fi
10924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10925 $as_echo "$am_cv_langinfo_codeset" >&6; }
10926 if test $am_cv_langinfo_codeset = yes; then
10927
10928 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10929
10930 fi
10931
10932
10933 # We will need to find libiberty.h and ansidecl.h
10934 saved_CFLAGS="$CFLAGS"
10935 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10936 saved_CXXFLAGS="$CXXFLAGS"
10937 CXXFLAGS="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10938
10939 # gcc_AC_CHECK_DECLS doesn't support overloaded functions, so use the
10940 # normal autoconf function for these. But force definition of
10941 # HAVE_DECL_BASENAME like gcc_AC_CHECK_DECLS does, to suppress the bizarre
10942 # basename handling in libiberty.h.
10943 ac_fn_cxx_check_decl "$LINENO" "basename(const char*)" "ac_cv_have_decl_basename_const_charp_" "
10944 #undef HAVE_DECL_BASENAME
10945 #define HAVE_DECL_BASENAME 1
10946 #include \"ansidecl.h\"
10947 #include \"system.h\"
10948 "
10949 if test "x$ac_cv_have_decl_basename_const_charp_" = x""yes; then :
10950 ac_have_decl=1
10951 else
10952 ac_have_decl=0
10953 fi
10954
10955 cat >>confdefs.h <<_ACEOF
10956 #define HAVE_DECL_BASENAME $ac_have_decl
10957 _ACEOF
10958 ac_fn_cxx_check_decl "$LINENO" "strstr(const char*,const char*)" "ac_cv_have_decl_strstr_const_charp_const_charp_" "
10959 #undef HAVE_DECL_BASENAME
10960 #define HAVE_DECL_BASENAME 1
10961 #include \"ansidecl.h\"
10962 #include \"system.h\"
10963 "
10964 if test "x$ac_cv_have_decl_strstr_const_charp_const_charp_" = x""yes; then :
10965 ac_have_decl=1
10966 else
10967 ac_have_decl=0
10968 fi
10969
10970 cat >>confdefs.h <<_ACEOF
10971 #define HAVE_DECL_STRSTR $ac_have_decl
10972 _ACEOF
10973
10974
10975 for ac_func in getenv atol atoll asprintf sbrk abort atof getcwd getwd \
10976 madvise stpcpy strnlen strsignal strverscmp \
10977 strtol strtoul strtoll strtoull setenv unsetenv \
10978 errno snprintf vsnprintf vasprintf malloc realloc calloc \
10979 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
10980 do
10981 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10983 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10984 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10985 $as_echo_n "(cached) " >&6
10986 else
10987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10988 /* end confdefs.h. */
10989 #undef $ac_tr_decl
10990 #define $ac_tr_decl 1
10991
10992 #include "ansidecl.h"
10993 #include "system.h"
10994
10995 int
10996 main ()
10997 {
10998 #ifndef $ac_func
10999 char *(*pfn) = (char *(*)) $ac_func ;
11000 #endif
11001 ;
11002 return 0;
11003 }
11004 _ACEOF
11005 if ac_fn_cxx_try_compile "$LINENO"; then :
11006 eval "gcc_cv_have_decl_$ac_func=yes"
11007 else
11008 eval "gcc_cv_have_decl_$ac_func=no"
11009 fi
11010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11011 fi
11012
11013 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11015 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11016 #define $ac_tr_decl 1
11017 _ACEOF
11018
11019 else
11020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11021 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11022 #define $ac_tr_decl 0
11023 _ACEOF
11024
11025 fi
11026
11027 done
11028
11029
11030 for ac_func in getrlimit setrlimit getrusage
11031 do
11032 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11034 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11035 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11036 $as_echo_n "(cached) " >&6
11037 else
11038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11039 /* end confdefs.h. */
11040 #undef $ac_tr_decl
11041 #define $ac_tr_decl 1
11042
11043 #include "ansidecl.h"
11044 #include "system.h"
11045 #ifdef HAVE_SYS_RESOURCE_H
11046 #include <sys/resource.h>
11047 #endif
11048
11049
11050 int
11051 main ()
11052 {
11053 #ifndef $ac_func
11054 char *(*pfn) = (char *(*)) $ac_func ;
11055 #endif
11056 ;
11057 return 0;
11058 }
11059 _ACEOF
11060 if ac_fn_cxx_try_compile "$LINENO"; then :
11061 eval "gcc_cv_have_decl_$ac_func=yes"
11062 else
11063 eval "gcc_cv_have_decl_$ac_func=no"
11064 fi
11065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11066 fi
11067
11068 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11070 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11071 #define $ac_tr_decl 1
11072 _ACEOF
11073
11074 else
11075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11076 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11077 #define $ac_tr_decl 0
11078 _ACEOF
11079
11080 fi
11081
11082 done
11083
11084
11085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11086 /* end confdefs.h. */
11087
11088 #include "ansidecl.h"
11089 #include "system.h"
11090 #ifdef HAVE_SYS_RESOURCE_H
11091 #include <sys/resource.h>
11092 #endif
11093
11094 int
11095 main ()
11096 {
11097 rlim_t l = 0;
11098 ;
11099 return 0;
11100 }
11101 _ACEOF
11102 if ac_fn_cxx_try_compile "$LINENO"; then :
11103
11104 else
11105
11106 $as_echo "#define rlim_t long" >>confdefs.h
11107
11108 fi
11109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11110
11111 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
11112 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
11113 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
11114 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
11115 for ac_func in ldgetname
11116 do
11117 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11119 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11120 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11121 $as_echo_n "(cached) " >&6
11122 else
11123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11124 /* end confdefs.h. */
11125 #undef $ac_tr_decl
11126 #define $ac_tr_decl 1
11127
11128 #include "ansidecl.h"
11129 #include "system.h"
11130 #ifdef HAVE_LDFCN_H
11131 #undef FREAD
11132 #undef FWRITE
11133 #include <ldfcn.h>
11134 #endif
11135
11136
11137 int
11138 main ()
11139 {
11140 #ifndef $ac_func
11141 char *(*pfn) = (char *(*)) $ac_func ;
11142 #endif
11143 ;
11144 return 0;
11145 }
11146 _ACEOF
11147 if ac_fn_cxx_try_compile "$LINENO"; then :
11148 eval "gcc_cv_have_decl_$ac_func=yes"
11149 else
11150 eval "gcc_cv_have_decl_$ac_func=no"
11151 fi
11152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11153 fi
11154
11155 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11157 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11158 #define $ac_tr_decl 1
11159 _ACEOF
11160
11161 else
11162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11163 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11164 #define $ac_tr_decl 0
11165 _ACEOF
11166
11167 fi
11168
11169 done
11170
11171
11172 for ac_func in times
11173 do
11174 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11176 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11177 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11178 $as_echo_n "(cached) " >&6
11179 else
11180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11181 /* end confdefs.h. */
11182 #undef $ac_tr_decl
11183 #define $ac_tr_decl 1
11184
11185 #include "ansidecl.h"
11186 #include "system.h"
11187 #ifdef HAVE_SYS_TIMES_H
11188 #include <sys/times.h>
11189 #endif
11190
11191
11192 int
11193 main ()
11194 {
11195 #ifndef $ac_func
11196 char *(*pfn) = (char *(*)) $ac_func ;
11197 #endif
11198 ;
11199 return 0;
11200 }
11201 _ACEOF
11202 if ac_fn_cxx_try_compile "$LINENO"; then :
11203 eval "gcc_cv_have_decl_$ac_func=yes"
11204 else
11205 eval "gcc_cv_have_decl_$ac_func=no"
11206 fi
11207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11208 fi
11209
11210 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11212 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11213 #define $ac_tr_decl 1
11214 _ACEOF
11215
11216 else
11217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11218 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11219 #define $ac_tr_decl 0
11220 _ACEOF
11221
11222 fi
11223
11224 done
11225
11226
11227 for ac_func in sigaltstack
11228 do
11229 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11231 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11232 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11233 $as_echo_n "(cached) " >&6
11234 else
11235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11236 /* end confdefs.h. */
11237 #undef $ac_tr_decl
11238 #define $ac_tr_decl 1
11239
11240 #include "ansidecl.h"
11241 #include "system.h"
11242 #include <signal.h>
11243
11244
11245 int
11246 main ()
11247 {
11248 #ifndef $ac_func
11249 char *(*pfn) = (char *(*)) $ac_func ;
11250 #endif
11251 ;
11252 return 0;
11253 }
11254 _ACEOF
11255 if ac_fn_cxx_try_compile "$LINENO"; then :
11256 eval "gcc_cv_have_decl_$ac_func=yes"
11257 else
11258 eval "gcc_cv_have_decl_$ac_func=no"
11259 fi
11260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11261 fi
11262
11263 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11265 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11266 #define $ac_tr_decl 1
11267 _ACEOF
11268
11269 else
11270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11271 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11272 #define $ac_tr_decl 0
11273 _ACEOF
11274
11275 fi
11276
11277 done
11278
11279
11280 # More time-related stuff.
11281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
11282 $as_echo_n "checking for struct tms... " >&6; }
11283 if test "${ac_cv_struct_tms+set}" = set; then :
11284 $as_echo_n "(cached) " >&6
11285 else
11286
11287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11288 /* end confdefs.h. */
11289
11290 #include "ansidecl.h"
11291 #include "system.h"
11292 #ifdef HAVE_SYS_TIMES_H
11293 #include <sys/times.h>
11294 #endif
11295
11296 int
11297 main ()
11298 {
11299 struct tms tms;
11300 ;
11301 return 0;
11302 }
11303 _ACEOF
11304 if ac_fn_cxx_try_compile "$LINENO"; then :
11305 ac_cv_struct_tms=yes
11306 else
11307 ac_cv_struct_tms=no
11308 fi
11309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11310 fi
11311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
11312 $as_echo "$ac_cv_struct_tms" >&6; }
11313 if test $ac_cv_struct_tms = yes; then
11314
11315 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
11316
11317 fi
11318
11319 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
11320 # revisit after autoconf 2.50.
11321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
11322 $as_echo_n "checking for clock_t... " >&6; }
11323 if test "${gcc_cv_type_clock_t+set}" = set; then :
11324 $as_echo_n "(cached) " >&6
11325 else
11326
11327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11328 /* end confdefs.h. */
11329
11330 #include "ansidecl.h"
11331 #include "system.h"
11332
11333 int
11334 main ()
11335 {
11336 clock_t x;
11337 ;
11338 return 0;
11339 }
11340 _ACEOF
11341 if ac_fn_cxx_try_compile "$LINENO"; then :
11342 gcc_cv_type_clock_t=yes
11343 else
11344 gcc_cv_type_clock_t=no
11345 fi
11346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11347 fi
11348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
11349 $as_echo "$gcc_cv_type_clock_t" >&6; }
11350 if test $gcc_cv_type_clock_t = yes; then
11351
11352 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
11353
11354 fi
11355
11356 # Check if F_SETLKW is supported by fcntl.
11357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
11358 $as_echo_n "checking for F_SETLKW... " >&6; }
11359 if test "${ac_cv_f_setlkw+set}" = set; then :
11360 $as_echo_n "(cached) " >&6
11361 else
11362
11363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11364 /* end confdefs.h. */
11365
11366 #include <fcntl.h>
11367 int
11368 main ()
11369 {
11370
11371 struct flock fl;
11372 fl.l_whence = 0;
11373 fl.l_start = 0;
11374 fl.l_len = 0;
11375 fl.l_pid = 0;
11376 return fcntl (1, F_SETLKW, &fl);
11377 ;
11378 return 0;
11379 }
11380 _ACEOF
11381 if ac_fn_cxx_try_compile "$LINENO"; then :
11382 ac_cv_f_setlkw=yes
11383 else
11384 ac_cv_f_setlkw=no
11385 fi
11386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11387 fi
11388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
11389 $as_echo "$ac_cv_f_setlkw" >&6; }
11390 if test $ac_cv_f_setlkw = yes; then
11391
11392 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
11393
11394 fi
11395
11396 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
11397 CFLAGS="$saved_CFLAGS"
11398 CXXFLAGS="$saved_CXXFLAGS"
11399
11400 # mkdir takes a single argument on some systems.
11401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
11402 $as_echo_n "checking if mkdir takes one argument... " >&6; }
11403 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
11404 $as_echo_n "(cached) " >&6
11405 else
11406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11407 /* end confdefs.h. */
11408
11409 #include <sys/types.h>
11410 #ifdef HAVE_SYS_STAT_H
11411 # include <sys/stat.h>
11412 #endif
11413 #ifdef HAVE_UNISTD_H
11414 # include <unistd.h>
11415 #endif
11416 #ifdef HAVE_DIRECT_H
11417 # include <direct.h>
11418 #endif
11419 int
11420 main ()
11421 {
11422 mkdir ("foo", 0);
11423 ;
11424 return 0;
11425 }
11426 _ACEOF
11427 if ac_fn_cxx_try_compile "$LINENO"; then :
11428 gcc_cv_mkdir_takes_one_arg=no
11429 else
11430 gcc_cv_mkdir_takes_one_arg=yes
11431 fi
11432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11433 fi
11434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
11435 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
11436 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
11437
11438 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
11439
11440 fi
11441
11442
11443 # File extensions
11444 manext='.1'
11445 objext='.o'
11446
11447
11448
11449 # With Setjmp/Longjmp based exception handling.
11450 # Check whether --enable-sjlj-exceptions was given.
11451 if test "${enable_sjlj_exceptions+set}" = set; then :
11452 enableval=$enable_sjlj_exceptions; case $target in
11453 *-*-hpux10*)
11454 if test $enableval != yes; then
11455 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
11456 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
11457 enableval=yes
11458 fi
11459 ;;
11460 esac
11461 force_sjlj_exceptions=yes
11462 else
11463 case $target in
11464 *-*-hpux10*)
11465 force_sjlj_exceptions=yes
11466 enableval=yes
11467 ;;
11468 lm32*-*-*)
11469 force_sjlj_exceptions=yes
11470 enableval=yes
11471 ;;
11472 *)
11473 force_sjlj_exceptions=no
11474 ;;
11475 esac
11476 fi
11477
11478 if test $force_sjlj_exceptions = yes; then
11479 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
11480
11481 cat >>confdefs.h <<_ACEOF
11482 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
11483 _ACEOF
11484
11485 fi
11486
11487 # --------------------------------------------------------
11488 # Build, host, and target specific configuration fragments
11489 # --------------------------------------------------------
11490
11491 # Collect build-machine-specific information.
11492 . ${srcdir}/config.build
11493
11494 # Collect host-machine-specific information.
11495 . ${srcdir}/config.host
11496
11497 target_gtfiles=
11498
11499 # Collect target-machine-specific information.
11500 . ${srcdir}/config.gcc
11501
11502 extra_objs="${host_extra_objs} ${extra_objs}"
11503 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
11504
11505 # Default the target-machine variables that were not explicitly set.
11506 if test x"$tm_file" = x
11507 then tm_file=$cpu_type/$cpu_type.h; fi
11508
11509 if test x"$extra_headers" = x
11510 then extra_headers=; fi
11511
11512 if test x$md_file = x
11513 then md_file=$cpu_type/$cpu_type.md; fi
11514
11515 if test x$out_file = x
11516 then out_file=$cpu_type/$cpu_type.c; fi
11517
11518 if test x"$tmake_file" = x
11519 then tmake_file=$cpu_type/t-$cpu_type
11520 fi
11521
11522 # Support --enable-initfini-array.
11523 if test x$enable_initfini_array != xno; then
11524 tm_file="${tm_file} initfini-array.h"
11525 fi
11526
11527 if test x"$dwarf2" = xyes
11528 then tm_file="$tm_file tm-dwarf2.h"
11529 fi
11530
11531 # Say what files are being used for the output code and MD file.
11532 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11533 echo "Using \`$srcdir/config/$md_file' as machine description file."
11534
11535 # If any of the xm_file variables contain nonexistent files, warn
11536 # about them and drop them.
11537
11538 bx=
11539 for x in $build_xm_file; do
11540 if test -f $srcdir/config/$x
11541 then bx="$bx $x"
11542 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11543 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11544 fi
11545 done
11546 build_xm_file="$bx"
11547
11548 hx=
11549 for x in $host_xm_file; do
11550 if test -f $srcdir/config/$x
11551 then hx="$hx $x"
11552 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11553 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11554 fi
11555 done
11556 host_xm_file="$hx"
11557
11558 tx=
11559 for x in $xm_file; do
11560 if test -f $srcdir/config/$x
11561 then tx="$tx $x"
11562 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11563 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11564 fi
11565 done
11566 xm_file="$tx"
11567
11568 count=a
11569 for f in $tm_file; do
11570 count=${count}x
11571 done
11572 if test $count = ax; then
11573 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11574 else
11575 echo "Using the following target machine macro files:"
11576 for f in $tm_file; do
11577 echo " $srcdir/config/$f"
11578 done
11579 fi
11580
11581 if test x$use_long_long_for_widest_fast_int = xyes; then
11582
11583 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
11584
11585 fi
11586
11587 gnu_ld_bool=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
11588
11589 cat >>confdefs.h <<_ACEOF
11590 #define HAVE_GNU_LD $gnu_ld_bool
11591 _ACEOF
11592
11593
11594 gnu_as_bool=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
11595
11596 cat >>confdefs.h <<_ACEOF
11597 #define HAVE_GNU_AS $gnu_as_bool
11598 _ACEOF
11599
11600
11601 count=a
11602 for f in $host_xm_file; do
11603 count=${count}x
11604 done
11605 if test $count = a; then
11606 :
11607 elif test $count = ax; then
11608 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11609 else
11610 echo "Using the following host machine macro files:"
11611 for f in $host_xm_file; do
11612 echo " $srcdir/config/$f"
11613 done
11614 fi
11615 echo "Using ${out_host_hook_obj} for host machine hooks."
11616
11617 if test "$host_xm_file" != "$build_xm_file"; then
11618 count=a
11619 for f in $build_xm_file; do
11620 count=${count}x
11621 done
11622 if test $count = a; then
11623 :
11624 elif test $count = ax; then
11625 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11626 else
11627 echo "Using the following build machine macro files:"
11628 for f in $build_xm_file; do
11629 echo " $srcdir/config/$f"
11630 done
11631 fi
11632 fi
11633
11634 if test -n "$configured_native_system_header_dir"; then
11635 native_system_header_dir=$configured_native_system_header_dir
11636 fi
11637 NATIVE_SYSTEM_HEADER_DIR="$native_system_header_dir"
11638
11639
11640 case ${host} in
11641 powerpc*-*-darwin*)
11642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
11643 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
11644 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
11645 $as_echo_n "(cached) " >&6
11646 else
11647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11648 /* end confdefs.h. */
11649
11650 #include <sys/cdefs.h>
11651 #include <sys/signal.h>
11652 #include <ucontext.h>
11653 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
11654
11655 _ACEOF
11656 if ac_fn_cxx_try_compile "$LINENO"; then :
11657 gcc_cv_mcontext_underscores=no
11658 else
11659 gcc_cv_mcontext_underscores=yes
11660 fi
11661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11662 fi
11663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
11664 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
11665 if test $gcc_cv_mcontext_underscores = yes; then
11666
11667 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
11668
11669 fi
11670 ;;
11671 esac
11672
11673 # ---------
11674 # Threading
11675 # ---------
11676
11677 # Check if a valid thread package
11678 case ${enable_threads} in
11679 "" | no)
11680 # No threads
11681 target_thread_file='single'
11682 ;;
11683 yes)
11684 # default
11685 target_thread_file='single'
11686 ;;
11687 aix | dce | lynx | mipssde | posix | rtems | \
11688 single | tpf | vxworks | win32)
11689 target_thread_file=${enable_threads}
11690 ;;
11691 *)
11692 echo "${enable_threads} is an unknown thread package" 1>&2
11693 exit 1
11694 ;;
11695 esac
11696
11697 if test x${thread_file} = x; then
11698 # No thread file set by target-specific clauses in config.gcc,
11699 # so use file chosen by default logic above
11700 thread_file=${target_thread_file}
11701 fi
11702
11703 # --------
11704 # UNSORTED
11705 # --------
11706
11707 use_cxa_atexit=no
11708 if test x$enable___cxa_atexit = xyes || \
11709 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
11710 if test x$host = x$target; then
11711 case $host in
11712 # mingw32 doesn't have __cxa_atexit but uses atexit registration
11713 # keyed to flag_use_cxa_atexit
11714 *-*-mingw32*)
11715 use_cxa_atexit=yes
11716 ;;
11717 powerpc-ibm-aix*)
11718 use_cxa_atexit=yes
11719 ;;
11720 *)
11721 ac_fn_cxx_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
11722 if test "x$ac_cv_func___cxa_atexit" = x""yes; then :
11723 use_cxa_atexit=yes
11724 else
11725 echo "__cxa_atexit can't be enabled on this target"
11726 fi
11727
11728 ;;
11729 esac
11730 else
11731 # We can't check for __cxa_atexit when building a cross, so assume
11732 # it is available
11733 use_cxa_atexit=yes
11734 fi
11735 if test x$use_cxa_atexit = xyes; then
11736
11737 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
11738
11739 fi
11740 fi
11741
11742 # Look for a file containing extra machine modes.
11743 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
11744 extra_modes_file='$(srcdir)'/config/${extra_modes}
11745
11746
11747 cat >>confdefs.h <<_ACEOF
11748 #define EXTRA_MODES_FILE "config/$extra_modes"
11749 _ACEOF
11750
11751 fi
11752
11753 # Convert extra_options into a form suitable for Makefile use.
11754 extra_opt_files=
11755 all_opt_files=
11756 for f in $extra_options; do
11757 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
11758 all_opt_files="$all_opt_files $srcdir/config/$f"
11759 done
11760
11761
11762 # auto-host.h is the file containing items generated by autoconf and is
11763 # the first file included by config.h.
11764 # If host=build, it is correct to have bconfig include auto-host.h
11765 # as well. If host!=build, we are in error and need to do more
11766 # work to find out the build config parameters.
11767 if test x$host = x$build
11768 then
11769 build_auto=auto-host.h
11770 else
11771 # We create a subdir, then run autoconf in the subdir.
11772 # To prevent recursion we set host and build for the new
11773 # invocation of configure to the build for this invocation
11774 # of configure.
11775 tempdir=build.$$
11776 rm -rf $tempdir
11777 mkdir $tempdir
11778 cd $tempdir
11779 case ${srcdir} in
11780 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
11781 *) realsrcdir=../${srcdir};;
11782 esac
11783 # Clearing GMPINC is necessary to prevent host headers being
11784 # used by the build compiler. Defining GENERATOR_FILE stops
11785 # system.h from including gmp.h.
11786 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
11787 CXX="${CXX_FOR_BUILD}" CXXFLAGS="${CXXFLAGS_FOR_BUILD}" \
11788 LD="${LD_FOR_BUILD}" LDFLAGS="${LDFLAGS_FOR_BUILD}" \
11789 GMPINC="" CPPFLAGS="${CPPFLAGS} -DGENERATOR_FILE" \
11790 ${realsrcdir}/configure \
11791 --enable-languages=${enable_languages-all} \
11792 --target=$target_alias --host=$build_alias --build=$build_alias
11793
11794 # We just finished tests for the build machine, so rename
11795 # the file auto-build.h in the gcc directory.
11796 mv auto-host.h ../auto-build.h
11797 cd ..
11798 rm -rf $tempdir
11799 build_auto=auto-build.h
11800 fi
11801
11802
11803 tm_file="${tm_file} defaults.h"
11804 tm_p_file="${tm_p_file} tm-preds.h"
11805 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
11806 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
11807 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
11808 # put this back in temporarily.
11809 xm_file="auto-host.h ansidecl.h ${xm_file}"
11810
11811 # --------
11812 # UNSORTED
11813 # --------
11814
11815 # Compile in configure arguments.
11816 if test -f configargs.h ; then
11817 # Being re-configured.
11818 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
11819 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
11820 else
11821 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
11822 fi
11823
11824 # Double all backslashes and backslash all quotes to turn
11825 # gcc_config_arguments into a C string.
11826 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
11827 $gcc_config_arguments
11828 EOF
11829 gcc_config_arguments_str=`cat conftest.out`
11830 rm -f conftest.out
11831
11832 cat > configargs.h <<EOF
11833 /* Generated automatically. */
11834 static const char configuration_arguments[] = "$gcc_config_arguments_str";
11835 static const char thread_model[] = "$thread_file";
11836
11837 static const struct {
11838 const char *name, *value;
11839 } configure_default_options[] = $configure_default_options;
11840 EOF
11841
11842 gcc_BASEVER=`cat $srcdir/BASE-VER`
11843 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
11844 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
11845 if test -f $srcdir/REVISION ; then
11846 gcc_REVISION=`cat $srcdir/REVISION`
11847 else
11848 gcc_REVISION=""
11849 fi
11850 cat > plugin-version.h <<EOF
11851 #include "configargs.h"
11852
11853 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
11854 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
11855 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
11856 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
11857
11858 static char basever[] = "$gcc_BASEVER";
11859 static char datestamp[] = "$gcc_DATESTAMP";
11860 static char devphase[] = "$gcc_DEVPHASE";
11861 static char revision[] = "$gcc_REVISION";
11862
11863 /* FIXME plugins: We should make the version information more precise.
11864 One way to do is to add a checksum. */
11865
11866 static struct plugin_gcc_version gcc_version = {basever, datestamp,
11867 devphase, revision,
11868 configuration_arguments};
11869 EOF
11870
11871 # Determine what GCC version number to use in filesystem paths.
11872
11873 get_gcc_base_ver="cat"
11874
11875 # Check whether --with-gcc-major-version-only was given.
11876 if test "${with_gcc_major_version_only+set}" = set; then :
11877 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
11878 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*\$\$/\1/'"
11879 fi
11880
11881 fi
11882
11883
11884
11885
11886 # Internationalization
11887 # If we haven't got the data from the intl directory,
11888 # assume NLS is disabled.
11889 USE_NLS=no
11890 LIBINTL=
11891 LIBINTL_DEP=
11892 INCINTL=
11893 XGETTEXT=
11894 GMSGFMT=
11895 POSUB=
11896
11897 if test -f ../intl/config.intl; then
11898 . ../intl/config.intl
11899 fi
11900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11901 $as_echo_n "checking whether NLS is requested... " >&6; }
11902 if test x"$USE_NLS" != xyes; then
11903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11904 $as_echo "no" >&6; }
11905 else
11906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11907 $as_echo "yes" >&6; }
11908
11909 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11910
11911
11912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11913 $as_echo_n "checking for catalogs to be installed... " >&6; }
11914 # Look for .po and .gmo files in the source directory.
11915 CATALOGS=
11916 XLINGUAS=
11917 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
11918 # If there aren't any .gmo files the shell will give us the
11919 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11920 # weeded out.
11921 case "$cat" in *\**)
11922 continue;;
11923 esac
11924 # The quadruple backslash is collapsed to a double backslash
11925 # by the backticks, then collapsed again by the double quotes,
11926 # leaving us with one backslash in the sed expression (right
11927 # before the dot that mustn't act as a wildcard).
11928 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11929 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
11930 # The user is allowed to set LINGUAS to a list of languages to
11931 # install catalogs for. If it's empty that means "all of them."
11932 if test "x$LINGUAS" = x; then
11933 CATALOGS="$CATALOGS $cat"
11934 XLINGUAS="$XLINGUAS $lang"
11935 else
11936 case "$LINGUAS" in *$lang*)
11937 CATALOGS="$CATALOGS $cat"
11938 XLINGUAS="$XLINGUAS $lang"
11939 ;;
11940 esac
11941 fi
11942 done
11943 LINGUAS="$XLINGUAS"
11944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11945 $as_echo "$LINGUAS" >&6; }
11946
11947
11948 DATADIRNAME=share
11949
11950 INSTOBJEXT=.mo
11951
11952 GENCAT=gencat
11953
11954 CATOBJEXT=.gmo
11955
11956 fi
11957
11958 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
11959 # -liconv on the link line twice.
11960 case "$LIBINTL" in *$LIBICONV*)
11961 LIBICONV= ;;
11962 esac
11963
11964 # Check whether --enable-secureplt was given.
11965 if test "${enable_secureplt+set}" = set; then :
11966 enableval=$enable_secureplt;
11967 fi
11968
11969
11970 # Check whether --enable-mingw-wildcard was given.
11971 if test "${enable_mingw_wildcard+set}" = set; then :
11972 enableval=$enable_mingw_wildcard;
11973 else
11974 enable_mingw_wildcard=platform
11975 fi
11976
11977 if test x"$enable_mingw_wildcard" != xplatform ; then :
11978
11979 cat >>confdefs.h <<_ACEOF
11980 #define MINGW_DOWILDCARD $(test x"$enable_mingw_wildcard" = xno; echo $?)
11981 _ACEOF
11982
11983 fi
11984
11985 # Check whether --enable-leading-mingw64-underscores was given.
11986 if test "${enable_leading_mingw64_underscores+set}" = set; then :
11987 enableval=$enable_leading_mingw64_underscores;
11988 fi
11989
11990 if test x"$enable_leading_mingw64_underscores" = xyes ; then :
11991
11992 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
11993
11994 fi
11995
11996 # Check whether --enable-cld was given.
11997 if test "${enable_cld+set}" = set; then :
11998 enableval=$enable_cld;
11999 else
12000 enable_cld=no
12001 fi
12002
12003
12004 # Check whether --enable-frame-pointer was given.
12005 if test "${enable_frame_pointer+set}" = set; then :
12006 enableval=$enable_frame_pointer;
12007 else
12008
12009 case $target_os in
12010 linux* | darwin[8912]*)
12011 # Enable -fomit-frame-pointer by default for Linux and Darwin with
12012 # DWARF2.
12013 enable_frame_pointer=no
12014 ;;
12015 *)
12016 enable_frame_pointer=yes
12017 ;;
12018 esac
12019
12020 fi
12021
12022
12023 # Windows32 Registry support for specifying GCC installation paths.
12024 # Check whether --enable-win32-registry was given.
12025 if test "${enable_win32_registry+set}" = set; then :
12026 enableval=$enable_win32_registry;
12027 fi
12028
12029
12030 case $host_os in
12031 win32 | pe | cygwin* | mingw32*)
12032 if test "x$enable_win32_registry" != xno; then
12033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
12034 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
12035 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
12036 $as_echo_n "(cached) " >&6
12037 else
12038 ac_func_search_save_LIBS=$LIBS
12039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12040 /* end confdefs.h. */
12041
12042 /* Override any GCC internal prototype to avoid an error.
12043 Use char because int might match the return type of a GCC
12044 builtin and then its argument prototype would still apply. */
12045 #ifdef __cplusplus
12046 extern "C"
12047 #endif
12048 char RegOpenKeyExA ();
12049 int
12050 main ()
12051 {
12052 return RegOpenKeyExA ();
12053 ;
12054 return 0;
12055 }
12056 _ACEOF
12057 for ac_lib in '' advapi32; do
12058 if test -z "$ac_lib"; then
12059 ac_res="none required"
12060 else
12061 ac_res=-l$ac_lib
12062 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12063 fi
12064 if ac_fn_cxx_try_link "$LINENO"; then :
12065 ac_cv_search_RegOpenKeyExA=$ac_res
12066 fi
12067 rm -f core conftest.err conftest.$ac_objext \
12068 conftest$ac_exeext
12069 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
12070 break
12071 fi
12072 done
12073 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
12074
12075 else
12076 ac_cv_search_RegOpenKeyExA=no
12077 fi
12078 rm conftest.$ac_ext
12079 LIBS=$ac_func_search_save_LIBS
12080 fi
12081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
12082 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
12083 ac_res=$ac_cv_search_RegOpenKeyExA
12084 if test "$ac_res" != no; then :
12085 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12086
12087 else
12088 enable_win32_registry=no
12089 fi
12090
12091 fi
12092
12093 if test "x$enable_win32_registry" != xno; then
12094
12095 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
12096
12097
12098 if test "x$enable_win32_registry" != xyes \
12099 && test "x$enable_win32_registry" != x; then
12100
12101 cat >>confdefs.h <<_ACEOF
12102 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
12103 _ACEOF
12104
12105 fi
12106 fi
12107 ;;
12108 esac
12109
12110 # Get an absolute path to the GCC top-level source directory
12111 holddir=`${PWDCMD-pwd}`
12112 cd $srcdir
12113 topdir=`${PWDCMD-pwd}`
12114 cd $holddir
12115
12116 # Conditionalize the makefile for this host machine.
12117 xmake_file=
12118 for f in ${host_xmake_file}
12119 do
12120 if test -f ${srcdir}/config/$f
12121 then
12122 xmake_file="${xmake_file} \$(srcdir)/config/$f"
12123 fi
12124 done
12125
12126 # Conditionalize the makefile for this target machine.
12127 tmake_file_=
12128 for f in ${tmake_file}
12129 do
12130 if test -f ${srcdir}/config/$f
12131 then
12132 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
12133 fi
12134 done
12135 tmake_file="${tmake_file_}"
12136
12137 out_object_file=`basename $out_file .c`.o
12138 common_out_object_file=`basename $common_out_file .c`.o
12139
12140 tm_file_list="options.h"
12141 tm_include_list="options.h insn-constants.h"
12142 for f in $tm_file; do
12143 case $f in
12144 ./* )
12145 f=`echo $f | sed 's/^..//'`
12146 tm_file_list="${tm_file_list} $f"
12147 tm_include_list="${tm_include_list} $f"
12148 ;;
12149 defaults.h )
12150 tm_file_list="${tm_file_list} \$(srcdir)/$f"
12151 tm_include_list="${tm_include_list} $f"
12152 ;;
12153 * )
12154 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
12155 tm_include_list="${tm_include_list} config/$f"
12156 ;;
12157 esac
12158 done
12159
12160 tm_p_file_list=
12161 tm_p_include_list=
12162 for f in $tm_p_file; do
12163 case $f in
12164 tm-preds.h )
12165 tm_p_file_list="${tm_p_file_list} $f"
12166 tm_p_include_list="${tm_p_include_list} $f"
12167 ;;
12168 * )
12169 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
12170 tm_p_include_list="${tm_p_include_list} config/$f"
12171 esac
12172 done
12173
12174 xm_file_list=
12175 xm_include_list=
12176 for f in $xm_file; do
12177 case $f in
12178 ansidecl.h )
12179 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
12180 xm_include_list="${xm_include_list} $f"
12181 ;;
12182 auto-host.h )
12183 xm_file_list="${xm_file_list} $f"
12184 xm_include_list="${xm_include_list} $f"
12185 ;;
12186 * )
12187 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
12188 xm_include_list="${xm_include_list} config/$f"
12189 ;;
12190 esac
12191 done
12192
12193 host_xm_file_list=
12194 host_xm_include_list=
12195 for f in $host_xm_file; do
12196 case $f in
12197 ansidecl.h )
12198 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
12199 host_xm_include_list="${host_xm_include_list} $f"
12200 ;;
12201 auto-host.h )
12202 host_xm_file_list="${host_xm_file_list} $f"
12203 host_xm_include_list="${host_xm_include_list} $f"
12204 ;;
12205 * )
12206 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
12207 host_xm_include_list="${host_xm_include_list} config/$f"
12208 ;;
12209 esac
12210 done
12211
12212 build_xm_file_list=
12213 for f in $build_xm_file; do
12214 case $f in
12215 ansidecl.h )
12216 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
12217 build_xm_include_list="${build_xm_include_list} $f"
12218 ;;
12219 auto-build.h | auto-host.h )
12220 build_xm_file_list="${build_xm_file_list} $f"
12221 build_xm_include_list="${build_xm_include_list} $f"
12222 ;;
12223 * )
12224 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
12225 build_xm_include_list="${build_xm_include_list} config/$f"
12226 ;;
12227 esac
12228 done
12229
12230 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
12231 # cross-compiler which does not use the native headers and libraries.
12232 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
12233 CROSS=
12234 ALL=all.internal
12235 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
12236 BUILD_SYSTEM_HEADER_DIR=$SYSTEM_HEADER_DIR
12237
12238 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x ||
12239 test x$build != x$host || test "x$with_build_sysroot" != x; then
12240 if test "x$with_build_sysroot" != x; then
12241 BUILD_SYSTEM_HEADER_DIR=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
12242 else
12243 BUILD_SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
12244 fi
12245
12246 if test x$host != x$target
12247 then
12248 CROSS="-DCROSS_DIRECTORY_STRUCTURE"
12249 ALL=all.cross
12250 SYSTEM_HEADER_DIR=$BUILD_SYSTEM_HEADER_DIR
12251 elif test "x$TARGET_SYSTEM_ROOT" != x; then
12252 SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
12253 fi
12254
12255 if test "x$with_build_sysroot" != "x"; then
12256 target_header_dir="${with_build_sysroot}${native_system_header_dir}"
12257 elif test "x$with_sysroot" = x; then
12258 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-include"
12259 elif test "x$with_sysroot" = xyes; then
12260 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
12261 else
12262 target_header_dir="${with_sysroot}${native_system_header_dir}"
12263 fi
12264 else
12265 target_header_dir=${native_system_header_dir}
12266 fi
12267
12268 # If this is a cross-compiler that does not
12269 # have its own set of headers then define
12270 # inhibit_libc
12271
12272 # If this is using newlib, without having the headers available now,
12273 # then define inhibit_libc in LIBGCC2_CFLAGS.
12274 # This prevents libgcc2 from containing any code which requires libc
12275 # support.
12276 : ${inhibit_libc=false}
12277 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
12278 test x$with_newlib = xyes ; } &&
12279 { test "x$with_headers" = xno || test ! -f "$target_header_dir/stdio.h"; } ; then
12280 inhibit_libc=true
12281 fi
12282
12283
12284 # When building gcc with a cross-compiler, we need to adjust things so
12285 # that the generator programs are still built with the native compiler.
12286 # Also, we cannot run fixincludes.
12287
12288 # These are the normal (build=host) settings:
12289 CC_FOR_BUILD='$(CC)'
12290 CXX_FOR_BUILD='$(CXX)'
12291 BUILD_CFLAGS='$(ALL_CFLAGS)'
12292 BUILD_CXXFLAGS='$(ALL_CXXFLAGS)'
12293 BUILD_LDFLAGS='$(LDFLAGS)'
12294 STMP_FIXINC=stmp-fixinc
12295
12296 BUILD_NO_PIE_CFLAGS='$(NO_PIE_CFLAGS)'
12297 BUILD_NO_PIE_FLAG='$(NO_PIE_FLAG)'
12298
12299 # And these apply if build != host, or we are generating coverage data
12300 if test x$build != x$host || test "x$coverage_flags" != x
12301 then
12302 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
12303 BUILD_CXXFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CXXFLAGS_FOR_BUILD)'
12304 BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
12305
12306 NO_PIE_CFLAGS_FOR_BUILD=${NO_PIE_CFLAGS_FOR_BUILD-${NO_PIE_CFLAGS}}
12307 NO_PIE_FLAG_FOR_BUILD=${NO_PIE_FLAG_FOR_BUILD-${NO_PIE_FLAG}}
12308 BUILD_NO_PIE_CFLAGS='$(NO_PIE_CFLAGS_FOR_BUILD)'
12309 BUILD_NO_PIE_FLAG='$(NO_PIE_FLAG_FOR_BUILD)'
12310 fi
12311
12312
12313
12314 # Expand extra_headers to include complete path.
12315 # This substitutes for lots of t-* files.
12316 extra_headers_list=
12317 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
12318 for file in ${extra_headers} ; do
12319 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
12320 done
12321
12322 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
12323 if test x"$use_gcc_tgmath" = xyes
12324 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
12325 fi
12326
12327 # Define collect2 in Makefile.
12328 case $host_can_use_collect2 in
12329 no) collect2= ;;
12330 *) collect2='collect2$(exeext)' ;;
12331 esac
12332
12333
12334 # Add a definition of USE_COLLECT2 if system wants one.
12335 case $use_collect2 in
12336 no) use_collect2= ;;
12337 "") ;;
12338 *)
12339 host_xm_defines="${host_xm_defines} USE_COLLECT2"
12340 xm_defines="${xm_defines} USE_COLLECT2"
12341 case $host_can_use_collect2 in
12342 no)
12343 as_fn_error "collect2 is required but cannot be built on this system" "$LINENO" 5
12344 ;;
12345 esac
12346 ;;
12347 esac
12348
12349
12350 cat >>confdefs.h <<_ACEOF
12351 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
12352 _ACEOF
12353
12354
12355 # ---------------------------
12356 # Assembler & linker features
12357 # ---------------------------
12358
12359 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
12360 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
12361 # However when ld-new is first executed from the build tree, libtool will
12362 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
12363 # to the build tree. While doing this we need to use the previous-stage
12364 # linker, or we have an infinite loop. The presence of a shell script as
12365 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
12366 # the gcc/collect-ld script. So we need to know how libtool works, or
12367 # exec-tool will fail.
12368
12369
12370 case `pwd` in
12371 *\ * | *\ *)
12372 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
12373 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
12374 esac
12375
12376
12377
12378 macro_version='2.2.7a'
12379 macro_revision='1.3134'
12380
12381
12382
12383
12384
12385
12386
12387
12388
12389
12390
12391
12392
12393 ltmain="$ac_aux_dir/ltmain.sh"
12394
12395 # Backslashify metacharacters that are still active within
12396 # double-quoted strings.
12397 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
12398
12399 # Same as above, but do not quote variable references.
12400 double_quote_subst='s/\(["`\\]\)/\\\1/g'
12401
12402 # Sed substitution to delay expansion of an escaped shell variable in a
12403 # double_quote_subst'ed string.
12404 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
12405
12406 # Sed substitution to delay expansion of an escaped single quote.
12407 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
12408
12409 # Sed substitution to avoid accidental globbing in evaled expressions
12410 no_glob_subst='s/\*/\\\*/g'
12411
12412 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12413 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
12414 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
12415
12416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
12417 $as_echo_n "checking how to print strings... " >&6; }
12418 # Test print first, because it will be a builtin if present.
12419 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
12420 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
12421 ECHO='print -r --'
12422 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
12423 ECHO='printf %s\n'
12424 else
12425 # Use this function as a fallback that always works.
12426 func_fallback_echo ()
12427 {
12428 eval 'cat <<_LTECHO_EOF
12429 $1
12430 _LTECHO_EOF'
12431 }
12432 ECHO='func_fallback_echo'
12433 fi
12434
12435 # func_echo_all arg...
12436 # Invoke $ECHO with all args, space-separated.
12437 func_echo_all ()
12438 {
12439 $ECHO ""
12440 }
12441
12442 case "$ECHO" in
12443 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
12444 $as_echo "printf" >&6; } ;;
12445 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
12446 $as_echo "print -r" >&6; } ;;
12447 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
12448 $as_echo "cat" >&6; } ;;
12449 esac
12450
12451
12452
12453
12454
12455
12456
12457
12458
12459
12460
12461
12462
12463
12464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12465 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12466 if test "${ac_cv_path_SED+set}" = set; then :
12467 $as_echo_n "(cached) " >&6
12468 else
12469 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12470 for ac_i in 1 2 3 4 5 6 7; do
12471 ac_script="$ac_script$as_nl$ac_script"
12472 done
12473 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12474 { ac_script=; unset ac_script;}
12475 if test -z "$SED"; then
12476 ac_path_SED_found=false
12477 # Loop through the user's path and test for each of PROGNAME-LIST
12478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12479 for as_dir in $PATH
12480 do
12481 IFS=$as_save_IFS
12482 test -z "$as_dir" && as_dir=.
12483 for ac_prog in sed gsed; do
12484 for ac_exec_ext in '' $ac_executable_extensions; do
12485 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
12486 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
12487 # Check for GNU ac_path_SED and select it if it is found.
12488 # Check for GNU $ac_path_SED
12489 case `"$ac_path_SED" --version 2>&1` in
12490 *GNU*)
12491 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
12492 *)
12493 ac_count=0
12494 $as_echo_n 0123456789 >"conftest.in"
12495 while :
12496 do
12497 cat "conftest.in" "conftest.in" >"conftest.tmp"
12498 mv "conftest.tmp" "conftest.in"
12499 cp "conftest.in" "conftest.nl"
12500 $as_echo '' >> "conftest.nl"
12501 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
12502 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12503 as_fn_arith $ac_count + 1 && ac_count=$as_val
12504 if test $ac_count -gt ${ac_path_SED_max-0}; then
12505 # Best one so far, save it but keep looking for a better one
12506 ac_cv_path_SED="$ac_path_SED"
12507 ac_path_SED_max=$ac_count
12508 fi
12509 # 10*(2^10) chars as input seems more than enough
12510 test $ac_count -gt 10 && break
12511 done
12512 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12513 esac
12514
12515 $ac_path_SED_found && break 3
12516 done
12517 done
12518 done
12519 IFS=$as_save_IFS
12520 if test -z "$ac_cv_path_SED"; then
12521 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
12522 fi
12523 else
12524 ac_cv_path_SED=$SED
12525 fi
12526
12527 fi
12528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12529 $as_echo "$ac_cv_path_SED" >&6; }
12530 SED="$ac_cv_path_SED"
12531 rm -f conftest.sed
12532
12533 test -z "$SED" && SED=sed
12534 Xsed="$SED -e 1s/^X//"
12535
12536
12537
12538
12539
12540
12541
12542
12543
12544
12545
12546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12547 $as_echo_n "checking for fgrep... " >&6; }
12548 if test "${ac_cv_path_FGREP+set}" = set; then :
12549 $as_echo_n "(cached) " >&6
12550 else
12551 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
12552 then ac_cv_path_FGREP="$GREP -F"
12553 else
12554 if test -z "$FGREP"; then
12555 ac_path_FGREP_found=false
12556 # Loop through the user's path and test for each of PROGNAME-LIST
12557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12558 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12559 do
12560 IFS=$as_save_IFS
12561 test -z "$as_dir" && as_dir=.
12562 for ac_prog in fgrep; do
12563 for ac_exec_ext in '' $ac_executable_extensions; do
12564 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
12565 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
12566 # Check for GNU ac_path_FGREP and select it if it is found.
12567 # Check for GNU $ac_path_FGREP
12568 case `"$ac_path_FGREP" --version 2>&1` in
12569 *GNU*)
12570 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
12571 *)
12572 ac_count=0
12573 $as_echo_n 0123456789 >"conftest.in"
12574 while :
12575 do
12576 cat "conftest.in" "conftest.in" >"conftest.tmp"
12577 mv "conftest.tmp" "conftest.in"
12578 cp "conftest.in" "conftest.nl"
12579 $as_echo 'FGREP' >> "conftest.nl"
12580 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
12581 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12582 as_fn_arith $ac_count + 1 && ac_count=$as_val
12583 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12584 # Best one so far, save it but keep looking for a better one
12585 ac_cv_path_FGREP="$ac_path_FGREP"
12586 ac_path_FGREP_max=$ac_count
12587 fi
12588 # 10*(2^10) chars as input seems more than enough
12589 test $ac_count -gt 10 && break
12590 done
12591 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12592 esac
12593
12594 $ac_path_FGREP_found && break 3
12595 done
12596 done
12597 done
12598 IFS=$as_save_IFS
12599 if test -z "$ac_cv_path_FGREP"; then
12600 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12601 fi
12602 else
12603 ac_cv_path_FGREP=$FGREP
12604 fi
12605
12606 fi
12607 fi
12608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12609 $as_echo "$ac_cv_path_FGREP" >&6; }
12610 FGREP="$ac_cv_path_FGREP"
12611
12612
12613 test -z "$GREP" && GREP=grep
12614
12615
12616
12617
12618
12619
12620
12621
12622
12623
12624
12625
12626
12627
12628
12629
12630
12631
12632
12633 # Check whether --with-gnu-ld was given.
12634 if test "${with_gnu_ld+set}" = set; then :
12635 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12636 else
12637 with_gnu_ld=no
12638 fi
12639
12640 ac_prog=ld
12641 if test "$GCC" = yes; then
12642 # Check if gcc -print-prog-name=ld gives a path.
12643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12644 $as_echo_n "checking for ld used by $CC... " >&6; }
12645 case $host in
12646 *-*-mingw*)
12647 # gcc leaves a trailing carriage return which upsets mingw
12648 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12649 *)
12650 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12651 esac
12652 case $ac_prog in
12653 # Accept absolute paths.
12654 [\\/]* | ?:[\\/]*)
12655 re_direlt='/[^/][^/]*/\.\./'
12656 # Canonicalize the pathname of ld
12657 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12658 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12659 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12660 done
12661 test -z "$LD" && LD="$ac_prog"
12662 ;;
12663 "")
12664 # If it fails, then pretend we aren't using GCC.
12665 ac_prog=ld
12666 ;;
12667 *)
12668 # If it is relative, then search for the first ld in PATH.
12669 with_gnu_ld=unknown
12670 ;;
12671 esac
12672 elif test "$with_gnu_ld" = yes; then
12673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12674 $as_echo_n "checking for GNU ld... " >&6; }
12675 else
12676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12677 $as_echo_n "checking for non-GNU ld... " >&6; }
12678 fi
12679 if test "${lt_cv_path_LD+set}" = set; then :
12680 $as_echo_n "(cached) " >&6
12681 else
12682 if test -z "$LD"; then
12683 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12684 for ac_dir in $PATH; do
12685 IFS="$lt_save_ifs"
12686 test -z "$ac_dir" && ac_dir=.
12687 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12688 lt_cv_path_LD="$ac_dir/$ac_prog"
12689 # Check to see if the program is GNU ld. I'd rather use --version,
12690 # but apparently some variants of GNU ld only accept -v.
12691 # Break only if it was the GNU/non-GNU ld that we prefer.
12692 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12693 *GNU* | *'with BFD'*)
12694 test "$with_gnu_ld" != no && break
12695 ;;
12696 *)
12697 test "$with_gnu_ld" != yes && break
12698 ;;
12699 esac
12700 fi
12701 done
12702 IFS="$lt_save_ifs"
12703 else
12704 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12705 fi
12706 fi
12707
12708 LD="$lt_cv_path_LD"
12709 if test -n "$LD"; then
12710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12711 $as_echo "$LD" >&6; }
12712 else
12713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12714 $as_echo "no" >&6; }
12715 fi
12716 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12718 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12719 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12720 $as_echo_n "(cached) " >&6
12721 else
12722 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12723 case `$LD -v 2>&1 </dev/null` in
12724 *GNU* | *'with BFD'*)
12725 lt_cv_prog_gnu_ld=yes
12726 ;;
12727 *)
12728 lt_cv_prog_gnu_ld=no
12729 ;;
12730 esac
12731 fi
12732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12733 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12734 with_gnu_ld=$lt_cv_prog_gnu_ld
12735
12736
12737
12738
12739
12740
12741
12742
12743
12744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12745 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12746 if test "${lt_cv_path_NM+set}" = set; then :
12747 $as_echo_n "(cached) " >&6
12748 else
12749 if test -n "$NM"; then
12750 # Let the user override the test.
12751 lt_cv_path_NM="$NM"
12752 else
12753 lt_nm_to_check="${ac_tool_prefix}nm"
12754 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12755 lt_nm_to_check="$lt_nm_to_check nm"
12756 fi
12757 for lt_tmp_nm in $lt_nm_to_check; do
12758 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12759 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
12760 IFS="$lt_save_ifs"
12761 test -z "$ac_dir" && ac_dir=.
12762 tmp_nm="$ac_dir/$lt_tmp_nm"
12763 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
12764 # Check to see if the nm accepts a BSD-compat flag.
12765 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12766 # nm: unknown option "B" ignored
12767 # Tru64's nm complains that /dev/null is an invalid object file
12768 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12769 */dev/null* | *'Invalid file or object type'*)
12770 lt_cv_path_NM="$tmp_nm -B"
12771 break
12772 ;;
12773 *)
12774 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12775 */dev/null*)
12776 lt_cv_path_NM="$tmp_nm -p"
12777 break
12778 ;;
12779 *)
12780 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12781 continue # so that we can try to find one that supports BSD flags
12782 ;;
12783 esac
12784 ;;
12785 esac
12786 fi
12787 done
12788 IFS="$lt_save_ifs"
12789 done
12790 : ${lt_cv_path_NM=no}
12791 fi
12792 fi
12793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
12794 $as_echo "$lt_cv_path_NM" >&6; }
12795 if test "$lt_cv_path_NM" != "no"; then
12796 NM="$lt_cv_path_NM"
12797 else
12798 # Didn't find any BSD compatible name lister, look for dumpbin.
12799 if test -n "$DUMPBIN"; then :
12800 # Let the user override the test.
12801 else
12802 if test -n "$ac_tool_prefix"; then
12803 for ac_prog in dumpbin "link -dump"
12804 do
12805 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12806 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12808 $as_echo_n "checking for $ac_word... " >&6; }
12809 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
12810 $as_echo_n "(cached) " >&6
12811 else
12812 if test -n "$DUMPBIN"; then
12813 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
12814 else
12815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12816 for as_dir in $PATH
12817 do
12818 IFS=$as_save_IFS
12819 test -z "$as_dir" && as_dir=.
12820 for ac_exec_ext in '' $ac_executable_extensions; do
12821 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12822 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
12823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12824 break 2
12825 fi
12826 done
12827 done
12828 IFS=$as_save_IFS
12829
12830 fi
12831 fi
12832 DUMPBIN=$ac_cv_prog_DUMPBIN
12833 if test -n "$DUMPBIN"; then
12834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12835 $as_echo "$DUMPBIN" >&6; }
12836 else
12837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12838 $as_echo "no" >&6; }
12839 fi
12840
12841
12842 test -n "$DUMPBIN" && break
12843 done
12844 fi
12845 if test -z "$DUMPBIN"; then
12846 ac_ct_DUMPBIN=$DUMPBIN
12847 for ac_prog in dumpbin "link -dump"
12848 do
12849 # Extract the first word of "$ac_prog", so it can be a program name with args.
12850 set dummy $ac_prog; ac_word=$2
12851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12852 $as_echo_n "checking for $ac_word... " >&6; }
12853 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
12854 $as_echo_n "(cached) " >&6
12855 else
12856 if test -n "$ac_ct_DUMPBIN"; then
12857 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
12858 else
12859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12860 for as_dir in $PATH
12861 do
12862 IFS=$as_save_IFS
12863 test -z "$as_dir" && as_dir=.
12864 for ac_exec_ext in '' $ac_executable_extensions; do
12865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12866 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
12867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12868 break 2
12869 fi
12870 done
12871 done
12872 IFS=$as_save_IFS
12873
12874 fi
12875 fi
12876 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
12877 if test -n "$ac_ct_DUMPBIN"; then
12878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12879 $as_echo "$ac_ct_DUMPBIN" >&6; }
12880 else
12881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12882 $as_echo "no" >&6; }
12883 fi
12884
12885
12886 test -n "$ac_ct_DUMPBIN" && break
12887 done
12888
12889 if test "x$ac_ct_DUMPBIN" = x; then
12890 DUMPBIN=":"
12891 else
12892 case $cross_compiling:$ac_tool_warned in
12893 yes:)
12894 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12895 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12896 ac_tool_warned=yes ;;
12897 esac
12898 DUMPBIN=$ac_ct_DUMPBIN
12899 fi
12900 fi
12901
12902 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
12903 *COFF*)
12904 DUMPBIN="$DUMPBIN -symbols"
12905 ;;
12906 *)
12907 DUMPBIN=:
12908 ;;
12909 esac
12910 fi
12911
12912 if test "$DUMPBIN" != ":"; then
12913 NM="$DUMPBIN"
12914 fi
12915 fi
12916 test -z "$NM" && NM=nm
12917
12918
12919
12920
12921
12922
12923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12924 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
12925 if test "${lt_cv_nm_interface+set}" = set; then :
12926 $as_echo_n "(cached) " >&6
12927 else
12928 lt_cv_nm_interface="BSD nm"
12929 echo "int some_variable = 0;" > conftest.$ac_ext
12930 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12931 (eval "$ac_compile" 2>conftest.err)
12932 cat conftest.err >&5
12933 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12934 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
12935 cat conftest.err >&5
12936 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12937 cat conftest.out >&5
12938 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
12939 lt_cv_nm_interface="MS dumpbin"
12940 fi
12941 rm -f conftest*
12942 fi
12943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12944 $as_echo "$lt_cv_nm_interface" >&6; }
12945
12946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12947 $as_echo_n "checking whether ln -s works... " >&6; }
12948 LN_S=$as_ln_s
12949 if test "$LN_S" = "ln -s"; then
12950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12951 $as_echo "yes" >&6; }
12952 else
12953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12954 $as_echo "no, using $LN_S" >&6; }
12955 fi
12956
12957 # find the maximum length of command line arguments
12958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12959 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
12960 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
12961 $as_echo_n "(cached) " >&6
12962 else
12963 i=0
12964 teststring="ABCD"
12965
12966 case $build_os in
12967 msdosdjgpp*)
12968 # On DJGPP, this test can blow up pretty badly due to problems in libc
12969 # (any single argument exceeding 2000 bytes causes a buffer overrun
12970 # during glob expansion). Even if it were fixed, the result of this
12971 # check would be larger than it should be.
12972 lt_cv_sys_max_cmd_len=12288; # 12K is about right
12973 ;;
12974
12975 gnu*)
12976 # Under GNU Hurd, this test is not required because there is
12977 # no limit to the length of command line arguments.
12978 # Libtool will interpret -1 as no limit whatsoever
12979 lt_cv_sys_max_cmd_len=-1;
12980 ;;
12981
12982 cygwin* | mingw* | cegcc*)
12983 # On Win9x/ME, this test blows up -- it succeeds, but takes
12984 # about 5 minutes as the teststring grows exponentially.
12985 # Worse, since 9x/ME are not pre-emptively multitasking,
12986 # you end up with a "frozen" computer, even though with patience
12987 # the test eventually succeeds (with a max line length of 256k).
12988 # Instead, let's just punt: use the minimum linelength reported by
12989 # all of the supported platforms: 8192 (on NT/2K/XP).
12990 lt_cv_sys_max_cmd_len=8192;
12991 ;;
12992
12993 mint*)
12994 # On MiNT this can take a long time and run out of memory.
12995 lt_cv_sys_max_cmd_len=8192;
12996 ;;
12997
12998 amigaos*)
12999 # On AmigaOS with pdksh, this test takes hours, literally.
13000 # So we just punt and use a minimum line length of 8192.
13001 lt_cv_sys_max_cmd_len=8192;
13002 ;;
13003
13004 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
13005 # This has been around since 386BSD, at least. Likely further.
13006 if test -x /sbin/sysctl; then
13007 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13008 elif test -x /usr/sbin/sysctl; then
13009 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13010 else
13011 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
13012 fi
13013 # And add a safety zone
13014 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13015 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13016 ;;
13017
13018 interix*)
13019 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13020 lt_cv_sys_max_cmd_len=196608
13021 ;;
13022
13023 osf*)
13024 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13025 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13026 # nice to cause kernel panics so lets avoid the loop below.
13027 # First set a reasonable default.
13028 lt_cv_sys_max_cmd_len=16384
13029 #
13030 if test -x /sbin/sysconfig; then
13031 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13032 *1*) lt_cv_sys_max_cmd_len=-1 ;;
13033 esac
13034 fi
13035 ;;
13036 sco3.2v5*)
13037 lt_cv_sys_max_cmd_len=102400
13038 ;;
13039 sysv5* | sco5v6* | sysv4.2uw2*)
13040 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13041 if test -n "$kargmax"; then
13042 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
13043 else
13044 lt_cv_sys_max_cmd_len=32768
13045 fi
13046 ;;
13047 *)
13048 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
13049 if test -n "$lt_cv_sys_max_cmd_len"; then
13050 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13051 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13052 else
13053 # Make teststring a little bigger before we do anything with it.
13054 # a 1K string should be a reasonable start.
13055 for i in 1 2 3 4 5 6 7 8 ; do
13056 teststring=$teststring$teststring
13057 done
13058 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13059 # If test is not a shell built-in, we'll probably end up computing a
13060 # maximum length that is only half of the actual maximum length, but
13061 # we can't tell.
13062 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
13063 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
13064 test $i != 17 # 1/2 MB should be enough
13065 do
13066 i=`expr $i + 1`
13067 teststring=$teststring$teststring
13068 done
13069 # Only check the string length outside the loop.
13070 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
13071 teststring=
13072 # Add a significant safety factor because C++ compilers can tack on
13073 # massive amounts of additional arguments before passing them to the
13074 # linker. It appears as though 1/2 is a usable value.
13075 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13076 fi
13077 ;;
13078 esac
13079
13080 fi
13081
13082 if test -n $lt_cv_sys_max_cmd_len ; then
13083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
13084 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
13085 else
13086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
13087 $as_echo "none" >&6; }
13088 fi
13089 max_cmd_len=$lt_cv_sys_max_cmd_len
13090
13091
13092
13093
13094
13095
13096 : ${CP="cp -f"}
13097 : ${MV="mv -f"}
13098 : ${RM="rm -f"}
13099
13100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
13101 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
13102 # Try some XSI features
13103 xsi_shell=no
13104 ( _lt_dummy="a/b/c"
13105 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
13106 = c,a/b,, \
13107 && eval 'test $(( 1 + 1 )) -eq 2 \
13108 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
13109 && xsi_shell=yes
13110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
13111 $as_echo "$xsi_shell" >&6; }
13112
13113
13114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
13115 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
13116 lt_shell_append=no
13117 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
13118 >/dev/null 2>&1 \
13119 && lt_shell_append=yes
13120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
13121 $as_echo "$lt_shell_append" >&6; }
13122
13123
13124 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13125 lt_unset=unset
13126 else
13127 lt_unset=false
13128 fi
13129
13130
13131
13132
13133
13134 # test EBCDIC or ASCII
13135 case `echo X|tr X '\101'` in
13136 A) # ASCII based system
13137 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
13138 lt_SP2NL='tr \040 \012'
13139 lt_NL2SP='tr \015\012 \040\040'
13140 ;;
13141 *) # EBCDIC based system
13142 lt_SP2NL='tr \100 \n'
13143 lt_NL2SP='tr \r\n \100\100'
13144 ;;
13145 esac
13146
13147
13148
13149
13150
13151
13152
13153
13154
13155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
13156 $as_echo_n "checking for $LD option to reload object files... " >&6; }
13157 if test "${lt_cv_ld_reload_flag+set}" = set; then :
13158 $as_echo_n "(cached) " >&6
13159 else
13160 lt_cv_ld_reload_flag='-r'
13161 fi
13162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
13163 $as_echo "$lt_cv_ld_reload_flag" >&6; }
13164 reload_flag=$lt_cv_ld_reload_flag
13165 case $reload_flag in
13166 "" | " "*) ;;
13167 *) reload_flag=" $reload_flag" ;;
13168 esac
13169 reload_cmds='$LD$reload_flag -o $output$reload_objs'
13170 case $host_os in
13171 darwin*)
13172 if test "$GCC" = yes; then
13173 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
13174 else
13175 reload_cmds='$LD$reload_flag -o $output$reload_objs'
13176 fi
13177 ;;
13178 esac
13179
13180
13181
13182
13183
13184
13185
13186
13187
13188 if test -n "$ac_tool_prefix"; then
13189 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
13190 set dummy ${ac_tool_prefix}objdump; ac_word=$2
13191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13192 $as_echo_n "checking for $ac_word... " >&6; }
13193 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
13194 $as_echo_n "(cached) " >&6
13195 else
13196 if test -n "$OBJDUMP"; then
13197 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
13198 else
13199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13200 for as_dir in $PATH
13201 do
13202 IFS=$as_save_IFS
13203 test -z "$as_dir" && as_dir=.
13204 for ac_exec_ext in '' $ac_executable_extensions; do
13205 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13206 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
13207 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13208 break 2
13209 fi
13210 done
13211 done
13212 IFS=$as_save_IFS
13213
13214 fi
13215 fi
13216 OBJDUMP=$ac_cv_prog_OBJDUMP
13217 if test -n "$OBJDUMP"; then
13218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
13219 $as_echo "$OBJDUMP" >&6; }
13220 else
13221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13222 $as_echo "no" >&6; }
13223 fi
13224
13225
13226 fi
13227 if test -z "$ac_cv_prog_OBJDUMP"; then
13228 ac_ct_OBJDUMP=$OBJDUMP
13229 # Extract the first word of "objdump", so it can be a program name with args.
13230 set dummy objdump; ac_word=$2
13231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13232 $as_echo_n "checking for $ac_word... " >&6; }
13233 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
13234 $as_echo_n "(cached) " >&6
13235 else
13236 if test -n "$ac_ct_OBJDUMP"; then
13237 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
13238 else
13239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13240 for as_dir in $PATH
13241 do
13242 IFS=$as_save_IFS
13243 test -z "$as_dir" && as_dir=.
13244 for ac_exec_ext in '' $ac_executable_extensions; do
13245 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13246 ac_cv_prog_ac_ct_OBJDUMP="objdump"
13247 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13248 break 2
13249 fi
13250 done
13251 done
13252 IFS=$as_save_IFS
13253
13254 fi
13255 fi
13256 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
13257 if test -n "$ac_ct_OBJDUMP"; then
13258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
13259 $as_echo "$ac_ct_OBJDUMP" >&6; }
13260 else
13261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13262 $as_echo "no" >&6; }
13263 fi
13264
13265 if test "x$ac_ct_OBJDUMP" = x; then
13266 OBJDUMP="false"
13267 else
13268 case $cross_compiling:$ac_tool_warned in
13269 yes:)
13270 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13271 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13272 ac_tool_warned=yes ;;
13273 esac
13274 OBJDUMP=$ac_ct_OBJDUMP
13275 fi
13276 else
13277 OBJDUMP="$ac_cv_prog_OBJDUMP"
13278 fi
13279
13280 test -z "$OBJDUMP" && OBJDUMP=objdump
13281
13282
13283
13284
13285
13286
13287
13288
13289
13290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
13291 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
13292 if test "${lt_cv_deplibs_check_method+set}" = set; then :
13293 $as_echo_n "(cached) " >&6
13294 else
13295 lt_cv_file_magic_cmd='$MAGIC_CMD'
13296 lt_cv_file_magic_test_file=
13297 lt_cv_deplibs_check_method='unknown'
13298 # Need to set the preceding variable on all platforms that support
13299 # interlibrary dependencies.
13300 # 'none' -- dependencies not supported.
13301 # `unknown' -- same as none, but documents that we really don't know.
13302 # 'pass_all' -- all dependencies passed with no checks.
13303 # 'test_compile' -- check by making test program.
13304 # 'file_magic [[regex]]' -- check by looking for files in library path
13305 # which responds to the $file_magic_cmd with a given extended regex.
13306 # If you have `file' or equivalent on your system and you're not sure
13307 # whether `pass_all' will *always* work, you probably want this one.
13308
13309 case $host_os in
13310 aix[4-9]*)
13311 lt_cv_deplibs_check_method=pass_all
13312 ;;
13313
13314 beos*)
13315 lt_cv_deplibs_check_method=pass_all
13316 ;;
13317
13318 bsdi[45]*)
13319 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
13320 lt_cv_file_magic_cmd='/usr/bin/file -L'
13321 lt_cv_file_magic_test_file=/shlib/libc.so
13322 ;;
13323
13324 cygwin*)
13325 # func_win32_libid is a shell function defined in ltmain.sh
13326 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13327 lt_cv_file_magic_cmd='func_win32_libid'
13328 ;;
13329
13330 mingw* | pw32*)
13331 # Base MSYS/MinGW do not provide the 'file' command needed by
13332 # func_win32_libid shell function, so use a weaker test based on 'objdump',
13333 # unless we find 'file', for example because we are cross-compiling.
13334 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
13335 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
13336 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13337 lt_cv_file_magic_cmd='func_win32_libid'
13338 else
13339 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
13340 lt_cv_file_magic_cmd='$OBJDUMP -f'
13341 fi
13342 ;;
13343
13344 cegcc*)
13345 # use the weaker test based on 'objdump'. See mingw*.
13346 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
13347 lt_cv_file_magic_cmd='$OBJDUMP -f'
13348 ;;
13349
13350 darwin* | rhapsody*)
13351 lt_cv_deplibs_check_method=pass_all
13352 ;;
13353
13354 freebsd* | dragonfly*)
13355 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13356 case $host_cpu in
13357 i*86 )
13358 # Not sure whether the presence of OpenBSD here was a mistake.
13359 # Let's accept both of them until this is cleared up.
13360 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
13361 lt_cv_file_magic_cmd=/usr/bin/file
13362 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
13363 ;;
13364 esac
13365 else
13366 lt_cv_deplibs_check_method=pass_all
13367 fi
13368 ;;
13369
13370 gnu*)
13371 lt_cv_deplibs_check_method=pass_all
13372 ;;
13373
13374 haiku*)
13375 lt_cv_deplibs_check_method=pass_all
13376 ;;
13377
13378 hpux10.20* | hpux11*)
13379 lt_cv_file_magic_cmd=/usr/bin/file
13380 case $host_cpu in
13381 ia64*)
13382 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
13383 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
13384 ;;
13385 hppa*64*)
13386 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]'
13387 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
13388 ;;
13389 *)
13390 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
13391 lt_cv_file_magic_test_file=/usr/lib/libc.sl
13392 ;;
13393 esac
13394 ;;
13395
13396 interix[3-9]*)
13397 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
13398 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
13399 ;;
13400
13401 irix5* | irix6* | nonstopux*)
13402 case $LD in
13403 *-32|*"-32 ") libmagic=32-bit;;
13404 *-n32|*"-n32 ") libmagic=N32;;
13405 *-64|*"-64 ") libmagic=64-bit;;
13406 *) libmagic=never-match;;
13407 esac
13408 lt_cv_deplibs_check_method=pass_all
13409 ;;
13410
13411 # This must be Linux ELF.
13412 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13413 lt_cv_deplibs_check_method=pass_all
13414 ;;
13415
13416 netbsd*)
13417 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13418 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13419 else
13420 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
13421 fi
13422 ;;
13423
13424 newos6*)
13425 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
13426 lt_cv_file_magic_cmd=/usr/bin/file
13427 lt_cv_file_magic_test_file=/usr/lib/libnls.so
13428 ;;
13429
13430 *nto* | *qnx*)
13431 lt_cv_deplibs_check_method=pass_all
13432 ;;
13433
13434 openbsd*)
13435 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13436 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
13437 else
13438 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13439 fi
13440 ;;
13441
13442 osf3* | osf4* | osf5*)
13443 lt_cv_deplibs_check_method=pass_all
13444 ;;
13445
13446 rdos*)
13447 lt_cv_deplibs_check_method=pass_all
13448 ;;
13449
13450 solaris*)
13451 lt_cv_deplibs_check_method=pass_all
13452 ;;
13453
13454 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13455 lt_cv_deplibs_check_method=pass_all
13456 ;;
13457
13458 sysv4 | sysv4.3*)
13459 case $host_vendor in
13460 motorola)
13461 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]'
13462 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
13463 ;;
13464 ncr)
13465 lt_cv_deplibs_check_method=pass_all
13466 ;;
13467 sequent)
13468 lt_cv_file_magic_cmd='/bin/file'
13469 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13470 ;;
13471 sni)
13472 lt_cv_file_magic_cmd='/bin/file'
13473 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
13474 lt_cv_file_magic_test_file=/lib/libc.so
13475 ;;
13476 siemens)
13477 lt_cv_deplibs_check_method=pass_all
13478 ;;
13479 pc)
13480 lt_cv_deplibs_check_method=pass_all
13481 ;;
13482 esac
13483 ;;
13484
13485 tpf*)
13486 lt_cv_deplibs_check_method=pass_all
13487 ;;
13488 esac
13489
13490 fi
13491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
13492 $as_echo "$lt_cv_deplibs_check_method" >&6; }
13493 file_magic_cmd=$lt_cv_file_magic_cmd
13494 deplibs_check_method=$lt_cv_deplibs_check_method
13495 test -z "$deplibs_check_method" && deplibs_check_method=unknown
13496
13497
13498
13499
13500
13501
13502
13503
13504
13505
13506
13507
13508 if test -n "$ac_tool_prefix"; then
13509 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13510 set dummy ${ac_tool_prefix}ar; ac_word=$2
13511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13512 $as_echo_n "checking for $ac_word... " >&6; }
13513 if test "${ac_cv_prog_AR+set}" = set; then :
13514 $as_echo_n "(cached) " >&6
13515 else
13516 if test -n "$AR"; then
13517 ac_cv_prog_AR="$AR" # Let the user override the test.
13518 else
13519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13520 for as_dir in $PATH
13521 do
13522 IFS=$as_save_IFS
13523 test -z "$as_dir" && as_dir=.
13524 for ac_exec_ext in '' $ac_executable_extensions; do
13525 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13526 ac_cv_prog_AR="${ac_tool_prefix}ar"
13527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13528 break 2
13529 fi
13530 done
13531 done
13532 IFS=$as_save_IFS
13533
13534 fi
13535 fi
13536 AR=$ac_cv_prog_AR
13537 if test -n "$AR"; then
13538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
13539 $as_echo "$AR" >&6; }
13540 else
13541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13542 $as_echo "no" >&6; }
13543 fi
13544
13545
13546 fi
13547 if test -z "$ac_cv_prog_AR"; then
13548 ac_ct_AR=$AR
13549 # Extract the first word of "ar", so it can be a program name with args.
13550 set dummy ar; ac_word=$2
13551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13552 $as_echo_n "checking for $ac_word... " >&6; }
13553 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
13554 $as_echo_n "(cached) " >&6
13555 else
13556 if test -n "$ac_ct_AR"; then
13557 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13558 else
13559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13560 for as_dir in $PATH
13561 do
13562 IFS=$as_save_IFS
13563 test -z "$as_dir" && as_dir=.
13564 for ac_exec_ext in '' $ac_executable_extensions; do
13565 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13566 ac_cv_prog_ac_ct_AR="ar"
13567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13568 break 2
13569 fi
13570 done
13571 done
13572 IFS=$as_save_IFS
13573
13574 fi
13575 fi
13576 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13577 if test -n "$ac_ct_AR"; then
13578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
13579 $as_echo "$ac_ct_AR" >&6; }
13580 else
13581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13582 $as_echo "no" >&6; }
13583 fi
13584
13585 if test "x$ac_ct_AR" = x; then
13586 AR="false"
13587 else
13588 case $cross_compiling:$ac_tool_warned in
13589 yes:)
13590 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13591 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13592 ac_tool_warned=yes ;;
13593 esac
13594 AR=$ac_ct_AR
13595 fi
13596 else
13597 AR="$ac_cv_prog_AR"
13598 fi
13599
13600 test -z "$AR" && AR=ar
13601 test -z "$AR_FLAGS" && AR_FLAGS=cru
13602
13603
13604
13605
13606
13607
13608
13609
13610
13611
13612
13613 if test -n "$ac_tool_prefix"; then
13614 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13615 set dummy ${ac_tool_prefix}strip; ac_word=$2
13616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13617 $as_echo_n "checking for $ac_word... " >&6; }
13618 if test "${ac_cv_prog_STRIP+set}" = set; then :
13619 $as_echo_n "(cached) " >&6
13620 else
13621 if test -n "$STRIP"; then
13622 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13623 else
13624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13625 for as_dir in $PATH
13626 do
13627 IFS=$as_save_IFS
13628 test -z "$as_dir" && as_dir=.
13629 for ac_exec_ext in '' $ac_executable_extensions; do
13630 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13631 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13633 break 2
13634 fi
13635 done
13636 done
13637 IFS=$as_save_IFS
13638
13639 fi
13640 fi
13641 STRIP=$ac_cv_prog_STRIP
13642 if test -n "$STRIP"; then
13643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13644 $as_echo "$STRIP" >&6; }
13645 else
13646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13647 $as_echo "no" >&6; }
13648 fi
13649
13650
13651 fi
13652 if test -z "$ac_cv_prog_STRIP"; then
13653 ac_ct_STRIP=$STRIP
13654 # Extract the first word of "strip", so it can be a program name with args.
13655 set dummy strip; ac_word=$2
13656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13657 $as_echo_n "checking for $ac_word... " >&6; }
13658 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
13659 $as_echo_n "(cached) " >&6
13660 else
13661 if test -n "$ac_ct_STRIP"; then
13662 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13663 else
13664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13665 for as_dir in $PATH
13666 do
13667 IFS=$as_save_IFS
13668 test -z "$as_dir" && as_dir=.
13669 for ac_exec_ext in '' $ac_executable_extensions; do
13670 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13671 ac_cv_prog_ac_ct_STRIP="strip"
13672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13673 break 2
13674 fi
13675 done
13676 done
13677 IFS=$as_save_IFS
13678
13679 fi
13680 fi
13681 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13682 if test -n "$ac_ct_STRIP"; then
13683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
13684 $as_echo "$ac_ct_STRIP" >&6; }
13685 else
13686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13687 $as_echo "no" >&6; }
13688 fi
13689
13690 if test "x$ac_ct_STRIP" = x; then
13691 STRIP=":"
13692 else
13693 case $cross_compiling:$ac_tool_warned in
13694 yes:)
13695 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13696 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13697 ac_tool_warned=yes ;;
13698 esac
13699 STRIP=$ac_ct_STRIP
13700 fi
13701 else
13702 STRIP="$ac_cv_prog_STRIP"
13703 fi
13704
13705 test -z "$STRIP" && STRIP=:
13706
13707
13708
13709
13710
13711
13712 if test -n "$ac_tool_prefix"; then
13713 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13714 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13716 $as_echo_n "checking for $ac_word... " >&6; }
13717 if test "${ac_cv_prog_RANLIB+set}" = set; then :
13718 $as_echo_n "(cached) " >&6
13719 else
13720 if test -n "$RANLIB"; then
13721 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13722 else
13723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13724 for as_dir in $PATH
13725 do
13726 IFS=$as_save_IFS
13727 test -z "$as_dir" && as_dir=.
13728 for ac_exec_ext in '' $ac_executable_extensions; do
13729 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13730 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13732 break 2
13733 fi
13734 done
13735 done
13736 IFS=$as_save_IFS
13737
13738 fi
13739 fi
13740 RANLIB=$ac_cv_prog_RANLIB
13741 if test -n "$RANLIB"; then
13742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13743 $as_echo "$RANLIB" >&6; }
13744 else
13745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13746 $as_echo "no" >&6; }
13747 fi
13748
13749
13750 fi
13751 if test -z "$ac_cv_prog_RANLIB"; then
13752 ac_ct_RANLIB=$RANLIB
13753 # Extract the first word of "ranlib", so it can be a program name with args.
13754 set dummy ranlib; ac_word=$2
13755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13756 $as_echo_n "checking for $ac_word... " >&6; }
13757 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
13758 $as_echo_n "(cached) " >&6
13759 else
13760 if test -n "$ac_ct_RANLIB"; then
13761 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13762 else
13763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13764 for as_dir in $PATH
13765 do
13766 IFS=$as_save_IFS
13767 test -z "$as_dir" && as_dir=.
13768 for ac_exec_ext in '' $ac_executable_extensions; do
13769 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13770 ac_cv_prog_ac_ct_RANLIB="ranlib"
13771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13772 break 2
13773 fi
13774 done
13775 done
13776 IFS=$as_save_IFS
13777
13778 fi
13779 fi
13780 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13781 if test -n "$ac_ct_RANLIB"; then
13782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
13783 $as_echo "$ac_ct_RANLIB" >&6; }
13784 else
13785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13786 $as_echo "no" >&6; }
13787 fi
13788
13789 if test "x$ac_ct_RANLIB" = x; then
13790 RANLIB=":"
13791 else
13792 case $cross_compiling:$ac_tool_warned in
13793 yes:)
13794 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13795 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13796 ac_tool_warned=yes ;;
13797 esac
13798 RANLIB=$ac_ct_RANLIB
13799 fi
13800 else
13801 RANLIB="$ac_cv_prog_RANLIB"
13802 fi
13803
13804 test -z "$RANLIB" && RANLIB=:
13805
13806
13807
13808
13809
13810
13811 # Determine commands to create old-style static archives.
13812 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13813 old_postinstall_cmds='chmod 644 $oldlib'
13814 old_postuninstall_cmds=
13815
13816 if test -n "$RANLIB"; then
13817 case $host_os in
13818 openbsd*)
13819 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
13820 ;;
13821 *)
13822 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
13823 ;;
13824 esac
13825 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
13826 fi
13827
13828 case $host_os in
13829 darwin*)
13830 lock_old_archive_extraction=yes ;;
13831 *)
13832 lock_old_archive_extraction=no ;;
13833 esac
13834
13835
13836
13837
13838
13839
13840
13841
13842
13843
13844
13845
13846
13847
13848
13849
13850
13851
13852
13853
13854
13855
13856
13857
13858
13859
13860
13861
13862
13863
13864
13865
13866
13867
13868
13869
13870
13871
13872
13873 # If no C compiler was specified, use CC.
13874 LTCC=${LTCC-"$CC"}
13875
13876 # If no C compiler flags were specified, use CFLAGS.
13877 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13878
13879 # Allow CC to be a program name with arguments.
13880 compiler=$CC
13881
13882
13883 # Check for command to grab the raw symbol name followed by C symbol from nm.
13884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
13885 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
13886 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
13887 $as_echo_n "(cached) " >&6
13888 else
13889
13890 # These are sane defaults that work on at least a few old systems.
13891 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13892
13893 # Character class describing NM global symbol codes.
13894 symcode='[BCDEGRST]'
13895
13896 # Regexp to match symbols that can be accessed directly from C.
13897 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13898
13899 # Define system-specific variables.
13900 case $host_os in
13901 aix*)
13902 symcode='[BCDT]'
13903 ;;
13904 cygwin* | mingw* | pw32* | cegcc*)
13905 symcode='[ABCDGISTW]'
13906 ;;
13907 hpux*)
13908 if test "$host_cpu" = ia64; then
13909 symcode='[ABCDEGRST]'
13910 fi
13911 ;;
13912 irix* | nonstopux*)
13913 symcode='[BCDEGRST]'
13914 ;;
13915 osf*)
13916 symcode='[BCDEGQRST]'
13917 ;;
13918 solaris*)
13919 symcode='[BDRT]'
13920 ;;
13921 sco3.2v5*)
13922 symcode='[DT]'
13923 ;;
13924 sysv4.2uw2*)
13925 symcode='[DT]'
13926 ;;
13927 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13928 symcode='[ABDT]'
13929 ;;
13930 sysv4)
13931 symcode='[DFNSTU]'
13932 ;;
13933 esac
13934
13935 # If we're using GNU nm, then use its standard symbol codes.
13936 case `$NM -V 2>&1` in
13937 *GNU* | *'with BFD'*)
13938 symcode='[ABCDGIRSTW]' ;;
13939 esac
13940
13941 # Transform an extracted symbol line into a proper C declaration.
13942 # Some systems (esp. on ia64) link data and code symbols differently,
13943 # so use this general approach.
13944 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13945
13946 # Transform an extracted symbol line into symbol name and symbol address
13947 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
13948 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'"
13949
13950 # Handle CRLF in mingw tool chain
13951 opt_cr=
13952 case $build_os in
13953 mingw*)
13954 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13955 ;;
13956 esac
13957
13958 # Try without a prefix underscore, then with it.
13959 for ac_symprfx in "" "_"; do
13960
13961 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13962 symxfrm="\\1 $ac_symprfx\\2 \\2"
13963
13964 # Write the raw and C identifiers.
13965 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13966 # Fake it for dumpbin and say T for any non-static function
13967 # and D for any global variable.
13968 # Also find C++ and __fastcall symbols from MSVC++,
13969 # which start with @ or ?.
13970 lt_cv_sys_global_symbol_pipe="$AWK '"\
13971 " {last_section=section; section=\$ 3};"\
13972 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13973 " \$ 0!~/External *\|/{next};"\
13974 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13975 " {if(hide[section]) next};"\
13976 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
13977 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
13978 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
13979 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
13980 " ' prfx=^$ac_symprfx"
13981 else
13982 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13983 fi
13984
13985 # Check to see that the pipe works correctly.
13986 pipe_works=no
13987
13988 rm -f conftest*
13989 cat > conftest.$ac_ext <<_LT_EOF
13990 #ifdef __cplusplus
13991 extern "C" {
13992 #endif
13993 char nm_test_var;
13994 void nm_test_func(void);
13995 void nm_test_func(void){}
13996 #ifdef __cplusplus
13997 }
13998 #endif
13999 int main(){nm_test_var='a';nm_test_func();return(0);}
14000 _LT_EOF
14001
14002 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14003 (eval $ac_compile) 2>&5
14004 ac_status=$?
14005 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14006 test $ac_status = 0; }; then
14007 # Now try to grab the symbols.
14008 nlist=conftest.nm
14009 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
14010 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
14011 ac_status=$?
14012 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14013 test $ac_status = 0; } && test -s "$nlist"; then
14014 # Try sorting and uniquifying the output.
14015 if sort "$nlist" | uniq > "$nlist"T; then
14016 mv -f "$nlist"T "$nlist"
14017 else
14018 rm -f "$nlist"T
14019 fi
14020
14021 # Make sure that we snagged all the symbols we need.
14022 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
14023 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
14024 cat <<_LT_EOF > conftest.$ac_ext
14025 #ifdef __cplusplus
14026 extern "C" {
14027 #endif
14028
14029 _LT_EOF
14030 # Now generate the symbol file.
14031 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
14032
14033 cat <<_LT_EOF >> conftest.$ac_ext
14034
14035 /* The mapping between symbol names and symbols. */
14036 const struct {
14037 const char *name;
14038 void *address;
14039 }
14040 lt__PROGRAM__LTX_preloaded_symbols[] =
14041 {
14042 { "@PROGRAM@", (void *) 0 },
14043 _LT_EOF
14044 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
14045 cat <<\_LT_EOF >> conftest.$ac_ext
14046 {0, (void *) 0}
14047 };
14048
14049 /* This works around a problem in FreeBSD linker */
14050 #ifdef FREEBSD_WORKAROUND
14051 static const void *lt_preloaded_setup() {
14052 return lt__PROGRAM__LTX_preloaded_symbols;
14053 }
14054 #endif
14055
14056 #ifdef __cplusplus
14057 }
14058 #endif
14059 _LT_EOF
14060 # Now try linking the two files.
14061 mv conftest.$ac_objext conftstm.$ac_objext
14062 lt_save_LIBS="$LIBS"
14063 lt_save_CFLAGS="$CFLAGS"
14064 LIBS="conftstm.$ac_objext"
14065 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
14066 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14067 (eval $ac_link) 2>&5
14068 ac_status=$?
14069 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14070 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
14071 pipe_works=yes
14072 fi
14073 LIBS="$lt_save_LIBS"
14074 CFLAGS="$lt_save_CFLAGS"
14075 else
14076 echo "cannot find nm_test_func in $nlist" >&5
14077 fi
14078 else
14079 echo "cannot find nm_test_var in $nlist" >&5
14080 fi
14081 else
14082 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
14083 fi
14084 else
14085 echo "$progname: failed program was:" >&5
14086 cat conftest.$ac_ext >&5
14087 fi
14088 rm -rf conftest* conftst*
14089
14090 # Do not use the global_symbol_pipe unless it works.
14091 if test "$pipe_works" = yes; then
14092 break
14093 else
14094 lt_cv_sys_global_symbol_pipe=
14095 fi
14096 done
14097
14098 fi
14099
14100 if test -z "$lt_cv_sys_global_symbol_pipe"; then
14101 lt_cv_sys_global_symbol_to_cdecl=
14102 fi
14103 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
14104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
14105 $as_echo "failed" >&6; }
14106 else
14107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
14108 $as_echo "ok" >&6; }
14109 fi
14110
14111
14112
14113
14114
14115
14116
14117
14118
14119
14120
14121
14122
14123
14124
14125
14126
14127
14128
14129
14130
14131
14132 # Check whether --enable-libtool-lock was given.
14133 if test "${enable_libtool_lock+set}" = set; then :
14134 enableval=$enable_libtool_lock;
14135 fi
14136
14137 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14138
14139 # Some flags need to be propagated to the compiler or linker for good
14140 # libtool support.
14141 case $host in
14142 ia64-*-hpux*)
14143 # Find out which ABI we are using.
14144 echo 'int i;' > conftest.$ac_ext
14145 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14146 (eval $ac_compile) 2>&5
14147 ac_status=$?
14148 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14149 test $ac_status = 0; }; then
14150 case `/usr/bin/file conftest.$ac_objext` in
14151 *ELF-32*)
14152 HPUX_IA64_MODE="32"
14153 ;;
14154 *ELF-64*)
14155 HPUX_IA64_MODE="64"
14156 ;;
14157 esac
14158 fi
14159 rm -rf conftest*
14160 ;;
14161 *-*-irix6*)
14162 # Find out which ABI we are using.
14163 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
14164 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14165 (eval $ac_compile) 2>&5
14166 ac_status=$?
14167 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14168 test $ac_status = 0; }; then
14169 if test "$lt_cv_prog_gnu_ld" = yes; then
14170 case `/usr/bin/file conftest.$ac_objext` in
14171 *32-bit*)
14172 LD="${LD-ld} -melf32bsmip"
14173 ;;
14174 *N32*)
14175 LD="${LD-ld} -melf32bmipn32"
14176 ;;
14177 *64-bit*)
14178 LD="${LD-ld} -melf64bmip"
14179 ;;
14180 esac
14181 else
14182 case `/usr/bin/file conftest.$ac_objext` in
14183 *32-bit*)
14184 LD="${LD-ld} -32"
14185 ;;
14186 *N32*)
14187 LD="${LD-ld} -n32"
14188 ;;
14189 *64-bit*)
14190 LD="${LD-ld} -64"
14191 ;;
14192 esac
14193 fi
14194 fi
14195 rm -rf conftest*
14196 ;;
14197
14198 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
14199 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
14200 # Find out which ABI we are using.
14201 echo 'int i;' > conftest.$ac_ext
14202 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14203 (eval $ac_compile) 2>&5
14204 ac_status=$?
14205 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14206 test $ac_status = 0; }; then
14207 case `/usr/bin/file conftest.o` in
14208 *32-bit*)
14209 case $host in
14210 x86_64-*kfreebsd*-gnu)
14211 LD="${LD-ld} -m elf_i386_fbsd"
14212 ;;
14213 x86_64-*linux*)
14214 case `/usr/bin/file conftest.o` in
14215 *x86-64*)
14216 LD="${LD-ld} -m elf32_x86_64"
14217 ;;
14218 *)
14219 LD="${LD-ld} -m elf_i386"
14220 ;;
14221 esac
14222 ;;
14223 powerpc64le-*linux*)
14224 LD="${LD-ld} -m elf32lppclinux"
14225 ;;
14226 powerpc64-*linux*)
14227 LD="${LD-ld} -m elf32ppclinux"
14228 ;;
14229 s390x-*linux*)
14230 LD="${LD-ld} -m elf_s390"
14231 ;;
14232 sparc64-*linux*)
14233 LD="${LD-ld} -m elf32_sparc"
14234 ;;
14235 esac
14236 ;;
14237 *64-bit*)
14238 case $host in
14239 x86_64-*kfreebsd*-gnu)
14240 LD="${LD-ld} -m elf_x86_64_fbsd"
14241 ;;
14242 x86_64-*linux*)
14243 LD="${LD-ld} -m elf_x86_64"
14244 ;;
14245 powerpcle-*linux*)
14246 LD="${LD-ld} -m elf64lppc"
14247 ;;
14248 powerpc-*linux*)
14249 LD="${LD-ld} -m elf64ppc"
14250 ;;
14251 s390*-*linux*|s390*-*tpf*)
14252 LD="${LD-ld} -m elf64_s390"
14253 ;;
14254 sparc*-*linux*)
14255 LD="${LD-ld} -m elf64_sparc"
14256 ;;
14257 esac
14258 ;;
14259 esac
14260 fi
14261 rm -rf conftest*
14262 ;;
14263
14264 *-*-sco3.2v5*)
14265 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
14266 SAVE_CFLAGS="$CFLAGS"
14267 CFLAGS="$CFLAGS -belf"
14268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
14269 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
14270 if test "${lt_cv_cc_needs_belf+set}" = set; then :
14271 $as_echo_n "(cached) " >&6
14272 else
14273 ac_ext=c
14274 ac_cpp='$CPP $CPPFLAGS'
14275 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14276 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14277 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14278
14279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14280 /* end confdefs.h. */
14281
14282 int
14283 main ()
14284 {
14285
14286 ;
14287 return 0;
14288 }
14289 _ACEOF
14290 if ac_fn_c_try_link "$LINENO"; then :
14291 lt_cv_cc_needs_belf=yes
14292 else
14293 lt_cv_cc_needs_belf=no
14294 fi
14295 rm -f core conftest.err conftest.$ac_objext \
14296 conftest$ac_exeext conftest.$ac_ext
14297 ac_ext=c
14298 ac_cpp='$CPP $CPPFLAGS'
14299 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14300 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14301 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14302
14303 fi
14304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
14305 $as_echo "$lt_cv_cc_needs_belf" >&6; }
14306 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
14307 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
14308 CFLAGS="$SAVE_CFLAGS"
14309 fi
14310 ;;
14311 sparc*-*solaris*)
14312 # Find out which ABI we are using.
14313 echo 'int i;' > conftest.$ac_ext
14314 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14315 (eval $ac_compile) 2>&5
14316 ac_status=$?
14317 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14318 test $ac_status = 0; }; then
14319 case `/usr/bin/file conftest.o` in
14320 *64-bit*)
14321 case $lt_cv_prog_gnu_ld in
14322 yes*) LD="${LD-ld} -m elf64_sparc" ;;
14323 *)
14324 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
14325 LD="${LD-ld} -64"
14326 fi
14327 ;;
14328 esac
14329 ;;
14330 esac
14331 fi
14332 rm -rf conftest*
14333 ;;
14334 esac
14335
14336 need_locks="$enable_libtool_lock"
14337
14338
14339 case $host_os in
14340 rhapsody* | darwin*)
14341 if test -n "$ac_tool_prefix"; then
14342 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
14343 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
14344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14345 $as_echo_n "checking for $ac_word... " >&6; }
14346 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
14347 $as_echo_n "(cached) " >&6
14348 else
14349 if test -n "$DSYMUTIL"; then
14350 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
14351 else
14352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14353 for as_dir in $PATH
14354 do
14355 IFS=$as_save_IFS
14356 test -z "$as_dir" && as_dir=.
14357 for ac_exec_ext in '' $ac_executable_extensions; do
14358 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14359 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
14360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14361 break 2
14362 fi
14363 done
14364 done
14365 IFS=$as_save_IFS
14366
14367 fi
14368 fi
14369 DSYMUTIL=$ac_cv_prog_DSYMUTIL
14370 if test -n "$DSYMUTIL"; then
14371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
14372 $as_echo "$DSYMUTIL" >&6; }
14373 else
14374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14375 $as_echo "no" >&6; }
14376 fi
14377
14378
14379 fi
14380 if test -z "$ac_cv_prog_DSYMUTIL"; then
14381 ac_ct_DSYMUTIL=$DSYMUTIL
14382 # Extract the first word of "dsymutil", so it can be a program name with args.
14383 set dummy dsymutil; ac_word=$2
14384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14385 $as_echo_n "checking for $ac_word... " >&6; }
14386 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
14387 $as_echo_n "(cached) " >&6
14388 else
14389 if test -n "$ac_ct_DSYMUTIL"; then
14390 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
14391 else
14392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14393 for as_dir in $PATH
14394 do
14395 IFS=$as_save_IFS
14396 test -z "$as_dir" && as_dir=.
14397 for ac_exec_ext in '' $ac_executable_extensions; do
14398 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14399 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
14400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14401 break 2
14402 fi
14403 done
14404 done
14405 IFS=$as_save_IFS
14406
14407 fi
14408 fi
14409 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
14410 if test -n "$ac_ct_DSYMUTIL"; then
14411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
14412 $as_echo "$ac_ct_DSYMUTIL" >&6; }
14413 else
14414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14415 $as_echo "no" >&6; }
14416 fi
14417
14418 if test "x$ac_ct_DSYMUTIL" = x; then
14419 DSYMUTIL=":"
14420 else
14421 case $cross_compiling:$ac_tool_warned in
14422 yes:)
14423 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14424 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14425 ac_tool_warned=yes ;;
14426 esac
14427 DSYMUTIL=$ac_ct_DSYMUTIL
14428 fi
14429 else
14430 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
14431 fi
14432
14433 if test -n "$ac_tool_prefix"; then
14434 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
14435 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
14436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14437 $as_echo_n "checking for $ac_word... " >&6; }
14438 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
14439 $as_echo_n "(cached) " >&6
14440 else
14441 if test -n "$NMEDIT"; then
14442 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
14443 else
14444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14445 for as_dir in $PATH
14446 do
14447 IFS=$as_save_IFS
14448 test -z "$as_dir" && as_dir=.
14449 for ac_exec_ext in '' $ac_executable_extensions; do
14450 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14451 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
14452 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14453 break 2
14454 fi
14455 done
14456 done
14457 IFS=$as_save_IFS
14458
14459 fi
14460 fi
14461 NMEDIT=$ac_cv_prog_NMEDIT
14462 if test -n "$NMEDIT"; then
14463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
14464 $as_echo "$NMEDIT" >&6; }
14465 else
14466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14467 $as_echo "no" >&6; }
14468 fi
14469
14470
14471 fi
14472 if test -z "$ac_cv_prog_NMEDIT"; then
14473 ac_ct_NMEDIT=$NMEDIT
14474 # Extract the first word of "nmedit", so it can be a program name with args.
14475 set dummy nmedit; ac_word=$2
14476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14477 $as_echo_n "checking for $ac_word... " >&6; }
14478 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
14479 $as_echo_n "(cached) " >&6
14480 else
14481 if test -n "$ac_ct_NMEDIT"; then
14482 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
14483 else
14484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14485 for as_dir in $PATH
14486 do
14487 IFS=$as_save_IFS
14488 test -z "$as_dir" && as_dir=.
14489 for ac_exec_ext in '' $ac_executable_extensions; do
14490 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14491 ac_cv_prog_ac_ct_NMEDIT="nmedit"
14492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14493 break 2
14494 fi
14495 done
14496 done
14497 IFS=$as_save_IFS
14498
14499 fi
14500 fi
14501 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
14502 if test -n "$ac_ct_NMEDIT"; then
14503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
14504 $as_echo "$ac_ct_NMEDIT" >&6; }
14505 else
14506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14507 $as_echo "no" >&6; }
14508 fi
14509
14510 if test "x$ac_ct_NMEDIT" = x; then
14511 NMEDIT=":"
14512 else
14513 case $cross_compiling:$ac_tool_warned in
14514 yes:)
14515 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14516 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14517 ac_tool_warned=yes ;;
14518 esac
14519 NMEDIT=$ac_ct_NMEDIT
14520 fi
14521 else
14522 NMEDIT="$ac_cv_prog_NMEDIT"
14523 fi
14524
14525 if test -n "$ac_tool_prefix"; then
14526 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
14527 set dummy ${ac_tool_prefix}lipo; ac_word=$2
14528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14529 $as_echo_n "checking for $ac_word... " >&6; }
14530 if test "${ac_cv_prog_LIPO+set}" = set; then :
14531 $as_echo_n "(cached) " >&6
14532 else
14533 if test -n "$LIPO"; then
14534 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
14535 else
14536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14537 for as_dir in $PATH
14538 do
14539 IFS=$as_save_IFS
14540 test -z "$as_dir" && as_dir=.
14541 for ac_exec_ext in '' $ac_executable_extensions; do
14542 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14543 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
14544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14545 break 2
14546 fi
14547 done
14548 done
14549 IFS=$as_save_IFS
14550
14551 fi
14552 fi
14553 LIPO=$ac_cv_prog_LIPO
14554 if test -n "$LIPO"; then
14555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
14556 $as_echo "$LIPO" >&6; }
14557 else
14558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14559 $as_echo "no" >&6; }
14560 fi
14561
14562
14563 fi
14564 if test -z "$ac_cv_prog_LIPO"; then
14565 ac_ct_LIPO=$LIPO
14566 # Extract the first word of "lipo", so it can be a program name with args.
14567 set dummy lipo; ac_word=$2
14568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14569 $as_echo_n "checking for $ac_word... " >&6; }
14570 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
14571 $as_echo_n "(cached) " >&6
14572 else
14573 if test -n "$ac_ct_LIPO"; then
14574 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14575 else
14576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14577 for as_dir in $PATH
14578 do
14579 IFS=$as_save_IFS
14580 test -z "$as_dir" && as_dir=.
14581 for ac_exec_ext in '' $ac_executable_extensions; do
14582 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14583 ac_cv_prog_ac_ct_LIPO="lipo"
14584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14585 break 2
14586 fi
14587 done
14588 done
14589 IFS=$as_save_IFS
14590
14591 fi
14592 fi
14593 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14594 if test -n "$ac_ct_LIPO"; then
14595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
14596 $as_echo "$ac_ct_LIPO" >&6; }
14597 else
14598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14599 $as_echo "no" >&6; }
14600 fi
14601
14602 if test "x$ac_ct_LIPO" = x; then
14603 LIPO=":"
14604 else
14605 case $cross_compiling:$ac_tool_warned in
14606 yes:)
14607 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14608 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14609 ac_tool_warned=yes ;;
14610 esac
14611 LIPO=$ac_ct_LIPO
14612 fi
14613 else
14614 LIPO="$ac_cv_prog_LIPO"
14615 fi
14616
14617 if test -n "$ac_tool_prefix"; then
14618 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
14619 set dummy ${ac_tool_prefix}otool; ac_word=$2
14620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14621 $as_echo_n "checking for $ac_word... " >&6; }
14622 if test "${ac_cv_prog_OTOOL+set}" = set; then :
14623 $as_echo_n "(cached) " >&6
14624 else
14625 if test -n "$OTOOL"; then
14626 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14627 else
14628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14629 for as_dir in $PATH
14630 do
14631 IFS=$as_save_IFS
14632 test -z "$as_dir" && as_dir=.
14633 for ac_exec_ext in '' $ac_executable_extensions; do
14634 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14635 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
14636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14637 break 2
14638 fi
14639 done
14640 done
14641 IFS=$as_save_IFS
14642
14643 fi
14644 fi
14645 OTOOL=$ac_cv_prog_OTOOL
14646 if test -n "$OTOOL"; then
14647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
14648 $as_echo "$OTOOL" >&6; }
14649 else
14650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14651 $as_echo "no" >&6; }
14652 fi
14653
14654
14655 fi
14656 if test -z "$ac_cv_prog_OTOOL"; then
14657 ac_ct_OTOOL=$OTOOL
14658 # Extract the first word of "otool", so it can be a program name with args.
14659 set dummy otool; ac_word=$2
14660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14661 $as_echo_n "checking for $ac_word... " >&6; }
14662 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
14663 $as_echo_n "(cached) " >&6
14664 else
14665 if test -n "$ac_ct_OTOOL"; then
14666 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14667 else
14668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14669 for as_dir in $PATH
14670 do
14671 IFS=$as_save_IFS
14672 test -z "$as_dir" && as_dir=.
14673 for ac_exec_ext in '' $ac_executable_extensions; do
14674 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14675 ac_cv_prog_ac_ct_OTOOL="otool"
14676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14677 break 2
14678 fi
14679 done
14680 done
14681 IFS=$as_save_IFS
14682
14683 fi
14684 fi
14685 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14686 if test -n "$ac_ct_OTOOL"; then
14687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
14688 $as_echo "$ac_ct_OTOOL" >&6; }
14689 else
14690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14691 $as_echo "no" >&6; }
14692 fi
14693
14694 if test "x$ac_ct_OTOOL" = x; then
14695 OTOOL=":"
14696 else
14697 case $cross_compiling:$ac_tool_warned in
14698 yes:)
14699 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14700 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14701 ac_tool_warned=yes ;;
14702 esac
14703 OTOOL=$ac_ct_OTOOL
14704 fi
14705 else
14706 OTOOL="$ac_cv_prog_OTOOL"
14707 fi
14708
14709 if test -n "$ac_tool_prefix"; then
14710 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
14711 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14713 $as_echo_n "checking for $ac_word... " >&6; }
14714 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
14715 $as_echo_n "(cached) " >&6
14716 else
14717 if test -n "$OTOOL64"; then
14718 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14719 else
14720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14721 for as_dir in $PATH
14722 do
14723 IFS=$as_save_IFS
14724 test -z "$as_dir" && as_dir=.
14725 for ac_exec_ext in '' $ac_executable_extensions; do
14726 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14727 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
14728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14729 break 2
14730 fi
14731 done
14732 done
14733 IFS=$as_save_IFS
14734
14735 fi
14736 fi
14737 OTOOL64=$ac_cv_prog_OTOOL64
14738 if test -n "$OTOOL64"; then
14739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
14740 $as_echo "$OTOOL64" >&6; }
14741 else
14742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14743 $as_echo "no" >&6; }
14744 fi
14745
14746
14747 fi
14748 if test -z "$ac_cv_prog_OTOOL64"; then
14749 ac_ct_OTOOL64=$OTOOL64
14750 # Extract the first word of "otool64", so it can be a program name with args.
14751 set dummy otool64; ac_word=$2
14752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14753 $as_echo_n "checking for $ac_word... " >&6; }
14754 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
14755 $as_echo_n "(cached) " >&6
14756 else
14757 if test -n "$ac_ct_OTOOL64"; then
14758 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14759 else
14760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14761 for as_dir in $PATH
14762 do
14763 IFS=$as_save_IFS
14764 test -z "$as_dir" && as_dir=.
14765 for ac_exec_ext in '' $ac_executable_extensions; do
14766 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14767 ac_cv_prog_ac_ct_OTOOL64="otool64"
14768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14769 break 2
14770 fi
14771 done
14772 done
14773 IFS=$as_save_IFS
14774
14775 fi
14776 fi
14777 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14778 if test -n "$ac_ct_OTOOL64"; then
14779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
14780 $as_echo "$ac_ct_OTOOL64" >&6; }
14781 else
14782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14783 $as_echo "no" >&6; }
14784 fi
14785
14786 if test "x$ac_ct_OTOOL64" = x; then
14787 OTOOL64=":"
14788 else
14789 case $cross_compiling:$ac_tool_warned in
14790 yes:)
14791 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14792 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14793 ac_tool_warned=yes ;;
14794 esac
14795 OTOOL64=$ac_ct_OTOOL64
14796 fi
14797 else
14798 OTOOL64="$ac_cv_prog_OTOOL64"
14799 fi
14800
14801
14802
14803
14804
14805
14806
14807
14808
14809
14810
14811
14812
14813
14814
14815
14816
14817
14818
14819
14820
14821
14822
14823
14824
14825
14826
14827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
14828 $as_echo_n "checking for -single_module linker flag... " >&6; }
14829 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
14830 $as_echo_n "(cached) " >&6
14831 else
14832 lt_cv_apple_cc_single_mod=no
14833 if test -z "${LT_MULTI_MODULE}"; then
14834 # By default we will add the -single_module flag. You can override
14835 # by either setting the environment variable LT_MULTI_MODULE
14836 # non-empty at configure time, or by adding -multi_module to the
14837 # link flags.
14838 rm -rf libconftest.dylib*
14839 echo "int foo(void){return 1;}" > conftest.c
14840 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14841 -dynamiclib -Wl,-single_module conftest.c" >&5
14842 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14843 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14844 _lt_result=$?
14845 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
14846 lt_cv_apple_cc_single_mod=yes
14847 else
14848 cat conftest.err >&5
14849 fi
14850 rm -rf libconftest.dylib*
14851 rm -f conftest.*
14852 fi
14853 fi
14854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
14855 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
14857 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
14858 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
14859 $as_echo_n "(cached) " >&6
14860 else
14861 lt_cv_ld_exported_symbols_list=no
14862 save_LDFLAGS=$LDFLAGS
14863 echo "_main" > conftest.sym
14864 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
14865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14866 /* end confdefs.h. */
14867
14868 int
14869 main ()
14870 {
14871
14872 ;
14873 return 0;
14874 }
14875 _ACEOF
14876 if ac_fn_c_try_link "$LINENO"; then :
14877 lt_cv_ld_exported_symbols_list=yes
14878 else
14879 lt_cv_ld_exported_symbols_list=no
14880 fi
14881 rm -f core conftest.err conftest.$ac_objext \
14882 conftest$ac_exeext conftest.$ac_ext
14883 LDFLAGS="$save_LDFLAGS"
14884
14885 fi
14886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
14887 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
14889 $as_echo_n "checking for -force_load linker flag... " >&6; }
14890 if test "${lt_cv_ld_force_load+set}" = set; then :
14891 $as_echo_n "(cached) " >&6
14892 else
14893 lt_cv_ld_force_load=no
14894 cat > conftest.c << _LT_EOF
14895 int forced_loaded() { return 2;}
14896 _LT_EOF
14897 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
14898 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14899 echo "$AR cru libconftest.a conftest.o" >&5
14900 $AR cru libconftest.a conftest.o 2>&5
14901 cat > conftest.c << _LT_EOF
14902 int main() { return 0;}
14903 _LT_EOF
14904 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
14905 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14906 _lt_result=$?
14907 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
14908 lt_cv_ld_force_load=yes
14909 else
14910 cat conftest.err >&5
14911 fi
14912 rm -f conftest.err libconftest.a conftest conftest.c
14913 rm -rf conftest.dSYM
14914
14915 fi
14916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
14917 $as_echo "$lt_cv_ld_force_load" >&6; }
14918 case $host_os in
14919 rhapsody* | darwin1.[012])
14920 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14921 darwin1.*)
14922 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14923 darwin*) # darwin 5.x on
14924 # if running on 10.5 or later, the deployment target defaults
14925 # to the OS version, if on x86, and 10.4, the deployment
14926 # target defaults to 10.4. Don't you love it?
14927 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14928 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14929 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14930 10.[012][,.]*)
14931 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14932 10.*)
14933 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14934 esac
14935 ;;
14936 esac
14937 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14938 _lt_dar_single_mod='$single_module'
14939 fi
14940 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14941 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14942 else
14943 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14944 fi
14945 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
14946 _lt_dsymutil='~$DSYMUTIL $lib || :'
14947 else
14948 _lt_dsymutil=
14949 fi
14950 ;;
14951 esac
14952
14953
14954 for ac_header in dlfcn.h
14955 do :
14956 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
14957 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
14958 cat >>confdefs.h <<_ACEOF
14959 #define HAVE_DLFCN_H 1
14960 _ACEOF
14961
14962 fi
14963 done
14964
14965
14966
14967
14968
14969 # Set options
14970
14971
14972
14973 enable_dlopen=no
14974
14975
14976 enable_win32_dll=no
14977
14978
14979 # Check whether --enable-shared was given.
14980 if test "${enable_shared+set}" = set; then :
14981 enableval=$enable_shared; p=${PACKAGE-default}
14982 case $enableval in
14983 yes) enable_shared=yes ;;
14984 no) enable_shared=no ;;
14985 *)
14986 enable_shared=no
14987 # Look at the argument we got. We use all the common list separators.
14988 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14989 for pkg in $enableval; do
14990 IFS="$lt_save_ifs"
14991 if test "X$pkg" = "X$p"; then
14992 enable_shared=yes
14993 fi
14994 done
14995 IFS="$lt_save_ifs"
14996 ;;
14997 esac
14998 else
14999 enable_shared=yes
15000 fi
15001
15002
15003
15004
15005
15006
15007
15008
15009
15010 # Check whether --enable-static was given.
15011 if test "${enable_static+set}" = set; then :
15012 enableval=$enable_static; p=${PACKAGE-default}
15013 case $enableval in
15014 yes) enable_static=yes ;;
15015 no) enable_static=no ;;
15016 *)
15017 enable_static=no
15018 # Look at the argument we got. We use all the common list separators.
15019 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15020 for pkg in $enableval; do
15021 IFS="$lt_save_ifs"
15022 if test "X$pkg" = "X$p"; then
15023 enable_static=yes
15024 fi
15025 done
15026 IFS="$lt_save_ifs"
15027 ;;
15028 esac
15029 else
15030 enable_static=yes
15031 fi
15032
15033
15034
15035
15036
15037
15038
15039
15040
15041
15042 # Check whether --with-pic was given.
15043 if test "${with_pic+set}" = set; then :
15044 withval=$with_pic; pic_mode="$withval"
15045 else
15046 pic_mode=default
15047 fi
15048
15049
15050 test -z "$pic_mode" && pic_mode=default
15051
15052
15053
15054
15055
15056
15057
15058 # Check whether --enable-fast-install was given.
15059 if test "${enable_fast_install+set}" = set; then :
15060 enableval=$enable_fast_install; p=${PACKAGE-default}
15061 case $enableval in
15062 yes) enable_fast_install=yes ;;
15063 no) enable_fast_install=no ;;
15064 *)
15065 enable_fast_install=no
15066 # Look at the argument we got. We use all the common list separators.
15067 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15068 for pkg in $enableval; do
15069 IFS="$lt_save_ifs"
15070 if test "X$pkg" = "X$p"; then
15071 enable_fast_install=yes
15072 fi
15073 done
15074 IFS="$lt_save_ifs"
15075 ;;
15076 esac
15077 else
15078 enable_fast_install=yes
15079 fi
15080
15081
15082
15083
15084
15085
15086
15087
15088
15089
15090
15091 # This can be used to rebuild libtool when needed
15092 LIBTOOL_DEPS="$ltmain"
15093
15094 # Always use our own libtool.
15095 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
15096
15097
15098
15099
15100
15101
15102
15103
15104
15105
15106
15107
15108
15109
15110
15111
15112
15113
15114
15115
15116
15117
15118
15119
15120
15121
15122 test -z "$LN_S" && LN_S="ln -s"
15123
15124
15125
15126
15127
15128
15129
15130
15131
15132
15133
15134
15135
15136
15137 if test -n "${ZSH_VERSION+set}" ; then
15138 setopt NO_GLOB_SUBST
15139 fi
15140
15141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
15142 $as_echo_n "checking for objdir... " >&6; }
15143 if test "${lt_cv_objdir+set}" = set; then :
15144 $as_echo_n "(cached) " >&6
15145 else
15146 rm -f .libs 2>/dev/null
15147 mkdir .libs 2>/dev/null
15148 if test -d .libs; then
15149 lt_cv_objdir=.libs
15150 else
15151 # MS-DOS does not allow filenames that begin with a dot.
15152 lt_cv_objdir=_libs
15153 fi
15154 rmdir .libs 2>/dev/null
15155 fi
15156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
15157 $as_echo "$lt_cv_objdir" >&6; }
15158 objdir=$lt_cv_objdir
15159
15160
15161
15162
15163
15164 cat >>confdefs.h <<_ACEOF
15165 #define LT_OBJDIR "$lt_cv_objdir/"
15166 _ACEOF
15167
15168
15169
15170
15171 case $host_os in
15172 aix3*)
15173 # AIX sometimes has problems with the GCC collect2 program. For some
15174 # reason, if we set the COLLECT_NAMES environment variable, the problems
15175 # vanish in a puff of smoke.
15176 if test "X${COLLECT_NAMES+set}" != Xset; then
15177 COLLECT_NAMES=
15178 export COLLECT_NAMES
15179 fi
15180 ;;
15181 esac
15182
15183 # Global variables:
15184 ofile=libtool
15185 can_build_shared=yes
15186
15187 # All known linkers require a `.a' archive for static linking (except MSVC,
15188 # which needs '.lib').
15189 libext=a
15190
15191 with_gnu_ld="$lt_cv_prog_gnu_ld"
15192
15193 old_CC="$CC"
15194 old_CFLAGS="$CFLAGS"
15195
15196 # Set sane defaults for various variables
15197 test -z "$CC" && CC=cc
15198 test -z "$LTCC" && LTCC=$CC
15199 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
15200 test -z "$LD" && LD=ld
15201 test -z "$ac_objext" && ac_objext=o
15202
15203 for cc_temp in $compiler""; do
15204 case $cc_temp in
15205 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15206 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15207 \-*) ;;
15208 *) break;;
15209 esac
15210 done
15211 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
15212
15213
15214 # Only perform the check for file, if the check method requires it
15215 test -z "$MAGIC_CMD" && MAGIC_CMD=file
15216 case $deplibs_check_method in
15217 file_magic*)
15218 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
15219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
15220 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
15221 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
15222 $as_echo_n "(cached) " >&6
15223 else
15224 case $MAGIC_CMD in
15225 [\\/*] | ?:[\\/]*)
15226 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15227 ;;
15228 *)
15229 lt_save_MAGIC_CMD="$MAGIC_CMD"
15230 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15231 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15232 for ac_dir in $ac_dummy; do
15233 IFS="$lt_save_ifs"
15234 test -z "$ac_dir" && ac_dir=.
15235 if test -f $ac_dir/${ac_tool_prefix}file; then
15236 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
15237 if test -n "$file_magic_test_file"; then
15238 case $deplibs_check_method in
15239 "file_magic "*)
15240 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15241 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15242 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15243 $EGREP "$file_magic_regex" > /dev/null; then
15244 :
15245 else
15246 cat <<_LT_EOF 1>&2
15247
15248 *** Warning: the command libtool uses to detect shared libraries,
15249 *** $file_magic_cmd, produces output that libtool cannot recognize.
15250 *** The result is that libtool may fail to recognize shared libraries
15251 *** as such. This will affect the creation of libtool libraries that
15252 *** depend on shared libraries, but programs linked with such libtool
15253 *** libraries will work regardless of this problem. Nevertheless, you
15254 *** may want to report the problem to your system manager and/or to
15255 *** bug-libtool@gnu.org
15256
15257 _LT_EOF
15258 fi ;;
15259 esac
15260 fi
15261 break
15262 fi
15263 done
15264 IFS="$lt_save_ifs"
15265 MAGIC_CMD="$lt_save_MAGIC_CMD"
15266 ;;
15267 esac
15268 fi
15269
15270 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15271 if test -n "$MAGIC_CMD"; then
15272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15273 $as_echo "$MAGIC_CMD" >&6; }
15274 else
15275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15276 $as_echo "no" >&6; }
15277 fi
15278
15279
15280
15281
15282
15283 if test -z "$lt_cv_path_MAGIC_CMD"; then
15284 if test -n "$ac_tool_prefix"; then
15285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
15286 $as_echo_n "checking for file... " >&6; }
15287 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
15288 $as_echo_n "(cached) " >&6
15289 else
15290 case $MAGIC_CMD in
15291 [\\/*] | ?:[\\/]*)
15292 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15293 ;;
15294 *)
15295 lt_save_MAGIC_CMD="$MAGIC_CMD"
15296 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15297 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15298 for ac_dir in $ac_dummy; do
15299 IFS="$lt_save_ifs"
15300 test -z "$ac_dir" && ac_dir=.
15301 if test -f $ac_dir/file; then
15302 lt_cv_path_MAGIC_CMD="$ac_dir/file"
15303 if test -n "$file_magic_test_file"; then
15304 case $deplibs_check_method in
15305 "file_magic "*)
15306 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15307 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15308 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15309 $EGREP "$file_magic_regex" > /dev/null; then
15310 :
15311 else
15312 cat <<_LT_EOF 1>&2
15313
15314 *** Warning: the command libtool uses to detect shared libraries,
15315 *** $file_magic_cmd, produces output that libtool cannot recognize.
15316 *** The result is that libtool may fail to recognize shared libraries
15317 *** as such. This will affect the creation of libtool libraries that
15318 *** depend on shared libraries, but programs linked with such libtool
15319 *** libraries will work regardless of this problem. Nevertheless, you
15320 *** may want to report the problem to your system manager and/or to
15321 *** bug-libtool@gnu.org
15322
15323 _LT_EOF
15324 fi ;;
15325 esac
15326 fi
15327 break
15328 fi
15329 done
15330 IFS="$lt_save_ifs"
15331 MAGIC_CMD="$lt_save_MAGIC_CMD"
15332 ;;
15333 esac
15334 fi
15335
15336 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15337 if test -n "$MAGIC_CMD"; then
15338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15339 $as_echo "$MAGIC_CMD" >&6; }
15340 else
15341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15342 $as_echo "no" >&6; }
15343 fi
15344
15345
15346 else
15347 MAGIC_CMD=:
15348 fi
15349 fi
15350
15351 fi
15352 ;;
15353 esac
15354
15355 # Use C for the default configuration in the libtool script
15356
15357 lt_save_CC="$CC"
15358 ac_ext=c
15359 ac_cpp='$CPP $CPPFLAGS'
15360 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15361 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15362 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15363
15364
15365 # Source file extension for C test sources.
15366 ac_ext=c
15367
15368 # Object file extension for compiled C test sources.
15369 objext=o
15370 objext=$objext
15371
15372 # Code to be used in simple compile tests
15373 lt_simple_compile_test_code="int some_variable = 0;"
15374
15375 # Code to be used in simple link tests
15376 lt_simple_link_test_code='int main(){return(0);}'
15377
15378
15379
15380
15381
15382
15383
15384 # If no C compiler was specified, use CC.
15385 LTCC=${LTCC-"$CC"}
15386
15387 # If no C compiler flags were specified, use CFLAGS.
15388 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15389
15390 # Allow CC to be a program name with arguments.
15391 compiler=$CC
15392
15393 # Save the default compiler, since it gets overwritten when the other
15394 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
15395 compiler_DEFAULT=$CC
15396
15397 # save warnings/boilerplate of simple test code
15398 ac_outfile=conftest.$ac_objext
15399 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15400 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15401 _lt_compiler_boilerplate=`cat conftest.err`
15402 $RM conftest*
15403
15404 ac_outfile=conftest.$ac_objext
15405 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15406 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15407 _lt_linker_boilerplate=`cat conftest.err`
15408 $RM -r conftest*
15409
15410
15411 ## CAVEAT EMPTOR:
15412 ## There is no encapsulation within the following macros, do not change
15413 ## the running order or otherwise move them around unless you know exactly
15414 ## what you are doing...
15415 if test -n "$compiler"; then
15416
15417 lt_prog_compiler_no_builtin_flag=
15418
15419 if test "$GCC" = yes; then
15420 case $cc_basename in
15421 nvcc*)
15422 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
15423 *)
15424 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
15425 esac
15426
15427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15428 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
15429 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
15430 $as_echo_n "(cached) " >&6
15431 else
15432 lt_cv_prog_compiler_rtti_exceptions=no
15433 ac_outfile=conftest.$ac_objext
15434 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15435 lt_compiler_flag="-fno-rtti -fno-exceptions"
15436 # Insert the option either (1) after the last *FLAGS variable, or
15437 # (2) before a word containing "conftest.", or (3) at the end.
15438 # Note that $ac_compile itself does not contain backslashes and begins
15439 # with a dollar sign (not a hyphen), so the echo should work correctly.
15440 # The option is referenced via a variable to avoid confusing sed.
15441 lt_compile=`echo "$ac_compile" | $SED \
15442 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15443 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15444 -e 's:$: $lt_compiler_flag:'`
15445 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15446 (eval "$lt_compile" 2>conftest.err)
15447 ac_status=$?
15448 cat conftest.err >&5
15449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15450 if (exit $ac_status) && test -s "$ac_outfile"; then
15451 # The compiler can only warn and ignore the option if not recognized
15452 # So say no if there are warnings other than the usual output.
15453 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15454 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15455 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15456 lt_cv_prog_compiler_rtti_exceptions=yes
15457 fi
15458 fi
15459 $RM conftest*
15460
15461 fi
15462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15463 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15464
15465 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15466 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
15467 else
15468 :
15469 fi
15470
15471 fi
15472
15473
15474
15475
15476
15477
15478 lt_prog_compiler_wl=
15479 lt_prog_compiler_pic=
15480 lt_prog_compiler_static=
15481
15482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15483 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15484
15485 if test "$GCC" = yes; then
15486 lt_prog_compiler_wl='-Wl,'
15487 lt_prog_compiler_static='-static'
15488
15489 case $host_os in
15490 aix*)
15491 # All AIX code is PIC.
15492 if test "$host_cpu" = ia64; then
15493 # AIX 5 now supports IA64 processor
15494 lt_prog_compiler_static='-Bstatic'
15495 fi
15496 lt_prog_compiler_pic='-fPIC'
15497 ;;
15498
15499 amigaos*)
15500 case $host_cpu in
15501 powerpc)
15502 # see comment about AmigaOS4 .so support
15503 lt_prog_compiler_pic='-fPIC'
15504 ;;
15505 m68k)
15506 # FIXME: we need at least 68020 code to build shared libraries, but
15507 # adding the `-m68020' flag to GCC prevents building anything better,
15508 # like `-m68040'.
15509 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15510 ;;
15511 esac
15512 ;;
15513
15514 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15515 # PIC is the default for these OSes.
15516 ;;
15517
15518 mingw* | cygwin* | pw32* | os2* | cegcc*)
15519 # This hack is so that the source file can tell whether it is being
15520 # built for inclusion in a dll (and should export symbols for example).
15521 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15522 # (--disable-auto-import) libraries
15523 lt_prog_compiler_pic='-DDLL_EXPORT'
15524 ;;
15525
15526 darwin* | rhapsody*)
15527 # PIC is the default on this platform
15528 # Common symbols not allowed in MH_DYLIB files
15529 lt_prog_compiler_pic='-fno-common'
15530 ;;
15531
15532 haiku*)
15533 # PIC is the default for Haiku.
15534 # The "-static" flag exists, but is broken.
15535 lt_prog_compiler_static=
15536 ;;
15537
15538 hpux*)
15539 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15540 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15541 # sets the default TLS model and affects inlining.
15542 case $host_cpu in
15543 hppa*64*)
15544 # +Z the default
15545 ;;
15546 *)
15547 lt_prog_compiler_pic='-fPIC'
15548 ;;
15549 esac
15550 ;;
15551
15552 interix[3-9]*)
15553 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15554 # Instead, we relocate shared libraries at runtime.
15555 ;;
15556
15557 msdosdjgpp*)
15558 # Just because we use GCC doesn't mean we suddenly get shared libraries
15559 # on systems that don't support them.
15560 lt_prog_compiler_can_build_shared=no
15561 enable_shared=no
15562 ;;
15563
15564 *nto* | *qnx*)
15565 # QNX uses GNU C++, but need to define -shared option too, otherwise
15566 # it will coredump.
15567 lt_prog_compiler_pic='-fPIC -shared'
15568 ;;
15569
15570 sysv4*MP*)
15571 if test -d /usr/nec; then
15572 lt_prog_compiler_pic=-Kconform_pic
15573 fi
15574 ;;
15575
15576 *)
15577 lt_prog_compiler_pic='-fPIC'
15578 ;;
15579 esac
15580
15581 case $cc_basename in
15582 nvcc*) # Cuda Compiler Driver 2.2
15583 lt_prog_compiler_wl='-Xlinker '
15584 lt_prog_compiler_pic='-Xcompiler -fPIC'
15585 ;;
15586 esac
15587 else
15588 # PORTME Check for flag to pass linker flags through the system compiler.
15589 case $host_os in
15590 aix*)
15591 lt_prog_compiler_wl='-Wl,'
15592 if test "$host_cpu" = ia64; then
15593 # AIX 5 now supports IA64 processor
15594 lt_prog_compiler_static='-Bstatic'
15595 else
15596 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15597 fi
15598 ;;
15599
15600 mingw* | cygwin* | pw32* | os2* | cegcc*)
15601 # This hack is so that the source file can tell whether it is being
15602 # built for inclusion in a dll (and should export symbols for example).
15603 lt_prog_compiler_pic='-DDLL_EXPORT'
15604 ;;
15605
15606 hpux9* | hpux10* | hpux11*)
15607 lt_prog_compiler_wl='-Wl,'
15608 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15609 # not for PA HP-UX.
15610 case $host_cpu in
15611 hppa*64*|ia64*)
15612 # +Z the default
15613 ;;
15614 *)
15615 lt_prog_compiler_pic='+Z'
15616 ;;
15617 esac
15618 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15619 lt_prog_compiler_static='${wl}-a ${wl}archive'
15620 ;;
15621
15622 irix5* | irix6* | nonstopux*)
15623 lt_prog_compiler_wl='-Wl,'
15624 # PIC (with -KPIC) is the default.
15625 lt_prog_compiler_static='-non_shared'
15626 ;;
15627
15628 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15629 case $cc_basename in
15630 # old Intel for x86_64 which still supported -KPIC.
15631 ecc*)
15632 lt_prog_compiler_wl='-Wl,'
15633 lt_prog_compiler_pic='-KPIC'
15634 lt_prog_compiler_static='-static'
15635 ;;
15636 # icc used to be incompatible with GCC.
15637 # ICC 10 doesn't accept -KPIC any more.
15638 icc* | ifort*)
15639 lt_prog_compiler_wl='-Wl,'
15640 lt_prog_compiler_pic='-fPIC'
15641 lt_prog_compiler_static='-static'
15642 ;;
15643 # Lahey Fortran 8.1.
15644 lf95*)
15645 lt_prog_compiler_wl='-Wl,'
15646 lt_prog_compiler_pic='--shared'
15647 lt_prog_compiler_static='--static'
15648 ;;
15649 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15650 # Portland Group compilers (*not* the Pentium gcc compiler,
15651 # which looks to be a dead project)
15652 lt_prog_compiler_wl='-Wl,'
15653 lt_prog_compiler_pic='-fpic'
15654 lt_prog_compiler_static='-Bstatic'
15655 ;;
15656 ccc*)
15657 lt_prog_compiler_wl='-Wl,'
15658 # All Alpha code is PIC.
15659 lt_prog_compiler_static='-non_shared'
15660 ;;
15661 xl* | bgxl* | bgf* | mpixl*)
15662 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15663 lt_prog_compiler_wl='-Wl,'
15664 lt_prog_compiler_pic='-qpic'
15665 lt_prog_compiler_static='-qstaticlink'
15666 ;;
15667 *)
15668 case `$CC -V 2>&1 | sed 5q` in
15669 *Sun\ F* | *Sun*Fortran*)
15670 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15671 lt_prog_compiler_pic='-KPIC'
15672 lt_prog_compiler_static='-Bstatic'
15673 lt_prog_compiler_wl=''
15674 ;;
15675 *Sun\ C*)
15676 # Sun C 5.9
15677 lt_prog_compiler_pic='-KPIC'
15678 lt_prog_compiler_static='-Bstatic'
15679 lt_prog_compiler_wl='-Wl,'
15680 ;;
15681 esac
15682 ;;
15683 esac
15684 ;;
15685
15686 newsos6)
15687 lt_prog_compiler_pic='-KPIC'
15688 lt_prog_compiler_static='-Bstatic'
15689 ;;
15690
15691 *nto* | *qnx*)
15692 # QNX uses GNU C++, but need to define -shared option too, otherwise
15693 # it will coredump.
15694 lt_prog_compiler_pic='-fPIC -shared'
15695 ;;
15696
15697 osf3* | osf4* | osf5*)
15698 lt_prog_compiler_wl='-Wl,'
15699 # All OSF/1 code is PIC.
15700 lt_prog_compiler_static='-non_shared'
15701 ;;
15702
15703 rdos*)
15704 lt_prog_compiler_static='-non_shared'
15705 ;;
15706
15707 solaris*)
15708 lt_prog_compiler_pic='-KPIC'
15709 lt_prog_compiler_static='-Bstatic'
15710 case $cc_basename in
15711 f77* | f90* | f95*)
15712 lt_prog_compiler_wl='-Qoption ld ';;
15713 *)
15714 lt_prog_compiler_wl='-Wl,';;
15715 esac
15716 ;;
15717
15718 sunos4*)
15719 lt_prog_compiler_wl='-Qoption ld '
15720 lt_prog_compiler_pic='-PIC'
15721 lt_prog_compiler_static='-Bstatic'
15722 ;;
15723
15724 sysv4 | sysv4.2uw2* | sysv4.3*)
15725 lt_prog_compiler_wl='-Wl,'
15726 lt_prog_compiler_pic='-KPIC'
15727 lt_prog_compiler_static='-Bstatic'
15728 ;;
15729
15730 sysv4*MP*)
15731 if test -d /usr/nec ;then
15732 lt_prog_compiler_pic='-Kconform_pic'
15733 lt_prog_compiler_static='-Bstatic'
15734 fi
15735 ;;
15736
15737 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15738 lt_prog_compiler_wl='-Wl,'
15739 lt_prog_compiler_pic='-KPIC'
15740 lt_prog_compiler_static='-Bstatic'
15741 ;;
15742
15743 unicos*)
15744 lt_prog_compiler_wl='-Wl,'
15745 lt_prog_compiler_can_build_shared=no
15746 ;;
15747
15748 uts4*)
15749 lt_prog_compiler_pic='-pic'
15750 lt_prog_compiler_static='-Bstatic'
15751 ;;
15752
15753 *)
15754 lt_prog_compiler_can_build_shared=no
15755 ;;
15756 esac
15757 fi
15758
15759 case $host_os in
15760 # For platforms which do not support PIC, -DPIC is meaningless:
15761 *djgpp*)
15762 lt_prog_compiler_pic=
15763 ;;
15764 *)
15765 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15766 ;;
15767 esac
15768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
15769 $as_echo "$lt_prog_compiler_pic" >&6; }
15770
15771
15772
15773
15774
15775
15776 #
15777 # Check to make sure the PIC flag actually works.
15778 #
15779 if test -n "$lt_prog_compiler_pic"; then
15780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15781 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
15782 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
15783 $as_echo_n "(cached) " >&6
15784 else
15785 lt_cv_prog_compiler_pic_works=no
15786 ac_outfile=conftest.$ac_objext
15787 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15788 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15789 # Insert the option either (1) after the last *FLAGS variable, or
15790 # (2) before a word containing "conftest.", or (3) at the end.
15791 # Note that $ac_compile itself does not contain backslashes and begins
15792 # with a dollar sign (not a hyphen), so the echo should work correctly.
15793 # The option is referenced via a variable to avoid confusing sed.
15794 lt_compile=`echo "$ac_compile" | $SED \
15795 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15796 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15797 -e 's:$: $lt_compiler_flag:'`
15798 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15799 (eval "$lt_compile" 2>conftest.err)
15800 ac_status=$?
15801 cat conftest.err >&5
15802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15803 if (exit $ac_status) && test -s "$ac_outfile"; then
15804 # The compiler can only warn and ignore the option if not recognized
15805 # So say no if there are warnings other than the usual output.
15806 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15807 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15808 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15809 lt_cv_prog_compiler_pic_works=yes
15810 fi
15811 fi
15812 $RM conftest*
15813
15814 fi
15815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15816 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15817
15818 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15819 case $lt_prog_compiler_pic in
15820 "" | " "*) ;;
15821 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15822 esac
15823 else
15824 lt_prog_compiler_pic=
15825 lt_prog_compiler_can_build_shared=no
15826 fi
15827
15828 fi
15829
15830
15831
15832
15833
15834
15835 #
15836 # Check to make sure the static flag actually works.
15837 #
15838 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15840 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15841 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
15842 $as_echo_n "(cached) " >&6
15843 else
15844 lt_cv_prog_compiler_static_works=no
15845 save_LDFLAGS="$LDFLAGS"
15846 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15847 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15848 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15849 # The linker can only warn and ignore the option if not recognized
15850 # So say no if there are warnings
15851 if test -s conftest.err; then
15852 # Append any errors to the config.log.
15853 cat conftest.err 1>&5
15854 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15855 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15856 if diff conftest.exp conftest.er2 >/dev/null; then
15857 lt_cv_prog_compiler_static_works=yes
15858 fi
15859 else
15860 lt_cv_prog_compiler_static_works=yes
15861 fi
15862 fi
15863 $RM -r conftest*
15864 LDFLAGS="$save_LDFLAGS"
15865
15866 fi
15867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15868 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15869
15870 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15871 :
15872 else
15873 lt_prog_compiler_static=
15874 fi
15875
15876
15877
15878
15879
15880
15881
15882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15883 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15884 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15885 $as_echo_n "(cached) " >&6
15886 else
15887 lt_cv_prog_compiler_c_o=no
15888 $RM -r conftest 2>/dev/null
15889 mkdir conftest
15890 cd conftest
15891 mkdir out
15892 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15893
15894 lt_compiler_flag="-o out/conftest2.$ac_objext"
15895 # Insert the option either (1) after the last *FLAGS variable, or
15896 # (2) before a word containing "conftest.", or (3) at the end.
15897 # Note that $ac_compile itself does not contain backslashes and begins
15898 # with a dollar sign (not a hyphen), so the echo should work correctly.
15899 lt_compile=`echo "$ac_compile" | $SED \
15900 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15901 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15902 -e 's:$: $lt_compiler_flag:'`
15903 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15904 (eval "$lt_compile" 2>out/conftest.err)
15905 ac_status=$?
15906 cat out/conftest.err >&5
15907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15908 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15909 then
15910 # The compiler can only warn and ignore the option if not recognized
15911 # So say no if there are warnings
15912 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15913 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15914 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15915 lt_cv_prog_compiler_c_o=yes
15916 fi
15917 fi
15918 chmod u+w . 2>&5
15919 $RM conftest*
15920 # SGI C++ compiler will create directory out/ii_files/ for
15921 # template instantiation
15922 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15923 $RM out/* && rmdir out
15924 cd ..
15925 $RM -r conftest
15926 $RM conftest*
15927
15928 fi
15929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15930 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15931
15932
15933
15934
15935
15936
15937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15938 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15939 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15940 $as_echo_n "(cached) " >&6
15941 else
15942 lt_cv_prog_compiler_c_o=no
15943 $RM -r conftest 2>/dev/null
15944 mkdir conftest
15945 cd conftest
15946 mkdir out
15947 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15948
15949 lt_compiler_flag="-o out/conftest2.$ac_objext"
15950 # Insert the option either (1) after the last *FLAGS variable, or
15951 # (2) before a word containing "conftest.", or (3) at the end.
15952 # Note that $ac_compile itself does not contain backslashes and begins
15953 # with a dollar sign (not a hyphen), so the echo should work correctly.
15954 lt_compile=`echo "$ac_compile" | $SED \
15955 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15956 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15957 -e 's:$: $lt_compiler_flag:'`
15958 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15959 (eval "$lt_compile" 2>out/conftest.err)
15960 ac_status=$?
15961 cat out/conftest.err >&5
15962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15963 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15964 then
15965 # The compiler can only warn and ignore the option if not recognized
15966 # So say no if there are warnings
15967 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15968 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15969 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15970 lt_cv_prog_compiler_c_o=yes
15971 fi
15972 fi
15973 chmod u+w . 2>&5
15974 $RM conftest*
15975 # SGI C++ compiler will create directory out/ii_files/ for
15976 # template instantiation
15977 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15978 $RM out/* && rmdir out
15979 cd ..
15980 $RM -r conftest
15981 $RM conftest*
15982
15983 fi
15984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15985 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15986
15987
15988
15989
15990 hard_links="nottested"
15991 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15992 # do not overwrite the value of need_locks provided by the user
15993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15994 $as_echo_n "checking if we can lock with hard links... " >&6; }
15995 hard_links=yes
15996 $RM conftest*
15997 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15998 touch conftest.a
15999 ln conftest.a conftest.b 2>&5 || hard_links=no
16000 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16002 $as_echo "$hard_links" >&6; }
16003 if test "$hard_links" = no; then
16004 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16005 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16006 need_locks=warn
16007 fi
16008 else
16009 need_locks=no
16010 fi
16011
16012
16013
16014
16015
16016
16017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16018 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16019
16020 runpath_var=
16021 allow_undefined_flag=
16022 always_export_symbols=no
16023 archive_cmds=
16024 archive_expsym_cmds=
16025 compiler_needs_object=no
16026 enable_shared_with_static_runtimes=no
16027 export_dynamic_flag_spec=
16028 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16029 hardcode_automatic=no
16030 hardcode_direct=no
16031 hardcode_direct_absolute=no
16032 hardcode_libdir_flag_spec=
16033 hardcode_libdir_flag_spec_ld=
16034 hardcode_libdir_separator=
16035 hardcode_minus_L=no
16036 hardcode_shlibpath_var=unsupported
16037 inherit_rpath=no
16038 link_all_deplibs=unknown
16039 module_cmds=
16040 module_expsym_cmds=
16041 old_archive_from_new_cmds=
16042 old_archive_from_expsyms_cmds=
16043 thread_safe_flag_spec=
16044 whole_archive_flag_spec=
16045 # include_expsyms should be a list of space-separated symbols to be *always*
16046 # included in the symbol list
16047 include_expsyms=
16048 # exclude_expsyms can be an extended regexp of symbols to exclude
16049 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16050 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16051 # as well as any symbol that contains `d'.
16052 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16053 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16054 # platforms (ab)use it in PIC code, but their linkers get confused if
16055 # the symbol is explicitly referenced. Since portable code cannot
16056 # rely on this symbol name, it's probably fine to never include it in
16057 # preloaded symbol tables.
16058 # Exclude shared library initialization/finalization symbols.
16059 extract_expsyms_cmds=
16060
16061 case $host_os in
16062 cygwin* | mingw* | pw32* | cegcc*)
16063 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16064 # When not using gcc, we currently assume that we are using
16065 # Microsoft Visual C++.
16066 if test "$GCC" != yes; then
16067 with_gnu_ld=no
16068 fi
16069 ;;
16070 interix*)
16071 # we just hope/assume this is gcc and not c89 (= MSVC++)
16072 with_gnu_ld=yes
16073 ;;
16074 openbsd*)
16075 with_gnu_ld=no
16076 ;;
16077 esac
16078
16079 ld_shlibs=yes
16080
16081 # On some targets, GNU ld is compatible enough with the native linker
16082 # that we're better off using the native interface for both.
16083 lt_use_gnu_ld_interface=no
16084 if test "$with_gnu_ld" = yes; then
16085 case $host_os in
16086 aix*)
16087 # The AIX port of GNU ld has always aspired to compatibility
16088 # with the native linker. However, as the warning in the GNU ld
16089 # block says, versions before 2.19.5* couldn't really create working
16090 # shared libraries, regardless of the interface used.
16091 case `$LD -v 2>&1` in
16092 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
16093 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
16094 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
16095 *)
16096 lt_use_gnu_ld_interface=yes
16097 ;;
16098 esac
16099 ;;
16100 *)
16101 lt_use_gnu_ld_interface=yes
16102 ;;
16103 esac
16104 fi
16105
16106 if test "$lt_use_gnu_ld_interface" = yes; then
16107 # If archive_cmds runs LD, not CC, wlarc should be empty
16108 wlarc='${wl}'
16109
16110 # Set some defaults for GNU ld with shared library support. These
16111 # are reset later if shared libraries are not supported. Putting them
16112 # here allows them to be overridden if necessary.
16113 runpath_var=LD_RUN_PATH
16114 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16115 export_dynamic_flag_spec='${wl}--export-dynamic'
16116 # ancient GNU ld didn't support --whole-archive et. al.
16117 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
16118 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16119 else
16120 whole_archive_flag_spec=
16121 fi
16122 supports_anon_versioning=no
16123 case `$LD -v 2>&1` in
16124 *GNU\ gold*) supports_anon_versioning=yes ;;
16125 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16126 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16127 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16128 *\ 2.11.*) ;; # other 2.11 versions
16129 *) supports_anon_versioning=yes ;;
16130 esac
16131
16132 # See if GNU ld supports shared libraries.
16133 case $host_os in
16134 aix[3-9]*)
16135 # On AIX/PPC, the GNU linker is very broken
16136 if test "$host_cpu" != ia64; then
16137 ld_shlibs=no
16138 cat <<_LT_EOF 1>&2
16139
16140 *** Warning: the GNU linker, at least up to release 2.19, is reported
16141 *** to be unable to reliably create shared libraries on AIX.
16142 *** Therefore, libtool is disabling shared libraries support. If you
16143 *** really care for shared libraries, you may want to install binutils
16144 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
16145 *** You will then need to restart the configuration process.
16146
16147 _LT_EOF
16148 fi
16149 ;;
16150
16151 amigaos*)
16152 case $host_cpu in
16153 powerpc)
16154 # see comment about AmigaOS4 .so support
16155 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16156 archive_expsym_cmds=''
16157 ;;
16158 m68k)
16159 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)'
16160 hardcode_libdir_flag_spec='-L$libdir'
16161 hardcode_minus_L=yes
16162 ;;
16163 esac
16164 ;;
16165
16166 beos*)
16167 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16168 allow_undefined_flag=unsupported
16169 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16170 # support --undefined. This deserves some investigation. FIXME
16171 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16172 else
16173 ld_shlibs=no
16174 fi
16175 ;;
16176
16177 cygwin* | mingw* | pw32* | cegcc*)
16178 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
16179 # as there is no search path for DLLs.
16180 hardcode_libdir_flag_spec='-L$libdir'
16181 export_dynamic_flag_spec='${wl}--export-all-symbols'
16182 allow_undefined_flag=unsupported
16183 always_export_symbols=no
16184 enable_shared_with_static_runtimes=yes
16185 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16186
16187 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
16188 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16189 # If the export-symbols file already is a .def file (1st line
16190 # is EXPORTS), use it as is; otherwise, prepend...
16191 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16192 cp $export_symbols $output_objdir/$soname.def;
16193 else
16194 echo EXPORTS > $output_objdir/$soname.def;
16195 cat $export_symbols >> $output_objdir/$soname.def;
16196 fi~
16197 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16198 else
16199 ld_shlibs=no
16200 fi
16201 ;;
16202
16203 haiku*)
16204 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16205 link_all_deplibs=yes
16206 ;;
16207
16208 interix[3-9]*)
16209 hardcode_direct=no
16210 hardcode_shlibpath_var=no
16211 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16212 export_dynamic_flag_spec='${wl}-E'
16213 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16214 # Instead, shared libraries are loaded at an image base (0x10000000 by
16215 # default) and relocated if they conflict, which is a slow very memory
16216 # consuming and fragmenting process. To avoid this, we pick a random,
16217 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16218 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16219 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16220 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'
16221 ;;
16222
16223 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
16224 tmp_diet=no
16225 if test "$host_os" = linux-dietlibc; then
16226 case $cc_basename in
16227 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
16228 esac
16229 fi
16230 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
16231 && test "$tmp_diet" = no
16232 then
16233 tmp_addflag=' $pic_flag'
16234 tmp_sharedflag='-shared'
16235 case $cc_basename,$host_cpu in
16236 pgcc*) # Portland Group C compiler
16237 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'
16238 tmp_addflag=' $pic_flag'
16239 ;;
16240 pgf77* | pgf90* | pgf95* | pgfortran*)
16241 # Portland Group f77 and f90 compilers
16242 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'
16243 tmp_addflag=' $pic_flag -Mnomain' ;;
16244 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16245 tmp_addflag=' -i_dynamic' ;;
16246 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16247 tmp_addflag=' -i_dynamic -nofor_main' ;;
16248 ifc* | ifort*) # Intel Fortran compiler
16249 tmp_addflag=' -nofor_main' ;;
16250 lf95*) # Lahey Fortran 8.1
16251 whole_archive_flag_spec=
16252 tmp_sharedflag='--shared' ;;
16253 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
16254 tmp_sharedflag='-qmkshrobj'
16255 tmp_addflag= ;;
16256 nvcc*) # Cuda Compiler Driver 2.2
16257 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'
16258 compiler_needs_object=yes
16259 ;;
16260 esac
16261 case `$CC -V 2>&1 | sed 5q` in
16262 *Sun\ C*) # Sun C 5.9
16263 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'
16264 compiler_needs_object=yes
16265 tmp_sharedflag='-G' ;;
16266 *Sun\ F*) # Sun Fortran 8.3
16267 tmp_sharedflag='-G' ;;
16268 esac
16269 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16270
16271 if test "x$supports_anon_versioning" = xyes; then
16272 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16273 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16274 echo "local: *; };" >> $output_objdir/$libname.ver~
16275 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16276 fi
16277
16278 case $cc_basename in
16279 xlf* | bgf* | bgxlf* | mpixlf*)
16280 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
16281 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
16282 hardcode_libdir_flag_spec=
16283 hardcode_libdir_flag_spec_ld='-rpath $libdir'
16284 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
16285 if test "x$supports_anon_versioning" = xyes; then
16286 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16287 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16288 echo "local: *; };" >> $output_objdir/$libname.ver~
16289 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
16290 fi
16291 ;;
16292 esac
16293 else
16294 ld_shlibs=no
16295 fi
16296 ;;
16297
16298 netbsd*)
16299 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16300 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16301 wlarc=
16302 else
16303 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16304 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16305 fi
16306 ;;
16307
16308 solaris*)
16309 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
16310 ld_shlibs=no
16311 cat <<_LT_EOF 1>&2
16312
16313 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16314 *** create shared libraries on Solaris systems. Therefore, libtool
16315 *** is disabling shared libraries support. We urge you to upgrade GNU
16316 *** binutils to release 2.9.1 or newer. Another option is to modify
16317 *** your PATH or compiler configuration so that the native linker is
16318 *** used, and then restart.
16319
16320 _LT_EOF
16321 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16322 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16323 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16324 else
16325 ld_shlibs=no
16326 fi
16327 ;;
16328
16329 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16330 case `$LD -v 2>&1` in
16331 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16332 ld_shlibs=no
16333 cat <<_LT_EOF 1>&2
16334
16335 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16336 *** reliably create shared libraries on SCO systems. Therefore, libtool
16337 *** is disabling shared libraries support. We urge you to upgrade GNU
16338 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16339 *** your PATH or compiler configuration so that the native linker is
16340 *** used, and then restart.
16341
16342 _LT_EOF
16343 ;;
16344 *)
16345 # For security reasons, it is highly recommended that you always
16346 # use absolute paths for naming shared libraries, and exclude the
16347 # DT_RUNPATH tag from executables and libraries. But doing so
16348 # requires that you compile everything twice, which is a pain.
16349 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16350 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16351 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16352 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16353 else
16354 ld_shlibs=no
16355 fi
16356 ;;
16357 esac
16358 ;;
16359
16360 sunos4*)
16361 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16362 wlarc=
16363 hardcode_direct=yes
16364 hardcode_shlibpath_var=no
16365 ;;
16366
16367 *)
16368 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16369 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16370 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16371 else
16372 ld_shlibs=no
16373 fi
16374 ;;
16375 esac
16376
16377 if test "$ld_shlibs" = no; then
16378 runpath_var=
16379 hardcode_libdir_flag_spec=
16380 export_dynamic_flag_spec=
16381 whole_archive_flag_spec=
16382 fi
16383 else
16384 # PORTME fill in a description of your system's linker (not GNU ld)
16385 case $host_os in
16386 aix3*)
16387 allow_undefined_flag=unsupported
16388 always_export_symbols=yes
16389 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'
16390 # Note: this linker hardcodes the directories in LIBPATH if there
16391 # are no directories specified by -L.
16392 hardcode_minus_L=yes
16393 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16394 # Neither direct hardcoding nor static linking is supported with a
16395 # broken collect2.
16396 hardcode_direct=unsupported
16397 fi
16398 ;;
16399
16400 aix[4-9]*)
16401 if test "$host_cpu" = ia64; then
16402 # On IA64, the linker does run time linking by default, so we don't
16403 # have to do anything special.
16404 aix_use_runtimelinking=no
16405 exp_sym_flag='-Bexport'
16406 no_entry_flag=""
16407 else
16408 # If we're using GNU nm, then we don't want the "-C" option.
16409 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16410 # Also, AIX nm treats weak defined symbols like other global
16411 # defined symbols, whereas GNU nm marks them as "W".
16412 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16413 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'
16414 else
16415 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'
16416 fi
16417 aix_use_runtimelinking=no
16418
16419 # Test if we are trying to use run time linking or normal
16420 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16421 # need to do runtime linking.
16422 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16423 for ld_flag in $LDFLAGS; do
16424 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16425 aix_use_runtimelinking=yes
16426 break
16427 fi
16428 done
16429 ;;
16430 esac
16431
16432 exp_sym_flag='-bexport'
16433 no_entry_flag='-bnoentry'
16434 fi
16435
16436 # When large executables or shared objects are built, AIX ld can
16437 # have problems creating the table of contents. If linking a library
16438 # or program results in "error TOC overflow" add -mminimal-toc to
16439 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16440 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16441
16442 archive_cmds=''
16443 hardcode_direct=yes
16444 hardcode_direct_absolute=yes
16445 hardcode_libdir_separator=':'
16446 link_all_deplibs=yes
16447 file_list_spec='${wl}-f,'
16448
16449 if test "$GCC" = yes; then
16450 case $host_os in aix4.[012]|aix4.[012].*)
16451 # We only want to do this on AIX 4.2 and lower, the check
16452 # below for broken collect2 doesn't work under 4.3+
16453 collect2name=`${CC} -print-prog-name=collect2`
16454 if test -f "$collect2name" &&
16455 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16456 then
16457 # We have reworked collect2
16458 :
16459 else
16460 # We have old collect2
16461 hardcode_direct=unsupported
16462 # It fails to find uninstalled libraries when the uninstalled
16463 # path is not listed in the libpath. Setting hardcode_minus_L
16464 # to unsupported forces relinking
16465 hardcode_minus_L=yes
16466 hardcode_libdir_flag_spec='-L$libdir'
16467 hardcode_libdir_separator=
16468 fi
16469 ;;
16470 esac
16471 shared_flag='-shared'
16472 if test "$aix_use_runtimelinking" = yes; then
16473 shared_flag="$shared_flag "'${wl}-G'
16474 fi
16475 else
16476 # not using gcc
16477 if test "$host_cpu" = ia64; then
16478 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16479 # chokes on -Wl,-G. The following line is correct:
16480 shared_flag='-G'
16481 else
16482 if test "$aix_use_runtimelinking" = yes; then
16483 shared_flag='${wl}-G'
16484 else
16485 shared_flag='${wl}-bM:SRE'
16486 fi
16487 fi
16488 fi
16489
16490 export_dynamic_flag_spec='${wl}-bexpall'
16491 # It seems that -bexpall does not export symbols beginning with
16492 # underscore (_), so it is better to generate a list of symbols to export.
16493 always_export_symbols=yes
16494 if test "$aix_use_runtimelinking" = yes; then
16495 # Warning - without using the other runtime loading flags (-brtl),
16496 # -berok will link without error, but may produce a broken library.
16497 allow_undefined_flag='-berok'
16498 # Determine the default libpath from the value encoded in an
16499 # empty executable.
16500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16501 /* end confdefs.h. */
16502
16503 int
16504 main ()
16505 {
16506
16507 ;
16508 return 0;
16509 }
16510 _ACEOF
16511 if ac_fn_c_try_link "$LINENO"; then :
16512
16513 lt_aix_libpath_sed='
16514 /Import File Strings/,/^$/ {
16515 /^0/ {
16516 s/^0 *\(.*\)$/\1/
16517 p
16518 }
16519 }'
16520 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16521 # Check for a 64-bit object if we didn't find anything.
16522 if test -z "$aix_libpath"; then
16523 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16524 fi
16525 fi
16526 rm -f core conftest.err conftest.$ac_objext \
16527 conftest$ac_exeext conftest.$ac_ext
16528 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16529
16530 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16531 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"
16532 else
16533 if test "$host_cpu" = ia64; then
16534 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
16535 allow_undefined_flag="-z nodefs"
16536 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"
16537 else
16538 # Determine the default libpath from the value encoded in an
16539 # empty executable.
16540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16541 /* end confdefs.h. */
16542
16543 int
16544 main ()
16545 {
16546
16547 ;
16548 return 0;
16549 }
16550 _ACEOF
16551 if ac_fn_c_try_link "$LINENO"; then :
16552
16553 lt_aix_libpath_sed='
16554 /Import File Strings/,/^$/ {
16555 /^0/ {
16556 s/^0 *\(.*\)$/\1/
16557 p
16558 }
16559 }'
16560 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16561 # Check for a 64-bit object if we didn't find anything.
16562 if test -z "$aix_libpath"; then
16563 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16564 fi
16565 fi
16566 rm -f core conftest.err conftest.$ac_objext \
16567 conftest$ac_exeext conftest.$ac_ext
16568 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16569
16570 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16571 # Warning - without using the other run time loading flags,
16572 # -berok will link without error, but may produce a broken library.
16573 no_undefined_flag=' ${wl}-bernotok'
16574 allow_undefined_flag=' ${wl}-berok'
16575 if test "$with_gnu_ld" = yes; then
16576 # We only use this code for GNU lds that support --whole-archive.
16577 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16578 else
16579 # Exported symbols can be pulled into shared objects from archives
16580 whole_archive_flag_spec='$convenience'
16581 fi
16582 archive_cmds_need_lc=yes
16583 # This is similar to how AIX traditionally builds its shared libraries.
16584 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'
16585 fi
16586 fi
16587 ;;
16588
16589 amigaos*)
16590 case $host_cpu in
16591 powerpc)
16592 # see comment about AmigaOS4 .so support
16593 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16594 archive_expsym_cmds=''
16595 ;;
16596 m68k)
16597 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)'
16598 hardcode_libdir_flag_spec='-L$libdir'
16599 hardcode_minus_L=yes
16600 ;;
16601 esac
16602 ;;
16603
16604 bsdi[45]*)
16605 export_dynamic_flag_spec=-rdynamic
16606 ;;
16607
16608 cygwin* | mingw* | pw32* | cegcc*)
16609 # When not using gcc, we currently assume that we are using
16610 # Microsoft Visual C++.
16611 # hardcode_libdir_flag_spec is actually meaningless, as there is
16612 # no search path for DLLs.
16613 hardcode_libdir_flag_spec=' '
16614 allow_undefined_flag=unsupported
16615 # Tell ltmain to make .lib files, not .a files.
16616 libext=lib
16617 # Tell ltmain to make .dll files, not .so files.
16618 shrext_cmds=".dll"
16619 # FIXME: Setting linknames here is a bad hack.
16620 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16621 # The linker will automatically build a .lib file if we build a DLL.
16622 old_archive_from_new_cmds='true'
16623 # FIXME: Should let the user specify the lib program.
16624 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
16625 fix_srcfile_path='`cygpath -w "$srcfile"`'
16626 enable_shared_with_static_runtimes=yes
16627 ;;
16628
16629 darwin* | rhapsody*)
16630
16631
16632 archive_cmds_need_lc=no
16633 hardcode_direct=no
16634 hardcode_automatic=yes
16635 hardcode_shlibpath_var=unsupported
16636 if test "$lt_cv_ld_force_load" = "yes"; then
16637 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\"`'
16638 else
16639 whole_archive_flag_spec=''
16640 fi
16641 link_all_deplibs=yes
16642 allow_undefined_flag="$_lt_dar_allow_undefined"
16643 case $cc_basename in
16644 ifort*) _lt_dar_can_shared=yes ;;
16645 *) _lt_dar_can_shared=$GCC ;;
16646 esac
16647 if test "$_lt_dar_can_shared" = "yes"; then
16648 output_verbose_link_cmd=func_echo_all
16649 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16650 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16651 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}"
16652 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}"
16653
16654 else
16655 ld_shlibs=no
16656 fi
16657
16658 ;;
16659
16660 dgux*)
16661 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16662 hardcode_libdir_flag_spec='-L$libdir'
16663 hardcode_shlibpath_var=no
16664 ;;
16665
16666 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16667 # support. Future versions do this automatically, but an explicit c++rt0.o
16668 # does not break anything, and helps significantly (at the cost of a little
16669 # extra space).
16670 freebsd2.2*)
16671 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16672 hardcode_libdir_flag_spec='-R$libdir'
16673 hardcode_direct=yes
16674 hardcode_shlibpath_var=no
16675 ;;
16676
16677 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16678 freebsd2.*)
16679 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16680 hardcode_direct=yes
16681 hardcode_minus_L=yes
16682 hardcode_shlibpath_var=no
16683 ;;
16684
16685 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16686 freebsd* | dragonfly*)
16687 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16688 hardcode_libdir_flag_spec='-R$libdir'
16689 hardcode_direct=yes
16690 hardcode_shlibpath_var=no
16691 ;;
16692
16693 hpux9*)
16694 if test "$GCC" = yes; then
16695 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'
16696 else
16697 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'
16698 fi
16699 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16700 hardcode_libdir_separator=:
16701 hardcode_direct=yes
16702
16703 # hardcode_minus_L: Not really in the search PATH,
16704 # but as the default location of the library.
16705 hardcode_minus_L=yes
16706 export_dynamic_flag_spec='${wl}-E'
16707 ;;
16708
16709 hpux10*)
16710 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16711 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16712 else
16713 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16714 fi
16715 if test "$with_gnu_ld" = no; then
16716 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16717 hardcode_libdir_flag_spec_ld='+b $libdir'
16718 hardcode_libdir_separator=:
16719 hardcode_direct=yes
16720 hardcode_direct_absolute=yes
16721 export_dynamic_flag_spec='${wl}-E'
16722 # hardcode_minus_L: Not really in the search PATH,
16723 # but as the default location of the library.
16724 hardcode_minus_L=yes
16725 fi
16726 ;;
16727
16728 hpux11*)
16729 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16730 case $host_cpu in
16731 hppa*64*)
16732 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16733 ;;
16734 ia64*)
16735 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16736 ;;
16737 *)
16738 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16739 ;;
16740 esac
16741 else
16742 case $host_cpu in
16743 hppa*64*)
16744 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16745 ;;
16746 ia64*)
16747 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16748 ;;
16749 *)
16750
16751 # Older versions of the 11.00 compiler do not understand -b yet
16752 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16754 $as_echo_n "checking if $CC understands -b... " >&6; }
16755 if test "${lt_cv_prog_compiler__b+set}" = set; then :
16756 $as_echo_n "(cached) " >&6
16757 else
16758 lt_cv_prog_compiler__b=no
16759 save_LDFLAGS="$LDFLAGS"
16760 LDFLAGS="$LDFLAGS -b"
16761 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16762 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16763 # The linker can only warn and ignore the option if not recognized
16764 # So say no if there are warnings
16765 if test -s conftest.err; then
16766 # Append any errors to the config.log.
16767 cat conftest.err 1>&5
16768 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16769 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16770 if diff conftest.exp conftest.er2 >/dev/null; then
16771 lt_cv_prog_compiler__b=yes
16772 fi
16773 else
16774 lt_cv_prog_compiler__b=yes
16775 fi
16776 fi
16777 $RM -r conftest*
16778 LDFLAGS="$save_LDFLAGS"
16779
16780 fi
16781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16782 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16783
16784 if test x"$lt_cv_prog_compiler__b" = xyes; then
16785 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16786 else
16787 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16788 fi
16789
16790 ;;
16791 esac
16792 fi
16793 if test "$with_gnu_ld" = no; then
16794 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16795 hardcode_libdir_separator=:
16796
16797 case $host_cpu in
16798 hppa*64*|ia64*)
16799 hardcode_direct=no
16800 hardcode_shlibpath_var=no
16801 ;;
16802 *)
16803 hardcode_direct=yes
16804 hardcode_direct_absolute=yes
16805 export_dynamic_flag_spec='${wl}-E'
16806
16807 # hardcode_minus_L: Not really in the search PATH,
16808 # but as the default location of the library.
16809 hardcode_minus_L=yes
16810 ;;
16811 esac
16812 fi
16813 ;;
16814
16815 irix5* | irix6* | nonstopux*)
16816 if test "$GCC" = yes; then
16817 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'
16818 # Try to use the -exported_symbol ld option, if it does not
16819 # work, assume that -exports_file does not work either and
16820 # implicitly export all symbols.
16821 save_LDFLAGS="$LDFLAGS"
16822 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16824 /* end confdefs.h. */
16825 int foo(void) {}
16826 _ACEOF
16827 if ac_fn_c_try_link "$LINENO"; then :
16828 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'
16829
16830 fi
16831 rm -f core conftest.err conftest.$ac_objext \
16832 conftest$ac_exeext conftest.$ac_ext
16833 LDFLAGS="$save_LDFLAGS"
16834 else
16835 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'
16836 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'
16837 fi
16838 archive_cmds_need_lc='no'
16839 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16840 hardcode_libdir_separator=:
16841 inherit_rpath=yes
16842 link_all_deplibs=yes
16843 ;;
16844
16845 netbsd*)
16846 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16847 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16848 else
16849 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16850 fi
16851 hardcode_libdir_flag_spec='-R$libdir'
16852 hardcode_direct=yes
16853 hardcode_shlibpath_var=no
16854 ;;
16855
16856 newsos6)
16857 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16858 hardcode_direct=yes
16859 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16860 hardcode_libdir_separator=:
16861 hardcode_shlibpath_var=no
16862 ;;
16863
16864 *nto* | *qnx*)
16865 ;;
16866
16867 openbsd*)
16868 if test -f /usr/libexec/ld.so; then
16869 hardcode_direct=yes
16870 hardcode_shlibpath_var=no
16871 hardcode_direct_absolute=yes
16872 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16873 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16874 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16875 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16876 export_dynamic_flag_spec='${wl}-E'
16877 else
16878 case $host_os in
16879 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16880 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16881 hardcode_libdir_flag_spec='-R$libdir'
16882 ;;
16883 *)
16884 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16885 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16886 ;;
16887 esac
16888 fi
16889 else
16890 ld_shlibs=no
16891 fi
16892 ;;
16893
16894 os2*)
16895 hardcode_libdir_flag_spec='-L$libdir'
16896 hardcode_minus_L=yes
16897 allow_undefined_flag=unsupported
16898 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'
16899 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16900 ;;
16901
16902 osf3*)
16903 if test "$GCC" = yes; then
16904 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16905 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'
16906 else
16907 allow_undefined_flag=' -expect_unresolved \*'
16908 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'
16909 fi
16910 archive_cmds_need_lc='no'
16911 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16912 hardcode_libdir_separator=:
16913 ;;
16914
16915 osf4* | osf5*) # as osf3* with the addition of -msym flag
16916 if test "$GCC" = yes; then
16917 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16918 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'
16919 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16920 else
16921 allow_undefined_flag=' -expect_unresolved \*'
16922 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'
16923 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~
16924 $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'
16925
16926 # Both c and cxx compiler support -rpath directly
16927 hardcode_libdir_flag_spec='-rpath $libdir'
16928 fi
16929 archive_cmds_need_lc='no'
16930 hardcode_libdir_separator=:
16931 ;;
16932
16933 solaris*)
16934 no_undefined_flag=' -z defs'
16935 if test "$GCC" = yes; then
16936 wlarc='${wl}'
16937 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16938 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16939 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16940 else
16941 case `$CC -V 2>&1` in
16942 *"Compilers 5.0"*)
16943 wlarc=''
16944 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16945 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16946 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16947 ;;
16948 *)
16949 wlarc='${wl}'
16950 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16951 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16952 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16953 ;;
16954 esac
16955 fi
16956 hardcode_libdir_flag_spec='-R$libdir'
16957 hardcode_shlibpath_var=no
16958 case $host_os in
16959 solaris2.[0-5] | solaris2.[0-5].*) ;;
16960 *)
16961 # The compiler driver will combine and reorder linker options,
16962 # but understands `-z linker_flag'. GCC discards it without `$wl',
16963 # but is careful enough not to reorder.
16964 # Supported since Solaris 2.6 (maybe 2.5.1?)
16965 if test "$GCC" = yes; then
16966 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16967 else
16968 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16969 fi
16970 ;;
16971 esac
16972 link_all_deplibs=yes
16973 ;;
16974
16975 sunos4*)
16976 if test "x$host_vendor" = xsequent; then
16977 # Use $CC to link under sequent, because it throws in some extra .o
16978 # files that make .init and .fini sections work.
16979 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16980 else
16981 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16982 fi
16983 hardcode_libdir_flag_spec='-L$libdir'
16984 hardcode_direct=yes
16985 hardcode_minus_L=yes
16986 hardcode_shlibpath_var=no
16987 ;;
16988
16989 sysv4)
16990 case $host_vendor in
16991 sni)
16992 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16993 hardcode_direct=yes # is this really true???
16994 ;;
16995 siemens)
16996 ## LD is ld it makes a PLAMLIB
16997 ## CC just makes a GrossModule.
16998 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16999 reload_cmds='$CC -r -o $output$reload_objs'
17000 hardcode_direct=no
17001 ;;
17002 motorola)
17003 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17004 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
17005 ;;
17006 esac
17007 runpath_var='LD_RUN_PATH'
17008 hardcode_shlibpath_var=no
17009 ;;
17010
17011 sysv4.3*)
17012 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17013 hardcode_shlibpath_var=no
17014 export_dynamic_flag_spec='-Bexport'
17015 ;;
17016
17017 sysv4*MP*)
17018 if test -d /usr/nec; then
17019 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17020 hardcode_shlibpath_var=no
17021 runpath_var=LD_RUN_PATH
17022 hardcode_runpath_var=yes
17023 ld_shlibs=yes
17024 fi
17025 ;;
17026
17027 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17028 no_undefined_flag='${wl}-z,text'
17029 archive_cmds_need_lc=no
17030 hardcode_shlibpath_var=no
17031 runpath_var='LD_RUN_PATH'
17032
17033 if test "$GCC" = yes; then
17034 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17035 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17036 else
17037 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17038 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17039 fi
17040 ;;
17041
17042 sysv5* | sco3.2v5* | sco5v6*)
17043 # Note: We can NOT use -z defs as we might desire, because we do not
17044 # link with -lc, and that would cause any symbols used from libc to
17045 # always be unresolved, which means just about no library would
17046 # ever link correctly. If we're not using GNU ld we use -z text
17047 # though, which does catch some bad symbols but isn't as heavy-handed
17048 # as -z defs.
17049 no_undefined_flag='${wl}-z,text'
17050 allow_undefined_flag='${wl}-z,nodefs'
17051 archive_cmds_need_lc=no
17052 hardcode_shlibpath_var=no
17053 hardcode_libdir_flag_spec='${wl}-R,$libdir'
17054 hardcode_libdir_separator=':'
17055 link_all_deplibs=yes
17056 export_dynamic_flag_spec='${wl}-Bexport'
17057 runpath_var='LD_RUN_PATH'
17058
17059 if test "$GCC" = yes; then
17060 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17061 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17062 else
17063 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17064 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17065 fi
17066 ;;
17067
17068 uts4*)
17069 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17070 hardcode_libdir_flag_spec='-L$libdir'
17071 hardcode_shlibpath_var=no
17072 ;;
17073
17074 *)
17075 ld_shlibs=no
17076 ;;
17077 esac
17078
17079 if test x$host_vendor = xsni; then
17080 case $host in
17081 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17082 export_dynamic_flag_spec='${wl}-Blargedynsym'
17083 ;;
17084 esac
17085 fi
17086 fi
17087
17088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
17089 $as_echo "$ld_shlibs" >&6; }
17090 test "$ld_shlibs" = no && can_build_shared=no
17091
17092 with_gnu_ld=$with_gnu_ld
17093
17094
17095
17096
17097
17098
17099
17100
17101
17102
17103
17104
17105
17106
17107
17108 #
17109 # Do we need to explicitly link libc?
17110 #
17111 case "x$archive_cmds_need_lc" in
17112 x|xyes)
17113 # Assume -lc should be added
17114 archive_cmds_need_lc=yes
17115
17116 if test "$enable_shared" = yes && test "$GCC" = yes; then
17117 case $archive_cmds in
17118 *'~'*)
17119 # FIXME: we may have to deal with multi-command sequences.
17120 ;;
17121 '$CC '*)
17122 # Test whether the compiler implicitly links with -lc since on some
17123 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17124 # to ld, don't add -lc before -lgcc.
17125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17126 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17127 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
17128 $as_echo_n "(cached) " >&6
17129 else
17130 $RM conftest*
17131 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17132
17133 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17134 (eval $ac_compile) 2>&5
17135 ac_status=$?
17136 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17137 test $ac_status = 0; } 2>conftest.err; then
17138 soname=conftest
17139 lib=conftest
17140 libobjs=conftest.$ac_objext
17141 deplibs=
17142 wl=$lt_prog_compiler_wl
17143 pic_flag=$lt_prog_compiler_pic
17144 compiler_flags=-v
17145 linker_flags=-v
17146 verstring=
17147 output_objdir=.
17148 libname=conftest
17149 lt_save_allow_undefined_flag=$allow_undefined_flag
17150 allow_undefined_flag=
17151 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17152 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17153 ac_status=$?
17154 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17155 test $ac_status = 0; }
17156 then
17157 lt_cv_archive_cmds_need_lc=no
17158 else
17159 lt_cv_archive_cmds_need_lc=yes
17160 fi
17161 allow_undefined_flag=$lt_save_allow_undefined_flag
17162 else
17163 cat conftest.err 1>&5
17164 fi
17165 $RM conftest*
17166
17167 fi
17168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
17169 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
17170 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
17171 ;;
17172 esac
17173 fi
17174 ;;
17175 esac
17176
17177
17178
17179
17180
17181
17182
17183
17184
17185
17186
17187
17188
17189
17190
17191
17192
17193
17194
17195
17196
17197
17198
17199
17200
17201
17202
17203
17204
17205
17206
17207
17208
17209
17210
17211
17212
17213
17214
17215
17216
17217
17218
17219
17220
17221
17222
17223
17224
17225
17226
17227
17228
17229
17230
17231
17232
17233
17234
17235
17236
17237
17238
17239
17240
17241
17242
17243
17244
17245
17246
17247
17248
17249
17250
17251
17252
17253
17254
17255
17256
17257
17258
17259
17260
17261
17262
17263
17264
17265
17266
17267
17268
17269
17270
17271
17272
17273
17274
17275
17276
17277
17278
17279
17280
17281
17282
17283
17284
17285
17286
17287
17288
17289
17290
17291
17292
17293
17294
17295
17296
17297
17298
17299
17300
17301
17302
17303
17304
17305
17306
17307
17308
17309
17310
17311
17312
17313
17314
17315
17316
17317
17318
17319
17320
17321
17322
17323
17324
17325
17326
17327
17328
17329
17330
17331
17332
17333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17334 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17335
17336 if test "$GCC" = yes; then
17337 case $host_os in
17338 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
17339 *) lt_awk_arg="/^libraries:/" ;;
17340 esac
17341 case $host_os in
17342 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
17343 *) lt_sed_strip_eq="s,=/,/,g" ;;
17344 esac
17345 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
17346 case $lt_search_path_spec in
17347 *\;*)
17348 # if the path contains ";" then we assume it to be the separator
17349 # otherwise default to the standard path separator (i.e. ":") - it is
17350 # assumed that no part of a normal pathname contains ";" but that should
17351 # okay in the real world where ";" in dirpaths is itself problematic.
17352 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
17353 ;;
17354 *)
17355 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
17356 ;;
17357 esac
17358 # Ok, now we have the path, separated by spaces, we can step through it
17359 # and add multilib dir if necessary.
17360 lt_tmp_lt_search_path_spec=
17361 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
17362 for lt_sys_path in $lt_search_path_spec; do
17363 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
17364 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
17365 else
17366 test -d "$lt_sys_path" && \
17367 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
17368 fi
17369 done
17370 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
17371 BEGIN {RS=" "; FS="/|\n";} {
17372 lt_foo="";
17373 lt_count=0;
17374 for (lt_i = NF; lt_i > 0; lt_i--) {
17375 if ($lt_i != "" && $lt_i != ".") {
17376 if ($lt_i == "..") {
17377 lt_count++;
17378 } else {
17379 if (lt_count == 0) {
17380 lt_foo="/" $lt_i lt_foo;
17381 } else {
17382 lt_count--;
17383 }
17384 }
17385 }
17386 }
17387 if (lt_foo != "") { lt_freq[lt_foo]++; }
17388 if (lt_freq[lt_foo] == 1) { print lt_foo; }
17389 }'`
17390 # AWK program above erroneously prepends '/' to C:/dos/paths
17391 # for these hosts.
17392 case $host_os in
17393 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
17394 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
17395 esac
17396 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
17397 else
17398 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17399 fi
17400 library_names_spec=
17401 libname_spec='lib$name'
17402 soname_spec=
17403 shrext_cmds=".so"
17404 postinstall_cmds=
17405 postuninstall_cmds=
17406 finish_cmds=
17407 finish_eval=
17408 shlibpath_var=
17409 shlibpath_overrides_runpath=unknown
17410 version_type=none
17411 dynamic_linker="$host_os ld.so"
17412 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17413 need_lib_prefix=unknown
17414 hardcode_into_libs=no
17415
17416 # when you set need_version to no, make sure it does not cause -set_version
17417 # flags to be left without arguments
17418 need_version=unknown
17419
17420 case $host_os in
17421 aix3*)
17422 version_type=linux
17423 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17424 shlibpath_var=LIBPATH
17425
17426 # AIX 3 has no versioning support, so we append a major version to the name.
17427 soname_spec='${libname}${release}${shared_ext}$major'
17428 ;;
17429
17430 aix[4-9]*)
17431 version_type=linux
17432 need_lib_prefix=no
17433 need_version=no
17434 hardcode_into_libs=yes
17435 if test "$host_cpu" = ia64; then
17436 # AIX 5 supports IA64
17437 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17438 shlibpath_var=LD_LIBRARY_PATH
17439 else
17440 # With GCC up to 2.95.x, collect2 would create an import file
17441 # for dependence libraries. The import file would start with
17442 # the line `#! .'. This would cause the generated library to
17443 # depend on `.', always an invalid library. This was fixed in
17444 # development snapshots of GCC prior to 3.0.
17445 case $host_os in
17446 aix4 | aix4.[01] | aix4.[01].*)
17447 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17448 echo ' yes '
17449 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
17450 :
17451 else
17452 can_build_shared=no
17453 fi
17454 ;;
17455 esac
17456 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17457 # soname into executable. Probably we can add versioning support to
17458 # collect2, so additional links can be useful in future.
17459 if test "$aix_use_runtimelinking" = yes; then
17460 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17461 # instead of lib<name>.a to let people know that these are not
17462 # typical AIX shared libraries.
17463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17464 else
17465 # We preserve .a as extension for shared libraries through AIX4.2
17466 # and later when we are not doing run time linking.
17467 library_names_spec='${libname}${release}.a $libname.a'
17468 soname_spec='${libname}${release}${shared_ext}$major'
17469 fi
17470 shlibpath_var=LIBPATH
17471 fi
17472 ;;
17473
17474 amigaos*)
17475 case $host_cpu in
17476 powerpc)
17477 # Since July 2007 AmigaOS4 officially supports .so libraries.
17478 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17479 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17480 ;;
17481 m68k)
17482 library_names_spec='$libname.ixlibrary $libname.a'
17483 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17484 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'
17485 ;;
17486 esac
17487 ;;
17488
17489 beos*)
17490 library_names_spec='${libname}${shared_ext}'
17491 dynamic_linker="$host_os ld.so"
17492 shlibpath_var=LIBRARY_PATH
17493 ;;
17494
17495 bsdi[45]*)
17496 version_type=linux
17497 need_version=no
17498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17499 soname_spec='${libname}${release}${shared_ext}$major'
17500 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17501 shlibpath_var=LD_LIBRARY_PATH
17502 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17503 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17504 # the default ld.so.conf also contains /usr/contrib/lib and
17505 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17506 # libtool to hard-code these into programs
17507 ;;
17508
17509 cygwin* | mingw* | pw32* | cegcc*)
17510 version_type=windows
17511 shrext_cmds=".dll"
17512 need_version=no
17513 need_lib_prefix=no
17514
17515 case $GCC,$host_os in
17516 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
17517 library_names_spec='$libname.dll.a'
17518 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17519 postinstall_cmds='base_file=`basename \${file}`~
17520 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17521 dldir=$destdir/`dirname \$dlpath`~
17522 test -d \$dldir || mkdir -p \$dldir~
17523 $install_prog $dir/$dlname \$dldir/$dlname~
17524 chmod a+x \$dldir/$dlname~
17525 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17526 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17527 fi'
17528 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17529 dlpath=$dir/\$dldll~
17530 $RM \$dlpath'
17531 shlibpath_overrides_runpath=yes
17532
17533 case $host_os in
17534 cygwin*)
17535 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17536 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17537
17538 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
17539 ;;
17540 mingw* | cegcc*)
17541 # MinGW DLLs use traditional 'lib' prefix
17542 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17543 ;;
17544 pw32*)
17545 # pw32 DLLs use 'pw' prefix rather than 'lib'
17546 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17547 ;;
17548 esac
17549 ;;
17550
17551 *)
17552 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17553 ;;
17554 esac
17555 dynamic_linker='Win32 ld.exe'
17556 # FIXME: first we should search . and the directory the executable is in
17557 shlibpath_var=PATH
17558 ;;
17559
17560 darwin* | rhapsody*)
17561 dynamic_linker="$host_os dyld"
17562 version_type=darwin
17563 need_lib_prefix=no
17564 need_version=no
17565 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17566 soname_spec='${libname}${release}${major}$shared_ext'
17567 shlibpath_overrides_runpath=yes
17568 shlibpath_var=DYLD_LIBRARY_PATH
17569 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17570
17571 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
17572 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17573 ;;
17574
17575 dgux*)
17576 version_type=linux
17577 need_lib_prefix=no
17578 need_version=no
17579 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17580 soname_spec='${libname}${release}${shared_ext}$major'
17581 shlibpath_var=LD_LIBRARY_PATH
17582 ;;
17583
17584 freebsd* | dragonfly*)
17585 # DragonFly does not have aout. When/if they implement a new
17586 # versioning mechanism, adjust this.
17587 if test -x /usr/bin/objformat; then
17588 objformat=`/usr/bin/objformat`
17589 else
17590 case $host_os in
17591 freebsd[23].*) objformat=aout ;;
17592 *) objformat=elf ;;
17593 esac
17594 fi
17595 version_type=freebsd-$objformat
17596 case $version_type in
17597 freebsd-elf*)
17598 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17599 need_version=no
17600 need_lib_prefix=no
17601 ;;
17602 freebsd-*)
17603 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17604 need_version=yes
17605 ;;
17606 esac
17607 shlibpath_var=LD_LIBRARY_PATH
17608 case $host_os in
17609 freebsd2.*)
17610 shlibpath_overrides_runpath=yes
17611 ;;
17612 freebsd3.[01]* | freebsdelf3.[01]*)
17613 shlibpath_overrides_runpath=yes
17614 hardcode_into_libs=yes
17615 ;;
17616 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17617 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17618 shlibpath_overrides_runpath=no
17619 hardcode_into_libs=yes
17620 ;;
17621 *) # from 4.6 on, and DragonFly
17622 shlibpath_overrides_runpath=yes
17623 hardcode_into_libs=yes
17624 ;;
17625 esac
17626 ;;
17627
17628 gnu*)
17629 version_type=linux
17630 need_lib_prefix=no
17631 need_version=no
17632 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17633 soname_spec='${libname}${release}${shared_ext}$major'
17634 shlibpath_var=LD_LIBRARY_PATH
17635 hardcode_into_libs=yes
17636 ;;
17637
17638 haiku*)
17639 version_type=linux
17640 need_lib_prefix=no
17641 need_version=no
17642 dynamic_linker="$host_os runtime_loader"
17643 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17644 soname_spec='${libname}${release}${shared_ext}$major'
17645 shlibpath_var=LIBRARY_PATH
17646 shlibpath_overrides_runpath=yes
17647 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
17648 hardcode_into_libs=yes
17649 ;;
17650
17651 hpux9* | hpux10* | hpux11*)
17652 # Give a soname corresponding to the major version so that dld.sl refuses to
17653 # link against other versions.
17654 version_type=sunos
17655 need_lib_prefix=no
17656 need_version=no
17657 case $host_cpu in
17658 ia64*)
17659 shrext_cmds='.so'
17660 hardcode_into_libs=yes
17661 dynamic_linker="$host_os dld.so"
17662 shlibpath_var=LD_LIBRARY_PATH
17663 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17664 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17665 soname_spec='${libname}${release}${shared_ext}$major'
17666 if test "X$HPUX_IA64_MODE" = X32; then
17667 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17668 else
17669 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17670 fi
17671 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17672 ;;
17673 hppa*64*)
17674 shrext_cmds='.sl'
17675 hardcode_into_libs=yes
17676 dynamic_linker="$host_os dld.sl"
17677 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17678 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17679 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17680 soname_spec='${libname}${release}${shared_ext}$major'
17681 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17682 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17683 ;;
17684 *)
17685 shrext_cmds='.sl'
17686 dynamic_linker="$host_os dld.sl"
17687 shlibpath_var=SHLIB_PATH
17688 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17689 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17690 soname_spec='${libname}${release}${shared_ext}$major'
17691 ;;
17692 esac
17693 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17694 postinstall_cmds='chmod 555 $lib'
17695 # or fails outright, so override atomically:
17696 install_override_mode=555
17697 ;;
17698
17699 interix[3-9]*)
17700 version_type=linux
17701 need_lib_prefix=no
17702 need_version=no
17703 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17704 soname_spec='${libname}${release}${shared_ext}$major'
17705 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17706 shlibpath_var=LD_LIBRARY_PATH
17707 shlibpath_overrides_runpath=no
17708 hardcode_into_libs=yes
17709 ;;
17710
17711 irix5* | irix6* | nonstopux*)
17712 case $host_os in
17713 nonstopux*) version_type=nonstopux ;;
17714 *)
17715 if test "$lt_cv_prog_gnu_ld" = yes; then
17716 version_type=linux
17717 else
17718 version_type=irix
17719 fi ;;
17720 esac
17721 need_lib_prefix=no
17722 need_version=no
17723 soname_spec='${libname}${release}${shared_ext}$major'
17724 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17725 case $host_os in
17726 irix5* | nonstopux*)
17727 libsuff= shlibsuff=
17728 ;;
17729 *)
17730 case $LD in # libtool.m4 will add one of these switches to LD
17731 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17732 libsuff= shlibsuff= libmagic=32-bit;;
17733 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17734 libsuff=32 shlibsuff=N32 libmagic=N32;;
17735 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17736 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17737 *) libsuff= shlibsuff= libmagic=never-match;;
17738 esac
17739 ;;
17740 esac
17741 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17742 shlibpath_overrides_runpath=no
17743 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17744 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17745 hardcode_into_libs=yes
17746 ;;
17747
17748 # No shared lib support for Linux oldld, aout, or coff.
17749 linux*oldld* | linux*aout* | linux*coff*)
17750 dynamic_linker=no
17751 ;;
17752
17753 # This must be Linux ELF.
17754 linux* | k*bsd*-gnu | kopensolaris*-gnu)
17755 version_type=linux
17756 need_lib_prefix=no
17757 need_version=no
17758 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17759 soname_spec='${libname}${release}${shared_ext}$major'
17760 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17761 shlibpath_var=LD_LIBRARY_PATH
17762 shlibpath_overrides_runpath=no
17763
17764 # Some binutils ld are patched to set DT_RUNPATH
17765 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
17766 $as_echo_n "(cached) " >&6
17767 else
17768 lt_cv_shlibpath_overrides_runpath=no
17769 save_LDFLAGS=$LDFLAGS
17770 save_libdir=$libdir
17771 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17772 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17774 /* end confdefs.h. */
17775
17776 int
17777 main ()
17778 {
17779
17780 ;
17781 return 0;
17782 }
17783 _ACEOF
17784 if ac_fn_c_try_link "$LINENO"; then :
17785 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17786 lt_cv_shlibpath_overrides_runpath=yes
17787 fi
17788 fi
17789 rm -f core conftest.err conftest.$ac_objext \
17790 conftest$ac_exeext conftest.$ac_ext
17791 LDFLAGS=$save_LDFLAGS
17792 libdir=$save_libdir
17793
17794 fi
17795
17796 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17797
17798 # This implies no fast_install, which is unacceptable.
17799 # Some rework will be needed to allow for fast_install
17800 # before this can be enabled.
17801 hardcode_into_libs=yes
17802
17803 # Append ld.so.conf contents to the search path
17804 if test -f /etc/ld.so.conf; then
17805 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' ' '`
17806 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17807 fi
17808
17809 # We used to test for /lib/ld.so.1 and disable shared libraries on
17810 # powerpc, because MkLinux only supported shared libraries with the
17811 # GNU dynamic linker. Since this was broken with cross compilers,
17812 # most powerpc-linux boxes support dynamic linking these days and
17813 # people can always --disable-shared, the test was removed, and we
17814 # assume the GNU/Linux dynamic linker is in use.
17815 dynamic_linker='GNU/Linux ld.so'
17816 ;;
17817
17818 netbsd*)
17819 version_type=sunos
17820 need_lib_prefix=no
17821 need_version=no
17822 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17824 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17825 dynamic_linker='NetBSD (a.out) ld.so'
17826 else
17827 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17828 soname_spec='${libname}${release}${shared_ext}$major'
17829 dynamic_linker='NetBSD ld.elf_so'
17830 fi
17831 shlibpath_var=LD_LIBRARY_PATH
17832 shlibpath_overrides_runpath=yes
17833 hardcode_into_libs=yes
17834 ;;
17835
17836 newsos6)
17837 version_type=linux
17838 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17839 shlibpath_var=LD_LIBRARY_PATH
17840 shlibpath_overrides_runpath=yes
17841 ;;
17842
17843 *nto* | *qnx*)
17844 version_type=qnx
17845 need_lib_prefix=no
17846 need_version=no
17847 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17848 soname_spec='${libname}${release}${shared_ext}$major'
17849 shlibpath_var=LD_LIBRARY_PATH
17850 shlibpath_overrides_runpath=no
17851 hardcode_into_libs=yes
17852 dynamic_linker='ldqnx.so'
17853 ;;
17854
17855 openbsd*)
17856 version_type=sunos
17857 sys_lib_dlsearch_path_spec="/usr/lib"
17858 need_lib_prefix=no
17859 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17860 case $host_os in
17861 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17862 *) need_version=no ;;
17863 esac
17864 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17865 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17866 shlibpath_var=LD_LIBRARY_PATH
17867 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17868 case $host_os in
17869 openbsd2.[89] | openbsd2.[89].*)
17870 shlibpath_overrides_runpath=no
17871 ;;
17872 *)
17873 shlibpath_overrides_runpath=yes
17874 ;;
17875 esac
17876 else
17877 shlibpath_overrides_runpath=yes
17878 fi
17879 ;;
17880
17881 os2*)
17882 libname_spec='$name'
17883 shrext_cmds=".dll"
17884 need_lib_prefix=no
17885 library_names_spec='$libname${shared_ext} $libname.a'
17886 dynamic_linker='OS/2 ld.exe'
17887 shlibpath_var=LIBPATH
17888 ;;
17889
17890 osf3* | osf4* | osf5*)
17891 version_type=osf
17892 need_lib_prefix=no
17893 need_version=no
17894 soname_spec='${libname}${release}${shared_ext}$major'
17895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17896 shlibpath_var=LD_LIBRARY_PATH
17897 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17898 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17899 ;;
17900
17901 rdos*)
17902 dynamic_linker=no
17903 ;;
17904
17905 solaris*)
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 shlibpath_var=LD_LIBRARY_PATH
17912 shlibpath_overrides_runpath=yes
17913 hardcode_into_libs=yes
17914 # ldd complains unless libraries are executable
17915 postinstall_cmds='chmod +x $lib'
17916 ;;
17917
17918 sunos4*)
17919 version_type=sunos
17920 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17921 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17922 shlibpath_var=LD_LIBRARY_PATH
17923 shlibpath_overrides_runpath=yes
17924 if test "$with_gnu_ld" = yes; then
17925 need_lib_prefix=no
17926 fi
17927 need_version=yes
17928 ;;
17929
17930 sysv4 | sysv4.3*)
17931 version_type=linux
17932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17933 soname_spec='${libname}${release}${shared_ext}$major'
17934 shlibpath_var=LD_LIBRARY_PATH
17935 case $host_vendor in
17936 sni)
17937 shlibpath_overrides_runpath=no
17938 need_lib_prefix=no
17939 runpath_var=LD_RUN_PATH
17940 ;;
17941 siemens)
17942 need_lib_prefix=no
17943 ;;
17944 motorola)
17945 need_lib_prefix=no
17946 need_version=no
17947 shlibpath_overrides_runpath=no
17948 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17949 ;;
17950 esac
17951 ;;
17952
17953 sysv4*MP*)
17954 if test -d /usr/nec ;then
17955 version_type=linux
17956 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17957 soname_spec='$libname${shared_ext}.$major'
17958 shlibpath_var=LD_LIBRARY_PATH
17959 fi
17960 ;;
17961
17962 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17963 version_type=freebsd-elf
17964 need_lib_prefix=no
17965 need_version=no
17966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17967 soname_spec='${libname}${release}${shared_ext}$major'
17968 shlibpath_var=LD_LIBRARY_PATH
17969 shlibpath_overrides_runpath=yes
17970 hardcode_into_libs=yes
17971 if test "$with_gnu_ld" = yes; then
17972 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17973 else
17974 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17975 case $host_os in
17976 sco3.2v5*)
17977 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17978 ;;
17979 esac
17980 fi
17981 sys_lib_dlsearch_path_spec='/usr/lib'
17982 ;;
17983
17984 tpf*)
17985 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17986 version_type=linux
17987 need_lib_prefix=no
17988 need_version=no
17989 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17990 shlibpath_var=LD_LIBRARY_PATH
17991 shlibpath_overrides_runpath=no
17992 hardcode_into_libs=yes
17993 ;;
17994
17995 uts4*)
17996 version_type=linux
17997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17998 soname_spec='${libname}${release}${shared_ext}$major'
17999 shlibpath_var=LD_LIBRARY_PATH
18000 ;;
18001
18002 *)
18003 dynamic_linker=no
18004 ;;
18005 esac
18006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18007 $as_echo "$dynamic_linker" >&6; }
18008 test "$dynamic_linker" = no && can_build_shared=no
18009
18010 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18011 if test "$GCC" = yes; then
18012 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18013 fi
18014
18015 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18016 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18017 fi
18018 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18019 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18020 fi
18021
18022
18023
18024
18025
18026
18027
18028
18029
18030
18031
18032
18033
18034
18035
18036
18037
18038
18039
18040
18041
18042
18043
18044
18045
18046
18047
18048
18049
18050
18051
18052
18053
18054
18055
18056
18057
18058
18059
18060
18061
18062
18063
18064
18065
18066
18067
18068
18069
18070
18071
18072
18073
18074
18075
18076
18077
18078
18079
18080
18081
18082
18083
18084
18085
18086
18087
18088
18089
18090
18091
18092
18093
18094
18095
18096
18097
18098
18099
18100
18101
18102
18103
18104
18105
18106
18107
18108
18109
18110
18111
18112
18113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18114 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18115 hardcode_action=
18116 if test -n "$hardcode_libdir_flag_spec" ||
18117 test -n "$runpath_var" ||
18118 test "X$hardcode_automatic" = "Xyes" ; then
18119
18120 # We can hardcode non-existent directories.
18121 if test "$hardcode_direct" != no &&
18122 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18123 # have to relink, otherwise we might link with an installed library
18124 # when we should be linking with a yet-to-be-installed one
18125 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
18126 test "$hardcode_minus_L" != no; then
18127 # Linking always hardcodes the temporary library directory.
18128 hardcode_action=relink
18129 else
18130 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18131 hardcode_action=immediate
18132 fi
18133 else
18134 # We cannot hardcode anything, or else we can only hardcode existing
18135 # directories.
18136 hardcode_action=unsupported
18137 fi
18138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
18139 $as_echo "$hardcode_action" >&6; }
18140
18141 if test "$hardcode_action" = relink ||
18142 test "$inherit_rpath" = yes; then
18143 # Fast installation is not supported
18144 enable_fast_install=no
18145 elif test "$shlibpath_overrides_runpath" = yes ||
18146 test "$enable_shared" = no; then
18147 # Fast installation is not necessary
18148 enable_fast_install=needless
18149 fi
18150
18151
18152
18153
18154
18155
18156 if test "x$enable_dlopen" != xyes; then
18157 enable_dlopen=unknown
18158 enable_dlopen_self=unknown
18159 enable_dlopen_self_static=unknown
18160 else
18161 lt_cv_dlopen=no
18162 lt_cv_dlopen_libs=
18163
18164 case $host_os in
18165 beos*)
18166 lt_cv_dlopen="load_add_on"
18167 lt_cv_dlopen_libs=
18168 lt_cv_dlopen_self=yes
18169 ;;
18170
18171 mingw* | pw32* | cegcc*)
18172 lt_cv_dlopen="LoadLibrary"
18173 lt_cv_dlopen_libs=
18174 ;;
18175
18176 cygwin*)
18177 lt_cv_dlopen="dlopen"
18178 lt_cv_dlopen_libs=
18179 ;;
18180
18181 darwin*)
18182 # if libdl is installed we need to link against it
18183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18184 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18185 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
18186 $as_echo_n "(cached) " >&6
18187 else
18188 ac_check_lib_save_LIBS=$LIBS
18189 LIBS="-ldl $LIBS"
18190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18191 /* end confdefs.h. */
18192
18193 /* Override any GCC internal prototype to avoid an error.
18194 Use char because int might match the return type of a GCC
18195 builtin and then its argument prototype would still apply. */
18196 #ifdef __cplusplus
18197 extern "C"
18198 #endif
18199 char dlopen ();
18200 int
18201 main ()
18202 {
18203 return dlopen ();
18204 ;
18205 return 0;
18206 }
18207 _ACEOF
18208 if ac_fn_c_try_link "$LINENO"; then :
18209 ac_cv_lib_dl_dlopen=yes
18210 else
18211 ac_cv_lib_dl_dlopen=no
18212 fi
18213 rm -f core conftest.err conftest.$ac_objext \
18214 conftest$ac_exeext conftest.$ac_ext
18215 LIBS=$ac_check_lib_save_LIBS
18216 fi
18217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18218 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18219 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
18220 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18221 else
18222
18223 lt_cv_dlopen="dyld"
18224 lt_cv_dlopen_libs=
18225 lt_cv_dlopen_self=yes
18226
18227 fi
18228
18229 ;;
18230
18231 *)
18232 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
18233 if test "x$ac_cv_func_shl_load" = x""yes; then :
18234 lt_cv_dlopen="shl_load"
18235 else
18236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
18237 $as_echo_n "checking for shl_load in -ldld... " >&6; }
18238 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
18239 $as_echo_n "(cached) " >&6
18240 else
18241 ac_check_lib_save_LIBS=$LIBS
18242 LIBS="-ldld $LIBS"
18243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18244 /* end confdefs.h. */
18245
18246 /* Override any GCC internal prototype to avoid an error.
18247 Use char because int might match the return type of a GCC
18248 builtin and then its argument prototype would still apply. */
18249 #ifdef __cplusplus
18250 extern "C"
18251 #endif
18252 char shl_load ();
18253 int
18254 main ()
18255 {
18256 return shl_load ();
18257 ;
18258 return 0;
18259 }
18260 _ACEOF
18261 if ac_fn_c_try_link "$LINENO"; then :
18262 ac_cv_lib_dld_shl_load=yes
18263 else
18264 ac_cv_lib_dld_shl_load=no
18265 fi
18266 rm -f core conftest.err conftest.$ac_objext \
18267 conftest$ac_exeext conftest.$ac_ext
18268 LIBS=$ac_check_lib_save_LIBS
18269 fi
18270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
18271 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
18272 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
18273 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
18274 else
18275 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
18276 if test "x$ac_cv_func_dlopen" = x""yes; then :
18277 lt_cv_dlopen="dlopen"
18278 else
18279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18280 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18281 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
18282 $as_echo_n "(cached) " >&6
18283 else
18284 ac_check_lib_save_LIBS=$LIBS
18285 LIBS="-ldl $LIBS"
18286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18287 /* end confdefs.h. */
18288
18289 /* Override any GCC internal prototype to avoid an error.
18290 Use char because int might match the return type of a GCC
18291 builtin and then its argument prototype would still apply. */
18292 #ifdef __cplusplus
18293 extern "C"
18294 #endif
18295 char dlopen ();
18296 int
18297 main ()
18298 {
18299 return dlopen ();
18300 ;
18301 return 0;
18302 }
18303 _ACEOF
18304 if ac_fn_c_try_link "$LINENO"; then :
18305 ac_cv_lib_dl_dlopen=yes
18306 else
18307 ac_cv_lib_dl_dlopen=no
18308 fi
18309 rm -f core conftest.err conftest.$ac_objext \
18310 conftest$ac_exeext conftest.$ac_ext
18311 LIBS=$ac_check_lib_save_LIBS
18312 fi
18313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18314 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18315 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
18316 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18317 else
18318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
18319 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
18320 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
18321 $as_echo_n "(cached) " >&6
18322 else
18323 ac_check_lib_save_LIBS=$LIBS
18324 LIBS="-lsvld $LIBS"
18325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18326 /* end confdefs.h. */
18327
18328 /* Override any GCC internal prototype to avoid an error.
18329 Use char because int might match the return type of a GCC
18330 builtin and then its argument prototype would still apply. */
18331 #ifdef __cplusplus
18332 extern "C"
18333 #endif
18334 char dlopen ();
18335 int
18336 main ()
18337 {
18338 return dlopen ();
18339 ;
18340 return 0;
18341 }
18342 _ACEOF
18343 if ac_fn_c_try_link "$LINENO"; then :
18344 ac_cv_lib_svld_dlopen=yes
18345 else
18346 ac_cv_lib_svld_dlopen=no
18347 fi
18348 rm -f core conftest.err conftest.$ac_objext \
18349 conftest$ac_exeext conftest.$ac_ext
18350 LIBS=$ac_check_lib_save_LIBS
18351 fi
18352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
18353 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
18354 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
18355 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18356 else
18357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
18358 $as_echo_n "checking for dld_link in -ldld... " >&6; }
18359 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
18360 $as_echo_n "(cached) " >&6
18361 else
18362 ac_check_lib_save_LIBS=$LIBS
18363 LIBS="-ldld $LIBS"
18364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18365 /* end confdefs.h. */
18366
18367 /* Override any GCC internal prototype to avoid an error.
18368 Use char because int might match the return type of a GCC
18369 builtin and then its argument prototype would still apply. */
18370 #ifdef __cplusplus
18371 extern "C"
18372 #endif
18373 char dld_link ();
18374 int
18375 main ()
18376 {
18377 return dld_link ();
18378 ;
18379 return 0;
18380 }
18381 _ACEOF
18382 if ac_fn_c_try_link "$LINENO"; then :
18383 ac_cv_lib_dld_dld_link=yes
18384 else
18385 ac_cv_lib_dld_dld_link=no
18386 fi
18387 rm -f core conftest.err conftest.$ac_objext \
18388 conftest$ac_exeext conftest.$ac_ext
18389 LIBS=$ac_check_lib_save_LIBS
18390 fi
18391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
18392 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
18393 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
18394 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
18395 fi
18396
18397
18398 fi
18399
18400
18401 fi
18402
18403
18404 fi
18405
18406
18407 fi
18408
18409
18410 fi
18411
18412 ;;
18413 esac
18414
18415 if test "x$lt_cv_dlopen" != xno; then
18416 enable_dlopen=yes
18417 else
18418 enable_dlopen=no
18419 fi
18420
18421 case $lt_cv_dlopen in
18422 dlopen)
18423 save_CPPFLAGS="$CPPFLAGS"
18424 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18425
18426 save_LDFLAGS="$LDFLAGS"
18427 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18428
18429 save_LIBS="$LIBS"
18430 LIBS="$lt_cv_dlopen_libs $LIBS"
18431
18432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
18433 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
18434 if test "${lt_cv_dlopen_self+set}" = set; then :
18435 $as_echo_n "(cached) " >&6
18436 else
18437 if test "$cross_compiling" = yes; then :
18438 lt_cv_dlopen_self=cross
18439 else
18440 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18441 lt_status=$lt_dlunknown
18442 cat > conftest.$ac_ext <<_LT_EOF
18443 #line 18443 "configure"
18444 #include "confdefs.h"
18445
18446 #if HAVE_DLFCN_H
18447 #include <dlfcn.h>
18448 #endif
18449
18450 #include <stdio.h>
18451
18452 #ifdef RTLD_GLOBAL
18453 # define LT_DLGLOBAL RTLD_GLOBAL
18454 #else
18455 # ifdef DL_GLOBAL
18456 # define LT_DLGLOBAL DL_GLOBAL
18457 # else
18458 # define LT_DLGLOBAL 0
18459 # endif
18460 #endif
18461
18462 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18463 find out it does not work in some platform. */
18464 #ifndef LT_DLLAZY_OR_NOW
18465 # ifdef RTLD_LAZY
18466 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18467 # else
18468 # ifdef DL_LAZY
18469 # define LT_DLLAZY_OR_NOW DL_LAZY
18470 # else
18471 # ifdef RTLD_NOW
18472 # define LT_DLLAZY_OR_NOW RTLD_NOW
18473 # else
18474 # ifdef DL_NOW
18475 # define LT_DLLAZY_OR_NOW DL_NOW
18476 # else
18477 # define LT_DLLAZY_OR_NOW 0
18478 # endif
18479 # endif
18480 # endif
18481 # endif
18482 #endif
18483
18484 /* When -fvisbility=hidden is used, assume the code has been annotated
18485 correspondingly for the symbols needed. */
18486 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18487 void fnord () __attribute__((visibility("default")));
18488 #endif
18489
18490 void fnord () { int i=42; }
18491 int main ()
18492 {
18493 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18494 int status = $lt_dlunknown;
18495
18496 if (self)
18497 {
18498 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18499 else
18500 {
18501 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18502 else puts (dlerror ());
18503 }
18504 /* dlclose (self); */
18505 }
18506 else
18507 puts (dlerror ());
18508
18509 return status;
18510 }
18511 _LT_EOF
18512 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18513 (eval $ac_link) 2>&5
18514 ac_status=$?
18515 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18516 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18517 (./conftest; exit; ) >&5 2>/dev/null
18518 lt_status=$?
18519 case x$lt_status in
18520 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18521 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18522 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
18523 esac
18524 else :
18525 # compilation failed
18526 lt_cv_dlopen_self=no
18527 fi
18528 fi
18529 rm -fr conftest*
18530
18531
18532 fi
18533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18534 $as_echo "$lt_cv_dlopen_self" >&6; }
18535
18536 if test "x$lt_cv_dlopen_self" = xyes; then
18537 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
18538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18539 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18540 if test "${lt_cv_dlopen_self_static+set}" = set; then :
18541 $as_echo_n "(cached) " >&6
18542 else
18543 if test "$cross_compiling" = yes; then :
18544 lt_cv_dlopen_self_static=cross
18545 else
18546 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18547 lt_status=$lt_dlunknown
18548 cat > conftest.$ac_ext <<_LT_EOF
18549 #line 18549 "configure"
18550 #include "confdefs.h"
18551
18552 #if HAVE_DLFCN_H
18553 #include <dlfcn.h>
18554 #endif
18555
18556 #include <stdio.h>
18557
18558 #ifdef RTLD_GLOBAL
18559 # define LT_DLGLOBAL RTLD_GLOBAL
18560 #else
18561 # ifdef DL_GLOBAL
18562 # define LT_DLGLOBAL DL_GLOBAL
18563 # else
18564 # define LT_DLGLOBAL 0
18565 # endif
18566 #endif
18567
18568 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18569 find out it does not work in some platform. */
18570 #ifndef LT_DLLAZY_OR_NOW
18571 # ifdef RTLD_LAZY
18572 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18573 # else
18574 # ifdef DL_LAZY
18575 # define LT_DLLAZY_OR_NOW DL_LAZY
18576 # else
18577 # ifdef RTLD_NOW
18578 # define LT_DLLAZY_OR_NOW RTLD_NOW
18579 # else
18580 # ifdef DL_NOW
18581 # define LT_DLLAZY_OR_NOW DL_NOW
18582 # else
18583 # define LT_DLLAZY_OR_NOW 0
18584 # endif
18585 # endif
18586 # endif
18587 # endif
18588 #endif
18589
18590 /* When -fvisbility=hidden is used, assume the code has been annotated
18591 correspondingly for the symbols needed. */
18592 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18593 void fnord () __attribute__((visibility("default")));
18594 #endif
18595
18596 void fnord () { int i=42; }
18597 int main ()
18598 {
18599 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18600 int status = $lt_dlunknown;
18601
18602 if (self)
18603 {
18604 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18605 else
18606 {
18607 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18608 else puts (dlerror ());
18609 }
18610 /* dlclose (self); */
18611 }
18612 else
18613 puts (dlerror ());
18614
18615 return status;
18616 }
18617 _LT_EOF
18618 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18619 (eval $ac_link) 2>&5
18620 ac_status=$?
18621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18622 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18623 (./conftest; exit; ) >&5 2>/dev/null
18624 lt_status=$?
18625 case x$lt_status in
18626 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18627 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18628 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
18629 esac
18630 else :
18631 # compilation failed
18632 lt_cv_dlopen_self_static=no
18633 fi
18634 fi
18635 rm -fr conftest*
18636
18637
18638 fi
18639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18640 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18641 fi
18642
18643 CPPFLAGS="$save_CPPFLAGS"
18644 LDFLAGS="$save_LDFLAGS"
18645 LIBS="$save_LIBS"
18646 ;;
18647 esac
18648
18649 case $lt_cv_dlopen_self in
18650 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18651 *) enable_dlopen_self=unknown ;;
18652 esac
18653
18654 case $lt_cv_dlopen_self_static in
18655 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18656 *) enable_dlopen_self_static=unknown ;;
18657 esac
18658 fi
18659
18660
18661
18662
18663
18664
18665
18666
18667
18668
18669
18670
18671
18672
18673
18674
18675
18676 striplib=
18677 old_striplib=
18678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18679 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18680 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
18681 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18682 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18684 $as_echo "yes" >&6; }
18685 else
18686 # FIXME - insert some real tests, host_os isn't really good enough
18687 case $host_os in
18688 darwin*)
18689 if test -n "$STRIP" ; then
18690 striplib="$STRIP -x"
18691 old_striplib="$STRIP -S"
18692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18693 $as_echo "yes" >&6; }
18694 else
18695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18696 $as_echo "no" >&6; }
18697 fi
18698 ;;
18699 *)
18700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18701 $as_echo "no" >&6; }
18702 ;;
18703 esac
18704 fi
18705
18706
18707
18708
18709
18710
18711
18712
18713
18714
18715
18716
18717 # Report which library types will actually be built
18718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18719 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18721 $as_echo "$can_build_shared" >&6; }
18722
18723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18724 $as_echo_n "checking whether to build shared libraries... " >&6; }
18725 test "$can_build_shared" = "no" && enable_shared=no
18726
18727 # On AIX, shared libraries and static libraries use the same namespace, and
18728 # are all built from PIC.
18729 case $host_os in
18730 aix3*)
18731 test "$enable_shared" = yes && enable_static=no
18732 if test -n "$RANLIB"; then
18733 archive_cmds="$archive_cmds~\$RANLIB \$lib"
18734 postinstall_cmds='$RANLIB $lib'
18735 fi
18736 ;;
18737
18738 aix[4-9]*)
18739 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
18740 test "$enable_shared" = yes && enable_static=no
18741 fi
18742 ;;
18743 esac
18744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18745 $as_echo "$enable_shared" >&6; }
18746
18747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18748 $as_echo_n "checking whether to build static libraries... " >&6; }
18749 # Make sure either enable_shared or enable_static is yes.
18750 test "$enable_shared" = yes || enable_static=yes
18751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18752 $as_echo "$enable_static" >&6; }
18753
18754
18755
18756
18757 fi
18758 ac_ext=cpp
18759 ac_cpp='$CXXCPP $CPPFLAGS'
18760 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18761 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18762 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18763
18764 CC="$lt_save_CC"
18765
18766 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18767 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18768 (test "X$CXX" != "Xg++"))) ; then
18769 ac_ext=cpp
18770 ac_cpp='$CXXCPP $CPPFLAGS'
18771 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18772 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18773 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18775 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18776 if test -z "$CXXCPP"; then
18777 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
18778 $as_echo_n "(cached) " >&6
18779 else
18780 # Double quotes because CXXCPP needs to be expanded
18781 for CXXCPP in "$CXX -E" "/lib/cpp"
18782 do
18783 ac_preproc_ok=false
18784 for ac_cxx_preproc_warn_flag in '' yes
18785 do
18786 # Use a header file that comes with gcc, so configuring glibc
18787 # with a fresh cross-compiler works.
18788 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18789 # <limits.h> exists even on freestanding compilers.
18790 # On the NeXT, cc -E runs the code through the compiler's parser,
18791 # not just through cpp. "Syntax error" is here to catch this case.
18792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18793 /* end confdefs.h. */
18794 #ifdef __STDC__
18795 # include <limits.h>
18796 #else
18797 # include <assert.h>
18798 #endif
18799 Syntax error
18800 _ACEOF
18801 if ac_fn_cxx_try_cpp "$LINENO"; then :
18802
18803 else
18804 # Broken: fails on valid input.
18805 continue
18806 fi
18807 rm -f conftest.err conftest.$ac_ext
18808
18809 # OK, works on sane cases. Now check whether nonexistent headers
18810 # can be detected and how.
18811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18812 /* end confdefs.h. */
18813 #include <ac_nonexistent.h>
18814 _ACEOF
18815 if ac_fn_cxx_try_cpp "$LINENO"; then :
18816 # Broken: success on invalid input.
18817 continue
18818 else
18819 # Passes both tests.
18820 ac_preproc_ok=:
18821 break
18822 fi
18823 rm -f conftest.err conftest.$ac_ext
18824
18825 done
18826 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18827 rm -f conftest.err conftest.$ac_ext
18828 if $ac_preproc_ok; then :
18829 break
18830 fi
18831
18832 done
18833 ac_cv_prog_CXXCPP=$CXXCPP
18834
18835 fi
18836 CXXCPP=$ac_cv_prog_CXXCPP
18837 else
18838 ac_cv_prog_CXXCPP=$CXXCPP
18839 fi
18840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18841 $as_echo "$CXXCPP" >&6; }
18842 ac_preproc_ok=false
18843 for ac_cxx_preproc_warn_flag in '' yes
18844 do
18845 # Use a header file that comes with gcc, so configuring glibc
18846 # with a fresh cross-compiler works.
18847 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18848 # <limits.h> exists even on freestanding compilers.
18849 # On the NeXT, cc -E runs the code through the compiler's parser,
18850 # not just through cpp. "Syntax error" is here to catch this case.
18851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18852 /* end confdefs.h. */
18853 #ifdef __STDC__
18854 # include <limits.h>
18855 #else
18856 # include <assert.h>
18857 #endif
18858 Syntax error
18859 _ACEOF
18860 if ac_fn_cxx_try_cpp "$LINENO"; then :
18861
18862 else
18863 # Broken: fails on valid input.
18864 continue
18865 fi
18866 rm -f conftest.err conftest.$ac_ext
18867
18868 # OK, works on sane cases. Now check whether nonexistent headers
18869 # can be detected and how.
18870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18871 /* end confdefs.h. */
18872 #include <ac_nonexistent.h>
18873 _ACEOF
18874 if ac_fn_cxx_try_cpp "$LINENO"; then :
18875 # Broken: success on invalid input.
18876 continue
18877 else
18878 # Passes both tests.
18879 ac_preproc_ok=:
18880 break
18881 fi
18882 rm -f conftest.err conftest.$ac_ext
18883
18884 done
18885 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18886 rm -f conftest.err conftest.$ac_ext
18887 if $ac_preproc_ok; then :
18888
18889 else
18890 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18891 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18892 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
18893 See \`config.log' for more details." "$LINENO" 5; }
18894 fi
18895
18896 ac_ext=cpp
18897 ac_cpp='$CXXCPP $CPPFLAGS'
18898 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18899 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18900 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18901
18902 else
18903 _lt_caught_CXX_error=yes
18904 fi
18905
18906 ac_ext=cpp
18907 ac_cpp='$CXXCPP $CPPFLAGS'
18908 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18909 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18910 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18911
18912 archive_cmds_need_lc_CXX=no
18913 allow_undefined_flag_CXX=
18914 always_export_symbols_CXX=no
18915 archive_expsym_cmds_CXX=
18916 compiler_needs_object_CXX=no
18917 export_dynamic_flag_spec_CXX=
18918 hardcode_direct_CXX=no
18919 hardcode_direct_absolute_CXX=no
18920 hardcode_libdir_flag_spec_CXX=
18921 hardcode_libdir_flag_spec_ld_CXX=
18922 hardcode_libdir_separator_CXX=
18923 hardcode_minus_L_CXX=no
18924 hardcode_shlibpath_var_CXX=unsupported
18925 hardcode_automatic_CXX=no
18926 inherit_rpath_CXX=no
18927 module_cmds_CXX=
18928 module_expsym_cmds_CXX=
18929 link_all_deplibs_CXX=unknown
18930 old_archive_cmds_CXX=$old_archive_cmds
18931 reload_flag_CXX=$reload_flag
18932 reload_cmds_CXX=$reload_cmds
18933 no_undefined_flag_CXX=
18934 whole_archive_flag_spec_CXX=
18935 enable_shared_with_static_runtimes_CXX=no
18936
18937 # Source file extension for C++ test sources.
18938 ac_ext=cpp
18939
18940 # Object file extension for compiled C++ test sources.
18941 objext=o
18942 objext_CXX=$objext
18943
18944 # No sense in running all these tests if we already determined that
18945 # the CXX compiler isn't working. Some variables (like enable_shared)
18946 # are currently assumed to apply to all compilers on this platform,
18947 # and will be corrupted by setting them based on a non-working compiler.
18948 if test "$_lt_caught_CXX_error" != yes; then
18949 # Code to be used in simple compile tests
18950 lt_simple_compile_test_code="int some_variable = 0;"
18951
18952 # Code to be used in simple link tests
18953 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
18954
18955 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18956
18957
18958
18959
18960
18961
18962 # If no C compiler was specified, use CC.
18963 LTCC=${LTCC-"$CC"}
18964
18965 # If no C compiler flags were specified, use CFLAGS.
18966 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18967
18968 # Allow CC to be a program name with arguments.
18969 compiler=$CC
18970
18971
18972 # save warnings/boilerplate of simple test code
18973 ac_outfile=conftest.$ac_objext
18974 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18975 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18976 _lt_compiler_boilerplate=`cat conftest.err`
18977 $RM conftest*
18978
18979 ac_outfile=conftest.$ac_objext
18980 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18981 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18982 _lt_linker_boilerplate=`cat conftest.err`
18983 $RM -r conftest*
18984
18985
18986 # Allow CC to be a program name with arguments.
18987 lt_save_CC=$CC
18988 lt_save_LD=$LD
18989 lt_save_GCC=$GCC
18990 GCC=$GXX
18991 lt_save_with_gnu_ld=$with_gnu_ld
18992 lt_save_path_LD=$lt_cv_path_LD
18993 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18994 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18995 else
18996 $as_unset lt_cv_prog_gnu_ld
18997 fi
18998 if test -n "${lt_cv_path_LDCXX+set}"; then
18999 lt_cv_path_LD=$lt_cv_path_LDCXX
19000 else
19001 $as_unset lt_cv_path_LD
19002 fi
19003 test -z "${LDCXX+set}" || LD=$LDCXX
19004 CC=${CXX-"c++"}
19005 compiler=$CC
19006 compiler_CXX=$CC
19007 for cc_temp in $compiler""; do
19008 case $cc_temp in
19009 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19010 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19011 \-*) ;;
19012 *) break;;
19013 esac
19014 done
19015 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
19016
19017
19018 if test -n "$compiler"; then
19019 # We don't want -fno-exception when compiling C++ code, so set the
19020 # no_builtin_flag separately
19021 if test "$GXX" = yes; then
19022 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
19023 else
19024 lt_prog_compiler_no_builtin_flag_CXX=
19025 fi
19026
19027 if test "$GXX" = yes; then
19028 # Set up default GNU C++ configuration
19029
19030
19031
19032 # Check whether --with-gnu-ld was given.
19033 if test "${with_gnu_ld+set}" = set; then :
19034 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
19035 else
19036 with_gnu_ld=no
19037 fi
19038
19039 ac_prog=ld
19040 if test "$GCC" = yes; then
19041 # Check if gcc -print-prog-name=ld gives a path.
19042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
19043 $as_echo_n "checking for ld used by $CC... " >&6; }
19044 case $host in
19045 *-*-mingw*)
19046 # gcc leaves a trailing carriage return which upsets mingw
19047 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
19048 *)
19049 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
19050 esac
19051 case $ac_prog in
19052 # Accept absolute paths.
19053 [\\/]* | ?:[\\/]*)
19054 re_direlt='/[^/][^/]*/\.\./'
19055 # Canonicalize the pathname of ld
19056 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
19057 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
19058 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
19059 done
19060 test -z "$LD" && LD="$ac_prog"
19061 ;;
19062 "")
19063 # If it fails, then pretend we aren't using GCC.
19064 ac_prog=ld
19065 ;;
19066 *)
19067 # If it is relative, then search for the first ld in PATH.
19068 with_gnu_ld=unknown
19069 ;;
19070 esac
19071 elif test "$with_gnu_ld" = yes; then
19072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
19073 $as_echo_n "checking for GNU ld... " >&6; }
19074 else
19075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
19076 $as_echo_n "checking for non-GNU ld... " >&6; }
19077 fi
19078 if test "${lt_cv_path_LD+set}" = set; then :
19079 $as_echo_n "(cached) " >&6
19080 else
19081 if test -z "$LD"; then
19082 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
19083 for ac_dir in $PATH; do
19084 IFS="$lt_save_ifs"
19085 test -z "$ac_dir" && ac_dir=.
19086 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
19087 lt_cv_path_LD="$ac_dir/$ac_prog"
19088 # Check to see if the program is GNU ld. I'd rather use --version,
19089 # but apparently some variants of GNU ld only accept -v.
19090 # Break only if it was the GNU/non-GNU ld that we prefer.
19091 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
19092 *GNU* | *'with BFD'*)
19093 test "$with_gnu_ld" != no && break
19094 ;;
19095 *)
19096 test "$with_gnu_ld" != yes && break
19097 ;;
19098 esac
19099 fi
19100 done
19101 IFS="$lt_save_ifs"
19102 else
19103 lt_cv_path_LD="$LD" # Let the user override the test with a path.
19104 fi
19105 fi
19106
19107 LD="$lt_cv_path_LD"
19108 if test -n "$LD"; then
19109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
19110 $as_echo "$LD" >&6; }
19111 else
19112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19113 $as_echo "no" >&6; }
19114 fi
19115 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
19116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
19117 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
19118 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
19119 $as_echo_n "(cached) " >&6
19120 else
19121 # I'd rather use --version here, but apparently some GNU lds only accept -v.
19122 case `$LD -v 2>&1 </dev/null` in
19123 *GNU* | *'with BFD'*)
19124 lt_cv_prog_gnu_ld=yes
19125 ;;
19126 *)
19127 lt_cv_prog_gnu_ld=no
19128 ;;
19129 esac
19130 fi
19131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
19132 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
19133 with_gnu_ld=$lt_cv_prog_gnu_ld
19134
19135
19136
19137
19138
19139
19140
19141 # Check if GNU C++ uses GNU ld as the underlying linker, since the
19142 # archiving commands below assume that GNU ld is being used.
19143 if test "$with_gnu_ld" = yes; then
19144 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19145 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'
19146
19147 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19148 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19149
19150 # If archive_cmds runs LD, not CC, wlarc should be empty
19151 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
19152 # investigate it a little bit more. (MM)
19153 wlarc='${wl}'
19154
19155 # ancient GNU ld didn't support --whole-archive et. al.
19156 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
19157 $GREP 'no-whole-archive' > /dev/null; then
19158 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19159 else
19160 whole_archive_flag_spec_CXX=
19161 fi
19162 else
19163 with_gnu_ld=no
19164 wlarc=
19165
19166 # A generic and very simple default shared library creation
19167 # command for GNU C++ for the case where it uses the native
19168 # linker, instead of GNU ld. If possible, this setting should
19169 # overridden to take advantage of the native linker features on
19170 # the platform it is being used on.
19171 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19172 fi
19173
19174 # Commands to make compiler produce verbose output that lists
19175 # what "hidden" libraries, object files and flags are used when
19176 # linking a shared library.
19177 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19178
19179 else
19180 GXX=no
19181 with_gnu_ld=no
19182 wlarc=
19183 fi
19184
19185 # PORTME: fill in a description of your system's C++ link characteristics
19186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19187 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19188 ld_shlibs_CXX=yes
19189 case $host_os in
19190 aix3*)
19191 # FIXME: insert proper C++ library support
19192 ld_shlibs_CXX=no
19193 ;;
19194 aix[4-9]*)
19195 if test "$host_cpu" = ia64; then
19196 # On IA64, the linker does run time linking by default, so we don't
19197 # have to do anything special.
19198 aix_use_runtimelinking=no
19199 exp_sym_flag='-Bexport'
19200 no_entry_flag=""
19201 else
19202 aix_use_runtimelinking=no
19203
19204 # Test if we are trying to use run time linking or normal
19205 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19206 # need to do runtime linking.
19207 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
19208 for ld_flag in $LDFLAGS; do
19209 case $ld_flag in
19210 *-brtl*)
19211 aix_use_runtimelinking=yes
19212 break
19213 ;;
19214 esac
19215 done
19216 ;;
19217 esac
19218
19219 exp_sym_flag='-bexport'
19220 no_entry_flag='-bnoentry'
19221 fi
19222
19223 # When large executables or shared objects are built, AIX ld can
19224 # have problems creating the table of contents. If linking a library
19225 # or program results in "error TOC overflow" add -mminimal-toc to
19226 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19227 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19228
19229 archive_cmds_CXX=''
19230 hardcode_direct_CXX=yes
19231 hardcode_direct_absolute_CXX=yes
19232 hardcode_libdir_separator_CXX=':'
19233 link_all_deplibs_CXX=yes
19234 file_list_spec_CXX='${wl}-f,'
19235
19236 if test "$GXX" = yes; then
19237 case $host_os in aix4.[012]|aix4.[012].*)
19238 # We only want to do this on AIX 4.2 and lower, the check
19239 # below for broken collect2 doesn't work under 4.3+
19240 collect2name=`${CC} -print-prog-name=collect2`
19241 if test -f "$collect2name" &&
19242 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
19243 then
19244 # We have reworked collect2
19245 :
19246 else
19247 # We have old collect2
19248 hardcode_direct_CXX=unsupported
19249 # It fails to find uninstalled libraries when the uninstalled
19250 # path is not listed in the libpath. Setting hardcode_minus_L
19251 # to unsupported forces relinking
19252 hardcode_minus_L_CXX=yes
19253 hardcode_libdir_flag_spec_CXX='-L$libdir'
19254 hardcode_libdir_separator_CXX=
19255 fi
19256 esac
19257 shared_flag='-shared'
19258 if test "$aix_use_runtimelinking" = yes; then
19259 shared_flag="$shared_flag "'${wl}-G'
19260 fi
19261 else
19262 # not using gcc
19263 if test "$host_cpu" = ia64; then
19264 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19265 # chokes on -Wl,-G. The following line is correct:
19266 shared_flag='-G'
19267 else
19268 if test "$aix_use_runtimelinking" = yes; then
19269 shared_flag='${wl}-G'
19270 else
19271 shared_flag='${wl}-bM:SRE'
19272 fi
19273 fi
19274 fi
19275
19276 export_dynamic_flag_spec_CXX='${wl}-bexpall'
19277 # It seems that -bexpall does not export symbols beginning with
19278 # underscore (_), so it is better to generate a list of symbols to
19279 # export.
19280 always_export_symbols_CXX=yes
19281 if test "$aix_use_runtimelinking" = yes; then
19282 # Warning - without using the other runtime loading flags (-brtl),
19283 # -berok will link without error, but may produce a broken library.
19284 allow_undefined_flag_CXX='-berok'
19285 # Determine the default libpath from the value encoded in an empty
19286 # executable.
19287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19288 /* end confdefs.h. */
19289
19290 int
19291 main ()
19292 {
19293
19294 ;
19295 return 0;
19296 }
19297 _ACEOF
19298 if ac_fn_cxx_try_link "$LINENO"; then :
19299
19300 lt_aix_libpath_sed='
19301 /Import File Strings/,/^$/ {
19302 /^0/ {
19303 s/^0 *\(.*\)$/\1/
19304 p
19305 }
19306 }'
19307 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19308 # Check for a 64-bit object if we didn't find anything.
19309 if test -z "$aix_libpath"; then
19310 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19311 fi
19312 fi
19313 rm -f core conftest.err conftest.$ac_objext \
19314 conftest$ac_exeext conftest.$ac_ext
19315 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19316
19317 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19318
19319 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"
19320 else
19321 if test "$host_cpu" = ia64; then
19322 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
19323 allow_undefined_flag_CXX="-z nodefs"
19324 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"
19325 else
19326 # Determine the default libpath from the value encoded in an
19327 # empty executable.
19328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19329 /* end confdefs.h. */
19330
19331 int
19332 main ()
19333 {
19334
19335 ;
19336 return 0;
19337 }
19338 _ACEOF
19339 if ac_fn_cxx_try_link "$LINENO"; then :
19340
19341 lt_aix_libpath_sed='
19342 /Import File Strings/,/^$/ {
19343 /^0/ {
19344 s/^0 *\(.*\)$/\1/
19345 p
19346 }
19347 }'
19348 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19349 # Check for a 64-bit object if we didn't find anything.
19350 if test -z "$aix_libpath"; then
19351 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19352 fi
19353 fi
19354 rm -f core conftest.err conftest.$ac_objext \
19355 conftest$ac_exeext conftest.$ac_ext
19356 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19357
19358 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19359 # Warning - without using the other run time loading flags,
19360 # -berok will link without error, but may produce a broken library.
19361 no_undefined_flag_CXX=' ${wl}-bernotok'
19362 allow_undefined_flag_CXX=' ${wl}-berok'
19363 if test "$with_gnu_ld" = yes; then
19364 # We only use this code for GNU lds that support --whole-archive.
19365 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19366 else
19367 # Exported symbols can be pulled into shared objects from archives
19368 whole_archive_flag_spec_CXX='$convenience'
19369 fi
19370 archive_cmds_need_lc_CXX=yes
19371 # This is similar to how AIX traditionally builds its shared
19372 # libraries.
19373 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'
19374 fi
19375 fi
19376 ;;
19377
19378 beos*)
19379 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
19380 allow_undefined_flag_CXX=unsupported
19381 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19382 # support --undefined. This deserves some investigation. FIXME
19383 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19384 else
19385 ld_shlibs_CXX=no
19386 fi
19387 ;;
19388
19389 chorus*)
19390 case $cc_basename in
19391 *)
19392 # FIXME: insert proper C++ library support
19393 ld_shlibs_CXX=no
19394 ;;
19395 esac
19396 ;;
19397
19398 cygwin* | mingw* | pw32* | cegcc*)
19399 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19400 # as there is no search path for DLLs.
19401 hardcode_libdir_flag_spec_CXX='-L$libdir'
19402 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
19403 allow_undefined_flag_CXX=unsupported
19404 always_export_symbols_CXX=no
19405 enable_shared_with_static_runtimes_CXX=yes
19406
19407 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
19408 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'
19409 # If the export-symbols file already is a .def file (1st line
19410 # is EXPORTS), use it as is; otherwise, prepend...
19411 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19412 cp $export_symbols $output_objdir/$soname.def;
19413 else
19414 echo EXPORTS > $output_objdir/$soname.def;
19415 cat $export_symbols >> $output_objdir/$soname.def;
19416 fi~
19417 $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'
19418 else
19419 ld_shlibs_CXX=no
19420 fi
19421 ;;
19422 darwin* | rhapsody*)
19423
19424
19425 archive_cmds_need_lc_CXX=no
19426 hardcode_direct_CXX=no
19427 hardcode_automatic_CXX=yes
19428 hardcode_shlibpath_var_CXX=unsupported
19429 if test "$lt_cv_ld_force_load" = "yes"; then
19430 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\"`'
19431 else
19432 whole_archive_flag_spec_CXX=''
19433 fi
19434 link_all_deplibs_CXX=yes
19435 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
19436 case $cc_basename in
19437 ifort*) _lt_dar_can_shared=yes ;;
19438 *) _lt_dar_can_shared=$GCC ;;
19439 esac
19440 if test "$_lt_dar_can_shared" = "yes"; then
19441 output_verbose_link_cmd=func_echo_all
19442 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}"
19443 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19444 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}"
19445 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}"
19446 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
19447 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}"
19448 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}"
19449 fi
19450
19451 else
19452 ld_shlibs_CXX=no
19453 fi
19454
19455 ;;
19456
19457 dgux*)
19458 case $cc_basename in
19459 ec++*)
19460 # FIXME: insert proper C++ library support
19461 ld_shlibs_CXX=no
19462 ;;
19463 ghcx*)
19464 # Green Hills C++ Compiler
19465 # FIXME: insert proper C++ library support
19466 ld_shlibs_CXX=no
19467 ;;
19468 *)
19469 # FIXME: insert proper C++ library support
19470 ld_shlibs_CXX=no
19471 ;;
19472 esac
19473 ;;
19474
19475 freebsd2.*)
19476 # C++ shared libraries reported to be fairly broken before
19477 # switch to ELF
19478 ld_shlibs_CXX=no
19479 ;;
19480
19481 freebsd-elf*)
19482 archive_cmds_need_lc_CXX=no
19483 ;;
19484
19485 freebsd* | dragonfly*)
19486 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19487 # conventions
19488 ld_shlibs_CXX=yes
19489 ;;
19490
19491 gnu*)
19492 ;;
19493
19494 haiku*)
19495 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19496 link_all_deplibs_CXX=yes
19497 ;;
19498
19499 hpux9*)
19500 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19501 hardcode_libdir_separator_CXX=:
19502 export_dynamic_flag_spec_CXX='${wl}-E'
19503 hardcode_direct_CXX=yes
19504 hardcode_minus_L_CXX=yes # Not in the search PATH,
19505 # but as the default
19506 # location of the library.
19507
19508 case $cc_basename in
19509 CC*)
19510 # FIXME: insert proper C++ library support
19511 ld_shlibs_CXX=no
19512 ;;
19513 aCC*)
19514 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'
19515 # Commands to make compiler produce verbose output that lists
19516 # what "hidden" libraries, object files and flags are used when
19517 # linking a shared library.
19518 #
19519 # There doesn't appear to be a way to prevent this compiler from
19520 # explicitly linking system object files so we need to strip them
19521 # from the output so that they don't get included in the library
19522 # dependencies.
19523 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"'
19524 ;;
19525 *)
19526 if test "$GXX" = yes; then
19527 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'
19528 else
19529 # FIXME: insert proper C++ library support
19530 ld_shlibs_CXX=no
19531 fi
19532 ;;
19533 esac
19534 ;;
19535
19536 hpux10*|hpux11*)
19537 if test $with_gnu_ld = no; then
19538 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19539 hardcode_libdir_separator_CXX=:
19540
19541 case $host_cpu in
19542 hppa*64*|ia64*)
19543 ;;
19544 *)
19545 export_dynamic_flag_spec_CXX='${wl}-E'
19546 ;;
19547 esac
19548 fi
19549 case $host_cpu in
19550 hppa*64*|ia64*)
19551 hardcode_direct_CXX=no
19552 hardcode_shlibpath_var_CXX=no
19553 ;;
19554 *)
19555 hardcode_direct_CXX=yes
19556 hardcode_direct_absolute_CXX=yes
19557 hardcode_minus_L_CXX=yes # Not in the search PATH,
19558 # but as the default
19559 # location of the library.
19560 ;;
19561 esac
19562
19563 case $cc_basename in
19564 CC*)
19565 # FIXME: insert proper C++ library support
19566 ld_shlibs_CXX=no
19567 ;;
19568 aCC*)
19569 case $host_cpu in
19570 hppa*64*)
19571 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19572 ;;
19573 ia64*)
19574 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19575 ;;
19576 *)
19577 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19578 ;;
19579 esac
19580 # Commands to make compiler produce verbose output that lists
19581 # what "hidden" libraries, object files and flags are used when
19582 # linking a shared library.
19583 #
19584 # There doesn't appear to be a way to prevent this compiler from
19585 # explicitly linking system object files so we need to strip them
19586 # from the output so that they don't get included in the library
19587 # dependencies.
19588 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"'
19589 ;;
19590 *)
19591 if test "$GXX" = yes; then
19592 if test $with_gnu_ld = no; then
19593 case $host_cpu in
19594 hppa*64*)
19595 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19596 ;;
19597 ia64*)
19598 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19599 ;;
19600 *)
19601 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'
19602 ;;
19603 esac
19604 fi
19605 else
19606 # FIXME: insert proper C++ library support
19607 ld_shlibs_CXX=no
19608 fi
19609 ;;
19610 esac
19611 ;;
19612
19613 interix[3-9]*)
19614 hardcode_direct_CXX=no
19615 hardcode_shlibpath_var_CXX=no
19616 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19617 export_dynamic_flag_spec_CXX='${wl}-E'
19618 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19619 # Instead, shared libraries are loaded at an image base (0x10000000 by
19620 # default) and relocated if they conflict, which is a slow very memory
19621 # consuming and fragmenting process. To avoid this, we pick a random,
19622 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19623 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19624 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'
19625 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'
19626 ;;
19627 irix5* | irix6*)
19628 case $cc_basename in
19629 CC*)
19630 # SGI C++
19631 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'
19632
19633 # Archives containing C++ object files must be created using
19634 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19635 # necessary to make sure instantiated templates are included
19636 # in the archive.
19637 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19638 ;;
19639 *)
19640 if test "$GXX" = yes; then
19641 if test "$with_gnu_ld" = no; then
19642 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'
19643 else
19644 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'
19645 fi
19646 fi
19647 link_all_deplibs_CXX=yes
19648 ;;
19649 esac
19650 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19651 hardcode_libdir_separator_CXX=:
19652 inherit_rpath_CXX=yes
19653 ;;
19654
19655 linux* | k*bsd*-gnu | kopensolaris*-gnu)
19656 case $cc_basename in
19657 KCC*)
19658 # Kuck and Associates, Inc. (KAI) C++ Compiler
19659
19660 # KCC will only create a shared library if the output file
19661 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19662 # to its proper name (with version) after linking.
19663 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'
19664 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'
19665 # Commands to make compiler produce verbose output that lists
19666 # what "hidden" libraries, object files and flags are used when
19667 # linking a shared library.
19668 #
19669 # There doesn't appear to be a way to prevent this compiler from
19670 # explicitly linking system object files so we need to strip them
19671 # from the output so that they don't get included in the library
19672 # dependencies.
19673 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"'
19674
19675 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19676 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19677
19678 # Archives containing C++ object files must be created using
19679 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19680 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19681 ;;
19682 icpc* | ecpc* )
19683 # Intel C++
19684 with_gnu_ld=yes
19685 # version 8.0 and above of icpc choke on multiply defined symbols
19686 # if we add $predep_objects and $postdep_objects, however 7.1 and
19687 # earlier do not add the objects themselves.
19688 case `$CC -V 2>&1` in
19689 *"Version 7."*)
19690 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19691 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'
19692 ;;
19693 *) # Version 8.0 or newer
19694 tmp_idyn=
19695 case $host_cpu in
19696 ia64*) tmp_idyn=' -i_dynamic';;
19697 esac
19698 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19699 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'
19700 ;;
19701 esac
19702 archive_cmds_need_lc_CXX=no
19703 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19704 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19705 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19706 ;;
19707 pgCC* | pgcpp*)
19708 # Portland Group C++ compiler
19709 case `$CC -V` in
19710 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
19711 prelink_cmds_CXX='tpldir=Template.dir~
19712 rm -rf $tpldir~
19713 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19714 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
19715 old_archive_cmds_CXX='tpldir=Template.dir~
19716 rm -rf $tpldir~
19717 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19718 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
19719 $RANLIB $oldlib'
19720 archive_cmds_CXX='tpldir=Template.dir~
19721 rm -rf $tpldir~
19722 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19723 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19724 archive_expsym_cmds_CXX='tpldir=Template.dir~
19725 rm -rf $tpldir~
19726 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19727 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
19728 ;;
19729 *) # Version 6 and above use weak symbols
19730 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19731 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'
19732 ;;
19733 esac
19734
19735 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19736 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19737 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'
19738 ;;
19739 cxx*)
19740 # Compaq C++
19741 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19742 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'
19743
19744 runpath_var=LD_RUN_PATH
19745 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19746 hardcode_libdir_separator_CXX=:
19747
19748 # Commands to make compiler produce verbose output that lists
19749 # what "hidden" libraries, object files and flags are used when
19750 # linking a shared library.
19751 #
19752 # There doesn't appear to be a way to prevent this compiler from
19753 # explicitly linking system object files so we need to strip them
19754 # from the output so that they don't get included in the library
19755 # dependencies.
19756 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'
19757 ;;
19758 xl* | mpixl* | bgxl*)
19759 # IBM XL 8.0 on PPC, with GNU ld
19760 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19761 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19762 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19763 if test "x$supports_anon_versioning" = xyes; then
19764 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
19765 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19766 echo "local: *; };" >> $output_objdir/$libname.ver~
19767 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19768 fi
19769 ;;
19770 *)
19771 case `$CC -V 2>&1 | sed 5q` in
19772 *Sun\ C*)
19773 # Sun C++ 5.9
19774 no_undefined_flag_CXX=' -zdefs'
19775 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19776 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'
19777 hardcode_libdir_flag_spec_CXX='-R$libdir'
19778 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'
19779 compiler_needs_object_CXX=yes
19780
19781 # Not sure whether something based on
19782 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19783 # would be better.
19784 output_verbose_link_cmd='func_echo_all'
19785
19786 # Archives containing C++ object files must be created using
19787 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19788 # necessary to make sure instantiated templates are included
19789 # in the archive.
19790 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19791 ;;
19792 esac
19793 ;;
19794 esac
19795 ;;
19796
19797 lynxos*)
19798 # FIXME: insert proper C++ library support
19799 ld_shlibs_CXX=no
19800 ;;
19801
19802 m88k*)
19803 # FIXME: insert proper C++ library support
19804 ld_shlibs_CXX=no
19805 ;;
19806
19807 mvs*)
19808 case $cc_basename in
19809 cxx*)
19810 # FIXME: insert proper C++ library support
19811 ld_shlibs_CXX=no
19812 ;;
19813 *)
19814 # FIXME: insert proper C++ library support
19815 ld_shlibs_CXX=no
19816 ;;
19817 esac
19818 ;;
19819
19820 netbsd*)
19821 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19822 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19823 wlarc=
19824 hardcode_libdir_flag_spec_CXX='-R$libdir'
19825 hardcode_direct_CXX=yes
19826 hardcode_shlibpath_var_CXX=no
19827 fi
19828 # Workaround some broken pre-1.5 toolchains
19829 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19830 ;;
19831
19832 *nto* | *qnx*)
19833 ld_shlibs_CXX=yes
19834 ;;
19835
19836 openbsd2*)
19837 # C++ shared libraries are fairly broken
19838 ld_shlibs_CXX=no
19839 ;;
19840
19841 openbsd*)
19842 if test -f /usr/libexec/ld.so; then
19843 hardcode_direct_CXX=yes
19844 hardcode_shlibpath_var_CXX=no
19845 hardcode_direct_absolute_CXX=yes
19846 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19847 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19848 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19849 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19850 export_dynamic_flag_spec_CXX='${wl}-E'
19851 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19852 fi
19853 output_verbose_link_cmd=func_echo_all
19854 else
19855 ld_shlibs_CXX=no
19856 fi
19857 ;;
19858
19859 osf3* | osf4* | osf5*)
19860 case $cc_basename in
19861 KCC*)
19862 # Kuck and Associates, Inc. (KAI) C++ Compiler
19863
19864 # KCC will only create a shared library if the output file
19865 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19866 # to its proper name (with version) after linking.
19867 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'
19868
19869 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19870 hardcode_libdir_separator_CXX=:
19871
19872 # Archives containing C++ object files must be created using
19873 # the KAI C++ compiler.
19874 case $host in
19875 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
19876 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
19877 esac
19878 ;;
19879 RCC*)
19880 # Rational C++ 2.4.1
19881 # FIXME: insert proper C++ library support
19882 ld_shlibs_CXX=no
19883 ;;
19884 cxx*)
19885 case $host in
19886 osf3*)
19887 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19888 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'
19889 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19890 ;;
19891 *)
19892 allow_undefined_flag_CXX=' -expect_unresolved \*'
19893 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'
19894 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19895 echo "-hidden">> $lib.exp~
19896 $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~
19897 $RM $lib.exp'
19898 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19899 ;;
19900 esac
19901
19902 hardcode_libdir_separator_CXX=:
19903
19904 # Commands to make compiler produce verbose output that lists
19905 # what "hidden" libraries, object files and flags are used when
19906 # linking a shared library.
19907 #
19908 # There doesn't appear to be a way to prevent this compiler from
19909 # explicitly linking system object files so we need to strip them
19910 # from the output so that they don't get included in the library
19911 # dependencies.
19912 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"'
19913 ;;
19914 *)
19915 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19916 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19917 case $host in
19918 osf3*)
19919 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'
19920 ;;
19921 *)
19922 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'
19923 ;;
19924 esac
19925
19926 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19927 hardcode_libdir_separator_CXX=:
19928
19929 # Commands to make compiler produce verbose output that lists
19930 # what "hidden" libraries, object files and flags are used when
19931 # linking a shared library.
19932 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19933
19934 else
19935 # FIXME: insert proper C++ library support
19936 ld_shlibs_CXX=no
19937 fi
19938 ;;
19939 esac
19940 ;;
19941
19942 psos*)
19943 # FIXME: insert proper C++ library support
19944 ld_shlibs_CXX=no
19945 ;;
19946
19947 sunos4*)
19948 case $cc_basename in
19949 CC*)
19950 # Sun C++ 4.x
19951 # FIXME: insert proper C++ library support
19952 ld_shlibs_CXX=no
19953 ;;
19954 lcc*)
19955 # Lucid
19956 # FIXME: insert proper C++ library support
19957 ld_shlibs_CXX=no
19958 ;;
19959 *)
19960 # FIXME: insert proper C++ library support
19961 ld_shlibs_CXX=no
19962 ;;
19963 esac
19964 ;;
19965
19966 solaris*)
19967 case $cc_basename in
19968 CC*)
19969 # Sun C++ 4.2, 5.x and Centerline C++
19970 archive_cmds_need_lc_CXX=yes
19971 no_undefined_flag_CXX=' -zdefs'
19972 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19973 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19974 $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'
19975
19976 hardcode_libdir_flag_spec_CXX='-R$libdir'
19977 hardcode_shlibpath_var_CXX=no
19978 case $host_os in
19979 solaris2.[0-5] | solaris2.[0-5].*) ;;
19980 *)
19981 # The compiler driver will combine and reorder linker options,
19982 # but understands `-z linker_flag'.
19983 # Supported since Solaris 2.6 (maybe 2.5.1?)
19984 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
19985 ;;
19986 esac
19987 link_all_deplibs_CXX=yes
19988
19989 output_verbose_link_cmd='func_echo_all'
19990
19991 # Archives containing C++ object files must be created using
19992 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19993 # necessary to make sure instantiated templates are included
19994 # in the archive.
19995 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19996 ;;
19997 gcx*)
19998 # Green Hills C++ Compiler
19999 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20000
20001 # The C++ compiler must be used to create the archive.
20002 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
20003 ;;
20004 *)
20005 # GNU C++ compiler with Solaris linker
20006 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
20007 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
20008 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
20009 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20010 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20011 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
20012
20013 # Commands to make compiler produce verbose output that lists
20014 # what "hidden" libraries, object files and flags are used when
20015 # linking a shared library.
20016 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20017 else
20018 # g++ 2.7 appears to require `-G' NOT `-shared' on this
20019 # platform.
20020 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20021 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20022 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
20023
20024 # Commands to make compiler produce verbose output that lists
20025 # what "hidden" libraries, object files and flags are used when
20026 # linking a shared library.
20027 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20028 fi
20029
20030 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
20031 case $host_os in
20032 solaris2.[0-5] | solaris2.[0-5].*) ;;
20033 *)
20034 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
20035 ;;
20036 esac
20037 fi
20038 ;;
20039 esac
20040 ;;
20041
20042 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
20043 no_undefined_flag_CXX='${wl}-z,text'
20044 archive_cmds_need_lc_CXX=no
20045 hardcode_shlibpath_var_CXX=no
20046 runpath_var='LD_RUN_PATH'
20047
20048 case $cc_basename in
20049 CC*)
20050 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20051 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20052 ;;
20053 *)
20054 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20055 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20056 ;;
20057 esac
20058 ;;
20059
20060 sysv5* | sco3.2v5* | sco5v6*)
20061 # Note: We can NOT use -z defs as we might desire, because we do not
20062 # link with -lc, and that would cause any symbols used from libc to
20063 # always be unresolved, which means just about no library would
20064 # ever link correctly. If we're not using GNU ld we use -z text
20065 # though, which does catch some bad symbols but isn't as heavy-handed
20066 # as -z defs.
20067 no_undefined_flag_CXX='${wl}-z,text'
20068 allow_undefined_flag_CXX='${wl}-z,nodefs'
20069 archive_cmds_need_lc_CXX=no
20070 hardcode_shlibpath_var_CXX=no
20071 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
20072 hardcode_libdir_separator_CXX=':'
20073 link_all_deplibs_CXX=yes
20074 export_dynamic_flag_spec_CXX='${wl}-Bexport'
20075 runpath_var='LD_RUN_PATH'
20076
20077 case $cc_basename in
20078 CC*)
20079 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20080 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20081 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
20082 '"$old_archive_cmds_CXX"
20083 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
20084 '"$reload_cmds_CXX"
20085 ;;
20086 *)
20087 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20088 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20089 ;;
20090 esac
20091 ;;
20092
20093 tandem*)
20094 case $cc_basename in
20095 NCC*)
20096 # NonStop-UX NCC 3.20
20097 # FIXME: insert proper C++ library support
20098 ld_shlibs_CXX=no
20099 ;;
20100 *)
20101 # FIXME: insert proper C++ library support
20102 ld_shlibs_CXX=no
20103 ;;
20104 esac
20105 ;;
20106
20107 vxworks*)
20108 # FIXME: insert proper C++ library support
20109 ld_shlibs_CXX=no
20110 ;;
20111
20112 *)
20113 # FIXME: insert proper C++ library support
20114 ld_shlibs_CXX=no
20115 ;;
20116 esac
20117
20118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20119 $as_echo "$ld_shlibs_CXX" >&6; }
20120 test "$ld_shlibs_CXX" = no && can_build_shared=no
20121
20122 GCC_CXX="$GXX"
20123 LD_CXX="$LD"
20124
20125 ## CAVEAT EMPTOR:
20126 ## There is no encapsulation within the following macros, do not change
20127 ## the running order or otherwise move them around unless you know exactly
20128 ## what you are doing...
20129 # Dependencies to place before and after the object being linked:
20130 predep_objects_CXX=
20131 postdep_objects_CXX=
20132 predeps_CXX=
20133 postdeps_CXX=
20134 compiler_lib_search_path_CXX=
20135
20136 cat > conftest.$ac_ext <<_LT_EOF
20137 class Foo
20138 {
20139 public:
20140 Foo (void) { a = 0; }
20141 private:
20142 int a;
20143 };
20144 _LT_EOF
20145
20146 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20147 (eval $ac_compile) 2>&5
20148 ac_status=$?
20149 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20150 test $ac_status = 0; }; then
20151 # Parse the compiler output and extract the necessary
20152 # objects, libraries and library flags.
20153
20154 # Sentinel used to keep track of whether or not we are before
20155 # the conftest object file.
20156 pre_test_object_deps_done=no
20157
20158 for p in `eval "$output_verbose_link_cmd"`; do
20159 case $p in
20160
20161 -L* | -R* | -l*)
20162 # Some compilers place space between "-{L,R}" and the path.
20163 # Remove the space.
20164 if test $p = "-L" ||
20165 test $p = "-R"; then
20166 prev=$p
20167 continue
20168 else
20169 prev=
20170 fi
20171
20172 if test "$pre_test_object_deps_done" = no; then
20173 case $p in
20174 -L* | -R*)
20175 # Internal compiler library paths should come after those
20176 # provided the user. The postdeps already come after the
20177 # user supplied libs so there is no need to process them.
20178 if test -z "$compiler_lib_search_path_CXX"; then
20179 compiler_lib_search_path_CXX="${prev}${p}"
20180 else
20181 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
20182 fi
20183 ;;
20184 # The "-l" case would never come before the object being
20185 # linked, so don't bother handling this case.
20186 esac
20187 else
20188 if test -z "$postdeps_CXX"; then
20189 postdeps_CXX="${prev}${p}"
20190 else
20191 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
20192 fi
20193 fi
20194 ;;
20195
20196 *.$objext)
20197 # This assumes that the test object file only shows up
20198 # once in the compiler output.
20199 if test "$p" = "conftest.$objext"; then
20200 pre_test_object_deps_done=yes
20201 continue
20202 fi
20203
20204 if test "$pre_test_object_deps_done" = no; then
20205 if test -z "$predep_objects_CXX"; then
20206 predep_objects_CXX="$p"
20207 else
20208 predep_objects_CXX="$predep_objects_CXX $p"
20209 fi
20210 else
20211 if test -z "$postdep_objects_CXX"; then
20212 postdep_objects_CXX="$p"
20213 else
20214 postdep_objects_CXX="$postdep_objects_CXX $p"
20215 fi
20216 fi
20217 ;;
20218
20219 *) ;; # Ignore the rest.
20220
20221 esac
20222 done
20223
20224 # Clean up.
20225 rm -f a.out a.exe
20226 else
20227 echo "libtool.m4: error: problem compiling CXX test program"
20228 fi
20229
20230 $RM -f confest.$objext
20231
20232 # PORTME: override above test on systems where it is broken
20233 case $host_os in
20234 interix[3-9]*)
20235 # Interix 3.5 installs completely hosed .la files for C++, so rather than
20236 # hack all around it, let's just trust "g++" to DTRT.
20237 predep_objects_CXX=
20238 postdep_objects_CXX=
20239 postdeps_CXX=
20240 ;;
20241
20242 linux*)
20243 case `$CC -V 2>&1 | sed 5q` in
20244 *Sun\ C*)
20245 # Sun C++ 5.9
20246
20247 # The more standards-conforming stlport4 library is
20248 # incompatible with the Cstd library. Avoid specifying
20249 # it if it's in CXXFLAGS. Ignore libCrun as
20250 # -library=stlport4 depends on it.
20251 case " $CXX $CXXFLAGS " in
20252 *" -library=stlport4 "*)
20253 solaris_use_stlport4=yes
20254 ;;
20255 esac
20256
20257 if test "$solaris_use_stlport4" != yes; then
20258 postdeps_CXX='-library=Cstd -library=Crun'
20259 fi
20260 ;;
20261 esac
20262 ;;
20263
20264 solaris*)
20265 case $cc_basename in
20266 CC*)
20267 # The more standards-conforming stlport4 library is
20268 # incompatible with the Cstd library. Avoid specifying
20269 # it if it's in CXXFLAGS. Ignore libCrun as
20270 # -library=stlport4 depends on it.
20271 case " $CXX $CXXFLAGS " in
20272 *" -library=stlport4 "*)
20273 solaris_use_stlport4=yes
20274 ;;
20275 esac
20276
20277 # Adding this requires a known-good setup of shared libraries for
20278 # Sun compiler versions before 5.6, else PIC objects from an old
20279 # archive will be linked into the output, leading to subtle bugs.
20280 if test "$solaris_use_stlport4" != yes; then
20281 postdeps_CXX='-library=Cstd -library=Crun'
20282 fi
20283 ;;
20284 esac
20285 ;;
20286 esac
20287
20288
20289 case " $postdeps_CXX " in
20290 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
20291 esac
20292 compiler_lib_search_dirs_CXX=
20293 if test -n "${compiler_lib_search_path_CXX}"; then
20294 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
20295 fi
20296
20297
20298
20299
20300
20301
20302
20303
20304
20305
20306
20307
20308
20309
20310
20311
20312
20313
20314
20315
20316
20317
20318
20319
20320
20321
20322
20323
20324
20325
20326
20327 lt_prog_compiler_wl_CXX=
20328 lt_prog_compiler_pic_CXX=
20329 lt_prog_compiler_static_CXX=
20330
20331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
20332 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
20333
20334 # C++ specific cases for pic, static, wl, etc.
20335 if test "$GXX" = yes; then
20336 lt_prog_compiler_wl_CXX='-Wl,'
20337 lt_prog_compiler_static_CXX='-static'
20338
20339 case $host_os in
20340 aix*)
20341 # All AIX code is PIC.
20342 if test "$host_cpu" = ia64; then
20343 # AIX 5 now supports IA64 processor
20344 lt_prog_compiler_static_CXX='-Bstatic'
20345 fi
20346 lt_prog_compiler_pic_CXX='-fPIC'
20347 ;;
20348
20349 amigaos*)
20350 case $host_cpu in
20351 powerpc)
20352 # see comment about AmigaOS4 .so support
20353 lt_prog_compiler_pic_CXX='-fPIC'
20354 ;;
20355 m68k)
20356 # FIXME: we need at least 68020 code to build shared libraries, but
20357 # adding the `-m68020' flag to GCC prevents building anything better,
20358 # like `-m68040'.
20359 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
20360 ;;
20361 esac
20362 ;;
20363
20364 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20365 # PIC is the default for these OSes.
20366 ;;
20367 mingw* | cygwin* | os2* | pw32* | cegcc*)
20368 # This hack is so that the source file can tell whether it is being
20369 # built for inclusion in a dll (and should export symbols for example).
20370 # Although the cygwin gcc ignores -fPIC, still need this for old-style
20371 # (--disable-auto-import) libraries
20372 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
20373 ;;
20374 darwin* | rhapsody*)
20375 # PIC is the default on this platform
20376 # Common symbols not allowed in MH_DYLIB files
20377 lt_prog_compiler_pic_CXX='-fno-common'
20378 ;;
20379 *djgpp*)
20380 # DJGPP does not support shared libraries at all
20381 lt_prog_compiler_pic_CXX=
20382 ;;
20383 haiku*)
20384 # PIC is the default for Haiku.
20385 # The "-static" flag exists, but is broken.
20386 lt_prog_compiler_static_CXX=
20387 ;;
20388 interix[3-9]*)
20389 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20390 # Instead, we relocate shared libraries at runtime.
20391 ;;
20392 sysv4*MP*)
20393 if test -d /usr/nec; then
20394 lt_prog_compiler_pic_CXX=-Kconform_pic
20395 fi
20396 ;;
20397 hpux*)
20398 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
20399 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
20400 # sets the default TLS model and affects inlining.
20401 case $host_cpu in
20402 hppa*64*)
20403 ;;
20404 *)
20405 lt_prog_compiler_pic_CXX='-fPIC'
20406 ;;
20407 esac
20408 ;;
20409 *qnx* | *nto*)
20410 # QNX uses GNU C++, but need to define -shared option too, otherwise
20411 # it will coredump.
20412 lt_prog_compiler_pic_CXX='-fPIC -shared'
20413 ;;
20414 *)
20415 lt_prog_compiler_pic_CXX='-fPIC'
20416 ;;
20417 esac
20418 else
20419 case $host_os in
20420 aix[4-9]*)
20421 # All AIX code is PIC.
20422 if test "$host_cpu" = ia64; then
20423 # AIX 5 now supports IA64 processor
20424 lt_prog_compiler_static_CXX='-Bstatic'
20425 else
20426 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
20427 fi
20428 ;;
20429 chorus*)
20430 case $cc_basename in
20431 cxch68*)
20432 # Green Hills C++ Compiler
20433 # _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"
20434 ;;
20435 esac
20436 ;;
20437 dgux*)
20438 case $cc_basename in
20439 ec++*)
20440 lt_prog_compiler_pic_CXX='-KPIC'
20441 ;;
20442 ghcx*)
20443 # Green Hills C++ Compiler
20444 lt_prog_compiler_pic_CXX='-pic'
20445 ;;
20446 *)
20447 ;;
20448 esac
20449 ;;
20450 freebsd* | dragonfly*)
20451 # FreeBSD uses GNU C++
20452 ;;
20453 hpux9* | hpux10* | hpux11*)
20454 case $cc_basename in
20455 CC*)
20456 lt_prog_compiler_wl_CXX='-Wl,'
20457 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20458 if test "$host_cpu" != ia64; then
20459 lt_prog_compiler_pic_CXX='+Z'
20460 fi
20461 ;;
20462 aCC*)
20463 lt_prog_compiler_wl_CXX='-Wl,'
20464 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20465 case $host_cpu in
20466 hppa*64*|ia64*)
20467 # +Z the default
20468 ;;
20469 *)
20470 lt_prog_compiler_pic_CXX='+Z'
20471 ;;
20472 esac
20473 ;;
20474 *)
20475 ;;
20476 esac
20477 ;;
20478 interix*)
20479 # This is c89, which is MS Visual C++ (no shared libs)
20480 # Anyone wants to do a port?
20481 ;;
20482 irix5* | irix6* | nonstopux*)
20483 case $cc_basename in
20484 CC*)
20485 lt_prog_compiler_wl_CXX='-Wl,'
20486 lt_prog_compiler_static_CXX='-non_shared'
20487 # CC pic flag -KPIC is the default.
20488 ;;
20489 *)
20490 ;;
20491 esac
20492 ;;
20493 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20494 case $cc_basename in
20495 KCC*)
20496 # KAI C++ Compiler
20497 lt_prog_compiler_wl_CXX='--backend -Wl,'
20498 lt_prog_compiler_pic_CXX='-fPIC'
20499 ;;
20500 ecpc* )
20501 # old Intel C++ for x86_64 which still supported -KPIC.
20502 lt_prog_compiler_wl_CXX='-Wl,'
20503 lt_prog_compiler_pic_CXX='-KPIC'
20504 lt_prog_compiler_static_CXX='-static'
20505 ;;
20506 icpc* )
20507 # Intel C++, used to be incompatible with GCC.
20508 # ICC 10 doesn't accept -KPIC any more.
20509 lt_prog_compiler_wl_CXX='-Wl,'
20510 lt_prog_compiler_pic_CXX='-fPIC'
20511 lt_prog_compiler_static_CXX='-static'
20512 ;;
20513 pgCC* | pgcpp*)
20514 # Portland Group C++ compiler
20515 lt_prog_compiler_wl_CXX='-Wl,'
20516 lt_prog_compiler_pic_CXX='-fpic'
20517 lt_prog_compiler_static_CXX='-Bstatic'
20518 ;;
20519 cxx*)
20520 # Compaq C++
20521 # Make sure the PIC flag is empty. It appears that all Alpha
20522 # Linux and Compaq Tru64 Unix objects are PIC.
20523 lt_prog_compiler_pic_CXX=
20524 lt_prog_compiler_static_CXX='-non_shared'
20525 ;;
20526 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
20527 # IBM XL 8.0, 9.0 on PPC and BlueGene
20528 lt_prog_compiler_wl_CXX='-Wl,'
20529 lt_prog_compiler_pic_CXX='-qpic'
20530 lt_prog_compiler_static_CXX='-qstaticlink'
20531 ;;
20532 *)
20533 case `$CC -V 2>&1 | sed 5q` in
20534 *Sun\ C*)
20535 # Sun C++ 5.9
20536 lt_prog_compiler_pic_CXX='-KPIC'
20537 lt_prog_compiler_static_CXX='-Bstatic'
20538 lt_prog_compiler_wl_CXX='-Qoption ld '
20539 ;;
20540 esac
20541 ;;
20542 esac
20543 ;;
20544 lynxos*)
20545 ;;
20546 m88k*)
20547 ;;
20548 mvs*)
20549 case $cc_basename in
20550 cxx*)
20551 lt_prog_compiler_pic_CXX='-W c,exportall'
20552 ;;
20553 *)
20554 ;;
20555 esac
20556 ;;
20557 netbsd*)
20558 ;;
20559 *qnx* | *nto*)
20560 # QNX uses GNU C++, but need to define -shared option too, otherwise
20561 # it will coredump.
20562 lt_prog_compiler_pic_CXX='-fPIC -shared'
20563 ;;
20564 osf3* | osf4* | osf5*)
20565 case $cc_basename in
20566 KCC*)
20567 lt_prog_compiler_wl_CXX='--backend -Wl,'
20568 ;;
20569 RCC*)
20570 # Rational C++ 2.4.1
20571 lt_prog_compiler_pic_CXX='-pic'
20572 ;;
20573 cxx*)
20574 # Digital/Compaq C++
20575 lt_prog_compiler_wl_CXX='-Wl,'
20576 # Make sure the PIC flag is empty. It appears that all Alpha
20577 # Linux and Compaq Tru64 Unix objects are PIC.
20578 lt_prog_compiler_pic_CXX=
20579 lt_prog_compiler_static_CXX='-non_shared'
20580 ;;
20581 *)
20582 ;;
20583 esac
20584 ;;
20585 psos*)
20586 ;;
20587 solaris*)
20588 case $cc_basename in
20589 CC*)
20590 # Sun C++ 4.2, 5.x and Centerline C++
20591 lt_prog_compiler_pic_CXX='-KPIC'
20592 lt_prog_compiler_static_CXX='-Bstatic'
20593 lt_prog_compiler_wl_CXX='-Qoption ld '
20594 ;;
20595 gcx*)
20596 # Green Hills C++ Compiler
20597 lt_prog_compiler_pic_CXX='-PIC'
20598 ;;
20599 *)
20600 ;;
20601 esac
20602 ;;
20603 sunos4*)
20604 case $cc_basename in
20605 CC*)
20606 # Sun C++ 4.x
20607 lt_prog_compiler_pic_CXX='-pic'
20608 lt_prog_compiler_static_CXX='-Bstatic'
20609 ;;
20610 lcc*)
20611 # Lucid
20612 lt_prog_compiler_pic_CXX='-pic'
20613 ;;
20614 *)
20615 ;;
20616 esac
20617 ;;
20618 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20619 case $cc_basename in
20620 CC*)
20621 lt_prog_compiler_wl_CXX='-Wl,'
20622 lt_prog_compiler_pic_CXX='-KPIC'
20623 lt_prog_compiler_static_CXX='-Bstatic'
20624 ;;
20625 esac
20626 ;;
20627 tandem*)
20628 case $cc_basename in
20629 NCC*)
20630 # NonStop-UX NCC 3.20
20631 lt_prog_compiler_pic_CXX='-KPIC'
20632 ;;
20633 *)
20634 ;;
20635 esac
20636 ;;
20637 vxworks*)
20638 ;;
20639 *)
20640 lt_prog_compiler_can_build_shared_CXX=no
20641 ;;
20642 esac
20643 fi
20644
20645 case $host_os in
20646 # For platforms which do not support PIC, -DPIC is meaningless:
20647 *djgpp*)
20648 lt_prog_compiler_pic_CXX=
20649 ;;
20650 *)
20651 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20652 ;;
20653 esac
20654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
20655 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
20656
20657
20658
20659 #
20660 # Check to make sure the PIC flag actually works.
20661 #
20662 if test -n "$lt_prog_compiler_pic_CXX"; then
20663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20664 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20665 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
20666 $as_echo_n "(cached) " >&6
20667 else
20668 lt_cv_prog_compiler_pic_works_CXX=no
20669 ac_outfile=conftest.$ac_objext
20670 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20671 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20672 # Insert the option either (1) after the last *FLAGS variable, or
20673 # (2) before a word containing "conftest.", or (3) at the end.
20674 # Note that $ac_compile itself does not contain backslashes and begins
20675 # with a dollar sign (not a hyphen), so the echo should work correctly.
20676 # The option is referenced via a variable to avoid confusing sed.
20677 lt_compile=`echo "$ac_compile" | $SED \
20678 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20679 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20680 -e 's:$: $lt_compiler_flag:'`
20681 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20682 (eval "$lt_compile" 2>conftest.err)
20683 ac_status=$?
20684 cat conftest.err >&5
20685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20686 if (exit $ac_status) && test -s "$ac_outfile"; then
20687 # The compiler can only warn and ignore the option if not recognized
20688 # So say no if there are warnings other than the usual output.
20689 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
20690 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20691 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20692 lt_cv_prog_compiler_pic_works_CXX=yes
20693 fi
20694 fi
20695 $RM conftest*
20696
20697 fi
20698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20699 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20700
20701 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
20702 case $lt_prog_compiler_pic_CXX in
20703 "" | " "*) ;;
20704 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20705 esac
20706 else
20707 lt_prog_compiler_pic_CXX=
20708 lt_prog_compiler_can_build_shared_CXX=no
20709 fi
20710
20711 fi
20712
20713
20714
20715 #
20716 # Check to make sure the static flag actually works.
20717 #
20718 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20720 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20721 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
20722 $as_echo_n "(cached) " >&6
20723 else
20724 lt_cv_prog_compiler_static_works_CXX=no
20725 save_LDFLAGS="$LDFLAGS"
20726 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20727 echo "$lt_simple_link_test_code" > conftest.$ac_ext
20728 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20729 # The linker can only warn and ignore the option if not recognized
20730 # So say no if there are warnings
20731 if test -s conftest.err; then
20732 # Append any errors to the config.log.
20733 cat conftest.err 1>&5
20734 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
20735 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20736 if diff conftest.exp conftest.er2 >/dev/null; then
20737 lt_cv_prog_compiler_static_works_CXX=yes
20738 fi
20739 else
20740 lt_cv_prog_compiler_static_works_CXX=yes
20741 fi
20742 fi
20743 $RM -r conftest*
20744 LDFLAGS="$save_LDFLAGS"
20745
20746 fi
20747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20748 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20749
20750 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
20751 :
20752 else
20753 lt_prog_compiler_static_CXX=
20754 fi
20755
20756
20757
20758
20759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20760 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20761 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20762 $as_echo_n "(cached) " >&6
20763 else
20764 lt_cv_prog_compiler_c_o_CXX=no
20765 $RM -r conftest 2>/dev/null
20766 mkdir conftest
20767 cd conftest
20768 mkdir out
20769 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20770
20771 lt_compiler_flag="-o out/conftest2.$ac_objext"
20772 # Insert the option either (1) after the last *FLAGS variable, or
20773 # (2) before a word containing "conftest.", or (3) at the end.
20774 # Note that $ac_compile itself does not contain backslashes and begins
20775 # with a dollar sign (not a hyphen), so the echo should work correctly.
20776 lt_compile=`echo "$ac_compile" | $SED \
20777 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20778 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20779 -e 's:$: $lt_compiler_flag:'`
20780 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20781 (eval "$lt_compile" 2>out/conftest.err)
20782 ac_status=$?
20783 cat out/conftest.err >&5
20784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20785 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20786 then
20787 # The compiler can only warn and ignore the option if not recognized
20788 # So say no if there are warnings
20789 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20790 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20791 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20792 lt_cv_prog_compiler_c_o_CXX=yes
20793 fi
20794 fi
20795 chmod u+w . 2>&5
20796 $RM conftest*
20797 # SGI C++ compiler will create directory out/ii_files/ for
20798 # template instantiation
20799 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20800 $RM out/* && rmdir out
20801 cd ..
20802 $RM -r conftest
20803 $RM conftest*
20804
20805 fi
20806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20807 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20808
20809
20810
20811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20812 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20813 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20814 $as_echo_n "(cached) " >&6
20815 else
20816 lt_cv_prog_compiler_c_o_CXX=no
20817 $RM -r conftest 2>/dev/null
20818 mkdir conftest
20819 cd conftest
20820 mkdir out
20821 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20822
20823 lt_compiler_flag="-o out/conftest2.$ac_objext"
20824 # Insert the option either (1) after the last *FLAGS variable, or
20825 # (2) before a word containing "conftest.", or (3) at the end.
20826 # Note that $ac_compile itself does not contain backslashes and begins
20827 # with a dollar sign (not a hyphen), so the echo should work correctly.
20828 lt_compile=`echo "$ac_compile" | $SED \
20829 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20830 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20831 -e 's:$: $lt_compiler_flag:'`
20832 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20833 (eval "$lt_compile" 2>out/conftest.err)
20834 ac_status=$?
20835 cat out/conftest.err >&5
20836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20837 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20838 then
20839 # The compiler can only warn and ignore the option if not recognized
20840 # So say no if there are warnings
20841 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20842 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20843 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20844 lt_cv_prog_compiler_c_o_CXX=yes
20845 fi
20846 fi
20847 chmod u+w . 2>&5
20848 $RM conftest*
20849 # SGI C++ compiler will create directory out/ii_files/ for
20850 # template instantiation
20851 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20852 $RM out/* && rmdir out
20853 cd ..
20854 $RM -r conftest
20855 $RM conftest*
20856
20857 fi
20858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20859 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20860
20861
20862
20863
20864 hard_links="nottested"
20865 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20866 # do not overwrite the value of need_locks provided by the user
20867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20868 $as_echo_n "checking if we can lock with hard links... " >&6; }
20869 hard_links=yes
20870 $RM conftest*
20871 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20872 touch conftest.a
20873 ln conftest.a conftest.b 2>&5 || hard_links=no
20874 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20876 $as_echo "$hard_links" >&6; }
20877 if test "$hard_links" = no; then
20878 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20879 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20880 need_locks=warn
20881 fi
20882 else
20883 need_locks=no
20884 fi
20885
20886
20887
20888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20889 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20890
20891 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20892 case $host_os in
20893 aix[4-9]*)
20894 # If we're using GNU nm, then we don't want the "-C" option.
20895 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20896 # Also, AIX nm treats weak defined symbols like other global defined
20897 # symbols, whereas GNU nm marks them as "W".
20898 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
20899 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'
20900 else
20901 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'
20902 fi
20903 ;;
20904 pw32*)
20905 export_symbols_cmds_CXX="$ltdll_cmds"
20906 ;;
20907 cygwin* | mingw* | cegcc*)
20908 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'
20909 ;;
20910 *)
20911 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20912 ;;
20913 esac
20914 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20915
20916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20917 $as_echo "$ld_shlibs_CXX" >&6; }
20918 test "$ld_shlibs_CXX" = no && can_build_shared=no
20919
20920 with_gnu_ld_CXX=$with_gnu_ld
20921
20922
20923
20924
20925
20926
20927 #
20928 # Do we need to explicitly link libc?
20929 #
20930 case "x$archive_cmds_need_lc_CXX" in
20931 x|xyes)
20932 # Assume -lc should be added
20933 archive_cmds_need_lc_CXX=yes
20934
20935 if test "$enable_shared" = yes && test "$GCC" = yes; then
20936 case $archive_cmds_CXX in
20937 *'~'*)
20938 # FIXME: we may have to deal with multi-command sequences.
20939 ;;
20940 '$CC '*)
20941 # Test whether the compiler implicitly links with -lc since on some
20942 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20943 # to ld, don't add -lc before -lgcc.
20944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20945 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20946 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
20947 $as_echo_n "(cached) " >&6
20948 else
20949 $RM conftest*
20950 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20951
20952 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20953 (eval $ac_compile) 2>&5
20954 ac_status=$?
20955 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20956 test $ac_status = 0; } 2>conftest.err; then
20957 soname=conftest
20958 lib=conftest
20959 libobjs=conftest.$ac_objext
20960 deplibs=
20961 wl=$lt_prog_compiler_wl_CXX
20962 pic_flag=$lt_prog_compiler_pic_CXX
20963 compiler_flags=-v
20964 linker_flags=-v
20965 verstring=
20966 output_objdir=.
20967 libname=conftest
20968 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20969 allow_undefined_flag_CXX=
20970 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20971 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
20972 ac_status=$?
20973 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20974 test $ac_status = 0; }
20975 then
20976 lt_cv_archive_cmds_need_lc_CXX=no
20977 else
20978 lt_cv_archive_cmds_need_lc_CXX=yes
20979 fi
20980 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20981 else
20982 cat conftest.err 1>&5
20983 fi
20984 $RM conftest*
20985
20986 fi
20987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20988 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20989 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
20990 ;;
20991 esac
20992 fi
20993 ;;
20994 esac
20995
20996
20997
20998
20999
21000
21001
21002
21003
21004
21005
21006
21007
21008
21009
21010
21011
21012
21013
21014
21015
21016
21017
21018
21019
21020
21021
21022
21023
21024
21025
21026
21027
21028
21029
21030
21031
21032
21033
21034
21035
21036
21037
21038
21039
21040
21041
21042
21043
21044
21045
21046
21047
21048
21049
21050
21051
21052
21053
21054
21055
21056
21057
21058
21059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
21060 $as_echo_n "checking dynamic linker characteristics... " >&6; }
21061
21062 library_names_spec=
21063 libname_spec='lib$name'
21064 soname_spec=
21065 shrext_cmds=".so"
21066 postinstall_cmds=
21067 postuninstall_cmds=
21068 finish_cmds=
21069 finish_eval=
21070 shlibpath_var=
21071 shlibpath_overrides_runpath=unknown
21072 version_type=none
21073 dynamic_linker="$host_os ld.so"
21074 sys_lib_dlsearch_path_spec="/lib /usr/lib"
21075 need_lib_prefix=unknown
21076 hardcode_into_libs=no
21077
21078 # when you set need_version to no, make sure it does not cause -set_version
21079 # flags to be left without arguments
21080 need_version=unknown
21081
21082 case $host_os in
21083 aix3*)
21084 version_type=linux
21085 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
21086 shlibpath_var=LIBPATH
21087
21088 # AIX 3 has no versioning support, so we append a major version to the name.
21089 soname_spec='${libname}${release}${shared_ext}$major'
21090 ;;
21091
21092 aix[4-9]*)
21093 version_type=linux
21094 need_lib_prefix=no
21095 need_version=no
21096 hardcode_into_libs=yes
21097 if test "$host_cpu" = ia64; then
21098 # AIX 5 supports IA64
21099 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
21100 shlibpath_var=LD_LIBRARY_PATH
21101 else
21102 # With GCC up to 2.95.x, collect2 would create an import file
21103 # for dependence libraries. The import file would start with
21104 # the line `#! .'. This would cause the generated library to
21105 # depend on `.', always an invalid library. This was fixed in
21106 # development snapshots of GCC prior to 3.0.
21107 case $host_os in
21108 aix4 | aix4.[01] | aix4.[01].*)
21109 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
21110 echo ' yes '
21111 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
21112 :
21113 else
21114 can_build_shared=no
21115 fi
21116 ;;
21117 esac
21118 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
21119 # soname into executable. Probably we can add versioning support to
21120 # collect2, so additional links can be useful in future.
21121 if test "$aix_use_runtimelinking" = yes; then
21122 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
21123 # instead of lib<name>.a to let people know that these are not
21124 # typical AIX shared libraries.
21125 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21126 else
21127 # We preserve .a as extension for shared libraries through AIX4.2
21128 # and later when we are not doing run time linking.
21129 library_names_spec='${libname}${release}.a $libname.a'
21130 soname_spec='${libname}${release}${shared_ext}$major'
21131 fi
21132 shlibpath_var=LIBPATH
21133 fi
21134 ;;
21135
21136 amigaos*)
21137 case $host_cpu in
21138 powerpc)
21139 # Since July 2007 AmigaOS4 officially supports .so libraries.
21140 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
21141 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21142 ;;
21143 m68k)
21144 library_names_spec='$libname.ixlibrary $libname.a'
21145 # Create ${libname}_ixlibrary.a entries in /sys/libs.
21146 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'
21147 ;;
21148 esac
21149 ;;
21150
21151 beos*)
21152 library_names_spec='${libname}${shared_ext}'
21153 dynamic_linker="$host_os ld.so"
21154 shlibpath_var=LIBRARY_PATH
21155 ;;
21156
21157 bsdi[45]*)
21158 version_type=linux
21159 need_version=no
21160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21161 soname_spec='${libname}${release}${shared_ext}$major'
21162 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
21163 shlibpath_var=LD_LIBRARY_PATH
21164 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
21165 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
21166 # the default ld.so.conf also contains /usr/contrib/lib and
21167 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
21168 # libtool to hard-code these into programs
21169 ;;
21170
21171 cygwin* | mingw* | pw32* | cegcc*)
21172 version_type=windows
21173 shrext_cmds=".dll"
21174 need_version=no
21175 need_lib_prefix=no
21176
21177 case $GCC,$host_os in
21178 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
21179 library_names_spec='$libname.dll.a'
21180 # DLL is installed to $(libdir)/../bin by postinstall_cmds
21181 postinstall_cmds='base_file=`basename \${file}`~
21182 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
21183 dldir=$destdir/`dirname \$dlpath`~
21184 test -d \$dldir || mkdir -p \$dldir~
21185 $install_prog $dir/$dlname \$dldir/$dlname~
21186 chmod a+x \$dldir/$dlname~
21187 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
21188 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
21189 fi'
21190 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
21191 dlpath=$dir/\$dldll~
21192 $RM \$dlpath'
21193 shlibpath_overrides_runpath=yes
21194
21195 case $host_os in
21196 cygwin*)
21197 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
21198 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21199
21200 ;;
21201 mingw* | cegcc*)
21202 # MinGW DLLs use traditional 'lib' prefix
21203 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21204 ;;
21205 pw32*)
21206 # pw32 DLLs use 'pw' prefix rather than 'lib'
21207 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21208 ;;
21209 esac
21210 ;;
21211
21212 *)
21213 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
21214 ;;
21215 esac
21216 dynamic_linker='Win32 ld.exe'
21217 # FIXME: first we should search . and the directory the executable is in
21218 shlibpath_var=PATH
21219 ;;
21220
21221 darwin* | rhapsody*)
21222 dynamic_linker="$host_os dyld"
21223 version_type=darwin
21224 need_lib_prefix=no
21225 need_version=no
21226 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
21227 soname_spec='${libname}${release}${major}$shared_ext'
21228 shlibpath_overrides_runpath=yes
21229 shlibpath_var=DYLD_LIBRARY_PATH
21230 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
21231
21232 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
21233 ;;
21234
21235 dgux*)
21236 version_type=linux
21237 need_lib_prefix=no
21238 need_version=no
21239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
21240 soname_spec='${libname}${release}${shared_ext}$major'
21241 shlibpath_var=LD_LIBRARY_PATH
21242 ;;
21243
21244 freebsd* | dragonfly*)
21245 # DragonFly does not have aout. When/if they implement a new
21246 # versioning mechanism, adjust this.
21247 if test -x /usr/bin/objformat; then
21248 objformat=`/usr/bin/objformat`
21249 else
21250 case $host_os in
21251 freebsd[23].*) objformat=aout ;;
21252 *) objformat=elf ;;
21253 esac
21254 fi
21255 version_type=freebsd-$objformat
21256 case $version_type in
21257 freebsd-elf*)
21258 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21259 need_version=no
21260 need_lib_prefix=no
21261 ;;
21262 freebsd-*)
21263 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
21264 need_version=yes
21265 ;;
21266 esac
21267 shlibpath_var=LD_LIBRARY_PATH
21268 case $host_os in
21269 freebsd2.*)
21270 shlibpath_overrides_runpath=yes
21271 ;;
21272 freebsd3.[01]* | freebsdelf3.[01]*)
21273 shlibpath_overrides_runpath=yes
21274 hardcode_into_libs=yes
21275 ;;
21276 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
21277 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
21278 shlibpath_overrides_runpath=no
21279 hardcode_into_libs=yes
21280 ;;
21281 *) # from 4.6 on, and DragonFly
21282 shlibpath_overrides_runpath=yes
21283 hardcode_into_libs=yes
21284 ;;
21285 esac
21286 ;;
21287
21288 gnu*)
21289 version_type=linux
21290 need_lib_prefix=no
21291 need_version=no
21292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21293 soname_spec='${libname}${release}${shared_ext}$major'
21294 shlibpath_var=LD_LIBRARY_PATH
21295 hardcode_into_libs=yes
21296 ;;
21297
21298 haiku*)
21299 version_type=linux
21300 need_lib_prefix=no
21301 need_version=no
21302 dynamic_linker="$host_os runtime_loader"
21303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21304 soname_spec='${libname}${release}${shared_ext}$major'
21305 shlibpath_var=LIBRARY_PATH
21306 shlibpath_overrides_runpath=yes
21307 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
21308 hardcode_into_libs=yes
21309 ;;
21310
21311 hpux9* | hpux10* | hpux11*)
21312 # Give a soname corresponding to the major version so that dld.sl refuses to
21313 # link against other versions.
21314 version_type=sunos
21315 need_lib_prefix=no
21316 need_version=no
21317 case $host_cpu in
21318 ia64*)
21319 shrext_cmds='.so'
21320 hardcode_into_libs=yes
21321 dynamic_linker="$host_os dld.so"
21322 shlibpath_var=LD_LIBRARY_PATH
21323 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21325 soname_spec='${libname}${release}${shared_ext}$major'
21326 if test "X$HPUX_IA64_MODE" = X32; then
21327 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
21328 else
21329 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
21330 fi
21331 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21332 ;;
21333 hppa*64*)
21334 shrext_cmds='.sl'
21335 hardcode_into_libs=yes
21336 dynamic_linker="$host_os dld.sl"
21337 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
21338 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21340 soname_spec='${libname}${release}${shared_ext}$major'
21341 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
21342 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21343 ;;
21344 *)
21345 shrext_cmds='.sl'
21346 dynamic_linker="$host_os dld.sl"
21347 shlibpath_var=SHLIB_PATH
21348 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
21349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21350 soname_spec='${libname}${release}${shared_ext}$major'
21351 ;;
21352 esac
21353 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
21354 postinstall_cmds='chmod 555 $lib'
21355 # or fails outright, so override atomically:
21356 install_override_mode=555
21357 ;;
21358
21359 interix[3-9]*)
21360 version_type=linux
21361 need_lib_prefix=no
21362 need_version=no
21363 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21364 soname_spec='${libname}${release}${shared_ext}$major'
21365 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
21366 shlibpath_var=LD_LIBRARY_PATH
21367 shlibpath_overrides_runpath=no
21368 hardcode_into_libs=yes
21369 ;;
21370
21371 irix5* | irix6* | nonstopux*)
21372 case $host_os in
21373 nonstopux*) version_type=nonstopux ;;
21374 *)
21375 if test "$lt_cv_prog_gnu_ld" = yes; then
21376 version_type=linux
21377 else
21378 version_type=irix
21379 fi ;;
21380 esac
21381 need_lib_prefix=no
21382 need_version=no
21383 soname_spec='${libname}${release}${shared_ext}$major'
21384 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21385 case $host_os in
21386 irix5* | nonstopux*)
21387 libsuff= shlibsuff=
21388 ;;
21389 *)
21390 case $LD in # libtool.m4 will add one of these switches to LD
21391 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
21392 libsuff= shlibsuff= libmagic=32-bit;;
21393 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
21394 libsuff=32 shlibsuff=N32 libmagic=N32;;
21395 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
21396 libsuff=64 shlibsuff=64 libmagic=64-bit;;
21397 *) libsuff= shlibsuff= libmagic=never-match;;
21398 esac
21399 ;;
21400 esac
21401 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
21402 shlibpath_overrides_runpath=no
21403 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21404 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
21405 hardcode_into_libs=yes
21406 ;;
21407
21408 # No shared lib support for Linux oldld, aout, or coff.
21409 linux*oldld* | linux*aout* | linux*coff*)
21410 dynamic_linker=no
21411 ;;
21412
21413 # This must be Linux ELF.
21414 linux* | k*bsd*-gnu | kopensolaris*-gnu)
21415 version_type=linux
21416 need_lib_prefix=no
21417 need_version=no
21418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21419 soname_spec='${libname}${release}${shared_ext}$major'
21420 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21421 shlibpath_var=LD_LIBRARY_PATH
21422 shlibpath_overrides_runpath=no
21423
21424 # Some binutils ld are patched to set DT_RUNPATH
21425 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
21426 $as_echo_n "(cached) " >&6
21427 else
21428 lt_cv_shlibpath_overrides_runpath=no
21429 save_LDFLAGS=$LDFLAGS
21430 save_libdir=$libdir
21431 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
21432 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
21433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21434 /* end confdefs.h. */
21435
21436 int
21437 main ()
21438 {
21439
21440 ;
21441 return 0;
21442 }
21443 _ACEOF
21444 if ac_fn_cxx_try_link "$LINENO"; then :
21445 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
21446 lt_cv_shlibpath_overrides_runpath=yes
21447 fi
21448 fi
21449 rm -f core conftest.err conftest.$ac_objext \
21450 conftest$ac_exeext conftest.$ac_ext
21451 LDFLAGS=$save_LDFLAGS
21452 libdir=$save_libdir
21453
21454 fi
21455
21456 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
21457
21458 # This implies no fast_install, which is unacceptable.
21459 # Some rework will be needed to allow for fast_install
21460 # before this can be enabled.
21461 hardcode_into_libs=yes
21462
21463 # Append ld.so.conf contents to the search path
21464 if test -f /etc/ld.so.conf; then
21465 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' ' '`
21466 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
21467 fi
21468
21469 # We used to test for /lib/ld.so.1 and disable shared libraries on
21470 # powerpc, because MkLinux only supported shared libraries with the
21471 # GNU dynamic linker. Since this was broken with cross compilers,
21472 # most powerpc-linux boxes support dynamic linking these days and
21473 # people can always --disable-shared, the test was removed, and we
21474 # assume the GNU/Linux dynamic linker is in use.
21475 dynamic_linker='GNU/Linux ld.so'
21476 ;;
21477
21478 netbsd*)
21479 version_type=sunos
21480 need_lib_prefix=no
21481 need_version=no
21482 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
21483 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21484 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21485 dynamic_linker='NetBSD (a.out) ld.so'
21486 else
21487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21488 soname_spec='${libname}${release}${shared_ext}$major'
21489 dynamic_linker='NetBSD ld.elf_so'
21490 fi
21491 shlibpath_var=LD_LIBRARY_PATH
21492 shlibpath_overrides_runpath=yes
21493 hardcode_into_libs=yes
21494 ;;
21495
21496 newsos6)
21497 version_type=linux
21498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21499 shlibpath_var=LD_LIBRARY_PATH
21500 shlibpath_overrides_runpath=yes
21501 ;;
21502
21503 *nto* | *qnx*)
21504 version_type=qnx
21505 need_lib_prefix=no
21506 need_version=no
21507 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21508 soname_spec='${libname}${release}${shared_ext}$major'
21509 shlibpath_var=LD_LIBRARY_PATH
21510 shlibpath_overrides_runpath=no
21511 hardcode_into_libs=yes
21512 dynamic_linker='ldqnx.so'
21513 ;;
21514
21515 openbsd*)
21516 version_type=sunos
21517 sys_lib_dlsearch_path_spec="/usr/lib"
21518 need_lib_prefix=no
21519 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21520 case $host_os in
21521 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
21522 *) need_version=no ;;
21523 esac
21524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21525 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21526 shlibpath_var=LD_LIBRARY_PATH
21527 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21528 case $host_os in
21529 openbsd2.[89] | openbsd2.[89].*)
21530 shlibpath_overrides_runpath=no
21531 ;;
21532 *)
21533 shlibpath_overrides_runpath=yes
21534 ;;
21535 esac
21536 else
21537 shlibpath_overrides_runpath=yes
21538 fi
21539 ;;
21540
21541 os2*)
21542 libname_spec='$name'
21543 shrext_cmds=".dll"
21544 need_lib_prefix=no
21545 library_names_spec='$libname${shared_ext} $libname.a'
21546 dynamic_linker='OS/2 ld.exe'
21547 shlibpath_var=LIBPATH
21548 ;;
21549
21550 osf3* | osf4* | osf5*)
21551 version_type=osf
21552 need_lib_prefix=no
21553 need_version=no
21554 soname_spec='${libname}${release}${shared_ext}$major'
21555 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21556 shlibpath_var=LD_LIBRARY_PATH
21557 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21558 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21559 ;;
21560
21561 rdos*)
21562 dynamic_linker=no
21563 ;;
21564
21565 solaris*)
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 shlibpath_var=LD_LIBRARY_PATH
21572 shlibpath_overrides_runpath=yes
21573 hardcode_into_libs=yes
21574 # ldd complains unless libraries are executable
21575 postinstall_cmds='chmod +x $lib'
21576 ;;
21577
21578 sunos4*)
21579 version_type=sunos
21580 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21581 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21582 shlibpath_var=LD_LIBRARY_PATH
21583 shlibpath_overrides_runpath=yes
21584 if test "$with_gnu_ld" = yes; then
21585 need_lib_prefix=no
21586 fi
21587 need_version=yes
21588 ;;
21589
21590 sysv4 | sysv4.3*)
21591 version_type=linux
21592 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21593 soname_spec='${libname}${release}${shared_ext}$major'
21594 shlibpath_var=LD_LIBRARY_PATH
21595 case $host_vendor in
21596 sni)
21597 shlibpath_overrides_runpath=no
21598 need_lib_prefix=no
21599 runpath_var=LD_RUN_PATH
21600 ;;
21601 siemens)
21602 need_lib_prefix=no
21603 ;;
21604 motorola)
21605 need_lib_prefix=no
21606 need_version=no
21607 shlibpath_overrides_runpath=no
21608 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21609 ;;
21610 esac
21611 ;;
21612
21613 sysv4*MP*)
21614 if test -d /usr/nec ;then
21615 version_type=linux
21616 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21617 soname_spec='$libname${shared_ext}.$major'
21618 shlibpath_var=LD_LIBRARY_PATH
21619 fi
21620 ;;
21621
21622 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21623 version_type=freebsd-elf
21624 need_lib_prefix=no
21625 need_version=no
21626 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21627 soname_spec='${libname}${release}${shared_ext}$major'
21628 shlibpath_var=LD_LIBRARY_PATH
21629 shlibpath_overrides_runpath=yes
21630 hardcode_into_libs=yes
21631 if test "$with_gnu_ld" = yes; then
21632 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21633 else
21634 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21635 case $host_os in
21636 sco3.2v5*)
21637 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21638 ;;
21639 esac
21640 fi
21641 sys_lib_dlsearch_path_spec='/usr/lib'
21642 ;;
21643
21644 tpf*)
21645 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
21646 version_type=linux
21647 need_lib_prefix=no
21648 need_version=no
21649 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21650 shlibpath_var=LD_LIBRARY_PATH
21651 shlibpath_overrides_runpath=no
21652 hardcode_into_libs=yes
21653 ;;
21654
21655 uts4*)
21656 version_type=linux
21657 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21658 soname_spec='${libname}${release}${shared_ext}$major'
21659 shlibpath_var=LD_LIBRARY_PATH
21660 ;;
21661
21662 *)
21663 dynamic_linker=no
21664 ;;
21665 esac
21666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21667 $as_echo "$dynamic_linker" >&6; }
21668 test "$dynamic_linker" = no && can_build_shared=no
21669
21670 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21671 if test "$GCC" = yes; then
21672 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21673 fi
21674
21675 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21676 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
21677 fi
21678 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21679 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
21680 fi
21681
21682
21683
21684
21685
21686
21687
21688
21689
21690
21691
21692
21693
21694
21695
21696
21697
21698
21699
21700
21701
21702
21703
21704
21705
21706
21707
21708
21709
21710
21711
21712
21713
21714
21715
21716
21717
21718
21719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21720 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21721 hardcode_action_CXX=
21722 if test -n "$hardcode_libdir_flag_spec_CXX" ||
21723 test -n "$runpath_var_CXX" ||
21724 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21725
21726 # We can hardcode non-existent directories.
21727 if test "$hardcode_direct_CXX" != no &&
21728 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21729 # have to relink, otherwise we might link with an installed library
21730 # when we should be linking with a yet-to-be-installed one
21731 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21732 test "$hardcode_minus_L_CXX" != no; then
21733 # Linking always hardcodes the temporary library directory.
21734 hardcode_action_CXX=relink
21735 else
21736 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21737 hardcode_action_CXX=immediate
21738 fi
21739 else
21740 # We cannot hardcode anything, or else we can only hardcode existing
21741 # directories.
21742 hardcode_action_CXX=unsupported
21743 fi
21744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21745 $as_echo "$hardcode_action_CXX" >&6; }
21746
21747 if test "$hardcode_action_CXX" = relink ||
21748 test "$inherit_rpath_CXX" = yes; then
21749 # Fast installation is not supported
21750 enable_fast_install=no
21751 elif test "$shlibpath_overrides_runpath" = yes ||
21752 test "$enable_shared" = no; then
21753 # Fast installation is not necessary
21754 enable_fast_install=needless
21755 fi
21756
21757
21758
21759
21760
21761
21762
21763 fi # test -n "$compiler"
21764
21765 CC=$lt_save_CC
21766 LDCXX=$LD
21767 LD=$lt_save_LD
21768 GCC=$lt_save_GCC
21769 with_gnu_ld=$lt_save_with_gnu_ld
21770 lt_cv_path_LDCXX=$lt_cv_path_LD
21771 lt_cv_path_LD=$lt_save_path_LD
21772 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21773 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21774 fi # test "$_lt_caught_CXX_error" != yes
21775
21776 ac_ext=cpp
21777 ac_cpp='$CXXCPP $CPPFLAGS'
21778 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21779 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21780 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21781
21782
21783
21784
21785
21786
21787
21788
21789
21790
21791
21792
21793
21794
21795
21796
21797 # Only expand once:
21798
21799
21800
21801
21802
21803 # Identify the assembler which will work hand-in-glove with the newly
21804 # built GCC, so that we can examine its features. This is the assembler
21805 # which will be driven by the driver program.
21806 #
21807 # If build != host, and we aren't building gas in-tree, we identify a
21808 # build->target assembler and hope that it will have the same features
21809 # as the host->target assembler we'll be using.
21810 gcc_cv_gas_major_version=
21811 gcc_cv_gas_minor_version=
21812 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
21813
21814 if test "${gcc_cv_as+set}" = set; then :
21815
21816 else
21817
21818 if test -x "$DEFAULT_ASSEMBLER"; then
21819 gcc_cv_as="$DEFAULT_ASSEMBLER"
21820 elif test -f $gcc_cv_as_gas_srcdir/configure.ac \
21821 && test -f ../gas/Makefile \
21822 && test x$build = x$host; then
21823 gcc_cv_as=../gas/as-new$build_exeext
21824 elif test -x as$build_exeext; then
21825 # Build using assembler in the current directory.
21826 gcc_cv_as=./as$build_exeext
21827 elif ( set dummy $AS_FOR_TARGET; test -x $2 ); then
21828 gcc_cv_as="$AS_FOR_TARGET"
21829 else
21830 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
21831 set dummy $AS_FOR_TARGET; ac_word=$2
21832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21833 $as_echo_n "checking for $ac_word... " >&6; }
21834 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
21835 $as_echo_n "(cached) " >&6
21836 else
21837 case $gcc_cv_as in
21838 [\\/]* | ?:[\\/]*)
21839 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
21840 ;;
21841 *)
21842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21843 for as_dir in $PATH
21844 do
21845 IFS=$as_save_IFS
21846 test -z "$as_dir" && as_dir=.
21847 for ac_exec_ext in '' $ac_executable_extensions; do
21848 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21849 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
21850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21851 break 2
21852 fi
21853 done
21854 done
21855 IFS=$as_save_IFS
21856
21857 ;;
21858 esac
21859 fi
21860 gcc_cv_as=$ac_cv_path_gcc_cv_as
21861 if test -n "$gcc_cv_as"; then
21862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21863 $as_echo "$gcc_cv_as" >&6; }
21864 else
21865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21866 $as_echo "no" >&6; }
21867 fi
21868
21869
21870 fi
21871 fi
21872
21873 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
21874
21875 case "$ORIGINAL_AS_FOR_TARGET" in
21876 ./as | ./as$build_exeext) ;;
21877 *) ac_config_files="$ac_config_files as:exec-tool.in"
21878 ;;
21879 esac
21880
21881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
21882 $as_echo_n "checking what assembler to use... " >&6; }
21883 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
21884 # Single tree build which includes gas. We want to prefer it
21885 # over whatever linker top-level may have detected, since
21886 # we'll use what we're building after installation anyway.
21887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
21888 $as_echo "newly built gas" >&6; }
21889 in_tree_gas=yes
21890 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21891 for f in $gcc_cv_as_bfd_srcdir/configure \
21892 $gcc_cv_as_gas_srcdir/configure \
21893 $gcc_cv_as_gas_srcdir/configure.ac \
21894 $gcc_cv_as_gas_srcdir/Makefile.in ; do
21895 gcc_cv_gas_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21896 if test x$gcc_cv_gas_version != x; then
21897 break
21898 fi
21899 done
21900 case $gcc_cv_gas_version in
21901 VERSION=[0-9]*) ;;
21902 *) as_fn_error "cannot find version of in-tree assembler" "$LINENO" 5;;
21903 esac
21904 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
21905 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21906 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
21907 case $gcc_cv_gas_patch_version in
21908 "") gcc_cv_gas_patch_version="0" ;;
21909 esac
21910 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
21911 + $gcc_cv_gas_minor_version \) \* 1000 \
21912 + $gcc_cv_gas_patch_version`
21913
21914 in_tree_gas_is_elf=no
21915 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
21916 || (grep 'obj_format = multi' ../gas/Makefile \
21917 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
21918 then
21919 in_tree_gas_is_elf=yes
21920 fi
21921 else
21922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21923 $as_echo "$gcc_cv_as" >&6; }
21924 in_tree_gas=no
21925 fi
21926
21927 default_ld=
21928 # Check whether --enable-ld was given.
21929 if test "${enable_ld+set}" = set; then :
21930 enableval=$enable_ld; case "${enableval}" in
21931 no)
21932 default_ld=ld.gold
21933 ;;
21934 esac
21935 fi
21936
21937
21938 install_gold_as_default=no
21939 # Check whether --enable-gold was given.
21940 if test "${enable_gold+set}" = set; then :
21941 enableval=$enable_gold; case "${enableval}" in
21942 default)
21943 install_gold_as_default=yes
21944 ;;
21945 yes)
21946 if test x${default_ld} != x; then
21947 install_gold_as_default=yes
21948 fi
21949 ;;
21950 no)
21951 ;;
21952 *)
21953 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
21954 ;;
21955 esac
21956 fi
21957
21958
21959 # Identify the linker which will work hand-in-glove with the newly
21960 # built GCC, so that we can examine its features. This is the linker
21961 # which will be driven by the driver program.
21962 #
21963 # If build != host, and we aren't building gas in-tree, we identify a
21964 # build->target linker and hope that it will have the same features
21965 # as the host->target linker we'll be using.
21966 gcc_cv_gld_major_version=
21967 gcc_cv_gld_minor_version=
21968 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
21969 gcc_cv_ld_gold_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gold
21970 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21971
21972 if test "${gcc_cv_ld+set}" = set; then :
21973
21974 else
21975
21976 if test -x "$DEFAULT_LINKER"; then
21977 gcc_cv_ld="$DEFAULT_LINKER"
21978 elif test $install_gold_as_default = yes \
21979 && test -f $gcc_cv_ld_gold_srcdir/configure.ac \
21980 && test -f ../gold/Makefile \
21981 && test x$build = x$host; then
21982 gcc_cv_ld=../gold/ld-new$build_exeext
21983 elif test -f $gcc_cv_ld_gld_srcdir/configure.ac \
21984 && test -f ../ld/Makefile \
21985 && test x$build = x$host; then
21986 gcc_cv_ld=../ld/ld-new$build_exeext
21987 elif test -x collect-ld$build_exeext; then
21988 # Build using linker in the current directory.
21989 gcc_cv_ld=./collect-ld$build_exeext
21990 elif ( set dummy $LD_FOR_TARGET; test -x $2 ); then
21991 gcc_cv_ld="$LD_FOR_TARGET"
21992 else
21993 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
21994 set dummy $LD_FOR_TARGET; ac_word=$2
21995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21996 $as_echo_n "checking for $ac_word... " >&6; }
21997 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
21998 $as_echo_n "(cached) " >&6
21999 else
22000 case $gcc_cv_ld in
22001 [\\/]* | ?:[\\/]*)
22002 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
22003 ;;
22004 *)
22005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22006 for as_dir in $PATH
22007 do
22008 IFS=$as_save_IFS
22009 test -z "$as_dir" && as_dir=.
22010 for ac_exec_ext in '' $ac_executable_extensions; do
22011 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22012 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
22013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22014 break 2
22015 fi
22016 done
22017 done
22018 IFS=$as_save_IFS
22019
22020 ;;
22021 esac
22022 fi
22023 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
22024 if test -n "$gcc_cv_ld"; then
22025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
22026 $as_echo "$gcc_cv_ld" >&6; }
22027 else
22028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22029 $as_echo "no" >&6; }
22030 fi
22031
22032
22033 fi
22034 fi
22035
22036 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
22037 PLUGIN_LD_SUFFIX=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
22038 # if the PLUGIN_LD is set ld-new, just have it as ld
22039 # as that is the installed named.
22040 if test x$PLUGIN_LD_SUFFIX = xld-new \
22041 || test x$PLUGIN_LD_SUFFIX = xcollect-ld ; then
22042 PLUGIN_LD_SUFFIX=ld
22043 fi
22044
22045 # Check whether --with-plugin-ld was given.
22046 if test "${with_plugin_ld+set}" = set; then :
22047 withval=$with_plugin_ld; if test x"$withval" != x; then
22048 ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
22049 PLUGIN_LD_SUFFIX="$withval"
22050 fi
22051 fi
22052
22053
22054
22055 cat >>confdefs.h <<_ACEOF
22056 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
22057 _ACEOF
22058
22059
22060 # Check to see if we are using gold instead of ld
22061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
22062 $as_echo_n "checking whether we are using gold... " >&6; }
22063 ld_is_gold=no
22064 if test x$gcc_cv_ld != x; then
22065 if $gcc_cv_ld --version 2>/dev/null | sed 1q \
22066 | grep "GNU gold" > /dev/null; then
22067 ld_is_gold=yes
22068 fi
22069 fi
22070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
22071 $as_echo "$ld_is_gold" >&6; }
22072
22073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gold linker with split stack support as non default" >&5
22074 $as_echo_n "checking gold linker with split stack support as non default... " >&6; }
22075 # Check to see if default ld is not gold, but gold is
22076 # available and has support for split stack. If gcc was configured
22077 # with gold then no checking is done.
22078 #
22079 if test x$ld_is_gold = xno && which ${gcc_cv_ld}.gold >/dev/null 2>&1; then
22080
22081 # For platforms other than powerpc64*, enable as appropriate.
22082
22083 gold_non_default=no
22084 ld_gold=`which ${gcc_cv_ld}.gold`
22085 # Make sure this gold has minimal split stack support
22086 if $ld_gold --help 2>/dev/null | grep split-stack-adjust-size >/dev/null 2>&1; then
22087 ld_vers=`$ld_gold --version | sed 1q`
22088 gold_vers=`echo $ld_vers | sed -n \
22089 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22090 case $target in
22091 # check that the gold version contains the complete split stack support
22092 # on powerpc64 big and little endian
22093 powerpc64*-*-*)
22094 case "$gold_vers" in
22095 2.25.[1-9]*|2.2[6-9][.0-9]*|2.[3-9][.0-9]*|[3-9].[.0-9]*) gold_non_default=yes
22096 ;;
22097 *) gold_non_default=no
22098 ;;
22099 esac
22100 ;;
22101 esac
22102 fi
22103 if test $gold_non_default = yes; then
22104
22105 $as_echo "#define HAVE_GOLD_NON_DEFAULT_SPLIT_STACK 1" >>confdefs.h
22106
22107 fi
22108 fi
22109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_non_default" >&5
22110 $as_echo "$gold_non_default" >&6; }
22111
22112 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
22113
22114 case "$ORIGINAL_LD_FOR_TARGET" in
22115 ./collect-ld | ./collect-ld$build_exeext) ;;
22116 *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
22117 ;;
22118 esac
22119
22120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
22121 $as_echo_n "checking what linker to use... " >&6; }
22122 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext \
22123 || test "$gcc_cv_ld" = ../gold/ld-new$build_exeext; then
22124 # Single tree build which includes ld. We want to prefer it
22125 # over whatever linker top-level may have detected, since
22126 # we'll use what we're building after installation anyway.
22127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
22128 $as_echo "newly built ld" >&6; }
22129 in_tree_ld=yes
22130 in_tree_ld_is_elf=no
22131 if (grep 'EMUL = .*elf' ../ld/Makefile \
22132 || grep 'EMUL = .*linux' ../ld/Makefile \
22133 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
22134 in_tree_ld_is_elf=yes
22135 elif test "$ld_is_gold" = yes; then
22136 in_tree_ld_is_elf=yes
22137 fi
22138 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
22139 do
22140 gcc_cv_gld_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
22141 if test x$gcc_cv_gld_version != x; then
22142 break
22143 fi
22144 done
22145 case $gcc_cv_gld_version in
22146 VERSION=[0-9]*) ;;
22147 *) as_fn_error "cannot find version of in-tree linker" "$LINENO" 5 ;;
22148 esac
22149 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
22150 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
22151 ORIGINAL_LD_BFD_FOR_TARGET=../ld/ld-new$build_exeext
22152 ORIGINAL_LD_GOLD_FOR_TARGET=../gold/ld-new$build_exeext
22153 else
22154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
22155 $as_echo "$gcc_cv_ld" >&6; }
22156 in_tree_ld=no
22157 gcc_cvs_ld_program=`dirname $gcc_cv_ld`/`basename $gcc_cv_ld $host_exeext`
22158 ORIGINAL_LD_BFD_FOR_TARGET=${gcc_cvs_ld_program}.bfd$host_exeext
22159 ORIGINAL_LD_GOLD_FOR_TARGET=${gcc_cvs_ld_program}.gold$host_exeext
22160 fi
22161
22162
22163
22164
22165 # Figure out what nm we will be using.
22166 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
22167 if test "${gcc_cv_nm+set}" = set; then :
22168
22169 else
22170
22171 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22172 && test -f ../binutils/Makefile \
22173 && test x$build = x$host; then
22174 gcc_cv_nm=../binutils/nm-new$build_exeext
22175 elif test -x nm$build_exeext; then
22176 gcc_cv_nm=./nm$build_exeext
22177 elif ( set dummy $NM_FOR_TARGET; test -x $2 ); then
22178 gcc_cv_nm="$NM_FOR_TARGET"
22179 else
22180 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
22181 set dummy $NM_FOR_TARGET; ac_word=$2
22182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22183 $as_echo_n "checking for $ac_word... " >&6; }
22184 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
22185 $as_echo_n "(cached) " >&6
22186 else
22187 case $gcc_cv_nm in
22188 [\\/]* | ?:[\\/]*)
22189 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
22190 ;;
22191 *)
22192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22193 for as_dir in $PATH
22194 do
22195 IFS=$as_save_IFS
22196 test -z "$as_dir" && as_dir=.
22197 for ac_exec_ext in '' $ac_executable_extensions; do
22198 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22199 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
22200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22201 break 2
22202 fi
22203 done
22204 done
22205 IFS=$as_save_IFS
22206
22207 ;;
22208 esac
22209 fi
22210 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
22211 if test -n "$gcc_cv_nm"; then
22212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
22213 $as_echo "$gcc_cv_nm" >&6; }
22214 else
22215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22216 $as_echo "no" >&6; }
22217 fi
22218
22219
22220 fi
22221 fi
22222
22223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
22224 $as_echo_n "checking what nm to use... " >&6; }
22225 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
22226 # Single tree build which includes binutils.
22227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
22228 $as_echo "newly built nm" >&6; }
22229 in_tree_nm=yes
22230 else
22231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
22232 $as_echo "$gcc_cv_nm" >&6; }
22233 in_tree_nm=no
22234 fi
22235
22236 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
22237
22238 case "$ORIGINAL_NM_FOR_TARGET" in
22239 ./nm | ./nm$build_exeext) ;;
22240 *) ac_config_files="$ac_config_files nm:exec-tool.in"
22241 ;;
22242 esac
22243
22244
22245 # Figure out what objdump we will be using.
22246 if test "${gcc_cv_objdump+set}" = set; then :
22247
22248 else
22249
22250 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22251 && test -f ../binutils/Makefile \
22252 && test x$build = x$host; then
22253 # Single tree build which includes binutils.
22254 gcc_cv_objdump=../binutils/objdump$build_exeext
22255 elif test -x objdump$build_exeext; then
22256 gcc_cv_objdump=./objdump$build_exeext
22257 elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $2 ); then
22258 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
22259 else
22260 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
22261 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
22262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22263 $as_echo_n "checking for $ac_word... " >&6; }
22264 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
22265 $as_echo_n "(cached) " >&6
22266 else
22267 case $gcc_cv_objdump in
22268 [\\/]* | ?:[\\/]*)
22269 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
22270 ;;
22271 *)
22272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22273 for as_dir in $PATH
22274 do
22275 IFS=$as_save_IFS
22276 test -z "$as_dir" && as_dir=.
22277 for ac_exec_ext in '' $ac_executable_extensions; do
22278 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22279 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
22280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22281 break 2
22282 fi
22283 done
22284 done
22285 IFS=$as_save_IFS
22286
22287 ;;
22288 esac
22289 fi
22290 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
22291 if test -n "$gcc_cv_objdump"; then
22292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
22293 $as_echo "$gcc_cv_objdump" >&6; }
22294 else
22295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22296 $as_echo "no" >&6; }
22297 fi
22298
22299
22300 fi
22301 fi
22302
22303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
22304 $as_echo_n "checking what objdump to use... " >&6; }
22305 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
22306 # Single tree build which includes binutils.
22307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
22308 $as_echo "newly built objdump" >&6; }
22309 elif test x$gcc_cv_objdump = x; then
22310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22311 $as_echo "not found" >&6; }
22312 else
22313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
22314 $as_echo "$gcc_cv_objdump" >&6; }
22315 fi
22316
22317 # Figure out what readelf we will be using.
22318 if test "${gcc_cv_readelf+set}" = set; then :
22319
22320 else
22321
22322 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22323 && test -f ../binutils/Makefile \
22324 && test x$build = x$host; then
22325 # Single tree build which includes binutils.
22326 gcc_cv_readelf=../binutils/readelf$build_exeext
22327 elif test -x readelf$build_exeext; then
22328 gcc_cv_readelf=./readelf$build_exeext
22329 elif ( set dummy $READELF_FOR_TARGET; test -x $2 ); then
22330 gcc_cv_readelf="$READELF_FOR_TARGET"
22331 else
22332 # Extract the first word of "$READELF_FOR_TARGET", so it can be a program name with args.
22333 set dummy $READELF_FOR_TARGET; ac_word=$2
22334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22335 $as_echo_n "checking for $ac_word... " >&6; }
22336 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
22337 $as_echo_n "(cached) " >&6
22338 else
22339 case $gcc_cv_readelf in
22340 [\\/]* | ?:[\\/]*)
22341 ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
22342 ;;
22343 *)
22344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22345 for as_dir in $PATH
22346 do
22347 IFS=$as_save_IFS
22348 test -z "$as_dir" && as_dir=.
22349 for ac_exec_ext in '' $ac_executable_extensions; do
22350 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22351 ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
22352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22353 break 2
22354 fi
22355 done
22356 done
22357 IFS=$as_save_IFS
22358
22359 ;;
22360 esac
22361 fi
22362 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
22363 if test -n "$gcc_cv_readelf"; then
22364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22365 $as_echo "$gcc_cv_readelf" >&6; }
22366 else
22367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22368 $as_echo "no" >&6; }
22369 fi
22370
22371
22372 fi
22373 fi
22374
22375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
22376 $as_echo_n "checking what readelf to use... " >&6; }
22377 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
22378 # Single tree build which includes binutils.
22379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
22380 $as_echo "newly built readelf" >&6; }
22381 elif test x$gcc_cv_readelf = x; then
22382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22383 $as_echo "not found" >&6; }
22384 else
22385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22386 $as_echo "$gcc_cv_readelf" >&6; }
22387 fi
22388
22389 # Figure out what assembler alignment features are present.
22390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
22391 $as_echo_n "checking assembler flags... " >&6; }
22392 if test "${gcc_cv_as_flags+set}" = set; then :
22393 $as_echo_n "(cached) " >&6
22394 else
22395 case "$target" in
22396 i[34567]86-*-linux*)
22397 gcc_cv_as_flags=--32
22398 ;;
22399 x86_64-*-linux-gnux32)
22400 gcc_cv_as_flags=--x32
22401 ;;
22402 x86_64-*-linux*)
22403 gcc_cv_as_flags=--64
22404 ;;
22405 powerpc*-*-darwin*)
22406 gcc_cv_as_flags="-arch ppc"
22407 ;;
22408 *)
22409 gcc_cv_as_flags=" "
22410 ;;
22411 esac
22412 fi
22413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
22414 $as_echo "$gcc_cv_as_flags" >&6; }
22415
22416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
22417 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
22418 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
22419 $as_echo_n "(cached) " >&6
22420 else
22421 gcc_cv_as_balign_and_p2align=no
22422 if test $in_tree_gas = yes; then
22423 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
22424 then gcc_cv_as_balign_and_p2align=yes
22425 fi
22426 elif test x$gcc_cv_as != x; then
22427 $as_echo '.balign 4
22428 .p2align 2' > conftest.s
22429 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22430 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22431 (eval $ac_try) 2>&5
22432 ac_status=$?
22433 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22434 test $ac_status = 0; }; }
22435 then
22436 gcc_cv_as_balign_and_p2align=yes
22437 else
22438 echo "configure: failed program was" >&5
22439 cat conftest.s >&5
22440 fi
22441 rm -f conftest.o conftest.s
22442 fi
22443 fi
22444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
22445 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
22446 if test $gcc_cv_as_balign_and_p2align = yes; then
22447
22448 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
22449
22450 fi
22451
22452
22453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
22454 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
22455 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
22456 $as_echo_n "(cached) " >&6
22457 else
22458 gcc_cv_as_max_skip_p2align=no
22459 if test $in_tree_gas = yes; then
22460 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22461 then gcc_cv_as_max_skip_p2align=yes
22462 fi
22463 elif test x$gcc_cv_as != x; then
22464 $as_echo '.p2align 4,,7' > conftest.s
22465 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22466 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22467 (eval $ac_try) 2>&5
22468 ac_status=$?
22469 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22470 test $ac_status = 0; }; }
22471 then
22472 gcc_cv_as_max_skip_p2align=yes
22473 else
22474 echo "configure: failed program was" >&5
22475 cat conftest.s >&5
22476 fi
22477 rm -f conftest.o conftest.s
22478 fi
22479 fi
22480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
22481 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
22482 if test $gcc_cv_as_max_skip_p2align = yes; then
22483
22484 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
22485
22486 fi
22487
22488
22489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
22490 $as_echo_n "checking assembler for .literal16... " >&6; }
22491 if test "${gcc_cv_as_literal16+set}" = set; then :
22492 $as_echo_n "(cached) " >&6
22493 else
22494 gcc_cv_as_literal16=no
22495 if test $in_tree_gas = yes; then
22496 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22497 then gcc_cv_as_literal16=yes
22498 fi
22499 elif test x$gcc_cv_as != x; then
22500 $as_echo '.literal16' > conftest.s
22501 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22502 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22503 (eval $ac_try) 2>&5
22504 ac_status=$?
22505 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22506 test $ac_status = 0; }; }
22507 then
22508 gcc_cv_as_literal16=yes
22509 else
22510 echo "configure: failed program was" >&5
22511 cat conftest.s >&5
22512 fi
22513 rm -f conftest.o conftest.s
22514 fi
22515 fi
22516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
22517 $as_echo "$gcc_cv_as_literal16" >&6; }
22518 if test $gcc_cv_as_literal16 = yes; then
22519
22520 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
22521
22522 fi
22523
22524
22525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
22526 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
22527 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
22528 $as_echo_n "(cached) " >&6
22529 else
22530 gcc_cv_as_subsection_m1=no
22531 if test $in_tree_gas = yes; then
22532 if test $in_tree_gas_is_elf = yes \
22533 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
22534 then gcc_cv_as_subsection_m1=yes
22535 fi
22536 elif test x$gcc_cv_as != x; then
22537 $as_echo 'conftest_label1: .word 0
22538 .subsection -1
22539 conftest_label2: .word 0
22540 .previous' > conftest.s
22541 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22542 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22543 (eval $ac_try) 2>&5
22544 ac_status=$?
22545 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22546 test $ac_status = 0; }; }
22547 then
22548 if test x$gcc_cv_nm != x; then
22549 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
22550 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
22551 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
22552 then :
22553 else gcc_cv_as_subsection_m1=yes
22554 fi
22555 rm -f conftest.nm1 conftest.nm2
22556 fi
22557 else
22558 echo "configure: failed program was" >&5
22559 cat conftest.s >&5
22560 fi
22561 rm -f conftest.o conftest.s
22562 fi
22563 fi
22564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
22565 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
22566 if test $gcc_cv_as_subsection_m1 = yes; then
22567
22568 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
22569
22570 fi
22571
22572
22573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
22574 $as_echo_n "checking assembler for .weak... " >&6; }
22575 if test "${gcc_cv_as_weak+set}" = set; then :
22576 $as_echo_n "(cached) " >&6
22577 else
22578 gcc_cv_as_weak=no
22579 if test $in_tree_gas = yes; then
22580 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
22581 then gcc_cv_as_weak=yes
22582 fi
22583 elif test x$gcc_cv_as != x; then
22584 $as_echo ' .weak foobar' > conftest.s
22585 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22586 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22587 (eval $ac_try) 2>&5
22588 ac_status=$?
22589 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22590 test $ac_status = 0; }; }
22591 then
22592 gcc_cv_as_weak=yes
22593 else
22594 echo "configure: failed program was" >&5
22595 cat conftest.s >&5
22596 fi
22597 rm -f conftest.o conftest.s
22598 fi
22599 fi
22600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
22601 $as_echo "$gcc_cv_as_weak" >&6; }
22602 if test $gcc_cv_as_weak = yes; then
22603
22604 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
22605
22606 fi
22607
22608
22609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
22610 $as_echo_n "checking assembler for .weakref... " >&6; }
22611 if test "${gcc_cv_as_weakref+set}" = set; then :
22612 $as_echo_n "(cached) " >&6
22613 else
22614 gcc_cv_as_weakref=no
22615 if test $in_tree_gas = yes; then
22616 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
22617 then gcc_cv_as_weakref=yes
22618 fi
22619 elif test x$gcc_cv_as != x; then
22620 $as_echo ' .weakref foobar, barfnot' > conftest.s
22621 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22622 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22623 (eval $ac_try) 2>&5
22624 ac_status=$?
22625 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22626 test $ac_status = 0; }; }
22627 then
22628 gcc_cv_as_weakref=yes
22629 else
22630 echo "configure: failed program was" >&5
22631 cat conftest.s >&5
22632 fi
22633 rm -f conftest.o conftest.s
22634 fi
22635 fi
22636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
22637 $as_echo "$gcc_cv_as_weakref" >&6; }
22638 if test $gcc_cv_as_weakref = yes; then
22639
22640 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
22641
22642 fi
22643
22644
22645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
22646 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
22647 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
22648 $as_echo_n "(cached) " >&6
22649 else
22650 gcc_cv_as_nsubspa_comdat=no
22651 if test $in_tree_gas = yes; then
22652 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22653 then gcc_cv_as_nsubspa_comdat=yes
22654 fi
22655 elif test x$gcc_cv_as != x; then
22656 $as_echo ' .SPACE $TEXT$
22657 .NSUBSPA $CODE$,COMDAT' > conftest.s
22658 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22659 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22660 (eval $ac_try) 2>&5
22661 ac_status=$?
22662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22663 test $ac_status = 0; }; }
22664 then
22665 gcc_cv_as_nsubspa_comdat=yes
22666 else
22667 echo "configure: failed program was" >&5
22668 cat conftest.s >&5
22669 fi
22670 rm -f conftest.o conftest.s
22671 fi
22672 fi
22673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
22674 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
22675 if test $gcc_cv_as_nsubspa_comdat = yes; then
22676
22677 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
22678
22679 fi
22680
22681
22682 # .hidden needs to be supported in both the assembler and the linker,
22683 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
22684 # This is irritatingly difficult to feature test for; we have to check the
22685 # date string after the version number. If we've got an in-tree
22686 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
22687 # to be safe.
22688 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
22689 case "${target}" in
22690 *-*-aix*)
22691 conftest_s=' .globl foobar,hidden'
22692 ;;
22693 *)
22694 conftest_s=' .hidden foobar
22695 foobar:'
22696 ;;
22697 esac
22698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
22699 $as_echo_n "checking assembler for .hidden... " >&6; }
22700 if test "${gcc_cv_as_hidden+set}" = set; then :
22701 $as_echo_n "(cached) " >&6
22702 else
22703 gcc_cv_as_hidden=no
22704 if test $in_tree_gas = yes; then
22705 if test $in_tree_gas_is_elf = yes \
22706 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
22707 then gcc_cv_as_hidden=yes
22708 fi
22709 elif test x$gcc_cv_as != x; then
22710 $as_echo "$conftest_s" > conftest.s
22711 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22712 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22713 (eval $ac_try) 2>&5
22714 ac_status=$?
22715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22716 test $ac_status = 0; }; }
22717 then
22718 gcc_cv_as_hidden=yes
22719 else
22720 echo "configure: failed program was" >&5
22721 cat conftest.s >&5
22722 fi
22723 rm -f conftest.o conftest.s
22724 fi
22725 fi
22726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
22727 $as_echo "$gcc_cv_as_hidden" >&6; }
22728
22729
22730 case "${target}" in
22731 *-*-darwin*)
22732 # Darwin as has some visibility support, though with a different syntax.
22733 gcc_cv_as_hidden=yes
22734 ;;
22735 esac
22736
22737 # gnu_indirect_function type is an extension proposed at
22738 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
22739 # selection of function implementation
22740 # Check whether --enable-gnu-indirect-function was given.
22741 if test "${enable_gnu_indirect_function+set}" = set; then :
22742 enableval=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
22743 yes | no) ;;
22744 *) as_fn_error "'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
22745 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
22746 esac
22747 else
22748 enable_gnu_indirect_function="$default_gnu_indirect_function"
22749 fi
22750
22751
22752 gif=`if test x$enable_gnu_indirect_function = xyes; then echo 1; else echo 0; fi`
22753
22754 cat >>confdefs.h <<_ACEOF
22755 #define HAVE_GNU_INDIRECT_FUNCTION $gif
22756 _ACEOF
22757
22758
22759
22760 if test $in_tree_ld != yes ; then
22761 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
22762 if echo "$ld_ver" | grep GNU > /dev/null; then
22763 if test x"$ld_is_gold" = xyes; then
22764 # GNU gold --version looks like this:
22765 #
22766 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
22767 #
22768 # We extract the binutils version which is more familiar and specific
22769 # than the gold version.
22770 ld_vers=`echo $ld_ver | sed -n \
22771 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22772 else
22773 # GNU ld --version looks like this:
22774 #
22775 # GNU ld (GNU Binutils) 2.21.51.20110225
22776 ld_vers=`echo $ld_ver | sed -n \
22777 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22778 fi
22779 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'`
22780 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22781 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22782 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
22783 else
22784 case "${target}" in
22785 *-*-solaris2*)
22786 # See acinclude.m4 (gcc_SUN_LD_VERSION) for the version number
22787 # format.
22788 #
22789 # Don't reuse gcc_gv_sun_ld_vers_* in case a linker other than
22790 # /usr/ccs/bin/ld has been configured.
22791 ld_ver=`$gcc_cv_ld -V 2>&1`
22792 if echo "$ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
22793 ld_vers=`echo $ld_ver | sed -n \
22794 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22795 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22796 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22797 fi
22798 ;;
22799 esac
22800 fi
22801 fi
22802
22803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
22804 $as_echo_n "checking linker for .hidden support... " >&6; }
22805 if test "${gcc_cv_ld_hidden+set}" = set; then :
22806 $as_echo_n "(cached) " >&6
22807 else
22808 if test $in_tree_ld = yes ; then
22809 gcc_cv_ld_hidden=no
22810 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 \
22811 && test $in_tree_ld_is_elf = yes; then
22812 gcc_cv_ld_hidden=yes
22813 fi
22814 else
22815 gcc_cv_ld_hidden=yes
22816 if test x"$ld_is_gold" = xyes; then
22817 :
22818 elif echo "$ld_ver" | grep GNU > /dev/null; then
22819 case "${target}" in
22820 mmix-knuth-mmixware)
22821 # The linker emits by default mmo, not ELF, so "no" is appropriate.
22822 gcc_cv_ld_hidden=no
22823 ;;
22824 esac
22825 if test 0"$ld_date" -lt 20020404; then
22826 if test -n "$ld_date"; then
22827 # If there was date string, but was earlier than 2002-04-04, fail
22828 gcc_cv_ld_hidden=no
22829 elif test -z "$ld_vers"; then
22830 # If there was no date string nor ld version number, something is wrong
22831 gcc_cv_ld_hidden=no
22832 else
22833 test -z "$ld_vers_patch" && ld_vers_patch=0
22834 if test "$ld_vers_major" -lt 2; then
22835 gcc_cv_ld_hidden=no
22836 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
22837 gcc_cv_ld_hidden="no"
22838 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
22839 gcc_cv_ld_hidden=no
22840 fi
22841 fi
22842 fi
22843 else
22844 case "${target}" in
22845 *-*-aix[789]*)
22846 gcc_cv_ld_hidden=yes
22847 ;;
22848 *-*-darwin*)
22849 # Darwin ld has some visibility support.
22850 gcc_cv_ld_hidden=yes
22851 ;;
22852 hppa64*-*-hpux* | ia64*-*-hpux*)
22853 gcc_cv_ld_hidden=yes
22854 ;;
22855 *-*-solaris2.1[0-9]*)
22856 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
22857 # .symbolic was only added in Solaris 9 12/02.
22858 gcc_cv_ld_hidden=yes
22859 ;;
22860 *)
22861 gcc_cv_ld_hidden=no
22862 ;;
22863 esac
22864 fi
22865 fi
22866 fi
22867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
22868 $as_echo "$gcc_cv_ld_hidden" >&6; }
22869 libgcc_visibility=no
22870
22871
22872 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
22873 libgcc_visibility=yes
22874
22875 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
22876
22877 fi
22878
22879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
22880 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
22881 gcc_cv_ld_ro_rw_mix=unknown
22882 if test $in_tree_ld = yes ; then
22883 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 \
22884 && test $in_tree_ld_is_elf = yes; then
22885 gcc_cv_ld_ro_rw_mix=read-write
22886 fi
22887 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22888 echo '.section myfoosect, "a"' > conftest1.s
22889 echo '.section myfoosect, "aw"' > conftest2.s
22890 echo '.byte 1' >> conftest2.s
22891 echo '.section myfoosect, "a"' > conftest3.s
22892 echo '.byte 0' >> conftest3.s
22893 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
22894 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
22895 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
22896 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
22897 conftest2.o conftest3.o > /dev/null 2>&1; then
22898 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
22899 | sed -e '/myfoosect/!d' -e N`
22900 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
22901 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
22902 gcc_cv_ld_ro_rw_mix=read-only
22903 else
22904 gcc_cv_ld_ro_rw_mix=read-write
22905 fi
22906 fi
22907 fi
22908 rm -f conftest.* conftest[123].*
22909 fi
22910 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
22911
22912 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
22913
22914 fi
22915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
22916 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
22917
22918 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22919 case "${target}" in
22920 *-*-solaris2*)
22921 #
22922 # Solaris 2 ld -V output looks like this for a regular version:
22923 #
22924 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
22925 #
22926 # but test versions add stuff at the end:
22927 #
22928 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
22929 #
22930 gcc_cv_sun_ld_ver=`/usr/ccs/bin/ld -V 2>&1`
22931 if echo "$gcc_cv_sun_ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
22932 gcc_cv_sun_ld_vers=`echo $gcc_cv_sun_ld_ver | sed -n \
22933 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22934 gcc_cv_sun_ld_vers_major=`expr "$gcc_cv_sun_ld_vers" : '\([0-9]*\)'`
22935 gcc_cv_sun_ld_vers_minor=`expr "$gcc_cv_sun_ld_vers" : '[0-9]*\.\([0-9]*\)'`
22936 fi
22937 ;;
22938 esac
22939 fi
22940
22941 # Check whether --enable-initfini-array was given.
22942 if test "${enable_initfini_array+set}" = set; then :
22943 enableval=$enable_initfini_array;
22944 else
22945
22946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
22947 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
22948 if test "${gcc_cv_initfini_array+set}" = set; then :
22949 $as_echo_n "(cached) " >&6
22950 else
22951 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22952 case "${target}" in
22953 ia64-*)
22954 if test "$cross_compiling" = yes; then :
22955 gcc_cv_initfini_array=no
22956 else
22957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22958 /* end confdefs.h. */
22959
22960 #ifndef __ELF__
22961 #error Not an ELF OS
22962 #endif
22963 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
22964 if it can be used. */
22965 static int x = -1;
22966 int main (void) { return x; }
22967 int foo (void) { x = 0; }
22968 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
22969
22970 _ACEOF
22971 if ac_fn_cxx_try_run "$LINENO"; then :
22972 gcc_cv_initfini_array=yes
22973 else
22974 gcc_cv_initfini_array=no
22975 fi
22976 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22977 conftest.$ac_objext conftest.beam conftest.$ac_ext
22978 fi
22979 ;;
22980 *)
22981 gcc_cv_initfini_array=no
22982 if test $in_tree_ld = yes ; then
22983 if test "$gcc_cv_gld_major_version" -eq 2 \
22984 -a "$gcc_cv_gld_minor_version" -ge 22 \
22985 -o "$gcc_cv_gld_major_version" -gt 2 \
22986 && test $in_tree_ld_is_elf = yes; then
22987 gcc_cv_initfini_array=yes
22988 fi
22989 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22990 case $target:$gas in
22991 *:yes)
22992 sh_flags='"a"'
22993 sh_type='%progbits'
22994 ;;
22995 i?86-*-solaris2*:no | x86_64-*-solaris2*:no)
22996 sh_flags='"a"'
22997 sh_type='@progbits'
22998 ;;
22999 sparc*-*-solaris2*:no)
23000 sh_flags='#alloc'
23001 sh_type='#progbits'
23002 sh_quote='"'
23003 ;;
23004 esac
23005 case "$target:$gnu_ld" in
23006 *:yes)
23007 cat > conftest.s <<EOF
23008 .section .dtors,$sh_flags,$sh_type
23009 .balign 4
23010 .byte 'A', 'A', 'A', 'A'
23011 .section .ctors,$sh_flags,$sh_type
23012 .balign 4
23013 .byte 'B', 'B', 'B', 'B'
23014 .section .fini_array.65530,$sh_flags,$sh_type
23015 .balign 4
23016 .byte 'C', 'C', 'C', 'C'
23017 .section .init_array.65530,$sh_flags,$sh_type
23018 .balign 4
23019 .byte 'D', 'D', 'D', 'D'
23020 .section .dtors.64528,$sh_flags,$sh_type
23021 .balign 4
23022 .byte 'E', 'E', 'E', 'E'
23023 .section .ctors.64528,$sh_flags,$sh_type
23024 .balign 4
23025 .byte 'F', 'F', 'F', 'F'
23026 .section .fini_array.01005,$sh_flags,$sh_type
23027 .balign 4
23028 .byte 'G', 'G', 'G', 'G'
23029 .section .init_array.01005,$sh_flags,$sh_type
23030 .balign 4
23031 .byte 'H', 'H', 'H', 'H'
23032 .text
23033 .globl _start
23034 _start:
23035 EOF
23036 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
23037 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
23038 && $gcc_cv_objdump -s -j .init_array conftest \
23039 | grep HHHHFFFFDDDDBBBB > /dev/null 2>&1 \
23040 && $gcc_cv_objdump -s -j .fini_array conftest \
23041 | grep GGGGEEEECCCCAAAA > /dev/null 2>&1; then
23042 gcc_cv_initfini_array=yes
23043 fi
23044 ;;
23045 *-*-solaris2*:no)
23046 # When Solaris ld added constructor priority support, it was
23047 # decided to only handle .init_array.N/.fini_array.N since
23048 # there was no need for backwards compatibility with
23049 # .ctors.N/.dtors.N. .ctors/.dtors remain as separate
23050 # sections with correct execution order resp. to
23051 # .init_array/.fini_array, while gld merges them into
23052 # .init_array/.fini_array.
23053 cat > conftest.s <<EOF
23054 .section $sh_quote.fini_array.65530$sh_quote,$sh_flags,$sh_type
23055 .align 4
23056 .byte 'C', 'C', 'C', 'C'
23057 .section $sh_quote.init_array.65530$sh_quote,$sh_flags,$sh_type
23058 .align 4
23059 .byte 'D', 'D', 'D', 'D'
23060 .section $sh_quote.fini_array.01005$sh_quote,$sh_flags,$sh_type
23061 .align 4
23062 .byte 'G', 'G', 'G', 'G'
23063 .section $sh_quote.init_array.01005$sh_quote,$sh_flags,$sh_type
23064 .align 4
23065 .byte 'H', 'H', 'H', 'H'
23066 .text
23067 .globl _start
23068 _start:
23069 EOF
23070 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
23071 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
23072 && $gcc_cv_objdump -s -j .init_array conftest \
23073 | grep HHHHDDDD > /dev/null 2>&1 \
23074 && $gcc_cv_objdump -s -j .fini_array conftest \
23075 | grep GGGGCCCC > /dev/null 2>&1; then
23076 gcc_cv_initfini_array=yes
23077 fi
23078 ;;
23079 esac
23080 rm -f conftest conftest.*
23081 fi
23082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23083 /* end confdefs.h. */
23084
23085 #ifndef __ELF__
23086 # error Not an ELF OS
23087 #endif
23088 #include <stdlib.h>
23089 #if defined __GLIBC_PREREQ
23090 # if __GLIBC_PREREQ (2, 4)
23091 # else
23092 # error GLIBC 2.4 required
23093 # endif
23094 #else
23095 # if defined __sun__ && defined __svr4__
23096 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
23097 # else
23098 # error The C library not known to support .init_array/.fini_array
23099 # endif
23100 #endif
23101
23102 _ACEOF
23103 if ac_fn_cxx_try_cpp "$LINENO"; then :
23104
23105 else
23106 gcc_cv_initfini_array=no
23107 fi
23108 rm -f conftest.err conftest.$ac_ext;;
23109 esac
23110 else
23111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
23112 $as_echo_n "checking cross compile... guessing... " >&6; }
23113 gcc_cv_initfini_array=no
23114 fi
23115 fi
23116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
23117 $as_echo "$gcc_cv_initfini_array" >&6; }
23118 enable_initfini_array=$gcc_cv_initfini_array
23119
23120 fi
23121
23122
23123 cat >>confdefs.h <<_ACEOF
23124 #define HAVE_INITFINI_ARRAY_SUPPORT `if test $enable_initfini_array = yes; then echo 1; else echo 0; fi`
23125 _ACEOF
23126
23127
23128
23129 # Check if we have .[us]leb128, and support symbol arithmetic with it.
23130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
23131 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
23132 if test "${gcc_cv_as_leb128+set}" = set; then :
23133 $as_echo_n "(cached) " >&6
23134 else
23135 gcc_cv_as_leb128=no
23136 if test $in_tree_gas = yes; then
23137 if test $in_tree_gas_is_elf = yes \
23138 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
23139 then gcc_cv_as_leb128=yes
23140 fi
23141 elif test x$gcc_cv_as != x; then
23142 $as_echo ' .data
23143 .uleb128 L2 - L1
23144 L1:
23145 .uleb128 1280
23146 .sleb128 -1010
23147 L2:' > conftest.s
23148 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23149 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23150 (eval $ac_try) 2>&5
23151 ac_status=$?
23152 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23153 test $ac_status = 0; }; }
23154 then
23155 # GAS versions before 2.11 do not support uleb128,
23156 # despite appearing to.
23157 # ??? There exists an elf-specific test that will crash
23158 # the assembler. Perhaps it's better to figure out whether
23159 # arbitrary sections are supported and try the test.
23160 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
23161 if echo "$as_ver" | grep GNU > /dev/null; then
23162 as_vers=`echo $as_ver | sed -n \
23163 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23164 as_major=`expr "$as_vers" : '\([0-9]*\)'`
23165 as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
23166 if test $as_major -eq 2 && test $as_minor -lt 11
23167 then :
23168 else gcc_cv_as_leb128=yes
23169 fi
23170 fi
23171 else
23172 echo "configure: failed program was" >&5
23173 cat conftest.s >&5
23174 fi
23175 rm -f conftest.o conftest.s
23176 fi
23177 fi
23178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
23179 $as_echo "$gcc_cv_as_leb128" >&6; }
23180 if test $gcc_cv_as_leb128 = yes; then
23181
23182 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
23183
23184 fi
23185 if test $gcc_cv_as_leb128 != yes; then
23186
23187 $as_echo "#define HAVE_AS_LEB128 0" >>confdefs.h
23188
23189 fi
23190
23191 # Check if we have assembler support for unwind directives.
23192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
23193 $as_echo_n "checking assembler for cfi directives... " >&6; }
23194 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
23195 $as_echo_n "(cached) " >&6
23196 else
23197 gcc_cv_as_cfi_directive=no
23198 if test x$gcc_cv_as != x; then
23199 $as_echo ' .text
23200 .cfi_startproc
23201 .cfi_offset 0, 0
23202 .cfi_same_value 1
23203 .cfi_def_cfa 1, 2
23204 .cfi_escape 1, 2, 3, 4, 5
23205 .cfi_endproc' > conftest.s
23206 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23207 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23208 (eval $ac_try) 2>&5
23209 ac_status=$?
23210 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23211 test $ac_status = 0; }; }
23212 then
23213 case "$target" in
23214 *-*-solaris*)
23215 # If the linker used on Solaris (like Sun ld) isn't capable of merging
23216 # read-only and read-write sections, we need to make sure that the
23217 # assembler used emits read-write .eh_frame sections.
23218 if test "x$gcc_cv_ld_ro_rw_mix" != xread-write; then
23219 if test "x$gcc_cv_objdump" != x; then
23220 if $gcc_cv_objdump -h conftest.o 2>/dev/null | \
23221 sed -e /.eh_frame/!d -e N | grep READONLY > /dev/null; then
23222 gcc_cv_as_cfi_directive=no
23223 else
23224 case "$target" in
23225 i?86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*)
23226 # On Solaris/x86, make sure that GCC and assembler agree on using
23227 # read-only .eh_frame sections for 64-bit.
23228 if test x$gas = xyes; then
23229 as_ix86_64_opt="--64"
23230 else
23231 as_ix86_64_opt="-xarch=amd64"
23232 fi
23233 if $gcc_cv_as $as_ix86_64_opt -o conftest.o conftest.s > /dev/null 2>&1 && \
23234 $gcc_cv_objdump -h conftest.o 2>/dev/null | \
23235 sed -e /.eh_frame/!d -e N | \
23236 grep READONLY > /dev/null; then
23237 gcc_cv_as_cfi_directive=yes
23238 else
23239 gcc_cv_as_cfi_directive=no
23240 fi
23241 ;;
23242 *)
23243 gcc_cv_as_cfi_directive=yes
23244 ;;
23245 esac
23246 fi
23247 else
23248 # no objdump, err on the side of caution
23249 gcc_cv_as_cfi_directive=no
23250 fi
23251 else
23252 gcc_cv_as_cfi_directive=yes
23253 fi
23254 ;;
23255 *-*-*)
23256 gcc_cv_as_cfi_directive=yes
23257 ;;
23258 esac
23259 else
23260 echo "configure: failed program was" >&5
23261 cat conftest.s >&5
23262 fi
23263 rm -f conftest.o conftest.s
23264 fi
23265 fi
23266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
23267 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
23268
23269
23270 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then
23271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
23272 $as_echo_n "checking assembler for working cfi advance... " >&6; }
23273 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
23274 $as_echo_n "(cached) " >&6
23275 else
23276 gcc_cv_as_cfi_advance_working=no
23277 if test x$gcc_cv_as != x; then
23278 $as_echo ' .text
23279 .cfi_startproc
23280 .cfi_adjust_cfa_offset 64
23281 .skip 75040, 0
23282 .cfi_adjust_cfa_offset 128
23283 .cfi_endproc' > conftest.s
23284 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23285 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23286 (eval $ac_try) 2>&5
23287 ac_status=$?
23288 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23289 test $ac_status = 0; }; }
23290 then
23291
23292 if $gcc_cv_objdump -Wf conftest.o 2>/dev/null \
23293 | grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev/null; then
23294 gcc_cv_as_cfi_advance_working=yes
23295 fi
23296
23297 else
23298 echo "configure: failed program was" >&5
23299 cat conftest.s >&5
23300 fi
23301 rm -f conftest.o conftest.s
23302 fi
23303 fi
23304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
23305 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
23306
23307
23308 else
23309 # no objdump, err on the side of caution
23310 gcc_cv_as_cfi_advance_working=no
23311 fi
23312
23313
23314 cat >>confdefs.h <<_ACEOF
23315 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
23316 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
23317 _ACEOF
23318
23319
23320
23321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
23322 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
23323 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
23324 $as_echo_n "(cached) " >&6
23325 else
23326 gcc_cv_as_cfi_personality_directive=no
23327 if test x$gcc_cv_as != x; then
23328 $as_echo ' .text
23329 .cfi_startproc
23330 .cfi_personality 0, symbol
23331 .cfi_endproc' > conftest.s
23332 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23333 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23334 (eval $ac_try) 2>&5
23335 ac_status=$?
23336 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23337 test $ac_status = 0; }; }
23338 then
23339 gcc_cv_as_cfi_personality_directive=yes
23340 else
23341 echo "configure: failed program was" >&5
23342 cat conftest.s >&5
23343 fi
23344 rm -f conftest.o conftest.s
23345 fi
23346 fi
23347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
23348 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
23349
23350
23351
23352 cat >>confdefs.h <<_ACEOF
23353 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
23354 then echo 1; else echo 0; fi`
23355 _ACEOF
23356
23357
23358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
23359 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
23360 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
23361 $as_echo_n "(cached) " >&6
23362 else
23363 gcc_cv_as_cfi_sections_directive=no
23364 if test x$gcc_cv_as != x; then
23365 $as_echo ' .text
23366 .cfi_sections .debug_frame, .eh_frame
23367 .cfi_startproc
23368 .cfi_endproc' > conftest.s
23369 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23370 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23371 (eval $ac_try) 2>&5
23372 ac_status=$?
23373 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23374 test $ac_status = 0; }; }
23375 then
23376 case $target_os in
23377 win32 | pe | cygwin* | mingw32*)
23378 # Need to check that we generated the correct relocation for the
23379 # .debug_frame section. This was fixed for binutils 2.21.
23380 gcc_cv_as_cfi_sections_directive=no
23381 if test "x$gcc_cv_objdump" != x; then
23382 if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
23383 grep secrel > /dev/null; then
23384 gcc_cv_as_cfi_sections_directive=yes
23385 fi
23386 fi
23387 ;;
23388 *)
23389 gcc_cv_as_cfi_sections_directive=yes
23390 ;;
23391 esac
23392 else
23393 echo "configure: failed program was" >&5
23394 cat conftest.s >&5
23395 fi
23396 rm -f conftest.o conftest.s
23397 fi
23398 fi
23399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
23400 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
23401
23402
23403
23404
23405 cat >>confdefs.h <<_ACEOF
23406 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
23407 then echo 1; else echo 0; fi`
23408 _ACEOF
23409
23410
23411 # GAS versions up to and including 2.11.0 may mis-optimize
23412 # .eh_frame data.
23413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
23414 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
23415 if test "${gcc_cv_as_eh_frame+set}" = set; then :
23416 $as_echo_n "(cached) " >&6
23417 else
23418 gcc_cv_as_eh_frame=no
23419 if test $in_tree_gas = yes; then
23420 if test $in_tree_gas_is_elf = yes \
23421 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23422 then gcc_cv_as_eh_frame=yes
23423 fi
23424 elif test x$gcc_cv_as != x; then
23425 $as_echo ' .text
23426 .LFB1:
23427 .4byte 0
23428 .L1:
23429 .4byte 0
23430 .LFE1:
23431 .section .eh_frame,"aw",@progbits
23432 __FRAME_BEGIN__:
23433 .4byte .LECIE1-.LSCIE1
23434 .LSCIE1:
23435 .4byte 0x0
23436 .byte 0x1
23437 .ascii "z\0"
23438 .byte 0x1
23439 .byte 0x78
23440 .byte 0x1a
23441 .byte 0x0
23442 .byte 0x4
23443 .4byte 1
23444 .p2align 1
23445 .LECIE1:
23446 .LSFDE1:
23447 .4byte .LEFDE1-.LASFDE1
23448 .LASFDE1:
23449 .4byte .LASFDE1-__FRAME_BEGIN__
23450 .4byte .LFB1
23451 .4byte .LFE1-.LFB1
23452 .byte 0x4
23453 .4byte .LFE1-.LFB1
23454 .byte 0x4
23455 .4byte .L1-.LFB1
23456 .LEFDE1:' > conftest.s
23457 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23458 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23459 (eval $ac_try) 2>&5
23460 ac_status=$?
23461 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23462 test $ac_status = 0; }; }
23463 then
23464 cat > conftest.lit <<EOF
23465 0000 10000000 00000000 017a0001 781a0004 .........z..x...
23466 0010 01000000 12000000 18000000 00000000 ................
23467 0020 08000000 04080000 0044 .........D
23468 EOF
23469 cat > conftest.big <<EOF
23470 0000 00000010 00000000 017a0001 781a0004 .........z..x...
23471 0010 00000001 00000012 00000018 00000000 ................
23472 0020 00000008 04000000 0844 .........D
23473 EOF
23474 # If the assembler didn't choke, and we can objdump,
23475 # and we got the correct data, then succeed.
23476 # The text in the here-document typically retains its unix-style line
23477 # endings, while the output of objdump will use host line endings.
23478 # Therefore, use diff -b for the comparisons.
23479 if test x$gcc_cv_objdump != x \
23480 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
23481 | tail -3 > conftest.got \
23482 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
23483 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
23484 then
23485 gcc_cv_as_eh_frame=yes
23486 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
23487 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23488 (eval $ac_try) 2>&5
23489 ac_status=$?
23490 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23491 test $ac_status = 0; }; }; then
23492 gcc_cv_as_eh_frame=buggy
23493 else
23494 # Uh oh, what do we do now?
23495 gcc_cv_as_eh_frame=no
23496 fi
23497 else
23498 echo "configure: failed program was" >&5
23499 cat conftest.s >&5
23500 fi
23501 rm -f conftest.o conftest.s
23502 fi
23503 fi
23504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
23505 $as_echo "$gcc_cv_as_eh_frame" >&6; }
23506
23507
23508
23509 if test $gcc_cv_as_eh_frame = buggy; then
23510
23511 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
23512
23513 fi
23514
23515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
23516 $as_echo_n "checking assembler for section merging support... " >&6; }
23517 if test "${gcc_cv_as_shf_merge+set}" = set; then :
23518 $as_echo_n "(cached) " >&6
23519 else
23520 gcc_cv_as_shf_merge=no
23521 if test $in_tree_gas = yes; then
23522 if test $in_tree_gas_is_elf = yes \
23523 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23524 then gcc_cv_as_shf_merge=yes
23525 fi
23526 elif test x$gcc_cv_as != x; then
23527 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
23528 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23529 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23530 (eval $ac_try) 2>&5
23531 ac_status=$?
23532 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23533 test $ac_status = 0; }; }
23534 then
23535 gcc_cv_as_shf_merge=yes
23536 else
23537 echo "configure: failed program was" >&5
23538 cat conftest.s >&5
23539 fi
23540 rm -f conftest.o conftest.s
23541 fi
23542 fi
23543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23544 $as_echo "$gcc_cv_as_shf_merge" >&6; }
23545
23546
23547 if test $gcc_cv_as_shf_merge = no; then
23548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
23549 $as_echo_n "checking assembler for section merging support... " >&6; }
23550 if test "${gcc_cv_as_shf_merge+set}" = set; then :
23551 $as_echo_n "(cached) " >&6
23552 else
23553 gcc_cv_as_shf_merge=no
23554 if test $in_tree_gas = yes; then
23555 if test $in_tree_gas_is_elf = yes \
23556 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23557 then gcc_cv_as_shf_merge=yes
23558 fi
23559 elif test x$gcc_cv_as != x; then
23560 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
23561 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23562 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23563 (eval $ac_try) 2>&5
23564 ac_status=$?
23565 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23566 test $ac_status = 0; }; }
23567 then
23568 gcc_cv_as_shf_merge=yes
23569 else
23570 echo "configure: failed program was" >&5
23571 cat conftest.s >&5
23572 fi
23573 rm -f conftest.o conftest.s
23574 fi
23575 fi
23576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23577 $as_echo "$gcc_cv_as_shf_merge" >&6; }
23578
23579
23580 fi
23581
23582 cat >>confdefs.h <<_ACEOF
23583 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
23584 _ACEOF
23585
23586
23587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for stabs directive" >&5
23588 $as_echo_n "checking assembler for stabs directive... " >&6; }
23589 if test "${gcc_cv_as_stabs_directive+set}" = set; then :
23590 $as_echo_n "(cached) " >&6
23591 else
23592 gcc_cv_as_stabs_directive=no
23593 if test x$gcc_cv_as != x; then
23594 $as_echo '.stabs "gcc2_compiled.",60,0,0,0' > 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_stabs_directive=yes
23603 else
23604 echo "configure: failed program was" >&5
23605 cat conftest.s >&5
23606 fi
23607 rm -f conftest.o conftest.s
23608 fi
23609 fi
23610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_stabs_directive" >&5
23611 $as_echo "$gcc_cv_as_stabs_directive" >&6; }
23612 if test $gcc_cv_as_stabs_directive = yes; then
23613
23614 $as_echo "#define HAVE_AS_STABS_DIRECTIVE 1" >>confdefs.h
23615
23616 fi
23617
23618
23619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
23620 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
23621 if test "${gcc_cv_as_comdat_group+set}" = set; then :
23622 $as_echo_n "(cached) " >&6
23623 else
23624 gcc_cv_as_comdat_group=no
23625 if test $in_tree_gas = yes; then
23626 if test $in_tree_gas_is_elf = yes \
23627 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23628 then gcc_cv_as_comdat_group=yes
23629 fi
23630 elif test x$gcc_cv_as != x; then
23631 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
23632 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23633 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23634 (eval $ac_try) 2>&5
23635 ac_status=$?
23636 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23637 test $ac_status = 0; }; }
23638 then
23639 gcc_cv_as_comdat_group=yes
23640 else
23641 echo "configure: failed program was" >&5
23642 cat conftest.s >&5
23643 fi
23644 rm -f conftest.o conftest.s
23645 fi
23646 fi
23647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
23648 $as_echo "$gcc_cv_as_comdat_group" >&6; }
23649
23650
23651 if test $gcc_cv_as_comdat_group = yes; then
23652 gcc_cv_as_comdat_group_percent=no
23653 gcc_cv_as_comdat_group_group=no
23654 else
23655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
23656 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
23657 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
23658 $as_echo_n "(cached) " >&6
23659 else
23660 gcc_cv_as_comdat_group_percent=no
23661 if test $in_tree_gas = yes; then
23662 if test $in_tree_gas_is_elf = yes \
23663 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23664 then gcc_cv_as_comdat_group_percent=yes
23665 fi
23666 elif test x$gcc_cv_as != x; then
23667 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
23668 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23669 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23670 (eval $ac_try) 2>&5
23671 ac_status=$?
23672 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23673 test $ac_status = 0; }; }
23674 then
23675 gcc_cv_as_comdat_group_percent=yes
23676 else
23677 echo "configure: failed program was" >&5
23678 cat conftest.s >&5
23679 fi
23680 rm -f conftest.o conftest.s
23681 fi
23682 fi
23683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
23684 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
23685
23686
23687 if test $gcc_cv_as_comdat_group_percent = yes; then
23688 gcc_cv_as_comdat_group_group=no
23689 else
23690 case "${target}" in
23691 # Sun as uses a completely different syntax.
23692 *-*-solaris2*)
23693 case "${target}" in
23694 sparc*-*-solaris2*)
23695 conftest_s='
23696 .group foo,".text%foo",#comdat
23697 .section ".text%foo", #alloc,#execinstr,#progbits
23698 .globl foo
23699 foo:
23700 '
23701 ;;
23702 i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
23703 conftest_s='
23704 .group foo,.text%foo,#comdat
23705 .section .text%foo, "ax", @progbits
23706 .globl foo
23707 foo:
23708 '
23709 ;;
23710 esac
23711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
23712 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
23713 if test "${gcc_cv_as_comdat_group_group+set}" = set; then :
23714 $as_echo_n "(cached) " >&6
23715 else
23716 gcc_cv_as_comdat_group_group=no
23717 if test x$gcc_cv_as != x; then
23718 $as_echo "$conftest_s" > conftest.s
23719 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23720 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23721 (eval $ac_try) 2>&5
23722 ac_status=$?
23723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23724 test $ac_status = 0; }; }
23725 then
23726 gcc_cv_as_comdat_group_group=yes
23727 else
23728 echo "configure: failed program was" >&5
23729 cat conftest.s >&5
23730 fi
23731 rm -f conftest.o conftest.s
23732 fi
23733 fi
23734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
23735 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
23736
23737
23738 ;;
23739 esac
23740 if test -z "${gcc_cv_as_comdat_group_group+set}"; then
23741 gcc_cv_as_comdat_group_group=no
23742 fi
23743 fi
23744 fi
23745 if test x"$ld_is_gold" = xyes; then
23746 comdat_group=yes
23747 elif test $in_tree_ld = yes ; then
23748 comdat_group=no
23749 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 \
23750 && test $in_tree_ld_is_elf = yes; then
23751 comdat_group=yes
23752 fi
23753 elif echo "$ld_ver" | grep GNU > /dev/null; then
23754 comdat_group=yes
23755 if test 0"$ld_date" -lt 20050308; then
23756 if test -n "$ld_date"; then
23757 # If there was date string, but was earlier than 2005-03-08, fail
23758 comdat_group=no
23759 elif test "$ld_vers_major" -lt 2; then
23760 comdat_group=no
23761 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
23762 comdat_group=no
23763 fi
23764 fi
23765 else
23766 case "${target}" in
23767 *-*-solaris2.1[1-9]*)
23768 comdat_group=no
23769 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
23770 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
23771 # version 1.688.
23772 #
23773 # If using Sun as for COMDAT group as emitted by GCC, one needs at
23774 # least ld version 1.2267.
23775 if test "$ld_vers_major" -gt 1; then
23776 comdat_group=yes
23777 elif test "x$gas_flag" = xyes && test "$ld_vers_minor" -ge 1688; then
23778 comdat_group=yes
23779 elif test "$ld_vers_minor" -ge 2267; then
23780 comdat_group=yes
23781 fi
23782 ;;
23783 *)
23784 # Assume linkers other than GNU ld don't support COMDAT group.
23785 comdat_group=no
23786 ;;
23787 esac
23788 fi
23789 # Allow overriding the automatic COMDAT group tests above.
23790 # Check whether --enable-comdat was given.
23791 if test "${enable_comdat+set}" = set; then :
23792 enableval=$enable_comdat; comdat_group="$enable_comdat"
23793 fi
23794
23795 if test $comdat_group = no; then
23796 gcc_cv_as_comdat_group=no
23797 gcc_cv_as_comdat_group_percent=no
23798 gcc_cv_as_comdat_group_group=no
23799 fi
23800
23801 cat >>confdefs.h <<_ACEOF
23802 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
23803 || test $gcc_cv_as_comdat_group_percent = yes \
23804 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
23805 _ACEOF
23806
23807
23808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
23809 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
23810 if test "${gcc_cv_as_discriminator+set}" = set; then :
23811 $as_echo_n "(cached) " >&6
23812 else
23813 gcc_cv_as_discriminator=no
23814 if test $in_tree_gas = yes; then
23815 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
23816 then gcc_cv_as_discriminator=yes
23817 fi
23818 elif test x$gcc_cv_as != x; then
23819 $as_echo ' .text
23820 .file 1 "conf.c"
23821 .loc 1 1 0 discriminator 1' > conftest.s
23822 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23823 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23824 (eval $ac_try) 2>&5
23825 ac_status=$?
23826 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23827 test $ac_status = 0; }; }
23828 then
23829 gcc_cv_as_discriminator=yes
23830 else
23831 echo "configure: failed program was" >&5
23832 cat conftest.s >&5
23833 fi
23834 rm -f conftest.o conftest.s
23835 fi
23836 fi
23837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
23838 $as_echo "$gcc_cv_as_discriminator" >&6; }
23839 if test $gcc_cv_as_discriminator = yes; then
23840
23841 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
23842
23843 fi
23844
23845
23846 # Thread-local storage - the check is heavily parameterized.
23847 conftest_s=
23848 tls_first_major=
23849 tls_first_minor=
23850 tls_as_opt=
23851 case "$target" in
23852 alpha*-*-*)
23853 conftest_s='
23854 .section ".tdata","awT",@progbits
23855 foo: .long 25
23856 .text
23857 ldq $27,__tls_get_addr($29) !literal!1
23858 lda $16,foo($29) !tlsgd!1
23859 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
23860 ldq $27,__tls_get_addr($29) !literal!2
23861 lda $16,foo($29) !tlsldm!2
23862 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
23863 ldq $1,foo($29) !gotdtprel
23864 ldah $2,foo($29) !dtprelhi
23865 lda $3,foo($2) !dtprello
23866 lda $4,foo($29) !dtprel
23867 ldq $1,foo($29) !gottprel
23868 ldah $2,foo($29) !tprelhi
23869 lda $3,foo($2) !tprello
23870 lda $4,foo($29) !tprel'
23871 tls_first_major=2
23872 tls_first_minor=13
23873 tls_as_opt=--fatal-warnings
23874 ;;
23875 arc*-*-*)
23876 conftest_s='
23877 add_s r0,r0, @foo@tpoff'
23878 tls_first_major=2
23879 tls_first_minor=23
23880 ;;
23881 cris-*-*|crisv32-*-*)
23882 conftest_s='
23883 .section ".tdata","awT",@progbits
23884 x: .long 25
23885 .text
23886 move.d x:IE,$r10
23887 nop'
23888 tls_first_major=2
23889 tls_first_minor=20
23890 tls_as_opt=--fatal-warnings
23891 ;;
23892 frv*-*-*)
23893 conftest_s='
23894 .section ".tdata","awT",@progbits
23895 x: .long 25
23896 .text
23897 call #gettlsoff(x)'
23898 tls_first_major=2
23899 tls_first_minor=14
23900 ;;
23901 hppa*-*-linux*)
23902 conftest_s='
23903 t1: .reg %r20
23904 t2: .reg %r21
23905 gp: .reg %r19
23906 .section ".tdata","awT",@progbits
23907 foo: .long 25
23908 .text
23909 .align 4
23910 addil LT%foo-$tls_gdidx$,gp
23911 ldo RT%foo-$tls_gdidx$(%r1),%arg0
23912 b __tls_get_addr
23913 nop
23914 addil LT%foo-$tls_ldidx$,gp
23915 b __tls_get_addr
23916 ldo RT%foo-$tls_ldidx$(%r1),%arg0
23917 addil LR%foo-$tls_dtpoff$,%ret0
23918 ldo RR%foo-$tls_dtpoff$(%r1),%t1
23919 mfctl %cr27,%t1
23920 addil LT%foo-$tls_ieoff$,gp
23921 ldw RT%foo-$tls_ieoff$(%r1),%t2
23922 add %t1,%t2,%t3
23923 mfctl %cr27,%t1
23924 addil LR%foo-$tls_leoff$,%t1
23925 ldo RR%foo-$tls_leoff$(%r1),%t2'
23926 tls_first_major=2
23927 tls_first_minor=15
23928 tls_as_opt=--fatal-warnings
23929 ;;
23930 arm*-*-*)
23931 conftest_s='
23932 .section ".tdata","awT",%progbits
23933 foo: .long 25
23934 .text
23935 .word foo(gottpoff)
23936 .word foo(tpoff)
23937 .word foo(tlsgd)
23938 .word foo(tlsldm)
23939 .word foo(tlsldo)'
23940 tls_first_major=2
23941 tls_first_minor=17
23942 ;;
23943 i[34567]86-*-* | x86_64-*-*)
23944 case "$target" in
23945 i[34567]86-*-solaris2.* | x86_64-*-solaris2.1[0-9]*)
23946 on_solaris=yes
23947 ;;
23948 *)
23949 on_solaris=no
23950 ;;
23951 esac
23952 if test x$on_solaris = xyes && test x$gas_flag = xno; then
23953 conftest_s='
23954 .section .tdata,"awt",@progbits'
23955 tls_first_major=0
23956 tls_first_minor=0
23957 tls_section_flag=t
23958
23959 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
23960
23961 else
23962 conftest_s='
23963 .section ".tdata","awT",@progbits'
23964 tls_first_major=2
23965 tls_first_minor=14
23966 tls_section_flag=T
23967 tls_as_opt="--fatal-warnings"
23968 fi
23969 case "$target" in
23970 i[34567]86-*-*)
23971 conftest_s="$conftest_s
23972 foo: .long 25
23973 .text
23974 movl %gs:0, %eax
23975 leal foo@tlsgd(,%ebx,1), %eax
23976 leal foo@tlsldm(%ebx), %eax
23977 leal foo@dtpoff(%eax), %edx
23978 movl foo@gottpoff(%ebx), %eax
23979 subl foo@gottpoff(%ebx), %eax
23980 addl foo@gotntpoff(%ebx), %eax
23981 movl foo@indntpoff, %eax
23982 movl \$foo@tpoff, %eax
23983 subl \$foo@tpoff, %eax
23984 leal foo@ntpoff(%ecx), %eax"
23985 ;;
23986 x86_64-*-*)
23987 if test x$on_solaris = xyes; then
23988 case $gas_flag in
23989 yes) tls_as_opt="$tls_as_opt --64" ;;
23990 no) tls_as_opt="$tls_as_opt -xarch=amd64" ;;
23991 esac
23992 fi
23993 conftest_s="$conftest_s
23994 foo: .long 25
23995 .text
23996 movq %fs:0, %rax
23997 leaq foo@tlsgd(%rip), %rdi
23998 leaq foo@tlsld(%rip), %rdi
23999 leaq foo@dtpoff(%rax), %rdx
24000 movq foo@gottpoff(%rip), %rax
24001 movq \$foo@tpoff, %rax"
24002 ;;
24003 esac
24004 ;;
24005 ia64-*-*)
24006 conftest_s='
24007 .section ".tdata","awT",@progbits
24008 foo: data8 25
24009 .text
24010 addl r16 = @ltoff(@dtpmod(foo#)), gp
24011 addl r17 = @ltoff(@dtprel(foo#)), gp
24012 addl r18 = @ltoff(@tprel(foo#)), gp
24013 addl r19 = @dtprel(foo#), gp
24014 adds r21 = @dtprel(foo#), r13
24015 movl r23 = @dtprel(foo#)
24016 addl r20 = @tprel(foo#), gp
24017 adds r22 = @tprel(foo#), r13
24018 movl r24 = @tprel(foo#)'
24019 tls_first_major=2
24020 tls_first_minor=13
24021 tls_as_opt=--fatal-warnings
24022 ;;
24023 microblaze*-*-*)
24024 conftest_s='
24025 .section .tdata,"awT",@progbits
24026 x:
24027 .word 2
24028 .text
24029 addik r5,r20,x@TLSGD
24030 addik r5,r20,x@TLSLDM'
24031 tls_first_major=2
24032 tls_first_minor=20
24033 tls_as_opt='--fatal-warnings'
24034 ;;
24035 mips*-*-*)
24036 conftest_s='
24037 .section .tdata,"awT",@progbits
24038 x:
24039 .word 2
24040 .text
24041 addiu $4, $28, %tlsgd(x)
24042 addiu $4, $28, %tlsldm(x)
24043 lui $4, %dtprel_hi(x)
24044 addiu $4, $4, %dtprel_lo(x)
24045 lw $4, %gottprel(x)($28)
24046 lui $4, %tprel_hi(x)
24047 addiu $4, $4, %tprel_lo(x)'
24048 tls_first_major=2
24049 tls_first_minor=16
24050 tls_as_opt='-32 --fatal-warnings'
24051 ;;
24052 m68k-*-*)
24053 conftest_s='
24054 .section .tdata,"awT",@progbits
24055 x:
24056 .word 2
24057 .text
24058 foo:
24059 move.l x@TLSGD(%a5),%a0
24060 move.l x@TLSLDM(%a5),%a0
24061 move.l x@TLSLDO(%a5),%a0
24062 move.l x@TLSIE(%a5),%a0
24063 move.l x@TLSLE(%a5),%a0'
24064 tls_first_major=2
24065 tls_first_minor=19
24066 tls_as_opt='--fatal-warnings'
24067 ;;
24068 nios2-*-*)
24069 conftest_s='
24070 .section ".tdata","awT",@progbits'
24071 tls_first_major=2
24072 tls_first_minor=23
24073 tls_as_opt="--fatal-warnings"
24074 ;;
24075 aarch64*-*-*)
24076 conftest_s='
24077 .section ".tdata","awT",%progbits
24078 foo: .long 25
24079 .text
24080 adrp x0, :tlsgd:x
24081 add x0, x0, #:tlsgd_lo12:x
24082 bl __tls_get_addr
24083 nop'
24084 tls_first_major=2
24085 tls_first_minor=20
24086 tls_as_opt='--fatal-warnings'
24087 ;;
24088 powerpc-ibm-aix*)
24089 conftest_s='
24090 .extern __get_tpointer
24091 .toc
24092 LC..1:
24093 .tc a[TC],a[TL]@le
24094 .csect .text[PR]
24095 .tlstest:
24096 lwz 9,LC..1(2)
24097 bla __get_tpointer
24098 lwzx 3,9,3
24099 .globl a
24100 .csect a[TL],4
24101 a:
24102 .space 4'
24103 tls_first_major=0
24104 tls_first_minor=0
24105 ;;
24106 powerpc64*-*-*)
24107 conftest_s='
24108 .section ".tdata","awT",@progbits
24109 .align 3
24110 ld0: .space 8
24111 ld1: .space 8
24112 x1: .space 8
24113 x2: .space 8
24114 x3: .space 8
24115 .text
24116 addi 3,2,ld0@got@tlsgd
24117 bl .__tls_get_addr
24118 nop
24119 addi 3,2,ld1@toc
24120 bl .__tls_get_addr
24121 nop
24122 addi 3,2,x1@got@tlsld
24123 bl .__tls_get_addr
24124 nop
24125 addi 9,3,x1@dtprel
24126 bl .__tls_get_addr
24127 nop
24128 addis 9,3,x2@dtprel@ha
24129 addi 9,9,x2@dtprel@l
24130 bl .__tls_get_addr
24131 nop
24132 ld 9,x3@got@dtprel(2)
24133 add 9,9,3
24134 bl .__tls_get_addr
24135 nop'
24136 tls_first_major=2
24137 tls_first_minor=14
24138 tls_as_opt="-a64 --fatal-warnings"
24139 ;;
24140 powerpc*-*-*)
24141 conftest_s='
24142 .section ".tdata","awT",@progbits
24143 .align 2
24144 ld0: .space 4
24145 ld1: .space 4
24146 x1: .space 4
24147 x2: .space 4
24148 x3: .space 4
24149 .text
24150 addi 3,31,ld0@got@tlsgd
24151 bl __tls_get_addr
24152 addi 3,31,x1@got@tlsld
24153 bl __tls_get_addr
24154 addi 9,3,x1@dtprel
24155 addis 9,3,x2@dtprel@ha
24156 addi 9,9,x2@dtprel@l
24157 lwz 9,x3@got@tprel(31)
24158 add 9,9,x@tls
24159 addi 9,2,x1@tprel
24160 addis 9,2,x2@tprel@ha
24161 addi 9,9,x2@tprel@l'
24162 tls_first_major=2
24163 tls_first_minor=14
24164 tls_as_opt="-a32 --fatal-warnings"
24165 ;;
24166 riscv*-*-*)
24167 conftest_s='
24168 .section .tdata,"awT",@progbits
24169 x: .word 2
24170 .text
24171 la.tls.gd a0,x
24172 call __tls_get_addr'
24173 tls_first_major=2
24174 tls_first_minor=21
24175 tls_as_opt='--fatal-warnings'
24176 ;;
24177 s390-*-*)
24178 conftest_s='
24179 .section ".tdata","awT",@progbits
24180 foo: .long 25
24181 .text
24182 .long foo@TLSGD
24183 .long foo@TLSLDM
24184 .long foo@DTPOFF
24185 .long foo@NTPOFF
24186 .long foo@GOTNTPOFF
24187 .long foo@INDNTPOFF
24188 l %r1,foo@GOTNTPOFF(%r12)
24189 l %r1,0(%r1):tls_load:foo
24190 bas %r14,0(%r1,%r13):tls_gdcall:foo
24191 bas %r14,0(%r1,%r13):tls_ldcall:foo'
24192 tls_first_major=2
24193 tls_first_minor=14
24194 tls_as_opt="-m31 --fatal-warnings"
24195 ;;
24196 s390x-*-*)
24197 conftest_s='
24198 .section ".tdata","awT",@progbits
24199 foo: .long 25
24200 .text
24201 .quad foo@TLSGD
24202 .quad foo@TLSLDM
24203 .quad foo@DTPOFF
24204 .quad foo@NTPOFF
24205 .quad foo@GOTNTPOFF
24206 lg %r1,foo@GOTNTPOFF(%r12)
24207 larl %r1,foo@INDNTPOFF
24208 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
24209 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
24210 tls_first_major=2
24211 tls_first_minor=14
24212 tls_as_opt="-m64 -Aesame --fatal-warnings"
24213 ;;
24214 sh-*-* | sh[123456789lbe]*-*-*)
24215 conftest_s='
24216 .section ".tdata","awT",@progbits
24217 foo: .long 25
24218 .text
24219 .long foo@TLSGD
24220 .long foo@TLSLDM
24221 .long foo@DTPOFF
24222 .long foo@GOTTPOFF
24223 .long foo@TPOFF'
24224 tls_first_major=2
24225 tls_first_minor=13
24226 tls_as_opt=--fatal-warnings
24227 ;;
24228 sparc*-*-*)
24229 case "$target" in
24230 sparc*-sun-solaris2.*)
24231 on_solaris=yes
24232 ;;
24233 *)
24234 on_solaris=no
24235 ;;
24236 esac
24237 if test x$on_solaris = xyes && test x$gas_flag = xno; then
24238 conftest_s='
24239 .section ".tdata",#alloc,#write,#tls'
24240 tls_first_major=0
24241 tls_first_minor=0
24242 else
24243 conftest_s='
24244 .section ".tdata","awT",@progbits'
24245 tls_first_major=2
24246 tls_first_minor=14
24247 tls_as_opt="-32 --fatal-warnings"
24248 fi
24249 conftest_s="$conftest_s
24250 foo: .long 25
24251 .text
24252 sethi %tgd_hi22(foo), %o0
24253 add %o0, %tgd_lo10(foo), %o1
24254 add %l7, %o1, %o0, %tgd_add(foo)
24255 call __tls_get_addr, %tgd_call(foo)
24256 sethi %tldm_hi22(foo), %l1
24257 add %l1, %tldm_lo10(foo), %l2
24258 add %l7, %l2, %o0, %tldm_add(foo)
24259 call __tls_get_addr, %tldm_call(foo)
24260 sethi %tldo_hix22(foo), %l3
24261 xor %l3, %tldo_lox10(foo), %l4
24262 add %o0, %l4, %l5, %tldo_add(foo)
24263 sethi %tie_hi22(foo), %o3
24264 add %o3, %tie_lo10(foo), %o3
24265 ld [%l7 + %o3], %o2, %tie_ld(foo)
24266 add %g7, %o2, %o4, %tie_add(foo)
24267 sethi %tle_hix22(foo), %l1
24268 xor %l1, %tle_lox10(foo), %o5
24269 ld [%g7 + %o5], %o1"
24270 ;;
24271 tilepro*-*-*)
24272 conftest_s='
24273 .section ".tdata","awT",@progbits
24274 foo: .long 25
24275 .text
24276 addli r0, zero, tls_gd(foo)
24277 auli r0, zero, tls_gd_ha16(foo)
24278 addli r0, r0, tls_gd_lo16(foo)
24279 jal __tls_get_addr
24280 addli r0, zero, tls_ie(foo)
24281 auli r0, r0, tls_ie_ha16(foo)
24282 addli r0, r0, tls_ie_lo16(foo)'
24283 tls_first_major=2
24284 tls_first_minor=22
24285 tls_as_opt="--fatal-warnings"
24286 ;;
24287 tilegx*-*-*)
24288 conftest_s='
24289 .section ".tdata","awT",@progbits
24290 foo: .long 25
24291 .text
24292 shl16insli r0, zero, hw0_last_tls_gd(foo)
24293 shl16insli r0, zero, hw1_last_tls_gd(foo)
24294 shl16insli r0, r0, hw0_tls_gd(foo)
24295 jal __tls_get_addr
24296 shl16insli r0, zero, hw1_last_tls_ie(foo)
24297 shl16insli r0, r0, hw0_tls_ie(foo)'
24298 tls_first_major=2
24299 tls_first_minor=22
24300 tls_as_opt="--fatal-warnings"
24301 ;;
24302 xtensa*-*-*)
24303 conftest_s='
24304 .section ".tdata","awT",@progbits
24305 foo: .long 25
24306 .text
24307 movi a8, foo@TLSFUNC
24308 movi a10, foo@TLSARG
24309 callx8.tls a8, foo@TLSCALL'
24310 tls_first_major=2
24311 tls_first_minor=19
24312 ;;
24313 esac
24314 set_have_as_tls=no
24315 if test "x$enable_tls" = xno ; then
24316 : # TLS explicitly disabled.
24317 elif test "x$enable_tls" = xyes ; then
24318 set_have_as_tls=yes # TLS explicitly enabled.
24319 elif test -z "$tls_first_major"; then
24320 : # If we don't have a check, assume no support.
24321 else
24322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
24323 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
24324 if test "${gcc_cv_as_tls+set}" = set; then :
24325 $as_echo_n "(cached) " >&6
24326 else
24327 gcc_cv_as_tls=no
24328 if test $in_tree_gas = yes; then
24329 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
24330 then gcc_cv_as_tls=yes
24331 fi
24332 elif test x$gcc_cv_as != x; then
24333 $as_echo "$conftest_s" > conftest.s
24334 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
24335 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24336 (eval $ac_try) 2>&5
24337 ac_status=$?
24338 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24339 test $ac_status = 0; }; }
24340 then
24341 gcc_cv_as_tls=yes
24342 else
24343 echo "configure: failed program was" >&5
24344 cat conftest.s >&5
24345 fi
24346 rm -f conftest.o conftest.s
24347 fi
24348 fi
24349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
24350 $as_echo "$gcc_cv_as_tls" >&6; }
24351 if test $gcc_cv_as_tls = yes; then
24352 set_have_as_tls=yes
24353 fi
24354
24355 fi
24356 if test $set_have_as_tls = yes ; then
24357
24358 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
24359
24360 fi
24361
24362 # Target-specific assembler checks.
24363
24364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
24365 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
24366 gcc_cv_ld_static_dynamic=no
24367 gcc_cv_ld_static_option='-Bstatic'
24368 gcc_cv_ld_dynamic_option='-Bdynamic'
24369 if test $in_tree_ld = yes ; then
24370 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
24371 gcc_cv_ld_static_dynamic=yes
24372 fi
24373 elif test x$gcc_cv_ld != x; then
24374 # Check if linker supports -Bstatic/-Bdynamic option
24375 if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
24376 && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
24377 gcc_cv_ld_static_dynamic=yes
24378 else
24379 case "$target" in
24380 # AIX ld uses -b flags
24381 *-*-aix4.[23]* | *-*-aix[5-9]*)
24382 gcc_cv_ld_static_dynamic=yes
24383 gcc_cv_ld_static_option="-bstatic"
24384 gcc_cv_ld_dynamic_option="-bdynamic"
24385 ;;
24386 # HP-UX ld uses -a flags to select between shared and archive.
24387 *-*-hpux*)
24388 if test x"$gnu_ld" = xno; then
24389 gcc_cv_ld_static_dynamic=yes
24390 gcc_cv_ld_static_option="-aarchive_shared"
24391 gcc_cv_ld_dynamic_option="-adefault"
24392 fi
24393 ;;
24394 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
24395 *-*-solaris2*)
24396 gcc_cv_ld_static_dynamic=yes
24397 ;;
24398 esac
24399 fi
24400 fi
24401 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
24402
24403 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
24404
24405
24406 cat >>confdefs.h <<_ACEOF
24407 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
24408 _ACEOF
24409
24410
24411 cat >>confdefs.h <<_ACEOF
24412 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
24413 _ACEOF
24414
24415 fi
24416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
24417 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
24418
24419 if test x"$demangler_in_ld" = xyes; then
24420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
24421 $as_echo_n "checking linker --demangle support... " >&6; }
24422 gcc_cv_ld_demangle=no
24423 if test $in_tree_ld = yes; then
24424 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 \
24425 gcc_cv_ld_demangle=yes
24426 fi
24427 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
24428 # Check if the GNU linker supports --demangle option
24429 if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
24430 gcc_cv_ld_demangle=yes
24431 fi
24432 fi
24433 if test x"$gcc_cv_ld_demangle" = xyes; then
24434
24435 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
24436
24437 fi
24438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
24439 $as_echo "$gcc_cv_ld_demangle" >&6; }
24440 fi
24441
24442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
24443 $as_echo_n "checking linker plugin support... " >&6; }
24444 gcc_cv_lto_plugin=0
24445 if test -f liblto_plugin.la; then
24446 save_ld_ver="$ld_ver"
24447 save_ld_vers_major="$ld_vers_major"
24448 save_ld_vers_minor="$ld_vers_minor"
24449 save_ld_is_gold="$ld_is_gold"
24450
24451 ld_is_gold=no
24452
24453 if test $in_tree_ld = yes -a x"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x"$gcc_cv_ld"; then
24454 ld_ver="GNU ld"
24455 # FIXME: ld_is_gold?
24456 ld_vers_major="$gcc_cv_gld_major_version"
24457 ld_vers_minor="$gcc_cv_gld_minor_version"
24458 else
24459 # Determine plugin linker version.
24460 # FIXME: Partial duplicate from above, generalize.
24461 ld_ver=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
24462 if echo "$ld_ver" | grep GNU > /dev/null; then
24463 if echo "$ld_ver" | grep "GNU gold" > /dev/null; then
24464 ld_is_gold=yes
24465 ld_vers=`echo $ld_ver | sed -n \
24466 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
24467 else
24468 ld_vers=`echo $ld_ver | sed -n \
24469 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
24470 fi
24471 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
24472 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
24473 fi
24474 fi
24475
24476 # Determine plugin support.
24477 if echo "$ld_ver" | grep GNU > /dev/null; then
24478 # Require GNU ld or gold 2.21+ for plugin support by default.
24479 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
24480 gcc_cv_lto_plugin=2
24481 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
24482 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
24483 gcc_cv_lto_plugin=1
24484 fi
24485 fi
24486
24487 ld_ver="$save_ld_ver"
24488 ld_vers_major="$save_ld_vers_major"
24489 ld_vers_minor="$save_ld_vers_minor"
24490 ld_is_gold="$save_ld_is_gold"
24491 fi
24492
24493 cat >>confdefs.h <<_ACEOF
24494 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
24495 _ACEOF
24496
24497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
24498 $as_echo "$gcc_cv_lto_plugin" >&6; }
24499
24500 # Target OS-specific assembler checks.
24501
24502 case "$target_os" in
24503 darwin*)
24504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mmacosx-version-min option" >&5
24505 $as_echo_n "checking assembler for -mmacosx-version-min option... " >&6; }
24506 if test "${gcc_cv_as_mmacosx_version_min+set}" = set; then :
24507 $as_echo_n "(cached) " >&6
24508 else
24509 gcc_cv_as_mmacosx_version_min=no
24510 if test x$gcc_cv_as != x; then
24511 $as_echo '.text' > conftest.s
24512 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mmacosx-version-min=10.1 -o conftest.o conftest.s >&5'
24513 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24514 (eval $ac_try) 2>&5
24515 ac_status=$?
24516 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24517 test $ac_status = 0; }; }
24518 then
24519 gcc_cv_as_mmacosx_version_min=yes
24520 else
24521 echo "configure: failed program was" >&5
24522 cat conftest.s >&5
24523 fi
24524 rm -f conftest.o conftest.s
24525 fi
24526 fi
24527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mmacosx_version_min" >&5
24528 $as_echo "$gcc_cv_as_mmacosx_version_min" >&6; }
24529 if test $gcc_cv_as_mmacosx_version_min = yes; then
24530
24531 $as_echo "#define HAVE_AS_MMACOSX_VERSION_MIN_OPTION 1" >>confdefs.h
24532
24533 fi
24534
24535 ;;
24536 esac
24537
24538 # Target CPU-specific assembler checks.
24539
24540 case "$target" in
24541 aarch64*-*-*)
24542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mabi option" >&5
24543 $as_echo_n "checking assembler for -mabi option... " >&6; }
24544 if test "${gcc_cv_as_aarch64_mabi+set}" = set; then :
24545 $as_echo_n "(cached) " >&6
24546 else
24547 gcc_cv_as_aarch64_mabi=no
24548 if test x$gcc_cv_as != x; then
24549 $as_echo '.text' > conftest.s
24550 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mabi=lp64 -o conftest.o conftest.s >&5'
24551 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24552 (eval $ac_try) 2>&5
24553 ac_status=$?
24554 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24555 test $ac_status = 0; }; }
24556 then
24557 gcc_cv_as_aarch64_mabi=yes
24558 else
24559 echo "configure: failed program was" >&5
24560 cat conftest.s >&5
24561 fi
24562 rm -f conftest.o conftest.s
24563 fi
24564 fi
24565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_mabi" >&5
24566 $as_echo "$gcc_cv_as_aarch64_mabi" >&6; }
24567
24568
24569 if test x$gcc_cv_as_aarch64_mabi = xyes; then
24570
24571 $as_echo "#define HAVE_AS_MABI_OPTION 1" >>confdefs.h
24572
24573 else
24574 if test x$with_abi = xilp32; then
24575 as_fn_error "Assembler does not support -mabi=ilp32.\
24576 Upgrade the Assembler." "$LINENO" 5
24577 fi
24578 if test x"$with_multilib_list" = xdefault; then
24579 TM_MULTILIB_CONFIG=lp64
24580 else
24581 aarch64_multilibs=`echo $with_multilib_list | sed -e 's/,/ /g'`
24582 for aarch64_multilib in ${aarch64_multilibs}; do
24583 case ${aarch64_multilib} in
24584 ilp32)
24585 as_fn_error "Assembler does not support -mabi=ilp32.\
24586 Upgrade the Assembler." "$LINENO" 5
24587 ;;
24588 *)
24589 ;;
24590 esac
24591 done
24592 fi
24593 fi
24594 # Check if we have binutils support for relocations types needed by -fpic
24595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -fpic relocs" >&5
24596 $as_echo_n "checking assembler for -fpic relocs... " >&6; }
24597 if test "${gcc_cv_as_aarch64_picreloc+set}" = set; then :
24598 $as_echo_n "(cached) " >&6
24599 else
24600 gcc_cv_as_aarch64_picreloc=no
24601 if test x$gcc_cv_as != x; then
24602 $as_echo '
24603 .text
24604 ldr x0, [x2, #:gotpage_lo15:globalsym]
24605 ' > conftest.s
24606 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24607 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24608 (eval $ac_try) 2>&5
24609 ac_status=$?
24610 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24611 test $ac_status = 0; }; }
24612 then
24613 gcc_cv_as_aarch64_picreloc=yes
24614 else
24615 echo "configure: failed program was" >&5
24616 cat conftest.s >&5
24617 fi
24618 rm -f conftest.o conftest.s
24619 fi
24620 fi
24621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_picreloc" >&5
24622 $as_echo "$gcc_cv_as_aarch64_picreloc" >&6; }
24623 if test $gcc_cv_as_aarch64_picreloc = yes; then
24624
24625 $as_echo "#define HAVE_AS_SMALL_PIC_RELOCS 1" >>confdefs.h
24626
24627 fi
24628
24629 # Enable default workaround for AArch64 Cortex-A53 erratum 835769.
24630 # Check whether --enable-fix-cortex-a53-835769 was given.
24631 if test "${enable_fix_cortex_a53_835769+set}" = set; then :
24632 enableval=$enable_fix_cortex_a53_835769;
24633 case $enableval in
24634 yes)
24635 tm_defines="${tm_defines} TARGET_FIX_ERR_A53_835769_DEFAULT=1"
24636 ;;
24637 no)
24638 ;;
24639 *)
24640 as_fn_error "'$enableval' is an invalid value for --enable-fix-cortex-a53-835769.\
24641 Valid choices are 'yes' and 'no'." "$LINENO" 5
24642 ;;
24643
24644 esac
24645
24646 fi
24647
24648 # Enable default workaround for AArch64 Cortex-A53 erratum 843419.
24649 # Check whether --enable-fix-cortex-a53-843419 was given.
24650 if test "${enable_fix_cortex_a53_843419+set}" = set; then :
24651 enableval=$enable_fix_cortex_a53_843419;
24652 case $enableval in
24653 yes)
24654 tm_defines="${tm_defines} TARGET_FIX_ERR_A53_843419_DEFAULT=1"
24655 ;;
24656 no)
24657 ;;
24658 *)
24659 as_fn_error "'$enableval' is an invalid value for --enable-fix-cortex-a53-843419.\
24660 Valid choices are 'yes' and 'no'." "$LINENO" 5
24661 ;;
24662
24663 esac
24664
24665 fi
24666
24667 ;;
24668
24669 # All TARGET_ABI_OSF targets.
24670 alpha*-*-linux* | alpha*-*-*bsd*)
24671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
24672 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
24673 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
24674 $as_echo_n "(cached) " >&6
24675 else
24676 gcc_cv_as_alpha_explicit_relocs=no
24677 if test $in_tree_gas = yes; then
24678 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
24679 then gcc_cv_as_alpha_explicit_relocs=yes
24680 fi
24681 elif test x$gcc_cv_as != x; then
24682 $as_echo ' .set nomacro
24683 .text
24684 extbl $3, $2, $3 !lituse_bytoff!1
24685 ldq $2, a($29) !literal!1
24686 ldq $4, b($29) !literal!2
24687 ldq_u $3, 0($2) !lituse_base!1
24688 ldq $27, f($29) !literal!5
24689 jsr $26, ($27), f !lituse_jsr!5
24690 ldah $29, 0($26) !gpdisp!3
24691 lda $0, c($29) !gprel
24692 ldah $1, d($29) !gprelhigh
24693 lda $1, d($1) !gprellow
24694 lda $29, 0($29) !gpdisp!3' > conftest.s
24695 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24696 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24697 (eval $ac_try) 2>&5
24698 ac_status=$?
24699 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24700 test $ac_status = 0; }; }
24701 then
24702 gcc_cv_as_alpha_explicit_relocs=yes
24703 else
24704 echo "configure: failed program was" >&5
24705 cat conftest.s >&5
24706 fi
24707 rm -f conftest.o conftest.s
24708 fi
24709 fi
24710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
24711 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
24712 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
24713
24714 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
24715
24716 fi
24717
24718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
24719 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
24720 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
24721 $as_echo_n "(cached) " >&6
24722 else
24723 gcc_cv_as_alpha_jsrdirect_relocs=no
24724 if test $in_tree_gas = yes; then
24725 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
24726 then gcc_cv_as_alpha_jsrdirect_relocs=yes
24727 fi
24728 elif test x$gcc_cv_as != x; then
24729 $as_echo ' .set nomacro
24730 .text
24731 ldq $27, a($29) !literal!1
24732 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
24733 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24734 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24735 (eval $ac_try) 2>&5
24736 ac_status=$?
24737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24738 test $ac_status = 0; }; }
24739 then
24740 gcc_cv_as_alpha_jsrdirect_relocs=yes
24741 else
24742 echo "configure: failed program was" >&5
24743 cat conftest.s >&5
24744 fi
24745 rm -f conftest.o conftest.s
24746 fi
24747 fi
24748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
24749 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
24750 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
24751
24752 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
24753
24754 fi
24755
24756 ;;
24757
24758 avr-*-*)
24759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --mlink-relax option" >&5
24760 $as_echo_n "checking assembler for --mlink-relax option... " >&6; }
24761 if test "${gcc_cv_as_avr_mlink_relax+set}" = set; then :
24762 $as_echo_n "(cached) " >&6
24763 else
24764 gcc_cv_as_avr_mlink_relax=no
24765 if test x$gcc_cv_as != x; then
24766 $as_echo '.text' > conftest.s
24767 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --mlink-relax -o conftest.o conftest.s >&5'
24768 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24769 (eval $ac_try) 2>&5
24770 ac_status=$?
24771 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24772 test $ac_status = 0; }; }
24773 then
24774 gcc_cv_as_avr_mlink_relax=yes
24775 else
24776 echo "configure: failed program was" >&5
24777 cat conftest.s >&5
24778 fi
24779 rm -f conftest.o conftest.s
24780 fi
24781 fi
24782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mlink_relax" >&5
24783 $as_echo "$gcc_cv_as_avr_mlink_relax" >&6; }
24784 if test $gcc_cv_as_avr_mlink_relax = yes; then
24785
24786 $as_echo "#define HAVE_AS_AVR_MLINK_RELAX_OPTION 1" >>confdefs.h
24787
24788 fi
24789
24790
24791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mrmw option" >&5
24792 $as_echo_n "checking assembler for -mrmw option... " >&6; }
24793 if test "${gcc_cv_as_avr_mrmw+set}" = set; then :
24794 $as_echo_n "(cached) " >&6
24795 else
24796 gcc_cv_as_avr_mrmw=no
24797 if test x$gcc_cv_as != x; then
24798 $as_echo '.text' > conftest.s
24799 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mrmw -o conftest.o conftest.s >&5'
24800 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24801 (eval $ac_try) 2>&5
24802 ac_status=$?
24803 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24804 test $ac_status = 0; }; }
24805 then
24806 gcc_cv_as_avr_mrmw=yes
24807 else
24808 echo "configure: failed program was" >&5
24809 cat conftest.s >&5
24810 fi
24811 rm -f conftest.o conftest.s
24812 fi
24813 fi
24814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mrmw" >&5
24815 $as_echo "$gcc_cv_as_avr_mrmw" >&6; }
24816 if test $gcc_cv_as_avr_mrmw = yes; then
24817
24818 $as_echo "#define HAVE_AS_AVR_MRMW_OPTION 1" >>confdefs.h
24819
24820 fi
24821
24822 ;;
24823
24824 cris-*-*)
24825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
24826 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
24827 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
24828 $as_echo_n "(cached) " >&6
24829 else
24830 gcc_cv_as_cris_no_mul_bug=no
24831 if test $in_tree_gas = yes; then
24832 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24833 then gcc_cv_as_cris_no_mul_bug=yes
24834 fi
24835 elif test x$gcc_cv_as != x; then
24836 $as_echo '.text' > conftest.s
24837 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
24838 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24839 (eval $ac_try) 2>&5
24840 ac_status=$?
24841 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24842 test $ac_status = 0; }; }
24843 then
24844 gcc_cv_as_cris_no_mul_bug=yes
24845 else
24846 echo "configure: failed program was" >&5
24847 cat conftest.s >&5
24848 fi
24849 rm -f conftest.o conftest.s
24850 fi
24851 fi
24852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
24853 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
24854 if test $gcc_cv_as_cris_no_mul_bug = yes; then
24855
24856 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
24857
24858 fi
24859
24860 ;;
24861
24862 sparc*-*-*)
24863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
24864 $as_echo_n "checking assembler for .register... " >&6; }
24865 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
24866 $as_echo_n "(cached) " >&6
24867 else
24868 gcc_cv_as_sparc_register_op=no
24869 if test x$gcc_cv_as != x; then
24870 $as_echo '.register %g2, #scratch' > conftest.s
24871 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24872 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24873 (eval $ac_try) 2>&5
24874 ac_status=$?
24875 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24876 test $ac_status = 0; }; }
24877 then
24878 gcc_cv_as_sparc_register_op=yes
24879 else
24880 echo "configure: failed program was" >&5
24881 cat conftest.s >&5
24882 fi
24883 rm -f conftest.o conftest.s
24884 fi
24885 fi
24886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
24887 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
24888 if test $gcc_cv_as_sparc_register_op = yes; then
24889
24890 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
24891
24892 fi
24893
24894
24895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
24896 $as_echo_n "checking assembler for -relax option... " >&6; }
24897 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
24898 $as_echo_n "(cached) " >&6
24899 else
24900 gcc_cv_as_sparc_relax=no
24901 if test x$gcc_cv_as != x; then
24902 $as_echo '.text' > conftest.s
24903 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
24904 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24905 (eval $ac_try) 2>&5
24906 ac_status=$?
24907 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24908 test $ac_status = 0; }; }
24909 then
24910 gcc_cv_as_sparc_relax=yes
24911 else
24912 echo "configure: failed program was" >&5
24913 cat conftest.s >&5
24914 fi
24915 rm -f conftest.o conftest.s
24916 fi
24917 fi
24918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
24919 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
24920 if test $gcc_cv_as_sparc_relax = yes; then
24921
24922 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
24923
24924 fi
24925
24926
24927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
24928 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
24929 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
24930 $as_echo_n "(cached) " >&6
24931 else
24932 gcc_cv_as_sparc_gotdata_op=no
24933 if test x$gcc_cv_as != x; then
24934 $as_echo '.text
24935 .align 4
24936 foo:
24937 nop
24938 bar:
24939 sethi %gdop_hix22(foo), %g1
24940 xor %g1, %gdop_lox10(foo), %g1
24941 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
24942 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24943 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24944 (eval $ac_try) 2>&5
24945 ac_status=$?
24946 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24947 test $ac_status = 0; }; }
24948 then
24949 if test x$gcc_cv_ld != x \
24950 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24951 if test x$gcc_cv_objdump != x; then
24952 if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
24953 | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
24954 gcc_cv_as_sparc_gotdata_op=no
24955 else
24956 gcc_cv_as_sparc_gotdata_op=yes
24957 fi
24958 fi
24959 fi
24960 rm -f conftest
24961 else
24962 echo "configure: failed program was" >&5
24963 cat conftest.s >&5
24964 fi
24965 rm -f conftest.o conftest.s
24966 fi
24967 fi
24968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
24969 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
24970 if test $gcc_cv_as_sparc_gotdata_op = yes; then
24971
24972 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
24973
24974 fi
24975
24976
24977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
24978 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
24979 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
24980 $as_echo_n "(cached) " >&6
24981 else
24982 gcc_cv_as_sparc_ua_pcrel=no
24983 if test x$gcc_cv_as != x; then
24984 $as_echo '.text
24985 foo:
24986 nop
24987 .data
24988 .align 4
24989 .byte 0
24990 .uaword %r_disp32(foo)' > conftest.s
24991 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24992 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24993 (eval $ac_try) 2>&5
24994 ac_status=$?
24995 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24996 test $ac_status = 0; }; }
24997 then
24998 if test x$gcc_cv_ld != x \
24999 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
25000 gcc_cv_as_sparc_ua_pcrel=yes
25001 fi
25002 rm -f conftest
25003 else
25004 echo "configure: failed program was" >&5
25005 cat conftest.s >&5
25006 fi
25007 rm -f conftest.o conftest.s
25008 fi
25009 fi
25010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
25011 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
25012 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
25013
25014 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
25015
25016
25017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
25018 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
25019 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
25020 $as_echo_n "(cached) " >&6
25021 else
25022 gcc_cv_as_sparc_ua_pcrel_hidden=no
25023 if test x$gcc_cv_as != x; then
25024 $as_echo '.data
25025 .align 4
25026 .byte 0x31
25027 .uaword %r_disp32(foo)
25028 .byte 0x32, 0x33, 0x34
25029 .global foo
25030 .hidden foo
25031 foo:
25032 .skip 4' > conftest.s
25033 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
25034 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25035 (eval $ac_try) 2>&5
25036 ac_status=$?
25037 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25038 test $ac_status = 0; }; }
25039 then
25040 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
25041 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
25042 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
25043 | grep ' 31000000 07323334' > /dev/null 2>&1; then
25044 if $gcc_cv_objdump -R conftest 2> /dev/null \
25045 | grep 'DISP32' > /dev/null 2>&1; then
25046 :
25047 else
25048 gcc_cv_as_sparc_ua_pcrel_hidden=yes
25049 fi
25050 fi
25051 rm -f conftest
25052 else
25053 echo "configure: failed program was" >&5
25054 cat conftest.s >&5
25055 fi
25056 rm -f conftest.o conftest.s
25057 fi
25058 fi
25059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
25060 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
25061 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
25062
25063 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
25064
25065 fi
25066
25067
25068 fi
25069 # unaligned pcrel relocs
25070
25071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
25072 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
25073 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
25074 $as_echo_n "(cached) " >&6
25075 else
25076 gcc_cv_as_sparc_offsetable_lo10=no
25077 if test x$gcc_cv_as != x; then
25078 $as_echo '.text
25079 or %g1, %lo(ab) + 12, %g1
25080 or %g1, %lo(ab + 12), %g1' > conftest.s
25081 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
25082 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25083 (eval $ac_try) 2>&5
25084 ac_status=$?
25085 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25086 test $ac_status = 0; }; }
25087 then
25088 if test x$gcc_cv_objdump != x \
25089 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
25090 | grep ' 82106000 82106000' > /dev/null 2>&1; then
25091 gcc_cv_as_sparc_offsetable_lo10=yes
25092 fi
25093 else
25094 echo "configure: failed program was" >&5
25095 cat conftest.s >&5
25096 fi
25097 rm -f conftest.o conftest.s
25098 fi
25099 fi
25100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
25101 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
25102 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
25103
25104 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
25105
25106 fi
25107
25108
25109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
25110 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
25111 if test "${gcc_cv_as_sparc_fmaf+set}" = set; then :
25112 $as_echo_n "(cached) " >&6
25113 else
25114 gcc_cv_as_sparc_fmaf=no
25115 if test x$gcc_cv_as != x; then
25116 $as_echo '.text
25117 .register %g2, #scratch
25118 .register %g3, #scratch
25119 .align 4
25120 fmaddd %f0, %f2, %f4, %f6
25121 addxccc %g1, %g2, %g3
25122 fsrl32 %f2, %f4, %f8
25123 fnaddd %f10, %f12, %f14' > conftest.s
25124 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
25125 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25126 (eval $ac_try) 2>&5
25127 ac_status=$?
25128 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25129 test $ac_status = 0; }; }
25130 then
25131 gcc_cv_as_sparc_fmaf=yes
25132 else
25133 echo "configure: failed program was" >&5
25134 cat conftest.s >&5
25135 fi
25136 rm -f conftest.o conftest.s
25137 fi
25138 fi
25139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
25140 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
25141 if test $gcc_cv_as_sparc_fmaf = yes; then
25142
25143 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
25144
25145 fi
25146
25147
25148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
25149 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
25150 if test "${gcc_cv_as_sparc_sparc4+set}" = set; then :
25151 $as_echo_n "(cached) " >&6
25152 else
25153 gcc_cv_as_sparc_sparc4=no
25154 if test x$gcc_cv_as != x; then
25155 $as_echo '.text
25156 .register %g2, #scratch
25157 .register %g3, #scratch
25158 .align 4
25159 cxbe %g2, %g3, 1f
25160 1: cwbneg %g2, %g3, 1f
25161 1: sha1
25162 md5
25163 aes_kexpand0 %f4, %f6, %f8
25164 des_round %f38, %f40, %f42, %f44
25165 camellia_f %f54, %f56, %f58, %f60
25166 kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
25167 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
25168 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25169 (eval $ac_try) 2>&5
25170 ac_status=$?
25171 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25172 test $ac_status = 0; }; }
25173 then
25174 gcc_cv_as_sparc_sparc4=yes
25175 else
25176 echo "configure: failed program was" >&5
25177 cat conftest.s >&5
25178 fi
25179 rm -f conftest.o conftest.s
25180 fi
25181 fi
25182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
25183 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
25184 if test $gcc_cv_as_sparc_sparc4 = yes; then
25185
25186 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
25187
25188 fi
25189
25190
25191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC5 and VIS 4.0 instructions" >&5
25192 $as_echo_n "checking assembler for SPARC5 and VIS 4.0 instructions... " >&6; }
25193 if test "${gcc_cv_as_sparc_sparc5+set}" = set; then :
25194 $as_echo_n "(cached) " >&6
25195 else
25196 gcc_cv_as_sparc_sparc5=no
25197 if test x$gcc_cv_as != x; then
25198 $as_echo '.text
25199 .register %g2, #scratch
25200 .register %g3, #scratch
25201 .align 4
25202 subxc %g1, %g2, %g3
25203 fpadd8 %f0, %f2, %f4' > conftest.s
25204 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc5 -o conftest.o conftest.s >&5'
25205 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25206 (eval $ac_try) 2>&5
25207 ac_status=$?
25208 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25209 test $ac_status = 0; }; }
25210 then
25211 gcc_cv_as_sparc_sparc5=yes
25212 else
25213 echo "configure: failed program was" >&5
25214 cat conftest.s >&5
25215 fi
25216 rm -f conftest.o conftest.s
25217 fi
25218 fi
25219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc5" >&5
25220 $as_echo "$gcc_cv_as_sparc_sparc5" >&6; }
25221 if test $gcc_cv_as_sparc_sparc5 = yes; then
25222
25223 $as_echo "#define HAVE_AS_SPARC5_VIS4 1" >>confdefs.h
25224
25225 fi
25226
25227
25228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for LEON instructions" >&5
25229 $as_echo_n "checking assembler for LEON instructions... " >&6; }
25230 if test "${gcc_cv_as_sparc_leon+set}" = set; then :
25231 $as_echo_n "(cached) " >&6
25232 else
25233 gcc_cv_as_sparc_leon=no
25234 if test x$gcc_cv_as != x; then
25235 $as_echo '.text
25236 .register %g2, #scratch
25237 .register %g3, #scratch
25238 .align 4
25239 smac %g2, %g3, %g1
25240 umac %g2, %g3, %g1
25241 casa [%g2] 0xb, %g3, %g1' > conftest.s
25242 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -Aleon -o conftest.o conftest.s >&5'
25243 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25244 (eval $ac_try) 2>&5
25245 ac_status=$?
25246 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25247 test $ac_status = 0; }; }
25248 then
25249 gcc_cv_as_sparc_leon=yes
25250 else
25251 echo "configure: failed program was" >&5
25252 cat conftest.s >&5
25253 fi
25254 rm -f conftest.o conftest.s
25255 fi
25256 fi
25257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_leon" >&5
25258 $as_echo "$gcc_cv_as_sparc_leon" >&6; }
25259 if test $gcc_cv_as_sparc_leon = yes; then
25260
25261 $as_echo "#define HAVE_AS_LEON 1" >>confdefs.h
25262
25263 fi
25264
25265 ;;
25266
25267 i[34567]86-*-* | x86_64-*-*)
25268 case $target_os in
25269 cygwin*)
25270 # Full C++ conformance when using a shared libstdc++-v3 requires some
25271 # support from the Cygwin DLL, which in more recent versions exports
25272 # wrappers to aid in interposing and redirecting operators new, delete,
25273 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
25274 # are configuring for a version of Cygwin that exports the wrappers.
25275 if test x$host = x$target && test x$host_cpu = xi686; then
25276 ac_fn_cxx_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
25277 if test "x$ac_cv_func___wrap__Znaj" = x""yes; then :
25278 gcc_ac_cygwin_dll_wrappers=yes
25279 else
25280 gcc_ac_cygwin_dll_wrappers=no
25281 fi
25282
25283 else
25284 # Can't check presence of libc functions during cross-compile, so
25285 # we just have to assume we're building for an up-to-date target.
25286 gcc_ac_cygwin_dll_wrappers=yes
25287 fi
25288
25289 cat >>confdefs.h <<_ACEOF
25290 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
25291 _ACEOF
25292
25293 esac
25294 case $target_os in
25295 cygwin* | pe | mingw32*)
25296 # Recent binutils allows the three-operand form of ".comm" on PE. This
25297 # definition is used unconditionally to initialise the default state of
25298 # the target option variable that governs usage of the feature.
25299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
25300 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
25301 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
25302 $as_echo_n "(cached) " >&6
25303 else
25304 gcc_cv_as_comm_has_align=no
25305 if test $in_tree_gas = yes; then
25306 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
25307 then gcc_cv_as_comm_has_align=yes
25308 fi
25309 elif test x$gcc_cv_as != x; then
25310 $as_echo '.comm foo,1,32' > conftest.s
25311 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25312 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25313 (eval $ac_try) 2>&5
25314 ac_status=$?
25315 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25316 test $ac_status = 0; }; }
25317 then
25318 gcc_cv_as_comm_has_align=yes
25319 else
25320 echo "configure: failed program was" >&5
25321 cat conftest.s >&5
25322 fi
25323 rm -f conftest.o conftest.s
25324 fi
25325 fi
25326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
25327 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
25328
25329
25330
25331 cat >>confdefs.h <<_ACEOF
25332 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
25333 _ACEOF
25334
25335 # Used for DWARF 2 in PE
25336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
25337 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
25338 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
25339 $as_echo_n "(cached) " >&6
25340 else
25341 gcc_cv_as_ix86_pe_secrel32=no
25342 if test $in_tree_gas = yes; then
25343 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
25344 then gcc_cv_as_ix86_pe_secrel32=yes
25345 fi
25346 elif test x$gcc_cv_as != x; then
25347 $as_echo '.text
25348 foo: nop
25349 .data
25350 .secrel32 foo' > conftest.s
25351 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25352 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25353 (eval $ac_try) 2>&5
25354 ac_status=$?
25355 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25356 test $ac_status = 0; }; }
25357 then
25358 if test x$gcc_cv_ld != x \
25359 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
25360 gcc_cv_as_ix86_pe_secrel32=yes
25361 fi
25362 rm -f conftest
25363 else
25364 echo "configure: failed program was" >&5
25365 cat conftest.s >&5
25366 fi
25367 rm -f conftest.o conftest.s
25368 fi
25369 fi
25370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
25371 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
25372 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
25373
25374 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
25375
25376 fi
25377
25378 # Test if the assembler supports the extended form of the .section
25379 # directive that specifies section alignment. LTO support uses this,
25380 # but normally only after installation, so we warn but don't fail the
25381 # configure if LTO is enabled but the assembler does not support it.
25382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
25383 $as_echo_n "checking assembler for .section with alignment... " >&6; }
25384 if test "${gcc_cv_as_section_has_align+set}" = set; then :
25385 $as_echo_n "(cached) " >&6
25386 else
25387 gcc_cv_as_section_has_align=no
25388 if test $in_tree_gas = yes; then
25389 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
25390 then gcc_cv_as_section_has_align=yes
25391 fi
25392 elif test x$gcc_cv_as != x; then
25393 $as_echo '.section lto_test,"dr0"' > conftest.s
25394 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
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 then
25401 gcc_cv_as_section_has_align=yes
25402 else
25403 echo "configure: failed program was" >&5
25404 cat conftest.s >&5
25405 fi
25406 rm -f conftest.o conftest.s
25407 fi
25408 fi
25409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
25410 $as_echo "$gcc_cv_as_section_has_align" >&6; }
25411
25412
25413 if test x$gcc_cv_as_section_has_align != xyes; then
25414 case ",$enable_languages," in
25415 *,lto,*)
25416 { $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
25417 $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;}
25418 ;;
25419 esac
25420 fi
25421 ;;
25422 esac
25423
25424 # Test if the assembler supports the section flag 'e' for specifying
25425 # an excluded section.
25426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with e" >&5
25427 $as_echo_n "checking assembler for .section with e... " >&6; }
25428 if test "${gcc_cv_as_section_has_e+set}" = set; then :
25429 $as_echo_n "(cached) " >&6
25430 else
25431 gcc_cv_as_section_has_e=no
25432 if test $in_tree_gas = yes; then
25433 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
25434 then gcc_cv_as_section_has_e=yes
25435 fi
25436 elif test x$gcc_cv_as != x; then
25437 $as_echo '.section foo1,"e"
25438 .byte 0,0,0,0' > conftest.s
25439 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25440 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25441 (eval $ac_try) 2>&5
25442 ac_status=$?
25443 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25444 test $ac_status = 0; }; }
25445 then
25446 gcc_cv_as_section_has_e=yes
25447 else
25448 echo "configure: failed program was" >&5
25449 cat conftest.s >&5
25450 fi
25451 rm -f conftest.o conftest.s
25452 fi
25453 fi
25454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_e" >&5
25455 $as_echo "$gcc_cv_as_section_has_e" >&6; }
25456
25457
25458
25459 cat >>confdefs.h <<_ACEOF
25460 #define HAVE_GAS_SECTION_EXCLUDE `if test $gcc_cv_as_section_has_e = yes; then echo 1; else echo 0; fi`
25461 _ACEOF
25462
25463
25464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
25465 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
25466 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
25467 $as_echo_n "(cached) " >&6
25468 else
25469 gcc_cv_as_ix86_filds=no
25470 if test x$gcc_cv_as != x; then
25471 $as_echo 'filds (%ebp); fists (%ebp)' > conftest.s
25472 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25473 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25474 (eval $ac_try) 2>&5
25475 ac_status=$?
25476 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25477 test $ac_status = 0; }; }
25478 then
25479 gcc_cv_as_ix86_filds=yes
25480 else
25481 echo "configure: failed program was" >&5
25482 cat conftest.s >&5
25483 fi
25484 rm -f conftest.o conftest.s
25485 fi
25486 fi
25487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
25488 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
25489 if test $gcc_cv_as_ix86_filds = yes; then
25490
25491 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
25492
25493 fi
25494
25495
25496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
25497 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
25498 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
25499 $as_echo_n "(cached) " >&6
25500 else
25501 gcc_cv_as_ix86_fildq=no
25502 if test x$gcc_cv_as != x; then
25503 $as_echo 'fildq (%ebp); fistpq (%ebp)' > conftest.s
25504 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25505 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25506 (eval $ac_try) 2>&5
25507 ac_status=$?
25508 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25509 test $ac_status = 0; }; }
25510 then
25511 gcc_cv_as_ix86_fildq=yes
25512 else
25513 echo "configure: failed program was" >&5
25514 cat conftest.s >&5
25515 fi
25516 rm -f conftest.o conftest.s
25517 fi
25518 fi
25519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
25520 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
25521 if test $gcc_cv_as_ix86_fildq = yes; then
25522
25523 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
25524
25525 fi
25526
25527
25528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
25529 $as_echo_n "checking assembler for cmov syntax... " >&6; }
25530 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
25531 $as_echo_n "(cached) " >&6
25532 else
25533 gcc_cv_as_ix86_cmov_sun_syntax=no
25534 if test x$gcc_cv_as != x; then
25535 $as_echo 'cmovl.l %edx, %eax' > conftest.s
25536 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25537 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25538 (eval $ac_try) 2>&5
25539 ac_status=$?
25540 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25541 test $ac_status = 0; }; }
25542 then
25543 gcc_cv_as_ix86_cmov_sun_syntax=yes
25544 else
25545 echo "configure: failed program was" >&5
25546 cat conftest.s >&5
25547 fi
25548 rm -f conftest.o conftest.s
25549 fi
25550 fi
25551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
25552 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
25553 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
25554
25555 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
25556
25557 fi
25558
25559
25560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
25561 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
25562 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
25563 $as_echo_n "(cached) " >&6
25564 else
25565 gcc_cv_as_ix86_ffreep=no
25566 if test x$gcc_cv_as != x; then
25567 $as_echo 'ffreep %st(1)' > conftest.s
25568 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25569 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25570 (eval $ac_try) 2>&5
25571 ac_status=$?
25572 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25573 test $ac_status = 0; }; }
25574 then
25575 gcc_cv_as_ix86_ffreep=yes
25576 else
25577 echo "configure: failed program was" >&5
25578 cat conftest.s >&5
25579 fi
25580 rm -f conftest.o conftest.s
25581 fi
25582 fi
25583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
25584 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
25585 if test $gcc_cv_as_ix86_ffreep = yes; then
25586
25587 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
25588
25589 fi
25590
25591
25592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
25593 $as_echo_n "checking assembler for .quad directive... " >&6; }
25594 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
25595 $as_echo_n "(cached) " >&6
25596 else
25597 gcc_cv_as_ix86_quad=no
25598 if test x$gcc_cv_as != x; then
25599 $as_echo '.quad 0' > conftest.s
25600 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25601 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25602 (eval $ac_try) 2>&5
25603 ac_status=$?
25604 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25605 test $ac_status = 0; }; }
25606 then
25607 gcc_cv_as_ix86_quad=yes
25608 else
25609 echo "configure: failed program was" >&5
25610 cat conftest.s >&5
25611 fi
25612 rm -f conftest.o conftest.s
25613 fi
25614 fi
25615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
25616 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
25617 if test $gcc_cv_as_ix86_quad = yes; then
25618
25619 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
25620
25621 fi
25622
25623
25624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
25625 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
25626 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
25627 $as_echo_n "(cached) " >&6
25628 else
25629 gcc_cv_as_ix86_sahf=no
25630 if test x$gcc_cv_as != x; then
25631 $as_echo '.code64
25632 sahf' > conftest.s
25633 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25634 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25635 (eval $ac_try) 2>&5
25636 ac_status=$?
25637 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25638 test $ac_status = 0; }; }
25639 then
25640 gcc_cv_as_ix86_sahf=yes
25641 else
25642 echo "configure: failed program was" >&5
25643 cat conftest.s >&5
25644 fi
25645 rm -f conftest.o conftest.s
25646 fi
25647 fi
25648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
25649 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
25650 if test $gcc_cv_as_ix86_sahf = yes; then
25651
25652 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
25653
25654 fi
25655
25656
25657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for interunit movq mnemonic" >&5
25658 $as_echo_n "checking assembler for interunit movq mnemonic... " >&6; }
25659 if test "${gcc_cv_as_ix86_interunit_movq+set}" = set; then :
25660 $as_echo_n "(cached) " >&6
25661 else
25662 gcc_cv_as_ix86_interunit_movq=no
25663 if test x$gcc_cv_as != x; then
25664 $as_echo '.code64
25665 movq %mm0, %rax
25666 movq %rax, %xmm0' > conftest.s
25667 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25668 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25669 (eval $ac_try) 2>&5
25670 ac_status=$?
25671 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25672 test $ac_status = 0; }; }
25673 then
25674 gcc_cv_as_ix86_interunit_movq=yes
25675 else
25676 echo "configure: failed program was" >&5
25677 cat conftest.s >&5
25678 fi
25679 rm -f conftest.o conftest.s
25680 fi
25681 fi
25682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_interunit_movq" >&5
25683 $as_echo "$gcc_cv_as_ix86_interunit_movq" >&6; }
25684
25685
25686
25687 cat >>confdefs.h <<_ACEOF
25688 #define HAVE_AS_IX86_INTERUNIT_MOVQ `if test $gcc_cv_as_ix86_interunit_movq = yes; then echo 1; else echo 0; fi`
25689 _ACEOF
25690
25691
25692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
25693 $as_echo_n "checking assembler for hle prefixes... " >&6; }
25694 if test "${gcc_cv_as_ix86_hle+set}" = set; then :
25695 $as_echo_n "(cached) " >&6
25696 else
25697 gcc_cv_as_ix86_hle=no
25698 if test x$gcc_cv_as != x; then
25699 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
25700 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25701 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25702 (eval $ac_try) 2>&5
25703 ac_status=$?
25704 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25705 test $ac_status = 0; }; }
25706 then
25707 gcc_cv_as_ix86_hle=yes
25708 else
25709 echo "configure: failed program was" >&5
25710 cat conftest.s >&5
25711 fi
25712 rm -f conftest.o conftest.s
25713 fi
25714 fi
25715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
25716 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
25717 if test $gcc_cv_as_ix86_hle = yes; then
25718
25719 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
25720
25721 fi
25722
25723
25724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
25725 $as_echo_n "checking assembler for swap suffix... " >&6; }
25726 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
25727 $as_echo_n "(cached) " >&6
25728 else
25729 gcc_cv_as_ix86_swap=no
25730 if test x$gcc_cv_as != x; then
25731 $as_echo 'movl.s %esp, %ebp' > conftest.s
25732 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25733 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25734 (eval $ac_try) 2>&5
25735 ac_status=$?
25736 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25737 test $ac_status = 0; }; }
25738 then
25739 gcc_cv_as_ix86_swap=yes
25740 else
25741 echo "configure: failed program was" >&5
25742 cat conftest.s >&5
25743 fi
25744 rm -f conftest.o conftest.s
25745 fi
25746 fi
25747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
25748 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
25749 if test $gcc_cv_as_ix86_swap = yes; then
25750
25751 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
25752
25753 fi
25754
25755
25756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
25757 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
25758 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
25759 $as_echo_n "(cached) " >&6
25760 else
25761 gcc_cv_as_ix86_diff_sect_delta=no
25762 if test x$gcc_cv_as != x; then
25763 $as_echo '.section .rodata
25764 .L1:
25765 .long .L2-.L1
25766 .long .L3-.L1
25767 .text
25768 .L3: nop
25769 .L2: nop' > conftest.s
25770 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25771 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25772 (eval $ac_try) 2>&5
25773 ac_status=$?
25774 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25775 test $ac_status = 0; }; }
25776 then
25777 gcc_cv_as_ix86_diff_sect_delta=yes
25778 else
25779 echo "configure: failed program was" >&5
25780 cat conftest.s >&5
25781 fi
25782 rm -f conftest.o conftest.s
25783 fi
25784 fi
25785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
25786 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
25787 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
25788
25789 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
25790
25791 fi
25792
25793
25794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
25795 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
25796 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
25797 $as_echo_n "(cached) " >&6
25798 else
25799 gcc_cv_as_ix86_rep_lock_prefix=no
25800 if test x$gcc_cv_as != x; then
25801 $as_echo 'rep movsl
25802 rep ret
25803 rep nop
25804 rep bsf %ecx, %eax
25805 rep bsr %ecx, %eax
25806 lock addl %edi, (%eax,%esi)
25807 lock orl $0, (%esp)' > conftest.s
25808 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25809 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25810 (eval $ac_try) 2>&5
25811 ac_status=$?
25812 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25813 test $ac_status = 0; }; }
25814 then
25815 gcc_cv_as_ix86_rep_lock_prefix=yes
25816 else
25817 echo "configure: failed program was" >&5
25818 cat conftest.s >&5
25819 fi
25820 rm -f conftest.o conftest.s
25821 fi
25822 fi
25823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
25824 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
25825 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
25826
25827 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
25828
25829 fi
25830
25831
25832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ud2 mnemonic" >&5
25833 $as_echo_n "checking assembler for ud2 mnemonic... " >&6; }
25834 if test "${gcc_cv_as_ix86_ud2+set}" = set; then :
25835 $as_echo_n "(cached) " >&6
25836 else
25837 gcc_cv_as_ix86_ud2=no
25838 if test x$gcc_cv_as != x; then
25839 $as_echo 'ud2' > conftest.s
25840 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25841 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25842 (eval $ac_try) 2>&5
25843 ac_status=$?
25844 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25845 test $ac_status = 0; }; }
25846 then
25847 gcc_cv_as_ix86_ud2=yes
25848 else
25849 echo "configure: failed program was" >&5
25850 cat conftest.s >&5
25851 fi
25852 rm -f conftest.o conftest.s
25853 fi
25854 fi
25855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ud2" >&5
25856 $as_echo "$gcc_cv_as_ix86_ud2" >&6; }
25857 if test $gcc_cv_as_ix86_ud2 = yes; then
25858
25859 $as_echo "#define HAVE_AS_IX86_UD2 1" >>confdefs.h
25860
25861 fi
25862
25863
25864 # Enforce 32-bit output with gas and gld.
25865 if test x$gas = xyes; then
25866 as_ix86_gas_32_opt="--32"
25867 fi
25868 if echo "$ld_ver" | grep GNU > /dev/null; then
25869 if $gcc_cv_ld -V 2>/dev/null | grep elf_i386_sol2 > /dev/null; then
25870 ld_ix86_gld_32_opt="-melf_i386_sol2"
25871 else
25872 ld_ix86_gld_32_opt="-melf_i386"
25873 fi
25874 fi
25875
25876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
25877 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
25878 if test "${gcc_cv_as_ix86_tlsgdplt+set}" = set; then :
25879 $as_echo_n "(cached) " >&6
25880 else
25881 gcc_cv_as_ix86_tlsgdplt=no
25882 if test x$gcc_cv_as != x; then
25883 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
25884 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
25885 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25886 (eval $ac_try) 2>&5
25887 ac_status=$?
25888 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25889 test $ac_status = 0; }; }
25890 then
25891 if test x$gcc_cv_ld != x \
25892 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o -G > /dev/null 2>&1; then
25893 gcc_cv_as_ix86_tlsgdplt=yes
25894 fi
25895 rm -f conftest
25896 else
25897 echo "configure: failed program was" >&5
25898 cat conftest.s >&5
25899 fi
25900 rm -f conftest.o conftest.s
25901 fi
25902 fi
25903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
25904 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
25905 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
25906
25907 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
25908
25909 fi
25910
25911
25912 conftest_s='
25913 .section .tdata,"aw'$tls_section_flag'",@progbits
25914 tls_ld:
25915 .section .text,"ax",@progbits
25916 call tls_ld@tlsldmplt'
25917
25918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
25919 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
25920 if test "${gcc_cv_as_ix86_tlsldmplt+set}" = set; then :
25921 $as_echo_n "(cached) " >&6
25922 else
25923 gcc_cv_as_ix86_tlsldmplt=no
25924 if test x$gcc_cv_as != x; then
25925 $as_echo "$conftest_s" > conftest.s
25926 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
25927 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25928 (eval $ac_try) 2>&5
25929 ac_status=$?
25930 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25931 test $ac_status = 0; }; }
25932 then
25933 if test x$gcc_cv_ld != x \
25934 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o -G > /dev/null 2>&1; then
25935 gcc_cv_as_ix86_tlsldmplt=yes
25936 fi
25937 rm -f conftest
25938 else
25939 echo "configure: failed program was" >&5
25940 cat conftest.s >&5
25941 fi
25942 rm -f conftest.o conftest.s
25943 fi
25944 fi
25945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
25946 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
25947
25948
25949
25950 cat >>confdefs.h <<_ACEOF
25951 #define HAVE_AS_IX86_TLSLDMPLT `if test $gcc_cv_as_ix86_tlsldmplt = yes; then echo 1; else echo 0; fi`
25952 _ACEOF
25953
25954
25955 conftest_s='
25956 .section .text,"ax",@progbits
25957 .globl _start
25958 .type _start, @function
25959 _start:
25960 leal value@tlsldm(%ebx), %eax
25961 call ___tls_get_addr@plt
25962
25963 .section .tdata,"aw'$tls_section_flag'",@progbits
25964 .type value, @object
25965 value:'
25966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM reloc" >&5
25967 $as_echo_n "checking assembler for R_386_TLS_LDM reloc... " >&6; }
25968 if test "${gcc_cv_as_ix86_tlsldm+set}" = set; then :
25969 $as_echo_n "(cached) " >&6
25970 else
25971 gcc_cv_as_ix86_tlsldm=no
25972 if test x$gcc_cv_as != x; then
25973 $as_echo "$conftest_s" > conftest.s
25974 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
25975 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25976 (eval $ac_try) 2>&5
25977 ac_status=$?
25978 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25979 test $ac_status = 0; }; }
25980 then
25981 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
25982 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o $ld_tls_libs -lc > /dev/null 2>&1; then
25983 if $gcc_cv_objdump -d conftest 2>/dev/null | grep nop > /dev/null \
25984 || dis conftest 2>/dev/null | grep nop > /dev/null; then
25985 gcc_cv_as_ix86_tlsldm=yes
25986 fi
25987 fi
25988 rm -f conftest
25989 else
25990 echo "configure: failed program was" >&5
25991 cat conftest.s >&5
25992 fi
25993 rm -f conftest.o conftest.s
25994 fi
25995 fi
25996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldm" >&5
25997 $as_echo "$gcc_cv_as_ix86_tlsldm" >&6; }
25998
25999
26000
26001 cat >>confdefs.h <<_ACEOF
26002 #define HAVE_AS_IX86_TLSLDM `if test $gcc_cv_as_ix86_tlsldm = yes; then echo 1; else echo 0; fi`
26003 _ACEOF
26004
26005
26006 conftest_s='
26007 .data
26008 bar:
26009 .byte 1
26010 .text
26011 .global _start
26012 _start:
26013 cmpl $0, bar@GOT
26014 jmp *_start@GOT'
26015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_GOT32X reloc" >&5
26016 $as_echo_n "checking assembler for R_386_GOT32X reloc... " >&6; }
26017 if test "${gcc_cv_as_ix86_got32x+set}" = set; then :
26018 $as_echo_n "(cached) " >&6
26019 else
26020 gcc_cv_as_ix86_got32x=no
26021 if test x$gcc_cv_as != x; then
26022 $as_echo "$conftest_s" > conftest.s
26023 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26024 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26025 (eval $ac_try) 2>&5
26026 ac_status=$?
26027 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26028 test $ac_status = 0; }; }
26029 then
26030 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
26031 && test x$gcc_cv_readelf != x \
26032 && $gcc_cv_readelf --relocs --wide conftest.o 2>&1 \
26033 | grep R_386_GOT32X > /dev/null 2>&1 \
26034 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o > /dev/null 2>&1; then
26035 if $gcc_cv_objdump -dw conftest 2>&1 \
26036 | grep 0xffffff > /dev/null 2>&1; then
26037 gcc_cv_as_ix86_got32x=no
26038 else
26039 gcc_cv_as_ix86_got32x=yes
26040 fi
26041 fi
26042 rm -f conftest
26043 else
26044 echo "configure: failed program was" >&5
26045 cat conftest.s >&5
26046 fi
26047 rm -f conftest.o conftest.s
26048 fi
26049 fi
26050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_got32x" >&5
26051 $as_echo "$gcc_cv_as_ix86_got32x" >&6; }
26052
26053
26054
26055 cat >>confdefs.h <<_ACEOF
26056 #define HAVE_AS_IX86_GOT32X `if test x"$gcc_cv_as_ix86_got32x" = xyes; then echo 1; else echo 0; fi`
26057 _ACEOF
26058
26059
26060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
26061 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
26062 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
26063 $as_echo_n "(cached) " >&6
26064 else
26065 gcc_cv_as_ix86_gotoff_in_data=no
26066 if test $in_tree_gas = yes; then
26067 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26068 then gcc_cv_as_ix86_gotoff_in_data=yes
26069 fi
26070 elif test x$gcc_cv_as != x; then
26071 $as_echo ' .text
26072 .L0:
26073 nop
26074 .data
26075 .long .L0@GOTOFF' > conftest.s
26076 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26077 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26078 (eval $ac_try) 2>&5
26079 ac_status=$?
26080 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26081 test $ac_status = 0; }; }
26082 then
26083 gcc_cv_as_ix86_gotoff_in_data=yes
26084 else
26085 echo "configure: failed program was" >&5
26086 cat conftest.s >&5
26087 fi
26088 rm -f conftest.o conftest.s
26089 fi
26090 fi
26091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
26092 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
26093
26094
26095
26096 cat >>confdefs.h <<_ACEOF
26097 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
26098 _ACEOF
26099
26100
26101 conftest_s='
26102 .section .text,"ax",@progbits
26103 .globl _start
26104 .type _start, @function
26105 _start:
26106 leal ld@tlsldm(%ecx), %eax
26107 call *___tls_get_addr@GOT(%ecx)
26108 leal gd@tlsgd(%ecx), %eax
26109 call *___tls_get_addr@GOT(%ecx)
26110
26111 .section .tdata,"aw'$tls_section_flag'",@progbits
26112 .type ld, @object
26113 ld:
26114 .byte 0
26115 .globl gd
26116 .type gd, @object
26117 gd:
26118 .byte 0'
26119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for calling ___tls_get_addr via GOT" >&5
26120 $as_echo_n "checking assembler for calling ___tls_get_addr via GOT... " >&6; }
26121 if test "${gcc_cv_as_ix86_tls_get_addr_via_got+set}" = set; then :
26122 $as_echo_n "(cached) " >&6
26123 else
26124 gcc_cv_as_ix86_tls_get_addr_via_got=no
26125 if test x$gcc_cv_as != x; then
26126 $as_echo "$conftest_s" > conftest.s
26127 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26128 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26129 (eval $ac_try) 2>&5
26130 ac_status=$?
26131 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26132 test $ac_status = 0; }; }
26133 then
26134 if test x$gcc_cv_ld != x \
26135 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o > /dev/null 2>&1; then
26136 gcc_cv_as_ix86_tls_get_addr_via_got=yes
26137 fi
26138 rm -f conftest
26139 else
26140 echo "configure: failed program was" >&5
26141 cat conftest.s >&5
26142 fi
26143 rm -f conftest.o conftest.s
26144 fi
26145 fi
26146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tls_get_addr_via_got" >&5
26147 $as_echo "$gcc_cv_as_ix86_tls_get_addr_via_got" >&6; }
26148
26149
26150
26151 cat >>confdefs.h <<_ACEOF
26152 #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`
26153 _ACEOF
26154
26155 ;;
26156
26157 ia64*-*-*)
26158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
26159 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
26160 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
26161 $as_echo_n "(cached) " >&6
26162 else
26163 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
26164 if test $in_tree_gas = yes; then
26165 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
26166 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
26167 fi
26168 elif test x$gcc_cv_as != x; then
26169 $as_echo ' .text
26170 addl r15 = @ltoffx(x#), gp
26171 ;;
26172 ld8.mov r16 = [r15], x#' > conftest.s
26173 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26174 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26175 (eval $ac_try) 2>&5
26176 ac_status=$?
26177 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26178 test $ac_status = 0; }; }
26179 then
26180 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
26181 else
26182 echo "configure: failed program was" >&5
26183 cat conftest.s >&5
26184 fi
26185 rm -f conftest.o conftest.s
26186 fi
26187 fi
26188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
26189 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
26190 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
26191
26192 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
26193
26194 fi
26195
26196
26197 ;;
26198
26199 powerpc*-*-*)
26200
26201 case $target in
26202 *-*-darwin*)
26203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
26204 $as_echo_n "checking assembler for .machine directive support... " >&6; }
26205 if test "${gcc_cv_as_machine_directive+set}" = set; then :
26206 $as_echo_n "(cached) " >&6
26207 else
26208 gcc_cv_as_machine_directive=no
26209 if test x$gcc_cv_as != x; then
26210 $as_echo ' .machine ppc7400' > conftest.s
26211 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26212 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26213 (eval $ac_try) 2>&5
26214 ac_status=$?
26215 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26216 test $ac_status = 0; }; }
26217 then
26218 gcc_cv_as_machine_directive=yes
26219 else
26220 echo "configure: failed program was" >&5
26221 cat conftest.s >&5
26222 fi
26223 rm -f conftest.o conftest.s
26224 fi
26225 fi
26226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
26227 $as_echo "$gcc_cv_as_machine_directive" >&6; }
26228
26229
26230 if test x$gcc_cv_as_machine_directive != xyes; then
26231 echo "*** This target requires an assembler supporting \".machine\"" >&2
26232 echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
26233 test x$build = x$target && exit 1
26234 fi
26235 ;;
26236 esac
26237
26238 case $target in
26239 *-*-aix*) conftest_s=' .machine "pwr5"
26240 .csect .text[PR]
26241 mfcr 3,128';;
26242 *-*-darwin*) conftest_s=' .text
26243 mfcr r3,128';;
26244 *) conftest_s=' .machine power4
26245 .text
26246 mfcr 3,128';;
26247 esac
26248
26249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
26250 $as_echo_n "checking assembler for mfcr field support... " >&6; }
26251 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
26252 $as_echo_n "(cached) " >&6
26253 else
26254 gcc_cv_as_powerpc_mfcrf=no
26255 if test $in_tree_gas = yes; then
26256 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
26257 then gcc_cv_as_powerpc_mfcrf=yes
26258 fi
26259 elif test x$gcc_cv_as != x; then
26260 $as_echo "$conftest_s" > conftest.s
26261 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26262 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26263 (eval $ac_try) 2>&5
26264 ac_status=$?
26265 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26266 test $ac_status = 0; }; }
26267 then
26268 gcc_cv_as_powerpc_mfcrf=yes
26269 else
26270 echo "configure: failed program was" >&5
26271 cat conftest.s >&5
26272 fi
26273 rm -f conftest.o conftest.s
26274 fi
26275 fi
26276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
26277 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
26278 if test $gcc_cv_as_powerpc_mfcrf = yes; then
26279
26280 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
26281
26282 fi
26283
26284
26285 case $target in
26286 *-*-aix*) conftest_s=' .machine "pwr5"
26287 .csect .text[PR]
26288 popcntb 3,3';;
26289 *) conftest_s=' .machine power5
26290 .text
26291 popcntb 3,3';;
26292 esac
26293
26294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
26295 $as_echo_n "checking assembler for popcntb support... " >&6; }
26296 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
26297 $as_echo_n "(cached) " >&6
26298 else
26299 gcc_cv_as_powerpc_popcntb=no
26300 if test $in_tree_gas = yes; then
26301 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
26302 then gcc_cv_as_powerpc_popcntb=yes
26303 fi
26304 elif test x$gcc_cv_as != x; then
26305 $as_echo "$conftest_s" > conftest.s
26306 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26307 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26308 (eval $ac_try) 2>&5
26309 ac_status=$?
26310 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26311 test $ac_status = 0; }; }
26312 then
26313 gcc_cv_as_powerpc_popcntb=yes
26314 else
26315 echo "configure: failed program was" >&5
26316 cat conftest.s >&5
26317 fi
26318 rm -f conftest.o conftest.s
26319 fi
26320 fi
26321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
26322 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
26323 if test $gcc_cv_as_powerpc_popcntb = yes; then
26324
26325 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
26326
26327 fi
26328
26329
26330 case $target in
26331 *-*-aix*) conftest_s=' .machine "pwr5x"
26332 .csect .text[PR]
26333 frin 1,1';;
26334 *) conftest_s=' .machine power5
26335 .text
26336 frin 1,1';;
26337 esac
26338
26339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
26340 $as_echo_n "checking assembler for fp round support... " >&6; }
26341 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
26342 $as_echo_n "(cached) " >&6
26343 else
26344 gcc_cv_as_powerpc_fprnd=no
26345 if test $in_tree_gas = yes; then
26346 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
26347 then gcc_cv_as_powerpc_fprnd=yes
26348 fi
26349 elif test x$gcc_cv_as != x; then
26350 $as_echo "$conftest_s" > conftest.s
26351 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26352 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26353 (eval $ac_try) 2>&5
26354 ac_status=$?
26355 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26356 test $ac_status = 0; }; }
26357 then
26358 gcc_cv_as_powerpc_fprnd=yes
26359 else
26360 echo "configure: failed program was" >&5
26361 cat conftest.s >&5
26362 fi
26363 rm -f conftest.o conftest.s
26364 fi
26365 fi
26366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
26367 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
26368 if test $gcc_cv_as_powerpc_fprnd = yes; then
26369
26370 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
26371
26372 fi
26373
26374
26375 case $target in
26376 *-*-aix*) conftest_s=' .machine "pwr6"
26377 .csect .text[PR]
26378 mffgpr 1,3';;
26379 *) conftest_s=' .machine power6
26380 .text
26381 mffgpr 1,3';;
26382 esac
26383
26384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
26385 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
26386 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
26387 $as_echo_n "(cached) " >&6
26388 else
26389 gcc_cv_as_powerpc_mfpgpr=no
26390 if test $in_tree_gas = yes; then
26391 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26392 then gcc_cv_as_powerpc_mfpgpr=yes
26393 fi
26394 elif test x$gcc_cv_as != x; then
26395 $as_echo "$conftest_s" > conftest.s
26396 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26397 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26398 (eval $ac_try) 2>&5
26399 ac_status=$?
26400 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26401 test $ac_status = 0; }; }
26402 then
26403 gcc_cv_as_powerpc_mfpgpr=yes
26404 else
26405 echo "configure: failed program was" >&5
26406 cat conftest.s >&5
26407 fi
26408 rm -f conftest.o conftest.s
26409 fi
26410 fi
26411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
26412 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
26413 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
26414
26415 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
26416
26417 fi
26418
26419
26420 case $target in
26421 *-*-aix*) conftest_s=' .csect .text[PR]
26422 LCF..0:
26423 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
26424 *-*-darwin*)
26425 conftest_s=' .text
26426 LCF0:
26427 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
26428 *) conftest_s=' .text
26429 .LCF0:
26430 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
26431 esac
26432
26433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
26434 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
26435 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
26436 $as_echo_n "(cached) " >&6
26437 else
26438 gcc_cv_as_powerpc_rel16=no
26439 if test $in_tree_gas = yes; then
26440 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
26441 then gcc_cv_as_powerpc_rel16=yes
26442 fi
26443 elif test x$gcc_cv_as != x; then
26444 $as_echo "$conftest_s" > conftest.s
26445 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26446 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26447 (eval $ac_try) 2>&5
26448 ac_status=$?
26449 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26450 test $ac_status = 0; }; }
26451 then
26452 gcc_cv_as_powerpc_rel16=yes
26453 else
26454 echo "configure: failed program was" >&5
26455 cat conftest.s >&5
26456 fi
26457 rm -f conftest.o conftest.s
26458 fi
26459 fi
26460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
26461 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
26462 if test $gcc_cv_as_powerpc_rel16 = yes; then
26463
26464 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
26465
26466 fi
26467
26468
26469 case $target in
26470 *-*-aix*) conftest_s=' .machine "pwr6"
26471 .csect .text[PR]
26472 cmpb 3,4,5';;
26473 *) conftest_s=' .machine power6
26474 .text
26475 cmpb 3,4,5';;
26476 esac
26477
26478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
26479 $as_echo_n "checking assembler for compare bytes support... " >&6; }
26480 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
26481 $as_echo_n "(cached) " >&6
26482 else
26483 gcc_cv_as_powerpc_cmpb=no
26484 if test $in_tree_gas = yes; then
26485 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26486 then gcc_cv_as_powerpc_cmpb=yes
26487 fi
26488 elif test x$gcc_cv_as != x; then
26489 $as_echo "$conftest_s" > conftest.s
26490 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26491 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26492 (eval $ac_try) 2>&5
26493 ac_status=$?
26494 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26495 test $ac_status = 0; }; }
26496 then
26497 gcc_cv_as_powerpc_cmpb=yes
26498 else
26499 echo "configure: failed program was" >&5
26500 cat conftest.s >&5
26501 fi
26502 rm -f conftest.o conftest.s
26503 fi
26504 fi
26505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
26506 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
26507 if test $gcc_cv_as_powerpc_cmpb = yes; then
26508
26509 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
26510
26511 fi
26512
26513
26514 case $target in
26515 *-*-aix*) conftest_s=' .machine "pwr6"
26516 .csect .text[PR]
26517 dadd 1,2,3';;
26518 *) conftest_s=' .machine power6
26519 .text
26520 dadd 1,2,3';;
26521 esac
26522
26523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
26524 $as_echo_n "checking assembler for decimal float support... " >&6; }
26525 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
26526 $as_echo_n "(cached) " >&6
26527 else
26528 gcc_cv_as_powerpc_dfp=no
26529 if test $in_tree_gas = yes; then
26530 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26531 then gcc_cv_as_powerpc_dfp=yes
26532 fi
26533 elif test x$gcc_cv_as != x; then
26534 $as_echo "$conftest_s" > conftest.s
26535 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26536 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26537 (eval $ac_try) 2>&5
26538 ac_status=$?
26539 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26540 test $ac_status = 0; }; }
26541 then
26542 gcc_cv_as_powerpc_dfp=yes
26543 else
26544 echo "configure: failed program was" >&5
26545 cat conftest.s >&5
26546 fi
26547 rm -f conftest.o conftest.s
26548 fi
26549 fi
26550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
26551 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
26552 if test $gcc_cv_as_powerpc_dfp = yes; then
26553
26554 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
26555
26556 fi
26557
26558
26559 case $target in
26560 *-*-aix*) conftest_s=' .machine "pwr7"
26561 .csect .text[PR]
26562 lxvd2x 1,2,3';;
26563 *) conftest_s=' .machine power7
26564 .text
26565 lxvd2x 1,2,3';;
26566 esac
26567
26568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
26569 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
26570 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
26571 $as_echo_n "(cached) " >&6
26572 else
26573 gcc_cv_as_powerpc_vsx=no
26574 if test $in_tree_gas = yes; then
26575 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26576 then gcc_cv_as_powerpc_vsx=yes
26577 fi
26578 elif test x$gcc_cv_as != x; then
26579 $as_echo "$conftest_s" > conftest.s
26580 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26581 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26582 (eval $ac_try) 2>&5
26583 ac_status=$?
26584 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26585 test $ac_status = 0; }; }
26586 then
26587 gcc_cv_as_powerpc_vsx=yes
26588 else
26589 echo "configure: failed program was" >&5
26590 cat conftest.s >&5
26591 fi
26592 rm -f conftest.o conftest.s
26593 fi
26594 fi
26595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
26596 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
26597 if test $gcc_cv_as_powerpc_vsx = yes; then
26598
26599 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
26600
26601 fi
26602
26603
26604 case $target in
26605 *-*-aix*) conftest_s=' .machine "pwr7"
26606 .csect .text[PR]
26607 popcntd 3,3';;
26608 *) conftest_s=' .machine power7
26609 .text
26610 popcntd 3,3';;
26611 esac
26612
26613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
26614 $as_echo_n "checking assembler for popcntd support... " >&6; }
26615 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
26616 $as_echo_n "(cached) " >&6
26617 else
26618 gcc_cv_as_powerpc_popcntd=no
26619 if test $in_tree_gas = yes; then
26620 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26621 then gcc_cv_as_powerpc_popcntd=yes
26622 fi
26623 elif test x$gcc_cv_as != x; then
26624 $as_echo "$conftest_s" > conftest.s
26625 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26626 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26627 (eval $ac_try) 2>&5
26628 ac_status=$?
26629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26630 test $ac_status = 0; }; }
26631 then
26632 gcc_cv_as_powerpc_popcntd=yes
26633 else
26634 echo "configure: failed program was" >&5
26635 cat conftest.s >&5
26636 fi
26637 rm -f conftest.o conftest.s
26638 fi
26639 fi
26640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
26641 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
26642 if test $gcc_cv_as_powerpc_popcntd = yes; then
26643
26644 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
26645
26646 fi
26647
26648
26649 case $target in
26650 *-*-aix*) conftest_s=' .machine "pwr8"
26651 .csect .text[PR]';;
26652 *) conftest_s=' .machine power8
26653 .text';;
26654 esac
26655
26656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for power8 support" >&5
26657 $as_echo_n "checking assembler for power8 support... " >&6; }
26658 if test "${gcc_cv_as_powerpc_power8+set}" = set; then :
26659 $as_echo_n "(cached) " >&6
26660 else
26661 gcc_cv_as_powerpc_power8=no
26662 if test $in_tree_gas = yes; then
26663 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26664 then gcc_cv_as_powerpc_power8=yes
26665 fi
26666 elif test x$gcc_cv_as != x; then
26667 $as_echo "$conftest_s" > conftest.s
26668 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26669 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26670 (eval $ac_try) 2>&5
26671 ac_status=$?
26672 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26673 test $ac_status = 0; }; }
26674 then
26675 gcc_cv_as_powerpc_power8=yes
26676 else
26677 echo "configure: failed program was" >&5
26678 cat conftest.s >&5
26679 fi
26680 rm -f conftest.o conftest.s
26681 fi
26682 fi
26683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_power8" >&5
26684 $as_echo "$gcc_cv_as_powerpc_power8" >&6; }
26685 if test $gcc_cv_as_powerpc_power8 = yes; then
26686
26687 $as_echo "#define HAVE_AS_POWER8 1" >>confdefs.h
26688
26689 fi
26690
26691
26692 case $target in
26693 *-*-aix*) conftest_s=' .machine "pwr9"
26694 .csect .text[PR]';;
26695 *) conftest_s=' .machine power9
26696 .text';;
26697 esac
26698
26699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for power9 support" >&5
26700 $as_echo_n "checking assembler for power9 support... " >&6; }
26701 if test "${gcc_cv_as_powerpc_power9+set}" = set; then :
26702 $as_echo_n "(cached) " >&6
26703 else
26704 gcc_cv_as_powerpc_power9=no
26705 if test $in_tree_gas = yes; then
26706 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26707 then gcc_cv_as_powerpc_power9=yes
26708 fi
26709 elif test x$gcc_cv_as != x; then
26710 $as_echo "$conftest_s" > conftest.s
26711 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26712 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26713 (eval $ac_try) 2>&5
26714 ac_status=$?
26715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26716 test $ac_status = 0; }; }
26717 then
26718 gcc_cv_as_powerpc_power9=yes
26719 else
26720 echo "configure: failed program was" >&5
26721 cat conftest.s >&5
26722 fi
26723 rm -f conftest.o conftest.s
26724 fi
26725 fi
26726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_power9" >&5
26727 $as_echo "$gcc_cv_as_powerpc_power9" >&6; }
26728 if test $gcc_cv_as_powerpc_power9 = yes; then
26729
26730 $as_echo "#define HAVE_AS_POWER9 1" >>confdefs.h
26731
26732 fi
26733
26734
26735 case $target in
26736 *-*-aix*) conftest_s=' .csect .text[PR]
26737 lwsync';;
26738 *) conftest_s=' .text
26739 lwsync';;
26740 esac
26741
26742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
26743 $as_echo_n "checking assembler for lwsync support... " >&6; }
26744 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
26745 $as_echo_n "(cached) " >&6
26746 else
26747 gcc_cv_as_powerpc_lwsync=no
26748 if test $in_tree_gas = yes; then
26749 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26750 then gcc_cv_as_powerpc_lwsync=yes
26751 fi
26752 elif test x$gcc_cv_as != x; then
26753 $as_echo "$conftest_s" > conftest.s
26754 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26755 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26756 (eval $ac_try) 2>&5
26757 ac_status=$?
26758 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26759 test $ac_status = 0; }; }
26760 then
26761 gcc_cv_as_powerpc_lwsync=yes
26762 else
26763 echo "configure: failed program was" >&5
26764 cat conftest.s >&5
26765 fi
26766 rm -f conftest.o conftest.s
26767 fi
26768 fi
26769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
26770 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
26771 if test $gcc_cv_as_powerpc_lwsync = yes; then
26772
26773 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
26774
26775 fi
26776
26777
26778 case $target in
26779 *-*-aix*) conftest_s=' .machine "476"
26780 .csect .text[PR]
26781 dci 0';;
26782 *) conftest_s=' .machine "476"
26783 .text
26784 dci 0';;
26785 esac
26786
26787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
26788 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
26789 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
26790 $as_echo_n "(cached) " >&6
26791 else
26792 gcc_cv_as_powerpc_dci=no
26793 if test $in_tree_gas = yes; then
26794 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
26795 then gcc_cv_as_powerpc_dci=yes
26796 fi
26797 elif test x$gcc_cv_as != x; then
26798 $as_echo "$conftest_s" > conftest.s
26799 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26800 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26801 (eval $ac_try) 2>&5
26802 ac_status=$?
26803 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26804 test $ac_status = 0; }; }
26805 then
26806 gcc_cv_as_powerpc_dci=yes
26807 else
26808 echo "configure: failed program was" >&5
26809 cat conftest.s >&5
26810 fi
26811 rm -f conftest.o conftest.s
26812 fi
26813 fi
26814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
26815 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
26816 if test $gcc_cv_as_powerpc_dci = yes; then
26817
26818 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
26819
26820 fi
26821
26822
26823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
26824 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
26825 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
26826 $as_echo_n "(cached) " >&6
26827 else
26828 gcc_cv_as_powerpc_gnu_attribute=no
26829 if test $in_tree_gas = yes; then
26830 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26831 then gcc_cv_as_powerpc_gnu_attribute=yes
26832 fi
26833 elif test x$gcc_cv_as != x; then
26834 $as_echo '.gnu_attribute 4,1' > conftest.s
26835 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26836 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26837 (eval $ac_try) 2>&5
26838 ac_status=$?
26839 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26840 test $ac_status = 0; }; }
26841 then
26842 gcc_cv_as_powerpc_gnu_attribute=yes
26843 else
26844 echo "configure: failed program was" >&5
26845 cat conftest.s >&5
26846 fi
26847 rm -f conftest.o conftest.s
26848 fi
26849 fi
26850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
26851 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
26852 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
26853
26854 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
26855
26856 fi
26857
26858
26859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
26860 $as_echo_n "checking assembler for tls marker support... " >&6; }
26861 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
26862 $as_echo_n "(cached) " >&6
26863 else
26864 gcc_cv_as_powerpc_tls_markers=no
26865 if test $in_tree_gas = yes; then
26866 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
26867 then gcc_cv_as_powerpc_tls_markers=yes
26868 fi
26869 elif test x$gcc_cv_as != x; then
26870 $as_echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
26871 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26872 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26873 (eval $ac_try) 2>&5
26874 ac_status=$?
26875 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26876 test $ac_status = 0; }; }
26877 then
26878 gcc_cv_as_powerpc_tls_markers=yes
26879 else
26880 echo "configure: failed program was" >&5
26881 cat conftest.s >&5
26882 fi
26883 rm -f conftest.o conftest.s
26884 fi
26885 fi
26886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
26887 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
26888 if test $gcc_cv_as_powerpc_tls_markers = yes; then
26889
26890 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
26891
26892 fi
26893
26894
26895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for prologue entry point marker support" >&5
26896 $as_echo_n "checking assembler for prologue entry point marker support... " >&6; }
26897 if test "${gcc_cv_as_powerpc_entry_markers+set}" = set; then :
26898 $as_echo_n "(cached) " >&6
26899 else
26900 gcc_cv_as_powerpc_entry_markers=no
26901 if test $in_tree_gas = yes; then
26902 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 26 \) \* 1000 + 0`
26903 then gcc_cv_as_powerpc_entry_markers=yes
26904 fi
26905 elif test x$gcc_cv_as != x; then
26906 $as_echo ' .reloc .,R_PPC64_ENTRY; nop' > conftest.s
26907 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a64 --fatal-warnings -o conftest.o conftest.s >&5'
26908 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26909 (eval $ac_try) 2>&5
26910 ac_status=$?
26911 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26912 test $ac_status = 0; }; }
26913 then
26914 gcc_cv_as_powerpc_entry_markers=yes
26915 else
26916 echo "configure: failed program was" >&5
26917 cat conftest.s >&5
26918 fi
26919 rm -f conftest.o conftest.s
26920 fi
26921 fi
26922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_entry_markers" >&5
26923 $as_echo "$gcc_cv_as_powerpc_entry_markers" >&6; }
26924 if test $gcc_cv_as_powerpc_entry_markers = yes; then
26925
26926 $as_echo "#define HAVE_AS_ENTRY_MARKERS 1" >>confdefs.h
26927
26928 fi
26929
26930
26931 case $target in
26932 *-*-aix*)
26933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX .ref support" >&5
26934 $as_echo_n "checking assembler for AIX .ref support... " >&6; }
26935 if test "${gcc_cv_as_aix_ref+set}" = set; then :
26936 $as_echo_n "(cached) " >&6
26937 else
26938 gcc_cv_as_aix_ref=no
26939 if test $in_tree_gas = yes; then
26940 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
26941 then gcc_cv_as_aix_ref=yes
26942 fi
26943 elif test x$gcc_cv_as != x; then
26944 $as_echo ' .csect stuff[rw]
26945 stuff:
26946 .long 1
26947 .extern sym
26948 .ref sym
26949 ' > conftest.s
26950 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26951 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26952 (eval $ac_try) 2>&5
26953 ac_status=$?
26954 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26955 test $ac_status = 0; }; }
26956 then
26957 gcc_cv_as_aix_ref=yes
26958 else
26959 echo "configure: failed program was" >&5
26960 cat conftest.s >&5
26961 fi
26962 rm -f conftest.o conftest.s
26963 fi
26964 fi
26965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
26966 $as_echo "$gcc_cv_as_aix_ref" >&6; }
26967 if test $gcc_cv_as_aix_ref = yes; then
26968
26969 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
26970
26971 fi
26972
26973
26974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX DWARF location lists section support" >&5
26975 $as_echo_n "checking assembler for AIX DWARF location lists section support... " >&6; }
26976 if test "${gcc_cv_as_aix_dwloc+set}" = set; then :
26977 $as_echo_n "(cached) " >&6
26978 else
26979 gcc_cv_as_aix_dwloc=no
26980 if test $in_tree_gas = yes; then
26981 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
26982 then gcc_cv_as_aix_dwloc=yes
26983 fi
26984 elif test x$gcc_cv_as != x; then
26985 $as_echo ' .dwsect 0xA0000
26986 Lframe..0:
26987 .vbyte 4,Lframe..0
26988 ' > conftest.s
26989 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26990 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26991 (eval $ac_try) 2>&5
26992 ac_status=$?
26993 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26994 test $ac_status = 0; }; }
26995 then
26996 gcc_cv_as_aix_dwloc=yes
26997 else
26998 echo "configure: failed program was" >&5
26999 cat conftest.s >&5
27000 fi
27001 rm -f conftest.o conftest.s
27002 fi
27003 fi
27004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_dwloc" >&5
27005 $as_echo "$gcc_cv_as_aix_dwloc" >&6; }
27006 if test $gcc_cv_as_aix_dwloc = yes; then
27007
27008 $as_echo "#define HAVE_XCOFF_DWARF_EXTRAS 1" >>confdefs.h
27009
27010 fi
27011
27012 ;;
27013 esac
27014 ;;
27015
27016 mips*-*-*)
27017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
27018 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
27019 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
27020 $as_echo_n "(cached) " >&6
27021 else
27022 gcc_cv_as_mips_explicit_relocs=no
27023 if test $in_tree_gas = yes; then
27024 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
27025 then gcc_cv_as_mips_explicit_relocs=yes
27026 fi
27027 elif test x$gcc_cv_as != x; then
27028 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
27029 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27030 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27031 (eval $ac_try) 2>&5
27032 ac_status=$?
27033 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27034 test $ac_status = 0; }; }
27035 then
27036 gcc_cv_as_mips_explicit_relocs=yes
27037 else
27038 echo "configure: failed program was" >&5
27039 cat conftest.s >&5
27040 fi
27041 rm -f conftest.o conftest.s
27042 fi
27043 fi
27044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
27045 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
27046 if test $gcc_cv_as_mips_explicit_relocs = yes; then
27047 if test x$target_cpu_default = x
27048 then target_cpu_default=MASK_EXPLICIT_RELOCS
27049 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
27050 fi
27051 fi
27052
27053
27054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
27055 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
27056 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
27057 $as_echo_n "(cached) " >&6
27058 else
27059 gcc_cv_as_mips_no_shared=no
27060 if test $in_tree_gas = yes; then
27061 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
27062 then gcc_cv_as_mips_no_shared=yes
27063 fi
27064 elif test x$gcc_cv_as != x; then
27065 $as_echo 'nop' > conftest.s
27066 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
27067 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27068 (eval $ac_try) 2>&5
27069 ac_status=$?
27070 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27071 test $ac_status = 0; }; }
27072 then
27073 gcc_cv_as_mips_no_shared=yes
27074 else
27075 echo "configure: failed program was" >&5
27076 cat conftest.s >&5
27077 fi
27078 rm -f conftest.o conftest.s
27079 fi
27080 fi
27081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
27082 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
27083 if test $gcc_cv_as_mips_no_shared = yes; then
27084
27085 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
27086
27087 fi
27088
27089
27090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
27091 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
27092 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
27093 $as_echo_n "(cached) " >&6
27094 else
27095 gcc_cv_as_mips_gnu_attribute=no
27096 if test $in_tree_gas = yes; then
27097 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27098 then gcc_cv_as_mips_gnu_attribute=yes
27099 fi
27100 elif test x$gcc_cv_as != x; then
27101 $as_echo '.gnu_attribute 4,1' > conftest.s
27102 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27103 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27104 (eval $ac_try) 2>&5
27105 ac_status=$?
27106 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27107 test $ac_status = 0; }; }
27108 then
27109 gcc_cv_as_mips_gnu_attribute=yes
27110 else
27111 echo "configure: failed program was" >&5
27112 cat conftest.s >&5
27113 fi
27114 rm -f conftest.o conftest.s
27115 fi
27116 fi
27117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
27118 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
27119 if test $gcc_cv_as_mips_gnu_attribute = yes; then
27120
27121 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
27122
27123 fi
27124
27125
27126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .module support" >&5
27127 $as_echo_n "checking assembler for .module support... " >&6; }
27128 if test "${gcc_cv_as_mips_dot_module+set}" = set; then :
27129 $as_echo_n "(cached) " >&6
27130 else
27131 gcc_cv_as_mips_dot_module=no
27132 if test x$gcc_cv_as != x; then
27133 $as_echo '.module mips2
27134 .module fp=xx' > conftest.s
27135 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -32 -o conftest.o conftest.s >&5'
27136 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27137 (eval $ac_try) 2>&5
27138 ac_status=$?
27139 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27140 test $ac_status = 0; }; }
27141 then
27142 gcc_cv_as_mips_dot_module=yes
27143 else
27144 echo "configure: failed program was" >&5
27145 cat conftest.s >&5
27146 fi
27147 rm -f conftest.o conftest.s
27148 fi
27149 fi
27150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dot_module" >&5
27151 $as_echo "$gcc_cv_as_mips_dot_module" >&6; }
27152 if test $gcc_cv_as_mips_dot_module = yes; then
27153
27154 $as_echo "#define HAVE_AS_DOT_MODULE 1" >>confdefs.h
27155
27156 fi
27157
27158 if test x$gcc_cv_as_mips_dot_module = xno \
27159 && test x$with_fp_32 != x; then
27160 as_fn_error "Requesting --with-fp-32= requires assembler support for .module." "$LINENO" 5
27161 fi
27162
27163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .micromips support" >&5
27164 $as_echo_n "checking assembler for .micromips support... " >&6; }
27165 if test "${gcc_cv_as_micromips_support+set}" = set; then :
27166 $as_echo_n "(cached) " >&6
27167 else
27168 gcc_cv_as_micromips_support=no
27169 if test x$gcc_cv_as != x; then
27170 $as_echo '.set micromips' > conftest.s
27171 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
27172 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27173 (eval $ac_try) 2>&5
27174 ac_status=$?
27175 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27176 test $ac_status = 0; }; }
27177 then
27178 gcc_cv_as_micromips_support=yes
27179 else
27180 echo "configure: failed program was" >&5
27181 cat conftest.s >&5
27182 fi
27183 rm -f conftest.o conftest.s
27184 fi
27185 fi
27186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_micromips_support" >&5
27187 $as_echo "$gcc_cv_as_micromips_support" >&6; }
27188 if test $gcc_cv_as_micromips_support = yes; then
27189
27190 $as_echo "#define HAVE_GAS_MICROMIPS 1" >>confdefs.h
27191
27192 fi
27193
27194
27195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
27196 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
27197 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
27198 $as_echo_n "(cached) " >&6
27199 else
27200 gcc_cv_as_mips_dtprelword=no
27201 if test $in_tree_gas = yes; then
27202 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27203 then gcc_cv_as_mips_dtprelword=yes
27204 fi
27205 elif test x$gcc_cv_as != x; then
27206 $as_echo '.section .tdata,"awT",@progbits
27207 x:
27208 .word 2
27209 .text
27210 .dtprelword x+0x8000' > conftest.s
27211 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27212 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27213 (eval $ac_try) 2>&5
27214 ac_status=$?
27215 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27216 test $ac_status = 0; }; }
27217 then
27218 gcc_cv_as_mips_dtprelword=yes
27219 else
27220 echo "configure: failed program was" >&5
27221 cat conftest.s >&5
27222 fi
27223 rm -f conftest.o conftest.s
27224 fi
27225 fi
27226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
27227 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
27228 if test $gcc_cv_as_mips_dtprelword = yes; then
27229
27230 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
27231
27232 fi
27233
27234
27235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
27236 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
27237 if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
27238 $as_echo_n "(cached) " >&6
27239 else
27240 gcc_cv_as_mips_dspr1_mult=no
27241 if test x$gcc_cv_as != x; then
27242 $as_echo ' .set mips32r2
27243 .set nodspr2
27244 .set dsp
27245 madd $ac3,$4,$5
27246 maddu $ac3,$4,$5
27247 msub $ac3,$4,$5
27248 msubu $ac3,$4,$5
27249 mult $ac3,$4,$5
27250 multu $ac3,$4,$5' > conftest.s
27251 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27252 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27253 (eval $ac_try) 2>&5
27254 ac_status=$?
27255 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27256 test $ac_status = 0; }; }
27257 then
27258 gcc_cv_as_mips_dspr1_mult=yes
27259 else
27260 echo "configure: failed program was" >&5
27261 cat conftest.s >&5
27262 fi
27263 rm -f conftest.o conftest.s
27264 fi
27265 fi
27266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
27267 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
27268 if test $gcc_cv_as_mips_dspr1_mult = yes; then
27269
27270 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
27271
27272 fi
27273
27274
27275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
27276 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
27277 gcc_cv_as_ld_jalr_reloc=no
27278 if test $gcc_cv_as_mips_explicit_relocs = yes; then
27279 if test $in_tree_ld = yes ; then
27280 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 \
27281 && test $in_tree_ld_is_elf = yes; then
27282 gcc_cv_as_ld_jalr_reloc=yes
27283 fi
27284 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
27285 echo ' .ent x' > conftest.s
27286 echo 'x: lw $2,%got_disp(y)($3)' >> conftest.s
27287 echo ' lw $25,%call16(y)($28)' >> conftest.s
27288 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
27289 echo '1: jalr $25' >> conftest.s
27290 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
27291 echo '1: jalr $25' >> conftest.s
27292 echo ' .end x' >> conftest.s
27293 if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
27294 && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
27295 if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
27296 && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
27297 gcc_cv_as_ld_jalr_reloc=yes
27298 fi
27299 fi
27300 rm -f conftest.*
27301 fi
27302 fi
27303 if test $gcc_cv_as_ld_jalr_reloc = yes; then
27304 if test x$target_cpu_default = x; then
27305 target_cpu_default=MASK_RELAX_PIC_CALLS
27306 else
27307 target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
27308 fi
27309 fi
27310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
27311 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
27312
27313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
27314 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
27315 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
27316 $as_echo_n "(cached) " >&6
27317 else
27318 gcc_cv_ld_mips_personality_relaxation=no
27319 if test $in_tree_ld = yes ; then
27320 if test "$gcc_cv_gld_major_version" -eq 2 \
27321 -a "$gcc_cv_gld_minor_version" -ge 21 \
27322 -o "$gcc_cv_gld_major_version" -gt 2; then
27323 gcc_cv_ld_mips_personality_relaxation=yes
27324 fi
27325 elif test x$gcc_cv_as != x \
27326 -a x$gcc_cv_ld != x \
27327 -a x$gcc_cv_readelf != x ; then
27328 cat > conftest.s <<EOF
27329 .cfi_startproc
27330 .cfi_personality 0x80,indirect_ptr
27331 .ent test
27332 test:
27333 nop
27334 .end test
27335 .cfi_endproc
27336
27337 .section .data,"aw",@progbits
27338 indirect_ptr:
27339 .dc.a personality
27340 EOF
27341 if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
27342 && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
27343 if $gcc_cv_readelf -d conftest 2>&1 \
27344 | grep TEXTREL > /dev/null 2>&1; then
27345 :
27346 elif $gcc_cv_readelf --relocs conftest 2>&1 \
27347 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
27348 :
27349 else
27350 gcc_cv_ld_mips_personality_relaxation=yes
27351 fi
27352 fi
27353 fi
27354 rm -f conftest.s conftest.o conftest
27355 fi
27356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
27357 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
27358 if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
27359
27360 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
27361
27362 fi
27363
27364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mnan= support" >&5
27365 $as_echo_n "checking assembler for -mnan= support... " >&6; }
27366 if test "${gcc_cv_as_mips_nan+set}" = set; then :
27367 $as_echo_n "(cached) " >&6
27368 else
27369 gcc_cv_as_mips_nan=no
27370 if test x$gcc_cv_as != x; then
27371 $as_echo '' > conftest.s
27372 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mnan=2008 -o conftest.o conftest.s >&5'
27373 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27374 (eval $ac_try) 2>&5
27375 ac_status=$?
27376 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27377 test $ac_status = 0; }; }
27378 then
27379 gcc_cv_as_mips_nan=yes
27380 else
27381 echo "configure: failed program was" >&5
27382 cat conftest.s >&5
27383 fi
27384 rm -f conftest.o conftest.s
27385 fi
27386 fi
27387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_nan" >&5
27388 $as_echo "$gcc_cv_as_mips_nan" >&6; }
27389 if test $gcc_cv_as_mips_nan = yes; then
27390
27391 $as_echo "#define HAVE_AS_NAN 1" >>confdefs.h
27392
27393 fi
27394
27395 if test x$gcc_cv_as_mips_nan = xno \
27396 && test x$with_nan != x; then
27397 as_fn_error "Requesting --with-nan= requires assembler support for -mnan=" "$LINENO" 5
27398 fi
27399 ;;
27400 s390*-*-*)
27401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
27402 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
27403 if test "${gcc_cv_as_s390_gnu_attribute+set}" = set; then :
27404 $as_echo_n "(cached) " >&6
27405 else
27406 gcc_cv_as_s390_gnu_attribute=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_s390_gnu_attribute=yes
27410 fi
27411 elif test x$gcc_cv_as != x; then
27412 $as_echo '.gnu_attribute 8,1' > conftest.s
27413 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27414 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27415 (eval $ac_try) 2>&5
27416 ac_status=$?
27417 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27418 test $ac_status = 0; }; }
27419 then
27420 gcc_cv_as_s390_gnu_attribute=yes
27421 else
27422 echo "configure: failed program was" >&5
27423 cat conftest.s >&5
27424 fi
27425 rm -f conftest.o conftest.s
27426 fi
27427 fi
27428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_gnu_attribute" >&5
27429 $as_echo "$gcc_cv_as_s390_gnu_attribute" >&6; }
27430 if test $gcc_cv_as_s390_gnu_attribute = yes; then
27431
27432 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
27433
27434 fi
27435
27436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine and .machinemode support" >&5
27437 $as_echo_n "checking assembler for .machine and .machinemode support... " >&6; }
27438 if test "${gcc_cv_as_s390_machine_machinemode+set}" = set; then :
27439 $as_echo_n "(cached) " >&6
27440 else
27441 gcc_cv_as_s390_machine_machinemode=no
27442 if test $in_tree_gas = yes; then
27443 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 24 \) \* 1000 + 0`
27444 then gcc_cv_as_s390_machine_machinemode=yes
27445 fi
27446 elif test x$gcc_cv_as != x; then
27447 $as_echo ' .machinemode push
27448 .machinemode pop
27449 .machine push
27450 .machine pop' > conftest.s
27451 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27452 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27453 (eval $ac_try) 2>&5
27454 ac_status=$?
27455 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27456 test $ac_status = 0; }; }
27457 then
27458 gcc_cv_as_s390_machine_machinemode=yes
27459 else
27460 echo "configure: failed program was" >&5
27461 cat conftest.s >&5
27462 fi
27463 rm -f conftest.o conftest.s
27464 fi
27465 fi
27466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_machine_machinemode" >&5
27467 $as_echo "$gcc_cv_as_s390_machine_machinemode" >&6; }
27468 if test $gcc_cv_as_s390_machine_machinemode = yes; then
27469
27470 $as_echo "#define HAVE_AS_MACHINE_MACHINEMODE 1" >>confdefs.h
27471
27472 fi
27473
27474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for architecture modifiers support" >&5
27475 $as_echo_n "checking assembler for architecture modifiers support... " >&6; }
27476 if test "${gcc_cv_as_s390_architecture_modifiers+set}" = set; then :
27477 $as_echo_n "(cached) " >&6
27478 else
27479 gcc_cv_as_s390_architecture_modifiers=no
27480 if test $in_tree_gas = yes; then
27481 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 26 \) \* 1000 + 0`
27482 then gcc_cv_as_s390_architecture_modifiers=yes
27483 fi
27484 elif test x$gcc_cv_as != x; then
27485 $as_echo ' .machine z13+vx ' > conftest.s
27486 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27487 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27488 (eval $ac_try) 2>&5
27489 ac_status=$?
27490 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27491 test $ac_status = 0; }; }
27492 then
27493 gcc_cv_as_s390_architecture_modifiers=yes
27494 else
27495 echo "configure: failed program was" >&5
27496 cat conftest.s >&5
27497 fi
27498 rm -f conftest.o conftest.s
27499 fi
27500 fi
27501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_architecture_modifiers" >&5
27502 $as_echo "$gcc_cv_as_s390_architecture_modifiers" >&6; }
27503 if test $gcc_cv_as_s390_architecture_modifiers = yes; then
27504
27505 $as_echo "#define HAVE_AS_ARCHITECTURE_MODIFIERS 1" >>confdefs.h
27506
27507 fi
27508
27509 ;;
27510 esac
27511
27512 # Mips and HP-UX need the GNU assembler.
27513 # Linux on IA64 might be able to use the Intel assembler.
27514
27515 case "$target" in
27516 mips*-*-* | *-*-hpux* )
27517 if test x$gas_flag = xyes \
27518 || test x"$host" != x"$build" \
27519 || test ! -x "$gcc_cv_as" \
27520 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
27521 :
27522 else
27523 echo "*** This configuration requires the GNU assembler" >&2
27524 exit 1
27525 fi
27526 ;;
27527 esac
27528
27529 # ??? Not all targets support dwarf2 debug_line, even within a version
27530 # of gas. Moreover, we need to emit a valid instruction to trigger any
27531 # info to the output file. So, as supported targets are added to gas 2.11,
27532 # add some instruction here to (also) show we expect this might work.
27533 # ??? Once 2.11 is released, probably need to add first known working
27534 # version to the per-target configury.
27535 case "$cpu_type" in
27536 aarch64 | alpha | arm | avr | bfin | cris | i386 | m32c | m68k | microblaze \
27537 | mips | nios2 | pa | riscv | rs6000 | score | sparc | spu | tilegx \
27538 | tilepro | visium | xstormy16 | xtensa)
27539 insn="nop"
27540 ;;
27541 ia64 | s390)
27542 insn="nop 0"
27543 ;;
27544 mmix)
27545 insn="swym 0"
27546 ;;
27547 esac
27548 if test x"$insn" != x; then
27549 conftest_s="\
27550 .file 1 \"conftest.s\"
27551 .loc 1 3 0
27552 $insn"
27553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
27554 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
27555 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
27556 $as_echo_n "(cached) " >&6
27557 else
27558 gcc_cv_as_dwarf2_debug_line=no
27559 if test $in_tree_gas = yes; then
27560 if test $in_tree_gas_is_elf = yes \
27561 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
27562 then gcc_cv_as_dwarf2_debug_line=yes
27563 fi
27564 elif test x$gcc_cv_as != x; then
27565 $as_echo "$conftest_s" > conftest.s
27566 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27567 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27568 (eval $ac_try) 2>&5
27569 ac_status=$?
27570 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27571 test $ac_status = 0; }; }
27572 then
27573 if test x$gcc_cv_objdump != x \
27574 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
27575 | grep debug_line > /dev/null 2>&1; then
27576 gcc_cv_as_dwarf2_debug_line=yes
27577 fi
27578 else
27579 echo "configure: failed program was" >&5
27580 cat conftest.s >&5
27581 fi
27582 rm -f conftest.o conftest.s
27583 fi
27584 fi
27585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
27586 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
27587
27588
27589
27590 # The .debug_line file table must be in the exact order that
27591 # we specified the files, since these indices are also used
27592 # by DW_AT_decl_file. Approximate this test by testing if
27593 # the assembler bitches if the same index is assigned twice.
27594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
27595 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
27596 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
27597 $as_echo_n "(cached) " >&6
27598 else
27599 gcc_cv_as_dwarf2_file_buggy=no
27600 if test x$gcc_cv_as != x; then
27601 $as_echo ' .file 1 "foo.s"
27602 .file 1 "bar.s"' > conftest.s
27603 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27604 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27605 (eval $ac_try) 2>&5
27606 ac_status=$?
27607 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27608 test $ac_status = 0; }; }
27609 then
27610 gcc_cv_as_dwarf2_file_buggy=yes
27611 else
27612 echo "configure: failed program was" >&5
27613 cat conftest.s >&5
27614 fi
27615 rm -f conftest.o conftest.s
27616 fi
27617 fi
27618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
27619 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
27620
27621
27622
27623 if test $gcc_cv_as_dwarf2_debug_line = yes \
27624 && test $gcc_cv_as_dwarf2_file_buggy = no; then
27625
27626 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
27627
27628 fi
27629
27630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
27631 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
27632 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
27633 $as_echo_n "(cached) " >&6
27634 else
27635 gcc_cv_as_gdwarf2_flag=no
27636 if test $in_tree_gas = yes; then
27637 if test $in_tree_gas_is_elf = yes \
27638 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
27639 then gcc_cv_as_gdwarf2_flag=yes
27640 fi
27641 elif test x$gcc_cv_as != x; then
27642 $as_echo "$insn" > conftest.s
27643 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
27644 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27645 (eval $ac_try) 2>&5
27646 ac_status=$?
27647 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27648 test $ac_status = 0; }; }
27649 then
27650 gcc_cv_as_gdwarf2_flag=yes
27651 else
27652 echo "configure: failed program was" >&5
27653 cat conftest.s >&5
27654 fi
27655 rm -f conftest.o conftest.s
27656 fi
27657 fi
27658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
27659 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
27660 if test $gcc_cv_as_gdwarf2_flag = yes; then
27661
27662 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
27663
27664 fi
27665
27666
27667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
27668 $as_echo_n "checking assembler for --gstabs option... " >&6; }
27669 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
27670 $as_echo_n "(cached) " >&6
27671 else
27672 gcc_cv_as_gstabs_flag=no
27673 if test $in_tree_gas = yes; then
27674 if test $in_tree_gas_is_elf = yes \
27675 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
27676 then gcc_cv_as_gstabs_flag=yes
27677 fi
27678 elif test x$gcc_cv_as != x; then
27679 $as_echo "$insn" > conftest.s
27680 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
27681 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27682 (eval $ac_try) 2>&5
27683 ac_status=$?
27684 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27685 test $ac_status = 0; }; }
27686 then
27687 gcc_cv_as_gstabs_flag=yes
27688 else
27689 echo "configure: failed program was" >&5
27690 cat conftest.s >&5
27691 fi
27692 rm -f conftest.o conftest.s
27693 fi
27694 fi
27695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
27696 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
27697 if test $gcc_cv_as_gstabs_flag = yes; then
27698
27699 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
27700
27701 fi
27702
27703
27704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
27705 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
27706 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
27707 $as_echo_n "(cached) " >&6
27708 else
27709 gcc_cv_as_debug_prefix_map_flag=no
27710 if test $in_tree_gas = yes; then
27711 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27712 then gcc_cv_as_debug_prefix_map_flag=yes
27713 fi
27714 elif test x$gcc_cv_as != x; then
27715 $as_echo "$insn" > conftest.s
27716 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
27717 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27718 (eval $ac_try) 2>&5
27719 ac_status=$?
27720 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27721 test $ac_status = 0; }; }
27722 then
27723 gcc_cv_as_debug_prefix_map_flag=yes
27724 else
27725 echo "configure: failed program was" >&5
27726 cat conftest.s >&5
27727 fi
27728 rm -f conftest.o conftest.s
27729 fi
27730 fi
27731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
27732 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
27733 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
27734
27735 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
27736
27737 fi
27738
27739 fi
27740
27741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compressed debug sections" >&5
27742 $as_echo_n "checking assembler for compressed debug sections... " >&6; }
27743 if test "${gcc_cv_as_compress_debug+set}" = set; then :
27744 $as_echo_n "(cached) " >&6
27745 else
27746 gcc_cv_as_compress_debug=no
27747 if test x$gcc_cv_as != x; then
27748 $as_echo '' > conftest.s
27749 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27750 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27751 (eval $ac_try) 2>&5
27752 ac_status=$?
27753 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27754 test $ac_status = 0; }; }
27755 then
27756 # gas compiled without zlib cannot compress debug sections and warns
27757 # about it, but still exits successfully. So check for this, too.
27758 if $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null
27759 then
27760 gcc_cv_as_compress_debug=0
27761 # Since binutils 2.26, gas supports --compress-debug-sections=type,
27762 # defaulting to the ELF gABI format.
27763 elif $gcc_cv_as --compress-debug-sections=zlib-gnu -o conftest.o conftest.s > /dev/null 2>&1
27764 then
27765 gcc_cv_as_compress_debug=2
27766 gcc_cv_as_compress_debug_option="--compress-debug-sections"
27767 gcc_cv_as_no_compress_debug_option="--nocompress-debug-sections"
27768 # Before binutils 2.26, gas only supported --compress-debug-options and
27769 # emitted the traditional GNU format.
27770 elif $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s > /dev/null 2>&1
27771 then
27772 gcc_cv_as_compress_debug=1
27773 gcc_cv_as_compress_debug_option="--compress-debug-sections"
27774 gcc_cv_as_no_compress_debug_option="--nocompress-debug-sections"
27775 else
27776 gcc_cv_as_compress_debug=0
27777 fi
27778 else
27779 echo "configure: failed program was" >&5
27780 cat conftest.s >&5
27781 fi
27782 rm -f conftest.o conftest.s
27783 fi
27784 fi
27785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_compress_debug" >&5
27786 $as_echo "$gcc_cv_as_compress_debug" >&6; }
27787
27788
27789
27790 cat >>confdefs.h <<_ACEOF
27791 #define HAVE_AS_COMPRESS_DEBUG $gcc_cv_as_compress_debug
27792 _ACEOF
27793
27794
27795 cat >>confdefs.h <<_ACEOF
27796 #define AS_COMPRESS_DEBUG_OPTION "$gcc_cv_as_compress_debug_option"
27797 _ACEOF
27798
27799
27800 cat >>confdefs.h <<_ACEOF
27801 #define AS_NO_COMPRESS_DEBUG_OPTION "$gcc_cv_as_no_compress_debug_option"
27802 _ACEOF
27803
27804
27805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
27806 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
27807 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
27808 $as_echo_n "(cached) " >&6
27809 else
27810 gcc_cv_as_lcomm_with_alignment=no
27811 if test x$gcc_cv_as != x; then
27812 $as_echo '.lcomm bar,4,16' > conftest.s
27813 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27814 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27815 (eval $ac_try) 2>&5
27816 ac_status=$?
27817 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27818 test $ac_status = 0; }; }
27819 then
27820 gcc_cv_as_lcomm_with_alignment=yes
27821 else
27822 echo "configure: failed program was" >&5
27823 cat conftest.s >&5
27824 fi
27825 rm -f conftest.o conftest.s
27826 fi
27827 fi
27828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
27829 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
27830 if test $gcc_cv_as_lcomm_with_alignment = yes; then
27831
27832 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
27833
27834 fi
27835
27836
27837 if test x$with_sysroot = x && test x$host = x$target \
27838 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
27839 && test "$prefix" != "NONE"; then
27840
27841 cat >>confdefs.h <<_ACEOF
27842 #define PREFIX_INCLUDE_DIR "$prefix/include"
27843 _ACEOF
27844
27845 fi
27846
27847 # Determine the version of glibc, if any, used on the target.
27848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target glibc version" >&5
27849 $as_echo_n "checking for target glibc version... " >&6; }
27850
27851 # Check whether --with-glibc-version was given.
27852 if test "${with_glibc_version+set}" = set; then :
27853 withval=$with_glibc_version;
27854 if echo "$with_glibc_version" | grep '^[0-9][0-9]*\.[0-9][0-9]*$'; then
27855 glibc_version_major=`echo "$with_glibc_version" | sed -e 's/\..*//'`
27856 glibc_version_minor=`echo "$with_glibc_version" | sed -e 's/.*\.//'`
27857 else
27858 as_fn_error "option --with-glibc-version requires a version number M.N" "$LINENO" 5
27859 fi
27860 else
27861
27862 glibc_version_major=0
27863 glibc_version_minor=0
27864 if test -f $target_header_dir/features.h \
27865 && glibc_version_major_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+[0-9]' $target_header_dir/features.h` \
27866 && glibc_version_minor_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+[0-9]' $target_header_dir/features.h`; then
27867 glibc_version_major=`echo "$glibc_version_major_define" | sed -e 's/.*__GLIBC__[ ]*//'`
27868 glibc_version_minor=`echo "$glibc_version_minor_define" | sed -e 's/.*__GLIBC_MINOR__[ ]*//'`
27869 fi
27870 fi
27871
27872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc_version_major.$glibc_version_minor" >&5
27873 $as_echo "$glibc_version_major.$glibc_version_minor" >&6; }
27874
27875 cat >>confdefs.h <<_ACEOF
27876 #define TARGET_GLIBC_MAJOR $glibc_version_major
27877 _ACEOF
27878
27879
27880 cat >>confdefs.h <<_ACEOF
27881 #define TARGET_GLIBC_MINOR $glibc_version_minor
27882 _ACEOF
27883
27884
27885 # Check whether --enable-gnu-unique-object was given.
27886 if test "${enable_gnu_unique_object+set}" = set; then :
27887 enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
27888 yes | no) ;;
27889 *) as_fn_error "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
27890 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
27891 esac
27892 else
27893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
27894 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
27895 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
27896 $as_echo_n "(cached) " >&6
27897 else
27898 gcc_cv_as_gnu_unique_object=no
27899 if test $in_tree_gas = yes; then
27900 if test $in_tree_gas_is_elf = yes \
27901 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
27902 then gcc_cv_as_gnu_unique_object=yes
27903 fi
27904 elif test x$gcc_cv_as != x; then
27905 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
27906 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27907 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27908 (eval $ac_try) 2>&5
27909 ac_status=$?
27910 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27911 test $ac_status = 0; }; }
27912 then
27913 gcc_cv_as_gnu_unique_object=yes
27914 else
27915 echo "configure: failed program was" >&5
27916 cat conftest.s >&5
27917 fi
27918 rm -f conftest.o conftest.s
27919 fi
27920 fi
27921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
27922 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
27923 if test $gcc_cv_as_gnu_unique_object = yes; then
27924 # We need to unquote above to to use the definition from config.gcc.
27925 # Also check for ld.so support, i.e. glibc 2.11 or higher.
27926
27927 if test $glibc_version_major -gt 2 \
27928 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 11 ); then :
27929 enable_gnu_unique_object=yes
27930 fi
27931
27932 fi
27933
27934 fi
27935
27936 if test x$enable_gnu_unique_object = xyes; then
27937
27938 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
27939
27940 fi
27941
27942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
27943 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
27944 if test "${gcc_cv_as_line_zero+set}" = set; then :
27945 $as_echo_n "(cached) " >&6
27946 else
27947 gcc_cv_as_line_zero=no
27948 if test $in_tree_gas = yes; then
27949 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
27950 then gcc_cv_as_line_zero=yes
27951 fi
27952 elif test "x$gcc_cv_as" != x; then
27953 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
27954 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
27955 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27956 (eval $ac_try) 2>&5
27957 ac_status=$?
27958 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27959 test $ac_status = 0; }; } &&
27960 test "x`cat conftest.out`" = x
27961 then
27962 gcc_cv_as_line_zero=yes
27963 else
27964 echo "configure: failed program was" >&5
27965 cat conftest.s >&5
27966 echo "configure: error output was" >&5
27967 cat conftest.out >&5
27968 fi
27969 rm -f conftest.o conftest.s conftest.out
27970 fi
27971 fi
27972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
27973 $as_echo "$gcc_cv_as_line_zero" >&6; }
27974 if test "x$gcc_cv_as_line_zero" = xyes; then
27975
27976 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
27977
27978 fi
27979
27980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for thin archives" >&5
27981 $as_echo_n "checking support for thin archives... " >&6; }
27982 thin_archive_support=no
27983 echo 'int main (void) { return 0; }' > conftest.c
27984 if ($AR --version | sed 1q | grep "GNU ar" \
27985 && $CC $CFLAGS -c conftest.c \
27986 && $AR rcT conftest.a conftest.o \
27987 && $CC $CFLAGS $LDFLAGS -o conftest conftest.a) >/dev/null 2>&1; then
27988 thin_archive_support=yes
27989 fi
27990 rm -f conftest.c conftest.o conftest.a conftest
27991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $thin_archive_support" >&5
27992 $as_echo "$thin_archive_support" >&6; }
27993
27994
27995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
27996 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
27997 gcc_cv_ld_eh_frame_hdr=no
27998 if test $in_tree_ld = yes ; then
27999 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 \
28000 && test $in_tree_ld_is_elf = yes; then
28001 gcc_cv_ld_eh_frame_hdr=yes
28002 fi
28003 elif test x$gcc_cv_ld != x; then
28004 if echo "$ld_ver" | grep GNU > /dev/null; then
28005 # Check if linker supports --eh-frame-hdr option
28006 if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
28007 gcc_cv_ld_eh_frame_hdr=yes
28008 fi
28009 else
28010 case "$target" in
28011 *-*-solaris2*)
28012 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
28013 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2251; then
28014 gcc_cv_ld_eh_frame_hdr=yes
28015 fi
28016 ;;
28017 esac
28018 fi
28019 fi
28020
28021 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
28022
28023 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
28024
28025 fi
28026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
28027 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
28028
28029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker CIEv3 in .eh_frame support" >&5
28030 $as_echo_n "checking linker CIEv3 in .eh_frame support... " >&6; }
28031 gcc_cv_ld_eh_frame_ciev3=no
28032 if test $in_tree_ld = yes ; then
28033 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 \
28034 && test $in_tree_ld_is_elf = yes; then
28035 gcc_cv_ld_eh_frame_ciev3=yes
28036 fi
28037 elif test x$gcc_cv_ld != x; then
28038 if echo "$ld_ver" | grep GNU > /dev/null; then
28039 gcc_cv_ld_eh_frame_ciev3=yes
28040 if test 0"$ld_date" -lt 20040513; then
28041 if test -n "$ld_date"; then
28042 # If there was date string, but was earlier than 2004-05-13, fail
28043 gcc_cv_ld_eh_frame_ciev3=no
28044 elif test "$ld_vers_major" -lt 2; then
28045 gcc_cv_ld_eh_frame_ciev3=no
28046 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
28047 gcc_cv_ld_eh_frame_ciev3=no
28048 fi
28049 fi
28050 else
28051 case "$target" in
28052 *-*-solaris2*)
28053 # Sun ld added support for CIE v3 in .eh_frame in Solaris 11.1.
28054 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2324; then
28055 gcc_cv_ld_eh_frame_ciev3=yes
28056 fi
28057 ;;
28058 esac
28059 fi
28060 fi
28061
28062 cat >>confdefs.h <<_ACEOF
28063 #define HAVE_LD_EH_FRAME_CIEV3 `if test x"$gcc_cv_ld_eh_frame_ciev3" = xyes; then echo 1; else echo 0; fi`
28064 _ACEOF
28065
28066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_ciev3" >&5
28067 $as_echo "$gcc_cv_ld_eh_frame_ciev3" >&6; }
28068
28069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
28070 $as_echo_n "checking linker position independent executable support... " >&6; }
28071 gcc_cv_ld_pie=no
28072 if test $in_tree_ld = yes ; then
28073 case "$target" in
28074 # Full PIE support on Solaris was only introduced in gld 2.26.
28075 *-*-solaris2*) gcc_gld_pie_min_version=26 ;;
28076 *) gcc_gld_pie_min_version=15 ;;
28077 esac
28078 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 \
28079 && test $in_tree_ld_is_elf = yes; then
28080 gcc_cv_ld_pie=yes
28081 fi
28082 elif test x$gcc_cv_ld != x; then
28083 # Check if linker supports -pie option
28084 if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
28085 gcc_cv_ld_pie=yes
28086 case "$target" in
28087 *-*-solaris2*)
28088 if echo "$ld_ver" | grep GNU > /dev/null \
28089 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
28090 gcc_cv_ld_pie=no
28091 fi
28092 ;;
28093 esac
28094 else
28095 case "$target" in
28096 *-*-solaris2.1[1-9]*)
28097 # Solaris 11.x and Solaris 12 added PIE support.
28098 if $gcc_cv_ld -z help 2>&1 | grep -- type.*pie > /dev/null; then
28099 gcc_cv_ld_pie=yes
28100 fi
28101 ;;
28102 esac
28103 fi
28104 fi
28105 if test x"$gcc_cv_ld_pie" = xyes; then
28106
28107 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
28108
28109 fi
28110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
28111 $as_echo "$gcc_cv_ld_pie" >&6; }
28112
28113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PIE support with copy reloc" >&5
28114 $as_echo_n "checking linker PIE support with copy reloc... " >&6; }
28115 gcc_cv_ld_pie_copyreloc=no
28116 if test $gcc_cv_ld_pie = yes ; then
28117 if test $in_tree_ld = yes ; then
28118 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
28119 gcc_cv_ld_pie_copyreloc=yes
28120 fi
28121 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
28122 # Check if linker supports -pie option with copy reloc
28123 case "$target" in
28124 i?86-*-linux* | x86_64-*-linux*)
28125 cat > conftest1.s <<EOF
28126 .globl a_glob
28127 .data
28128 .type a_glob, @object
28129 .size a_glob, 4
28130 a_glob:
28131 .long 2
28132 EOF
28133 cat > conftest2.s <<EOF
28134 .text
28135 .globl main
28136 .type main, @function
28137 main:
28138 movl %eax, a_glob(%rip)
28139 .size main, .-main
28140 .globl ptr
28141 .section .data.rel,"aw",@progbits
28142 .type ptr, @object
28143 ptr:
28144 .quad a_glob
28145 EOF
28146 if $gcc_cv_as --64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
28147 && $gcc_cv_ld -shared -melf_x86_64 -o conftest1.so conftest1.o > /dev/null 2>&1 \
28148 && $gcc_cv_as --64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
28149 && $gcc_cv_ld -pie -melf_x86_64 -o conftest conftest2.o conftest1.so > /dev/null 2>&1; then
28150 gcc_cv_ld_pie_copyreloc=yes
28151 fi
28152 rm -f conftest conftest1.so conftest1.o conftest2.o conftest1.s conftest2.s
28153 ;;
28154 esac
28155 fi
28156 fi
28157
28158 cat >>confdefs.h <<_ACEOF
28159 #define HAVE_LD_PIE_COPYRELOC `if test x"$gcc_cv_ld_pie_copyreloc" = xyes; then echo 1; else echo 0; fi`
28160 _ACEOF
28161
28162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie_copyreloc" >&5
28163 $as_echo "$gcc_cv_ld_pie_copyreloc" >&6; }
28164
28165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
28166 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
28167 gcc_cv_ld_eh_gc_sections=no
28168 if test $in_tree_ld = yes ; then
28169 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 \
28170 && test $in_tree_ld_is_elf = yes; then
28171 gcc_cv_ld_eh_gc_sections=yes
28172 fi
28173 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
28174 cat > conftest.s <<EOF
28175 .section .text
28176 .globl _start
28177 .type _start, @function
28178 _start:
28179 .long foo
28180 .size _start, .-_start
28181 .section .text.foo,"ax",@progbits
28182 .type foo, @function
28183 foo:
28184 .long 0
28185 .size foo, .-foo
28186 .section .gcc_except_table.foo,"a",@progbits
28187 .L0:
28188 .long 0
28189 .section .eh_frame,"a",@progbits
28190 .long .L0
28191 EOF
28192 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
28193 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
28194 | grep "gc-sections option ignored" > /dev/null; then
28195 gcc_cv_ld_eh_gc_sections=no
28196 elif $gcc_cv_objdump -h conftest 2> /dev/null \
28197 | grep gcc_except_table > /dev/null; then
28198 gcc_cv_ld_eh_gc_sections=yes
28199 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
28200 if test x$gcc_cv_as_comdat_group != xyes; then
28201 gcc_cv_ld_eh_gc_sections=no
28202 cat > conftest.s <<EOF
28203 .section .text
28204 .globl _start
28205 .type _start, @function
28206 _start:
28207 .long foo
28208 .size _start, .-_start
28209 .section .gnu.linkonce.t.foo,"ax",@progbits
28210 .type foo, @function
28211 foo:
28212 .long 0
28213 .size foo, .-foo
28214 .section .gcc_except_table.foo,"a",@progbits
28215 .L0:
28216 .long 0
28217 .section .eh_frame,"a",@progbits
28218 .long .L0
28219 EOF
28220 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
28221 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
28222 | grep "gc-sections option ignored" > /dev/null; then
28223 gcc_cv_ld_eh_gc_sections=no
28224 elif $gcc_cv_objdump -h conftest 2> /dev/null \
28225 | grep gcc_except_table > /dev/null; then
28226 gcc_cv_ld_eh_gc_sections=yes
28227 fi
28228 fi
28229 fi
28230 fi
28231 fi
28232 rm -f conftest.s conftest.o conftest
28233 fi
28234 case "$target" in
28235 hppa*-*-linux*)
28236 # ??? This apparently exposes a binutils bug with PC-relative relocations.
28237 gcc_cv_ld_eh_gc_sections=no
28238 ;;
28239 esac
28240 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
28241
28242 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
28243
28244 fi
28245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
28246 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
28247
28248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
28249 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
28250 gcc_cv_ld_eh_gc_sections_bug=no
28251 if test $in_tree_ld = yes ; then
28252 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 \
28253 && test $in_tree_ld_is_elf = yes; then
28254 gcc_cv_ld_eh_gc_sections_bug=yes
28255 fi
28256 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
28257 gcc_cv_ld_eh_gc_sections_bug=yes
28258 cat > conftest.s <<EOF
28259 .section .text
28260 .globl _start
28261 .type _start, @function
28262 _start:
28263 .long foo
28264 .size _start, .-_start
28265 .section .text.startup.foo,"ax",@progbits
28266 .type foo, @function
28267 foo:
28268 .long 0
28269 .size foo, .-foo
28270 .section .gcc_except_table.foo,"a",@progbits
28271 .L0:
28272 .long 0
28273 .section .eh_frame,"a",@progbits
28274 .long .L0
28275 EOF
28276 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
28277 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
28278 | grep "gc-sections option ignored" > /dev/null; then
28279 :
28280 elif $gcc_cv_objdump -h conftest 2> /dev/null \
28281 | grep gcc_except_table > /dev/null; then
28282 gcc_cv_ld_eh_gc_sections_bug=no
28283 fi
28284 fi
28285 rm -f conftest.s conftest.o conftest
28286 fi
28287 if test x$gcc_cv_ld_eh_gc_sections_bug = xyes; then
28288
28289 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
28290
28291 fi
28292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
28293 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
28294
28295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for compressed debug sections" >&5
28296 $as_echo_n "checking linker for compressed debug sections... " >&6; }
28297 # gold/gld support compressed debug sections since binutils 2.19/2.21
28298 # In binutils 2.26, gld gained support for the ELF gABI format.
28299 if test $in_tree_ld = yes ; then
28300 gcc_cv_ld_compress_debug=0
28301 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 \
28302 && test $in_tree_ld_is_elf = yes && test $ld_is_gold = yes; then
28303 gcc_cv_ld_compress_debug=2
28304 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
28305 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 \
28306 && test $in_tree_ld_is_elf = yes && test $ld_is_gold = no; then
28307 gcc_cv_ld_compress_debug=3
28308 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
28309 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 \
28310 && test $in_tree_ld_is_elf = yes; then
28311 gcc_cv_ld_compress_debug=1
28312 fi
28313 elif echo "$ld_ver" | grep GNU > /dev/null; then
28314 if test "$ld_vers_major" -lt 2 \
28315 || test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 21; then
28316 gcc_cv_ld_compress_debug=0
28317 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
28318 gcc_cv_ld_compress_debug=1
28319 else
28320 gcc_cv_ld_compress_debug=3
28321 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
28322 fi
28323 if test $ld_is_gold = yes; then
28324 gcc_cv_ld_compress_debug=2
28325 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
28326 fi
28327 else
28328 case "${target}" in
28329 *-*-solaris2*)
28330 # Introduced in Solaris 11.2.
28331 if $gcc_cv_ld --help 2>&1 | grep -- '-z compress-sections' > /dev/null; then
28332 gcc_cv_ld_compress_debug=3
28333 gcc_cv_ld_compress_debug_option="-z compress-sections"
28334 else
28335 gcc_cv_ld_compress_debug=0
28336 fi
28337 ;;
28338 *)
28339 # Assume linkers other than GNU ld don't support compessed debug
28340 # sections.
28341 gcc_cv_ld_compress_debug=0
28342 ;;
28343 esac
28344 fi
28345
28346 cat >>confdefs.h <<_ACEOF
28347 #define HAVE_LD_COMPRESS_DEBUG $gcc_cv_ld_compress_debug
28348 _ACEOF
28349
28350
28351 cat >>confdefs.h <<_ACEOF
28352 #define LD_COMPRESS_DEBUG_OPTION "$gcc_cv_ld_compress_debug_option"
28353 _ACEOF
28354
28355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_compress_debug" >&5
28356 $as_echo "$gcc_cv_ld_compress_debug" >&6; }
28357
28358 if test x"$ld64_flag" = x"yes"; then
28359
28360 # Set defaults for possibly untestable items.
28361 gcc_cv_ld64_export_dynamic=0
28362
28363 if test "$build" = "$host"; then
28364 darwin_try_test=1
28365 else
28366 darwin_try_test=0
28367 fi
28368
28369 # On Darwin, because of FAT library support, it is often possible to execute
28370 # exes from compatible archs even when the host differs from the build system.
28371 case "$build","$host" in
28372 x86_64-*-darwin*,i?86-*-darwin* | powerpc64*-*-darwin*,powerpc*-*-darwin*)
28373 darwin_try_test=1;;
28374 *) ;;
28375 esac
28376
28377 # If the configurer specified a minimum ld64 version to be supported, then use
28378 # that to determine feature support.
28379 if test x"${gcc_cv_ld64_version}" != x; then
28380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ld64 specified version" >&5
28381 $as_echo_n "checking ld64 specified version... " >&6; }
28382 gcc_cv_ld64_major=`echo "$gcc_cv_ld64_version" | sed -e 's/\..*//'`
28383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_major" >&5
28384 $as_echo "$gcc_cv_ld64_major" >&6; }
28385 if test "$gcc_cv_ld64_major" -ge 236; then
28386 gcc_cv_ld64_export_dynamic=1
28387 fi
28388 elif test -x "$gcc_cv_ld" -a "$darwin_try_test" -eq 1; then
28389 # If the version was not specified, try to find it.
28390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker version" >&5
28391 $as_echo_n "checking linker version... " >&6; }
28392 if test x"${gcc_cv_ld64_version}" = x; then
28393 gcc_cv_ld64_version=`$gcc_cv_ld -v 2>&1 | grep ld64 | sed s/.*ld64-// | awk '{print $1}'`
28394 fi
28395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_version" >&5
28396 $as_echo "$gcc_cv_ld64_version" >&6; }
28397
28398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for -export_dynamic support" >&5
28399 $as_echo_n "checking linker for -export_dynamic support... " >&6; }
28400 gcc_cv_ld64_export_dynamic=1
28401 if $gcc_cv_ld -export_dynamic < /dev/null 2>&1 | grep 'unknown option' > /dev/null; then
28402 gcc_cv_ld64_export_dynamic=0
28403 fi
28404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_export_dynamic" >&5
28405 $as_echo "$gcc_cv_ld64_export_dynamic" >&6; }
28406 fi
28407
28408 if test x"${gcc_cv_ld64_version}" != x; then
28409
28410 cat >>confdefs.h <<_ACEOF
28411 #define LD64_VERSION "${gcc_cv_ld64_version}"
28412 _ACEOF
28413
28414 fi
28415
28416
28417 cat >>confdefs.h <<_ACEOF
28418 #define LD64_HAS_EXPORT_DYNAMIC $gcc_cv_ld64_export_dynamic
28419 _ACEOF
28420
28421 fi
28422
28423 # --------
28424 # UNSORTED
28425 # --------
28426
28427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
28428 $as_echo_n "checking linker --as-needed support... " >&6; }
28429 if test "${gcc_cv_ld_as_needed+set}" = set; then :
28430 $as_echo_n "(cached) " >&6
28431 else
28432 gcc_cv_ld_as_needed=no
28433 gcc_cv_ld_as_needed_option='--as-needed'
28434 gcc_cv_ld_no_as_needed_option='--no-as-needed'
28435 if test $in_tree_ld = yes ; then
28436 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 \
28437 && test $in_tree_ld_is_elf = yes; then
28438 gcc_cv_ld_as_needed=yes
28439 fi
28440 elif test x$gcc_cv_ld != x; then
28441 # Check if linker supports --as-needed and --no-as-needed options
28442 if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
28443 gcc_cv_ld_as_needed=yes
28444 else
28445 case "$target" in
28446 # Solaris 2 ld always supports -z ignore/-z record.
28447 *-*-solaris2*)
28448 gcc_cv_ld_as_needed=yes
28449 gcc_cv_ld_as_needed_option="-z ignore"
28450 gcc_cv_ld_no_as_needed_option="-z record"
28451 ;;
28452 esac
28453 fi
28454 fi
28455 # --as-needed/-z ignore can only be used if libgcc_s.so.1 uses
28456 # dl_iterate_phdr, i.e. since Solaris 11.
28457 case "$target" in
28458 *-*-solaris2.1[1-9]*)
28459 case "$target" in
28460 i?86-*-* | x86_64-*-*)
28461 if echo "$ld_ver" | grep GNU > /dev/null; then
28462 # Doesn't work with gld on Solaris/x86 due to PR ld/12320.
28463 gcc_cv_ld_as_needed=no
28464 fi
28465 ;;
28466 esac
28467 ;;
28468 *-*-solaris2*)
28469 gcc_cv_ld_as_needed=no
28470 ;;
28471 esac
28472
28473 fi
28474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
28475 $as_echo "$gcc_cv_ld_as_needed" >&6; }
28476 if test x"$gcc_cv_ld_as_needed" = xyes; then
28477
28478 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
28479
28480
28481 cat >>confdefs.h <<_ACEOF
28482 #define LD_AS_NEEDED_OPTION "$gcc_cv_ld_as_needed_option"
28483 _ACEOF
28484
28485
28486 cat >>confdefs.h <<_ACEOF
28487 #define LD_NO_AS_NEEDED_OPTION "$gcc_cv_ld_no_as_needed_option"
28488 _ACEOF
28489
28490 fi
28491
28492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker mapfile support for clearing hardware capabilities" >&5
28493 $as_echo_n "checking linker mapfile support for clearing hardware capabilities... " >&6; }
28494 saved_LDFLAGS="$LDFLAGS"
28495 for clearcap_map in sol2-clearcapv2.map sol2-clearcap.map; do
28496 LDFLAGS="$saved_LDFLAGS -Wl,-M,${srcdir}/config/$clearcap_map"
28497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28498 /* end confdefs.h. */
28499 int main(void) {return 0;}
28500 _ACEOF
28501 if ac_fn_cxx_try_link "$LINENO"; then :
28502 gcc_cv_ld_clearcap=yes; break
28503 else
28504 gcc_cv_ld_clearcap=no
28505 fi
28506 rm -f core conftest.err conftest.$ac_objext \
28507 conftest$ac_exeext conftest.$ac_ext
28508 done
28509 LDFLAGS="$saved_LDFLAGS"
28510 if test "x$gcc_cv_ld_clearcap" = xyes; then
28511
28512 $as_echo "#define HAVE_LD_CLEARCAP 1" >>confdefs.h
28513
28514 ac_config_links="$ac_config_links clearcap.map:${srcdir}/config/$clearcap_map"
28515
28516 fi
28517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_clearcap" >&5
28518 $as_echo "$gcc_cv_ld_clearcap" >&6; }
28519
28520 case "$target" in
28521 powerpc*-*-*)
28522 case "$target" in
28523 *le-*-linux*)
28524 emul_name="-melf32lppc"
28525 ;;
28526 *)
28527 emul_name="-melf32ppc"
28528 ;;
28529 esac
28530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker .gnu.attributes long double support" >&5
28531 $as_echo_n "checking linker .gnu.attributes long double support... " >&6; }
28532 if test "${gcc_cv_ld_ppc_attr+set}" = set; then :
28533 $as_echo_n "(cached) " >&6
28534 else
28535 gcc_cv_ld_ppc_attr=no
28536 if test x"$ld_is_gold" = xyes; then
28537 gcc_cv_ld_ppc_attr=yes
28538 elif test $in_tree_ld = yes ; then
28539 if test "$gcc_cv_gld_major_version" -eq 2 \
28540 -a "$gcc_cv_gld_minor_version" -ge 28 \
28541 -o "$gcc_cv_gld_major_version" -gt 2; then
28542 gcc_cv_ld_ppc_attr=yes
28543 fi
28544 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
28545 # check that merging the long double .gnu_attribute doesn't warn
28546 cat > conftest1.s <<EOF
28547 .gnu_attribute 4,1
28548 EOF
28549 cat > conftest2.s <<EOF
28550 .gnu_attribute 4,9
28551 EOF
28552 if $gcc_cv_as -a32 -o conftest1.o conftest1.s > /dev/null 2>&1 \
28553 && $gcc_cv_as -a32 -o conftest2.o conftest2.s > /dev/null 2>&1 \
28554 && $gcc_cv_ld $emul_name -r -o conftest.o conftest1.o conftest2.o > /dev/null 2> conftest.err \
28555 && test ! -s conftest.err; then
28556 gcc_cv_ld_ppc_attr=yes
28557 fi
28558 rm -f conftest.err conftest.o conftest1.o conftest2.o conftest1.s conftest2.s
28559 fi
28560
28561 fi
28562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ppc_attr" >&5
28563 $as_echo "$gcc_cv_ld_ppc_attr" >&6; }
28564 if test x$gcc_cv_ld_ppc_attr = xyes; then
28565
28566 $as_echo "#define HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE 1" >>confdefs.h
28567
28568 fi
28569 ;;
28570 esac
28571
28572 case "$target:$tm_file" in
28573 powerpc64-*-freebsd* | powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
28574 case "$target" in
28575 *le-*-linux*)
28576 emul_name="-melf64lppc"
28577 ;;
28578 *-*-linux*)
28579 emul_name="-melf64ppc"
28580 ;;
28581 *-*-freebsd*)
28582 emul_name="-melf64ppc_fbsd"
28583 ;;
28584 esac
28585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
28586 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
28587 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
28588 $as_echo_n "(cached) " >&6
28589 else
28590 gcc_cv_ld_no_dot_syms=no
28591 if test x"$ld_is_gold" = xyes; then
28592 gcc_cv_ld_no_dot_syms=yes
28593 elif test $in_tree_ld = yes ; then
28594 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
28595 gcc_cv_ld_no_dot_syms=yes
28596 fi
28597 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
28598 cat > conftest1.s <<EOF
28599 .text
28600 bl .foo
28601 EOF
28602 cat > conftest2.s <<EOF
28603 .section ".opd","aw"
28604 .align 3
28605 .globl foo
28606 .type foo,@function
28607 foo:
28608 .quad .LEfoo,.TOC.@tocbase,0
28609 .text
28610 .LEfoo:
28611 blr
28612 .size foo,.-.LEfoo
28613 EOF
28614 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
28615 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
28616 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
28617 gcc_cv_ld_no_dot_syms=yes
28618 fi
28619 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
28620 fi
28621
28622 fi
28623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
28624 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
28625 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
28626
28627 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
28628
28629 fi
28630
28631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
28632 $as_echo_n "checking linker large toc support... " >&6; }
28633 if test "${gcc_cv_ld_large_toc+set}" = set; then :
28634 $as_echo_n "(cached) " >&6
28635 else
28636 gcc_cv_ld_large_toc=no
28637 if test x"$ld_is_gold" = xyes; then
28638 gcc_cv_ld_large_toc=yes
28639 elif test $in_tree_ld = yes ; then
28640 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
28641 gcc_cv_ld_large_toc=yes
28642 fi
28643 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
28644 cat > conftest.s <<EOF
28645 .section ".tbss","awT",@nobits
28646 .align 3
28647 ie0: .space 8
28648 .global _start
28649 .text
28650 _start:
28651 addis 9,13,ie0@got@tprel@ha
28652 ld 9,ie0@got@tprel@l(9)
28653 EOF
28654 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
28655 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
28656 gcc_cv_ld_large_toc=yes
28657 fi
28658 rm -f conftest conftest.o conftest.s
28659 fi
28660
28661 fi
28662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
28663 $as_echo "$gcc_cv_ld_large_toc" >&6; }
28664 if test x"$gcc_cv_ld_large_toc" = xyes; then
28665
28666 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
28667
28668 fi
28669
28670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker toc pointer alignment" >&5
28671 $as_echo_n "checking linker toc pointer alignment... " >&6; }
28672 if test "${gcc_cv_ld_toc_align+set}" = set; then :
28673 $as_echo_n "(cached) " >&6
28674 else
28675 if test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_nm != x; then
28676 cat > conftest.s <<EOF
28677 .global _start
28678 .text
28679 _start:
28680 addis 9,2,x@got@ha
28681 .section .data.rel.ro,"aw",@progbits
28682 .p2align 16
28683 .space 32768
28684 x: .quad .TOC.
28685 EOF
28686 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
28687 && $gcc_cv_ld $emul_name -z norelro -o conftest conftest.o > /dev/null 2>&1; then
28688 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)) }'`
28689 fi
28690 rm -f conftest conftest.o conftest.s
28691 fi
28692
28693 fi
28694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_toc_align" >&5
28695 $as_echo "$gcc_cv_ld_toc_align" >&6; }
28696 if test -n "$gcc_cv_ld_toc_align" && test $gcc_cv_ld_toc_align -gt 8; then
28697
28698 cat >>confdefs.h <<_ACEOF
28699 #define POWERPC64_TOC_POINTER_ALIGNMENT $gcc_cv_ld_toc_align
28700 _ACEOF
28701
28702 fi
28703 ;;
28704 esac
28705
28706 case "$target" in
28707 *-*-aix*)
28708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
28709 $as_echo_n "checking linker large toc support... " >&6; }
28710 if test "${gcc_cv_ld_large_toc+set}" = set; then :
28711 $as_echo_n "(cached) " >&6
28712 else
28713 gcc_cv_ld_large_toc=no
28714 if test x$gcc_cv_as != x ; then
28715 cat > conftest.s <<EOF
28716 .toc
28717 LC..1:
28718 .tc a[TC],a[RW]
28719 .extern a[RW]
28720 .csect .text[PR]
28721 .largetoctest:
28722 addis 9,LC..1@u(2)
28723 ld 3,LC..1@l(9)
28724 EOF
28725 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1; then
28726 gcc_cv_ld_large_toc=yes
28727 fi
28728 rm -f conftest conftest.o conftest.s
28729 fi
28730
28731 fi
28732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
28733 $as_echo "$gcc_cv_ld_large_toc" >&6; }
28734 if test x"$gcc_cv_ld_large_toc" = xyes; then
28735
28736 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
28737
28738 fi
28739 ;;
28740 esac
28741
28742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
28743 $as_echo_n "checking linker --build-id support... " >&6; }
28744 if test "${gcc_cv_ld_buildid+set}" = set; then :
28745 $as_echo_n "(cached) " >&6
28746 else
28747 gcc_cv_ld_buildid=no
28748 if test $in_tree_ld = yes ; then
28749 if test "$gcc_cv_gld_major_version" -eq 2 -a \
28750 "$gcc_cv_gld_minor_version" -ge 18 -o \
28751 "$gcc_cv_gld_major_version" -gt 2 \
28752 && test $in_tree_ld_is_elf = yes; then
28753 gcc_cv_ld_buildid=yes
28754 fi
28755 elif test x$gcc_cv_ld != x; then
28756 if $gcc_cv_ld --help 2>/dev/null | grep build-id > /dev/null; then
28757 gcc_cv_ld_buildid=yes
28758 fi
28759 fi
28760 fi
28761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
28762 $as_echo "$gcc_cv_ld_buildid" >&6; }
28763 if test x"$gcc_cv_ld_buildid" = xyes; then
28764
28765 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
28766
28767 fi
28768
28769 # Check whether --enable-linker-build-id was given.
28770 if test "${enable_linker_build_id+set}" = set; then :
28771 enableval=$enable_linker_build_id;
28772 else
28773 enable_linker_build_id=no
28774 fi
28775
28776
28777 if test x"$enable_linker_build_id" = xyes; then
28778 if test x"$gcc_cv_ld_buildid" = xyes; then
28779
28780 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
28781
28782 else
28783 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
28784 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
28785 fi
28786 fi
28787
28788 # In binutils 2.21, GNU ld gained support for new emulations fully
28789 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
28790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
28791 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
28792 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
28793 $as_echo_n "(cached) " >&6
28794 else
28795 gcc_cv_ld_sol2_emulation=no
28796 if test $in_tree_ld = yes ; then
28797 if test "$gcc_cv_gld_major_version" -eq 2 -a \
28798 "$gcc_cv_gld_minor_version" -ge 21 -o \
28799 "$gcc_cv_gld_major_version" -gt 2 \
28800 && test $in_tree_ld_is_elf = yes; then
28801 gcc_cv_ld_sol2_emulation=yes
28802 fi
28803 elif test x$gcc_cv_ld != x; then
28804 if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
28805 grep _sol2 > /dev/null; then
28806 gcc_cv_ld_sol2_emulation=yes
28807 fi
28808 fi
28809 fi
28810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
28811 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
28812 if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
28813
28814 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
28815
28816 fi
28817
28818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
28819 $as_echo_n "checking linker --sysroot support... " >&6; }
28820 if test "${gcc_cv_ld_sysroot+set}" = set; then :
28821 $as_echo_n "(cached) " >&6
28822 else
28823 gcc_cv_ld_sysroot=no
28824 if test $in_tree_ld = yes ; then
28825 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
28826 gcc_cv_ld_sysroot=yes
28827 fi
28828 elif test x$gcc_cv_ld != x; then
28829 if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
28830 gcc_cv_ld_sysroot=yes
28831 fi
28832 fi
28833 fi
28834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
28835 $as_echo "$gcc_cv_ld_sysroot" >&6; }
28836 if test x"$gcc_cv_ld_sysroot" = xyes; then
28837
28838 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
28839
28840 fi
28841
28842 case $target in
28843 *-*-solaris2*)
28844 # Check for system-provided CRTs on Solaris 11.x and Solaris 12.
28845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking system-provided CRTs on Solaris" >&5
28846 $as_echo_n "checking system-provided CRTs on Solaris... " >&6; }
28847 if test "${gcc_cv_solaris_crts+set}" = set; then :
28848 $as_echo_n "(cached) " >&6
28849 else
28850 gcc_cv_solaris_crts=no
28851 if test x$host != x$target; then
28852 if test "x$with_sysroot" = xyes; then
28853 target_sysroot="${test_exec_prefix}/${target_noncanonical}/sys-root"
28854 else
28855 target_sysroot="${with_sysroot}"
28856 fi
28857 fi
28858 target_libdir="$target_sysroot/usr/lib"
28859 # At the time they were added, gcrt1.o became a symlink for backwards
28860 # compatibility on x86, while crt1.o was added on sparc, so check for that.
28861 case $target in
28862 i?86-*-solaris2* | x86_64-*-solaris2*)
28863 if test -h "$target_libdir/gcrt1.o"; then gcc_cv_solaris_crts=yes; fi
28864 ;;
28865 sparc*-*-solaris2*)
28866 if test -f "$target_libdir/crt1.o"; then gcc_cv_solaris_crts=yes; fi
28867 ;;
28868 esac
28869 fi
28870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_solaris_crts" >&5
28871 $as_echo "$gcc_cv_solaris_crts" >&6; }
28872 ;;
28873 esac
28874 if test x$gcc_cv_solaris_crts = xyes; then
28875
28876 $as_echo "#define HAVE_SOLARIS_CRTS 1" >>confdefs.h
28877
28878 fi
28879
28880 # Test for stack protector support in target C library.
28881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
28882 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
28883 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
28884 $as_echo_n "(cached) " >&6
28885 else
28886 gcc_cv_libc_provides_ssp=no
28887 case "$target" in
28888 *-*-musl*)
28889 # All versions of musl provide stack protector
28890 gcc_cv_libc_provides_ssp=yes;;
28891 *-*-linux* | *-*-kfreebsd*-gnu)
28892 # glibc 2.4 and later provides __stack_chk_fail and
28893 # either __stack_chk_guard, or TLS access to stack guard canary.
28894
28895 if test $glibc_version_major -gt 2 \
28896 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
28897 gcc_cv_libc_provides_ssp=yes
28898 else
28899
28900 if test -f $target_header_dir/features.h \
28901 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
28902 $target_header_dir/features.h > /dev/null; then
28903 if $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
28904 $target_header_dir/features.h > /dev/null && \
28905 test -f $target_header_dir/bits/uClibc_config.h && \
28906 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
28907 $target_header_dir/bits/uClibc_config.h > /dev/null; then
28908 gcc_cv_libc_provides_ssp=yes
28909 fi
28910 # all versions of Bionic support stack protector
28911 elif test -f $target_header_dir/sys/cdefs.h \
28912 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
28913 $target_header_dir/sys/cdefs.h > /dev/null; then
28914 gcc_cv_libc_provides_ssp=yes
28915 fi
28916 fi
28917 ;;
28918 *-*-gnu*)
28919 # Avoid complicated tests (see
28920 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
28921 # simply assert that glibc does provide this, which is true for all
28922 # realistically usable GNU/Hurd configurations.
28923 # All supported versions of musl provide it as well
28924 gcc_cv_libc_provides_ssp=yes;;
28925 *-*-darwin* | *-*-freebsd* | *-*-netbsd*)
28926 ac_fn_cxx_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
28927 if test "x$ac_cv_func___stack_chk_fail" = x""yes; then :
28928 gcc_cv_libc_provides_ssp=yes
28929 else
28930 echo "no __stack_chk_fail on this target"
28931 fi
28932
28933 ;;
28934 *) gcc_cv_libc_provides_ssp=no ;;
28935 esac
28936 fi
28937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
28938 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
28939
28940 if test x$gcc_cv_libc_provides_ssp = xyes; then
28941
28942 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
28943
28944 fi
28945
28946 # Check whether --enable-default-ssp was given.
28947 # Check whether --enable-default-ssp was given.
28948 if test "${enable_default_ssp+set}" = set; then :
28949 enableval=$enable_default_ssp;
28950 if test x$gcc_cv_libc_provides_ssp = xyes; then
28951 case "$target" in
28952 ia64*-*-*) enable_default_ssp=no ;;
28953 *) enable_default_ssp=$enableval ;;
28954 esac
28955 else
28956 enable_default_ssp=no
28957 fi
28958 else
28959 enable_default_ssp=no
28960 fi
28961
28962 if test x$enable_default_ssp = xyes ; then
28963
28964 $as_echo "#define ENABLE_DEFAULT_SSP 1" >>confdefs.h
28965
28966 fi
28967
28968
28969 # Test for <sys/sdt.h> on the target.
28970
28971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
28972 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
28973 have_sys_sdt_h=no
28974 if test -f $target_header_dir/sys/sdt.h; then
28975 have_sys_sdt_h=yes
28976
28977 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
28978
28979 fi
28980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
28981 $as_echo "$have_sys_sdt_h" >&6; }
28982
28983 # Check if TFmode long double should be used by default or not.
28984 # Some glibc targets used DFmode long double, but with glibc 2.4
28985 # and later they can use TFmode.
28986 case "$target" in
28987 powerpc*-*-linux* | \
28988 sparc*-*-linux* | \
28989 s390*-*-linux* | \
28990 alpha*-*-linux*)
28991
28992 # Check whether --with-long-double-128 was given.
28993 if test "${with_long_double_128+set}" = set; then :
28994 withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
28995 else
28996
28997 if test $glibc_version_major -gt 2 \
28998 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
28999 gcc_cv_target_ldbl128=yes
29000 else
29001
29002 gcc_cv_target_ldbl128=no
29003 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
29004 $target_header_dir/bits/wordsize.h > /dev/null 2>&1 \
29005 && gcc_cv_target_ldbl128=yes
29006
29007 fi
29008 fi
29009
29010 ;;
29011 esac
29012 if test x$gcc_cv_target_ldbl128 = xyes; then
29013
29014 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
29015
29016 fi
29017
29018 # Check if the target LIBC supports exporting the AT_PLATFORM and AT_HWCAP
29019 # values in the TCB. Currently, only GLIBC 2.23 and later support this.
29020 gcc_cv_libc_provides_hwcap_in_tcb=no
29021 case "$target" in
29022 powerpc*-*-linux*)
29023
29024 if test $glibc_version_major -gt 2 \
29025 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 23 ); then :
29026 gcc_cv_libc_provides_hwcap_in_tcb=yes
29027 fi
29028 ;;
29029 esac
29030 if test x$gcc_cv_libc_provides_hwcap_in_tcb = xyes; then
29031
29032 $as_echo "#define TARGET_LIBC_PROVIDES_HWCAP_IN_TCB 1" >>confdefs.h
29033
29034 fi
29035
29036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
29037 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
29038 gcc_cv_target_dl_iterate_phdr=unknown
29039 case "$target" in
29040 # Restrict to Solaris 11+. While most of the Solaris 11 linker changes
29041 # were backported to Solaris 10 Update 10, dl_iterate_phdr only lives in
29042 # libdl there, both complicating its use and breaking compatibility
29043 # between Solaris 10 updates.
29044 *-*-solaris2.1[1-9]*)
29045 # <link.h> needs both a dl_iterate_phdr declaration and support for
29046 # compilation with largefile support.
29047 if grep dl_iterate_phdr $target_header_dir/link.h > /dev/null 2>&1 \
29048 && grep 'large file capable' $target_header_dir/link.h > /dev/null 2>&1; then
29049 gcc_cv_target_dl_iterate_phdr=yes
29050 else
29051 gcc_cv_target_dl_iterate_phdr=no
29052 fi
29053 ;;
29054 *-*-dragonfly* | *-*-freebsd*)
29055 if grep dl_iterate_phdr $target_header_dir/sys/link_elf.h > /dev/null 2>&1; then
29056 gcc_cv_target_dl_iterate_phdr=yes
29057 else
29058 gcc_cv_target_dl_iterate_phdr=no
29059 fi
29060 ;;
29061 *-linux-musl*)
29062 gcc_cv_target_dl_iterate_phdr=yes
29063 ;;
29064 esac
29065
29066 if test x$gcc_cv_target_dl_iterate_phdr = xyes; then
29067
29068 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
29069
29070 fi
29071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
29072 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
29073
29074 # We no longer support different GC mechanisms. Emit an error if
29075 # the user configures with --with-gc.
29076
29077 # Check whether --with-gc was given.
29078 if test "${with_gc+set}" = set; then :
29079 withval=$with_gc; as_fn_error "Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
29080 fi
29081
29082
29083 # Libraries to use on the host. This will normally be set by the top
29084 # level Makefile. Here we simply capture the value for our Makefile.
29085 if test -z "${HOST_LIBS+set}"; then
29086 HOST_LIBS=
29087 fi
29088
29089
29090 # Use the system's zlib library.
29091
29092 # Use the system's zlib library.
29093 zlibdir="-L\$(top_builddir)/../zlib"
29094 zlibinc="-I\$(top_srcdir)/../zlib"
29095
29096 # Check whether --with-system-zlib was given.
29097 if test "${with_system_zlib+set}" = set; then :
29098 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
29099 zlibdir=
29100 zlibinc=
29101 fi
29102
29103 fi
29104
29105
29106
29107
29108
29109
29110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
29111 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
29112 # Check whether --enable-maintainer-mode was given.
29113 if test "${enable_maintainer_mode+set}" = set; then :
29114 enableval=$enable_maintainer_mode; maintainer_mode=$enableval
29115 else
29116 maintainer_mode=no
29117 fi
29118
29119
29120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
29121 $as_echo "$maintainer_mode" >&6; }
29122
29123 if test "$maintainer_mode" = "yes"; then
29124 MAINT=''
29125 else
29126 MAINT='#'
29127 fi
29128
29129
29130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid linking multiple front-ends at once" >&5
29131 $as_echo_n "checking whether to avoid linking multiple front-ends at once... " >&6; }
29132 # Check whether --enable-link-mutex was given.
29133 if test "${enable_link_mutex+set}" = set; then :
29134 enableval=$enable_link_mutex; do_link_mutex=$enableval
29135 else
29136 do_link_mutex=no
29137 fi
29138
29139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_mutex" >&5
29140 $as_echo "$do_link_mutex" >&6; }
29141
29142 if test "$do_link_mutex" = "yes"; then
29143 DO_LINK_MUTEX=true
29144 else
29145 DO_LINK_MUTEX=false
29146 fi
29147
29148
29149 # --------------
29150 # Language hooks
29151 # --------------
29152
29153 # Make empty files to contain the specs and options for each language.
29154 # Then add #include lines to for a compiler that has specs and/or options.
29155
29156 subdirs=
29157 lang_opt_files=
29158 lang_specs_files=
29159 lang_tree_files=
29160 # These (without "all_") are set in each config-lang.in.
29161 # `language' must be a single word so is spelled singularly.
29162 all_languages=
29163 all_compilers=
29164 all_outputs='Makefile'
29165 # List of language makefile fragments.
29166 all_lang_makefrags=
29167 # Additional files for gengtype
29168 all_gtfiles="$target_gtfiles"
29169
29170 # These are the languages that are set in --enable-languages,
29171 # and are available in the GCC tree.
29172 all_selected_languages=
29173
29174 # Add the language fragments.
29175 # Languages are added via two mechanisms. Some information must be
29176 # recorded in makefile variables, these are defined in config-lang.in.
29177 # We accumulate them and plug them into the main Makefile.
29178 # The other mechanism is a set of hooks for each of the main targets
29179 # like `clean', `install', etc.
29180
29181 language_hooks="Make-hooks"
29182
29183 for lang in ${srcdir}/*/config-lang.in
29184 do
29185 test "$lang" = "${srcdir}/*/config-lang.in" && continue
29186
29187 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
29188 if test "x$lang_alias" = x
29189 then
29190 echo "$lang doesn't set \$language." 1>&2
29191 exit 1
29192 fi
29193 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
29194 subdirs="$subdirs $subdir"
29195
29196 # $gcc_subdir is where the gcc integration files are to be found
29197 # for a language, both for internal compiler purposes (compiler
29198 # sources implementing front-end to GCC tree converters), and for
29199 # build infrastructure purposes (Make-lang.in, etc.)
29200 #
29201 # This will be <subdir> (relative to $srcdir) if a line like
29202 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
29203 # is found in <langdir>/config-lang.in, and will remain <langdir>
29204 # otherwise.
29205 #
29206 # Except for the language alias (fetched above), the regular
29207 # "config-lang.in" contents are always retrieved from $gcc_subdir,
29208 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
29209 # only this and the language alias.
29210
29211 gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
29212 if [ "$gcc_subdir" = "" ]; then
29213 gcc_subdir="$subdir"
29214 fi
29215
29216 case ",$enable_languages," in
29217 *,$lang_alias,*)
29218 all_selected_languages="$all_selected_languages $lang_alias"
29219 if test -f $srcdir/$gcc_subdir/lang-specs.h; then
29220 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
29221 fi
29222 ;;
29223 esac
29224
29225 language=
29226 boot_language=
29227 compilers=
29228 outputs=
29229 gtfiles=
29230 subdir_requires=
29231 . ${srcdir}/$gcc_subdir/config-lang.in
29232 if test "x$language" = x
29233 then
29234 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
29235 exit 1
29236 fi
29237
29238 ok=:
29239 case ",$enable_languages," in
29240 *,$lang_alias,*) ;;
29241 *)
29242 for i in $subdir_requires; do
29243 test -f "${srcdir}/$i/config-lang.in" && continue
29244 ok=false
29245 break
29246 done
29247 ;;
29248 esac
29249 $ok || continue
29250
29251 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
29252 if test -f $srcdir/$gcc_subdir/lang.opt; then
29253 lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
29254 all_opt_files="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
29255 fi
29256 if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
29257 lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
29258 fi
29259 all_languages="$all_languages $language"
29260 all_compilers="$all_compilers $compilers"
29261 all_outputs="$all_outputs $outputs"
29262 all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
29263 case ",$enable_languages," in
29264 *,lto,*)
29265
29266 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
29267
29268 enable_lto=yes
29269
29270 ;;
29271 *) ;;
29272 esac
29273 done
29274
29275 check_languages=
29276 for language in $all_selected_languages
29277 do
29278 check_languages="$check_languages check-$language"
29279 done
29280
29281 # We link each language in with a set of hooks, reached indirectly via
29282 # lang.${target}. Only do so for selected languages.
29283
29284 rm -f Make-hooks
29285 touch Make-hooks
29286 target_list="all.cross start.encap rest.encap tags \
29287 install-common install-man install-info install-pdf install-html dvi \
29288 pdf html uninstall info man srcextra srcman srcinfo \
29289 mostlyclean clean distclean maintainer-clean install-plugin"
29290
29291 for t in $target_list
29292 do
29293 x=
29294 for lang in $all_selected_languages
29295 do
29296 x="$x $lang.$t"
29297 done
29298 echo "lang.$t: $x" >> Make-hooks
29299 done
29300
29301 # --------
29302 # Option include files
29303 # --------
29304
29305 ${AWK} -f $srcdir/opt-include.awk $all_opt_files > option-includes.mk
29306 option_includes="option-includes.mk"
29307
29308
29309 # --------
29310 # UNSORTED
29311 # --------
29312
29313 # Create .gdbinit.
29314
29315 echo "dir ." > .gdbinit
29316 echo "dir ${srcdir}" >> .gdbinit
29317 if test x$gdb_needs_out_file_path = xyes
29318 then
29319 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
29320 fi
29321 if test "x$subdirs" != x; then
29322 for s in $subdirs
29323 do
29324 echo "dir ${srcdir}/$s" >> .gdbinit
29325 done
29326 fi
29327 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
29328 echo "python import sys; sys.path.append('${srcdir}'); import gdbhooks" >> .gdbinit
29329
29330 # Put a breakpoint on __asan_report_error to help with debugging buffer
29331 # overflow.
29332 case "$CFLAGS" in
29333 *-fsanitize=address*)
29334 echo "source ${srcdir}/gdbasan.in" >> .gdbinit
29335 ;;
29336 esac
29337
29338 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
29339
29340
29341
29342 # Find a directory in which to install a shared libgcc.
29343
29344 # Check whether --enable-version-specific-runtime-libs was given.
29345 if test "${enable_version_specific_runtime_libs+set}" = set; then :
29346 enableval=$enable_version_specific_runtime_libs;
29347 fi
29348
29349
29350 # Substitute configuration variables
29351
29352
29353
29354
29355
29356
29357
29358
29359
29360
29361
29362
29363
29364
29365
29366
29367
29368
29369
29370
29371
29372
29373
29374
29375
29376
29377
29378
29379
29380
29381
29382
29383
29384
29385
29386
29387
29388
29389
29390
29391
29392
29393
29394
29395
29396
29397
29398
29399
29400
29401
29402
29403
29404
29405
29406
29407
29408
29409
29410
29411
29412
29413 # Echo link setup.
29414 if test x${build} = x${host} ; then
29415 if test x${host} = x${target} ; then
29416 echo "Links are now set up to build a native compiler for ${target}." 1>&2
29417 else
29418 echo "Links are now set up to build a cross-compiler" 1>&2
29419 echo " from ${host} to ${target}." 1>&2
29420 fi
29421 else
29422 if test x${host} = x${target} ; then
29423 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
29424 echo " for ${target}." 1>&2
29425 else
29426 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
29427 echo " from ${host} to ${target}." 1>&2
29428 fi
29429 fi
29430
29431
29432
29433
29434
29435
29436 if test "x${ISLLIBS}" != "x" ; then
29437
29438 $as_echo "#define HAVE_isl 1" >>confdefs.h
29439
29440 fi
29441
29442 # Check for plugin support
29443 # Check whether --enable-plugin was given.
29444 if test "${enable_plugin+set}" = set; then :
29445 enableval=$enable_plugin; enable_plugin=$enableval
29446 else
29447 enable_plugin=yes; default_plugin=yes
29448 fi
29449
29450
29451 pluginlibs=
29452
29453 case "${host}" in
29454 *-*-darwin*)
29455 if test x$build = x$host; then
29456 export_sym_check="nm${exeext} -g"
29457 elif test x$host = x$target; then
29458 export_sym_check="$gcc_cv_nm -g"
29459 else
29460 export_sym_check=
29461 fi
29462 ;;
29463 *)
29464 if test x$build = x$host; then
29465 export_sym_check="objdump${exeext} -T"
29466 elif test x$host = x$target; then
29467 export_sym_check="$gcc_cv_objdump -T"
29468 else
29469 export_sym_check=
29470 fi
29471 ;;
29472 esac
29473
29474 if test x"$enable_plugin" = x"yes"; then
29475
29476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
29477 $as_echo_n "checking for exported symbols... " >&6; }
29478 if test "x$export_sym_check" != x; then
29479 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
29480 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest$ac_exeext > /dev/null 2>&1
29481 if $export_sym_check conftest$ac_exeext | grep -q foobar > /dev/null; then
29482 : # No need to use a flag
29483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29484 $as_echo "yes" >&6; }
29485 else
29486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29487 $as_echo "yes" >&6; }
29488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
29489 $as_echo_n "checking for -rdynamic... " >&6; }
29490 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest$ac_exeext > /dev/null 2>&1
29491 if $export_sym_check conftest$ac_exeext | grep -q foobar > /dev/null; then
29492 plugin_rdynamic=yes
29493 pluginlibs="-rdynamic"
29494 else
29495 plugin_rdynamic=no
29496 enable_plugin=no
29497 fi
29498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
29499 $as_echo "$plugin_rdynamic" >&6; }
29500 fi
29501 else
29502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
29503 $as_echo "unable to check" >&6; }
29504 fi
29505
29506 # Check -ldl
29507 saved_LIBS="$LIBS"
29508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
29509 $as_echo_n "checking for library containing dlopen... " >&6; }
29510 if test "${ac_cv_search_dlopen+set}" = set; then :
29511 $as_echo_n "(cached) " >&6
29512 else
29513 ac_func_search_save_LIBS=$LIBS
29514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29515 /* end confdefs.h. */
29516
29517 /* Override any GCC internal prototype to avoid an error.
29518 Use char because int might match the return type of a GCC
29519 builtin and then its argument prototype would still apply. */
29520 #ifdef __cplusplus
29521 extern "C"
29522 #endif
29523 char dlopen ();
29524 int
29525 main ()
29526 {
29527 return dlopen ();
29528 ;
29529 return 0;
29530 }
29531 _ACEOF
29532 for ac_lib in '' dl; do
29533 if test -z "$ac_lib"; then
29534 ac_res="none required"
29535 else
29536 ac_res=-l$ac_lib
29537 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
29538 fi
29539 if ac_fn_cxx_try_link "$LINENO"; then :
29540 ac_cv_search_dlopen=$ac_res
29541 fi
29542 rm -f core conftest.err conftest.$ac_objext \
29543 conftest$ac_exeext
29544 if test "${ac_cv_search_dlopen+set}" = set; then :
29545 break
29546 fi
29547 done
29548 if test "${ac_cv_search_dlopen+set}" = set; then :
29549
29550 else
29551 ac_cv_search_dlopen=no
29552 fi
29553 rm conftest.$ac_ext
29554 LIBS=$ac_func_search_save_LIBS
29555 fi
29556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
29557 $as_echo "$ac_cv_search_dlopen" >&6; }
29558 ac_res=$ac_cv_search_dlopen
29559 if test "$ac_res" != no; then :
29560 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29561
29562 fi
29563
29564 if test x"$ac_cv_search_dlopen" = x"-ldl"; then
29565 pluginlibs="$pluginlibs -ldl"
29566 fi
29567 LIBS="$saved_LIBS"
29568
29569 # Check that we can build shared objects with -fPIC -shared
29570 saved_LDFLAGS="$LDFLAGS"
29571 saved_CFLAGS="$CFLAGS"
29572 case "${host}" in
29573 *-*-darwin*)
29574 CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
29575 CFLAGS="$CFLAGS -fPIC"
29576 LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
29577 ;;
29578 *)
29579 CFLAGS="$CFLAGS -fPIC"
29580 LDFLAGS="$LDFLAGS -fPIC -shared"
29581 ;;
29582 esac
29583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
29584 $as_echo_n "checking for -fPIC -shared... " >&6; }
29585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29586 /* end confdefs.h. */
29587 extern int X;
29588 int
29589 main ()
29590 {
29591 return X == 0;
29592 ;
29593 return 0;
29594 }
29595 _ACEOF
29596 if ac_fn_cxx_try_link "$LINENO"; then :
29597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29598 $as_echo "yes" >&6; }; have_pic_shared=yes
29599 else
29600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29601 $as_echo "no" >&6; }; have_pic_shared=no
29602 fi
29603 rm -f core conftest.err conftest.$ac_objext \
29604 conftest$ac_exeext conftest.$ac_ext
29605 if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
29606 pluginlibs=
29607 enable_plugin=no
29608 fi
29609 LDFLAGS="$saved_LDFLAGS"
29610 CFLAGS="$saved_CFLAGS"
29611
29612 # If plugin support had been requested but not available, fail.
29613 if test x"$enable_plugin" = x"no" ; then
29614 if test x"$default_plugin" != x"yes"; then
29615 as_fn_error "
29616 Building GCC with plugin support requires a host that supports
29617 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
29618 fi
29619 fi
29620 fi
29621
29622
29623
29624 if test x"$enable_plugin" = x"yes"; then
29625
29626 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
29627
29628 fi
29629
29630
29631 # Enable --enable-host-shared
29632 # Check whether --enable-host-shared was given.
29633 if test "${enable_host_shared+set}" = set; then :
29634 enableval=$enable_host_shared; PICFLAG=-fPIC
29635 else
29636 PICFLAG=
29637 fi
29638
29639
29640
29641
29642
29643 # Check whether --enable-libquadmath-support was given.
29644 if test "${enable_libquadmath_support+set}" = set; then :
29645 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
29646 else
29647 ENABLE_LIBQUADMATH_SUPPORT=yes
29648 fi
29649
29650 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
29651
29652 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
29653
29654 fi
29655
29656
29657 # Specify what hash style to use by default.
29658
29659 # Check whether --with-linker-hash-style was given.
29660 if test "${with_linker_hash_style+set}" = set; then :
29661 withval=$with_linker_hash_style; case x"$withval" in
29662 xsysv)
29663 LINKER_HASH_STYLE=sysv
29664 ;;
29665 xgnu)
29666 LINKER_HASH_STYLE=gnu
29667 ;;
29668 xboth)
29669 LINKER_HASH_STYLE=both
29670 ;;
29671 *)
29672 as_fn_error "$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
29673 ;;
29674 esac
29675 else
29676 LINKER_HASH_STYLE=''
29677 fi
29678
29679 if test x"${LINKER_HASH_STYLE}" != x; then
29680
29681 cat >>confdefs.h <<_ACEOF
29682 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
29683 _ACEOF
29684
29685 fi
29686
29687 # Specify what should be the default of -fdiagnostics-color option.
29688
29689 # Check whether --with-diagnostics-color was given.
29690 if test "${with_diagnostics_color+set}" = set; then :
29691 withval=$with_diagnostics_color; case x"$withval" in
29692 xnever)
29693 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_NO
29694 ;;
29695 xauto)
29696 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO
29697 ;;
29698 xauto-if-env)
29699 DIAGNOSTICS_COLOR_DEFAULT=-1
29700 ;;
29701 xalways)
29702 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_YES
29703 ;;
29704 *)
29705 as_fn_error "$withval is an invalid option to --with-diagnostics-color" "$LINENO" 5
29706 ;;
29707 esac
29708 else
29709 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO
29710 fi
29711
29712
29713 cat >>confdefs.h <<_ACEOF
29714 #define DIAGNOSTICS_COLOR_DEFAULT $DIAGNOSTICS_COLOR_DEFAULT
29715 _ACEOF
29716
29717
29718 # Generate gcc-driver-name.h containing GCC_DRIVER_NAME for the benefit
29719 # of jit/jit-playback.c.
29720 cat > gcc-driver-name.h <<EOF
29721 #define GCC_DRIVER_NAME "${target_noncanonical}-gcc-${gcc_BASEVER}${exeext}"
29722 EOF
29723
29724 # Check whether --enable-default-pie was given.
29725 # Check whether --enable-default-pie was given.
29726 if test "${enable_default_pie+set}" = set; then :
29727 enableval=$enable_default_pie; enable_default_pie=$enableval
29728 else
29729 enable_default_pie=no
29730 fi
29731
29732 if test x$enable_default_pie = xyes ; then
29733
29734 $as_echo "#define ENABLE_DEFAULT_PIE 1" >>confdefs.h
29735
29736 fi
29737
29738
29739 # Check if -fno-PIE works.
29740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fno-PIE option" >&5
29741 $as_echo_n "checking for -fno-PIE option... " >&6; }
29742 if test "${gcc_cv_c_no_fpie+set}" = set; then :
29743 $as_echo_n "(cached) " >&6
29744 else
29745 saved_CXXFLAGS="$CXXFLAGS"
29746 CXXFLAGS="$CXXFLAGS -fno-PIE"
29747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29748 /* end confdefs.h. */
29749 int main(void) {return 0;}
29750 _ACEOF
29751 if ac_fn_cxx_try_compile "$LINENO"; then :
29752 gcc_cv_c_no_fpie=yes
29753 else
29754 gcc_cv_c_no_fpie=no
29755 fi
29756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29757 CXXFLAGS="$saved_CXXFLAGS"
29758 fi
29759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_no_fpie" >&5
29760 $as_echo "$gcc_cv_c_no_fpie" >&6; }
29761 if test "$gcc_cv_c_no_fpie" = "yes"; then
29762 NO_PIE_CFLAGS="-fno-PIE"
29763 fi
29764
29765
29766 # Check if -no-pie works.
29767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -no-pie option" >&5
29768 $as_echo_n "checking for -no-pie option... " >&6; }
29769 if test "${gcc_cv_no_pie+set}" = set; then :
29770 $as_echo_n "(cached) " >&6
29771 else
29772 saved_LDFLAGS="$LDFLAGS"
29773 LDFLAGS="$LDFLAGS -no-pie"
29774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29775 /* end confdefs.h. */
29776 int main(void) {return 0;}
29777 _ACEOF
29778 if ac_fn_cxx_try_link "$LINENO"; then :
29779 gcc_cv_no_pie=yes
29780 else
29781 gcc_cv_no_pie=no
29782 fi
29783 rm -f core conftest.err conftest.$ac_objext \
29784 conftest$ac_exeext conftest.$ac_ext
29785 LDFLAGS="$saved_LDFLAGS"
29786 fi
29787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_no_pie" >&5
29788 $as_echo "$gcc_cv_no_pie" >&6; }
29789 if test "$gcc_cv_no_pie" = "yes"; then
29790 NO_PIE_FLAG="-no-pie"
29791 fi
29792
29793
29794 # Check linker supports '-z bndplt'
29795 ld_bndplt_support=no
29796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -z bndplt option" >&5
29797 $as_echo_n "checking linker -z bndplt option... " >&6; }
29798 if test x"$ld_is_gold" = xno; then
29799 if test $in_tree_ld = yes ; then
29800 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
29801 ld_bndplt_support=yes
29802 fi
29803 elif test x$gcc_cv_ld != x; then
29804 # Check if linker supports -a bndplt option
29805 if $gcc_cv_ld --help 2>/dev/null | grep -- '-z bndplt' > /dev/null; then
29806 ld_bndplt_support=yes
29807 fi
29808 fi
29809 fi
29810 if test x"$ld_bndplt_support" = xyes; then
29811
29812 $as_echo "#define HAVE_LD_BNDPLT_SUPPORT 1" >>confdefs.h
29813
29814 fi
29815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_bndplt_support" >&5
29816 $as_echo "$ld_bndplt_support" >&6; }
29817
29818 # Check linker supports '--push-state'/'--pop-state'
29819 ld_pushpopstate_support=no
29820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --push-state/--pop-state options" >&5
29821 $as_echo_n "checking linker --push-state/--pop-state options... " >&6; }
29822 if test x"$ld_is_gold" = xno; then
29823 if test $in_tree_ld = yes ; then
29824 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
29825 ld_pushpopstate_support=yes
29826 fi
29827 elif test x$gcc_cv_ld != x; then
29828 # Check if linker supports --push-state/--pop-state options
29829 if $gcc_cv_ld --help 2>/dev/null | grep -- '--push-state' > /dev/null; then
29830 ld_pushpopstate_support=yes
29831 fi
29832 fi
29833 fi
29834 if test x"$ld_pushpopstate_support" = xyes; then
29835
29836 $as_echo "#define HAVE_LD_PUSHPOPSTATE_SUPPORT 1" >>confdefs.h
29837
29838 fi
29839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_pushpopstate_support" >&5
29840 $as_echo "$ld_pushpopstate_support" >&6; }
29841
29842 # Configure the subdirectories
29843 # AC_CONFIG_SUBDIRS($subdirs)
29844
29845 # Create the Makefile
29846 # and configure language subdirectories
29847 ac_config_files="$ac_config_files $all_outputs"
29848
29849
29850 ac_config_commands="$ac_config_commands default"
29851
29852 cat >confcache <<\_ACEOF
29853 # This file is a shell script that caches the results of configure
29854 # tests run on this system so they can be shared between configure
29855 # scripts and configure runs, see configure's option --config-cache.
29856 # It is not useful on other systems. If it contains results you don't
29857 # want to keep, you may remove or edit it.
29858 #
29859 # config.status only pays attention to the cache file if you give it
29860 # the --recheck option to rerun configure.
29861 #
29862 # `ac_cv_env_foo' variables (set or unset) will be overridden when
29863 # loading this file, other *unset* `ac_cv_foo' will be assigned the
29864 # following values.
29865
29866 _ACEOF
29867
29868 # The following way of writing the cache mishandles newlines in values,
29869 # but we know of no workaround that is simple, portable, and efficient.
29870 # So, we kill variables containing newlines.
29871 # Ultrix sh set writes to stderr and can't be redirected directly,
29872 # and sets the high bit in the cache file unless we assign to the vars.
29873 (
29874 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
29875 eval ac_val=\$$ac_var
29876 case $ac_val in #(
29877 *${as_nl}*)
29878 case $ac_var in #(
29879 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
29880 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
29881 esac
29882 case $ac_var in #(
29883 _ | IFS | as_nl) ;; #(
29884 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
29885 *) { eval $ac_var=; unset $ac_var;} ;;
29886 esac ;;
29887 esac
29888 done
29889
29890 (set) 2>&1 |
29891 case $as_nl`(ac_space=' '; set) 2>&1` in #(
29892 *${as_nl}ac_space=\ *)
29893 # `set' does not quote correctly, so add quotes: double-quote
29894 # substitution turns \\\\ into \\, and sed turns \\ into \.
29895 sed -n \
29896 "s/'/'\\\\''/g;
29897 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29898 ;; #(
29899 *)
29900 # `set' quotes correctly as required by POSIX, so do not add quotes.
29901 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
29902 ;;
29903 esac |
29904 sort
29905 ) |
29906 sed '
29907 /^ac_cv_env_/b end
29908 t clear
29909 :clear
29910 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29911 t end
29912 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29913 :end' >>confcache
29914 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
29915 if test -w "$cache_file"; then
29916 test "x$cache_file" != "x/dev/null" &&
29917 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
29918 $as_echo "$as_me: updating cache $cache_file" >&6;}
29919 cat confcache >$cache_file
29920 else
29921 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
29922 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
29923 fi
29924 fi
29925 rm -f confcache
29926
29927 test "x$prefix" = xNONE && prefix=$ac_default_prefix
29928 # Let make expand exec_prefix.
29929 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
29930
29931 DEFS=-DHAVE_CONFIG_H
29932
29933 ac_libobjs=
29934 ac_ltlibobjs=
29935 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
29936 # 1. Remove the extension, and $U if already installed.
29937 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
29938 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
29939 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
29940 # will be set to the directory where LIBOBJS objects are built.
29941 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
29942 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
29943 done
29944 LIBOBJS=$ac_libobjs
29945
29946 LTLIBOBJS=$ac_ltlibobjs
29947
29948
29949
29950
29951 : ${CONFIG_STATUS=./config.status}
29952 ac_write_fail=0
29953 ac_clean_files_save=$ac_clean_files
29954 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
29955 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
29956 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
29957 as_write_fail=0
29958 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
29959 #! $SHELL
29960 # Generated by $as_me.
29961 # Run this file to recreate the current configuration.
29962 # Compiler output produced by configure, useful for debugging
29963 # configure, is in config.log if it exists.
29964
29965 debug=false
29966 ac_cs_recheck=false
29967 ac_cs_silent=false
29968
29969 SHELL=\${CONFIG_SHELL-$SHELL}
29970 export SHELL
29971 _ASEOF
29972 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
29973 ## -------------------- ##
29974 ## M4sh Initialization. ##
29975 ## -------------------- ##
29976
29977 # Be more Bourne compatible
29978 DUALCASE=1; export DUALCASE # for MKS sh
29979 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
29980 emulate sh
29981 NULLCMD=:
29982 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
29983 # is contrary to our usage. Disable this feature.
29984 alias -g '${1+"$@"}'='"$@"'
29985 setopt NO_GLOB_SUBST
29986 else
29987 case `(set -o) 2>/dev/null` in #(
29988 *posix*) :
29989 set -o posix ;; #(
29990 *) :
29991 ;;
29992 esac
29993 fi
29994
29995
29996 as_nl='
29997 '
29998 export as_nl
29999 # Printing a long string crashes Solaris 7 /usr/bin/printf.
30000 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
30001 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
30002 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
30003 # Prefer a ksh shell builtin over an external printf program on Solaris,
30004 # but without wasting forks for bash or zsh.
30005 if test -z "$BASH_VERSION$ZSH_VERSION" \
30006 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
30007 as_echo='print -r --'
30008 as_echo_n='print -rn --'
30009 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
30010 as_echo='printf %s\n'
30011 as_echo_n='printf %s'
30012 else
30013 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
30014 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
30015 as_echo_n='/usr/ucb/echo -n'
30016 else
30017 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
30018 as_echo_n_body='eval
30019 arg=$1;
30020 case $arg in #(
30021 *"$as_nl"*)
30022 expr "X$arg" : "X\\(.*\\)$as_nl";
30023 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
30024 esac;
30025 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
30026 '
30027 export as_echo_n_body
30028 as_echo_n='sh -c $as_echo_n_body as_echo'
30029 fi
30030 export as_echo_body
30031 as_echo='sh -c $as_echo_body as_echo'
30032 fi
30033
30034 # The user is always right.
30035 if test "${PATH_SEPARATOR+set}" != set; then
30036 PATH_SEPARATOR=:
30037 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
30038 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
30039 PATH_SEPARATOR=';'
30040 }
30041 fi
30042
30043
30044 # IFS
30045 # We need space, tab and new line, in precisely that order. Quoting is
30046 # there to prevent editors from complaining about space-tab.
30047 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
30048 # splitting by setting IFS to empty value.)
30049 IFS=" "" $as_nl"
30050
30051 # Find who we are. Look in the path if we contain no directory separator.
30052 case $0 in #((
30053 *[\\/]* ) as_myself=$0 ;;
30054 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30055 for as_dir in $PATH
30056 do
30057 IFS=$as_save_IFS
30058 test -z "$as_dir" && as_dir=.
30059 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30060 done
30061 IFS=$as_save_IFS
30062
30063 ;;
30064 esac
30065 # We did not find ourselves, most probably we were run as `sh COMMAND'
30066 # in which case we are not to be found in the path.
30067 if test "x$as_myself" = x; then
30068 as_myself=$0
30069 fi
30070 if test ! -f "$as_myself"; then
30071 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
30072 exit 1
30073 fi
30074
30075 # Unset variables that we do not need and which cause bugs (e.g. in
30076 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
30077 # suppresses any "Segmentation fault" message there. '((' could
30078 # trigger a bug in pdksh 5.2.14.
30079 for as_var in BASH_ENV ENV MAIL MAILPATH
30080 do eval test x\${$as_var+set} = xset \
30081 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
30082 done
30083 PS1='$ '
30084 PS2='> '
30085 PS4='+ '
30086
30087 # NLS nuisances.
30088 LC_ALL=C
30089 export LC_ALL
30090 LANGUAGE=C
30091 export LANGUAGE
30092
30093 # CDPATH.
30094 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
30095
30096
30097 # as_fn_error ERROR [LINENO LOG_FD]
30098 # ---------------------------------
30099 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
30100 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
30101 # script with status $?, using 1 if that was 0.
30102 as_fn_error ()
30103 {
30104 as_status=$?; test $as_status -eq 0 && as_status=1
30105 if test "$3"; then
30106 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
30107 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
30108 fi
30109 $as_echo "$as_me: error: $1" >&2
30110 as_fn_exit $as_status
30111 } # as_fn_error
30112
30113
30114 # as_fn_set_status STATUS
30115 # -----------------------
30116 # Set $? to STATUS, without forking.
30117 as_fn_set_status ()
30118 {
30119 return $1
30120 } # as_fn_set_status
30121
30122 # as_fn_exit STATUS
30123 # -----------------
30124 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
30125 as_fn_exit ()
30126 {
30127 set +e
30128 as_fn_set_status $1
30129 exit $1
30130 } # as_fn_exit
30131
30132 # as_fn_unset VAR
30133 # ---------------
30134 # Portably unset VAR.
30135 as_fn_unset ()
30136 {
30137 { eval $1=; unset $1;}
30138 }
30139 as_unset=as_fn_unset
30140 # as_fn_append VAR VALUE
30141 # ----------------------
30142 # Append the text in VALUE to the end of the definition contained in VAR. Take
30143 # advantage of any shell optimizations that allow amortized linear growth over
30144 # repeated appends, instead of the typical quadratic growth present in naive
30145 # implementations.
30146 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
30147 eval 'as_fn_append ()
30148 {
30149 eval $1+=\$2
30150 }'
30151 else
30152 as_fn_append ()
30153 {
30154 eval $1=\$$1\$2
30155 }
30156 fi # as_fn_append
30157
30158 # as_fn_arith ARG...
30159 # ------------------
30160 # Perform arithmetic evaluation on the ARGs, and store the result in the
30161 # global $as_val. Take advantage of shells that can avoid forks. The arguments
30162 # must be portable across $(()) and expr.
30163 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
30164 eval 'as_fn_arith ()
30165 {
30166 as_val=$(( $* ))
30167 }'
30168 else
30169 as_fn_arith ()
30170 {
30171 as_val=`expr "$@" || test $? -eq 1`
30172 }
30173 fi # as_fn_arith
30174
30175
30176 if expr a : '\(a\)' >/dev/null 2>&1 &&
30177 test "X`expr 00001 : '.*\(...\)'`" = X001; then
30178 as_expr=expr
30179 else
30180 as_expr=false
30181 fi
30182
30183 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
30184 as_basename=basename
30185 else
30186 as_basename=false
30187 fi
30188
30189 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
30190 as_dirname=dirname
30191 else
30192 as_dirname=false
30193 fi
30194
30195 as_me=`$as_basename -- "$0" ||
30196 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30197 X"$0" : 'X\(//\)$' \| \
30198 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
30199 $as_echo X/"$0" |
30200 sed '/^.*\/\([^/][^/]*\)\/*$/{
30201 s//\1/
30202 q
30203 }
30204 /^X\/\(\/\/\)$/{
30205 s//\1/
30206 q
30207 }
30208 /^X\/\(\/\).*/{
30209 s//\1/
30210 q
30211 }
30212 s/.*/./; q'`
30213
30214 # Avoid depending upon Character Ranges.
30215 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30216 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30217 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30218 as_cr_digits='0123456789'
30219 as_cr_alnum=$as_cr_Letters$as_cr_digits
30220
30221 ECHO_C= ECHO_N= ECHO_T=
30222 case `echo -n x` in #(((((
30223 -n*)
30224 case `echo 'xy\c'` in
30225 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
30226 xy) ECHO_C='\c';;
30227 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
30228 ECHO_T=' ';;
30229 esac;;
30230 *)
30231 ECHO_N='-n';;
30232 esac
30233
30234 rm -f conf$$ conf$$.exe conf$$.file
30235 if test -d conf$$.dir; then
30236 rm -f conf$$.dir/conf$$.file
30237 else
30238 rm -f conf$$.dir
30239 mkdir conf$$.dir 2>/dev/null
30240 fi
30241 if (echo >conf$$.file) 2>/dev/null; then
30242 if ln -s conf$$.file conf$$ 2>/dev/null; then
30243 as_ln_s='ln -s'
30244 # ... but there are two gotchas:
30245 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
30246 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
30247 # In both cases, we have to default to `cp -p'.
30248 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
30249 as_ln_s='cp -p'
30250 elif ln conf$$.file conf$$ 2>/dev/null; then
30251 as_ln_s=ln
30252 else
30253 as_ln_s='cp -p'
30254 fi
30255 else
30256 as_ln_s='cp -p'
30257 fi
30258 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
30259 rmdir conf$$.dir 2>/dev/null
30260
30261
30262 # as_fn_mkdir_p
30263 # -------------
30264 # Create "$as_dir" as a directory, including parents if necessary.
30265 as_fn_mkdir_p ()
30266 {
30267
30268 case $as_dir in #(
30269 -*) as_dir=./$as_dir;;
30270 esac
30271 test -d "$as_dir" || eval $as_mkdir_p || {
30272 as_dirs=
30273 while :; do
30274 case $as_dir in #(
30275 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
30276 *) as_qdir=$as_dir;;
30277 esac
30278 as_dirs="'$as_qdir' $as_dirs"
30279 as_dir=`$as_dirname -- "$as_dir" ||
30280 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30281 X"$as_dir" : 'X\(//\)[^/]' \| \
30282 X"$as_dir" : 'X\(//\)$' \| \
30283 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
30284 $as_echo X"$as_dir" |
30285 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30286 s//\1/
30287 q
30288 }
30289 /^X\(\/\/\)[^/].*/{
30290 s//\1/
30291 q
30292 }
30293 /^X\(\/\/\)$/{
30294 s//\1/
30295 q
30296 }
30297 /^X\(\/\).*/{
30298 s//\1/
30299 q
30300 }
30301 s/.*/./; q'`
30302 test -d "$as_dir" && break
30303 done
30304 test -z "$as_dirs" || eval "mkdir $as_dirs"
30305 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
30306
30307
30308 } # as_fn_mkdir_p
30309 if mkdir -p . 2>/dev/null; then
30310 as_mkdir_p='mkdir -p "$as_dir"'
30311 else
30312 test -d ./-p && rmdir ./-p
30313 as_mkdir_p=false
30314 fi
30315
30316 if test -x / >/dev/null 2>&1; then
30317 as_test_x='test -x'
30318 else
30319 if ls -dL / >/dev/null 2>&1; then
30320 as_ls_L_option=L
30321 else
30322 as_ls_L_option=
30323 fi
30324 as_test_x='
30325 eval sh -c '\''
30326 if test -d "$1"; then
30327 test -d "$1/.";
30328 else
30329 case $1 in #(
30330 -*)set "./$1";;
30331 esac;
30332 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
30333 ???[sx]*):;;*)false;;esac;fi
30334 '\'' sh
30335 '
30336 fi
30337 as_executable_p=$as_test_x
30338
30339 # Sed expression to map a string onto a valid CPP name.
30340 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30341
30342 # Sed expression to map a string onto a valid variable name.
30343 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30344
30345
30346 exec 6>&1
30347 ## ----------------------------------- ##
30348 ## Main body of $CONFIG_STATUS script. ##
30349 ## ----------------------------------- ##
30350 _ASEOF
30351 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
30352
30353 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30354 # Save the log message, to keep $0 and so on meaningful, and to
30355 # report actual input values of CONFIG_FILES etc. instead of their
30356 # values after options handling.
30357 ac_log="
30358 This file was extended by $as_me, which was
30359 generated by GNU Autoconf 2.64. Invocation command line was
30360
30361 CONFIG_FILES = $CONFIG_FILES
30362 CONFIG_HEADERS = $CONFIG_HEADERS
30363 CONFIG_LINKS = $CONFIG_LINKS
30364 CONFIG_COMMANDS = $CONFIG_COMMANDS
30365 $ $0 $@
30366
30367 on `(hostname || uname -n) 2>/dev/null | sed 1q`
30368 "
30369
30370 _ACEOF
30371
30372 case $ac_config_files in *"
30373 "*) set x $ac_config_files; shift; ac_config_files=$*;;
30374 esac
30375
30376 case $ac_config_headers in *"
30377 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
30378 esac
30379
30380
30381 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30382 # Files that config.status was made for.
30383 config_files="$ac_config_files"
30384 config_headers="$ac_config_headers"
30385 config_links="$ac_config_links"
30386 config_commands="$ac_config_commands"
30387
30388 _ACEOF
30389
30390 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30391 ac_cs_usage="\
30392 \`$as_me' instantiates files and other configuration actions
30393 from templates according to the current configuration. Unless the files
30394 and actions are specified as TAGs, all are instantiated by default.
30395
30396 Usage: $0 [OPTION]... [TAG]...
30397
30398 -h, --help print this help, then exit
30399 -V, --version print version number and configuration settings, then exit
30400 -q, --quiet, --silent
30401 do not print progress messages
30402 -d, --debug don't remove temporary files
30403 --recheck update $as_me by reconfiguring in the same conditions
30404 --file=FILE[:TEMPLATE]
30405 instantiate the configuration file FILE
30406 --header=FILE[:TEMPLATE]
30407 instantiate the configuration header FILE
30408
30409 Configuration files:
30410 $config_files
30411
30412 Configuration headers:
30413 $config_headers
30414
30415 Configuration links:
30416 $config_links
30417
30418 Configuration commands:
30419 $config_commands
30420
30421 Report bugs to the package provider."
30422
30423 _ACEOF
30424 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30425 ac_cs_version="\\
30426 config.status
30427 configured by $0, generated by GNU Autoconf 2.64,
30428 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
30429
30430 Copyright (C) 2009 Free Software Foundation, Inc.
30431 This config.status script is free software; the Free Software Foundation
30432 gives unlimited permission to copy, distribute and modify it."
30433
30434 ac_pwd='$ac_pwd'
30435 srcdir='$srcdir'
30436 AWK='$AWK'
30437 test -n "\$AWK" || AWK=awk
30438 _ACEOF
30439
30440 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30441 # The default lists apply if the user does not specify any file.
30442 ac_need_defaults=:
30443 while test $# != 0
30444 do
30445 case $1 in
30446 --*=*)
30447 ac_option=`expr "X$1" : 'X\([^=]*\)='`
30448 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
30449 ac_shift=:
30450 ;;
30451 *)
30452 ac_option=$1
30453 ac_optarg=$2
30454 ac_shift=shift
30455 ;;
30456 esac
30457
30458 case $ac_option in
30459 # Handling of the options.
30460 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30461 ac_cs_recheck=: ;;
30462 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
30463 $as_echo "$ac_cs_version"; exit ;;
30464 --debug | --debu | --deb | --de | --d | -d )
30465 debug=: ;;
30466 --file | --fil | --fi | --f )
30467 $ac_shift
30468 case $ac_optarg in
30469 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30470 esac
30471 as_fn_append CONFIG_FILES " '$ac_optarg'"
30472 ac_need_defaults=false;;
30473 --header | --heade | --head | --hea )
30474 $ac_shift
30475 case $ac_optarg in
30476 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30477 esac
30478 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
30479 ac_need_defaults=false;;
30480 --he | --h)
30481 # Conflict between --help and --header
30482 as_fn_error "ambiguous option: \`$1'
30483 Try \`$0 --help' for more information.";;
30484 --help | --hel | -h )
30485 $as_echo "$ac_cs_usage"; exit ;;
30486 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30487 | -silent | --silent | --silen | --sile | --sil | --si | --s)
30488 ac_cs_silent=: ;;
30489
30490 # This is an error.
30491 -*) as_fn_error "unrecognized option: \`$1'
30492 Try \`$0 --help' for more information." ;;
30493
30494 *) as_fn_append ac_config_targets " $1"
30495 ac_need_defaults=false ;;
30496
30497 esac
30498 shift
30499 done
30500
30501 ac_configure_extra_args=
30502
30503 if $ac_cs_silent; then
30504 exec 6>/dev/null
30505 ac_configure_extra_args="$ac_configure_extra_args --silent"
30506 fi
30507
30508 _ACEOF
30509 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30510 if \$ac_cs_recheck; then
30511 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30512 shift
30513 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
30514 CONFIG_SHELL='$SHELL'
30515 export CONFIG_SHELL
30516 exec "\$@"
30517 fi
30518
30519 _ACEOF
30520 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30521 exec 5>>config.log
30522 {
30523 echo
30524 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30525 ## Running $as_me. ##
30526 _ASBOX
30527 $as_echo "$ac_log"
30528 } >&5
30529
30530 _ACEOF
30531 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30532 #
30533 # INIT-COMMANDS
30534 #
30535 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
30536 subdirs="$subdirs" ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
30537 subdirs='$subdirs'
30538
30539 _ACEOF
30540
30541 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30542
30543 # Handling of arguments.
30544 for ac_config_target in $ac_config_targets
30545 do
30546 case $ac_config_target in
30547 "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
30548 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
30549 "gccdepdir") CONFIG_COMMANDS="$CONFIG_COMMANDS gccdepdir" ;;
30550 "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
30551 "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
30552 "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
30553 "clearcap.map") CONFIG_LINKS="$CONFIG_LINKS clearcap.map:${srcdir}/config/$clearcap_map" ;;
30554 "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
30555 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
30556
30557 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
30558 esac
30559 done
30560
30561
30562 # If the user did not use the arguments to specify the items to instantiate,
30563 # then the envvar interface is used. Set only those that are not.
30564 # We use the long form for the default assignment because of an extremely
30565 # bizarre bug on SunOS 4.1.3.
30566 if $ac_need_defaults; then
30567 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30568 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
30569 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
30570 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
30571 fi
30572
30573 # Have a temporary directory for convenience. Make it in the build tree
30574 # simply because there is no reason against having it here, and in addition,
30575 # creating and moving files from /tmp can sometimes cause problems.
30576 # Hook for its removal unless debugging.
30577 # Note that there is a small window in which the directory will not be cleaned:
30578 # after its creation but before its name has been assigned to `$tmp'.
30579 $debug ||
30580 {
30581 tmp=
30582 trap 'exit_status=$?
30583 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
30584 ' 0
30585 trap 'as_fn_exit 1' 1 2 13 15
30586 }
30587 # Create a (secure) tmp directory for tmp files.
30588
30589 {
30590 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
30591 test -n "$tmp" && test -d "$tmp"
30592 } ||
30593 {
30594 tmp=./conf$$-$RANDOM
30595 (umask 077 && mkdir "$tmp")
30596 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
30597
30598 # Set up the scripts for CONFIG_FILES section.
30599 # No need to generate them if there are no CONFIG_FILES.
30600 # This happens for instance with `./config.status config.h'.
30601 if test -n "$CONFIG_FILES"; then
30602
30603 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
30604 ac_cs_awk_getline=:
30605 ac_cs_awk_pipe_init=
30606 ac_cs_awk_read_file='
30607 while ((getline aline < (F[key])) > 0)
30608 print(aline)
30609 close(F[key])'
30610 ac_cs_awk_pipe_fini=
30611 else
30612 ac_cs_awk_getline=false
30613 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
30614 ac_cs_awk_read_file='
30615 print "|#_!!_#|"
30616 print "cat " F[key] " &&"
30617 '$ac_cs_awk_pipe_init
30618 # The final `:' finishes the AND list.
30619 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
30620 fi
30621 ac_cr=`echo X | tr X '\015'`
30622 # On cygwin, bash can eat \r inside `` if the user requested igncr.
30623 # But we know of no other shell where ac_cr would be empty at this
30624 # point, so we can use a bashism as a fallback.
30625 if test "x$ac_cr" = x; then
30626 eval ac_cr=\$\'\\r\'
30627 fi
30628 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
30629 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
30630 ac_cs_awk_cr='\r'
30631 else
30632 ac_cs_awk_cr=$ac_cr
30633 fi
30634
30635 echo 'BEGIN {' >"$tmp/subs1.awk" &&
30636 _ACEOF
30637
30638 # Create commands to substitute file output variables.
30639 {
30640 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
30641 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
30642 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
30643 echo "_ACAWK" &&
30644 echo "_ACEOF"
30645 } >conf$$files.sh &&
30646 . ./conf$$files.sh ||
30647 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
30648 rm -f conf$$files.sh
30649
30650 {
30651 echo "cat >conf$$subs.awk <<_ACEOF" &&
30652 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
30653 echo "_ACEOF"
30654 } >conf$$subs.sh ||
30655 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
30656 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
30657 ac_delim='%!_!# '
30658 for ac_last_try in false false false false false :; do
30659 . ./conf$$subs.sh ||
30660 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
30661
30662 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
30663 if test $ac_delim_n = $ac_delim_num; then
30664 break
30665 elif $ac_last_try; then
30666 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
30667 else
30668 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30669 fi
30670 done
30671 rm -f conf$$subs.sh
30672
30673 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30674 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
30675 _ACEOF
30676 sed -n '
30677 h
30678 s/^/S["/; s/!.*/"]=/
30679 p
30680 g
30681 s/^[^!]*!//
30682 :repl
30683 t repl
30684 s/'"$ac_delim"'$//
30685 t delim
30686 :nl
30687 h
30688 s/\(.\{148\}\).*/\1/
30689 t more1
30690 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
30691 p
30692 n
30693 b repl
30694 :more1
30695 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
30696 p
30697 g
30698 s/.\{148\}//
30699 t nl
30700 :delim
30701 h
30702 s/\(.\{148\}\).*/\1/
30703 t more2
30704 s/["\\]/\\&/g; s/^/"/; s/$/"/
30705 p
30706 b
30707 :more2
30708 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
30709 p
30710 g
30711 s/.\{148\}//
30712 t delim
30713 ' <conf$$subs.awk | sed '
30714 /^[^""]/{
30715 N
30716 s/\n//
30717 }
30718 ' >>$CONFIG_STATUS || ac_write_fail=1
30719 rm -f conf$$subs.awk
30720 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30721 _ACAWK
30722 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
30723 for (key in S) S_is_set[key] = 1
30724 FS = "\a"
30725 \$ac_cs_awk_pipe_init
30726 }
30727 {
30728 line = $ 0
30729 nfields = split(line, field, "@")
30730 substed = 0
30731 len = length(field[1])
30732 for (i = 2; i < nfields; i++) {
30733 key = field[i]
30734 keylen = length(key)
30735 if (S_is_set[key]) {
30736 value = S[key]
30737 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
30738 len += length(value) + length(field[++i])
30739 substed = 1
30740 } else
30741 len += 1 + keylen
30742 }
30743 if (nfields == 3 && !substed) {
30744 key = field[2]
30745 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
30746 \$ac_cs_awk_read_file
30747 next
30748 }
30749 }
30750 print line
30751 }
30752 \$ac_cs_awk_pipe_fini
30753 _ACAWK
30754 _ACEOF
30755 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30756 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
30757 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
30758 else
30759 cat
30760 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
30761 || as_fn_error "could not setup config files machinery" "$LINENO" 5
30762 _ACEOF
30763
30764 # VPATH may cause trouble with some makes, so we remove $(srcdir),
30765 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30766 # trailing colons and then remove the whole line if VPATH becomes empty
30767 # (actually we leave an empty line to preserve line numbers).
30768 if test "x$srcdir" = x.; then
30769 ac_vpsub='/^[ ]*VPATH[ ]*=/{
30770 s/:*\$(srcdir):*/:/
30771 s/:*\${srcdir}:*/:/
30772 s/:*@srcdir@:*/:/
30773 s/^\([^=]*=[ ]*\):*/\1/
30774 s/:*$//
30775 s/^[^=]*=[ ]*$//
30776 }'
30777 fi
30778
30779 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30780 fi # test -n "$CONFIG_FILES"
30781
30782 # Set up the scripts for CONFIG_HEADERS section.
30783 # No need to generate them if there are no CONFIG_HEADERS.
30784 # This happens for instance with `./config.status Makefile'.
30785 if test -n "$CONFIG_HEADERS"; then
30786 cat >"$tmp/defines.awk" <<\_ACAWK ||
30787 BEGIN {
30788 _ACEOF
30789
30790 # Transform confdefs.h into an awk script `defines.awk', embedded as
30791 # here-document in config.status, that substitutes the proper values into
30792 # config.h.in to produce config.h.
30793
30794 # Create a delimiter string that does not exist in confdefs.h, to ease
30795 # handling of long lines.
30796 ac_delim='%!_!# '
30797 for ac_last_try in false false :; do
30798 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
30799 if test -z "$ac_t"; then
30800 break
30801 elif $ac_last_try; then
30802 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
30803 else
30804 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30805 fi
30806 done
30807
30808 # For the awk script, D is an array of macro values keyed by name,
30809 # likewise P contains macro parameters if any. Preserve backslash
30810 # newline sequences.
30811
30812 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
30813 sed -n '
30814 s/.\{148\}/&'"$ac_delim"'/g
30815 t rset
30816 :rset
30817 s/^[ ]*#[ ]*define[ ][ ]*/ /
30818 t def
30819 d
30820 :def
30821 s/\\$//
30822 t bsnl
30823 s/["\\]/\\&/g
30824 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
30825 D["\1"]=" \3"/p
30826 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
30827 d
30828 :bsnl
30829 s/["\\]/\\&/g
30830 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
30831 D["\1"]=" \3\\\\\\n"\\/p
30832 t cont
30833 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
30834 t cont
30835 d
30836 :cont
30837 n
30838 s/.\{148\}/&'"$ac_delim"'/g
30839 t clear
30840 :clear
30841 s/\\$//
30842 t bsnlc
30843 s/["\\]/\\&/g; s/^/"/; s/$/"/p
30844 d
30845 :bsnlc
30846 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
30847 b cont
30848 ' <confdefs.h | sed '
30849 s/'"$ac_delim"'/"\\\
30850 "/g' >>$CONFIG_STATUS || ac_write_fail=1
30851
30852 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30853 for (key in D) D_is_set[key] = 1
30854 FS = "\a"
30855 }
30856 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
30857 line = \$ 0
30858 split(line, arg, " ")
30859 if (arg[1] == "#") {
30860 defundef = arg[2]
30861 mac1 = arg[3]
30862 } else {
30863 defundef = substr(arg[1], 2)
30864 mac1 = arg[2]
30865 }
30866 split(mac1, mac2, "(") #)
30867 macro = mac2[1]
30868 prefix = substr(line, 1, index(line, defundef) - 1)
30869 if (D_is_set[macro]) {
30870 # Preserve the white space surrounding the "#".
30871 print prefix "define", macro P[macro] D[macro]
30872 next
30873 } else {
30874 # Replace #undef with comments. This is necessary, for example,
30875 # in the case of _POSIX_SOURCE, which is predefined and required
30876 # on some systems where configure will not decide to define it.
30877 if (defundef == "undef") {
30878 print "/*", prefix defundef, macro, "*/"
30879 next
30880 }
30881 }
30882 }
30883 { print }
30884 _ACAWK
30885 _ACEOF
30886 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30887 as_fn_error "could not setup config headers machinery" "$LINENO" 5
30888 fi # test -n "$CONFIG_HEADERS"
30889
30890
30891 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
30892 shift
30893 for ac_tag
30894 do
30895 case $ac_tag in
30896 :[FHLC]) ac_mode=$ac_tag; continue;;
30897 esac
30898 case $ac_mode$ac_tag in
30899 :[FHL]*:*);;
30900 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
30901 :[FH]-) ac_tag=-:-;;
30902 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
30903 esac
30904 ac_save_IFS=$IFS
30905 IFS=:
30906 set x $ac_tag
30907 IFS=$ac_save_IFS
30908 shift
30909 ac_file=$1
30910 shift
30911
30912 case $ac_mode in
30913 :L) ac_source=$1;;
30914 :[FH])
30915 ac_file_inputs=
30916 for ac_f
30917 do
30918 case $ac_f in
30919 -) ac_f="$tmp/stdin";;
30920 *) # Look for the file first in the build tree, then in the source tree
30921 # (if the path is not absolute). The absolute path cannot be DOS-style,
30922 # because $ac_f cannot contain `:'.
30923 test -f "$ac_f" ||
30924 case $ac_f in
30925 [\\/$]*) false;;
30926 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
30927 esac ||
30928 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
30929 esac
30930 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
30931 as_fn_append ac_file_inputs " '$ac_f'"
30932 done
30933
30934 # Let's still pretend it is `configure' which instantiates (i.e., don't
30935 # use $as_me), people would be surprised to read:
30936 # /* config.h. Generated by config.status. */
30937 configure_input='Generated from '`
30938 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
30939 `' by configure.'
30940 if test x"$ac_file" != x-; then
30941 configure_input="$ac_file. $configure_input"
30942 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
30943 $as_echo "$as_me: creating $ac_file" >&6;}
30944 fi
30945 # Neutralize special characters interpreted by sed in replacement strings.
30946 case $configure_input in #(
30947 *\&* | *\|* | *\\* )
30948 ac_sed_conf_input=`$as_echo "$configure_input" |
30949 sed 's/[\\\\&|]/\\\\&/g'`;; #(
30950 *) ac_sed_conf_input=$configure_input;;
30951 esac
30952
30953 case $ac_tag in
30954 *:-:* | *:-) cat >"$tmp/stdin" \
30955 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
30956 esac
30957 ;;
30958 esac
30959
30960 ac_dir=`$as_dirname -- "$ac_file" ||
30961 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30962 X"$ac_file" : 'X\(//\)[^/]' \| \
30963 X"$ac_file" : 'X\(//\)$' \| \
30964 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
30965 $as_echo X"$ac_file" |
30966 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30967 s//\1/
30968 q
30969 }
30970 /^X\(\/\/\)[^/].*/{
30971 s//\1/
30972 q
30973 }
30974 /^X\(\/\/\)$/{
30975 s//\1/
30976 q
30977 }
30978 /^X\(\/\).*/{
30979 s//\1/
30980 q
30981 }
30982 s/.*/./; q'`
30983 as_dir="$ac_dir"; as_fn_mkdir_p
30984 ac_builddir=.
30985
30986 case "$ac_dir" in
30987 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
30988 *)
30989 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
30990 # A ".." for each directory in $ac_dir_suffix.
30991 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
30992 case $ac_top_builddir_sub in
30993 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
30994 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
30995 esac ;;
30996 esac
30997 ac_abs_top_builddir=$ac_pwd
30998 ac_abs_builddir=$ac_pwd$ac_dir_suffix
30999 # for backward compatibility:
31000 ac_top_builddir=$ac_top_build_prefix
31001
31002 case $srcdir in
31003 .) # We are building in place.
31004 ac_srcdir=.
31005 ac_top_srcdir=$ac_top_builddir_sub
31006 ac_abs_top_srcdir=$ac_pwd ;;
31007 [\\/]* | ?:[\\/]* ) # Absolute name.
31008 ac_srcdir=$srcdir$ac_dir_suffix;
31009 ac_top_srcdir=$srcdir
31010 ac_abs_top_srcdir=$srcdir ;;
31011 *) # Relative name.
31012 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
31013 ac_top_srcdir=$ac_top_build_prefix$srcdir
31014 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
31015 esac
31016 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
31017
31018
31019 case $ac_mode in
31020 :F)
31021 #
31022 # CONFIG_FILE
31023 #
31024
31025 _ACEOF
31026
31027 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31028 # If the template does not know about datarootdir, expand it.
31029 # FIXME: This hack should be removed a few years after 2.60.
31030 ac_datarootdir_hack=; ac_datarootdir_seen=
31031 ac_sed_dataroot='
31032 /datarootdir/ {
31033 p
31034 q
31035 }
31036 /@datadir@/p
31037 /@docdir@/p
31038 /@infodir@/p
31039 /@localedir@/p
31040 /@mandir@/p'
31041 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
31042 *datarootdir*) ac_datarootdir_seen=yes;;
31043 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
31044 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
31045 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
31046 _ACEOF
31047 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31048 ac_datarootdir_hack='
31049 s&@datadir@&$datadir&g
31050 s&@docdir@&$docdir&g
31051 s&@infodir@&$infodir&g
31052 s&@localedir@&$localedir&g
31053 s&@mandir@&$mandir&g
31054 s&\\\${datarootdir}&$datarootdir&g' ;;
31055 esac
31056 _ACEOF
31057
31058 # Neutralize VPATH when `$srcdir' = `.'.
31059 # Shell code in configure.ac might set extrasub.
31060 # FIXME: do we really want to maintain this feature?
31061 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31062 ac_sed_extra="$ac_vpsub
31063 $extrasub
31064 _ACEOF
31065 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31066 :t
31067 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31068 s|@configure_input@|$ac_sed_conf_input|;t t
31069 s&@top_builddir@&$ac_top_builddir_sub&;t t
31070 s&@top_build_prefix@&$ac_top_build_prefix&;t t
31071 s&@srcdir@&$ac_srcdir&;t t
31072 s&@abs_srcdir@&$ac_abs_srcdir&;t t
31073 s&@top_srcdir@&$ac_top_srcdir&;t t
31074 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
31075 s&@builddir@&$ac_builddir&;t t
31076 s&@abs_builddir@&$ac_abs_builddir&;t t
31077 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
31078 $ac_datarootdir_hack
31079 "
31080 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
31081 if $ac_cs_awk_getline; then
31082 $AWK -f "$tmp/subs.awk"
31083 else
31084 $AWK -f "$tmp/subs.awk" | $SHELL
31085 fi >$tmp/out \
31086 || as_fn_error "could not create $ac_file" "$LINENO" 5
31087
31088 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
31089 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
31090 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
31091 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31092 which seems to be undefined. Please make sure it is defined." >&5
31093 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31094 which seems to be undefined. Please make sure it is defined." >&2;}
31095
31096 rm -f "$tmp/stdin"
31097 case $ac_file in
31098 -) cat "$tmp/out" && rm -f "$tmp/out";;
31099 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
31100 esac \
31101 || as_fn_error "could not create $ac_file" "$LINENO" 5
31102 ;;
31103 :H)
31104 #
31105 # CONFIG_HEADER
31106 #
31107 if test x"$ac_file" != x-; then
31108 {
31109 $as_echo "/* $configure_input */" \
31110 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
31111 } >"$tmp/config.h" \
31112 || as_fn_error "could not create $ac_file" "$LINENO" 5
31113 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
31114 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
31115 $as_echo "$as_me: $ac_file is unchanged" >&6;}
31116 else
31117 rm -f "$ac_file"
31118 mv "$tmp/config.h" "$ac_file" \
31119 || as_fn_error "could not create $ac_file" "$LINENO" 5
31120 fi
31121 else
31122 $as_echo "/* $configure_input */" \
31123 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
31124 || as_fn_error "could not create -" "$LINENO" 5
31125 fi
31126 ;;
31127 :L)
31128 #
31129 # CONFIG_LINK
31130 #
31131
31132 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
31133 :
31134 else
31135 # Prefer the file from the source tree if names are identical.
31136 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
31137 ac_source=$srcdir/$ac_source
31138 fi
31139
31140 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
31141 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
31142
31143 if test ! -r "$ac_source"; then
31144 as_fn_error "$ac_source: file not found" "$LINENO" 5
31145 fi
31146 rm -f "$ac_file"
31147
31148 # Try a relative symlink, then a hard link, then a copy.
31149 case $srcdir in
31150 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
31151 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
31152 esac
31153 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
31154 ln "$ac_source" "$ac_file" 2>/dev/null ||
31155 cp -p "$ac_source" "$ac_file" ||
31156 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
31157 fi
31158 ;;
31159 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
31160 $as_echo "$as_me: executing $ac_file commands" >&6;}
31161 ;;
31162 esac
31163
31164
31165 case $ac_file$ac_mode in
31166 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
31167 "gccdepdir":C)
31168 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs build/$DEPDIR
31169 for lang in $subdirs c-family common
31170 do
31171 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs $lang/$DEPDIR
31172 done ;;
31173 "as":F) chmod +x as ;;
31174 "collect-ld":F) chmod +x collect-ld ;;
31175 "nm":F) chmod +x nm ;;
31176 "default":C)
31177 case ${CONFIG_HEADERS} in
31178 *auto-host.h:config.in*)
31179 echo > cstamp-h ;;
31180 esac
31181 # Make sure all the subdirs exist.
31182 for d in $subdirs doc build common c-family
31183 do
31184 test -d $d || mkdir $d
31185 done
31186 ;;
31187
31188 esac
31189 done # for ac_tag
31190
31191
31192 as_fn_exit 0
31193 _ACEOF
31194 ac_clean_files=$ac_clean_files_save
31195
31196 test $ac_write_fail = 0 ||
31197 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
31198
31199
31200 # configure is writing to config.log, and then calls config.status.
31201 # config.status does its own redirection, appending to config.log.
31202 # Unfortunately, on DOS this fails, as config.log is still kept open
31203 # by configure, so config.status won't be able to write to it; its
31204 # output is simply discarded. So we exec the FD to /dev/null,
31205 # effectively closing config.log, so it can be properly (re)opened and
31206 # appended to by config.status. When coming back to configure, we
31207 # need to make the FD available again.
31208 if test "$no_create" != yes; then
31209 ac_cs_success=:
31210 ac_config_status_args=
31211 test "$silent" = yes &&
31212 ac_config_status_args="$ac_config_status_args --quiet"
31213 exec 5>/dev/null
31214 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31215 exec 5>>config.log
31216 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31217 # would make configure fail if this is the last instruction.
31218 $ac_cs_success || as_fn_exit $?
31219 fi
31220 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
31221 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
31222 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
31223 fi
31224
31225