[PATCH 1/9] ENABLE_CHECKING refactoring
[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 libgcc_visibility
683 gcc_cv_readelf
684 gcc_cv_objdump
685 ORIGINAL_NM_FOR_TARGET
686 gcc_cv_nm
687 ORIGINAL_LD_GOLD_FOR_TARGET
688 ORIGINAL_LD_BFD_FOR_TARGET
689 ORIGINAL_LD_FOR_TARGET
690 ORIGINAL_PLUGIN_LD_FOR_TARGET
691 gcc_cv_ld
692 ORIGINAL_AS_FOR_TARGET
693 gcc_cv_as
694 enable_fast_install
695 objdir
696 OTOOL64
697 OTOOL
698 LIPO
699 NMEDIT
700 DSYMUTIL
701 STRIP
702 OBJDUMP
703 ac_ct_DUMPBIN
704 DUMPBIN
705 LD
706 FGREP
707 SED
708 LIBTOOL
709 collect2
710 STMP_FIXINC
711 BUILD_LDFLAGS
712 BUILD_CXXFLAGS
713 BUILD_CFLAGS
714 CXX_FOR_BUILD
715 CC_FOR_BUILD
716 inhibit_libc
717 SYSTEM_HEADER_DIR
718 ALL
719 CROSS
720 CATOBJEXT
721 GENCAT
722 INSTOBJEXT
723 DATADIRNAME
724 CATALOGS
725 POSUB
726 GMSGFMT
727 XGETTEXT
728 INCINTL
729 LIBINTL_DEP
730 LIBINTL
731 USE_NLS
732 extra_opt_files
733 extra_modes_file
734 NATIVE_SYSTEM_HEADER_DIR
735 objext
736 manext
737 LIBICONV_DEP
738 LTLIBICONV
739 LIBICONV
740 LDEXP_LIB
741 EXTRA_GCC_LIBS
742 GNAT_LIBEXC
743 COLLECT2_LIBS
744 CXXDEPMODE
745 DEPDIR
746 am__leading_dot
747 doc_build_sys
748 AR
749 NM
750 BISON
751 FLEX
752 GENERATED_MANPAGES
753 BUILD_INFO
754 MAKEINFO
755 have_mktemp_command
756 make_compare_target
757 INSTALL_DATA
758 INSTALL_PROGRAM
759 INSTALL
760 ranlib_flags
761 RANLIB
762 LN
763 LN_S
764 AWK
765 SET_MAKE
766 accel_dir_suffix
767 real_target_noncanonical
768 enable_as_accelerator
769 REPORT_BUGS_TEXI
770 REPORT_BUGS_TO
771 PKGVERSION
772 CONFIGURE_SPECS
773 enable_shared
774 enable_fixed_point
775 enable_decimal_float
776 with_float
777 with_cpu
778 enable_multiarch
779 enable_multilib
780 coverage_flags
781 valgrind_command
782 valgrind_path_defines
783 valgrind_path
784 TREECHECKING
785 nocommon_flag
786 noexception_flags
787 warn_cxxflags
788 warn_cflags
789 c_strict_warn
790 strict_warn
791 c_loose_warn
792 loose_warn
793 aliasing_flags
794 CPP
795 EGREP
796 GREP
797 CXXCPP
798 PICFLAG_FOR_TARGET
799 GNATMAKE
800 GNATBIND
801 ac_ct_CXX
802 CXXFLAGS
803 CXX
804 OBJEXT
805 EXEEXT
806 ac_ct_CC
807 CPPFLAGS
808 LDFLAGS
809 CFLAGS
810 CC
811 GENINSRC
812 CROSS_SYSTEM_HEADER_DIR
813 TARGET_SYSTEM_ROOT_DEFINE
814 TARGET_SYSTEM_ROOT
815 SYSROOT_CFLAGS_FOR_TARGET
816 target_subdir
817 host_subdir
818 build_subdir
819 build_libsubdir
820 target_noncanonical
821 target_os
822 target_vendor
823 target_cpu
824 target
825 host_os
826 host_vendor
827 host_cpu
828 host
829 build_os
830 build_vendor
831 build_cpu
832 build
833 target_alias
834 host_alias
835 build_alias
836 LIBS
837 ECHO_T
838 ECHO_N
839 ECHO_C
840 DEFS
841 mandir
842 localedir
843 libdir
844 psdir
845 pdfdir
846 dvidir
847 htmldir
848 infodir
849 docdir
850 oldincludedir
851 includedir
852 localstatedir
853 sharedstatedir
854 sysconfdir
855 datadir
856 datarootdir
857 libexecdir
858 sbindir
859 bindir
860 program_transform_name
861 prefix
862 exec_prefix
863 PACKAGE_URL
864 PACKAGE_BUGREPORT
865 PACKAGE_STRING
866 PACKAGE_VERSION
867 PACKAGE_TARNAME
868 PACKAGE_NAME
869 PATH_SEPARATOR
870 SHELL'
871 ac_subst_files='option_includes
872 language_hooks'
873 ac_user_opts='
874 enable_option_checking
875 with_build_libsubdir
876 with_local_prefix
877 with_native_system_header_dir
878 with_build_sysroot
879 with_sysroot
880 with_gxx_include_dir
881 with_cpp_install_dir
882 enable_generated_files_in_srcdir
883 with_gnu_ld
884 with_ld
885 with_demangler_in_ld
886 with_gnu_as
887 with_as
888 enable_largefile
889 enable_build_format_warnings
890 enable_werror_always
891 enable_checking
892 enable_coverage
893 enable_gather_detailed_mem_stats
894 enable_valgrind_annotations
895 with_stabs
896 enable_multilib
897 enable_multiarch
898 enable___cxa_atexit
899 enable_decimal_float
900 enable_fixed_point
901 enable_threads
902 enable_tls
903 enable_objc_gc
904 with_dwarf2
905 enable_shared
906 with_specs
907 with_pkgversion
908 with_bugurl
909 enable_languages
910 with_multilib_list
911 enable_rpath
912 with_libiconv_prefix
913 enable_sjlj_exceptions
914 enable_secureplt
915 enable_leading_mingw64_underscores
916 enable_cld
917 enable_frame_pointer
918 enable_win32_registry
919 enable_static
920 with_pic
921 enable_fast_install
922 enable_libtool_lock
923 enable_ld
924 enable_gold
925 with_plugin_ld
926 enable_gnu_indirect_function
927 enable_initfini_array
928 enable_comdat
929 enable_fix_cortex_a53_835769
930 enable_fix_cortex_a53_843419
931 with_glibc_version
932 enable_gnu_unique_object
933 enable_linker_build_id
934 enable_default_ssp
935 with_long_double_128
936 with_gc
937 with_system_zlib
938 enable_maintainer_mode
939 enable_link_mutex
940 enable_version_specific_runtime_libs
941 enable_plugin
942 enable_host_shared
943 enable_libquadmath_support
944 with_linker_hash_style
945 with_diagnostics_color
946 enable_default_pie
947 '
948 ac_precious_vars='build_alias
949 host_alias
950 target_alias
951 CC
952 CFLAGS
953 LDFLAGS
954 LIBS
955 CPPFLAGS
956 CXX
957 CXXFLAGS
958 CCC
959 CXXCPP
960 CPP
961 GMPLIBS
962 GMPINC
963 ISLLIBS
964 ISLINC'
965
966
967 # Initialize some variables set by options.
968 ac_init_help=
969 ac_init_version=false
970 ac_unrecognized_opts=
971 ac_unrecognized_sep=
972 # The variables have the same names as the options, with
973 # dashes changed to underlines.
974 cache_file=/dev/null
975 exec_prefix=NONE
976 no_create=
977 no_recursion=
978 prefix=NONE
979 program_prefix=NONE
980 program_suffix=NONE
981 program_transform_name=s,x,x,
982 silent=
983 site=
984 srcdir=
985 verbose=
986 x_includes=NONE
987 x_libraries=NONE
988
989 # Installation directory options.
990 # These are left unexpanded so users can "make install exec_prefix=/foo"
991 # and all the variables that are supposed to be based on exec_prefix
992 # by default will actually change.
993 # Use braces instead of parens because sh, perl, etc. also accept them.
994 # (The list follows the same order as the GNU Coding Standards.)
995 bindir='${exec_prefix}/bin'
996 sbindir='${exec_prefix}/sbin'
997 libexecdir='${exec_prefix}/libexec'
998 datarootdir='${prefix}/share'
999 datadir='${datarootdir}'
1000 sysconfdir='${prefix}/etc'
1001 sharedstatedir='${prefix}/com'
1002 localstatedir='${prefix}/var'
1003 includedir='${prefix}/include'
1004 oldincludedir='/usr/include'
1005 docdir='${datarootdir}/doc/${PACKAGE}'
1006 infodir='${datarootdir}/info'
1007 htmldir='${docdir}'
1008 dvidir='${docdir}'
1009 pdfdir='${docdir}'
1010 psdir='${docdir}'
1011 libdir='${exec_prefix}/lib'
1012 localedir='${datarootdir}/locale'
1013 mandir='${datarootdir}/man'
1014
1015 ac_prev=
1016 ac_dashdash=
1017 for ac_option
1018 do
1019 # If the previous option needs an argument, assign it.
1020 if test -n "$ac_prev"; then
1021 eval $ac_prev=\$ac_option
1022 ac_prev=
1023 continue
1024 fi
1025
1026 case $ac_option in
1027 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1028 *) ac_optarg=yes ;;
1029 esac
1030
1031 # Accept the important Cygnus configure options, so we can diagnose typos.
1032
1033 case $ac_dashdash$ac_option in
1034 --)
1035 ac_dashdash=yes ;;
1036
1037 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1038 ac_prev=bindir ;;
1039 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1040 bindir=$ac_optarg ;;
1041
1042 -build | --build | --buil | --bui | --bu)
1043 ac_prev=build_alias ;;
1044 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1045 build_alias=$ac_optarg ;;
1046
1047 -cache-file | --cache-file | --cache-fil | --cache-fi \
1048 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1049 ac_prev=cache_file ;;
1050 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1051 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1052 cache_file=$ac_optarg ;;
1053
1054 --config-cache | -C)
1055 cache_file=config.cache ;;
1056
1057 -datadir | --datadir | --datadi | --datad)
1058 ac_prev=datadir ;;
1059 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1060 datadir=$ac_optarg ;;
1061
1062 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1063 | --dataroo | --dataro | --datar)
1064 ac_prev=datarootdir ;;
1065 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1066 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1067 datarootdir=$ac_optarg ;;
1068
1069 -disable-* | --disable-*)
1070 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1071 # Reject names that are not valid shell variable names.
1072 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1073 as_fn_error "invalid feature name: $ac_useropt"
1074 ac_useropt_orig=$ac_useropt
1075 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1076 case $ac_user_opts in
1077 *"
1078 "enable_$ac_useropt"
1079 "*) ;;
1080 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1081 ac_unrecognized_sep=', ';;
1082 esac
1083 eval enable_$ac_useropt=no ;;
1084
1085 -docdir | --docdir | --docdi | --doc | --do)
1086 ac_prev=docdir ;;
1087 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1088 docdir=$ac_optarg ;;
1089
1090 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1091 ac_prev=dvidir ;;
1092 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1093 dvidir=$ac_optarg ;;
1094
1095 -enable-* | --enable-*)
1096 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1097 # Reject names that are not valid shell variable names.
1098 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1099 as_fn_error "invalid feature name: $ac_useropt"
1100 ac_useropt_orig=$ac_useropt
1101 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1102 case $ac_user_opts in
1103 *"
1104 "enable_$ac_useropt"
1105 "*) ;;
1106 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1107 ac_unrecognized_sep=', ';;
1108 esac
1109 eval enable_$ac_useropt=\$ac_optarg ;;
1110
1111 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1112 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1113 | --exec | --exe | --ex)
1114 ac_prev=exec_prefix ;;
1115 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1116 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1117 | --exec=* | --exe=* | --ex=*)
1118 exec_prefix=$ac_optarg ;;
1119
1120 -gas | --gas | --ga | --g)
1121 # Obsolete; use --with-gas.
1122 with_gas=yes ;;
1123
1124 -help | --help | --hel | --he | -h)
1125 ac_init_help=long ;;
1126 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1127 ac_init_help=recursive ;;
1128 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1129 ac_init_help=short ;;
1130
1131 -host | --host | --hos | --ho)
1132 ac_prev=host_alias ;;
1133 -host=* | --host=* | --hos=* | --ho=*)
1134 host_alias=$ac_optarg ;;
1135
1136 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1137 ac_prev=htmldir ;;
1138 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1139 | --ht=*)
1140 htmldir=$ac_optarg ;;
1141
1142 -includedir | --includedir | --includedi | --included | --include \
1143 | --includ | --inclu | --incl | --inc)
1144 ac_prev=includedir ;;
1145 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1146 | --includ=* | --inclu=* | --incl=* | --inc=*)
1147 includedir=$ac_optarg ;;
1148
1149 -infodir | --infodir | --infodi | --infod | --info | --inf)
1150 ac_prev=infodir ;;
1151 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1152 infodir=$ac_optarg ;;
1153
1154 -libdir | --libdir | --libdi | --libd)
1155 ac_prev=libdir ;;
1156 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1157 libdir=$ac_optarg ;;
1158
1159 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1160 | --libexe | --libex | --libe)
1161 ac_prev=libexecdir ;;
1162 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1163 | --libexe=* | --libex=* | --libe=*)
1164 libexecdir=$ac_optarg ;;
1165
1166 -localedir | --localedir | --localedi | --localed | --locale)
1167 ac_prev=localedir ;;
1168 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1169 localedir=$ac_optarg ;;
1170
1171 -localstatedir | --localstatedir | --localstatedi | --localstated \
1172 | --localstate | --localstat | --localsta | --localst | --locals)
1173 ac_prev=localstatedir ;;
1174 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1175 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1176 localstatedir=$ac_optarg ;;
1177
1178 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1179 ac_prev=mandir ;;
1180 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1181 mandir=$ac_optarg ;;
1182
1183 -nfp | --nfp | --nf)
1184 # Obsolete; use --without-fp.
1185 with_fp=no ;;
1186
1187 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1188 | --no-cr | --no-c | -n)
1189 no_create=yes ;;
1190
1191 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1192 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1193 no_recursion=yes ;;
1194
1195 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1196 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1197 | --oldin | --oldi | --old | --ol | --o)
1198 ac_prev=oldincludedir ;;
1199 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1200 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1201 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1202 oldincludedir=$ac_optarg ;;
1203
1204 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1205 ac_prev=prefix ;;
1206 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1207 prefix=$ac_optarg ;;
1208
1209 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1210 | --program-pre | --program-pr | --program-p)
1211 ac_prev=program_prefix ;;
1212 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1213 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1214 program_prefix=$ac_optarg ;;
1215
1216 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1217 | --program-suf | --program-su | --program-s)
1218 ac_prev=program_suffix ;;
1219 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1220 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1221 program_suffix=$ac_optarg ;;
1222
1223 -program-transform-name | --program-transform-name \
1224 | --program-transform-nam | --program-transform-na \
1225 | --program-transform-n | --program-transform- \
1226 | --program-transform | --program-transfor \
1227 | --program-transfo | --program-transf \
1228 | --program-trans | --program-tran \
1229 | --progr-tra | --program-tr | --program-t)
1230 ac_prev=program_transform_name ;;
1231 -program-transform-name=* | --program-transform-name=* \
1232 | --program-transform-nam=* | --program-transform-na=* \
1233 | --program-transform-n=* | --program-transform-=* \
1234 | --program-transform=* | --program-transfor=* \
1235 | --program-transfo=* | --program-transf=* \
1236 | --program-trans=* | --program-tran=* \
1237 | --progr-tra=* | --program-tr=* | --program-t=*)
1238 program_transform_name=$ac_optarg ;;
1239
1240 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1241 ac_prev=pdfdir ;;
1242 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1243 pdfdir=$ac_optarg ;;
1244
1245 -psdir | --psdir | --psdi | --psd | --ps)
1246 ac_prev=psdir ;;
1247 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1248 psdir=$ac_optarg ;;
1249
1250 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1251 | -silent | --silent | --silen | --sile | --sil)
1252 silent=yes ;;
1253
1254 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1255 ac_prev=sbindir ;;
1256 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1257 | --sbi=* | --sb=*)
1258 sbindir=$ac_optarg ;;
1259
1260 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1261 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1262 | --sharedst | --shareds | --shared | --share | --shar \
1263 | --sha | --sh)
1264 ac_prev=sharedstatedir ;;
1265 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1266 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1267 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1268 | --sha=* | --sh=*)
1269 sharedstatedir=$ac_optarg ;;
1270
1271 -site | --site | --sit)
1272 ac_prev=site ;;
1273 -site=* | --site=* | --sit=*)
1274 site=$ac_optarg ;;
1275
1276 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1277 ac_prev=srcdir ;;
1278 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1279 srcdir=$ac_optarg ;;
1280
1281 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1282 | --syscon | --sysco | --sysc | --sys | --sy)
1283 ac_prev=sysconfdir ;;
1284 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1285 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1286 sysconfdir=$ac_optarg ;;
1287
1288 -target | --target | --targe | --targ | --tar | --ta | --t)
1289 ac_prev=target_alias ;;
1290 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1291 target_alias=$ac_optarg ;;
1292
1293 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1294 verbose=yes ;;
1295
1296 -version | --version | --versio | --versi | --vers | -V)
1297 ac_init_version=: ;;
1298
1299 -with-* | --with-*)
1300 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1301 # Reject names that are not valid shell variable names.
1302 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1303 as_fn_error "invalid package name: $ac_useropt"
1304 ac_useropt_orig=$ac_useropt
1305 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1306 case $ac_user_opts in
1307 *"
1308 "with_$ac_useropt"
1309 "*) ;;
1310 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1311 ac_unrecognized_sep=', ';;
1312 esac
1313 eval with_$ac_useropt=\$ac_optarg ;;
1314
1315 -without-* | --without-*)
1316 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1317 # Reject names that are not valid shell variable names.
1318 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1319 as_fn_error "invalid package name: $ac_useropt"
1320 ac_useropt_orig=$ac_useropt
1321 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1322 case $ac_user_opts in
1323 *"
1324 "with_$ac_useropt"
1325 "*) ;;
1326 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1327 ac_unrecognized_sep=', ';;
1328 esac
1329 eval with_$ac_useropt=no ;;
1330
1331 --x)
1332 # Obsolete; use --with-x.
1333 with_x=yes ;;
1334
1335 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1336 | --x-incl | --x-inc | --x-in | --x-i)
1337 ac_prev=x_includes ;;
1338 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1339 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1340 x_includes=$ac_optarg ;;
1341
1342 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1343 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1344 ac_prev=x_libraries ;;
1345 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1346 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1347 x_libraries=$ac_optarg ;;
1348
1349 -*) as_fn_error "unrecognized option: \`$ac_option'
1350 Try \`$0 --help' for more information."
1351 ;;
1352
1353 *=*)
1354 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1355 # Reject names that are not valid shell variable names.
1356 case $ac_envvar in #(
1357 '' | [0-9]* | *[!_$as_cr_alnum]* )
1358 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1359 esac
1360 eval $ac_envvar=\$ac_optarg
1361 export $ac_envvar ;;
1362
1363 *)
1364 # FIXME: should be removed in autoconf 3.0.
1365 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1366 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1367 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1368 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1369 ;;
1370
1371 esac
1372 done
1373
1374 if test -n "$ac_prev"; then
1375 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1376 as_fn_error "missing argument to $ac_option"
1377 fi
1378
1379 if test -n "$ac_unrecognized_opts"; then
1380 case $enable_option_checking in
1381 no) ;;
1382 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1383 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1384 esac
1385 fi
1386
1387 # Check all directory arguments for consistency.
1388 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1389 datadir sysconfdir sharedstatedir localstatedir includedir \
1390 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1391 libdir localedir mandir
1392 do
1393 eval ac_val=\$$ac_var
1394 # Remove trailing slashes.
1395 case $ac_val in
1396 */ )
1397 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1398 eval $ac_var=\$ac_val;;
1399 esac
1400 # Be sure to have absolute directory names.
1401 case $ac_val in
1402 [\\/$]* | ?:[\\/]* ) continue;;
1403 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1404 esac
1405 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1406 done
1407
1408 # There might be people who depend on the old broken behavior: `$host'
1409 # used to hold the argument of --host etc.
1410 # FIXME: To remove some day.
1411 build=$build_alias
1412 host=$host_alias
1413 target=$target_alias
1414
1415 # FIXME: To remove some day.
1416 if test "x$host_alias" != x; then
1417 if test "x$build_alias" = x; then
1418 cross_compiling=maybe
1419 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1420 If a cross compiler is detected then cross compile mode will be used." >&2
1421 elif test "x$build_alias" != "x$host_alias"; then
1422 cross_compiling=yes
1423 fi
1424 fi
1425
1426 ac_tool_prefix=
1427 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1428
1429 test "$silent" = yes && exec 6>/dev/null
1430
1431
1432 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1433 ac_ls_di=`ls -di .` &&
1434 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1435 as_fn_error "working directory cannot be determined"
1436 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1437 as_fn_error "pwd does not report name of working directory"
1438
1439
1440 # Find the source files, if location was not specified.
1441 if test -z "$srcdir"; then
1442 ac_srcdir_defaulted=yes
1443 # Try the directory containing this script, then the parent directory.
1444 ac_confdir=`$as_dirname -- "$as_myself" ||
1445 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1446 X"$as_myself" : 'X\(//\)[^/]' \| \
1447 X"$as_myself" : 'X\(//\)$' \| \
1448 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1449 $as_echo X"$as_myself" |
1450 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1451 s//\1/
1452 q
1453 }
1454 /^X\(\/\/\)[^/].*/{
1455 s//\1/
1456 q
1457 }
1458 /^X\(\/\/\)$/{
1459 s//\1/
1460 q
1461 }
1462 /^X\(\/\).*/{
1463 s//\1/
1464 q
1465 }
1466 s/.*/./; q'`
1467 srcdir=$ac_confdir
1468 if test ! -r "$srcdir/$ac_unique_file"; then
1469 srcdir=..
1470 fi
1471 else
1472 ac_srcdir_defaulted=no
1473 fi
1474 if test ! -r "$srcdir/$ac_unique_file"; then
1475 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1476 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1477 fi
1478 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1479 ac_abs_confdir=`(
1480 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1481 pwd)`
1482 # When building in place, set srcdir=.
1483 if test "$ac_abs_confdir" = "$ac_pwd"; then
1484 srcdir=.
1485 fi
1486 # Remove unnecessary trailing slashes from srcdir.
1487 # Double slashes in file names in object file debugging info
1488 # mess up M-x gdb in Emacs.
1489 case $srcdir in
1490 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1491 esac
1492 for ac_var in $ac_precious_vars; do
1493 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1494 eval ac_env_${ac_var}_value=\$${ac_var}
1495 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1496 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1497 done
1498
1499 #
1500 # Report the --help message.
1501 #
1502 if test "$ac_init_help" = "long"; then
1503 # Omit some internal or obsolete options to make the list less imposing.
1504 # This message is too long to be a string in the A/UX 3.1 sh.
1505 cat <<_ACEOF
1506 \`configure' configures this package to adapt to many kinds of systems.
1507
1508 Usage: $0 [OPTION]... [VAR=VALUE]...
1509
1510 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1511 VAR=VALUE. See below for descriptions of some of the useful variables.
1512
1513 Defaults for the options are specified in brackets.
1514
1515 Configuration:
1516 -h, --help display this help and exit
1517 --help=short display options specific to this package
1518 --help=recursive display the short help of all the included packages
1519 -V, --version display version information and exit
1520 -q, --quiet, --silent do not print \`checking...' messages
1521 --cache-file=FILE cache test results in FILE [disabled]
1522 -C, --config-cache alias for \`--cache-file=config.cache'
1523 -n, --no-create do not create output files
1524 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1525
1526 Installation directories:
1527 --prefix=PREFIX install architecture-independent files in PREFIX
1528 [$ac_default_prefix]
1529 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1530 [PREFIX]
1531
1532 By default, \`make install' will install all the files in
1533 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1534 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1535 for instance \`--prefix=\$HOME'.
1536
1537 For better control, use the options below.
1538
1539 Fine tuning of the installation directories:
1540 --bindir=DIR user executables [EPREFIX/bin]
1541 --sbindir=DIR system admin executables [EPREFIX/sbin]
1542 --libexecdir=DIR program executables [EPREFIX/libexec]
1543 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1544 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1545 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1546 --libdir=DIR object code libraries [EPREFIX/lib]
1547 --includedir=DIR C header files [PREFIX/include]
1548 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1549 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1550 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1551 --infodir=DIR info documentation [DATAROOTDIR/info]
1552 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1553 --mandir=DIR man documentation [DATAROOTDIR/man]
1554 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1555 --htmldir=DIR html documentation [DOCDIR]
1556 --dvidir=DIR dvi documentation [DOCDIR]
1557 --pdfdir=DIR pdf documentation [DOCDIR]
1558 --psdir=DIR ps documentation [DOCDIR]
1559 _ACEOF
1560
1561 cat <<\_ACEOF
1562
1563 Program names:
1564 --program-prefix=PREFIX prepend PREFIX to installed program names
1565 --program-suffix=SUFFIX append SUFFIX to installed program names
1566 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1567
1568 System types:
1569 --build=BUILD configure for building on BUILD [guessed]
1570 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1571 --target=TARGET configure for building compilers for TARGET [HOST]
1572 _ACEOF
1573 fi
1574
1575 if test -n "$ac_init_help"; then
1576
1577 cat <<\_ACEOF
1578
1579 Optional Features:
1580 --disable-option-checking ignore unrecognized --enable/--with options
1581 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1582 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1583 --enable-generated-files-in-srcdir
1584 put copies of generated files in source dir intended
1585 for creating source tarballs for users without
1586 texinfo bison or flex
1587 --disable-largefile omit support for large files
1588 --disable-build-format-warnings
1589 don't use -Wformat while building GCC
1590 --enable-werror-always enable -Werror despite compiler version
1591 --enable-checking[=LIST]
1592 enable expensive run-time checks. With LIST, enable
1593 only specific categories of checks. Categories are:
1594 yes,no,all,none,release. Flags are:
1595 assert,df,fold,gc,gcac,gimple,misc,
1596 rtlflag,rtl,runtime,tree,valgrind,types
1597 --enable-coverage[=LEVEL]
1598 enable compiler's code coverage collection. Use to
1599 measure compiler performance and locate unused parts
1600 of the compiler. With LEVEL, specify optimization.
1601 Values are opt, noopt, default is noopt
1602 --enable-gather-detailed-mem-stats
1603 enable detailed memory allocation stats gathering
1604 --enable-valgrind-annotations
1605 enable valgrind runtime interaction
1606 --enable-multilib enable library support for multiple ABIs
1607 --enable-multiarch enable support for multiarch paths
1608 --enable-__cxa_atexit enable __cxa_atexit for C++
1609 --enable-decimal-float={no,yes,bid,dpd}
1610 enable decimal float extension to C. Selecting 'bid'
1611 or 'dpd' choses which decimal floating point format
1612 to use
1613 --enable-fixed-point enable fixed-point arithmetic extension to C
1614 --enable-threads[=LIB] enable thread usage for target GCC, using LIB thread
1615 package
1616 --enable-tls enable or disable generation of tls code overriding
1617 the assembler check for tls support
1618 --enable-objc-gc enable the use of Boehm's garbage collector with the
1619 GNU Objective-C runtime
1620 --disable-shared don't provide a shared libgcc
1621 --enable-languages=LIST specify which front-ends to build
1622 --disable-rpath do not hardcode runtime library paths
1623 --enable-sjlj-exceptions
1624 arrange to use setjmp/longjmp exception handling
1625 --enable-secureplt enable -msecure-plt by default for PowerPC
1626 --enable-leading-mingw64-underscores
1627 enable leading underscores on 64 bit mingw targets
1628 --enable-cld enable -mcld by default for 32bit x86
1629 --enable-frame-pointer enable -fno-omit-frame-pointer by default for 32bit
1630 x86
1631 --disable-win32-registry
1632 disable lookup of installation paths in the Registry
1633 on Windows hosts
1634 --enable-win32-registry enable registry lookup (default)
1635 --enable-win32-registry=KEY
1636 use KEY instead of GCC version as the last portion
1637 of the registry key
1638 --enable-shared[=PKGS] build shared libraries [default=yes]
1639 --enable-static[=PKGS] build static libraries [default=yes]
1640 --enable-fast-install[=PKGS]
1641 optimize for fast installation [default=yes]
1642 --disable-libtool-lock avoid locking (might break parallel builds)
1643 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1644 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1645 --enable-gnu-indirect-function
1646 enable the use of the @gnu_indirect_function to
1647 glibc systems
1648 --enable-initfini-array use .init_array/.fini_array sections
1649 --enable-comdat enable COMDAT group support
1650
1651 --enable-fix-cortex-a53-835769
1652 enable workaround for AArch64 Cortex-A53 erratum
1653 835769 by default
1654 --disable-fix-cortex-a53-835769
1655 disable workaround for AArch64 Cortex-A53 erratum
1656 835769 by default
1657
1658
1659 --enable-fix-cortex-a53-843419
1660 enable workaround for AArch64 Cortex-A53 erratum
1661 843419 by default
1662 --disable-fix-cortex-a53-843419
1663 disable workaround for AArch64 Cortex-A53 erratum
1664 843419 by default
1665
1666 --enable-gnu-unique-object
1667 enable the use of the @gnu_unique_object ELF
1668 extension on glibc systems
1669 --enable-linker-build-id
1670 compiler will always pass --build-id to linker
1671 --enable-default-ssp enable Stack Smashing Protection as default
1672 --enable-maintainer-mode
1673 enable make rules and dependencies not useful (and
1674 sometimes confusing) to the casual installer
1675 --enable-link-mutex avoid linking multiple front-ends at once to avoid
1676 thrashing on the build machine
1677 --enable-version-specific-runtime-libs
1678 specify that runtime libraries should be installed
1679 in a compiler-specific directory
1680 --enable-plugin enable plugin support
1681 --enable-host-shared build host code as shared libraries
1682 --disable-libquadmath-support
1683 disable libquadmath support for Fortran
1684 --enable-default-pie enable Position Independent Executable as default
1685
1686 Optional Packages:
1687 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1688 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1689 --with-build-libsubdir=DIR Directory where to find libraries for build system
1690 --with-local-prefix=DIR specifies directory to put local include
1691 --with-native-system-header-dir=dir
1692 use dir as the directory to look for standard
1693 system header files in. Defaults to /usr/include.
1694 --with-build-sysroot=sysroot
1695 use sysroot as the system root during the build
1696 --with-sysroot[=DIR] search for usr/lib, usr/include, et al, within DIR
1697 --with-gxx-include-dir=DIR
1698 specifies directory to put g++ header files
1699 --with-cpp-install-dir=DIR
1700 install the user visible C preprocessor in DIR
1701 (relative to PREFIX) as well as PREFIX/bin
1702 --with-gnu-ld arrange to work with GNU ld
1703 --with-ld arrange to use the specified ld (full pathname)
1704 --with-demangler-in-ld try to use demangler in GNU ld
1705 --with-gnu-as arrange to work with GNU as
1706 --with-as arrange to use the specified as (full pathname)
1707 --with-stabs arrange to use stabs instead of host debug format
1708 --with-dwarf2 force the default debug format to be DWARF 2
1709 --with-specs=SPECS add SPECS to driver command-line processing
1710 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1711 --with-bugurl=URL Direct users to URL to report a bug
1712 --with-multilib-list select multilibs (AArch64, SH and x86-64 only)
1713 --with-gnu-ld assume the C compiler uses GNU ld default=no
1714 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1715 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1716 --with-pic try to use only PIC/non-PIC objects [default=use
1717 both]
1718 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1719 --with-plugin-ld=[ARG] specify the plugin linker
1720 --with-glibc-version=M.N
1721 assume GCC used with glibc version M.N or later
1722 --with-long-double-128 use 128-bit long double by default
1723 --with-gc={page,zone} this option is not supported anymore. It used to
1724 choose the garbage collection mechanism to use with
1725 the compiler
1726 --with-system-zlib use installed libz
1727 --with-linker-hash-style={sysv,gnu,both}
1728 specify the linker hash style
1729 --with-diagnostics-color={never,auto,auto-if-env,always}
1730 specify the default of -fdiagnostics-color option
1731 auto-if-env stands for -fdiagnostics-color=auto if
1732 GCC_COLOR environment variable is present and
1733 -fdiagnostics-color=never otherwise
1734
1735 Some influential environment variables:
1736 CC C compiler command
1737 CFLAGS C compiler flags
1738 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1739 nonstandard directory <lib dir>
1740 LIBS libraries to pass to the linker, e.g. -l<library>
1741 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1742 you have headers in a nonstandard directory <include dir>
1743 CXX C++ compiler command
1744 CXXFLAGS C++ compiler flags
1745 CXXCPP C++ preprocessor
1746 CPP C preprocessor
1747 GMPLIBS How to link GMP
1748 GMPINC How to find GMP include files
1749 ISLLIBS How to link ISL
1750 ISLINC How to find ISL include files
1751
1752 Use these variables to override the choices made by `configure' or to help
1753 it to find libraries and programs with nonstandard names/locations.
1754
1755 Report bugs to the package provider.
1756 _ACEOF
1757 ac_status=$?
1758 fi
1759
1760 if test "$ac_init_help" = "recursive"; then
1761 # If there are subdirs, report their specific --help.
1762 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1763 test -d "$ac_dir" ||
1764 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1765 continue
1766 ac_builddir=.
1767
1768 case "$ac_dir" in
1769 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1770 *)
1771 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1772 # A ".." for each directory in $ac_dir_suffix.
1773 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1774 case $ac_top_builddir_sub in
1775 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1776 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1777 esac ;;
1778 esac
1779 ac_abs_top_builddir=$ac_pwd
1780 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1781 # for backward compatibility:
1782 ac_top_builddir=$ac_top_build_prefix
1783
1784 case $srcdir in
1785 .) # We are building in place.
1786 ac_srcdir=.
1787 ac_top_srcdir=$ac_top_builddir_sub
1788 ac_abs_top_srcdir=$ac_pwd ;;
1789 [\\/]* | ?:[\\/]* ) # Absolute name.
1790 ac_srcdir=$srcdir$ac_dir_suffix;
1791 ac_top_srcdir=$srcdir
1792 ac_abs_top_srcdir=$srcdir ;;
1793 *) # Relative name.
1794 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1795 ac_top_srcdir=$ac_top_build_prefix$srcdir
1796 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1797 esac
1798 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1799
1800 cd "$ac_dir" || { ac_status=$?; continue; }
1801 # Check for guested configure.
1802 if test -f "$ac_srcdir/configure.gnu"; then
1803 echo &&
1804 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1805 elif test -f "$ac_srcdir/configure"; then
1806 echo &&
1807 $SHELL "$ac_srcdir/configure" --help=recursive
1808 else
1809 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1810 fi || ac_status=$?
1811 cd "$ac_pwd" || { ac_status=$?; break; }
1812 done
1813 fi
1814
1815 test -n "$ac_init_help" && exit $ac_status
1816 if $ac_init_version; then
1817 cat <<\_ACEOF
1818 configure
1819 generated by GNU Autoconf 2.64
1820
1821 Copyright (C) 2009 Free Software Foundation, Inc.
1822 This configure script is free software; the Free Software Foundation
1823 gives unlimited permission to copy, distribute and modify it.
1824 _ACEOF
1825 exit
1826 fi
1827
1828 ## ------------------------ ##
1829 ## Autoconf initialization. ##
1830 ## ------------------------ ##
1831
1832 # ac_fn_c_try_compile LINENO
1833 # --------------------------
1834 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1835 ac_fn_c_try_compile ()
1836 {
1837 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1838 rm -f conftest.$ac_objext
1839 if { { ac_try="$ac_compile"
1840 case "(($ac_try" in
1841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1842 *) ac_try_echo=$ac_try;;
1843 esac
1844 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1845 $as_echo "$ac_try_echo"; } >&5
1846 (eval "$ac_compile") 2>conftest.err
1847 ac_status=$?
1848 if test -s conftest.err; then
1849 grep -v '^ *+' conftest.err >conftest.er1
1850 cat conftest.er1 >&5
1851 mv -f conftest.er1 conftest.err
1852 fi
1853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1854 test $ac_status = 0; } && {
1855 test -z "$ac_c_werror_flag" ||
1856 test ! -s conftest.err
1857 } && test -s conftest.$ac_objext; then :
1858 ac_retval=0
1859 else
1860 $as_echo "$as_me: failed program was:" >&5
1861 sed 's/^/| /' conftest.$ac_ext >&5
1862
1863 ac_retval=1
1864 fi
1865 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1866 return $ac_retval
1867
1868 } # ac_fn_c_try_compile
1869
1870 # ac_fn_cxx_try_compile LINENO
1871 # ----------------------------
1872 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1873 ac_fn_cxx_try_compile ()
1874 {
1875 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1876 rm -f conftest.$ac_objext
1877 if { { ac_try="$ac_compile"
1878 case "(($ac_try" in
1879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1880 *) ac_try_echo=$ac_try;;
1881 esac
1882 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1883 $as_echo "$ac_try_echo"; } >&5
1884 (eval "$ac_compile") 2>conftest.err
1885 ac_status=$?
1886 if test -s conftest.err; then
1887 grep -v '^ *+' conftest.err >conftest.er1
1888 cat conftest.er1 >&5
1889 mv -f conftest.er1 conftest.err
1890 fi
1891 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1892 test $ac_status = 0; } && {
1893 test -z "$ac_cxx_werror_flag" ||
1894 test ! -s conftest.err
1895 } && test -s conftest.$ac_objext; then :
1896 ac_retval=0
1897 else
1898 $as_echo "$as_me: failed program was:" >&5
1899 sed 's/^/| /' conftest.$ac_ext >&5
1900
1901 ac_retval=1
1902 fi
1903 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1904 return $ac_retval
1905
1906 } # ac_fn_cxx_try_compile
1907
1908 # ac_fn_cxx_try_cpp LINENO
1909 # ------------------------
1910 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1911 ac_fn_cxx_try_cpp ()
1912 {
1913 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1914 if { { ac_try="$ac_cpp conftest.$ac_ext"
1915 case "(($ac_try" in
1916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1917 *) ac_try_echo=$ac_try;;
1918 esac
1919 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1920 $as_echo "$ac_try_echo"; } >&5
1921 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1922 ac_status=$?
1923 if test -s conftest.err; then
1924 grep -v '^ *+' conftest.err >conftest.er1
1925 cat conftest.er1 >&5
1926 mv -f conftest.er1 conftest.err
1927 fi
1928 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1929 test $ac_status = 0; } >/dev/null && {
1930 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1931 test ! -s conftest.err
1932 }; then :
1933 ac_retval=0
1934 else
1935 $as_echo "$as_me: failed program was:" >&5
1936 sed 's/^/| /' conftest.$ac_ext >&5
1937
1938 ac_retval=1
1939 fi
1940 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1941 return $ac_retval
1942
1943 } # ac_fn_cxx_try_cpp
1944
1945 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
1946 # ---------------------------------------------------------
1947 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1948 # the include files in INCLUDES and setting the cache variable VAR
1949 # accordingly.
1950 ac_fn_cxx_check_header_mongrel ()
1951 {
1952 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1953 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1955 $as_echo_n "checking for $2... " >&6; }
1956 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1957 $as_echo_n "(cached) " >&6
1958 fi
1959 eval ac_res=\$$3
1960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1961 $as_echo "$ac_res" >&6; }
1962 else
1963 # Is the header compilable?
1964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1965 $as_echo_n "checking $2 usability... " >&6; }
1966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1967 /* end confdefs.h. */
1968 $4
1969 #include <$2>
1970 _ACEOF
1971 if ac_fn_cxx_try_compile "$LINENO"; then :
1972 ac_header_compiler=yes
1973 else
1974 ac_header_compiler=no
1975 fi
1976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1978 $as_echo "$ac_header_compiler" >&6; }
1979
1980 # Is the header present?
1981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1982 $as_echo_n "checking $2 presence... " >&6; }
1983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1984 /* end confdefs.h. */
1985 #include <$2>
1986 _ACEOF
1987 if ac_fn_cxx_try_cpp "$LINENO"; then :
1988 ac_header_preproc=yes
1989 else
1990 ac_header_preproc=no
1991 fi
1992 rm -f conftest.err conftest.$ac_ext
1993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1994 $as_echo "$ac_header_preproc" >&6; }
1995
1996 # So? What about this header?
1997 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
1998 yes:no: )
1999 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2000 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2001 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2002 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2003 ;;
2004 no:yes:* )
2005 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2006 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2007 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2008 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2010 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2011 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2012 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2013 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2014 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2015 ;;
2016 esac
2017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2018 $as_echo_n "checking for $2... " >&6; }
2019 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2020 $as_echo_n "(cached) " >&6
2021 else
2022 eval "$3=\$ac_header_compiler"
2023 fi
2024 eval ac_res=\$$3
2025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2026 $as_echo "$ac_res" >&6; }
2027 fi
2028 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2029
2030 } # ac_fn_cxx_check_header_mongrel
2031
2032 # ac_fn_cxx_try_run LINENO
2033 # ------------------------
2034 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2035 # that executables *can* be run.
2036 ac_fn_cxx_try_run ()
2037 {
2038 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2039 if { { ac_try="$ac_link"
2040 case "(($ac_try" in
2041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2042 *) ac_try_echo=$ac_try;;
2043 esac
2044 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2045 $as_echo "$ac_try_echo"; } >&5
2046 (eval "$ac_link") 2>&5
2047 ac_status=$?
2048 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2049 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2050 { { case "(($ac_try" in
2051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2052 *) ac_try_echo=$ac_try;;
2053 esac
2054 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2055 $as_echo "$ac_try_echo"; } >&5
2056 (eval "$ac_try") 2>&5
2057 ac_status=$?
2058 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2059 test $ac_status = 0; }; }; then :
2060 ac_retval=0
2061 else
2062 $as_echo "$as_me: program exited with status $ac_status" >&5
2063 $as_echo "$as_me: failed program was:" >&5
2064 sed 's/^/| /' conftest.$ac_ext >&5
2065
2066 ac_retval=$ac_status
2067 fi
2068 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2069 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2070 return $ac_retval
2071
2072 } # ac_fn_cxx_try_run
2073
2074 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2075 # ---------------------------------------------------------
2076 # Tests whether HEADER exists and can be compiled using the include files in
2077 # INCLUDES, setting the cache variable VAR accordingly.
2078 ac_fn_cxx_check_header_compile ()
2079 {
2080 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2082 $as_echo_n "checking for $2... " >&6; }
2083 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2084 $as_echo_n "(cached) " >&6
2085 else
2086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2087 /* end confdefs.h. */
2088 $4
2089 #include <$2>
2090 _ACEOF
2091 if ac_fn_cxx_try_compile "$LINENO"; then :
2092 eval "$3=yes"
2093 else
2094 eval "$3=no"
2095 fi
2096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2097 fi
2098 eval ac_res=\$$3
2099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2100 $as_echo "$ac_res" >&6; }
2101 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2102
2103 } # ac_fn_cxx_check_header_compile
2104
2105 # ac_fn_c_try_cpp LINENO
2106 # ----------------------
2107 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2108 ac_fn_c_try_cpp ()
2109 {
2110 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2111 if { { ac_try="$ac_cpp conftest.$ac_ext"
2112 case "(($ac_try" in
2113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2114 *) ac_try_echo=$ac_try;;
2115 esac
2116 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2117 $as_echo "$ac_try_echo"; } >&5
2118 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2119 ac_status=$?
2120 if test -s conftest.err; then
2121 grep -v '^ *+' conftest.err >conftest.er1
2122 cat conftest.er1 >&5
2123 mv -f conftest.er1 conftest.err
2124 fi
2125 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2126 test $ac_status = 0; } >/dev/null && {
2127 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2128 test ! -s conftest.err
2129 }; then :
2130 ac_retval=0
2131 else
2132 $as_echo "$as_me: failed program was:" >&5
2133 sed 's/^/| /' conftest.$ac_ext >&5
2134
2135 ac_retval=1
2136 fi
2137 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2138 return $ac_retval
2139
2140 } # ac_fn_c_try_cpp
2141
2142 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2143 # ----------------------------------------------
2144 # Tries to find the compile-time value of EXPR in a program that includes
2145 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2146 # computed
2147 ac_fn_cxx_compute_int ()
2148 {
2149 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2150 if test "$cross_compiling" = yes; then
2151 # Depending upon the size, compute the lo and hi bounds.
2152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2153 /* end confdefs.h. */
2154 $4
2155 int
2156 main ()
2157 {
2158 static int test_array [1 - 2 * !(($2) >= 0)];
2159 test_array [0] = 0
2160
2161 ;
2162 return 0;
2163 }
2164 _ACEOF
2165 if ac_fn_cxx_try_compile "$LINENO"; then :
2166 ac_lo=0 ac_mid=0
2167 while :; do
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) <= $ac_mid)];
2175 test_array [0] = 0
2176
2177 ;
2178 return 0;
2179 }
2180 _ACEOF
2181 if ac_fn_cxx_try_compile "$LINENO"; then :
2182 ac_hi=$ac_mid; break
2183 else
2184 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2185 if test $ac_lo -le $ac_mid; then
2186 ac_lo= ac_hi=
2187 break
2188 fi
2189 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2190 fi
2191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2192 done
2193 else
2194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2195 /* end confdefs.h. */
2196 $4
2197 int
2198 main ()
2199 {
2200 static int test_array [1 - 2 * !(($2) < 0)];
2201 test_array [0] = 0
2202
2203 ;
2204 return 0;
2205 }
2206 _ACEOF
2207 if ac_fn_cxx_try_compile "$LINENO"; then :
2208 ac_hi=-1 ac_mid=-1
2209 while :; do
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) >= $ac_mid)];
2217 test_array [0] = 0
2218
2219 ;
2220 return 0;
2221 }
2222 _ACEOF
2223 if ac_fn_cxx_try_compile "$LINENO"; then :
2224 ac_lo=$ac_mid; break
2225 else
2226 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2227 if test $ac_mid -le $ac_hi; then
2228 ac_lo= ac_hi=
2229 break
2230 fi
2231 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2232 fi
2233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2234 done
2235 else
2236 ac_lo= ac_hi=
2237 fi
2238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2239 fi
2240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2241 # Binary search between lo and hi bounds.
2242 while test "x$ac_lo" != "x$ac_hi"; do
2243 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2245 /* end confdefs.h. */
2246 $4
2247 int
2248 main ()
2249 {
2250 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2251 test_array [0] = 0
2252
2253 ;
2254 return 0;
2255 }
2256 _ACEOF
2257 if ac_fn_cxx_try_compile "$LINENO"; then :
2258 ac_hi=$ac_mid
2259 else
2260 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2261 fi
2262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2263 done
2264 case $ac_lo in #((
2265 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2266 '') ac_retval=1 ;;
2267 esac
2268 else
2269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2270 /* end confdefs.h. */
2271 $4
2272 static long int longval () { return $2; }
2273 static unsigned long int ulongval () { return $2; }
2274 #include <stdio.h>
2275 #include <stdlib.h>
2276 int
2277 main ()
2278 {
2279
2280 FILE *f = fopen ("conftest.val", "w");
2281 if (! f)
2282 return 1;
2283 if (($2) < 0)
2284 {
2285 long int i = longval ();
2286 if (i != ($2))
2287 return 1;
2288 fprintf (f, "%ld", i);
2289 }
2290 else
2291 {
2292 unsigned long int i = ulongval ();
2293 if (i != ($2))
2294 return 1;
2295 fprintf (f, "%lu", i);
2296 }
2297 /* Do not output a trailing newline, as this causes \r\n confusion
2298 on some platforms. */
2299 return ferror (f) || fclose (f) != 0;
2300
2301 ;
2302 return 0;
2303 }
2304 _ACEOF
2305 if ac_fn_cxx_try_run "$LINENO"; then :
2306 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2307 else
2308 ac_retval=1
2309 fi
2310 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2311 conftest.$ac_objext conftest.beam conftest.$ac_ext
2312 rm -f conftest.val
2313
2314 fi
2315 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2316 return $ac_retval
2317
2318 } # ac_fn_cxx_compute_int
2319
2320 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2321 # ---------------------------------------------
2322 # Tests whether TYPE exists after having included INCLUDES, setting cache
2323 # variable VAR accordingly.
2324 ac_fn_cxx_check_type ()
2325 {
2326 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2328 $as_echo_n "checking for $2... " >&6; }
2329 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2330 $as_echo_n "(cached) " >&6
2331 else
2332 eval "$3=no"
2333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2334 /* end confdefs.h. */
2335 $4
2336 int
2337 main ()
2338 {
2339 if (sizeof ($2))
2340 return 0;
2341 ;
2342 return 0;
2343 }
2344 _ACEOF
2345 if ac_fn_cxx_try_compile "$LINENO"; then :
2346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2347 /* end confdefs.h. */
2348 $4
2349 int
2350 main ()
2351 {
2352 if (sizeof (($2)))
2353 return 0;
2354 ;
2355 return 0;
2356 }
2357 _ACEOF
2358 if ac_fn_cxx_try_compile "$LINENO"; then :
2359
2360 else
2361 eval "$3=yes"
2362 fi
2363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2364 fi
2365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2366 fi
2367 eval ac_res=\$$3
2368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2369 $as_echo "$ac_res" >&6; }
2370 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2371
2372 } # ac_fn_cxx_check_type
2373
2374 # ac_fn_c_find_intX_t LINENO BITS VAR
2375 # -----------------------------------
2376 # Finds a signed integer type with width BITS, setting cache variable VAR
2377 # accordingly.
2378 ac_fn_c_find_intX_t ()
2379 {
2380 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2382 $as_echo_n "checking for int$2_t... " >&6; }
2383 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2384 $as_echo_n "(cached) " >&6
2385 else
2386 eval "$3=no"
2387 for ac_type in int$2_t 'int' 'long int' \
2388 'long long int' 'short int' 'signed char'; do
2389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2390 /* end confdefs.h. */
2391 $ac_includes_default
2392 int
2393 main ()
2394 {
2395 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2396 test_array [0] = 0
2397
2398 ;
2399 return 0;
2400 }
2401 _ACEOF
2402 if ac_fn_cxx_try_compile "$LINENO"; then :
2403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2404 /* end confdefs.h. */
2405 $ac_includes_default
2406 int
2407 main ()
2408 {
2409 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2410 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2411 test_array [0] = 0
2412
2413 ;
2414 return 0;
2415 }
2416 _ACEOF
2417 if ac_fn_cxx_try_compile "$LINENO"; then :
2418
2419 else
2420 case $ac_type in #(
2421 int$2_t) :
2422 eval "$3=yes" ;; #(
2423 *) :
2424 eval "$3=\$ac_type" ;;
2425 esac
2426 fi
2427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2428 fi
2429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2430 eval as_val=\$$3
2431 if test "x$as_val" = x""no; then :
2432
2433 else
2434 break
2435 fi
2436 done
2437 fi
2438 eval ac_res=\$$3
2439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2440 $as_echo "$ac_res" >&6; }
2441 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2442
2443 } # ac_fn_c_find_intX_t
2444
2445 # ac_fn_cxx_try_link LINENO
2446 # -------------------------
2447 # Try to link conftest.$ac_ext, and return whether this succeeded.
2448 ac_fn_cxx_try_link ()
2449 {
2450 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2451 rm -f conftest.$ac_objext conftest$ac_exeext
2452 if { { ac_try="$ac_link"
2453 case "(($ac_try" in
2454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2455 *) ac_try_echo=$ac_try;;
2456 esac
2457 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2458 $as_echo "$ac_try_echo"; } >&5
2459 (eval "$ac_link") 2>conftest.err
2460 ac_status=$?
2461 if test -s conftest.err; then
2462 grep -v '^ *+' conftest.err >conftest.er1
2463 cat conftest.er1 >&5
2464 mv -f conftest.er1 conftest.err
2465 fi
2466 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2467 test $ac_status = 0; } && {
2468 test -z "$ac_cxx_werror_flag" ||
2469 test ! -s conftest.err
2470 } && test -s conftest$ac_exeext && {
2471 test "$cross_compiling" = yes ||
2472 $as_test_x conftest$ac_exeext
2473 }; then :
2474 ac_retval=0
2475 else
2476 $as_echo "$as_me: failed program was:" >&5
2477 sed 's/^/| /' conftest.$ac_ext >&5
2478
2479 ac_retval=1
2480 fi
2481 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2482 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2483 # interfere with the next link command; also delete a directory that is
2484 # left behind by Apple's compiler. We do this before executing the actions.
2485 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2486 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2487 return $ac_retval
2488
2489 } # ac_fn_cxx_try_link
2490
2491 # ac_fn_c_find_uintX_t LINENO BITS VAR
2492 # ------------------------------------
2493 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2494 # accordingly.
2495 ac_fn_c_find_uintX_t ()
2496 {
2497 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2499 $as_echo_n "checking for uint$2_t... " >&6; }
2500 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2501 $as_echo_n "(cached) " >&6
2502 else
2503 eval "$3=no"
2504 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2505 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2507 /* end confdefs.h. */
2508 $ac_includes_default
2509 int
2510 main ()
2511 {
2512 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2513 test_array [0] = 0
2514
2515 ;
2516 return 0;
2517 }
2518 _ACEOF
2519 if ac_fn_cxx_try_compile "$LINENO"; then :
2520 case $ac_type in #(
2521 uint$2_t) :
2522 eval "$3=yes" ;; #(
2523 *) :
2524 eval "$3=\$ac_type" ;;
2525 esac
2526 fi
2527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2528 eval as_val=\$$3
2529 if test "x$as_val" = x""no; then :
2530
2531 else
2532 break
2533 fi
2534 done
2535 fi
2536 eval ac_res=\$$3
2537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2538 $as_echo "$ac_res" >&6; }
2539 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2540
2541 } # ac_fn_c_find_uintX_t
2542
2543 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2544 # ------------------------------------------------
2545 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2546 ac_fn_cxx_check_header_preproc ()
2547 {
2548 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2550 $as_echo_n "checking for $2... " >&6; }
2551 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2552 $as_echo_n "(cached) " >&6
2553 else
2554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2555 /* end confdefs.h. */
2556 #include <$2>
2557 _ACEOF
2558 if ac_fn_cxx_try_cpp "$LINENO"; then :
2559 eval "$3=yes"
2560 else
2561 eval "$3=no"
2562 fi
2563 rm -f conftest.err conftest.$ac_ext
2564 fi
2565 eval ac_res=\$$3
2566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2567 $as_echo "$ac_res" >&6; }
2568 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2569
2570 } # ac_fn_cxx_check_header_preproc
2571
2572 # ac_fn_cxx_check_func LINENO FUNC VAR
2573 # ------------------------------------
2574 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2575 ac_fn_cxx_check_func ()
2576 {
2577 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2579 $as_echo_n "checking for $2... " >&6; }
2580 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2581 $as_echo_n "(cached) " >&6
2582 else
2583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2584 /* end confdefs.h. */
2585 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2586 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2587 #define $2 innocuous_$2
2588
2589 /* System header to define __stub macros and hopefully few prototypes,
2590 which can conflict with char $2 (); below.
2591 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2592 <limits.h> exists even on freestanding compilers. */
2593
2594 #ifdef __STDC__
2595 # include <limits.h>
2596 #else
2597 # include <assert.h>
2598 #endif
2599
2600 #undef $2
2601
2602 /* Override any GCC internal prototype to avoid an error.
2603 Use char because int might match the return type of a GCC
2604 builtin and then its argument prototype would still apply. */
2605 #ifdef __cplusplus
2606 extern "C"
2607 #endif
2608 char $2 ();
2609 /* The GNU C library defines this for functions which it implements
2610 to always fail with ENOSYS. Some functions are actually named
2611 something starting with __ and the normal name is an alias. */
2612 #if defined __stub_$2 || defined __stub___$2
2613 choke me
2614 #endif
2615
2616 int
2617 main ()
2618 {
2619 return $2 ();
2620 ;
2621 return 0;
2622 }
2623 _ACEOF
2624 if ac_fn_cxx_try_link "$LINENO"; then :
2625 eval "$3=yes"
2626 else
2627 eval "$3=no"
2628 fi
2629 rm -f core conftest.err conftest.$ac_objext \
2630 conftest$ac_exeext conftest.$ac_ext
2631 fi
2632 eval ac_res=\$$3
2633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2634 $as_echo "$ac_res" >&6; }
2635 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2636
2637 } # ac_fn_cxx_check_func
2638
2639 # ac_fn_cxx_check_decl LINENO SYMBOL VAR
2640 # --------------------------------------
2641 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2642 ac_fn_cxx_check_decl ()
2643 {
2644 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2645 as_decl_name=`echo $2|sed 's/ *(.*//'`
2646 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2648 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2649 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2650 $as_echo_n "(cached) " >&6
2651 else
2652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2653 /* end confdefs.h. */
2654 $4
2655 int
2656 main ()
2657 {
2658 #ifndef $as_decl_name
2659 #ifdef __cplusplus
2660 (void) $as_decl_use;
2661 #else
2662 (void) $as_decl_name;
2663 #endif
2664 #endif
2665
2666 ;
2667 return 0;
2668 }
2669 _ACEOF
2670 if ac_fn_cxx_try_compile "$LINENO"; then :
2671 eval "$3=yes"
2672 else
2673 eval "$3=no"
2674 fi
2675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2676 fi
2677 eval ac_res=\$$3
2678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2679 $as_echo "$ac_res" >&6; }
2680 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2681
2682 } # ac_fn_cxx_check_decl
2683
2684 # ac_fn_c_try_link LINENO
2685 # -----------------------
2686 # Try to link conftest.$ac_ext, and return whether this succeeded.
2687 ac_fn_c_try_link ()
2688 {
2689 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2690 rm -f conftest.$ac_objext conftest$ac_exeext
2691 if { { ac_try="$ac_link"
2692 case "(($ac_try" in
2693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2694 *) ac_try_echo=$ac_try;;
2695 esac
2696 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2697 $as_echo "$ac_try_echo"; } >&5
2698 (eval "$ac_link") 2>conftest.err
2699 ac_status=$?
2700 if test -s conftest.err; then
2701 grep -v '^ *+' conftest.err >conftest.er1
2702 cat conftest.er1 >&5
2703 mv -f conftest.er1 conftest.err
2704 fi
2705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2706 test $ac_status = 0; } && {
2707 test -z "$ac_c_werror_flag" ||
2708 test ! -s conftest.err
2709 } && test -s conftest$ac_exeext && {
2710 test "$cross_compiling" = yes ||
2711 $as_test_x conftest$ac_exeext
2712 }; then :
2713 ac_retval=0
2714 else
2715 $as_echo "$as_me: failed program was:" >&5
2716 sed 's/^/| /' conftest.$ac_ext >&5
2717
2718 ac_retval=1
2719 fi
2720 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2721 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2722 # interfere with the next link command; also delete a directory that is
2723 # left behind by Apple's compiler. We do this before executing the actions.
2724 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2725 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2726 return $ac_retval
2727
2728 } # ac_fn_c_try_link
2729
2730 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2731 # ----------------------------------------------
2732 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2733 ac_fn_c_check_header_preproc ()
2734 {
2735 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2737 $as_echo_n "checking for $2... " >&6; }
2738 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2739 $as_echo_n "(cached) " >&6
2740 else
2741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2742 /* end confdefs.h. */
2743 #include <$2>
2744 _ACEOF
2745 if ac_fn_c_try_cpp "$LINENO"; then :
2746 eval "$3=yes"
2747 else
2748 eval "$3=no"
2749 fi
2750 rm -f conftest.err conftest.$ac_ext
2751 fi
2752 eval ac_res=\$$3
2753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2754 $as_echo "$ac_res" >&6; }
2755 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2756
2757 } # ac_fn_c_check_header_preproc
2758
2759 # ac_fn_c_check_func LINENO FUNC VAR
2760 # ----------------------------------
2761 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2762 ac_fn_c_check_func ()
2763 {
2764 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2766 $as_echo_n "checking for $2... " >&6; }
2767 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2768 $as_echo_n "(cached) " >&6
2769 else
2770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2771 /* end confdefs.h. */
2772 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2773 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2774 #define $2 innocuous_$2
2775
2776 /* System header to define __stub macros and hopefully few prototypes,
2777 which can conflict with char $2 (); below.
2778 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2779 <limits.h> exists even on freestanding compilers. */
2780
2781 #ifdef __STDC__
2782 # include <limits.h>
2783 #else
2784 # include <assert.h>
2785 #endif
2786
2787 #undef $2
2788
2789 /* Override any GCC internal prototype to avoid an error.
2790 Use char because int might match the return type of a GCC
2791 builtin and then its argument prototype would still apply. */
2792 #ifdef __cplusplus
2793 extern "C"
2794 #endif
2795 char $2 ();
2796 /* The GNU C library defines this for functions which it implements
2797 to always fail with ENOSYS. Some functions are actually named
2798 something starting with __ and the normal name is an alias. */
2799 #if defined __stub_$2 || defined __stub___$2
2800 choke me
2801 #endif
2802
2803 int
2804 main ()
2805 {
2806 return $2 ();
2807 ;
2808 return 0;
2809 }
2810 _ACEOF
2811 if ac_fn_c_try_link "$LINENO"; then :
2812 eval "$3=yes"
2813 else
2814 eval "$3=no"
2815 fi
2816 rm -f core conftest.err conftest.$ac_objext \
2817 conftest$ac_exeext conftest.$ac_ext
2818 fi
2819 eval ac_res=\$$3
2820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2821 $as_echo "$ac_res" >&6; }
2822 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2823
2824 } # ac_fn_c_check_func
2825 cat >config.log <<_ACEOF
2826 This file contains any messages produced by compilers while
2827 running configure, to aid debugging if configure makes a mistake.
2828
2829 It was created by $as_me, which was
2830 generated by GNU Autoconf 2.64. Invocation command line was
2831
2832 $ $0 $@
2833
2834 _ACEOF
2835 exec 5>>config.log
2836 {
2837 cat <<_ASUNAME
2838 ## --------- ##
2839 ## Platform. ##
2840 ## --------- ##
2841
2842 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2843 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2844 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2845 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2846 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2847
2848 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2849 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2850
2851 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2852 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2853 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2854 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2855 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2856 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2857 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2858
2859 _ASUNAME
2860
2861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2862 for as_dir in $PATH
2863 do
2864 IFS=$as_save_IFS
2865 test -z "$as_dir" && as_dir=.
2866 $as_echo "PATH: $as_dir"
2867 done
2868 IFS=$as_save_IFS
2869
2870 } >&5
2871
2872 cat >&5 <<_ACEOF
2873
2874
2875 ## ----------- ##
2876 ## Core tests. ##
2877 ## ----------- ##
2878
2879 _ACEOF
2880
2881
2882 # Keep a trace of the command line.
2883 # Strip out --no-create and --no-recursion so they do not pile up.
2884 # Strip out --silent because we don't want to record it for future runs.
2885 # Also quote any args containing shell meta-characters.
2886 # Make two passes to allow for proper duplicate-argument suppression.
2887 ac_configure_args=
2888 ac_configure_args0=
2889 ac_configure_args1=
2890 ac_must_keep_next=false
2891 for ac_pass in 1 2
2892 do
2893 for ac_arg
2894 do
2895 case $ac_arg in
2896 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2897 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2898 | -silent | --silent | --silen | --sile | --sil)
2899 continue ;;
2900 *\'*)
2901 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2902 esac
2903 case $ac_pass in
2904 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2905 2)
2906 as_fn_append ac_configure_args1 " '$ac_arg'"
2907 if test $ac_must_keep_next = true; then
2908 ac_must_keep_next=false # Got value, back to normal.
2909 else
2910 case $ac_arg in
2911 *=* | --config-cache | -C | -disable-* | --disable-* \
2912 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2913 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2914 | -with-* | --with-* | -without-* | --without-* | --x)
2915 case "$ac_configure_args0 " in
2916 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2917 esac
2918 ;;
2919 -* ) ac_must_keep_next=true ;;
2920 esac
2921 fi
2922 as_fn_append ac_configure_args " '$ac_arg'"
2923 ;;
2924 esac
2925 done
2926 done
2927 { ac_configure_args0=; unset ac_configure_args0;}
2928 { ac_configure_args1=; unset ac_configure_args1;}
2929
2930 # When interrupted or exit'd, cleanup temporary files, and complete
2931 # config.log. We remove comments because anyway the quotes in there
2932 # would cause problems or look ugly.
2933 # WARNING: Use '\'' to represent an apostrophe within the trap.
2934 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2935 trap 'exit_status=$?
2936 # Save into config.log some information that might help in debugging.
2937 {
2938 echo
2939
2940 cat <<\_ASBOX
2941 ## ---------------- ##
2942 ## Cache variables. ##
2943 ## ---------------- ##
2944 _ASBOX
2945 echo
2946 # The following way of writing the cache mishandles newlines in values,
2947 (
2948 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2949 eval ac_val=\$$ac_var
2950 case $ac_val in #(
2951 *${as_nl}*)
2952 case $ac_var in #(
2953 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2954 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2955 esac
2956 case $ac_var in #(
2957 _ | IFS | as_nl) ;; #(
2958 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2959 *) { eval $ac_var=; unset $ac_var;} ;;
2960 esac ;;
2961 esac
2962 done
2963 (set) 2>&1 |
2964 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2965 *${as_nl}ac_space=\ *)
2966 sed -n \
2967 "s/'\''/'\''\\\\'\'''\''/g;
2968 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2969 ;; #(
2970 *)
2971 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2972 ;;
2973 esac |
2974 sort
2975 )
2976 echo
2977
2978 cat <<\_ASBOX
2979 ## ----------------- ##
2980 ## Output variables. ##
2981 ## ----------------- ##
2982 _ASBOX
2983 echo
2984 for ac_var in $ac_subst_vars
2985 do
2986 eval ac_val=\$$ac_var
2987 case $ac_val in
2988 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2989 esac
2990 $as_echo "$ac_var='\''$ac_val'\''"
2991 done | sort
2992 echo
2993
2994 if test -n "$ac_subst_files"; then
2995 cat <<\_ASBOX
2996 ## ------------------- ##
2997 ## File substitutions. ##
2998 ## ------------------- ##
2999 _ASBOX
3000 echo
3001 for ac_var in $ac_subst_files
3002 do
3003 eval ac_val=\$$ac_var
3004 case $ac_val in
3005 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3006 esac
3007 $as_echo "$ac_var='\''$ac_val'\''"
3008 done | sort
3009 echo
3010 fi
3011
3012 if test -s confdefs.h; then
3013 cat <<\_ASBOX
3014 ## ----------- ##
3015 ## confdefs.h. ##
3016 ## ----------- ##
3017 _ASBOX
3018 echo
3019 cat confdefs.h
3020 echo
3021 fi
3022 test "$ac_signal" != 0 &&
3023 $as_echo "$as_me: caught signal $ac_signal"
3024 $as_echo "$as_me: exit $exit_status"
3025 } >&5
3026 rm -f core *.core core.conftest.* &&
3027 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3028 exit $exit_status
3029 ' 0
3030 for ac_signal in 1 2 13 15; do
3031 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3032 done
3033 ac_signal=0
3034
3035 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3036 rm -f -r conftest* confdefs.h
3037
3038 $as_echo "/* confdefs.h */" > confdefs.h
3039
3040 # Predefined preprocessor variables.
3041
3042 cat >>confdefs.h <<_ACEOF
3043 #define PACKAGE_NAME "$PACKAGE_NAME"
3044 _ACEOF
3045
3046 cat >>confdefs.h <<_ACEOF
3047 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3048 _ACEOF
3049
3050 cat >>confdefs.h <<_ACEOF
3051 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3052 _ACEOF
3053
3054 cat >>confdefs.h <<_ACEOF
3055 #define PACKAGE_STRING "$PACKAGE_STRING"
3056 _ACEOF
3057
3058 cat >>confdefs.h <<_ACEOF
3059 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3060 _ACEOF
3061
3062 cat >>confdefs.h <<_ACEOF
3063 #define PACKAGE_URL "$PACKAGE_URL"
3064 _ACEOF
3065
3066
3067 # Let the site file select an alternate cache file if it wants to.
3068 # Prefer an explicitly selected file to automatically selected ones.
3069 ac_site_file1=NONE
3070 ac_site_file2=NONE
3071 if test -n "$CONFIG_SITE"; then
3072 ac_site_file1=$CONFIG_SITE
3073 elif test "x$prefix" != xNONE; then
3074 ac_site_file1=$prefix/share/config.site
3075 ac_site_file2=$prefix/etc/config.site
3076 else
3077 ac_site_file1=$ac_default_prefix/share/config.site
3078 ac_site_file2=$ac_default_prefix/etc/config.site
3079 fi
3080 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3081 do
3082 test "x$ac_site_file" = xNONE && continue
3083 if test -r "$ac_site_file"; then
3084 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3085 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3086 sed 's/^/| /' "$ac_site_file" >&5
3087 . "$ac_site_file"
3088 fi
3089 done
3090
3091 if test -r "$cache_file"; then
3092 # Some versions of bash will fail to source /dev/null (special
3093 # files actually), so we avoid doing that.
3094 if test -f "$cache_file"; then
3095 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3096 $as_echo "$as_me: loading cache $cache_file" >&6;}
3097 case $cache_file in
3098 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3099 *) . "./$cache_file";;
3100 esac
3101 fi
3102 else
3103 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3104 $as_echo "$as_me: creating cache $cache_file" >&6;}
3105 >$cache_file
3106 fi
3107
3108 # Check that the precious variables saved in the cache have kept the same
3109 # value.
3110 ac_cache_corrupted=false
3111 for ac_var in $ac_precious_vars; do
3112 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3113 eval ac_new_set=\$ac_env_${ac_var}_set
3114 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3115 eval ac_new_val=\$ac_env_${ac_var}_value
3116 case $ac_old_set,$ac_new_set in
3117 set,)
3118 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3119 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3120 ac_cache_corrupted=: ;;
3121 ,set)
3122 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3123 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3124 ac_cache_corrupted=: ;;
3125 ,);;
3126 *)
3127 if test "x$ac_old_val" != "x$ac_new_val"; then
3128 # differences in whitespace do not lead to failure.
3129 ac_old_val_w=`echo x $ac_old_val`
3130 ac_new_val_w=`echo x $ac_new_val`
3131 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3132 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3133 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3134 ac_cache_corrupted=:
3135 else
3136 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3137 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3138 eval $ac_var=\$ac_old_val
3139 fi
3140 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3141 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3142 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3143 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3144 fi;;
3145 esac
3146 # Pass precious variables to config.status.
3147 if test "$ac_new_set" = set; then
3148 case $ac_new_val in
3149 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3150 *) ac_arg=$ac_var=$ac_new_val ;;
3151 esac
3152 case " $ac_configure_args " in
3153 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3154 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3155 esac
3156 fi
3157 done
3158 if $ac_cache_corrupted; then
3159 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3160 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3161 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3162 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3163 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3164 fi
3165 ## -------------------- ##
3166 ## Main body of script. ##
3167 ## -------------------- ##
3168
3169 ac_ext=c
3170 ac_cpp='$CPP $CPPFLAGS'
3171 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3172 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3173 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3174
3175
3176
3177
3178
3179
3180 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3181
3182
3183 gcc_version=`cat $srcdir/BASE-VER`
3184
3185 # Determine the host, build, and target systems
3186 ac_aux_dir=
3187 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3188 for ac_t in install-sh install.sh shtool; do
3189 if test -f "$ac_dir/$ac_t"; then
3190 ac_aux_dir=$ac_dir
3191 ac_install_sh="$ac_aux_dir/$ac_t -c"
3192 break 2
3193 fi
3194 done
3195 done
3196 if test -z "$ac_aux_dir"; then
3197 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3198 fi
3199
3200 # These three variables are undocumented and unsupported,
3201 # and are intended to be withdrawn in a future Autoconf release.
3202 # They can cause serious problems if a builder's source tree is in a directory
3203 # whose full name contains unusual characters.
3204 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3205 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3206 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3207
3208
3209 # Make sure we can run config.sub.
3210 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3211 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3212
3213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3214 $as_echo_n "checking build system type... " >&6; }
3215 if test "${ac_cv_build+set}" = set; then :
3216 $as_echo_n "(cached) " >&6
3217 else
3218 ac_build_alias=$build_alias
3219 test "x$ac_build_alias" = x &&
3220 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3221 test "x$ac_build_alias" = x &&
3222 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3223 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3224 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3225
3226 fi
3227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3228 $as_echo "$ac_cv_build" >&6; }
3229 case $ac_cv_build in
3230 *-*-*) ;;
3231 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3232 esac
3233 build=$ac_cv_build
3234 ac_save_IFS=$IFS; IFS='-'
3235 set x $ac_cv_build
3236 shift
3237 build_cpu=$1
3238 build_vendor=$2
3239 shift; shift
3240 # Remember, the first character of IFS is used to create $*,
3241 # except with old shells:
3242 build_os=$*
3243 IFS=$ac_save_IFS
3244 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3245
3246
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3248 $as_echo_n "checking host system type... " >&6; }
3249 if test "${ac_cv_host+set}" = set; then :
3250 $as_echo_n "(cached) " >&6
3251 else
3252 if test "x$host_alias" = x; then
3253 ac_cv_host=$ac_cv_build
3254 else
3255 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3256 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3257 fi
3258
3259 fi
3260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3261 $as_echo "$ac_cv_host" >&6; }
3262 case $ac_cv_host in
3263 *-*-*) ;;
3264 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3265 esac
3266 host=$ac_cv_host
3267 ac_save_IFS=$IFS; IFS='-'
3268 set x $ac_cv_host
3269 shift
3270 host_cpu=$1
3271 host_vendor=$2
3272 shift; shift
3273 # Remember, the first character of IFS is used to create $*,
3274 # except with old shells:
3275 host_os=$*
3276 IFS=$ac_save_IFS
3277 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3278
3279
3280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3281 $as_echo_n "checking target system type... " >&6; }
3282 if test "${ac_cv_target+set}" = set; then :
3283 $as_echo_n "(cached) " >&6
3284 else
3285 if test "x$target_alias" = x; then
3286 ac_cv_target=$ac_cv_host
3287 else
3288 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3289 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3290 fi
3291
3292 fi
3293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3294 $as_echo "$ac_cv_target" >&6; }
3295 case $ac_cv_target in
3296 *-*-*) ;;
3297 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3298 esac
3299 target=$ac_cv_target
3300 ac_save_IFS=$IFS; IFS='-'
3301 set x $ac_cv_target
3302 shift
3303 target_cpu=$1
3304 target_vendor=$2
3305 shift; shift
3306 # Remember, the first character of IFS is used to create $*,
3307 # except with old shells:
3308 target_os=$*
3309 IFS=$ac_save_IFS
3310 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3311
3312
3313 # The aliases save the names the user supplied, while $host etc.
3314 # will get canonicalized.
3315 test -n "$target_alias" &&
3316 test "$program_prefix$program_suffix$program_transform_name" = \
3317 NONENONEs,x,x, &&
3318 program_prefix=${target_alias}-
3319
3320 # Determine the noncanonical target name, for directory use.
3321 case ${build_alias} in
3322 "") build_noncanonical=${build} ;;
3323 *) build_noncanonical=${build_alias} ;;
3324 esac
3325
3326 case ${host_alias} in
3327 "") host_noncanonical=${build_noncanonical} ;;
3328 *) host_noncanonical=${host_alias} ;;
3329 esac
3330
3331 case ${target_alias} in
3332 "") target_noncanonical=${host_noncanonical} ;;
3333 *) target_noncanonical=${target_alias} ;;
3334 esac
3335
3336
3337
3338
3339 # Used for constructing correct paths for offload compilers.
3340 real_target_noncanonical=${target_noncanonical}
3341 accel_dir_suffix=
3342
3343 # Determine the target- and build-specific subdirectories
3344
3345 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3346 # have matching libraries, they should use host libraries: Makefile.tpl
3347 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3348 # However, they still use the build modules, because the corresponding
3349 # host modules (e.g. bison) are only built for the host when bootstrap
3350 # finishes. So:
3351 # - build_subdir is where we find build modules, and never changes.
3352 # - build_libsubdir is where we find build libraries, and can be overridden.
3353
3354 # Prefix 'build-' so this never conflicts with target_subdir.
3355 build_subdir="build-${build_noncanonical}"
3356
3357 # Check whether --with-build-libsubdir was given.
3358 if test "${with_build_libsubdir+set}" = set; then :
3359 withval=$with_build_libsubdir; build_libsubdir="$withval"
3360 else
3361 build_libsubdir="$build_subdir"
3362 fi
3363
3364 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3365 if ( test $srcdir = . && test -d gcc ) \
3366 || test -d $srcdir/../host-${host_noncanonical}; then
3367 host_subdir="host-${host_noncanonical}"
3368 else
3369 host_subdir=.
3370 fi
3371 # No prefix.
3372 target_subdir=${target_noncanonical}
3373
3374
3375 # Set program_transform_name
3376 test "$program_prefix" != NONE &&
3377 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3378 # Use a double $ so make ignores it.
3379 test "$program_suffix" != NONE &&
3380 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3381 # Double any \ or $.
3382 # By default was `s,x,x', remove it if useless.
3383 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3384 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3385
3386
3387 # Check for bogus environment variables.
3388 # Test if LIBRARY_PATH contains the notation for the current directory
3389 # since this would lead to problems installing/building glibc.
3390 # LIBRARY_PATH contains the current directory if one of the following
3391 # is true:
3392 # - one of the terminals (":" and ";") is the first or last sign
3393 # - two terminals occur directly after each other
3394 # - the path contains an element with a dot in it
3395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3396 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3397 case ${LIBRARY_PATH} in
3398 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3399 library_path_setting="contains current directory"
3400 ;;
3401 *)
3402 library_path_setting="ok"
3403 ;;
3404 esac
3405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3406 $as_echo "$library_path_setting" >&6; }
3407 if test "$library_path_setting" != "ok"; then
3408 as_fn_error "
3409 *** LIBRARY_PATH shouldn't contain the current directory when
3410 *** building gcc. Please change the environment variable
3411 *** and run configure again." "$LINENO" 5
3412 fi
3413
3414 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3415 # since this would lead to problems installing/building glibc.
3416 # GCC_EXEC_PREFIX contains the current directory if one of the following
3417 # is true:
3418 # - one of the terminals (":" and ";") is the first or last sign
3419 # - two terminals occur directly after each other
3420 # - the path contains an element with a dot in it
3421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3422 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3423 case ${GCC_EXEC_PREFIX} in
3424 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3425 gcc_exec_prefix_setting="contains current directory"
3426 ;;
3427 *)
3428 gcc_exec_prefix_setting="ok"
3429 ;;
3430 esac
3431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3432 $as_echo "$gcc_exec_prefix_setting" >&6; }
3433 if test "$gcc_exec_prefix_setting" != "ok"; then
3434 as_fn_error "
3435 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3436 *** building gcc. Please change the environment variable
3437 *** and run configure again." "$LINENO" 5
3438 fi
3439
3440 # -----------
3441 # Directories
3442 # -----------
3443
3444 # Specify the local prefix
3445 local_prefix=
3446
3447 # Check whether --with-local-prefix was given.
3448 if test "${with_local_prefix+set}" = set; then :
3449 withval=$with_local_prefix; case "${withval}" in
3450 yes) as_fn_error "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3451 no) ;;
3452 *) local_prefix=$with_local_prefix ;;
3453 esac
3454 fi
3455
3456
3457 # Default local prefix if it is empty
3458 if test x$local_prefix = x; then
3459 local_prefix=/usr/local
3460 fi
3461
3462
3463 # Check whether --with-native-system-header-dir was given.
3464 if test "${with_native_system_header_dir+set}" = set; then :
3465 withval=$with_native_system_header_dir;
3466 case ${with_native_system_header_dir} in
3467 yes|no) as_fn_error "bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
3468 /* | [A-Za-z]:[\\/]*) ;;
3469 *) as_fn_error "--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
3470 esac
3471 configured_native_system_header_dir="${withval}"
3472
3473 else
3474 configured_native_system_header_dir=
3475 fi
3476
3477
3478
3479 # Check whether --with-build-sysroot was given.
3480 if test "${with_build_sysroot+set}" = set; then :
3481 withval=$with_build_sysroot; if test x"$withval" != x ; then
3482 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
3483 fi
3484 else
3485 SYSROOT_CFLAGS_FOR_TARGET=
3486 fi
3487
3488
3489
3490 if test "x$prefix" = xNONE; then
3491 test_prefix=/usr/local
3492 else
3493 test_prefix=$prefix
3494 fi
3495 if test "x$exec_prefix" = xNONE; then
3496 test_exec_prefix=$test_prefix
3497 else
3498 test_exec_prefix=$exec_prefix
3499 fi
3500
3501
3502 # Check whether --with-sysroot was given.
3503 if test "${with_sysroot+set}" = set; then :
3504 withval=$with_sysroot;
3505 case ${with_sysroot} in
3506 /) ;;
3507 */) with_sysroot=`echo $with_sysroot | sed 's,/$,,'` ;;
3508 esac
3509 case ${with_sysroot} in
3510 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
3511 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
3512 esac
3513
3514 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
3515 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
3516
3517 case ${TARGET_SYSTEM_ROOT} in
3518 "${test_prefix}"|"${test_prefix}/"*|\
3519 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
3520 '${prefix}'|'${prefix}/'*|\
3521 '${exec_prefix}'|'${exec_prefix}/'*)
3522 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
3523 TARGET_SYSTEM_ROOT_DEFINE="$t"
3524 ;;
3525 esac
3526
3527 else
3528
3529 TARGET_SYSTEM_ROOT=
3530 TARGET_SYSTEM_ROOT_DEFINE=
3531 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
3532
3533 fi
3534
3535
3536
3537
3538
3539 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3540 # passed in by the toplevel make and thus we'd get different behavior
3541 # depending on where we built the sources.
3542 gcc_gxx_include_dir=
3543 # Specify the g++ header file directory
3544
3545 # Check whether --with-gxx-include-dir was given.
3546 if test "${with_gxx_include_dir+set}" = set; then :
3547 withval=$with_gxx_include_dir; case "${withval}" in
3548 yes) as_fn_error "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3549 no) ;;
3550 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
3551 esac
3552 fi
3553
3554
3555 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3556 if test x${gcc_gxx_include_dir} = x; then
3557 if test x${enable_version_specific_runtime_libs} = xyes; then
3558 gcc_gxx_include_dir='${libsubdir}/include/c++'
3559 else
3560 libstdcxx_incdir='include/c++/$(version)'
3561 if test x$host != x$target; then
3562 libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3563 fi
3564 gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3565 fi
3566 fi
3567
3568 gcc_gxx_include_dir_add_sysroot=0
3569 if test "${with_sysroot+set}" = set; then
3570 gcc_gxx_without_sysroot=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3571 if test "${gcc_gxx_without_sysroot}"; then
3572 if test x${with_sysroot} != x/; then
3573 gcc_gxx_include_dir="${gcc_gxx_without_sysroot}"
3574 fi
3575 gcc_gxx_include_dir_add_sysroot=1
3576 fi
3577 fi
3578
3579
3580 # Check whether --with-cpp_install_dir was given.
3581 if test "${with_cpp_install_dir+set}" = set; then :
3582 withval=$with_cpp_install_dir; if test x$withval = xyes; then
3583 as_fn_error "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3584 elif test x$withval != xno; then
3585 cpp_install_dir=$withval
3586 fi
3587 fi
3588
3589
3590 # We would like to our source tree to be readonly. However when releases or
3591 # pre-releases are generated, the flex/bison generated files as well as the
3592 # various formats of manuals need to be included along with the rest of the
3593 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3594 # just that.
3595
3596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3597 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3598 # Check whether --enable-generated-files-in-srcdir was given.
3599 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3600 enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3601 else
3602 generated_files_in_srcdir=no
3603 fi
3604
3605
3606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3607 $as_echo "$generated_files_in_srcdir" >&6; }
3608
3609 if test "$generated_files_in_srcdir" = "yes"; then
3610 GENINSRC=''
3611 else
3612 GENINSRC='#'
3613 fi
3614
3615
3616 # -------------------
3617 # Find default linker
3618 # -------------------
3619
3620 # With GNU ld
3621
3622 # Check whether --with-gnu-ld was given.
3623 if test "${with_gnu_ld+set}" = set; then :
3624 withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3625 else
3626 gnu_ld_flag=no
3627 fi
3628
3629
3630 # With pre-defined ld
3631
3632 # Check whether --with-ld was given.
3633 if test "${with_ld+set}" = set; then :
3634 withval=$with_ld; DEFAULT_LINKER="$with_ld"
3635 fi
3636
3637 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3638 if test ! -x "$DEFAULT_LINKER"; then
3639 as_fn_error "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3640 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3641 gnu_ld_flag=yes
3642 fi
3643
3644 cat >>confdefs.h <<_ACEOF
3645 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3646 _ACEOF
3647
3648 fi
3649
3650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3651 $as_echo_n "checking whether a default linker was specified... " >&6; }
3652 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3653 if test x"$gnu_ld_flag" = x"no"; then
3654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3655 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3656 else
3657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3658 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3659 fi
3660 else
3661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3662 $as_echo "no" >&6; }
3663 fi
3664
3665 # With demangler in GNU ld
3666
3667 # Check whether --with-demangler-in-ld was given.
3668 if test "${with_demangler_in_ld+set}" = set; then :
3669 withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3670 else
3671 demangler_in_ld=yes
3672 fi
3673
3674
3675 # ----------------------
3676 # Find default assembler
3677 # ----------------------
3678
3679 # With GNU as
3680
3681 # Check whether --with-gnu-as was given.
3682 if test "${with_gnu_as+set}" = set; then :
3683 withval=$with_gnu_as; gas_flag="$with_gnu_as"
3684 else
3685 gas_flag=no
3686 fi
3687
3688
3689
3690 # Check whether --with-as was given.
3691 if test "${with_as+set}" = set; then :
3692 withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
3693 fi
3694
3695 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3696 if test ! -x "$DEFAULT_ASSEMBLER"; then
3697 as_fn_error "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3698 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3699 gas_flag=yes
3700 fi
3701
3702 cat >>confdefs.h <<_ACEOF
3703 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3704 _ACEOF
3705
3706 fi
3707
3708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3709 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3710 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3711 if test x"$gas_flag" = x"no"; then
3712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3713 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3714 else
3715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3716 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3717 fi
3718 else
3719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3720 $as_echo "no" >&6; }
3721 fi
3722
3723 # ---------------
3724 # Find C compiler
3725 # ---------------
3726
3727 # If a non-executable a.out is present (e.g. created by GNU as above even if
3728 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3729 # file, even when creating an executable, so an execution test fails.
3730 # Remove possible default executable files to avoid this.
3731 #
3732 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3733 # Autoconf includes it.
3734 rm -f a.out a.exe b.out
3735
3736 # Find the native compiler
3737 ac_ext=c
3738 ac_cpp='$CPP $CPPFLAGS'
3739 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3740 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3741 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3742 if test -n "$ac_tool_prefix"; then
3743 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3744 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3746 $as_echo_n "checking for $ac_word... " >&6; }
3747 if test "${ac_cv_prog_CC+set}" = set; then :
3748 $as_echo_n "(cached) " >&6
3749 else
3750 if test -n "$CC"; then
3751 ac_cv_prog_CC="$CC" # Let the user override the test.
3752 else
3753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3754 for as_dir in $PATH
3755 do
3756 IFS=$as_save_IFS
3757 test -z "$as_dir" && as_dir=.
3758 for ac_exec_ext in '' $ac_executable_extensions; do
3759 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3760 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3762 break 2
3763 fi
3764 done
3765 done
3766 IFS=$as_save_IFS
3767
3768 fi
3769 fi
3770 CC=$ac_cv_prog_CC
3771 if test -n "$CC"; then
3772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3773 $as_echo "$CC" >&6; }
3774 else
3775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3776 $as_echo "no" >&6; }
3777 fi
3778
3779
3780 fi
3781 if test -z "$ac_cv_prog_CC"; then
3782 ac_ct_CC=$CC
3783 # Extract the first word of "gcc", so it can be a program name with args.
3784 set dummy gcc; ac_word=$2
3785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3786 $as_echo_n "checking for $ac_word... " >&6; }
3787 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3788 $as_echo_n "(cached) " >&6
3789 else
3790 if test -n "$ac_ct_CC"; then
3791 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3792 else
3793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3794 for as_dir in $PATH
3795 do
3796 IFS=$as_save_IFS
3797 test -z "$as_dir" && as_dir=.
3798 for ac_exec_ext in '' $ac_executable_extensions; do
3799 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3800 ac_cv_prog_ac_ct_CC="gcc"
3801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3802 break 2
3803 fi
3804 done
3805 done
3806 IFS=$as_save_IFS
3807
3808 fi
3809 fi
3810 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3811 if test -n "$ac_ct_CC"; then
3812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3813 $as_echo "$ac_ct_CC" >&6; }
3814 else
3815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3816 $as_echo "no" >&6; }
3817 fi
3818
3819 if test "x$ac_ct_CC" = x; then
3820 CC=""
3821 else
3822 case $cross_compiling:$ac_tool_warned in
3823 yes:)
3824 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3825 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3826 ac_tool_warned=yes ;;
3827 esac
3828 CC=$ac_ct_CC
3829 fi
3830 else
3831 CC="$ac_cv_prog_CC"
3832 fi
3833
3834 if test -z "$CC"; then
3835 if test -n "$ac_tool_prefix"; then
3836 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3837 set dummy ${ac_tool_prefix}cc; ac_word=$2
3838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3839 $as_echo_n "checking for $ac_word... " >&6; }
3840 if test "${ac_cv_prog_CC+set}" = set; then :
3841 $as_echo_n "(cached) " >&6
3842 else
3843 if test -n "$CC"; then
3844 ac_cv_prog_CC="$CC" # Let the user override the test.
3845 else
3846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3847 for as_dir in $PATH
3848 do
3849 IFS=$as_save_IFS
3850 test -z "$as_dir" && as_dir=.
3851 for ac_exec_ext in '' $ac_executable_extensions; do
3852 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3853 ac_cv_prog_CC="${ac_tool_prefix}cc"
3854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3855 break 2
3856 fi
3857 done
3858 done
3859 IFS=$as_save_IFS
3860
3861 fi
3862 fi
3863 CC=$ac_cv_prog_CC
3864 if test -n "$CC"; then
3865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3866 $as_echo "$CC" >&6; }
3867 else
3868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3869 $as_echo "no" >&6; }
3870 fi
3871
3872
3873 fi
3874 fi
3875 if test -z "$CC"; then
3876 # Extract the first word of "cc", so it can be a program name with args.
3877 set dummy cc; ac_word=$2
3878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3879 $as_echo_n "checking for $ac_word... " >&6; }
3880 if test "${ac_cv_prog_CC+set}" = set; then :
3881 $as_echo_n "(cached) " >&6
3882 else
3883 if test -n "$CC"; then
3884 ac_cv_prog_CC="$CC" # Let the user override the test.
3885 else
3886 ac_prog_rejected=no
3887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3888 for as_dir in $PATH
3889 do
3890 IFS=$as_save_IFS
3891 test -z "$as_dir" && as_dir=.
3892 for ac_exec_ext in '' $ac_executable_extensions; do
3893 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3894 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3895 ac_prog_rejected=yes
3896 continue
3897 fi
3898 ac_cv_prog_CC="cc"
3899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3900 break 2
3901 fi
3902 done
3903 done
3904 IFS=$as_save_IFS
3905
3906 if test $ac_prog_rejected = yes; then
3907 # We found a bogon in the path, so make sure we never use it.
3908 set dummy $ac_cv_prog_CC
3909 shift
3910 if test $# != 0; then
3911 # We chose a different compiler from the bogus one.
3912 # However, it has the same basename, so the bogon will be chosen
3913 # first if we set CC to just the basename; use the full file name.
3914 shift
3915 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3916 fi
3917 fi
3918 fi
3919 fi
3920 CC=$ac_cv_prog_CC
3921 if test -n "$CC"; then
3922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3923 $as_echo "$CC" >&6; }
3924 else
3925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3926 $as_echo "no" >&6; }
3927 fi
3928
3929
3930 fi
3931 if test -z "$CC"; then
3932 if test -n "$ac_tool_prefix"; then
3933 for ac_prog in cl.exe
3934 do
3935 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3936 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3938 $as_echo_n "checking for $ac_word... " >&6; }
3939 if test "${ac_cv_prog_CC+set}" = set; then :
3940 $as_echo_n "(cached) " >&6
3941 else
3942 if test -n "$CC"; then
3943 ac_cv_prog_CC="$CC" # Let the user override the test.
3944 else
3945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3946 for as_dir in $PATH
3947 do
3948 IFS=$as_save_IFS
3949 test -z "$as_dir" && as_dir=.
3950 for ac_exec_ext in '' $ac_executable_extensions; do
3951 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3952 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3954 break 2
3955 fi
3956 done
3957 done
3958 IFS=$as_save_IFS
3959
3960 fi
3961 fi
3962 CC=$ac_cv_prog_CC
3963 if test -n "$CC"; then
3964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3965 $as_echo "$CC" >&6; }
3966 else
3967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3968 $as_echo "no" >&6; }
3969 fi
3970
3971
3972 test -n "$CC" && break
3973 done
3974 fi
3975 if test -z "$CC"; then
3976 ac_ct_CC=$CC
3977 for ac_prog in cl.exe
3978 do
3979 # Extract the first word of "$ac_prog", so it can be a program name with args.
3980 set dummy $ac_prog; ac_word=$2
3981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3982 $as_echo_n "checking for $ac_word... " >&6; }
3983 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3984 $as_echo_n "(cached) " >&6
3985 else
3986 if test -n "$ac_ct_CC"; then
3987 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3988 else
3989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3990 for as_dir in $PATH
3991 do
3992 IFS=$as_save_IFS
3993 test -z "$as_dir" && as_dir=.
3994 for ac_exec_ext in '' $ac_executable_extensions; do
3995 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3996 ac_cv_prog_ac_ct_CC="$ac_prog"
3997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3998 break 2
3999 fi
4000 done
4001 done
4002 IFS=$as_save_IFS
4003
4004 fi
4005 fi
4006 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4007 if test -n "$ac_ct_CC"; then
4008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4009 $as_echo "$ac_ct_CC" >&6; }
4010 else
4011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4012 $as_echo "no" >&6; }
4013 fi
4014
4015
4016 test -n "$ac_ct_CC" && break
4017 done
4018
4019 if test "x$ac_ct_CC" = x; then
4020 CC=""
4021 else
4022 case $cross_compiling:$ac_tool_warned in
4023 yes:)
4024 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4025 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4026 ac_tool_warned=yes ;;
4027 esac
4028 CC=$ac_ct_CC
4029 fi
4030 fi
4031
4032 fi
4033
4034
4035 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4036 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4037 as_fn_error "no acceptable C compiler found in \$PATH
4038 See \`config.log' for more details." "$LINENO" 5; }
4039
4040 # Provide some information about the compiler.
4041 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4042 set X $ac_compile
4043 ac_compiler=$2
4044 for ac_option in --version -v -V -qversion; do
4045 { { ac_try="$ac_compiler $ac_option >&5"
4046 case "(($ac_try" in
4047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4048 *) ac_try_echo=$ac_try;;
4049 esac
4050 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4051 $as_echo "$ac_try_echo"; } >&5
4052 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4053 ac_status=$?
4054 if test -s conftest.err; then
4055 sed '10a\
4056 ... rest of stderr output deleted ...
4057 10q' conftest.err >conftest.er1
4058 cat conftest.er1 >&5
4059 rm -f conftest.er1 conftest.err
4060 fi
4061 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4062 test $ac_status = 0; }
4063 done
4064
4065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4066 /* end confdefs.h. */
4067
4068 int
4069 main ()
4070 {
4071
4072 ;
4073 return 0;
4074 }
4075 _ACEOF
4076 ac_clean_files_save=$ac_clean_files
4077 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
4078 # Try to create an executable without -o first, disregard a.out.
4079 # It will help us diagnose broken compilers, and finding out an intuition
4080 # of exeext.
4081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4082 $as_echo_n "checking for C compiler default output file name... " >&6; }
4083 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4084
4085 # The possible output files:
4086 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4087
4088 ac_rmfiles=
4089 for ac_file in $ac_files
4090 do
4091 case $ac_file in
4092 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4093 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4094 esac
4095 done
4096 rm -f $ac_rmfiles
4097
4098 if { { ac_try="$ac_link_default"
4099 case "(($ac_try" in
4100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4101 *) ac_try_echo=$ac_try;;
4102 esac
4103 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4104 $as_echo "$ac_try_echo"; } >&5
4105 (eval "$ac_link_default") 2>&5
4106 ac_status=$?
4107 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4108 test $ac_status = 0; }; then :
4109 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4110 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4111 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4112 # so that the user can short-circuit this test for compilers unknown to
4113 # Autoconf.
4114 for ac_file in $ac_files ''
4115 do
4116 test -f "$ac_file" || continue
4117 case $ac_file in
4118 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4119 ;;
4120 [ab].out )
4121 # We found the default executable, but exeext='' is most
4122 # certainly right.
4123 break;;
4124 *.* )
4125 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4126 then :; else
4127 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4128 fi
4129 # We set ac_cv_exeext here because the later test for it is not
4130 # safe: cross compilers may not add the suffix if given an `-o'
4131 # argument, so we may need to know it at that point already.
4132 # Even if this section looks crufty: it has the advantage of
4133 # actually working.
4134 break;;
4135 * )
4136 break;;
4137 esac
4138 done
4139 test "$ac_cv_exeext" = no && ac_cv_exeext=
4140
4141 else
4142 ac_file=''
4143 fi
4144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4145 $as_echo "$ac_file" >&6; }
4146 if test -z "$ac_file"; then :
4147 $as_echo "$as_me: failed program was:" >&5
4148 sed 's/^/| /' conftest.$ac_ext >&5
4149
4150 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4151 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4152 { as_fn_set_status 77
4153 as_fn_error "C compiler cannot create executables
4154 See \`config.log' for more details." "$LINENO" 5; }; }
4155 fi
4156 ac_exeext=$ac_cv_exeext
4157
4158 # Check that the compiler produces executables we can run. If not, either
4159 # the compiler is broken, or we cross compile.
4160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4161 $as_echo_n "checking whether the C compiler works... " >&6; }
4162 # If not cross compiling, check that we can run a simple program.
4163 if test "$cross_compiling" != yes; then
4164 if { ac_try='./$ac_file'
4165 { { case "(($ac_try" in
4166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4167 *) ac_try_echo=$ac_try;;
4168 esac
4169 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4170 $as_echo "$ac_try_echo"; } >&5
4171 (eval "$ac_try") 2>&5
4172 ac_status=$?
4173 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4174 test $ac_status = 0; }; }; then
4175 cross_compiling=no
4176 else
4177 if test "$cross_compiling" = maybe; then
4178 cross_compiling=yes
4179 else
4180 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4181 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4182 as_fn_error "cannot run C compiled programs.
4183 If you meant to cross compile, use \`--host'.
4184 See \`config.log' for more details." "$LINENO" 5; }
4185 fi
4186 fi
4187 fi
4188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4189 $as_echo "yes" >&6; }
4190
4191 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4192 ac_clean_files=$ac_clean_files_save
4193 # Check that the compiler produces executables we can run. If not, either
4194 # the compiler is broken, or we cross compile.
4195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4196 $as_echo_n "checking whether we are cross compiling... " >&6; }
4197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4198 $as_echo "$cross_compiling" >&6; }
4199
4200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4201 $as_echo_n "checking for suffix of executables... " >&6; }
4202 if { { ac_try="$ac_link"
4203 case "(($ac_try" in
4204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4205 *) ac_try_echo=$ac_try;;
4206 esac
4207 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4208 $as_echo "$ac_try_echo"; } >&5
4209 (eval "$ac_link") 2>&5
4210 ac_status=$?
4211 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4212 test $ac_status = 0; }; then :
4213 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4214 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4215 # work properly (i.e., refer to `conftest.exe'), while it won't with
4216 # `rm'.
4217 for ac_file in conftest.exe conftest conftest.*; do
4218 test -f "$ac_file" || continue
4219 case $ac_file in
4220 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4221 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4222 break;;
4223 * ) break;;
4224 esac
4225 done
4226 else
4227 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4228 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4229 as_fn_error "cannot compute suffix of executables: cannot compile and link
4230 See \`config.log' for more details." "$LINENO" 5; }
4231 fi
4232 rm -f conftest$ac_cv_exeext
4233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4234 $as_echo "$ac_cv_exeext" >&6; }
4235
4236 rm -f conftest.$ac_ext
4237 EXEEXT=$ac_cv_exeext
4238 ac_exeext=$EXEEXT
4239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4240 $as_echo_n "checking for suffix of object files... " >&6; }
4241 if test "${ac_cv_objext+set}" = set; then :
4242 $as_echo_n "(cached) " >&6
4243 else
4244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4245 /* end confdefs.h. */
4246
4247 int
4248 main ()
4249 {
4250
4251 ;
4252 return 0;
4253 }
4254 _ACEOF
4255 rm -f conftest.o conftest.obj
4256 if { { ac_try="$ac_compile"
4257 case "(($ac_try" in
4258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4259 *) ac_try_echo=$ac_try;;
4260 esac
4261 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4262 $as_echo "$ac_try_echo"; } >&5
4263 (eval "$ac_compile") 2>&5
4264 ac_status=$?
4265 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4266 test $ac_status = 0; }; then :
4267 for ac_file in conftest.o conftest.obj conftest.*; do
4268 test -f "$ac_file" || continue;
4269 case $ac_file in
4270 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4271 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4272 break;;
4273 esac
4274 done
4275 else
4276 $as_echo "$as_me: failed program was:" >&5
4277 sed 's/^/| /' conftest.$ac_ext >&5
4278
4279 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4280 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4281 as_fn_error "cannot compute suffix of object files: cannot compile
4282 See \`config.log' for more details." "$LINENO" 5; }
4283 fi
4284 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4285 fi
4286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4287 $as_echo "$ac_cv_objext" >&6; }
4288 OBJEXT=$ac_cv_objext
4289 ac_objext=$OBJEXT
4290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4291 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4292 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4293 $as_echo_n "(cached) " >&6
4294 else
4295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4296 /* end confdefs.h. */
4297
4298 int
4299 main ()
4300 {
4301 #ifndef __GNUC__
4302 choke me
4303 #endif
4304
4305 ;
4306 return 0;
4307 }
4308 _ACEOF
4309 if ac_fn_c_try_compile "$LINENO"; then :
4310 ac_compiler_gnu=yes
4311 else
4312 ac_compiler_gnu=no
4313 fi
4314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4315 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4316
4317 fi
4318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4319 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4320 if test $ac_compiler_gnu = yes; then
4321 GCC=yes
4322 else
4323 GCC=
4324 fi
4325 ac_test_CFLAGS=${CFLAGS+set}
4326 ac_save_CFLAGS=$CFLAGS
4327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4328 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4329 if test "${ac_cv_prog_cc_g+set}" = set; then :
4330 $as_echo_n "(cached) " >&6
4331 else
4332 ac_save_c_werror_flag=$ac_c_werror_flag
4333 ac_c_werror_flag=yes
4334 ac_cv_prog_cc_g=no
4335 CFLAGS="-g"
4336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4337 /* end confdefs.h. */
4338
4339 int
4340 main ()
4341 {
4342
4343 ;
4344 return 0;
4345 }
4346 _ACEOF
4347 if ac_fn_c_try_compile "$LINENO"; then :
4348 ac_cv_prog_cc_g=yes
4349 else
4350 CFLAGS=""
4351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4352 /* end confdefs.h. */
4353
4354 int
4355 main ()
4356 {
4357
4358 ;
4359 return 0;
4360 }
4361 _ACEOF
4362 if ac_fn_c_try_compile "$LINENO"; then :
4363
4364 else
4365 ac_c_werror_flag=$ac_save_c_werror_flag
4366 CFLAGS="-g"
4367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4368 /* end confdefs.h. */
4369
4370 int
4371 main ()
4372 {
4373
4374 ;
4375 return 0;
4376 }
4377 _ACEOF
4378 if ac_fn_c_try_compile "$LINENO"; then :
4379 ac_cv_prog_cc_g=yes
4380 fi
4381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4382 fi
4383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4384 fi
4385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4386 ac_c_werror_flag=$ac_save_c_werror_flag
4387 fi
4388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4389 $as_echo "$ac_cv_prog_cc_g" >&6; }
4390 if test "$ac_test_CFLAGS" = set; then
4391 CFLAGS=$ac_save_CFLAGS
4392 elif test $ac_cv_prog_cc_g = yes; then
4393 if test "$GCC" = yes; then
4394 CFLAGS="-g -O2"
4395 else
4396 CFLAGS="-g"
4397 fi
4398 else
4399 if test "$GCC" = yes; then
4400 CFLAGS="-O2"
4401 else
4402 CFLAGS=
4403 fi
4404 fi
4405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4406 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4407 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4408 $as_echo_n "(cached) " >&6
4409 else
4410 ac_cv_prog_cc_c89=no
4411 ac_save_CC=$CC
4412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4413 /* end confdefs.h. */
4414 #include <stdarg.h>
4415 #include <stdio.h>
4416 #include <sys/types.h>
4417 #include <sys/stat.h>
4418 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4419 struct buf { int x; };
4420 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4421 static char *e (p, i)
4422 char **p;
4423 int i;
4424 {
4425 return p[i];
4426 }
4427 static char *f (char * (*g) (char **, int), char **p, ...)
4428 {
4429 char *s;
4430 va_list v;
4431 va_start (v,p);
4432 s = g (p, va_arg (v,int));
4433 va_end (v);
4434 return s;
4435 }
4436
4437 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4438 function prototypes and stuff, but not '\xHH' hex character constants.
4439 These don't provoke an error unfortunately, instead are silently treated
4440 as 'x'. The following induces an error, until -std is added to get
4441 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4442 array size at least. It's necessary to write '\x00'==0 to get something
4443 that's true only with -std. */
4444 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4445
4446 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4447 inside strings and character constants. */
4448 #define FOO(x) 'x'
4449 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4450
4451 int test (int i, double x);
4452 struct s1 {int (*f) (int a);};
4453 struct s2 {int (*f) (double a);};
4454 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4455 int argc;
4456 char **argv;
4457 int
4458 main ()
4459 {
4460 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4461 ;
4462 return 0;
4463 }
4464 _ACEOF
4465 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4466 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4467 do
4468 CC="$ac_save_CC $ac_arg"
4469 if ac_fn_c_try_compile "$LINENO"; then :
4470 ac_cv_prog_cc_c89=$ac_arg
4471 fi
4472 rm -f core conftest.err conftest.$ac_objext
4473 test "x$ac_cv_prog_cc_c89" != "xno" && break
4474 done
4475 rm -f conftest.$ac_ext
4476 CC=$ac_save_CC
4477
4478 fi
4479 # AC_CACHE_VAL
4480 case "x$ac_cv_prog_cc_c89" in
4481 x)
4482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4483 $as_echo "none needed" >&6; } ;;
4484 xno)
4485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4486 $as_echo "unsupported" >&6; } ;;
4487 *)
4488 CC="$CC $ac_cv_prog_cc_c89"
4489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4490 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4491 esac
4492 if test "x$ac_cv_prog_cc_c89" != xno; then :
4493
4494 fi
4495
4496 ac_ext=c
4497 ac_cpp='$CPP $CPPFLAGS'
4498 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4499 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4500 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4501
4502 ac_ext=cpp
4503 ac_cpp='$CXXCPP $CPPFLAGS'
4504 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4505 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4506 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4507 if test -z "$CXX"; then
4508 if test -n "$CCC"; then
4509 CXX=$CCC
4510 else
4511 if test -n "$ac_tool_prefix"; then
4512 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4513 do
4514 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4515 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4517 $as_echo_n "checking for $ac_word... " >&6; }
4518 if test "${ac_cv_prog_CXX+set}" = set; then :
4519 $as_echo_n "(cached) " >&6
4520 else
4521 if test -n "$CXX"; then
4522 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4523 else
4524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4525 for as_dir in $PATH
4526 do
4527 IFS=$as_save_IFS
4528 test -z "$as_dir" && as_dir=.
4529 for ac_exec_ext in '' $ac_executable_extensions; do
4530 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4531 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4533 break 2
4534 fi
4535 done
4536 done
4537 IFS=$as_save_IFS
4538
4539 fi
4540 fi
4541 CXX=$ac_cv_prog_CXX
4542 if test -n "$CXX"; then
4543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4544 $as_echo "$CXX" >&6; }
4545 else
4546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4547 $as_echo "no" >&6; }
4548 fi
4549
4550
4551 test -n "$CXX" && break
4552 done
4553 fi
4554 if test -z "$CXX"; then
4555 ac_ct_CXX=$CXX
4556 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4557 do
4558 # Extract the first word of "$ac_prog", so it can be a program name with args.
4559 set dummy $ac_prog; ac_word=$2
4560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4561 $as_echo_n "checking for $ac_word... " >&6; }
4562 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4563 $as_echo_n "(cached) " >&6
4564 else
4565 if test -n "$ac_ct_CXX"; then
4566 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4567 else
4568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4569 for as_dir in $PATH
4570 do
4571 IFS=$as_save_IFS
4572 test -z "$as_dir" && as_dir=.
4573 for ac_exec_ext in '' $ac_executable_extensions; do
4574 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4575 ac_cv_prog_ac_ct_CXX="$ac_prog"
4576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4577 break 2
4578 fi
4579 done
4580 done
4581 IFS=$as_save_IFS
4582
4583 fi
4584 fi
4585 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4586 if test -n "$ac_ct_CXX"; then
4587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4588 $as_echo "$ac_ct_CXX" >&6; }
4589 else
4590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4591 $as_echo "no" >&6; }
4592 fi
4593
4594
4595 test -n "$ac_ct_CXX" && break
4596 done
4597
4598 if test "x$ac_ct_CXX" = x; then
4599 CXX="g++"
4600 else
4601 case $cross_compiling:$ac_tool_warned in
4602 yes:)
4603 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4604 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4605 ac_tool_warned=yes ;;
4606 esac
4607 CXX=$ac_ct_CXX
4608 fi
4609 fi
4610
4611 fi
4612 fi
4613 # Provide some information about the compiler.
4614 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4615 set X $ac_compile
4616 ac_compiler=$2
4617 for ac_option in --version -v -V -qversion; do
4618 { { ac_try="$ac_compiler $ac_option >&5"
4619 case "(($ac_try" in
4620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4621 *) ac_try_echo=$ac_try;;
4622 esac
4623 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4624 $as_echo "$ac_try_echo"; } >&5
4625 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4626 ac_status=$?
4627 if test -s conftest.err; then
4628 sed '10a\
4629 ... rest of stderr output deleted ...
4630 10q' conftest.err >conftest.er1
4631 cat conftest.er1 >&5
4632 rm -f conftest.er1 conftest.err
4633 fi
4634 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4635 test $ac_status = 0; }
4636 done
4637
4638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4639 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4640 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4641 $as_echo_n "(cached) " >&6
4642 else
4643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4644 /* end confdefs.h. */
4645
4646 int
4647 main ()
4648 {
4649 #ifndef __GNUC__
4650 choke me
4651 #endif
4652
4653 ;
4654 return 0;
4655 }
4656 _ACEOF
4657 if ac_fn_cxx_try_compile "$LINENO"; then :
4658 ac_compiler_gnu=yes
4659 else
4660 ac_compiler_gnu=no
4661 fi
4662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4663 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4664
4665 fi
4666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4667 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4668 if test $ac_compiler_gnu = yes; then
4669 GXX=yes
4670 else
4671 GXX=
4672 fi
4673 ac_test_CXXFLAGS=${CXXFLAGS+set}
4674 ac_save_CXXFLAGS=$CXXFLAGS
4675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4676 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4677 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4678 $as_echo_n "(cached) " >&6
4679 else
4680 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4681 ac_cxx_werror_flag=yes
4682 ac_cv_prog_cxx_g=no
4683 CXXFLAGS="-g"
4684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4685 /* end confdefs.h. */
4686
4687 int
4688 main ()
4689 {
4690
4691 ;
4692 return 0;
4693 }
4694 _ACEOF
4695 if ac_fn_cxx_try_compile "$LINENO"; then :
4696 ac_cv_prog_cxx_g=yes
4697 else
4698 CXXFLAGS=""
4699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4700 /* end confdefs.h. */
4701
4702 int
4703 main ()
4704 {
4705
4706 ;
4707 return 0;
4708 }
4709 _ACEOF
4710 if ac_fn_cxx_try_compile "$LINENO"; then :
4711
4712 else
4713 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4714 CXXFLAGS="-g"
4715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4716 /* end confdefs.h. */
4717
4718 int
4719 main ()
4720 {
4721
4722 ;
4723 return 0;
4724 }
4725 _ACEOF
4726 if ac_fn_cxx_try_compile "$LINENO"; then :
4727 ac_cv_prog_cxx_g=yes
4728 fi
4729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4730 fi
4731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4732 fi
4733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4734 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4735 fi
4736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4737 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4738 if test "$ac_test_CXXFLAGS" = set; then
4739 CXXFLAGS=$ac_save_CXXFLAGS
4740 elif test $ac_cv_prog_cxx_g = yes; then
4741 if test "$GXX" = yes; then
4742 CXXFLAGS="-g -O2"
4743 else
4744 CXXFLAGS="-g"
4745 fi
4746 else
4747 if test "$GXX" = yes; then
4748 CXXFLAGS="-O2"
4749 else
4750 CXXFLAGS=
4751 fi
4752 fi
4753 ac_ext=c
4754 ac_cpp='$CPP $CPPFLAGS'
4755 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4756 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4757 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4758
4759
4760
4761
4762 if test -n "$ac_tool_prefix"; then
4763 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4764 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4766 $as_echo_n "checking for $ac_word... " >&6; }
4767 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4768 $as_echo_n "(cached) " >&6
4769 else
4770 if test -n "$GNATBIND"; then
4771 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4772 else
4773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4774 for as_dir in $PATH
4775 do
4776 IFS=$as_save_IFS
4777 test -z "$as_dir" && as_dir=.
4778 for ac_exec_ext in '' $ac_executable_extensions; do
4779 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4780 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4782 break 2
4783 fi
4784 done
4785 done
4786 IFS=$as_save_IFS
4787
4788 fi
4789 fi
4790 GNATBIND=$ac_cv_prog_GNATBIND
4791 if test -n "$GNATBIND"; then
4792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4793 $as_echo "$GNATBIND" >&6; }
4794 else
4795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4796 $as_echo "no" >&6; }
4797 fi
4798
4799
4800 fi
4801 if test -z "$ac_cv_prog_GNATBIND"; then
4802 ac_ct_GNATBIND=$GNATBIND
4803 # Extract the first word of "gnatbind", so it can be a program name with args.
4804 set dummy gnatbind; ac_word=$2
4805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4806 $as_echo_n "checking for $ac_word... " >&6; }
4807 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4808 $as_echo_n "(cached) " >&6
4809 else
4810 if test -n "$ac_ct_GNATBIND"; then
4811 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4812 else
4813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4814 for as_dir in $PATH
4815 do
4816 IFS=$as_save_IFS
4817 test -z "$as_dir" && as_dir=.
4818 for ac_exec_ext in '' $ac_executable_extensions; do
4819 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4820 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4822 break 2
4823 fi
4824 done
4825 done
4826 IFS=$as_save_IFS
4827
4828 fi
4829 fi
4830 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4831 if test -n "$ac_ct_GNATBIND"; then
4832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4833 $as_echo "$ac_ct_GNATBIND" >&6; }
4834 else
4835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4836 $as_echo "no" >&6; }
4837 fi
4838
4839 if test "x$ac_ct_GNATBIND" = x; then
4840 GNATBIND="no"
4841 else
4842 case $cross_compiling:$ac_tool_warned in
4843 yes:)
4844 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4845 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4846 ac_tool_warned=yes ;;
4847 esac
4848 GNATBIND=$ac_ct_GNATBIND
4849 fi
4850 else
4851 GNATBIND="$ac_cv_prog_GNATBIND"
4852 fi
4853
4854 if test -n "$ac_tool_prefix"; then
4855 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4856 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4858 $as_echo_n "checking for $ac_word... " >&6; }
4859 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4860 $as_echo_n "(cached) " >&6
4861 else
4862 if test -n "$GNATMAKE"; then
4863 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4864 else
4865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4866 for as_dir in $PATH
4867 do
4868 IFS=$as_save_IFS
4869 test -z "$as_dir" && as_dir=.
4870 for ac_exec_ext in '' $ac_executable_extensions; do
4871 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4872 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4874 break 2
4875 fi
4876 done
4877 done
4878 IFS=$as_save_IFS
4879
4880 fi
4881 fi
4882 GNATMAKE=$ac_cv_prog_GNATMAKE
4883 if test -n "$GNATMAKE"; then
4884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4885 $as_echo "$GNATMAKE" >&6; }
4886 else
4887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4888 $as_echo "no" >&6; }
4889 fi
4890
4891
4892 fi
4893 if test -z "$ac_cv_prog_GNATMAKE"; then
4894 ac_ct_GNATMAKE=$GNATMAKE
4895 # Extract the first word of "gnatmake", so it can be a program name with args.
4896 set dummy gnatmake; ac_word=$2
4897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4898 $as_echo_n "checking for $ac_word... " >&6; }
4899 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4900 $as_echo_n "(cached) " >&6
4901 else
4902 if test -n "$ac_ct_GNATMAKE"; then
4903 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4904 else
4905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4906 for as_dir in $PATH
4907 do
4908 IFS=$as_save_IFS
4909 test -z "$as_dir" && as_dir=.
4910 for ac_exec_ext in '' $ac_executable_extensions; do
4911 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4912 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4914 break 2
4915 fi
4916 done
4917 done
4918 IFS=$as_save_IFS
4919
4920 fi
4921 fi
4922 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4923 if test -n "$ac_ct_GNATMAKE"; then
4924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4925 $as_echo "$ac_ct_GNATMAKE" >&6; }
4926 else
4927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4928 $as_echo "no" >&6; }
4929 fi
4930
4931 if test "x$ac_ct_GNATMAKE" = x; then
4932 GNATMAKE="no"
4933 else
4934 case $cross_compiling:$ac_tool_warned in
4935 yes:)
4936 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4937 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4938 ac_tool_warned=yes ;;
4939 esac
4940 GNATMAKE=$ac_ct_GNATMAKE
4941 fi
4942 else
4943 GNATMAKE="$ac_cv_prog_GNATMAKE"
4944 fi
4945
4946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4947 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4948 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4949 $as_echo_n "(cached) " >&6
4950 else
4951 cat >conftest.adb <<EOF
4952 procedure conftest is begin null; end conftest;
4953 EOF
4954 acx_cv_cc_gcc_supports_ada=no
4955 # There is a bug in old released versions of GCC which causes the
4956 # driver to exit successfully when the appropriate language module
4957 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4958 # Therefore we must check for the error message as well as an
4959 # unsuccessful exit.
4960 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4961 # given a .adb file, but produce no object file. So we must check
4962 # if an object file was really produced to guard against this.
4963 errors=`(${CC} -I"$srcdir"/ada -c conftest.adb) 2>&1 || echo failure`
4964 if test x"$errors" = x && test -f conftest.$ac_objext; then
4965 acx_cv_cc_gcc_supports_ada=yes
4966 fi
4967 rm -f conftest.*
4968 fi
4969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4970 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4971
4972 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4973 have_gnat=yes
4974 else
4975 have_gnat=no
4976 fi
4977
4978
4979 # Do configure tests with the C++ compiler, since that's what we build with.
4980 ac_ext=cpp
4981 ac_cpp='$CXXCPP $CPPFLAGS'
4982 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4983 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4984 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4985
4986
4987 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
4988 # optimizations to be activated explicitly by the toplevel.
4989 case "$CC" in
4990 */prev-gcc/xgcc*) ;;
4991 *) CFLAGS=`echo "$CFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" `
4992 CXXFLAGS=`echo "$CXXFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` ;;
4993 esac
4994
4995
4996
4997 # Determine PICFLAG for target gnatlib.
4998
4999
5000
5001
5002 case "${target}" in
5003 # PIC is the default on some targets or must not be used.
5004 *-*-darwin*)
5005 # For darwin, common symbols are not allowed in MH_DYLIB files
5006 case "${CFLAGS}" in
5007 # If we are using a compiler supporting mdynamic-no-pic
5008 # and the option has been tested as safe to add, then cancel
5009 # it here, since the code generated is incompatible with shared
5010 # libs.
5011 *-mdynamic-no-pic*) PICFLAG_FOR_TARGET='-fno-common -mno-dynamic-no-pic' ;;
5012 *) PICFLAG_FOR_TARGET=-fno-common ;;
5013 esac
5014 ;;
5015 alpha*-dec-osf5*)
5016 # PIC is the default.
5017 ;;
5018 hppa*64*-*-hpux*)
5019 # PIC is the default for 64-bit PA HP-UX.
5020 ;;
5021 i[34567]86-*-cygwin* | x86_64-*-cygwin*)
5022 ;;
5023 i[34567]86-*-mingw* | x86_64-*-mingw*)
5024 ;;
5025 i[34567]86-*-interix[3-9]*)
5026 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5027 # Instead, we relocate shared libraries at runtime.
5028 ;;
5029 i[34567]86-*-nto-qnx*)
5030 # QNX uses GNU C++, but need to define -shared option too, otherwise
5031 # it will coredump.
5032 PICFLAG_FOR_TARGET='-fPIC -shared'
5033 ;;
5034 i[34567]86-pc-msdosdjgpp*)
5035 # DJGPP does not support shared libraries at all.
5036 ;;
5037 ia64*-*-hpux*)
5038 # On IA64 HP-UX, PIC is the default but the pic flag
5039 # sets the default TLS model and affects inlining.
5040 PICFLAG_FOR_TARGET=-fPIC
5041 ;;
5042 mips-sgi-irix6*)
5043 # PIC is the default.
5044 ;;
5045 rs6000-ibm-aix* | powerpc-ibm-aix*)
5046 # All AIX code is PIC.
5047 ;;
5048
5049 # Some targets support both -fPIC and -fpic, but prefer the latter.
5050 # FIXME: Why?
5051 i[34567]86-*-* | x86_64-*-*)
5052 PICFLAG_FOR_TARGET=-fpic
5053 ;;
5054 # FIXME: Override -fPIC default in libgcc only?
5055 sh-*-linux* | sh[2346lbe]*-*-linux*)
5056 PICFLAG_FOR_TARGET=-fpic
5057 ;;
5058 # FIXME: Simplify to sh*-*-netbsd*?
5059 sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
5060 sh64-*-netbsd* | sh64l*-*-netbsd*)
5061 PICFLAG_FOR_TARGET=-fpic
5062 ;;
5063 # Default to -fPIC unless specified otherwise.
5064 *)
5065 PICFLAG_FOR_TARGET=-fPIC
5066 ;;
5067 esac
5068
5069 # If the user explicitly uses -fpic/-fPIC, keep that.
5070 case "${CFLAGS_FOR_TARGET}" in
5071 *-fpic*)
5072 PICFLAG_FOR_TARGET=-fpic
5073 ;;
5074 *-fPIC*)
5075 PICFLAG_FOR_TARGET=-fPIC
5076 ;;
5077 esac
5078
5079
5080
5081 # -------------------------
5082 # Check C compiler features
5083 # -------------------------
5084
5085
5086 ac_ext=cpp
5087 ac_cpp='$CXXCPP $CPPFLAGS'
5088 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5089 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5090 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5092 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5093 if test -z "$CXXCPP"; then
5094 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
5095 $as_echo_n "(cached) " >&6
5096 else
5097 # Double quotes because CXXCPP needs to be expanded
5098 for CXXCPP in "$CXX -E" "/lib/cpp"
5099 do
5100 ac_preproc_ok=false
5101 for ac_cxx_preproc_warn_flag in '' yes
5102 do
5103 # Use a header file that comes with gcc, so configuring glibc
5104 # with a fresh cross-compiler works.
5105 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5106 # <limits.h> exists even on freestanding compilers.
5107 # On the NeXT, cc -E runs the code through the compiler's parser,
5108 # not just through cpp. "Syntax error" is here to catch this case.
5109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5110 /* end confdefs.h. */
5111 #ifdef __STDC__
5112 # include <limits.h>
5113 #else
5114 # include <assert.h>
5115 #endif
5116 Syntax error
5117 _ACEOF
5118 if ac_fn_cxx_try_cpp "$LINENO"; then :
5119
5120 else
5121 # Broken: fails on valid input.
5122 continue
5123 fi
5124 rm -f conftest.err conftest.$ac_ext
5125
5126 # OK, works on sane cases. Now check whether nonexistent headers
5127 # can be detected and how.
5128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5129 /* end confdefs.h. */
5130 #include <ac_nonexistent.h>
5131 _ACEOF
5132 if ac_fn_cxx_try_cpp "$LINENO"; then :
5133 # Broken: success on invalid input.
5134 continue
5135 else
5136 # Passes both tests.
5137 ac_preproc_ok=:
5138 break
5139 fi
5140 rm -f conftest.err conftest.$ac_ext
5141
5142 done
5143 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5144 rm -f conftest.err conftest.$ac_ext
5145 if $ac_preproc_ok; then :
5146 break
5147 fi
5148
5149 done
5150 ac_cv_prog_CXXCPP=$CXXCPP
5151
5152 fi
5153 CXXCPP=$ac_cv_prog_CXXCPP
5154 else
5155 ac_cv_prog_CXXCPP=$CXXCPP
5156 fi
5157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5158 $as_echo "$CXXCPP" >&6; }
5159 ac_preproc_ok=false
5160 for ac_cxx_preproc_warn_flag in '' yes
5161 do
5162 # Use a header file that comes with gcc, so configuring glibc
5163 # with a fresh cross-compiler works.
5164 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5165 # <limits.h> exists even on freestanding compilers.
5166 # On the NeXT, cc -E runs the code through the compiler's parser,
5167 # not just through cpp. "Syntax error" is here to catch this case.
5168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5169 /* end confdefs.h. */
5170 #ifdef __STDC__
5171 # include <limits.h>
5172 #else
5173 # include <assert.h>
5174 #endif
5175 Syntax error
5176 _ACEOF
5177 if ac_fn_cxx_try_cpp "$LINENO"; then :
5178
5179 else
5180 # Broken: fails on valid input.
5181 continue
5182 fi
5183 rm -f conftest.err conftest.$ac_ext
5184
5185 # OK, works on sane cases. Now check whether nonexistent headers
5186 # can be detected and how.
5187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5188 /* end confdefs.h. */
5189 #include <ac_nonexistent.h>
5190 _ACEOF
5191 if ac_fn_cxx_try_cpp "$LINENO"; then :
5192 # Broken: success on invalid input.
5193 continue
5194 else
5195 # Passes both tests.
5196 ac_preproc_ok=:
5197 break
5198 fi
5199 rm -f conftest.err conftest.$ac_ext
5200
5201 done
5202 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5203 rm -f conftest.err conftest.$ac_ext
5204 if $ac_preproc_ok; then :
5205
5206 else
5207 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5208 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5209 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
5210 See \`config.log' for more details." "$LINENO" 5; }
5211 fi
5212
5213 ac_ext=cpp
5214 ac_cpp='$CXXCPP $CPPFLAGS'
5215 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5216 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5217 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5218
5219
5220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5221 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5222 if test "${ac_cv_path_GREP+set}" = set; then :
5223 $as_echo_n "(cached) " >&6
5224 else
5225 if test -z "$GREP"; then
5226 ac_path_GREP_found=false
5227 # Loop through the user's path and test for each of PROGNAME-LIST
5228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5229 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5230 do
5231 IFS=$as_save_IFS
5232 test -z "$as_dir" && as_dir=.
5233 for ac_prog in grep ggrep; do
5234 for ac_exec_ext in '' $ac_executable_extensions; do
5235 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5236 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5237 # Check for GNU ac_path_GREP and select it if it is found.
5238 # Check for GNU $ac_path_GREP
5239 case `"$ac_path_GREP" --version 2>&1` in
5240 *GNU*)
5241 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5242 *)
5243 ac_count=0
5244 $as_echo_n 0123456789 >"conftest.in"
5245 while :
5246 do
5247 cat "conftest.in" "conftest.in" >"conftest.tmp"
5248 mv "conftest.tmp" "conftest.in"
5249 cp "conftest.in" "conftest.nl"
5250 $as_echo 'GREP' >> "conftest.nl"
5251 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5252 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5253 as_fn_arith $ac_count + 1 && ac_count=$as_val
5254 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5255 # Best one so far, save it but keep looking for a better one
5256 ac_cv_path_GREP="$ac_path_GREP"
5257 ac_path_GREP_max=$ac_count
5258 fi
5259 # 10*(2^10) chars as input seems more than enough
5260 test $ac_count -gt 10 && break
5261 done
5262 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5263 esac
5264
5265 $ac_path_GREP_found && break 3
5266 done
5267 done
5268 done
5269 IFS=$as_save_IFS
5270 if test -z "$ac_cv_path_GREP"; then
5271 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5272 fi
5273 else
5274 ac_cv_path_GREP=$GREP
5275 fi
5276
5277 fi
5278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5279 $as_echo "$ac_cv_path_GREP" >&6; }
5280 GREP="$ac_cv_path_GREP"
5281
5282
5283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5284 $as_echo_n "checking for egrep... " >&6; }
5285 if test "${ac_cv_path_EGREP+set}" = set; then :
5286 $as_echo_n "(cached) " >&6
5287 else
5288 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5289 then ac_cv_path_EGREP="$GREP -E"
5290 else
5291 if test -z "$EGREP"; then
5292 ac_path_EGREP_found=false
5293 # Loop through the user's path and test for each of PROGNAME-LIST
5294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5295 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5296 do
5297 IFS=$as_save_IFS
5298 test -z "$as_dir" && as_dir=.
5299 for ac_prog in egrep; do
5300 for ac_exec_ext in '' $ac_executable_extensions; do
5301 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5302 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5303 # Check for GNU ac_path_EGREP and select it if it is found.
5304 # Check for GNU $ac_path_EGREP
5305 case `"$ac_path_EGREP" --version 2>&1` in
5306 *GNU*)
5307 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5308 *)
5309 ac_count=0
5310 $as_echo_n 0123456789 >"conftest.in"
5311 while :
5312 do
5313 cat "conftest.in" "conftest.in" >"conftest.tmp"
5314 mv "conftest.tmp" "conftest.in"
5315 cp "conftest.in" "conftest.nl"
5316 $as_echo 'EGREP' >> "conftest.nl"
5317 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5318 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5319 as_fn_arith $ac_count + 1 && ac_count=$as_val
5320 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5321 # Best one so far, save it but keep looking for a better one
5322 ac_cv_path_EGREP="$ac_path_EGREP"
5323 ac_path_EGREP_max=$ac_count
5324 fi
5325 # 10*(2^10) chars as input seems more than enough
5326 test $ac_count -gt 10 && break
5327 done
5328 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5329 esac
5330
5331 $ac_path_EGREP_found && break 3
5332 done
5333 done
5334 done
5335 IFS=$as_save_IFS
5336 if test -z "$ac_cv_path_EGREP"; then
5337 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5338 fi
5339 else
5340 ac_cv_path_EGREP=$EGREP
5341 fi
5342
5343 fi
5344 fi
5345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5346 $as_echo "$ac_cv_path_EGREP" >&6; }
5347 EGREP="$ac_cv_path_EGREP"
5348
5349
5350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5351 $as_echo_n "checking for ANSI C header files... " >&6; }
5352 if test "${ac_cv_header_stdc+set}" = set; then :
5353 $as_echo_n "(cached) " >&6
5354 else
5355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5356 /* end confdefs.h. */
5357 #include <stdlib.h>
5358 #include <stdarg.h>
5359 #include <string.h>
5360 #include <float.h>
5361
5362 int
5363 main ()
5364 {
5365
5366 ;
5367 return 0;
5368 }
5369 _ACEOF
5370 if ac_fn_cxx_try_compile "$LINENO"; then :
5371 ac_cv_header_stdc=yes
5372 else
5373 ac_cv_header_stdc=no
5374 fi
5375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5376
5377 if test $ac_cv_header_stdc = yes; then
5378 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5380 /* end confdefs.h. */
5381 #include <string.h>
5382
5383 _ACEOF
5384 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5385 $EGREP "memchr" >/dev/null 2>&1; then :
5386
5387 else
5388 ac_cv_header_stdc=no
5389 fi
5390 rm -f conftest*
5391
5392 fi
5393
5394 if test $ac_cv_header_stdc = yes; then
5395 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5397 /* end confdefs.h. */
5398 #include <stdlib.h>
5399
5400 _ACEOF
5401 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5402 $EGREP "free" >/dev/null 2>&1; then :
5403
5404 else
5405 ac_cv_header_stdc=no
5406 fi
5407 rm -f conftest*
5408
5409 fi
5410
5411 if test $ac_cv_header_stdc = yes; then
5412 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5413 if test "$cross_compiling" = yes; then :
5414 :
5415 else
5416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5417 /* end confdefs.h. */
5418 #include <ctype.h>
5419 #include <stdlib.h>
5420 #if ((' ' & 0x0FF) == 0x020)
5421 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5422 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5423 #else
5424 # define ISLOWER(c) \
5425 (('a' <= (c) && (c) <= 'i') \
5426 || ('j' <= (c) && (c) <= 'r') \
5427 || ('s' <= (c) && (c) <= 'z'))
5428 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5429 #endif
5430
5431 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5432 int
5433 main ()
5434 {
5435 int i;
5436 for (i = 0; i < 256; i++)
5437 if (XOR (islower (i), ISLOWER (i))
5438 || toupper (i) != TOUPPER (i))
5439 return 2;
5440 return 0;
5441 }
5442 _ACEOF
5443 if ac_fn_cxx_try_run "$LINENO"; then :
5444
5445 else
5446 ac_cv_header_stdc=no
5447 fi
5448 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5449 conftest.$ac_objext conftest.beam conftest.$ac_ext
5450 fi
5451
5452 fi
5453 fi
5454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5455 $as_echo "$ac_cv_header_stdc" >&6; }
5456 if test $ac_cv_header_stdc = yes; then
5457
5458 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5459
5460 fi
5461
5462 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5463 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5464 inttypes.h stdint.h unistd.h
5465 do :
5466 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5467 ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5468 "
5469 eval as_val=\$$as_ac_Header
5470 if test "x$as_val" = x""yes; then :
5471 cat >>confdefs.h <<_ACEOF
5472 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5473 _ACEOF
5474
5475 fi
5476
5477 done
5478
5479
5480
5481 ac_fn_cxx_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5482 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5483 MINIX=yes
5484 else
5485 MINIX=
5486 fi
5487
5488
5489 if test "$MINIX" = yes; then
5490
5491 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5492
5493
5494 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5495
5496
5497 $as_echo "#define _MINIX 1" >>confdefs.h
5498
5499 fi
5500
5501
5502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5503 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5504 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5505 $as_echo_n "(cached) " >&6
5506 else
5507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5508 /* end confdefs.h. */
5509
5510 # define __EXTENSIONS__ 1
5511 $ac_includes_default
5512 int
5513 main ()
5514 {
5515
5516 ;
5517 return 0;
5518 }
5519 _ACEOF
5520 if ac_fn_cxx_try_compile "$LINENO"; then :
5521 ac_cv_safe_to_define___extensions__=yes
5522 else
5523 ac_cv_safe_to_define___extensions__=no
5524 fi
5525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5526 fi
5527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5528 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5529 test $ac_cv_safe_to_define___extensions__ = yes &&
5530 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5531
5532 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5533
5534 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5535
5536 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5537
5538 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5539
5540
5541 ac_ext=c
5542 ac_cpp='$CPP $CPPFLAGS'
5543 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5544 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5545 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5547 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5548 # On Suns, sometimes $CPP names a directory.
5549 if test -n "$CPP" && test -d "$CPP"; then
5550 CPP=
5551 fi
5552 if test -z "$CPP"; then
5553 if test "${ac_cv_prog_CPP+set}" = set; then :
5554 $as_echo_n "(cached) " >&6
5555 else
5556 # Double quotes because CPP needs to be expanded
5557 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5558 do
5559 ac_preproc_ok=false
5560 for ac_c_preproc_warn_flag in '' yes
5561 do
5562 # Use a header file that comes with gcc, so configuring glibc
5563 # with a fresh cross-compiler works.
5564 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5565 # <limits.h> exists even on freestanding compilers.
5566 # On the NeXT, cc -E runs the code through the compiler's parser,
5567 # not just through cpp. "Syntax error" is here to catch this case.
5568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5569 /* end confdefs.h. */
5570 #ifdef __STDC__
5571 # include <limits.h>
5572 #else
5573 # include <assert.h>
5574 #endif
5575 Syntax error
5576 _ACEOF
5577 if ac_fn_c_try_cpp "$LINENO"; then :
5578
5579 else
5580 # Broken: fails on valid input.
5581 continue
5582 fi
5583 rm -f conftest.err conftest.$ac_ext
5584
5585 # OK, works on sane cases. Now check whether nonexistent headers
5586 # can be detected and how.
5587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5588 /* end confdefs.h. */
5589 #include <ac_nonexistent.h>
5590 _ACEOF
5591 if ac_fn_c_try_cpp "$LINENO"; then :
5592 # Broken: success on invalid input.
5593 continue
5594 else
5595 # Passes both tests.
5596 ac_preproc_ok=:
5597 break
5598 fi
5599 rm -f conftest.err conftest.$ac_ext
5600
5601 done
5602 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5603 rm -f conftest.err conftest.$ac_ext
5604 if $ac_preproc_ok; then :
5605 break
5606 fi
5607
5608 done
5609 ac_cv_prog_CPP=$CPP
5610
5611 fi
5612 CPP=$ac_cv_prog_CPP
5613 else
5614 ac_cv_prog_CPP=$CPP
5615 fi
5616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5617 $as_echo "$CPP" >&6; }
5618 ac_preproc_ok=false
5619 for ac_c_preproc_warn_flag in '' yes
5620 do
5621 # Use a header file that comes with gcc, so configuring glibc
5622 # with a fresh cross-compiler works.
5623 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5624 # <limits.h> exists even on freestanding compilers.
5625 # On the NeXT, cc -E runs the code through the compiler's parser,
5626 # not just through cpp. "Syntax error" is here to catch this case.
5627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5628 /* end confdefs.h. */
5629 #ifdef __STDC__
5630 # include <limits.h>
5631 #else
5632 # include <assert.h>
5633 #endif
5634 Syntax error
5635 _ACEOF
5636 if ac_fn_c_try_cpp "$LINENO"; then :
5637
5638 else
5639 # Broken: fails on valid input.
5640 continue
5641 fi
5642 rm -f conftest.err conftest.$ac_ext
5643
5644 # OK, works on sane cases. Now check whether nonexistent headers
5645 # can be detected and how.
5646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5647 /* end confdefs.h. */
5648 #include <ac_nonexistent.h>
5649 _ACEOF
5650 if ac_fn_c_try_cpp "$LINENO"; then :
5651 # Broken: success on invalid input.
5652 continue
5653 else
5654 # Passes both tests.
5655 ac_preproc_ok=:
5656 break
5657 fi
5658 rm -f conftest.err conftest.$ac_ext
5659
5660 done
5661 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5662 rm -f conftest.err conftest.$ac_ext
5663 if $ac_preproc_ok; then :
5664
5665 else
5666 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5667 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5668 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5669 See \`config.log' for more details." "$LINENO" 5; }
5670 fi
5671
5672 ac_ext=cpp
5673 ac_cpp='$CXXCPP $CPPFLAGS'
5674 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5675 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5676 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5677
5678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5679 $as_echo_n "checking for inline... " >&6; }
5680 if test "${ac_cv_c_inline+set}" = set; then :
5681 $as_echo_n "(cached) " >&6
5682 else
5683 ac_cv_c_inline=no
5684 for ac_kw in inline __inline__ __inline; do
5685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5686 /* end confdefs.h. */
5687 #ifndef __cplusplus
5688 typedef int foo_t;
5689 static $ac_kw foo_t static_foo () {return 0; }
5690 $ac_kw foo_t foo () {return 0; }
5691 #endif
5692
5693 _ACEOF
5694 if ac_fn_cxx_try_compile "$LINENO"; then :
5695 ac_cv_c_inline=$ac_kw
5696 fi
5697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5698 test "$ac_cv_c_inline" != no && break
5699 done
5700
5701 fi
5702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5703 $as_echo "$ac_cv_c_inline" >&6; }
5704
5705 case $ac_cv_c_inline in
5706 inline | yes) ;;
5707 *)
5708 case $ac_cv_c_inline in
5709 no) ac_val=;;
5710 *) ac_val=$ac_cv_c_inline;;
5711 esac
5712 cat >>confdefs.h <<_ACEOF
5713 #ifndef __cplusplus
5714 #define inline $ac_val
5715 #endif
5716 _ACEOF
5717 ;;
5718 esac
5719
5720
5721 # Check whether --enable-largefile was given.
5722 if test "${enable_largefile+set}" = set; then :
5723 enableval=$enable_largefile;
5724 fi
5725
5726 if test "$enable_largefile" != no; then
5727
5728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5729 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5730 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5731 $as_echo_n "(cached) " >&6
5732 else
5733 ac_cv_sys_largefile_CC=no
5734 if test "$GCC" != yes; then
5735 ac_save_CC=$CC
5736 while :; do
5737 # IRIX 6.2 and later do not support large files by default,
5738 # so use the C compiler's -n32 option if that helps.
5739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5740 /* end confdefs.h. */
5741 #include <sys/types.h>
5742 /* Check that off_t can represent 2**63 - 1 correctly.
5743 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5744 since some C++ compilers masquerading as C compilers
5745 incorrectly reject 9223372036854775807. */
5746 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5747 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5748 && LARGE_OFF_T % 2147483647 == 1)
5749 ? 1 : -1];
5750 int
5751 main ()
5752 {
5753
5754 ;
5755 return 0;
5756 }
5757 _ACEOF
5758 if ac_fn_cxx_try_compile "$LINENO"; then :
5759 break
5760 fi
5761 rm -f core conftest.err conftest.$ac_objext
5762 CC="$CC -n32"
5763 if ac_fn_cxx_try_compile "$LINENO"; then :
5764 ac_cv_sys_largefile_CC=' -n32'; break
5765 fi
5766 rm -f core conftest.err conftest.$ac_objext
5767 break
5768 done
5769 CC=$ac_save_CC
5770 rm -f conftest.$ac_ext
5771 fi
5772 fi
5773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5774 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5775 if test "$ac_cv_sys_largefile_CC" != no; then
5776 CC=$CC$ac_cv_sys_largefile_CC
5777 fi
5778
5779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5780 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5781 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5782 $as_echo_n "(cached) " >&6
5783 else
5784 while :; do
5785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5786 /* end confdefs.h. */
5787 #include <sys/types.h>
5788 /* Check that off_t can represent 2**63 - 1 correctly.
5789 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5790 since some C++ compilers masquerading as C compilers
5791 incorrectly reject 9223372036854775807. */
5792 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5793 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5794 && LARGE_OFF_T % 2147483647 == 1)
5795 ? 1 : -1];
5796 int
5797 main ()
5798 {
5799
5800 ;
5801 return 0;
5802 }
5803 _ACEOF
5804 if ac_fn_cxx_try_compile "$LINENO"; then :
5805 ac_cv_sys_file_offset_bits=no; break
5806 fi
5807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5809 /* end confdefs.h. */
5810 #define _FILE_OFFSET_BITS 64
5811 #include <sys/types.h>
5812 /* Check that off_t can represent 2**63 - 1 correctly.
5813 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5814 since some C++ compilers masquerading as C compilers
5815 incorrectly reject 9223372036854775807. */
5816 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5817 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5818 && LARGE_OFF_T % 2147483647 == 1)
5819 ? 1 : -1];
5820 int
5821 main ()
5822 {
5823
5824 ;
5825 return 0;
5826 }
5827 _ACEOF
5828 if ac_fn_cxx_try_compile "$LINENO"; then :
5829 ac_cv_sys_file_offset_bits=64; break
5830 fi
5831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5832 ac_cv_sys_file_offset_bits=unknown
5833 break
5834 done
5835 fi
5836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5837 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5838 case $ac_cv_sys_file_offset_bits in #(
5839 no | unknown) ;;
5840 *)
5841 cat >>confdefs.h <<_ACEOF
5842 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5843 _ACEOF
5844 ;;
5845 esac
5846 rm -rf conftest*
5847 if test $ac_cv_sys_file_offset_bits = unknown; then
5848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5849 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5850 if test "${ac_cv_sys_large_files+set}" = set; then :
5851 $as_echo_n "(cached) " >&6
5852 else
5853 while :; do
5854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5855 /* end confdefs.h. */
5856 #include <sys/types.h>
5857 /* Check that off_t can represent 2**63 - 1 correctly.
5858 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5859 since some C++ compilers masquerading as C compilers
5860 incorrectly reject 9223372036854775807. */
5861 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5862 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5863 && LARGE_OFF_T % 2147483647 == 1)
5864 ? 1 : -1];
5865 int
5866 main ()
5867 {
5868
5869 ;
5870 return 0;
5871 }
5872 _ACEOF
5873 if ac_fn_cxx_try_compile "$LINENO"; then :
5874 ac_cv_sys_large_files=no; break
5875 fi
5876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5878 /* end confdefs.h. */
5879 #define _LARGE_FILES 1
5880 #include <sys/types.h>
5881 /* Check that off_t can represent 2**63 - 1 correctly.
5882 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5883 since some C++ compilers masquerading as C compilers
5884 incorrectly reject 9223372036854775807. */
5885 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5886 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5887 && LARGE_OFF_T % 2147483647 == 1)
5888 ? 1 : -1];
5889 int
5890 main ()
5891 {
5892
5893 ;
5894 return 0;
5895 }
5896 _ACEOF
5897 if ac_fn_cxx_try_compile "$LINENO"; then :
5898 ac_cv_sys_large_files=1; break
5899 fi
5900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5901 ac_cv_sys_large_files=unknown
5902 break
5903 done
5904 fi
5905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5906 $as_echo "$ac_cv_sys_large_files" >&6; }
5907 case $ac_cv_sys_large_files in #(
5908 no | unknown) ;;
5909 *)
5910 cat >>confdefs.h <<_ACEOF
5911 #define _LARGE_FILES $ac_cv_sys_large_files
5912 _ACEOF
5913 ;;
5914 esac
5915 rm -rf conftest*
5916 fi
5917 fi
5918
5919
5920 # sizeof(char) is 1 by definition.
5921 # The cast to long int works around a bug in the HP C Compiler
5922 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5923 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5924 # This bug is HP SR number 8606223364.
5925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5926 $as_echo_n "checking size of void *... " >&6; }
5927 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5928 $as_echo_n "(cached) " >&6
5929 else
5930 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5931
5932 else
5933 if test "$ac_cv_type_void_p" = yes; then
5934 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5935 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5936 { as_fn_set_status 77
5937 as_fn_error "cannot compute sizeof (void *)
5938 See \`config.log' for more details." "$LINENO" 5; }; }
5939 else
5940 ac_cv_sizeof_void_p=0
5941 fi
5942 fi
5943
5944 fi
5945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5946 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5947
5948
5949
5950 cat >>confdefs.h <<_ACEOF
5951 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5952 _ACEOF
5953
5954
5955 # The cast to long int works around a bug in the HP C Compiler
5956 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5957 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5958 # This bug is HP SR number 8606223364.
5959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5960 $as_echo_n "checking size of short... " >&6; }
5961 if test "${ac_cv_sizeof_short+set}" = set; then :
5962 $as_echo_n "(cached) " >&6
5963 else
5964 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5965
5966 else
5967 if test "$ac_cv_type_short" = yes; then
5968 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5969 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5970 { as_fn_set_status 77
5971 as_fn_error "cannot compute sizeof (short)
5972 See \`config.log' for more details." "$LINENO" 5; }; }
5973 else
5974 ac_cv_sizeof_short=0
5975 fi
5976 fi
5977
5978 fi
5979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5980 $as_echo "$ac_cv_sizeof_short" >&6; }
5981
5982
5983
5984 cat >>confdefs.h <<_ACEOF
5985 #define SIZEOF_SHORT $ac_cv_sizeof_short
5986 _ACEOF
5987
5988
5989 # The cast to long int works around a bug in the HP C Compiler
5990 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5991 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5992 # This bug is HP SR number 8606223364.
5993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5994 $as_echo_n "checking size of int... " >&6; }
5995 if test "${ac_cv_sizeof_int+set}" = set; then :
5996 $as_echo_n "(cached) " >&6
5997 else
5998 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5999
6000 else
6001 if test "$ac_cv_type_int" = yes; then
6002 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6003 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6004 { as_fn_set_status 77
6005 as_fn_error "cannot compute sizeof (int)
6006 See \`config.log' for more details." "$LINENO" 5; }; }
6007 else
6008 ac_cv_sizeof_int=0
6009 fi
6010 fi
6011
6012 fi
6013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
6014 $as_echo "$ac_cv_sizeof_int" >&6; }
6015
6016
6017
6018 cat >>confdefs.h <<_ACEOF
6019 #define SIZEOF_INT $ac_cv_sizeof_int
6020 _ACEOF
6021
6022
6023 # The cast to long int works around a bug in the HP C Compiler
6024 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6025 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6026 # This bug is HP SR number 8606223364.
6027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6028 $as_echo_n "checking size of long... " >&6; }
6029 if test "${ac_cv_sizeof_long+set}" = set; then :
6030 $as_echo_n "(cached) " >&6
6031 else
6032 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
6033
6034 else
6035 if test "$ac_cv_type_long" = yes; then
6036 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6037 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6038 { as_fn_set_status 77
6039 as_fn_error "cannot compute sizeof (long)
6040 See \`config.log' for more details." "$LINENO" 5; }; }
6041 else
6042 ac_cv_sizeof_long=0
6043 fi
6044 fi
6045
6046 fi
6047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6048 $as_echo "$ac_cv_sizeof_long" >&6; }
6049
6050
6051
6052 cat >>confdefs.h <<_ACEOF
6053 #define SIZEOF_LONG $ac_cv_sizeof_long
6054 _ACEOF
6055
6056
6057 ac_fn_cxx_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
6058 if test "x$ac_cv_type_long_long" = x""yes; then :
6059
6060 cat >>confdefs.h <<_ACEOF
6061 #define HAVE_LONG_LONG 1
6062 _ACEOF
6063
6064 # The cast to long int works around a bug in the HP C Compiler
6065 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6066 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6067 # This bug is HP SR number 8606223364.
6068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
6069 $as_echo_n "checking size of long long... " >&6; }
6070 if test "${ac_cv_sizeof_long_long+set}" = set; then :
6071 $as_echo_n "(cached) " >&6
6072 else
6073 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
6074
6075 else
6076 if test "$ac_cv_type_long_long" = yes; then
6077 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6078 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6079 { as_fn_set_status 77
6080 as_fn_error "cannot compute sizeof (long long)
6081 See \`config.log' for more details." "$LINENO" 5; }; }
6082 else
6083 ac_cv_sizeof_long_long=0
6084 fi
6085 fi
6086
6087 fi
6088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
6089 $as_echo "$ac_cv_sizeof_long_long" >&6; }
6090
6091
6092
6093 cat >>confdefs.h <<_ACEOF
6094 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6095 _ACEOF
6096
6097
6098 fi
6099
6100 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
6101 case $ac_cv_c_int8_t in #(
6102 no|yes) ;; #(
6103 *)
6104
6105 cat >>confdefs.h <<_ACEOF
6106 #define int8_t $ac_cv_c_int8_t
6107 _ACEOF
6108 ;;
6109 esac
6110
6111 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
6112 case $ac_cv_c_int16_t in #(
6113 no|yes) ;; #(
6114 *)
6115
6116 cat >>confdefs.h <<_ACEOF
6117 #define int16_t $ac_cv_c_int16_t
6118 _ACEOF
6119 ;;
6120 esac
6121
6122 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
6123 case $ac_cv_c_int32_t in #(
6124 no|yes) ;; #(
6125 *)
6126
6127 cat >>confdefs.h <<_ACEOF
6128 #define int32_t $ac_cv_c_int32_t
6129 _ACEOF
6130 ;;
6131 esac
6132
6133 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
6134 case $ac_cv_c_int64_t in #(
6135 no|yes) ;; #(
6136 *)
6137
6138 cat >>confdefs.h <<_ACEOF
6139 #define int64_t $ac_cv_c_int64_t
6140 _ACEOF
6141 ;;
6142 esac
6143
6144
6145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6146 $as_echo_n "checking for long long int... " >&6; }
6147 if test "${ac_cv_type_long_long_int+set}" = set; then :
6148 $as_echo_n "(cached) " >&6
6149 else
6150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6151 /* end confdefs.h. */
6152
6153 /* For now, do not test the preprocessor; as of 2007 there are too many
6154 implementations with broken preprocessors. Perhaps this can
6155 be revisited in 2012. In the meantime, code should not expect
6156 #if to work with literals wider than 32 bits. */
6157 /* Test literals. */
6158 long long int ll = 9223372036854775807ll;
6159 long long int nll = -9223372036854775807LL;
6160 unsigned long long int ull = 18446744073709551615ULL;
6161 /* Test constant expressions. */
6162 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6163 ? 1 : -1)];
6164 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6165 ? 1 : -1)];
6166 int i = 63;
6167 int
6168 main ()
6169 {
6170 /* Test availability of runtime routines for shift and division. */
6171 long long int llmax = 9223372036854775807ll;
6172 unsigned long long int ullmax = 18446744073709551615ull;
6173 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6174 | (llmax / ll) | (llmax % ll)
6175 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6176 | (ullmax / ull) | (ullmax % ull));
6177 ;
6178 return 0;
6179 }
6180
6181 _ACEOF
6182 if ac_fn_cxx_try_link "$LINENO"; then :
6183 if test "$cross_compiling" = yes; then :
6184 ac_cv_type_long_long_int=yes
6185 else
6186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6187 /* end confdefs.h. */
6188 #include <limits.h>
6189 #ifndef LLONG_MAX
6190 # define HALF \
6191 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6192 # define LLONG_MAX (HALF - 1 + HALF)
6193 #endif
6194 int
6195 main ()
6196 {
6197 long long int n = 1;
6198 int i;
6199 for (i = 0; ; i++)
6200 {
6201 long long int m = n << i;
6202 if (m >> i != n)
6203 return 1;
6204 if (LLONG_MAX / 2 < m)
6205 break;
6206 }
6207 return 0;
6208 ;
6209 return 0;
6210 }
6211 _ACEOF
6212 if ac_fn_cxx_try_run "$LINENO"; then :
6213 ac_cv_type_long_long_int=yes
6214 else
6215 ac_cv_type_long_long_int=no
6216 fi
6217 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6218 conftest.$ac_objext conftest.beam conftest.$ac_ext
6219 fi
6220
6221 else
6222 ac_cv_type_long_long_int=no
6223 fi
6224 rm -f core conftest.err conftest.$ac_objext \
6225 conftest$ac_exeext conftest.$ac_ext
6226 fi
6227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6228 $as_echo "$ac_cv_type_long_long_int" >&6; }
6229 if test $ac_cv_type_long_long_int = yes; then
6230
6231 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6232
6233 fi
6234
6235
6236
6237 ac_fn_cxx_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6238 if test "x$ac_cv_type_intmax_t" = x""yes; then :
6239
6240 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6241
6242 else
6243 test $ac_cv_type_long_long_int = yes \
6244 && ac_type='long long int' \
6245 || ac_type='long int'
6246
6247 cat >>confdefs.h <<_ACEOF
6248 #define intmax_t $ac_type
6249 _ACEOF
6250
6251 fi
6252
6253
6254
6255 ac_fn_cxx_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6256 if test "x$ac_cv_type_intptr_t" = x""yes; then :
6257
6258 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6259
6260 else
6261 for ac_type in 'int' 'long int' 'long long int'; do
6262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6263 /* end confdefs.h. */
6264 $ac_includes_default
6265 int
6266 main ()
6267 {
6268 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6269 test_array [0] = 0
6270
6271 ;
6272 return 0;
6273 }
6274 _ACEOF
6275 if ac_fn_cxx_try_compile "$LINENO"; then :
6276
6277 cat >>confdefs.h <<_ACEOF
6278 #define intptr_t $ac_type
6279 _ACEOF
6280
6281 ac_type=
6282 fi
6283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6284 test -z "$ac_type" && break
6285 done
6286 fi
6287
6288
6289 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
6290 case $ac_cv_c_uint8_t in #(
6291 no|yes) ;; #(
6292 *)
6293
6294 $as_echo "#define _UINT8_T 1" >>confdefs.h
6295
6296
6297 cat >>confdefs.h <<_ACEOF
6298 #define uint8_t $ac_cv_c_uint8_t
6299 _ACEOF
6300 ;;
6301 esac
6302
6303 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6304 case $ac_cv_c_uint16_t in #(
6305 no|yes) ;; #(
6306 *)
6307
6308
6309 cat >>confdefs.h <<_ACEOF
6310 #define uint16_t $ac_cv_c_uint16_t
6311 _ACEOF
6312 ;;
6313 esac
6314
6315 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6316 case $ac_cv_c_uint32_t in #(
6317 no|yes) ;; #(
6318 *)
6319
6320 $as_echo "#define _UINT32_T 1" >>confdefs.h
6321
6322
6323 cat >>confdefs.h <<_ACEOF
6324 #define uint32_t $ac_cv_c_uint32_t
6325 _ACEOF
6326 ;;
6327 esac
6328
6329 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
6330 case $ac_cv_c_uint64_t in #(
6331 no|yes) ;; #(
6332 *)
6333
6334 $as_echo "#define _UINT64_T 1" >>confdefs.h
6335
6336
6337 cat >>confdefs.h <<_ACEOF
6338 #define uint64_t $ac_cv_c_uint64_t
6339 _ACEOF
6340 ;;
6341 esac
6342
6343
6344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6345 $as_echo_n "checking for unsigned long long int... " >&6; }
6346 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6347 $as_echo_n "(cached) " >&6
6348 else
6349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6350 /* end confdefs.h. */
6351
6352 /* For now, do not test the preprocessor; as of 2007 there are too many
6353 implementations with broken preprocessors. Perhaps this can
6354 be revisited in 2012. In the meantime, code should not expect
6355 #if to work with literals wider than 32 bits. */
6356 /* Test literals. */
6357 long long int ll = 9223372036854775807ll;
6358 long long int nll = -9223372036854775807LL;
6359 unsigned long long int ull = 18446744073709551615ULL;
6360 /* Test constant expressions. */
6361 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6362 ? 1 : -1)];
6363 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6364 ? 1 : -1)];
6365 int i = 63;
6366 int
6367 main ()
6368 {
6369 /* Test availability of runtime routines for shift and division. */
6370 long long int llmax = 9223372036854775807ll;
6371 unsigned long long int ullmax = 18446744073709551615ull;
6372 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6373 | (llmax / ll) | (llmax % ll)
6374 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6375 | (ullmax / ull) | (ullmax % ull));
6376 ;
6377 return 0;
6378 }
6379
6380 _ACEOF
6381 if ac_fn_cxx_try_link "$LINENO"; then :
6382 ac_cv_type_unsigned_long_long_int=yes
6383 else
6384 ac_cv_type_unsigned_long_long_int=no
6385 fi
6386 rm -f core conftest.err conftest.$ac_objext \
6387 conftest$ac_exeext conftest.$ac_ext
6388 fi
6389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6390 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6391 if test $ac_cv_type_unsigned_long_long_int = yes; then
6392
6393 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6394
6395 fi
6396
6397
6398
6399 ac_fn_cxx_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6400 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
6401
6402 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6403
6404 else
6405 test $ac_cv_type_unsigned_long_long_int = yes \
6406 && ac_type='unsigned long long int' \
6407 || ac_type='unsigned long int'
6408
6409 cat >>confdefs.h <<_ACEOF
6410 #define uintmax_t $ac_type
6411 _ACEOF
6412
6413 fi
6414
6415
6416
6417 ac_fn_cxx_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6418 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
6419
6420 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6421
6422 else
6423 for ac_type in 'unsigned int' 'unsigned long int' \
6424 'unsigned long long int'; do
6425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6426 /* end confdefs.h. */
6427 $ac_includes_default
6428 int
6429 main ()
6430 {
6431 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6432 test_array [0] = 0
6433
6434 ;
6435 return 0;
6436 }
6437 _ACEOF
6438 if ac_fn_cxx_try_compile "$LINENO"; then :
6439
6440 cat >>confdefs.h <<_ACEOF
6441 #define uintptr_t $ac_type
6442 _ACEOF
6443
6444 ac_type=
6445 fi
6446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6447 test -z "$ac_type" && break
6448 done
6449 fi
6450
6451
6452
6453
6454
6455
6456
6457
6458
6459
6460
6461
6462
6463
6464 if test x"$ac_cv_c_uint64_t" = x"no" -o x"$ac_cv_c_int64_t" = x"no"; then
6465 as_fn_error "uint64_t or int64_t not found" "$LINENO" 5
6466 fi
6467
6468 # check what underlying integer type int64_t uses
6469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t underlying type" >&5
6470 $as_echo_n "checking for int64_t underlying type... " >&6; }
6471 if test "${ac_cv_int64_t_type+set}" = set; then :
6472 $as_echo_n "(cached) " >&6
6473 else
6474
6475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6476 /* end confdefs.h. */
6477
6478 #ifdef HAVE_STDINT_H
6479 #include <stdint.h>
6480 #endif
6481 template <typename T> struct X { };
6482 template <>
6483 struct X<long> { typedef long t; };
6484
6485 int
6486 main ()
6487 {
6488 X<int64_t>::t x;
6489 ;
6490 return 0;
6491 }
6492 _ACEOF
6493 if ac_fn_cxx_try_compile "$LINENO"; then :
6494 ac_cv_int64_t_type=long
6495 else
6496 ac_cv_int64_t_type="long long"
6497 fi
6498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6499 fi
6500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_int64_t_type" >&5
6501 $as_echo "$ac_cv_int64_t_type" >&6; }
6502 if test "$ac_cv_int64_t_type" = "long"; then
6503
6504 $as_echo "#define INT64_T_IS_LONG 1" >>confdefs.h
6505
6506 else
6507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6508 /* end confdefs.h. */
6509
6510 #ifdef HAVE_STDINT_H
6511 #include <stdint.h>
6512 #endif
6513 template <typename T> struct X { };
6514 template <>
6515 struct X<long long> { typedef long long t; };
6516
6517 int
6518 main ()
6519 {
6520 X<int64_t>::t x;
6521 ;
6522 return 0;
6523 }
6524 _ACEOF
6525 if ac_fn_cxx_try_compile "$LINENO"; then :
6526
6527 else
6528 as_fn_error "error verifying int64_t uses long long" "$LINENO" 5
6529 fi
6530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6531 fi
6532
6533 # Check whether compiler is affected by placement new aliasing bug (PR 29286).
6534 # If the host compiler is affected by the bug, and we build with optimization
6535 # enabled (which happens e.g. when cross-compiling), the pool allocator may
6536 # get miscompiled. Use -fno-strict-aliasing to work around this problem.
6537 # Since there is no reliable feature check for the presence of this bug,
6538 # we simply use a GCC version number check. (This should never trigger for
6539 # stages 2 or 3 of a native bootstrap.)
6540 aliasing_flags=
6541 if test "$GCC" = yes; then
6542 saved_CXXFLAGS="$CXXFLAGS"
6543
6544 # The following test compilation will succeed if and only if $CXX accepts
6545 # -fno-strict-aliasing *and* is older than GCC 4.3.
6546 CXXFLAGS="$CXXFLAGS -fno-strict-aliasing"
6547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX is affected by placement new aliasing bug" >&5
6548 $as_echo_n "checking whether $CXX is affected by placement new aliasing bug... " >&6; }
6549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6550 /* end confdefs.h. */
6551
6552 #if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3)
6553 #error compiler not affected by placement new aliasing bug
6554 #endif
6555
6556 _ACEOF
6557 if ac_fn_cxx_try_compile "$LINENO"; then :
6558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6559 $as_echo "yes" >&6; }; aliasing_flags='-fno-strict-aliasing'
6560 else
6561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6562 $as_echo "no" >&6; }
6563 fi
6564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6565
6566 CXXFLAGS="$saved_CXXFLAGS"
6567 fi
6568
6569
6570
6571
6572 # ---------------------
6573 # Warnings and checking
6574 # ---------------------
6575
6576 # Check $CC warning features (if it's GCC).
6577 # We want to use -pedantic, but we don't want warnings about
6578 # * 'long long'
6579 # * variadic macros
6580 # * overlong strings
6581 # * C++11 narrowing conversions in { }
6582 # So, we only use -pedantic if we can disable those warnings.
6583
6584 # In stage 1, disable -Wformat warnings from old GCCs about new % codes
6585 # Check whether --enable-build-format-warnings was given.
6586 if test "${enable_build_format_warnings+set}" = set; then :
6587 enableval=$enable_build_format_warnings;
6588 else
6589 enable_build_format_warnings=yes
6590 fi
6591
6592 if test $enable_build_format_warnings = no; then :
6593 wf_opt=-Wno-format
6594 else
6595 wf_opt=
6596 fi
6597 ac_ext=cpp
6598 ac_cpp='$CXXCPP $CPPFLAGS'
6599 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6600 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6601 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6602
6603 loose_warn=
6604 save_CXXFLAGS="$CXXFLAGS"
6605 for real_option in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual $wf_opt; do
6606 # Do the check with the no- prefix removed since gcc silently
6607 # accepts any -Wno-* option on purpose
6608 case $real_option in
6609 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6610 *) option=$real_option ;;
6611 esac
6612 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6613
6614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6615 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6616 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6617 $as_echo_n "(cached) " >&6
6618 else
6619 CXXFLAGS="$option"
6620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6621 /* end confdefs.h. */
6622
6623 int
6624 main ()
6625 {
6626
6627 ;
6628 return 0;
6629 }
6630 _ACEOF
6631 if ac_fn_cxx_try_compile "$LINENO"; then :
6632 eval "$as_acx_Woption=yes"
6633 else
6634 eval "$as_acx_Woption=no"
6635 fi
6636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6637
6638 fi
6639 eval ac_res=\$$as_acx_Woption
6640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6641 $as_echo "$ac_res" >&6; }
6642 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6643 loose_warn="$loose_warn${loose_warn:+ }$real_option"
6644 fi
6645 done
6646 CXXFLAGS="$save_CXXFLAGS"
6647 ac_ext=cpp
6648 ac_cpp='$CXXCPP $CPPFLAGS'
6649 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6650 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6651 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6652
6653
6654
6655 ac_ext=c
6656 ac_cpp='$CPP $CPPFLAGS'
6657 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6658 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6659 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6660
6661 c_loose_warn=
6662 save_CFLAGS="$CFLAGS"
6663 for real_option in -Wstrict-prototypes -Wmissing-prototypes; do
6664 # Do the check with the no- prefix removed since gcc silently
6665 # accepts any -Wno-* option on purpose
6666 case $real_option in
6667 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6668 *) option=$real_option ;;
6669 esac
6670 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6671
6672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6673 $as_echo_n "checking whether $CC supports $option... " >&6; }
6674 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6675 $as_echo_n "(cached) " >&6
6676 else
6677 CFLAGS="$option"
6678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6679 /* end confdefs.h. */
6680
6681 int
6682 main ()
6683 {
6684
6685 ;
6686 return 0;
6687 }
6688 _ACEOF
6689 if ac_fn_c_try_compile "$LINENO"; then :
6690 eval "$as_acx_Woption=yes"
6691 else
6692 eval "$as_acx_Woption=no"
6693 fi
6694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6695
6696 fi
6697 eval ac_res=\$$as_acx_Woption
6698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6699 $as_echo "$ac_res" >&6; }
6700 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6701 c_loose_warn="$c_loose_warn${c_loose_warn:+ }$real_option"
6702 fi
6703 done
6704 CFLAGS="$save_CFLAGS"
6705 ac_ext=cpp
6706 ac_cpp='$CXXCPP $CPPFLAGS'
6707 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6708 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6709 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6710
6711
6712 ac_ext=cpp
6713 ac_cpp='$CXXCPP $CPPFLAGS'
6714 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6715 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6716 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6717
6718 strict_warn=
6719 save_CXXFLAGS="$CXXFLAGS"
6720 for real_option in -Wmissing-format-attribute; do
6721 # Do the check with the no- prefix removed since gcc silently
6722 # accepts any -Wno-* option on purpose
6723 case $real_option in
6724 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6725 *) option=$real_option ;;
6726 esac
6727 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6728
6729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6730 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6731 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6732 $as_echo_n "(cached) " >&6
6733 else
6734 CXXFLAGS="$option"
6735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6736 /* end confdefs.h. */
6737
6738 int
6739 main ()
6740 {
6741
6742 ;
6743 return 0;
6744 }
6745 _ACEOF
6746 if ac_fn_cxx_try_compile "$LINENO"; then :
6747 eval "$as_acx_Woption=yes"
6748 else
6749 eval "$as_acx_Woption=no"
6750 fi
6751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6752
6753 fi
6754 eval ac_res=\$$as_acx_Woption
6755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6756 $as_echo "$ac_res" >&6; }
6757 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6758 strict_warn="$strict_warn${strict_warn:+ }$real_option"
6759 fi
6760 done
6761 CXXFLAGS="$save_CXXFLAGS"
6762 ac_ext=cpp
6763 ac_cpp='$CXXCPP $CPPFLAGS'
6764 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6765 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6766 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6767
6768
6769 ac_ext=cpp
6770 ac_cpp='$CXXCPP $CPPFLAGS'
6771 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6772 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6773 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6774
6775 save_CXXFLAGS="$CXXFLAGS"
6776 for real_option in -Woverloaded-virtual; do
6777 # Do the check with the no- prefix removed since gcc silently
6778 # accepts any -Wno-* option on purpose
6779 case $real_option in
6780 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6781 *) option=$real_option ;;
6782 esac
6783 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6784
6785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6786 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6787 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6788 $as_echo_n "(cached) " >&6
6789 else
6790 CXXFLAGS="$option"
6791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6792 /* end confdefs.h. */
6793
6794 int
6795 main ()
6796 {
6797
6798 ;
6799 return 0;
6800 }
6801 _ACEOF
6802 if ac_fn_cxx_try_compile "$LINENO"; then :
6803 eval "$as_acx_Woption=yes"
6804 else
6805 eval "$as_acx_Woption=no"
6806 fi
6807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6808
6809 fi
6810 eval ac_res=\$$as_acx_Woption
6811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6812 $as_echo "$ac_res" >&6; }
6813 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6814 strict_warn="$strict_warn${strict_warn:+ }$real_option"
6815 fi
6816 done
6817 CXXFLAGS="$save_CXXFLAGS"
6818 ac_ext=cpp
6819 ac_cpp='$CXXCPP $CPPFLAGS'
6820 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6821 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6822 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6823
6824
6825 ac_ext=c
6826 ac_cpp='$CPP $CPPFLAGS'
6827 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6828 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6829 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6830
6831 c_strict_warn=
6832 save_CFLAGS="$CFLAGS"
6833 for real_option in -Wold-style-definition -Wc++-compat; do
6834 # Do the check with the no- prefix removed since gcc silently
6835 # accepts any -Wno-* option on purpose
6836 case $real_option in
6837 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6838 *) option=$real_option ;;
6839 esac
6840 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6841
6842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6843 $as_echo_n "checking whether $CC supports $option... " >&6; }
6844 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6845 $as_echo_n "(cached) " >&6
6846 else
6847 CFLAGS="$option"
6848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6849 /* end confdefs.h. */
6850
6851 int
6852 main ()
6853 {
6854
6855 ;
6856 return 0;
6857 }
6858 _ACEOF
6859 if ac_fn_c_try_compile "$LINENO"; then :
6860 eval "$as_acx_Woption=yes"
6861 else
6862 eval "$as_acx_Woption=no"
6863 fi
6864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6865
6866 fi
6867 eval ac_res=\$$as_acx_Woption
6868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6869 $as_echo "$ac_res" >&6; }
6870 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6871 c_strict_warn="$c_strict_warn${c_strict_warn:+ }$real_option"
6872 fi
6873 done
6874 CFLAGS="$save_CFLAGS"
6875 ac_ext=cpp
6876 ac_cpp='$CXXCPP $CPPFLAGS'
6877 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6878 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6879 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6880
6881
6882 ac_ext=cpp
6883 ac_cpp='$CXXCPP $CPPFLAGS'
6884 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6885 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6886 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6887
6888 # Do the check with the no- prefix removed from the warning options
6889 # since gcc silently accepts any -Wno-* option on purpose
6890 if test "$GXX" = yes; then :
6891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
6892 $as_echo_n "checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
6893 if test "${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+set}" = set; then :
6894 $as_echo_n "(cached) " >&6
6895 else
6896 save_CXXFLAGS="$CXXFLAGS"
6897 CXXFLAGS="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
6898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6899 /* end confdefs.h. */
6900
6901 int
6902 main ()
6903 {
6904
6905 ;
6906 return 0;
6907 }
6908 _ACEOF
6909 if ac_fn_cxx_try_compile "$LINENO"; then :
6910 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=yes
6911 else
6912 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=no
6913 fi
6914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6915 CXXFLAGS="$save_CXXFLAGS"
6916 fi
6917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
6918 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
6919 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
6920 strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6921 fi
6922
6923 fi
6924 ac_ext=cpp
6925 ac_cpp='$CXXCPP $CPPFLAGS'
6926 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6927 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6928 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6929
6930
6931 ac_ext=cpp
6932 ac_cpp='$CXXCPP $CPPFLAGS'
6933 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6934 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6935 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6936
6937 # Check whether --enable-werror-always was given.
6938 if test "${enable_werror_always+set}" = set; then :
6939 enableval=$enable_werror_always;
6940 else
6941 enable_werror_always=no
6942 fi
6943
6944 if test $enable_werror_always = yes; then :
6945 strict_warn="$strict_warn${strict_warn:+ }-Werror"
6946 fi
6947
6948 ac_ext=cpp
6949 ac_cpp='$CXXCPP $CPPFLAGS'
6950 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6951 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6952 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6953
6954
6955
6956 # The above macros do nothing if the compiler is not GCC. However, the
6957 # Makefile has more goo to add other flags, so these variables are used
6958 # to enable warnings only for GCC.
6959 warn_cflags=
6960 warn_cxxflags=
6961 if test "x$GCC" = "xyes"; then
6962 warn_cflags='$(GCC_WARN_CFLAGS)'
6963 warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
6964 fi
6965
6966
6967
6968 # Disable exceptions and RTTI if building with g++
6969 ac_ext=c
6970 ac_cpp='$CPP $CPPFLAGS'
6971 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6972 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6973 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6974
6975 noexception_flags=
6976 save_CFLAGS="$CFLAGS"
6977 for real_option in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
6978 # Do the check with the no- prefix removed since gcc silently
6979 # accepts any -Wno-* option on purpose
6980 case $real_option in
6981 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6982 *) option=$real_option ;;
6983 esac
6984 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6985
6986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6987 $as_echo_n "checking whether $CC supports $option... " >&6; }
6988 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6989 $as_echo_n "(cached) " >&6
6990 else
6991 CFLAGS="$option"
6992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6993 /* end confdefs.h. */
6994
6995 int
6996 main ()
6997 {
6998
6999 ;
7000 return 0;
7001 }
7002 _ACEOF
7003 if ac_fn_c_try_compile "$LINENO"; then :
7004 eval "$as_acx_Woption=yes"
7005 else
7006 eval "$as_acx_Woption=no"
7007 fi
7008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7009
7010 fi
7011 eval ac_res=\$$as_acx_Woption
7012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7013 $as_echo "$ac_res" >&6; }
7014 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7015 noexception_flags="$noexception_flags${noexception_flags:+ }$real_option"
7016 fi
7017 done
7018 CFLAGS="$save_CFLAGS"
7019 ac_ext=cpp
7020 ac_cpp='$CXXCPP $CPPFLAGS'
7021 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7022 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7023 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7024
7025
7026
7027 # Enable expensive internal checks
7028 is_release=
7029 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
7030 is_release=yes
7031 fi
7032
7033 # Check whether --enable-checking was given.
7034 if test "${enable_checking+set}" = set; then :
7035 enableval=$enable_checking; ac_checking_flags="${enableval}"
7036 else
7037
7038 # Determine the default checks.
7039 if test x$is_release = x ; then
7040 ac_checking_flags=yes
7041 else
7042 ac_checking_flags=release
7043 fi
7044 fi
7045
7046 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
7047 for check in release $ac_checking_flags
7048 do
7049 case $check in
7050 # these set all the flags to specific states
7051 yes) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
7052 ac_fold_checking= ; ac_gc_checking=1 ;
7053 ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
7054 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7055 ac_tree_checking=1 ; ac_valgrind_checking= ;
7056 ac_types_checking=1 ;;
7057 no|none) ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
7058 ac_fold_checking= ; ac_gc_checking= ;
7059 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
7060 ac_rtlflag_checking= ; ac_runtime_checking= ;
7061 ac_tree_checking= ; ac_valgrind_checking= ;
7062 ac_types_checking= ;;
7063 all) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
7064 ac_fold_checking=1 ; ac_gc_checking=1 ;
7065 ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
7066 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7067 ac_tree_checking=1 ; ac_valgrind_checking= ;
7068 ac_types_checking=1 ;;
7069 release) ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
7070 ac_fold_checking= ; ac_gc_checking= ;
7071 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
7072 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
7073 ac_tree_checking= ; ac_valgrind_checking= ;
7074 ac_types_checking= ;;
7075 # these enable particular checks
7076 assert) ac_assert_checking=1 ;;
7077 df) ac_df_checking=1 ;;
7078 fold) ac_fold_checking=1 ;;
7079 gc) ac_gc_checking=1 ;;
7080 gcac) ac_gc_always_collect=1 ;;
7081 gimple) ac_gimple_checking=1 ;;
7082 misc) ac_checking=1 ;;
7083 rtl) ac_rtl_checking=1 ;;
7084 rtlflag) ac_rtlflag_checking=1 ;;
7085 runtime) ac_runtime_checking=1 ;;
7086 tree) ac_tree_checking=1 ;;
7087 types) ac_types_checking=1 ;;
7088 valgrind) ac_valgrind_checking=1 ;;
7089 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
7090 esac
7091 done
7092 IFS="$ac_save_IFS"
7093
7094 nocommon_flag=""
7095 if test x$ac_checking != x ; then
7096
7097 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
7098
7099 $as_echo "#define CHECKING_P 1" >>confdefs.h
7100
7101 nocommon_flag=-fno-common
7102 else
7103 $as_echo "#define CHECKING_P 0" >>confdefs.h
7104
7105 fi
7106
7107 if test x$ac_df_checking != x ; then
7108
7109 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
7110
7111 fi
7112 if test x$ac_assert_checking != x ; then
7113
7114 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
7115
7116 fi
7117 if test x$ac_gimple_checking != x ; then
7118
7119 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
7120
7121 fi
7122
7123 if test x$ac_runtime_checking != x ; then
7124
7125 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
7126
7127 fi
7128 if test x$ac_tree_checking != x ; then
7129
7130 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
7131
7132 TREECHECKING=yes
7133 fi
7134 if test x$ac_types_checking != x ; then
7135
7136 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
7137
7138 fi
7139
7140 if test x$ac_rtl_checking != x ; then
7141
7142 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
7143
7144 fi
7145 if test x$ac_rtlflag_checking != x ; then
7146
7147 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
7148
7149 fi
7150 if test x$ac_gc_checking != x ; then
7151
7152 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
7153
7154 fi
7155 if test x$ac_gc_always_collect != x ; then
7156
7157 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
7158
7159 fi
7160 if test x$ac_fold_checking != x ; then
7161
7162 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
7163
7164 fi
7165 valgrind_path_defines=
7166 valgrind_command=
7167
7168 ac_fn_cxx_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
7169 if test "x$ac_cv_header_valgrind_h" = x""yes; then :
7170 have_valgrind_h=yes
7171 else
7172 have_valgrind_h=no
7173 fi
7174
7175
7176
7177 # It is certainly possible that there's valgrind but no valgrind.h.
7178 # GCC relies on making annotations so we must have both.
7179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
7180 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
7181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7182 /* end confdefs.h. */
7183 #include <valgrind/memcheck.h>
7184 #ifndef VALGRIND_DISCARD
7185 #error VALGRIND_DISCARD not defined
7186 #endif
7187 _ACEOF
7188 if ac_fn_cxx_try_cpp "$LINENO"; then :
7189 gcc_cv_header_valgrind_memcheck_h=yes
7190 else
7191 gcc_cv_header_valgrind_memcheck_h=no
7192 fi
7193 rm -f conftest.err conftest.$ac_ext
7194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
7195 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
7196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
7197 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
7198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7199 /* end confdefs.h. */
7200 #include <memcheck.h>
7201 #ifndef VALGRIND_DISCARD
7202 #error VALGRIND_DISCARD not defined
7203 #endif
7204 _ACEOF
7205 if ac_fn_cxx_try_cpp "$LINENO"; then :
7206 gcc_cv_header_memcheck_h=yes
7207 else
7208 gcc_cv_header_memcheck_h=no
7209 fi
7210 rm -f conftest.err conftest.$ac_ext
7211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
7212 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
7213 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
7214
7215 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
7216
7217 fi
7218 if test $gcc_cv_header_memcheck_h = yes; then
7219
7220 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
7221
7222 fi
7223
7224 if test x$ac_valgrind_checking != x ; then
7225
7226 # Prepare PATH_SEPARATOR.
7227 # The user is always right.
7228 if test "${PATH_SEPARATOR+set}" != set; then
7229 echo "#! /bin/sh" >conf$$.sh
7230 echo "exit 0" >>conf$$.sh
7231 chmod +x conf$$.sh
7232 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7233 PATH_SEPARATOR=';'
7234 else
7235 PATH_SEPARATOR=:
7236 fi
7237 rm -f conf$$.sh
7238 fi
7239
7240 # Find out how to test for executable files. Don't use a zero-byte file,
7241 # as systems may use methods other than mode bits to determine executability.
7242 cat >conf$$.file <<_ASEOF
7243 #! /bin/sh
7244 exit 0
7245 _ASEOF
7246 chmod +x conf$$.file
7247 if test -x conf$$.file >/dev/null 2>&1; then
7248 ac_executable_p="test -x"
7249 else
7250 ac_executable_p="test -f"
7251 fi
7252 rm -f conf$$.file
7253
7254 # Extract the first word of "valgrind", so it can be a program name with args.
7255 set dummy valgrind; ac_word=$2
7256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7257 $as_echo_n "checking for $ac_word... " >&6; }
7258 if test "${ac_cv_path_valgrind_path+set}" = set; then :
7259 $as_echo_n "(cached) " >&6
7260 else
7261 case "$valgrind_path" in
7262 [\\/]* | ?:[\\/]*)
7263 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
7264 ;;
7265 *)
7266 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7267 for ac_dir in $PATH; do
7268 IFS="$ac_save_IFS"
7269 test -z "$ac_dir" && ac_dir=.
7270 for ac_exec_ext in '' $ac_executable_extensions; do
7271 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7272 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
7273 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
7274 break 2
7275 fi
7276 fi
7277 done
7278 done
7279 IFS="$ac_save_IFS"
7280 ;;
7281 esac
7282 fi
7283 valgrind_path="$ac_cv_path_valgrind_path"
7284 if test -n "$valgrind_path"; then
7285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
7286 $as_echo "$valgrind_path" >&6; }
7287 else
7288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7289 $as_echo "no" >&6; }
7290 fi
7291
7292 if test "x$valgrind_path" = "x" \
7293 || (test $have_valgrind_h = no \
7294 && test $gcc_cv_header_memcheck_h = no \
7295 && test $gcc_cv_header_valgrind_memcheck_h = no); then
7296 as_fn_error "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7297 fi
7298 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
7299 valgrind_command="$valgrind_path -q"
7300
7301 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
7302
7303 fi
7304
7305
7306
7307 # Enable code coverage collection
7308 # Check whether --enable-coverage was given.
7309 if test "${enable_coverage+set}" = set; then :
7310 enableval=$enable_coverage; case "${enableval}" in
7311 yes|noopt)
7312 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
7313 ;;
7314 opt)
7315 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
7316 ;;
7317 no)
7318 # a.k.a. --disable-coverage
7319 coverage_flags=""
7320 ;;
7321 *)
7322 as_fn_error "unknown coverage setting $enableval" "$LINENO" 5
7323 ;;
7324 esac
7325 else
7326 coverage_flags=""
7327 fi
7328
7329
7330
7331 # Check whether --enable-gather-detailed-mem-stats was given.
7332 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
7333 enableval=$enable_gather_detailed_mem_stats;
7334 else
7335 enable_gather_detailed_mem_stats=no
7336 fi
7337
7338 gather_stats=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
7339
7340 cat >>confdefs.h <<_ACEOF
7341 #define GATHER_STATISTICS $gather_stats
7342 _ACEOF
7343
7344
7345 # Check whether --enable-valgrind-annotations was given.
7346 if test "${enable_valgrind_annotations+set}" = set; then :
7347 enableval=$enable_valgrind_annotations;
7348 else
7349 enable_valgrind_annotations=no
7350 fi
7351
7352 if test x$enable_valgrind_annotations != xno \
7353 || test x$ac_valgrind_checking != x; then
7354 if (test $have_valgrind_h = no \
7355 && test $gcc_cv_header_memcheck_h = no \
7356 && test $gcc_cv_header_valgrind_memcheck_h = no); then
7357 as_fn_error "*** Can't find valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7358 fi
7359
7360 $as_echo "#define ENABLE_VALGRIND_ANNOTATIONS 1" >>confdefs.h
7361
7362 fi
7363
7364 # -------------------------------
7365 # Miscenalleous configure options
7366 # -------------------------------
7367
7368 # With stabs
7369
7370 # Check whether --with-stabs was given.
7371 if test "${with_stabs+set}" = set; then :
7372 withval=$with_stabs; stabs="$with_stabs"
7373 else
7374 stabs=no
7375 fi
7376
7377
7378 # Determine whether or not multilibs are enabled.
7379 # Check whether --enable-multilib was given.
7380 if test "${enable_multilib+set}" = set; then :
7381 enableval=$enable_multilib;
7382 else
7383 enable_multilib=yes
7384 fi
7385
7386
7387
7388 # Determine whether or not multiarch is enabled.
7389 # Check whether --enable-multiarch was given.
7390 if test "${enable_multiarch+set}" = set; then :
7391 enableval=$enable_multiarch; case "${enableval}" in
7392 yes|no|auto) enable_multiarch=$enableval;;
7393 *) as_fn_error "bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
7394 esac
7395 else
7396 enable_multiarch=auto
7397 fi
7398
7399 if test x${enable_multiarch} = xauto; then
7400 if test x${with_native_system_header_dir} != x; then
7401 ma_msg_suffix=", disabled auto check (configured with --native-system-header-dir)"
7402 enable_multiarch=no
7403 fi
7404 if test x$host != x$target && test "x$with_sysroot" = x; then
7405 ma_msg_suffix=", disabled auto check (cross build configured without --with-sysroot)"
7406 enable_multiarch=no
7407 fi
7408 fi
7409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
7410 $as_echo_n "checking for multiarch configuration... " >&6; }
7411
7412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
7413 $as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
7414
7415 # needed for setting the multiarch name for soft-float/hard-float ABIs
7416
7417
7418
7419 # Enable __cxa_atexit for C++.
7420 # Check whether --enable-__cxa_atexit was given.
7421 if test "${enable___cxa_atexit+set}" = set; then :
7422 enableval=$enable___cxa_atexit;
7423 fi
7424
7425
7426 # Enable C extension for decimal float if target supports it.
7427
7428 # Check whether --enable-decimal-float was given.
7429 if test "${enable_decimal_float+set}" = set; then :
7430 enableval=$enable_decimal_float;
7431 case $enable_decimal_float in
7432 yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
7433 *) as_fn_error "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7434 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7435 esac
7436
7437 else
7438
7439 case $target in
7440 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
7441 i?86*-*-elfiamcu | i?86*-*-gnu* | \
7442 i?86*-*-mingw* | x86_64*-*-mingw* | \
7443 i?86*-*-cygwin* | x86_64*-*-cygwin*)
7444 enable_decimal_float=yes
7445 ;;
7446 *)
7447 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7448 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7449 enable_decimal_float=no
7450 ;;
7451 esac
7452
7453 fi
7454
7455
7456 # x86's use BID format instead of DPD
7457 case x$enable_decimal_float in
7458 xyes)
7459 case $target in
7460 i?86*-*-* | x86_64*-*-*)
7461 enable_decimal_float=bid
7462 ;;
7463 *)
7464 enable_decimal_float=dpd
7465 ;;
7466 esac
7467 default_decimal_float=$enable_decimal_float
7468 ;;
7469 xno)
7470 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7471 # dependency on libdecnumber.
7472 default_decimal_float=dpd
7473 ;;
7474 esac
7475
7476
7477
7478
7479 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7480
7481 cat >>confdefs.h <<_ACEOF
7482 #define ENABLE_DECIMAL_FLOAT $dfp
7483 _ACEOF
7484
7485
7486 # Use default_decimal_float for dependency.
7487 enable_decimal_float=$default_decimal_float
7488
7489 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7490
7491 cat >>confdefs.h <<_ACEOF
7492 #define ENABLE_DECIMAL_BID_FORMAT $bid
7493 _ACEOF
7494
7495
7496 # Enable C extension for fixed-point arithmetic.
7497 # Check whether --enable-fixed-point was given.
7498 if test "${enable_fixed_point+set}" = set; then :
7499 enableval=$enable_fixed_point;
7500 else
7501
7502 case $target in
7503 arm*)
7504 enable_fixed_point=yes
7505 ;;
7506
7507 mips*-*-*)
7508 enable_fixed_point=yes
7509 ;;
7510 *)
7511 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7512 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7513 enable_fixed_point=no
7514 ;;
7515 esac
7516
7517 fi
7518
7519
7520
7521 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7522
7523 cat >>confdefs.h <<_ACEOF
7524 #define ENABLE_FIXED_POINT $fixedpoint
7525 _ACEOF
7526
7527
7528 # Enable threads
7529 # Pass with no value to take the default
7530 # Pass with a value to specify a thread package
7531 # Check whether --enable-threads was given.
7532 if test "${enable_threads+set}" = set; then :
7533 enableval=$enable_threads;
7534 else
7535 enable_threads=''
7536 fi
7537
7538
7539 # Check whether --enable-tls was given.
7540 if test "${enable_tls+set}" = set; then :
7541 enableval=$enable_tls;
7542 case $enable_tls in
7543 yes | no) ;;
7544 *) as_fn_error "'$enable_tls' is an invalid value for --enable-tls.
7545 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7546 esac
7547
7548 else
7549 enable_tls=''
7550 fi
7551
7552
7553 # Check whether --enable-objc-gc was given.
7554 if test "${enable_objc_gc+set}" = set; then :
7555 enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
7556 objc_boehm_gc=''
7557 else
7558 objc_boehm_gc=1
7559 fi
7560 else
7561 objc_boehm_gc=''
7562 fi
7563
7564
7565
7566 # Check whether --with-dwarf2 was given.
7567 if test "${with_dwarf2+set}" = set; then :
7568 withval=$with_dwarf2; dwarf2="$with_dwarf2"
7569 else
7570 dwarf2=no
7571 fi
7572
7573
7574 # Check whether --enable-shared was given.
7575 if test "${enable_shared+set}" = set; then :
7576 enableval=$enable_shared;
7577 case $enable_shared in
7578 yes | no) ;;
7579 *)
7580 enable_shared=no
7581 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7582 for pkg in $enableval; do
7583 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7584 enable_shared=yes
7585 fi
7586 done
7587 IFS="$ac_save_ifs"
7588 ;;
7589 esac
7590
7591 else
7592 enable_shared=yes
7593 fi
7594
7595
7596
7597
7598 # Check whether --with-specs was given.
7599 if test "${with_specs+set}" = set; then :
7600 withval=$with_specs; CONFIGURE_SPECS=$withval
7601 else
7602 CONFIGURE_SPECS=
7603
7604 fi
7605
7606
7607
7608
7609
7610 # Check whether --with-pkgversion was given.
7611 if test "${with_pkgversion+set}" = set; then :
7612 withval=$with_pkgversion; case "$withval" in
7613 yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
7614 no) PKGVERSION= ;;
7615 *) PKGVERSION="($withval) " ;;
7616 esac
7617 else
7618 PKGVERSION="(GCC) "
7619
7620 fi
7621
7622
7623
7624
7625
7626 # Check whether --with-bugurl was given.
7627 if test "${with_bugurl+set}" = set; then :
7628 withval=$with_bugurl; case "$withval" in
7629 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
7630 no) BUGURL=
7631 ;;
7632 *) BUGURL="$withval"
7633 ;;
7634 esac
7635 else
7636 BUGURL="http://gcc.gnu.org/bugs.html"
7637
7638 fi
7639
7640 case ${BUGURL} in
7641 "")
7642 REPORT_BUGS_TO=
7643 REPORT_BUGS_TEXI=
7644 ;;
7645 *)
7646 REPORT_BUGS_TO="<$BUGURL>"
7647 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
7648 ;;
7649 esac;
7650
7651
7652
7653
7654 # Sanity check enable_languages in case someone does not run the toplevel
7655 # configure # script.
7656 # Check whether --enable-languages was given.
7657 if test "${enable_languages+set}" = set; then :
7658 enableval=$enable_languages; case ,${enable_languages}, in
7659 ,,|,yes,)
7660 # go safe -- we cannot be much sure without the toplevel
7661 # configure's
7662 # analysis of which target libs are present and usable
7663 enable_languages=c
7664 ;;
7665 *,all,*)
7666 as_fn_error "only the toplevel supports --enable-languages=all" "$LINENO" 5
7667 ;;
7668 *,c,*)
7669 ;;
7670 *)
7671 enable_languages=c,${enable_languages}
7672 ;;
7673 esac
7674 else
7675 enable_languages=c
7676 fi
7677
7678
7679 if test x"$enable_as_accelerator_for" != x; then
7680
7681 $as_echo "#define ACCEL_COMPILER 1" >>confdefs.h
7682
7683 enable_as_accelerator=yes
7684 case "${target}" in
7685 *-intelmicemul-*)
7686 # In this case we expect offload compiler to be built as native, so we
7687 # need to rename the driver to avoid clashes with host's drivers.
7688 program_transform_name="s&^&${target}-&" ;;
7689 esac
7690 sedscript="s#${target_noncanonical}#${enable_as_accelerator_for}-accel-${target_noncanonical}#"
7691 program_transform_name=`echo $program_transform_name | sed $sedscript`
7692 accel_dir_suffix=/accel/${target_noncanonical}
7693 real_target_noncanonical=${enable_as_accelerator_for}
7694 fi
7695
7696
7697
7698
7699 for tgt in `echo $enable_offload_targets | sed 's/,/ /g'`; do
7700 tgt=`echo $tgt | sed 's/=.*//'`
7701 if test x"$offload_targets" = x; then
7702 offload_targets=$tgt
7703 else
7704 offload_targets="$offload_targets,$tgt"
7705 fi
7706 done
7707
7708 cat >>confdefs.h <<_ACEOF
7709 #define OFFLOAD_TARGETS "$offload_targets"
7710 _ACEOF
7711
7712 if test x"$offload_targets" != x; then
7713
7714 $as_echo "#define ENABLE_OFFLOADING 1" >>confdefs.h
7715
7716 fi
7717
7718
7719 # Check whether --with-multilib-list was given.
7720 if test "${with_multilib_list+set}" = set; then :
7721 withval=$with_multilib_list; :
7722 else
7723 with_multilib_list=default
7724 fi
7725
7726
7727 # -------------------------
7728 # Checks for other programs
7729 # -------------------------
7730
7731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7732 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7733 set x ${MAKE-make}
7734 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7735 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7736 $as_echo_n "(cached) " >&6
7737 else
7738 cat >conftest.make <<\_ACEOF
7739 SHELL = /bin/sh
7740 all:
7741 @echo '@@@%%%=$(MAKE)=@@@%%%'
7742 _ACEOF
7743 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7744 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7745 *@@@%%%=?*=@@@%%%*)
7746 eval ac_cv_prog_make_${ac_make}_set=yes;;
7747 *)
7748 eval ac_cv_prog_make_${ac_make}_set=no;;
7749 esac
7750 rm -f conftest.make
7751 fi
7752 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7754 $as_echo "yes" >&6; }
7755 SET_MAKE=
7756 else
7757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7758 $as_echo "no" >&6; }
7759 SET_MAKE="MAKE=${MAKE-make}"
7760 fi
7761
7762
7763 # Find some useful tools
7764 for ac_prog in gawk mawk nawk awk
7765 do
7766 # Extract the first word of "$ac_prog", so it can be a program name with args.
7767 set dummy $ac_prog; ac_word=$2
7768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7769 $as_echo_n "checking for $ac_word... " >&6; }
7770 if test "${ac_cv_prog_AWK+set}" = set; then :
7771 $as_echo_n "(cached) " >&6
7772 else
7773 if test -n "$AWK"; then
7774 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7775 else
7776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7777 for as_dir in $PATH
7778 do
7779 IFS=$as_save_IFS
7780 test -z "$as_dir" && as_dir=.
7781 for ac_exec_ext in '' $ac_executable_extensions; do
7782 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7783 ac_cv_prog_AWK="$ac_prog"
7784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7785 break 2
7786 fi
7787 done
7788 done
7789 IFS=$as_save_IFS
7790
7791 fi
7792 fi
7793 AWK=$ac_cv_prog_AWK
7794 if test -n "$AWK"; then
7795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7796 $as_echo "$AWK" >&6; }
7797 else
7798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7799 $as_echo "no" >&6; }
7800 fi
7801
7802
7803 test -n "$AWK" && break
7804 done
7805
7806 # We need awk to create options.c and options.h.
7807 # Bail out if it's missing.
7808 case ${AWK} in
7809 "") as_fn_error "can't build without awk, bailing out" "$LINENO" 5 ;;
7810 esac
7811
7812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7813 $as_echo_n "checking whether ln -s works... " >&6; }
7814 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7815 $as_echo_n "(cached) " >&6
7816 else
7817 rm -f conftestdata_t
7818 echo >conftestdata_f
7819 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7820 then
7821 gcc_cv_prog_LN_S="ln -s"
7822 else
7823 if ln conftestdata_f conftestdata_t 2>/dev/null
7824 then
7825 gcc_cv_prog_LN_S=ln
7826 else
7827 if cp -p conftestdata_f conftestdata_t 2>/dev/null
7828 then
7829 gcc_cv_prog_LN_S="cp -p"
7830 else
7831 gcc_cv_prog_LN_S=cp
7832 fi
7833 fi
7834 fi
7835 rm -f conftestdata_f conftestdata_t
7836
7837 fi
7838 LN_S="$gcc_cv_prog_LN_S"
7839 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7841 $as_echo "yes" >&6; }
7842 else
7843 if test "$gcc_cv_prog_LN_S" = "ln"; then
7844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7845 $as_echo "no, using ln" >&6; }
7846 else
7847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7848 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7849 fi
7850 fi
7851
7852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7853 $as_echo_n "checking whether ln works... " >&6; }
7854 if test "${acx_cv_prog_LN+set}" = set; then :
7855 $as_echo_n "(cached) " >&6
7856 else
7857 rm -f conftestdata_t
7858 echo >conftestdata_f
7859 if ln conftestdata_f conftestdata_t 2>/dev/null
7860 then
7861 acx_cv_prog_LN=ln
7862 else
7863 acx_cv_prog_LN=no
7864 fi
7865 rm -f conftestdata_f conftestdata_t
7866
7867 fi
7868 if test $acx_cv_prog_LN = no; then
7869 LN="$LN_S"
7870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7871 $as_echo "no, using $LN" >&6; }
7872 else
7873 LN="$acx_cv_prog_LN"
7874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7875 $as_echo "yes" >&6; }
7876 fi
7877
7878 if test -n "$ac_tool_prefix"; then
7879 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7880 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7882 $as_echo_n "checking for $ac_word... " >&6; }
7883 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7884 $as_echo_n "(cached) " >&6
7885 else
7886 if test -n "$RANLIB"; then
7887 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7888 else
7889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7890 for as_dir in $PATH
7891 do
7892 IFS=$as_save_IFS
7893 test -z "$as_dir" && as_dir=.
7894 for ac_exec_ext in '' $ac_executable_extensions; do
7895 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7896 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7898 break 2
7899 fi
7900 done
7901 done
7902 IFS=$as_save_IFS
7903
7904 fi
7905 fi
7906 RANLIB=$ac_cv_prog_RANLIB
7907 if test -n "$RANLIB"; then
7908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7909 $as_echo "$RANLIB" >&6; }
7910 else
7911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7912 $as_echo "no" >&6; }
7913 fi
7914
7915
7916 fi
7917 if test -z "$ac_cv_prog_RANLIB"; then
7918 ac_ct_RANLIB=$RANLIB
7919 # Extract the first word of "ranlib", so it can be a program name with args.
7920 set dummy ranlib; ac_word=$2
7921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7922 $as_echo_n "checking for $ac_word... " >&6; }
7923 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7924 $as_echo_n "(cached) " >&6
7925 else
7926 if test -n "$ac_ct_RANLIB"; then
7927 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7928 else
7929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7930 for as_dir in $PATH
7931 do
7932 IFS=$as_save_IFS
7933 test -z "$as_dir" && as_dir=.
7934 for ac_exec_ext in '' $ac_executable_extensions; do
7935 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7936 ac_cv_prog_ac_ct_RANLIB="ranlib"
7937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7938 break 2
7939 fi
7940 done
7941 done
7942 IFS=$as_save_IFS
7943
7944 fi
7945 fi
7946 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7947 if test -n "$ac_ct_RANLIB"; then
7948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7949 $as_echo "$ac_ct_RANLIB" >&6; }
7950 else
7951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7952 $as_echo "no" >&6; }
7953 fi
7954
7955 if test "x$ac_ct_RANLIB" = x; then
7956 RANLIB=":"
7957 else
7958 case $cross_compiling:$ac_tool_warned in
7959 yes:)
7960 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7961 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7962 ac_tool_warned=yes ;;
7963 esac
7964 RANLIB=$ac_ct_RANLIB
7965 fi
7966 else
7967 RANLIB="$ac_cv_prog_RANLIB"
7968 fi
7969
7970 ranlib_flags=""
7971
7972
7973 # Find a good install program. We prefer a C program (faster),
7974 # so one script is as good as another. But avoid the broken or
7975 # incompatible versions:
7976 # SysV /etc/install, /usr/sbin/install
7977 # SunOS /usr/etc/install
7978 # IRIX /sbin/install
7979 # AIX /bin/install
7980 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7981 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7982 # ./install, which can be erroneously created by make from ./install.sh.
7983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
7984 $as_echo_n "checking for a BSD compatible install... " >&6; }
7985 if test -z "$INSTALL"; then
7986 if test "${ac_cv_path_install+set}" = set; then :
7987 $as_echo_n "(cached) " >&6
7988 else
7989 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
7990 for ac_dir in $PATH; do
7991 # Account for people who put trailing slashes in PATH elements.
7992 case "$ac_dir/" in
7993 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
7994 *)
7995 # OSF1 and SCO ODT 3.0 have their own names for install.
7996 for ac_prog in ginstall scoinst install; do
7997 if test -f $ac_dir/$ac_prog; then
7998 if test $ac_prog = install &&
7999 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
8000 # AIX install. It has an incompatible calling convention.
8001 # OSF/1 installbsd also uses dspmsg, but is usable.
8002 :
8003 else
8004 ac_cv_path_install="$ac_dir/$ac_prog -c"
8005 break 2
8006 fi
8007 fi
8008 done
8009 ;;
8010 esac
8011 done
8012 IFS="$ac_save_IFS"
8013
8014 fi
8015 if test "${ac_cv_path_install+set}" = set; then
8016 INSTALL="$ac_cv_path_install"
8017 else
8018 # As a last resort, use the slow shell script. We don't cache a
8019 # path for INSTALL within a source directory, because that will
8020 # break other packages using the cache if that directory is
8021 # removed, or if the path is relative.
8022 INSTALL="$ac_install_sh"
8023 fi
8024 fi
8025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
8026 $as_echo "$INSTALL" >&6; }
8027
8028 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8029 # It thinks the first close brace ends the variable substitution.
8030 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8031
8032 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8033
8034
8035 # See if cmp has --ignore-initial.
8036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
8037 $as_echo_n "checking for cmp's capabilities... " >&6; }
8038 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
8039 $as_echo_n "(cached) " >&6
8040 else
8041 echo abfoo >t1
8042 echo cdfoo >t2
8043 gcc_cv_prog_cmp_skip=slowcompare
8044 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
8045 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
8046 :
8047 else
8048 gcc_cv_prog_cmp_skip=gnucompare
8049 fi
8050 fi
8051 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
8052 if cmp t1 t2 2 2 > /dev/null 2>&1; then
8053 if cmp t1 t2 1 1 > /dev/null 2>&1; then
8054 :
8055 else
8056 gcc_cv_prog_cmp_skip=fastcompare
8057 fi
8058 fi
8059 fi
8060 rm t1 t2
8061
8062 fi
8063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
8064 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
8065 make_compare_target=$gcc_cv_prog_cmp_skip
8066
8067
8068
8069 # See if we have the mktemp command.
8070 # Extract the first word of "mktemp", so it can be a program name with args.
8071 set dummy mktemp; ac_word=$2
8072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8073 $as_echo_n "checking for $ac_word... " >&6; }
8074 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
8075 $as_echo_n "(cached) " >&6
8076 else
8077 if test -n "$have_mktemp_command"; then
8078 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
8079 else
8080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8081 for as_dir in $PATH
8082 do
8083 IFS=$as_save_IFS
8084 test -z "$as_dir" && as_dir=.
8085 for ac_exec_ext in '' $ac_executable_extensions; do
8086 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8087 ac_cv_prog_have_mktemp_command="yes"
8088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8089 break 2
8090 fi
8091 done
8092 done
8093 IFS=$as_save_IFS
8094
8095 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
8096 fi
8097 fi
8098 have_mktemp_command=$ac_cv_prog_have_mktemp_command
8099 if test -n "$have_mktemp_command"; then
8100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
8101 $as_echo "$have_mktemp_command" >&6; }
8102 else
8103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8104 $as_echo "no" >&6; }
8105 fi
8106
8107
8108
8109 # See if makeinfo has been installed and is modern enough
8110 # that we can use it.
8111
8112 # Extract the first word of "makeinfo", so it can be a program name with args.
8113 set dummy makeinfo; ac_word=$2
8114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8115 $as_echo_n "checking for $ac_word... " >&6; }
8116 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
8117 $as_echo_n "(cached) " >&6
8118 else
8119 if test -n "$MAKEINFO"; then
8120 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
8121 else
8122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8123 for as_dir in $PATH
8124 do
8125 IFS=$as_save_IFS
8126 test -z "$as_dir" && as_dir=.
8127 for ac_exec_ext in '' $ac_executable_extensions; do
8128 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8129 ac_cv_prog_MAKEINFO="makeinfo"
8130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8131 break 2
8132 fi
8133 done
8134 done
8135 IFS=$as_save_IFS
8136
8137 fi
8138 fi
8139 MAKEINFO=$ac_cv_prog_MAKEINFO
8140 if test -n "$MAKEINFO"; then
8141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8142 $as_echo "$MAKEINFO" >&6; }
8143 else
8144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8145 $as_echo "no" >&6; }
8146 fi
8147
8148
8149 if test -n "$MAKEINFO"; then
8150 # Found it, now check the version.
8151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
8152 $as_echo_n "checking for modern makeinfo... " >&6; }
8153 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
8154 $as_echo_n "(cached) " >&6
8155 else
8156 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
8157 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
8158
8159 case $ac_prog_version in
8160 '') gcc_cv_prog_makeinfo_modern=no;;
8161 4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
8162 *) gcc_cv_prog_makeinfo_modern=no;;
8163 esac
8164
8165 fi
8166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
8167 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
8168 else
8169 gcc_cv_prog_makeinfo_modern=no
8170 fi
8171 if test $gcc_cv_prog_makeinfo_modern = no; then
8172 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
8173 fi
8174
8175 if test $gcc_cv_prog_makeinfo_modern = no; then
8176 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8177 *** Makeinfo is missing or too old.
8178 *** Info documentation will not be built." >&5
8179 $as_echo "$as_me: WARNING:
8180 *** Makeinfo is missing or too old.
8181 *** Info documentation will not be built." >&2;}
8182 BUILD_INFO=
8183 else
8184 BUILD_INFO=info
8185 fi
8186
8187
8188 # Is pod2man recent enough to regenerate manpages?
8189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
8190 $as_echo_n "checking for recent Pod::Man... " >&6; }
8191 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
8192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8193 $as_echo "yes" >&6; }
8194 GENERATED_MANPAGES=generated-manpages
8195 else
8196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8197 $as_echo "no" >&6; }
8198 GENERATED_MANPAGES=
8199 fi
8200
8201
8202 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
8203
8204 # How about lex?
8205 for ac_prog in flex
8206 do
8207 # Extract the first word of "$ac_prog", so it can be a program name with args.
8208 set dummy $ac_prog; ac_word=$2
8209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8210 $as_echo_n "checking for $ac_word... " >&6; }
8211 if test "${ac_cv_prog_FLEX+set}" = set; then :
8212 $as_echo_n "(cached) " >&6
8213 else
8214 if test -n "$FLEX"; then
8215 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
8216 else
8217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8218 for as_dir in $PATH
8219 do
8220 IFS=$as_save_IFS
8221 test -z "$as_dir" && as_dir=.
8222 for ac_exec_ext in '' $ac_executable_extensions; do
8223 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8224 ac_cv_prog_FLEX="$ac_prog"
8225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8226 break 2
8227 fi
8228 done
8229 done
8230 IFS=$as_save_IFS
8231
8232 fi
8233 fi
8234 FLEX=$ac_cv_prog_FLEX
8235 if test -n "$FLEX"; then
8236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
8237 $as_echo "$FLEX" >&6; }
8238 else
8239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8240 $as_echo "no" >&6; }
8241 fi
8242
8243
8244 test -n "$FLEX" && break
8245 done
8246 test -n "$FLEX" || FLEX="$MISSING flex"
8247
8248
8249 # Bison?
8250 for ac_prog in bison
8251 do
8252 # Extract the first word of "$ac_prog", so it can be a program name with args.
8253 set dummy $ac_prog; ac_word=$2
8254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8255 $as_echo_n "checking for $ac_word... " >&6; }
8256 if test "${ac_cv_prog_BISON+set}" = set; then :
8257 $as_echo_n "(cached) " >&6
8258 else
8259 if test -n "$BISON"; then
8260 ac_cv_prog_BISON="$BISON" # Let the user override the test.
8261 else
8262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8263 for as_dir in $PATH
8264 do
8265 IFS=$as_save_IFS
8266 test -z "$as_dir" && as_dir=.
8267 for ac_exec_ext in '' $ac_executable_extensions; do
8268 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8269 ac_cv_prog_BISON="$ac_prog"
8270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8271 break 2
8272 fi
8273 done
8274 done
8275 IFS=$as_save_IFS
8276
8277 fi
8278 fi
8279 BISON=$ac_cv_prog_BISON
8280 if test -n "$BISON"; then
8281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
8282 $as_echo "$BISON" >&6; }
8283 else
8284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8285 $as_echo "no" >&6; }
8286 fi
8287
8288
8289 test -n "$BISON" && break
8290 done
8291 test -n "$BISON" || BISON="$MISSING bison"
8292
8293
8294 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
8295 # check for build == host before using them.
8296
8297 # NM
8298 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
8299 && test -d ../binutils ; then
8300 NM='${objdir}/../binutils/nm-new'
8301 else
8302 # Extract the first word of "nm", so it can be a program name with args.
8303 set dummy nm; ac_word=$2
8304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8305 $as_echo_n "checking for $ac_word... " >&6; }
8306 if test "${ac_cv_prog_NM+set}" = set; then :
8307 $as_echo_n "(cached) " >&6
8308 else
8309 if test -n "$NM"; then
8310 ac_cv_prog_NM="$NM" # Let the user override the test.
8311 else
8312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8313 for as_dir in $PATH
8314 do
8315 IFS=$as_save_IFS
8316 test -z "$as_dir" && as_dir=.
8317 for ac_exec_ext in '' $ac_executable_extensions; do
8318 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8319 ac_cv_prog_NM="nm"
8320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8321 break 2
8322 fi
8323 done
8324 done
8325 IFS=$as_save_IFS
8326
8327 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
8328 fi
8329 fi
8330 NM=$ac_cv_prog_NM
8331 if test -n "$NM"; then
8332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8333 $as_echo "$NM" >&6; }
8334 else
8335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8336 $as_echo "no" >&6; }
8337 fi
8338
8339
8340 fi
8341
8342 # AR
8343 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
8344 && test -d ../binutils ; then
8345 AR='${objdir}/../binutils/ar'
8346 else
8347 # Extract the first word of "ar", so it can be a program name with args.
8348 set dummy ar; ac_word=$2
8349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8350 $as_echo_n "checking for $ac_word... " >&6; }
8351 if test "${ac_cv_prog_AR+set}" = set; then :
8352 $as_echo_n "(cached) " >&6
8353 else
8354 if test -n "$AR"; then
8355 ac_cv_prog_AR="$AR" # Let the user override the test.
8356 else
8357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8358 for as_dir in $PATH
8359 do
8360 IFS=$as_save_IFS
8361 test -z "$as_dir" && as_dir=.
8362 for ac_exec_ext in '' $ac_executable_extensions; do
8363 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8364 ac_cv_prog_AR="ar"
8365 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8366 break 2
8367 fi
8368 done
8369 done
8370 IFS=$as_save_IFS
8371
8372 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8373 fi
8374 fi
8375 AR=$ac_cv_prog_AR
8376 if test -n "$AR"; then
8377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8378 $as_echo "$AR" >&6; }
8379 else
8380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8381 $as_echo "no" >&6; }
8382 fi
8383
8384
8385 fi
8386
8387 # The jit documentation looks better if built with sphinx, but can be
8388 # built with texinfo if sphinx is not available.
8389 # Set "doc_build_sys" to "sphinx" or "texinfo" accordingly.
8390 # Extract the first word of "sphinx-build", so it can be a program name with args.
8391 set dummy sphinx-build; 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_doc_build_sys+set}" = set; then :
8395 $as_echo_n "(cached) " >&6
8396 else
8397 if test -n "$doc_build_sys"; then
8398 ac_cv_prog_doc_build_sys="$doc_build_sys" # 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_doc_build_sys="sphinx"
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_doc_build_sys" && ac_cv_prog_doc_build_sys="texinfo"
8416 fi
8417 fi
8418 doc_build_sys=$ac_cv_prog_doc_build_sys
8419 if test -n "$doc_build_sys"; then
8420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doc_build_sys" >&5
8421 $as_echo "$doc_build_sys" >&6; }
8422 else
8423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8424 $as_echo "no" >&6; }
8425 fi
8426
8427
8428
8429 # --------------------
8430 # Checks for C headers
8431 # --------------------
8432
8433 # Need to reject headers which give warnings, so that the -Werror bootstrap
8434 # works later. *sigh* This needs to come before all header checks.
8435
8436 ac_c_preproc_warn_flag=yes
8437
8438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8439 $as_echo_n "checking for ANSI C header files... " >&6; }
8440 if test "${ac_cv_header_stdc+set}" = set; then :
8441 $as_echo_n "(cached) " >&6
8442 else
8443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8444 /* end confdefs.h. */
8445 #include <stdlib.h>
8446 #include <stdarg.h>
8447 #include <string.h>
8448 #include <float.h>
8449
8450 int
8451 main ()
8452 {
8453
8454 ;
8455 return 0;
8456 }
8457 _ACEOF
8458 if ac_fn_cxx_try_compile "$LINENO"; then :
8459 ac_cv_header_stdc=yes
8460 else
8461 ac_cv_header_stdc=no
8462 fi
8463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8464
8465 if test $ac_cv_header_stdc = yes; then
8466 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8468 /* end confdefs.h. */
8469 #include <string.h>
8470
8471 _ACEOF
8472 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8473 $EGREP "memchr" >/dev/null 2>&1; then :
8474
8475 else
8476 ac_cv_header_stdc=no
8477 fi
8478 rm -f conftest*
8479
8480 fi
8481
8482 if test $ac_cv_header_stdc = yes; then
8483 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8485 /* end confdefs.h. */
8486 #include <stdlib.h>
8487
8488 _ACEOF
8489 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8490 $EGREP "free" >/dev/null 2>&1; then :
8491
8492 else
8493 ac_cv_header_stdc=no
8494 fi
8495 rm -f conftest*
8496
8497 fi
8498
8499 if test $ac_cv_header_stdc = yes; then
8500 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8501 if test "$cross_compiling" = yes; then :
8502 :
8503 else
8504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8505 /* end confdefs.h. */
8506 #include <ctype.h>
8507 #include <stdlib.h>
8508 #if ((' ' & 0x0FF) == 0x020)
8509 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8510 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8511 #else
8512 # define ISLOWER(c) \
8513 (('a' <= (c) && (c) <= 'i') \
8514 || ('j' <= (c) && (c) <= 'r') \
8515 || ('s' <= (c) && (c) <= 'z'))
8516 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8517 #endif
8518
8519 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8520 int
8521 main ()
8522 {
8523 int i;
8524 for (i = 0; i < 256; i++)
8525 if (XOR (islower (i), ISLOWER (i))
8526 || toupper (i) != TOUPPER (i))
8527 return 2;
8528 return 0;
8529 }
8530 _ACEOF
8531 if ac_fn_cxx_try_run "$LINENO"; then :
8532
8533 else
8534 ac_cv_header_stdc=no
8535 fi
8536 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8537 conftest.$ac_objext conftest.beam conftest.$ac_ext
8538 fi
8539
8540 fi
8541 fi
8542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8543 $as_echo "$ac_cv_header_stdc" >&6; }
8544 if test $ac_cv_header_stdc = yes; then
8545
8546 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8547
8548 fi
8549
8550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8551 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8552 if test "${ac_cv_header_time+set}" = set; then :
8553 $as_echo_n "(cached) " >&6
8554 else
8555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8556 /* end confdefs.h. */
8557 #include <sys/types.h>
8558 #include <sys/time.h>
8559 #include <time.h>
8560
8561 int
8562 main ()
8563 {
8564 if ((struct tm *) 0)
8565 return 0;
8566 ;
8567 return 0;
8568 }
8569 _ACEOF
8570 if ac_fn_cxx_try_compile "$LINENO"; then :
8571 ac_cv_header_time=yes
8572 else
8573 ac_cv_header_time=no
8574 fi
8575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8576 fi
8577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8578 $as_echo "$ac_cv_header_time" >&6; }
8579 if test $ac_cv_header_time = yes; then
8580
8581 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8582
8583 fi
8584
8585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8586 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8587 if test "${gcc_cv_header_string+set}" = set; then :
8588 $as_echo_n "(cached) " >&6
8589 else
8590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8591 /* end confdefs.h. */
8592 #include <string.h>
8593 #include <strings.h>
8594 int
8595 main ()
8596 {
8597
8598 ;
8599 return 0;
8600 }
8601 _ACEOF
8602 if ac_fn_cxx_try_compile "$LINENO"; then :
8603 gcc_cv_header_string=yes
8604 else
8605 gcc_cv_header_string=no
8606 fi
8607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8608 fi
8609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8610 $as_echo "$gcc_cv_header_string" >&6; }
8611 if test $gcc_cv_header_string = yes; then
8612
8613 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8614
8615 fi
8616
8617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8618 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8619 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8620 $as_echo_n "(cached) " >&6
8621 else
8622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8623 /* end confdefs.h. */
8624 #include <sys/types.h>
8625 #include <sys/wait.h>
8626 #ifndef WEXITSTATUS
8627 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8628 #endif
8629 #ifndef WIFEXITED
8630 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8631 #endif
8632
8633 int
8634 main ()
8635 {
8636 int s;
8637 wait (&s);
8638 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8639 ;
8640 return 0;
8641 }
8642 _ACEOF
8643 if ac_fn_cxx_try_compile "$LINENO"; then :
8644 ac_cv_header_sys_wait_h=yes
8645 else
8646 ac_cv_header_sys_wait_h=no
8647 fi
8648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8649 fi
8650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8651 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8652 if test $ac_cv_header_sys_wait_h = yes; then
8653
8654 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8655
8656 fi
8657
8658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
8659 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
8660 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then :
8661 $as_echo_n "(cached) " >&6
8662 else
8663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8664 /* end confdefs.h. */
8665 #include <sys/types.h>
8666 #include <termios.h>
8667 #ifdef TIOCGWINSZ
8668 yes
8669 #endif
8670
8671 _ACEOF
8672 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8673 $EGREP "yes" >/dev/null 2>&1; then :
8674 ac_cv_sys_tiocgwinsz_in_termios_h=yes
8675 else
8676 ac_cv_sys_tiocgwinsz_in_termios_h=no
8677 fi
8678 rm -f conftest*
8679
8680 fi
8681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
8682 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
8683
8684 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
8685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
8686 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
8687 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then :
8688 $as_echo_n "(cached) " >&6
8689 else
8690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8691 /* end confdefs.h. */
8692 #include <sys/types.h>
8693 #include <sys/ioctl.h>
8694 #ifdef TIOCGWINSZ
8695 yes
8696 #endif
8697
8698 _ACEOF
8699 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8700 $EGREP "yes" >/dev/null 2>&1; then :
8701 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
8702 else
8703 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
8704 fi
8705 rm -f conftest*
8706
8707 fi
8708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
8709 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
8710
8711 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
8712
8713 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
8714
8715 fi
8716 fi
8717
8718 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8719 fcntl.h ftw.h unistd.h sys/file.h sys/time.h sys/mman.h \
8720 sys/resource.h sys/param.h sys/times.h sys/stat.h \
8721 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8722 do :
8723 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8724 ac_fn_cxx_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
8725 eval as_val=\$$as_ac_Header
8726 if test "x$as_val" = x""yes; then :
8727 cat >>confdefs.h <<_ACEOF
8728 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8729 _ACEOF
8730
8731 fi
8732 done
8733
8734
8735 # Check for thread headers.
8736 ac_fn_cxx_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
8737 if test "x$ac_cv_header_thread_h" = x""yes; then :
8738 have_thread_h=yes
8739 else
8740 have_thread_h=
8741 fi
8742
8743 ac_fn_cxx_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8744 if test "x$ac_cv_header_pthread_h" = x""yes; then :
8745 have_pthread_h=yes
8746 else
8747 have_pthread_h=
8748 fi
8749
8750
8751 # These tests can't be done till we know if we have limits.h.
8752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8753 $as_echo_n "checking for CHAR_BIT... " >&6; }
8754 if test "${gcc_cv_decl_char_bit+set}" = set; then :
8755 $as_echo_n "(cached) " >&6
8756 else
8757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8758 /* end confdefs.h. */
8759 #ifdef HAVE_LIMITS_H
8760 #include <limits.h>
8761 #endif
8762 #ifdef CHAR_BIT
8763 found
8764 #endif
8765 _ACEOF
8766 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8767 $EGREP "found" >/dev/null 2>&1; then :
8768 gcc_cv_decl_char_bit=yes
8769 else
8770 gcc_cv_decl_char_bit=no
8771 fi
8772 rm -f conftest*
8773
8774
8775 fi
8776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8777 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8778 if test $gcc_cv_decl_char_bit = no; then
8779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8780 $as_echo_n "checking number of bits in a byte... " >&6; }
8781 if test "${gcc_cv_c_nbby+set}" = set; then :
8782 $as_echo_n "(cached) " >&6
8783 else
8784 i=8
8785 gcc_cv_c_nbby=
8786 while test $i -lt 65; do
8787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8788 /* end confdefs.h. */
8789
8790 int
8791 main ()
8792 {
8793 switch(0) {
8794 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8795 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8796 ; }
8797 ;
8798 return 0;
8799 }
8800 _ACEOF
8801 if ac_fn_cxx_try_compile "$LINENO"; then :
8802 gcc_cv_c_nbby=$i; break
8803 fi
8804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8805 i=`expr $i + 1`
8806 done
8807 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
8808
8809 fi
8810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8811 $as_echo "$gcc_cv_c_nbby" >&6; }
8812 if test $gcc_cv_c_nbby = failed; then
8813 as_fn_error "cannot determine number of bits in a byte" "$LINENO" 5
8814 else
8815
8816 cat >>confdefs.h <<_ACEOF
8817 #define CHAR_BIT $gcc_cv_c_nbby
8818 _ACEOF
8819
8820 fi
8821 fi
8822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8823 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8824 if test "${ac_cv_c_bigendian+set}" = set; then :
8825 $as_echo_n "(cached) " >&6
8826 else
8827 ac_cv_c_bigendian=unknown
8828 # See if we're dealing with a universal compiler.
8829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8830 /* end confdefs.h. */
8831 #ifndef __APPLE_CC__
8832 not a universal capable compiler
8833 #endif
8834 typedef int dummy;
8835
8836 _ACEOF
8837 if ac_fn_cxx_try_compile "$LINENO"; then :
8838
8839 # Check for potential -arch flags. It is not universal unless
8840 # there are at least two -arch flags with different values.
8841 ac_arch=
8842 ac_prev=
8843 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8844 if test -n "$ac_prev"; then
8845 case $ac_word in
8846 i?86 | x86_64 | ppc | ppc64)
8847 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8848 ac_arch=$ac_word
8849 else
8850 ac_cv_c_bigendian=universal
8851 break
8852 fi
8853 ;;
8854 esac
8855 ac_prev=
8856 elif test "x$ac_word" = "x-arch"; then
8857 ac_prev=arch
8858 fi
8859 done
8860 fi
8861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8862 if test $ac_cv_c_bigendian = unknown; then
8863 # See if sys/param.h defines the BYTE_ORDER macro.
8864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8865 /* end confdefs.h. */
8866 #include <sys/types.h>
8867 #include <sys/param.h>
8868
8869 int
8870 main ()
8871 {
8872 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8873 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8874 && LITTLE_ENDIAN)
8875 bogus endian macros
8876 #endif
8877
8878 ;
8879 return 0;
8880 }
8881 _ACEOF
8882 if ac_fn_cxx_try_compile "$LINENO"; then :
8883 # It does; now see whether it defined to BIG_ENDIAN or not.
8884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8885 /* end confdefs.h. */
8886 #include <sys/types.h>
8887 #include <sys/param.h>
8888
8889 int
8890 main ()
8891 {
8892 #if BYTE_ORDER != BIG_ENDIAN
8893 not big endian
8894 #endif
8895
8896 ;
8897 return 0;
8898 }
8899 _ACEOF
8900 if ac_fn_cxx_try_compile "$LINENO"; then :
8901 ac_cv_c_bigendian=yes
8902 else
8903 ac_cv_c_bigendian=no
8904 fi
8905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8906 fi
8907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8908 fi
8909 if test $ac_cv_c_bigendian = unknown; then
8910 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8912 /* end confdefs.h. */
8913 #include <limits.h>
8914
8915 int
8916 main ()
8917 {
8918 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8919 bogus endian macros
8920 #endif
8921
8922 ;
8923 return 0;
8924 }
8925 _ACEOF
8926 if ac_fn_cxx_try_compile "$LINENO"; then :
8927 # It does; now see whether it defined to _BIG_ENDIAN or not.
8928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8929 /* end confdefs.h. */
8930 #include <limits.h>
8931
8932 int
8933 main ()
8934 {
8935 #ifndef _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 # Compile a test program.
8954 if test "$cross_compiling" = yes; then :
8955 # Try to guess by grepping values from an object file.
8956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8957 /* end confdefs.h. */
8958 short int ascii_mm[] =
8959 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8960 short int ascii_ii[] =
8961 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8962 int use_ascii (int i) {
8963 return ascii_mm[i] + ascii_ii[i];
8964 }
8965 short int ebcdic_ii[] =
8966 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8967 short int ebcdic_mm[] =
8968 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8969 int use_ebcdic (int i) {
8970 return ebcdic_mm[i] + ebcdic_ii[i];
8971 }
8972 extern int foo;
8973
8974 int
8975 main ()
8976 {
8977 return use_ascii (foo) == use_ebcdic (foo);
8978 ;
8979 return 0;
8980 }
8981 _ACEOF
8982 if ac_fn_cxx_try_compile "$LINENO"; then :
8983 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8984 ac_cv_c_bigendian=yes
8985 fi
8986 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8987 if test "$ac_cv_c_bigendian" = unknown; then
8988 ac_cv_c_bigendian=no
8989 else
8990 # finding both strings is unlikely to happen, but who knows?
8991 ac_cv_c_bigendian=unknown
8992 fi
8993 fi
8994 fi
8995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8996 else
8997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8998 /* end confdefs.h. */
8999 $ac_includes_default
9000 int
9001 main ()
9002 {
9003
9004 /* Are we little or big endian? From Harbison&Steele. */
9005 union
9006 {
9007 long int l;
9008 char c[sizeof (long int)];
9009 } u;
9010 u.l = 1;
9011 return u.c[sizeof (long int) - 1] == 1;
9012
9013 ;
9014 return 0;
9015 }
9016 _ACEOF
9017 if ac_fn_cxx_try_run "$LINENO"; then :
9018 ac_cv_c_bigendian=no
9019 else
9020 ac_cv_c_bigendian=yes
9021 fi
9022 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9023 conftest.$ac_objext conftest.beam conftest.$ac_ext
9024 fi
9025
9026 fi
9027 fi
9028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9029 $as_echo "$ac_cv_c_bigendian" >&6; }
9030 case $ac_cv_c_bigendian in #(
9031 yes)
9032 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9033 ;; #(
9034 no)
9035 ;; #(
9036 universal)
9037
9038 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9039
9040 ;; #(
9041 *)
9042 as_fn_error "unknown endianness
9043 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9044 esac
9045
9046
9047 # ----------------------
9048 # Checks for C++ headers
9049 # ----------------------
9050
9051 ac_ext=cpp
9052 ac_cpp='$CXXCPP $CPPFLAGS'
9053 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9054 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9055 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
9057 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
9058 if test -z "$CXXCPP"; then
9059 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
9060 $as_echo_n "(cached) " >&6
9061 else
9062 # Double quotes because CXXCPP needs to be expanded
9063 for CXXCPP in "$CXX -E" "/lib/cpp"
9064 do
9065 ac_preproc_ok=false
9066 for ac_cxx_preproc_warn_flag in '' yes
9067 do
9068 # Use a header file that comes with gcc, so configuring glibc
9069 # with a fresh cross-compiler works.
9070 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9071 # <limits.h> exists even on freestanding compilers.
9072 # On the NeXT, cc -E runs the code through the compiler's parser,
9073 # not just through cpp. "Syntax error" is here to catch this case.
9074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9075 /* end confdefs.h. */
9076 #ifdef __STDC__
9077 # include <limits.h>
9078 #else
9079 # include <assert.h>
9080 #endif
9081 Syntax error
9082 _ACEOF
9083 if ac_fn_cxx_try_cpp "$LINENO"; then :
9084
9085 else
9086 # Broken: fails on valid input.
9087 continue
9088 fi
9089 rm -f conftest.err conftest.$ac_ext
9090
9091 # OK, works on sane cases. Now check whether nonexistent headers
9092 # can be detected and how.
9093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9094 /* end confdefs.h. */
9095 #include <ac_nonexistent.h>
9096 _ACEOF
9097 if ac_fn_cxx_try_cpp "$LINENO"; then :
9098 # Broken: success on invalid input.
9099 continue
9100 else
9101 # Passes both tests.
9102 ac_preproc_ok=:
9103 break
9104 fi
9105 rm -f conftest.err conftest.$ac_ext
9106
9107 done
9108 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9109 rm -f conftest.err conftest.$ac_ext
9110 if $ac_preproc_ok; then :
9111 break
9112 fi
9113
9114 done
9115 ac_cv_prog_CXXCPP=$CXXCPP
9116
9117 fi
9118 CXXCPP=$ac_cv_prog_CXXCPP
9119 else
9120 ac_cv_prog_CXXCPP=$CXXCPP
9121 fi
9122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
9123 $as_echo "$CXXCPP" >&6; }
9124 ac_preproc_ok=false
9125 for ac_cxx_preproc_warn_flag in '' yes
9126 do
9127 # Use a header file that comes with gcc, so configuring glibc
9128 # with a fresh cross-compiler works.
9129 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9130 # <limits.h> exists even on freestanding compilers.
9131 # On the NeXT, cc -E runs the code through the compiler's parser,
9132 # not just through cpp. "Syntax error" is here to catch this case.
9133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9134 /* end confdefs.h. */
9135 #ifdef __STDC__
9136 # include <limits.h>
9137 #else
9138 # include <assert.h>
9139 #endif
9140 Syntax error
9141 _ACEOF
9142 if ac_fn_cxx_try_cpp "$LINENO"; then :
9143
9144 else
9145 # Broken: fails on valid input.
9146 continue
9147 fi
9148 rm -f conftest.err conftest.$ac_ext
9149
9150 # OK, works on sane cases. Now check whether nonexistent headers
9151 # can be detected and how.
9152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9153 /* end confdefs.h. */
9154 #include <ac_nonexistent.h>
9155 _ACEOF
9156 if ac_fn_cxx_try_cpp "$LINENO"; then :
9157 # Broken: success on invalid input.
9158 continue
9159 else
9160 # Passes both tests.
9161 ac_preproc_ok=:
9162 break
9163 fi
9164 rm -f conftest.err conftest.$ac_ext
9165
9166 done
9167 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9168 rm -f conftest.err conftest.$ac_ext
9169 if $ac_preproc_ok; then :
9170
9171 else
9172 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9173 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9174 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9175 See \`config.log' for more details." >&5
9176 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9177 See \`config.log' for more details." >&2;}; }
9178 fi
9179
9180 ac_ext=cpp
9181 ac_cpp='$CXXCPP $CPPFLAGS'
9182 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9183 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9184 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9185
9186
9187 for ac_header in unordered_map
9188 do :
9189 ac_fn_cxx_check_header_preproc "$LINENO" "unordered_map" "ac_cv_header_unordered_map"
9190 if test "x$ac_cv_header_unordered_map" = x""yes; then :
9191 cat >>confdefs.h <<_ACEOF
9192 #define HAVE_UNORDERED_MAP 1
9193 _ACEOF
9194
9195 fi
9196 done
9197
9198 for ac_header in tr1/unordered_map
9199 do :
9200 ac_fn_cxx_check_header_preproc "$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
9201 if test "x$ac_cv_header_tr1_unordered_map" = x""yes; then :
9202 cat >>confdefs.h <<_ACEOF
9203 #define HAVE_TR1_UNORDERED_MAP 1
9204 _ACEOF
9205
9206 fi
9207 done
9208
9209 for ac_header in ext/hash_map
9210 do :
9211 ac_fn_cxx_check_header_preproc "$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
9212 if test "x$ac_cv_header_ext_hash_map" = x""yes; then :
9213 cat >>confdefs.h <<_ACEOF
9214 #define HAVE_EXT_HASH_MAP 1
9215 _ACEOF
9216
9217 fi
9218 done
9219
9220
9221 # --------
9222 # Dependency checking.
9223 # --------
9224
9225 rm -rf .tst 2>/dev/null
9226 mkdir .tst 2>/dev/null
9227 if test -d .tst; then
9228 am__leading_dot=.
9229 else
9230 am__leading_dot=_
9231 fi
9232 rmdir .tst 2>/dev/null
9233
9234 DEPDIR="${am__leading_dot}deps"
9235
9236 ac_config_commands="$ac_config_commands depdir"
9237
9238
9239 ac_config_commands="$ac_config_commands gccdepdir"
9240
9241
9242 depcc="$CXX" am_compiler_list=
9243
9244 am_depcomp=$ac_aux_dir/depcomp
9245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
9246 $as_echo_n "checking dependency style of $depcc... " >&6; }
9247 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
9248 $as_echo_n "(cached) " >&6
9249 else
9250 if test -f "$am_depcomp"; then
9251 # We make a subdir and do the tests there. Otherwise we can end up
9252 # making bogus files that we don't know about and never remove. For
9253 # instance it was reported that on HP-UX the gcc test will end up
9254 # making a dummy file named `D' -- because `-MD' means `put the output
9255 # in D'.
9256 mkdir conftest.dir
9257 # Copy depcomp to subdir because otherwise we won't find it if we're
9258 # using a relative directory.
9259 cp "$am_depcomp" conftest.dir
9260 cd conftest.dir
9261 # We will build objects and dependencies in a subdirectory because
9262 # it helps to detect inapplicable dependency modes. For instance
9263 # both Tru64's cc and ICC support -MD to output dependencies as a
9264 # side effect of compilation, but ICC will put the dependencies in
9265 # the current directory while Tru64 will put them in the object
9266 # directory.
9267 mkdir sub
9268
9269 am_cv_CXX_dependencies_compiler_type=none
9270 if test "$am_compiler_list" = ""; then
9271 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
9272 fi
9273 for depmode in $am_compiler_list; do
9274 if test $depmode = none; then break; fi
9275
9276 $as_echo "$as_me:$LINENO: trying $depmode" >&5
9277 # Setup a source with many dependencies, because some compilers
9278 # like to wrap large dependency lists on column 80 (with \), and
9279 # we should not choose a depcomp mode which is confused by this.
9280 #
9281 # We need to recreate these files for each test, as the compiler may
9282 # overwrite some of them when testing with obscure command lines.
9283 # This happens at least with the AIX C compiler.
9284 : > sub/conftest.c
9285 for i in 1 2 3 4 5 6; do
9286 echo '#include "conftst'$i'.h"' >> sub/conftest.c
9287 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
9288 # Solaris 8's {/usr,}/bin/sh.
9289 touch sub/conftst$i.h
9290 done
9291 echo "include sub/conftest.Po" > confmf
9292
9293 # We check with `-c' and `-o' for the sake of the "dashmstdout"
9294 # mode. It turns out that the SunPro C++ compiler does not properly
9295 # handle `-M -o', and we need to detect this.
9296 depcmd="depmode=$depmode \
9297 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
9298 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
9299 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
9300 echo "| $depcmd" | sed -e 's/ */ /g' >&5
9301 if env $depcmd > conftest.err 2>&1 &&
9302 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
9303 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
9304 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
9305 # icc doesn't choke on unknown options, it will just issue warnings
9306 # or remarks (even with -Werror). So we grep stderr for any message
9307 # that says an option was ignored or not supported.
9308 # When given -MP, icc 7.0 and 7.1 complain thusly:
9309 # icc: Command line warning: ignoring option '-M'; no argument required
9310 # The diagnosis changed in icc 8.0:
9311 # icc: Command line remark: option '-MP' not supported
9312 if (grep 'ignoring option' conftest.err ||
9313 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
9314 am_cv_CXX_dependencies_compiler_type=$depmode
9315 $as_echo "$as_me:$LINENO: success" >&5
9316 break
9317 fi
9318 fi
9319 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
9320 sed -e 's/^/| /' < conftest.err >&5
9321 done
9322
9323 cd ..
9324 rm -rf conftest.dir
9325 else
9326 am_cv_CXX_dependencies_compiler_type=none
9327 fi
9328
9329 fi
9330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
9331 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
9332 if test x${am_cv_CXX_dependencies_compiler_type-none} = xnone
9333 then as_fn_error "no usable dependency style found" "$LINENO" 5
9334 else CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
9335
9336 fi
9337
9338
9339 # --------
9340 # UNSORTED
9341 # --------
9342
9343
9344 # These libraries may be used by collect2.
9345 # We may need a special search path to get them linked.
9346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
9347 $as_echo_n "checking for collect2 libraries... " >&6; }
9348 if test "${gcc_cv_collect2_libs+set}" = set; then :
9349 $as_echo_n "(cached) " >&6
9350 else
9351 save_LIBS="$LIBS"
9352 for libs in '' -lld -lmld \
9353 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
9354 '-L/usr/lib/cmplrs/cc3.11 -lmld'
9355 do
9356 LIBS="$libs"
9357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9358 /* end confdefs.h. */
9359
9360 /* Override any GCC internal prototype to avoid an error.
9361 Use char because int might match the return type of a GCC
9362 builtin and then its argument prototype would still apply. */
9363 #ifdef __cplusplus
9364 extern "C"
9365 #endif
9366 char ldopen ();
9367 int
9368 main ()
9369 {
9370 return ldopen ();
9371 ;
9372 return 0;
9373 }
9374 _ACEOF
9375 if ac_fn_cxx_try_link "$LINENO"; then :
9376 gcc_cv_collect2_libs="$libs"; break
9377 fi
9378 rm -f core conftest.err conftest.$ac_objext \
9379 conftest$ac_exeext conftest.$ac_ext
9380 done
9381 LIBS="$save_LIBS"
9382 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
9383 fi
9384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
9385 $as_echo "$gcc_cv_collect2_libs" >&6; }
9386 case $gcc_cv_collect2_libs in
9387 "none required") ;;
9388 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
9389 esac
9390
9391
9392 # When building Ada code on Alpha, we need exc_resume which is usually in
9393 # -lexc. So test for it.
9394 save_LIBS="$LIBS"
9395 LIBS=
9396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
9397 $as_echo_n "checking for library containing exc_resume... " >&6; }
9398 if test "${ac_cv_search_exc_resume+set}" = set; then :
9399 $as_echo_n "(cached) " >&6
9400 else
9401 ac_func_search_save_LIBS=$LIBS
9402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9403 /* end confdefs.h. */
9404
9405 /* Override any GCC internal prototype to avoid an error.
9406 Use char because int might match the return type of a GCC
9407 builtin and then its argument prototype would still apply. */
9408 #ifdef __cplusplus
9409 extern "C"
9410 #endif
9411 char exc_resume ();
9412 int
9413 main ()
9414 {
9415 return exc_resume ();
9416 ;
9417 return 0;
9418 }
9419 _ACEOF
9420 for ac_lib in '' exc; do
9421 if test -z "$ac_lib"; then
9422 ac_res="none required"
9423 else
9424 ac_res=-l$ac_lib
9425 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9426 fi
9427 if ac_fn_cxx_try_link "$LINENO"; then :
9428 ac_cv_search_exc_resume=$ac_res
9429 fi
9430 rm -f core conftest.err conftest.$ac_objext \
9431 conftest$ac_exeext
9432 if test "${ac_cv_search_exc_resume+set}" = set; then :
9433 break
9434 fi
9435 done
9436 if test "${ac_cv_search_exc_resume+set}" = set; then :
9437
9438 else
9439 ac_cv_search_exc_resume=no
9440 fi
9441 rm conftest.$ac_ext
9442 LIBS=$ac_func_search_save_LIBS
9443 fi
9444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
9445 $as_echo "$ac_cv_search_exc_resume" >&6; }
9446 ac_res=$ac_cv_search_exc_resume
9447 if test "$ac_res" != no; then :
9448 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9449
9450 fi
9451
9452 GNAT_LIBEXC="$LIBS"
9453 LIBS="$save_LIBS"
9454
9455
9456 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
9457 save_LIBS="$LIBS"
9458 LIBS=
9459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
9460 $as_echo_n "checking for library containing kstat_open... " >&6; }
9461 if test "${ac_cv_search_kstat_open+set}" = set; then :
9462 $as_echo_n "(cached) " >&6
9463 else
9464 ac_func_search_save_LIBS=$LIBS
9465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9466 /* end confdefs.h. */
9467
9468 /* Override any GCC internal prototype to avoid an error.
9469 Use char because int might match the return type of a GCC
9470 builtin and then its argument prototype would still apply. */
9471 #ifdef __cplusplus
9472 extern "C"
9473 #endif
9474 char kstat_open ();
9475 int
9476 main ()
9477 {
9478 return kstat_open ();
9479 ;
9480 return 0;
9481 }
9482 _ACEOF
9483 for ac_lib in '' kstat; do
9484 if test -z "$ac_lib"; then
9485 ac_res="none required"
9486 else
9487 ac_res=-l$ac_lib
9488 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9489 fi
9490 if ac_fn_cxx_try_link "$LINENO"; then :
9491 ac_cv_search_kstat_open=$ac_res
9492 fi
9493 rm -f core conftest.err conftest.$ac_objext \
9494 conftest$ac_exeext
9495 if test "${ac_cv_search_kstat_open+set}" = set; then :
9496 break
9497 fi
9498 done
9499 if test "${ac_cv_search_kstat_open+set}" = set; then :
9500
9501 else
9502 ac_cv_search_kstat_open=no
9503 fi
9504 rm conftest.$ac_ext
9505 LIBS=$ac_func_search_save_LIBS
9506 fi
9507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
9508 $as_echo "$ac_cv_search_kstat_open" >&6; }
9509 ac_res=$ac_cv_search_kstat_open
9510 if test "$ac_res" != no; then :
9511 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9512
9513 fi
9514
9515 EXTRA_GCC_LIBS="$LIBS"
9516 LIBS="$save_LIBS"
9517
9518
9519 # Some systems put ldexp and frexp in libm instead of libc; assume
9520 # they're both in the same place. jcf-dump needs them.
9521 save_LIBS="$LIBS"
9522 LIBS=
9523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
9524 $as_echo_n "checking for library containing ldexp... " >&6; }
9525 if test "${ac_cv_search_ldexp+set}" = set; then :
9526 $as_echo_n "(cached) " >&6
9527 else
9528 ac_func_search_save_LIBS=$LIBS
9529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9530 /* end confdefs.h. */
9531
9532 /* Override any GCC internal prototype to avoid an error.
9533 Use char because int might match the return type of a GCC
9534 builtin and then its argument prototype would still apply. */
9535 #ifdef __cplusplus
9536 extern "C"
9537 #endif
9538 char ldexp ();
9539 int
9540 main ()
9541 {
9542 return ldexp ();
9543 ;
9544 return 0;
9545 }
9546 _ACEOF
9547 for ac_lib in '' m; do
9548 if test -z "$ac_lib"; then
9549 ac_res="none required"
9550 else
9551 ac_res=-l$ac_lib
9552 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9553 fi
9554 if ac_fn_cxx_try_link "$LINENO"; then :
9555 ac_cv_search_ldexp=$ac_res
9556 fi
9557 rm -f core conftest.err conftest.$ac_objext \
9558 conftest$ac_exeext
9559 if test "${ac_cv_search_ldexp+set}" = set; then :
9560 break
9561 fi
9562 done
9563 if test "${ac_cv_search_ldexp+set}" = set; then :
9564
9565 else
9566 ac_cv_search_ldexp=no
9567 fi
9568 rm conftest.$ac_ext
9569 LIBS=$ac_func_search_save_LIBS
9570 fi
9571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
9572 $as_echo "$ac_cv_search_ldexp" >&6; }
9573 ac_res=$ac_cv_search_ldexp
9574 if test "$ac_res" != no; then :
9575 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9576
9577 fi
9578
9579 LDEXP_LIB="$LIBS"
9580 LIBS="$save_LIBS"
9581
9582
9583 # Use <inttypes.h> only if it exists,
9584 # doesn't clash with <sys/types.h>, declares intmax_t and defines
9585 # PRId64
9586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
9587 $as_echo_n "checking for inttypes.h... " >&6; }
9588 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
9589 $as_echo_n "(cached) " >&6
9590 else
9591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9592 /* end confdefs.h. */
9593 #define __STDC_FORMAT_MACROS
9594 #include <sys/types.h>
9595 #include <inttypes.h>
9596 int
9597 main ()
9598 {
9599 intmax_t i = -1;
9600 #ifndef PRId64
9601 choke me
9602 #endif
9603 ;
9604 return 0;
9605 }
9606 _ACEOF
9607 if ac_fn_cxx_try_compile "$LINENO"; then :
9608 gcc_cv_header_inttypes_h=yes
9609 else
9610 gcc_cv_header_inttypes_h=no
9611 fi
9612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9613 fi
9614
9615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
9616 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
9617 if test $gcc_cv_header_inttypes_h = yes; then
9618
9619 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
9620
9621 fi
9622
9623
9624
9625 for ac_func in times clock kill getrlimit setrlimit atoq \
9626 popen sysconf strsignal getrusage nl_langinfo \
9627 gettimeofday mbstowcs wcswidth mmap setlocale \
9628 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
9629 do :
9630 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9631 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
9632 eval as_val=\$$as_ac_var
9633 if test "x$as_val" = x""yes; then :
9634 cat >>confdefs.h <<_ACEOF
9635 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9636 _ACEOF
9637
9638 fi
9639 done
9640
9641
9642 if test x$ac_cv_func_mbstowcs = xyes; then
9643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
9644 $as_echo_n "checking whether mbstowcs works... " >&6; }
9645 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
9646 $as_echo_n "(cached) " >&6
9647 else
9648 if test "$cross_compiling" = yes; then :
9649 gcc_cv_func_mbstowcs_works=yes
9650 else
9651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9652 /* end confdefs.h. */
9653 #include <stdlib.h>
9654 int main()
9655 {
9656 mbstowcs(0, "", 0);
9657 return 0;
9658 }
9659 _ACEOF
9660 if ac_fn_cxx_try_run "$LINENO"; then :
9661 gcc_cv_func_mbstowcs_works=yes
9662 else
9663 gcc_cv_func_mbstowcs_works=no
9664 fi
9665 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9666 conftest.$ac_objext conftest.beam conftest.$ac_ext
9667 fi
9668
9669 fi
9670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
9671 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
9672 if test x$gcc_cv_func_mbstowcs_works = xyes; then
9673
9674 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
9675
9676 fi
9677 fi
9678
9679 ac_fn_cxx_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
9680 if test "x$ac_cv_type_ssize_t" = x""yes; then :
9681
9682 else
9683
9684 cat >>confdefs.h <<_ACEOF
9685 #define ssize_t int
9686 _ACEOF
9687
9688 fi
9689
9690 ac_fn_cxx_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
9691 if test "x$ac_cv_type_caddr_t" = x""yes; then :
9692
9693 else
9694
9695 cat >>confdefs.h <<_ACEOF
9696 #define caddr_t char *
9697 _ACEOF
9698
9699 fi
9700
9701
9702
9703 ac_fn_cxx_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
9704 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
9705 gcc_header_sys_mman_h=yes
9706 else
9707 gcc_header_sys_mman_h=no
9708 fi
9709
9710 ac_fn_cxx_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
9711 if test "x$ac_cv_func_mmap" = x""yes; then :
9712 gcc_func_mmap=yes
9713 else
9714 gcc_func_mmap=no
9715 fi
9716
9717 if test "$gcc_header_sys_mman_h" != yes \
9718 || test "$gcc_func_mmap" != yes; then
9719 gcc_cv_func_mmap_file=no
9720 gcc_cv_func_mmap_dev_zero=no
9721 gcc_cv_func_mmap_anon=no
9722 else
9723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
9724 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
9725 if test "${gcc_cv_func_mmap_file+set}" = set; then :
9726 $as_echo_n "(cached) " >&6
9727 else
9728 # Add a system to this blacklist if
9729 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9730 # memory area containing the same data that you'd get if you applied
9731 # read() to the same fd. The only system known to have a problem here
9732 # is VMS, where text files have record structure.
9733 case "$host_os" in
9734 *vms* | ultrix*)
9735 gcc_cv_func_mmap_file=no ;;
9736 *)
9737 gcc_cv_func_mmap_file=yes;;
9738 esac
9739 fi
9740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
9741 $as_echo "$gcc_cv_func_mmap_file" >&6; }
9742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
9743 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
9744 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
9745 $as_echo_n "(cached) " >&6
9746 else
9747 # Add a system to this blacklist if it has mmap() but /dev/zero
9748 # does not exist, or if mmapping /dev/zero does not give anonymous
9749 # zeroed pages with both the following properties:
9750 # 1. If you map N consecutive pages in with one call, and then
9751 # unmap any subset of those pages, the pages that were not
9752 # explicitly unmapped remain accessible.
9753 # 2. If you map two adjacent blocks of memory and then unmap them
9754 # both at once, they must both go away.
9755 # Systems known to be in this category are Windows (all variants),
9756 # VMS, and Darwin.
9757 case "$host_os" in
9758 *vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
9759 gcc_cv_func_mmap_dev_zero=no ;;
9760 *)
9761 gcc_cv_func_mmap_dev_zero=yes;;
9762 esac
9763 fi
9764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
9765 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
9766
9767 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
9769 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
9770 if test "${gcc_cv_decl_map_anon+set}" = set; then :
9771 $as_echo_n "(cached) " >&6
9772 else
9773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9774 /* end confdefs.h. */
9775 #include <sys/types.h>
9776 #include <sys/mman.h>
9777 #include <unistd.h>
9778
9779 #ifndef MAP_ANONYMOUS
9780 #define MAP_ANONYMOUS MAP_ANON
9781 #endif
9782
9783 int
9784 main ()
9785 {
9786 int n = MAP_ANONYMOUS;
9787 ;
9788 return 0;
9789 }
9790 _ACEOF
9791 if ac_fn_cxx_try_compile "$LINENO"; then :
9792 gcc_cv_decl_map_anon=yes
9793 else
9794 gcc_cv_decl_map_anon=no
9795 fi
9796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9797 fi
9798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
9799 $as_echo "$gcc_cv_decl_map_anon" >&6; }
9800
9801 if test $gcc_cv_decl_map_anon = no; then
9802 gcc_cv_func_mmap_anon=no
9803 else
9804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9805 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
9806 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
9807 $as_echo_n "(cached) " >&6
9808 else
9809 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9810 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9811 # doesn't give anonymous zeroed pages with the same properties listed
9812 # above for use of /dev/zero.
9813 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9814 case "$host_os" in
9815 *vms* | cygwin* | pe | mingw* | sco* | udk* )
9816 gcc_cv_func_mmap_anon=no ;;
9817 *)
9818 gcc_cv_func_mmap_anon=yes;;
9819 esac
9820 fi
9821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
9822 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
9823 fi
9824 fi
9825
9826 if test $gcc_cv_func_mmap_file = yes; then
9827
9828 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
9829
9830 fi
9831 if test $gcc_cv_func_mmap_dev_zero = yes; then
9832
9833 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
9834
9835 fi
9836 if test $gcc_cv_func_mmap_anon = yes; then
9837
9838 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
9839
9840 fi
9841
9842
9843 case "${host}" in
9844 *-*-*vms*)
9845 # Under VMS, vfork works very differently than on Unix. The standard test
9846 # won't work, and it isn't easily adaptable. It makes more sense to
9847 # just force it.
9848 ac_cv_func_vfork_works=yes
9849 ;;
9850 esac
9851 ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9852 if test "x$ac_cv_type_pid_t" = x""yes; then :
9853
9854 else
9855
9856 cat >>confdefs.h <<_ACEOF
9857 #define pid_t int
9858 _ACEOF
9859
9860 fi
9861
9862 for ac_header in vfork.h
9863 do :
9864 ac_fn_cxx_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
9865 if test "x$ac_cv_header_vfork_h" = x""yes; then :
9866 cat >>confdefs.h <<_ACEOF
9867 #define HAVE_VFORK_H 1
9868 _ACEOF
9869
9870 fi
9871 done
9872
9873 for ac_func in fork vfork
9874 do :
9875 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9876 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
9877 eval as_val=\$$as_ac_var
9878 if test "x$as_val" = x""yes; then :
9879 cat >>confdefs.h <<_ACEOF
9880 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9881 _ACEOF
9882
9883 fi
9884 done
9885
9886 if test "x$ac_cv_func_fork" = xyes; then
9887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9888 $as_echo_n "checking for working fork... " >&6; }
9889 if test "${ac_cv_func_fork_works+set}" = set; then :
9890 $as_echo_n "(cached) " >&6
9891 else
9892 if test "$cross_compiling" = yes; then :
9893 ac_cv_func_fork_works=cross
9894 else
9895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9896 /* end confdefs.h. */
9897 $ac_includes_default
9898 int
9899 main ()
9900 {
9901
9902 /* By Ruediger Kuhlmann. */
9903 return fork () < 0;
9904
9905 ;
9906 return 0;
9907 }
9908 _ACEOF
9909 if ac_fn_cxx_try_run "$LINENO"; then :
9910 ac_cv_func_fork_works=yes
9911 else
9912 ac_cv_func_fork_works=no
9913 fi
9914 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9915 conftest.$ac_objext conftest.beam conftest.$ac_ext
9916 fi
9917
9918 fi
9919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9920 $as_echo "$ac_cv_func_fork_works" >&6; }
9921
9922 else
9923 ac_cv_func_fork_works=$ac_cv_func_fork
9924 fi
9925 if test "x$ac_cv_func_fork_works" = xcross; then
9926 case $host in
9927 *-*-amigaos* | *-*-msdosdjgpp*)
9928 # Override, as these systems have only a dummy fork() stub
9929 ac_cv_func_fork_works=no
9930 ;;
9931 *)
9932 ac_cv_func_fork_works=yes
9933 ;;
9934 esac
9935 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9936 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9937 fi
9938 ac_cv_func_vfork_works=$ac_cv_func_vfork
9939 if test "x$ac_cv_func_vfork" = xyes; then
9940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
9941 $as_echo_n "checking for working vfork... " >&6; }
9942 if test "${ac_cv_func_vfork_works+set}" = set; then :
9943 $as_echo_n "(cached) " >&6
9944 else
9945 if test "$cross_compiling" = yes; then :
9946 ac_cv_func_vfork_works=cross
9947 else
9948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9949 /* end confdefs.h. */
9950 /* Thanks to Paul Eggert for this test. */
9951 $ac_includes_default
9952 #include <sys/wait.h>
9953 #ifdef HAVE_VFORK_H
9954 # include <vfork.h>
9955 #endif
9956 /* On some sparc systems, changes by the child to local and incoming
9957 argument registers are propagated back to the parent. The compiler
9958 is told about this with #include <vfork.h>, but some compilers
9959 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
9960 static variable whose address is put into a register that is
9961 clobbered by the vfork. */
9962 static void
9963 #ifdef __cplusplus
9964 sparc_address_test (int arg)
9965 # else
9966 sparc_address_test (arg) int arg;
9967 #endif
9968 {
9969 static pid_t child;
9970 if (!child) {
9971 child = vfork ();
9972 if (child < 0) {
9973 perror ("vfork");
9974 _exit(2);
9975 }
9976 if (!child) {
9977 arg = getpid();
9978 write(-1, "", 0);
9979 _exit (arg);
9980 }
9981 }
9982 }
9983
9984 int
9985 main ()
9986 {
9987 pid_t parent = getpid ();
9988 pid_t child;
9989
9990 sparc_address_test (0);
9991
9992 child = vfork ();
9993
9994 if (child == 0) {
9995 /* Here is another test for sparc vfork register problems. This
9996 test uses lots of local variables, at least as many local
9997 variables as main has allocated so far including compiler
9998 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
9999 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
10000 reuse the register of parent for one of the local variables,
10001 since it will think that parent can't possibly be used any more
10002 in this routine. Assigning to the local variable will thus
10003 munge parent in the parent process. */
10004 pid_t
10005 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10006 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10007 /* Convince the compiler that p..p7 are live; otherwise, it might
10008 use the same hardware register for all 8 local variables. */
10009 if (p != p1 || p != p2 || p != p3 || p != p4
10010 || p != p5 || p != p6 || p != p7)
10011 _exit(1);
10012
10013 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10014 from child file descriptors. If the child closes a descriptor
10015 before it execs or exits, this munges the parent's descriptor
10016 as well. Test for this by closing stdout in the child. */
10017 _exit(close(fileno(stdout)) != 0);
10018 } else {
10019 int status;
10020 struct stat st;
10021
10022 while (wait(&status) != child)
10023 ;
10024 return (
10025 /* Was there some problem with vforking? */
10026 child < 0
10027
10028 /* Did the child fail? (This shouldn't happen.) */
10029 || status
10030
10031 /* Did the vfork/compiler bug occur? */
10032 || parent != getpid()
10033
10034 /* Did the file descriptor bug occur? */
10035 || fstat(fileno(stdout), &st) != 0
10036 );
10037 }
10038 }
10039 _ACEOF
10040 if ac_fn_cxx_try_run "$LINENO"; then :
10041 ac_cv_func_vfork_works=yes
10042 else
10043 ac_cv_func_vfork_works=no
10044 fi
10045 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10046 conftest.$ac_objext conftest.beam conftest.$ac_ext
10047 fi
10048
10049 fi
10050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
10051 $as_echo "$ac_cv_func_vfork_works" >&6; }
10052
10053 fi;
10054 if test "x$ac_cv_func_fork_works" = xcross; then
10055 ac_cv_func_vfork_works=$ac_cv_func_vfork
10056 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10057 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10058 fi
10059
10060 if test "x$ac_cv_func_vfork_works" = xyes; then
10061
10062 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
10063
10064 else
10065
10066 $as_echo "#define vfork fork" >>confdefs.h
10067
10068 fi
10069 if test "x$ac_cv_func_fork_works" = xyes; then
10070
10071 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
10072
10073 fi
10074
10075
10076
10077 if test "X$prefix" = "XNONE"; then
10078 acl_final_prefix="$ac_default_prefix"
10079 else
10080 acl_final_prefix="$prefix"
10081 fi
10082 if test "X$exec_prefix" = "XNONE"; then
10083 acl_final_exec_prefix='${prefix}'
10084 else
10085 acl_final_exec_prefix="$exec_prefix"
10086 fi
10087 acl_save_prefix="$prefix"
10088 prefix="$acl_final_prefix"
10089 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10090 prefix="$acl_save_prefix"
10091
10092
10093 # Check whether --with-gnu-ld was given.
10094 if test "${with_gnu_ld+set}" = set; then :
10095 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10096 else
10097 with_gnu_ld=no
10098 fi
10099
10100 # Prepare PATH_SEPARATOR.
10101 # The user is always right.
10102 if test "${PATH_SEPARATOR+set}" != set; then
10103 echo "#! /bin/sh" >conf$$.sh
10104 echo "exit 0" >>conf$$.sh
10105 chmod +x conf$$.sh
10106 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10107 PATH_SEPARATOR=';'
10108 else
10109 PATH_SEPARATOR=:
10110 fi
10111 rm -f conf$$.sh
10112 fi
10113 ac_prog=ld
10114 if test "$GCC" = yes; then
10115 # Check if gcc -print-prog-name=ld gives a path.
10116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
10117 $as_echo_n "checking for ld used by GCC... " >&6; }
10118 case $host in
10119 *-*-mingw*)
10120 # gcc leaves a trailing carriage return which upsets mingw
10121 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10122 *)
10123 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10124 esac
10125 case $ac_prog in
10126 # Accept absolute paths.
10127 [\\/]* | [A-Za-z]:[\\/]*)
10128 re_direlt='/[^/][^/]*/\.\./'
10129 # Canonicalize the path of ld
10130 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10131 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10132 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10133 done
10134 test -z "$LD" && LD="$ac_prog"
10135 ;;
10136 "")
10137 # If it fails, then pretend we aren't using GCC.
10138 ac_prog=ld
10139 ;;
10140 *)
10141 # If it is relative, then search for the first ld in PATH.
10142 with_gnu_ld=unknown
10143 ;;
10144 esac
10145 elif test "$with_gnu_ld" = yes; then
10146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
10147 $as_echo_n "checking for GNU ld... " >&6; }
10148 else
10149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
10150 $as_echo_n "checking for non-GNU ld... " >&6; }
10151 fi
10152 if test "${acl_cv_path_LD+set}" = set; then :
10153 $as_echo_n "(cached) " >&6
10154 else
10155 if test -z "$LD"; then
10156 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10157 for ac_dir in $PATH; do
10158 test -z "$ac_dir" && ac_dir=.
10159 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10160 acl_cv_path_LD="$ac_dir/$ac_prog"
10161 # Check to see if the program is GNU ld. I'd rather use --version,
10162 # but apparently some GNU ld's only accept -v.
10163 # Break only if it was the GNU/non-GNU ld that we prefer.
10164 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
10165 test "$with_gnu_ld" != no && break
10166 else
10167 test "$with_gnu_ld" != yes && break
10168 fi
10169 fi
10170 done
10171 IFS="$ac_save_ifs"
10172 else
10173 acl_cv_path_LD="$LD" # Let the user override the test with a path.
10174 fi
10175 fi
10176
10177 LD="$acl_cv_path_LD"
10178 if test -n "$LD"; then
10179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10180 $as_echo "$LD" >&6; }
10181 else
10182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10183 $as_echo "no" >&6; }
10184 fi
10185 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
10186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
10187 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
10188 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
10189 $as_echo_n "(cached) " >&6
10190 else
10191 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10192 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
10193 acl_cv_prog_gnu_ld=yes
10194 else
10195 acl_cv_prog_gnu_ld=no
10196 fi
10197 fi
10198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
10199 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
10200 with_gnu_ld=$acl_cv_prog_gnu_ld
10201
10202
10203
10204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
10205 $as_echo_n "checking for shared library run path origin... " >&6; }
10206 if test "${acl_cv_rpath+set}" = set; then :
10207 $as_echo_n "(cached) " >&6
10208 else
10209
10210 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10211 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10212 . ./conftest.sh
10213 rm -f ./conftest.sh
10214 acl_cv_rpath=done
10215
10216 fi
10217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
10218 $as_echo "$acl_cv_rpath" >&6; }
10219 wl="$acl_cv_wl"
10220 libext="$acl_cv_libext"
10221 shlibext="$acl_cv_shlibext"
10222 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10223 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10224 hardcode_direct="$acl_cv_hardcode_direct"
10225 hardcode_minus_L="$acl_cv_hardcode_minus_L"
10226 # Check whether --enable-rpath was given.
10227 if test "${enable_rpath+set}" = set; then :
10228 enableval=$enable_rpath; :
10229 else
10230 enable_rpath=yes
10231 fi
10232
10233
10234
10235
10236
10237
10238
10239
10240 use_additional=yes
10241
10242 acl_save_prefix="$prefix"
10243 prefix="$acl_final_prefix"
10244 acl_save_exec_prefix="$exec_prefix"
10245 exec_prefix="$acl_final_exec_prefix"
10246
10247 eval additional_includedir=\"$includedir\"
10248 eval additional_libdir=\"$libdir\"
10249
10250 exec_prefix="$acl_save_exec_prefix"
10251 prefix="$acl_save_prefix"
10252
10253
10254 # Check whether --with-libiconv-prefix was given.
10255 if test "${with_libiconv_prefix+set}" = set; then :
10256 withval=$with_libiconv_prefix;
10257 if test "X$withval" = "Xno"; then
10258 use_additional=no
10259 else
10260 if test "X$withval" = "X"; then
10261
10262 acl_save_prefix="$prefix"
10263 prefix="$acl_final_prefix"
10264 acl_save_exec_prefix="$exec_prefix"
10265 exec_prefix="$acl_final_exec_prefix"
10266
10267 eval additional_includedir=\"$includedir\"
10268 eval additional_libdir=\"$libdir\"
10269
10270 exec_prefix="$acl_save_exec_prefix"
10271 prefix="$acl_save_prefix"
10272
10273 else
10274 additional_includedir="$withval/include"
10275 additional_libdir="$withval/lib"
10276 fi
10277 fi
10278
10279 fi
10280
10281 LIBICONV=
10282 LTLIBICONV=
10283 INCICONV=
10284 rpathdirs=
10285 ltrpathdirs=
10286 names_already_handled=
10287 names_next_round='iconv '
10288 while test -n "$names_next_round"; do
10289 names_this_round="$names_next_round"
10290 names_next_round=
10291 for name in $names_this_round; do
10292 already_handled=
10293 for n in $names_already_handled; do
10294 if test "$n" = "$name"; then
10295 already_handled=yes
10296 break
10297 fi
10298 done
10299 if test -z "$already_handled"; then
10300 names_already_handled="$names_already_handled $name"
10301 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10302 eval value=\"\$HAVE_LIB$uppername\"
10303 if test -n "$value"; then
10304 if test "$value" = yes; then
10305 eval value=\"\$LIB$uppername\"
10306 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
10307 eval value=\"\$LTLIB$uppername\"
10308 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
10309 else
10310 :
10311 fi
10312 else
10313 found_dir=
10314 found_la=
10315 found_so=
10316 found_a=
10317 if test $use_additional = yes; then
10318 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10319 found_dir="$additional_libdir"
10320 found_so="$additional_libdir/lib$name.$shlibext"
10321 if test -f "$additional_libdir/lib$name.la"; then
10322 found_la="$additional_libdir/lib$name.la"
10323 fi
10324 else
10325 if test -f "$additional_libdir/lib$name.$libext"; then
10326 found_dir="$additional_libdir"
10327 found_a="$additional_libdir/lib$name.$libext"
10328 if test -f "$additional_libdir/lib$name.la"; then
10329 found_la="$additional_libdir/lib$name.la"
10330 fi
10331 fi
10332 fi
10333 fi
10334 if test "X$found_dir" = "X"; then
10335 for x in $LDFLAGS $LTLIBICONV; do
10336
10337 acl_save_prefix="$prefix"
10338 prefix="$acl_final_prefix"
10339 acl_save_exec_prefix="$exec_prefix"
10340 exec_prefix="$acl_final_exec_prefix"
10341 eval x=\"$x\"
10342 exec_prefix="$acl_save_exec_prefix"
10343 prefix="$acl_save_prefix"
10344
10345 case "$x" in
10346 -L*)
10347 dir=`echo "X$x" | sed -e 's/^X-L//'`
10348 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10349 found_dir="$dir"
10350 found_so="$dir/lib$name.$shlibext"
10351 if test -f "$dir/lib$name.la"; then
10352 found_la="$dir/lib$name.la"
10353 fi
10354 else
10355 if test -f "$dir/lib$name.$libext"; then
10356 found_dir="$dir"
10357 found_a="$dir/lib$name.$libext"
10358 if test -f "$dir/lib$name.la"; then
10359 found_la="$dir/lib$name.la"
10360 fi
10361 fi
10362 fi
10363 ;;
10364 esac
10365 if test "X$found_dir" != "X"; then
10366 break
10367 fi
10368 done
10369 fi
10370 if test "X$found_dir" != "X"; then
10371 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10372 if test "X$found_so" != "X"; then
10373 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10374 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10375 else
10376 haveit=
10377 for x in $ltrpathdirs; do
10378 if test "X$x" = "X$found_dir"; then
10379 haveit=yes
10380 break
10381 fi
10382 done
10383 if test -z "$haveit"; then
10384 ltrpathdirs="$ltrpathdirs $found_dir"
10385 fi
10386 if test "$hardcode_direct" = yes; then
10387 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10388 else
10389 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10390 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10391 haveit=
10392 for x in $rpathdirs; do
10393 if test "X$x" = "X$found_dir"; then
10394 haveit=yes
10395 break
10396 fi
10397 done
10398 if test -z "$haveit"; then
10399 rpathdirs="$rpathdirs $found_dir"
10400 fi
10401 else
10402 haveit=
10403 for x in $LDFLAGS $LIBICONV; do
10404
10405 acl_save_prefix="$prefix"
10406 prefix="$acl_final_prefix"
10407 acl_save_exec_prefix="$exec_prefix"
10408 exec_prefix="$acl_final_exec_prefix"
10409 eval x=\"$x\"
10410 exec_prefix="$acl_save_exec_prefix"
10411 prefix="$acl_save_prefix"
10412
10413 if test "X$x" = "X-L$found_dir"; then
10414 haveit=yes
10415 break
10416 fi
10417 done
10418 if test -z "$haveit"; then
10419 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10420 fi
10421 if test "$hardcode_minus_L" != no; then
10422 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10423 else
10424 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10425 fi
10426 fi
10427 fi
10428 fi
10429 else
10430 if test "X$found_a" != "X"; then
10431 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
10432 else
10433 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10434 fi
10435 fi
10436 additional_includedir=
10437 case "$found_dir" in
10438 */lib | */lib/)
10439 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10440 additional_includedir="$basedir/include"
10441 ;;
10442 esac
10443 if test "X$additional_includedir" != "X"; then
10444 if test "X$additional_includedir" != "X/usr/include"; then
10445 haveit=
10446 if test "X$additional_includedir" = "X/usr/local/include"; then
10447 if test -n "$GCC"; then
10448 case $host_os in
10449 linux*) haveit=yes;;
10450 esac
10451 fi
10452 fi
10453 if test -z "$haveit"; then
10454 for x in $CPPFLAGS $INCICONV; do
10455
10456 acl_save_prefix="$prefix"
10457 prefix="$acl_final_prefix"
10458 acl_save_exec_prefix="$exec_prefix"
10459 exec_prefix="$acl_final_exec_prefix"
10460 eval x=\"$x\"
10461 exec_prefix="$acl_save_exec_prefix"
10462 prefix="$acl_save_prefix"
10463
10464 if test "X$x" = "X-I$additional_includedir"; then
10465 haveit=yes
10466 break
10467 fi
10468 done
10469 if test -z "$haveit"; then
10470 if test -d "$additional_includedir"; then
10471 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10472 fi
10473 fi
10474 fi
10475 fi
10476 fi
10477 if test -n "$found_la"; then
10478 save_libdir="$libdir"
10479 case "$found_la" in
10480 */* | *\\*) . "$found_la" ;;
10481 *) . "./$found_la" ;;
10482 esac
10483 libdir="$save_libdir"
10484 for dep in $dependency_libs; do
10485 case "$dep" in
10486 -L*)
10487 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10488 if test "X$additional_libdir" != "X/usr/lib"; then
10489 haveit=
10490 if test "X$additional_libdir" = "X/usr/local/lib"; then
10491 if test -n "$GCC"; then
10492 case $host_os in
10493 linux*) haveit=yes;;
10494 esac
10495 fi
10496 fi
10497 if test -z "$haveit"; then
10498 haveit=
10499 for x in $LDFLAGS $LIBICONV; do
10500
10501 acl_save_prefix="$prefix"
10502 prefix="$acl_final_prefix"
10503 acl_save_exec_prefix="$exec_prefix"
10504 exec_prefix="$acl_final_exec_prefix"
10505 eval x=\"$x\"
10506 exec_prefix="$acl_save_exec_prefix"
10507 prefix="$acl_save_prefix"
10508
10509 if test "X$x" = "X-L$additional_libdir"; then
10510 haveit=yes
10511 break
10512 fi
10513 done
10514 if test -z "$haveit"; then
10515 if test -d "$additional_libdir"; then
10516 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10517 fi
10518 fi
10519 haveit=
10520 for x in $LDFLAGS $LTLIBICONV; do
10521
10522 acl_save_prefix="$prefix"
10523 prefix="$acl_final_prefix"
10524 acl_save_exec_prefix="$exec_prefix"
10525 exec_prefix="$acl_final_exec_prefix"
10526 eval x=\"$x\"
10527 exec_prefix="$acl_save_exec_prefix"
10528 prefix="$acl_save_prefix"
10529
10530 if test "X$x" = "X-L$additional_libdir"; then
10531 haveit=yes
10532 break
10533 fi
10534 done
10535 if test -z "$haveit"; then
10536 if test -d "$additional_libdir"; then
10537 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10538 fi
10539 fi
10540 fi
10541 fi
10542 ;;
10543 -R*)
10544 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10545 if test "$enable_rpath" != no; then
10546 haveit=
10547 for x in $rpathdirs; do
10548 if test "X$x" = "X$dir"; then
10549 haveit=yes
10550 break
10551 fi
10552 done
10553 if test -z "$haveit"; then
10554 rpathdirs="$rpathdirs $dir"
10555 fi
10556 haveit=
10557 for x in $ltrpathdirs; do
10558 if test "X$x" = "X$dir"; then
10559 haveit=yes
10560 break
10561 fi
10562 done
10563 if test -z "$haveit"; then
10564 ltrpathdirs="$ltrpathdirs $dir"
10565 fi
10566 fi
10567 ;;
10568 -l*)
10569 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10570 ;;
10571 *.la)
10572 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10573 ;;
10574 *)
10575 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10576 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10577 ;;
10578 esac
10579 done
10580 fi
10581 else
10582 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10583 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10584 fi
10585 fi
10586 fi
10587 done
10588 done
10589 if test "X$rpathdirs" != "X"; then
10590 if test -n "$hardcode_libdir_separator"; then
10591 alldirs=
10592 for found_dir in $rpathdirs; do
10593 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10594 done
10595 acl_save_libdir="$libdir"
10596 libdir="$alldirs"
10597 eval flag=\"$hardcode_libdir_flag_spec\"
10598 libdir="$acl_save_libdir"
10599 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10600 else
10601 for found_dir in $rpathdirs; do
10602 acl_save_libdir="$libdir"
10603 libdir="$found_dir"
10604 eval flag=\"$hardcode_libdir_flag_spec\"
10605 libdir="$acl_save_libdir"
10606 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10607 done
10608 fi
10609 fi
10610 if test "X$ltrpathdirs" != "X"; then
10611 for found_dir in $ltrpathdirs; do
10612 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10613 done
10614 fi
10615
10616
10617
10618
10619
10620
10621
10622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10623 $as_echo_n "checking for iconv... " >&6; }
10624 if test "${am_cv_func_iconv+set}" = set; then :
10625 $as_echo_n "(cached) " >&6
10626 else
10627
10628 am_cv_func_iconv="no, consider installing GNU libiconv"
10629 am_cv_lib_iconv=no
10630 am_save_CPPFLAGS="$CPPFLAGS"
10631 CPPFLAGS="$CPPFLAGS $INCICONV"
10632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10633 /* end confdefs.h. */
10634 #include <stdlib.h>
10635 #include <iconv.h>
10636 int
10637 main ()
10638 {
10639 iconv_t cd = iconv_open("","");
10640 iconv(cd,NULL,NULL,NULL,NULL);
10641 iconv_close(cd);
10642 ;
10643 return 0;
10644 }
10645 _ACEOF
10646 if ac_fn_cxx_try_link "$LINENO"; then :
10647 am_cv_func_iconv=yes
10648 fi
10649 rm -f core conftest.err conftest.$ac_objext \
10650 conftest$ac_exeext conftest.$ac_ext
10651 CPPFLAGS="$am_save_CPPFLAGS"
10652
10653 if test "$am_cv_func_iconv" != yes && test -d ../libiconv; then
10654 for _libs in .libs _libs; do
10655 am_save_CPPFLAGS="$CPPFLAGS"
10656 am_save_LIBS="$LIBS"
10657 CPPFLAGS="$CPPFLAGS -I../libiconv/include"
10658 LIBS="$LIBS ../libiconv/lib/$_libs/libiconv.a"
10659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10660 /* end confdefs.h. */
10661 #include <stdlib.h>
10662 #include <iconv.h>
10663 int
10664 main ()
10665 {
10666 iconv_t cd = iconv_open("","");
10667 iconv(cd,NULL,NULL,NULL,NULL);
10668 iconv_close(cd);
10669 ;
10670 return 0;
10671 }
10672 _ACEOF
10673 if ac_fn_cxx_try_link "$LINENO"; then :
10674 INCICONV="-I../libiconv/include"
10675 LIBICONV='${top_builddir}'/../libiconv/lib/$_libs/libiconv.a
10676 LTLIBICONV='${top_builddir}'/../libiconv/lib/libiconv.la
10677 am_cv_lib_iconv=yes
10678 am_cv_func_iconv=yes
10679 fi
10680 rm -f core conftest.err conftest.$ac_objext \
10681 conftest$ac_exeext conftest.$ac_ext
10682 CPPFLAGS="$am_save_CPPFLAGS"
10683 LIBS="$am_save_LIBS"
10684 if test "$am_cv_func_iconv" = "yes"; then
10685 break
10686 fi
10687 done
10688 fi
10689
10690 if test "$am_cv_func_iconv" != yes; then
10691 am_save_CPPFLAGS="$CPPFLAGS"
10692 am_save_LIBS="$LIBS"
10693 CPPFLAGS="$LIBS $INCICONV"
10694 LIBS="$LIBS $LIBICONV"
10695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10696 /* end confdefs.h. */
10697 #include <stdlib.h>
10698 #include <iconv.h>
10699 int
10700 main ()
10701 {
10702 iconv_t cd = iconv_open("","");
10703 iconv(cd,NULL,NULL,NULL,NULL);
10704 iconv_close(cd);
10705 ;
10706 return 0;
10707 }
10708 _ACEOF
10709 if ac_fn_cxx_try_link "$LINENO"; then :
10710 am_cv_lib_iconv=yes
10711 am_cv_func_iconv=yes
10712 fi
10713 rm -f core conftest.err conftest.$ac_objext \
10714 conftest$ac_exeext conftest.$ac_ext
10715 CPPFLAGS="$am_save_CPPFLAGS"
10716 LIBS="$am_save_LIBS"
10717 fi
10718
10719 fi
10720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10721 $as_echo "$am_cv_func_iconv" >&6; }
10722 if test "$am_cv_func_iconv" = yes; then
10723
10724 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10725
10726 fi
10727 if test "$am_cv_lib_iconv" = yes; then
10728
10729 for element in $INCICONV; do
10730 haveit=
10731 for x in $CPPFLAGS; do
10732
10733 acl_save_prefix="$prefix"
10734 prefix="$acl_final_prefix"
10735 acl_save_exec_prefix="$exec_prefix"
10736 exec_prefix="$acl_final_exec_prefix"
10737 eval x=\"$x\"
10738 exec_prefix="$acl_save_exec_prefix"
10739 prefix="$acl_save_prefix"
10740
10741 if test "X$x" = "X$element"; then
10742 haveit=yes
10743 break
10744 fi
10745 done
10746 if test -z "$haveit"; then
10747 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10748 fi
10749 done
10750
10751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10752 $as_echo_n "checking how to link with libiconv... " >&6; }
10753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10754 $as_echo "$LIBICONV" >&6; }
10755 else
10756 LIBICONV=
10757 LTLIBICONV=
10758 fi
10759
10760
10761
10762 if test "$am_cv_func_iconv" = yes; then
10763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10764 $as_echo_n "checking for iconv declaration... " >&6; }
10765 if test "${am_cv_proto_iconv+set}" = set; then :
10766 $as_echo_n "(cached) " >&6
10767 else
10768
10769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10770 /* end confdefs.h. */
10771
10772 #include <stdlib.h>
10773 #include <iconv.h>
10774 extern
10775 #ifdef __cplusplus
10776 "C"
10777 #endif
10778 #if defined(__STDC__) || defined(__cplusplus)
10779 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10780 #else
10781 size_t iconv();
10782 #endif
10783
10784 int
10785 main ()
10786 {
10787
10788 ;
10789 return 0;
10790 }
10791 _ACEOF
10792 if ac_fn_cxx_try_compile "$LINENO"; then :
10793 am_cv_proto_iconv_arg1=""
10794 else
10795 am_cv_proto_iconv_arg1="const"
10796 fi
10797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10798 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);"
10799 fi
10800
10801 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10803 }$am_cv_proto_iconv" >&5
10804 $as_echo "${ac_t:-
10805 }$am_cv_proto_iconv" >&6; }
10806
10807 cat >>confdefs.h <<_ACEOF
10808 #define ICONV_CONST $am_cv_proto_iconv_arg1
10809 _ACEOF
10810
10811 fi
10812
10813
10814 # Until we have in-tree GNU iconv:
10815 LIBICONV_DEP=
10816 if test -f "$LTLIBICONV"; then
10817 LIBICONV_DEP=$LTLIBICONV
10818 fi
10819
10820
10821
10822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10823 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10824 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
10825 $as_echo_n "(cached) " >&6
10826 else
10827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10828 /* end confdefs.h. */
10829 #include <locale.h>
10830 int
10831 main ()
10832 {
10833 return LC_MESSAGES
10834 ;
10835 return 0;
10836 }
10837 _ACEOF
10838 if ac_fn_cxx_try_link "$LINENO"; then :
10839 am_cv_val_LC_MESSAGES=yes
10840 else
10841 am_cv_val_LC_MESSAGES=no
10842 fi
10843 rm -f core conftest.err conftest.$ac_objext \
10844 conftest$ac_exeext conftest.$ac_ext
10845 fi
10846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10847 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10848 if test $am_cv_val_LC_MESSAGES = yes; then
10849
10850 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10851
10852 fi
10853
10854
10855
10856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10857 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10858 if test "${am_cv_langinfo_codeset+set}" = set; then :
10859 $as_echo_n "(cached) " >&6
10860 else
10861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10862 /* end confdefs.h. */
10863 #include <langinfo.h>
10864 int
10865 main ()
10866 {
10867 char* cs = nl_langinfo(CODESET);
10868 ;
10869 return 0;
10870 }
10871 _ACEOF
10872 if ac_fn_cxx_try_link "$LINENO"; then :
10873 am_cv_langinfo_codeset=yes
10874 else
10875 am_cv_langinfo_codeset=no
10876 fi
10877 rm -f core conftest.err conftest.$ac_objext \
10878 conftest$ac_exeext conftest.$ac_ext
10879
10880 fi
10881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10882 $as_echo "$am_cv_langinfo_codeset" >&6; }
10883 if test $am_cv_langinfo_codeset = yes; then
10884
10885 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10886
10887 fi
10888
10889
10890 # We will need to find libiberty.h and ansidecl.h
10891 saved_CFLAGS="$CFLAGS"
10892 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10893 saved_CXXFLAGS="$CXXFLAGS"
10894 CXXFLAGS="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10895
10896 # gcc_AC_CHECK_DECLS doesn't support overloaded functions, so use the
10897 # normal autoconf function for these. But force definition of
10898 # HAVE_DECL_BASENAME like gcc_AC_CHECK_DECLS does, to suppress the bizarre
10899 # basename handling in libiberty.h.
10900 ac_fn_cxx_check_decl "$LINENO" "basename(const char*)" "ac_cv_have_decl_basename_const_charp_" "
10901 #undef HAVE_DECL_BASENAME
10902 #define HAVE_DECL_BASENAME 1
10903 #include \"ansidecl.h\"
10904 #include \"system.h\"
10905 "
10906 if test "x$ac_cv_have_decl_basename_const_charp_" = x""yes; then :
10907 ac_have_decl=1
10908 else
10909 ac_have_decl=0
10910 fi
10911
10912 cat >>confdefs.h <<_ACEOF
10913 #define HAVE_DECL_BASENAME $ac_have_decl
10914 _ACEOF
10915 ac_fn_cxx_check_decl "$LINENO" "strstr(const char*,const char*)" "ac_cv_have_decl_strstr_const_charp_const_charp_" "
10916 #undef HAVE_DECL_BASENAME
10917 #define HAVE_DECL_BASENAME 1
10918 #include \"ansidecl.h\"
10919 #include \"system.h\"
10920 "
10921 if test "x$ac_cv_have_decl_strstr_const_charp_const_charp_" = x""yes; then :
10922 ac_have_decl=1
10923 else
10924 ac_have_decl=0
10925 fi
10926
10927 cat >>confdefs.h <<_ACEOF
10928 #define HAVE_DECL_STRSTR $ac_have_decl
10929 _ACEOF
10930
10931
10932 for ac_func in getenv atol atoll asprintf sbrk abort atof getcwd getwd \
10933 madvise stpcpy strnlen strsignal strverscmp \
10934 strtol strtoul strtoll strtoull setenv unsetenv \
10935 errno snprintf vsnprintf vasprintf malloc realloc calloc \
10936 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
10937 do
10938 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10940 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10941 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10942 $as_echo_n "(cached) " >&6
10943 else
10944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10945 /* end confdefs.h. */
10946 #undef $ac_tr_decl
10947 #define $ac_tr_decl 1
10948
10949 #include "ansidecl.h"
10950 #include "system.h"
10951
10952 int
10953 main ()
10954 {
10955 #ifndef $ac_func
10956 char *(*pfn) = (char *(*)) $ac_func ;
10957 #endif
10958 ;
10959 return 0;
10960 }
10961 _ACEOF
10962 if ac_fn_cxx_try_compile "$LINENO"; then :
10963 eval "gcc_cv_have_decl_$ac_func=yes"
10964 else
10965 eval "gcc_cv_have_decl_$ac_func=no"
10966 fi
10967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10968 fi
10969
10970 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10972 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10973 #define $ac_tr_decl 1
10974 _ACEOF
10975
10976 else
10977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10978 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10979 #define $ac_tr_decl 0
10980 _ACEOF
10981
10982 fi
10983
10984 done
10985
10986
10987 for ac_func in getrlimit setrlimit getrusage
10988 do
10989 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10991 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10992 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10993 $as_echo_n "(cached) " >&6
10994 else
10995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10996 /* end confdefs.h. */
10997 #undef $ac_tr_decl
10998 #define $ac_tr_decl 1
10999
11000 #include "ansidecl.h"
11001 #include "system.h"
11002 #ifdef HAVE_SYS_RESOURCE_H
11003 #include <sys/resource.h>
11004 #endif
11005
11006
11007 int
11008 main ()
11009 {
11010 #ifndef $ac_func
11011 char *(*pfn) = (char *(*)) $ac_func ;
11012 #endif
11013 ;
11014 return 0;
11015 }
11016 _ACEOF
11017 if ac_fn_cxx_try_compile "$LINENO"; then :
11018 eval "gcc_cv_have_decl_$ac_func=yes"
11019 else
11020 eval "gcc_cv_have_decl_$ac_func=no"
11021 fi
11022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11023 fi
11024
11025 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11027 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11028 #define $ac_tr_decl 1
11029 _ACEOF
11030
11031 else
11032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11033 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11034 #define $ac_tr_decl 0
11035 _ACEOF
11036
11037 fi
11038
11039 done
11040
11041
11042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11043 /* end confdefs.h. */
11044
11045 #include "ansidecl.h"
11046 #include "system.h"
11047 #ifdef HAVE_SYS_RESOURCE_H
11048 #include <sys/resource.h>
11049 #endif
11050
11051 int
11052 main ()
11053 {
11054 rlim_t l = 0;
11055 ;
11056 return 0;
11057 }
11058 _ACEOF
11059 if ac_fn_cxx_try_compile "$LINENO"; then :
11060
11061 else
11062
11063 $as_echo "#define rlim_t long" >>confdefs.h
11064
11065 fi
11066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11067
11068 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
11069 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
11070 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
11071 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
11072 for ac_func in ldgetname
11073 do
11074 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11076 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11077 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11078 $as_echo_n "(cached) " >&6
11079 else
11080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11081 /* end confdefs.h. */
11082 #undef $ac_tr_decl
11083 #define $ac_tr_decl 1
11084
11085 #include "ansidecl.h"
11086 #include "system.h"
11087 #ifdef HAVE_LDFCN_H
11088 #undef FREAD
11089 #undef FWRITE
11090 #include <ldfcn.h>
11091 #endif
11092
11093
11094 int
11095 main ()
11096 {
11097 #ifndef $ac_func
11098 char *(*pfn) = (char *(*)) $ac_func ;
11099 #endif
11100 ;
11101 return 0;
11102 }
11103 _ACEOF
11104 if ac_fn_cxx_try_compile "$LINENO"; then :
11105 eval "gcc_cv_have_decl_$ac_func=yes"
11106 else
11107 eval "gcc_cv_have_decl_$ac_func=no"
11108 fi
11109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11110 fi
11111
11112 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11114 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11115 #define $ac_tr_decl 1
11116 _ACEOF
11117
11118 else
11119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11120 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11121 #define $ac_tr_decl 0
11122 _ACEOF
11123
11124 fi
11125
11126 done
11127
11128
11129 for ac_func in times
11130 do
11131 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11133 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11134 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11135 $as_echo_n "(cached) " >&6
11136 else
11137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11138 /* end confdefs.h. */
11139 #undef $ac_tr_decl
11140 #define $ac_tr_decl 1
11141
11142 #include "ansidecl.h"
11143 #include "system.h"
11144 #ifdef HAVE_SYS_TIMES_H
11145 #include <sys/times.h>
11146 #endif
11147
11148
11149 int
11150 main ()
11151 {
11152 #ifndef $ac_func
11153 char *(*pfn) = (char *(*)) $ac_func ;
11154 #endif
11155 ;
11156 return 0;
11157 }
11158 _ACEOF
11159 if ac_fn_cxx_try_compile "$LINENO"; then :
11160 eval "gcc_cv_have_decl_$ac_func=yes"
11161 else
11162 eval "gcc_cv_have_decl_$ac_func=no"
11163 fi
11164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11165 fi
11166
11167 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11169 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11170 #define $ac_tr_decl 1
11171 _ACEOF
11172
11173 else
11174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11175 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11176 #define $ac_tr_decl 0
11177 _ACEOF
11178
11179 fi
11180
11181 done
11182
11183
11184 for ac_func in sigaltstack
11185 do
11186 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11188 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11189 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11190 $as_echo_n "(cached) " >&6
11191 else
11192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11193 /* end confdefs.h. */
11194 #undef $ac_tr_decl
11195 #define $ac_tr_decl 1
11196
11197 #include "ansidecl.h"
11198 #include "system.h"
11199 #include <signal.h>
11200
11201
11202 int
11203 main ()
11204 {
11205 #ifndef $ac_func
11206 char *(*pfn) = (char *(*)) $ac_func ;
11207 #endif
11208 ;
11209 return 0;
11210 }
11211 _ACEOF
11212 if ac_fn_cxx_try_compile "$LINENO"; then :
11213 eval "gcc_cv_have_decl_$ac_func=yes"
11214 else
11215 eval "gcc_cv_have_decl_$ac_func=no"
11216 fi
11217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11218 fi
11219
11220 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11222 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11223 #define $ac_tr_decl 1
11224 _ACEOF
11225
11226 else
11227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11228 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11229 #define $ac_tr_decl 0
11230 _ACEOF
11231
11232 fi
11233
11234 done
11235
11236
11237 # More time-related stuff.
11238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
11239 $as_echo_n "checking for struct tms... " >&6; }
11240 if test "${ac_cv_struct_tms+set}" = set; then :
11241 $as_echo_n "(cached) " >&6
11242 else
11243
11244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11245 /* end confdefs.h. */
11246
11247 #include "ansidecl.h"
11248 #include "system.h"
11249 #ifdef HAVE_SYS_TIMES_H
11250 #include <sys/times.h>
11251 #endif
11252
11253 int
11254 main ()
11255 {
11256 struct tms tms;
11257 ;
11258 return 0;
11259 }
11260 _ACEOF
11261 if ac_fn_cxx_try_compile "$LINENO"; then :
11262 ac_cv_struct_tms=yes
11263 else
11264 ac_cv_struct_tms=no
11265 fi
11266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11267 fi
11268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
11269 $as_echo "$ac_cv_struct_tms" >&6; }
11270 if test $ac_cv_struct_tms = yes; then
11271
11272 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
11273
11274 fi
11275
11276 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
11277 # revisit after autoconf 2.50.
11278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
11279 $as_echo_n "checking for clock_t... " >&6; }
11280 if test "${gcc_cv_type_clock_t+set}" = set; then :
11281 $as_echo_n "(cached) " >&6
11282 else
11283
11284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11285 /* end confdefs.h. */
11286
11287 #include "ansidecl.h"
11288 #include "system.h"
11289
11290 int
11291 main ()
11292 {
11293 clock_t x;
11294 ;
11295 return 0;
11296 }
11297 _ACEOF
11298 if ac_fn_cxx_try_compile "$LINENO"; then :
11299 gcc_cv_type_clock_t=yes
11300 else
11301 gcc_cv_type_clock_t=no
11302 fi
11303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11304 fi
11305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
11306 $as_echo "$gcc_cv_type_clock_t" >&6; }
11307 if test $gcc_cv_type_clock_t = yes; then
11308
11309 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
11310
11311 fi
11312
11313 # Check if F_SETLKW is supported by fcntl.
11314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
11315 $as_echo_n "checking for F_SETLKW... " >&6; }
11316 if test "${ac_cv_f_setlkw+set}" = set; then :
11317 $as_echo_n "(cached) " >&6
11318 else
11319
11320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11321 /* end confdefs.h. */
11322
11323 #include <fcntl.h>
11324 int
11325 main ()
11326 {
11327
11328 struct flock fl;
11329 fl.l_whence = 0;
11330 fl.l_start = 0;
11331 fl.l_len = 0;
11332 fl.l_pid = 0;
11333 return fcntl (1, F_SETLKW, &fl);
11334 ;
11335 return 0;
11336 }
11337 _ACEOF
11338 if ac_fn_cxx_try_compile "$LINENO"; then :
11339 ac_cv_f_setlkw=yes
11340 else
11341 ac_cv_f_setlkw=no
11342 fi
11343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11344 fi
11345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
11346 $as_echo "$ac_cv_f_setlkw" >&6; }
11347 if test $ac_cv_f_setlkw = yes; then
11348
11349 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
11350
11351 fi
11352
11353 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
11354 CFLAGS="$saved_CFLAGS"
11355 CXXFLAGS="$saved_CXXFLAGS"
11356
11357 # mkdir takes a single argument on some systems.
11358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
11359 $as_echo_n "checking if mkdir takes one argument... " >&6; }
11360 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
11361 $as_echo_n "(cached) " >&6
11362 else
11363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11364 /* end confdefs.h. */
11365
11366 #include <sys/types.h>
11367 #ifdef HAVE_SYS_STAT_H
11368 # include <sys/stat.h>
11369 #endif
11370 #ifdef HAVE_UNISTD_H
11371 # include <unistd.h>
11372 #endif
11373 #ifdef HAVE_DIRECT_H
11374 # include <direct.h>
11375 #endif
11376 int
11377 main ()
11378 {
11379 mkdir ("foo", 0);
11380 ;
11381 return 0;
11382 }
11383 _ACEOF
11384 if ac_fn_cxx_try_compile "$LINENO"; then :
11385 gcc_cv_mkdir_takes_one_arg=no
11386 else
11387 gcc_cv_mkdir_takes_one_arg=yes
11388 fi
11389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11390 fi
11391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
11392 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
11393 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
11394
11395 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
11396
11397 fi
11398
11399
11400 # File extensions
11401 manext='.1'
11402 objext='.o'
11403
11404
11405
11406 # With Setjmp/Longjmp based exception handling.
11407 # Check whether --enable-sjlj-exceptions was given.
11408 if test "${enable_sjlj_exceptions+set}" = set; then :
11409 enableval=$enable_sjlj_exceptions; case $target in
11410 *-*-hpux10*)
11411 if test $enableval != yes; then
11412 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
11413 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
11414 enableval=yes
11415 fi
11416 ;;
11417 esac
11418 force_sjlj_exceptions=yes
11419 else
11420 case $target in
11421 *-*-hpux10*)
11422 force_sjlj_exceptions=yes
11423 enableval=yes
11424 ;;
11425 lm32*-*-*)
11426 force_sjlj_exceptions=yes
11427 enableval=yes
11428 ;;
11429 *)
11430 force_sjlj_exceptions=no
11431 ;;
11432 esac
11433 fi
11434
11435 if test $force_sjlj_exceptions = yes; then
11436 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
11437
11438 cat >>confdefs.h <<_ACEOF
11439 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
11440 _ACEOF
11441
11442 fi
11443
11444 # --------------------------------------------------------
11445 # Build, host, and target specific configuration fragments
11446 # --------------------------------------------------------
11447
11448 # Collect build-machine-specific information.
11449 . ${srcdir}/config.build
11450
11451 # Collect host-machine-specific information.
11452 . ${srcdir}/config.host
11453
11454 target_gtfiles=
11455
11456 # Collect target-machine-specific information.
11457 . ${srcdir}/config.gcc
11458
11459 extra_objs="${host_extra_objs} ${extra_objs}"
11460 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
11461
11462 # Default the target-machine variables that were not explicitly set.
11463 if test x"$tm_file" = x
11464 then tm_file=$cpu_type/$cpu_type.h; fi
11465
11466 if test x"$extra_headers" = x
11467 then extra_headers=; fi
11468
11469 if test x$md_file = x
11470 then md_file=$cpu_type/$cpu_type.md; fi
11471
11472 if test x$out_file = x
11473 then out_file=$cpu_type/$cpu_type.c; fi
11474
11475 if test x"$tmake_file" = x
11476 then tmake_file=$cpu_type/t-$cpu_type
11477 fi
11478
11479 # Support --enable-initfini-array.
11480 if test x$enable_initfini_array != xno; then
11481 tm_file="${tm_file} initfini-array.h"
11482 fi
11483
11484 if test x"$dwarf2" = xyes
11485 then tm_file="$tm_file tm-dwarf2.h"
11486 fi
11487
11488 # Say what files are being used for the output code and MD file.
11489 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11490 echo "Using \`$srcdir/config/$md_file' as machine description file."
11491
11492 # If any of the xm_file variables contain nonexistent files, warn
11493 # about them and drop them.
11494
11495 bx=
11496 for x in $build_xm_file; do
11497 if test -f $srcdir/config/$x
11498 then bx="$bx $x"
11499 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11500 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11501 fi
11502 done
11503 build_xm_file="$bx"
11504
11505 hx=
11506 for x in $host_xm_file; do
11507 if test -f $srcdir/config/$x
11508 then hx="$hx $x"
11509 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11510 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11511 fi
11512 done
11513 host_xm_file="$hx"
11514
11515 tx=
11516 for x in $xm_file; do
11517 if test -f $srcdir/config/$x
11518 then tx="$tx $x"
11519 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11520 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11521 fi
11522 done
11523 xm_file="$tx"
11524
11525 count=a
11526 for f in $tm_file; do
11527 count=${count}x
11528 done
11529 if test $count = ax; then
11530 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11531 else
11532 echo "Using the following target machine macro files:"
11533 for f in $tm_file; do
11534 echo " $srcdir/config/$f"
11535 done
11536 fi
11537
11538 if test x$use_long_long_for_widest_fast_int = xyes; then
11539
11540 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
11541
11542 fi
11543
11544 gnu_ld_bool=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
11545
11546 cat >>confdefs.h <<_ACEOF
11547 #define HAVE_GNU_LD $gnu_ld_bool
11548 _ACEOF
11549
11550
11551 gnu_as_bool=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
11552
11553 cat >>confdefs.h <<_ACEOF
11554 #define HAVE_GNU_AS $gnu_as_bool
11555 _ACEOF
11556
11557
11558 count=a
11559 for f in $host_xm_file; do
11560 count=${count}x
11561 done
11562 if test $count = a; then
11563 :
11564 elif test $count = ax; then
11565 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11566 else
11567 echo "Using the following host machine macro files:"
11568 for f in $host_xm_file; do
11569 echo " $srcdir/config/$f"
11570 done
11571 fi
11572 echo "Using ${out_host_hook_obj} for host machine hooks."
11573
11574 if test "$host_xm_file" != "$build_xm_file"; then
11575 count=a
11576 for f in $build_xm_file; do
11577 count=${count}x
11578 done
11579 if test $count = a; then
11580 :
11581 elif test $count = ax; then
11582 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11583 else
11584 echo "Using the following build machine macro files:"
11585 for f in $build_xm_file; do
11586 echo " $srcdir/config/$f"
11587 done
11588 fi
11589 fi
11590
11591 if test -n "$configured_native_system_header_dir"; then
11592 native_system_header_dir=$configured_native_system_header_dir
11593 fi
11594 NATIVE_SYSTEM_HEADER_DIR="$native_system_header_dir"
11595
11596
11597 case ${host} in
11598 powerpc*-*-darwin*)
11599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
11600 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
11601 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
11602 $as_echo_n "(cached) " >&6
11603 else
11604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11605 /* end confdefs.h. */
11606
11607 #include <sys/cdefs.h>
11608 #include <sys/signal.h>
11609 #include <ucontext.h>
11610 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
11611
11612 _ACEOF
11613 if ac_fn_cxx_try_compile "$LINENO"; then :
11614 gcc_cv_mcontext_underscores=no
11615 else
11616 gcc_cv_mcontext_underscores=yes
11617 fi
11618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11619 fi
11620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
11621 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
11622 if test $gcc_cv_mcontext_underscores = yes; then
11623
11624 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
11625
11626 fi
11627 ;;
11628 esac
11629
11630 # ---------
11631 # Threading
11632 # ---------
11633
11634 # Check if a valid thread package
11635 case ${enable_threads} in
11636 "" | no)
11637 # No threads
11638 target_thread_file='single'
11639 ;;
11640 yes)
11641 # default
11642 target_thread_file='single'
11643 ;;
11644 aix | dce | lynx | mipssde | posix | rtems | \
11645 single | tpf | vxworks | win32)
11646 target_thread_file=${enable_threads}
11647 ;;
11648 *)
11649 echo "${enable_threads} is an unknown thread package" 1>&2
11650 exit 1
11651 ;;
11652 esac
11653
11654 if test x${thread_file} = x; then
11655 # No thread file set by target-specific clauses in config.gcc,
11656 # so use file chosen by default logic above
11657 thread_file=${target_thread_file}
11658 fi
11659
11660 # --------
11661 # UNSORTED
11662 # --------
11663
11664 use_cxa_atexit=no
11665 if test x$enable___cxa_atexit = xyes || \
11666 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
11667 if test x$host = x$target; then
11668 case $host in
11669 # mingw32 doesn't have __cxa_atexit but uses atexit registration
11670 # keyed to flag_use_cxa_atexit
11671 *-*-mingw32*)
11672 use_cxa_atexit=yes
11673 ;;
11674 powerpc-ibm-aix*)
11675 use_cxa_atexit=yes
11676 ;;
11677 *)
11678 ac_fn_cxx_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
11679 if test "x$ac_cv_func___cxa_atexit" = x""yes; then :
11680 use_cxa_atexit=yes
11681 else
11682 echo "__cxa_atexit can't be enabled on this target"
11683 fi
11684
11685 ;;
11686 esac
11687 else
11688 # We can't check for __cxa_atexit when building a cross, so assume
11689 # it is available
11690 use_cxa_atexit=yes
11691 fi
11692 if test x$use_cxa_atexit = xyes; then
11693
11694 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
11695
11696 fi
11697 fi
11698
11699 # Look for a file containing extra machine modes.
11700 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
11701 extra_modes_file='$(srcdir)'/config/${extra_modes}
11702
11703
11704 cat >>confdefs.h <<_ACEOF
11705 #define EXTRA_MODES_FILE "config/$extra_modes"
11706 _ACEOF
11707
11708 fi
11709
11710 # Convert extra_options into a form suitable for Makefile use.
11711 extra_opt_files=
11712 all_opt_files=
11713 for f in $extra_options; do
11714 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
11715 all_opt_files="$all_opt_files $srcdir/config/$f"
11716 done
11717
11718
11719 # auto-host.h is the file containing items generated by autoconf and is
11720 # the first file included by config.h.
11721 # If host=build, it is correct to have bconfig include auto-host.h
11722 # as well. If host!=build, we are in error and need to do more
11723 # work to find out the build config parameters.
11724 if test x$host = x$build
11725 then
11726 build_auto=auto-host.h
11727 else
11728 # We create a subdir, then run autoconf in the subdir.
11729 # To prevent recursion we set host and build for the new
11730 # invocation of configure to the build for this invocation
11731 # of configure.
11732 tempdir=build.$$
11733 rm -rf $tempdir
11734 mkdir $tempdir
11735 cd $tempdir
11736 case ${srcdir} in
11737 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
11738 *) realsrcdir=../${srcdir};;
11739 esac
11740 # Clearing GMPINC is necessary to prevent host headers being
11741 # used by the build compiler. Defining GENERATOR_FILE stops
11742 # system.h from including gmp.h.
11743 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
11744 CXX="${CXX_FOR_BUILD}" CXXFLAGS="${CXXFLAGS_FOR_BUILD}" \
11745 LD="${LD_FOR_BUILD}" LDFLAGS="${LDFLAGS_FOR_BUILD}" \
11746 GMPINC="" CPPFLAGS="${CPPFLAGS} -DGENERATOR_FILE" \
11747 ${realsrcdir}/configure \
11748 --enable-languages=${enable_languages-all} \
11749 --target=$target_alias --host=$build_alias --build=$build_alias
11750
11751 # We just finished tests for the build machine, so rename
11752 # the file auto-build.h in the gcc directory.
11753 mv auto-host.h ../auto-build.h
11754 cd ..
11755 rm -rf $tempdir
11756 build_auto=auto-build.h
11757 fi
11758
11759
11760 tm_file="${tm_file} defaults.h"
11761 tm_p_file="${tm_p_file} tm-preds.h"
11762 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
11763 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
11764 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
11765 # put this back in temporarily.
11766 xm_file="auto-host.h ansidecl.h ${xm_file}"
11767
11768 # --------
11769 # UNSORTED
11770 # --------
11771
11772 # Compile in configure arguments.
11773 if test -f configargs.h ; then
11774 # Being re-configured.
11775 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
11776 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
11777 else
11778 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
11779 fi
11780
11781 # Double all backslashes and backslash all quotes to turn
11782 # gcc_config_arguments into a C string.
11783 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
11784 $gcc_config_arguments
11785 EOF
11786 gcc_config_arguments_str=`cat conftest.out`
11787 rm -f conftest.out
11788
11789 cat > configargs.h <<EOF
11790 /* Generated automatically. */
11791 static const char configuration_arguments[] = "$gcc_config_arguments_str";
11792 static const char thread_model[] = "$thread_file";
11793
11794 static const struct {
11795 const char *name, *value;
11796 } configure_default_options[] = $configure_default_options;
11797 EOF
11798
11799 gcc_BASEVER=`cat $srcdir/BASE-VER`
11800 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
11801 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
11802 if test -f $srcdir/REVISION ; then
11803 gcc_REVISION=`cat $srcdir/REVISION`
11804 else
11805 gcc_REVISION=""
11806 fi
11807 cat > plugin-version.h <<EOF
11808 #include "configargs.h"
11809
11810 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
11811 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
11812 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
11813 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
11814
11815 static char basever[] = "$gcc_BASEVER";
11816 static char datestamp[] = "$gcc_DATESTAMP";
11817 static char devphase[] = "$gcc_DEVPHASE";
11818 static char revision[] = "$gcc_REVISION";
11819
11820 /* FIXME plugins: We should make the version information more precise.
11821 One way to do is to add a checksum. */
11822
11823 static struct plugin_gcc_version gcc_version = {basever, datestamp,
11824 devphase, revision,
11825 configuration_arguments};
11826 EOF
11827
11828 # Internationalization
11829 # If we haven't got the data from the intl directory,
11830 # assume NLS is disabled.
11831 USE_NLS=no
11832 LIBINTL=
11833 LIBINTL_DEP=
11834 INCINTL=
11835 XGETTEXT=
11836 GMSGFMT=
11837 POSUB=
11838
11839 if test -f ../intl/config.intl; then
11840 . ../intl/config.intl
11841 fi
11842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11843 $as_echo_n "checking whether NLS is requested... " >&6; }
11844 if test x"$USE_NLS" != xyes; then
11845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11846 $as_echo "no" >&6; }
11847 else
11848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11849 $as_echo "yes" >&6; }
11850
11851 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11852
11853
11854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11855 $as_echo_n "checking for catalogs to be installed... " >&6; }
11856 # Look for .po and .gmo files in the source directory.
11857 CATALOGS=
11858 XLINGUAS=
11859 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
11860 # If there aren't any .gmo files the shell will give us the
11861 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11862 # weeded out.
11863 case "$cat" in *\**)
11864 continue;;
11865 esac
11866 # The quadruple backslash is collapsed to a double backslash
11867 # by the backticks, then collapsed again by the double quotes,
11868 # leaving us with one backslash in the sed expression (right
11869 # before the dot that mustn't act as a wildcard).
11870 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11871 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
11872 # The user is allowed to set LINGUAS to a list of languages to
11873 # install catalogs for. If it's empty that means "all of them."
11874 if test "x$LINGUAS" = x; then
11875 CATALOGS="$CATALOGS $cat"
11876 XLINGUAS="$XLINGUAS $lang"
11877 else
11878 case "$LINGUAS" in *$lang*)
11879 CATALOGS="$CATALOGS $cat"
11880 XLINGUAS="$XLINGUAS $lang"
11881 ;;
11882 esac
11883 fi
11884 done
11885 LINGUAS="$XLINGUAS"
11886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11887 $as_echo "$LINGUAS" >&6; }
11888
11889
11890 DATADIRNAME=share
11891
11892 INSTOBJEXT=.mo
11893
11894 GENCAT=gencat
11895
11896 CATOBJEXT=.gmo
11897
11898 fi
11899
11900 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
11901 # -liconv on the link line twice.
11902 case "$LIBINTL" in *$LIBICONV*)
11903 LIBICONV= ;;
11904 esac
11905
11906 # Check whether --enable-secureplt was given.
11907 if test "${enable_secureplt+set}" = set; then :
11908 enableval=$enable_secureplt;
11909 fi
11910
11911
11912 # Check whether --enable-leading-mingw64-underscores was given.
11913 if test "${enable_leading_mingw64_underscores+set}" = set; then :
11914 enableval=$enable_leading_mingw64_underscores;
11915 fi
11916
11917 if test x"$enable_leading_mingw64_underscores" = xyes ; then :
11918
11919 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
11920
11921 fi
11922
11923 # Check whether --enable-cld was given.
11924 if test "${enable_cld+set}" = set; then :
11925 enableval=$enable_cld;
11926 else
11927 enable_cld=no
11928 fi
11929
11930
11931 # Check whether --enable-frame-pointer was given.
11932 if test "${enable_frame_pointer+set}" = set; then :
11933 enableval=$enable_frame_pointer;
11934 else
11935
11936 case $target_os in
11937 linux* | darwin[8912]*)
11938 # Enable -fomit-frame-pointer by default for Linux and Darwin with
11939 # DWARF2.
11940 enable_frame_pointer=no
11941 ;;
11942 *)
11943 enable_frame_pointer=yes
11944 ;;
11945 esac
11946
11947 fi
11948
11949
11950 # Windows32 Registry support for specifying GCC installation paths.
11951 # Check whether --enable-win32-registry was given.
11952 if test "${enable_win32_registry+set}" = set; then :
11953 enableval=$enable_win32_registry;
11954 fi
11955
11956
11957 case $host_os in
11958 win32 | pe | cygwin* | mingw32*)
11959 if test "x$enable_win32_registry" != xno; then
11960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
11961 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
11962 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11963 $as_echo_n "(cached) " >&6
11964 else
11965 ac_func_search_save_LIBS=$LIBS
11966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11967 /* end confdefs.h. */
11968
11969 /* Override any GCC internal prototype to avoid an error.
11970 Use char because int might match the return type of a GCC
11971 builtin and then its argument prototype would still apply. */
11972 #ifdef __cplusplus
11973 extern "C"
11974 #endif
11975 char RegOpenKeyExA ();
11976 int
11977 main ()
11978 {
11979 return RegOpenKeyExA ();
11980 ;
11981 return 0;
11982 }
11983 _ACEOF
11984 for ac_lib in '' advapi32; do
11985 if test -z "$ac_lib"; then
11986 ac_res="none required"
11987 else
11988 ac_res=-l$ac_lib
11989 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11990 fi
11991 if ac_fn_cxx_try_link "$LINENO"; then :
11992 ac_cv_search_RegOpenKeyExA=$ac_res
11993 fi
11994 rm -f core conftest.err conftest.$ac_objext \
11995 conftest$ac_exeext
11996 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11997 break
11998 fi
11999 done
12000 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
12001
12002 else
12003 ac_cv_search_RegOpenKeyExA=no
12004 fi
12005 rm conftest.$ac_ext
12006 LIBS=$ac_func_search_save_LIBS
12007 fi
12008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
12009 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
12010 ac_res=$ac_cv_search_RegOpenKeyExA
12011 if test "$ac_res" != no; then :
12012 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12013
12014 else
12015 enable_win32_registry=no
12016 fi
12017
12018 fi
12019
12020 if test "x$enable_win32_registry" != xno; then
12021
12022 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
12023
12024
12025 if test "x$enable_win32_registry" != xyes \
12026 && test "x$enable_win32_registry" != x; then
12027
12028 cat >>confdefs.h <<_ACEOF
12029 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
12030 _ACEOF
12031
12032 fi
12033 fi
12034 ;;
12035 esac
12036
12037 # Get an absolute path to the GCC top-level source directory
12038 holddir=`${PWDCMD-pwd}`
12039 cd $srcdir
12040 topdir=`${PWDCMD-pwd}`
12041 cd $holddir
12042
12043 # Conditionalize the makefile for this host machine.
12044 xmake_file=
12045 for f in ${host_xmake_file}
12046 do
12047 if test -f ${srcdir}/config/$f
12048 then
12049 xmake_file="${xmake_file} \$(srcdir)/config/$f"
12050 fi
12051 done
12052
12053 # Conditionalize the makefile for this target machine.
12054 tmake_file_=
12055 for f in ${tmake_file}
12056 do
12057 if test -f ${srcdir}/config/$f
12058 then
12059 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
12060 fi
12061 done
12062 tmake_file="${tmake_file_}"
12063
12064 out_object_file=`basename $out_file .c`.o
12065 common_out_object_file=`basename $common_out_file .c`.o
12066
12067 tm_file_list="options.h"
12068 tm_include_list="options.h insn-constants.h"
12069 for f in $tm_file; do
12070 case $f in
12071 ./* )
12072 f=`echo $f | sed 's/^..//'`
12073 tm_file_list="${tm_file_list} $f"
12074 tm_include_list="${tm_include_list} $f"
12075 ;;
12076 defaults.h )
12077 tm_file_list="${tm_file_list} \$(srcdir)/$f"
12078 tm_include_list="${tm_include_list} $f"
12079 ;;
12080 * )
12081 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
12082 tm_include_list="${tm_include_list} config/$f"
12083 ;;
12084 esac
12085 done
12086
12087 tm_p_file_list=
12088 tm_p_include_list=
12089 for f in $tm_p_file; do
12090 case $f in
12091 tm-preds.h )
12092 tm_p_file_list="${tm_p_file_list} $f"
12093 tm_p_include_list="${tm_p_include_list} $f"
12094 ;;
12095 * )
12096 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
12097 tm_p_include_list="${tm_p_include_list} config/$f"
12098 esac
12099 done
12100
12101 xm_file_list=
12102 xm_include_list=
12103 for f in $xm_file; do
12104 case $f in
12105 ansidecl.h )
12106 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
12107 xm_include_list="${xm_include_list} $f"
12108 ;;
12109 auto-host.h )
12110 xm_file_list="${xm_file_list} $f"
12111 xm_include_list="${xm_include_list} $f"
12112 ;;
12113 * )
12114 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
12115 xm_include_list="${xm_include_list} config/$f"
12116 ;;
12117 esac
12118 done
12119
12120 host_xm_file_list=
12121 host_xm_include_list=
12122 for f in $host_xm_file; do
12123 case $f in
12124 ansidecl.h )
12125 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
12126 host_xm_include_list="${host_xm_include_list} $f"
12127 ;;
12128 auto-host.h )
12129 host_xm_file_list="${host_xm_file_list} $f"
12130 host_xm_include_list="${host_xm_include_list} $f"
12131 ;;
12132 * )
12133 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
12134 host_xm_include_list="${host_xm_include_list} config/$f"
12135 ;;
12136 esac
12137 done
12138
12139 build_xm_file_list=
12140 for f in $build_xm_file; do
12141 case $f in
12142 ansidecl.h )
12143 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
12144 build_xm_include_list="${build_xm_include_list} $f"
12145 ;;
12146 auto-build.h | auto-host.h )
12147 build_xm_file_list="${build_xm_file_list} $f"
12148 build_xm_include_list="${build_xm_include_list} $f"
12149 ;;
12150 * )
12151 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
12152 build_xm_include_list="${build_xm_include_list} config/$f"
12153 ;;
12154 esac
12155 done
12156
12157 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
12158 # cross-compiler which does not use the native headers and libraries.
12159 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
12160 CROSS=
12161 ALL=all.internal
12162 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
12163
12164 if test "x$with_build_sysroot" != x; then
12165 build_system_header_dir=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
12166 else
12167 # This value is used, even on a native system, because
12168 # CROSS_SYSTEM_HEADER_DIR is just
12169 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
12170 build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
12171 fi
12172
12173 if test x$host != x$target
12174 then
12175 CROSS="-DCROSS_DIRECTORY_STRUCTURE"
12176 ALL=all.cross
12177 SYSTEM_HEADER_DIR=$build_system_header_dir
12178 case "$host","$target" in
12179 # Darwin crosses can use the host system's libraries and headers,
12180 # because of the fat library support. Of course, it must be the
12181 # same version of Darwin on both sides. Allow the user to
12182 # just say --target=foo-darwin without a version number to mean
12183 # "the version on this system".
12184 *-*-darwin*,*-*-darwin*)
12185 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
12186 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
12187 if test $hostos = $targetos -o $targetos = darwin ; then
12188 CROSS=
12189 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
12190 with_headers=yes
12191 fi
12192 ;;
12193
12194 i?86-*-*,x86_64-*-* \
12195 | powerpc*-*-*,powerpc64*-*-*)
12196 CROSS="$CROSS -DNATIVE_CROSS" ;;
12197 esac
12198
12199 case $target in
12200 *-*-mingw*)
12201 if test "x$with_headers" = x; then
12202 with_headers=yes
12203 fi
12204 ;;
12205 *)
12206 ;;
12207 esac
12208 elif test "x$TARGET_SYSTEM_ROOT" != x; then
12209 SYSTEM_HEADER_DIR=$build_system_header_dir
12210 fi
12211
12212 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
12213 if test "x$with_headers" != x; then
12214 target_header_dir=$with_headers
12215 elif test "x$with_sysroot" = x; then
12216 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-include"
12217 elif test "x$with_build_sysroot" != "x"; then
12218 target_header_dir="${with_build_sysroot}${native_system_header_dir}"
12219 elif test "x$with_sysroot" = xyes; then
12220 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
12221 else
12222 target_header_dir="${with_sysroot}${native_system_header_dir}"
12223 fi
12224 else
12225 target_header_dir=${native_system_header_dir}
12226 fi
12227
12228 # If this is a cross-compiler that does not
12229 # have its own set of headers then define
12230 # inhibit_libc
12231
12232 # If this is using newlib, without having the headers available now,
12233 # then define inhibit_libc in LIBGCC2_CFLAGS.
12234 # This prevents libgcc2 from containing any code which requires libc
12235 # support.
12236 : ${inhibit_libc=false}
12237 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
12238 test x$with_newlib = xyes ; } &&
12239 { test "x$with_headers" = xno || test ! -f "$target_header_dir/stdio.h"; } ; then
12240 inhibit_libc=true
12241 fi
12242
12243
12244 # When building gcc with a cross-compiler, we need to adjust things so
12245 # that the generator programs are still built with the native compiler.
12246 # Also, we cannot run fixincludes.
12247
12248 # These are the normal (build=host) settings:
12249 CC_FOR_BUILD='$(CC)'
12250 CXX_FOR_BUILD='$(CXX)'
12251 BUILD_CFLAGS='$(ALL_CFLAGS)'
12252 BUILD_CXXFLAGS='$(ALL_CXXFLAGS)'
12253 BUILD_LDFLAGS='$(LDFLAGS)'
12254 STMP_FIXINC=stmp-fixinc
12255
12256 # And these apply if build != host, or we are generating coverage data
12257 if test x$build != x$host || test "x$coverage_flags" != x
12258 then
12259 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
12260 BUILD_CXXFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CXXFLAGS_FOR_BUILD)'
12261 BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
12262 fi
12263
12264 # Expand extra_headers to include complete path.
12265 # This substitutes for lots of t-* files.
12266 extra_headers_list=
12267 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
12268 for file in ${extra_headers} ; do
12269 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
12270 done
12271
12272 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
12273 if test x"$use_gcc_tgmath" = xyes
12274 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
12275 fi
12276
12277 # Define collect2 in Makefile.
12278 case $host_can_use_collect2 in
12279 no) collect2= ;;
12280 *) collect2='collect2$(exeext)' ;;
12281 esac
12282
12283
12284 # Add a definition of USE_COLLECT2 if system wants one.
12285 case $use_collect2 in
12286 no) use_collect2= ;;
12287 "") ;;
12288 *)
12289 host_xm_defines="${host_xm_defines} USE_COLLECT2"
12290 xm_defines="${xm_defines} USE_COLLECT2"
12291 case $host_can_use_collect2 in
12292 no)
12293 as_fn_error "collect2 is required but cannot be built on this system" "$LINENO" 5
12294 ;;
12295 esac
12296 ;;
12297 esac
12298
12299
12300 cat >>confdefs.h <<_ACEOF
12301 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
12302 _ACEOF
12303
12304
12305 # ---------------------------
12306 # Assembler & linker features
12307 # ---------------------------
12308
12309 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
12310 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
12311 # However when ld-new is first executed from the build tree, libtool will
12312 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
12313 # to the build tree. While doing this we need to use the previous-stage
12314 # linker, or we have an infinite loop. The presence of a shell script as
12315 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
12316 # the gcc/collect-ld script. So we need to know how libtool works, or
12317 # exec-tool will fail.
12318
12319
12320 case `pwd` in
12321 *\ * | *\ *)
12322 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
12323 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
12324 esac
12325
12326
12327
12328 macro_version='2.2.7a'
12329 macro_revision='1.3134'
12330
12331
12332
12333
12334
12335
12336
12337
12338
12339
12340
12341
12342
12343 ltmain="$ac_aux_dir/ltmain.sh"
12344
12345 # Backslashify metacharacters that are still active within
12346 # double-quoted strings.
12347 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
12348
12349 # Same as above, but do not quote variable references.
12350 double_quote_subst='s/\(["`\\]\)/\\\1/g'
12351
12352 # Sed substitution to delay expansion of an escaped shell variable in a
12353 # double_quote_subst'ed string.
12354 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
12355
12356 # Sed substitution to delay expansion of an escaped single quote.
12357 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
12358
12359 # Sed substitution to avoid accidental globbing in evaled expressions
12360 no_glob_subst='s/\*/\\\*/g'
12361
12362 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12363 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
12364 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
12365
12366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
12367 $as_echo_n "checking how to print strings... " >&6; }
12368 # Test print first, because it will be a builtin if present.
12369 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
12370 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
12371 ECHO='print -r --'
12372 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
12373 ECHO='printf %s\n'
12374 else
12375 # Use this function as a fallback that always works.
12376 func_fallback_echo ()
12377 {
12378 eval 'cat <<_LTECHO_EOF
12379 $1
12380 _LTECHO_EOF'
12381 }
12382 ECHO='func_fallback_echo'
12383 fi
12384
12385 # func_echo_all arg...
12386 # Invoke $ECHO with all args, space-separated.
12387 func_echo_all ()
12388 {
12389 $ECHO ""
12390 }
12391
12392 case "$ECHO" in
12393 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
12394 $as_echo "printf" >&6; } ;;
12395 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
12396 $as_echo "print -r" >&6; } ;;
12397 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
12398 $as_echo "cat" >&6; } ;;
12399 esac
12400
12401
12402
12403
12404
12405
12406
12407
12408
12409
12410
12411
12412
12413
12414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12415 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12416 if test "${ac_cv_path_SED+set}" = set; then :
12417 $as_echo_n "(cached) " >&6
12418 else
12419 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12420 for ac_i in 1 2 3 4 5 6 7; do
12421 ac_script="$ac_script$as_nl$ac_script"
12422 done
12423 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12424 { ac_script=; unset ac_script;}
12425 if test -z "$SED"; then
12426 ac_path_SED_found=false
12427 # Loop through the user's path and test for each of PROGNAME-LIST
12428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12429 for as_dir in $PATH
12430 do
12431 IFS=$as_save_IFS
12432 test -z "$as_dir" && as_dir=.
12433 for ac_prog in sed gsed; do
12434 for ac_exec_ext in '' $ac_executable_extensions; do
12435 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
12436 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
12437 # Check for GNU ac_path_SED and select it if it is found.
12438 # Check for GNU $ac_path_SED
12439 case `"$ac_path_SED" --version 2>&1` in
12440 *GNU*)
12441 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
12442 *)
12443 ac_count=0
12444 $as_echo_n 0123456789 >"conftest.in"
12445 while :
12446 do
12447 cat "conftest.in" "conftest.in" >"conftest.tmp"
12448 mv "conftest.tmp" "conftest.in"
12449 cp "conftest.in" "conftest.nl"
12450 $as_echo '' >> "conftest.nl"
12451 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
12452 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12453 as_fn_arith $ac_count + 1 && ac_count=$as_val
12454 if test $ac_count -gt ${ac_path_SED_max-0}; then
12455 # Best one so far, save it but keep looking for a better one
12456 ac_cv_path_SED="$ac_path_SED"
12457 ac_path_SED_max=$ac_count
12458 fi
12459 # 10*(2^10) chars as input seems more than enough
12460 test $ac_count -gt 10 && break
12461 done
12462 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12463 esac
12464
12465 $ac_path_SED_found && break 3
12466 done
12467 done
12468 done
12469 IFS=$as_save_IFS
12470 if test -z "$ac_cv_path_SED"; then
12471 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
12472 fi
12473 else
12474 ac_cv_path_SED=$SED
12475 fi
12476
12477 fi
12478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12479 $as_echo "$ac_cv_path_SED" >&6; }
12480 SED="$ac_cv_path_SED"
12481 rm -f conftest.sed
12482
12483 test -z "$SED" && SED=sed
12484 Xsed="$SED -e 1s/^X//"
12485
12486
12487
12488
12489
12490
12491
12492
12493
12494
12495
12496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12497 $as_echo_n "checking for fgrep... " >&6; }
12498 if test "${ac_cv_path_FGREP+set}" = set; then :
12499 $as_echo_n "(cached) " >&6
12500 else
12501 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
12502 then ac_cv_path_FGREP="$GREP -F"
12503 else
12504 if test -z "$FGREP"; then
12505 ac_path_FGREP_found=false
12506 # Loop through the user's path and test for each of PROGNAME-LIST
12507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12508 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12509 do
12510 IFS=$as_save_IFS
12511 test -z "$as_dir" && as_dir=.
12512 for ac_prog in fgrep; do
12513 for ac_exec_ext in '' $ac_executable_extensions; do
12514 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
12515 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
12516 # Check for GNU ac_path_FGREP and select it if it is found.
12517 # Check for GNU $ac_path_FGREP
12518 case `"$ac_path_FGREP" --version 2>&1` in
12519 *GNU*)
12520 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
12521 *)
12522 ac_count=0
12523 $as_echo_n 0123456789 >"conftest.in"
12524 while :
12525 do
12526 cat "conftest.in" "conftest.in" >"conftest.tmp"
12527 mv "conftest.tmp" "conftest.in"
12528 cp "conftest.in" "conftest.nl"
12529 $as_echo 'FGREP' >> "conftest.nl"
12530 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
12531 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12532 as_fn_arith $ac_count + 1 && ac_count=$as_val
12533 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12534 # Best one so far, save it but keep looking for a better one
12535 ac_cv_path_FGREP="$ac_path_FGREP"
12536 ac_path_FGREP_max=$ac_count
12537 fi
12538 # 10*(2^10) chars as input seems more than enough
12539 test $ac_count -gt 10 && break
12540 done
12541 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12542 esac
12543
12544 $ac_path_FGREP_found && break 3
12545 done
12546 done
12547 done
12548 IFS=$as_save_IFS
12549 if test -z "$ac_cv_path_FGREP"; then
12550 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12551 fi
12552 else
12553 ac_cv_path_FGREP=$FGREP
12554 fi
12555
12556 fi
12557 fi
12558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12559 $as_echo "$ac_cv_path_FGREP" >&6; }
12560 FGREP="$ac_cv_path_FGREP"
12561
12562
12563 test -z "$GREP" && GREP=grep
12564
12565
12566
12567
12568
12569
12570
12571
12572
12573
12574
12575
12576
12577
12578
12579
12580
12581
12582
12583 # Check whether --with-gnu-ld was given.
12584 if test "${with_gnu_ld+set}" = set; then :
12585 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12586 else
12587 with_gnu_ld=no
12588 fi
12589
12590 ac_prog=ld
12591 if test "$GCC" = yes; then
12592 # Check if gcc -print-prog-name=ld gives a path.
12593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12594 $as_echo_n "checking for ld used by $CC... " >&6; }
12595 case $host in
12596 *-*-mingw*)
12597 # gcc leaves a trailing carriage return which upsets mingw
12598 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12599 *)
12600 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12601 esac
12602 case $ac_prog in
12603 # Accept absolute paths.
12604 [\\/]* | ?:[\\/]*)
12605 re_direlt='/[^/][^/]*/\.\./'
12606 # Canonicalize the pathname of ld
12607 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12608 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12609 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12610 done
12611 test -z "$LD" && LD="$ac_prog"
12612 ;;
12613 "")
12614 # If it fails, then pretend we aren't using GCC.
12615 ac_prog=ld
12616 ;;
12617 *)
12618 # If it is relative, then search for the first ld in PATH.
12619 with_gnu_ld=unknown
12620 ;;
12621 esac
12622 elif test "$with_gnu_ld" = yes; then
12623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12624 $as_echo_n "checking for GNU ld... " >&6; }
12625 else
12626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12627 $as_echo_n "checking for non-GNU ld... " >&6; }
12628 fi
12629 if test "${lt_cv_path_LD+set}" = set; then :
12630 $as_echo_n "(cached) " >&6
12631 else
12632 if test -z "$LD"; then
12633 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12634 for ac_dir in $PATH; do
12635 IFS="$lt_save_ifs"
12636 test -z "$ac_dir" && ac_dir=.
12637 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12638 lt_cv_path_LD="$ac_dir/$ac_prog"
12639 # Check to see if the program is GNU ld. I'd rather use --version,
12640 # but apparently some variants of GNU ld only accept -v.
12641 # Break only if it was the GNU/non-GNU ld that we prefer.
12642 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12643 *GNU* | *'with BFD'*)
12644 test "$with_gnu_ld" != no && break
12645 ;;
12646 *)
12647 test "$with_gnu_ld" != yes && break
12648 ;;
12649 esac
12650 fi
12651 done
12652 IFS="$lt_save_ifs"
12653 else
12654 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12655 fi
12656 fi
12657
12658 LD="$lt_cv_path_LD"
12659 if test -n "$LD"; then
12660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12661 $as_echo "$LD" >&6; }
12662 else
12663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12664 $as_echo "no" >&6; }
12665 fi
12666 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12668 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12669 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12670 $as_echo_n "(cached) " >&6
12671 else
12672 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12673 case `$LD -v 2>&1 </dev/null` in
12674 *GNU* | *'with BFD'*)
12675 lt_cv_prog_gnu_ld=yes
12676 ;;
12677 *)
12678 lt_cv_prog_gnu_ld=no
12679 ;;
12680 esac
12681 fi
12682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12683 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12684 with_gnu_ld=$lt_cv_prog_gnu_ld
12685
12686
12687
12688
12689
12690
12691
12692
12693
12694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12695 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12696 if test "${lt_cv_path_NM+set}" = set; then :
12697 $as_echo_n "(cached) " >&6
12698 else
12699 if test -n "$NM"; then
12700 # Let the user override the test.
12701 lt_cv_path_NM="$NM"
12702 else
12703 lt_nm_to_check="${ac_tool_prefix}nm"
12704 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12705 lt_nm_to_check="$lt_nm_to_check nm"
12706 fi
12707 for lt_tmp_nm in $lt_nm_to_check; do
12708 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12709 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
12710 IFS="$lt_save_ifs"
12711 test -z "$ac_dir" && ac_dir=.
12712 tmp_nm="$ac_dir/$lt_tmp_nm"
12713 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
12714 # Check to see if the nm accepts a BSD-compat flag.
12715 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12716 # nm: unknown option "B" ignored
12717 # Tru64's nm complains that /dev/null is an invalid object file
12718 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12719 */dev/null* | *'Invalid file or object type'*)
12720 lt_cv_path_NM="$tmp_nm -B"
12721 break
12722 ;;
12723 *)
12724 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12725 */dev/null*)
12726 lt_cv_path_NM="$tmp_nm -p"
12727 break
12728 ;;
12729 *)
12730 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12731 continue # so that we can try to find one that supports BSD flags
12732 ;;
12733 esac
12734 ;;
12735 esac
12736 fi
12737 done
12738 IFS="$lt_save_ifs"
12739 done
12740 : ${lt_cv_path_NM=no}
12741 fi
12742 fi
12743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
12744 $as_echo "$lt_cv_path_NM" >&6; }
12745 if test "$lt_cv_path_NM" != "no"; then
12746 NM="$lt_cv_path_NM"
12747 else
12748 # Didn't find any BSD compatible name lister, look for dumpbin.
12749 if test -n "$DUMPBIN"; then :
12750 # Let the user override the test.
12751 else
12752 if test -n "$ac_tool_prefix"; then
12753 for ac_prog in dumpbin "link -dump"
12754 do
12755 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12756 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12758 $as_echo_n "checking for $ac_word... " >&6; }
12759 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
12760 $as_echo_n "(cached) " >&6
12761 else
12762 if test -n "$DUMPBIN"; then
12763 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
12764 else
12765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12766 for as_dir in $PATH
12767 do
12768 IFS=$as_save_IFS
12769 test -z "$as_dir" && as_dir=.
12770 for ac_exec_ext in '' $ac_executable_extensions; do
12771 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12772 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
12773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12774 break 2
12775 fi
12776 done
12777 done
12778 IFS=$as_save_IFS
12779
12780 fi
12781 fi
12782 DUMPBIN=$ac_cv_prog_DUMPBIN
12783 if test -n "$DUMPBIN"; then
12784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12785 $as_echo "$DUMPBIN" >&6; }
12786 else
12787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12788 $as_echo "no" >&6; }
12789 fi
12790
12791
12792 test -n "$DUMPBIN" && break
12793 done
12794 fi
12795 if test -z "$DUMPBIN"; then
12796 ac_ct_DUMPBIN=$DUMPBIN
12797 for ac_prog in dumpbin "link -dump"
12798 do
12799 # Extract the first word of "$ac_prog", so it can be a program name with args.
12800 set dummy $ac_prog; ac_word=$2
12801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12802 $as_echo_n "checking for $ac_word... " >&6; }
12803 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
12804 $as_echo_n "(cached) " >&6
12805 else
12806 if test -n "$ac_ct_DUMPBIN"; then
12807 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
12808 else
12809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12810 for as_dir in $PATH
12811 do
12812 IFS=$as_save_IFS
12813 test -z "$as_dir" && as_dir=.
12814 for ac_exec_ext in '' $ac_executable_extensions; do
12815 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12816 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
12817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12818 break 2
12819 fi
12820 done
12821 done
12822 IFS=$as_save_IFS
12823
12824 fi
12825 fi
12826 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
12827 if test -n "$ac_ct_DUMPBIN"; then
12828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12829 $as_echo "$ac_ct_DUMPBIN" >&6; }
12830 else
12831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12832 $as_echo "no" >&6; }
12833 fi
12834
12835
12836 test -n "$ac_ct_DUMPBIN" && break
12837 done
12838
12839 if test "x$ac_ct_DUMPBIN" = x; then
12840 DUMPBIN=":"
12841 else
12842 case $cross_compiling:$ac_tool_warned in
12843 yes:)
12844 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12845 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12846 ac_tool_warned=yes ;;
12847 esac
12848 DUMPBIN=$ac_ct_DUMPBIN
12849 fi
12850 fi
12851
12852 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
12853 *COFF*)
12854 DUMPBIN="$DUMPBIN -symbols"
12855 ;;
12856 *)
12857 DUMPBIN=:
12858 ;;
12859 esac
12860 fi
12861
12862 if test "$DUMPBIN" != ":"; then
12863 NM="$DUMPBIN"
12864 fi
12865 fi
12866 test -z "$NM" && NM=nm
12867
12868
12869
12870
12871
12872
12873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12874 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
12875 if test "${lt_cv_nm_interface+set}" = set; then :
12876 $as_echo_n "(cached) " >&6
12877 else
12878 lt_cv_nm_interface="BSD nm"
12879 echo "int some_variable = 0;" > conftest.$ac_ext
12880 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12881 (eval "$ac_compile" 2>conftest.err)
12882 cat conftest.err >&5
12883 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12884 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
12885 cat conftest.err >&5
12886 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12887 cat conftest.out >&5
12888 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
12889 lt_cv_nm_interface="MS dumpbin"
12890 fi
12891 rm -f conftest*
12892 fi
12893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12894 $as_echo "$lt_cv_nm_interface" >&6; }
12895
12896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12897 $as_echo_n "checking whether ln -s works... " >&6; }
12898 LN_S=$as_ln_s
12899 if test "$LN_S" = "ln -s"; then
12900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12901 $as_echo "yes" >&6; }
12902 else
12903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12904 $as_echo "no, using $LN_S" >&6; }
12905 fi
12906
12907 # find the maximum length of command line arguments
12908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12909 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
12910 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
12911 $as_echo_n "(cached) " >&6
12912 else
12913 i=0
12914 teststring="ABCD"
12915
12916 case $build_os in
12917 msdosdjgpp*)
12918 # On DJGPP, this test can blow up pretty badly due to problems in libc
12919 # (any single argument exceeding 2000 bytes causes a buffer overrun
12920 # during glob expansion). Even if it were fixed, the result of this
12921 # check would be larger than it should be.
12922 lt_cv_sys_max_cmd_len=12288; # 12K is about right
12923 ;;
12924
12925 gnu*)
12926 # Under GNU Hurd, this test is not required because there is
12927 # no limit to the length of command line arguments.
12928 # Libtool will interpret -1 as no limit whatsoever
12929 lt_cv_sys_max_cmd_len=-1;
12930 ;;
12931
12932 cygwin* | mingw* | cegcc*)
12933 # On Win9x/ME, this test blows up -- it succeeds, but takes
12934 # about 5 minutes as the teststring grows exponentially.
12935 # Worse, since 9x/ME are not pre-emptively multitasking,
12936 # you end up with a "frozen" computer, even though with patience
12937 # the test eventually succeeds (with a max line length of 256k).
12938 # Instead, let's just punt: use the minimum linelength reported by
12939 # all of the supported platforms: 8192 (on NT/2K/XP).
12940 lt_cv_sys_max_cmd_len=8192;
12941 ;;
12942
12943 mint*)
12944 # On MiNT this can take a long time and run out of memory.
12945 lt_cv_sys_max_cmd_len=8192;
12946 ;;
12947
12948 amigaos*)
12949 # On AmigaOS with pdksh, this test takes hours, literally.
12950 # So we just punt and use a minimum line length of 8192.
12951 lt_cv_sys_max_cmd_len=8192;
12952 ;;
12953
12954 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
12955 # This has been around since 386BSD, at least. Likely further.
12956 if test -x /sbin/sysctl; then
12957 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
12958 elif test -x /usr/sbin/sysctl; then
12959 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
12960 else
12961 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
12962 fi
12963 # And add a safety zone
12964 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12965 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12966 ;;
12967
12968 interix*)
12969 # We know the value 262144 and hardcode it with a safety zone (like BSD)
12970 lt_cv_sys_max_cmd_len=196608
12971 ;;
12972
12973 osf*)
12974 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12975 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12976 # nice to cause kernel panics so lets avoid the loop below.
12977 # First set a reasonable default.
12978 lt_cv_sys_max_cmd_len=16384
12979 #
12980 if test -x /sbin/sysconfig; then
12981 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12982 *1*) lt_cv_sys_max_cmd_len=-1 ;;
12983 esac
12984 fi
12985 ;;
12986 sco3.2v5*)
12987 lt_cv_sys_max_cmd_len=102400
12988 ;;
12989 sysv5* | sco5v6* | sysv4.2uw2*)
12990 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12991 if test -n "$kargmax"; then
12992 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
12993 else
12994 lt_cv_sys_max_cmd_len=32768
12995 fi
12996 ;;
12997 *)
12998 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
12999 if test -n "$lt_cv_sys_max_cmd_len"; then
13000 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13001 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13002 else
13003 # Make teststring a little bigger before we do anything with it.
13004 # a 1K string should be a reasonable start.
13005 for i in 1 2 3 4 5 6 7 8 ; do
13006 teststring=$teststring$teststring
13007 done
13008 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13009 # If test is not a shell built-in, we'll probably end up computing a
13010 # maximum length that is only half of the actual maximum length, but
13011 # we can't tell.
13012 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
13013 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
13014 test $i != 17 # 1/2 MB should be enough
13015 do
13016 i=`expr $i + 1`
13017 teststring=$teststring$teststring
13018 done
13019 # Only check the string length outside the loop.
13020 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
13021 teststring=
13022 # Add a significant safety factor because C++ compilers can tack on
13023 # massive amounts of additional arguments before passing them to the
13024 # linker. It appears as though 1/2 is a usable value.
13025 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13026 fi
13027 ;;
13028 esac
13029
13030 fi
13031
13032 if test -n $lt_cv_sys_max_cmd_len ; then
13033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
13034 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
13035 else
13036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
13037 $as_echo "none" >&6; }
13038 fi
13039 max_cmd_len=$lt_cv_sys_max_cmd_len
13040
13041
13042
13043
13044
13045
13046 : ${CP="cp -f"}
13047 : ${MV="mv -f"}
13048 : ${RM="rm -f"}
13049
13050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
13051 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
13052 # Try some XSI features
13053 xsi_shell=no
13054 ( _lt_dummy="a/b/c"
13055 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
13056 = c,a/b,, \
13057 && eval 'test $(( 1 + 1 )) -eq 2 \
13058 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
13059 && xsi_shell=yes
13060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
13061 $as_echo "$xsi_shell" >&6; }
13062
13063
13064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
13065 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
13066 lt_shell_append=no
13067 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
13068 >/dev/null 2>&1 \
13069 && lt_shell_append=yes
13070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
13071 $as_echo "$lt_shell_append" >&6; }
13072
13073
13074 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13075 lt_unset=unset
13076 else
13077 lt_unset=false
13078 fi
13079
13080
13081
13082
13083
13084 # test EBCDIC or ASCII
13085 case `echo X|tr X '\101'` in
13086 A) # ASCII based system
13087 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
13088 lt_SP2NL='tr \040 \012'
13089 lt_NL2SP='tr \015\012 \040\040'
13090 ;;
13091 *) # EBCDIC based system
13092 lt_SP2NL='tr \100 \n'
13093 lt_NL2SP='tr \r\n \100\100'
13094 ;;
13095 esac
13096
13097
13098
13099
13100
13101
13102
13103
13104
13105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
13106 $as_echo_n "checking for $LD option to reload object files... " >&6; }
13107 if test "${lt_cv_ld_reload_flag+set}" = set; then :
13108 $as_echo_n "(cached) " >&6
13109 else
13110 lt_cv_ld_reload_flag='-r'
13111 fi
13112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
13113 $as_echo "$lt_cv_ld_reload_flag" >&6; }
13114 reload_flag=$lt_cv_ld_reload_flag
13115 case $reload_flag in
13116 "" | " "*) ;;
13117 *) reload_flag=" $reload_flag" ;;
13118 esac
13119 reload_cmds='$LD$reload_flag -o $output$reload_objs'
13120 case $host_os in
13121 darwin*)
13122 if test "$GCC" = yes; then
13123 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
13124 else
13125 reload_cmds='$LD$reload_flag -o $output$reload_objs'
13126 fi
13127 ;;
13128 esac
13129
13130
13131
13132
13133
13134
13135
13136
13137
13138 if test -n "$ac_tool_prefix"; then
13139 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
13140 set dummy ${ac_tool_prefix}objdump; ac_word=$2
13141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13142 $as_echo_n "checking for $ac_word... " >&6; }
13143 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
13144 $as_echo_n "(cached) " >&6
13145 else
13146 if test -n "$OBJDUMP"; then
13147 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
13148 else
13149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13150 for as_dir in $PATH
13151 do
13152 IFS=$as_save_IFS
13153 test -z "$as_dir" && as_dir=.
13154 for ac_exec_ext in '' $ac_executable_extensions; do
13155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13156 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
13157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13158 break 2
13159 fi
13160 done
13161 done
13162 IFS=$as_save_IFS
13163
13164 fi
13165 fi
13166 OBJDUMP=$ac_cv_prog_OBJDUMP
13167 if test -n "$OBJDUMP"; then
13168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
13169 $as_echo "$OBJDUMP" >&6; }
13170 else
13171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13172 $as_echo "no" >&6; }
13173 fi
13174
13175
13176 fi
13177 if test -z "$ac_cv_prog_OBJDUMP"; then
13178 ac_ct_OBJDUMP=$OBJDUMP
13179 # Extract the first word of "objdump", so it can be a program name with args.
13180 set dummy objdump; ac_word=$2
13181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13182 $as_echo_n "checking for $ac_word... " >&6; }
13183 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
13184 $as_echo_n "(cached) " >&6
13185 else
13186 if test -n "$ac_ct_OBJDUMP"; then
13187 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
13188 else
13189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13190 for as_dir in $PATH
13191 do
13192 IFS=$as_save_IFS
13193 test -z "$as_dir" && as_dir=.
13194 for ac_exec_ext in '' $ac_executable_extensions; do
13195 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13196 ac_cv_prog_ac_ct_OBJDUMP="objdump"
13197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13198 break 2
13199 fi
13200 done
13201 done
13202 IFS=$as_save_IFS
13203
13204 fi
13205 fi
13206 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
13207 if test -n "$ac_ct_OBJDUMP"; then
13208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
13209 $as_echo "$ac_ct_OBJDUMP" >&6; }
13210 else
13211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13212 $as_echo "no" >&6; }
13213 fi
13214
13215 if test "x$ac_ct_OBJDUMP" = x; then
13216 OBJDUMP="false"
13217 else
13218 case $cross_compiling:$ac_tool_warned in
13219 yes:)
13220 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13221 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13222 ac_tool_warned=yes ;;
13223 esac
13224 OBJDUMP=$ac_ct_OBJDUMP
13225 fi
13226 else
13227 OBJDUMP="$ac_cv_prog_OBJDUMP"
13228 fi
13229
13230 test -z "$OBJDUMP" && OBJDUMP=objdump
13231
13232
13233
13234
13235
13236
13237
13238
13239
13240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
13241 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
13242 if test "${lt_cv_deplibs_check_method+set}" = set; then :
13243 $as_echo_n "(cached) " >&6
13244 else
13245 lt_cv_file_magic_cmd='$MAGIC_CMD'
13246 lt_cv_file_magic_test_file=
13247 lt_cv_deplibs_check_method='unknown'
13248 # Need to set the preceding variable on all platforms that support
13249 # interlibrary dependencies.
13250 # 'none' -- dependencies not supported.
13251 # `unknown' -- same as none, but documents that we really don't know.
13252 # 'pass_all' -- all dependencies passed with no checks.
13253 # 'test_compile' -- check by making test program.
13254 # 'file_magic [[regex]]' -- check by looking for files in library path
13255 # which responds to the $file_magic_cmd with a given extended regex.
13256 # If you have `file' or equivalent on your system and you're not sure
13257 # whether `pass_all' will *always* work, you probably want this one.
13258
13259 case $host_os in
13260 aix[4-9]*)
13261 lt_cv_deplibs_check_method=pass_all
13262 ;;
13263
13264 beos*)
13265 lt_cv_deplibs_check_method=pass_all
13266 ;;
13267
13268 bsdi[45]*)
13269 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
13270 lt_cv_file_magic_cmd='/usr/bin/file -L'
13271 lt_cv_file_magic_test_file=/shlib/libc.so
13272 ;;
13273
13274 cygwin*)
13275 # func_win32_libid is a shell function defined in ltmain.sh
13276 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13277 lt_cv_file_magic_cmd='func_win32_libid'
13278 ;;
13279
13280 mingw* | pw32*)
13281 # Base MSYS/MinGW do not provide the 'file' command needed by
13282 # func_win32_libid shell function, so use a weaker test based on 'objdump',
13283 # unless we find 'file', for example because we are cross-compiling.
13284 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
13285 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
13286 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13287 lt_cv_file_magic_cmd='func_win32_libid'
13288 else
13289 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
13290 lt_cv_file_magic_cmd='$OBJDUMP -f'
13291 fi
13292 ;;
13293
13294 cegcc*)
13295 # use the weaker test based on 'objdump'. See mingw*.
13296 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
13297 lt_cv_file_magic_cmd='$OBJDUMP -f'
13298 ;;
13299
13300 darwin* | rhapsody*)
13301 lt_cv_deplibs_check_method=pass_all
13302 ;;
13303
13304 freebsd* | dragonfly*)
13305 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13306 case $host_cpu in
13307 i*86 )
13308 # Not sure whether the presence of OpenBSD here was a mistake.
13309 # Let's accept both of them until this is cleared up.
13310 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
13311 lt_cv_file_magic_cmd=/usr/bin/file
13312 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
13313 ;;
13314 esac
13315 else
13316 lt_cv_deplibs_check_method=pass_all
13317 fi
13318 ;;
13319
13320 gnu*)
13321 lt_cv_deplibs_check_method=pass_all
13322 ;;
13323
13324 haiku*)
13325 lt_cv_deplibs_check_method=pass_all
13326 ;;
13327
13328 hpux10.20* | hpux11*)
13329 lt_cv_file_magic_cmd=/usr/bin/file
13330 case $host_cpu in
13331 ia64*)
13332 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
13333 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
13334 ;;
13335 hppa*64*)
13336 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]'
13337 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
13338 ;;
13339 *)
13340 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
13341 lt_cv_file_magic_test_file=/usr/lib/libc.sl
13342 ;;
13343 esac
13344 ;;
13345
13346 interix[3-9]*)
13347 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
13348 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
13349 ;;
13350
13351 irix5* | irix6* | nonstopux*)
13352 case $LD in
13353 *-32|*"-32 ") libmagic=32-bit;;
13354 *-n32|*"-n32 ") libmagic=N32;;
13355 *-64|*"-64 ") libmagic=64-bit;;
13356 *) libmagic=never-match;;
13357 esac
13358 lt_cv_deplibs_check_method=pass_all
13359 ;;
13360
13361 # This must be Linux ELF.
13362 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13363 lt_cv_deplibs_check_method=pass_all
13364 ;;
13365
13366 netbsd*)
13367 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13368 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13369 else
13370 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
13371 fi
13372 ;;
13373
13374 newos6*)
13375 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
13376 lt_cv_file_magic_cmd=/usr/bin/file
13377 lt_cv_file_magic_test_file=/usr/lib/libnls.so
13378 ;;
13379
13380 *nto* | *qnx*)
13381 lt_cv_deplibs_check_method=pass_all
13382 ;;
13383
13384 openbsd*)
13385 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13386 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
13387 else
13388 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13389 fi
13390 ;;
13391
13392 osf3* | osf4* | osf5*)
13393 lt_cv_deplibs_check_method=pass_all
13394 ;;
13395
13396 rdos*)
13397 lt_cv_deplibs_check_method=pass_all
13398 ;;
13399
13400 solaris*)
13401 lt_cv_deplibs_check_method=pass_all
13402 ;;
13403
13404 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13405 lt_cv_deplibs_check_method=pass_all
13406 ;;
13407
13408 sysv4 | sysv4.3*)
13409 case $host_vendor in
13410 motorola)
13411 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]'
13412 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
13413 ;;
13414 ncr)
13415 lt_cv_deplibs_check_method=pass_all
13416 ;;
13417 sequent)
13418 lt_cv_file_magic_cmd='/bin/file'
13419 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13420 ;;
13421 sni)
13422 lt_cv_file_magic_cmd='/bin/file'
13423 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
13424 lt_cv_file_magic_test_file=/lib/libc.so
13425 ;;
13426 siemens)
13427 lt_cv_deplibs_check_method=pass_all
13428 ;;
13429 pc)
13430 lt_cv_deplibs_check_method=pass_all
13431 ;;
13432 esac
13433 ;;
13434
13435 tpf*)
13436 lt_cv_deplibs_check_method=pass_all
13437 ;;
13438 esac
13439
13440 fi
13441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
13442 $as_echo "$lt_cv_deplibs_check_method" >&6; }
13443 file_magic_cmd=$lt_cv_file_magic_cmd
13444 deplibs_check_method=$lt_cv_deplibs_check_method
13445 test -z "$deplibs_check_method" && deplibs_check_method=unknown
13446
13447
13448
13449
13450
13451
13452
13453
13454
13455
13456
13457
13458 if test -n "$ac_tool_prefix"; then
13459 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13460 set dummy ${ac_tool_prefix}ar; ac_word=$2
13461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13462 $as_echo_n "checking for $ac_word... " >&6; }
13463 if test "${ac_cv_prog_AR+set}" = set; then :
13464 $as_echo_n "(cached) " >&6
13465 else
13466 if test -n "$AR"; then
13467 ac_cv_prog_AR="$AR" # Let the user override the test.
13468 else
13469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13470 for as_dir in $PATH
13471 do
13472 IFS=$as_save_IFS
13473 test -z "$as_dir" && as_dir=.
13474 for ac_exec_ext in '' $ac_executable_extensions; do
13475 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13476 ac_cv_prog_AR="${ac_tool_prefix}ar"
13477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13478 break 2
13479 fi
13480 done
13481 done
13482 IFS=$as_save_IFS
13483
13484 fi
13485 fi
13486 AR=$ac_cv_prog_AR
13487 if test -n "$AR"; then
13488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
13489 $as_echo "$AR" >&6; }
13490 else
13491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13492 $as_echo "no" >&6; }
13493 fi
13494
13495
13496 fi
13497 if test -z "$ac_cv_prog_AR"; then
13498 ac_ct_AR=$AR
13499 # Extract the first word of "ar", so it can be a program name with args.
13500 set dummy ar; ac_word=$2
13501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13502 $as_echo_n "checking for $ac_word... " >&6; }
13503 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
13504 $as_echo_n "(cached) " >&6
13505 else
13506 if test -n "$ac_ct_AR"; then
13507 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13508 else
13509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13510 for as_dir in $PATH
13511 do
13512 IFS=$as_save_IFS
13513 test -z "$as_dir" && as_dir=.
13514 for ac_exec_ext in '' $ac_executable_extensions; do
13515 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13516 ac_cv_prog_ac_ct_AR="ar"
13517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13518 break 2
13519 fi
13520 done
13521 done
13522 IFS=$as_save_IFS
13523
13524 fi
13525 fi
13526 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13527 if test -n "$ac_ct_AR"; then
13528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
13529 $as_echo "$ac_ct_AR" >&6; }
13530 else
13531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13532 $as_echo "no" >&6; }
13533 fi
13534
13535 if test "x$ac_ct_AR" = x; then
13536 AR="false"
13537 else
13538 case $cross_compiling:$ac_tool_warned in
13539 yes:)
13540 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13541 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13542 ac_tool_warned=yes ;;
13543 esac
13544 AR=$ac_ct_AR
13545 fi
13546 else
13547 AR="$ac_cv_prog_AR"
13548 fi
13549
13550 test -z "$AR" && AR=ar
13551 test -z "$AR_FLAGS" && AR_FLAGS=cru
13552
13553
13554
13555
13556
13557
13558
13559
13560
13561
13562
13563 if test -n "$ac_tool_prefix"; then
13564 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13565 set dummy ${ac_tool_prefix}strip; ac_word=$2
13566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13567 $as_echo_n "checking for $ac_word... " >&6; }
13568 if test "${ac_cv_prog_STRIP+set}" = set; then :
13569 $as_echo_n "(cached) " >&6
13570 else
13571 if test -n "$STRIP"; then
13572 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13573 else
13574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13575 for as_dir in $PATH
13576 do
13577 IFS=$as_save_IFS
13578 test -z "$as_dir" && as_dir=.
13579 for ac_exec_ext in '' $ac_executable_extensions; do
13580 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13581 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13582 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13583 break 2
13584 fi
13585 done
13586 done
13587 IFS=$as_save_IFS
13588
13589 fi
13590 fi
13591 STRIP=$ac_cv_prog_STRIP
13592 if test -n "$STRIP"; then
13593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13594 $as_echo "$STRIP" >&6; }
13595 else
13596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13597 $as_echo "no" >&6; }
13598 fi
13599
13600
13601 fi
13602 if test -z "$ac_cv_prog_STRIP"; then
13603 ac_ct_STRIP=$STRIP
13604 # Extract the first word of "strip", so it can be a program name with args.
13605 set dummy strip; ac_word=$2
13606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13607 $as_echo_n "checking for $ac_word... " >&6; }
13608 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
13609 $as_echo_n "(cached) " >&6
13610 else
13611 if test -n "$ac_ct_STRIP"; then
13612 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13613 else
13614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13615 for as_dir in $PATH
13616 do
13617 IFS=$as_save_IFS
13618 test -z "$as_dir" && as_dir=.
13619 for ac_exec_ext in '' $ac_executable_extensions; do
13620 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13621 ac_cv_prog_ac_ct_STRIP="strip"
13622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13623 break 2
13624 fi
13625 done
13626 done
13627 IFS=$as_save_IFS
13628
13629 fi
13630 fi
13631 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13632 if test -n "$ac_ct_STRIP"; then
13633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
13634 $as_echo "$ac_ct_STRIP" >&6; }
13635 else
13636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13637 $as_echo "no" >&6; }
13638 fi
13639
13640 if test "x$ac_ct_STRIP" = x; then
13641 STRIP=":"
13642 else
13643 case $cross_compiling:$ac_tool_warned in
13644 yes:)
13645 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13646 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13647 ac_tool_warned=yes ;;
13648 esac
13649 STRIP=$ac_ct_STRIP
13650 fi
13651 else
13652 STRIP="$ac_cv_prog_STRIP"
13653 fi
13654
13655 test -z "$STRIP" && STRIP=:
13656
13657
13658
13659
13660
13661
13662 if test -n "$ac_tool_prefix"; then
13663 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13664 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13666 $as_echo_n "checking for $ac_word... " >&6; }
13667 if test "${ac_cv_prog_RANLIB+set}" = set; then :
13668 $as_echo_n "(cached) " >&6
13669 else
13670 if test -n "$RANLIB"; then
13671 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13672 else
13673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13674 for as_dir in $PATH
13675 do
13676 IFS=$as_save_IFS
13677 test -z "$as_dir" && as_dir=.
13678 for ac_exec_ext in '' $ac_executable_extensions; do
13679 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13680 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13682 break 2
13683 fi
13684 done
13685 done
13686 IFS=$as_save_IFS
13687
13688 fi
13689 fi
13690 RANLIB=$ac_cv_prog_RANLIB
13691 if test -n "$RANLIB"; then
13692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13693 $as_echo "$RANLIB" >&6; }
13694 else
13695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13696 $as_echo "no" >&6; }
13697 fi
13698
13699
13700 fi
13701 if test -z "$ac_cv_prog_RANLIB"; then
13702 ac_ct_RANLIB=$RANLIB
13703 # Extract the first word of "ranlib", so it can be a program name with args.
13704 set dummy ranlib; ac_word=$2
13705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13706 $as_echo_n "checking for $ac_word... " >&6; }
13707 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
13708 $as_echo_n "(cached) " >&6
13709 else
13710 if test -n "$ac_ct_RANLIB"; then
13711 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13712 else
13713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13714 for as_dir in $PATH
13715 do
13716 IFS=$as_save_IFS
13717 test -z "$as_dir" && as_dir=.
13718 for ac_exec_ext in '' $ac_executable_extensions; do
13719 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13720 ac_cv_prog_ac_ct_RANLIB="ranlib"
13721 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13722 break 2
13723 fi
13724 done
13725 done
13726 IFS=$as_save_IFS
13727
13728 fi
13729 fi
13730 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13731 if test -n "$ac_ct_RANLIB"; then
13732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
13733 $as_echo "$ac_ct_RANLIB" >&6; }
13734 else
13735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13736 $as_echo "no" >&6; }
13737 fi
13738
13739 if test "x$ac_ct_RANLIB" = x; then
13740 RANLIB=":"
13741 else
13742 case $cross_compiling:$ac_tool_warned in
13743 yes:)
13744 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13745 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13746 ac_tool_warned=yes ;;
13747 esac
13748 RANLIB=$ac_ct_RANLIB
13749 fi
13750 else
13751 RANLIB="$ac_cv_prog_RANLIB"
13752 fi
13753
13754 test -z "$RANLIB" && RANLIB=:
13755
13756
13757
13758
13759
13760
13761 # Determine commands to create old-style static archives.
13762 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13763 old_postinstall_cmds='chmod 644 $oldlib'
13764 old_postuninstall_cmds=
13765
13766 if test -n "$RANLIB"; then
13767 case $host_os in
13768 openbsd*)
13769 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
13770 ;;
13771 *)
13772 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
13773 ;;
13774 esac
13775 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
13776 fi
13777
13778 case $host_os in
13779 darwin*)
13780 lock_old_archive_extraction=yes ;;
13781 *)
13782 lock_old_archive_extraction=no ;;
13783 esac
13784
13785
13786
13787
13788
13789
13790
13791
13792
13793
13794
13795
13796
13797
13798
13799
13800
13801
13802
13803
13804
13805
13806
13807
13808
13809
13810
13811
13812
13813
13814
13815
13816
13817
13818
13819
13820
13821
13822
13823 # If no C compiler was specified, use CC.
13824 LTCC=${LTCC-"$CC"}
13825
13826 # If no C compiler flags were specified, use CFLAGS.
13827 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13828
13829 # Allow CC to be a program name with arguments.
13830 compiler=$CC
13831
13832
13833 # Check for command to grab the raw symbol name followed by C symbol from nm.
13834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
13835 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
13836 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
13837 $as_echo_n "(cached) " >&6
13838 else
13839
13840 # These are sane defaults that work on at least a few old systems.
13841 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13842
13843 # Character class describing NM global symbol codes.
13844 symcode='[BCDEGRST]'
13845
13846 # Regexp to match symbols that can be accessed directly from C.
13847 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13848
13849 # Define system-specific variables.
13850 case $host_os in
13851 aix*)
13852 symcode='[BCDT]'
13853 ;;
13854 cygwin* | mingw* | pw32* | cegcc*)
13855 symcode='[ABCDGISTW]'
13856 ;;
13857 hpux*)
13858 if test "$host_cpu" = ia64; then
13859 symcode='[ABCDEGRST]'
13860 fi
13861 ;;
13862 irix* | nonstopux*)
13863 symcode='[BCDEGRST]'
13864 ;;
13865 osf*)
13866 symcode='[BCDEGQRST]'
13867 ;;
13868 solaris*)
13869 symcode='[BDRT]'
13870 ;;
13871 sco3.2v5*)
13872 symcode='[DT]'
13873 ;;
13874 sysv4.2uw2*)
13875 symcode='[DT]'
13876 ;;
13877 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13878 symcode='[ABDT]'
13879 ;;
13880 sysv4)
13881 symcode='[DFNSTU]'
13882 ;;
13883 esac
13884
13885 # If we're using GNU nm, then use its standard symbol codes.
13886 case `$NM -V 2>&1` in
13887 *GNU* | *'with BFD'*)
13888 symcode='[ABCDGIRSTW]' ;;
13889 esac
13890
13891 # Transform an extracted symbol line into a proper C declaration.
13892 # Some systems (esp. on ia64) link data and code symbols differently,
13893 # so use this general approach.
13894 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13895
13896 # Transform an extracted symbol line into symbol name and symbol address
13897 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
13898 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'"
13899
13900 # Handle CRLF in mingw tool chain
13901 opt_cr=
13902 case $build_os in
13903 mingw*)
13904 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13905 ;;
13906 esac
13907
13908 # Try without a prefix underscore, then with it.
13909 for ac_symprfx in "" "_"; do
13910
13911 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13912 symxfrm="\\1 $ac_symprfx\\2 \\2"
13913
13914 # Write the raw and C identifiers.
13915 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13916 # Fake it for dumpbin and say T for any non-static function
13917 # and D for any global variable.
13918 # Also find C++ and __fastcall symbols from MSVC++,
13919 # which start with @ or ?.
13920 lt_cv_sys_global_symbol_pipe="$AWK '"\
13921 " {last_section=section; section=\$ 3};"\
13922 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13923 " \$ 0!~/External *\|/{next};"\
13924 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13925 " {if(hide[section]) next};"\
13926 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
13927 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
13928 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
13929 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
13930 " ' prfx=^$ac_symprfx"
13931 else
13932 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13933 fi
13934
13935 # Check to see that the pipe works correctly.
13936 pipe_works=no
13937
13938 rm -f conftest*
13939 cat > conftest.$ac_ext <<_LT_EOF
13940 #ifdef __cplusplus
13941 extern "C" {
13942 #endif
13943 char nm_test_var;
13944 void nm_test_func(void);
13945 void nm_test_func(void){}
13946 #ifdef __cplusplus
13947 }
13948 #endif
13949 int main(){nm_test_var='a';nm_test_func();return(0);}
13950 _LT_EOF
13951
13952 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13953 (eval $ac_compile) 2>&5
13954 ac_status=$?
13955 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13956 test $ac_status = 0; }; then
13957 # Now try to grab the symbols.
13958 nlist=conftest.nm
13959 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
13960 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13961 ac_status=$?
13962 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13963 test $ac_status = 0; } && test -s "$nlist"; then
13964 # Try sorting and uniquifying the output.
13965 if sort "$nlist" | uniq > "$nlist"T; then
13966 mv -f "$nlist"T "$nlist"
13967 else
13968 rm -f "$nlist"T
13969 fi
13970
13971 # Make sure that we snagged all the symbols we need.
13972 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13973 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13974 cat <<_LT_EOF > conftest.$ac_ext
13975 #ifdef __cplusplus
13976 extern "C" {
13977 #endif
13978
13979 _LT_EOF
13980 # Now generate the symbol file.
13981 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13982
13983 cat <<_LT_EOF >> conftest.$ac_ext
13984
13985 /* The mapping between symbol names and symbols. */
13986 const struct {
13987 const char *name;
13988 void *address;
13989 }
13990 lt__PROGRAM__LTX_preloaded_symbols[] =
13991 {
13992 { "@PROGRAM@", (void *) 0 },
13993 _LT_EOF
13994 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
13995 cat <<\_LT_EOF >> conftest.$ac_ext
13996 {0, (void *) 0}
13997 };
13998
13999 /* This works around a problem in FreeBSD linker */
14000 #ifdef FREEBSD_WORKAROUND
14001 static const void *lt_preloaded_setup() {
14002 return lt__PROGRAM__LTX_preloaded_symbols;
14003 }
14004 #endif
14005
14006 #ifdef __cplusplus
14007 }
14008 #endif
14009 _LT_EOF
14010 # Now try linking the two files.
14011 mv conftest.$ac_objext conftstm.$ac_objext
14012 lt_save_LIBS="$LIBS"
14013 lt_save_CFLAGS="$CFLAGS"
14014 LIBS="conftstm.$ac_objext"
14015 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
14016 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14017 (eval $ac_link) 2>&5
14018 ac_status=$?
14019 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14020 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
14021 pipe_works=yes
14022 fi
14023 LIBS="$lt_save_LIBS"
14024 CFLAGS="$lt_save_CFLAGS"
14025 else
14026 echo "cannot find nm_test_func in $nlist" >&5
14027 fi
14028 else
14029 echo "cannot find nm_test_var in $nlist" >&5
14030 fi
14031 else
14032 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
14033 fi
14034 else
14035 echo "$progname: failed program was:" >&5
14036 cat conftest.$ac_ext >&5
14037 fi
14038 rm -rf conftest* conftst*
14039
14040 # Do not use the global_symbol_pipe unless it works.
14041 if test "$pipe_works" = yes; then
14042 break
14043 else
14044 lt_cv_sys_global_symbol_pipe=
14045 fi
14046 done
14047
14048 fi
14049
14050 if test -z "$lt_cv_sys_global_symbol_pipe"; then
14051 lt_cv_sys_global_symbol_to_cdecl=
14052 fi
14053 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
14054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
14055 $as_echo "failed" >&6; }
14056 else
14057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
14058 $as_echo "ok" >&6; }
14059 fi
14060
14061
14062
14063
14064
14065
14066
14067
14068
14069
14070
14071
14072
14073
14074
14075
14076
14077
14078
14079
14080
14081
14082 # Check whether --enable-libtool-lock was given.
14083 if test "${enable_libtool_lock+set}" = set; then :
14084 enableval=$enable_libtool_lock;
14085 fi
14086
14087 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14088
14089 # Some flags need to be propagated to the compiler or linker for good
14090 # libtool support.
14091 case $host in
14092 ia64-*-hpux*)
14093 # Find out which ABI we are using.
14094 echo 'int i;' > conftest.$ac_ext
14095 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14096 (eval $ac_compile) 2>&5
14097 ac_status=$?
14098 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14099 test $ac_status = 0; }; then
14100 case `/usr/bin/file conftest.$ac_objext` in
14101 *ELF-32*)
14102 HPUX_IA64_MODE="32"
14103 ;;
14104 *ELF-64*)
14105 HPUX_IA64_MODE="64"
14106 ;;
14107 esac
14108 fi
14109 rm -rf conftest*
14110 ;;
14111 *-*-irix6*)
14112 # Find out which ABI we are using.
14113 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
14114 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14115 (eval $ac_compile) 2>&5
14116 ac_status=$?
14117 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14118 test $ac_status = 0; }; then
14119 if test "$lt_cv_prog_gnu_ld" = yes; then
14120 case `/usr/bin/file conftest.$ac_objext` in
14121 *32-bit*)
14122 LD="${LD-ld} -melf32bsmip"
14123 ;;
14124 *N32*)
14125 LD="${LD-ld} -melf32bmipn32"
14126 ;;
14127 *64-bit*)
14128 LD="${LD-ld} -melf64bmip"
14129 ;;
14130 esac
14131 else
14132 case `/usr/bin/file conftest.$ac_objext` in
14133 *32-bit*)
14134 LD="${LD-ld} -32"
14135 ;;
14136 *N32*)
14137 LD="${LD-ld} -n32"
14138 ;;
14139 *64-bit*)
14140 LD="${LD-ld} -64"
14141 ;;
14142 esac
14143 fi
14144 fi
14145 rm -rf conftest*
14146 ;;
14147
14148 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
14149 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
14150 # Find out which ABI we are using.
14151 echo 'int i;' > conftest.$ac_ext
14152 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14153 (eval $ac_compile) 2>&5
14154 ac_status=$?
14155 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14156 test $ac_status = 0; }; then
14157 case `/usr/bin/file conftest.o` in
14158 *32-bit*)
14159 case $host in
14160 x86_64-*kfreebsd*-gnu)
14161 LD="${LD-ld} -m elf_i386_fbsd"
14162 ;;
14163 x86_64-*linux*)
14164 case `/usr/bin/file conftest.o` in
14165 *x86-64*)
14166 LD="${LD-ld} -m elf32_x86_64"
14167 ;;
14168 *)
14169 LD="${LD-ld} -m elf_i386"
14170 ;;
14171 esac
14172 ;;
14173 powerpc64le-*linux*)
14174 LD="${LD-ld} -m elf32lppclinux"
14175 ;;
14176 powerpc64-*linux*)
14177 LD="${LD-ld} -m elf32ppclinux"
14178 ;;
14179 s390x-*linux*)
14180 LD="${LD-ld} -m elf_s390"
14181 ;;
14182 sparc64-*linux*)
14183 LD="${LD-ld} -m elf32_sparc"
14184 ;;
14185 esac
14186 ;;
14187 *64-bit*)
14188 case $host in
14189 x86_64-*kfreebsd*-gnu)
14190 LD="${LD-ld} -m elf_x86_64_fbsd"
14191 ;;
14192 x86_64-*linux*)
14193 LD="${LD-ld} -m elf_x86_64"
14194 ;;
14195 powerpcle-*linux*)
14196 LD="${LD-ld} -m elf64lppc"
14197 ;;
14198 powerpc-*linux*)
14199 LD="${LD-ld} -m elf64ppc"
14200 ;;
14201 s390*-*linux*|s390*-*tpf*)
14202 LD="${LD-ld} -m elf64_s390"
14203 ;;
14204 sparc*-*linux*)
14205 LD="${LD-ld} -m elf64_sparc"
14206 ;;
14207 esac
14208 ;;
14209 esac
14210 fi
14211 rm -rf conftest*
14212 ;;
14213
14214 *-*-sco3.2v5*)
14215 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
14216 SAVE_CFLAGS="$CFLAGS"
14217 CFLAGS="$CFLAGS -belf"
14218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
14219 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
14220 if test "${lt_cv_cc_needs_belf+set}" = set; then :
14221 $as_echo_n "(cached) " >&6
14222 else
14223 ac_ext=c
14224 ac_cpp='$CPP $CPPFLAGS'
14225 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14226 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14227 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14228
14229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14230 /* end confdefs.h. */
14231
14232 int
14233 main ()
14234 {
14235
14236 ;
14237 return 0;
14238 }
14239 _ACEOF
14240 if ac_fn_c_try_link "$LINENO"; then :
14241 lt_cv_cc_needs_belf=yes
14242 else
14243 lt_cv_cc_needs_belf=no
14244 fi
14245 rm -f core conftest.err conftest.$ac_objext \
14246 conftest$ac_exeext conftest.$ac_ext
14247 ac_ext=c
14248 ac_cpp='$CPP $CPPFLAGS'
14249 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14250 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14251 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14252
14253 fi
14254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
14255 $as_echo "$lt_cv_cc_needs_belf" >&6; }
14256 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
14257 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
14258 CFLAGS="$SAVE_CFLAGS"
14259 fi
14260 ;;
14261 sparc*-*solaris*)
14262 # Find out which ABI we are using.
14263 echo 'int i;' > conftest.$ac_ext
14264 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14265 (eval $ac_compile) 2>&5
14266 ac_status=$?
14267 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14268 test $ac_status = 0; }; then
14269 case `/usr/bin/file conftest.o` in
14270 *64-bit*)
14271 case $lt_cv_prog_gnu_ld in
14272 yes*) LD="${LD-ld} -m elf64_sparc" ;;
14273 *)
14274 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
14275 LD="${LD-ld} -64"
14276 fi
14277 ;;
14278 esac
14279 ;;
14280 esac
14281 fi
14282 rm -rf conftest*
14283 ;;
14284 esac
14285
14286 need_locks="$enable_libtool_lock"
14287
14288
14289 case $host_os in
14290 rhapsody* | darwin*)
14291 if test -n "$ac_tool_prefix"; then
14292 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
14293 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
14294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14295 $as_echo_n "checking for $ac_word... " >&6; }
14296 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
14297 $as_echo_n "(cached) " >&6
14298 else
14299 if test -n "$DSYMUTIL"; then
14300 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
14301 else
14302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14303 for as_dir in $PATH
14304 do
14305 IFS=$as_save_IFS
14306 test -z "$as_dir" && as_dir=.
14307 for ac_exec_ext in '' $ac_executable_extensions; do
14308 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14309 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
14310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14311 break 2
14312 fi
14313 done
14314 done
14315 IFS=$as_save_IFS
14316
14317 fi
14318 fi
14319 DSYMUTIL=$ac_cv_prog_DSYMUTIL
14320 if test -n "$DSYMUTIL"; then
14321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
14322 $as_echo "$DSYMUTIL" >&6; }
14323 else
14324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14325 $as_echo "no" >&6; }
14326 fi
14327
14328
14329 fi
14330 if test -z "$ac_cv_prog_DSYMUTIL"; then
14331 ac_ct_DSYMUTIL=$DSYMUTIL
14332 # Extract the first word of "dsymutil", so it can be a program name with args.
14333 set dummy dsymutil; ac_word=$2
14334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14335 $as_echo_n "checking for $ac_word... " >&6; }
14336 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
14337 $as_echo_n "(cached) " >&6
14338 else
14339 if test -n "$ac_ct_DSYMUTIL"; then
14340 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
14341 else
14342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14343 for as_dir in $PATH
14344 do
14345 IFS=$as_save_IFS
14346 test -z "$as_dir" && as_dir=.
14347 for ac_exec_ext in '' $ac_executable_extensions; do
14348 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14349 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
14350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14351 break 2
14352 fi
14353 done
14354 done
14355 IFS=$as_save_IFS
14356
14357 fi
14358 fi
14359 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
14360 if test -n "$ac_ct_DSYMUTIL"; then
14361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
14362 $as_echo "$ac_ct_DSYMUTIL" >&6; }
14363 else
14364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14365 $as_echo "no" >&6; }
14366 fi
14367
14368 if test "x$ac_ct_DSYMUTIL" = x; then
14369 DSYMUTIL=":"
14370 else
14371 case $cross_compiling:$ac_tool_warned in
14372 yes:)
14373 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14374 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14375 ac_tool_warned=yes ;;
14376 esac
14377 DSYMUTIL=$ac_ct_DSYMUTIL
14378 fi
14379 else
14380 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
14381 fi
14382
14383 if test -n "$ac_tool_prefix"; then
14384 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
14385 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
14386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14387 $as_echo_n "checking for $ac_word... " >&6; }
14388 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
14389 $as_echo_n "(cached) " >&6
14390 else
14391 if test -n "$NMEDIT"; then
14392 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
14393 else
14394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14395 for as_dir in $PATH
14396 do
14397 IFS=$as_save_IFS
14398 test -z "$as_dir" && as_dir=.
14399 for ac_exec_ext in '' $ac_executable_extensions; do
14400 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14401 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
14402 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14403 break 2
14404 fi
14405 done
14406 done
14407 IFS=$as_save_IFS
14408
14409 fi
14410 fi
14411 NMEDIT=$ac_cv_prog_NMEDIT
14412 if test -n "$NMEDIT"; then
14413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
14414 $as_echo "$NMEDIT" >&6; }
14415 else
14416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14417 $as_echo "no" >&6; }
14418 fi
14419
14420
14421 fi
14422 if test -z "$ac_cv_prog_NMEDIT"; then
14423 ac_ct_NMEDIT=$NMEDIT
14424 # Extract the first word of "nmedit", so it can be a program name with args.
14425 set dummy nmedit; ac_word=$2
14426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14427 $as_echo_n "checking for $ac_word... " >&6; }
14428 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
14429 $as_echo_n "(cached) " >&6
14430 else
14431 if test -n "$ac_ct_NMEDIT"; then
14432 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
14433 else
14434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14435 for as_dir in $PATH
14436 do
14437 IFS=$as_save_IFS
14438 test -z "$as_dir" && as_dir=.
14439 for ac_exec_ext in '' $ac_executable_extensions; do
14440 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14441 ac_cv_prog_ac_ct_NMEDIT="nmedit"
14442 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14443 break 2
14444 fi
14445 done
14446 done
14447 IFS=$as_save_IFS
14448
14449 fi
14450 fi
14451 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
14452 if test -n "$ac_ct_NMEDIT"; then
14453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
14454 $as_echo "$ac_ct_NMEDIT" >&6; }
14455 else
14456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14457 $as_echo "no" >&6; }
14458 fi
14459
14460 if test "x$ac_ct_NMEDIT" = x; then
14461 NMEDIT=":"
14462 else
14463 case $cross_compiling:$ac_tool_warned in
14464 yes:)
14465 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14466 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14467 ac_tool_warned=yes ;;
14468 esac
14469 NMEDIT=$ac_ct_NMEDIT
14470 fi
14471 else
14472 NMEDIT="$ac_cv_prog_NMEDIT"
14473 fi
14474
14475 if test -n "$ac_tool_prefix"; then
14476 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
14477 set dummy ${ac_tool_prefix}lipo; ac_word=$2
14478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14479 $as_echo_n "checking for $ac_word... " >&6; }
14480 if test "${ac_cv_prog_LIPO+set}" = set; then :
14481 $as_echo_n "(cached) " >&6
14482 else
14483 if test -n "$LIPO"; then
14484 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
14485 else
14486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14487 for as_dir in $PATH
14488 do
14489 IFS=$as_save_IFS
14490 test -z "$as_dir" && as_dir=.
14491 for ac_exec_ext in '' $ac_executable_extensions; do
14492 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14493 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
14494 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14495 break 2
14496 fi
14497 done
14498 done
14499 IFS=$as_save_IFS
14500
14501 fi
14502 fi
14503 LIPO=$ac_cv_prog_LIPO
14504 if test -n "$LIPO"; then
14505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
14506 $as_echo "$LIPO" >&6; }
14507 else
14508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14509 $as_echo "no" >&6; }
14510 fi
14511
14512
14513 fi
14514 if test -z "$ac_cv_prog_LIPO"; then
14515 ac_ct_LIPO=$LIPO
14516 # Extract the first word of "lipo", so it can be a program name with args.
14517 set dummy lipo; ac_word=$2
14518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14519 $as_echo_n "checking for $ac_word... " >&6; }
14520 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
14521 $as_echo_n "(cached) " >&6
14522 else
14523 if test -n "$ac_ct_LIPO"; then
14524 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14525 else
14526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14527 for as_dir in $PATH
14528 do
14529 IFS=$as_save_IFS
14530 test -z "$as_dir" && as_dir=.
14531 for ac_exec_ext in '' $ac_executable_extensions; do
14532 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14533 ac_cv_prog_ac_ct_LIPO="lipo"
14534 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14535 break 2
14536 fi
14537 done
14538 done
14539 IFS=$as_save_IFS
14540
14541 fi
14542 fi
14543 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14544 if test -n "$ac_ct_LIPO"; then
14545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
14546 $as_echo "$ac_ct_LIPO" >&6; }
14547 else
14548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14549 $as_echo "no" >&6; }
14550 fi
14551
14552 if test "x$ac_ct_LIPO" = x; then
14553 LIPO=":"
14554 else
14555 case $cross_compiling:$ac_tool_warned in
14556 yes:)
14557 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14558 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14559 ac_tool_warned=yes ;;
14560 esac
14561 LIPO=$ac_ct_LIPO
14562 fi
14563 else
14564 LIPO="$ac_cv_prog_LIPO"
14565 fi
14566
14567 if test -n "$ac_tool_prefix"; then
14568 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
14569 set dummy ${ac_tool_prefix}otool; ac_word=$2
14570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14571 $as_echo_n "checking for $ac_word... " >&6; }
14572 if test "${ac_cv_prog_OTOOL+set}" = set; then :
14573 $as_echo_n "(cached) " >&6
14574 else
14575 if test -n "$OTOOL"; then
14576 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14577 else
14578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14579 for as_dir in $PATH
14580 do
14581 IFS=$as_save_IFS
14582 test -z "$as_dir" && as_dir=.
14583 for ac_exec_ext in '' $ac_executable_extensions; do
14584 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14585 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
14586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14587 break 2
14588 fi
14589 done
14590 done
14591 IFS=$as_save_IFS
14592
14593 fi
14594 fi
14595 OTOOL=$ac_cv_prog_OTOOL
14596 if test -n "$OTOOL"; then
14597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
14598 $as_echo "$OTOOL" >&6; }
14599 else
14600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14601 $as_echo "no" >&6; }
14602 fi
14603
14604
14605 fi
14606 if test -z "$ac_cv_prog_OTOOL"; then
14607 ac_ct_OTOOL=$OTOOL
14608 # Extract the first word of "otool", so it can be a program name with args.
14609 set dummy otool; ac_word=$2
14610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14611 $as_echo_n "checking for $ac_word... " >&6; }
14612 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
14613 $as_echo_n "(cached) " >&6
14614 else
14615 if test -n "$ac_ct_OTOOL"; then
14616 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14617 else
14618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14619 for as_dir in $PATH
14620 do
14621 IFS=$as_save_IFS
14622 test -z "$as_dir" && as_dir=.
14623 for ac_exec_ext in '' $ac_executable_extensions; do
14624 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14625 ac_cv_prog_ac_ct_OTOOL="otool"
14626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14627 break 2
14628 fi
14629 done
14630 done
14631 IFS=$as_save_IFS
14632
14633 fi
14634 fi
14635 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14636 if test -n "$ac_ct_OTOOL"; then
14637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
14638 $as_echo "$ac_ct_OTOOL" >&6; }
14639 else
14640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14641 $as_echo "no" >&6; }
14642 fi
14643
14644 if test "x$ac_ct_OTOOL" = x; then
14645 OTOOL=":"
14646 else
14647 case $cross_compiling:$ac_tool_warned in
14648 yes:)
14649 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14650 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14651 ac_tool_warned=yes ;;
14652 esac
14653 OTOOL=$ac_ct_OTOOL
14654 fi
14655 else
14656 OTOOL="$ac_cv_prog_OTOOL"
14657 fi
14658
14659 if test -n "$ac_tool_prefix"; then
14660 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
14661 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14663 $as_echo_n "checking for $ac_word... " >&6; }
14664 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
14665 $as_echo_n "(cached) " >&6
14666 else
14667 if test -n "$OTOOL64"; then
14668 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14669 else
14670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14671 for as_dir in $PATH
14672 do
14673 IFS=$as_save_IFS
14674 test -z "$as_dir" && as_dir=.
14675 for ac_exec_ext in '' $ac_executable_extensions; do
14676 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14677 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
14678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14679 break 2
14680 fi
14681 done
14682 done
14683 IFS=$as_save_IFS
14684
14685 fi
14686 fi
14687 OTOOL64=$ac_cv_prog_OTOOL64
14688 if test -n "$OTOOL64"; then
14689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
14690 $as_echo "$OTOOL64" >&6; }
14691 else
14692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14693 $as_echo "no" >&6; }
14694 fi
14695
14696
14697 fi
14698 if test -z "$ac_cv_prog_OTOOL64"; then
14699 ac_ct_OTOOL64=$OTOOL64
14700 # Extract the first word of "otool64", so it can be a program name with args.
14701 set dummy otool64; ac_word=$2
14702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14703 $as_echo_n "checking for $ac_word... " >&6; }
14704 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
14705 $as_echo_n "(cached) " >&6
14706 else
14707 if test -n "$ac_ct_OTOOL64"; then
14708 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14709 else
14710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14711 for as_dir in $PATH
14712 do
14713 IFS=$as_save_IFS
14714 test -z "$as_dir" && as_dir=.
14715 for ac_exec_ext in '' $ac_executable_extensions; do
14716 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14717 ac_cv_prog_ac_ct_OTOOL64="otool64"
14718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14719 break 2
14720 fi
14721 done
14722 done
14723 IFS=$as_save_IFS
14724
14725 fi
14726 fi
14727 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14728 if test -n "$ac_ct_OTOOL64"; then
14729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
14730 $as_echo "$ac_ct_OTOOL64" >&6; }
14731 else
14732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14733 $as_echo "no" >&6; }
14734 fi
14735
14736 if test "x$ac_ct_OTOOL64" = x; then
14737 OTOOL64=":"
14738 else
14739 case $cross_compiling:$ac_tool_warned in
14740 yes:)
14741 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14742 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14743 ac_tool_warned=yes ;;
14744 esac
14745 OTOOL64=$ac_ct_OTOOL64
14746 fi
14747 else
14748 OTOOL64="$ac_cv_prog_OTOOL64"
14749 fi
14750
14751
14752
14753
14754
14755
14756
14757
14758
14759
14760
14761
14762
14763
14764
14765
14766
14767
14768
14769
14770
14771
14772
14773
14774
14775
14776
14777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
14778 $as_echo_n "checking for -single_module linker flag... " >&6; }
14779 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
14780 $as_echo_n "(cached) " >&6
14781 else
14782 lt_cv_apple_cc_single_mod=no
14783 if test -z "${LT_MULTI_MODULE}"; then
14784 # By default we will add the -single_module flag. You can override
14785 # by either setting the environment variable LT_MULTI_MODULE
14786 # non-empty at configure time, or by adding -multi_module to the
14787 # link flags.
14788 rm -rf libconftest.dylib*
14789 echo "int foo(void){return 1;}" > conftest.c
14790 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14791 -dynamiclib -Wl,-single_module conftest.c" >&5
14792 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14793 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14794 _lt_result=$?
14795 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
14796 lt_cv_apple_cc_single_mod=yes
14797 else
14798 cat conftest.err >&5
14799 fi
14800 rm -rf libconftest.dylib*
14801 rm -f conftest.*
14802 fi
14803 fi
14804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
14805 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
14807 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
14808 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
14809 $as_echo_n "(cached) " >&6
14810 else
14811 lt_cv_ld_exported_symbols_list=no
14812 save_LDFLAGS=$LDFLAGS
14813 echo "_main" > conftest.sym
14814 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
14815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14816 /* end confdefs.h. */
14817
14818 int
14819 main ()
14820 {
14821
14822 ;
14823 return 0;
14824 }
14825 _ACEOF
14826 if ac_fn_c_try_link "$LINENO"; then :
14827 lt_cv_ld_exported_symbols_list=yes
14828 else
14829 lt_cv_ld_exported_symbols_list=no
14830 fi
14831 rm -f core conftest.err conftest.$ac_objext \
14832 conftest$ac_exeext conftest.$ac_ext
14833 LDFLAGS="$save_LDFLAGS"
14834
14835 fi
14836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
14837 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
14839 $as_echo_n "checking for -force_load linker flag... " >&6; }
14840 if test "${lt_cv_ld_force_load+set}" = set; then :
14841 $as_echo_n "(cached) " >&6
14842 else
14843 lt_cv_ld_force_load=no
14844 cat > conftest.c << _LT_EOF
14845 int forced_loaded() { return 2;}
14846 _LT_EOF
14847 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
14848 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14849 echo "$AR cru libconftest.a conftest.o" >&5
14850 $AR cru libconftest.a conftest.o 2>&5
14851 cat > conftest.c << _LT_EOF
14852 int main() { return 0;}
14853 _LT_EOF
14854 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
14855 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14856 _lt_result=$?
14857 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
14858 lt_cv_ld_force_load=yes
14859 else
14860 cat conftest.err >&5
14861 fi
14862 rm -f conftest.err libconftest.a conftest conftest.c
14863 rm -rf conftest.dSYM
14864
14865 fi
14866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
14867 $as_echo "$lt_cv_ld_force_load" >&6; }
14868 case $host_os in
14869 rhapsody* | darwin1.[012])
14870 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14871 darwin1.*)
14872 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14873 darwin*) # darwin 5.x on
14874 # if running on 10.5 or later, the deployment target defaults
14875 # to the OS version, if on x86, and 10.4, the deployment
14876 # target defaults to 10.4. Don't you love it?
14877 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14878 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14879 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14880 10.[012][,.]*)
14881 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14882 10.*)
14883 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14884 esac
14885 ;;
14886 esac
14887 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14888 _lt_dar_single_mod='$single_module'
14889 fi
14890 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14891 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14892 else
14893 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14894 fi
14895 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
14896 _lt_dsymutil='~$DSYMUTIL $lib || :'
14897 else
14898 _lt_dsymutil=
14899 fi
14900 ;;
14901 esac
14902
14903
14904 for ac_header in dlfcn.h
14905 do :
14906 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
14907 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
14908 cat >>confdefs.h <<_ACEOF
14909 #define HAVE_DLFCN_H 1
14910 _ACEOF
14911
14912 fi
14913 done
14914
14915
14916
14917
14918
14919 # Set options
14920
14921
14922
14923 enable_dlopen=no
14924
14925
14926 enable_win32_dll=no
14927
14928
14929 # Check whether --enable-shared was given.
14930 if test "${enable_shared+set}" = set; then :
14931 enableval=$enable_shared; p=${PACKAGE-default}
14932 case $enableval in
14933 yes) enable_shared=yes ;;
14934 no) enable_shared=no ;;
14935 *)
14936 enable_shared=no
14937 # Look at the argument we got. We use all the common list separators.
14938 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14939 for pkg in $enableval; do
14940 IFS="$lt_save_ifs"
14941 if test "X$pkg" = "X$p"; then
14942 enable_shared=yes
14943 fi
14944 done
14945 IFS="$lt_save_ifs"
14946 ;;
14947 esac
14948 else
14949 enable_shared=yes
14950 fi
14951
14952
14953
14954
14955
14956
14957
14958
14959
14960 # Check whether --enable-static was given.
14961 if test "${enable_static+set}" = set; then :
14962 enableval=$enable_static; p=${PACKAGE-default}
14963 case $enableval in
14964 yes) enable_static=yes ;;
14965 no) enable_static=no ;;
14966 *)
14967 enable_static=no
14968 # Look at the argument we got. We use all the common list separators.
14969 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14970 for pkg in $enableval; do
14971 IFS="$lt_save_ifs"
14972 if test "X$pkg" = "X$p"; then
14973 enable_static=yes
14974 fi
14975 done
14976 IFS="$lt_save_ifs"
14977 ;;
14978 esac
14979 else
14980 enable_static=yes
14981 fi
14982
14983
14984
14985
14986
14987
14988
14989
14990
14991
14992 # Check whether --with-pic was given.
14993 if test "${with_pic+set}" = set; then :
14994 withval=$with_pic; pic_mode="$withval"
14995 else
14996 pic_mode=default
14997 fi
14998
14999
15000 test -z "$pic_mode" && pic_mode=default
15001
15002
15003
15004
15005
15006
15007
15008 # Check whether --enable-fast-install was given.
15009 if test "${enable_fast_install+set}" = set; then :
15010 enableval=$enable_fast_install; p=${PACKAGE-default}
15011 case $enableval in
15012 yes) enable_fast_install=yes ;;
15013 no) enable_fast_install=no ;;
15014 *)
15015 enable_fast_install=no
15016 # Look at the argument we got. We use all the common list separators.
15017 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15018 for pkg in $enableval; do
15019 IFS="$lt_save_ifs"
15020 if test "X$pkg" = "X$p"; then
15021 enable_fast_install=yes
15022 fi
15023 done
15024 IFS="$lt_save_ifs"
15025 ;;
15026 esac
15027 else
15028 enable_fast_install=yes
15029 fi
15030
15031
15032
15033
15034
15035
15036
15037
15038
15039
15040
15041 # This can be used to rebuild libtool when needed
15042 LIBTOOL_DEPS="$ltmain"
15043
15044 # Always use our own libtool.
15045 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
15046
15047
15048
15049
15050
15051
15052
15053
15054
15055
15056
15057
15058
15059
15060
15061
15062
15063
15064
15065
15066
15067
15068
15069
15070
15071
15072 test -z "$LN_S" && LN_S="ln -s"
15073
15074
15075
15076
15077
15078
15079
15080
15081
15082
15083
15084
15085
15086
15087 if test -n "${ZSH_VERSION+set}" ; then
15088 setopt NO_GLOB_SUBST
15089 fi
15090
15091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
15092 $as_echo_n "checking for objdir... " >&6; }
15093 if test "${lt_cv_objdir+set}" = set; then :
15094 $as_echo_n "(cached) " >&6
15095 else
15096 rm -f .libs 2>/dev/null
15097 mkdir .libs 2>/dev/null
15098 if test -d .libs; then
15099 lt_cv_objdir=.libs
15100 else
15101 # MS-DOS does not allow filenames that begin with a dot.
15102 lt_cv_objdir=_libs
15103 fi
15104 rmdir .libs 2>/dev/null
15105 fi
15106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
15107 $as_echo "$lt_cv_objdir" >&6; }
15108 objdir=$lt_cv_objdir
15109
15110
15111
15112
15113
15114 cat >>confdefs.h <<_ACEOF
15115 #define LT_OBJDIR "$lt_cv_objdir/"
15116 _ACEOF
15117
15118
15119
15120
15121 case $host_os in
15122 aix3*)
15123 # AIX sometimes has problems with the GCC collect2 program. For some
15124 # reason, if we set the COLLECT_NAMES environment variable, the problems
15125 # vanish in a puff of smoke.
15126 if test "X${COLLECT_NAMES+set}" != Xset; then
15127 COLLECT_NAMES=
15128 export COLLECT_NAMES
15129 fi
15130 ;;
15131 esac
15132
15133 # Global variables:
15134 ofile=libtool
15135 can_build_shared=yes
15136
15137 # All known linkers require a `.a' archive for static linking (except MSVC,
15138 # which needs '.lib').
15139 libext=a
15140
15141 with_gnu_ld="$lt_cv_prog_gnu_ld"
15142
15143 old_CC="$CC"
15144 old_CFLAGS="$CFLAGS"
15145
15146 # Set sane defaults for various variables
15147 test -z "$CC" && CC=cc
15148 test -z "$LTCC" && LTCC=$CC
15149 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
15150 test -z "$LD" && LD=ld
15151 test -z "$ac_objext" && ac_objext=o
15152
15153 for cc_temp in $compiler""; do
15154 case $cc_temp in
15155 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15156 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15157 \-*) ;;
15158 *) break;;
15159 esac
15160 done
15161 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
15162
15163
15164 # Only perform the check for file, if the check method requires it
15165 test -z "$MAGIC_CMD" && MAGIC_CMD=file
15166 case $deplibs_check_method in
15167 file_magic*)
15168 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
15169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
15170 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
15171 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
15172 $as_echo_n "(cached) " >&6
15173 else
15174 case $MAGIC_CMD in
15175 [\\/*] | ?:[\\/]*)
15176 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15177 ;;
15178 *)
15179 lt_save_MAGIC_CMD="$MAGIC_CMD"
15180 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15181 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15182 for ac_dir in $ac_dummy; do
15183 IFS="$lt_save_ifs"
15184 test -z "$ac_dir" && ac_dir=.
15185 if test -f $ac_dir/${ac_tool_prefix}file; then
15186 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
15187 if test -n "$file_magic_test_file"; then
15188 case $deplibs_check_method in
15189 "file_magic "*)
15190 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15191 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15192 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15193 $EGREP "$file_magic_regex" > /dev/null; then
15194 :
15195 else
15196 cat <<_LT_EOF 1>&2
15197
15198 *** Warning: the command libtool uses to detect shared libraries,
15199 *** $file_magic_cmd, produces output that libtool cannot recognize.
15200 *** The result is that libtool may fail to recognize shared libraries
15201 *** as such. This will affect the creation of libtool libraries that
15202 *** depend on shared libraries, but programs linked with such libtool
15203 *** libraries will work regardless of this problem. Nevertheless, you
15204 *** may want to report the problem to your system manager and/or to
15205 *** bug-libtool@gnu.org
15206
15207 _LT_EOF
15208 fi ;;
15209 esac
15210 fi
15211 break
15212 fi
15213 done
15214 IFS="$lt_save_ifs"
15215 MAGIC_CMD="$lt_save_MAGIC_CMD"
15216 ;;
15217 esac
15218 fi
15219
15220 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15221 if test -n "$MAGIC_CMD"; then
15222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15223 $as_echo "$MAGIC_CMD" >&6; }
15224 else
15225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15226 $as_echo "no" >&6; }
15227 fi
15228
15229
15230
15231
15232
15233 if test -z "$lt_cv_path_MAGIC_CMD"; then
15234 if test -n "$ac_tool_prefix"; then
15235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
15236 $as_echo_n "checking for file... " >&6; }
15237 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
15238 $as_echo_n "(cached) " >&6
15239 else
15240 case $MAGIC_CMD in
15241 [\\/*] | ?:[\\/]*)
15242 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15243 ;;
15244 *)
15245 lt_save_MAGIC_CMD="$MAGIC_CMD"
15246 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15247 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15248 for ac_dir in $ac_dummy; do
15249 IFS="$lt_save_ifs"
15250 test -z "$ac_dir" && ac_dir=.
15251 if test -f $ac_dir/file; then
15252 lt_cv_path_MAGIC_CMD="$ac_dir/file"
15253 if test -n "$file_magic_test_file"; then
15254 case $deplibs_check_method in
15255 "file_magic "*)
15256 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15257 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15258 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15259 $EGREP "$file_magic_regex" > /dev/null; then
15260 :
15261 else
15262 cat <<_LT_EOF 1>&2
15263
15264 *** Warning: the command libtool uses to detect shared libraries,
15265 *** $file_magic_cmd, produces output that libtool cannot recognize.
15266 *** The result is that libtool may fail to recognize shared libraries
15267 *** as such. This will affect the creation of libtool libraries that
15268 *** depend on shared libraries, but programs linked with such libtool
15269 *** libraries will work regardless of this problem. Nevertheless, you
15270 *** may want to report the problem to your system manager and/or to
15271 *** bug-libtool@gnu.org
15272
15273 _LT_EOF
15274 fi ;;
15275 esac
15276 fi
15277 break
15278 fi
15279 done
15280 IFS="$lt_save_ifs"
15281 MAGIC_CMD="$lt_save_MAGIC_CMD"
15282 ;;
15283 esac
15284 fi
15285
15286 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15287 if test -n "$MAGIC_CMD"; then
15288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15289 $as_echo "$MAGIC_CMD" >&6; }
15290 else
15291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15292 $as_echo "no" >&6; }
15293 fi
15294
15295
15296 else
15297 MAGIC_CMD=:
15298 fi
15299 fi
15300
15301 fi
15302 ;;
15303 esac
15304
15305 # Use C for the default configuration in the libtool script
15306
15307 lt_save_CC="$CC"
15308 ac_ext=c
15309 ac_cpp='$CPP $CPPFLAGS'
15310 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15311 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15312 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15313
15314
15315 # Source file extension for C test sources.
15316 ac_ext=c
15317
15318 # Object file extension for compiled C test sources.
15319 objext=o
15320 objext=$objext
15321
15322 # Code to be used in simple compile tests
15323 lt_simple_compile_test_code="int some_variable = 0;"
15324
15325 # Code to be used in simple link tests
15326 lt_simple_link_test_code='int main(){return(0);}'
15327
15328
15329
15330
15331
15332
15333
15334 # If no C compiler was specified, use CC.
15335 LTCC=${LTCC-"$CC"}
15336
15337 # If no C compiler flags were specified, use CFLAGS.
15338 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15339
15340 # Allow CC to be a program name with arguments.
15341 compiler=$CC
15342
15343 # Save the default compiler, since it gets overwritten when the other
15344 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
15345 compiler_DEFAULT=$CC
15346
15347 # save warnings/boilerplate of simple test code
15348 ac_outfile=conftest.$ac_objext
15349 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15350 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15351 _lt_compiler_boilerplate=`cat conftest.err`
15352 $RM conftest*
15353
15354 ac_outfile=conftest.$ac_objext
15355 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15356 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15357 _lt_linker_boilerplate=`cat conftest.err`
15358 $RM -r conftest*
15359
15360
15361 ## CAVEAT EMPTOR:
15362 ## There is no encapsulation within the following macros, do not change
15363 ## the running order or otherwise move them around unless you know exactly
15364 ## what you are doing...
15365 if test -n "$compiler"; then
15366
15367 lt_prog_compiler_no_builtin_flag=
15368
15369 if test "$GCC" = yes; then
15370 case $cc_basename in
15371 nvcc*)
15372 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
15373 *)
15374 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
15375 esac
15376
15377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15378 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
15379 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
15380 $as_echo_n "(cached) " >&6
15381 else
15382 lt_cv_prog_compiler_rtti_exceptions=no
15383 ac_outfile=conftest.$ac_objext
15384 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15385 lt_compiler_flag="-fno-rtti -fno-exceptions"
15386 # Insert the option either (1) after the last *FLAGS variable, or
15387 # (2) before a word containing "conftest.", or (3) at the end.
15388 # Note that $ac_compile itself does not contain backslashes and begins
15389 # with a dollar sign (not a hyphen), so the echo should work correctly.
15390 # The option is referenced via a variable to avoid confusing sed.
15391 lt_compile=`echo "$ac_compile" | $SED \
15392 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15393 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15394 -e 's:$: $lt_compiler_flag:'`
15395 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15396 (eval "$lt_compile" 2>conftest.err)
15397 ac_status=$?
15398 cat conftest.err >&5
15399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15400 if (exit $ac_status) && test -s "$ac_outfile"; then
15401 # The compiler can only warn and ignore the option if not recognized
15402 # So say no if there are warnings other than the usual output.
15403 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15404 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15405 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15406 lt_cv_prog_compiler_rtti_exceptions=yes
15407 fi
15408 fi
15409 $RM conftest*
15410
15411 fi
15412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15413 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15414
15415 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15416 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
15417 else
15418 :
15419 fi
15420
15421 fi
15422
15423
15424
15425
15426
15427
15428 lt_prog_compiler_wl=
15429 lt_prog_compiler_pic=
15430 lt_prog_compiler_static=
15431
15432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15433 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15434
15435 if test "$GCC" = yes; then
15436 lt_prog_compiler_wl='-Wl,'
15437 lt_prog_compiler_static='-static'
15438
15439 case $host_os in
15440 aix*)
15441 # All AIX code is PIC.
15442 if test "$host_cpu" = ia64; then
15443 # AIX 5 now supports IA64 processor
15444 lt_prog_compiler_static='-Bstatic'
15445 fi
15446 lt_prog_compiler_pic='-fPIC'
15447 ;;
15448
15449 amigaos*)
15450 case $host_cpu in
15451 powerpc)
15452 # see comment about AmigaOS4 .so support
15453 lt_prog_compiler_pic='-fPIC'
15454 ;;
15455 m68k)
15456 # FIXME: we need at least 68020 code to build shared libraries, but
15457 # adding the `-m68020' flag to GCC prevents building anything better,
15458 # like `-m68040'.
15459 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15460 ;;
15461 esac
15462 ;;
15463
15464 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15465 # PIC is the default for these OSes.
15466 ;;
15467
15468 mingw* | cygwin* | pw32* | os2* | cegcc*)
15469 # This hack is so that the source file can tell whether it is being
15470 # built for inclusion in a dll (and should export symbols for example).
15471 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15472 # (--disable-auto-import) libraries
15473 lt_prog_compiler_pic='-DDLL_EXPORT'
15474 ;;
15475
15476 darwin* | rhapsody*)
15477 # PIC is the default on this platform
15478 # Common symbols not allowed in MH_DYLIB files
15479 lt_prog_compiler_pic='-fno-common'
15480 ;;
15481
15482 haiku*)
15483 # PIC is the default for Haiku.
15484 # The "-static" flag exists, but is broken.
15485 lt_prog_compiler_static=
15486 ;;
15487
15488 hpux*)
15489 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15490 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15491 # sets the default TLS model and affects inlining.
15492 case $host_cpu in
15493 hppa*64*)
15494 # +Z the default
15495 ;;
15496 *)
15497 lt_prog_compiler_pic='-fPIC'
15498 ;;
15499 esac
15500 ;;
15501
15502 interix[3-9]*)
15503 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15504 # Instead, we relocate shared libraries at runtime.
15505 ;;
15506
15507 msdosdjgpp*)
15508 # Just because we use GCC doesn't mean we suddenly get shared libraries
15509 # on systems that don't support them.
15510 lt_prog_compiler_can_build_shared=no
15511 enable_shared=no
15512 ;;
15513
15514 *nto* | *qnx*)
15515 # QNX uses GNU C++, but need to define -shared option too, otherwise
15516 # it will coredump.
15517 lt_prog_compiler_pic='-fPIC -shared'
15518 ;;
15519
15520 sysv4*MP*)
15521 if test -d /usr/nec; then
15522 lt_prog_compiler_pic=-Kconform_pic
15523 fi
15524 ;;
15525
15526 *)
15527 lt_prog_compiler_pic='-fPIC'
15528 ;;
15529 esac
15530
15531 case $cc_basename in
15532 nvcc*) # Cuda Compiler Driver 2.2
15533 lt_prog_compiler_wl='-Xlinker '
15534 lt_prog_compiler_pic='-Xcompiler -fPIC'
15535 ;;
15536 esac
15537 else
15538 # PORTME Check for flag to pass linker flags through the system compiler.
15539 case $host_os in
15540 aix*)
15541 lt_prog_compiler_wl='-Wl,'
15542 if test "$host_cpu" = ia64; then
15543 # AIX 5 now supports IA64 processor
15544 lt_prog_compiler_static='-Bstatic'
15545 else
15546 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15547 fi
15548 ;;
15549
15550 mingw* | cygwin* | pw32* | os2* | cegcc*)
15551 # This hack is so that the source file can tell whether it is being
15552 # built for inclusion in a dll (and should export symbols for example).
15553 lt_prog_compiler_pic='-DDLL_EXPORT'
15554 ;;
15555
15556 hpux9* | hpux10* | hpux11*)
15557 lt_prog_compiler_wl='-Wl,'
15558 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15559 # not for PA HP-UX.
15560 case $host_cpu in
15561 hppa*64*|ia64*)
15562 # +Z the default
15563 ;;
15564 *)
15565 lt_prog_compiler_pic='+Z'
15566 ;;
15567 esac
15568 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15569 lt_prog_compiler_static='${wl}-a ${wl}archive'
15570 ;;
15571
15572 irix5* | irix6* | nonstopux*)
15573 lt_prog_compiler_wl='-Wl,'
15574 # PIC (with -KPIC) is the default.
15575 lt_prog_compiler_static='-non_shared'
15576 ;;
15577
15578 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15579 case $cc_basename in
15580 # old Intel for x86_64 which still supported -KPIC.
15581 ecc*)
15582 lt_prog_compiler_wl='-Wl,'
15583 lt_prog_compiler_pic='-KPIC'
15584 lt_prog_compiler_static='-static'
15585 ;;
15586 # icc used to be incompatible with GCC.
15587 # ICC 10 doesn't accept -KPIC any more.
15588 icc* | ifort*)
15589 lt_prog_compiler_wl='-Wl,'
15590 lt_prog_compiler_pic='-fPIC'
15591 lt_prog_compiler_static='-static'
15592 ;;
15593 # Lahey Fortran 8.1.
15594 lf95*)
15595 lt_prog_compiler_wl='-Wl,'
15596 lt_prog_compiler_pic='--shared'
15597 lt_prog_compiler_static='--static'
15598 ;;
15599 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15600 # Portland Group compilers (*not* the Pentium gcc compiler,
15601 # which looks to be a dead project)
15602 lt_prog_compiler_wl='-Wl,'
15603 lt_prog_compiler_pic='-fpic'
15604 lt_prog_compiler_static='-Bstatic'
15605 ;;
15606 ccc*)
15607 lt_prog_compiler_wl='-Wl,'
15608 # All Alpha code is PIC.
15609 lt_prog_compiler_static='-non_shared'
15610 ;;
15611 xl* | bgxl* | bgf* | mpixl*)
15612 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15613 lt_prog_compiler_wl='-Wl,'
15614 lt_prog_compiler_pic='-qpic'
15615 lt_prog_compiler_static='-qstaticlink'
15616 ;;
15617 *)
15618 case `$CC -V 2>&1 | sed 5q` in
15619 *Sun\ F* | *Sun*Fortran*)
15620 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15621 lt_prog_compiler_pic='-KPIC'
15622 lt_prog_compiler_static='-Bstatic'
15623 lt_prog_compiler_wl=''
15624 ;;
15625 *Sun\ C*)
15626 # Sun C 5.9
15627 lt_prog_compiler_pic='-KPIC'
15628 lt_prog_compiler_static='-Bstatic'
15629 lt_prog_compiler_wl='-Wl,'
15630 ;;
15631 esac
15632 ;;
15633 esac
15634 ;;
15635
15636 newsos6)
15637 lt_prog_compiler_pic='-KPIC'
15638 lt_prog_compiler_static='-Bstatic'
15639 ;;
15640
15641 *nto* | *qnx*)
15642 # QNX uses GNU C++, but need to define -shared option too, otherwise
15643 # it will coredump.
15644 lt_prog_compiler_pic='-fPIC -shared'
15645 ;;
15646
15647 osf3* | osf4* | osf5*)
15648 lt_prog_compiler_wl='-Wl,'
15649 # All OSF/1 code is PIC.
15650 lt_prog_compiler_static='-non_shared'
15651 ;;
15652
15653 rdos*)
15654 lt_prog_compiler_static='-non_shared'
15655 ;;
15656
15657 solaris*)
15658 lt_prog_compiler_pic='-KPIC'
15659 lt_prog_compiler_static='-Bstatic'
15660 case $cc_basename in
15661 f77* | f90* | f95*)
15662 lt_prog_compiler_wl='-Qoption ld ';;
15663 *)
15664 lt_prog_compiler_wl='-Wl,';;
15665 esac
15666 ;;
15667
15668 sunos4*)
15669 lt_prog_compiler_wl='-Qoption ld '
15670 lt_prog_compiler_pic='-PIC'
15671 lt_prog_compiler_static='-Bstatic'
15672 ;;
15673
15674 sysv4 | sysv4.2uw2* | sysv4.3*)
15675 lt_prog_compiler_wl='-Wl,'
15676 lt_prog_compiler_pic='-KPIC'
15677 lt_prog_compiler_static='-Bstatic'
15678 ;;
15679
15680 sysv4*MP*)
15681 if test -d /usr/nec ;then
15682 lt_prog_compiler_pic='-Kconform_pic'
15683 lt_prog_compiler_static='-Bstatic'
15684 fi
15685 ;;
15686
15687 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15688 lt_prog_compiler_wl='-Wl,'
15689 lt_prog_compiler_pic='-KPIC'
15690 lt_prog_compiler_static='-Bstatic'
15691 ;;
15692
15693 unicos*)
15694 lt_prog_compiler_wl='-Wl,'
15695 lt_prog_compiler_can_build_shared=no
15696 ;;
15697
15698 uts4*)
15699 lt_prog_compiler_pic='-pic'
15700 lt_prog_compiler_static='-Bstatic'
15701 ;;
15702
15703 *)
15704 lt_prog_compiler_can_build_shared=no
15705 ;;
15706 esac
15707 fi
15708
15709 case $host_os in
15710 # For platforms which do not support PIC, -DPIC is meaningless:
15711 *djgpp*)
15712 lt_prog_compiler_pic=
15713 ;;
15714 *)
15715 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15716 ;;
15717 esac
15718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
15719 $as_echo "$lt_prog_compiler_pic" >&6; }
15720
15721
15722
15723
15724
15725
15726 #
15727 # Check to make sure the PIC flag actually works.
15728 #
15729 if test -n "$lt_prog_compiler_pic"; then
15730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15731 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
15732 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
15733 $as_echo_n "(cached) " >&6
15734 else
15735 lt_cv_prog_compiler_pic_works=no
15736 ac_outfile=conftest.$ac_objext
15737 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15738 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15739 # Insert the option either (1) after the last *FLAGS variable, or
15740 # (2) before a word containing "conftest.", or (3) at the end.
15741 # Note that $ac_compile itself does not contain backslashes and begins
15742 # with a dollar sign (not a hyphen), so the echo should work correctly.
15743 # The option is referenced via a variable to avoid confusing sed.
15744 lt_compile=`echo "$ac_compile" | $SED \
15745 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15746 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15747 -e 's:$: $lt_compiler_flag:'`
15748 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15749 (eval "$lt_compile" 2>conftest.err)
15750 ac_status=$?
15751 cat conftest.err >&5
15752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15753 if (exit $ac_status) && test -s "$ac_outfile"; then
15754 # The compiler can only warn and ignore the option if not recognized
15755 # So say no if there are warnings other than the usual output.
15756 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15757 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15758 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15759 lt_cv_prog_compiler_pic_works=yes
15760 fi
15761 fi
15762 $RM conftest*
15763
15764 fi
15765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15766 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15767
15768 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15769 case $lt_prog_compiler_pic in
15770 "" | " "*) ;;
15771 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15772 esac
15773 else
15774 lt_prog_compiler_pic=
15775 lt_prog_compiler_can_build_shared=no
15776 fi
15777
15778 fi
15779
15780
15781
15782
15783
15784
15785 #
15786 # Check to make sure the static flag actually works.
15787 #
15788 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15790 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15791 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
15792 $as_echo_n "(cached) " >&6
15793 else
15794 lt_cv_prog_compiler_static_works=no
15795 save_LDFLAGS="$LDFLAGS"
15796 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15797 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15798 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15799 # The linker can only warn and ignore the option if not recognized
15800 # So say no if there are warnings
15801 if test -s conftest.err; then
15802 # Append any errors to the config.log.
15803 cat conftest.err 1>&5
15804 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15805 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15806 if diff conftest.exp conftest.er2 >/dev/null; then
15807 lt_cv_prog_compiler_static_works=yes
15808 fi
15809 else
15810 lt_cv_prog_compiler_static_works=yes
15811 fi
15812 fi
15813 $RM -r conftest*
15814 LDFLAGS="$save_LDFLAGS"
15815
15816 fi
15817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15818 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15819
15820 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15821 :
15822 else
15823 lt_prog_compiler_static=
15824 fi
15825
15826
15827
15828
15829
15830
15831
15832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15833 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15834 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15835 $as_echo_n "(cached) " >&6
15836 else
15837 lt_cv_prog_compiler_c_o=no
15838 $RM -r conftest 2>/dev/null
15839 mkdir conftest
15840 cd conftest
15841 mkdir out
15842 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15843
15844 lt_compiler_flag="-o out/conftest2.$ac_objext"
15845 # Insert the option either (1) after the last *FLAGS variable, or
15846 # (2) before a word containing "conftest.", or (3) at the end.
15847 # Note that $ac_compile itself does not contain backslashes and begins
15848 # with a dollar sign (not a hyphen), so the echo should work correctly.
15849 lt_compile=`echo "$ac_compile" | $SED \
15850 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15851 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15852 -e 's:$: $lt_compiler_flag:'`
15853 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15854 (eval "$lt_compile" 2>out/conftest.err)
15855 ac_status=$?
15856 cat out/conftest.err >&5
15857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15858 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15859 then
15860 # The compiler can only warn and ignore the option if not recognized
15861 # So say no if there are warnings
15862 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15863 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15864 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15865 lt_cv_prog_compiler_c_o=yes
15866 fi
15867 fi
15868 chmod u+w . 2>&5
15869 $RM conftest*
15870 # SGI C++ compiler will create directory out/ii_files/ for
15871 # template instantiation
15872 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15873 $RM out/* && rmdir out
15874 cd ..
15875 $RM -r conftest
15876 $RM conftest*
15877
15878 fi
15879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15880 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15881
15882
15883
15884
15885
15886
15887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15888 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15889 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15890 $as_echo_n "(cached) " >&6
15891 else
15892 lt_cv_prog_compiler_c_o=no
15893 $RM -r conftest 2>/dev/null
15894 mkdir conftest
15895 cd conftest
15896 mkdir out
15897 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15898
15899 lt_compiler_flag="-o out/conftest2.$ac_objext"
15900 # Insert the option either (1) after the last *FLAGS variable, or
15901 # (2) before a word containing "conftest.", or (3) at the end.
15902 # Note that $ac_compile itself does not contain backslashes and begins
15903 # with a dollar sign (not a hyphen), so the echo should work correctly.
15904 lt_compile=`echo "$ac_compile" | $SED \
15905 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15906 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15907 -e 's:$: $lt_compiler_flag:'`
15908 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15909 (eval "$lt_compile" 2>out/conftest.err)
15910 ac_status=$?
15911 cat out/conftest.err >&5
15912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15913 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15914 then
15915 # The compiler can only warn and ignore the option if not recognized
15916 # So say no if there are warnings
15917 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15918 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15919 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15920 lt_cv_prog_compiler_c_o=yes
15921 fi
15922 fi
15923 chmod u+w . 2>&5
15924 $RM conftest*
15925 # SGI C++ compiler will create directory out/ii_files/ for
15926 # template instantiation
15927 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15928 $RM out/* && rmdir out
15929 cd ..
15930 $RM -r conftest
15931 $RM conftest*
15932
15933 fi
15934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15935 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15936
15937
15938
15939
15940 hard_links="nottested"
15941 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15942 # do not overwrite the value of need_locks provided by the user
15943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15944 $as_echo_n "checking if we can lock with hard links... " >&6; }
15945 hard_links=yes
15946 $RM conftest*
15947 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15948 touch conftest.a
15949 ln conftest.a conftest.b 2>&5 || hard_links=no
15950 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15952 $as_echo "$hard_links" >&6; }
15953 if test "$hard_links" = no; then
15954 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15955 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15956 need_locks=warn
15957 fi
15958 else
15959 need_locks=no
15960 fi
15961
15962
15963
15964
15965
15966
15967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15968 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15969
15970 runpath_var=
15971 allow_undefined_flag=
15972 always_export_symbols=no
15973 archive_cmds=
15974 archive_expsym_cmds=
15975 compiler_needs_object=no
15976 enable_shared_with_static_runtimes=no
15977 export_dynamic_flag_spec=
15978 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15979 hardcode_automatic=no
15980 hardcode_direct=no
15981 hardcode_direct_absolute=no
15982 hardcode_libdir_flag_spec=
15983 hardcode_libdir_flag_spec_ld=
15984 hardcode_libdir_separator=
15985 hardcode_minus_L=no
15986 hardcode_shlibpath_var=unsupported
15987 inherit_rpath=no
15988 link_all_deplibs=unknown
15989 module_cmds=
15990 module_expsym_cmds=
15991 old_archive_from_new_cmds=
15992 old_archive_from_expsyms_cmds=
15993 thread_safe_flag_spec=
15994 whole_archive_flag_spec=
15995 # include_expsyms should be a list of space-separated symbols to be *always*
15996 # included in the symbol list
15997 include_expsyms=
15998 # exclude_expsyms can be an extended regexp of symbols to exclude
15999 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16000 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16001 # as well as any symbol that contains `d'.
16002 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16003 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16004 # platforms (ab)use it in PIC code, but their linkers get confused if
16005 # the symbol is explicitly referenced. Since portable code cannot
16006 # rely on this symbol name, it's probably fine to never include it in
16007 # preloaded symbol tables.
16008 # Exclude shared library initialization/finalization symbols.
16009 extract_expsyms_cmds=
16010
16011 case $host_os in
16012 cygwin* | mingw* | pw32* | cegcc*)
16013 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16014 # When not using gcc, we currently assume that we are using
16015 # Microsoft Visual C++.
16016 if test "$GCC" != yes; then
16017 with_gnu_ld=no
16018 fi
16019 ;;
16020 interix*)
16021 # we just hope/assume this is gcc and not c89 (= MSVC++)
16022 with_gnu_ld=yes
16023 ;;
16024 openbsd*)
16025 with_gnu_ld=no
16026 ;;
16027 esac
16028
16029 ld_shlibs=yes
16030
16031 # On some targets, GNU ld is compatible enough with the native linker
16032 # that we're better off using the native interface for both.
16033 lt_use_gnu_ld_interface=no
16034 if test "$with_gnu_ld" = yes; then
16035 case $host_os in
16036 aix*)
16037 # The AIX port of GNU ld has always aspired to compatibility
16038 # with the native linker. However, as the warning in the GNU ld
16039 # block says, versions before 2.19.5* couldn't really create working
16040 # shared libraries, regardless of the interface used.
16041 case `$LD -v 2>&1` in
16042 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
16043 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
16044 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
16045 *)
16046 lt_use_gnu_ld_interface=yes
16047 ;;
16048 esac
16049 ;;
16050 *)
16051 lt_use_gnu_ld_interface=yes
16052 ;;
16053 esac
16054 fi
16055
16056 if test "$lt_use_gnu_ld_interface" = yes; then
16057 # If archive_cmds runs LD, not CC, wlarc should be empty
16058 wlarc='${wl}'
16059
16060 # Set some defaults for GNU ld with shared library support. These
16061 # are reset later if shared libraries are not supported. Putting them
16062 # here allows them to be overridden if necessary.
16063 runpath_var=LD_RUN_PATH
16064 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16065 export_dynamic_flag_spec='${wl}--export-dynamic'
16066 # ancient GNU ld didn't support --whole-archive et. al.
16067 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
16068 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16069 else
16070 whole_archive_flag_spec=
16071 fi
16072 supports_anon_versioning=no
16073 case `$LD -v 2>&1` in
16074 *GNU\ gold*) supports_anon_versioning=yes ;;
16075 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16076 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16077 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16078 *\ 2.11.*) ;; # other 2.11 versions
16079 *) supports_anon_versioning=yes ;;
16080 esac
16081
16082 # See if GNU ld supports shared libraries.
16083 case $host_os in
16084 aix[3-9]*)
16085 # On AIX/PPC, the GNU linker is very broken
16086 if test "$host_cpu" != ia64; then
16087 ld_shlibs=no
16088 cat <<_LT_EOF 1>&2
16089
16090 *** Warning: the GNU linker, at least up to release 2.19, is reported
16091 *** to be unable to reliably create shared libraries on AIX.
16092 *** Therefore, libtool is disabling shared libraries support. If you
16093 *** really care for shared libraries, you may want to install binutils
16094 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
16095 *** You will then need to restart the configuration process.
16096
16097 _LT_EOF
16098 fi
16099 ;;
16100
16101 amigaos*)
16102 case $host_cpu in
16103 powerpc)
16104 # see comment about AmigaOS4 .so support
16105 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16106 archive_expsym_cmds=''
16107 ;;
16108 m68k)
16109 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)'
16110 hardcode_libdir_flag_spec='-L$libdir'
16111 hardcode_minus_L=yes
16112 ;;
16113 esac
16114 ;;
16115
16116 beos*)
16117 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16118 allow_undefined_flag=unsupported
16119 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16120 # support --undefined. This deserves some investigation. FIXME
16121 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16122 else
16123 ld_shlibs=no
16124 fi
16125 ;;
16126
16127 cygwin* | mingw* | pw32* | cegcc*)
16128 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
16129 # as there is no search path for DLLs.
16130 hardcode_libdir_flag_spec='-L$libdir'
16131 export_dynamic_flag_spec='${wl}--export-all-symbols'
16132 allow_undefined_flag=unsupported
16133 always_export_symbols=no
16134 enable_shared_with_static_runtimes=yes
16135 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16136
16137 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
16138 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16139 # If the export-symbols file already is a .def file (1st line
16140 # is EXPORTS), use it as is; otherwise, prepend...
16141 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16142 cp $export_symbols $output_objdir/$soname.def;
16143 else
16144 echo EXPORTS > $output_objdir/$soname.def;
16145 cat $export_symbols >> $output_objdir/$soname.def;
16146 fi~
16147 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16148 else
16149 ld_shlibs=no
16150 fi
16151 ;;
16152
16153 haiku*)
16154 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16155 link_all_deplibs=yes
16156 ;;
16157
16158 interix[3-9]*)
16159 hardcode_direct=no
16160 hardcode_shlibpath_var=no
16161 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16162 export_dynamic_flag_spec='${wl}-E'
16163 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16164 # Instead, shared libraries are loaded at an image base (0x10000000 by
16165 # default) and relocated if they conflict, which is a slow very memory
16166 # consuming and fragmenting process. To avoid this, we pick a random,
16167 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16168 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16169 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16170 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'
16171 ;;
16172
16173 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
16174 tmp_diet=no
16175 if test "$host_os" = linux-dietlibc; then
16176 case $cc_basename in
16177 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
16178 esac
16179 fi
16180 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
16181 && test "$tmp_diet" = no
16182 then
16183 tmp_addflag=' $pic_flag'
16184 tmp_sharedflag='-shared'
16185 case $cc_basename,$host_cpu in
16186 pgcc*) # Portland Group C compiler
16187 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'
16188 tmp_addflag=' $pic_flag'
16189 ;;
16190 pgf77* | pgf90* | pgf95* | pgfortran*)
16191 # Portland Group f77 and f90 compilers
16192 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'
16193 tmp_addflag=' $pic_flag -Mnomain' ;;
16194 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16195 tmp_addflag=' -i_dynamic' ;;
16196 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16197 tmp_addflag=' -i_dynamic -nofor_main' ;;
16198 ifc* | ifort*) # Intel Fortran compiler
16199 tmp_addflag=' -nofor_main' ;;
16200 lf95*) # Lahey Fortran 8.1
16201 whole_archive_flag_spec=
16202 tmp_sharedflag='--shared' ;;
16203 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
16204 tmp_sharedflag='-qmkshrobj'
16205 tmp_addflag= ;;
16206 nvcc*) # Cuda Compiler Driver 2.2
16207 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'
16208 compiler_needs_object=yes
16209 ;;
16210 esac
16211 case `$CC -V 2>&1 | sed 5q` in
16212 *Sun\ C*) # Sun C 5.9
16213 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'
16214 compiler_needs_object=yes
16215 tmp_sharedflag='-G' ;;
16216 *Sun\ F*) # Sun Fortran 8.3
16217 tmp_sharedflag='-G' ;;
16218 esac
16219 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16220
16221 if test "x$supports_anon_versioning" = xyes; then
16222 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16223 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16224 echo "local: *; };" >> $output_objdir/$libname.ver~
16225 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16226 fi
16227
16228 case $cc_basename in
16229 xlf* | bgf* | bgxlf* | mpixlf*)
16230 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
16231 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
16232 hardcode_libdir_flag_spec=
16233 hardcode_libdir_flag_spec_ld='-rpath $libdir'
16234 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
16235 if test "x$supports_anon_versioning" = xyes; then
16236 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16237 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16238 echo "local: *; };" >> $output_objdir/$libname.ver~
16239 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
16240 fi
16241 ;;
16242 esac
16243 else
16244 ld_shlibs=no
16245 fi
16246 ;;
16247
16248 netbsd*)
16249 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16250 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16251 wlarc=
16252 else
16253 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16254 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16255 fi
16256 ;;
16257
16258 solaris*)
16259 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
16260 ld_shlibs=no
16261 cat <<_LT_EOF 1>&2
16262
16263 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16264 *** create shared libraries on Solaris systems. Therefore, libtool
16265 *** is disabling shared libraries support. We urge you to upgrade GNU
16266 *** binutils to release 2.9.1 or newer. Another option is to modify
16267 *** your PATH or compiler configuration so that the native linker is
16268 *** used, and then restart.
16269
16270 _LT_EOF
16271 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16272 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16273 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16274 else
16275 ld_shlibs=no
16276 fi
16277 ;;
16278
16279 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16280 case `$LD -v 2>&1` in
16281 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16282 ld_shlibs=no
16283 cat <<_LT_EOF 1>&2
16284
16285 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16286 *** reliably create shared libraries on SCO systems. Therefore, libtool
16287 *** is disabling shared libraries support. We urge you to upgrade GNU
16288 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16289 *** your PATH or compiler configuration so that the native linker is
16290 *** used, and then restart.
16291
16292 _LT_EOF
16293 ;;
16294 *)
16295 # For security reasons, it is highly recommended that you always
16296 # use absolute paths for naming shared libraries, and exclude the
16297 # DT_RUNPATH tag from executables and libraries. But doing so
16298 # requires that you compile everything twice, which is a pain.
16299 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16300 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16301 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16302 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16303 else
16304 ld_shlibs=no
16305 fi
16306 ;;
16307 esac
16308 ;;
16309
16310 sunos4*)
16311 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16312 wlarc=
16313 hardcode_direct=yes
16314 hardcode_shlibpath_var=no
16315 ;;
16316
16317 *)
16318 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16319 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16320 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16321 else
16322 ld_shlibs=no
16323 fi
16324 ;;
16325 esac
16326
16327 if test "$ld_shlibs" = no; then
16328 runpath_var=
16329 hardcode_libdir_flag_spec=
16330 export_dynamic_flag_spec=
16331 whole_archive_flag_spec=
16332 fi
16333 else
16334 # PORTME fill in a description of your system's linker (not GNU ld)
16335 case $host_os in
16336 aix3*)
16337 allow_undefined_flag=unsupported
16338 always_export_symbols=yes
16339 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'
16340 # Note: this linker hardcodes the directories in LIBPATH if there
16341 # are no directories specified by -L.
16342 hardcode_minus_L=yes
16343 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16344 # Neither direct hardcoding nor static linking is supported with a
16345 # broken collect2.
16346 hardcode_direct=unsupported
16347 fi
16348 ;;
16349
16350 aix[4-9]*)
16351 if test "$host_cpu" = ia64; then
16352 # On IA64, the linker does run time linking by default, so we don't
16353 # have to do anything special.
16354 aix_use_runtimelinking=no
16355 exp_sym_flag='-Bexport'
16356 no_entry_flag=""
16357 else
16358 # If we're using GNU nm, then we don't want the "-C" option.
16359 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16360 # Also, AIX nm treats weak defined symbols like other global
16361 # defined symbols, whereas GNU nm marks them as "W".
16362 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16363 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'
16364 else
16365 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
16366 fi
16367 aix_use_runtimelinking=no
16368
16369 # Test if we are trying to use run time linking or normal
16370 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16371 # need to do runtime linking.
16372 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16373 for ld_flag in $LDFLAGS; do
16374 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16375 aix_use_runtimelinking=yes
16376 break
16377 fi
16378 done
16379 ;;
16380 esac
16381
16382 exp_sym_flag='-bexport'
16383 no_entry_flag='-bnoentry'
16384 fi
16385
16386 # When large executables or shared objects are built, AIX ld can
16387 # have problems creating the table of contents. If linking a library
16388 # or program results in "error TOC overflow" add -mminimal-toc to
16389 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16390 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16391
16392 archive_cmds=''
16393 hardcode_direct=yes
16394 hardcode_direct_absolute=yes
16395 hardcode_libdir_separator=':'
16396 link_all_deplibs=yes
16397 file_list_spec='${wl}-f,'
16398
16399 if test "$GCC" = yes; then
16400 case $host_os in aix4.[012]|aix4.[012].*)
16401 # We only want to do this on AIX 4.2 and lower, the check
16402 # below for broken collect2 doesn't work under 4.3+
16403 collect2name=`${CC} -print-prog-name=collect2`
16404 if test -f "$collect2name" &&
16405 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16406 then
16407 # We have reworked collect2
16408 :
16409 else
16410 # We have old collect2
16411 hardcode_direct=unsupported
16412 # It fails to find uninstalled libraries when the uninstalled
16413 # path is not listed in the libpath. Setting hardcode_minus_L
16414 # to unsupported forces relinking
16415 hardcode_minus_L=yes
16416 hardcode_libdir_flag_spec='-L$libdir'
16417 hardcode_libdir_separator=
16418 fi
16419 ;;
16420 esac
16421 shared_flag='-shared'
16422 if test "$aix_use_runtimelinking" = yes; then
16423 shared_flag="$shared_flag "'${wl}-G'
16424 fi
16425 else
16426 # not using gcc
16427 if test "$host_cpu" = ia64; then
16428 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16429 # chokes on -Wl,-G. The following line is correct:
16430 shared_flag='-G'
16431 else
16432 if test "$aix_use_runtimelinking" = yes; then
16433 shared_flag='${wl}-G'
16434 else
16435 shared_flag='${wl}-bM:SRE'
16436 fi
16437 fi
16438 fi
16439
16440 export_dynamic_flag_spec='${wl}-bexpall'
16441 # It seems that -bexpall does not export symbols beginning with
16442 # underscore (_), so it is better to generate a list of symbols to export.
16443 always_export_symbols=yes
16444 if test "$aix_use_runtimelinking" = yes; then
16445 # Warning - without using the other runtime loading flags (-brtl),
16446 # -berok will link without error, but may produce a broken library.
16447 allow_undefined_flag='-berok'
16448 # Determine the default libpath from the value encoded in an
16449 # empty executable.
16450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16451 /* end confdefs.h. */
16452
16453 int
16454 main ()
16455 {
16456
16457 ;
16458 return 0;
16459 }
16460 _ACEOF
16461 if ac_fn_c_try_link "$LINENO"; then :
16462
16463 lt_aix_libpath_sed='
16464 /Import File Strings/,/^$/ {
16465 /^0/ {
16466 s/^0 *\(.*\)$/\1/
16467 p
16468 }
16469 }'
16470 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16471 # Check for a 64-bit object if we didn't find anything.
16472 if test -z "$aix_libpath"; then
16473 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16474 fi
16475 fi
16476 rm -f core conftest.err conftest.$ac_objext \
16477 conftest$ac_exeext conftest.$ac_ext
16478 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16479
16480 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16481 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"
16482 else
16483 if test "$host_cpu" = ia64; then
16484 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
16485 allow_undefined_flag="-z nodefs"
16486 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"
16487 else
16488 # Determine the default libpath from the value encoded in an
16489 # empty executable.
16490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16491 /* end confdefs.h. */
16492
16493 int
16494 main ()
16495 {
16496
16497 ;
16498 return 0;
16499 }
16500 _ACEOF
16501 if ac_fn_c_try_link "$LINENO"; then :
16502
16503 lt_aix_libpath_sed='
16504 /Import File Strings/,/^$/ {
16505 /^0/ {
16506 s/^0 *\(.*\)$/\1/
16507 p
16508 }
16509 }'
16510 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16511 # Check for a 64-bit object if we didn't find anything.
16512 if test -z "$aix_libpath"; then
16513 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16514 fi
16515 fi
16516 rm -f core conftest.err conftest.$ac_objext \
16517 conftest$ac_exeext conftest.$ac_ext
16518 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16519
16520 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16521 # Warning - without using the other run time loading flags,
16522 # -berok will link without error, but may produce a broken library.
16523 no_undefined_flag=' ${wl}-bernotok'
16524 allow_undefined_flag=' ${wl}-berok'
16525 if test "$with_gnu_ld" = yes; then
16526 # We only use this code for GNU lds that support --whole-archive.
16527 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16528 else
16529 # Exported symbols can be pulled into shared objects from archives
16530 whole_archive_flag_spec='$convenience'
16531 fi
16532 archive_cmds_need_lc=yes
16533 # This is similar to how AIX traditionally builds its shared libraries.
16534 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'
16535 fi
16536 fi
16537 ;;
16538
16539 amigaos*)
16540 case $host_cpu in
16541 powerpc)
16542 # see comment about AmigaOS4 .so support
16543 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16544 archive_expsym_cmds=''
16545 ;;
16546 m68k)
16547 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)'
16548 hardcode_libdir_flag_spec='-L$libdir'
16549 hardcode_minus_L=yes
16550 ;;
16551 esac
16552 ;;
16553
16554 bsdi[45]*)
16555 export_dynamic_flag_spec=-rdynamic
16556 ;;
16557
16558 cygwin* | mingw* | pw32* | cegcc*)
16559 # When not using gcc, we currently assume that we are using
16560 # Microsoft Visual C++.
16561 # hardcode_libdir_flag_spec is actually meaningless, as there is
16562 # no search path for DLLs.
16563 hardcode_libdir_flag_spec=' '
16564 allow_undefined_flag=unsupported
16565 # Tell ltmain to make .lib files, not .a files.
16566 libext=lib
16567 # Tell ltmain to make .dll files, not .so files.
16568 shrext_cmds=".dll"
16569 # FIXME: Setting linknames here is a bad hack.
16570 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16571 # The linker will automatically build a .lib file if we build a DLL.
16572 old_archive_from_new_cmds='true'
16573 # FIXME: Should let the user specify the lib program.
16574 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
16575 fix_srcfile_path='`cygpath -w "$srcfile"`'
16576 enable_shared_with_static_runtimes=yes
16577 ;;
16578
16579 darwin* | rhapsody*)
16580
16581
16582 archive_cmds_need_lc=no
16583 hardcode_direct=no
16584 hardcode_automatic=yes
16585 hardcode_shlibpath_var=unsupported
16586 if test "$lt_cv_ld_force_load" = "yes"; then
16587 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\"`'
16588 else
16589 whole_archive_flag_spec=''
16590 fi
16591 link_all_deplibs=yes
16592 allow_undefined_flag="$_lt_dar_allow_undefined"
16593 case $cc_basename in
16594 ifort*) _lt_dar_can_shared=yes ;;
16595 *) _lt_dar_can_shared=$GCC ;;
16596 esac
16597 if test "$_lt_dar_can_shared" = "yes"; then
16598 output_verbose_link_cmd=func_echo_all
16599 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16600 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16601 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}"
16602 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}"
16603
16604 else
16605 ld_shlibs=no
16606 fi
16607
16608 ;;
16609
16610 dgux*)
16611 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16612 hardcode_libdir_flag_spec='-L$libdir'
16613 hardcode_shlibpath_var=no
16614 ;;
16615
16616 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16617 # support. Future versions do this automatically, but an explicit c++rt0.o
16618 # does not break anything, and helps significantly (at the cost of a little
16619 # extra space).
16620 freebsd2.2*)
16621 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16622 hardcode_libdir_flag_spec='-R$libdir'
16623 hardcode_direct=yes
16624 hardcode_shlibpath_var=no
16625 ;;
16626
16627 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16628 freebsd2.*)
16629 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16630 hardcode_direct=yes
16631 hardcode_minus_L=yes
16632 hardcode_shlibpath_var=no
16633 ;;
16634
16635 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16636 freebsd* | dragonfly*)
16637 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16638 hardcode_libdir_flag_spec='-R$libdir'
16639 hardcode_direct=yes
16640 hardcode_shlibpath_var=no
16641 ;;
16642
16643 hpux9*)
16644 if test "$GCC" = yes; then
16645 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'
16646 else
16647 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'
16648 fi
16649 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16650 hardcode_libdir_separator=:
16651 hardcode_direct=yes
16652
16653 # hardcode_minus_L: Not really in the search PATH,
16654 # but as the default location of the library.
16655 hardcode_minus_L=yes
16656 export_dynamic_flag_spec='${wl}-E'
16657 ;;
16658
16659 hpux10*)
16660 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16661 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16662 else
16663 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16664 fi
16665 if test "$with_gnu_ld" = no; then
16666 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16667 hardcode_libdir_flag_spec_ld='+b $libdir'
16668 hardcode_libdir_separator=:
16669 hardcode_direct=yes
16670 hardcode_direct_absolute=yes
16671 export_dynamic_flag_spec='${wl}-E'
16672 # hardcode_minus_L: Not really in the search PATH,
16673 # but as the default location of the library.
16674 hardcode_minus_L=yes
16675 fi
16676 ;;
16677
16678 hpux11*)
16679 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16680 case $host_cpu in
16681 hppa*64*)
16682 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16683 ;;
16684 ia64*)
16685 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16686 ;;
16687 *)
16688 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16689 ;;
16690 esac
16691 else
16692 case $host_cpu in
16693 hppa*64*)
16694 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16695 ;;
16696 ia64*)
16697 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16698 ;;
16699 *)
16700
16701 # Older versions of the 11.00 compiler do not understand -b yet
16702 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16704 $as_echo_n "checking if $CC understands -b... " >&6; }
16705 if test "${lt_cv_prog_compiler__b+set}" = set; then :
16706 $as_echo_n "(cached) " >&6
16707 else
16708 lt_cv_prog_compiler__b=no
16709 save_LDFLAGS="$LDFLAGS"
16710 LDFLAGS="$LDFLAGS -b"
16711 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16712 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16713 # The linker can only warn and ignore the option if not recognized
16714 # So say no if there are warnings
16715 if test -s conftest.err; then
16716 # Append any errors to the config.log.
16717 cat conftest.err 1>&5
16718 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16719 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16720 if diff conftest.exp conftest.er2 >/dev/null; then
16721 lt_cv_prog_compiler__b=yes
16722 fi
16723 else
16724 lt_cv_prog_compiler__b=yes
16725 fi
16726 fi
16727 $RM -r conftest*
16728 LDFLAGS="$save_LDFLAGS"
16729
16730 fi
16731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16732 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16733
16734 if test x"$lt_cv_prog_compiler__b" = xyes; then
16735 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16736 else
16737 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16738 fi
16739
16740 ;;
16741 esac
16742 fi
16743 if test "$with_gnu_ld" = no; then
16744 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16745 hardcode_libdir_separator=:
16746
16747 case $host_cpu in
16748 hppa*64*|ia64*)
16749 hardcode_direct=no
16750 hardcode_shlibpath_var=no
16751 ;;
16752 *)
16753 hardcode_direct=yes
16754 hardcode_direct_absolute=yes
16755 export_dynamic_flag_spec='${wl}-E'
16756
16757 # hardcode_minus_L: Not really in the search PATH,
16758 # but as the default location of the library.
16759 hardcode_minus_L=yes
16760 ;;
16761 esac
16762 fi
16763 ;;
16764
16765 irix5* | irix6* | nonstopux*)
16766 if test "$GCC" = yes; then
16767 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'
16768 # Try to use the -exported_symbol ld option, if it does not
16769 # work, assume that -exports_file does not work either and
16770 # implicitly export all symbols.
16771 save_LDFLAGS="$LDFLAGS"
16772 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16774 /* end confdefs.h. */
16775 int foo(void) {}
16776 _ACEOF
16777 if ac_fn_c_try_link "$LINENO"; then :
16778 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'
16779
16780 fi
16781 rm -f core conftest.err conftest.$ac_objext \
16782 conftest$ac_exeext conftest.$ac_ext
16783 LDFLAGS="$save_LDFLAGS"
16784 else
16785 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'
16786 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'
16787 fi
16788 archive_cmds_need_lc='no'
16789 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16790 hardcode_libdir_separator=:
16791 inherit_rpath=yes
16792 link_all_deplibs=yes
16793 ;;
16794
16795 netbsd*)
16796 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16797 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16798 else
16799 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16800 fi
16801 hardcode_libdir_flag_spec='-R$libdir'
16802 hardcode_direct=yes
16803 hardcode_shlibpath_var=no
16804 ;;
16805
16806 newsos6)
16807 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16808 hardcode_direct=yes
16809 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16810 hardcode_libdir_separator=:
16811 hardcode_shlibpath_var=no
16812 ;;
16813
16814 *nto* | *qnx*)
16815 ;;
16816
16817 openbsd*)
16818 if test -f /usr/libexec/ld.so; then
16819 hardcode_direct=yes
16820 hardcode_shlibpath_var=no
16821 hardcode_direct_absolute=yes
16822 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16823 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16824 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16825 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16826 export_dynamic_flag_spec='${wl}-E'
16827 else
16828 case $host_os in
16829 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16830 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16831 hardcode_libdir_flag_spec='-R$libdir'
16832 ;;
16833 *)
16834 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16835 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16836 ;;
16837 esac
16838 fi
16839 else
16840 ld_shlibs=no
16841 fi
16842 ;;
16843
16844 os2*)
16845 hardcode_libdir_flag_spec='-L$libdir'
16846 hardcode_minus_L=yes
16847 allow_undefined_flag=unsupported
16848 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'
16849 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16850 ;;
16851
16852 osf3*)
16853 if test "$GCC" = yes; then
16854 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16855 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'
16856 else
16857 allow_undefined_flag=' -expect_unresolved \*'
16858 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'
16859 fi
16860 archive_cmds_need_lc='no'
16861 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16862 hardcode_libdir_separator=:
16863 ;;
16864
16865 osf4* | osf5*) # as osf3* with the addition of -msym flag
16866 if test "$GCC" = yes; then
16867 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16868 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'
16869 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16870 else
16871 allow_undefined_flag=' -expect_unresolved \*'
16872 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'
16873 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~
16874 $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'
16875
16876 # Both c and cxx compiler support -rpath directly
16877 hardcode_libdir_flag_spec='-rpath $libdir'
16878 fi
16879 archive_cmds_need_lc='no'
16880 hardcode_libdir_separator=:
16881 ;;
16882
16883 solaris*)
16884 no_undefined_flag=' -z defs'
16885 if test "$GCC" = yes; then
16886 wlarc='${wl}'
16887 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16888 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16889 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16890 else
16891 case `$CC -V 2>&1` in
16892 *"Compilers 5.0"*)
16893 wlarc=''
16894 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16895 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16896 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16897 ;;
16898 *)
16899 wlarc='${wl}'
16900 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16901 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16902 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16903 ;;
16904 esac
16905 fi
16906 hardcode_libdir_flag_spec='-R$libdir'
16907 hardcode_shlibpath_var=no
16908 case $host_os in
16909 solaris2.[0-5] | solaris2.[0-5].*) ;;
16910 *)
16911 # The compiler driver will combine and reorder linker options,
16912 # but understands `-z linker_flag'. GCC discards it without `$wl',
16913 # but is careful enough not to reorder.
16914 # Supported since Solaris 2.6 (maybe 2.5.1?)
16915 if test "$GCC" = yes; then
16916 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16917 else
16918 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16919 fi
16920 ;;
16921 esac
16922 link_all_deplibs=yes
16923 ;;
16924
16925 sunos4*)
16926 if test "x$host_vendor" = xsequent; then
16927 # Use $CC to link under sequent, because it throws in some extra .o
16928 # files that make .init and .fini sections work.
16929 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16930 else
16931 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16932 fi
16933 hardcode_libdir_flag_spec='-L$libdir'
16934 hardcode_direct=yes
16935 hardcode_minus_L=yes
16936 hardcode_shlibpath_var=no
16937 ;;
16938
16939 sysv4)
16940 case $host_vendor in
16941 sni)
16942 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16943 hardcode_direct=yes # is this really true???
16944 ;;
16945 siemens)
16946 ## LD is ld it makes a PLAMLIB
16947 ## CC just makes a GrossModule.
16948 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16949 reload_cmds='$CC -r -o $output$reload_objs'
16950 hardcode_direct=no
16951 ;;
16952 motorola)
16953 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16954 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16955 ;;
16956 esac
16957 runpath_var='LD_RUN_PATH'
16958 hardcode_shlibpath_var=no
16959 ;;
16960
16961 sysv4.3*)
16962 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16963 hardcode_shlibpath_var=no
16964 export_dynamic_flag_spec='-Bexport'
16965 ;;
16966
16967 sysv4*MP*)
16968 if test -d /usr/nec; then
16969 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16970 hardcode_shlibpath_var=no
16971 runpath_var=LD_RUN_PATH
16972 hardcode_runpath_var=yes
16973 ld_shlibs=yes
16974 fi
16975 ;;
16976
16977 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16978 no_undefined_flag='${wl}-z,text'
16979 archive_cmds_need_lc=no
16980 hardcode_shlibpath_var=no
16981 runpath_var='LD_RUN_PATH'
16982
16983 if test "$GCC" = yes; then
16984 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16985 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16986 else
16987 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16988 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16989 fi
16990 ;;
16991
16992 sysv5* | sco3.2v5* | sco5v6*)
16993 # Note: We can NOT use -z defs as we might desire, because we do not
16994 # link with -lc, and that would cause any symbols used from libc to
16995 # always be unresolved, which means just about no library would
16996 # ever link correctly. If we're not using GNU ld we use -z text
16997 # though, which does catch some bad symbols but isn't as heavy-handed
16998 # as -z defs.
16999 no_undefined_flag='${wl}-z,text'
17000 allow_undefined_flag='${wl}-z,nodefs'
17001 archive_cmds_need_lc=no
17002 hardcode_shlibpath_var=no
17003 hardcode_libdir_flag_spec='${wl}-R,$libdir'
17004 hardcode_libdir_separator=':'
17005 link_all_deplibs=yes
17006 export_dynamic_flag_spec='${wl}-Bexport'
17007 runpath_var='LD_RUN_PATH'
17008
17009 if test "$GCC" = yes; then
17010 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17011 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17012 else
17013 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17014 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17015 fi
17016 ;;
17017
17018 uts4*)
17019 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17020 hardcode_libdir_flag_spec='-L$libdir'
17021 hardcode_shlibpath_var=no
17022 ;;
17023
17024 *)
17025 ld_shlibs=no
17026 ;;
17027 esac
17028
17029 if test x$host_vendor = xsni; then
17030 case $host in
17031 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17032 export_dynamic_flag_spec='${wl}-Blargedynsym'
17033 ;;
17034 esac
17035 fi
17036 fi
17037
17038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
17039 $as_echo "$ld_shlibs" >&6; }
17040 test "$ld_shlibs" = no && can_build_shared=no
17041
17042 with_gnu_ld=$with_gnu_ld
17043
17044
17045
17046
17047
17048
17049
17050
17051
17052
17053
17054
17055
17056
17057
17058 #
17059 # Do we need to explicitly link libc?
17060 #
17061 case "x$archive_cmds_need_lc" in
17062 x|xyes)
17063 # Assume -lc should be added
17064 archive_cmds_need_lc=yes
17065
17066 if test "$enable_shared" = yes && test "$GCC" = yes; then
17067 case $archive_cmds in
17068 *'~'*)
17069 # FIXME: we may have to deal with multi-command sequences.
17070 ;;
17071 '$CC '*)
17072 # Test whether the compiler implicitly links with -lc since on some
17073 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17074 # to ld, don't add -lc before -lgcc.
17075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17076 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17077 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
17078 $as_echo_n "(cached) " >&6
17079 else
17080 $RM conftest*
17081 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17082
17083 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17084 (eval $ac_compile) 2>&5
17085 ac_status=$?
17086 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17087 test $ac_status = 0; } 2>conftest.err; then
17088 soname=conftest
17089 lib=conftest
17090 libobjs=conftest.$ac_objext
17091 deplibs=
17092 wl=$lt_prog_compiler_wl
17093 pic_flag=$lt_prog_compiler_pic
17094 compiler_flags=-v
17095 linker_flags=-v
17096 verstring=
17097 output_objdir=.
17098 libname=conftest
17099 lt_save_allow_undefined_flag=$allow_undefined_flag
17100 allow_undefined_flag=
17101 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17102 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17103 ac_status=$?
17104 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17105 test $ac_status = 0; }
17106 then
17107 lt_cv_archive_cmds_need_lc=no
17108 else
17109 lt_cv_archive_cmds_need_lc=yes
17110 fi
17111 allow_undefined_flag=$lt_save_allow_undefined_flag
17112 else
17113 cat conftest.err 1>&5
17114 fi
17115 $RM conftest*
17116
17117 fi
17118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
17119 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
17120 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
17121 ;;
17122 esac
17123 fi
17124 ;;
17125 esac
17126
17127
17128
17129
17130
17131
17132
17133
17134
17135
17136
17137
17138
17139
17140
17141
17142
17143
17144
17145
17146
17147
17148
17149
17150
17151
17152
17153
17154
17155
17156
17157
17158
17159
17160
17161
17162
17163
17164
17165
17166
17167
17168
17169
17170
17171
17172
17173
17174
17175
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17284 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17285
17286 if test "$GCC" = yes; then
17287 case $host_os in
17288 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
17289 *) lt_awk_arg="/^libraries:/" ;;
17290 esac
17291 case $host_os in
17292 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
17293 *) lt_sed_strip_eq="s,=/,/,g" ;;
17294 esac
17295 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
17296 case $lt_search_path_spec in
17297 *\;*)
17298 # if the path contains ";" then we assume it to be the separator
17299 # otherwise default to the standard path separator (i.e. ":") - it is
17300 # assumed that no part of a normal pathname contains ";" but that should
17301 # okay in the real world where ";" in dirpaths is itself problematic.
17302 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
17303 ;;
17304 *)
17305 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
17306 ;;
17307 esac
17308 # Ok, now we have the path, separated by spaces, we can step through it
17309 # and add multilib dir if necessary.
17310 lt_tmp_lt_search_path_spec=
17311 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
17312 for lt_sys_path in $lt_search_path_spec; do
17313 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
17314 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
17315 else
17316 test -d "$lt_sys_path" && \
17317 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
17318 fi
17319 done
17320 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
17321 BEGIN {RS=" "; FS="/|\n";} {
17322 lt_foo="";
17323 lt_count=0;
17324 for (lt_i = NF; lt_i > 0; lt_i--) {
17325 if ($lt_i != "" && $lt_i != ".") {
17326 if ($lt_i == "..") {
17327 lt_count++;
17328 } else {
17329 if (lt_count == 0) {
17330 lt_foo="/" $lt_i lt_foo;
17331 } else {
17332 lt_count--;
17333 }
17334 }
17335 }
17336 }
17337 if (lt_foo != "") { lt_freq[lt_foo]++; }
17338 if (lt_freq[lt_foo] == 1) { print lt_foo; }
17339 }'`
17340 # AWK program above erroneously prepends '/' to C:/dos/paths
17341 # for these hosts.
17342 case $host_os in
17343 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
17344 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
17345 esac
17346 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
17347 else
17348 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17349 fi
17350 library_names_spec=
17351 libname_spec='lib$name'
17352 soname_spec=
17353 shrext_cmds=".so"
17354 postinstall_cmds=
17355 postuninstall_cmds=
17356 finish_cmds=
17357 finish_eval=
17358 shlibpath_var=
17359 shlibpath_overrides_runpath=unknown
17360 version_type=none
17361 dynamic_linker="$host_os ld.so"
17362 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17363 need_lib_prefix=unknown
17364 hardcode_into_libs=no
17365
17366 # when you set need_version to no, make sure it does not cause -set_version
17367 # flags to be left without arguments
17368 need_version=unknown
17369
17370 case $host_os in
17371 aix3*)
17372 version_type=linux
17373 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17374 shlibpath_var=LIBPATH
17375
17376 # AIX 3 has no versioning support, so we append a major version to the name.
17377 soname_spec='${libname}${release}${shared_ext}$major'
17378 ;;
17379
17380 aix[4-9]*)
17381 version_type=linux
17382 need_lib_prefix=no
17383 need_version=no
17384 hardcode_into_libs=yes
17385 if test "$host_cpu" = ia64; then
17386 # AIX 5 supports IA64
17387 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17388 shlibpath_var=LD_LIBRARY_PATH
17389 else
17390 # With GCC up to 2.95.x, collect2 would create an import file
17391 # for dependence libraries. The import file would start with
17392 # the line `#! .'. This would cause the generated library to
17393 # depend on `.', always an invalid library. This was fixed in
17394 # development snapshots of GCC prior to 3.0.
17395 case $host_os in
17396 aix4 | aix4.[01] | aix4.[01].*)
17397 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17398 echo ' yes '
17399 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
17400 :
17401 else
17402 can_build_shared=no
17403 fi
17404 ;;
17405 esac
17406 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17407 # soname into executable. Probably we can add versioning support to
17408 # collect2, so additional links can be useful in future.
17409 if test "$aix_use_runtimelinking" = yes; then
17410 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17411 # instead of lib<name>.a to let people know that these are not
17412 # typical AIX shared libraries.
17413 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17414 else
17415 # We preserve .a as extension for shared libraries through AIX4.2
17416 # and later when we are not doing run time linking.
17417 library_names_spec='${libname}${release}.a $libname.a'
17418 soname_spec='${libname}${release}${shared_ext}$major'
17419 fi
17420 shlibpath_var=LIBPATH
17421 fi
17422 ;;
17423
17424 amigaos*)
17425 case $host_cpu in
17426 powerpc)
17427 # Since July 2007 AmigaOS4 officially supports .so libraries.
17428 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17430 ;;
17431 m68k)
17432 library_names_spec='$libname.ixlibrary $libname.a'
17433 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17434 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'
17435 ;;
17436 esac
17437 ;;
17438
17439 beos*)
17440 library_names_spec='${libname}${shared_ext}'
17441 dynamic_linker="$host_os ld.so"
17442 shlibpath_var=LIBRARY_PATH
17443 ;;
17444
17445 bsdi[45]*)
17446 version_type=linux
17447 need_version=no
17448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17449 soname_spec='${libname}${release}${shared_ext}$major'
17450 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17451 shlibpath_var=LD_LIBRARY_PATH
17452 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17453 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17454 # the default ld.so.conf also contains /usr/contrib/lib and
17455 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17456 # libtool to hard-code these into programs
17457 ;;
17458
17459 cygwin* | mingw* | pw32* | cegcc*)
17460 version_type=windows
17461 shrext_cmds=".dll"
17462 need_version=no
17463 need_lib_prefix=no
17464
17465 case $GCC,$host_os in
17466 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
17467 library_names_spec='$libname.dll.a'
17468 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17469 postinstall_cmds='base_file=`basename \${file}`~
17470 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17471 dldir=$destdir/`dirname \$dlpath`~
17472 test -d \$dldir || mkdir -p \$dldir~
17473 $install_prog $dir/$dlname \$dldir/$dlname~
17474 chmod a+x \$dldir/$dlname~
17475 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17476 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17477 fi'
17478 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17479 dlpath=$dir/\$dldll~
17480 $RM \$dlpath'
17481 shlibpath_overrides_runpath=yes
17482
17483 case $host_os in
17484 cygwin*)
17485 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17486 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17487
17488 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
17489 ;;
17490 mingw* | cegcc*)
17491 # MinGW DLLs use traditional 'lib' prefix
17492 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17493 ;;
17494 pw32*)
17495 # pw32 DLLs use 'pw' prefix rather than 'lib'
17496 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17497 ;;
17498 esac
17499 ;;
17500
17501 *)
17502 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17503 ;;
17504 esac
17505 dynamic_linker='Win32 ld.exe'
17506 # FIXME: first we should search . and the directory the executable is in
17507 shlibpath_var=PATH
17508 ;;
17509
17510 darwin* | rhapsody*)
17511 dynamic_linker="$host_os dyld"
17512 version_type=darwin
17513 need_lib_prefix=no
17514 need_version=no
17515 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17516 soname_spec='${libname}${release}${major}$shared_ext'
17517 shlibpath_overrides_runpath=yes
17518 shlibpath_var=DYLD_LIBRARY_PATH
17519 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17520
17521 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
17522 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17523 ;;
17524
17525 dgux*)
17526 version_type=linux
17527 need_lib_prefix=no
17528 need_version=no
17529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17530 soname_spec='${libname}${release}${shared_ext}$major'
17531 shlibpath_var=LD_LIBRARY_PATH
17532 ;;
17533
17534 freebsd* | dragonfly*)
17535 # DragonFly does not have aout. When/if they implement a new
17536 # versioning mechanism, adjust this.
17537 if test -x /usr/bin/objformat; then
17538 objformat=`/usr/bin/objformat`
17539 else
17540 case $host_os in
17541 freebsd[23].*) objformat=aout ;;
17542 *) objformat=elf ;;
17543 esac
17544 fi
17545 version_type=freebsd-$objformat
17546 case $version_type in
17547 freebsd-elf*)
17548 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17549 need_version=no
17550 need_lib_prefix=no
17551 ;;
17552 freebsd-*)
17553 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17554 need_version=yes
17555 ;;
17556 esac
17557 shlibpath_var=LD_LIBRARY_PATH
17558 case $host_os in
17559 freebsd2.*)
17560 shlibpath_overrides_runpath=yes
17561 ;;
17562 freebsd3.[01]* | freebsdelf3.[01]*)
17563 shlibpath_overrides_runpath=yes
17564 hardcode_into_libs=yes
17565 ;;
17566 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17567 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17568 shlibpath_overrides_runpath=no
17569 hardcode_into_libs=yes
17570 ;;
17571 *) # from 4.6 on, and DragonFly
17572 shlibpath_overrides_runpath=yes
17573 hardcode_into_libs=yes
17574 ;;
17575 esac
17576 ;;
17577
17578 gnu*)
17579 version_type=linux
17580 need_lib_prefix=no
17581 need_version=no
17582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17583 soname_spec='${libname}${release}${shared_ext}$major'
17584 shlibpath_var=LD_LIBRARY_PATH
17585 hardcode_into_libs=yes
17586 ;;
17587
17588 haiku*)
17589 version_type=linux
17590 need_lib_prefix=no
17591 need_version=no
17592 dynamic_linker="$host_os runtime_loader"
17593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17594 soname_spec='${libname}${release}${shared_ext}$major'
17595 shlibpath_var=LIBRARY_PATH
17596 shlibpath_overrides_runpath=yes
17597 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
17598 hardcode_into_libs=yes
17599 ;;
17600
17601 hpux9* | hpux10* | hpux11*)
17602 # Give a soname corresponding to the major version so that dld.sl refuses to
17603 # link against other versions.
17604 version_type=sunos
17605 need_lib_prefix=no
17606 need_version=no
17607 case $host_cpu in
17608 ia64*)
17609 shrext_cmds='.so'
17610 hardcode_into_libs=yes
17611 dynamic_linker="$host_os dld.so"
17612 shlibpath_var=LD_LIBRARY_PATH
17613 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17614 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17615 soname_spec='${libname}${release}${shared_ext}$major'
17616 if test "X$HPUX_IA64_MODE" = X32; then
17617 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17618 else
17619 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17620 fi
17621 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17622 ;;
17623 hppa*64*)
17624 shrext_cmds='.sl'
17625 hardcode_into_libs=yes
17626 dynamic_linker="$host_os dld.sl"
17627 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17628 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17629 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17630 soname_spec='${libname}${release}${shared_ext}$major'
17631 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17632 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17633 ;;
17634 *)
17635 shrext_cmds='.sl'
17636 dynamic_linker="$host_os dld.sl"
17637 shlibpath_var=SHLIB_PATH
17638 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17639 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17640 soname_spec='${libname}${release}${shared_ext}$major'
17641 ;;
17642 esac
17643 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17644 postinstall_cmds='chmod 555 $lib'
17645 # or fails outright, so override atomically:
17646 install_override_mode=555
17647 ;;
17648
17649 interix[3-9]*)
17650 version_type=linux
17651 need_lib_prefix=no
17652 need_version=no
17653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17654 soname_spec='${libname}${release}${shared_ext}$major'
17655 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17656 shlibpath_var=LD_LIBRARY_PATH
17657 shlibpath_overrides_runpath=no
17658 hardcode_into_libs=yes
17659 ;;
17660
17661 irix5* | irix6* | nonstopux*)
17662 case $host_os in
17663 nonstopux*) version_type=nonstopux ;;
17664 *)
17665 if test "$lt_cv_prog_gnu_ld" = yes; then
17666 version_type=linux
17667 else
17668 version_type=irix
17669 fi ;;
17670 esac
17671 need_lib_prefix=no
17672 need_version=no
17673 soname_spec='${libname}${release}${shared_ext}$major'
17674 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17675 case $host_os in
17676 irix5* | nonstopux*)
17677 libsuff= shlibsuff=
17678 ;;
17679 *)
17680 case $LD in # libtool.m4 will add one of these switches to LD
17681 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17682 libsuff= shlibsuff= libmagic=32-bit;;
17683 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17684 libsuff=32 shlibsuff=N32 libmagic=N32;;
17685 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17686 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17687 *) libsuff= shlibsuff= libmagic=never-match;;
17688 esac
17689 ;;
17690 esac
17691 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17692 shlibpath_overrides_runpath=no
17693 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17694 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17695 hardcode_into_libs=yes
17696 ;;
17697
17698 # No shared lib support for Linux oldld, aout, or coff.
17699 linux*oldld* | linux*aout* | linux*coff*)
17700 dynamic_linker=no
17701 ;;
17702
17703 # This must be Linux ELF.
17704 linux* | k*bsd*-gnu | kopensolaris*-gnu)
17705 version_type=linux
17706 need_lib_prefix=no
17707 need_version=no
17708 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17709 soname_spec='${libname}${release}${shared_ext}$major'
17710 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17711 shlibpath_var=LD_LIBRARY_PATH
17712 shlibpath_overrides_runpath=no
17713
17714 # Some binutils ld are patched to set DT_RUNPATH
17715 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
17716 $as_echo_n "(cached) " >&6
17717 else
17718 lt_cv_shlibpath_overrides_runpath=no
17719 save_LDFLAGS=$LDFLAGS
17720 save_libdir=$libdir
17721 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17722 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17724 /* end confdefs.h. */
17725
17726 int
17727 main ()
17728 {
17729
17730 ;
17731 return 0;
17732 }
17733 _ACEOF
17734 if ac_fn_c_try_link "$LINENO"; then :
17735 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17736 lt_cv_shlibpath_overrides_runpath=yes
17737 fi
17738 fi
17739 rm -f core conftest.err conftest.$ac_objext \
17740 conftest$ac_exeext conftest.$ac_ext
17741 LDFLAGS=$save_LDFLAGS
17742 libdir=$save_libdir
17743
17744 fi
17745
17746 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17747
17748 # This implies no fast_install, which is unacceptable.
17749 # Some rework will be needed to allow for fast_install
17750 # before this can be enabled.
17751 hardcode_into_libs=yes
17752
17753 # Append ld.so.conf contents to the search path
17754 if test -f /etc/ld.so.conf; then
17755 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' ' '`
17756 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17757 fi
17758
17759 # We used to test for /lib/ld.so.1 and disable shared libraries on
17760 # powerpc, because MkLinux only supported shared libraries with the
17761 # GNU dynamic linker. Since this was broken with cross compilers,
17762 # most powerpc-linux boxes support dynamic linking these days and
17763 # people can always --disable-shared, the test was removed, and we
17764 # assume the GNU/Linux dynamic linker is in use.
17765 dynamic_linker='GNU/Linux ld.so'
17766 ;;
17767
17768 netbsd*)
17769 version_type=sunos
17770 need_lib_prefix=no
17771 need_version=no
17772 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17773 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17774 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17775 dynamic_linker='NetBSD (a.out) ld.so'
17776 else
17777 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17778 soname_spec='${libname}${release}${shared_ext}$major'
17779 dynamic_linker='NetBSD ld.elf_so'
17780 fi
17781 shlibpath_var=LD_LIBRARY_PATH
17782 shlibpath_overrides_runpath=yes
17783 hardcode_into_libs=yes
17784 ;;
17785
17786 newsos6)
17787 version_type=linux
17788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17789 shlibpath_var=LD_LIBRARY_PATH
17790 shlibpath_overrides_runpath=yes
17791 ;;
17792
17793 *nto* | *qnx*)
17794 version_type=qnx
17795 need_lib_prefix=no
17796 need_version=no
17797 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17798 soname_spec='${libname}${release}${shared_ext}$major'
17799 shlibpath_var=LD_LIBRARY_PATH
17800 shlibpath_overrides_runpath=no
17801 hardcode_into_libs=yes
17802 dynamic_linker='ldqnx.so'
17803 ;;
17804
17805 openbsd*)
17806 version_type=sunos
17807 sys_lib_dlsearch_path_spec="/usr/lib"
17808 need_lib_prefix=no
17809 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17810 case $host_os in
17811 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17812 *) need_version=no ;;
17813 esac
17814 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17815 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17816 shlibpath_var=LD_LIBRARY_PATH
17817 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17818 case $host_os in
17819 openbsd2.[89] | openbsd2.[89].*)
17820 shlibpath_overrides_runpath=no
17821 ;;
17822 *)
17823 shlibpath_overrides_runpath=yes
17824 ;;
17825 esac
17826 else
17827 shlibpath_overrides_runpath=yes
17828 fi
17829 ;;
17830
17831 os2*)
17832 libname_spec='$name'
17833 shrext_cmds=".dll"
17834 need_lib_prefix=no
17835 library_names_spec='$libname${shared_ext} $libname.a'
17836 dynamic_linker='OS/2 ld.exe'
17837 shlibpath_var=LIBPATH
17838 ;;
17839
17840 osf3* | osf4* | osf5*)
17841 version_type=osf
17842 need_lib_prefix=no
17843 need_version=no
17844 soname_spec='${libname}${release}${shared_ext}$major'
17845 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17846 shlibpath_var=LD_LIBRARY_PATH
17847 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17848 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17849 ;;
17850
17851 rdos*)
17852 dynamic_linker=no
17853 ;;
17854
17855 solaris*)
17856 version_type=linux
17857 need_lib_prefix=no
17858 need_version=no
17859 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17860 soname_spec='${libname}${release}${shared_ext}$major'
17861 shlibpath_var=LD_LIBRARY_PATH
17862 shlibpath_overrides_runpath=yes
17863 hardcode_into_libs=yes
17864 # ldd complains unless libraries are executable
17865 postinstall_cmds='chmod +x $lib'
17866 ;;
17867
17868 sunos4*)
17869 version_type=sunos
17870 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17871 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17872 shlibpath_var=LD_LIBRARY_PATH
17873 shlibpath_overrides_runpath=yes
17874 if test "$with_gnu_ld" = yes; then
17875 need_lib_prefix=no
17876 fi
17877 need_version=yes
17878 ;;
17879
17880 sysv4 | sysv4.3*)
17881 version_type=linux
17882 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17883 soname_spec='${libname}${release}${shared_ext}$major'
17884 shlibpath_var=LD_LIBRARY_PATH
17885 case $host_vendor in
17886 sni)
17887 shlibpath_overrides_runpath=no
17888 need_lib_prefix=no
17889 runpath_var=LD_RUN_PATH
17890 ;;
17891 siemens)
17892 need_lib_prefix=no
17893 ;;
17894 motorola)
17895 need_lib_prefix=no
17896 need_version=no
17897 shlibpath_overrides_runpath=no
17898 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17899 ;;
17900 esac
17901 ;;
17902
17903 sysv4*MP*)
17904 if test -d /usr/nec ;then
17905 version_type=linux
17906 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17907 soname_spec='$libname${shared_ext}.$major'
17908 shlibpath_var=LD_LIBRARY_PATH
17909 fi
17910 ;;
17911
17912 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17913 version_type=freebsd-elf
17914 need_lib_prefix=no
17915 need_version=no
17916 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17917 soname_spec='${libname}${release}${shared_ext}$major'
17918 shlibpath_var=LD_LIBRARY_PATH
17919 shlibpath_overrides_runpath=yes
17920 hardcode_into_libs=yes
17921 if test "$with_gnu_ld" = yes; then
17922 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17923 else
17924 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17925 case $host_os in
17926 sco3.2v5*)
17927 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17928 ;;
17929 esac
17930 fi
17931 sys_lib_dlsearch_path_spec='/usr/lib'
17932 ;;
17933
17934 tpf*)
17935 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17936 version_type=linux
17937 need_lib_prefix=no
17938 need_version=no
17939 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17940 shlibpath_var=LD_LIBRARY_PATH
17941 shlibpath_overrides_runpath=no
17942 hardcode_into_libs=yes
17943 ;;
17944
17945 uts4*)
17946 version_type=linux
17947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17948 soname_spec='${libname}${release}${shared_ext}$major'
17949 shlibpath_var=LD_LIBRARY_PATH
17950 ;;
17951
17952 *)
17953 dynamic_linker=no
17954 ;;
17955 esac
17956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17957 $as_echo "$dynamic_linker" >&6; }
17958 test "$dynamic_linker" = no && can_build_shared=no
17959
17960 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17961 if test "$GCC" = yes; then
17962 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17963 fi
17964
17965 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17966 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17967 fi
17968 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17969 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17970 fi
17971
17972
17973
17974
17975
17976
17977
17978
17979
17980
17981
17982
17983
17984
17985
17986
17987
17988
17989
17990
17991
17992
17993
17994
17995
17996
17997
17998
17999
18000
18001
18002
18003
18004
18005
18006
18007
18008
18009
18010
18011
18012
18013
18014
18015
18016
18017
18018
18019
18020
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18064 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18065 hardcode_action=
18066 if test -n "$hardcode_libdir_flag_spec" ||
18067 test -n "$runpath_var" ||
18068 test "X$hardcode_automatic" = "Xyes" ; then
18069
18070 # We can hardcode non-existent directories.
18071 if test "$hardcode_direct" != no &&
18072 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18073 # have to relink, otherwise we might link with an installed library
18074 # when we should be linking with a yet-to-be-installed one
18075 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
18076 test "$hardcode_minus_L" != no; then
18077 # Linking always hardcodes the temporary library directory.
18078 hardcode_action=relink
18079 else
18080 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18081 hardcode_action=immediate
18082 fi
18083 else
18084 # We cannot hardcode anything, or else we can only hardcode existing
18085 # directories.
18086 hardcode_action=unsupported
18087 fi
18088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
18089 $as_echo "$hardcode_action" >&6; }
18090
18091 if test "$hardcode_action" = relink ||
18092 test "$inherit_rpath" = yes; then
18093 # Fast installation is not supported
18094 enable_fast_install=no
18095 elif test "$shlibpath_overrides_runpath" = yes ||
18096 test "$enable_shared" = no; then
18097 # Fast installation is not necessary
18098 enable_fast_install=needless
18099 fi
18100
18101
18102
18103
18104
18105
18106 if test "x$enable_dlopen" != xyes; then
18107 enable_dlopen=unknown
18108 enable_dlopen_self=unknown
18109 enable_dlopen_self_static=unknown
18110 else
18111 lt_cv_dlopen=no
18112 lt_cv_dlopen_libs=
18113
18114 case $host_os in
18115 beos*)
18116 lt_cv_dlopen="load_add_on"
18117 lt_cv_dlopen_libs=
18118 lt_cv_dlopen_self=yes
18119 ;;
18120
18121 mingw* | pw32* | cegcc*)
18122 lt_cv_dlopen="LoadLibrary"
18123 lt_cv_dlopen_libs=
18124 ;;
18125
18126 cygwin*)
18127 lt_cv_dlopen="dlopen"
18128 lt_cv_dlopen_libs=
18129 ;;
18130
18131 darwin*)
18132 # if libdl is installed we need to link against it
18133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18134 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18135 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
18136 $as_echo_n "(cached) " >&6
18137 else
18138 ac_check_lib_save_LIBS=$LIBS
18139 LIBS="-ldl $LIBS"
18140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18141 /* end confdefs.h. */
18142
18143 /* Override any GCC internal prototype to avoid an error.
18144 Use char because int might match the return type of a GCC
18145 builtin and then its argument prototype would still apply. */
18146 #ifdef __cplusplus
18147 extern "C"
18148 #endif
18149 char dlopen ();
18150 int
18151 main ()
18152 {
18153 return dlopen ();
18154 ;
18155 return 0;
18156 }
18157 _ACEOF
18158 if ac_fn_c_try_link "$LINENO"; then :
18159 ac_cv_lib_dl_dlopen=yes
18160 else
18161 ac_cv_lib_dl_dlopen=no
18162 fi
18163 rm -f core conftest.err conftest.$ac_objext \
18164 conftest$ac_exeext conftest.$ac_ext
18165 LIBS=$ac_check_lib_save_LIBS
18166 fi
18167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18168 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18169 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
18170 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18171 else
18172
18173 lt_cv_dlopen="dyld"
18174 lt_cv_dlopen_libs=
18175 lt_cv_dlopen_self=yes
18176
18177 fi
18178
18179 ;;
18180
18181 *)
18182 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
18183 if test "x$ac_cv_func_shl_load" = x""yes; then :
18184 lt_cv_dlopen="shl_load"
18185 else
18186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
18187 $as_echo_n "checking for shl_load in -ldld... " >&6; }
18188 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
18189 $as_echo_n "(cached) " >&6
18190 else
18191 ac_check_lib_save_LIBS=$LIBS
18192 LIBS="-ldld $LIBS"
18193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18194 /* end confdefs.h. */
18195
18196 /* Override any GCC internal prototype to avoid an error.
18197 Use char because int might match the return type of a GCC
18198 builtin and then its argument prototype would still apply. */
18199 #ifdef __cplusplus
18200 extern "C"
18201 #endif
18202 char shl_load ();
18203 int
18204 main ()
18205 {
18206 return shl_load ();
18207 ;
18208 return 0;
18209 }
18210 _ACEOF
18211 if ac_fn_c_try_link "$LINENO"; then :
18212 ac_cv_lib_dld_shl_load=yes
18213 else
18214 ac_cv_lib_dld_shl_load=no
18215 fi
18216 rm -f core conftest.err conftest.$ac_objext \
18217 conftest$ac_exeext conftest.$ac_ext
18218 LIBS=$ac_check_lib_save_LIBS
18219 fi
18220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
18221 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
18222 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
18223 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
18224 else
18225 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
18226 if test "x$ac_cv_func_dlopen" = x""yes; then :
18227 lt_cv_dlopen="dlopen"
18228 else
18229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18230 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18231 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
18232 $as_echo_n "(cached) " >&6
18233 else
18234 ac_check_lib_save_LIBS=$LIBS
18235 LIBS="-ldl $LIBS"
18236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18237 /* end confdefs.h. */
18238
18239 /* Override any GCC internal prototype to avoid an error.
18240 Use char because int might match the return type of a GCC
18241 builtin and then its argument prototype would still apply. */
18242 #ifdef __cplusplus
18243 extern "C"
18244 #endif
18245 char dlopen ();
18246 int
18247 main ()
18248 {
18249 return dlopen ();
18250 ;
18251 return 0;
18252 }
18253 _ACEOF
18254 if ac_fn_c_try_link "$LINENO"; then :
18255 ac_cv_lib_dl_dlopen=yes
18256 else
18257 ac_cv_lib_dl_dlopen=no
18258 fi
18259 rm -f core conftest.err conftest.$ac_objext \
18260 conftest$ac_exeext conftest.$ac_ext
18261 LIBS=$ac_check_lib_save_LIBS
18262 fi
18263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18264 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18265 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
18266 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18267 else
18268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
18269 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
18270 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
18271 $as_echo_n "(cached) " >&6
18272 else
18273 ac_check_lib_save_LIBS=$LIBS
18274 LIBS="-lsvld $LIBS"
18275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18276 /* end confdefs.h. */
18277
18278 /* Override any GCC internal prototype to avoid an error.
18279 Use char because int might match the return type of a GCC
18280 builtin and then its argument prototype would still apply. */
18281 #ifdef __cplusplus
18282 extern "C"
18283 #endif
18284 char dlopen ();
18285 int
18286 main ()
18287 {
18288 return dlopen ();
18289 ;
18290 return 0;
18291 }
18292 _ACEOF
18293 if ac_fn_c_try_link "$LINENO"; then :
18294 ac_cv_lib_svld_dlopen=yes
18295 else
18296 ac_cv_lib_svld_dlopen=no
18297 fi
18298 rm -f core conftest.err conftest.$ac_objext \
18299 conftest$ac_exeext conftest.$ac_ext
18300 LIBS=$ac_check_lib_save_LIBS
18301 fi
18302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
18303 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
18304 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
18305 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18306 else
18307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
18308 $as_echo_n "checking for dld_link in -ldld... " >&6; }
18309 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
18310 $as_echo_n "(cached) " >&6
18311 else
18312 ac_check_lib_save_LIBS=$LIBS
18313 LIBS="-ldld $LIBS"
18314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18315 /* end confdefs.h. */
18316
18317 /* Override any GCC internal prototype to avoid an error.
18318 Use char because int might match the return type of a GCC
18319 builtin and then its argument prototype would still apply. */
18320 #ifdef __cplusplus
18321 extern "C"
18322 #endif
18323 char dld_link ();
18324 int
18325 main ()
18326 {
18327 return dld_link ();
18328 ;
18329 return 0;
18330 }
18331 _ACEOF
18332 if ac_fn_c_try_link "$LINENO"; then :
18333 ac_cv_lib_dld_dld_link=yes
18334 else
18335 ac_cv_lib_dld_dld_link=no
18336 fi
18337 rm -f core conftest.err conftest.$ac_objext \
18338 conftest$ac_exeext conftest.$ac_ext
18339 LIBS=$ac_check_lib_save_LIBS
18340 fi
18341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
18342 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
18343 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
18344 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
18345 fi
18346
18347
18348 fi
18349
18350
18351 fi
18352
18353
18354 fi
18355
18356
18357 fi
18358
18359
18360 fi
18361
18362 ;;
18363 esac
18364
18365 if test "x$lt_cv_dlopen" != xno; then
18366 enable_dlopen=yes
18367 else
18368 enable_dlopen=no
18369 fi
18370
18371 case $lt_cv_dlopen in
18372 dlopen)
18373 save_CPPFLAGS="$CPPFLAGS"
18374 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18375
18376 save_LDFLAGS="$LDFLAGS"
18377 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18378
18379 save_LIBS="$LIBS"
18380 LIBS="$lt_cv_dlopen_libs $LIBS"
18381
18382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
18383 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
18384 if test "${lt_cv_dlopen_self+set}" = set; then :
18385 $as_echo_n "(cached) " >&6
18386 else
18387 if test "$cross_compiling" = yes; then :
18388 lt_cv_dlopen_self=cross
18389 else
18390 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18391 lt_status=$lt_dlunknown
18392 cat > conftest.$ac_ext <<_LT_EOF
18393 #line 18393 "configure"
18394 #include "confdefs.h"
18395
18396 #if HAVE_DLFCN_H
18397 #include <dlfcn.h>
18398 #endif
18399
18400 #include <stdio.h>
18401
18402 #ifdef RTLD_GLOBAL
18403 # define LT_DLGLOBAL RTLD_GLOBAL
18404 #else
18405 # ifdef DL_GLOBAL
18406 # define LT_DLGLOBAL DL_GLOBAL
18407 # else
18408 # define LT_DLGLOBAL 0
18409 # endif
18410 #endif
18411
18412 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18413 find out it does not work in some platform. */
18414 #ifndef LT_DLLAZY_OR_NOW
18415 # ifdef RTLD_LAZY
18416 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18417 # else
18418 # ifdef DL_LAZY
18419 # define LT_DLLAZY_OR_NOW DL_LAZY
18420 # else
18421 # ifdef RTLD_NOW
18422 # define LT_DLLAZY_OR_NOW RTLD_NOW
18423 # else
18424 # ifdef DL_NOW
18425 # define LT_DLLAZY_OR_NOW DL_NOW
18426 # else
18427 # define LT_DLLAZY_OR_NOW 0
18428 # endif
18429 # endif
18430 # endif
18431 # endif
18432 #endif
18433
18434 /* When -fvisbility=hidden is used, assume the code has been annotated
18435 correspondingly for the symbols needed. */
18436 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18437 void fnord () __attribute__((visibility("default")));
18438 #endif
18439
18440 void fnord () { int i=42; }
18441 int main ()
18442 {
18443 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18444 int status = $lt_dlunknown;
18445
18446 if (self)
18447 {
18448 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18449 else
18450 {
18451 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18452 else puts (dlerror ());
18453 }
18454 /* dlclose (self); */
18455 }
18456 else
18457 puts (dlerror ());
18458
18459 return status;
18460 }
18461 _LT_EOF
18462 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18463 (eval $ac_link) 2>&5
18464 ac_status=$?
18465 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18466 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18467 (./conftest; exit; ) >&5 2>/dev/null
18468 lt_status=$?
18469 case x$lt_status in
18470 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18471 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18472 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
18473 esac
18474 else :
18475 # compilation failed
18476 lt_cv_dlopen_self=no
18477 fi
18478 fi
18479 rm -fr conftest*
18480
18481
18482 fi
18483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18484 $as_echo "$lt_cv_dlopen_self" >&6; }
18485
18486 if test "x$lt_cv_dlopen_self" = xyes; then
18487 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
18488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18489 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18490 if test "${lt_cv_dlopen_self_static+set}" = set; then :
18491 $as_echo_n "(cached) " >&6
18492 else
18493 if test "$cross_compiling" = yes; then :
18494 lt_cv_dlopen_self_static=cross
18495 else
18496 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18497 lt_status=$lt_dlunknown
18498 cat > conftest.$ac_ext <<_LT_EOF
18499 #line 18499 "configure"
18500 #include "confdefs.h"
18501
18502 #if HAVE_DLFCN_H
18503 #include <dlfcn.h>
18504 #endif
18505
18506 #include <stdio.h>
18507
18508 #ifdef RTLD_GLOBAL
18509 # define LT_DLGLOBAL RTLD_GLOBAL
18510 #else
18511 # ifdef DL_GLOBAL
18512 # define LT_DLGLOBAL DL_GLOBAL
18513 # else
18514 # define LT_DLGLOBAL 0
18515 # endif
18516 #endif
18517
18518 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18519 find out it does not work in some platform. */
18520 #ifndef LT_DLLAZY_OR_NOW
18521 # ifdef RTLD_LAZY
18522 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18523 # else
18524 # ifdef DL_LAZY
18525 # define LT_DLLAZY_OR_NOW DL_LAZY
18526 # else
18527 # ifdef RTLD_NOW
18528 # define LT_DLLAZY_OR_NOW RTLD_NOW
18529 # else
18530 # ifdef DL_NOW
18531 # define LT_DLLAZY_OR_NOW DL_NOW
18532 # else
18533 # define LT_DLLAZY_OR_NOW 0
18534 # endif
18535 # endif
18536 # endif
18537 # endif
18538 #endif
18539
18540 /* When -fvisbility=hidden is used, assume the code has been annotated
18541 correspondingly for the symbols needed. */
18542 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18543 void fnord () __attribute__((visibility("default")));
18544 #endif
18545
18546 void fnord () { int i=42; }
18547 int main ()
18548 {
18549 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18550 int status = $lt_dlunknown;
18551
18552 if (self)
18553 {
18554 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18555 else
18556 {
18557 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18558 else puts (dlerror ());
18559 }
18560 /* dlclose (self); */
18561 }
18562 else
18563 puts (dlerror ());
18564
18565 return status;
18566 }
18567 _LT_EOF
18568 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18569 (eval $ac_link) 2>&5
18570 ac_status=$?
18571 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18572 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18573 (./conftest; exit; ) >&5 2>/dev/null
18574 lt_status=$?
18575 case x$lt_status in
18576 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18577 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18578 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
18579 esac
18580 else :
18581 # compilation failed
18582 lt_cv_dlopen_self_static=no
18583 fi
18584 fi
18585 rm -fr conftest*
18586
18587
18588 fi
18589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18590 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18591 fi
18592
18593 CPPFLAGS="$save_CPPFLAGS"
18594 LDFLAGS="$save_LDFLAGS"
18595 LIBS="$save_LIBS"
18596 ;;
18597 esac
18598
18599 case $lt_cv_dlopen_self in
18600 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18601 *) enable_dlopen_self=unknown ;;
18602 esac
18603
18604 case $lt_cv_dlopen_self_static in
18605 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18606 *) enable_dlopen_self_static=unknown ;;
18607 esac
18608 fi
18609
18610
18611
18612
18613
18614
18615
18616
18617
18618
18619
18620
18621
18622
18623
18624
18625
18626 striplib=
18627 old_striplib=
18628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18629 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18630 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
18631 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18632 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18634 $as_echo "yes" >&6; }
18635 else
18636 # FIXME - insert some real tests, host_os isn't really good enough
18637 case $host_os in
18638 darwin*)
18639 if test -n "$STRIP" ; then
18640 striplib="$STRIP -x"
18641 old_striplib="$STRIP -S"
18642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18643 $as_echo "yes" >&6; }
18644 else
18645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18646 $as_echo "no" >&6; }
18647 fi
18648 ;;
18649 *)
18650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18651 $as_echo "no" >&6; }
18652 ;;
18653 esac
18654 fi
18655
18656
18657
18658
18659
18660
18661
18662
18663
18664
18665
18666
18667 # Report which library types will actually be built
18668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18669 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18671 $as_echo "$can_build_shared" >&6; }
18672
18673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18674 $as_echo_n "checking whether to build shared libraries... " >&6; }
18675 test "$can_build_shared" = "no" && enable_shared=no
18676
18677 # On AIX, shared libraries and static libraries use the same namespace, and
18678 # are all built from PIC.
18679 case $host_os in
18680 aix3*)
18681 test "$enable_shared" = yes && enable_static=no
18682 if test -n "$RANLIB"; then
18683 archive_cmds="$archive_cmds~\$RANLIB \$lib"
18684 postinstall_cmds='$RANLIB $lib'
18685 fi
18686 ;;
18687
18688 aix[4-9]*)
18689 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
18690 test "$enable_shared" = yes && enable_static=no
18691 fi
18692 ;;
18693 esac
18694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18695 $as_echo "$enable_shared" >&6; }
18696
18697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18698 $as_echo_n "checking whether to build static libraries... " >&6; }
18699 # Make sure either enable_shared or enable_static is yes.
18700 test "$enable_shared" = yes || enable_static=yes
18701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18702 $as_echo "$enable_static" >&6; }
18703
18704
18705
18706
18707 fi
18708 ac_ext=cpp
18709 ac_cpp='$CXXCPP $CPPFLAGS'
18710 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18711 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18712 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18713
18714 CC="$lt_save_CC"
18715
18716 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18717 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18718 (test "X$CXX" != "Xg++"))) ; then
18719 ac_ext=cpp
18720 ac_cpp='$CXXCPP $CPPFLAGS'
18721 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18722 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18723 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18725 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18726 if test -z "$CXXCPP"; then
18727 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
18728 $as_echo_n "(cached) " >&6
18729 else
18730 # Double quotes because CXXCPP needs to be expanded
18731 for CXXCPP in "$CXX -E" "/lib/cpp"
18732 do
18733 ac_preproc_ok=false
18734 for ac_cxx_preproc_warn_flag in '' yes
18735 do
18736 # Use a header file that comes with gcc, so configuring glibc
18737 # with a fresh cross-compiler works.
18738 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18739 # <limits.h> exists even on freestanding compilers.
18740 # On the NeXT, cc -E runs the code through the compiler's parser,
18741 # not just through cpp. "Syntax error" is here to catch this case.
18742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18743 /* end confdefs.h. */
18744 #ifdef __STDC__
18745 # include <limits.h>
18746 #else
18747 # include <assert.h>
18748 #endif
18749 Syntax error
18750 _ACEOF
18751 if ac_fn_cxx_try_cpp "$LINENO"; then :
18752
18753 else
18754 # Broken: fails on valid input.
18755 continue
18756 fi
18757 rm -f conftest.err conftest.$ac_ext
18758
18759 # OK, works on sane cases. Now check whether nonexistent headers
18760 # can be detected and how.
18761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18762 /* end confdefs.h. */
18763 #include <ac_nonexistent.h>
18764 _ACEOF
18765 if ac_fn_cxx_try_cpp "$LINENO"; then :
18766 # Broken: success on invalid input.
18767 continue
18768 else
18769 # Passes both tests.
18770 ac_preproc_ok=:
18771 break
18772 fi
18773 rm -f conftest.err conftest.$ac_ext
18774
18775 done
18776 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18777 rm -f conftest.err conftest.$ac_ext
18778 if $ac_preproc_ok; then :
18779 break
18780 fi
18781
18782 done
18783 ac_cv_prog_CXXCPP=$CXXCPP
18784
18785 fi
18786 CXXCPP=$ac_cv_prog_CXXCPP
18787 else
18788 ac_cv_prog_CXXCPP=$CXXCPP
18789 fi
18790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18791 $as_echo "$CXXCPP" >&6; }
18792 ac_preproc_ok=false
18793 for ac_cxx_preproc_warn_flag in '' yes
18794 do
18795 # Use a header file that comes with gcc, so configuring glibc
18796 # with a fresh cross-compiler works.
18797 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18798 # <limits.h> exists even on freestanding compilers.
18799 # On the NeXT, cc -E runs the code through the compiler's parser,
18800 # not just through cpp. "Syntax error" is here to catch this case.
18801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18802 /* end confdefs.h. */
18803 #ifdef __STDC__
18804 # include <limits.h>
18805 #else
18806 # include <assert.h>
18807 #endif
18808 Syntax error
18809 _ACEOF
18810 if ac_fn_cxx_try_cpp "$LINENO"; then :
18811
18812 else
18813 # Broken: fails on valid input.
18814 continue
18815 fi
18816 rm -f conftest.err conftest.$ac_ext
18817
18818 # OK, works on sane cases. Now check whether nonexistent headers
18819 # can be detected and how.
18820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18821 /* end confdefs.h. */
18822 #include <ac_nonexistent.h>
18823 _ACEOF
18824 if ac_fn_cxx_try_cpp "$LINENO"; then :
18825 # Broken: success on invalid input.
18826 continue
18827 else
18828 # Passes both tests.
18829 ac_preproc_ok=:
18830 break
18831 fi
18832 rm -f conftest.err conftest.$ac_ext
18833
18834 done
18835 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18836 rm -f conftest.err conftest.$ac_ext
18837 if $ac_preproc_ok; then :
18838
18839 else
18840 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18841 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18842 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
18843 See \`config.log' for more details." "$LINENO" 5; }
18844 fi
18845
18846 ac_ext=cpp
18847 ac_cpp='$CXXCPP $CPPFLAGS'
18848 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18849 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18850 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18851
18852 else
18853 _lt_caught_CXX_error=yes
18854 fi
18855
18856 ac_ext=cpp
18857 ac_cpp='$CXXCPP $CPPFLAGS'
18858 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18859 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18860 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18861
18862 archive_cmds_need_lc_CXX=no
18863 allow_undefined_flag_CXX=
18864 always_export_symbols_CXX=no
18865 archive_expsym_cmds_CXX=
18866 compiler_needs_object_CXX=no
18867 export_dynamic_flag_spec_CXX=
18868 hardcode_direct_CXX=no
18869 hardcode_direct_absolute_CXX=no
18870 hardcode_libdir_flag_spec_CXX=
18871 hardcode_libdir_flag_spec_ld_CXX=
18872 hardcode_libdir_separator_CXX=
18873 hardcode_minus_L_CXX=no
18874 hardcode_shlibpath_var_CXX=unsupported
18875 hardcode_automatic_CXX=no
18876 inherit_rpath_CXX=no
18877 module_cmds_CXX=
18878 module_expsym_cmds_CXX=
18879 link_all_deplibs_CXX=unknown
18880 old_archive_cmds_CXX=$old_archive_cmds
18881 reload_flag_CXX=$reload_flag
18882 reload_cmds_CXX=$reload_cmds
18883 no_undefined_flag_CXX=
18884 whole_archive_flag_spec_CXX=
18885 enable_shared_with_static_runtimes_CXX=no
18886
18887 # Source file extension for C++ test sources.
18888 ac_ext=cpp
18889
18890 # Object file extension for compiled C++ test sources.
18891 objext=o
18892 objext_CXX=$objext
18893
18894 # No sense in running all these tests if we already determined that
18895 # the CXX compiler isn't working. Some variables (like enable_shared)
18896 # are currently assumed to apply to all compilers on this platform,
18897 # and will be corrupted by setting them based on a non-working compiler.
18898 if test "$_lt_caught_CXX_error" != yes; then
18899 # Code to be used in simple compile tests
18900 lt_simple_compile_test_code="int some_variable = 0;"
18901
18902 # Code to be used in simple link tests
18903 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
18904
18905 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18906
18907
18908
18909
18910
18911
18912 # If no C compiler was specified, use CC.
18913 LTCC=${LTCC-"$CC"}
18914
18915 # If no C compiler flags were specified, use CFLAGS.
18916 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18917
18918 # Allow CC to be a program name with arguments.
18919 compiler=$CC
18920
18921
18922 # save warnings/boilerplate of simple test code
18923 ac_outfile=conftest.$ac_objext
18924 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18925 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18926 _lt_compiler_boilerplate=`cat conftest.err`
18927 $RM conftest*
18928
18929 ac_outfile=conftest.$ac_objext
18930 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18931 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18932 _lt_linker_boilerplate=`cat conftest.err`
18933 $RM -r conftest*
18934
18935
18936 # Allow CC to be a program name with arguments.
18937 lt_save_CC=$CC
18938 lt_save_LD=$LD
18939 lt_save_GCC=$GCC
18940 GCC=$GXX
18941 lt_save_with_gnu_ld=$with_gnu_ld
18942 lt_save_path_LD=$lt_cv_path_LD
18943 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18944 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18945 else
18946 $as_unset lt_cv_prog_gnu_ld
18947 fi
18948 if test -n "${lt_cv_path_LDCXX+set}"; then
18949 lt_cv_path_LD=$lt_cv_path_LDCXX
18950 else
18951 $as_unset lt_cv_path_LD
18952 fi
18953 test -z "${LDCXX+set}" || LD=$LDCXX
18954 CC=${CXX-"c++"}
18955 compiler=$CC
18956 compiler_CXX=$CC
18957 for cc_temp in $compiler""; do
18958 case $cc_temp in
18959 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18960 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18961 \-*) ;;
18962 *) break;;
18963 esac
18964 done
18965 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18966
18967
18968 if test -n "$compiler"; then
18969 # We don't want -fno-exception when compiling C++ code, so set the
18970 # no_builtin_flag separately
18971 if test "$GXX" = yes; then
18972 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18973 else
18974 lt_prog_compiler_no_builtin_flag_CXX=
18975 fi
18976
18977 if test "$GXX" = yes; then
18978 # Set up default GNU C++ configuration
18979
18980
18981
18982 # Check whether --with-gnu-ld was given.
18983 if test "${with_gnu_ld+set}" = set; then :
18984 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18985 else
18986 with_gnu_ld=no
18987 fi
18988
18989 ac_prog=ld
18990 if test "$GCC" = yes; then
18991 # Check if gcc -print-prog-name=ld gives a path.
18992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
18993 $as_echo_n "checking for ld used by $CC... " >&6; }
18994 case $host in
18995 *-*-mingw*)
18996 # gcc leaves a trailing carriage return which upsets mingw
18997 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18998 *)
18999 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
19000 esac
19001 case $ac_prog in
19002 # Accept absolute paths.
19003 [\\/]* | ?:[\\/]*)
19004 re_direlt='/[^/][^/]*/\.\./'
19005 # Canonicalize the pathname of ld
19006 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
19007 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
19008 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
19009 done
19010 test -z "$LD" && LD="$ac_prog"
19011 ;;
19012 "")
19013 # If it fails, then pretend we aren't using GCC.
19014 ac_prog=ld
19015 ;;
19016 *)
19017 # If it is relative, then search for the first ld in PATH.
19018 with_gnu_ld=unknown
19019 ;;
19020 esac
19021 elif test "$with_gnu_ld" = yes; then
19022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
19023 $as_echo_n "checking for GNU ld... " >&6; }
19024 else
19025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
19026 $as_echo_n "checking for non-GNU ld... " >&6; }
19027 fi
19028 if test "${lt_cv_path_LD+set}" = set; then :
19029 $as_echo_n "(cached) " >&6
19030 else
19031 if test -z "$LD"; then
19032 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
19033 for ac_dir in $PATH; do
19034 IFS="$lt_save_ifs"
19035 test -z "$ac_dir" && ac_dir=.
19036 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
19037 lt_cv_path_LD="$ac_dir/$ac_prog"
19038 # Check to see if the program is GNU ld. I'd rather use --version,
19039 # but apparently some variants of GNU ld only accept -v.
19040 # Break only if it was the GNU/non-GNU ld that we prefer.
19041 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
19042 *GNU* | *'with BFD'*)
19043 test "$with_gnu_ld" != no && break
19044 ;;
19045 *)
19046 test "$with_gnu_ld" != yes && break
19047 ;;
19048 esac
19049 fi
19050 done
19051 IFS="$lt_save_ifs"
19052 else
19053 lt_cv_path_LD="$LD" # Let the user override the test with a path.
19054 fi
19055 fi
19056
19057 LD="$lt_cv_path_LD"
19058 if test -n "$LD"; then
19059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
19060 $as_echo "$LD" >&6; }
19061 else
19062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19063 $as_echo "no" >&6; }
19064 fi
19065 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
19066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
19067 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
19068 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
19069 $as_echo_n "(cached) " >&6
19070 else
19071 # I'd rather use --version here, but apparently some GNU lds only accept -v.
19072 case `$LD -v 2>&1 </dev/null` in
19073 *GNU* | *'with BFD'*)
19074 lt_cv_prog_gnu_ld=yes
19075 ;;
19076 *)
19077 lt_cv_prog_gnu_ld=no
19078 ;;
19079 esac
19080 fi
19081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
19082 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
19083 with_gnu_ld=$lt_cv_prog_gnu_ld
19084
19085
19086
19087
19088
19089
19090
19091 # Check if GNU C++ uses GNU ld as the underlying linker, since the
19092 # archiving commands below assume that GNU ld is being used.
19093 if test "$with_gnu_ld" = yes; then
19094 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19095 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'
19096
19097 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19098 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19099
19100 # If archive_cmds runs LD, not CC, wlarc should be empty
19101 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
19102 # investigate it a little bit more. (MM)
19103 wlarc='${wl}'
19104
19105 # ancient GNU ld didn't support --whole-archive et. al.
19106 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
19107 $GREP 'no-whole-archive' > /dev/null; then
19108 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19109 else
19110 whole_archive_flag_spec_CXX=
19111 fi
19112 else
19113 with_gnu_ld=no
19114 wlarc=
19115
19116 # A generic and very simple default shared library creation
19117 # command for GNU C++ for the case where it uses the native
19118 # linker, instead of GNU ld. If possible, this setting should
19119 # overridden to take advantage of the native linker features on
19120 # the platform it is being used on.
19121 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19122 fi
19123
19124 # Commands to make compiler produce verbose output that lists
19125 # what "hidden" libraries, object files and flags are used when
19126 # linking a shared library.
19127 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19128
19129 else
19130 GXX=no
19131 with_gnu_ld=no
19132 wlarc=
19133 fi
19134
19135 # PORTME: fill in a description of your system's C++ link characteristics
19136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19137 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19138 ld_shlibs_CXX=yes
19139 case $host_os in
19140 aix3*)
19141 # FIXME: insert proper C++ library support
19142 ld_shlibs_CXX=no
19143 ;;
19144 aix[4-9]*)
19145 if test "$host_cpu" = ia64; then
19146 # On IA64, the linker does run time linking by default, so we don't
19147 # have to do anything special.
19148 aix_use_runtimelinking=no
19149 exp_sym_flag='-Bexport'
19150 no_entry_flag=""
19151 else
19152 aix_use_runtimelinking=no
19153
19154 # Test if we are trying to use run time linking or normal
19155 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19156 # need to do runtime linking.
19157 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
19158 for ld_flag in $LDFLAGS; do
19159 case $ld_flag in
19160 *-brtl*)
19161 aix_use_runtimelinking=yes
19162 break
19163 ;;
19164 esac
19165 done
19166 ;;
19167 esac
19168
19169 exp_sym_flag='-bexport'
19170 no_entry_flag='-bnoentry'
19171 fi
19172
19173 # When large executables or shared objects are built, AIX ld can
19174 # have problems creating the table of contents. If linking a library
19175 # or program results in "error TOC overflow" add -mminimal-toc to
19176 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19177 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19178
19179 archive_cmds_CXX=''
19180 hardcode_direct_CXX=yes
19181 hardcode_direct_absolute_CXX=yes
19182 hardcode_libdir_separator_CXX=':'
19183 link_all_deplibs_CXX=yes
19184 file_list_spec_CXX='${wl}-f,'
19185
19186 if test "$GXX" = yes; then
19187 case $host_os in aix4.[012]|aix4.[012].*)
19188 # We only want to do this on AIX 4.2 and lower, the check
19189 # below for broken collect2 doesn't work under 4.3+
19190 collect2name=`${CC} -print-prog-name=collect2`
19191 if test -f "$collect2name" &&
19192 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
19193 then
19194 # We have reworked collect2
19195 :
19196 else
19197 # We have old collect2
19198 hardcode_direct_CXX=unsupported
19199 # It fails to find uninstalled libraries when the uninstalled
19200 # path is not listed in the libpath. Setting hardcode_minus_L
19201 # to unsupported forces relinking
19202 hardcode_minus_L_CXX=yes
19203 hardcode_libdir_flag_spec_CXX='-L$libdir'
19204 hardcode_libdir_separator_CXX=
19205 fi
19206 esac
19207 shared_flag='-shared'
19208 if test "$aix_use_runtimelinking" = yes; then
19209 shared_flag="$shared_flag "'${wl}-G'
19210 fi
19211 else
19212 # not using gcc
19213 if test "$host_cpu" = ia64; then
19214 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19215 # chokes on -Wl,-G. The following line is correct:
19216 shared_flag='-G'
19217 else
19218 if test "$aix_use_runtimelinking" = yes; then
19219 shared_flag='${wl}-G'
19220 else
19221 shared_flag='${wl}-bM:SRE'
19222 fi
19223 fi
19224 fi
19225
19226 export_dynamic_flag_spec_CXX='${wl}-bexpall'
19227 # It seems that -bexpall does not export symbols beginning with
19228 # underscore (_), so it is better to generate a list of symbols to
19229 # export.
19230 always_export_symbols_CXX=yes
19231 if test "$aix_use_runtimelinking" = yes; then
19232 # Warning - without using the other runtime loading flags (-brtl),
19233 # -berok will link without error, but may produce a broken library.
19234 allow_undefined_flag_CXX='-berok'
19235 # Determine the default libpath from the value encoded in an empty
19236 # executable.
19237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19238 /* end confdefs.h. */
19239
19240 int
19241 main ()
19242 {
19243
19244 ;
19245 return 0;
19246 }
19247 _ACEOF
19248 if ac_fn_cxx_try_link "$LINENO"; then :
19249
19250 lt_aix_libpath_sed='
19251 /Import File Strings/,/^$/ {
19252 /^0/ {
19253 s/^0 *\(.*\)$/\1/
19254 p
19255 }
19256 }'
19257 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19258 # Check for a 64-bit object if we didn't find anything.
19259 if test -z "$aix_libpath"; then
19260 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19261 fi
19262 fi
19263 rm -f core conftest.err conftest.$ac_objext \
19264 conftest$ac_exeext conftest.$ac_ext
19265 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19266
19267 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19268
19269 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"
19270 else
19271 if test "$host_cpu" = ia64; then
19272 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
19273 allow_undefined_flag_CXX="-z nodefs"
19274 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"
19275 else
19276 # Determine the default libpath from the value encoded in an
19277 # empty executable.
19278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19279 /* end confdefs.h. */
19280
19281 int
19282 main ()
19283 {
19284
19285 ;
19286 return 0;
19287 }
19288 _ACEOF
19289 if ac_fn_cxx_try_link "$LINENO"; then :
19290
19291 lt_aix_libpath_sed='
19292 /Import File Strings/,/^$/ {
19293 /^0/ {
19294 s/^0 *\(.*\)$/\1/
19295 p
19296 }
19297 }'
19298 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19299 # Check for a 64-bit object if we didn't find anything.
19300 if test -z "$aix_libpath"; then
19301 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19302 fi
19303 fi
19304 rm -f core conftest.err conftest.$ac_objext \
19305 conftest$ac_exeext conftest.$ac_ext
19306 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19307
19308 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19309 # Warning - without using the other run time loading flags,
19310 # -berok will link without error, but may produce a broken library.
19311 no_undefined_flag_CXX=' ${wl}-bernotok'
19312 allow_undefined_flag_CXX=' ${wl}-berok'
19313 if test "$with_gnu_ld" = yes; then
19314 # We only use this code for GNU lds that support --whole-archive.
19315 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19316 else
19317 # Exported symbols can be pulled into shared objects from archives
19318 whole_archive_flag_spec_CXX='$convenience'
19319 fi
19320 archive_cmds_need_lc_CXX=yes
19321 # This is similar to how AIX traditionally builds its shared
19322 # libraries.
19323 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'
19324 fi
19325 fi
19326 ;;
19327
19328 beos*)
19329 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
19330 allow_undefined_flag_CXX=unsupported
19331 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19332 # support --undefined. This deserves some investigation. FIXME
19333 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19334 else
19335 ld_shlibs_CXX=no
19336 fi
19337 ;;
19338
19339 chorus*)
19340 case $cc_basename in
19341 *)
19342 # FIXME: insert proper C++ library support
19343 ld_shlibs_CXX=no
19344 ;;
19345 esac
19346 ;;
19347
19348 cygwin* | mingw* | pw32* | cegcc*)
19349 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19350 # as there is no search path for DLLs.
19351 hardcode_libdir_flag_spec_CXX='-L$libdir'
19352 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
19353 allow_undefined_flag_CXX=unsupported
19354 always_export_symbols_CXX=no
19355 enable_shared_with_static_runtimes_CXX=yes
19356
19357 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
19358 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'
19359 # If the export-symbols file already is a .def file (1st line
19360 # is EXPORTS), use it as is; otherwise, prepend...
19361 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19362 cp $export_symbols $output_objdir/$soname.def;
19363 else
19364 echo EXPORTS > $output_objdir/$soname.def;
19365 cat $export_symbols >> $output_objdir/$soname.def;
19366 fi~
19367 $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'
19368 else
19369 ld_shlibs_CXX=no
19370 fi
19371 ;;
19372 darwin* | rhapsody*)
19373
19374
19375 archive_cmds_need_lc_CXX=no
19376 hardcode_direct_CXX=no
19377 hardcode_automatic_CXX=yes
19378 hardcode_shlibpath_var_CXX=unsupported
19379 if test "$lt_cv_ld_force_load" = "yes"; then
19380 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\"`'
19381 else
19382 whole_archive_flag_spec_CXX=''
19383 fi
19384 link_all_deplibs_CXX=yes
19385 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
19386 case $cc_basename in
19387 ifort*) _lt_dar_can_shared=yes ;;
19388 *) _lt_dar_can_shared=$GCC ;;
19389 esac
19390 if test "$_lt_dar_can_shared" = "yes"; then
19391 output_verbose_link_cmd=func_echo_all
19392 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}"
19393 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19394 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}"
19395 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}"
19396 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
19397 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}"
19398 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}"
19399 fi
19400
19401 else
19402 ld_shlibs_CXX=no
19403 fi
19404
19405 ;;
19406
19407 dgux*)
19408 case $cc_basename in
19409 ec++*)
19410 # FIXME: insert proper C++ library support
19411 ld_shlibs_CXX=no
19412 ;;
19413 ghcx*)
19414 # Green Hills C++ Compiler
19415 # FIXME: insert proper C++ library support
19416 ld_shlibs_CXX=no
19417 ;;
19418 *)
19419 # FIXME: insert proper C++ library support
19420 ld_shlibs_CXX=no
19421 ;;
19422 esac
19423 ;;
19424
19425 freebsd2.*)
19426 # C++ shared libraries reported to be fairly broken before
19427 # switch to ELF
19428 ld_shlibs_CXX=no
19429 ;;
19430
19431 freebsd-elf*)
19432 archive_cmds_need_lc_CXX=no
19433 ;;
19434
19435 freebsd* | dragonfly*)
19436 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19437 # conventions
19438 ld_shlibs_CXX=yes
19439 ;;
19440
19441 gnu*)
19442 ;;
19443
19444 haiku*)
19445 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19446 link_all_deplibs_CXX=yes
19447 ;;
19448
19449 hpux9*)
19450 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19451 hardcode_libdir_separator_CXX=:
19452 export_dynamic_flag_spec_CXX='${wl}-E'
19453 hardcode_direct_CXX=yes
19454 hardcode_minus_L_CXX=yes # Not in the search PATH,
19455 # but as the default
19456 # location of the library.
19457
19458 case $cc_basename in
19459 CC*)
19460 # FIXME: insert proper C++ library support
19461 ld_shlibs_CXX=no
19462 ;;
19463 aCC*)
19464 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'
19465 # Commands to make compiler produce verbose output that lists
19466 # what "hidden" libraries, object files and flags are used when
19467 # linking a shared library.
19468 #
19469 # There doesn't appear to be a way to prevent this compiler from
19470 # explicitly linking system object files so we need to strip them
19471 # from the output so that they don't get included in the library
19472 # dependencies.
19473 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"'
19474 ;;
19475 *)
19476 if test "$GXX" = yes; then
19477 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'
19478 else
19479 # FIXME: insert proper C++ library support
19480 ld_shlibs_CXX=no
19481 fi
19482 ;;
19483 esac
19484 ;;
19485
19486 hpux10*|hpux11*)
19487 if test $with_gnu_ld = no; then
19488 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19489 hardcode_libdir_separator_CXX=:
19490
19491 case $host_cpu in
19492 hppa*64*|ia64*)
19493 ;;
19494 *)
19495 export_dynamic_flag_spec_CXX='${wl}-E'
19496 ;;
19497 esac
19498 fi
19499 case $host_cpu in
19500 hppa*64*|ia64*)
19501 hardcode_direct_CXX=no
19502 hardcode_shlibpath_var_CXX=no
19503 ;;
19504 *)
19505 hardcode_direct_CXX=yes
19506 hardcode_direct_absolute_CXX=yes
19507 hardcode_minus_L_CXX=yes # Not in the search PATH,
19508 # but as the default
19509 # location of the library.
19510 ;;
19511 esac
19512
19513 case $cc_basename in
19514 CC*)
19515 # FIXME: insert proper C++ library support
19516 ld_shlibs_CXX=no
19517 ;;
19518 aCC*)
19519 case $host_cpu in
19520 hppa*64*)
19521 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19522 ;;
19523 ia64*)
19524 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19525 ;;
19526 *)
19527 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19528 ;;
19529 esac
19530 # Commands to make compiler produce verbose output that lists
19531 # what "hidden" libraries, object files and flags are used when
19532 # linking a shared library.
19533 #
19534 # There doesn't appear to be a way to prevent this compiler from
19535 # explicitly linking system object files so we need to strip them
19536 # from the output so that they don't get included in the library
19537 # dependencies.
19538 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"'
19539 ;;
19540 *)
19541 if test "$GXX" = yes; then
19542 if test $with_gnu_ld = no; then
19543 case $host_cpu in
19544 hppa*64*)
19545 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19546 ;;
19547 ia64*)
19548 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19549 ;;
19550 *)
19551 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'
19552 ;;
19553 esac
19554 fi
19555 else
19556 # FIXME: insert proper C++ library support
19557 ld_shlibs_CXX=no
19558 fi
19559 ;;
19560 esac
19561 ;;
19562
19563 interix[3-9]*)
19564 hardcode_direct_CXX=no
19565 hardcode_shlibpath_var_CXX=no
19566 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19567 export_dynamic_flag_spec_CXX='${wl}-E'
19568 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19569 # Instead, shared libraries are loaded at an image base (0x10000000 by
19570 # default) and relocated if they conflict, which is a slow very memory
19571 # consuming and fragmenting process. To avoid this, we pick a random,
19572 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19573 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19574 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'
19575 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'
19576 ;;
19577 irix5* | irix6*)
19578 case $cc_basename in
19579 CC*)
19580 # SGI C++
19581 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'
19582
19583 # Archives containing C++ object files must be created using
19584 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19585 # necessary to make sure instantiated templates are included
19586 # in the archive.
19587 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19588 ;;
19589 *)
19590 if test "$GXX" = yes; then
19591 if test "$with_gnu_ld" = no; then
19592 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'
19593 else
19594 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'
19595 fi
19596 fi
19597 link_all_deplibs_CXX=yes
19598 ;;
19599 esac
19600 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19601 hardcode_libdir_separator_CXX=:
19602 inherit_rpath_CXX=yes
19603 ;;
19604
19605 linux* | k*bsd*-gnu | kopensolaris*-gnu)
19606 case $cc_basename in
19607 KCC*)
19608 # Kuck and Associates, Inc. (KAI) C++ Compiler
19609
19610 # KCC will only create a shared library if the output file
19611 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19612 # to its proper name (with version) after linking.
19613 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'
19614 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'
19615 # Commands to make compiler produce verbose output that lists
19616 # what "hidden" libraries, object files and flags are used when
19617 # linking a shared library.
19618 #
19619 # There doesn't appear to be a way to prevent this compiler from
19620 # explicitly linking system object files so we need to strip them
19621 # from the output so that they don't get included in the library
19622 # dependencies.
19623 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"'
19624
19625 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19626 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19627
19628 # Archives containing C++ object files must be created using
19629 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19630 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19631 ;;
19632 icpc* | ecpc* )
19633 # Intel C++
19634 with_gnu_ld=yes
19635 # version 8.0 and above of icpc choke on multiply defined symbols
19636 # if we add $predep_objects and $postdep_objects, however 7.1 and
19637 # earlier do not add the objects themselves.
19638 case `$CC -V 2>&1` in
19639 *"Version 7."*)
19640 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19641 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'
19642 ;;
19643 *) # Version 8.0 or newer
19644 tmp_idyn=
19645 case $host_cpu in
19646 ia64*) tmp_idyn=' -i_dynamic';;
19647 esac
19648 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19649 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'
19650 ;;
19651 esac
19652 archive_cmds_need_lc_CXX=no
19653 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19654 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19655 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19656 ;;
19657 pgCC* | pgcpp*)
19658 # Portland Group C++ compiler
19659 case `$CC -V` in
19660 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
19661 prelink_cmds_CXX='tpldir=Template.dir~
19662 rm -rf $tpldir~
19663 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19664 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
19665 old_archive_cmds_CXX='tpldir=Template.dir~
19666 rm -rf $tpldir~
19667 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19668 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
19669 $RANLIB $oldlib'
19670 archive_cmds_CXX='tpldir=Template.dir~
19671 rm -rf $tpldir~
19672 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19673 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19674 archive_expsym_cmds_CXX='tpldir=Template.dir~
19675 rm -rf $tpldir~
19676 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19677 $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'
19678 ;;
19679 *) # Version 6 and above use weak symbols
19680 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19681 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'
19682 ;;
19683 esac
19684
19685 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19686 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19687 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'
19688 ;;
19689 cxx*)
19690 # Compaq C++
19691 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19692 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'
19693
19694 runpath_var=LD_RUN_PATH
19695 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19696 hardcode_libdir_separator_CXX=:
19697
19698 # Commands to make compiler produce verbose output that lists
19699 # what "hidden" libraries, object files and flags are used when
19700 # linking a shared library.
19701 #
19702 # There doesn't appear to be a way to prevent this compiler from
19703 # explicitly linking system object files so we need to strip them
19704 # from the output so that they don't get included in the library
19705 # dependencies.
19706 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'
19707 ;;
19708 xl* | mpixl* | bgxl*)
19709 # IBM XL 8.0 on PPC, with GNU ld
19710 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19711 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19712 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19713 if test "x$supports_anon_versioning" = xyes; then
19714 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
19715 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19716 echo "local: *; };" >> $output_objdir/$libname.ver~
19717 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19718 fi
19719 ;;
19720 *)
19721 case `$CC -V 2>&1 | sed 5q` in
19722 *Sun\ C*)
19723 # Sun C++ 5.9
19724 no_undefined_flag_CXX=' -zdefs'
19725 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19726 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'
19727 hardcode_libdir_flag_spec_CXX='-R$libdir'
19728 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'
19729 compiler_needs_object_CXX=yes
19730
19731 # Not sure whether something based on
19732 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19733 # would be better.
19734 output_verbose_link_cmd='func_echo_all'
19735
19736 # Archives containing C++ object files must be created using
19737 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19738 # necessary to make sure instantiated templates are included
19739 # in the archive.
19740 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19741 ;;
19742 esac
19743 ;;
19744 esac
19745 ;;
19746
19747 lynxos*)
19748 # FIXME: insert proper C++ library support
19749 ld_shlibs_CXX=no
19750 ;;
19751
19752 m88k*)
19753 # FIXME: insert proper C++ library support
19754 ld_shlibs_CXX=no
19755 ;;
19756
19757 mvs*)
19758 case $cc_basename in
19759 cxx*)
19760 # FIXME: insert proper C++ library support
19761 ld_shlibs_CXX=no
19762 ;;
19763 *)
19764 # FIXME: insert proper C++ library support
19765 ld_shlibs_CXX=no
19766 ;;
19767 esac
19768 ;;
19769
19770 netbsd*)
19771 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19772 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19773 wlarc=
19774 hardcode_libdir_flag_spec_CXX='-R$libdir'
19775 hardcode_direct_CXX=yes
19776 hardcode_shlibpath_var_CXX=no
19777 fi
19778 # Workaround some broken pre-1.5 toolchains
19779 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19780 ;;
19781
19782 *nto* | *qnx*)
19783 ld_shlibs_CXX=yes
19784 ;;
19785
19786 openbsd2*)
19787 # C++ shared libraries are fairly broken
19788 ld_shlibs_CXX=no
19789 ;;
19790
19791 openbsd*)
19792 if test -f /usr/libexec/ld.so; then
19793 hardcode_direct_CXX=yes
19794 hardcode_shlibpath_var_CXX=no
19795 hardcode_direct_absolute_CXX=yes
19796 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19797 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19798 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19799 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19800 export_dynamic_flag_spec_CXX='${wl}-E'
19801 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19802 fi
19803 output_verbose_link_cmd=func_echo_all
19804 else
19805 ld_shlibs_CXX=no
19806 fi
19807 ;;
19808
19809 osf3* | osf4* | osf5*)
19810 case $cc_basename in
19811 KCC*)
19812 # Kuck and Associates, Inc. (KAI) C++ Compiler
19813
19814 # KCC will only create a shared library if the output file
19815 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19816 # to its proper name (with version) after linking.
19817 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'
19818
19819 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19820 hardcode_libdir_separator_CXX=:
19821
19822 # Archives containing C++ object files must be created using
19823 # the KAI C++ compiler.
19824 case $host in
19825 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
19826 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
19827 esac
19828 ;;
19829 RCC*)
19830 # Rational C++ 2.4.1
19831 # FIXME: insert proper C++ library support
19832 ld_shlibs_CXX=no
19833 ;;
19834 cxx*)
19835 case $host in
19836 osf3*)
19837 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19838 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'
19839 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19840 ;;
19841 *)
19842 allow_undefined_flag_CXX=' -expect_unresolved \*'
19843 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'
19844 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19845 echo "-hidden">> $lib.exp~
19846 $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~
19847 $RM $lib.exp'
19848 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19849 ;;
19850 esac
19851
19852 hardcode_libdir_separator_CXX=:
19853
19854 # Commands to make compiler produce verbose output that lists
19855 # what "hidden" libraries, object files and flags are used when
19856 # linking a shared library.
19857 #
19858 # There doesn't appear to be a way to prevent this compiler from
19859 # explicitly linking system object files so we need to strip them
19860 # from the output so that they don't get included in the library
19861 # dependencies.
19862 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"'
19863 ;;
19864 *)
19865 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19866 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19867 case $host in
19868 osf3*)
19869 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'
19870 ;;
19871 *)
19872 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'
19873 ;;
19874 esac
19875
19876 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19877 hardcode_libdir_separator_CXX=:
19878
19879 # Commands to make compiler produce verbose output that lists
19880 # what "hidden" libraries, object files and flags are used when
19881 # linking a shared library.
19882 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19883
19884 else
19885 # FIXME: insert proper C++ library support
19886 ld_shlibs_CXX=no
19887 fi
19888 ;;
19889 esac
19890 ;;
19891
19892 psos*)
19893 # FIXME: insert proper C++ library support
19894 ld_shlibs_CXX=no
19895 ;;
19896
19897 sunos4*)
19898 case $cc_basename in
19899 CC*)
19900 # Sun C++ 4.x
19901 # FIXME: insert proper C++ library support
19902 ld_shlibs_CXX=no
19903 ;;
19904 lcc*)
19905 # Lucid
19906 # FIXME: insert proper C++ library support
19907 ld_shlibs_CXX=no
19908 ;;
19909 *)
19910 # FIXME: insert proper C++ library support
19911 ld_shlibs_CXX=no
19912 ;;
19913 esac
19914 ;;
19915
19916 solaris*)
19917 case $cc_basename in
19918 CC*)
19919 # Sun C++ 4.2, 5.x and Centerline C++
19920 archive_cmds_need_lc_CXX=yes
19921 no_undefined_flag_CXX=' -zdefs'
19922 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19923 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19924 $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'
19925
19926 hardcode_libdir_flag_spec_CXX='-R$libdir'
19927 hardcode_shlibpath_var_CXX=no
19928 case $host_os in
19929 solaris2.[0-5] | solaris2.[0-5].*) ;;
19930 *)
19931 # The compiler driver will combine and reorder linker options,
19932 # but understands `-z linker_flag'.
19933 # Supported since Solaris 2.6 (maybe 2.5.1?)
19934 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
19935 ;;
19936 esac
19937 link_all_deplibs_CXX=yes
19938
19939 output_verbose_link_cmd='func_echo_all'
19940
19941 # Archives containing C++ object files must be created using
19942 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19943 # necessary to make sure instantiated templates are included
19944 # in the archive.
19945 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19946 ;;
19947 gcx*)
19948 # Green Hills C++ Compiler
19949 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19950
19951 # The C++ compiler must be used to create the archive.
19952 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19953 ;;
19954 *)
19955 # GNU C++ compiler with Solaris linker
19956 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19957 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19958 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
19959 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19960 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19961 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19962
19963 # Commands to make compiler produce verbose output that lists
19964 # what "hidden" libraries, object files and flags are used when
19965 # linking a shared library.
19966 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19967 else
19968 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19969 # platform.
19970 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19971 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19972 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19973
19974 # Commands to make compiler produce verbose output that lists
19975 # what "hidden" libraries, object files and flags are used when
19976 # linking a shared library.
19977 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19978 fi
19979
19980 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19981 case $host_os in
19982 solaris2.[0-5] | solaris2.[0-5].*) ;;
19983 *)
19984 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19985 ;;
19986 esac
19987 fi
19988 ;;
19989 esac
19990 ;;
19991
19992 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19993 no_undefined_flag_CXX='${wl}-z,text'
19994 archive_cmds_need_lc_CXX=no
19995 hardcode_shlibpath_var_CXX=no
19996 runpath_var='LD_RUN_PATH'
19997
19998 case $cc_basename in
19999 CC*)
20000 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20001 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20002 ;;
20003 *)
20004 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20005 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20006 ;;
20007 esac
20008 ;;
20009
20010 sysv5* | sco3.2v5* | sco5v6*)
20011 # Note: We can NOT use -z defs as we might desire, because we do not
20012 # link with -lc, and that would cause any symbols used from libc to
20013 # always be unresolved, which means just about no library would
20014 # ever link correctly. If we're not using GNU ld we use -z text
20015 # though, which does catch some bad symbols but isn't as heavy-handed
20016 # as -z defs.
20017 no_undefined_flag_CXX='${wl}-z,text'
20018 allow_undefined_flag_CXX='${wl}-z,nodefs'
20019 archive_cmds_need_lc_CXX=no
20020 hardcode_shlibpath_var_CXX=no
20021 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
20022 hardcode_libdir_separator_CXX=':'
20023 link_all_deplibs_CXX=yes
20024 export_dynamic_flag_spec_CXX='${wl}-Bexport'
20025 runpath_var='LD_RUN_PATH'
20026
20027 case $cc_basename in
20028 CC*)
20029 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20030 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20031 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
20032 '"$old_archive_cmds_CXX"
20033 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
20034 '"$reload_cmds_CXX"
20035 ;;
20036 *)
20037 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20038 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20039 ;;
20040 esac
20041 ;;
20042
20043 tandem*)
20044 case $cc_basename in
20045 NCC*)
20046 # NonStop-UX NCC 3.20
20047 # FIXME: insert proper C++ library support
20048 ld_shlibs_CXX=no
20049 ;;
20050 *)
20051 # FIXME: insert proper C++ library support
20052 ld_shlibs_CXX=no
20053 ;;
20054 esac
20055 ;;
20056
20057 vxworks*)
20058 # FIXME: insert proper C++ library support
20059 ld_shlibs_CXX=no
20060 ;;
20061
20062 *)
20063 # FIXME: insert proper C++ library support
20064 ld_shlibs_CXX=no
20065 ;;
20066 esac
20067
20068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20069 $as_echo "$ld_shlibs_CXX" >&6; }
20070 test "$ld_shlibs_CXX" = no && can_build_shared=no
20071
20072 GCC_CXX="$GXX"
20073 LD_CXX="$LD"
20074
20075 ## CAVEAT EMPTOR:
20076 ## There is no encapsulation within the following macros, do not change
20077 ## the running order or otherwise move them around unless you know exactly
20078 ## what you are doing...
20079 # Dependencies to place before and after the object being linked:
20080 predep_objects_CXX=
20081 postdep_objects_CXX=
20082 predeps_CXX=
20083 postdeps_CXX=
20084 compiler_lib_search_path_CXX=
20085
20086 cat > conftest.$ac_ext <<_LT_EOF
20087 class Foo
20088 {
20089 public:
20090 Foo (void) { a = 0; }
20091 private:
20092 int a;
20093 };
20094 _LT_EOF
20095
20096 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20097 (eval $ac_compile) 2>&5
20098 ac_status=$?
20099 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20100 test $ac_status = 0; }; then
20101 # Parse the compiler output and extract the necessary
20102 # objects, libraries and library flags.
20103
20104 # Sentinel used to keep track of whether or not we are before
20105 # the conftest object file.
20106 pre_test_object_deps_done=no
20107
20108 for p in `eval "$output_verbose_link_cmd"`; do
20109 case $p in
20110
20111 -L* | -R* | -l*)
20112 # Some compilers place space between "-{L,R}" and the path.
20113 # Remove the space.
20114 if test $p = "-L" ||
20115 test $p = "-R"; then
20116 prev=$p
20117 continue
20118 else
20119 prev=
20120 fi
20121
20122 if test "$pre_test_object_deps_done" = no; then
20123 case $p in
20124 -L* | -R*)
20125 # Internal compiler library paths should come after those
20126 # provided the user. The postdeps already come after the
20127 # user supplied libs so there is no need to process them.
20128 if test -z "$compiler_lib_search_path_CXX"; then
20129 compiler_lib_search_path_CXX="${prev}${p}"
20130 else
20131 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
20132 fi
20133 ;;
20134 # The "-l" case would never come before the object being
20135 # linked, so don't bother handling this case.
20136 esac
20137 else
20138 if test -z "$postdeps_CXX"; then
20139 postdeps_CXX="${prev}${p}"
20140 else
20141 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
20142 fi
20143 fi
20144 ;;
20145
20146 *.$objext)
20147 # This assumes that the test object file only shows up
20148 # once in the compiler output.
20149 if test "$p" = "conftest.$objext"; then
20150 pre_test_object_deps_done=yes
20151 continue
20152 fi
20153
20154 if test "$pre_test_object_deps_done" = no; then
20155 if test -z "$predep_objects_CXX"; then
20156 predep_objects_CXX="$p"
20157 else
20158 predep_objects_CXX="$predep_objects_CXX $p"
20159 fi
20160 else
20161 if test -z "$postdep_objects_CXX"; then
20162 postdep_objects_CXX="$p"
20163 else
20164 postdep_objects_CXX="$postdep_objects_CXX $p"
20165 fi
20166 fi
20167 ;;
20168
20169 *) ;; # Ignore the rest.
20170
20171 esac
20172 done
20173
20174 # Clean up.
20175 rm -f a.out a.exe
20176 else
20177 echo "libtool.m4: error: problem compiling CXX test program"
20178 fi
20179
20180 $RM -f confest.$objext
20181
20182 # PORTME: override above test on systems where it is broken
20183 case $host_os in
20184 interix[3-9]*)
20185 # Interix 3.5 installs completely hosed .la files for C++, so rather than
20186 # hack all around it, let's just trust "g++" to DTRT.
20187 predep_objects_CXX=
20188 postdep_objects_CXX=
20189 postdeps_CXX=
20190 ;;
20191
20192 linux*)
20193 case `$CC -V 2>&1 | sed 5q` in
20194 *Sun\ C*)
20195 # Sun C++ 5.9
20196
20197 # The more standards-conforming stlport4 library is
20198 # incompatible with the Cstd library. Avoid specifying
20199 # it if it's in CXXFLAGS. Ignore libCrun as
20200 # -library=stlport4 depends on it.
20201 case " $CXX $CXXFLAGS " in
20202 *" -library=stlport4 "*)
20203 solaris_use_stlport4=yes
20204 ;;
20205 esac
20206
20207 if test "$solaris_use_stlport4" != yes; then
20208 postdeps_CXX='-library=Cstd -library=Crun'
20209 fi
20210 ;;
20211 esac
20212 ;;
20213
20214 solaris*)
20215 case $cc_basename in
20216 CC*)
20217 # The more standards-conforming stlport4 library is
20218 # incompatible with the Cstd library. Avoid specifying
20219 # it if it's in CXXFLAGS. Ignore libCrun as
20220 # -library=stlport4 depends on it.
20221 case " $CXX $CXXFLAGS " in
20222 *" -library=stlport4 "*)
20223 solaris_use_stlport4=yes
20224 ;;
20225 esac
20226
20227 # Adding this requires a known-good setup of shared libraries for
20228 # Sun compiler versions before 5.6, else PIC objects from an old
20229 # archive will be linked into the output, leading to subtle bugs.
20230 if test "$solaris_use_stlport4" != yes; then
20231 postdeps_CXX='-library=Cstd -library=Crun'
20232 fi
20233 ;;
20234 esac
20235 ;;
20236 esac
20237
20238
20239 case " $postdeps_CXX " in
20240 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
20241 esac
20242 compiler_lib_search_dirs_CXX=
20243 if test -n "${compiler_lib_search_path_CXX}"; then
20244 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
20245 fi
20246
20247
20248
20249
20250
20251
20252
20253
20254
20255
20256
20257
20258
20259
20260
20261
20262
20263
20264
20265
20266
20267
20268
20269
20270
20271
20272
20273
20274
20275
20276
20277 lt_prog_compiler_wl_CXX=
20278 lt_prog_compiler_pic_CXX=
20279 lt_prog_compiler_static_CXX=
20280
20281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
20282 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
20283
20284 # C++ specific cases for pic, static, wl, etc.
20285 if test "$GXX" = yes; then
20286 lt_prog_compiler_wl_CXX='-Wl,'
20287 lt_prog_compiler_static_CXX='-static'
20288
20289 case $host_os in
20290 aix*)
20291 # All AIX code is PIC.
20292 if test "$host_cpu" = ia64; then
20293 # AIX 5 now supports IA64 processor
20294 lt_prog_compiler_static_CXX='-Bstatic'
20295 fi
20296 lt_prog_compiler_pic_CXX='-fPIC'
20297 ;;
20298
20299 amigaos*)
20300 case $host_cpu in
20301 powerpc)
20302 # see comment about AmigaOS4 .so support
20303 lt_prog_compiler_pic_CXX='-fPIC'
20304 ;;
20305 m68k)
20306 # FIXME: we need at least 68020 code to build shared libraries, but
20307 # adding the `-m68020' flag to GCC prevents building anything better,
20308 # like `-m68040'.
20309 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
20310 ;;
20311 esac
20312 ;;
20313
20314 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20315 # PIC is the default for these OSes.
20316 ;;
20317 mingw* | cygwin* | os2* | pw32* | cegcc*)
20318 # This hack is so that the source file can tell whether it is being
20319 # built for inclusion in a dll (and should export symbols for example).
20320 # Although the cygwin gcc ignores -fPIC, still need this for old-style
20321 # (--disable-auto-import) libraries
20322 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
20323 ;;
20324 darwin* | rhapsody*)
20325 # PIC is the default on this platform
20326 # Common symbols not allowed in MH_DYLIB files
20327 lt_prog_compiler_pic_CXX='-fno-common'
20328 ;;
20329 *djgpp*)
20330 # DJGPP does not support shared libraries at all
20331 lt_prog_compiler_pic_CXX=
20332 ;;
20333 haiku*)
20334 # PIC is the default for Haiku.
20335 # The "-static" flag exists, but is broken.
20336 lt_prog_compiler_static_CXX=
20337 ;;
20338 interix[3-9]*)
20339 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20340 # Instead, we relocate shared libraries at runtime.
20341 ;;
20342 sysv4*MP*)
20343 if test -d /usr/nec; then
20344 lt_prog_compiler_pic_CXX=-Kconform_pic
20345 fi
20346 ;;
20347 hpux*)
20348 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
20349 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
20350 # sets the default TLS model and affects inlining.
20351 case $host_cpu in
20352 hppa*64*)
20353 ;;
20354 *)
20355 lt_prog_compiler_pic_CXX='-fPIC'
20356 ;;
20357 esac
20358 ;;
20359 *qnx* | *nto*)
20360 # QNX uses GNU C++, but need to define -shared option too, otherwise
20361 # it will coredump.
20362 lt_prog_compiler_pic_CXX='-fPIC -shared'
20363 ;;
20364 *)
20365 lt_prog_compiler_pic_CXX='-fPIC'
20366 ;;
20367 esac
20368 else
20369 case $host_os in
20370 aix[4-9]*)
20371 # All AIX code is PIC.
20372 if test "$host_cpu" = ia64; then
20373 # AIX 5 now supports IA64 processor
20374 lt_prog_compiler_static_CXX='-Bstatic'
20375 else
20376 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
20377 fi
20378 ;;
20379 chorus*)
20380 case $cc_basename in
20381 cxch68*)
20382 # Green Hills C++ Compiler
20383 # _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"
20384 ;;
20385 esac
20386 ;;
20387 dgux*)
20388 case $cc_basename in
20389 ec++*)
20390 lt_prog_compiler_pic_CXX='-KPIC'
20391 ;;
20392 ghcx*)
20393 # Green Hills C++ Compiler
20394 lt_prog_compiler_pic_CXX='-pic'
20395 ;;
20396 *)
20397 ;;
20398 esac
20399 ;;
20400 freebsd* | dragonfly*)
20401 # FreeBSD uses GNU C++
20402 ;;
20403 hpux9* | hpux10* | hpux11*)
20404 case $cc_basename in
20405 CC*)
20406 lt_prog_compiler_wl_CXX='-Wl,'
20407 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20408 if test "$host_cpu" != ia64; then
20409 lt_prog_compiler_pic_CXX='+Z'
20410 fi
20411 ;;
20412 aCC*)
20413 lt_prog_compiler_wl_CXX='-Wl,'
20414 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20415 case $host_cpu in
20416 hppa*64*|ia64*)
20417 # +Z the default
20418 ;;
20419 *)
20420 lt_prog_compiler_pic_CXX='+Z'
20421 ;;
20422 esac
20423 ;;
20424 *)
20425 ;;
20426 esac
20427 ;;
20428 interix*)
20429 # This is c89, which is MS Visual C++ (no shared libs)
20430 # Anyone wants to do a port?
20431 ;;
20432 irix5* | irix6* | nonstopux*)
20433 case $cc_basename in
20434 CC*)
20435 lt_prog_compiler_wl_CXX='-Wl,'
20436 lt_prog_compiler_static_CXX='-non_shared'
20437 # CC pic flag -KPIC is the default.
20438 ;;
20439 *)
20440 ;;
20441 esac
20442 ;;
20443 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20444 case $cc_basename in
20445 KCC*)
20446 # KAI C++ Compiler
20447 lt_prog_compiler_wl_CXX='--backend -Wl,'
20448 lt_prog_compiler_pic_CXX='-fPIC'
20449 ;;
20450 ecpc* )
20451 # old Intel C++ for x86_64 which still supported -KPIC.
20452 lt_prog_compiler_wl_CXX='-Wl,'
20453 lt_prog_compiler_pic_CXX='-KPIC'
20454 lt_prog_compiler_static_CXX='-static'
20455 ;;
20456 icpc* )
20457 # Intel C++, used to be incompatible with GCC.
20458 # ICC 10 doesn't accept -KPIC any more.
20459 lt_prog_compiler_wl_CXX='-Wl,'
20460 lt_prog_compiler_pic_CXX='-fPIC'
20461 lt_prog_compiler_static_CXX='-static'
20462 ;;
20463 pgCC* | pgcpp*)
20464 # Portland Group C++ compiler
20465 lt_prog_compiler_wl_CXX='-Wl,'
20466 lt_prog_compiler_pic_CXX='-fpic'
20467 lt_prog_compiler_static_CXX='-Bstatic'
20468 ;;
20469 cxx*)
20470 # Compaq C++
20471 # Make sure the PIC flag is empty. It appears that all Alpha
20472 # Linux and Compaq Tru64 Unix objects are PIC.
20473 lt_prog_compiler_pic_CXX=
20474 lt_prog_compiler_static_CXX='-non_shared'
20475 ;;
20476 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
20477 # IBM XL 8.0, 9.0 on PPC and BlueGene
20478 lt_prog_compiler_wl_CXX='-Wl,'
20479 lt_prog_compiler_pic_CXX='-qpic'
20480 lt_prog_compiler_static_CXX='-qstaticlink'
20481 ;;
20482 *)
20483 case `$CC -V 2>&1 | sed 5q` in
20484 *Sun\ C*)
20485 # Sun C++ 5.9
20486 lt_prog_compiler_pic_CXX='-KPIC'
20487 lt_prog_compiler_static_CXX='-Bstatic'
20488 lt_prog_compiler_wl_CXX='-Qoption ld '
20489 ;;
20490 esac
20491 ;;
20492 esac
20493 ;;
20494 lynxos*)
20495 ;;
20496 m88k*)
20497 ;;
20498 mvs*)
20499 case $cc_basename in
20500 cxx*)
20501 lt_prog_compiler_pic_CXX='-W c,exportall'
20502 ;;
20503 *)
20504 ;;
20505 esac
20506 ;;
20507 netbsd*)
20508 ;;
20509 *qnx* | *nto*)
20510 # QNX uses GNU C++, but need to define -shared option too, otherwise
20511 # it will coredump.
20512 lt_prog_compiler_pic_CXX='-fPIC -shared'
20513 ;;
20514 osf3* | osf4* | osf5*)
20515 case $cc_basename in
20516 KCC*)
20517 lt_prog_compiler_wl_CXX='--backend -Wl,'
20518 ;;
20519 RCC*)
20520 # Rational C++ 2.4.1
20521 lt_prog_compiler_pic_CXX='-pic'
20522 ;;
20523 cxx*)
20524 # Digital/Compaq C++
20525 lt_prog_compiler_wl_CXX='-Wl,'
20526 # Make sure the PIC flag is empty. It appears that all Alpha
20527 # Linux and Compaq Tru64 Unix objects are PIC.
20528 lt_prog_compiler_pic_CXX=
20529 lt_prog_compiler_static_CXX='-non_shared'
20530 ;;
20531 *)
20532 ;;
20533 esac
20534 ;;
20535 psos*)
20536 ;;
20537 solaris*)
20538 case $cc_basename in
20539 CC*)
20540 # Sun C++ 4.2, 5.x and Centerline C++
20541 lt_prog_compiler_pic_CXX='-KPIC'
20542 lt_prog_compiler_static_CXX='-Bstatic'
20543 lt_prog_compiler_wl_CXX='-Qoption ld '
20544 ;;
20545 gcx*)
20546 # Green Hills C++ Compiler
20547 lt_prog_compiler_pic_CXX='-PIC'
20548 ;;
20549 *)
20550 ;;
20551 esac
20552 ;;
20553 sunos4*)
20554 case $cc_basename in
20555 CC*)
20556 # Sun C++ 4.x
20557 lt_prog_compiler_pic_CXX='-pic'
20558 lt_prog_compiler_static_CXX='-Bstatic'
20559 ;;
20560 lcc*)
20561 # Lucid
20562 lt_prog_compiler_pic_CXX='-pic'
20563 ;;
20564 *)
20565 ;;
20566 esac
20567 ;;
20568 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20569 case $cc_basename in
20570 CC*)
20571 lt_prog_compiler_wl_CXX='-Wl,'
20572 lt_prog_compiler_pic_CXX='-KPIC'
20573 lt_prog_compiler_static_CXX='-Bstatic'
20574 ;;
20575 esac
20576 ;;
20577 tandem*)
20578 case $cc_basename in
20579 NCC*)
20580 # NonStop-UX NCC 3.20
20581 lt_prog_compiler_pic_CXX='-KPIC'
20582 ;;
20583 *)
20584 ;;
20585 esac
20586 ;;
20587 vxworks*)
20588 ;;
20589 *)
20590 lt_prog_compiler_can_build_shared_CXX=no
20591 ;;
20592 esac
20593 fi
20594
20595 case $host_os in
20596 # For platforms which do not support PIC, -DPIC is meaningless:
20597 *djgpp*)
20598 lt_prog_compiler_pic_CXX=
20599 ;;
20600 *)
20601 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20602 ;;
20603 esac
20604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
20605 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
20606
20607
20608
20609 #
20610 # Check to make sure the PIC flag actually works.
20611 #
20612 if test -n "$lt_prog_compiler_pic_CXX"; then
20613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20614 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20615 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
20616 $as_echo_n "(cached) " >&6
20617 else
20618 lt_cv_prog_compiler_pic_works_CXX=no
20619 ac_outfile=conftest.$ac_objext
20620 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20621 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20622 # Insert the option either (1) after the last *FLAGS variable, or
20623 # (2) before a word containing "conftest.", or (3) at the end.
20624 # Note that $ac_compile itself does not contain backslashes and begins
20625 # with a dollar sign (not a hyphen), so the echo should work correctly.
20626 # The option is referenced via a variable to avoid confusing sed.
20627 lt_compile=`echo "$ac_compile" | $SED \
20628 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20629 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20630 -e 's:$: $lt_compiler_flag:'`
20631 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20632 (eval "$lt_compile" 2>conftest.err)
20633 ac_status=$?
20634 cat conftest.err >&5
20635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20636 if (exit $ac_status) && test -s "$ac_outfile"; then
20637 # The compiler can only warn and ignore the option if not recognized
20638 # So say no if there are warnings other than the usual output.
20639 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
20640 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20641 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20642 lt_cv_prog_compiler_pic_works_CXX=yes
20643 fi
20644 fi
20645 $RM conftest*
20646
20647 fi
20648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20649 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20650
20651 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
20652 case $lt_prog_compiler_pic_CXX in
20653 "" | " "*) ;;
20654 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20655 esac
20656 else
20657 lt_prog_compiler_pic_CXX=
20658 lt_prog_compiler_can_build_shared_CXX=no
20659 fi
20660
20661 fi
20662
20663
20664
20665 #
20666 # Check to make sure the static flag actually works.
20667 #
20668 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20670 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20671 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
20672 $as_echo_n "(cached) " >&6
20673 else
20674 lt_cv_prog_compiler_static_works_CXX=no
20675 save_LDFLAGS="$LDFLAGS"
20676 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20677 echo "$lt_simple_link_test_code" > conftest.$ac_ext
20678 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20679 # The linker can only warn and ignore the option if not recognized
20680 # So say no if there are warnings
20681 if test -s conftest.err; then
20682 # Append any errors to the config.log.
20683 cat conftest.err 1>&5
20684 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
20685 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20686 if diff conftest.exp conftest.er2 >/dev/null; then
20687 lt_cv_prog_compiler_static_works_CXX=yes
20688 fi
20689 else
20690 lt_cv_prog_compiler_static_works_CXX=yes
20691 fi
20692 fi
20693 $RM -r conftest*
20694 LDFLAGS="$save_LDFLAGS"
20695
20696 fi
20697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20698 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20699
20700 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
20701 :
20702 else
20703 lt_prog_compiler_static_CXX=
20704 fi
20705
20706
20707
20708
20709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20710 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20711 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20712 $as_echo_n "(cached) " >&6
20713 else
20714 lt_cv_prog_compiler_c_o_CXX=no
20715 $RM -r conftest 2>/dev/null
20716 mkdir conftest
20717 cd conftest
20718 mkdir out
20719 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20720
20721 lt_compiler_flag="-o out/conftest2.$ac_objext"
20722 # Insert the option either (1) after the last *FLAGS variable, or
20723 # (2) before a word containing "conftest.", or (3) at the end.
20724 # Note that $ac_compile itself does not contain backslashes and begins
20725 # with a dollar sign (not a hyphen), so the echo should work correctly.
20726 lt_compile=`echo "$ac_compile" | $SED \
20727 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20728 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20729 -e 's:$: $lt_compiler_flag:'`
20730 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20731 (eval "$lt_compile" 2>out/conftest.err)
20732 ac_status=$?
20733 cat out/conftest.err >&5
20734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20735 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20736 then
20737 # The compiler can only warn and ignore the option if not recognized
20738 # So say no if there are warnings
20739 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20740 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20741 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20742 lt_cv_prog_compiler_c_o_CXX=yes
20743 fi
20744 fi
20745 chmod u+w . 2>&5
20746 $RM conftest*
20747 # SGI C++ compiler will create directory out/ii_files/ for
20748 # template instantiation
20749 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20750 $RM out/* && rmdir out
20751 cd ..
20752 $RM -r conftest
20753 $RM conftest*
20754
20755 fi
20756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20757 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20758
20759
20760
20761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20762 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20763 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20764 $as_echo_n "(cached) " >&6
20765 else
20766 lt_cv_prog_compiler_c_o_CXX=no
20767 $RM -r conftest 2>/dev/null
20768 mkdir conftest
20769 cd conftest
20770 mkdir out
20771 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20772
20773 lt_compiler_flag="-o out/conftest2.$ac_objext"
20774 # Insert the option either (1) after the last *FLAGS variable, or
20775 # (2) before a word containing "conftest.", or (3) at the end.
20776 # Note that $ac_compile itself does not contain backslashes and begins
20777 # with a dollar sign (not a hyphen), so the echo should work correctly.
20778 lt_compile=`echo "$ac_compile" | $SED \
20779 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20780 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20781 -e 's:$: $lt_compiler_flag:'`
20782 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20783 (eval "$lt_compile" 2>out/conftest.err)
20784 ac_status=$?
20785 cat out/conftest.err >&5
20786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20787 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20788 then
20789 # The compiler can only warn and ignore the option if not recognized
20790 # So say no if there are warnings
20791 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20792 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20793 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20794 lt_cv_prog_compiler_c_o_CXX=yes
20795 fi
20796 fi
20797 chmod u+w . 2>&5
20798 $RM conftest*
20799 # SGI C++ compiler will create directory out/ii_files/ for
20800 # template instantiation
20801 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20802 $RM out/* && rmdir out
20803 cd ..
20804 $RM -r conftest
20805 $RM conftest*
20806
20807 fi
20808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20809 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20810
20811
20812
20813
20814 hard_links="nottested"
20815 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20816 # do not overwrite the value of need_locks provided by the user
20817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20818 $as_echo_n "checking if we can lock with hard links... " >&6; }
20819 hard_links=yes
20820 $RM conftest*
20821 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20822 touch conftest.a
20823 ln conftest.a conftest.b 2>&5 || hard_links=no
20824 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20826 $as_echo "$hard_links" >&6; }
20827 if test "$hard_links" = no; then
20828 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20829 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20830 need_locks=warn
20831 fi
20832 else
20833 need_locks=no
20834 fi
20835
20836
20837
20838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20839 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20840
20841 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20842 case $host_os in
20843 aix[4-9]*)
20844 # If we're using GNU nm, then we don't want the "-C" option.
20845 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20846 # Also, AIX nm treats weak defined symbols like other global defined
20847 # symbols, whereas GNU nm marks them as "W".
20848 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
20849 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'
20850 else
20851 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
20852 fi
20853 ;;
20854 pw32*)
20855 export_symbols_cmds_CXX="$ltdll_cmds"
20856 ;;
20857 cygwin* | mingw* | cegcc*)
20858 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'
20859 ;;
20860 *)
20861 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20862 ;;
20863 esac
20864 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20865
20866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20867 $as_echo "$ld_shlibs_CXX" >&6; }
20868 test "$ld_shlibs_CXX" = no && can_build_shared=no
20869
20870 with_gnu_ld_CXX=$with_gnu_ld
20871
20872
20873
20874
20875
20876
20877 #
20878 # Do we need to explicitly link libc?
20879 #
20880 case "x$archive_cmds_need_lc_CXX" in
20881 x|xyes)
20882 # Assume -lc should be added
20883 archive_cmds_need_lc_CXX=yes
20884
20885 if test "$enable_shared" = yes && test "$GCC" = yes; then
20886 case $archive_cmds_CXX in
20887 *'~'*)
20888 # FIXME: we may have to deal with multi-command sequences.
20889 ;;
20890 '$CC '*)
20891 # Test whether the compiler implicitly links with -lc since on some
20892 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20893 # to ld, don't add -lc before -lgcc.
20894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20895 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20896 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
20897 $as_echo_n "(cached) " >&6
20898 else
20899 $RM conftest*
20900 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20901
20902 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20903 (eval $ac_compile) 2>&5
20904 ac_status=$?
20905 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20906 test $ac_status = 0; } 2>conftest.err; then
20907 soname=conftest
20908 lib=conftest
20909 libobjs=conftest.$ac_objext
20910 deplibs=
20911 wl=$lt_prog_compiler_wl_CXX
20912 pic_flag=$lt_prog_compiler_pic_CXX
20913 compiler_flags=-v
20914 linker_flags=-v
20915 verstring=
20916 output_objdir=.
20917 libname=conftest
20918 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20919 allow_undefined_flag_CXX=
20920 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20921 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
20922 ac_status=$?
20923 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20924 test $ac_status = 0; }
20925 then
20926 lt_cv_archive_cmds_need_lc_CXX=no
20927 else
20928 lt_cv_archive_cmds_need_lc_CXX=yes
20929 fi
20930 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20931 else
20932 cat conftest.err 1>&5
20933 fi
20934 $RM conftest*
20935
20936 fi
20937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20938 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20939 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
20940 ;;
20941 esac
20942 fi
20943 ;;
20944 esac
20945
20946
20947
20948
20949
20950
20951
20952
20953
20954
20955
20956
20957
20958
20959
20960
20961
20962
20963
20964
20965
20966
20967
20968
20969
20970
20971
20972
20973
20974
20975
20976
20977
20978
20979
20980
20981
20982
20983
20984
20985
20986
20987
20988
20989
20990
20991
20992
20993
20994
20995
20996
20997
20998
20999
21000
21001
21002
21003
21004
21005
21006
21007
21008
21009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
21010 $as_echo_n "checking dynamic linker characteristics... " >&6; }
21011
21012 library_names_spec=
21013 libname_spec='lib$name'
21014 soname_spec=
21015 shrext_cmds=".so"
21016 postinstall_cmds=
21017 postuninstall_cmds=
21018 finish_cmds=
21019 finish_eval=
21020 shlibpath_var=
21021 shlibpath_overrides_runpath=unknown
21022 version_type=none
21023 dynamic_linker="$host_os ld.so"
21024 sys_lib_dlsearch_path_spec="/lib /usr/lib"
21025 need_lib_prefix=unknown
21026 hardcode_into_libs=no
21027
21028 # when you set need_version to no, make sure it does not cause -set_version
21029 # flags to be left without arguments
21030 need_version=unknown
21031
21032 case $host_os in
21033 aix3*)
21034 version_type=linux
21035 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
21036 shlibpath_var=LIBPATH
21037
21038 # AIX 3 has no versioning support, so we append a major version to the name.
21039 soname_spec='${libname}${release}${shared_ext}$major'
21040 ;;
21041
21042 aix[4-9]*)
21043 version_type=linux
21044 need_lib_prefix=no
21045 need_version=no
21046 hardcode_into_libs=yes
21047 if test "$host_cpu" = ia64; then
21048 # AIX 5 supports IA64
21049 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
21050 shlibpath_var=LD_LIBRARY_PATH
21051 else
21052 # With GCC up to 2.95.x, collect2 would create an import file
21053 # for dependence libraries. The import file would start with
21054 # the line `#! .'. This would cause the generated library to
21055 # depend on `.', always an invalid library. This was fixed in
21056 # development snapshots of GCC prior to 3.0.
21057 case $host_os in
21058 aix4 | aix4.[01] | aix4.[01].*)
21059 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
21060 echo ' yes '
21061 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
21062 :
21063 else
21064 can_build_shared=no
21065 fi
21066 ;;
21067 esac
21068 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
21069 # soname into executable. Probably we can add versioning support to
21070 # collect2, so additional links can be useful in future.
21071 if test "$aix_use_runtimelinking" = yes; then
21072 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
21073 # instead of lib<name>.a to let people know that these are not
21074 # typical AIX shared libraries.
21075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21076 else
21077 # We preserve .a as extension for shared libraries through AIX4.2
21078 # and later when we are not doing run time linking.
21079 library_names_spec='${libname}${release}.a $libname.a'
21080 soname_spec='${libname}${release}${shared_ext}$major'
21081 fi
21082 shlibpath_var=LIBPATH
21083 fi
21084 ;;
21085
21086 amigaos*)
21087 case $host_cpu in
21088 powerpc)
21089 # Since July 2007 AmigaOS4 officially supports .so libraries.
21090 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
21091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21092 ;;
21093 m68k)
21094 library_names_spec='$libname.ixlibrary $libname.a'
21095 # Create ${libname}_ixlibrary.a entries in /sys/libs.
21096 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'
21097 ;;
21098 esac
21099 ;;
21100
21101 beos*)
21102 library_names_spec='${libname}${shared_ext}'
21103 dynamic_linker="$host_os ld.so"
21104 shlibpath_var=LIBRARY_PATH
21105 ;;
21106
21107 bsdi[45]*)
21108 version_type=linux
21109 need_version=no
21110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21111 soname_spec='${libname}${release}${shared_ext}$major'
21112 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
21113 shlibpath_var=LD_LIBRARY_PATH
21114 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
21115 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
21116 # the default ld.so.conf also contains /usr/contrib/lib and
21117 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
21118 # libtool to hard-code these into programs
21119 ;;
21120
21121 cygwin* | mingw* | pw32* | cegcc*)
21122 version_type=windows
21123 shrext_cmds=".dll"
21124 need_version=no
21125 need_lib_prefix=no
21126
21127 case $GCC,$host_os in
21128 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
21129 library_names_spec='$libname.dll.a'
21130 # DLL is installed to $(libdir)/../bin by postinstall_cmds
21131 postinstall_cmds='base_file=`basename \${file}`~
21132 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
21133 dldir=$destdir/`dirname \$dlpath`~
21134 test -d \$dldir || mkdir -p \$dldir~
21135 $install_prog $dir/$dlname \$dldir/$dlname~
21136 chmod a+x \$dldir/$dlname~
21137 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
21138 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
21139 fi'
21140 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
21141 dlpath=$dir/\$dldll~
21142 $RM \$dlpath'
21143 shlibpath_overrides_runpath=yes
21144
21145 case $host_os in
21146 cygwin*)
21147 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
21148 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21149
21150 ;;
21151 mingw* | cegcc*)
21152 # MinGW DLLs use traditional 'lib' prefix
21153 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21154 ;;
21155 pw32*)
21156 # pw32 DLLs use 'pw' prefix rather than 'lib'
21157 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21158 ;;
21159 esac
21160 ;;
21161
21162 *)
21163 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
21164 ;;
21165 esac
21166 dynamic_linker='Win32 ld.exe'
21167 # FIXME: first we should search . and the directory the executable is in
21168 shlibpath_var=PATH
21169 ;;
21170
21171 darwin* | rhapsody*)
21172 dynamic_linker="$host_os dyld"
21173 version_type=darwin
21174 need_lib_prefix=no
21175 need_version=no
21176 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
21177 soname_spec='${libname}${release}${major}$shared_ext'
21178 shlibpath_overrides_runpath=yes
21179 shlibpath_var=DYLD_LIBRARY_PATH
21180 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
21181
21182 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
21183 ;;
21184
21185 dgux*)
21186 version_type=linux
21187 need_lib_prefix=no
21188 need_version=no
21189 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
21190 soname_spec='${libname}${release}${shared_ext}$major'
21191 shlibpath_var=LD_LIBRARY_PATH
21192 ;;
21193
21194 freebsd* | dragonfly*)
21195 # DragonFly does not have aout. When/if they implement a new
21196 # versioning mechanism, adjust this.
21197 if test -x /usr/bin/objformat; then
21198 objformat=`/usr/bin/objformat`
21199 else
21200 case $host_os in
21201 freebsd[23].*) objformat=aout ;;
21202 *) objformat=elf ;;
21203 esac
21204 fi
21205 version_type=freebsd-$objformat
21206 case $version_type in
21207 freebsd-elf*)
21208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21209 need_version=no
21210 need_lib_prefix=no
21211 ;;
21212 freebsd-*)
21213 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
21214 need_version=yes
21215 ;;
21216 esac
21217 shlibpath_var=LD_LIBRARY_PATH
21218 case $host_os in
21219 freebsd2.*)
21220 shlibpath_overrides_runpath=yes
21221 ;;
21222 freebsd3.[01]* | freebsdelf3.[01]*)
21223 shlibpath_overrides_runpath=yes
21224 hardcode_into_libs=yes
21225 ;;
21226 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
21227 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
21228 shlibpath_overrides_runpath=no
21229 hardcode_into_libs=yes
21230 ;;
21231 *) # from 4.6 on, and DragonFly
21232 shlibpath_overrides_runpath=yes
21233 hardcode_into_libs=yes
21234 ;;
21235 esac
21236 ;;
21237
21238 gnu*)
21239 version_type=linux
21240 need_lib_prefix=no
21241 need_version=no
21242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21243 soname_spec='${libname}${release}${shared_ext}$major'
21244 shlibpath_var=LD_LIBRARY_PATH
21245 hardcode_into_libs=yes
21246 ;;
21247
21248 haiku*)
21249 version_type=linux
21250 need_lib_prefix=no
21251 need_version=no
21252 dynamic_linker="$host_os runtime_loader"
21253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21254 soname_spec='${libname}${release}${shared_ext}$major'
21255 shlibpath_var=LIBRARY_PATH
21256 shlibpath_overrides_runpath=yes
21257 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
21258 hardcode_into_libs=yes
21259 ;;
21260
21261 hpux9* | hpux10* | hpux11*)
21262 # Give a soname corresponding to the major version so that dld.sl refuses to
21263 # link against other versions.
21264 version_type=sunos
21265 need_lib_prefix=no
21266 need_version=no
21267 case $host_cpu in
21268 ia64*)
21269 shrext_cmds='.so'
21270 hardcode_into_libs=yes
21271 dynamic_linker="$host_os dld.so"
21272 shlibpath_var=LD_LIBRARY_PATH
21273 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21275 soname_spec='${libname}${release}${shared_ext}$major'
21276 if test "X$HPUX_IA64_MODE" = X32; then
21277 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
21278 else
21279 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
21280 fi
21281 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21282 ;;
21283 hppa*64*)
21284 shrext_cmds='.sl'
21285 hardcode_into_libs=yes
21286 dynamic_linker="$host_os dld.sl"
21287 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
21288 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21290 soname_spec='${libname}${release}${shared_ext}$major'
21291 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
21292 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21293 ;;
21294 *)
21295 shrext_cmds='.sl'
21296 dynamic_linker="$host_os dld.sl"
21297 shlibpath_var=SHLIB_PATH
21298 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
21299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21300 soname_spec='${libname}${release}${shared_ext}$major'
21301 ;;
21302 esac
21303 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
21304 postinstall_cmds='chmod 555 $lib'
21305 # or fails outright, so override atomically:
21306 install_override_mode=555
21307 ;;
21308
21309 interix[3-9]*)
21310 version_type=linux
21311 need_lib_prefix=no
21312 need_version=no
21313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21314 soname_spec='${libname}${release}${shared_ext}$major'
21315 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
21316 shlibpath_var=LD_LIBRARY_PATH
21317 shlibpath_overrides_runpath=no
21318 hardcode_into_libs=yes
21319 ;;
21320
21321 irix5* | irix6* | nonstopux*)
21322 case $host_os in
21323 nonstopux*) version_type=nonstopux ;;
21324 *)
21325 if test "$lt_cv_prog_gnu_ld" = yes; then
21326 version_type=linux
21327 else
21328 version_type=irix
21329 fi ;;
21330 esac
21331 need_lib_prefix=no
21332 need_version=no
21333 soname_spec='${libname}${release}${shared_ext}$major'
21334 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21335 case $host_os in
21336 irix5* | nonstopux*)
21337 libsuff= shlibsuff=
21338 ;;
21339 *)
21340 case $LD in # libtool.m4 will add one of these switches to LD
21341 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
21342 libsuff= shlibsuff= libmagic=32-bit;;
21343 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
21344 libsuff=32 shlibsuff=N32 libmagic=N32;;
21345 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
21346 libsuff=64 shlibsuff=64 libmagic=64-bit;;
21347 *) libsuff= shlibsuff= libmagic=never-match;;
21348 esac
21349 ;;
21350 esac
21351 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
21352 shlibpath_overrides_runpath=no
21353 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21354 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
21355 hardcode_into_libs=yes
21356 ;;
21357
21358 # No shared lib support for Linux oldld, aout, or coff.
21359 linux*oldld* | linux*aout* | linux*coff*)
21360 dynamic_linker=no
21361 ;;
21362
21363 # This must be Linux ELF.
21364 linux* | k*bsd*-gnu | kopensolaris*-gnu)
21365 version_type=linux
21366 need_lib_prefix=no
21367 need_version=no
21368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21369 soname_spec='${libname}${release}${shared_ext}$major'
21370 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21371 shlibpath_var=LD_LIBRARY_PATH
21372 shlibpath_overrides_runpath=no
21373
21374 # Some binutils ld are patched to set DT_RUNPATH
21375 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
21376 $as_echo_n "(cached) " >&6
21377 else
21378 lt_cv_shlibpath_overrides_runpath=no
21379 save_LDFLAGS=$LDFLAGS
21380 save_libdir=$libdir
21381 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
21382 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
21383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21384 /* end confdefs.h. */
21385
21386 int
21387 main ()
21388 {
21389
21390 ;
21391 return 0;
21392 }
21393 _ACEOF
21394 if ac_fn_cxx_try_link "$LINENO"; then :
21395 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
21396 lt_cv_shlibpath_overrides_runpath=yes
21397 fi
21398 fi
21399 rm -f core conftest.err conftest.$ac_objext \
21400 conftest$ac_exeext conftest.$ac_ext
21401 LDFLAGS=$save_LDFLAGS
21402 libdir=$save_libdir
21403
21404 fi
21405
21406 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
21407
21408 # This implies no fast_install, which is unacceptable.
21409 # Some rework will be needed to allow for fast_install
21410 # before this can be enabled.
21411 hardcode_into_libs=yes
21412
21413 # Append ld.so.conf contents to the search path
21414 if test -f /etc/ld.so.conf; then
21415 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' ' '`
21416 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
21417 fi
21418
21419 # We used to test for /lib/ld.so.1 and disable shared libraries on
21420 # powerpc, because MkLinux only supported shared libraries with the
21421 # GNU dynamic linker. Since this was broken with cross compilers,
21422 # most powerpc-linux boxes support dynamic linking these days and
21423 # people can always --disable-shared, the test was removed, and we
21424 # assume the GNU/Linux dynamic linker is in use.
21425 dynamic_linker='GNU/Linux ld.so'
21426 ;;
21427
21428 netbsd*)
21429 version_type=sunos
21430 need_lib_prefix=no
21431 need_version=no
21432 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
21433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21434 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21435 dynamic_linker='NetBSD (a.out) ld.so'
21436 else
21437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21438 soname_spec='${libname}${release}${shared_ext}$major'
21439 dynamic_linker='NetBSD ld.elf_so'
21440 fi
21441 shlibpath_var=LD_LIBRARY_PATH
21442 shlibpath_overrides_runpath=yes
21443 hardcode_into_libs=yes
21444 ;;
21445
21446 newsos6)
21447 version_type=linux
21448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21449 shlibpath_var=LD_LIBRARY_PATH
21450 shlibpath_overrides_runpath=yes
21451 ;;
21452
21453 *nto* | *qnx*)
21454 version_type=qnx
21455 need_lib_prefix=no
21456 need_version=no
21457 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21458 soname_spec='${libname}${release}${shared_ext}$major'
21459 shlibpath_var=LD_LIBRARY_PATH
21460 shlibpath_overrides_runpath=no
21461 hardcode_into_libs=yes
21462 dynamic_linker='ldqnx.so'
21463 ;;
21464
21465 openbsd*)
21466 version_type=sunos
21467 sys_lib_dlsearch_path_spec="/usr/lib"
21468 need_lib_prefix=no
21469 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21470 case $host_os in
21471 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
21472 *) need_version=no ;;
21473 esac
21474 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21475 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21476 shlibpath_var=LD_LIBRARY_PATH
21477 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21478 case $host_os in
21479 openbsd2.[89] | openbsd2.[89].*)
21480 shlibpath_overrides_runpath=no
21481 ;;
21482 *)
21483 shlibpath_overrides_runpath=yes
21484 ;;
21485 esac
21486 else
21487 shlibpath_overrides_runpath=yes
21488 fi
21489 ;;
21490
21491 os2*)
21492 libname_spec='$name'
21493 shrext_cmds=".dll"
21494 need_lib_prefix=no
21495 library_names_spec='$libname${shared_ext} $libname.a'
21496 dynamic_linker='OS/2 ld.exe'
21497 shlibpath_var=LIBPATH
21498 ;;
21499
21500 osf3* | osf4* | osf5*)
21501 version_type=osf
21502 need_lib_prefix=no
21503 need_version=no
21504 soname_spec='${libname}${release}${shared_ext}$major'
21505 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21506 shlibpath_var=LD_LIBRARY_PATH
21507 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21508 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21509 ;;
21510
21511 rdos*)
21512 dynamic_linker=no
21513 ;;
21514
21515 solaris*)
21516 version_type=linux
21517 need_lib_prefix=no
21518 need_version=no
21519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21520 soname_spec='${libname}${release}${shared_ext}$major'
21521 shlibpath_var=LD_LIBRARY_PATH
21522 shlibpath_overrides_runpath=yes
21523 hardcode_into_libs=yes
21524 # ldd complains unless libraries are executable
21525 postinstall_cmds='chmod +x $lib'
21526 ;;
21527
21528 sunos4*)
21529 version_type=sunos
21530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21531 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21532 shlibpath_var=LD_LIBRARY_PATH
21533 shlibpath_overrides_runpath=yes
21534 if test "$with_gnu_ld" = yes; then
21535 need_lib_prefix=no
21536 fi
21537 need_version=yes
21538 ;;
21539
21540 sysv4 | sysv4.3*)
21541 version_type=linux
21542 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21543 soname_spec='${libname}${release}${shared_ext}$major'
21544 shlibpath_var=LD_LIBRARY_PATH
21545 case $host_vendor in
21546 sni)
21547 shlibpath_overrides_runpath=no
21548 need_lib_prefix=no
21549 runpath_var=LD_RUN_PATH
21550 ;;
21551 siemens)
21552 need_lib_prefix=no
21553 ;;
21554 motorola)
21555 need_lib_prefix=no
21556 need_version=no
21557 shlibpath_overrides_runpath=no
21558 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21559 ;;
21560 esac
21561 ;;
21562
21563 sysv4*MP*)
21564 if test -d /usr/nec ;then
21565 version_type=linux
21566 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21567 soname_spec='$libname${shared_ext}.$major'
21568 shlibpath_var=LD_LIBRARY_PATH
21569 fi
21570 ;;
21571
21572 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21573 version_type=freebsd-elf
21574 need_lib_prefix=no
21575 need_version=no
21576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21577 soname_spec='${libname}${release}${shared_ext}$major'
21578 shlibpath_var=LD_LIBRARY_PATH
21579 shlibpath_overrides_runpath=yes
21580 hardcode_into_libs=yes
21581 if test "$with_gnu_ld" = yes; then
21582 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21583 else
21584 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21585 case $host_os in
21586 sco3.2v5*)
21587 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21588 ;;
21589 esac
21590 fi
21591 sys_lib_dlsearch_path_spec='/usr/lib'
21592 ;;
21593
21594 tpf*)
21595 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
21596 version_type=linux
21597 need_lib_prefix=no
21598 need_version=no
21599 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21600 shlibpath_var=LD_LIBRARY_PATH
21601 shlibpath_overrides_runpath=no
21602 hardcode_into_libs=yes
21603 ;;
21604
21605 uts4*)
21606 version_type=linux
21607 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21608 soname_spec='${libname}${release}${shared_ext}$major'
21609 shlibpath_var=LD_LIBRARY_PATH
21610 ;;
21611
21612 *)
21613 dynamic_linker=no
21614 ;;
21615 esac
21616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21617 $as_echo "$dynamic_linker" >&6; }
21618 test "$dynamic_linker" = no && can_build_shared=no
21619
21620 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21621 if test "$GCC" = yes; then
21622 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21623 fi
21624
21625 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21626 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
21627 fi
21628 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21629 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
21630 fi
21631
21632
21633
21634
21635
21636
21637
21638
21639
21640
21641
21642
21643
21644
21645
21646
21647
21648
21649
21650
21651
21652
21653
21654
21655
21656
21657
21658
21659
21660
21661
21662
21663
21664
21665
21666
21667
21668
21669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21670 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21671 hardcode_action_CXX=
21672 if test -n "$hardcode_libdir_flag_spec_CXX" ||
21673 test -n "$runpath_var_CXX" ||
21674 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21675
21676 # We can hardcode non-existent directories.
21677 if test "$hardcode_direct_CXX" != no &&
21678 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21679 # have to relink, otherwise we might link with an installed library
21680 # when we should be linking with a yet-to-be-installed one
21681 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21682 test "$hardcode_minus_L_CXX" != no; then
21683 # Linking always hardcodes the temporary library directory.
21684 hardcode_action_CXX=relink
21685 else
21686 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21687 hardcode_action_CXX=immediate
21688 fi
21689 else
21690 # We cannot hardcode anything, or else we can only hardcode existing
21691 # directories.
21692 hardcode_action_CXX=unsupported
21693 fi
21694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21695 $as_echo "$hardcode_action_CXX" >&6; }
21696
21697 if test "$hardcode_action_CXX" = relink ||
21698 test "$inherit_rpath_CXX" = yes; then
21699 # Fast installation is not supported
21700 enable_fast_install=no
21701 elif test "$shlibpath_overrides_runpath" = yes ||
21702 test "$enable_shared" = no; then
21703 # Fast installation is not necessary
21704 enable_fast_install=needless
21705 fi
21706
21707
21708
21709
21710
21711
21712
21713 fi # test -n "$compiler"
21714
21715 CC=$lt_save_CC
21716 LDCXX=$LD
21717 LD=$lt_save_LD
21718 GCC=$lt_save_GCC
21719 with_gnu_ld=$lt_save_with_gnu_ld
21720 lt_cv_path_LDCXX=$lt_cv_path_LD
21721 lt_cv_path_LD=$lt_save_path_LD
21722 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21723 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21724 fi # test "$_lt_caught_CXX_error" != yes
21725
21726 ac_ext=cpp
21727 ac_cpp='$CXXCPP $CPPFLAGS'
21728 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21729 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21730 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21731
21732
21733
21734
21735
21736
21737
21738
21739
21740
21741
21742
21743
21744
21745
21746
21747 # Only expand once:
21748
21749
21750
21751
21752
21753 # Identify the assembler which will work hand-in-glove with the newly
21754 # built GCC, so that we can examine its features. This is the assembler
21755 # which will be driven by the driver program.
21756 #
21757 # If build != host, and we aren't building gas in-tree, we identify a
21758 # build->target assembler and hope that it will have the same features
21759 # as the host->target assembler we'll be using.
21760 gcc_cv_gas_major_version=
21761 gcc_cv_gas_minor_version=
21762 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
21763
21764 if test "${gcc_cv_as+set}" = set; then :
21765
21766 else
21767
21768 if test -x "$DEFAULT_ASSEMBLER"; then
21769 gcc_cv_as="$DEFAULT_ASSEMBLER"
21770 elif test -f $gcc_cv_as_gas_srcdir/configure.ac \
21771 && test -f ../gas/Makefile \
21772 && test x$build = x$host; then
21773 gcc_cv_as=../gas/as-new$build_exeext
21774 elif test -x as$build_exeext; then
21775 # Build using assembler in the current directory.
21776 gcc_cv_as=./as$build_exeext
21777 elif ( set dummy $AS_FOR_TARGET; test -x $2 ); then
21778 gcc_cv_as="$AS_FOR_TARGET"
21779 else
21780 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
21781 set dummy $AS_FOR_TARGET; ac_word=$2
21782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21783 $as_echo_n "checking for $ac_word... " >&6; }
21784 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
21785 $as_echo_n "(cached) " >&6
21786 else
21787 case $gcc_cv_as in
21788 [\\/]* | ?:[\\/]*)
21789 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
21790 ;;
21791 *)
21792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21793 for as_dir in $PATH
21794 do
21795 IFS=$as_save_IFS
21796 test -z "$as_dir" && as_dir=.
21797 for ac_exec_ext in '' $ac_executable_extensions; do
21798 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21799 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
21800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21801 break 2
21802 fi
21803 done
21804 done
21805 IFS=$as_save_IFS
21806
21807 ;;
21808 esac
21809 fi
21810 gcc_cv_as=$ac_cv_path_gcc_cv_as
21811 if test -n "$gcc_cv_as"; then
21812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21813 $as_echo "$gcc_cv_as" >&6; }
21814 else
21815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21816 $as_echo "no" >&6; }
21817 fi
21818
21819
21820 fi
21821 fi
21822
21823 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
21824
21825 case "$ORIGINAL_AS_FOR_TARGET" in
21826 ./as | ./as$build_exeext) ;;
21827 *) ac_config_files="$ac_config_files as:exec-tool.in"
21828 ;;
21829 esac
21830
21831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
21832 $as_echo_n "checking what assembler to use... " >&6; }
21833 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
21834 # Single tree build which includes gas. We want to prefer it
21835 # over whatever linker top-level may have detected, since
21836 # we'll use what we're building after installation anyway.
21837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
21838 $as_echo "newly built gas" >&6; }
21839 in_tree_gas=yes
21840 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21841 for f in $gcc_cv_as_bfd_srcdir/configure \
21842 $gcc_cv_as_gas_srcdir/configure \
21843 $gcc_cv_as_gas_srcdir/configure.ac \
21844 $gcc_cv_as_gas_srcdir/Makefile.in ; do
21845 gcc_cv_gas_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21846 if test x$gcc_cv_gas_version != x; then
21847 break
21848 fi
21849 done
21850 case $gcc_cv_gas_version in
21851 VERSION=[0-9]*) ;;
21852 *) as_fn_error "cannot find version of in-tree assembler" "$LINENO" 5;;
21853 esac
21854 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
21855 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21856 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
21857 case $gcc_cv_gas_patch_version in
21858 "") gcc_cv_gas_patch_version="0" ;;
21859 esac
21860 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
21861 + $gcc_cv_gas_minor_version \) \* 1000 \
21862 + $gcc_cv_gas_patch_version`
21863
21864 in_tree_gas_is_elf=no
21865 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
21866 || (grep 'obj_format = multi' ../gas/Makefile \
21867 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
21868 then
21869 in_tree_gas_is_elf=yes
21870 fi
21871 else
21872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21873 $as_echo "$gcc_cv_as" >&6; }
21874 in_tree_gas=no
21875 fi
21876
21877 default_ld=
21878 # Check whether --enable-ld was given.
21879 if test "${enable_ld+set}" = set; then :
21880 enableval=$enable_ld; case "${enableval}" in
21881 no)
21882 default_ld=ld.gold
21883 ;;
21884 esac
21885 fi
21886
21887
21888 install_gold_as_default=no
21889 # Check whether --enable-gold was given.
21890 if test "${enable_gold+set}" = set; then :
21891 enableval=$enable_gold; case "${enableval}" in
21892 default)
21893 install_gold_as_default=yes
21894 ;;
21895 yes)
21896 if test x${default_ld} != x; then
21897 install_gold_as_default=yes
21898 fi
21899 ;;
21900 no)
21901 ;;
21902 *)
21903 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
21904 ;;
21905 esac
21906 fi
21907
21908
21909 # Identify the linker which will work hand-in-glove with the newly
21910 # built GCC, so that we can examine its features. This is the linker
21911 # which will be driven by the driver program.
21912 #
21913 # If build != host, and we aren't building gas in-tree, we identify a
21914 # build->target linker and hope that it will have the same features
21915 # as the host->target linker we'll be using.
21916 gcc_cv_gld_major_version=
21917 gcc_cv_gld_minor_version=
21918 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
21919 gcc_cv_ld_gold_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gold
21920 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21921
21922 if test "${gcc_cv_ld+set}" = set; then :
21923
21924 else
21925
21926 if test -x "$DEFAULT_LINKER"; then
21927 gcc_cv_ld="$DEFAULT_LINKER"
21928 elif test $install_gold_as_default = yes \
21929 && test -f $gcc_cv_ld_gold_srcdir/configure.ac \
21930 && test -f ../gold/Makefile \
21931 && test x$build = x$host; then
21932 gcc_cv_ld=../gold/ld-new$build_exeext
21933 elif test -f $gcc_cv_ld_gld_srcdir/configure.ac \
21934 && test -f ../ld/Makefile \
21935 && test x$build = x$host; then
21936 gcc_cv_ld=../ld/ld-new$build_exeext
21937 elif test -x collect-ld$build_exeext; then
21938 # Build using linker in the current directory.
21939 gcc_cv_ld=./collect-ld$build_exeext
21940 elif ( set dummy $LD_FOR_TARGET; test -x $2 ); then
21941 gcc_cv_ld="$LD_FOR_TARGET"
21942 else
21943 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
21944 set dummy $LD_FOR_TARGET; ac_word=$2
21945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21946 $as_echo_n "checking for $ac_word... " >&6; }
21947 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
21948 $as_echo_n "(cached) " >&6
21949 else
21950 case $gcc_cv_ld in
21951 [\\/]* | ?:[\\/]*)
21952 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
21953 ;;
21954 *)
21955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21956 for as_dir in $PATH
21957 do
21958 IFS=$as_save_IFS
21959 test -z "$as_dir" && as_dir=.
21960 for ac_exec_ext in '' $ac_executable_extensions; do
21961 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21962 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
21963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21964 break 2
21965 fi
21966 done
21967 done
21968 IFS=$as_save_IFS
21969
21970 ;;
21971 esac
21972 fi
21973 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
21974 if test -n "$gcc_cv_ld"; then
21975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21976 $as_echo "$gcc_cv_ld" >&6; }
21977 else
21978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21979 $as_echo "no" >&6; }
21980 fi
21981
21982
21983 fi
21984 fi
21985
21986 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
21987 PLUGIN_LD_SUFFIX=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
21988 # if the PLUGIN_LD is set ld-new, just have it as ld
21989 # as that is the installed named.
21990 if test x$PLUGIN_LD_SUFFIX = xld-new \
21991 || test x$PLUGIN_LD_SUFFIX = xcollect-ld ; then
21992 PLUGIN_LD_SUFFIX=ld
21993 fi
21994
21995 # Check whether --with-plugin-ld was given.
21996 if test "${with_plugin_ld+set}" = set; then :
21997 withval=$with_plugin_ld; if test x"$withval" != x; then
21998 ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
21999 PLUGIN_LD_SUFFIX=`echo $withval | sed -e "s,$target_alias-,,"`
22000 fi
22001 fi
22002
22003
22004
22005 cat >>confdefs.h <<_ACEOF
22006 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
22007 _ACEOF
22008
22009
22010 # Check to see if we are using gold instead of ld
22011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
22012 $as_echo_n "checking whether we are using gold... " >&6; }
22013 ld_is_gold=no
22014 if test x$gcc_cv_ld != x; then
22015 if $gcc_cv_ld --version 2>/dev/null | sed 1q \
22016 | grep "GNU gold" > /dev/null; then
22017 ld_is_gold=yes
22018 fi
22019 fi
22020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
22021 $as_echo "$ld_is_gold" >&6; }
22022
22023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gold linker with split stack support as non default" >&5
22024 $as_echo_n "checking gold linker with split stack support as non default... " >&6; }
22025 # Check to see if default ld is not gold, but gold is
22026 # available and has support for split stack. If gcc was configured
22027 # with gold then no checking is done.
22028 #
22029 if test x$ld_is_gold = xno && which ${gcc_cv_ld}.gold >/dev/null 2>&1; then
22030
22031 # For platforms other than powerpc64*, enable as appropriate.
22032
22033 gold_non_default=no
22034 ld_gold=`which ${gcc_cv_ld}.gold`
22035 # Make sure this gold has minimal split stack support
22036 if $ld_gold --help 2>/dev/null | grep split-stack-adjust-size >/dev/null 2>&1; then
22037 ld_vers=`$ld_gold --version | sed 1q`
22038 gold_vers=`echo $ld_vers | sed -n \
22039 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22040 case $target in
22041 # check that the gold version contains the complete split stack support
22042 # on powerpc64 big and little endian
22043 powerpc64*-*-*)
22044 case "$gold_vers" in
22045 2.25.[1-9]*|2.2[6-9][.0-9]*|2.[3-9][.0-9]*|[3-9].[.0-9]*) gold_non_default=yes
22046 ;;
22047 *) gold_non_default=no
22048 ;;
22049 esac
22050 ;;
22051 esac
22052 fi
22053 if test $gold_non_default = yes; then
22054
22055 $as_echo "#define HAVE_GOLD_NON_DEFAULT_SPLIT_STACK 1" >>confdefs.h
22056
22057 fi
22058 fi
22059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_non_default" >&5
22060 $as_echo "$gold_non_default" >&6; }
22061
22062 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
22063
22064 case "$ORIGINAL_LD_FOR_TARGET" in
22065 ./collect-ld | ./collect-ld$build_exeext) ;;
22066 *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
22067 ;;
22068 esac
22069
22070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
22071 $as_echo_n "checking what linker to use... " >&6; }
22072 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext \
22073 || test "$gcc_cv_ld" = ../gold/ld-new$build_exeext; then
22074 # Single tree build which includes ld. We want to prefer it
22075 # over whatever linker top-level may have detected, since
22076 # we'll use what we're building after installation anyway.
22077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
22078 $as_echo "newly built ld" >&6; }
22079 in_tree_ld=yes
22080 in_tree_ld_is_elf=no
22081 if (grep 'EMUL = .*elf' ../ld/Makefile \
22082 || grep 'EMUL = .*linux' ../ld/Makefile \
22083 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
22084 in_tree_ld_is_elf=yes
22085 elif test "$ld_is_gold" = yes; then
22086 in_tree_ld_is_elf=yes
22087 fi
22088 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
22089 do
22090 gcc_cv_gld_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
22091 if test x$gcc_cv_gld_version != x; then
22092 break
22093 fi
22094 done
22095 case $gcc_cv_gld_version in
22096 VERSION=[0-9]*) ;;
22097 *) as_fn_error "cannot find version of in-tree linker" "$LINENO" 5 ;;
22098 esac
22099 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
22100 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
22101 ORIGINAL_LD_BFD_FOR_TARGET=../ld/ld-new$build_exeext
22102 ORIGINAL_LD_GOLD_FOR_TARGET=../gold/ld-new$build_exeext
22103 else
22104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
22105 $as_echo "$gcc_cv_ld" >&6; }
22106 in_tree_ld=no
22107 gcc_cvs_ld_program=`dirname $gcc_cv_ld`/`basename $gcc_cv_ld $host_exeext`
22108 ORIGINAL_LD_BFD_FOR_TARGET=${gcc_cvs_ld_program}.bfd$host_exeext
22109 ORIGINAL_LD_GOLD_FOR_TARGET=${gcc_cvs_ld_program}.gold$host_exeext
22110 fi
22111
22112
22113
22114
22115 # Figure out what nm we will be using.
22116 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
22117 if test "${gcc_cv_nm+set}" = set; then :
22118
22119 else
22120
22121 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22122 && test -f ../binutils/Makefile \
22123 && test x$build = x$host; then
22124 gcc_cv_nm=../binutils/nm-new$build_exeext
22125 elif test -x nm$build_exeext; then
22126 gcc_cv_nm=./nm$build_exeext
22127 elif ( set dummy $NM_FOR_TARGET; test -x $2 ); then
22128 gcc_cv_nm="$NM_FOR_TARGET"
22129 else
22130 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
22131 set dummy $NM_FOR_TARGET; ac_word=$2
22132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22133 $as_echo_n "checking for $ac_word... " >&6; }
22134 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
22135 $as_echo_n "(cached) " >&6
22136 else
22137 case $gcc_cv_nm in
22138 [\\/]* | ?:[\\/]*)
22139 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
22140 ;;
22141 *)
22142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22143 for as_dir in $PATH
22144 do
22145 IFS=$as_save_IFS
22146 test -z "$as_dir" && as_dir=.
22147 for ac_exec_ext in '' $ac_executable_extensions; do
22148 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22149 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
22150 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22151 break 2
22152 fi
22153 done
22154 done
22155 IFS=$as_save_IFS
22156
22157 ;;
22158 esac
22159 fi
22160 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
22161 if test -n "$gcc_cv_nm"; then
22162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
22163 $as_echo "$gcc_cv_nm" >&6; }
22164 else
22165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22166 $as_echo "no" >&6; }
22167 fi
22168
22169
22170 fi
22171 fi
22172
22173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
22174 $as_echo_n "checking what nm to use... " >&6; }
22175 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
22176 # Single tree build which includes binutils.
22177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
22178 $as_echo "newly built nm" >&6; }
22179 in_tree_nm=yes
22180 else
22181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
22182 $as_echo "$gcc_cv_nm" >&6; }
22183 in_tree_nm=no
22184 fi
22185
22186 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
22187
22188 case "$ORIGINAL_NM_FOR_TARGET" in
22189 ./nm | ./nm$build_exeext) ;;
22190 *) ac_config_files="$ac_config_files nm:exec-tool.in"
22191 ;;
22192 esac
22193
22194
22195 # Figure out what objdump we will be using.
22196 if test "${gcc_cv_objdump+set}" = set; then :
22197
22198 else
22199
22200 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22201 && test -f ../binutils/Makefile \
22202 && test x$build = x$host; then
22203 # Single tree build which includes binutils.
22204 gcc_cv_objdump=../binutils/objdump$build_exeext
22205 elif test -x objdump$build_exeext; then
22206 gcc_cv_objdump=./objdump$build_exeext
22207 elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $2 ); then
22208 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
22209 else
22210 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
22211 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
22212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22213 $as_echo_n "checking for $ac_word... " >&6; }
22214 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
22215 $as_echo_n "(cached) " >&6
22216 else
22217 case $gcc_cv_objdump in
22218 [\\/]* | ?:[\\/]*)
22219 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
22220 ;;
22221 *)
22222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22223 for as_dir in $PATH
22224 do
22225 IFS=$as_save_IFS
22226 test -z "$as_dir" && as_dir=.
22227 for ac_exec_ext in '' $ac_executable_extensions; do
22228 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22229 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
22230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22231 break 2
22232 fi
22233 done
22234 done
22235 IFS=$as_save_IFS
22236
22237 ;;
22238 esac
22239 fi
22240 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
22241 if test -n "$gcc_cv_objdump"; then
22242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
22243 $as_echo "$gcc_cv_objdump" >&6; }
22244 else
22245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22246 $as_echo "no" >&6; }
22247 fi
22248
22249
22250 fi
22251 fi
22252
22253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
22254 $as_echo_n "checking what objdump to use... " >&6; }
22255 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
22256 # Single tree build which includes binutils.
22257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
22258 $as_echo "newly built objdump" >&6; }
22259 elif test x$gcc_cv_objdump = x; then
22260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22261 $as_echo "not found" >&6; }
22262 else
22263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
22264 $as_echo "$gcc_cv_objdump" >&6; }
22265 fi
22266
22267 # Figure out what readelf we will be using.
22268 if test "${gcc_cv_readelf+set}" = set; then :
22269
22270 else
22271
22272 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22273 && test -f ../binutils/Makefile \
22274 && test x$build = x$host; then
22275 # Single tree build which includes binutils.
22276 gcc_cv_readelf=../binutils/readelf$build_exeext
22277 elif test -x readelf$build_exeext; then
22278 gcc_cv_readelf=./readelf$build_exeext
22279 elif ( set dummy $READELF_FOR_TARGET; test -x $2 ); then
22280 gcc_cv_readelf="$READELF_FOR_TARGET"
22281 else
22282 # Extract the first word of "$READELF_FOR_TARGET", so it can be a program name with args.
22283 set dummy $READELF_FOR_TARGET; ac_word=$2
22284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22285 $as_echo_n "checking for $ac_word... " >&6; }
22286 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
22287 $as_echo_n "(cached) " >&6
22288 else
22289 case $gcc_cv_readelf in
22290 [\\/]* | ?:[\\/]*)
22291 ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
22292 ;;
22293 *)
22294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22295 for as_dir in $PATH
22296 do
22297 IFS=$as_save_IFS
22298 test -z "$as_dir" && as_dir=.
22299 for ac_exec_ext in '' $ac_executable_extensions; do
22300 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22301 ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
22302 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22303 break 2
22304 fi
22305 done
22306 done
22307 IFS=$as_save_IFS
22308
22309 ;;
22310 esac
22311 fi
22312 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
22313 if test -n "$gcc_cv_readelf"; then
22314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22315 $as_echo "$gcc_cv_readelf" >&6; }
22316 else
22317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22318 $as_echo "no" >&6; }
22319 fi
22320
22321
22322 fi
22323 fi
22324
22325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
22326 $as_echo_n "checking what readelf to use... " >&6; }
22327 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
22328 # Single tree build which includes binutils.
22329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
22330 $as_echo "newly built readelf" >&6; }
22331 elif test x$gcc_cv_readelf = x; then
22332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22333 $as_echo "not found" >&6; }
22334 else
22335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22336 $as_echo "$gcc_cv_readelf" >&6; }
22337 fi
22338
22339 # Figure out what assembler alignment features are present.
22340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
22341 $as_echo_n "checking assembler flags... " >&6; }
22342 if test "${gcc_cv_as_flags+set}" = set; then :
22343 $as_echo_n "(cached) " >&6
22344 else
22345 case "$target" in
22346 i[34567]86-*-linux*)
22347 gcc_cv_as_flags=--32
22348 ;;
22349 x86_64-*-linux-gnux32)
22350 gcc_cv_as_flags=--x32
22351 ;;
22352 x86_64-*-linux*)
22353 gcc_cv_as_flags=--64
22354 ;;
22355 powerpc*-*-darwin*)
22356 gcc_cv_as_flags="-arch ppc"
22357 ;;
22358 *)
22359 gcc_cv_as_flags=" "
22360 ;;
22361 esac
22362 fi
22363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
22364 $as_echo "$gcc_cv_as_flags" >&6; }
22365
22366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
22367 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
22368 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
22369 $as_echo_n "(cached) " >&6
22370 else
22371 gcc_cv_as_balign_and_p2align=no
22372 if test $in_tree_gas = yes; then
22373 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
22374 then gcc_cv_as_balign_and_p2align=yes
22375 fi
22376 elif test x$gcc_cv_as != x; then
22377 $as_echo '.balign 4
22378 .p2align 2' > conftest.s
22379 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22380 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22381 (eval $ac_try) 2>&5
22382 ac_status=$?
22383 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22384 test $ac_status = 0; }; }
22385 then
22386 gcc_cv_as_balign_and_p2align=yes
22387 else
22388 echo "configure: failed program was" >&5
22389 cat conftest.s >&5
22390 fi
22391 rm -f conftest.o conftest.s
22392 fi
22393 fi
22394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
22395 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
22396 if test $gcc_cv_as_balign_and_p2align = yes; then
22397
22398 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
22399
22400 fi
22401
22402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
22403 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
22404 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
22405 $as_echo_n "(cached) " >&6
22406 else
22407 gcc_cv_as_max_skip_p2align=no
22408 if test $in_tree_gas = yes; then
22409 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22410 then gcc_cv_as_max_skip_p2align=yes
22411 fi
22412 elif test x$gcc_cv_as != x; then
22413 $as_echo '.p2align 4,,7' > conftest.s
22414 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22415 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22416 (eval $ac_try) 2>&5
22417 ac_status=$?
22418 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22419 test $ac_status = 0; }; }
22420 then
22421 gcc_cv_as_max_skip_p2align=yes
22422 else
22423 echo "configure: failed program was" >&5
22424 cat conftest.s >&5
22425 fi
22426 rm -f conftest.o conftest.s
22427 fi
22428 fi
22429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
22430 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
22431 if test $gcc_cv_as_max_skip_p2align = yes; then
22432
22433 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
22434
22435 fi
22436
22437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
22438 $as_echo_n "checking assembler for .literal16... " >&6; }
22439 if test "${gcc_cv_as_literal16+set}" = set; then :
22440 $as_echo_n "(cached) " >&6
22441 else
22442 gcc_cv_as_literal16=no
22443 if test $in_tree_gas = yes; then
22444 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22445 then gcc_cv_as_literal16=yes
22446 fi
22447 elif test x$gcc_cv_as != x; then
22448 $as_echo '.literal16' > conftest.s
22449 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22450 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22451 (eval $ac_try) 2>&5
22452 ac_status=$?
22453 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22454 test $ac_status = 0; }; }
22455 then
22456 gcc_cv_as_literal16=yes
22457 else
22458 echo "configure: failed program was" >&5
22459 cat conftest.s >&5
22460 fi
22461 rm -f conftest.o conftest.s
22462 fi
22463 fi
22464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
22465 $as_echo "$gcc_cv_as_literal16" >&6; }
22466 if test $gcc_cv_as_literal16 = yes; then
22467
22468 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
22469
22470 fi
22471
22472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
22473 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
22474 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
22475 $as_echo_n "(cached) " >&6
22476 else
22477 gcc_cv_as_subsection_m1=no
22478 if test $in_tree_gas = yes; then
22479 if test $in_tree_gas_is_elf = yes \
22480 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
22481 then gcc_cv_as_subsection_m1=yes
22482 fi
22483 elif test x$gcc_cv_as != x; then
22484 $as_echo 'conftest_label1: .word 0
22485 .subsection -1
22486 conftest_label2: .word 0
22487 .previous' > conftest.s
22488 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22489 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22490 (eval $ac_try) 2>&5
22491 ac_status=$?
22492 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22493 test $ac_status = 0; }; }
22494 then
22495 if test x$gcc_cv_nm != x; then
22496 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
22497 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
22498 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
22499 then :
22500 else gcc_cv_as_subsection_m1=yes
22501 fi
22502 rm -f conftest.nm1 conftest.nm2
22503 fi
22504 else
22505 echo "configure: failed program was" >&5
22506 cat conftest.s >&5
22507 fi
22508 rm -f conftest.o conftest.s
22509 fi
22510 fi
22511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
22512 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
22513 if test $gcc_cv_as_subsection_m1 = yes; then
22514
22515 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
22516
22517 fi
22518
22519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
22520 $as_echo_n "checking assembler for .weak... " >&6; }
22521 if test "${gcc_cv_as_weak+set}" = set; then :
22522 $as_echo_n "(cached) " >&6
22523 else
22524 gcc_cv_as_weak=no
22525 if test $in_tree_gas = yes; then
22526 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
22527 then gcc_cv_as_weak=yes
22528 fi
22529 elif test x$gcc_cv_as != x; then
22530 $as_echo ' .weak foobar' > conftest.s
22531 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22532 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22533 (eval $ac_try) 2>&5
22534 ac_status=$?
22535 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22536 test $ac_status = 0; }; }
22537 then
22538 gcc_cv_as_weak=yes
22539 else
22540 echo "configure: failed program was" >&5
22541 cat conftest.s >&5
22542 fi
22543 rm -f conftest.o conftest.s
22544 fi
22545 fi
22546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
22547 $as_echo "$gcc_cv_as_weak" >&6; }
22548 if test $gcc_cv_as_weak = yes; then
22549
22550 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
22551
22552 fi
22553
22554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
22555 $as_echo_n "checking assembler for .weakref... " >&6; }
22556 if test "${gcc_cv_as_weakref+set}" = set; then :
22557 $as_echo_n "(cached) " >&6
22558 else
22559 gcc_cv_as_weakref=no
22560 if test $in_tree_gas = yes; then
22561 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
22562 then gcc_cv_as_weakref=yes
22563 fi
22564 elif test x$gcc_cv_as != x; then
22565 $as_echo ' .weakref foobar, barfnot' > conftest.s
22566 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22567 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22568 (eval $ac_try) 2>&5
22569 ac_status=$?
22570 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22571 test $ac_status = 0; }; }
22572 then
22573 gcc_cv_as_weakref=yes
22574 else
22575 echo "configure: failed program was" >&5
22576 cat conftest.s >&5
22577 fi
22578 rm -f conftest.o conftest.s
22579 fi
22580 fi
22581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
22582 $as_echo "$gcc_cv_as_weakref" >&6; }
22583 if test $gcc_cv_as_weakref = yes; then
22584
22585 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
22586
22587 fi
22588
22589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
22590 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
22591 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
22592 $as_echo_n "(cached) " >&6
22593 else
22594 gcc_cv_as_nsubspa_comdat=no
22595 if test $in_tree_gas = yes; then
22596 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22597 then gcc_cv_as_nsubspa_comdat=yes
22598 fi
22599 elif test x$gcc_cv_as != x; then
22600 $as_echo ' .SPACE $TEXT$
22601 .NSUBSPA $CODE$,COMDAT' > conftest.s
22602 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22603 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22604 (eval $ac_try) 2>&5
22605 ac_status=$?
22606 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22607 test $ac_status = 0; }; }
22608 then
22609 gcc_cv_as_nsubspa_comdat=yes
22610 else
22611 echo "configure: failed program was" >&5
22612 cat conftest.s >&5
22613 fi
22614 rm -f conftest.o conftest.s
22615 fi
22616 fi
22617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
22618 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
22619 if test $gcc_cv_as_nsubspa_comdat = yes; then
22620
22621 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
22622
22623 fi
22624
22625 # .hidden needs to be supported in both the assembler and the linker,
22626 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
22627 # This is irritatingly difficult to feature test for; we have to check the
22628 # date string after the version number. If we've got an in-tree
22629 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
22630 # to be safe.
22631 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
22632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
22633 $as_echo_n "checking assembler for .hidden... " >&6; }
22634 if test "${gcc_cv_as_hidden+set}" = set; then :
22635 $as_echo_n "(cached) " >&6
22636 else
22637 gcc_cv_as_hidden=no
22638 if test $in_tree_gas = yes; then
22639 if test $in_tree_gas_is_elf = yes \
22640 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
22641 then gcc_cv_as_hidden=yes
22642 fi
22643 elif test x$gcc_cv_as != x; then
22644 $as_echo ' .hidden foobar
22645 foobar:' > conftest.s
22646 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22647 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22648 (eval $ac_try) 2>&5
22649 ac_status=$?
22650 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22651 test $ac_status = 0; }; }
22652 then
22653 gcc_cv_as_hidden=yes
22654 else
22655 echo "configure: failed program was" >&5
22656 cat conftest.s >&5
22657 fi
22658 rm -f conftest.o conftest.s
22659 fi
22660 fi
22661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
22662 $as_echo "$gcc_cv_as_hidden" >&6; }
22663
22664 case "${target}" in
22665 *-*-darwin*)
22666 # Darwin as has some visibility support, though with a different syntax.
22667 gcc_cv_as_hidden=yes
22668 ;;
22669 esac
22670
22671 # gnu_indirect_function type is an extension proposed at
22672 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
22673 # selection of function implementation
22674 # Check whether --enable-gnu-indirect-function was given.
22675 if test "${enable_gnu_indirect_function+set}" = set; then :
22676 enableval=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
22677 yes | no) ;;
22678 *) as_fn_error "'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
22679 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
22680 esac
22681 else
22682 enable_gnu_indirect_function="$default_gnu_indirect_function"
22683 fi
22684
22685
22686 gif=`if test x$enable_gnu_indirect_function = xyes; then echo 1; else echo 0; fi`
22687
22688 cat >>confdefs.h <<_ACEOF
22689 #define HAVE_GNU_INDIRECT_FUNCTION $gif
22690 _ACEOF
22691
22692
22693
22694 if test $in_tree_ld != yes ; then
22695 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
22696 if echo "$ld_ver" | grep GNU > /dev/null; then
22697 if test x"$ld_is_gold" = xyes; then
22698 # GNU gold --version looks like this:
22699 #
22700 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
22701 #
22702 # We extract the binutils version which is more familiar and specific
22703 # than the gold version.
22704 ld_vers=`echo $ld_ver | sed -n \
22705 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22706 else
22707 # GNU ld --version looks like this:
22708 #
22709 # GNU ld (GNU Binutils) 2.21.51.20110225
22710 ld_vers=`echo $ld_ver | sed -n \
22711 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22712 fi
22713 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'`
22714 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22715 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22716 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
22717 else
22718 case "${target}" in
22719 *-*-solaris2*)
22720 # See acinclude.m4 (gcc_SUN_LD_VERSION) for the version number
22721 # format.
22722 #
22723 # Don't reuse gcc_gv_sun_ld_vers_* in case a linker other than
22724 # /usr/ccs/bin/ld has been configured.
22725 ld_ver=`$gcc_cv_ld -V 2>&1`
22726 if echo "$ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
22727 ld_vers=`echo $ld_ver | sed -n \
22728 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22729 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22730 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22731 fi
22732 ;;
22733 esac
22734 fi
22735 fi
22736
22737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
22738 $as_echo_n "checking linker for .hidden support... " >&6; }
22739 if test "${gcc_cv_ld_hidden+set}" = set; then :
22740 $as_echo_n "(cached) " >&6
22741 else
22742 if test $in_tree_ld = yes ; then
22743 gcc_cv_ld_hidden=no
22744 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 \
22745 && test $in_tree_ld_is_elf = yes; then
22746 gcc_cv_ld_hidden=yes
22747 fi
22748 else
22749 gcc_cv_ld_hidden=yes
22750 if test x"$ld_is_gold" = xyes; then
22751 :
22752 elif echo "$ld_ver" | grep GNU > /dev/null; then
22753 case "${target}" in
22754 mmix-knuth-mmixware)
22755 # The linker emits by default mmo, not ELF, so "no" is appropriate.
22756 gcc_cv_ld_hidden=no
22757 ;;
22758 esac
22759 if test 0"$ld_date" -lt 20020404; then
22760 if test -n "$ld_date"; then
22761 # If there was date string, but was earlier than 2002-04-04, fail
22762 gcc_cv_ld_hidden=no
22763 elif test -z "$ld_vers"; then
22764 # If there was no date string nor ld version number, something is wrong
22765 gcc_cv_ld_hidden=no
22766 else
22767 test -z "$ld_vers_patch" && ld_vers_patch=0
22768 if test "$ld_vers_major" -lt 2; then
22769 gcc_cv_ld_hidden=no
22770 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
22771 gcc_cv_ld_hidden="no"
22772 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
22773 gcc_cv_ld_hidden=no
22774 fi
22775 fi
22776 fi
22777 else
22778 case "${target}" in
22779 *-*-darwin*)
22780 # Darwin ld has some visibility support.
22781 gcc_cv_ld_hidden=yes
22782 ;;
22783 hppa64*-*-hpux* | ia64*-*-hpux*)
22784 gcc_cv_ld_hidden=yes
22785 ;;
22786 *-*-solaris2.1[0-9]*)
22787 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
22788 # .symbolic was only added in Solaris 9 12/02.
22789 gcc_cv_ld_hidden=yes
22790 ;;
22791 *)
22792 gcc_cv_ld_hidden=no
22793 ;;
22794 esac
22795 fi
22796 fi
22797 fi
22798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
22799 $as_echo "$gcc_cv_ld_hidden" >&6; }
22800 libgcc_visibility=no
22801
22802
22803 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
22804 libgcc_visibility=yes
22805
22806 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
22807
22808 fi
22809
22810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
22811 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
22812 gcc_cv_ld_ro_rw_mix=unknown
22813 if test $in_tree_ld = yes ; then
22814 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 \
22815 && test $in_tree_ld_is_elf = yes; then
22816 gcc_cv_ld_ro_rw_mix=read-write
22817 fi
22818 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22819 echo '.section myfoosect, "a"' > conftest1.s
22820 echo '.section myfoosect, "aw"' > conftest2.s
22821 echo '.byte 1' >> conftest2.s
22822 echo '.section myfoosect, "a"' > conftest3.s
22823 echo '.byte 0' >> conftest3.s
22824 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
22825 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
22826 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
22827 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
22828 conftest2.o conftest3.o > /dev/null 2>&1; then
22829 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
22830 | sed -e '/myfoosect/!d' -e N`
22831 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
22832 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
22833 gcc_cv_ld_ro_rw_mix=read-only
22834 else
22835 gcc_cv_ld_ro_rw_mix=read-write
22836 fi
22837 fi
22838 fi
22839 rm -f conftest.* conftest[123].*
22840 fi
22841 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
22842
22843 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
22844
22845 fi
22846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
22847 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
22848
22849 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22850 case "${target}" in
22851 *-*-solaris2*)
22852 #
22853 # Solaris 2 ld -V output looks like this for a regular version:
22854 #
22855 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
22856 #
22857 # but test versions add stuff at the end:
22858 #
22859 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
22860 #
22861 gcc_cv_sun_ld_ver=`/usr/ccs/bin/ld -V 2>&1`
22862 if echo "$gcc_cv_sun_ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
22863 gcc_cv_sun_ld_vers=`echo $gcc_cv_sun_ld_ver | sed -n \
22864 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22865 gcc_cv_sun_ld_vers_major=`expr "$gcc_cv_sun_ld_vers" : '\([0-9]*\)'`
22866 gcc_cv_sun_ld_vers_minor=`expr "$gcc_cv_sun_ld_vers" : '[0-9]*\.\([0-9]*\)'`
22867 fi
22868 ;;
22869 esac
22870 fi
22871
22872 # Check whether --enable-initfini-array was given.
22873 if test "${enable_initfini_array+set}" = set; then :
22874 enableval=$enable_initfini_array;
22875 else
22876
22877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
22878 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
22879 if test "${gcc_cv_initfini_array+set}" = set; then :
22880 $as_echo_n "(cached) " >&6
22881 else
22882 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22883 case "${target}" in
22884 ia64-*)
22885 if test "$cross_compiling" = yes; then :
22886 gcc_cv_initfini_array=no
22887 else
22888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22889 /* end confdefs.h. */
22890
22891 #ifndef __ELF__
22892 #error Not an ELF OS
22893 #endif
22894 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
22895 if it can be used. */
22896 static int x = -1;
22897 int main (void) { return x; }
22898 int foo (void) { x = 0; }
22899 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
22900
22901 _ACEOF
22902 if ac_fn_cxx_try_run "$LINENO"; then :
22903 gcc_cv_initfini_array=yes
22904 else
22905 gcc_cv_initfini_array=no
22906 fi
22907 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22908 conftest.$ac_objext conftest.beam conftest.$ac_ext
22909 fi
22910 ;;
22911 *)
22912 gcc_cv_initfini_array=no
22913 if test $in_tree_ld = yes ; then
22914 if test "$gcc_cv_gld_major_version" -eq 2 \
22915 -a "$gcc_cv_gld_minor_version" -ge 22 \
22916 -o "$gcc_cv_gld_major_version" -gt 2 \
22917 && test $in_tree_ld_is_elf = yes; then
22918 gcc_cv_initfini_array=yes
22919 fi
22920 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22921 cat > conftest.s <<\EOF
22922 .section .dtors,"a",%progbits
22923 .balign 4
22924 .byte 'A', 'A', 'A', 'A'
22925 .section .ctors,"a",%progbits
22926 .balign 4
22927 .byte 'B', 'B', 'B', 'B'
22928 .section .fini_array.65530,"a",%progbits
22929 .balign 4
22930 .byte 'C', 'C', 'C', 'C'
22931 .section .init_array.65530,"a",%progbits
22932 .balign 4
22933 .byte 'D', 'D', 'D', 'D'
22934 .section .dtors.64528,"a",%progbits
22935 .balign 4
22936 .byte 'E', 'E', 'E', 'E'
22937 .section .ctors.64528,"a",%progbits
22938 .balign 4
22939 .byte 'F', 'F', 'F', 'F'
22940 .section .fini_array.01005,"a",%progbits
22941 .balign 4
22942 .byte 'G', 'G', 'G', 'G'
22943 .section .init_array.01005,"a",%progbits
22944 .balign 4
22945 .byte 'H', 'H', 'H', 'H'
22946 .text
22947 .globl _start
22948 _start:
22949 EOF
22950 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
22951 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
22952 && $gcc_cv_objdump -s -j .init_array conftest \
22953 | grep HHHHFFFFDDDDBBBB > /dev/null 2>&1 \
22954 && $gcc_cv_objdump -s -j .fini_array conftest \
22955 | grep GGGGEEEECCCCAAAA > /dev/null 2>&1; then
22956 gcc_cv_initfini_array=yes
22957 fi
22958 rm -f conftest conftest.*
22959 fi
22960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22961 /* end confdefs.h. */
22962
22963 #ifndef __ELF__
22964 # error Not an ELF OS
22965 #endif
22966 #include <stdlib.h>
22967 #if defined __GLIBC_PREREQ
22968 # if __GLIBC_PREREQ (2, 4)
22969 # else
22970 # error GLIBC 2.4 required
22971 # endif
22972 #else
22973 # if defined __sun__ && defined __svr4__
22974 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
22975 # else
22976 # error The C library not known to support .init_array/.fini_array
22977 # endif
22978 #endif
22979
22980 _ACEOF
22981 if ac_fn_cxx_try_cpp "$LINENO"; then :
22982
22983 else
22984 gcc_cv_initfini_array=no
22985 fi
22986 rm -f conftest.err conftest.$ac_ext;;
22987 esac
22988 else
22989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
22990 $as_echo_n "checking cross compile... guessing... " >&6; }
22991 gcc_cv_initfini_array=no
22992 fi
22993 fi
22994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
22995 $as_echo "$gcc_cv_initfini_array" >&6; }
22996 enable_initfini_array=$gcc_cv_initfini_array
22997
22998 fi
22999
23000 if test $enable_initfini_array = yes; then
23001
23002 $as_echo "#define HAVE_INITFINI_ARRAY_SUPPORT 1" >>confdefs.h
23003
23004 fi
23005
23006 # Check if we have .[us]leb128, and support symbol arithmetic with it.
23007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
23008 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
23009 if test "${gcc_cv_as_leb128+set}" = set; then :
23010 $as_echo_n "(cached) " >&6
23011 else
23012 gcc_cv_as_leb128=no
23013 if test $in_tree_gas = yes; then
23014 if test $in_tree_gas_is_elf = yes \
23015 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
23016 then gcc_cv_as_leb128=yes
23017 fi
23018 elif test x$gcc_cv_as != x; then
23019 $as_echo ' .data
23020 .uleb128 L2 - L1
23021 L1:
23022 .uleb128 1280
23023 .sleb128 -1010
23024 L2:' > conftest.s
23025 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23026 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23027 (eval $ac_try) 2>&5
23028 ac_status=$?
23029 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23030 test $ac_status = 0; }; }
23031 then
23032 # GAS versions before 2.11 do not support uleb128,
23033 # despite appearing to.
23034 # ??? There exists an elf-specific test that will crash
23035 # the assembler. Perhaps it's better to figure out whether
23036 # arbitrary sections are supported and try the test.
23037 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
23038 if echo "$as_ver" | grep GNU > /dev/null; then
23039 as_vers=`echo $as_ver | sed -n \
23040 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23041 as_major=`expr "$as_vers" : '\([0-9]*\)'`
23042 as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
23043 if test $as_major -eq 2 && test $as_minor -lt 11
23044 then :
23045 else gcc_cv_as_leb128=yes
23046 fi
23047 fi
23048 else
23049 echo "configure: failed program was" >&5
23050 cat conftest.s >&5
23051 fi
23052 rm -f conftest.o conftest.s
23053 fi
23054 fi
23055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
23056 $as_echo "$gcc_cv_as_leb128" >&6; }
23057 if test $gcc_cv_as_leb128 = yes; then
23058
23059 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
23060
23061 fi
23062
23063 # Check if we have assembler support for unwind directives.
23064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
23065 $as_echo_n "checking assembler for cfi directives... " >&6; }
23066 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
23067 $as_echo_n "(cached) " >&6
23068 else
23069 gcc_cv_as_cfi_directive=no
23070 if test x$gcc_cv_as != x; then
23071 $as_echo ' .text
23072 .cfi_startproc
23073 .cfi_offset 0, 0
23074 .cfi_same_value 1
23075 .cfi_def_cfa 1, 2
23076 .cfi_escape 1, 2, 3, 4, 5
23077 .cfi_endproc' > conftest.s
23078 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23079 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23080 (eval $ac_try) 2>&5
23081 ac_status=$?
23082 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23083 test $ac_status = 0; }; }
23084 then
23085 case "$target" in
23086 *-*-solaris*)
23087 # If the linker used on Solaris (like Sun ld) isn't capable of merging
23088 # read-only and read-write sections, we need to make sure that the
23089 # assembler used emits read-write .eh_frame sections.
23090 if test "x$gcc_cv_ld_ro_rw_mix" != xread-write; then
23091 if test "x$gcc_cv_objdump" != x; then
23092 if $gcc_cv_objdump -h conftest.o 2>/dev/null | \
23093 sed -e /.eh_frame/!d -e N | grep READONLY > /dev/null; then
23094 gcc_cv_as_cfi_directive=no
23095 else
23096 case "$target" in
23097 i?86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*)
23098 # On Solaris/x86, make sure that GCC and assembler agree on using
23099 # read-only .eh_frame sections for 64-bit.
23100 if test x$gas = xyes; then
23101 as_ix86_64_opt="--64"
23102 else
23103 as_ix86_64_opt="-xarch=amd64"
23104 fi
23105 if $gcc_cv_as $as_ix86_64_opt -o conftest.o conftest.s > /dev/null 2>&1 && \
23106 $gcc_cv_objdump -h conftest.o 2>/dev/null | \
23107 sed -e /.eh_frame/!d -e N | \
23108 grep READONLY > /dev/null; then
23109 gcc_cv_as_cfi_directive=yes
23110 else
23111 gcc_cv_as_cfi_directive=no
23112 fi
23113 ;;
23114 *)
23115 gcc_cv_as_cfi_directive=yes
23116 ;;
23117 esac
23118 fi
23119 else
23120 # no objdump, err on the side of caution
23121 gcc_cv_as_cfi_directive=no
23122 fi
23123 else
23124 gcc_cv_as_cfi_directive=yes
23125 fi
23126 ;;
23127 *-*-*)
23128 gcc_cv_as_cfi_directive=yes
23129 ;;
23130 esac
23131 else
23132 echo "configure: failed program was" >&5
23133 cat conftest.s >&5
23134 fi
23135 rm -f conftest.o conftest.s
23136 fi
23137 fi
23138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
23139 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
23140
23141 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then
23142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
23143 $as_echo_n "checking assembler for working cfi advance... " >&6; }
23144 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
23145 $as_echo_n "(cached) " >&6
23146 else
23147 gcc_cv_as_cfi_advance_working=no
23148 if test x$gcc_cv_as != x; then
23149 $as_echo ' .text
23150 .cfi_startproc
23151 .cfi_adjust_cfa_offset 64
23152 .skip 75040, 0
23153 .cfi_adjust_cfa_offset 128
23154 .cfi_endproc' > conftest.s
23155 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23156 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23157 (eval $ac_try) 2>&5
23158 ac_status=$?
23159 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23160 test $ac_status = 0; }; }
23161 then
23162
23163 if $gcc_cv_objdump -Wf conftest.o 2>/dev/null \
23164 | grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev/null; then
23165 gcc_cv_as_cfi_advance_working=yes
23166 fi
23167
23168 else
23169 echo "configure: failed program was" >&5
23170 cat conftest.s >&5
23171 fi
23172 rm -f conftest.o conftest.s
23173 fi
23174 fi
23175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
23176 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
23177
23178 else
23179 # no objdump, err on the side of caution
23180 gcc_cv_as_cfi_advance_working=no
23181 fi
23182
23183
23184 cat >>confdefs.h <<_ACEOF
23185 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
23186 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
23187 _ACEOF
23188
23189
23190
23191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
23192 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
23193 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
23194 $as_echo_n "(cached) " >&6
23195 else
23196 gcc_cv_as_cfi_personality_directive=no
23197 if test x$gcc_cv_as != x; then
23198 $as_echo ' .text
23199 .cfi_startproc
23200 .cfi_personality 0, symbol
23201 .cfi_endproc' > conftest.s
23202 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23203 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23204 (eval $ac_try) 2>&5
23205 ac_status=$?
23206 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23207 test $ac_status = 0; }; }
23208 then
23209 gcc_cv_as_cfi_personality_directive=yes
23210 else
23211 echo "configure: failed program was" >&5
23212 cat conftest.s >&5
23213 fi
23214 rm -f conftest.o conftest.s
23215 fi
23216 fi
23217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
23218 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
23219
23220
23221 cat >>confdefs.h <<_ACEOF
23222 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
23223 then echo 1; else echo 0; fi`
23224 _ACEOF
23225
23226
23227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
23228 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
23229 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
23230 $as_echo_n "(cached) " >&6
23231 else
23232 gcc_cv_as_cfi_sections_directive=no
23233 if test x$gcc_cv_as != x; then
23234 $as_echo ' .text
23235 .cfi_sections .debug_frame, .eh_frame
23236 .cfi_startproc
23237 .cfi_endproc' > conftest.s
23238 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23239 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23240 (eval $ac_try) 2>&5
23241 ac_status=$?
23242 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23243 test $ac_status = 0; }; }
23244 then
23245 case $target_os in
23246 win32 | pe | cygwin* | mingw32*)
23247 # Need to check that we generated the correct relocation for the
23248 # .debug_frame section. This was fixed for binutils 2.21.
23249 gcc_cv_as_cfi_sections_directive=no
23250 if test "x$gcc_cv_objdump" != x; then
23251 if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
23252 grep secrel > /dev/null; then
23253 gcc_cv_as_cfi_sections_directive=yes
23254 fi
23255 fi
23256 ;;
23257 *)
23258 gcc_cv_as_cfi_sections_directive=yes
23259 ;;
23260 esac
23261 else
23262 echo "configure: failed program was" >&5
23263 cat conftest.s >&5
23264 fi
23265 rm -f conftest.o conftest.s
23266 fi
23267 fi
23268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
23269 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
23270
23271
23272
23273 cat >>confdefs.h <<_ACEOF
23274 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
23275 then echo 1; else echo 0; fi`
23276 _ACEOF
23277
23278
23279 # GAS versions up to and including 2.11.0 may mis-optimize
23280 # .eh_frame data.
23281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
23282 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
23283 if test "${gcc_cv_as_eh_frame+set}" = set; then :
23284 $as_echo_n "(cached) " >&6
23285 else
23286 gcc_cv_as_eh_frame=no
23287 if test $in_tree_gas = yes; then
23288 if test $in_tree_gas_is_elf = yes \
23289 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23290 then gcc_cv_as_eh_frame=yes
23291 fi
23292 elif test x$gcc_cv_as != x; then
23293 $as_echo ' .text
23294 .LFB1:
23295 .4byte 0
23296 .L1:
23297 .4byte 0
23298 .LFE1:
23299 .section .eh_frame,"aw",@progbits
23300 __FRAME_BEGIN__:
23301 .4byte .LECIE1-.LSCIE1
23302 .LSCIE1:
23303 .4byte 0x0
23304 .byte 0x1
23305 .ascii "z\0"
23306 .byte 0x1
23307 .byte 0x78
23308 .byte 0x1a
23309 .byte 0x0
23310 .byte 0x4
23311 .4byte 1
23312 .p2align 1
23313 .LECIE1:
23314 .LSFDE1:
23315 .4byte .LEFDE1-.LASFDE1
23316 .LASFDE1:
23317 .4byte .LASFDE1-__FRAME_BEGIN__
23318 .4byte .LFB1
23319 .4byte .LFE1-.LFB1
23320 .byte 0x4
23321 .4byte .LFE1-.LFB1
23322 .byte 0x4
23323 .4byte .L1-.LFB1
23324 .LEFDE1:' > conftest.s
23325 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23326 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23327 (eval $ac_try) 2>&5
23328 ac_status=$?
23329 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23330 test $ac_status = 0; }; }
23331 then
23332 cat > conftest.lit <<EOF
23333 0000 10000000 00000000 017a0001 781a0004 .........z..x...
23334 0010 01000000 12000000 18000000 00000000 ................
23335 0020 08000000 04080000 0044 .........D
23336 EOF
23337 cat > conftest.big <<EOF
23338 0000 00000010 00000000 017a0001 781a0004 .........z..x...
23339 0010 00000001 00000012 00000018 00000000 ................
23340 0020 00000008 04000000 0844 .........D
23341 EOF
23342 # If the assembler didn't choke, and we can objdump,
23343 # and we got the correct data, then succeed.
23344 # The text in the here-document typically retains its unix-style line
23345 # endings, while the output of objdump will use host line endings.
23346 # Therefore, use diff -b for the comparisons.
23347 if test x$gcc_cv_objdump != x \
23348 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
23349 | tail -3 > conftest.got \
23350 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
23351 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
23352 then
23353 gcc_cv_as_eh_frame=yes
23354 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
23355 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23356 (eval $ac_try) 2>&5
23357 ac_status=$?
23358 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23359 test $ac_status = 0; }; }; then
23360 gcc_cv_as_eh_frame=buggy
23361 else
23362 # Uh oh, what do we do now?
23363 gcc_cv_as_eh_frame=no
23364 fi
23365 else
23366 echo "configure: failed program was" >&5
23367 cat conftest.s >&5
23368 fi
23369 rm -f conftest.o conftest.s
23370 fi
23371 fi
23372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
23373 $as_echo "$gcc_cv_as_eh_frame" >&6; }
23374
23375
23376 if test $gcc_cv_as_eh_frame = buggy; then
23377
23378 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
23379
23380 fi
23381
23382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
23383 $as_echo_n "checking assembler for section merging support... " >&6; }
23384 if test "${gcc_cv_as_shf_merge+set}" = set; then :
23385 $as_echo_n "(cached) " >&6
23386 else
23387 gcc_cv_as_shf_merge=no
23388 if test $in_tree_gas = yes; then
23389 if test $in_tree_gas_is_elf = yes \
23390 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23391 then gcc_cv_as_shf_merge=yes
23392 fi
23393 elif test x$gcc_cv_as != x; then
23394 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
23395 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23396 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23397 (eval $ac_try) 2>&5
23398 ac_status=$?
23399 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23400 test $ac_status = 0; }; }
23401 then
23402 gcc_cv_as_shf_merge=yes
23403 else
23404 echo "configure: failed program was" >&5
23405 cat conftest.s >&5
23406 fi
23407 rm -f conftest.o conftest.s
23408 fi
23409 fi
23410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23411 $as_echo "$gcc_cv_as_shf_merge" >&6; }
23412
23413 if test $gcc_cv_as_shf_merge = no; then
23414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
23415 $as_echo_n "checking assembler for section merging support... " >&6; }
23416 if test "${gcc_cv_as_shf_merge+set}" = set; then :
23417 $as_echo_n "(cached) " >&6
23418 else
23419 gcc_cv_as_shf_merge=no
23420 if test $in_tree_gas = yes; then
23421 if test $in_tree_gas_is_elf = yes \
23422 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23423 then gcc_cv_as_shf_merge=yes
23424 fi
23425 elif test x$gcc_cv_as != x; then
23426 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
23427 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23428 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23429 (eval $ac_try) 2>&5
23430 ac_status=$?
23431 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23432 test $ac_status = 0; }; }
23433 then
23434 gcc_cv_as_shf_merge=yes
23435 else
23436 echo "configure: failed program was" >&5
23437 cat conftest.s >&5
23438 fi
23439 rm -f conftest.o conftest.s
23440 fi
23441 fi
23442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23443 $as_echo "$gcc_cv_as_shf_merge" >&6; }
23444
23445 fi
23446
23447 cat >>confdefs.h <<_ACEOF
23448 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
23449 _ACEOF
23450
23451
23452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
23453 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
23454 if test "${gcc_cv_as_comdat_group+set}" = set; then :
23455 $as_echo_n "(cached) " >&6
23456 else
23457 gcc_cv_as_comdat_group=no
23458 if test $in_tree_gas = yes; then
23459 if test $in_tree_gas_is_elf = yes \
23460 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23461 then gcc_cv_as_comdat_group=yes
23462 fi
23463 elif test x$gcc_cv_as != x; then
23464 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
23465 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23466 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23467 (eval $ac_try) 2>&5
23468 ac_status=$?
23469 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23470 test $ac_status = 0; }; }
23471 then
23472 gcc_cv_as_comdat_group=yes
23473 else
23474 echo "configure: failed program was" >&5
23475 cat conftest.s >&5
23476 fi
23477 rm -f conftest.o conftest.s
23478 fi
23479 fi
23480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
23481 $as_echo "$gcc_cv_as_comdat_group" >&6; }
23482
23483 if test $gcc_cv_as_comdat_group = yes; then
23484 gcc_cv_as_comdat_group_percent=no
23485 gcc_cv_as_comdat_group_group=no
23486 else
23487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
23488 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
23489 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
23490 $as_echo_n "(cached) " >&6
23491 else
23492 gcc_cv_as_comdat_group_percent=no
23493 if test $in_tree_gas = yes; then
23494 if test $in_tree_gas_is_elf = yes \
23495 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23496 then gcc_cv_as_comdat_group_percent=yes
23497 fi
23498 elif test x$gcc_cv_as != x; then
23499 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
23500 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23501 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23502 (eval $ac_try) 2>&5
23503 ac_status=$?
23504 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23505 test $ac_status = 0; }; }
23506 then
23507 gcc_cv_as_comdat_group_percent=yes
23508 else
23509 echo "configure: failed program was" >&5
23510 cat conftest.s >&5
23511 fi
23512 rm -f conftest.o conftest.s
23513 fi
23514 fi
23515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
23516 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
23517
23518 if test $gcc_cv_as_comdat_group_percent = yes; then
23519 gcc_cv_as_comdat_group_group=no
23520 else
23521 case "${target}" in
23522 # Sun as uses a completely different syntax.
23523 *-*-solaris2*)
23524 case "${target}" in
23525 sparc*-*-solaris2*)
23526 conftest_s='
23527 .group foo,".text%foo",#comdat
23528 .section ".text%foo", #alloc,#execinstr,#progbits
23529 .globl foo
23530 foo:
23531 '
23532 ;;
23533 i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
23534 conftest_s='
23535 .group foo,.text%foo,#comdat
23536 .section .text%foo, "ax", @progbits
23537 .globl foo
23538 foo:
23539 '
23540 ;;
23541 esac
23542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
23543 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
23544 if test "${gcc_cv_as_comdat_group_group+set}" = set; then :
23545 $as_echo_n "(cached) " >&6
23546 else
23547 gcc_cv_as_comdat_group_group=no
23548 if test x$gcc_cv_as != x; then
23549 $as_echo "$conftest_s" > conftest.s
23550 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23551 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23552 (eval $ac_try) 2>&5
23553 ac_status=$?
23554 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23555 test $ac_status = 0; }; }
23556 then
23557 gcc_cv_as_comdat_group_group=yes
23558 else
23559 echo "configure: failed program was" >&5
23560 cat conftest.s >&5
23561 fi
23562 rm -f conftest.o conftest.s
23563 fi
23564 fi
23565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
23566 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
23567
23568 ;;
23569 esac
23570 if test -z "${gcc_cv_as_comdat_group_group+set}"; then
23571 gcc_cv_as_comdat_group_group=no
23572 fi
23573 fi
23574 fi
23575 if test x"$ld_is_gold" = xyes; then
23576 comdat_group=yes
23577 elif test $in_tree_ld = yes ; then
23578 comdat_group=no
23579 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 \
23580 && test $in_tree_ld_is_elf = yes; then
23581 comdat_group=yes
23582 fi
23583 elif echo "$ld_ver" | grep GNU > /dev/null; then
23584 comdat_group=yes
23585 if test 0"$ld_date" -lt 20050308; then
23586 if test -n "$ld_date"; then
23587 # If there was date string, but was earlier than 2005-03-08, fail
23588 comdat_group=no
23589 elif test "$ld_vers_major" -lt 2; then
23590 comdat_group=no
23591 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
23592 comdat_group=no
23593 fi
23594 fi
23595 else
23596 case "${target}" in
23597 *-*-solaris2.1[1-9]*)
23598 comdat_group=no
23599 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
23600 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
23601 # version 1.688.
23602 #
23603 # If using Sun as for COMDAT group as emitted by GCC, one needs at
23604 # least ld version 1.2267.
23605 if test "$ld_vers_major" -gt 1; then
23606 comdat_group=yes
23607 elif test "x$gas_flag" = xyes && test "$ld_vers_minor" -ge 1688; then
23608 comdat_group=yes
23609 elif test "$ld_vers_minor" -ge 2267; then
23610 comdat_group=yes
23611 fi
23612 ;;
23613 *)
23614 # Assume linkers other than GNU ld don't support COMDAT group.
23615 comdat_group=no
23616 ;;
23617 esac
23618 fi
23619 # Allow overriding the automatic COMDAT group tests above.
23620 # Check whether --enable-comdat was given.
23621 if test "${enable_comdat+set}" = set; then :
23622 enableval=$enable_comdat; comdat_group="$enable_comdat"
23623 fi
23624
23625 if test $comdat_group = no; then
23626 gcc_cv_as_comdat_group=no
23627 gcc_cv_as_comdat_group_percent=no
23628 gcc_cv_as_comdat_group_group=no
23629 fi
23630
23631 cat >>confdefs.h <<_ACEOF
23632 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
23633 || test $gcc_cv_as_comdat_group_percent = yes \
23634 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
23635 _ACEOF
23636
23637
23638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
23639 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
23640 if test "${gcc_cv_as_discriminator+set}" = set; then :
23641 $as_echo_n "(cached) " >&6
23642 else
23643 gcc_cv_as_discriminator=no
23644 if test $in_tree_gas = yes; then
23645 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
23646 then gcc_cv_as_discriminator=yes
23647 fi
23648 elif test x$gcc_cv_as != x; then
23649 $as_echo ' .text
23650 .file 1 "conf.c"
23651 .loc 1 1 0 discriminator 1' > conftest.s
23652 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23653 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23654 (eval $ac_try) 2>&5
23655 ac_status=$?
23656 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23657 test $ac_status = 0; }; }
23658 then
23659 gcc_cv_as_discriminator=yes
23660 else
23661 echo "configure: failed program was" >&5
23662 cat conftest.s >&5
23663 fi
23664 rm -f conftest.o conftest.s
23665 fi
23666 fi
23667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
23668 $as_echo "$gcc_cv_as_discriminator" >&6; }
23669 if test $gcc_cv_as_discriminator = yes; then
23670
23671 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
23672
23673 fi
23674
23675 # Thread-local storage - the check is heavily parameterized.
23676 conftest_s=
23677 tls_first_major=
23678 tls_first_minor=
23679 tls_as_opt=
23680 case "$target" in
23681 alpha*-*-*)
23682 conftest_s='
23683 .section ".tdata","awT",@progbits
23684 foo: .long 25
23685 .text
23686 ldq $27,__tls_get_addr($29) !literal!1
23687 lda $16,foo($29) !tlsgd!1
23688 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
23689 ldq $27,__tls_get_addr($29) !literal!2
23690 lda $16,foo($29) !tlsldm!2
23691 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
23692 ldq $1,foo($29) !gotdtprel
23693 ldah $2,foo($29) !dtprelhi
23694 lda $3,foo($2) !dtprello
23695 lda $4,foo($29) !dtprel
23696 ldq $1,foo($29) !gottprel
23697 ldah $2,foo($29) !tprelhi
23698 lda $3,foo($2) !tprello
23699 lda $4,foo($29) !tprel'
23700 tls_first_major=2
23701 tls_first_minor=13
23702 tls_as_opt=--fatal-warnings
23703 ;;
23704 cris-*-*|crisv32-*-*)
23705 conftest_s='
23706 .section ".tdata","awT",@progbits
23707 x: .long 25
23708 .text
23709 move.d x:IE,$r10
23710 nop'
23711 tls_first_major=2
23712 tls_first_minor=20
23713 tls_as_opt=--fatal-warnings
23714 ;;
23715 frv*-*-*)
23716 conftest_s='
23717 .section ".tdata","awT",@progbits
23718 x: .long 25
23719 .text
23720 call #gettlsoff(x)'
23721 tls_first_major=2
23722 tls_first_minor=14
23723 ;;
23724 hppa*-*-linux*)
23725 conftest_s='
23726 t1: .reg %r20
23727 t2: .reg %r21
23728 gp: .reg %r19
23729 .section ".tdata","awT",@progbits
23730 foo: .long 25
23731 .text
23732 .align 4
23733 addil LT%foo-$tls_gdidx$,gp
23734 ldo RT%foo-$tls_gdidx$(%r1),%arg0
23735 b __tls_get_addr
23736 nop
23737 addil LT%foo-$tls_ldidx$,gp
23738 b __tls_get_addr
23739 ldo RT%foo-$tls_ldidx$(%r1),%arg0
23740 addil LR%foo-$tls_dtpoff$,%ret0
23741 ldo RR%foo-$tls_dtpoff$(%r1),%t1
23742 mfctl %cr27,%t1
23743 addil LT%foo-$tls_ieoff$,gp
23744 ldw RT%foo-$tls_ieoff$(%r1),%t2
23745 add %t1,%t2,%t3
23746 mfctl %cr27,%t1
23747 addil LR%foo-$tls_leoff$,%t1
23748 ldo RR%foo-$tls_leoff$(%r1),%t2'
23749 tls_first_major=2
23750 tls_first_minor=15
23751 tls_as_opt=--fatal-warnings
23752 ;;
23753 arm*-*-*)
23754 conftest_s='
23755 .section ".tdata","awT",%progbits
23756 foo: .long 25
23757 .text
23758 .word foo(gottpoff)
23759 .word foo(tpoff)
23760 .word foo(tlsgd)
23761 .word foo(tlsldm)
23762 .word foo(tlsldo)'
23763 tls_first_major=2
23764 tls_first_minor=17
23765 ;;
23766 i[34567]86-*-* | x86_64-*-*)
23767 case "$target" in
23768 i[34567]86-*-solaris2.* | x86_64-*-solaris2.1[0-9]*)
23769 on_solaris=yes
23770 ;;
23771 *)
23772 on_solaris=no
23773 ;;
23774 esac
23775 if test x$on_solaris = xyes && test x$gas_flag = xno; then
23776 conftest_s='
23777 .section .tdata,"awt",@progbits'
23778 tls_first_major=0
23779 tls_first_minor=0
23780 tls_section_flag=t
23781
23782 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
23783
23784 else
23785 conftest_s='
23786 .section ".tdata","awT",@progbits'
23787 tls_first_major=2
23788 tls_first_minor=14
23789 tls_section_flag=T
23790 tls_as_opt="--fatal-warnings"
23791 fi
23792 case "$target" in
23793 i[34567]86-*-*)
23794 conftest_s="$conftest_s
23795 foo: .long 25
23796 .text
23797 movl %gs:0, %eax
23798 leal foo@tlsgd(,%ebx,1), %eax
23799 leal foo@tlsldm(%ebx), %eax
23800 leal foo@dtpoff(%eax), %edx
23801 movl foo@gottpoff(%ebx), %eax
23802 subl foo@gottpoff(%ebx), %eax
23803 addl foo@gotntpoff(%ebx), %eax
23804 movl foo@indntpoff, %eax
23805 movl \$foo@tpoff, %eax
23806 subl \$foo@tpoff, %eax
23807 leal foo@ntpoff(%ecx), %eax"
23808 ;;
23809 x86_64-*-*)
23810 if test x$on_solaris = xyes; then
23811 case $gas_flag in
23812 yes) tls_as_opt="$tls_as_opt --64" ;;
23813 no) tls_as_opt="$tls_as_opt -xarch=amd64" ;;
23814 esac
23815 fi
23816 conftest_s="$conftest_s
23817 foo: .long 25
23818 .text
23819 movq %fs:0, %rax
23820 leaq foo@tlsgd(%rip), %rdi
23821 leaq foo@tlsld(%rip), %rdi
23822 leaq foo@dtpoff(%rax), %rdx
23823 movq foo@gottpoff(%rip), %rax
23824 movq \$foo@tpoff, %rax"
23825 ;;
23826 esac
23827 ;;
23828 ia64-*-*)
23829 conftest_s='
23830 .section ".tdata","awT",@progbits
23831 foo: data8 25
23832 .text
23833 addl r16 = @ltoff(@dtpmod(foo#)), gp
23834 addl r17 = @ltoff(@dtprel(foo#)), gp
23835 addl r18 = @ltoff(@tprel(foo#)), gp
23836 addl r19 = @dtprel(foo#), gp
23837 adds r21 = @dtprel(foo#), r13
23838 movl r23 = @dtprel(foo#)
23839 addl r20 = @tprel(foo#), gp
23840 adds r22 = @tprel(foo#), r13
23841 movl r24 = @tprel(foo#)'
23842 tls_first_major=2
23843 tls_first_minor=13
23844 tls_as_opt=--fatal-warnings
23845 ;;
23846 microblaze*-*-*)
23847 conftest_s='
23848 .section .tdata,"awT",@progbits
23849 x:
23850 .word 2
23851 .text
23852 addik r5,r20,x@TLSGD
23853 addik r5,r20,x@TLSLDM'
23854 tls_first_major=2
23855 tls_first_minor=20
23856 tls_as_opt='--fatal-warnings'
23857 ;;
23858 mips*-*-*)
23859 conftest_s='
23860 .section .tdata,"awT",@progbits
23861 x:
23862 .word 2
23863 .text
23864 addiu $4, $28, %tlsgd(x)
23865 addiu $4, $28, %tlsldm(x)
23866 lui $4, %dtprel_hi(x)
23867 addiu $4, $4, %dtprel_lo(x)
23868 lw $4, %gottprel(x)($28)
23869 lui $4, %tprel_hi(x)
23870 addiu $4, $4, %tprel_lo(x)'
23871 tls_first_major=2
23872 tls_first_minor=16
23873 tls_as_opt='-32 --fatal-warnings'
23874 ;;
23875 m68k-*-*)
23876 conftest_s='
23877 .section .tdata,"awT",@progbits
23878 x:
23879 .word 2
23880 .text
23881 foo:
23882 move.l x@TLSGD(%a5),%a0
23883 move.l x@TLSLDM(%a5),%a0
23884 move.l x@TLSLDO(%a5),%a0
23885 move.l x@TLSIE(%a5),%a0
23886 move.l x@TLSLE(%a5),%a0'
23887 tls_first_major=2
23888 tls_first_minor=19
23889 tls_as_opt='--fatal-warnings'
23890 ;;
23891 nios2-*-*)
23892 conftest_s='
23893 .section ".tdata","awT",@progbits'
23894 tls_first_major=2
23895 tls_first_minor=23
23896 tls_as_opt="--fatal-warnings"
23897 ;;
23898 aarch64*-*-*)
23899 conftest_s='
23900 .section ".tdata","awT",%progbits
23901 foo: .long 25
23902 .text
23903 adrp x0, :tlsgd:x
23904 add x0, x0, #:tlsgd_lo12:x
23905 bl __tls_get_addr
23906 nop'
23907 tls_first_major=2
23908 tls_first_minor=20
23909 tls_as_opt='--fatal-warnings'
23910 ;;
23911 powerpc-ibm-aix*)
23912 conftest_s='
23913 .extern __get_tpointer
23914 .toc
23915 LC..1:
23916 .tc a[TC],a[TL]@le
23917 .csect .text[PR]
23918 .tlstest:
23919 lwz 9,LC..1(2)
23920 bla __get_tpointer
23921 lwzx 3,9,3
23922 .globl a
23923 .csect a[TL],4
23924 a:
23925 .space 4'
23926 tls_first_major=0
23927 tls_first_minor=0
23928 ;;
23929 powerpc64*-*-*)
23930 conftest_s='
23931 .section ".tdata","awT",@progbits
23932 .align 3
23933 ld0: .space 8
23934 ld1: .space 8
23935 x1: .space 8
23936 x2: .space 8
23937 x3: .space 8
23938 .text
23939 addi 3,2,ld0@got@tlsgd
23940 bl .__tls_get_addr
23941 nop
23942 addi 3,2,ld1@toc
23943 bl .__tls_get_addr
23944 nop
23945 addi 3,2,x1@got@tlsld
23946 bl .__tls_get_addr
23947 nop
23948 addi 9,3,x1@dtprel
23949 bl .__tls_get_addr
23950 nop
23951 addis 9,3,x2@dtprel@ha
23952 addi 9,9,x2@dtprel@l
23953 bl .__tls_get_addr
23954 nop
23955 ld 9,x3@got@dtprel(2)
23956 add 9,9,3
23957 bl .__tls_get_addr
23958 nop'
23959 tls_first_major=2
23960 tls_first_minor=14
23961 tls_as_opt="-a64 --fatal-warnings"
23962 ;;
23963 powerpc*-*-*)
23964 conftest_s='
23965 .section ".tdata","awT",@progbits
23966 .align 2
23967 ld0: .space 4
23968 ld1: .space 4
23969 x1: .space 4
23970 x2: .space 4
23971 x3: .space 4
23972 .text
23973 addi 3,31,ld0@got@tlsgd
23974 bl __tls_get_addr
23975 addi 3,31,x1@got@tlsld
23976 bl __tls_get_addr
23977 addi 9,3,x1@dtprel
23978 addis 9,3,x2@dtprel@ha
23979 addi 9,9,x2@dtprel@l
23980 lwz 9,x3@got@tprel(31)
23981 add 9,9,x@tls
23982 addi 9,2,x1@tprel
23983 addis 9,2,x2@tprel@ha
23984 addi 9,9,x2@tprel@l'
23985 tls_first_major=2
23986 tls_first_minor=14
23987 tls_as_opt="-a32 --fatal-warnings"
23988 ;;
23989 s390-*-*)
23990 conftest_s='
23991 .section ".tdata","awT",@progbits
23992 foo: .long 25
23993 .text
23994 .long foo@TLSGD
23995 .long foo@TLSLDM
23996 .long foo@DTPOFF
23997 .long foo@NTPOFF
23998 .long foo@GOTNTPOFF
23999 .long foo@INDNTPOFF
24000 l %r1,foo@GOTNTPOFF(%r12)
24001 l %r1,0(%r1):tls_load:foo
24002 bas %r14,0(%r1,%r13):tls_gdcall:foo
24003 bas %r14,0(%r1,%r13):tls_ldcall:foo'
24004 tls_first_major=2
24005 tls_first_minor=14
24006 tls_as_opt="-m31 --fatal-warnings"
24007 ;;
24008 s390x-*-*)
24009 conftest_s='
24010 .section ".tdata","awT",@progbits
24011 foo: .long 25
24012 .text
24013 .quad foo@TLSGD
24014 .quad foo@TLSLDM
24015 .quad foo@DTPOFF
24016 .quad foo@NTPOFF
24017 .quad foo@GOTNTPOFF
24018 lg %r1,foo@GOTNTPOFF(%r12)
24019 larl %r1,foo@INDNTPOFF
24020 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
24021 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
24022 tls_first_major=2
24023 tls_first_minor=14
24024 tls_as_opt="-m64 -Aesame --fatal-warnings"
24025 ;;
24026 sh-*-* | sh[123456789lbe]*-*-*)
24027 conftest_s='
24028 .section ".tdata","awT",@progbits
24029 foo: .long 25
24030 .text
24031 .long foo@TLSGD
24032 .long foo@TLSLDM
24033 .long foo@DTPOFF
24034 .long foo@GOTTPOFF
24035 .long foo@TPOFF'
24036 tls_first_major=2
24037 tls_first_minor=13
24038 tls_as_opt=--fatal-warnings
24039 ;;
24040 sparc*-*-*)
24041 case "$target" in
24042 sparc*-sun-solaris2.*)
24043 on_solaris=yes
24044 ;;
24045 *)
24046 on_solaris=no
24047 ;;
24048 esac
24049 if test x$on_solaris = xyes && test x$gas_flag = xno; then
24050 conftest_s='
24051 .section ".tdata",#alloc,#write,#tls'
24052 tls_first_major=0
24053 tls_first_minor=0
24054 else
24055 conftest_s='
24056 .section ".tdata","awT",@progbits'
24057 tls_first_major=2
24058 tls_first_minor=14
24059 tls_as_opt="-32 --fatal-warnings"
24060 fi
24061 conftest_s="$conftest_s
24062 foo: .long 25
24063 .text
24064 sethi %tgd_hi22(foo), %o0
24065 add %o0, %tgd_lo10(foo), %o1
24066 add %l7, %o1, %o0, %tgd_add(foo)
24067 call __tls_get_addr, %tgd_call(foo)
24068 sethi %tldm_hi22(foo), %l1
24069 add %l1, %tldm_lo10(foo), %l2
24070 add %l7, %l2, %o0, %tldm_add(foo)
24071 call __tls_get_addr, %tldm_call(foo)
24072 sethi %tldo_hix22(foo), %l3
24073 xor %l3, %tldo_lox10(foo), %l4
24074 add %o0, %l4, %l5, %tldo_add(foo)
24075 sethi %tie_hi22(foo), %o3
24076 add %o3, %tie_lo10(foo), %o3
24077 ld [%l7 + %o3], %o2, %tie_ld(foo)
24078 add %g7, %o2, %o4, %tie_add(foo)
24079 sethi %tle_hix22(foo), %l1
24080 xor %l1, %tle_lox10(foo), %o5
24081 ld [%g7 + %o5], %o1"
24082 ;;
24083 tilepro*-*-*)
24084 conftest_s='
24085 .section ".tdata","awT",@progbits
24086 foo: .long 25
24087 .text
24088 addli r0, zero, tls_gd(foo)
24089 auli r0, zero, tls_gd_ha16(foo)
24090 addli r0, r0, tls_gd_lo16(foo)
24091 jal __tls_get_addr
24092 addli r0, zero, tls_ie(foo)
24093 auli r0, r0, tls_ie_ha16(foo)
24094 addli r0, r0, tls_ie_lo16(foo)'
24095 tls_first_major=2
24096 tls_first_minor=22
24097 tls_as_opt="--fatal-warnings"
24098 ;;
24099 tilegx*-*-*)
24100 conftest_s='
24101 .section ".tdata","awT",@progbits
24102 foo: .long 25
24103 .text
24104 shl16insli r0, zero, hw0_last_tls_gd(foo)
24105 shl16insli r0, zero, hw1_last_tls_gd(foo)
24106 shl16insli r0, r0, hw0_tls_gd(foo)
24107 jal __tls_get_addr
24108 shl16insli r0, zero, hw1_last_tls_ie(foo)
24109 shl16insli r0, r0, hw0_tls_ie(foo)'
24110 tls_first_major=2
24111 tls_first_minor=22
24112 tls_as_opt="--fatal-warnings"
24113 ;;
24114 xtensa*-*-*)
24115 conftest_s='
24116 .section ".tdata","awT",@progbits
24117 foo: .long 25
24118 .text
24119 movi a8, foo@TLSFUNC
24120 movi a10, foo@TLSARG
24121 callx8.tls a8, foo@TLSCALL'
24122 tls_first_major=2
24123 tls_first_minor=19
24124 ;;
24125 esac
24126 set_have_as_tls=no
24127 if test "x$enable_tls" = xno ; then
24128 : # TLS explicitly disabled.
24129 elif test "x$enable_tls" = xyes ; then
24130 set_have_as_tls=yes # TLS explicitly enabled.
24131 elif test -z "$tls_first_major"; then
24132 : # If we don't have a check, assume no support.
24133 else
24134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
24135 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
24136 if test "${gcc_cv_as_tls+set}" = set; then :
24137 $as_echo_n "(cached) " >&6
24138 else
24139 gcc_cv_as_tls=no
24140 if test $in_tree_gas = yes; then
24141 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
24142 then gcc_cv_as_tls=yes
24143 fi
24144 elif test x$gcc_cv_as != x; then
24145 $as_echo "$conftest_s" > conftest.s
24146 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
24147 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24148 (eval $ac_try) 2>&5
24149 ac_status=$?
24150 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24151 test $ac_status = 0; }; }
24152 then
24153 gcc_cv_as_tls=yes
24154 else
24155 echo "configure: failed program was" >&5
24156 cat conftest.s >&5
24157 fi
24158 rm -f conftest.o conftest.s
24159 fi
24160 fi
24161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
24162 $as_echo "$gcc_cv_as_tls" >&6; }
24163 if test $gcc_cv_as_tls = yes; then
24164 set_have_as_tls=yes
24165 fi
24166 fi
24167 if test $set_have_as_tls = yes ; then
24168
24169 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
24170
24171 fi
24172
24173 # Target-specific assembler checks.
24174
24175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
24176 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
24177 gcc_cv_ld_static_dynamic=no
24178 gcc_cv_ld_static_option='-Bstatic'
24179 gcc_cv_ld_dynamic_option='-Bdynamic'
24180 if test $in_tree_ld = yes ; then
24181 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
24182 gcc_cv_ld_static_dynamic=yes
24183 fi
24184 elif test x$gcc_cv_ld != x; then
24185 # Check if linker supports -Bstatic/-Bdynamic option
24186 if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
24187 && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
24188 gcc_cv_ld_static_dynamic=yes
24189 else
24190 case "$target" in
24191 # AIX ld uses -b flags
24192 *-*-aix4.[23]* | *-*-aix[5-9]*)
24193 gcc_cv_ld_static_dynamic=yes
24194 gcc_cv_ld_static_option="-bstatic"
24195 gcc_cv_ld_dynamic_option="-bdynamic"
24196 ;;
24197 # HP-UX ld uses -a flags to select between shared and archive.
24198 *-*-hpux*)
24199 if test x"$gnu_ld" = xno; then
24200 gcc_cv_ld_static_dynamic=yes
24201 gcc_cv_ld_static_option="-aarchive_shared"
24202 gcc_cv_ld_dynamic_option="-adefault"
24203 fi
24204 ;;
24205 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
24206 *-*-solaris2*)
24207 gcc_cv_ld_static_dynamic=yes
24208 ;;
24209 esac
24210 fi
24211 fi
24212 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
24213
24214 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
24215
24216
24217 cat >>confdefs.h <<_ACEOF
24218 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
24219 _ACEOF
24220
24221
24222 cat >>confdefs.h <<_ACEOF
24223 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
24224 _ACEOF
24225
24226 fi
24227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
24228 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
24229
24230 if test x"$demangler_in_ld" = xyes; then
24231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
24232 $as_echo_n "checking linker --demangle support... " >&6; }
24233 gcc_cv_ld_demangle=no
24234 if test $in_tree_ld = yes; then
24235 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 \
24236 gcc_cv_ld_demangle=yes
24237 fi
24238 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
24239 # Check if the GNU linker supports --demangle option
24240 if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
24241 gcc_cv_ld_demangle=yes
24242 fi
24243 fi
24244 if test x"$gcc_cv_ld_demangle" = xyes; then
24245
24246 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
24247
24248 fi
24249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
24250 $as_echo "$gcc_cv_ld_demangle" >&6; }
24251 fi
24252
24253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
24254 $as_echo_n "checking linker plugin support... " >&6; }
24255 gcc_cv_lto_plugin=0
24256 if test -f liblto_plugin.la; then
24257 save_ld_ver="$ld_ver"
24258 save_ld_vers_major="$ld_vers_major"
24259 save_ld_vers_minor="$ld_vers_minor"
24260 save_ld_is_gold="$ld_is_gold"
24261
24262 ld_is_gold=no
24263
24264 if test $in_tree_ld = yes -a x"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x"$gcc_cv_ld"; then
24265 ld_ver="GNU ld"
24266 # FIXME: ld_is_gold?
24267 ld_vers_major="$gcc_cv_gld_major_version"
24268 ld_vers_minor="$gcc_cv_gld_minor_version"
24269 else
24270 # Determine plugin linker version.
24271 # FIXME: Partial duplicate from above, generalize.
24272 ld_ver=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
24273 if echo "$ld_ver" | grep GNU > /dev/null; then
24274 if echo "$ld_ver" | grep "GNU gold" > /dev/null; then
24275 ld_is_gold=yes
24276 ld_vers=`echo $ld_ver | sed -n \
24277 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
24278 else
24279 ld_vers=`echo $ld_ver | sed -n \
24280 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
24281 fi
24282 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
24283 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
24284 fi
24285 fi
24286
24287 # Determine plugin support.
24288 if echo "$ld_ver" | grep GNU > /dev/null; then
24289 # Require GNU ld or gold 2.21+ for plugin support by default.
24290 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
24291 gcc_cv_lto_plugin=2
24292 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
24293 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
24294 gcc_cv_lto_plugin=1
24295 fi
24296 fi
24297
24298 ld_ver="$save_ld_ver"
24299 ld_vers_major="$save_ld_vers_major"
24300 ld_vers_minor="$save_ld_vers_minor"
24301 ld_is_gold="$save_ld_is_gold"
24302 fi
24303
24304 cat >>confdefs.h <<_ACEOF
24305 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
24306 _ACEOF
24307
24308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
24309 $as_echo "$gcc_cv_lto_plugin" >&6; }
24310
24311 case "$target" in
24312 aarch64*-*-*)
24313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mabi option" >&5
24314 $as_echo_n "checking assembler for -mabi option... " >&6; }
24315 if test "${gcc_cv_as_aarch64_mabi+set}" = set; then :
24316 $as_echo_n "(cached) " >&6
24317 else
24318 gcc_cv_as_aarch64_mabi=no
24319 if test x$gcc_cv_as != x; then
24320 $as_echo '.text' > conftest.s
24321 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mabi=lp64 -o conftest.o conftest.s >&5'
24322 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24323 (eval $ac_try) 2>&5
24324 ac_status=$?
24325 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24326 test $ac_status = 0; }; }
24327 then
24328 gcc_cv_as_aarch64_mabi=yes
24329 else
24330 echo "configure: failed program was" >&5
24331 cat conftest.s >&5
24332 fi
24333 rm -f conftest.o conftest.s
24334 fi
24335 fi
24336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_mabi" >&5
24337 $as_echo "$gcc_cv_as_aarch64_mabi" >&6; }
24338
24339 if test x$gcc_cv_as_aarch64_mabi = xyes; then
24340
24341 $as_echo "#define HAVE_AS_MABI_OPTION 1" >>confdefs.h
24342
24343 else
24344 if test x$with_abi = xilp32; then
24345 as_fn_error "Assembler does not support -mabi=ilp32.\
24346 Upgrade the Assembler." "$LINENO" 5
24347 fi
24348 if test x"$with_multilib_list" = xdefault; then
24349 TM_MULTILIB_CONFIG=lp64
24350 else
24351 aarch64_multilibs=`echo $with_multilib_list | sed -e 's/,/ /g'`
24352 for aarch64_multilib in ${aarch64_multilibs}; do
24353 case ${aarch64_multilib} in
24354 ilp32)
24355 as_fn_error "Assembler does not support -mabi=ilp32.\
24356 Upgrade the Assembler." "$LINENO" 5
24357 ;;
24358 *)
24359 ;;
24360 esac
24361 done
24362 fi
24363 fi
24364 # Check if we have binutils support for relocations types needed by -fpic
24365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -fpic relocs" >&5
24366 $as_echo_n "checking assembler for -fpic relocs... " >&6; }
24367 if test "${gcc_cv_as_aarch64_picreloc+set}" = set; then :
24368 $as_echo_n "(cached) " >&6
24369 else
24370 gcc_cv_as_aarch64_picreloc=no
24371 if test x$gcc_cv_as != x; then
24372 $as_echo '
24373 .text
24374 ldr x0, [x2, #:gotpage_lo15:globalsym]
24375 ' > conftest.s
24376 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24377 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24378 (eval $ac_try) 2>&5
24379 ac_status=$?
24380 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24381 test $ac_status = 0; }; }
24382 then
24383 gcc_cv_as_aarch64_picreloc=yes
24384 else
24385 echo "configure: failed program was" >&5
24386 cat conftest.s >&5
24387 fi
24388 rm -f conftest.o conftest.s
24389 fi
24390 fi
24391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_picreloc" >&5
24392 $as_echo "$gcc_cv_as_aarch64_picreloc" >&6; }
24393 if test $gcc_cv_as_aarch64_picreloc = yes; then
24394
24395 $as_echo "#define HAVE_AS_SMALL_PIC_RELOCS 1" >>confdefs.h
24396
24397 fi
24398 # Enable default workaround for AArch64 Cortex-A53 erratum 835769.
24399 # Check whether --enable-fix-cortex-a53-835769 was given.
24400 if test "${enable_fix_cortex_a53_835769+set}" = set; then :
24401 enableval=$enable_fix_cortex_a53_835769;
24402 case $enableval in
24403 yes)
24404 tm_defines="${tm_defines} TARGET_FIX_ERR_A53_835769_DEFAULT=1"
24405 ;;
24406 no)
24407 ;;
24408 *)
24409 as_fn_error "'$enableval' is an invalid value for --enable-fix-cortex-a53-835769.\
24410 Valid choices are 'yes' and 'no'." "$LINENO" 5
24411 ;;
24412
24413 esac
24414
24415 fi
24416
24417 # Enable default workaround for AArch64 Cortex-A53 erratum 843419.
24418 # Check whether --enable-fix-cortex-a53-843419 was given.
24419 if test "${enable_fix_cortex_a53_843419+set}" = set; then :
24420 enableval=$enable_fix_cortex_a53_843419;
24421 case $enableval in
24422 yes)
24423 tm_defines="${tm_defines} TARGET_FIX_ERR_A53_843419_DEFAULT=1"
24424 ;;
24425 no)
24426 ;;
24427 *)
24428 as_fn_error "'$enableval' is an invalid value for --enable-fix-cortex-a53-843419.\
24429 Valid choices are 'yes' and 'no'." "$LINENO" 5
24430 ;;
24431
24432 esac
24433
24434 fi
24435
24436 ;;
24437
24438 # All TARGET_ABI_OSF targets.
24439 alpha*-*-linux* | alpha*-*-*bsd*)
24440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
24441 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
24442 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
24443 $as_echo_n "(cached) " >&6
24444 else
24445 gcc_cv_as_alpha_explicit_relocs=no
24446 if test $in_tree_gas = yes; then
24447 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
24448 then gcc_cv_as_alpha_explicit_relocs=yes
24449 fi
24450 elif test x$gcc_cv_as != x; then
24451 $as_echo ' .set nomacro
24452 .text
24453 extbl $3, $2, $3 !lituse_bytoff!1
24454 ldq $2, a($29) !literal!1
24455 ldq $4, b($29) !literal!2
24456 ldq_u $3, 0($2) !lituse_base!1
24457 ldq $27, f($29) !literal!5
24458 jsr $26, ($27), f !lituse_jsr!5
24459 ldah $29, 0($26) !gpdisp!3
24460 lda $0, c($29) !gprel
24461 ldah $1, d($29) !gprelhigh
24462 lda $1, d($1) !gprellow
24463 lda $29, 0($29) !gpdisp!3' > conftest.s
24464 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24465 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24466 (eval $ac_try) 2>&5
24467 ac_status=$?
24468 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24469 test $ac_status = 0; }; }
24470 then
24471 gcc_cv_as_alpha_explicit_relocs=yes
24472 else
24473 echo "configure: failed program was" >&5
24474 cat conftest.s >&5
24475 fi
24476 rm -f conftest.o conftest.s
24477 fi
24478 fi
24479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
24480 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
24481 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
24482
24483 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
24484
24485 fi
24486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
24487 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
24488 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
24489 $as_echo_n "(cached) " >&6
24490 else
24491 gcc_cv_as_alpha_jsrdirect_relocs=no
24492 if test $in_tree_gas = yes; then
24493 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
24494 then gcc_cv_as_alpha_jsrdirect_relocs=yes
24495 fi
24496 elif test x$gcc_cv_as != x; then
24497 $as_echo ' .set nomacro
24498 .text
24499 ldq $27, a($29) !literal!1
24500 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
24501 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24502 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24503 (eval $ac_try) 2>&5
24504 ac_status=$?
24505 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24506 test $ac_status = 0; }; }
24507 then
24508 gcc_cv_as_alpha_jsrdirect_relocs=yes
24509 else
24510 echo "configure: failed program was" >&5
24511 cat conftest.s >&5
24512 fi
24513 rm -f conftest.o conftest.s
24514 fi
24515 fi
24516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
24517 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
24518 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
24519
24520 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
24521
24522 fi
24523 ;;
24524
24525 avr-*-*)
24526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --mlink-relax option" >&5
24527 $as_echo_n "checking assembler for --mlink-relax option... " >&6; }
24528 if test "${gcc_cv_as_avr_mlink_relax+set}" = set; then :
24529 $as_echo_n "(cached) " >&6
24530 else
24531 gcc_cv_as_avr_mlink_relax=no
24532 if test x$gcc_cv_as != x; then
24533 $as_echo '.text' > conftest.s
24534 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --mlink-relax -o conftest.o conftest.s >&5'
24535 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24536 (eval $ac_try) 2>&5
24537 ac_status=$?
24538 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24539 test $ac_status = 0; }; }
24540 then
24541 gcc_cv_as_avr_mlink_relax=yes
24542 else
24543 echo "configure: failed program was" >&5
24544 cat conftest.s >&5
24545 fi
24546 rm -f conftest.o conftest.s
24547 fi
24548 fi
24549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mlink_relax" >&5
24550 $as_echo "$gcc_cv_as_avr_mlink_relax" >&6; }
24551 if test $gcc_cv_as_avr_mlink_relax = yes; then
24552
24553 $as_echo "#define HAVE_AS_AVR_MLINK_RELAX_OPTION 1" >>confdefs.h
24554
24555 fi
24556
24557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mrmw option" >&5
24558 $as_echo_n "checking assembler for -mrmw option... " >&6; }
24559 if test "${gcc_cv_as_avr_mrmw+set}" = set; then :
24560 $as_echo_n "(cached) " >&6
24561 else
24562 gcc_cv_as_avr_mrmw=no
24563 if test x$gcc_cv_as != x; then
24564 $as_echo '.text' > conftest.s
24565 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mrmw -o conftest.o conftest.s >&5'
24566 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24567 (eval $ac_try) 2>&5
24568 ac_status=$?
24569 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24570 test $ac_status = 0; }; }
24571 then
24572 gcc_cv_as_avr_mrmw=yes
24573 else
24574 echo "configure: failed program was" >&5
24575 cat conftest.s >&5
24576 fi
24577 rm -f conftest.o conftest.s
24578 fi
24579 fi
24580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mrmw" >&5
24581 $as_echo "$gcc_cv_as_avr_mrmw" >&6; }
24582 if test $gcc_cv_as_avr_mrmw = yes; then
24583
24584 $as_echo "#define HAVE_AS_AVR_MRMW_OPTION 1" >>confdefs.h
24585
24586 fi
24587 ;;
24588
24589 cris-*-*)
24590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
24591 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
24592 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
24593 $as_echo_n "(cached) " >&6
24594 else
24595 gcc_cv_as_cris_no_mul_bug=no
24596 if test $in_tree_gas = yes; then
24597 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24598 then gcc_cv_as_cris_no_mul_bug=yes
24599 fi
24600 elif test x$gcc_cv_as != x; then
24601 $as_echo '.text' > conftest.s
24602 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
24603 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24604 (eval $ac_try) 2>&5
24605 ac_status=$?
24606 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24607 test $ac_status = 0; }; }
24608 then
24609 gcc_cv_as_cris_no_mul_bug=yes
24610 else
24611 echo "configure: failed program was" >&5
24612 cat conftest.s >&5
24613 fi
24614 rm -f conftest.o conftest.s
24615 fi
24616 fi
24617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
24618 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
24619 if test $gcc_cv_as_cris_no_mul_bug = yes; then
24620
24621 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
24622
24623 fi
24624 ;;
24625
24626 sparc*-*-*)
24627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
24628 $as_echo_n "checking assembler for .register... " >&6; }
24629 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
24630 $as_echo_n "(cached) " >&6
24631 else
24632 gcc_cv_as_sparc_register_op=no
24633 if test x$gcc_cv_as != x; then
24634 $as_echo '.register %g2, #scratch' > conftest.s
24635 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24636 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24637 (eval $ac_try) 2>&5
24638 ac_status=$?
24639 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24640 test $ac_status = 0; }; }
24641 then
24642 gcc_cv_as_sparc_register_op=yes
24643 else
24644 echo "configure: failed program was" >&5
24645 cat conftest.s >&5
24646 fi
24647 rm -f conftest.o conftest.s
24648 fi
24649 fi
24650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
24651 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
24652 if test $gcc_cv_as_sparc_register_op = yes; then
24653
24654 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
24655
24656 fi
24657
24658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for #nobits" >&5
24659 $as_echo_n "checking assembler for #nobits... " >&6; }
24660 if test "${gcc_cv_as_sparc_nobits+set}" = set; then :
24661 $as_echo_n "(cached) " >&6
24662 else
24663 gcc_cv_as_sparc_nobits=no
24664 if test x$gcc_cv_as != x; then
24665 $as_echo '.section "nobits",#alloc,#write,#nobits
24666 .section "progbits",#alloc,#write,#progbits' > conftest.s
24667 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24668 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24669 (eval $ac_try) 2>&5
24670 ac_status=$?
24671 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24672 test $ac_status = 0; }; }
24673 then
24674 gcc_cv_as_sparc_nobits=yes
24675 else
24676 echo "configure: failed program was" >&5
24677 cat conftest.s >&5
24678 fi
24679 rm -f conftest.o conftest.s
24680 fi
24681 fi
24682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_nobits" >&5
24683 $as_echo "$gcc_cv_as_sparc_nobits" >&6; }
24684
24685
24686 cat >>confdefs.h <<_ACEOF
24687 #define HAVE_AS_SPARC_NOBITS `if test $gcc_cv_as_sparc_nobits = yes; then echo 1; else echo 0; fi`
24688 _ACEOF
24689
24690
24691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
24692 $as_echo_n "checking assembler for -relax option... " >&6; }
24693 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
24694 $as_echo_n "(cached) " >&6
24695 else
24696 gcc_cv_as_sparc_relax=no
24697 if test x$gcc_cv_as != x; then
24698 $as_echo '.text' > conftest.s
24699 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
24700 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24701 (eval $ac_try) 2>&5
24702 ac_status=$?
24703 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24704 test $ac_status = 0; }; }
24705 then
24706 gcc_cv_as_sparc_relax=yes
24707 else
24708 echo "configure: failed program was" >&5
24709 cat conftest.s >&5
24710 fi
24711 rm -f conftest.o conftest.s
24712 fi
24713 fi
24714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
24715 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
24716 if test $gcc_cv_as_sparc_relax = yes; then
24717
24718 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
24719
24720 fi
24721
24722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
24723 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
24724 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
24725 $as_echo_n "(cached) " >&6
24726 else
24727 gcc_cv_as_sparc_gotdata_op=no
24728 if test x$gcc_cv_as != x; then
24729 $as_echo '.text
24730 .align 4
24731 foo:
24732 nop
24733 bar:
24734 sethi %gdop_hix22(foo), %g1
24735 xor %g1, %gdop_lox10(foo), %g1
24736 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
24737 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24738 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24739 (eval $ac_try) 2>&5
24740 ac_status=$?
24741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24742 test $ac_status = 0; }; }
24743 then
24744 if test x$gcc_cv_ld != x \
24745 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24746 if test x$gcc_cv_objdump != x; then
24747 if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
24748 | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
24749 gcc_cv_as_sparc_gotdata_op=no
24750 else
24751 gcc_cv_as_sparc_gotdata_op=yes
24752 fi
24753 fi
24754 fi
24755 rm -f conftest
24756 else
24757 echo "configure: failed program was" >&5
24758 cat conftest.s >&5
24759 fi
24760 rm -f conftest.o conftest.s
24761 fi
24762 fi
24763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
24764 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
24765 if test $gcc_cv_as_sparc_gotdata_op = yes; then
24766
24767 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
24768
24769 fi
24770
24771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
24772 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
24773 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
24774 $as_echo_n "(cached) " >&6
24775 else
24776 gcc_cv_as_sparc_ua_pcrel=no
24777 if test x$gcc_cv_as != x; then
24778 $as_echo '.text
24779 foo:
24780 nop
24781 .data
24782 .align 4
24783 .byte 0
24784 .uaword %r_disp32(foo)' > conftest.s
24785 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24786 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24787 (eval $ac_try) 2>&5
24788 ac_status=$?
24789 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24790 test $ac_status = 0; }; }
24791 then
24792 if test x$gcc_cv_ld != x \
24793 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24794 gcc_cv_as_sparc_ua_pcrel=yes
24795 fi
24796 rm -f conftest
24797 else
24798 echo "configure: failed program was" >&5
24799 cat conftest.s >&5
24800 fi
24801 rm -f conftest.o conftest.s
24802 fi
24803 fi
24804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
24805 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
24806 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
24807
24808 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
24809
24810
24811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
24812 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
24813 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
24814 $as_echo_n "(cached) " >&6
24815 else
24816 gcc_cv_as_sparc_ua_pcrel_hidden=no
24817 if test x$gcc_cv_as != x; then
24818 $as_echo '.data
24819 .align 4
24820 .byte 0x31
24821 .uaword %r_disp32(foo)
24822 .byte 0x32, 0x33, 0x34
24823 .global foo
24824 .hidden foo
24825 foo:
24826 .skip 4' > conftest.s
24827 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24828 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24829 (eval $ac_try) 2>&5
24830 ac_status=$?
24831 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24832 test $ac_status = 0; }; }
24833 then
24834 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
24835 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
24836 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
24837 | grep ' 31000000 07323334' > /dev/null 2>&1; then
24838 if $gcc_cv_objdump -R conftest 2> /dev/null \
24839 | grep 'DISP32' > /dev/null 2>&1; then
24840 :
24841 else
24842 gcc_cv_as_sparc_ua_pcrel_hidden=yes
24843 fi
24844 fi
24845 rm -f conftest
24846 else
24847 echo "configure: failed program was" >&5
24848 cat conftest.s >&5
24849 fi
24850 rm -f conftest.o conftest.s
24851 fi
24852 fi
24853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
24854 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
24855 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
24856
24857 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
24858
24859 fi
24860
24861 fi # unaligned pcrel relocs
24862
24863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
24864 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
24865 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
24866 $as_echo_n "(cached) " >&6
24867 else
24868 gcc_cv_as_sparc_offsetable_lo10=no
24869 if test x$gcc_cv_as != x; then
24870 $as_echo '.text
24871 or %g1, %lo(ab) + 12, %g1
24872 or %g1, %lo(ab + 12), %g1' > conftest.s
24873 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
24874 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24875 (eval $ac_try) 2>&5
24876 ac_status=$?
24877 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24878 test $ac_status = 0; }; }
24879 then
24880 if test x$gcc_cv_objdump != x \
24881 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
24882 | grep ' 82106000 82106000' > /dev/null 2>&1; then
24883 gcc_cv_as_sparc_offsetable_lo10=yes
24884 fi
24885 else
24886 echo "configure: failed program was" >&5
24887 cat conftest.s >&5
24888 fi
24889 rm -f conftest.o conftest.s
24890 fi
24891 fi
24892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
24893 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
24894 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
24895
24896 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
24897
24898 fi
24899
24900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
24901 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
24902 if test "${gcc_cv_as_sparc_fmaf+set}" = set; then :
24903 $as_echo_n "(cached) " >&6
24904 else
24905 gcc_cv_as_sparc_fmaf=no
24906 if test x$gcc_cv_as != x; then
24907 $as_echo '.text
24908 .register %g2, #scratch
24909 .register %g3, #scratch
24910 .align 4
24911 fmaddd %f0, %f2, %f4, %f6
24912 addxccc %g1, %g2, %g3
24913 fsrl32 %f2, %f4, %f8
24914 fnaddd %f10, %f12, %f14' > conftest.s
24915 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
24916 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24917 (eval $ac_try) 2>&5
24918 ac_status=$?
24919 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24920 test $ac_status = 0; }; }
24921 then
24922 gcc_cv_as_sparc_fmaf=yes
24923 else
24924 echo "configure: failed program was" >&5
24925 cat conftest.s >&5
24926 fi
24927 rm -f conftest.o conftest.s
24928 fi
24929 fi
24930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
24931 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
24932 if test $gcc_cv_as_sparc_fmaf = yes; then
24933
24934 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
24935
24936 fi
24937
24938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
24939 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
24940 if test "${gcc_cv_as_sparc_sparc4+set}" = set; then :
24941 $as_echo_n "(cached) " >&6
24942 else
24943 gcc_cv_as_sparc_sparc4=no
24944 if test x$gcc_cv_as != x; then
24945 $as_echo '.text
24946 .register %g2, #scratch
24947 .register %g3, #scratch
24948 .align 4
24949 cxbe %g2, %g3, 1f
24950 1: cwbneg %g2, %g3, 1f
24951 1: sha1
24952 md5
24953 aes_kexpand0 %f4, %f6, %f8
24954 des_round %f38, %f40, %f42, %f44
24955 camellia_f %f54, %f56, %f58, %f60
24956 kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
24957 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
24958 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24959 (eval $ac_try) 2>&5
24960 ac_status=$?
24961 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24962 test $ac_status = 0; }; }
24963 then
24964 gcc_cv_as_sparc_sparc4=yes
24965 else
24966 echo "configure: failed program was" >&5
24967 cat conftest.s >&5
24968 fi
24969 rm -f conftest.o conftest.s
24970 fi
24971 fi
24972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
24973 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
24974 if test $gcc_cv_as_sparc_sparc4 = yes; then
24975
24976 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
24977
24978 fi
24979
24980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for LEON instructions" >&5
24981 $as_echo_n "checking assembler for LEON instructions... " >&6; }
24982 if test "${gcc_cv_as_sparc_leon+set}" = set; then :
24983 $as_echo_n "(cached) " >&6
24984 else
24985 gcc_cv_as_sparc_leon=no
24986 if test x$gcc_cv_as != x; then
24987 $as_echo '.text
24988 .register %g2, #scratch
24989 .register %g3, #scratch
24990 .align 4
24991 smac %g2, %g3, %g1
24992 umac %g2, %g3, %g1
24993 casa [%g2] 0xb, %g3, %g1' > conftest.s
24994 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -Aleon -o conftest.o conftest.s >&5'
24995 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24996 (eval $ac_try) 2>&5
24997 ac_status=$?
24998 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24999 test $ac_status = 0; }; }
25000 then
25001 gcc_cv_as_sparc_leon=yes
25002 else
25003 echo "configure: failed program was" >&5
25004 cat conftest.s >&5
25005 fi
25006 rm -f conftest.o conftest.s
25007 fi
25008 fi
25009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_leon" >&5
25010 $as_echo "$gcc_cv_as_sparc_leon" >&6; }
25011 if test $gcc_cv_as_sparc_leon = yes; then
25012
25013 $as_echo "#define HAVE_AS_LEON 1" >>confdefs.h
25014
25015 fi
25016 ;;
25017
25018 i[34567]86-*-* | x86_64-*-*)
25019 case $target_os in
25020 cygwin*)
25021 # Full C++ conformance when using a shared libstdc++-v3 requires some
25022 # support from the Cygwin DLL, which in more recent versions exports
25023 # wrappers to aid in interposing and redirecting operators new, delete,
25024 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
25025 # are configuring for a version of Cygwin that exports the wrappers.
25026 if test x$host = x$target && test x$host_cpu = xi686; then
25027 ac_fn_cxx_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
25028 if test "x$ac_cv_func___wrap__Znaj" = x""yes; then :
25029 gcc_ac_cygwin_dll_wrappers=yes
25030 else
25031 gcc_ac_cygwin_dll_wrappers=no
25032 fi
25033
25034 else
25035 # Can't check presence of libc functions during cross-compile, so
25036 # we just have to assume we're building for an up-to-date target.
25037 gcc_ac_cygwin_dll_wrappers=yes
25038 fi
25039
25040 cat >>confdefs.h <<_ACEOF
25041 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
25042 _ACEOF
25043
25044 esac
25045 case $target_os in
25046 cygwin* | pe | mingw32* | interix*)
25047 # Recent binutils allows the three-operand form of ".comm" on PE. This
25048 # definition is used unconditionally to initialise the default state of
25049 # the target option variable that governs usage of the feature.
25050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
25051 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
25052 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
25053 $as_echo_n "(cached) " >&6
25054 else
25055 gcc_cv_as_comm_has_align=no
25056 if test $in_tree_gas = yes; then
25057 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
25058 then gcc_cv_as_comm_has_align=yes
25059 fi
25060 elif test x$gcc_cv_as != x; then
25061 $as_echo '.comm foo,1,32' > conftest.s
25062 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25063 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25064 (eval $ac_try) 2>&5
25065 ac_status=$?
25066 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25067 test $ac_status = 0; }; }
25068 then
25069 gcc_cv_as_comm_has_align=yes
25070 else
25071 echo "configure: failed program was" >&5
25072 cat conftest.s >&5
25073 fi
25074 rm -f conftest.o conftest.s
25075 fi
25076 fi
25077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
25078 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
25079
25080
25081 cat >>confdefs.h <<_ACEOF
25082 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
25083 _ACEOF
25084
25085 # Used for DWARF 2 in PE
25086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
25087 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
25088 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
25089 $as_echo_n "(cached) " >&6
25090 else
25091 gcc_cv_as_ix86_pe_secrel32=no
25092 if test $in_tree_gas = yes; then
25093 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
25094 then gcc_cv_as_ix86_pe_secrel32=yes
25095 fi
25096 elif test x$gcc_cv_as != x; then
25097 $as_echo '.text
25098 foo: nop
25099 .data
25100 .secrel32 foo' > conftest.s
25101 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25102 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25103 (eval $ac_try) 2>&5
25104 ac_status=$?
25105 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25106 test $ac_status = 0; }; }
25107 then
25108 if test x$gcc_cv_ld != x \
25109 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
25110 gcc_cv_as_ix86_pe_secrel32=yes
25111 fi
25112 rm -f conftest
25113 else
25114 echo "configure: failed program was" >&5
25115 cat conftest.s >&5
25116 fi
25117 rm -f conftest.o conftest.s
25118 fi
25119 fi
25120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
25121 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
25122 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
25123
25124 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
25125
25126 fi
25127 # Test if the assembler supports the extended form of the .section
25128 # directive that specifies section alignment. LTO support uses this,
25129 # but normally only after installation, so we warn but don't fail the
25130 # configure if LTO is enabled but the assembler does not support it.
25131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
25132 $as_echo_n "checking assembler for .section with alignment... " >&6; }
25133 if test "${gcc_cv_as_section_has_align+set}" = set; then :
25134 $as_echo_n "(cached) " >&6
25135 else
25136 gcc_cv_as_section_has_align=no
25137 if test $in_tree_gas = yes; then
25138 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
25139 then gcc_cv_as_section_has_align=yes
25140 fi
25141 elif test x$gcc_cv_as != x; then
25142 $as_echo '.section lto_test,"dr0"' > conftest.s
25143 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
25144 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25145 (eval $ac_try) 2>&5
25146 ac_status=$?
25147 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25148 test $ac_status = 0; }; }
25149 then
25150 gcc_cv_as_section_has_align=yes
25151 else
25152 echo "configure: failed program was" >&5
25153 cat conftest.s >&5
25154 fi
25155 rm -f conftest.o conftest.s
25156 fi
25157 fi
25158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
25159 $as_echo "$gcc_cv_as_section_has_align" >&6; }
25160
25161 if test x$gcc_cv_as_section_has_align != xyes; then
25162 case ",$enable_languages," in
25163 *,lto,*)
25164 { $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
25165 $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;}
25166 ;;
25167 esac
25168 fi
25169 ;;
25170 esac
25171
25172 # Test if the assembler supports the section flag 'e' for specifying
25173 # an excluded section.
25174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with e" >&5
25175 $as_echo_n "checking assembler for .section with e... " >&6; }
25176 if test "${gcc_cv_as_section_has_e+set}" = set; then :
25177 $as_echo_n "(cached) " >&6
25178 else
25179 gcc_cv_as_section_has_e=no
25180 if test $in_tree_gas = yes; then
25181 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
25182 then gcc_cv_as_section_has_e=yes
25183 fi
25184 elif test x$gcc_cv_as != x; then
25185 $as_echo '.section foo1,"e"
25186 .byte 0,0,0,0' > conftest.s
25187 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25188 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25189 (eval $ac_try) 2>&5
25190 ac_status=$?
25191 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25192 test $ac_status = 0; }; }
25193 then
25194 gcc_cv_as_section_has_e=yes
25195 else
25196 echo "configure: failed program was" >&5
25197 cat conftest.s >&5
25198 fi
25199 rm -f conftest.o conftest.s
25200 fi
25201 fi
25202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_e" >&5
25203 $as_echo "$gcc_cv_as_section_has_e" >&6; }
25204
25205
25206 cat >>confdefs.h <<_ACEOF
25207 #define HAVE_GAS_SECTION_EXCLUDE `if test $gcc_cv_as_section_has_e = yes; then echo 1; else echo 0; fi`
25208 _ACEOF
25209
25210
25211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
25212 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
25213 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
25214 $as_echo_n "(cached) " >&6
25215 else
25216 gcc_cv_as_ix86_filds=no
25217 if test x$gcc_cv_as != x; then
25218 $as_echo 'filds (%ebp); fists (%ebp)' > conftest.s
25219 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25220 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25221 (eval $ac_try) 2>&5
25222 ac_status=$?
25223 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25224 test $ac_status = 0; }; }
25225 then
25226 gcc_cv_as_ix86_filds=yes
25227 else
25228 echo "configure: failed program was" >&5
25229 cat conftest.s >&5
25230 fi
25231 rm -f conftest.o conftest.s
25232 fi
25233 fi
25234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
25235 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
25236 if test $gcc_cv_as_ix86_filds = yes; then
25237
25238 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
25239
25240 fi
25241
25242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
25243 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
25244 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
25245 $as_echo_n "(cached) " >&6
25246 else
25247 gcc_cv_as_ix86_fildq=no
25248 if test x$gcc_cv_as != x; then
25249 $as_echo 'fildq (%ebp); fistpq (%ebp)' > conftest.s
25250 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25251 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25252 (eval $ac_try) 2>&5
25253 ac_status=$?
25254 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25255 test $ac_status = 0; }; }
25256 then
25257 gcc_cv_as_ix86_fildq=yes
25258 else
25259 echo "configure: failed program was" >&5
25260 cat conftest.s >&5
25261 fi
25262 rm -f conftest.o conftest.s
25263 fi
25264 fi
25265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
25266 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
25267 if test $gcc_cv_as_ix86_fildq = yes; then
25268
25269 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
25270
25271 fi
25272
25273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
25274 $as_echo_n "checking assembler for cmov syntax... " >&6; }
25275 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
25276 $as_echo_n "(cached) " >&6
25277 else
25278 gcc_cv_as_ix86_cmov_sun_syntax=no
25279 if test x$gcc_cv_as != x; then
25280 $as_echo 'cmovl.l %edx, %eax' > conftest.s
25281 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25282 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25283 (eval $ac_try) 2>&5
25284 ac_status=$?
25285 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25286 test $ac_status = 0; }; }
25287 then
25288 gcc_cv_as_ix86_cmov_sun_syntax=yes
25289 else
25290 echo "configure: failed program was" >&5
25291 cat conftest.s >&5
25292 fi
25293 rm -f conftest.o conftest.s
25294 fi
25295 fi
25296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
25297 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
25298 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
25299
25300 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
25301
25302 fi
25303
25304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
25305 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
25306 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
25307 $as_echo_n "(cached) " >&6
25308 else
25309 gcc_cv_as_ix86_ffreep=no
25310 if test x$gcc_cv_as != x; then
25311 $as_echo 'ffreep %st(1)' > conftest.s
25312 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25313 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25314 (eval $ac_try) 2>&5
25315 ac_status=$?
25316 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25317 test $ac_status = 0; }; }
25318 then
25319 gcc_cv_as_ix86_ffreep=yes
25320 else
25321 echo "configure: failed program was" >&5
25322 cat conftest.s >&5
25323 fi
25324 rm -f conftest.o conftest.s
25325 fi
25326 fi
25327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
25328 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
25329 if test $gcc_cv_as_ix86_ffreep = yes; then
25330
25331 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
25332
25333 fi
25334
25335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
25336 $as_echo_n "checking assembler for .quad directive... " >&6; }
25337 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
25338 $as_echo_n "(cached) " >&6
25339 else
25340 gcc_cv_as_ix86_quad=no
25341 if test x$gcc_cv_as != x; then
25342 $as_echo '.quad 0' > conftest.s
25343 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25344 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25345 (eval $ac_try) 2>&5
25346 ac_status=$?
25347 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25348 test $ac_status = 0; }; }
25349 then
25350 gcc_cv_as_ix86_quad=yes
25351 else
25352 echo "configure: failed program was" >&5
25353 cat conftest.s >&5
25354 fi
25355 rm -f conftest.o conftest.s
25356 fi
25357 fi
25358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
25359 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
25360 if test $gcc_cv_as_ix86_quad = yes; then
25361
25362 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
25363
25364 fi
25365
25366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
25367 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
25368 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
25369 $as_echo_n "(cached) " >&6
25370 else
25371 gcc_cv_as_ix86_sahf=no
25372 if test x$gcc_cv_as != x; then
25373 $as_echo '.code64
25374 sahf' > conftest.s
25375 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25376 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25377 (eval $ac_try) 2>&5
25378 ac_status=$?
25379 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25380 test $ac_status = 0; }; }
25381 then
25382 gcc_cv_as_ix86_sahf=yes
25383 else
25384 echo "configure: failed program was" >&5
25385 cat conftest.s >&5
25386 fi
25387 rm -f conftest.o conftest.s
25388 fi
25389 fi
25390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
25391 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
25392 if test $gcc_cv_as_ix86_sahf = yes; then
25393
25394 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
25395
25396 fi
25397
25398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for interunit movq mnemonic" >&5
25399 $as_echo_n "checking assembler for interunit movq mnemonic... " >&6; }
25400 if test "${gcc_cv_as_ix86_interunit_movq+set}" = set; then :
25401 $as_echo_n "(cached) " >&6
25402 else
25403 gcc_cv_as_ix86_interunit_movq=no
25404 if test x$gcc_cv_as != x; then
25405 $as_echo '.code64
25406 movq %mm0, %rax
25407 movq %rax, %xmm0' > conftest.s
25408 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25409 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25410 (eval $ac_try) 2>&5
25411 ac_status=$?
25412 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25413 test $ac_status = 0; }; }
25414 then
25415 gcc_cv_as_ix86_interunit_movq=yes
25416 else
25417 echo "configure: failed program was" >&5
25418 cat conftest.s >&5
25419 fi
25420 rm -f conftest.o conftest.s
25421 fi
25422 fi
25423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_interunit_movq" >&5
25424 $as_echo "$gcc_cv_as_ix86_interunit_movq" >&6; }
25425
25426
25427 cat >>confdefs.h <<_ACEOF
25428 #define HAVE_AS_IX86_INTERUNIT_MOVQ `if test $gcc_cv_as_ix86_interunit_movq = yes; then echo 1; else echo 0; fi`
25429 _ACEOF
25430
25431
25432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
25433 $as_echo_n "checking assembler for hle prefixes... " >&6; }
25434 if test "${gcc_cv_as_ix86_hle+set}" = set; then :
25435 $as_echo_n "(cached) " >&6
25436 else
25437 gcc_cv_as_ix86_hle=no
25438 if test x$gcc_cv_as != x; then
25439 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
25440 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25441 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25442 (eval $ac_try) 2>&5
25443 ac_status=$?
25444 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25445 test $ac_status = 0; }; }
25446 then
25447 gcc_cv_as_ix86_hle=yes
25448 else
25449 echo "configure: failed program was" >&5
25450 cat conftest.s >&5
25451 fi
25452 rm -f conftest.o conftest.s
25453 fi
25454 fi
25455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
25456 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
25457 if test $gcc_cv_as_ix86_hle = yes; then
25458
25459 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
25460
25461 fi
25462
25463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
25464 $as_echo_n "checking assembler for swap suffix... " >&6; }
25465 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
25466 $as_echo_n "(cached) " >&6
25467 else
25468 gcc_cv_as_ix86_swap=no
25469 if test x$gcc_cv_as != x; then
25470 $as_echo 'movl.s %esp, %ebp' > conftest.s
25471 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25472 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25473 (eval $ac_try) 2>&5
25474 ac_status=$?
25475 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25476 test $ac_status = 0; }; }
25477 then
25478 gcc_cv_as_ix86_swap=yes
25479 else
25480 echo "configure: failed program was" >&5
25481 cat conftest.s >&5
25482 fi
25483 rm -f conftest.o conftest.s
25484 fi
25485 fi
25486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
25487 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
25488 if test $gcc_cv_as_ix86_swap = yes; then
25489
25490 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
25491
25492 fi
25493
25494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
25495 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
25496 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
25497 $as_echo_n "(cached) " >&6
25498 else
25499 gcc_cv_as_ix86_diff_sect_delta=no
25500 if test x$gcc_cv_as != x; then
25501 $as_echo '.section .rodata
25502 .L1:
25503 .long .L2-.L1
25504 .long .L3-.L1
25505 .text
25506 .L3: nop
25507 .L2: nop' > conftest.s
25508 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25509 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25510 (eval $ac_try) 2>&5
25511 ac_status=$?
25512 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25513 test $ac_status = 0; }; }
25514 then
25515 gcc_cv_as_ix86_diff_sect_delta=yes
25516 else
25517 echo "configure: failed program was" >&5
25518 cat conftest.s >&5
25519 fi
25520 rm -f conftest.o conftest.s
25521 fi
25522 fi
25523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
25524 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
25525 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
25526
25527 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
25528
25529 fi
25530
25531 # These two are used unconditionally by i386.[ch]; it is to be defined
25532 # to 1 if the feature is present, 0 otherwise.
25533 as_ix86_gotoff_in_data_opt=
25534 if test x$gas = xyes; then
25535 as_ix86_gotoff_in_data_opt="--32"
25536 fi
25537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
25538 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
25539 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
25540 $as_echo_n "(cached) " >&6
25541 else
25542 gcc_cv_as_ix86_gotoff_in_data=no
25543 if test $in_tree_gas = yes; then
25544 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25545 then gcc_cv_as_ix86_gotoff_in_data=yes
25546 fi
25547 elif test x$gcc_cv_as != x; then
25548 $as_echo ' .text
25549 .L0:
25550 nop
25551 .data
25552 .long .L0@GOTOFF' > conftest.s
25553 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gotoff_in_data_opt -o conftest.o conftest.s >&5'
25554 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25555 (eval $ac_try) 2>&5
25556 ac_status=$?
25557 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25558 test $ac_status = 0; }; }
25559 then
25560 gcc_cv_as_ix86_gotoff_in_data=yes
25561 else
25562 echo "configure: failed program was" >&5
25563 cat conftest.s >&5
25564 fi
25565 rm -f conftest.o conftest.s
25566 fi
25567 fi
25568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
25569 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
25570
25571
25572 cat >>confdefs.h <<_ACEOF
25573 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
25574 _ACEOF
25575
25576
25577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
25578 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
25579 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
25580 $as_echo_n "(cached) " >&6
25581 else
25582 gcc_cv_as_ix86_rep_lock_prefix=no
25583 if test x$gcc_cv_as != x; then
25584 $as_echo 'rep movsl
25585 rep ret
25586 rep nop
25587 rep bsf %ecx, %eax
25588 rep bsr %ecx, %eax
25589 lock addl %edi, (%eax,%esi)
25590 lock orl $0, (%esp)' > conftest.s
25591 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25592 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25593 (eval $ac_try) 2>&5
25594 ac_status=$?
25595 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25596 test $ac_status = 0; }; }
25597 then
25598 gcc_cv_as_ix86_rep_lock_prefix=yes
25599 else
25600 echo "configure: failed program was" >&5
25601 cat conftest.s >&5
25602 fi
25603 rm -f conftest.o conftest.s
25604 fi
25605 fi
25606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
25607 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
25608 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
25609
25610 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
25611
25612 fi
25613
25614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ud2 mnemonic" >&5
25615 $as_echo_n "checking assembler for ud2 mnemonic... " >&6; }
25616 if test "${gcc_cv_as_ix86_ud2+set}" = set; then :
25617 $as_echo_n "(cached) " >&6
25618 else
25619 gcc_cv_as_ix86_ud2=no
25620 if test x$gcc_cv_as != x; then
25621 $as_echo 'ud2' > conftest.s
25622 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25623 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25624 (eval $ac_try) 2>&5
25625 ac_status=$?
25626 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25627 test $ac_status = 0; }; }
25628 then
25629 gcc_cv_as_ix86_ud2=yes
25630 else
25631 echo "configure: failed program was" >&5
25632 cat conftest.s >&5
25633 fi
25634 rm -f conftest.o conftest.s
25635 fi
25636 fi
25637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ud2" >&5
25638 $as_echo "$gcc_cv_as_ix86_ud2" >&6; }
25639 if test $gcc_cv_as_ix86_ud2 = yes; then
25640
25641 $as_echo "#define HAVE_AS_IX86_UD2 1" >>confdefs.h
25642
25643 fi
25644
25645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
25646 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
25647 if test "${gcc_cv_as_ix86_tlsgdplt+set}" = set; then :
25648 $as_echo_n "(cached) " >&6
25649 else
25650 gcc_cv_as_ix86_tlsgdplt=no
25651 if test x$gcc_cv_as != x; then
25652 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
25653 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25654 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25655 (eval $ac_try) 2>&5
25656 ac_status=$?
25657 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25658 test $ac_status = 0; }; }
25659 then
25660 if test x$gcc_cv_ld != x \
25661 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
25662 gcc_cv_as_ix86_tlsgdplt=yes
25663 fi
25664 rm -f conftest
25665 else
25666 echo "configure: failed program was" >&5
25667 cat conftest.s >&5
25668 fi
25669 rm -f conftest.o conftest.s
25670 fi
25671 fi
25672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
25673 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
25674 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
25675
25676 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
25677
25678 fi
25679
25680 conftest_s='
25681 .section .tdata,"aw'$tls_section_flag'",@progbits
25682 tls_ld:
25683 .section .text,"ax",@progbits
25684 call tls_ld@tlsldmplt'
25685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
25686 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
25687 if test "${gcc_cv_as_ix86_tlsldmplt+set}" = set; then :
25688 $as_echo_n "(cached) " >&6
25689 else
25690 gcc_cv_as_ix86_tlsldmplt=no
25691 if test x$gcc_cv_as != x; then
25692 $as_echo "$conftest_s" > conftest.s
25693 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25694 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25695 (eval $ac_try) 2>&5
25696 ac_status=$?
25697 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25698 test $ac_status = 0; }; }
25699 then
25700 if test x$gcc_cv_ld != x \
25701 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
25702 gcc_cv_as_ix86_tlsldmplt=yes
25703 fi
25704 rm -f conftest
25705 else
25706 echo "configure: failed program was" >&5
25707 cat conftest.s >&5
25708 fi
25709 rm -f conftest.o conftest.s
25710 fi
25711 fi
25712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
25713 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
25714
25715
25716 cat >>confdefs.h <<_ACEOF
25717 #define HAVE_AS_IX86_TLSLDMPLT `if test $gcc_cv_as_ix86_tlsldmplt = yes; then echo 1; else echo 0; fi`
25718 _ACEOF
25719
25720
25721 # Enforce 32-bit output with gas and gld.
25722 if test x$gas = xyes; then
25723 as_ix86_tls_ldm_opt="--32"
25724 fi
25725 if echo "$ld_ver" | grep GNU > /dev/null; then
25726 if $gcc_cv_ld -V 2>/dev/null | grep elf_i386_sol2 > /dev/null; then
25727 ld_ix86_tls_ldm_opt="-melf_i386_sol2"
25728 else
25729 ld_ix86_tls_ldm_opt="-melf_i386"
25730 fi
25731 fi
25732 conftest_s='
25733 .section .text,"ax",@progbits
25734 .globl _start
25735 .type _start, @function
25736 _start:
25737 leal value@tlsldm(%ebx), %eax
25738 call ___tls_get_addr@plt
25739
25740 .section .tdata,"aw'$tls_section_flag'",@progbits
25741 .type value, @object
25742 value:'
25743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM reloc" >&5
25744 $as_echo_n "checking assembler for R_386_TLS_LDM reloc... " >&6; }
25745 if test "${gcc_cv_as_ix86_tlsldm+set}" = set; then :
25746 $as_echo_n "(cached) " >&6
25747 else
25748 gcc_cv_as_ix86_tlsldm=no
25749 if test x$gcc_cv_as != x; then
25750 $as_echo "$conftest_s" > conftest.s
25751 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_tls_ldm_opt -o conftest.o conftest.s >&5'
25752 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25753 (eval $ac_try) 2>&5
25754 ac_status=$?
25755 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25756 test $ac_status = 0; }; }
25757 then
25758 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
25759 && $gcc_cv_ld $ld_ix86_tls_ldm_opt -o conftest conftest.o $ld_tls_libs -lc > /dev/null 2>&1; then
25760 if $gcc_cv_objdump -d conftest 2>/dev/null | grep nop > /dev/null \
25761 || dis conftest 2>/dev/null | grep nop > /dev/null; then
25762 gcc_cv_as_ix86_tlsldm=yes
25763 fi
25764 fi
25765 rm -f conftest
25766 else
25767 echo "configure: failed program was" >&5
25768 cat conftest.s >&5
25769 fi
25770 rm -f conftest.o conftest.s
25771 fi
25772 fi
25773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldm" >&5
25774 $as_echo "$gcc_cv_as_ix86_tlsldm" >&6; }
25775
25776
25777 cat >>confdefs.h <<_ACEOF
25778 #define HAVE_AS_IX86_TLSLDM `if test $gcc_cv_as_ix86_tlsldm = yes; then echo 1; else echo 0; fi`
25779 _ACEOF
25780
25781
25782 ;;
25783
25784 ia64*-*-*)
25785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
25786 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
25787 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
25788 $as_echo_n "(cached) " >&6
25789 else
25790 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
25791 if test $in_tree_gas = yes; then
25792 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25793 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
25794 fi
25795 elif test x$gcc_cv_as != x; then
25796 $as_echo ' .text
25797 addl r15 = @ltoffx(x#), gp
25798 ;;
25799 ld8.mov r16 = [r15], x#' > conftest.s
25800 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25801 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25802 (eval $ac_try) 2>&5
25803 ac_status=$?
25804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25805 test $ac_status = 0; }; }
25806 then
25807 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
25808 else
25809 echo "configure: failed program was" >&5
25810 cat conftest.s >&5
25811 fi
25812 rm -f conftest.o conftest.s
25813 fi
25814 fi
25815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
25816 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
25817 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
25818
25819 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
25820
25821 fi
25822
25823 ;;
25824
25825 powerpc*-*-*)
25826 case $target in
25827 *-*-aix*) conftest_s=' .machine "pwr5"
25828 .csect .text[PR]
25829 mfcr 3,128';;
25830 *-*-darwin*)
25831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
25832 $as_echo_n "checking assembler for .machine directive support... " >&6; }
25833 if test "${gcc_cv_as_machine_directive+set}" = set; then :
25834 $as_echo_n "(cached) " >&6
25835 else
25836 gcc_cv_as_machine_directive=no
25837 if test x$gcc_cv_as != x; then
25838 $as_echo ' .machine ppc7400' > conftest.s
25839 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25840 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25841 (eval $ac_try) 2>&5
25842 ac_status=$?
25843 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25844 test $ac_status = 0; }; }
25845 then
25846 gcc_cv_as_machine_directive=yes
25847 else
25848 echo "configure: failed program was" >&5
25849 cat conftest.s >&5
25850 fi
25851 rm -f conftest.o conftest.s
25852 fi
25853 fi
25854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
25855 $as_echo "$gcc_cv_as_machine_directive" >&6; }
25856
25857 if test x$gcc_cv_as_machine_directive != xyes; then
25858 echo "*** This target requires an assembler supporting \".machine\"" >&2
25859 echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
25860 test x$build = x$target && exit 1
25861 fi
25862 conftest_s=' .text
25863 mfcr r3,128';;
25864 *) conftest_s=' .machine power4
25865 .text
25866 mfcr 3,128';;
25867 esac
25868
25869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
25870 $as_echo_n "checking assembler for mfcr field support... " >&6; }
25871 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
25872 $as_echo_n "(cached) " >&6
25873 else
25874 gcc_cv_as_powerpc_mfcrf=no
25875 if test $in_tree_gas = yes; then
25876 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25877 then gcc_cv_as_powerpc_mfcrf=yes
25878 fi
25879 elif test x$gcc_cv_as != x; then
25880 $as_echo "$conftest_s" > conftest.s
25881 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25882 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25883 (eval $ac_try) 2>&5
25884 ac_status=$?
25885 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25886 test $ac_status = 0; }; }
25887 then
25888 gcc_cv_as_powerpc_mfcrf=yes
25889 else
25890 echo "configure: failed program was" >&5
25891 cat conftest.s >&5
25892 fi
25893 rm -f conftest.o conftest.s
25894 fi
25895 fi
25896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
25897 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
25898 if test $gcc_cv_as_powerpc_mfcrf = yes; then
25899
25900 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
25901
25902 fi
25903
25904 case $target in
25905 *-*-aix*) conftest_s=' .machine "pwr5"
25906 .csect .text[PR]
25907 popcntb 3,3';;
25908 *) conftest_s=' .machine power5
25909 .text
25910 popcntb 3,3';;
25911 esac
25912
25913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
25914 $as_echo_n "checking assembler for popcntb support... " >&6; }
25915 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
25916 $as_echo_n "(cached) " >&6
25917 else
25918 gcc_cv_as_powerpc_popcntb=no
25919 if test $in_tree_gas = yes; then
25920 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25921 then gcc_cv_as_powerpc_popcntb=yes
25922 fi
25923 elif test x$gcc_cv_as != x; then
25924 $as_echo "$conftest_s" > conftest.s
25925 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25926 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25927 (eval $ac_try) 2>&5
25928 ac_status=$?
25929 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25930 test $ac_status = 0; }; }
25931 then
25932 gcc_cv_as_powerpc_popcntb=yes
25933 else
25934 echo "configure: failed program was" >&5
25935 cat conftest.s >&5
25936 fi
25937 rm -f conftest.o conftest.s
25938 fi
25939 fi
25940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
25941 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
25942 if test $gcc_cv_as_powerpc_popcntb = yes; then
25943
25944 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
25945
25946 fi
25947
25948 case $target in
25949 *-*-aix*) conftest_s=' .machine "pwr5x"
25950 .csect .text[PR]
25951 frin 1,1';;
25952 *) conftest_s=' .machine power5
25953 .text
25954 frin 1,1';;
25955 esac
25956
25957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
25958 $as_echo_n "checking assembler for fp round support... " >&6; }
25959 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
25960 $as_echo_n "(cached) " >&6
25961 else
25962 gcc_cv_as_powerpc_fprnd=no
25963 if test $in_tree_gas = yes; then
25964 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25965 then gcc_cv_as_powerpc_fprnd=yes
25966 fi
25967 elif test x$gcc_cv_as != x; then
25968 $as_echo "$conftest_s" > conftest.s
25969 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25970 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25971 (eval $ac_try) 2>&5
25972 ac_status=$?
25973 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25974 test $ac_status = 0; }; }
25975 then
25976 gcc_cv_as_powerpc_fprnd=yes
25977 else
25978 echo "configure: failed program was" >&5
25979 cat conftest.s >&5
25980 fi
25981 rm -f conftest.o conftest.s
25982 fi
25983 fi
25984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
25985 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
25986 if test $gcc_cv_as_powerpc_fprnd = yes; then
25987
25988 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
25989
25990 fi
25991
25992 case $target in
25993 *-*-aix*) conftest_s=' .machine "pwr6"
25994 .csect .text[PR]
25995 mffgpr 1,3';;
25996 *) conftest_s=' .machine power6
25997 .text
25998 mffgpr 1,3';;
25999 esac
26000
26001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
26002 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
26003 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
26004 $as_echo_n "(cached) " >&6
26005 else
26006 gcc_cv_as_powerpc_mfpgpr=no
26007 if test $in_tree_gas = yes; then
26008 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26009 then gcc_cv_as_powerpc_mfpgpr=yes
26010 fi
26011 elif test x$gcc_cv_as != x; then
26012 $as_echo "$conftest_s" > conftest.s
26013 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26014 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26015 (eval $ac_try) 2>&5
26016 ac_status=$?
26017 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26018 test $ac_status = 0; }; }
26019 then
26020 gcc_cv_as_powerpc_mfpgpr=yes
26021 else
26022 echo "configure: failed program was" >&5
26023 cat conftest.s >&5
26024 fi
26025 rm -f conftest.o conftest.s
26026 fi
26027 fi
26028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
26029 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
26030 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
26031
26032 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
26033
26034 fi
26035
26036 case $target in
26037 *-*-aix*) conftest_s=' .csect .text[PR]
26038 LCF..0:
26039 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
26040 *-*-darwin*)
26041 conftest_s=' .text
26042 LCF0:
26043 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
26044 *) conftest_s=' .text
26045 .LCF0:
26046 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
26047 esac
26048
26049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
26050 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
26051 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
26052 $as_echo_n "(cached) " >&6
26053 else
26054 gcc_cv_as_powerpc_rel16=no
26055 if test $in_tree_gas = yes; then
26056 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
26057 then gcc_cv_as_powerpc_rel16=yes
26058 fi
26059 elif test x$gcc_cv_as != x; then
26060 $as_echo "$conftest_s" > conftest.s
26061 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26062 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26063 (eval $ac_try) 2>&5
26064 ac_status=$?
26065 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26066 test $ac_status = 0; }; }
26067 then
26068 gcc_cv_as_powerpc_rel16=yes
26069 else
26070 echo "configure: failed program was" >&5
26071 cat conftest.s >&5
26072 fi
26073 rm -f conftest.o conftest.s
26074 fi
26075 fi
26076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
26077 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
26078 if test $gcc_cv_as_powerpc_rel16 = yes; then
26079
26080 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
26081
26082 fi
26083
26084 case $target in
26085 *-*-aix*) conftest_s=' .machine "pwr6"
26086 .csect .text[PR]
26087 cmpb 3,4,5';;
26088 *) conftest_s=' .machine power6
26089 .text
26090 cmpb 3,4,5';;
26091 esac
26092
26093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
26094 $as_echo_n "checking assembler for compare bytes support... " >&6; }
26095 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
26096 $as_echo_n "(cached) " >&6
26097 else
26098 gcc_cv_as_powerpc_cmpb=no
26099 if test $in_tree_gas = yes; then
26100 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26101 then gcc_cv_as_powerpc_cmpb=yes
26102 fi
26103 elif test x$gcc_cv_as != x; then
26104 $as_echo "$conftest_s" > conftest.s
26105 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26106 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26107 (eval $ac_try) 2>&5
26108 ac_status=$?
26109 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26110 test $ac_status = 0; }; }
26111 then
26112 gcc_cv_as_powerpc_cmpb=yes
26113 else
26114 echo "configure: failed program was" >&5
26115 cat conftest.s >&5
26116 fi
26117 rm -f conftest.o conftest.s
26118 fi
26119 fi
26120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
26121 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
26122 if test $gcc_cv_as_powerpc_cmpb = yes; then
26123
26124 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
26125
26126 fi
26127
26128 case $target in
26129 *-*-aix*) conftest_s=' .machine "pwr6"
26130 .csect .text[PR]
26131 dadd 1,2,3';;
26132 *) conftest_s=' .machine power6
26133 .text
26134 dadd 1,2,3';;
26135 esac
26136
26137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
26138 $as_echo_n "checking assembler for decimal float support... " >&6; }
26139 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
26140 $as_echo_n "(cached) " >&6
26141 else
26142 gcc_cv_as_powerpc_dfp=no
26143 if test $in_tree_gas = yes; then
26144 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26145 then gcc_cv_as_powerpc_dfp=yes
26146 fi
26147 elif test x$gcc_cv_as != x; then
26148 $as_echo "$conftest_s" > conftest.s
26149 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26150 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26151 (eval $ac_try) 2>&5
26152 ac_status=$?
26153 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26154 test $ac_status = 0; }; }
26155 then
26156 gcc_cv_as_powerpc_dfp=yes
26157 else
26158 echo "configure: failed program was" >&5
26159 cat conftest.s >&5
26160 fi
26161 rm -f conftest.o conftest.s
26162 fi
26163 fi
26164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
26165 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
26166 if test $gcc_cv_as_powerpc_dfp = yes; then
26167
26168 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
26169
26170 fi
26171
26172 case $target in
26173 *-*-aix*) conftest_s=' .machine "pwr7"
26174 .csect .text[PR]
26175 lxvd2x 1,2,3';;
26176 *) conftest_s=' .machine power7
26177 .text
26178 lxvd2x 1,2,3';;
26179 esac
26180
26181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
26182 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
26183 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
26184 $as_echo_n "(cached) " >&6
26185 else
26186 gcc_cv_as_powerpc_vsx=no
26187 if test $in_tree_gas = yes; then
26188 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26189 then gcc_cv_as_powerpc_vsx=yes
26190 fi
26191 elif test x$gcc_cv_as != x; then
26192 $as_echo "$conftest_s" > conftest.s
26193 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26194 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26195 (eval $ac_try) 2>&5
26196 ac_status=$?
26197 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26198 test $ac_status = 0; }; }
26199 then
26200 gcc_cv_as_powerpc_vsx=yes
26201 else
26202 echo "configure: failed program was" >&5
26203 cat conftest.s >&5
26204 fi
26205 rm -f conftest.o conftest.s
26206 fi
26207 fi
26208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
26209 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
26210 if test $gcc_cv_as_powerpc_vsx = yes; then
26211
26212 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
26213
26214 fi
26215
26216 case $target in
26217 *-*-aix*) conftest_s=' .machine "pwr7"
26218 .csect .text[PR]
26219 popcntd 3,3';;
26220 *) conftest_s=' .machine power7
26221 .text
26222 popcntd 3,3';;
26223 esac
26224
26225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
26226 $as_echo_n "checking assembler for popcntd support... " >&6; }
26227 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
26228 $as_echo_n "(cached) " >&6
26229 else
26230 gcc_cv_as_powerpc_popcntd=no
26231 if test $in_tree_gas = yes; then
26232 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26233 then gcc_cv_as_powerpc_popcntd=yes
26234 fi
26235 elif test x$gcc_cv_as != x; then
26236 $as_echo "$conftest_s" > conftest.s
26237 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26238 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26239 (eval $ac_try) 2>&5
26240 ac_status=$?
26241 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26242 test $ac_status = 0; }; }
26243 then
26244 gcc_cv_as_powerpc_popcntd=yes
26245 else
26246 echo "configure: failed program was" >&5
26247 cat conftest.s >&5
26248 fi
26249 rm -f conftest.o conftest.s
26250 fi
26251 fi
26252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
26253 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
26254 if test $gcc_cv_as_powerpc_popcntd = yes; then
26255
26256 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
26257
26258 fi
26259
26260 case $target in
26261 *-*-aix*) conftest_s=' .machine "pwr8"
26262 .csect .text[PR]';;
26263 *) conftest_s=' .machine power8
26264 .text';;
26265 esac
26266
26267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for power8 support" >&5
26268 $as_echo_n "checking assembler for power8 support... " >&6; }
26269 if test "${gcc_cv_as_powerpc_power8+set}" = set; then :
26270 $as_echo_n "(cached) " >&6
26271 else
26272 gcc_cv_as_powerpc_power8=no
26273 if test $in_tree_gas = yes; then
26274 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26275 then gcc_cv_as_powerpc_power8=yes
26276 fi
26277 elif test x$gcc_cv_as != x; then
26278 $as_echo "$conftest_s" > conftest.s
26279 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26280 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26281 (eval $ac_try) 2>&5
26282 ac_status=$?
26283 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26284 test $ac_status = 0; }; }
26285 then
26286 gcc_cv_as_powerpc_power8=yes
26287 else
26288 echo "configure: failed program was" >&5
26289 cat conftest.s >&5
26290 fi
26291 rm -f conftest.o conftest.s
26292 fi
26293 fi
26294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_power8" >&5
26295 $as_echo "$gcc_cv_as_powerpc_power8" >&6; }
26296 if test $gcc_cv_as_powerpc_power8 = yes; then
26297
26298 $as_echo "#define HAVE_AS_POWER8 1" >>confdefs.h
26299
26300 fi
26301
26302 case $target in
26303 *-*-aix*) conftest_s=' .csect .text[PR]
26304 lwsync';;
26305 *) conftest_s=' .text
26306 lwsync';;
26307 esac
26308
26309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
26310 $as_echo_n "checking assembler for lwsync support... " >&6; }
26311 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
26312 $as_echo_n "(cached) " >&6
26313 else
26314 gcc_cv_as_powerpc_lwsync=no
26315 if test $in_tree_gas = yes; then
26316 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26317 then gcc_cv_as_powerpc_lwsync=yes
26318 fi
26319 elif test x$gcc_cv_as != x; then
26320 $as_echo "$conftest_s" > conftest.s
26321 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26322 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26323 (eval $ac_try) 2>&5
26324 ac_status=$?
26325 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26326 test $ac_status = 0; }; }
26327 then
26328 gcc_cv_as_powerpc_lwsync=yes
26329 else
26330 echo "configure: failed program was" >&5
26331 cat conftest.s >&5
26332 fi
26333 rm -f conftest.o conftest.s
26334 fi
26335 fi
26336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
26337 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
26338 if test $gcc_cv_as_powerpc_lwsync = yes; then
26339
26340 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
26341
26342 fi
26343
26344 case $target in
26345 *-*-aix*) conftest_s=' .machine "476"
26346 .csect .text[PR]
26347 dci 0';;
26348 *) conftest_s=' .machine "476"
26349 .text
26350 dci 0';;
26351 esac
26352
26353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
26354 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
26355 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
26356 $as_echo_n "(cached) " >&6
26357 else
26358 gcc_cv_as_powerpc_dci=no
26359 if test $in_tree_gas = yes; then
26360 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
26361 then gcc_cv_as_powerpc_dci=yes
26362 fi
26363 elif test x$gcc_cv_as != x; then
26364 $as_echo "$conftest_s" > conftest.s
26365 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26366 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26367 (eval $ac_try) 2>&5
26368 ac_status=$?
26369 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26370 test $ac_status = 0; }; }
26371 then
26372 gcc_cv_as_powerpc_dci=yes
26373 else
26374 echo "configure: failed program was" >&5
26375 cat conftest.s >&5
26376 fi
26377 rm -f conftest.o conftest.s
26378 fi
26379 fi
26380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
26381 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
26382 if test $gcc_cv_as_powerpc_dci = yes; then
26383
26384 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
26385
26386 fi
26387
26388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
26389 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
26390 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
26391 $as_echo_n "(cached) " >&6
26392 else
26393 gcc_cv_as_powerpc_gnu_attribute=no
26394 if test $in_tree_gas = yes; then
26395 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26396 then gcc_cv_as_powerpc_gnu_attribute=yes
26397 fi
26398 elif test x$gcc_cv_as != x; then
26399 $as_echo '.gnu_attribute 4,1' > conftest.s
26400 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26401 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26402 (eval $ac_try) 2>&5
26403 ac_status=$?
26404 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26405 test $ac_status = 0; }; }
26406 then
26407 gcc_cv_as_powerpc_gnu_attribute=yes
26408 else
26409 echo "configure: failed program was" >&5
26410 cat conftest.s >&5
26411 fi
26412 rm -f conftest.o conftest.s
26413 fi
26414 fi
26415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
26416 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
26417 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
26418
26419 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
26420
26421 fi
26422
26423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
26424 $as_echo_n "checking assembler for tls marker support... " >&6; }
26425 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
26426 $as_echo_n "(cached) " >&6
26427 else
26428 gcc_cv_as_powerpc_tls_markers=no
26429 if test $in_tree_gas = yes; then
26430 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
26431 then gcc_cv_as_powerpc_tls_markers=yes
26432 fi
26433 elif test x$gcc_cv_as != x; then
26434 $as_echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
26435 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26436 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26437 (eval $ac_try) 2>&5
26438 ac_status=$?
26439 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26440 test $ac_status = 0; }; }
26441 then
26442 gcc_cv_as_powerpc_tls_markers=yes
26443 else
26444 echo "configure: failed program was" >&5
26445 cat conftest.s >&5
26446 fi
26447 rm -f conftest.o conftest.s
26448 fi
26449 fi
26450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
26451 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
26452 if test $gcc_cv_as_powerpc_tls_markers = yes; then
26453
26454 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
26455
26456 fi
26457
26458 case $target in
26459 *-*-aix*)
26460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .ref support" >&5
26461 $as_echo_n "checking assembler for .ref support... " >&6; }
26462 if test "${gcc_cv_as_aix_ref+set}" = set; then :
26463 $as_echo_n "(cached) " >&6
26464 else
26465 gcc_cv_as_aix_ref=no
26466 if test $in_tree_gas = yes; then
26467 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
26468 then gcc_cv_as_aix_ref=yes
26469 fi
26470 elif test x$gcc_cv_as != x; then
26471 $as_echo ' .csect stuff[rw]
26472 stuff:
26473 .long 1
26474 .extern sym
26475 .ref sym
26476 ' > conftest.s
26477 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26478 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26479 (eval $ac_try) 2>&5
26480 ac_status=$?
26481 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26482 test $ac_status = 0; }; }
26483 then
26484 gcc_cv_as_aix_ref=yes
26485 else
26486 echo "configure: failed program was" >&5
26487 cat conftest.s >&5
26488 fi
26489 rm -f conftest.o conftest.s
26490 fi
26491 fi
26492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
26493 $as_echo "$gcc_cv_as_aix_ref" >&6; }
26494 if test $gcc_cv_as_aix_ref = yes; then
26495
26496 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
26497
26498 fi
26499 ;;
26500 esac
26501
26502 case $target in
26503 *-*-aix*)
26504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf location lists section support" >&5
26505 $as_echo_n "checking assembler for dwarf location lists section support... " >&6; }
26506 if test "${gcc_cv_as_aix_dwloc+set}" = set; then :
26507 $as_echo_n "(cached) " >&6
26508 else
26509 gcc_cv_as_aix_dwloc=no
26510 if test $in_tree_gas = yes; then
26511 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
26512 then gcc_cv_as_aix_dwloc=yes
26513 fi
26514 elif test x$gcc_cv_as != x; then
26515 $as_echo ' .dwsect 0xB0000
26516 ' > conftest.s
26517 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26518 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26519 (eval $ac_try) 2>&5
26520 ac_status=$?
26521 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26522 test $ac_status = 0; }; }
26523 then
26524 gcc_cv_as_aix_dwloc=yes
26525 else
26526 echo "configure: failed program was" >&5
26527 cat conftest.s >&5
26528 fi
26529 rm -f conftest.o conftest.s
26530 fi
26531 fi
26532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_dwloc" >&5
26533 $as_echo "$gcc_cv_as_aix_dwloc" >&6; }
26534 if test $gcc_cv_as_aix_dwloc = yes; then
26535
26536 $as_echo "#define HAVE_XCOFF_DWARF_EXTRAS 1" >>confdefs.h
26537
26538 fi
26539 ;;
26540 esac
26541 ;;
26542
26543 mips*-*-*)
26544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
26545 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
26546 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
26547 $as_echo_n "(cached) " >&6
26548 else
26549 gcc_cv_as_mips_explicit_relocs=no
26550 if test $in_tree_gas = yes; then
26551 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
26552 then gcc_cv_as_mips_explicit_relocs=yes
26553 fi
26554 elif test x$gcc_cv_as != x; then
26555 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
26556 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26557 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26558 (eval $ac_try) 2>&5
26559 ac_status=$?
26560 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26561 test $ac_status = 0; }; }
26562 then
26563 gcc_cv_as_mips_explicit_relocs=yes
26564 else
26565 echo "configure: failed program was" >&5
26566 cat conftest.s >&5
26567 fi
26568 rm -f conftest.o conftest.s
26569 fi
26570 fi
26571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
26572 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
26573 if test $gcc_cv_as_mips_explicit_relocs = yes; then
26574 if test x$target_cpu_default = x
26575 then target_cpu_default=MASK_EXPLICIT_RELOCS
26576 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
26577 fi
26578 fi
26579
26580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
26581 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
26582 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
26583 $as_echo_n "(cached) " >&6
26584 else
26585 gcc_cv_as_mips_no_shared=no
26586 if test $in_tree_gas = yes; then
26587 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
26588 then gcc_cv_as_mips_no_shared=yes
26589 fi
26590 elif test x$gcc_cv_as != x; then
26591 $as_echo 'nop' > conftest.s
26592 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
26593 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26594 (eval $ac_try) 2>&5
26595 ac_status=$?
26596 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26597 test $ac_status = 0; }; }
26598 then
26599 gcc_cv_as_mips_no_shared=yes
26600 else
26601 echo "configure: failed program was" >&5
26602 cat conftest.s >&5
26603 fi
26604 rm -f conftest.o conftest.s
26605 fi
26606 fi
26607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
26608 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
26609 if test $gcc_cv_as_mips_no_shared = yes; then
26610
26611 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
26612
26613 fi
26614
26615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
26616 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
26617 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
26618 $as_echo_n "(cached) " >&6
26619 else
26620 gcc_cv_as_mips_gnu_attribute=no
26621 if test $in_tree_gas = yes; then
26622 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26623 then gcc_cv_as_mips_gnu_attribute=yes
26624 fi
26625 elif test x$gcc_cv_as != x; then
26626 $as_echo '.gnu_attribute 4,1' > conftest.s
26627 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26628 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26629 (eval $ac_try) 2>&5
26630 ac_status=$?
26631 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26632 test $ac_status = 0; }; }
26633 then
26634 gcc_cv_as_mips_gnu_attribute=yes
26635 else
26636 echo "configure: failed program was" >&5
26637 cat conftest.s >&5
26638 fi
26639 rm -f conftest.o conftest.s
26640 fi
26641 fi
26642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
26643 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
26644 if test $gcc_cv_as_mips_gnu_attribute = yes; then
26645
26646 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
26647
26648 fi
26649
26650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .module support" >&5
26651 $as_echo_n "checking assembler for .module support... " >&6; }
26652 if test "${gcc_cv_as_mips_dot_module+set}" = set; then :
26653 $as_echo_n "(cached) " >&6
26654 else
26655 gcc_cv_as_mips_dot_module=no
26656 if test x$gcc_cv_as != x; then
26657 $as_echo '.module mips2
26658 .module fp=xx' > conftest.s
26659 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -32 -o conftest.o conftest.s >&5'
26660 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26661 (eval $ac_try) 2>&5
26662 ac_status=$?
26663 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26664 test $ac_status = 0; }; }
26665 then
26666 gcc_cv_as_mips_dot_module=yes
26667 else
26668 echo "configure: failed program was" >&5
26669 cat conftest.s >&5
26670 fi
26671 rm -f conftest.o conftest.s
26672 fi
26673 fi
26674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dot_module" >&5
26675 $as_echo "$gcc_cv_as_mips_dot_module" >&6; }
26676 if test $gcc_cv_as_mips_dot_module = yes; then
26677
26678 $as_echo "#define HAVE_AS_DOT_MODULE 1" >>confdefs.h
26679
26680 fi
26681 if test x$gcc_cv_as_mips_dot_module = xno \
26682 && test x$with_fp_32 != x; then
26683 as_fn_error "Requesting --with-fp-32= requires assembler support for .module." "$LINENO" 5
26684 fi
26685
26686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .micromips support" >&5
26687 $as_echo_n "checking assembler for .micromips support... " >&6; }
26688 if test "${gcc_cv_as_micromips_support+set}" = set; then :
26689 $as_echo_n "(cached) " >&6
26690 else
26691 gcc_cv_as_micromips_support=no
26692 if test x$gcc_cv_as != x; then
26693 $as_echo '.set micromips' > conftest.s
26694 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
26695 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26696 (eval $ac_try) 2>&5
26697 ac_status=$?
26698 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26699 test $ac_status = 0; }; }
26700 then
26701 gcc_cv_as_micromips_support=yes
26702 else
26703 echo "configure: failed program was" >&5
26704 cat conftest.s >&5
26705 fi
26706 rm -f conftest.o conftest.s
26707 fi
26708 fi
26709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_micromips_support" >&5
26710 $as_echo "$gcc_cv_as_micromips_support" >&6; }
26711 if test $gcc_cv_as_micromips_support = yes; then
26712
26713 $as_echo "#define HAVE_GAS_MICROMIPS 1" >>confdefs.h
26714
26715 fi
26716
26717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
26718 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
26719 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
26720 $as_echo_n "(cached) " >&6
26721 else
26722 gcc_cv_as_mips_dtprelword=no
26723 if test $in_tree_gas = yes; then
26724 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26725 then gcc_cv_as_mips_dtprelword=yes
26726 fi
26727 elif test x$gcc_cv_as != x; then
26728 $as_echo '.section .tdata,"awT",@progbits
26729 x:
26730 .word 2
26731 .text
26732 .dtprelword x+0x8000' > conftest.s
26733 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26734 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26735 (eval $ac_try) 2>&5
26736 ac_status=$?
26737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26738 test $ac_status = 0; }; }
26739 then
26740 gcc_cv_as_mips_dtprelword=yes
26741 else
26742 echo "configure: failed program was" >&5
26743 cat conftest.s >&5
26744 fi
26745 rm -f conftest.o conftest.s
26746 fi
26747 fi
26748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
26749 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
26750 if test $gcc_cv_as_mips_dtprelword = yes; then
26751
26752 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
26753
26754 fi
26755
26756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
26757 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
26758 if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
26759 $as_echo_n "(cached) " >&6
26760 else
26761 gcc_cv_as_mips_dspr1_mult=no
26762 if test x$gcc_cv_as != x; then
26763 $as_echo ' .set mips32r2
26764 .set nodspr2
26765 .set dsp
26766 madd $ac3,$4,$5
26767 maddu $ac3,$4,$5
26768 msub $ac3,$4,$5
26769 msubu $ac3,$4,$5
26770 mult $ac3,$4,$5
26771 multu $ac3,$4,$5' > conftest.s
26772 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26773 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26774 (eval $ac_try) 2>&5
26775 ac_status=$?
26776 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26777 test $ac_status = 0; }; }
26778 then
26779 gcc_cv_as_mips_dspr1_mult=yes
26780 else
26781 echo "configure: failed program was" >&5
26782 cat conftest.s >&5
26783 fi
26784 rm -f conftest.o conftest.s
26785 fi
26786 fi
26787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
26788 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
26789 if test $gcc_cv_as_mips_dspr1_mult = yes; then
26790
26791 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
26792
26793 fi
26794
26795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
26796 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
26797 gcc_cv_as_ld_jalr_reloc=no
26798 if test $gcc_cv_as_mips_explicit_relocs = yes; then
26799 if test $in_tree_ld = yes ; then
26800 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 \
26801 && test $in_tree_ld_is_elf = yes; then
26802 gcc_cv_as_ld_jalr_reloc=yes
26803 fi
26804 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
26805 echo ' .ent x' > conftest.s
26806 echo 'x: lw $2,%got_disp(y)($3)' >> conftest.s
26807 echo ' lw $25,%call16(y)($28)' >> conftest.s
26808 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
26809 echo '1: jalr $25' >> conftest.s
26810 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
26811 echo '1: jalr $25' >> conftest.s
26812 echo ' .end x' >> conftest.s
26813 if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
26814 && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
26815 if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
26816 && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
26817 gcc_cv_as_ld_jalr_reloc=yes
26818 fi
26819 fi
26820 rm -f conftest.*
26821 fi
26822 fi
26823 if test $gcc_cv_as_ld_jalr_reloc = yes; then
26824 if test x$target_cpu_default = x; then
26825 target_cpu_default=MASK_RELAX_PIC_CALLS
26826 else
26827 target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
26828 fi
26829 fi
26830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
26831 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
26832
26833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
26834 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
26835 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
26836 $as_echo_n "(cached) " >&6
26837 else
26838 gcc_cv_ld_mips_personality_relaxation=no
26839 if test $in_tree_ld = yes ; then
26840 if test "$gcc_cv_gld_major_version" -eq 2 \
26841 -a "$gcc_cv_gld_minor_version" -ge 21 \
26842 -o "$gcc_cv_gld_major_version" -gt 2; then
26843 gcc_cv_ld_mips_personality_relaxation=yes
26844 fi
26845 elif test x$gcc_cv_as != x \
26846 -a x$gcc_cv_ld != x \
26847 -a x$gcc_cv_readelf != x ; then
26848 cat > conftest.s <<EOF
26849 .cfi_startproc
26850 .cfi_personality 0x80,indirect_ptr
26851 .ent test
26852 test:
26853 nop
26854 .end test
26855 .cfi_endproc
26856
26857 .section .data,"aw",@progbits
26858 indirect_ptr:
26859 .dc.a personality
26860 EOF
26861 if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
26862 && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
26863 if $gcc_cv_readelf -d conftest 2>&1 \
26864 | grep TEXTREL > /dev/null 2>&1; then
26865 :
26866 elif $gcc_cv_readelf --relocs conftest 2>&1 \
26867 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
26868 :
26869 else
26870 gcc_cv_ld_mips_personality_relaxation=yes
26871 fi
26872 fi
26873 fi
26874 rm -f conftest.s conftest.o conftest
26875 fi
26876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
26877 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
26878 if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
26879
26880 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
26881
26882 fi
26883
26884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mnan= support" >&5
26885 $as_echo_n "checking assembler for -mnan= support... " >&6; }
26886 if test "${gcc_cv_as_mips_nan+set}" = set; then :
26887 $as_echo_n "(cached) " >&6
26888 else
26889 gcc_cv_as_mips_nan=no
26890 if test x$gcc_cv_as != x; then
26891 $as_echo '' > conftest.s
26892 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mnan=2008 -o conftest.o conftest.s >&5'
26893 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26894 (eval $ac_try) 2>&5
26895 ac_status=$?
26896 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26897 test $ac_status = 0; }; }
26898 then
26899 gcc_cv_as_mips_nan=yes
26900 else
26901 echo "configure: failed program was" >&5
26902 cat conftest.s >&5
26903 fi
26904 rm -f conftest.o conftest.s
26905 fi
26906 fi
26907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_nan" >&5
26908 $as_echo "$gcc_cv_as_mips_nan" >&6; }
26909 if test $gcc_cv_as_mips_nan = yes; then
26910
26911 $as_echo "#define HAVE_AS_NAN 1" >>confdefs.h
26912
26913 fi
26914 if test x$gcc_cv_as_mips_nan = xno \
26915 && test x$with_nan != x; then
26916 as_fn_error "Requesting --with-nan= requires assembler support for -mnan=" "$LINENO" 5
26917 fi
26918 ;;
26919 s390*-*-*)
26920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
26921 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
26922 if test "${gcc_cv_as_s390_gnu_attribute+set}" = set; then :
26923 $as_echo_n "(cached) " >&6
26924 else
26925 gcc_cv_as_s390_gnu_attribute=no
26926 if test $in_tree_gas = yes; then
26927 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26928 then gcc_cv_as_s390_gnu_attribute=yes
26929 fi
26930 elif test x$gcc_cv_as != x; then
26931 $as_echo '.gnu_attribute 8,1' > conftest.s
26932 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26933 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26934 (eval $ac_try) 2>&5
26935 ac_status=$?
26936 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26937 test $ac_status = 0; }; }
26938 then
26939 gcc_cv_as_s390_gnu_attribute=yes
26940 else
26941 echo "configure: failed program was" >&5
26942 cat conftest.s >&5
26943 fi
26944 rm -f conftest.o conftest.s
26945 fi
26946 fi
26947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_gnu_attribute" >&5
26948 $as_echo "$gcc_cv_as_s390_gnu_attribute" >&6; }
26949 if test $gcc_cv_as_s390_gnu_attribute = yes; then
26950
26951 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
26952
26953 fi
26954 ;;
26955 esac
26956
26957 # Mips and HP-UX need the GNU assembler.
26958 # Linux on IA64 might be able to use the Intel assembler.
26959
26960 case "$target" in
26961 mips*-*-* | *-*-hpux* )
26962 if test x$gas_flag = xyes \
26963 || test x"$host" != x"$build" \
26964 || test ! -x "$gcc_cv_as" \
26965 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
26966 :
26967 else
26968 echo "*** This configuration requires the GNU assembler" >&2
26969 exit 1
26970 fi
26971 ;;
26972 esac
26973
26974 # ??? Not all targets support dwarf2 debug_line, even within a version
26975 # of gas. Moreover, we need to emit a valid instruction to trigger any
26976 # info to the output file. So, as supported targets are added to gas 2.11,
26977 # add some instruction here to (also) show we expect this might work.
26978 # ??? Once 2.11 is released, probably need to add first known working
26979 # version to the per-target configury.
26980 case "$cpu_type" in
26981 aarch64 | alpha | arm | avr | bfin | cris | i386 | m32c | m68k | microblaze \
26982 | mips | nios2 | pa | rs6000 | score | sparc | spu | tilegx | tilepro \
26983 | visium | xstormy16 | xtensa)
26984 insn="nop"
26985 ;;
26986 ia64 | s390)
26987 insn="nop 0"
26988 ;;
26989 mmix)
26990 insn="swym 0"
26991 ;;
26992 esac
26993 if test x"$insn" != x; then
26994 conftest_s="\
26995 .file 1 \"conftest.s\"
26996 .loc 1 3 0
26997 $insn"
26998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
26999 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
27000 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
27001 $as_echo_n "(cached) " >&6
27002 else
27003 gcc_cv_as_dwarf2_debug_line=no
27004 if test $in_tree_gas = yes; then
27005 if test $in_tree_gas_is_elf = yes \
27006 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
27007 then gcc_cv_as_dwarf2_debug_line=yes
27008 fi
27009 elif test x$gcc_cv_as != x; then
27010 $as_echo "$conftest_s" > conftest.s
27011 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27012 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27013 (eval $ac_try) 2>&5
27014 ac_status=$?
27015 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27016 test $ac_status = 0; }; }
27017 then
27018 if test x$gcc_cv_objdump != x \
27019 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
27020 | grep debug_line > /dev/null 2>&1; then
27021 gcc_cv_as_dwarf2_debug_line=yes
27022 fi
27023 else
27024 echo "configure: failed program was" >&5
27025 cat conftest.s >&5
27026 fi
27027 rm -f conftest.o conftest.s
27028 fi
27029 fi
27030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
27031 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
27032
27033
27034 # The .debug_line file table must be in the exact order that
27035 # we specified the files, since these indices are also used
27036 # by DW_AT_decl_file. Approximate this test by testing if
27037 # the assembler bitches if the same index is assigned twice.
27038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
27039 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
27040 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
27041 $as_echo_n "(cached) " >&6
27042 else
27043 gcc_cv_as_dwarf2_file_buggy=no
27044 if test x$gcc_cv_as != x; then
27045 $as_echo ' .file 1 "foo.s"
27046 .file 1 "bar.s"' > conftest.s
27047 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27048 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27049 (eval $ac_try) 2>&5
27050 ac_status=$?
27051 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27052 test $ac_status = 0; }; }
27053 then
27054 gcc_cv_as_dwarf2_file_buggy=yes
27055 else
27056 echo "configure: failed program was" >&5
27057 cat conftest.s >&5
27058 fi
27059 rm -f conftest.o conftest.s
27060 fi
27061 fi
27062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
27063 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
27064
27065
27066 if test $gcc_cv_as_dwarf2_debug_line = yes \
27067 && test $gcc_cv_as_dwarf2_file_buggy = no; then
27068
27069 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
27070
27071 fi
27072
27073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
27074 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
27075 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
27076 $as_echo_n "(cached) " >&6
27077 else
27078 gcc_cv_as_gdwarf2_flag=no
27079 if test $in_tree_gas = yes; then
27080 if test $in_tree_gas_is_elf = yes \
27081 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
27082 then gcc_cv_as_gdwarf2_flag=yes
27083 fi
27084 elif test x$gcc_cv_as != x; then
27085 $as_echo "$insn" > conftest.s
27086 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
27087 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27088 (eval $ac_try) 2>&5
27089 ac_status=$?
27090 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27091 test $ac_status = 0; }; }
27092 then
27093 gcc_cv_as_gdwarf2_flag=yes
27094 else
27095 echo "configure: failed program was" >&5
27096 cat conftest.s >&5
27097 fi
27098 rm -f conftest.o conftest.s
27099 fi
27100 fi
27101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
27102 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
27103 if test $gcc_cv_as_gdwarf2_flag = yes; then
27104
27105 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
27106
27107 fi
27108
27109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
27110 $as_echo_n "checking assembler for --gstabs option... " >&6; }
27111 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
27112 $as_echo_n "(cached) " >&6
27113 else
27114 gcc_cv_as_gstabs_flag=no
27115 if test $in_tree_gas = yes; then
27116 if test $in_tree_gas_is_elf = yes \
27117 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
27118 then gcc_cv_as_gstabs_flag=yes
27119 fi
27120 elif test x$gcc_cv_as != x; then
27121 $as_echo "$insn" > conftest.s
27122 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
27123 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27124 (eval $ac_try) 2>&5
27125 ac_status=$?
27126 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27127 test $ac_status = 0; }; }
27128 then
27129 gcc_cv_as_gstabs_flag=yes
27130 else
27131 echo "configure: failed program was" >&5
27132 cat conftest.s >&5
27133 fi
27134 rm -f conftest.o conftest.s
27135 fi
27136 fi
27137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
27138 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
27139 if test $gcc_cv_as_gstabs_flag = yes; then
27140
27141 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
27142
27143 fi
27144
27145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
27146 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
27147 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
27148 $as_echo_n "(cached) " >&6
27149 else
27150 gcc_cv_as_debug_prefix_map_flag=no
27151 if test $in_tree_gas = yes; then
27152 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27153 then gcc_cv_as_debug_prefix_map_flag=yes
27154 fi
27155 elif test x$gcc_cv_as != x; then
27156 $as_echo "$insn" > conftest.s
27157 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
27158 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27159 (eval $ac_try) 2>&5
27160 ac_status=$?
27161 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27162 test $ac_status = 0; }; }
27163 then
27164 gcc_cv_as_debug_prefix_map_flag=yes
27165 else
27166 echo "configure: failed program was" >&5
27167 cat conftest.s >&5
27168 fi
27169 rm -f conftest.o conftest.s
27170 fi
27171 fi
27172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
27173 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
27174 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
27175
27176 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
27177
27178 fi
27179 fi
27180
27181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compressed debug sections" >&5
27182 $as_echo_n "checking assembler for compressed debug sections... " >&6; }
27183 if test "${gcc_cv_as_compress_debug+set}" = set; then :
27184 $as_echo_n "(cached) " >&6
27185 else
27186 gcc_cv_as_compress_debug=no
27187 if test x$gcc_cv_as != x; then
27188 $as_echo '' > conftest.s
27189 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --compress-debug-sections -o conftest.o conftest.s >&5'
27190 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27191 (eval $ac_try) 2>&5
27192 ac_status=$?
27193 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27194 test $ac_status = 0; }; }
27195 then
27196 # gas compiled without zlib cannot compress debug sections and warns
27197 # about it, but still exits successfully. So check for this, too.
27198 if $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null
27199 then
27200 gcc_cv_as_compress_debug=0
27201 elif $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s > /dev/null 2>&1
27202 then
27203 gcc_cv_as_compress_debug=1
27204 gcc_cv_as_compress_debug_option="--compress-debug-sections"
27205 gcc_cv_as_no_compress_debug_option="--nocompress-debug-sections"
27206 else
27207 gcc_cv_as_compress_debug=0
27208 # FIXME: Future gas versions will support ELF gABI style via
27209 # --compress-debug-sections[=type].
27210 fi
27211 else
27212 echo "configure: failed program was" >&5
27213 cat conftest.s >&5
27214 fi
27215 rm -f conftest.o conftest.s
27216 fi
27217 fi
27218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_compress_debug" >&5
27219 $as_echo "$gcc_cv_as_compress_debug" >&6; }
27220
27221
27222 cat >>confdefs.h <<_ACEOF
27223 #define HAVE_AS_COMPRESS_DEBUG $gcc_cv_as_compress_debug
27224 _ACEOF
27225
27226
27227 cat >>confdefs.h <<_ACEOF
27228 #define AS_COMPRESS_DEBUG_OPTION "$gcc_cv_as_compress_debug_option"
27229 _ACEOF
27230
27231
27232 cat >>confdefs.h <<_ACEOF
27233 #define AS_NO_COMPRESS_DEBUG_OPTION "$gcc_cv_as_no_compress_debug_option"
27234 _ACEOF
27235
27236
27237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
27238 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
27239 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
27240 $as_echo_n "(cached) " >&6
27241 else
27242 gcc_cv_as_lcomm_with_alignment=no
27243 if test x$gcc_cv_as != x; then
27244 $as_echo '.lcomm bar,4,16' > conftest.s
27245 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27246 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27247 (eval $ac_try) 2>&5
27248 ac_status=$?
27249 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27250 test $ac_status = 0; }; }
27251 then
27252 gcc_cv_as_lcomm_with_alignment=yes
27253 else
27254 echo "configure: failed program was" >&5
27255 cat conftest.s >&5
27256 fi
27257 rm -f conftest.o conftest.s
27258 fi
27259 fi
27260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
27261 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
27262 if test $gcc_cv_as_lcomm_with_alignment = yes; then
27263
27264 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
27265
27266 fi
27267
27268 if test x$with_sysroot = x && test x$host = x$target \
27269 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
27270 && test "$prefix" != "NONE"; then
27271
27272 cat >>confdefs.h <<_ACEOF
27273 #define PREFIX_INCLUDE_DIR "$prefix/include"
27274 _ACEOF
27275
27276 fi
27277
27278 # Determine the version of glibc, if any, used on the target.
27279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target glibc version" >&5
27280 $as_echo_n "checking for target glibc version... " >&6; }
27281
27282 # Check whether --with-glibc-version was given.
27283 if test "${with_glibc_version+set}" = set; then :
27284 withval=$with_glibc_version;
27285 if echo "$with_glibc_version" | grep '^[0-9][0-9]*\.[0-9][0-9]*$'; then
27286 glibc_version_major=`echo "$with_glibc_version" | sed -e 's/\..*//'`
27287 glibc_version_minor=`echo "$with_glibc_version" | sed -e 's/.*\.//'`
27288 else
27289 as_fn_error "option --with-glibc-version requires a version number M.N" "$LINENO" 5
27290 fi
27291 else
27292
27293 glibc_version_major=0
27294 glibc_version_minor=0
27295 if test -f $target_header_dir/features.h \
27296 && glibc_version_major_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+[0-9]' $target_header_dir/features.h` \
27297 && glibc_version_minor_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+[0-9]' $target_header_dir/features.h`; then
27298 glibc_version_major=`echo "$glibc_version_major_define" | sed -e 's/.*__GLIBC__[ ]*//'`
27299 glibc_version_minor=`echo "$glibc_version_minor_define" | sed -e 's/.*__GLIBC_MINOR__[ ]*//'`
27300 fi
27301 fi
27302
27303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc_version_major.$glibc_version_minor" >&5
27304 $as_echo "$glibc_version_major.$glibc_version_minor" >&6; }
27305
27306 cat >>confdefs.h <<_ACEOF
27307 #define TARGET_GLIBC_MAJOR $glibc_version_major
27308 _ACEOF
27309
27310
27311 cat >>confdefs.h <<_ACEOF
27312 #define TARGET_GLIBC_MINOR $glibc_version_minor
27313 _ACEOF
27314
27315
27316 # Check whether --enable-gnu-unique-object was given.
27317 if test "${enable_gnu_unique_object+set}" = set; then :
27318 enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
27319 yes | no) ;;
27320 *) as_fn_error "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
27321 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
27322 esac
27323 else
27324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
27325 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
27326 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
27327 $as_echo_n "(cached) " >&6
27328 else
27329 gcc_cv_as_gnu_unique_object=no
27330 if test $in_tree_gas = yes; then
27331 if test $in_tree_gas_is_elf = yes \
27332 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
27333 then gcc_cv_as_gnu_unique_object=yes
27334 fi
27335 elif test x$gcc_cv_as != x; then
27336 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
27337 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27338 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27339 (eval $ac_try) 2>&5
27340 ac_status=$?
27341 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27342 test $ac_status = 0; }; }
27343 then
27344 gcc_cv_as_gnu_unique_object=yes
27345 else
27346 echo "configure: failed program was" >&5
27347 cat conftest.s >&5
27348 fi
27349 rm -f conftest.o conftest.s
27350 fi
27351 fi
27352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
27353 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
27354 if test $gcc_cv_as_gnu_unique_object = yes; then
27355 # We need to unquote above to to use the definition from config.gcc.
27356 # Also check for ld.so support, i.e. glibc 2.11 or higher.
27357
27358 if test $glibc_version_major -gt 2 \
27359 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 11 ); then :
27360 enable_gnu_unique_object=yes
27361 fi
27362
27363 fi
27364 fi
27365
27366 if test x$enable_gnu_unique_object = xyes; then
27367
27368 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
27369
27370 fi
27371
27372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
27373 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
27374 if test "${gcc_cv_as_line_zero+set}" = set; then :
27375 $as_echo_n "(cached) " >&6
27376 else
27377 gcc_cv_as_line_zero=no
27378 if test $in_tree_gas = yes; then
27379 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
27380 then gcc_cv_as_line_zero=yes
27381 fi
27382 elif test "x$gcc_cv_as" != x; then
27383 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
27384 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
27385 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27386 (eval $ac_try) 2>&5
27387 ac_status=$?
27388 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27389 test $ac_status = 0; }; } &&
27390 test "x`cat conftest.out`" = x
27391 then
27392 gcc_cv_as_line_zero=yes
27393 else
27394 echo "configure: failed program was" >&5
27395 cat conftest.s >&5
27396 echo "configure: error output was" >&5
27397 cat conftest.out >&5
27398 fi
27399 rm -f conftest.o conftest.s conftest.out
27400 fi
27401 fi
27402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
27403 $as_echo "$gcc_cv_as_line_zero" >&6; }
27404 if test "x$gcc_cv_as_line_zero" = xyes; then
27405
27406 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
27407
27408 fi
27409
27410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
27411 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
27412 gcc_cv_ld_eh_frame_hdr=no
27413 if test $in_tree_ld = yes ; then
27414 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 \
27415 && test $in_tree_ld_is_elf = yes; then
27416 gcc_cv_ld_eh_frame_hdr=yes
27417 fi
27418 elif test x$gcc_cv_ld != x; then
27419 if echo "$ld_ver" | grep GNU > /dev/null; then
27420 # Check if linker supports --eh-frame-hdr option
27421 if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
27422 gcc_cv_ld_eh_frame_hdr=yes
27423 fi
27424 else
27425 case "$target" in
27426 *-*-solaris2*)
27427 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
27428 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2251; then
27429 gcc_cv_ld_eh_frame_hdr=yes
27430 fi
27431 ;;
27432 esac
27433 fi
27434 fi
27435
27436 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
27437
27438 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
27439
27440 fi
27441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
27442 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
27443
27444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker CIEv3 in .eh_frame support" >&5
27445 $as_echo_n "checking linker CIEv3 in .eh_frame support... " >&6; }
27446 gcc_cv_ld_eh_frame_ciev3=no
27447 if test $in_tree_ld = yes ; then
27448 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 \
27449 && test $in_tree_ld_is_elf = yes; then
27450 gcc_cv_ld_eh_frame_ciev3=yes
27451 fi
27452 elif test x$gcc_cv_ld != x; then
27453 if echo "$ld_ver" | grep GNU > /dev/null; then
27454 gcc_cv_ld_eh_frame_ciev3=yes
27455 if test 0"$ld_date" -lt 20040513; then
27456 if test -n "$ld_date"; then
27457 # If there was date string, but was earlier than 2004-05-13, fail
27458 gcc_cv_ld_eh_frame_ciev3=no
27459 elif test "$ld_vers_major" -lt 2; then
27460 gcc_cv_ld_eh_frame_ciev3=no
27461 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
27462 gcc_cv_ld_eh_frame_ciev3=no
27463 fi
27464 fi
27465 else
27466 case "$target" in
27467 *-*-solaris2*)
27468 # Sun ld added support for CIE v3 in .eh_frame in Solaris 11.1.
27469 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2324; then
27470 gcc_cv_ld_eh_frame_ciev3=yes
27471 fi
27472 ;;
27473 esac
27474 fi
27475 fi
27476
27477 cat >>confdefs.h <<_ACEOF
27478 #define HAVE_LD_EH_FRAME_CIEV3 `if test x"$gcc_cv_ld_eh_frame_ciev3" = xyes; then echo 1; else echo 0; fi`
27479 _ACEOF
27480
27481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_ciev3" >&5
27482 $as_echo "$gcc_cv_ld_eh_frame_ciev3" >&6; }
27483
27484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
27485 $as_echo_n "checking linker position independent executable support... " >&6; }
27486 gcc_cv_ld_pie=no
27487 if test $in_tree_ld = yes ; then
27488 case "$target" in
27489 # Full PIE support on Solaris was only introduced in gld 2.26.
27490 *-*-solaris2*) gcc_gld_pie_min_version=26 ;;
27491 *) gcc_gld_pie_min_version=15 ;;
27492 esac
27493 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 \
27494 && test $in_tree_ld_is_elf = yes; then
27495 gcc_cv_ld_pie=yes
27496 fi
27497 elif test x$gcc_cv_ld != x; then
27498 # Check if linker supports -pie option
27499 if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
27500 gcc_cv_ld_pie=yes
27501 case "$target" in
27502 *-*-solaris2*)
27503 if echo "$ld_ver" | grep GNU > /dev/null \
27504 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
27505 gcc_cv_ld_pie=no
27506 fi
27507 ;;
27508 esac
27509 else
27510 case "$target" in
27511 *-*-solaris2.1[1-9]*)
27512 # Solaris 11.x and Solaris 12 added PIE support.
27513 if $gcc_cv_ld -z help 2>&1 | grep -- type.*pie > /dev/null; then
27514 gcc_cv_ld_pie=yes
27515 fi
27516 ;;
27517 esac
27518 fi
27519 fi
27520 if test x"$gcc_cv_ld_pie" = xyes; then
27521
27522 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
27523
27524 fi
27525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
27526 $as_echo "$gcc_cv_ld_pie" >&6; }
27527
27528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PIE support with copy reloc" >&5
27529 $as_echo_n "checking linker PIE support with copy reloc... " >&6; }
27530 gcc_cv_ld_pie_copyreloc=no
27531 if test $gcc_cv_ld_pie = yes ; then
27532 if test $in_tree_ld = yes ; then
27533 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
27534 gcc_cv_ld_pie_copyreloc=yes
27535 fi
27536 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
27537 # Check if linker supports -pie option with copy reloc
27538 case "$target" in
27539 i?86-*-linux* | x86_64-*-linux*)
27540 cat > conftest1.s <<EOF
27541 .globl a_glob
27542 .data
27543 .type a_glob, @object
27544 .size a_glob, 4
27545 a_glob:
27546 .long 2
27547 EOF
27548 cat > conftest2.s <<EOF
27549 .text
27550 .globl main
27551 .type main, @function
27552 main:
27553 movl %eax, a_glob(%rip)
27554 .size main, .-main
27555 .globl ptr
27556 .section .data.rel,"aw",@progbits
27557 .type ptr, @object
27558 ptr:
27559 .quad a_glob
27560 EOF
27561 if $gcc_cv_as --64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
27562 && $gcc_cv_ld -shared -melf_x86_64 -o conftest1.so conftest1.o > /dev/null 2>&1 \
27563 && $gcc_cv_as --64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
27564 && $gcc_cv_ld -pie -melf_x86_64 -o conftest conftest2.o conftest1.so > /dev/null 2>&1; then
27565 gcc_cv_ld_pie_copyreloc=yes
27566 fi
27567 rm -f conftest conftest1.so conftest1.o conftest2.o conftest1.s conftest2.s
27568 ;;
27569 esac
27570 fi
27571 fi
27572
27573 cat >>confdefs.h <<_ACEOF
27574 #define HAVE_LD_PIE_COPYRELOC `if test x"$gcc_cv_ld_pie_copyreloc" = xyes; then echo 1; else echo 0; fi`
27575 _ACEOF
27576
27577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie_copyreloc" >&5
27578 $as_echo "$gcc_cv_ld_pie_copyreloc" >&6; }
27579
27580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
27581 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
27582 gcc_cv_ld_eh_gc_sections=no
27583 if test $in_tree_ld = yes ; then
27584 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 \
27585 && test $in_tree_ld_is_elf = yes; then
27586 gcc_cv_ld_eh_gc_sections=yes
27587 fi
27588 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
27589 cat > conftest.s <<EOF
27590 .section .text
27591 .globl _start
27592 .type _start, @function
27593 _start:
27594 .long foo
27595 .size _start, .-_start
27596 .section .text.foo,"ax",@progbits
27597 .type foo, @function
27598 foo:
27599 .long 0
27600 .size foo, .-foo
27601 .section .gcc_except_table.foo,"a",@progbits
27602 .L0:
27603 .long 0
27604 .section .eh_frame,"a",@progbits
27605 .long .L0
27606 EOF
27607 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
27608 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
27609 | grep "gc-sections option ignored" > /dev/null; then
27610 gcc_cv_ld_eh_gc_sections=no
27611 elif $gcc_cv_objdump -h conftest 2> /dev/null \
27612 | grep gcc_except_table > /dev/null; then
27613 gcc_cv_ld_eh_gc_sections=yes
27614 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
27615 if test x$gcc_cv_as_comdat_group != xyes; then
27616 gcc_cv_ld_eh_gc_sections=no
27617 cat > conftest.s <<EOF
27618 .section .text
27619 .globl _start
27620 .type _start, @function
27621 _start:
27622 .long foo
27623 .size _start, .-_start
27624 .section .gnu.linkonce.t.foo,"ax",@progbits
27625 .type foo, @function
27626 foo:
27627 .long 0
27628 .size foo, .-foo
27629 .section .gcc_except_table.foo,"a",@progbits
27630 .L0:
27631 .long 0
27632 .section .eh_frame,"a",@progbits
27633 .long .L0
27634 EOF
27635 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
27636 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
27637 | grep "gc-sections option ignored" > /dev/null; then
27638 gcc_cv_ld_eh_gc_sections=no
27639 elif $gcc_cv_objdump -h conftest 2> /dev/null \
27640 | grep gcc_except_table > /dev/null; then
27641 gcc_cv_ld_eh_gc_sections=yes
27642 fi
27643 fi
27644 fi
27645 fi
27646 fi
27647 rm -f conftest.s conftest.o conftest
27648 fi
27649 case "$target" in
27650 hppa*-*-linux*)
27651 # ??? This apparently exposes a binutils bug with PC-relative relocations.
27652 gcc_cv_ld_eh_gc_sections=no
27653 ;;
27654 esac
27655 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
27656
27657 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
27658
27659 fi
27660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
27661 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
27662
27663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
27664 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
27665 gcc_cv_ld_eh_gc_sections_bug=no
27666 if test $in_tree_ld = yes ; then
27667 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 \
27668 && test $in_tree_ld_is_elf = yes; then
27669 gcc_cv_ld_eh_gc_sections_bug=yes
27670 fi
27671 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
27672 gcc_cv_ld_eh_gc_sections_bug=yes
27673 cat > conftest.s <<EOF
27674 .section .text
27675 .globl _start
27676 .type _start, @function
27677 _start:
27678 .long foo
27679 .size _start, .-_start
27680 .section .text.startup.foo,"ax",@progbits
27681 .type foo, @function
27682 foo:
27683 .long 0
27684 .size foo, .-foo
27685 .section .gcc_except_table.foo,"a",@progbits
27686 .L0:
27687 .long 0
27688 .section .eh_frame,"a",@progbits
27689 .long .L0
27690 EOF
27691 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
27692 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
27693 | grep "gc-sections option ignored" > /dev/null; then
27694 :
27695 elif $gcc_cv_objdump -h conftest 2> /dev/null \
27696 | grep gcc_except_table > /dev/null; then
27697 gcc_cv_ld_eh_gc_sections_bug=no
27698 fi
27699 fi
27700 rm -f conftest.s conftest.o conftest
27701 fi
27702 if test x$gcc_cv_ld_eh_gc_sections_bug = xyes; then
27703
27704 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
27705
27706 fi
27707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
27708 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
27709
27710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for compressed debug sections" >&5
27711 $as_echo_n "checking linker for compressed debug sections... " >&6; }
27712 # gold/gld support compressed debug sections since binutils 2.19/2.21
27713 if test $in_tree_ld = yes ; then
27714 gcc_cv_ld_compress_debug=0
27715 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 \
27716 && test $in_tree_ld_is_elf = yes && test $ld_is_gold = yes; then
27717 gcc_cv_ld_compress_debug=2
27718 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
27719 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 \
27720 && test $in_tree_ld_is_elf = yes; then
27721 gcc_cv_ld_compress_debug=1
27722 fi
27723 elif echo "$ld_ver" | grep GNU > /dev/null; then
27724 gcc_cv_ld_compress_debug=1
27725 if test 0"$ld_date" -lt 20050308; then
27726 if test -n "$ld_date"; then
27727 # If there was date string, but was earlier than 2005-03-08, fail
27728 gcc_cv_ld_compress_debug=0
27729 elif test "$ld_vers_major" -lt 2; then
27730 gcc_cv_ld_compress_debug=0
27731 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 21; then
27732 gcc_cv_ld_compress_debug=0
27733 fi
27734 fi
27735 if test $ld_is_gold = yes; then
27736 gcc_cv_ld_compress_debug=2
27737 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
27738 fi
27739 else
27740 case "${target}" in
27741 *-*-solaris2*)
27742 # Introduced in Solaris 11.2.
27743 if $gcc_cv_ld --help 2>&1 | grep -- '-z compress-sections' > /dev/null; then
27744 gcc_cv_ld_compress_debug=3
27745 gcc_cv_ld_compress_debug_option="-z compress-sections"
27746 else
27747 gcc_cv_ld_compress_debug=0
27748 fi
27749 ;;
27750 *)
27751 # Assume linkers other than GNU ld don't support compessed debug
27752 # sections.
27753 gcc_cv_ld_compress_debug=0
27754 ;;
27755 esac
27756 fi
27757
27758 cat >>confdefs.h <<_ACEOF
27759 #define HAVE_LD_COMPRESS_DEBUG $gcc_cv_ld_compress_debug
27760 _ACEOF
27761
27762
27763 cat >>confdefs.h <<_ACEOF
27764 #define LD_COMPRESS_DEBUG_OPTION "$gcc_cv_ld_compress_debug_option"
27765 _ACEOF
27766
27767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_compress_debug" >&5
27768 $as_echo "$gcc_cv_ld_compress_debug" >&6; }
27769
27770 # --------
27771 # UNSORTED
27772 # --------
27773
27774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
27775 $as_echo_n "checking linker --as-needed support... " >&6; }
27776 if test "${gcc_cv_ld_as_needed+set}" = set; then :
27777 $as_echo_n "(cached) " >&6
27778 else
27779 gcc_cv_ld_as_needed=no
27780 gcc_cv_ld_as_needed_option='--as-needed'
27781 gcc_cv_ld_no_as_needed_option='--no-as-needed'
27782 if test $in_tree_ld = yes ; then
27783 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 \
27784 && test $in_tree_ld_is_elf = yes; then
27785 gcc_cv_ld_as_needed=yes
27786 fi
27787 elif test x$gcc_cv_ld != x; then
27788 # Check if linker supports --as-needed and --no-as-needed options
27789 if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
27790 gcc_cv_ld_as_needed=yes
27791 else
27792 case "$target" in
27793 # Solaris 2 ld always supports -z ignore/-z record.
27794 *-*-solaris2*)
27795 gcc_cv_ld_as_needed=yes
27796 gcc_cv_ld_as_needed_option="-z ignore"
27797 gcc_cv_ld_no_as_needed_option="-z record"
27798 ;;
27799 esac
27800 fi
27801 fi
27802 # --as-needed/-z ignore can only be used if libgcc_s.so.1 uses
27803 # dl_iterate_phdr, i.e. since Solaris 11.
27804 case "$target" in
27805 *-*-solaris2.1[1-9]*)
27806 case "$target" in
27807 i?86-*-* | x86_64-*-*)
27808 if echo "$ld_ver" | grep GNU > /dev/null; then
27809 # Doesn't work with gld on Solaris/x86 due to PR ld/12320.
27810 gcc_cv_ld_as_needed=no
27811 fi
27812 ;;
27813 esac
27814 ;;
27815 *-*-solaris2*)
27816 gcc_cv_ld_as_needed=no
27817 ;;
27818 esac
27819
27820 fi
27821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
27822 $as_echo "$gcc_cv_ld_as_needed" >&6; }
27823 if test x"$gcc_cv_ld_as_needed" = xyes; then
27824
27825 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
27826
27827
27828 cat >>confdefs.h <<_ACEOF
27829 #define LD_AS_NEEDED_OPTION "$gcc_cv_ld_as_needed_option"
27830 _ACEOF
27831
27832
27833 cat >>confdefs.h <<_ACEOF
27834 #define LD_NO_AS_NEEDED_OPTION "$gcc_cv_ld_no_as_needed_option"
27835 _ACEOF
27836
27837 fi
27838
27839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker mapfile support for clearing hardware capabilities" >&5
27840 $as_echo_n "checking linker mapfile support for clearing hardware capabilities... " >&6; }
27841 saved_LDFLAGS="$LDFLAGS"
27842 for clearcap_map in sol2-clearcapv2.map sol2-clearcap.map; do
27843 LDFLAGS="$saved_LDFLAGS -Wl,-M,${srcdir}/config/$clearcap_map"
27844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27845 /* end confdefs.h. */
27846 int main(void) {return 0;}
27847 _ACEOF
27848 if ac_fn_cxx_try_link "$LINENO"; then :
27849 gcc_cv_ld_clearcap=yes; break
27850 else
27851 gcc_cv_ld_clearcap=no
27852 fi
27853 rm -f core conftest.err conftest.$ac_objext \
27854 conftest$ac_exeext conftest.$ac_ext
27855 done
27856 LDFLAGS="$saved_LDFLAGS"
27857 if test "x$gcc_cv_ld_clearcap" = xyes; then
27858
27859 $as_echo "#define HAVE_LD_CLEARCAP 1" >>confdefs.h
27860
27861 ac_config_links="$ac_config_links clearcap.map:${srcdir}/config/$clearcap_map"
27862
27863 fi
27864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_clearcap" >&5
27865 $as_echo "$gcc_cv_ld_clearcap" >&6; }
27866
27867 case "$target:$tm_file" in
27868 powerpc64-*-freebsd* | powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
27869 case "$target" in
27870 *le-*-linux*)
27871 emul_name="-melf64lppc"
27872 ;;
27873 *-*-linux*)
27874 emul_name="-melf64ppc"
27875 ;;
27876 *-*-freebsd*)
27877 emul_name="-melf64ppc_fbsd"
27878 ;;
27879 esac
27880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
27881 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
27882 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
27883 $as_echo_n "(cached) " >&6
27884 else
27885 gcc_cv_ld_no_dot_syms=no
27886 if test x"$ld_is_gold" = xyes; then
27887 gcc_cv_ld_no_dot_syms=yes
27888 elif test $in_tree_ld = yes ; then
27889 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
27890 gcc_cv_ld_no_dot_syms=yes
27891 fi
27892 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
27893 cat > conftest1.s <<EOF
27894 .text
27895 bl .foo
27896 EOF
27897 cat > conftest2.s <<EOF
27898 .section ".opd","aw"
27899 .align 3
27900 .globl foo
27901 .type foo,@function
27902 foo:
27903 .quad .LEfoo,.TOC.@tocbase,0
27904 .text
27905 .LEfoo:
27906 blr
27907 .size foo,.-.LEfoo
27908 EOF
27909 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
27910 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
27911 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
27912 gcc_cv_ld_no_dot_syms=yes
27913 fi
27914 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
27915 fi
27916
27917 fi
27918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
27919 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
27920 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
27921
27922 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
27923
27924 fi
27925
27926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
27927 $as_echo_n "checking linker large toc support... " >&6; }
27928 if test "${gcc_cv_ld_large_toc+set}" = set; then :
27929 $as_echo_n "(cached) " >&6
27930 else
27931 gcc_cv_ld_large_toc=no
27932 if test x"$ld_is_gold" = xyes; then
27933 gcc_cv_ld_large_toc=yes
27934 elif test $in_tree_ld = yes ; then
27935 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
27936 gcc_cv_ld_large_toc=yes
27937 fi
27938 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
27939 cat > conftest.s <<EOF
27940 .section ".tbss","awT",@nobits
27941 .align 3
27942 ie0: .space 8
27943 .global _start
27944 .text
27945 _start:
27946 addis 9,13,ie0@got@tprel@ha
27947 ld 9,ie0@got@tprel@l(9)
27948 EOF
27949 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
27950 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
27951 gcc_cv_ld_large_toc=yes
27952 fi
27953 rm -f conftest conftest.o conftest.s
27954 fi
27955
27956 fi
27957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
27958 $as_echo "$gcc_cv_ld_large_toc" >&6; }
27959 if test x"$gcc_cv_ld_large_toc" = xyes; then
27960
27961 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
27962
27963 fi
27964
27965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker toc pointer alignment" >&5
27966 $as_echo_n "checking linker toc pointer alignment... " >&6; }
27967 if test "${gcc_cv_ld_toc_align+set}" = set; then :
27968 $as_echo_n "(cached) " >&6
27969 else
27970 if test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_nm != x; then
27971 cat > conftest.s <<EOF
27972 .global _start
27973 .text
27974 _start:
27975 addis 9,2,x@got@ha
27976 .section .data.rel.ro,"aw",@progbits
27977 .p2align 16
27978 .space 32768
27979 x: .quad .TOC.
27980 EOF
27981 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
27982 && $gcc_cv_ld $emul_name -o conftest conftest.o > /dev/null 2>&1; then
27983 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)) }'`
27984 fi
27985 rm -f conftest conftest.o conftest.s
27986 fi
27987
27988 fi
27989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_toc_align" >&5
27990 $as_echo "$gcc_cv_ld_toc_align" >&6; }
27991 if test -n "$gcc_cv_ld_toc_align" && test $gcc_cv_ld_toc_align -gt 8; then
27992
27993 cat >>confdefs.h <<_ACEOF
27994 #define POWERPC64_TOC_POINTER_ALIGNMENT $gcc_cv_ld_toc_align
27995 _ACEOF
27996
27997 fi
27998 ;;
27999 esac
28000
28001 case "$target" in
28002 *-*-aix*)
28003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
28004 $as_echo_n "checking linker large toc support... " >&6; }
28005 if test "${gcc_cv_ld_large_toc+set}" = set; then :
28006 $as_echo_n "(cached) " >&6
28007 else
28008 gcc_cv_ld_large_toc=no
28009 if test x$gcc_cv_as != x ; then
28010 cat > conftest.s <<EOF
28011 .toc
28012 LC..1:
28013 .tc a[TC],a[RW]
28014 .extern a[RW]
28015 .csect .text[PR]
28016 .largetoctest:
28017 addis 9,LC..1@u(2)
28018 ld 3,LC..1@l(9)
28019 EOF
28020 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1; then
28021 gcc_cv_ld_large_toc=yes
28022 fi
28023 rm -f conftest conftest.o conftest.s
28024 fi
28025
28026 fi
28027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
28028 $as_echo "$gcc_cv_ld_large_toc" >&6; }
28029 if test x"$gcc_cv_ld_large_toc" = xyes; then
28030
28031 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
28032
28033 fi
28034 ;;
28035 esac
28036
28037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
28038 $as_echo_n "checking linker --build-id support... " >&6; }
28039 if test "${gcc_cv_ld_buildid+set}" = set; then :
28040 $as_echo_n "(cached) " >&6
28041 else
28042 gcc_cv_ld_buildid=no
28043 if test $in_tree_ld = yes ; then
28044 if test "$gcc_cv_gld_major_version" -eq 2 -a \
28045 "$gcc_cv_gld_minor_version" -ge 18 -o \
28046 "$gcc_cv_gld_major_version" -gt 2 \
28047 && test $in_tree_ld_is_elf = yes; then
28048 gcc_cv_ld_buildid=yes
28049 fi
28050 elif test x$gcc_cv_ld != x; then
28051 if $gcc_cv_ld --help 2>/dev/null | grep build-id > /dev/null; then
28052 gcc_cv_ld_buildid=yes
28053 fi
28054 fi
28055 fi
28056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
28057 $as_echo "$gcc_cv_ld_buildid" >&6; }
28058 if test x"$gcc_cv_ld_buildid" = xyes; then
28059
28060 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
28061
28062 fi
28063
28064 # Check whether --enable-linker-build-id was given.
28065 if test "${enable_linker_build_id+set}" = set; then :
28066 enableval=$enable_linker_build_id;
28067 else
28068 enable_linker_build_id=no
28069 fi
28070
28071
28072 if test x"$enable_linker_build_id" = xyes; then
28073 if test x"$gcc_cv_ld_buildid" = xyes; then
28074
28075 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
28076
28077 else
28078 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
28079 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
28080 fi
28081 fi
28082
28083 # In binutils 2.21, GNU ld gained support for new emulations fully
28084 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
28085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
28086 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
28087 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
28088 $as_echo_n "(cached) " >&6
28089 else
28090 gcc_cv_ld_sol2_emulation=no
28091 if test $in_tree_ld = yes ; then
28092 if test "$gcc_cv_gld_major_version" -eq 2 -a \
28093 "$gcc_cv_gld_minor_version" -ge 21 -o \
28094 "$gcc_cv_gld_major_version" -gt 2 \
28095 && test $in_tree_ld_is_elf = yes; then
28096 gcc_cv_ld_sol2_emulation=yes
28097 fi
28098 elif test x$gcc_cv_ld != x; then
28099 if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
28100 grep _sol2 > /dev/null; then
28101 gcc_cv_ld_sol2_emulation=yes
28102 fi
28103 fi
28104 fi
28105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
28106 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
28107 if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
28108
28109 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
28110
28111 fi
28112
28113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
28114 $as_echo_n "checking linker --sysroot support... " >&6; }
28115 if test "${gcc_cv_ld_sysroot+set}" = set; then :
28116 $as_echo_n "(cached) " >&6
28117 else
28118 gcc_cv_ld_sysroot=no
28119 if test $in_tree_ld = yes ; then
28120 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
28121 gcc_cv_ld_sysroot=yes
28122 fi
28123 elif test x$gcc_cv_ld != x; then
28124 if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
28125 gcc_cv_ld_sysroot=yes
28126 fi
28127 fi
28128 fi
28129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
28130 $as_echo "$gcc_cv_ld_sysroot" >&6; }
28131 if test x"$gcc_cv_ld_sysroot" = xyes; then
28132
28133 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
28134
28135 fi
28136
28137 case $target in
28138 *-*-solaris2*)
28139 # Check for system-provided CRTs on Solaris 11.x and Solaris 12.
28140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking system-provided CRTs on Solaris" >&5
28141 $as_echo_n "checking system-provided CRTs on Solaris... " >&6; }
28142 if test "${gcc_cv_solaris_crts+set}" = set; then :
28143 $as_echo_n "(cached) " >&6
28144 else
28145 gcc_cv_solaris_crts=no
28146 if test x$host != x$target; then
28147 if test "x$with_sysroot" = xyes; then
28148 target_sysroot="${test_exec_prefix}/${target_noncanonical}/sys-root"
28149 else
28150 target_sysroot="${with_sysroot}"
28151 fi
28152 fi
28153 target_libdir="$target_sysroot/usr/lib"
28154 # At the time they were added, gcrt1.o became a symlink for backwards
28155 # compatibility on x86, while crt1.o was added on sparc, so check for that.
28156 case $target in
28157 i?86-*-solaris2* | x86_64-*-solaris2*)
28158 if test -h "$target_libdir/gcrt1.o"; then gcc_cv_solaris_crts=yes; fi
28159 ;;
28160 sparc*-*-solaris2*)
28161 if test -f "$target_libdir/crt1.o"; then gcc_cv_solaris_crts=yes; fi
28162 ;;
28163 esac
28164 fi
28165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_solaris_crts" >&5
28166 $as_echo "$gcc_cv_solaris_crts" >&6; }
28167 ;;
28168 esac
28169 if test x$gcc_cv_solaris_crts = xyes; then
28170
28171 $as_echo "#define HAVE_SOLARIS_CRTS 1" >>confdefs.h
28172
28173 fi
28174
28175 # Test for stack protector support in target C library.
28176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
28177 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
28178 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
28179 $as_echo_n "(cached) " >&6
28180 else
28181 gcc_cv_libc_provides_ssp=no
28182 case "$target" in
28183 *-*-musl*)
28184 # All versions of musl provide stack protector
28185 gcc_cv_libc_provides_ssp=yes;;
28186 *-*-linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu)
28187 # glibc 2.4 and later provides __stack_chk_fail and
28188 # either __stack_chk_guard, or TLS access to stack guard canary.
28189
28190 if test $glibc_version_major -gt 2 \
28191 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
28192 gcc_cv_libc_provides_ssp=yes
28193 else
28194
28195 if test -f $target_header_dir/features.h \
28196 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
28197 $target_header_dir/features.h > /dev/null; then
28198 if $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
28199 $target_header_dir/features.h > /dev/null && \
28200 test -f $target_header_dir/bits/uClibc_config.h && \
28201 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
28202 $target_header_dir/bits/uClibc_config.h > /dev/null; then
28203 gcc_cv_libc_provides_ssp=yes
28204 fi
28205 # all versions of Bionic support stack protector
28206 elif test -f $target_header_dir/sys/cdefs.h \
28207 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
28208 $target_header_dir/sys/cdefs.h > /dev/null; then
28209 gcc_cv_libc_provides_ssp=yes
28210 fi
28211 fi
28212 ;;
28213 *-*-gnu*)
28214 # Avoid complicated tests (see
28215 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
28216 # simply assert that glibc does provide this, which is true for all
28217 # realistically usable GNU/Hurd configurations.
28218 # All supported versions of musl provide it as well
28219 gcc_cv_libc_provides_ssp=yes;;
28220 *-*-darwin* | *-*-freebsd*)
28221 ac_fn_cxx_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
28222 if test "x$ac_cv_func___stack_chk_fail" = x""yes; then :
28223 gcc_cv_libc_provides_ssp=yes
28224 else
28225 echo "no __stack_chk_fail on this target"
28226 fi
28227
28228 ;;
28229 *) gcc_cv_libc_provides_ssp=no ;;
28230 esac
28231 fi
28232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
28233 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
28234
28235 if test x$gcc_cv_libc_provides_ssp = xyes; then
28236
28237 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
28238
28239 fi
28240
28241 # Check whether --enable-default-ssp was given.
28242 # Check whether --enable-default-ssp was given.
28243 if test "${enable_default_ssp+set}" = set; then :
28244 enableval=$enable_default_ssp;
28245 if test x$gcc_cv_libc_provides_ssp = xyes; then
28246 case "$target" in
28247 ia64*-*-*) enable_default_ssp=no ;;
28248 *) enable_default_ssp=$enableval ;;
28249 esac
28250 else
28251 enable_default_ssp=no
28252 fi
28253 else
28254 enable_default_ssp=no
28255 fi
28256
28257 if test x$enable_default_ssp == xyes ; then
28258
28259 $as_echo "#define ENABLE_DEFAULT_SSP 1" >>confdefs.h
28260
28261 fi
28262
28263
28264 # Test for <sys/sdt.h> on the target.
28265
28266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
28267 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
28268 have_sys_sdt_h=no
28269 if test -f $target_header_dir/sys/sdt.h; then
28270 have_sys_sdt_h=yes
28271
28272 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
28273
28274 fi
28275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
28276 $as_echo "$have_sys_sdt_h" >&6; }
28277
28278 # Check if TFmode long double should be used by default or not.
28279 # Some glibc targets used DFmode long double, but with glibc 2.4
28280 # and later they can use TFmode.
28281 case "$target" in
28282 powerpc*-*-linux* | \
28283 sparc*-*-linux* | \
28284 s390*-*-linux* | \
28285 alpha*-*-linux*)
28286
28287 # Check whether --with-long-double-128 was given.
28288 if test "${with_long_double_128+set}" = set; then :
28289 withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
28290 else
28291
28292 if test $glibc_version_major -gt 2 \
28293 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
28294 gcc_cv_target_ldbl128=yes
28295 else
28296
28297 gcc_cv_target_ldbl128=no
28298 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
28299 $target_header_dir/bits/wordsize.h > /dev/null 2>&1 \
28300 && gcc_cv_target_ldbl128=yes
28301
28302 fi
28303 fi
28304
28305 ;;
28306 esac
28307 if test x$gcc_cv_target_ldbl128 = xyes; then
28308
28309 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
28310
28311 fi
28312
28313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
28314 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
28315 gcc_cv_target_dl_iterate_phdr=unknown
28316 case "$target" in
28317 # Restrict to Solaris 11+. While most of the Solaris 11 linker changes
28318 # were backported to Solaris 10 Update 10, dl_iterate_phdr only lives in
28319 # libdl there, both complicating its use and breaking compatibility
28320 # between Solaris 10 updates.
28321 *-*-solaris2.1[1-9]*)
28322 # <link.h> needs both a dl_iterate_phdr declaration and support for
28323 # compilation with largefile support.
28324 if grep dl_iterate_phdr $target_header_dir/link.h > /dev/null 2>&1 \
28325 && grep 'large file capable' $target_header_dir/link.h > /dev/null 2>&1; then
28326 gcc_cv_target_dl_iterate_phdr=yes
28327 else
28328 gcc_cv_target_dl_iterate_phdr=no
28329 fi
28330 ;;
28331 *-*-dragonfly* | *-*-freebsd*)
28332 if grep dl_iterate_phdr $target_header_dir/sys/link_elf.h > /dev/null 2>&1; then
28333 gcc_cv_target_dl_iterate_phdr=yes
28334 else
28335 gcc_cv_target_dl_iterate_phdr=no
28336 fi
28337 ;;
28338 *-linux-musl*)
28339 gcc_cv_target_dl_iterate_phdr=yes
28340 ;;
28341 esac
28342
28343 if test x$gcc_cv_target_dl_iterate_phdr = xyes; then
28344
28345 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
28346
28347 fi
28348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
28349 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
28350
28351 # We no longer support different GC mechanisms. Emit an error if
28352 # the user configures with --with-gc.
28353
28354 # Check whether --with-gc was given.
28355 if test "${with_gc+set}" = set; then :
28356 withval=$with_gc; as_fn_error "Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
28357 fi
28358
28359
28360 # Libraries to use on the host. This will normally be set by the top
28361 # level Makefile. Here we simply capture the value for our Makefile.
28362 if test -z "${HOST_LIBS+set}"; then
28363 HOST_LIBS=
28364 fi
28365
28366
28367 # Use the system's zlib library.
28368
28369 # Use the system's zlib library.
28370 zlibdir="-L\$(top_builddir)/../zlib"
28371 zlibinc="-I\$(top_srcdir)/../zlib"
28372
28373 # Check whether --with-system-zlib was given.
28374 if test "${with_system_zlib+set}" = set; then :
28375 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
28376 zlibdir=
28377 zlibinc=
28378 fi
28379
28380 fi
28381
28382
28383
28384
28385
28386
28387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
28388 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
28389 # Check whether --enable-maintainer-mode was given.
28390 if test "${enable_maintainer_mode+set}" = set; then :
28391 enableval=$enable_maintainer_mode; maintainer_mode=$enableval
28392 else
28393 maintainer_mode=no
28394 fi
28395
28396
28397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
28398 $as_echo "$maintainer_mode" >&6; }
28399
28400 if test "$maintainer_mode" = "yes"; then
28401 MAINT=''
28402 else
28403 MAINT='#'
28404 fi
28405
28406
28407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid linking multiple front-ends at once" >&5
28408 $as_echo_n "checking whether to avoid linking multiple front-ends at once... " >&6; }
28409 # Check whether --enable-link-mutex was given.
28410 if test "${enable_link_mutex+set}" = set; then :
28411 enableval=$enable_link_mutex; do_link_mutex=$enableval
28412 else
28413 do_link_mutex=no
28414 fi
28415
28416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_mutex" >&5
28417 $as_echo "$do_link_mutex" >&6; }
28418
28419 if test "$do_link_mutex" = "yes"; then
28420 DO_LINK_MUTEX=true
28421 else
28422 DO_LINK_MUTEX=false
28423 fi
28424
28425
28426 # --------------
28427 # Language hooks
28428 # --------------
28429
28430 # Make empty files to contain the specs and options for each language.
28431 # Then add #include lines to for a compiler that has specs and/or options.
28432
28433 subdirs=
28434 lang_opt_files=
28435 lang_specs_files=
28436 lang_tree_files=
28437 # These (without "all_") are set in each config-lang.in.
28438 # `language' must be a single word so is spelled singularly.
28439 all_languages=
28440 all_compilers=
28441 all_outputs='Makefile'
28442 # List of language makefile fragments.
28443 all_lang_makefrags=
28444 # Additional files for gengtype
28445 all_gtfiles="$target_gtfiles"
28446
28447 # These are the languages that are set in --enable-languages,
28448 # and are available in the GCC tree.
28449 all_selected_languages=
28450
28451 # Add the language fragments.
28452 # Languages are added via two mechanisms. Some information must be
28453 # recorded in makefile variables, these are defined in config-lang.in.
28454 # We accumulate them and plug them into the main Makefile.
28455 # The other mechanism is a set of hooks for each of the main targets
28456 # like `clean', `install', etc.
28457
28458 language_hooks="Make-hooks"
28459
28460 for lang in ${srcdir}/*/config-lang.in
28461 do
28462 test "$lang" = "${srcdir}/*/config-lang.in" && continue
28463
28464 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
28465 if test "x$lang_alias" = x
28466 then
28467 echo "$lang doesn't set \$language." 1>&2
28468 exit 1
28469 fi
28470 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
28471 subdirs="$subdirs $subdir"
28472
28473 # $gcc_subdir is where the gcc integration files are to be found
28474 # for a language, both for internal compiler purposes (compiler
28475 # sources implementing front-end to GCC tree converters), and for
28476 # build infrastructure purposes (Make-lang.in, etc.)
28477 #
28478 # This will be <subdir> (relative to $srcdir) if a line like
28479 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
28480 # is found in <langdir>/config-lang.in, and will remain <langdir>
28481 # otherwise.
28482 #
28483 # Except for the language alias (fetched above), the regular
28484 # "config-lang.in" contents are always retrieved from $gcc_subdir,
28485 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
28486 # only this and the language alias.
28487
28488 gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
28489 if [ "$gcc_subdir" = "" ]; then
28490 gcc_subdir="$subdir"
28491 fi
28492
28493 case ",$enable_languages," in
28494 *,$lang_alias,*)
28495 all_selected_languages="$all_selected_languages $lang_alias"
28496 if test -f $srcdir/$gcc_subdir/lang-specs.h; then
28497 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
28498 fi
28499 ;;
28500 esac
28501
28502 language=
28503 boot_language=
28504 compilers=
28505 outputs=
28506 gtfiles=
28507 subdir_requires=
28508 . ${srcdir}/$gcc_subdir/config-lang.in
28509 if test "x$language" = x
28510 then
28511 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
28512 exit 1
28513 fi
28514
28515 ok=:
28516 case ",$enable_languages," in
28517 *,$lang_alias,*) ;;
28518 *)
28519 for i in $subdir_requires; do
28520 test -f "${srcdir}/$i/config-lang.in" && continue
28521 ok=false
28522 break
28523 done
28524 ;;
28525 esac
28526 $ok || continue
28527
28528 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
28529 if test -f $srcdir/$gcc_subdir/lang.opt; then
28530 lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
28531 all_opt_files="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
28532 fi
28533 if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
28534 lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
28535 fi
28536 all_languages="$all_languages $language"
28537 all_compilers="$all_compilers $compilers"
28538 all_outputs="$all_outputs $outputs"
28539 all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
28540 case ",$enable_languages," in
28541 *,lto,*)
28542
28543 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
28544
28545 enable_lto=yes
28546
28547 ;;
28548 *) ;;
28549 esac
28550 done
28551
28552 check_languages=
28553 for language in $all_selected_languages
28554 do
28555 check_languages="$check_languages check-$language"
28556 done
28557
28558 # We link each language in with a set of hooks, reached indirectly via
28559 # lang.${target}. Only do so for selected languages.
28560
28561 rm -f Make-hooks
28562 touch Make-hooks
28563 target_list="all.cross start.encap rest.encap tags \
28564 install-common install-man install-info install-pdf install-html dvi \
28565 pdf html uninstall info man srcextra srcman srcinfo \
28566 mostlyclean clean distclean maintainer-clean install-plugin"
28567
28568 for t in $target_list
28569 do
28570 x=
28571 for lang in $all_selected_languages
28572 do
28573 x="$x $lang.$t"
28574 done
28575 echo "lang.$t: $x" >> Make-hooks
28576 done
28577
28578 # --------
28579 # Option include files
28580 # --------
28581
28582 ${AWK} -f $srcdir/opt-include.awk $all_opt_files > option-includes.mk
28583 option_includes="option-includes.mk"
28584
28585
28586 # --------
28587 # UNSORTED
28588 # --------
28589
28590 # Create .gdbinit.
28591
28592 echo "dir ." > .gdbinit
28593 echo "dir ${srcdir}" >> .gdbinit
28594 if test x$gdb_needs_out_file_path = xyes
28595 then
28596 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
28597 fi
28598 if test "x$subdirs" != x; then
28599 for s in $subdirs
28600 do
28601 echo "dir ${srcdir}/$s" >> .gdbinit
28602 done
28603 fi
28604 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
28605 echo "python import sys; sys.path.append('${srcdir}'); import gdbhooks" >> .gdbinit
28606
28607 # Put a breakpoint on __asan_report_error to help with debugging buffer
28608 # overflow.
28609 case "$CFLAGS" in
28610 *-fsanitize=address*)
28611 echo "source ${srcdir}/gdbasan.in" >> .gdbinit
28612 ;;
28613 esac
28614
28615 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
28616
28617
28618
28619 # Find a directory in which to install a shared libgcc.
28620
28621 # Check whether --enable-version-specific-runtime-libs was given.
28622 if test "${enable_version_specific_runtime_libs+set}" = set; then :
28623 enableval=$enable_version_specific_runtime_libs;
28624 fi
28625
28626
28627 # Substitute configuration variables
28628
28629
28630
28631
28632
28633
28634
28635
28636
28637
28638
28639
28640
28641
28642
28643
28644
28645
28646
28647
28648
28649
28650
28651
28652
28653
28654
28655
28656
28657
28658
28659
28660
28661
28662
28663
28664
28665
28666
28667
28668
28669
28670
28671
28672
28673
28674
28675
28676
28677
28678
28679
28680
28681
28682
28683
28684
28685
28686
28687
28688
28689
28690 # Echo link setup.
28691 if test x${build} = x${host} ; then
28692 if test x${host} = x${target} ; then
28693 echo "Links are now set up to build a native compiler for ${target}." 1>&2
28694 else
28695 echo "Links are now set up to build a cross-compiler" 1>&2
28696 echo " from ${host} to ${target}." 1>&2
28697 fi
28698 else
28699 if test x${host} = x${target} ; then
28700 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
28701 echo " for ${target}." 1>&2
28702 else
28703 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
28704 echo " from ${host} to ${target}." 1>&2
28705 fi
28706 fi
28707
28708
28709
28710
28711
28712
28713 if test "x${ISLLIBS}" != "x" ; then
28714
28715 $as_echo "#define HAVE_isl 1" >>confdefs.h
28716
28717 fi
28718
28719 # Check whether isl_schedule_constraints_compute_schedule is available;
28720 # it's new in ISL-0.13.
28721 # Check whether isl_options_set_schedule_serialize_sccs is available;
28722 # it's new in ISL-0.15.
28723 if test "x${ISLLIBS}" != "x" ; then
28724 saved_CXXFLAGS="$CXXFLAGS"
28725 CXXFLAGS="$CXXFLAGS $ISLINC"
28726 saved_LIBS="$LIBS"
28727 LIBS="$LIBS $ISLLIBS $GMPLIBS"
28728
28729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Checking for isl_schedule_constraints_compute_schedule" >&5
28730 $as_echo_n "checking Checking for isl_schedule_constraints_compute_schedule... " >&6; }
28731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28732 /* end confdefs.h. */
28733 #include <isl/schedule.h>
28734 int
28735 main ()
28736 {
28737 isl_schedule_constraints_compute_schedule (NULL);
28738 ;
28739 return 0;
28740 }
28741 _ACEOF
28742 if ac_fn_cxx_try_link "$LINENO"; then :
28743 ac_has_isl_schedule_constraints_compute_schedule=yes
28744 else
28745 ac_has_isl_schedule_constraints_compute_schedule=no
28746 fi
28747 rm -f core conftest.err conftest.$ac_objext \
28748 conftest$ac_exeext conftest.$ac_ext
28749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_has_isl_schedule_constraints_compute_schedule" >&5
28750 $as_echo "$ac_has_isl_schedule_constraints_compute_schedule" >&6; }
28751
28752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Checking for isl_options_set_schedule_serialize_sccs" >&5
28753 $as_echo_n "checking Checking for isl_options_set_schedule_serialize_sccs... " >&6; }
28754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28755 /* end confdefs.h. */
28756 #include <isl/schedule.h>
28757 int
28758 main ()
28759 {
28760 isl_options_set_schedule_serialize_sccs (NULL, 0);
28761 ;
28762 return 0;
28763 }
28764 _ACEOF
28765 if ac_fn_cxx_try_link "$LINENO"; then :
28766 ac_has_isl_options_set_schedule_serialize_sccs=yes
28767 else
28768 ac_has_isl_options_set_schedule_serialize_sccs=no
28769 fi
28770 rm -f core conftest.err conftest.$ac_objext \
28771 conftest$ac_exeext conftest.$ac_ext
28772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_has_isl_options_set_schedule_serialize_sccs" >&5
28773 $as_echo "$ac_has_isl_options_set_schedule_serialize_sccs" >&6; }
28774
28775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Checking for isl_ctx_get_max_operations" >&5
28776 $as_echo_n "checking Checking for isl_ctx_get_max_operations... " >&6; }
28777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28778 /* end confdefs.h. */
28779 #include <isl/ctx.h>
28780 int
28781 main ()
28782 {
28783 isl_ctx_get_max_operations (isl_ctx_alloc ());
28784 ;
28785 return 0;
28786 }
28787 _ACEOF
28788 if ac_fn_cxx_try_link "$LINENO"; then :
28789 ac_has_isl_ctx_get_max_operations=yes
28790 else
28791 ac_has_isl_ctx_get_max_operations=no
28792 fi
28793 rm -f core conftest.err conftest.$ac_objext \
28794 conftest$ac_exeext conftest.$ac_ext
28795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_has_isl_ctx_get_max_operations" >&5
28796 $as_echo "$ac_has_isl_ctx_get_max_operations" >&6; }
28797
28798 LIBS="$saved_LIBS"
28799 CXXFLAGS="$saved_CXXFLAGS"
28800
28801 if test x"$ac_has_isl_schedule_constraints_compute_schedule" = x"yes"; then
28802
28803 $as_echo "#define HAVE_ISL_SCHED_CONSTRAINTS_COMPUTE_SCHEDULE 1" >>confdefs.h
28804
28805 fi
28806
28807 if test x"$ac_has_isl_options_set_schedule_serialize_sccs" = x"yes"; then
28808
28809 $as_echo "#define HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS 1" >>confdefs.h
28810
28811 fi
28812 if test x"$ac_has_isl_ctx_get_max_operations" = x"yes"; then
28813
28814 $as_echo "#define HAVE_ISL_CTX_MAX_OPERATIONS 1" >>confdefs.h
28815
28816 fi
28817 fi
28818
28819 # Check for plugin support
28820 # Check whether --enable-plugin was given.
28821 if test "${enable_plugin+set}" = set; then :
28822 enableval=$enable_plugin; enable_plugin=$enableval
28823 else
28824 enable_plugin=yes; default_plugin=yes
28825 fi
28826
28827
28828 pluginlibs=
28829
28830 case "${host}" in
28831 *-*-darwin*)
28832 if test x$build = x$host; then
28833 export_sym_check="nm${exeext} -g"
28834 elif test x$host = x$target; then
28835 export_sym_check="$gcc_cv_nm -g"
28836 else
28837 export_sym_check=
28838 fi
28839 ;;
28840 *)
28841 if test x$build = x$host; then
28842 export_sym_check="objdump${exeext} -T"
28843 elif test x$host = x$target; then
28844 export_sym_check="$gcc_cv_objdump -T"
28845 else
28846 export_sym_check=
28847 fi
28848 ;;
28849 esac
28850
28851 if test x"$enable_plugin" = x"yes"; then
28852
28853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
28854 $as_echo_n "checking for exported symbols... " >&6; }
28855 if test "x$export_sym_check" != x; then
28856 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
28857 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest$ac_exeext > /dev/null 2>&1
28858 if $export_sym_check conftest$ac_exeext | grep -q foobar > /dev/null; then
28859 : # No need to use a flag
28860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28861 $as_echo "yes" >&6; }
28862 else
28863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28864 $as_echo "yes" >&6; }
28865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
28866 $as_echo_n "checking for -rdynamic... " >&6; }
28867 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest$ac_exeext > /dev/null 2>&1
28868 if $export_sym_check conftest$ac_exeext | grep -q foobar > /dev/null; then
28869 plugin_rdynamic=yes
28870 pluginlibs="-rdynamic"
28871 else
28872 plugin_rdynamic=no
28873 enable_plugin=no
28874 fi
28875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
28876 $as_echo "$plugin_rdynamic" >&6; }
28877 fi
28878 else
28879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
28880 $as_echo "unable to check" >&6; }
28881 fi
28882
28883 # Check -ldl
28884 saved_LIBS="$LIBS"
28885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
28886 $as_echo_n "checking for library containing dlopen... " >&6; }
28887 if test "${ac_cv_search_dlopen+set}" = set; then :
28888 $as_echo_n "(cached) " >&6
28889 else
28890 ac_func_search_save_LIBS=$LIBS
28891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28892 /* end confdefs.h. */
28893
28894 /* Override any GCC internal prototype to avoid an error.
28895 Use char because int might match the return type of a GCC
28896 builtin and then its argument prototype would still apply. */
28897 #ifdef __cplusplus
28898 extern "C"
28899 #endif
28900 char dlopen ();
28901 int
28902 main ()
28903 {
28904 return dlopen ();
28905 ;
28906 return 0;
28907 }
28908 _ACEOF
28909 for ac_lib in '' dl; do
28910 if test -z "$ac_lib"; then
28911 ac_res="none required"
28912 else
28913 ac_res=-l$ac_lib
28914 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28915 fi
28916 if ac_fn_cxx_try_link "$LINENO"; then :
28917 ac_cv_search_dlopen=$ac_res
28918 fi
28919 rm -f core conftest.err conftest.$ac_objext \
28920 conftest$ac_exeext
28921 if test "${ac_cv_search_dlopen+set}" = set; then :
28922 break
28923 fi
28924 done
28925 if test "${ac_cv_search_dlopen+set}" = set; then :
28926
28927 else
28928 ac_cv_search_dlopen=no
28929 fi
28930 rm conftest.$ac_ext
28931 LIBS=$ac_func_search_save_LIBS
28932 fi
28933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
28934 $as_echo "$ac_cv_search_dlopen" >&6; }
28935 ac_res=$ac_cv_search_dlopen
28936 if test "$ac_res" != no; then :
28937 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28938
28939 fi
28940
28941 if test x"$ac_cv_search_dlopen" = x"-ldl"; then
28942 pluginlibs="$pluginlibs -ldl"
28943 fi
28944 LIBS="$saved_LIBS"
28945
28946 # Check that we can build shared objects with -fPIC -shared
28947 saved_LDFLAGS="$LDFLAGS"
28948 saved_CFLAGS="$CFLAGS"
28949 case "${host}" in
28950 *-*-darwin*)
28951 CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
28952 CFLAGS="$CFLAGS -fPIC"
28953 LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
28954 ;;
28955 *)
28956 CFLAGS="$CFLAGS -fPIC"
28957 LDFLAGS="$LDFLAGS -fPIC -shared"
28958 ;;
28959 esac
28960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
28961 $as_echo_n "checking for -fPIC -shared... " >&6; }
28962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28963 /* end confdefs.h. */
28964 extern int X;
28965 int
28966 main ()
28967 {
28968 return X == 0;
28969 ;
28970 return 0;
28971 }
28972 _ACEOF
28973 if ac_fn_cxx_try_link "$LINENO"; then :
28974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28975 $as_echo "yes" >&6; }; have_pic_shared=yes
28976 else
28977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28978 $as_echo "no" >&6; }; have_pic_shared=no
28979 fi
28980 rm -f core conftest.err conftest.$ac_objext \
28981 conftest$ac_exeext conftest.$ac_ext
28982 if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
28983 pluginlibs=
28984 enable_plugin=no
28985 fi
28986 LDFLAGS="$saved_LDFLAGS"
28987 CFLAGS="$saved_CFLAGS"
28988
28989 # If plugin support had been requested but not available, fail.
28990 if test x"$enable_plugin" = x"no" ; then
28991 if test x"$default_plugin" != x"yes"; then
28992 as_fn_error "
28993 Building GCC with plugin support requires a host that supports
28994 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
28995 fi
28996 fi
28997 fi
28998
28999
29000
29001 if test x"$enable_plugin" = x"yes"; then
29002
29003 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
29004
29005 fi
29006
29007
29008 # Enable --enable-host-shared
29009 # Check whether --enable-host-shared was given.
29010 if test "${enable_host_shared+set}" = set; then :
29011 enableval=$enable_host_shared; PICFLAG=-fPIC
29012 else
29013 PICFLAG=
29014 fi
29015
29016
29017
29018
29019
29020 # Check whether --enable-libquadmath-support was given.
29021 if test "${enable_libquadmath_support+set}" = set; then :
29022 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
29023 else
29024 ENABLE_LIBQUADMATH_SUPPORT=yes
29025 fi
29026
29027 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
29028
29029 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
29030
29031 fi
29032
29033
29034 # Specify what hash style to use by default.
29035
29036 # Check whether --with-linker-hash-style was given.
29037 if test "${with_linker_hash_style+set}" = set; then :
29038 withval=$with_linker_hash_style; case x"$withval" in
29039 xsysv)
29040 LINKER_HASH_STYLE=sysv
29041 ;;
29042 xgnu)
29043 LINKER_HASH_STYLE=gnu
29044 ;;
29045 xboth)
29046 LINKER_HASH_STYLE=both
29047 ;;
29048 *)
29049 as_fn_error "$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
29050 ;;
29051 esac
29052 else
29053 LINKER_HASH_STYLE=''
29054 fi
29055
29056 if test x"${LINKER_HASH_STYLE}" != x; then
29057
29058 cat >>confdefs.h <<_ACEOF
29059 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
29060 _ACEOF
29061
29062 fi
29063
29064 # Specify what should be the default of -fdiagnostics-color option.
29065
29066 # Check whether --with-diagnostics-color was given.
29067 if test "${with_diagnostics_color+set}" = set; then :
29068 withval=$with_diagnostics_color; case x"$withval" in
29069 xnever)
29070 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_NO
29071 ;;
29072 xauto)
29073 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO
29074 ;;
29075 xauto-if-env)
29076 DIAGNOSTICS_COLOR_DEFAULT=-1
29077 ;;
29078 xalways)
29079 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_YES
29080 ;;
29081 *)
29082 as_fn_error "$withval is an invalid option to --with-diagnostics-color" "$LINENO" 5
29083 ;;
29084 esac
29085 else
29086 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO
29087 fi
29088
29089
29090 cat >>confdefs.h <<_ACEOF
29091 #define DIAGNOSTICS_COLOR_DEFAULT $DIAGNOSTICS_COLOR_DEFAULT
29092 _ACEOF
29093
29094
29095 # Generate gcc-driver-name.h containing GCC_DRIVER_NAME for the benefit
29096 # of jit/jit-playback.c.
29097 cat > gcc-driver-name.h <<EOF
29098 #define GCC_DRIVER_NAME "${target_noncanonical}-gcc-${gcc_BASEVER}${exeext}"
29099 EOF
29100
29101 # Check whether --enable-default-pie was given.
29102 # Check whether --enable-default-pie was given.
29103 if test "${enable_default_pie+set}" = set; then :
29104 enableval=$enable_default_pie; enable_default_pie=$enableval
29105 else
29106 enable_default_pie=no
29107 fi
29108
29109 if test x$enable_default_pie == xyes ; then
29110
29111 $as_echo "#define ENABLE_DEFAULT_PIE 1" >>confdefs.h
29112
29113 fi
29114
29115
29116 # Check if -fno-PIE works.
29117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fno-PIE option" >&5
29118 $as_echo_n "checking for -fno-PIE option... " >&6; }
29119 if test "${gcc_cv_c_no_fpie+set}" = set; then :
29120 $as_echo_n "(cached) " >&6
29121 else
29122 saved_CXXFLAGS="$CXXFLAGS"
29123 CXXFLAGS="$CXXFLAGS -fno-PIE"
29124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29125 /* end confdefs.h. */
29126 int main(void) {return 0;}
29127 _ACEOF
29128 if ac_fn_cxx_try_compile "$LINENO"; then :
29129 gcc_cv_c_no_fpie=yes
29130 else
29131 gcc_cv_c_no_fpie=no
29132 fi
29133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29134 CXXFLAGS="$saved_CXXFLAGS"
29135 fi
29136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_no_fpie" >&5
29137 $as_echo "$gcc_cv_c_no_fpie" >&6; }
29138 if test "$gcc_cv_c_no_fpie" = "yes"; then
29139 NO_PIE_CFLAGS="-fno-PIE"
29140 fi
29141
29142
29143 # Check if -no-pie works.
29144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -no-pie option" >&5
29145 $as_echo_n "checking for -no-pie option... " >&6; }
29146 if test "${gcc_cv_no_pie+set}" = set; then :
29147 $as_echo_n "(cached) " >&6
29148 else
29149 saved_LDFLAGS="$LDFLAGS"
29150 LDFLAGS="$LDFLAGS -no-pie"
29151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29152 /* end confdefs.h. */
29153 int main(void) {return 0;}
29154 _ACEOF
29155 if ac_fn_cxx_try_link "$LINENO"; then :
29156 gcc_cv_no_pie=yes
29157 else
29158 gcc_cv_no_pie=no
29159 fi
29160 rm -f core conftest.err conftest.$ac_objext \
29161 conftest$ac_exeext conftest.$ac_ext
29162 LDFLAGS="$saved_LDFLAGS"
29163 fi
29164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_no_pie" >&5
29165 $as_echo "$gcc_cv_no_pie" >&6; }
29166 if test "$gcc_cv_no_pie" = "yes"; then
29167 NO_PIE_FLAG="-no-pie"
29168 fi
29169
29170
29171 # Check linker supports '-z bndplt'
29172 ld_bndplt_support=no
29173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -z bndplt option" >&5
29174 $as_echo_n "checking linker -z bndplt option... " >&6; }
29175 if test x"$ld_is_gold" = xno; then
29176 if test $in_tree_ld = yes ; then
29177 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
29178 ld_bndplt_support=yes
29179 fi
29180 elif test x$gcc_cv_ld != x; then
29181 # Check if linker supports -a bndplt option
29182 if $gcc_cv_ld --help 2>/dev/null | grep -- '-z bndplt' > /dev/null; then
29183 ld_bndplt_support=yes
29184 fi
29185 fi
29186 fi
29187 if test x"$ld_bndplt_support" = xyes; then
29188
29189 $as_echo "#define HAVE_LD_BNDPLT_SUPPORT 1" >>confdefs.h
29190
29191 fi
29192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_bndplt_support" >&5
29193 $as_echo "$ld_bndplt_support" >&6; }
29194
29195 # Configure the subdirectories
29196 # AC_CONFIG_SUBDIRS($subdirs)
29197
29198 # Create the Makefile
29199 # and configure language subdirectories
29200 ac_config_files="$ac_config_files $all_outputs"
29201
29202
29203 ac_config_commands="$ac_config_commands default"
29204
29205 cat >confcache <<\_ACEOF
29206 # This file is a shell script that caches the results of configure
29207 # tests run on this system so they can be shared between configure
29208 # scripts and configure runs, see configure's option --config-cache.
29209 # It is not useful on other systems. If it contains results you don't
29210 # want to keep, you may remove or edit it.
29211 #
29212 # config.status only pays attention to the cache file if you give it
29213 # the --recheck option to rerun configure.
29214 #
29215 # `ac_cv_env_foo' variables (set or unset) will be overridden when
29216 # loading this file, other *unset* `ac_cv_foo' will be assigned the
29217 # following values.
29218
29219 _ACEOF
29220
29221 # The following way of writing the cache mishandles newlines in values,
29222 # but we know of no workaround that is simple, portable, and efficient.
29223 # So, we kill variables containing newlines.
29224 # Ultrix sh set writes to stderr and can't be redirected directly,
29225 # and sets the high bit in the cache file unless we assign to the vars.
29226 (
29227 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
29228 eval ac_val=\$$ac_var
29229 case $ac_val in #(
29230 *${as_nl}*)
29231 case $ac_var in #(
29232 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
29233 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
29234 esac
29235 case $ac_var in #(
29236 _ | IFS | as_nl) ;; #(
29237 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
29238 *) { eval $ac_var=; unset $ac_var;} ;;
29239 esac ;;
29240 esac
29241 done
29242
29243 (set) 2>&1 |
29244 case $as_nl`(ac_space=' '; set) 2>&1` in #(
29245 *${as_nl}ac_space=\ *)
29246 # `set' does not quote correctly, so add quotes: double-quote
29247 # substitution turns \\\\ into \\, and sed turns \\ into \.
29248 sed -n \
29249 "s/'/'\\\\''/g;
29250 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29251 ;; #(
29252 *)
29253 # `set' quotes correctly as required by POSIX, so do not add quotes.
29254 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
29255 ;;
29256 esac |
29257 sort
29258 ) |
29259 sed '
29260 /^ac_cv_env_/b end
29261 t clear
29262 :clear
29263 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29264 t end
29265 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29266 :end' >>confcache
29267 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
29268 if test -w "$cache_file"; then
29269 test "x$cache_file" != "x/dev/null" &&
29270 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
29271 $as_echo "$as_me: updating cache $cache_file" >&6;}
29272 cat confcache >$cache_file
29273 else
29274 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
29275 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
29276 fi
29277 fi
29278 rm -f confcache
29279
29280 test "x$prefix" = xNONE && prefix=$ac_default_prefix
29281 # Let make expand exec_prefix.
29282 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
29283
29284 DEFS=-DHAVE_CONFIG_H
29285
29286 ac_libobjs=
29287 ac_ltlibobjs=
29288 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
29289 # 1. Remove the extension, and $U if already installed.
29290 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
29291 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
29292 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
29293 # will be set to the directory where LIBOBJS objects are built.
29294 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
29295 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
29296 done
29297 LIBOBJS=$ac_libobjs
29298
29299 LTLIBOBJS=$ac_ltlibobjs
29300
29301
29302
29303
29304 : ${CONFIG_STATUS=./config.status}
29305 ac_write_fail=0
29306 ac_clean_files_save=$ac_clean_files
29307 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
29308 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
29309 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
29310 as_write_fail=0
29311 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
29312 #! $SHELL
29313 # Generated by $as_me.
29314 # Run this file to recreate the current configuration.
29315 # Compiler output produced by configure, useful for debugging
29316 # configure, is in config.log if it exists.
29317
29318 debug=false
29319 ac_cs_recheck=false
29320 ac_cs_silent=false
29321
29322 SHELL=\${CONFIG_SHELL-$SHELL}
29323 export SHELL
29324 _ASEOF
29325 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
29326 ## -------------------- ##
29327 ## M4sh Initialization. ##
29328 ## -------------------- ##
29329
29330 # Be more Bourne compatible
29331 DUALCASE=1; export DUALCASE # for MKS sh
29332 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
29333 emulate sh
29334 NULLCMD=:
29335 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
29336 # is contrary to our usage. Disable this feature.
29337 alias -g '${1+"$@"}'='"$@"'
29338 setopt NO_GLOB_SUBST
29339 else
29340 case `(set -o) 2>/dev/null` in #(
29341 *posix*) :
29342 set -o posix ;; #(
29343 *) :
29344 ;;
29345 esac
29346 fi
29347
29348
29349 as_nl='
29350 '
29351 export as_nl
29352 # Printing a long string crashes Solaris 7 /usr/bin/printf.
29353 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
29354 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
29355 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
29356 # Prefer a ksh shell builtin over an external printf program on Solaris,
29357 # but without wasting forks for bash or zsh.
29358 if test -z "$BASH_VERSION$ZSH_VERSION" \
29359 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
29360 as_echo='print -r --'
29361 as_echo_n='print -rn --'
29362 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
29363 as_echo='printf %s\n'
29364 as_echo_n='printf %s'
29365 else
29366 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
29367 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
29368 as_echo_n='/usr/ucb/echo -n'
29369 else
29370 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
29371 as_echo_n_body='eval
29372 arg=$1;
29373 case $arg in #(
29374 *"$as_nl"*)
29375 expr "X$arg" : "X\\(.*\\)$as_nl";
29376 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
29377 esac;
29378 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
29379 '
29380 export as_echo_n_body
29381 as_echo_n='sh -c $as_echo_n_body as_echo'
29382 fi
29383 export as_echo_body
29384 as_echo='sh -c $as_echo_body as_echo'
29385 fi
29386
29387 # The user is always right.
29388 if test "${PATH_SEPARATOR+set}" != set; then
29389 PATH_SEPARATOR=:
29390 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
29391 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
29392 PATH_SEPARATOR=';'
29393 }
29394 fi
29395
29396
29397 # IFS
29398 # We need space, tab and new line, in precisely that order. Quoting is
29399 # there to prevent editors from complaining about space-tab.
29400 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
29401 # splitting by setting IFS to empty value.)
29402 IFS=" "" $as_nl"
29403
29404 # Find who we are. Look in the path if we contain no directory separator.
29405 case $0 in #((
29406 *[\\/]* ) as_myself=$0 ;;
29407 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29408 for as_dir in $PATH
29409 do
29410 IFS=$as_save_IFS
29411 test -z "$as_dir" && as_dir=.
29412 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
29413 done
29414 IFS=$as_save_IFS
29415
29416 ;;
29417 esac
29418 # We did not find ourselves, most probably we were run as `sh COMMAND'
29419 # in which case we are not to be found in the path.
29420 if test "x$as_myself" = x; then
29421 as_myself=$0
29422 fi
29423 if test ! -f "$as_myself"; then
29424 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
29425 exit 1
29426 fi
29427
29428 # Unset variables that we do not need and which cause bugs (e.g. in
29429 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
29430 # suppresses any "Segmentation fault" message there. '((' could
29431 # trigger a bug in pdksh 5.2.14.
29432 for as_var in BASH_ENV ENV MAIL MAILPATH
29433 do eval test x\${$as_var+set} = xset \
29434 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
29435 done
29436 PS1='$ '
29437 PS2='> '
29438 PS4='+ '
29439
29440 # NLS nuisances.
29441 LC_ALL=C
29442 export LC_ALL
29443 LANGUAGE=C
29444 export LANGUAGE
29445
29446 # CDPATH.
29447 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
29448
29449
29450 # as_fn_error ERROR [LINENO LOG_FD]
29451 # ---------------------------------
29452 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
29453 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
29454 # script with status $?, using 1 if that was 0.
29455 as_fn_error ()
29456 {
29457 as_status=$?; test $as_status -eq 0 && as_status=1
29458 if test "$3"; then
29459 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
29460 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
29461 fi
29462 $as_echo "$as_me: error: $1" >&2
29463 as_fn_exit $as_status
29464 } # as_fn_error
29465
29466
29467 # as_fn_set_status STATUS
29468 # -----------------------
29469 # Set $? to STATUS, without forking.
29470 as_fn_set_status ()
29471 {
29472 return $1
29473 } # as_fn_set_status
29474
29475 # as_fn_exit STATUS
29476 # -----------------
29477 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
29478 as_fn_exit ()
29479 {
29480 set +e
29481 as_fn_set_status $1
29482 exit $1
29483 } # as_fn_exit
29484
29485 # as_fn_unset VAR
29486 # ---------------
29487 # Portably unset VAR.
29488 as_fn_unset ()
29489 {
29490 { eval $1=; unset $1;}
29491 }
29492 as_unset=as_fn_unset
29493 # as_fn_append VAR VALUE
29494 # ----------------------
29495 # Append the text in VALUE to the end of the definition contained in VAR. Take
29496 # advantage of any shell optimizations that allow amortized linear growth over
29497 # repeated appends, instead of the typical quadratic growth present in naive
29498 # implementations.
29499 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
29500 eval 'as_fn_append ()
29501 {
29502 eval $1+=\$2
29503 }'
29504 else
29505 as_fn_append ()
29506 {
29507 eval $1=\$$1\$2
29508 }
29509 fi # as_fn_append
29510
29511 # as_fn_arith ARG...
29512 # ------------------
29513 # Perform arithmetic evaluation on the ARGs, and store the result in the
29514 # global $as_val. Take advantage of shells that can avoid forks. The arguments
29515 # must be portable across $(()) and expr.
29516 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
29517 eval 'as_fn_arith ()
29518 {
29519 as_val=$(( $* ))
29520 }'
29521 else
29522 as_fn_arith ()
29523 {
29524 as_val=`expr "$@" || test $? -eq 1`
29525 }
29526 fi # as_fn_arith
29527
29528
29529 if expr a : '\(a\)' >/dev/null 2>&1 &&
29530 test "X`expr 00001 : '.*\(...\)'`" = X001; then
29531 as_expr=expr
29532 else
29533 as_expr=false
29534 fi
29535
29536 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
29537 as_basename=basename
29538 else
29539 as_basename=false
29540 fi
29541
29542 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
29543 as_dirname=dirname
29544 else
29545 as_dirname=false
29546 fi
29547
29548 as_me=`$as_basename -- "$0" ||
29549 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
29550 X"$0" : 'X\(//\)$' \| \
29551 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
29552 $as_echo X/"$0" |
29553 sed '/^.*\/\([^/][^/]*\)\/*$/{
29554 s//\1/
29555 q
29556 }
29557 /^X\/\(\/\/\)$/{
29558 s//\1/
29559 q
29560 }
29561 /^X\/\(\/\).*/{
29562 s//\1/
29563 q
29564 }
29565 s/.*/./; q'`
29566
29567 # Avoid depending upon Character Ranges.
29568 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
29569 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
29570 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
29571 as_cr_digits='0123456789'
29572 as_cr_alnum=$as_cr_Letters$as_cr_digits
29573
29574 ECHO_C= ECHO_N= ECHO_T=
29575 case `echo -n x` in #(((((
29576 -n*)
29577 case `echo 'xy\c'` in
29578 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
29579 xy) ECHO_C='\c';;
29580 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
29581 ECHO_T=' ';;
29582 esac;;
29583 *)
29584 ECHO_N='-n';;
29585 esac
29586
29587 rm -f conf$$ conf$$.exe conf$$.file
29588 if test -d conf$$.dir; then
29589 rm -f conf$$.dir/conf$$.file
29590 else
29591 rm -f conf$$.dir
29592 mkdir conf$$.dir 2>/dev/null
29593 fi
29594 if (echo >conf$$.file) 2>/dev/null; then
29595 if ln -s conf$$.file conf$$ 2>/dev/null; then
29596 as_ln_s='ln -s'
29597 # ... but there are two gotchas:
29598 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
29599 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
29600 # In both cases, we have to default to `cp -p'.
29601 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
29602 as_ln_s='cp -p'
29603 elif ln conf$$.file conf$$ 2>/dev/null; then
29604 as_ln_s=ln
29605 else
29606 as_ln_s='cp -p'
29607 fi
29608 else
29609 as_ln_s='cp -p'
29610 fi
29611 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
29612 rmdir conf$$.dir 2>/dev/null
29613
29614
29615 # as_fn_mkdir_p
29616 # -------------
29617 # Create "$as_dir" as a directory, including parents if necessary.
29618 as_fn_mkdir_p ()
29619 {
29620
29621 case $as_dir in #(
29622 -*) as_dir=./$as_dir;;
29623 esac
29624 test -d "$as_dir" || eval $as_mkdir_p || {
29625 as_dirs=
29626 while :; do
29627 case $as_dir in #(
29628 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
29629 *) as_qdir=$as_dir;;
29630 esac
29631 as_dirs="'$as_qdir' $as_dirs"
29632 as_dir=`$as_dirname -- "$as_dir" ||
29633 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29634 X"$as_dir" : 'X\(//\)[^/]' \| \
29635 X"$as_dir" : 'X\(//\)$' \| \
29636 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
29637 $as_echo X"$as_dir" |
29638 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29639 s//\1/
29640 q
29641 }
29642 /^X\(\/\/\)[^/].*/{
29643 s//\1/
29644 q
29645 }
29646 /^X\(\/\/\)$/{
29647 s//\1/
29648 q
29649 }
29650 /^X\(\/\).*/{
29651 s//\1/
29652 q
29653 }
29654 s/.*/./; q'`
29655 test -d "$as_dir" && break
29656 done
29657 test -z "$as_dirs" || eval "mkdir $as_dirs"
29658 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
29659
29660
29661 } # as_fn_mkdir_p
29662 if mkdir -p . 2>/dev/null; then
29663 as_mkdir_p='mkdir -p "$as_dir"'
29664 else
29665 test -d ./-p && rmdir ./-p
29666 as_mkdir_p=false
29667 fi
29668
29669 if test -x / >/dev/null 2>&1; then
29670 as_test_x='test -x'
29671 else
29672 if ls -dL / >/dev/null 2>&1; then
29673 as_ls_L_option=L
29674 else
29675 as_ls_L_option=
29676 fi
29677 as_test_x='
29678 eval sh -c '\''
29679 if test -d "$1"; then
29680 test -d "$1/.";
29681 else
29682 case $1 in #(
29683 -*)set "./$1";;
29684 esac;
29685 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
29686 ???[sx]*):;;*)false;;esac;fi
29687 '\'' sh
29688 '
29689 fi
29690 as_executable_p=$as_test_x
29691
29692 # Sed expression to map a string onto a valid CPP name.
29693 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
29694
29695 # Sed expression to map a string onto a valid variable name.
29696 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
29697
29698
29699 exec 6>&1
29700 ## ----------------------------------- ##
29701 ## Main body of $CONFIG_STATUS script. ##
29702 ## ----------------------------------- ##
29703 _ASEOF
29704 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
29705
29706 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29707 # Save the log message, to keep $0 and so on meaningful, and to
29708 # report actual input values of CONFIG_FILES etc. instead of their
29709 # values after options handling.
29710 ac_log="
29711 This file was extended by $as_me, which was
29712 generated by GNU Autoconf 2.64. Invocation command line was
29713
29714 CONFIG_FILES = $CONFIG_FILES
29715 CONFIG_HEADERS = $CONFIG_HEADERS
29716 CONFIG_LINKS = $CONFIG_LINKS
29717 CONFIG_COMMANDS = $CONFIG_COMMANDS
29718 $ $0 $@
29719
29720 on `(hostname || uname -n) 2>/dev/null | sed 1q`
29721 "
29722
29723 _ACEOF
29724
29725 case $ac_config_files in *"
29726 "*) set x $ac_config_files; shift; ac_config_files=$*;;
29727 esac
29728
29729 case $ac_config_headers in *"
29730 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
29731 esac
29732
29733
29734 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29735 # Files that config.status was made for.
29736 config_files="$ac_config_files"
29737 config_headers="$ac_config_headers"
29738 config_links="$ac_config_links"
29739 config_commands="$ac_config_commands"
29740
29741 _ACEOF
29742
29743 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29744 ac_cs_usage="\
29745 \`$as_me' instantiates files and other configuration actions
29746 from templates according to the current configuration. Unless the files
29747 and actions are specified as TAGs, all are instantiated by default.
29748
29749 Usage: $0 [OPTION]... [TAG]...
29750
29751 -h, --help print this help, then exit
29752 -V, --version print version number and configuration settings, then exit
29753 -q, --quiet, --silent
29754 do not print progress messages
29755 -d, --debug don't remove temporary files
29756 --recheck update $as_me by reconfiguring in the same conditions
29757 --file=FILE[:TEMPLATE]
29758 instantiate the configuration file FILE
29759 --header=FILE[:TEMPLATE]
29760 instantiate the configuration header FILE
29761
29762 Configuration files:
29763 $config_files
29764
29765 Configuration headers:
29766 $config_headers
29767
29768 Configuration links:
29769 $config_links
29770
29771 Configuration commands:
29772 $config_commands
29773
29774 Report bugs to the package provider."
29775
29776 _ACEOF
29777 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29778 ac_cs_version="\\
29779 config.status
29780 configured by $0, generated by GNU Autoconf 2.64,
29781 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
29782
29783 Copyright (C) 2009 Free Software Foundation, Inc.
29784 This config.status script is free software; the Free Software Foundation
29785 gives unlimited permission to copy, distribute and modify it."
29786
29787 ac_pwd='$ac_pwd'
29788 srcdir='$srcdir'
29789 AWK='$AWK'
29790 test -n "\$AWK" || AWK=awk
29791 _ACEOF
29792
29793 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29794 # The default lists apply if the user does not specify any file.
29795 ac_need_defaults=:
29796 while test $# != 0
29797 do
29798 case $1 in
29799 --*=*)
29800 ac_option=`expr "X$1" : 'X\([^=]*\)='`
29801 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
29802 ac_shift=:
29803 ;;
29804 *)
29805 ac_option=$1
29806 ac_optarg=$2
29807 ac_shift=shift
29808 ;;
29809 esac
29810
29811 case $ac_option in
29812 # Handling of the options.
29813 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
29814 ac_cs_recheck=: ;;
29815 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
29816 $as_echo "$ac_cs_version"; exit ;;
29817 --debug | --debu | --deb | --de | --d | -d )
29818 debug=: ;;
29819 --file | --fil | --fi | --f )
29820 $ac_shift
29821 case $ac_optarg in
29822 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
29823 esac
29824 as_fn_append CONFIG_FILES " '$ac_optarg'"
29825 ac_need_defaults=false;;
29826 --header | --heade | --head | --hea )
29827 $ac_shift
29828 case $ac_optarg in
29829 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
29830 esac
29831 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
29832 ac_need_defaults=false;;
29833 --he | --h)
29834 # Conflict between --help and --header
29835 as_fn_error "ambiguous option: \`$1'
29836 Try \`$0 --help' for more information.";;
29837 --help | --hel | -h )
29838 $as_echo "$ac_cs_usage"; exit ;;
29839 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
29840 | -silent | --silent | --silen | --sile | --sil | --si | --s)
29841 ac_cs_silent=: ;;
29842
29843 # This is an error.
29844 -*) as_fn_error "unrecognized option: \`$1'
29845 Try \`$0 --help' for more information." ;;
29846
29847 *) as_fn_append ac_config_targets " $1"
29848 ac_need_defaults=false ;;
29849
29850 esac
29851 shift
29852 done
29853
29854 ac_configure_extra_args=
29855
29856 if $ac_cs_silent; then
29857 exec 6>/dev/null
29858 ac_configure_extra_args="$ac_configure_extra_args --silent"
29859 fi
29860
29861 _ACEOF
29862 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29863 if \$ac_cs_recheck; then
29864 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
29865 shift
29866 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
29867 CONFIG_SHELL='$SHELL'
29868 export CONFIG_SHELL
29869 exec "\$@"
29870 fi
29871
29872 _ACEOF
29873 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29874 exec 5>>config.log
29875 {
29876 echo
29877 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
29878 ## Running $as_me. ##
29879 _ASBOX
29880 $as_echo "$ac_log"
29881 } >&5
29882
29883 _ACEOF
29884 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29885 #
29886 # INIT-COMMANDS
29887 #
29888 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
29889 subdirs="$subdirs" ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
29890 subdirs='$subdirs'
29891
29892 _ACEOF
29893
29894 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29895
29896 # Handling of arguments.
29897 for ac_config_target in $ac_config_targets
29898 do
29899 case $ac_config_target in
29900 "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
29901 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
29902 "gccdepdir") CONFIG_COMMANDS="$CONFIG_COMMANDS gccdepdir" ;;
29903 "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
29904 "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
29905 "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
29906 "clearcap.map") CONFIG_LINKS="$CONFIG_LINKS clearcap.map:${srcdir}/config/$clearcap_map" ;;
29907 "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
29908 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
29909
29910 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
29911 esac
29912 done
29913
29914
29915 # If the user did not use the arguments to specify the items to instantiate,
29916 # then the envvar interface is used. Set only those that are not.
29917 # We use the long form for the default assignment because of an extremely
29918 # bizarre bug on SunOS 4.1.3.
29919 if $ac_need_defaults; then
29920 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
29921 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
29922 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
29923 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
29924 fi
29925
29926 # Have a temporary directory for convenience. Make it in the build tree
29927 # simply because there is no reason against having it here, and in addition,
29928 # creating and moving files from /tmp can sometimes cause problems.
29929 # Hook for its removal unless debugging.
29930 # Note that there is a small window in which the directory will not be cleaned:
29931 # after its creation but before its name has been assigned to `$tmp'.
29932 $debug ||
29933 {
29934 tmp=
29935 trap 'exit_status=$?
29936 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
29937 ' 0
29938 trap 'as_fn_exit 1' 1 2 13 15
29939 }
29940 # Create a (secure) tmp directory for tmp files.
29941
29942 {
29943 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
29944 test -n "$tmp" && test -d "$tmp"
29945 } ||
29946 {
29947 tmp=./conf$$-$RANDOM
29948 (umask 077 && mkdir "$tmp")
29949 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
29950
29951 # Set up the scripts for CONFIG_FILES section.
29952 # No need to generate them if there are no CONFIG_FILES.
29953 # This happens for instance with `./config.status config.h'.
29954 if test -n "$CONFIG_FILES"; then
29955
29956 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
29957 ac_cs_awk_getline=:
29958 ac_cs_awk_pipe_init=
29959 ac_cs_awk_read_file='
29960 while ((getline aline < (F[key])) > 0)
29961 print(aline)
29962 close(F[key])'
29963 ac_cs_awk_pipe_fini=
29964 else
29965 ac_cs_awk_getline=false
29966 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
29967 ac_cs_awk_read_file='
29968 print "|#_!!_#|"
29969 print "cat " F[key] " &&"
29970 '$ac_cs_awk_pipe_init
29971 # The final `:' finishes the AND list.
29972 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
29973 fi
29974 ac_cr=`echo X | tr X '\015'`
29975 # On cygwin, bash can eat \r inside `` if the user requested igncr.
29976 # But we know of no other shell where ac_cr would be empty at this
29977 # point, so we can use a bashism as a fallback.
29978 if test "x$ac_cr" = x; then
29979 eval ac_cr=\$\'\\r\'
29980 fi
29981 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
29982 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
29983 ac_cs_awk_cr='\r'
29984 else
29985 ac_cs_awk_cr=$ac_cr
29986 fi
29987
29988 echo 'BEGIN {' >"$tmp/subs1.awk" &&
29989 _ACEOF
29990
29991 # Create commands to substitute file output variables.
29992 {
29993 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
29994 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
29995 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
29996 echo "_ACAWK" &&
29997 echo "_ACEOF"
29998 } >conf$$files.sh &&
29999 . ./conf$$files.sh ||
30000 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
30001 rm -f conf$$files.sh
30002
30003 {
30004 echo "cat >conf$$subs.awk <<_ACEOF" &&
30005 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
30006 echo "_ACEOF"
30007 } >conf$$subs.sh ||
30008 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
30009 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
30010 ac_delim='%!_!# '
30011 for ac_last_try in false false false false false :; do
30012 . ./conf$$subs.sh ||
30013 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
30014
30015 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
30016 if test $ac_delim_n = $ac_delim_num; then
30017 break
30018 elif $ac_last_try; then
30019 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
30020 else
30021 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30022 fi
30023 done
30024 rm -f conf$$subs.sh
30025
30026 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30027 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
30028 _ACEOF
30029 sed -n '
30030 h
30031 s/^/S["/; s/!.*/"]=/
30032 p
30033 g
30034 s/^[^!]*!//
30035 :repl
30036 t repl
30037 s/'"$ac_delim"'$//
30038 t delim
30039 :nl
30040 h
30041 s/\(.\{148\}\).*/\1/
30042 t more1
30043 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
30044 p
30045 n
30046 b repl
30047 :more1
30048 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
30049 p
30050 g
30051 s/.\{148\}//
30052 t nl
30053 :delim
30054 h
30055 s/\(.\{148\}\).*/\1/
30056 t more2
30057 s/["\\]/\\&/g; s/^/"/; s/$/"/
30058 p
30059 b
30060 :more2
30061 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
30062 p
30063 g
30064 s/.\{148\}//
30065 t delim
30066 ' <conf$$subs.awk | sed '
30067 /^[^""]/{
30068 N
30069 s/\n//
30070 }
30071 ' >>$CONFIG_STATUS || ac_write_fail=1
30072 rm -f conf$$subs.awk
30073 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30074 _ACAWK
30075 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
30076 for (key in S) S_is_set[key] = 1
30077 FS = "\a"
30078 \$ac_cs_awk_pipe_init
30079 }
30080 {
30081 line = $ 0
30082 nfields = split(line, field, "@")
30083 substed = 0
30084 len = length(field[1])
30085 for (i = 2; i < nfields; i++) {
30086 key = field[i]
30087 keylen = length(key)
30088 if (S_is_set[key]) {
30089 value = S[key]
30090 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
30091 len += length(value) + length(field[++i])
30092 substed = 1
30093 } else
30094 len += 1 + keylen
30095 }
30096 if (nfields == 3 && !substed) {
30097 key = field[2]
30098 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
30099 \$ac_cs_awk_read_file
30100 next
30101 }
30102 }
30103 print line
30104 }
30105 \$ac_cs_awk_pipe_fini
30106 _ACAWK
30107 _ACEOF
30108 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30109 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
30110 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
30111 else
30112 cat
30113 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
30114 || as_fn_error "could not setup config files machinery" "$LINENO" 5
30115 _ACEOF
30116
30117 # VPATH may cause trouble with some makes, so we remove $(srcdir),
30118 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30119 # trailing colons and then remove the whole line if VPATH becomes empty
30120 # (actually we leave an empty line to preserve line numbers).
30121 if test "x$srcdir" = x.; then
30122 ac_vpsub='/^[ ]*VPATH[ ]*=/{
30123 s/:*\$(srcdir):*/:/
30124 s/:*\${srcdir}:*/:/
30125 s/:*@srcdir@:*/:/
30126 s/^\([^=]*=[ ]*\):*/\1/
30127 s/:*$//
30128 s/^[^=]*=[ ]*$//
30129 }'
30130 fi
30131
30132 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30133 fi # test -n "$CONFIG_FILES"
30134
30135 # Set up the scripts for CONFIG_HEADERS section.
30136 # No need to generate them if there are no CONFIG_HEADERS.
30137 # This happens for instance with `./config.status Makefile'.
30138 if test -n "$CONFIG_HEADERS"; then
30139 cat >"$tmp/defines.awk" <<\_ACAWK ||
30140 BEGIN {
30141 _ACEOF
30142
30143 # Transform confdefs.h into an awk script `defines.awk', embedded as
30144 # here-document in config.status, that substitutes the proper values into
30145 # config.h.in to produce config.h.
30146
30147 # Create a delimiter string that does not exist in confdefs.h, to ease
30148 # handling of long lines.
30149 ac_delim='%!_!# '
30150 for ac_last_try in false false :; do
30151 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
30152 if test -z "$ac_t"; then
30153 break
30154 elif $ac_last_try; then
30155 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
30156 else
30157 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30158 fi
30159 done
30160
30161 # For the awk script, D is an array of macro values keyed by name,
30162 # likewise P contains macro parameters if any. Preserve backslash
30163 # newline sequences.
30164
30165 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
30166 sed -n '
30167 s/.\{148\}/&'"$ac_delim"'/g
30168 t rset
30169 :rset
30170 s/^[ ]*#[ ]*define[ ][ ]*/ /
30171 t def
30172 d
30173 :def
30174 s/\\$//
30175 t bsnl
30176 s/["\\]/\\&/g
30177 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
30178 D["\1"]=" \3"/p
30179 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
30180 d
30181 :bsnl
30182 s/["\\]/\\&/g
30183 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
30184 D["\1"]=" \3\\\\\\n"\\/p
30185 t cont
30186 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
30187 t cont
30188 d
30189 :cont
30190 n
30191 s/.\{148\}/&'"$ac_delim"'/g
30192 t clear
30193 :clear
30194 s/\\$//
30195 t bsnlc
30196 s/["\\]/\\&/g; s/^/"/; s/$/"/p
30197 d
30198 :bsnlc
30199 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
30200 b cont
30201 ' <confdefs.h | sed '
30202 s/'"$ac_delim"'/"\\\
30203 "/g' >>$CONFIG_STATUS || ac_write_fail=1
30204
30205 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30206 for (key in D) D_is_set[key] = 1
30207 FS = "\a"
30208 }
30209 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
30210 line = \$ 0
30211 split(line, arg, " ")
30212 if (arg[1] == "#") {
30213 defundef = arg[2]
30214 mac1 = arg[3]
30215 } else {
30216 defundef = substr(arg[1], 2)
30217 mac1 = arg[2]
30218 }
30219 split(mac1, mac2, "(") #)
30220 macro = mac2[1]
30221 prefix = substr(line, 1, index(line, defundef) - 1)
30222 if (D_is_set[macro]) {
30223 # Preserve the white space surrounding the "#".
30224 print prefix "define", macro P[macro] D[macro]
30225 next
30226 } else {
30227 # Replace #undef with comments. This is necessary, for example,
30228 # in the case of _POSIX_SOURCE, which is predefined and required
30229 # on some systems where configure will not decide to define it.
30230 if (defundef == "undef") {
30231 print "/*", prefix defundef, macro, "*/"
30232 next
30233 }
30234 }
30235 }
30236 { print }
30237 _ACAWK
30238 _ACEOF
30239 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30240 as_fn_error "could not setup config headers machinery" "$LINENO" 5
30241 fi # test -n "$CONFIG_HEADERS"
30242
30243
30244 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
30245 shift
30246 for ac_tag
30247 do
30248 case $ac_tag in
30249 :[FHLC]) ac_mode=$ac_tag; continue;;
30250 esac
30251 case $ac_mode$ac_tag in
30252 :[FHL]*:*);;
30253 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
30254 :[FH]-) ac_tag=-:-;;
30255 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
30256 esac
30257 ac_save_IFS=$IFS
30258 IFS=:
30259 set x $ac_tag
30260 IFS=$ac_save_IFS
30261 shift
30262 ac_file=$1
30263 shift
30264
30265 case $ac_mode in
30266 :L) ac_source=$1;;
30267 :[FH])
30268 ac_file_inputs=
30269 for ac_f
30270 do
30271 case $ac_f in
30272 -) ac_f="$tmp/stdin";;
30273 *) # Look for the file first in the build tree, then in the source tree
30274 # (if the path is not absolute). The absolute path cannot be DOS-style,
30275 # because $ac_f cannot contain `:'.
30276 test -f "$ac_f" ||
30277 case $ac_f in
30278 [\\/$]*) false;;
30279 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
30280 esac ||
30281 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
30282 esac
30283 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
30284 as_fn_append ac_file_inputs " '$ac_f'"
30285 done
30286
30287 # Let's still pretend it is `configure' which instantiates (i.e., don't
30288 # use $as_me), people would be surprised to read:
30289 # /* config.h. Generated by config.status. */
30290 configure_input='Generated from '`
30291 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
30292 `' by configure.'
30293 if test x"$ac_file" != x-; then
30294 configure_input="$ac_file. $configure_input"
30295 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
30296 $as_echo "$as_me: creating $ac_file" >&6;}
30297 fi
30298 # Neutralize special characters interpreted by sed in replacement strings.
30299 case $configure_input in #(
30300 *\&* | *\|* | *\\* )
30301 ac_sed_conf_input=`$as_echo "$configure_input" |
30302 sed 's/[\\\\&|]/\\\\&/g'`;; #(
30303 *) ac_sed_conf_input=$configure_input;;
30304 esac
30305
30306 case $ac_tag in
30307 *:-:* | *:-) cat >"$tmp/stdin" \
30308 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
30309 esac
30310 ;;
30311 esac
30312
30313 ac_dir=`$as_dirname -- "$ac_file" ||
30314 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30315 X"$ac_file" : 'X\(//\)[^/]' \| \
30316 X"$ac_file" : 'X\(//\)$' \| \
30317 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
30318 $as_echo X"$ac_file" |
30319 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30320 s//\1/
30321 q
30322 }
30323 /^X\(\/\/\)[^/].*/{
30324 s//\1/
30325 q
30326 }
30327 /^X\(\/\/\)$/{
30328 s//\1/
30329 q
30330 }
30331 /^X\(\/\).*/{
30332 s//\1/
30333 q
30334 }
30335 s/.*/./; q'`
30336 as_dir="$ac_dir"; as_fn_mkdir_p
30337 ac_builddir=.
30338
30339 case "$ac_dir" in
30340 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
30341 *)
30342 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
30343 # A ".." for each directory in $ac_dir_suffix.
30344 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
30345 case $ac_top_builddir_sub in
30346 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
30347 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
30348 esac ;;
30349 esac
30350 ac_abs_top_builddir=$ac_pwd
30351 ac_abs_builddir=$ac_pwd$ac_dir_suffix
30352 # for backward compatibility:
30353 ac_top_builddir=$ac_top_build_prefix
30354
30355 case $srcdir in
30356 .) # We are building in place.
30357 ac_srcdir=.
30358 ac_top_srcdir=$ac_top_builddir_sub
30359 ac_abs_top_srcdir=$ac_pwd ;;
30360 [\\/]* | ?:[\\/]* ) # Absolute name.
30361 ac_srcdir=$srcdir$ac_dir_suffix;
30362 ac_top_srcdir=$srcdir
30363 ac_abs_top_srcdir=$srcdir ;;
30364 *) # Relative name.
30365 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
30366 ac_top_srcdir=$ac_top_build_prefix$srcdir
30367 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
30368 esac
30369 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
30370
30371
30372 case $ac_mode in
30373 :F)
30374 #
30375 # CONFIG_FILE
30376 #
30377
30378 _ACEOF
30379
30380 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30381 # If the template does not know about datarootdir, expand it.
30382 # FIXME: This hack should be removed a few years after 2.60.
30383 ac_datarootdir_hack=; ac_datarootdir_seen=
30384 ac_sed_dataroot='
30385 /datarootdir/ {
30386 p
30387 q
30388 }
30389 /@datadir@/p
30390 /@docdir@/p
30391 /@infodir@/p
30392 /@localedir@/p
30393 /@mandir@/p'
30394 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
30395 *datarootdir*) ac_datarootdir_seen=yes;;
30396 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
30397 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
30398 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
30399 _ACEOF
30400 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30401 ac_datarootdir_hack='
30402 s&@datadir@&$datadir&g
30403 s&@docdir@&$docdir&g
30404 s&@infodir@&$infodir&g
30405 s&@localedir@&$localedir&g
30406 s&@mandir@&$mandir&g
30407 s&\\\${datarootdir}&$datarootdir&g' ;;
30408 esac
30409 _ACEOF
30410
30411 # Neutralize VPATH when `$srcdir' = `.'.
30412 # Shell code in configure.ac might set extrasub.
30413 # FIXME: do we really want to maintain this feature?
30414 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30415 ac_sed_extra="$ac_vpsub
30416 $extrasub
30417 _ACEOF
30418 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30419 :t
30420 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30421 s|@configure_input@|$ac_sed_conf_input|;t t
30422 s&@top_builddir@&$ac_top_builddir_sub&;t t
30423 s&@top_build_prefix@&$ac_top_build_prefix&;t t
30424 s&@srcdir@&$ac_srcdir&;t t
30425 s&@abs_srcdir@&$ac_abs_srcdir&;t t
30426 s&@top_srcdir@&$ac_top_srcdir&;t t
30427 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
30428 s&@builddir@&$ac_builddir&;t t
30429 s&@abs_builddir@&$ac_abs_builddir&;t t
30430 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
30431 $ac_datarootdir_hack
30432 "
30433 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
30434 if $ac_cs_awk_getline; then
30435 $AWK -f "$tmp/subs.awk"
30436 else
30437 $AWK -f "$tmp/subs.awk" | $SHELL
30438 fi >$tmp/out \
30439 || as_fn_error "could not create $ac_file" "$LINENO" 5
30440
30441 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
30442 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
30443 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
30444 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30445 which seems to be undefined. Please make sure it is defined." >&5
30446 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30447 which seems to be undefined. Please make sure it is defined." >&2;}
30448
30449 rm -f "$tmp/stdin"
30450 case $ac_file in
30451 -) cat "$tmp/out" && rm -f "$tmp/out";;
30452 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
30453 esac \
30454 || as_fn_error "could not create $ac_file" "$LINENO" 5
30455 ;;
30456 :H)
30457 #
30458 # CONFIG_HEADER
30459 #
30460 if test x"$ac_file" != x-; then
30461 {
30462 $as_echo "/* $configure_input */" \
30463 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
30464 } >"$tmp/config.h" \
30465 || as_fn_error "could not create $ac_file" "$LINENO" 5
30466 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
30467 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
30468 $as_echo "$as_me: $ac_file is unchanged" >&6;}
30469 else
30470 rm -f "$ac_file"
30471 mv "$tmp/config.h" "$ac_file" \
30472 || as_fn_error "could not create $ac_file" "$LINENO" 5
30473 fi
30474 else
30475 $as_echo "/* $configure_input */" \
30476 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
30477 || as_fn_error "could not create -" "$LINENO" 5
30478 fi
30479 ;;
30480 :L)
30481 #
30482 # CONFIG_LINK
30483 #
30484
30485 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
30486 :
30487 else
30488 # Prefer the file from the source tree if names are identical.
30489 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
30490 ac_source=$srcdir/$ac_source
30491 fi
30492
30493 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
30494 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
30495
30496 if test ! -r "$ac_source"; then
30497 as_fn_error "$ac_source: file not found" "$LINENO" 5
30498 fi
30499 rm -f "$ac_file"
30500
30501 # Try a relative symlink, then a hard link, then a copy.
30502 case $srcdir in
30503 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
30504 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
30505 esac
30506 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
30507 ln "$ac_source" "$ac_file" 2>/dev/null ||
30508 cp -p "$ac_source" "$ac_file" ||
30509 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
30510 fi
30511 ;;
30512 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
30513 $as_echo "$as_me: executing $ac_file commands" >&6;}
30514 ;;
30515 esac
30516
30517
30518 case $ac_file$ac_mode in
30519 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
30520 "gccdepdir":C)
30521 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs build/$DEPDIR
30522 for lang in $subdirs c-family common
30523 do
30524 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs $lang/$DEPDIR
30525 done ;;
30526 "as":F) chmod +x as ;;
30527 "collect-ld":F) chmod +x collect-ld ;;
30528 "nm":F) chmod +x nm ;;
30529 "default":C)
30530 case ${CONFIG_HEADERS} in
30531 *auto-host.h:config.in*)
30532 echo > cstamp-h ;;
30533 esac
30534 # Make sure all the subdirs exist.
30535 for d in $subdirs doc build common c-family
30536 do
30537 test -d $d || mkdir $d
30538 done
30539 ;;
30540
30541 esac
30542 done # for ac_tag
30543
30544
30545 as_fn_exit 0
30546 _ACEOF
30547 ac_clean_files=$ac_clean_files_save
30548
30549 test $ac_write_fail = 0 ||
30550 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
30551
30552
30553 # configure is writing to config.log, and then calls config.status.
30554 # config.status does its own redirection, appending to config.log.
30555 # Unfortunately, on DOS this fails, as config.log is still kept open
30556 # by configure, so config.status won't be able to write to it; its
30557 # output is simply discarded. So we exec the FD to /dev/null,
30558 # effectively closing config.log, so it can be properly (re)opened and
30559 # appended to by config.status. When coming back to configure, we
30560 # need to make the FD available again.
30561 if test "$no_create" != yes; then
30562 ac_cs_success=:
30563 ac_config_status_args=
30564 test "$silent" = yes &&
30565 ac_config_status_args="$ac_config_status_args --quiet"
30566 exec 5>/dev/null
30567 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
30568 exec 5>>config.log
30569 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
30570 # would make configure fail if this is the last instruction.
30571 $ac_cs_success || as_fn_exit $?
30572 fi
30573 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
30574 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
30575 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
30576 fi
30577
30578