Check $READELF_FOR_TARGET for readelf in configure
[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 nocommon_flag=-fno-common
7100 fi
7101
7102 if test x$ac_df_checking != x ; then
7103
7104 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
7105
7106 fi
7107 if test x$ac_assert_checking != x ; then
7108
7109 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
7110
7111 fi
7112 if test x$ac_gimple_checking != x ; then
7113
7114 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
7115
7116 fi
7117
7118 if test x$ac_runtime_checking != x ; then
7119
7120 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
7121
7122 fi
7123 if test x$ac_tree_checking != x ; then
7124
7125 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
7126
7127 TREECHECKING=yes
7128 fi
7129 if test x$ac_types_checking != x ; then
7130
7131 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
7132
7133 fi
7134
7135 if test x$ac_rtl_checking != x ; then
7136
7137 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
7138
7139 fi
7140 if test x$ac_rtlflag_checking != x ; then
7141
7142 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
7143
7144 fi
7145 if test x$ac_gc_checking != x ; then
7146
7147 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
7148
7149 fi
7150 if test x$ac_gc_always_collect != x ; then
7151
7152 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
7153
7154 fi
7155 if test x$ac_fold_checking != x ; then
7156
7157 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
7158
7159 fi
7160 valgrind_path_defines=
7161 valgrind_command=
7162
7163 ac_fn_cxx_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
7164 if test "x$ac_cv_header_valgrind_h" = x""yes; then :
7165 have_valgrind_h=yes
7166 else
7167 have_valgrind_h=no
7168 fi
7169
7170
7171
7172 # It is certainly possible that there's valgrind but no valgrind.h.
7173 # GCC relies on making annotations so we must have both.
7174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
7175 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
7176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7177 /* end confdefs.h. */
7178 #include <valgrind/memcheck.h>
7179 #ifndef VALGRIND_DISCARD
7180 #error VALGRIND_DISCARD not defined
7181 #endif
7182 _ACEOF
7183 if ac_fn_cxx_try_cpp "$LINENO"; then :
7184 gcc_cv_header_valgrind_memcheck_h=yes
7185 else
7186 gcc_cv_header_valgrind_memcheck_h=no
7187 fi
7188 rm -f conftest.err conftest.$ac_ext
7189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
7190 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
7191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
7192 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
7193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7194 /* end confdefs.h. */
7195 #include <memcheck.h>
7196 #ifndef VALGRIND_DISCARD
7197 #error VALGRIND_DISCARD not defined
7198 #endif
7199 _ACEOF
7200 if ac_fn_cxx_try_cpp "$LINENO"; then :
7201 gcc_cv_header_memcheck_h=yes
7202 else
7203 gcc_cv_header_memcheck_h=no
7204 fi
7205 rm -f conftest.err conftest.$ac_ext
7206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
7207 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
7208 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
7209
7210 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
7211
7212 fi
7213 if test $gcc_cv_header_memcheck_h = yes; then
7214
7215 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
7216
7217 fi
7218
7219 if test x$ac_valgrind_checking != x ; then
7220
7221 # Prepare PATH_SEPARATOR.
7222 # The user is always right.
7223 if test "${PATH_SEPARATOR+set}" != set; then
7224 echo "#! /bin/sh" >conf$$.sh
7225 echo "exit 0" >>conf$$.sh
7226 chmod +x conf$$.sh
7227 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7228 PATH_SEPARATOR=';'
7229 else
7230 PATH_SEPARATOR=:
7231 fi
7232 rm -f conf$$.sh
7233 fi
7234
7235 # Find out how to test for executable files. Don't use a zero-byte file,
7236 # as systems may use methods other than mode bits to determine executability.
7237 cat >conf$$.file <<_ASEOF
7238 #! /bin/sh
7239 exit 0
7240 _ASEOF
7241 chmod +x conf$$.file
7242 if test -x conf$$.file >/dev/null 2>&1; then
7243 ac_executable_p="test -x"
7244 else
7245 ac_executable_p="test -f"
7246 fi
7247 rm -f conf$$.file
7248
7249 # Extract the first word of "valgrind", so it can be a program name with args.
7250 set dummy valgrind; ac_word=$2
7251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7252 $as_echo_n "checking for $ac_word... " >&6; }
7253 if test "${ac_cv_path_valgrind_path+set}" = set; then :
7254 $as_echo_n "(cached) " >&6
7255 else
7256 case "$valgrind_path" in
7257 [\\/]* | ?:[\\/]*)
7258 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
7259 ;;
7260 *)
7261 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7262 for ac_dir in $PATH; do
7263 IFS="$ac_save_IFS"
7264 test -z "$ac_dir" && ac_dir=.
7265 for ac_exec_ext in '' $ac_executable_extensions; do
7266 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7267 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
7268 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
7269 break 2
7270 fi
7271 fi
7272 done
7273 done
7274 IFS="$ac_save_IFS"
7275 ;;
7276 esac
7277 fi
7278 valgrind_path="$ac_cv_path_valgrind_path"
7279 if test -n "$valgrind_path"; then
7280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
7281 $as_echo "$valgrind_path" >&6; }
7282 else
7283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7284 $as_echo "no" >&6; }
7285 fi
7286
7287 if test "x$valgrind_path" = "x" \
7288 || (test $have_valgrind_h = no \
7289 && test $gcc_cv_header_memcheck_h = no \
7290 && test $gcc_cv_header_valgrind_memcheck_h = no); then
7291 as_fn_error "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7292 fi
7293 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
7294 valgrind_command="$valgrind_path -q"
7295
7296 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
7297
7298 fi
7299
7300
7301
7302 # Enable code coverage collection
7303 # Check whether --enable-coverage was given.
7304 if test "${enable_coverage+set}" = set; then :
7305 enableval=$enable_coverage; case "${enableval}" in
7306 yes|noopt)
7307 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
7308 ;;
7309 opt)
7310 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
7311 ;;
7312 no)
7313 # a.k.a. --disable-coverage
7314 coverage_flags=""
7315 ;;
7316 *)
7317 as_fn_error "unknown coverage setting $enableval" "$LINENO" 5
7318 ;;
7319 esac
7320 else
7321 coverage_flags=""
7322 fi
7323
7324
7325
7326 # Check whether --enable-gather-detailed-mem-stats was given.
7327 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
7328 enableval=$enable_gather_detailed_mem_stats;
7329 else
7330 enable_gather_detailed_mem_stats=no
7331 fi
7332
7333 gather_stats=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
7334
7335 cat >>confdefs.h <<_ACEOF
7336 #define GATHER_STATISTICS $gather_stats
7337 _ACEOF
7338
7339
7340 # Check whether --enable-valgrind-annotations was given.
7341 if test "${enable_valgrind_annotations+set}" = set; then :
7342 enableval=$enable_valgrind_annotations;
7343 else
7344 enable_valgrind_annotations=no
7345 fi
7346
7347 if test x$enable_valgrind_annotations != xno \
7348 || test x$ac_valgrind_checking != x; then
7349 if (test $have_valgrind_h = no \
7350 && test $gcc_cv_header_memcheck_h = no \
7351 && test $gcc_cv_header_valgrind_memcheck_h = no); then
7352 as_fn_error "*** Can't find valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7353 fi
7354
7355 $as_echo "#define ENABLE_VALGRIND_ANNOTATIONS 1" >>confdefs.h
7356
7357 fi
7358
7359 # -------------------------------
7360 # Miscenalleous configure options
7361 # -------------------------------
7362
7363 # With stabs
7364
7365 # Check whether --with-stabs was given.
7366 if test "${with_stabs+set}" = set; then :
7367 withval=$with_stabs; stabs="$with_stabs"
7368 else
7369 stabs=no
7370 fi
7371
7372
7373 # Determine whether or not multilibs are enabled.
7374 # Check whether --enable-multilib was given.
7375 if test "${enable_multilib+set}" = set; then :
7376 enableval=$enable_multilib;
7377 else
7378 enable_multilib=yes
7379 fi
7380
7381
7382
7383 # Determine whether or not multiarch is enabled.
7384 # Check whether --enable-multiarch was given.
7385 if test "${enable_multiarch+set}" = set; then :
7386 enableval=$enable_multiarch; case "${enableval}" in
7387 yes|no|auto) enable_multiarch=$enableval;;
7388 *) as_fn_error "bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
7389 esac
7390 else
7391 enable_multiarch=auto
7392 fi
7393
7394 if test x${enable_multiarch} = xauto; then
7395 if test x${with_native_system_header_dir} != x; then
7396 ma_msg_suffix=", disabled auto check (configured with --native-system-header-dir)"
7397 enable_multiarch=no
7398 fi
7399 if test x$host != x$target && test "x$with_sysroot" = x; then
7400 ma_msg_suffix=", disabled auto check (cross build configured without --with-sysroot)"
7401 enable_multiarch=no
7402 fi
7403 fi
7404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
7405 $as_echo_n "checking for multiarch configuration... " >&6; }
7406
7407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
7408 $as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
7409
7410 # needed for setting the multiarch name for soft-float/hard-float ABIs
7411
7412
7413
7414 # Enable __cxa_atexit for C++.
7415 # Check whether --enable-__cxa_atexit was given.
7416 if test "${enable___cxa_atexit+set}" = set; then :
7417 enableval=$enable___cxa_atexit;
7418 fi
7419
7420
7421 # Enable C extension for decimal float if target supports it.
7422
7423 # Check whether --enable-decimal-float was given.
7424 if test "${enable_decimal_float+set}" = set; then :
7425 enableval=$enable_decimal_float;
7426 case $enable_decimal_float in
7427 yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
7428 *) as_fn_error "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7429 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7430 esac
7431
7432 else
7433
7434 case $target in
7435 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
7436 i?86*-*-elfiamcu | i?86*-*-gnu* | \
7437 i?86*-*-mingw* | x86_64*-*-mingw* | \
7438 i?86*-*-cygwin* | x86_64*-*-cygwin*)
7439 enable_decimal_float=yes
7440 ;;
7441 *)
7442 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7443 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7444 enable_decimal_float=no
7445 ;;
7446 esac
7447
7448 fi
7449
7450
7451 # x86's use BID format instead of DPD
7452 case x$enable_decimal_float in
7453 xyes)
7454 case $target in
7455 i?86*-*-* | x86_64*-*-*)
7456 enable_decimal_float=bid
7457 ;;
7458 *)
7459 enable_decimal_float=dpd
7460 ;;
7461 esac
7462 default_decimal_float=$enable_decimal_float
7463 ;;
7464 xno)
7465 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7466 # dependency on libdecnumber.
7467 default_decimal_float=dpd
7468 ;;
7469 esac
7470
7471
7472
7473
7474 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7475
7476 cat >>confdefs.h <<_ACEOF
7477 #define ENABLE_DECIMAL_FLOAT $dfp
7478 _ACEOF
7479
7480
7481 # Use default_decimal_float for dependency.
7482 enable_decimal_float=$default_decimal_float
7483
7484 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7485
7486 cat >>confdefs.h <<_ACEOF
7487 #define ENABLE_DECIMAL_BID_FORMAT $bid
7488 _ACEOF
7489
7490
7491 # Enable C extension for fixed-point arithmetic.
7492 # Check whether --enable-fixed-point was given.
7493 if test "${enable_fixed_point+set}" = set; then :
7494 enableval=$enable_fixed_point;
7495 else
7496
7497 case $target in
7498 arm*)
7499 enable_fixed_point=yes
7500 ;;
7501
7502 mips*-*-*)
7503 enable_fixed_point=yes
7504 ;;
7505 *)
7506 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7507 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7508 enable_fixed_point=no
7509 ;;
7510 esac
7511
7512 fi
7513
7514
7515
7516 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7517
7518 cat >>confdefs.h <<_ACEOF
7519 #define ENABLE_FIXED_POINT $fixedpoint
7520 _ACEOF
7521
7522
7523 # Enable threads
7524 # Pass with no value to take the default
7525 # Pass with a value to specify a thread package
7526 # Check whether --enable-threads was given.
7527 if test "${enable_threads+set}" = set; then :
7528 enableval=$enable_threads;
7529 else
7530 enable_threads=''
7531 fi
7532
7533
7534 # Check whether --enable-tls was given.
7535 if test "${enable_tls+set}" = set; then :
7536 enableval=$enable_tls;
7537 case $enable_tls in
7538 yes | no) ;;
7539 *) as_fn_error "'$enable_tls' is an invalid value for --enable-tls.
7540 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7541 esac
7542
7543 else
7544 enable_tls=''
7545 fi
7546
7547
7548 # Check whether --enable-objc-gc was given.
7549 if test "${enable_objc_gc+set}" = set; then :
7550 enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
7551 objc_boehm_gc=''
7552 else
7553 objc_boehm_gc=1
7554 fi
7555 else
7556 objc_boehm_gc=''
7557 fi
7558
7559
7560
7561 # Check whether --with-dwarf2 was given.
7562 if test "${with_dwarf2+set}" = set; then :
7563 withval=$with_dwarf2; dwarf2="$with_dwarf2"
7564 else
7565 dwarf2=no
7566 fi
7567
7568
7569 # Check whether --enable-shared was given.
7570 if test "${enable_shared+set}" = set; then :
7571 enableval=$enable_shared;
7572 case $enable_shared in
7573 yes | no) ;;
7574 *)
7575 enable_shared=no
7576 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7577 for pkg in $enableval; do
7578 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7579 enable_shared=yes
7580 fi
7581 done
7582 IFS="$ac_save_ifs"
7583 ;;
7584 esac
7585
7586 else
7587 enable_shared=yes
7588 fi
7589
7590
7591
7592
7593 # Check whether --with-specs was given.
7594 if test "${with_specs+set}" = set; then :
7595 withval=$with_specs; CONFIGURE_SPECS=$withval
7596 else
7597 CONFIGURE_SPECS=
7598
7599 fi
7600
7601
7602
7603
7604
7605 # Check whether --with-pkgversion was given.
7606 if test "${with_pkgversion+set}" = set; then :
7607 withval=$with_pkgversion; case "$withval" in
7608 yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
7609 no) PKGVERSION= ;;
7610 *) PKGVERSION="($withval) " ;;
7611 esac
7612 else
7613 PKGVERSION="(GCC) "
7614
7615 fi
7616
7617
7618
7619
7620
7621 # Check whether --with-bugurl was given.
7622 if test "${with_bugurl+set}" = set; then :
7623 withval=$with_bugurl; case "$withval" in
7624 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
7625 no) BUGURL=
7626 ;;
7627 *) BUGURL="$withval"
7628 ;;
7629 esac
7630 else
7631 BUGURL="http://gcc.gnu.org/bugs.html"
7632
7633 fi
7634
7635 case ${BUGURL} in
7636 "")
7637 REPORT_BUGS_TO=
7638 REPORT_BUGS_TEXI=
7639 ;;
7640 *)
7641 REPORT_BUGS_TO="<$BUGURL>"
7642 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
7643 ;;
7644 esac;
7645
7646
7647
7648
7649 # Sanity check enable_languages in case someone does not run the toplevel
7650 # configure # script.
7651 # Check whether --enable-languages was given.
7652 if test "${enable_languages+set}" = set; then :
7653 enableval=$enable_languages; case ,${enable_languages}, in
7654 ,,|,yes,)
7655 # go safe -- we cannot be much sure without the toplevel
7656 # configure's
7657 # analysis of which target libs are present and usable
7658 enable_languages=c
7659 ;;
7660 *,all,*)
7661 as_fn_error "only the toplevel supports --enable-languages=all" "$LINENO" 5
7662 ;;
7663 *,c,*)
7664 ;;
7665 *)
7666 enable_languages=c,${enable_languages}
7667 ;;
7668 esac
7669 else
7670 enable_languages=c
7671 fi
7672
7673
7674 if test x"$enable_as_accelerator_for" != x; then
7675
7676 $as_echo "#define ACCEL_COMPILER 1" >>confdefs.h
7677
7678 enable_as_accelerator=yes
7679 case "${target}" in
7680 *-intelmicemul-*)
7681 # In this case we expect offload compiler to be built as native, so we
7682 # need to rename the driver to avoid clashes with host's drivers.
7683 program_transform_name="s&^&${target}-&" ;;
7684 esac
7685 sedscript="s#${target_noncanonical}#${enable_as_accelerator_for}-accel-${target_noncanonical}#"
7686 program_transform_name=`echo $program_transform_name | sed $sedscript`
7687 accel_dir_suffix=/accel/${target_noncanonical}
7688 real_target_noncanonical=${enable_as_accelerator_for}
7689 fi
7690
7691
7692
7693
7694 for tgt in `echo $enable_offload_targets | sed 's/,/ /g'`; do
7695 tgt=`echo $tgt | sed 's/=.*//'`
7696 if test x"$offload_targets" = x; then
7697 offload_targets=$tgt
7698 else
7699 offload_targets="$offload_targets,$tgt"
7700 fi
7701 done
7702
7703 cat >>confdefs.h <<_ACEOF
7704 #define OFFLOAD_TARGETS "$offload_targets"
7705 _ACEOF
7706
7707 if test x"$offload_targets" != x; then
7708
7709 $as_echo "#define ENABLE_OFFLOADING 1" >>confdefs.h
7710
7711 fi
7712
7713
7714 # Check whether --with-multilib-list was given.
7715 if test "${with_multilib_list+set}" = set; then :
7716 withval=$with_multilib_list; :
7717 else
7718 with_multilib_list=default
7719 fi
7720
7721
7722 # -------------------------
7723 # Checks for other programs
7724 # -------------------------
7725
7726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7727 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7728 set x ${MAKE-make}
7729 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7730 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7731 $as_echo_n "(cached) " >&6
7732 else
7733 cat >conftest.make <<\_ACEOF
7734 SHELL = /bin/sh
7735 all:
7736 @echo '@@@%%%=$(MAKE)=@@@%%%'
7737 _ACEOF
7738 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7739 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7740 *@@@%%%=?*=@@@%%%*)
7741 eval ac_cv_prog_make_${ac_make}_set=yes;;
7742 *)
7743 eval ac_cv_prog_make_${ac_make}_set=no;;
7744 esac
7745 rm -f conftest.make
7746 fi
7747 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7749 $as_echo "yes" >&6; }
7750 SET_MAKE=
7751 else
7752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7753 $as_echo "no" >&6; }
7754 SET_MAKE="MAKE=${MAKE-make}"
7755 fi
7756
7757
7758 # Find some useful tools
7759 for ac_prog in gawk mawk nawk awk
7760 do
7761 # Extract the first word of "$ac_prog", so it can be a program name with args.
7762 set dummy $ac_prog; ac_word=$2
7763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7764 $as_echo_n "checking for $ac_word... " >&6; }
7765 if test "${ac_cv_prog_AWK+set}" = set; then :
7766 $as_echo_n "(cached) " >&6
7767 else
7768 if test -n "$AWK"; then
7769 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7770 else
7771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7772 for as_dir in $PATH
7773 do
7774 IFS=$as_save_IFS
7775 test -z "$as_dir" && as_dir=.
7776 for ac_exec_ext in '' $ac_executable_extensions; do
7777 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7778 ac_cv_prog_AWK="$ac_prog"
7779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7780 break 2
7781 fi
7782 done
7783 done
7784 IFS=$as_save_IFS
7785
7786 fi
7787 fi
7788 AWK=$ac_cv_prog_AWK
7789 if test -n "$AWK"; then
7790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7791 $as_echo "$AWK" >&6; }
7792 else
7793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7794 $as_echo "no" >&6; }
7795 fi
7796
7797
7798 test -n "$AWK" && break
7799 done
7800
7801 # We need awk to create options.c and options.h.
7802 # Bail out if it's missing.
7803 case ${AWK} in
7804 "") as_fn_error "can't build without awk, bailing out" "$LINENO" 5 ;;
7805 esac
7806
7807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7808 $as_echo_n "checking whether ln -s works... " >&6; }
7809 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7810 $as_echo_n "(cached) " >&6
7811 else
7812 rm -f conftestdata_t
7813 echo >conftestdata_f
7814 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7815 then
7816 gcc_cv_prog_LN_S="ln -s"
7817 else
7818 if ln conftestdata_f conftestdata_t 2>/dev/null
7819 then
7820 gcc_cv_prog_LN_S=ln
7821 else
7822 if cp -p conftestdata_f conftestdata_t 2>/dev/null
7823 then
7824 gcc_cv_prog_LN_S="cp -p"
7825 else
7826 gcc_cv_prog_LN_S=cp
7827 fi
7828 fi
7829 fi
7830 rm -f conftestdata_f conftestdata_t
7831
7832 fi
7833 LN_S="$gcc_cv_prog_LN_S"
7834 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7836 $as_echo "yes" >&6; }
7837 else
7838 if test "$gcc_cv_prog_LN_S" = "ln"; then
7839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7840 $as_echo "no, using ln" >&6; }
7841 else
7842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7843 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7844 fi
7845 fi
7846
7847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7848 $as_echo_n "checking whether ln works... " >&6; }
7849 if test "${acx_cv_prog_LN+set}" = set; then :
7850 $as_echo_n "(cached) " >&6
7851 else
7852 rm -f conftestdata_t
7853 echo >conftestdata_f
7854 if ln conftestdata_f conftestdata_t 2>/dev/null
7855 then
7856 acx_cv_prog_LN=ln
7857 else
7858 acx_cv_prog_LN=no
7859 fi
7860 rm -f conftestdata_f conftestdata_t
7861
7862 fi
7863 if test $acx_cv_prog_LN = no; then
7864 LN="$LN_S"
7865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7866 $as_echo "no, using $LN" >&6; }
7867 else
7868 LN="$acx_cv_prog_LN"
7869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7870 $as_echo "yes" >&6; }
7871 fi
7872
7873 if test -n "$ac_tool_prefix"; then
7874 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7875 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7877 $as_echo_n "checking for $ac_word... " >&6; }
7878 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7879 $as_echo_n "(cached) " >&6
7880 else
7881 if test -n "$RANLIB"; then
7882 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7883 else
7884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7885 for as_dir in $PATH
7886 do
7887 IFS=$as_save_IFS
7888 test -z "$as_dir" && as_dir=.
7889 for ac_exec_ext in '' $ac_executable_extensions; do
7890 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7891 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7893 break 2
7894 fi
7895 done
7896 done
7897 IFS=$as_save_IFS
7898
7899 fi
7900 fi
7901 RANLIB=$ac_cv_prog_RANLIB
7902 if test -n "$RANLIB"; then
7903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7904 $as_echo "$RANLIB" >&6; }
7905 else
7906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7907 $as_echo "no" >&6; }
7908 fi
7909
7910
7911 fi
7912 if test -z "$ac_cv_prog_RANLIB"; then
7913 ac_ct_RANLIB=$RANLIB
7914 # Extract the first word of "ranlib", so it can be a program name with args.
7915 set dummy ranlib; ac_word=$2
7916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7917 $as_echo_n "checking for $ac_word... " >&6; }
7918 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7919 $as_echo_n "(cached) " >&6
7920 else
7921 if test -n "$ac_ct_RANLIB"; then
7922 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7923 else
7924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7925 for as_dir in $PATH
7926 do
7927 IFS=$as_save_IFS
7928 test -z "$as_dir" && as_dir=.
7929 for ac_exec_ext in '' $ac_executable_extensions; do
7930 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7931 ac_cv_prog_ac_ct_RANLIB="ranlib"
7932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7933 break 2
7934 fi
7935 done
7936 done
7937 IFS=$as_save_IFS
7938
7939 fi
7940 fi
7941 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7942 if test -n "$ac_ct_RANLIB"; then
7943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7944 $as_echo "$ac_ct_RANLIB" >&6; }
7945 else
7946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7947 $as_echo "no" >&6; }
7948 fi
7949
7950 if test "x$ac_ct_RANLIB" = x; then
7951 RANLIB=":"
7952 else
7953 case $cross_compiling:$ac_tool_warned in
7954 yes:)
7955 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7956 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7957 ac_tool_warned=yes ;;
7958 esac
7959 RANLIB=$ac_ct_RANLIB
7960 fi
7961 else
7962 RANLIB="$ac_cv_prog_RANLIB"
7963 fi
7964
7965 ranlib_flags=""
7966
7967
7968 # Find a good install program. We prefer a C program (faster),
7969 # so one script is as good as another. But avoid the broken or
7970 # incompatible versions:
7971 # SysV /etc/install, /usr/sbin/install
7972 # SunOS /usr/etc/install
7973 # IRIX /sbin/install
7974 # AIX /bin/install
7975 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7976 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7977 # ./install, which can be erroneously created by make from ./install.sh.
7978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
7979 $as_echo_n "checking for a BSD compatible install... " >&6; }
7980 if test -z "$INSTALL"; then
7981 if test "${ac_cv_path_install+set}" = set; then :
7982 $as_echo_n "(cached) " >&6
7983 else
7984 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
7985 for ac_dir in $PATH; do
7986 # Account for people who put trailing slashes in PATH elements.
7987 case "$ac_dir/" in
7988 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
7989 *)
7990 # OSF1 and SCO ODT 3.0 have their own names for install.
7991 for ac_prog in ginstall scoinst install; do
7992 if test -f $ac_dir/$ac_prog; then
7993 if test $ac_prog = install &&
7994 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
7995 # AIX install. It has an incompatible calling convention.
7996 # OSF/1 installbsd also uses dspmsg, but is usable.
7997 :
7998 else
7999 ac_cv_path_install="$ac_dir/$ac_prog -c"
8000 break 2
8001 fi
8002 fi
8003 done
8004 ;;
8005 esac
8006 done
8007 IFS="$ac_save_IFS"
8008
8009 fi
8010 if test "${ac_cv_path_install+set}" = set; then
8011 INSTALL="$ac_cv_path_install"
8012 else
8013 # As a last resort, use the slow shell script. We don't cache a
8014 # path for INSTALL within a source directory, because that will
8015 # break other packages using the cache if that directory is
8016 # removed, or if the path is relative.
8017 INSTALL="$ac_install_sh"
8018 fi
8019 fi
8020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
8021 $as_echo "$INSTALL" >&6; }
8022
8023 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8024 # It thinks the first close brace ends the variable substitution.
8025 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8026
8027 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8028
8029
8030 # See if cmp has --ignore-initial.
8031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
8032 $as_echo_n "checking for cmp's capabilities... " >&6; }
8033 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
8034 $as_echo_n "(cached) " >&6
8035 else
8036 echo abfoo >t1
8037 echo cdfoo >t2
8038 gcc_cv_prog_cmp_skip=slowcompare
8039 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
8040 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
8041 :
8042 else
8043 gcc_cv_prog_cmp_skip=gnucompare
8044 fi
8045 fi
8046 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
8047 if cmp t1 t2 2 2 > /dev/null 2>&1; then
8048 if cmp t1 t2 1 1 > /dev/null 2>&1; then
8049 :
8050 else
8051 gcc_cv_prog_cmp_skip=fastcompare
8052 fi
8053 fi
8054 fi
8055 rm t1 t2
8056
8057 fi
8058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
8059 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
8060 make_compare_target=$gcc_cv_prog_cmp_skip
8061
8062
8063
8064 # See if we have the mktemp command.
8065 # Extract the first word of "mktemp", so it can be a program name with args.
8066 set dummy mktemp; ac_word=$2
8067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8068 $as_echo_n "checking for $ac_word... " >&6; }
8069 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
8070 $as_echo_n "(cached) " >&6
8071 else
8072 if test -n "$have_mktemp_command"; then
8073 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
8074 else
8075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8076 for as_dir in $PATH
8077 do
8078 IFS=$as_save_IFS
8079 test -z "$as_dir" && as_dir=.
8080 for ac_exec_ext in '' $ac_executable_extensions; do
8081 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8082 ac_cv_prog_have_mktemp_command="yes"
8083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8084 break 2
8085 fi
8086 done
8087 done
8088 IFS=$as_save_IFS
8089
8090 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
8091 fi
8092 fi
8093 have_mktemp_command=$ac_cv_prog_have_mktemp_command
8094 if test -n "$have_mktemp_command"; then
8095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
8096 $as_echo "$have_mktemp_command" >&6; }
8097 else
8098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8099 $as_echo "no" >&6; }
8100 fi
8101
8102
8103
8104 # See if makeinfo has been installed and is modern enough
8105 # that we can use it.
8106
8107 # Extract the first word of "makeinfo", so it can be a program name with args.
8108 set dummy makeinfo; ac_word=$2
8109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8110 $as_echo_n "checking for $ac_word... " >&6; }
8111 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
8112 $as_echo_n "(cached) " >&6
8113 else
8114 if test -n "$MAKEINFO"; then
8115 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
8116 else
8117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8118 for as_dir in $PATH
8119 do
8120 IFS=$as_save_IFS
8121 test -z "$as_dir" && as_dir=.
8122 for ac_exec_ext in '' $ac_executable_extensions; do
8123 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8124 ac_cv_prog_MAKEINFO="makeinfo"
8125 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8126 break 2
8127 fi
8128 done
8129 done
8130 IFS=$as_save_IFS
8131
8132 fi
8133 fi
8134 MAKEINFO=$ac_cv_prog_MAKEINFO
8135 if test -n "$MAKEINFO"; then
8136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8137 $as_echo "$MAKEINFO" >&6; }
8138 else
8139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8140 $as_echo "no" >&6; }
8141 fi
8142
8143
8144 if test -n "$MAKEINFO"; then
8145 # Found it, now check the version.
8146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
8147 $as_echo_n "checking for modern makeinfo... " >&6; }
8148 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
8149 $as_echo_n "(cached) " >&6
8150 else
8151 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
8152 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
8153
8154 case $ac_prog_version in
8155 '') gcc_cv_prog_makeinfo_modern=no;;
8156 4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
8157 *) gcc_cv_prog_makeinfo_modern=no;;
8158 esac
8159
8160 fi
8161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
8162 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
8163 else
8164 gcc_cv_prog_makeinfo_modern=no
8165 fi
8166 if test $gcc_cv_prog_makeinfo_modern = no; then
8167 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
8168 fi
8169
8170 if test $gcc_cv_prog_makeinfo_modern = no; then
8171 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8172 *** Makeinfo is missing or too old.
8173 *** Info documentation will not be built." >&5
8174 $as_echo "$as_me: WARNING:
8175 *** Makeinfo is missing or too old.
8176 *** Info documentation will not be built." >&2;}
8177 BUILD_INFO=
8178 else
8179 BUILD_INFO=info
8180 fi
8181
8182
8183 # Is pod2man recent enough to regenerate manpages?
8184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
8185 $as_echo_n "checking for recent Pod::Man... " >&6; }
8186 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
8187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8188 $as_echo "yes" >&6; }
8189 GENERATED_MANPAGES=generated-manpages
8190 else
8191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8192 $as_echo "no" >&6; }
8193 GENERATED_MANPAGES=
8194 fi
8195
8196
8197 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
8198
8199 # How about lex?
8200 for ac_prog in flex
8201 do
8202 # Extract the first word of "$ac_prog", so it can be a program name with args.
8203 set dummy $ac_prog; ac_word=$2
8204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8205 $as_echo_n "checking for $ac_word... " >&6; }
8206 if test "${ac_cv_prog_FLEX+set}" = set; then :
8207 $as_echo_n "(cached) " >&6
8208 else
8209 if test -n "$FLEX"; then
8210 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
8211 else
8212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8213 for as_dir in $PATH
8214 do
8215 IFS=$as_save_IFS
8216 test -z "$as_dir" && as_dir=.
8217 for ac_exec_ext in '' $ac_executable_extensions; do
8218 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8219 ac_cv_prog_FLEX="$ac_prog"
8220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8221 break 2
8222 fi
8223 done
8224 done
8225 IFS=$as_save_IFS
8226
8227 fi
8228 fi
8229 FLEX=$ac_cv_prog_FLEX
8230 if test -n "$FLEX"; then
8231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
8232 $as_echo "$FLEX" >&6; }
8233 else
8234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8235 $as_echo "no" >&6; }
8236 fi
8237
8238
8239 test -n "$FLEX" && break
8240 done
8241 test -n "$FLEX" || FLEX="$MISSING flex"
8242
8243
8244 # Bison?
8245 for ac_prog in bison
8246 do
8247 # Extract the first word of "$ac_prog", so it can be a program name with args.
8248 set dummy $ac_prog; ac_word=$2
8249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8250 $as_echo_n "checking for $ac_word... " >&6; }
8251 if test "${ac_cv_prog_BISON+set}" = set; then :
8252 $as_echo_n "(cached) " >&6
8253 else
8254 if test -n "$BISON"; then
8255 ac_cv_prog_BISON="$BISON" # Let the user override the test.
8256 else
8257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8258 for as_dir in $PATH
8259 do
8260 IFS=$as_save_IFS
8261 test -z "$as_dir" && as_dir=.
8262 for ac_exec_ext in '' $ac_executable_extensions; do
8263 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8264 ac_cv_prog_BISON="$ac_prog"
8265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8266 break 2
8267 fi
8268 done
8269 done
8270 IFS=$as_save_IFS
8271
8272 fi
8273 fi
8274 BISON=$ac_cv_prog_BISON
8275 if test -n "$BISON"; then
8276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
8277 $as_echo "$BISON" >&6; }
8278 else
8279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8280 $as_echo "no" >&6; }
8281 fi
8282
8283
8284 test -n "$BISON" && break
8285 done
8286 test -n "$BISON" || BISON="$MISSING bison"
8287
8288
8289 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
8290 # check for build == host before using them.
8291
8292 # NM
8293 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
8294 && test -d ../binutils ; then
8295 NM='${objdir}/../binutils/nm-new'
8296 else
8297 # Extract the first word of "nm", so it can be a program name with args.
8298 set dummy nm; ac_word=$2
8299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8300 $as_echo_n "checking for $ac_word... " >&6; }
8301 if test "${ac_cv_prog_NM+set}" = set; then :
8302 $as_echo_n "(cached) " >&6
8303 else
8304 if test -n "$NM"; then
8305 ac_cv_prog_NM="$NM" # Let the user override the test.
8306 else
8307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8308 for as_dir in $PATH
8309 do
8310 IFS=$as_save_IFS
8311 test -z "$as_dir" && as_dir=.
8312 for ac_exec_ext in '' $ac_executable_extensions; do
8313 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8314 ac_cv_prog_NM="nm"
8315 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8316 break 2
8317 fi
8318 done
8319 done
8320 IFS=$as_save_IFS
8321
8322 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
8323 fi
8324 fi
8325 NM=$ac_cv_prog_NM
8326 if test -n "$NM"; then
8327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8328 $as_echo "$NM" >&6; }
8329 else
8330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8331 $as_echo "no" >&6; }
8332 fi
8333
8334
8335 fi
8336
8337 # AR
8338 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
8339 && test -d ../binutils ; then
8340 AR='${objdir}/../binutils/ar'
8341 else
8342 # Extract the first word of "ar", so it can be a program name with args.
8343 set dummy ar; ac_word=$2
8344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8345 $as_echo_n "checking for $ac_word... " >&6; }
8346 if test "${ac_cv_prog_AR+set}" = set; then :
8347 $as_echo_n "(cached) " >&6
8348 else
8349 if test -n "$AR"; then
8350 ac_cv_prog_AR="$AR" # Let the user override the test.
8351 else
8352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8353 for as_dir in $PATH
8354 do
8355 IFS=$as_save_IFS
8356 test -z "$as_dir" && as_dir=.
8357 for ac_exec_ext in '' $ac_executable_extensions; do
8358 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8359 ac_cv_prog_AR="ar"
8360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8361 break 2
8362 fi
8363 done
8364 done
8365 IFS=$as_save_IFS
8366
8367 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8368 fi
8369 fi
8370 AR=$ac_cv_prog_AR
8371 if test -n "$AR"; then
8372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8373 $as_echo "$AR" >&6; }
8374 else
8375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8376 $as_echo "no" >&6; }
8377 fi
8378
8379
8380 fi
8381
8382 # The jit documentation looks better if built with sphinx, but can be
8383 # built with texinfo if sphinx is not available.
8384 # Set "doc_build_sys" to "sphinx" or "texinfo" accordingly.
8385 # Extract the first word of "sphinx-build", so it can be a program name with args.
8386 set dummy sphinx-build; ac_word=$2
8387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8388 $as_echo_n "checking for $ac_word... " >&6; }
8389 if test "${ac_cv_prog_doc_build_sys+set}" = set; then :
8390 $as_echo_n "(cached) " >&6
8391 else
8392 if test -n "$doc_build_sys"; then
8393 ac_cv_prog_doc_build_sys="$doc_build_sys" # Let the user override the test.
8394 else
8395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8396 for as_dir in $PATH
8397 do
8398 IFS=$as_save_IFS
8399 test -z "$as_dir" && as_dir=.
8400 for ac_exec_ext in '' $ac_executable_extensions; do
8401 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8402 ac_cv_prog_doc_build_sys="sphinx"
8403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8404 break 2
8405 fi
8406 done
8407 done
8408 IFS=$as_save_IFS
8409
8410 test -z "$ac_cv_prog_doc_build_sys" && ac_cv_prog_doc_build_sys="texinfo"
8411 fi
8412 fi
8413 doc_build_sys=$ac_cv_prog_doc_build_sys
8414 if test -n "$doc_build_sys"; then
8415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doc_build_sys" >&5
8416 $as_echo "$doc_build_sys" >&6; }
8417 else
8418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8419 $as_echo "no" >&6; }
8420 fi
8421
8422
8423
8424 # --------------------
8425 # Checks for C headers
8426 # --------------------
8427
8428 # Need to reject headers which give warnings, so that the -Werror bootstrap
8429 # works later. *sigh* This needs to come before all header checks.
8430
8431 ac_c_preproc_warn_flag=yes
8432
8433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8434 $as_echo_n "checking for ANSI C header files... " >&6; }
8435 if test "${ac_cv_header_stdc+set}" = set; then :
8436 $as_echo_n "(cached) " >&6
8437 else
8438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8439 /* end confdefs.h. */
8440 #include <stdlib.h>
8441 #include <stdarg.h>
8442 #include <string.h>
8443 #include <float.h>
8444
8445 int
8446 main ()
8447 {
8448
8449 ;
8450 return 0;
8451 }
8452 _ACEOF
8453 if ac_fn_cxx_try_compile "$LINENO"; then :
8454 ac_cv_header_stdc=yes
8455 else
8456 ac_cv_header_stdc=no
8457 fi
8458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8459
8460 if test $ac_cv_header_stdc = yes; then
8461 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8463 /* end confdefs.h. */
8464 #include <string.h>
8465
8466 _ACEOF
8467 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8468 $EGREP "memchr" >/dev/null 2>&1; then :
8469
8470 else
8471 ac_cv_header_stdc=no
8472 fi
8473 rm -f conftest*
8474
8475 fi
8476
8477 if test $ac_cv_header_stdc = yes; then
8478 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8480 /* end confdefs.h. */
8481 #include <stdlib.h>
8482
8483 _ACEOF
8484 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8485 $EGREP "free" >/dev/null 2>&1; then :
8486
8487 else
8488 ac_cv_header_stdc=no
8489 fi
8490 rm -f conftest*
8491
8492 fi
8493
8494 if test $ac_cv_header_stdc = yes; then
8495 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8496 if test "$cross_compiling" = yes; then :
8497 :
8498 else
8499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8500 /* end confdefs.h. */
8501 #include <ctype.h>
8502 #include <stdlib.h>
8503 #if ((' ' & 0x0FF) == 0x020)
8504 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8505 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8506 #else
8507 # define ISLOWER(c) \
8508 (('a' <= (c) && (c) <= 'i') \
8509 || ('j' <= (c) && (c) <= 'r') \
8510 || ('s' <= (c) && (c) <= 'z'))
8511 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8512 #endif
8513
8514 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8515 int
8516 main ()
8517 {
8518 int i;
8519 for (i = 0; i < 256; i++)
8520 if (XOR (islower (i), ISLOWER (i))
8521 || toupper (i) != TOUPPER (i))
8522 return 2;
8523 return 0;
8524 }
8525 _ACEOF
8526 if ac_fn_cxx_try_run "$LINENO"; then :
8527
8528 else
8529 ac_cv_header_stdc=no
8530 fi
8531 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8532 conftest.$ac_objext conftest.beam conftest.$ac_ext
8533 fi
8534
8535 fi
8536 fi
8537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8538 $as_echo "$ac_cv_header_stdc" >&6; }
8539 if test $ac_cv_header_stdc = yes; then
8540
8541 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8542
8543 fi
8544
8545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8546 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8547 if test "${ac_cv_header_time+set}" = set; then :
8548 $as_echo_n "(cached) " >&6
8549 else
8550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8551 /* end confdefs.h. */
8552 #include <sys/types.h>
8553 #include <sys/time.h>
8554 #include <time.h>
8555
8556 int
8557 main ()
8558 {
8559 if ((struct tm *) 0)
8560 return 0;
8561 ;
8562 return 0;
8563 }
8564 _ACEOF
8565 if ac_fn_cxx_try_compile "$LINENO"; then :
8566 ac_cv_header_time=yes
8567 else
8568 ac_cv_header_time=no
8569 fi
8570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8571 fi
8572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8573 $as_echo "$ac_cv_header_time" >&6; }
8574 if test $ac_cv_header_time = yes; then
8575
8576 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8577
8578 fi
8579
8580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8581 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8582 if test "${gcc_cv_header_string+set}" = set; then :
8583 $as_echo_n "(cached) " >&6
8584 else
8585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8586 /* end confdefs.h. */
8587 #include <string.h>
8588 #include <strings.h>
8589 int
8590 main ()
8591 {
8592
8593 ;
8594 return 0;
8595 }
8596 _ACEOF
8597 if ac_fn_cxx_try_compile "$LINENO"; then :
8598 gcc_cv_header_string=yes
8599 else
8600 gcc_cv_header_string=no
8601 fi
8602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8603 fi
8604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8605 $as_echo "$gcc_cv_header_string" >&6; }
8606 if test $gcc_cv_header_string = yes; then
8607
8608 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8609
8610 fi
8611
8612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8613 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8614 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8615 $as_echo_n "(cached) " >&6
8616 else
8617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8618 /* end confdefs.h. */
8619 #include <sys/types.h>
8620 #include <sys/wait.h>
8621 #ifndef WEXITSTATUS
8622 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8623 #endif
8624 #ifndef WIFEXITED
8625 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8626 #endif
8627
8628 int
8629 main ()
8630 {
8631 int s;
8632 wait (&s);
8633 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8634 ;
8635 return 0;
8636 }
8637 _ACEOF
8638 if ac_fn_cxx_try_compile "$LINENO"; then :
8639 ac_cv_header_sys_wait_h=yes
8640 else
8641 ac_cv_header_sys_wait_h=no
8642 fi
8643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8644 fi
8645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8646 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8647 if test $ac_cv_header_sys_wait_h = yes; then
8648
8649 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8650
8651 fi
8652
8653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
8654 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
8655 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then :
8656 $as_echo_n "(cached) " >&6
8657 else
8658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8659 /* end confdefs.h. */
8660 #include <sys/types.h>
8661 #include <termios.h>
8662 #ifdef TIOCGWINSZ
8663 yes
8664 #endif
8665
8666 _ACEOF
8667 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8668 $EGREP "yes" >/dev/null 2>&1; then :
8669 ac_cv_sys_tiocgwinsz_in_termios_h=yes
8670 else
8671 ac_cv_sys_tiocgwinsz_in_termios_h=no
8672 fi
8673 rm -f conftest*
8674
8675 fi
8676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
8677 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
8678
8679 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
8680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
8681 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
8682 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then :
8683 $as_echo_n "(cached) " >&6
8684 else
8685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8686 /* end confdefs.h. */
8687 #include <sys/types.h>
8688 #include <sys/ioctl.h>
8689 #ifdef TIOCGWINSZ
8690 yes
8691 #endif
8692
8693 _ACEOF
8694 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8695 $EGREP "yes" >/dev/null 2>&1; then :
8696 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
8697 else
8698 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
8699 fi
8700 rm -f conftest*
8701
8702 fi
8703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
8704 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
8705
8706 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
8707
8708 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
8709
8710 fi
8711 fi
8712
8713 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8714 fcntl.h ftw.h unistd.h sys/file.h sys/time.h sys/mman.h \
8715 sys/resource.h sys/param.h sys/times.h sys/stat.h \
8716 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8717 do :
8718 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8719 ac_fn_cxx_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
8720 eval as_val=\$$as_ac_Header
8721 if test "x$as_val" = x""yes; then :
8722 cat >>confdefs.h <<_ACEOF
8723 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8724 _ACEOF
8725
8726 fi
8727 done
8728
8729
8730 # Check for thread headers.
8731 ac_fn_cxx_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
8732 if test "x$ac_cv_header_thread_h" = x""yes; then :
8733 have_thread_h=yes
8734 else
8735 have_thread_h=
8736 fi
8737
8738 ac_fn_cxx_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8739 if test "x$ac_cv_header_pthread_h" = x""yes; then :
8740 have_pthread_h=yes
8741 else
8742 have_pthread_h=
8743 fi
8744
8745
8746 # These tests can't be done till we know if we have limits.h.
8747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8748 $as_echo_n "checking for CHAR_BIT... " >&6; }
8749 if test "${gcc_cv_decl_char_bit+set}" = set; then :
8750 $as_echo_n "(cached) " >&6
8751 else
8752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8753 /* end confdefs.h. */
8754 #ifdef HAVE_LIMITS_H
8755 #include <limits.h>
8756 #endif
8757 #ifdef CHAR_BIT
8758 found
8759 #endif
8760 _ACEOF
8761 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8762 $EGREP "found" >/dev/null 2>&1; then :
8763 gcc_cv_decl_char_bit=yes
8764 else
8765 gcc_cv_decl_char_bit=no
8766 fi
8767 rm -f conftest*
8768
8769
8770 fi
8771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8772 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8773 if test $gcc_cv_decl_char_bit = no; then
8774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8775 $as_echo_n "checking number of bits in a byte... " >&6; }
8776 if test "${gcc_cv_c_nbby+set}" = set; then :
8777 $as_echo_n "(cached) " >&6
8778 else
8779 i=8
8780 gcc_cv_c_nbby=
8781 while test $i -lt 65; do
8782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8783 /* end confdefs.h. */
8784
8785 int
8786 main ()
8787 {
8788 switch(0) {
8789 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8790 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8791 ; }
8792 ;
8793 return 0;
8794 }
8795 _ACEOF
8796 if ac_fn_cxx_try_compile "$LINENO"; then :
8797 gcc_cv_c_nbby=$i; break
8798 fi
8799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8800 i=`expr $i + 1`
8801 done
8802 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
8803
8804 fi
8805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8806 $as_echo "$gcc_cv_c_nbby" >&6; }
8807 if test $gcc_cv_c_nbby = failed; then
8808 as_fn_error "cannot determine number of bits in a byte" "$LINENO" 5
8809 else
8810
8811 cat >>confdefs.h <<_ACEOF
8812 #define CHAR_BIT $gcc_cv_c_nbby
8813 _ACEOF
8814
8815 fi
8816 fi
8817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8818 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8819 if test "${ac_cv_c_bigendian+set}" = set; then :
8820 $as_echo_n "(cached) " >&6
8821 else
8822 ac_cv_c_bigendian=unknown
8823 # See if we're dealing with a universal compiler.
8824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8825 /* end confdefs.h. */
8826 #ifndef __APPLE_CC__
8827 not a universal capable compiler
8828 #endif
8829 typedef int dummy;
8830
8831 _ACEOF
8832 if ac_fn_cxx_try_compile "$LINENO"; then :
8833
8834 # Check for potential -arch flags. It is not universal unless
8835 # there are at least two -arch flags with different values.
8836 ac_arch=
8837 ac_prev=
8838 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8839 if test -n "$ac_prev"; then
8840 case $ac_word in
8841 i?86 | x86_64 | ppc | ppc64)
8842 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8843 ac_arch=$ac_word
8844 else
8845 ac_cv_c_bigendian=universal
8846 break
8847 fi
8848 ;;
8849 esac
8850 ac_prev=
8851 elif test "x$ac_word" = "x-arch"; then
8852 ac_prev=arch
8853 fi
8854 done
8855 fi
8856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8857 if test $ac_cv_c_bigendian = unknown; then
8858 # See if sys/param.h defines the BYTE_ORDER macro.
8859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8860 /* end confdefs.h. */
8861 #include <sys/types.h>
8862 #include <sys/param.h>
8863
8864 int
8865 main ()
8866 {
8867 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8868 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8869 && LITTLE_ENDIAN)
8870 bogus endian macros
8871 #endif
8872
8873 ;
8874 return 0;
8875 }
8876 _ACEOF
8877 if ac_fn_cxx_try_compile "$LINENO"; then :
8878 # It does; now see whether it defined to BIG_ENDIAN or not.
8879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8880 /* end confdefs.h. */
8881 #include <sys/types.h>
8882 #include <sys/param.h>
8883
8884 int
8885 main ()
8886 {
8887 #if BYTE_ORDER != BIG_ENDIAN
8888 not big endian
8889 #endif
8890
8891 ;
8892 return 0;
8893 }
8894 _ACEOF
8895 if ac_fn_cxx_try_compile "$LINENO"; then :
8896 ac_cv_c_bigendian=yes
8897 else
8898 ac_cv_c_bigendian=no
8899 fi
8900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8901 fi
8902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8903 fi
8904 if test $ac_cv_c_bigendian = unknown; then
8905 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8907 /* end confdefs.h. */
8908 #include <limits.h>
8909
8910 int
8911 main ()
8912 {
8913 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8914 bogus endian macros
8915 #endif
8916
8917 ;
8918 return 0;
8919 }
8920 _ACEOF
8921 if ac_fn_cxx_try_compile "$LINENO"; then :
8922 # It does; now see whether it defined to _BIG_ENDIAN or not.
8923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8924 /* end confdefs.h. */
8925 #include <limits.h>
8926
8927 int
8928 main ()
8929 {
8930 #ifndef _BIG_ENDIAN
8931 not big endian
8932 #endif
8933
8934 ;
8935 return 0;
8936 }
8937 _ACEOF
8938 if ac_fn_cxx_try_compile "$LINENO"; then :
8939 ac_cv_c_bigendian=yes
8940 else
8941 ac_cv_c_bigendian=no
8942 fi
8943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8944 fi
8945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8946 fi
8947 if test $ac_cv_c_bigendian = unknown; then
8948 # Compile a test program.
8949 if test "$cross_compiling" = yes; then :
8950 # Try to guess by grepping values from an object file.
8951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8952 /* end confdefs.h. */
8953 short int ascii_mm[] =
8954 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8955 short int ascii_ii[] =
8956 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8957 int use_ascii (int i) {
8958 return ascii_mm[i] + ascii_ii[i];
8959 }
8960 short int ebcdic_ii[] =
8961 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8962 short int ebcdic_mm[] =
8963 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8964 int use_ebcdic (int i) {
8965 return ebcdic_mm[i] + ebcdic_ii[i];
8966 }
8967 extern int foo;
8968
8969 int
8970 main ()
8971 {
8972 return use_ascii (foo) == use_ebcdic (foo);
8973 ;
8974 return 0;
8975 }
8976 _ACEOF
8977 if ac_fn_cxx_try_compile "$LINENO"; then :
8978 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8979 ac_cv_c_bigendian=yes
8980 fi
8981 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8982 if test "$ac_cv_c_bigendian" = unknown; then
8983 ac_cv_c_bigendian=no
8984 else
8985 # finding both strings is unlikely to happen, but who knows?
8986 ac_cv_c_bigendian=unknown
8987 fi
8988 fi
8989 fi
8990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8991 else
8992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8993 /* end confdefs.h. */
8994 $ac_includes_default
8995 int
8996 main ()
8997 {
8998
8999 /* Are we little or big endian? From Harbison&Steele. */
9000 union
9001 {
9002 long int l;
9003 char c[sizeof (long int)];
9004 } u;
9005 u.l = 1;
9006 return u.c[sizeof (long int) - 1] == 1;
9007
9008 ;
9009 return 0;
9010 }
9011 _ACEOF
9012 if ac_fn_cxx_try_run "$LINENO"; then :
9013 ac_cv_c_bigendian=no
9014 else
9015 ac_cv_c_bigendian=yes
9016 fi
9017 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9018 conftest.$ac_objext conftest.beam conftest.$ac_ext
9019 fi
9020
9021 fi
9022 fi
9023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9024 $as_echo "$ac_cv_c_bigendian" >&6; }
9025 case $ac_cv_c_bigendian in #(
9026 yes)
9027 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9028 ;; #(
9029 no)
9030 ;; #(
9031 universal)
9032
9033 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9034
9035 ;; #(
9036 *)
9037 as_fn_error "unknown endianness
9038 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9039 esac
9040
9041
9042 # ----------------------
9043 # Checks for C++ headers
9044 # ----------------------
9045
9046 ac_ext=cpp
9047 ac_cpp='$CXXCPP $CPPFLAGS'
9048 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9049 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9050 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
9052 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
9053 if test -z "$CXXCPP"; then
9054 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
9055 $as_echo_n "(cached) " >&6
9056 else
9057 # Double quotes because CXXCPP needs to be expanded
9058 for CXXCPP in "$CXX -E" "/lib/cpp"
9059 do
9060 ac_preproc_ok=false
9061 for ac_cxx_preproc_warn_flag in '' yes
9062 do
9063 # Use a header file that comes with gcc, so configuring glibc
9064 # with a fresh cross-compiler works.
9065 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9066 # <limits.h> exists even on freestanding compilers.
9067 # On the NeXT, cc -E runs the code through the compiler's parser,
9068 # not just through cpp. "Syntax error" is here to catch this case.
9069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9070 /* end confdefs.h. */
9071 #ifdef __STDC__
9072 # include <limits.h>
9073 #else
9074 # include <assert.h>
9075 #endif
9076 Syntax error
9077 _ACEOF
9078 if ac_fn_cxx_try_cpp "$LINENO"; then :
9079
9080 else
9081 # Broken: fails on valid input.
9082 continue
9083 fi
9084 rm -f conftest.err conftest.$ac_ext
9085
9086 # OK, works on sane cases. Now check whether nonexistent headers
9087 # can be detected and how.
9088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9089 /* end confdefs.h. */
9090 #include <ac_nonexistent.h>
9091 _ACEOF
9092 if ac_fn_cxx_try_cpp "$LINENO"; then :
9093 # Broken: success on invalid input.
9094 continue
9095 else
9096 # Passes both tests.
9097 ac_preproc_ok=:
9098 break
9099 fi
9100 rm -f conftest.err conftest.$ac_ext
9101
9102 done
9103 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9104 rm -f conftest.err conftest.$ac_ext
9105 if $ac_preproc_ok; then :
9106 break
9107 fi
9108
9109 done
9110 ac_cv_prog_CXXCPP=$CXXCPP
9111
9112 fi
9113 CXXCPP=$ac_cv_prog_CXXCPP
9114 else
9115 ac_cv_prog_CXXCPP=$CXXCPP
9116 fi
9117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
9118 $as_echo "$CXXCPP" >&6; }
9119 ac_preproc_ok=false
9120 for ac_cxx_preproc_warn_flag in '' yes
9121 do
9122 # Use a header file that comes with gcc, so configuring glibc
9123 # with a fresh cross-compiler works.
9124 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9125 # <limits.h> exists even on freestanding compilers.
9126 # On the NeXT, cc -E runs the code through the compiler's parser,
9127 # not just through cpp. "Syntax error" is here to catch this case.
9128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9129 /* end confdefs.h. */
9130 #ifdef __STDC__
9131 # include <limits.h>
9132 #else
9133 # include <assert.h>
9134 #endif
9135 Syntax error
9136 _ACEOF
9137 if ac_fn_cxx_try_cpp "$LINENO"; then :
9138
9139 else
9140 # Broken: fails on valid input.
9141 continue
9142 fi
9143 rm -f conftest.err conftest.$ac_ext
9144
9145 # OK, works on sane cases. Now check whether nonexistent headers
9146 # can be detected and how.
9147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9148 /* end confdefs.h. */
9149 #include <ac_nonexistent.h>
9150 _ACEOF
9151 if ac_fn_cxx_try_cpp "$LINENO"; then :
9152 # Broken: success on invalid input.
9153 continue
9154 else
9155 # Passes both tests.
9156 ac_preproc_ok=:
9157 break
9158 fi
9159 rm -f conftest.err conftest.$ac_ext
9160
9161 done
9162 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9163 rm -f conftest.err conftest.$ac_ext
9164 if $ac_preproc_ok; then :
9165
9166 else
9167 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9168 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9169 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9170 See \`config.log' for more details." >&5
9171 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9172 See \`config.log' for more details." >&2;}; }
9173 fi
9174
9175 ac_ext=cpp
9176 ac_cpp='$CXXCPP $CPPFLAGS'
9177 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9178 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9179 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9180
9181
9182 for ac_header in unordered_map
9183 do :
9184 ac_fn_cxx_check_header_preproc "$LINENO" "unordered_map" "ac_cv_header_unordered_map"
9185 if test "x$ac_cv_header_unordered_map" = x""yes; then :
9186 cat >>confdefs.h <<_ACEOF
9187 #define HAVE_UNORDERED_MAP 1
9188 _ACEOF
9189
9190 fi
9191 done
9192
9193 for ac_header in tr1/unordered_map
9194 do :
9195 ac_fn_cxx_check_header_preproc "$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
9196 if test "x$ac_cv_header_tr1_unordered_map" = x""yes; then :
9197 cat >>confdefs.h <<_ACEOF
9198 #define HAVE_TR1_UNORDERED_MAP 1
9199 _ACEOF
9200
9201 fi
9202 done
9203
9204 for ac_header in ext/hash_map
9205 do :
9206 ac_fn_cxx_check_header_preproc "$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
9207 if test "x$ac_cv_header_ext_hash_map" = x""yes; then :
9208 cat >>confdefs.h <<_ACEOF
9209 #define HAVE_EXT_HASH_MAP 1
9210 _ACEOF
9211
9212 fi
9213 done
9214
9215
9216 # --------
9217 # Dependency checking.
9218 # --------
9219
9220 rm -rf .tst 2>/dev/null
9221 mkdir .tst 2>/dev/null
9222 if test -d .tst; then
9223 am__leading_dot=.
9224 else
9225 am__leading_dot=_
9226 fi
9227 rmdir .tst 2>/dev/null
9228
9229 DEPDIR="${am__leading_dot}deps"
9230
9231 ac_config_commands="$ac_config_commands depdir"
9232
9233
9234 ac_config_commands="$ac_config_commands gccdepdir"
9235
9236
9237 depcc="$CXX" am_compiler_list=
9238
9239 am_depcomp=$ac_aux_dir/depcomp
9240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
9241 $as_echo_n "checking dependency style of $depcc... " >&6; }
9242 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
9243 $as_echo_n "(cached) " >&6
9244 else
9245 if test -f "$am_depcomp"; then
9246 # We make a subdir and do the tests there. Otherwise we can end up
9247 # making bogus files that we don't know about and never remove. For
9248 # instance it was reported that on HP-UX the gcc test will end up
9249 # making a dummy file named `D' -- because `-MD' means `put the output
9250 # in D'.
9251 mkdir conftest.dir
9252 # Copy depcomp to subdir because otherwise we won't find it if we're
9253 # using a relative directory.
9254 cp "$am_depcomp" conftest.dir
9255 cd conftest.dir
9256 # We will build objects and dependencies in a subdirectory because
9257 # it helps to detect inapplicable dependency modes. For instance
9258 # both Tru64's cc and ICC support -MD to output dependencies as a
9259 # side effect of compilation, but ICC will put the dependencies in
9260 # the current directory while Tru64 will put them in the object
9261 # directory.
9262 mkdir sub
9263
9264 am_cv_CXX_dependencies_compiler_type=none
9265 if test "$am_compiler_list" = ""; then
9266 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
9267 fi
9268 for depmode in $am_compiler_list; do
9269 if test $depmode = none; then break; fi
9270
9271 $as_echo "$as_me:$LINENO: trying $depmode" >&5
9272 # Setup a source with many dependencies, because some compilers
9273 # like to wrap large dependency lists on column 80 (with \), and
9274 # we should not choose a depcomp mode which is confused by this.
9275 #
9276 # We need to recreate these files for each test, as the compiler may
9277 # overwrite some of them when testing with obscure command lines.
9278 # This happens at least with the AIX C compiler.
9279 : > sub/conftest.c
9280 for i in 1 2 3 4 5 6; do
9281 echo '#include "conftst'$i'.h"' >> sub/conftest.c
9282 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
9283 # Solaris 8's {/usr,}/bin/sh.
9284 touch sub/conftst$i.h
9285 done
9286 echo "include sub/conftest.Po" > confmf
9287
9288 # We check with `-c' and `-o' for the sake of the "dashmstdout"
9289 # mode. It turns out that the SunPro C++ compiler does not properly
9290 # handle `-M -o', and we need to detect this.
9291 depcmd="depmode=$depmode \
9292 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
9293 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
9294 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
9295 echo "| $depcmd" | sed -e 's/ */ /g' >&5
9296 if env $depcmd > conftest.err 2>&1 &&
9297 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
9298 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
9299 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
9300 # icc doesn't choke on unknown options, it will just issue warnings
9301 # or remarks (even with -Werror). So we grep stderr for any message
9302 # that says an option was ignored or not supported.
9303 # When given -MP, icc 7.0 and 7.1 complain thusly:
9304 # icc: Command line warning: ignoring option '-M'; no argument required
9305 # The diagnosis changed in icc 8.0:
9306 # icc: Command line remark: option '-MP' not supported
9307 if (grep 'ignoring option' conftest.err ||
9308 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
9309 am_cv_CXX_dependencies_compiler_type=$depmode
9310 $as_echo "$as_me:$LINENO: success" >&5
9311 break
9312 fi
9313 fi
9314 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
9315 sed -e 's/^/| /' < conftest.err >&5
9316 done
9317
9318 cd ..
9319 rm -rf conftest.dir
9320 else
9321 am_cv_CXX_dependencies_compiler_type=none
9322 fi
9323
9324 fi
9325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
9326 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
9327 if test x${am_cv_CXX_dependencies_compiler_type-none} = xnone
9328 then as_fn_error "no usable dependency style found" "$LINENO" 5
9329 else CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
9330
9331 fi
9332
9333
9334 # --------
9335 # UNSORTED
9336 # --------
9337
9338
9339 # These libraries may be used by collect2.
9340 # We may need a special search path to get them linked.
9341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
9342 $as_echo_n "checking for collect2 libraries... " >&6; }
9343 if test "${gcc_cv_collect2_libs+set}" = set; then :
9344 $as_echo_n "(cached) " >&6
9345 else
9346 save_LIBS="$LIBS"
9347 for libs in '' -lld -lmld \
9348 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
9349 '-L/usr/lib/cmplrs/cc3.11 -lmld'
9350 do
9351 LIBS="$libs"
9352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9353 /* end confdefs.h. */
9354
9355 /* Override any GCC internal prototype to avoid an error.
9356 Use char because int might match the return type of a GCC
9357 builtin and then its argument prototype would still apply. */
9358 #ifdef __cplusplus
9359 extern "C"
9360 #endif
9361 char ldopen ();
9362 int
9363 main ()
9364 {
9365 return ldopen ();
9366 ;
9367 return 0;
9368 }
9369 _ACEOF
9370 if ac_fn_cxx_try_link "$LINENO"; then :
9371 gcc_cv_collect2_libs="$libs"; break
9372 fi
9373 rm -f core conftest.err conftest.$ac_objext \
9374 conftest$ac_exeext conftest.$ac_ext
9375 done
9376 LIBS="$save_LIBS"
9377 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
9378 fi
9379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
9380 $as_echo "$gcc_cv_collect2_libs" >&6; }
9381 case $gcc_cv_collect2_libs in
9382 "none required") ;;
9383 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
9384 esac
9385
9386
9387 # When building Ada code on Alpha, we need exc_resume which is usually in
9388 # -lexc. So test for it.
9389 save_LIBS="$LIBS"
9390 LIBS=
9391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
9392 $as_echo_n "checking for library containing exc_resume... " >&6; }
9393 if test "${ac_cv_search_exc_resume+set}" = set; then :
9394 $as_echo_n "(cached) " >&6
9395 else
9396 ac_func_search_save_LIBS=$LIBS
9397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9398 /* end confdefs.h. */
9399
9400 /* Override any GCC internal prototype to avoid an error.
9401 Use char because int might match the return type of a GCC
9402 builtin and then its argument prototype would still apply. */
9403 #ifdef __cplusplus
9404 extern "C"
9405 #endif
9406 char exc_resume ();
9407 int
9408 main ()
9409 {
9410 return exc_resume ();
9411 ;
9412 return 0;
9413 }
9414 _ACEOF
9415 for ac_lib in '' exc; do
9416 if test -z "$ac_lib"; then
9417 ac_res="none required"
9418 else
9419 ac_res=-l$ac_lib
9420 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9421 fi
9422 if ac_fn_cxx_try_link "$LINENO"; then :
9423 ac_cv_search_exc_resume=$ac_res
9424 fi
9425 rm -f core conftest.err conftest.$ac_objext \
9426 conftest$ac_exeext
9427 if test "${ac_cv_search_exc_resume+set}" = set; then :
9428 break
9429 fi
9430 done
9431 if test "${ac_cv_search_exc_resume+set}" = set; then :
9432
9433 else
9434 ac_cv_search_exc_resume=no
9435 fi
9436 rm conftest.$ac_ext
9437 LIBS=$ac_func_search_save_LIBS
9438 fi
9439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
9440 $as_echo "$ac_cv_search_exc_resume" >&6; }
9441 ac_res=$ac_cv_search_exc_resume
9442 if test "$ac_res" != no; then :
9443 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9444
9445 fi
9446
9447 GNAT_LIBEXC="$LIBS"
9448 LIBS="$save_LIBS"
9449
9450
9451 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
9452 save_LIBS="$LIBS"
9453 LIBS=
9454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
9455 $as_echo_n "checking for library containing kstat_open... " >&6; }
9456 if test "${ac_cv_search_kstat_open+set}" = set; then :
9457 $as_echo_n "(cached) " >&6
9458 else
9459 ac_func_search_save_LIBS=$LIBS
9460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9461 /* end confdefs.h. */
9462
9463 /* Override any GCC internal prototype to avoid an error.
9464 Use char because int might match the return type of a GCC
9465 builtin and then its argument prototype would still apply. */
9466 #ifdef __cplusplus
9467 extern "C"
9468 #endif
9469 char kstat_open ();
9470 int
9471 main ()
9472 {
9473 return kstat_open ();
9474 ;
9475 return 0;
9476 }
9477 _ACEOF
9478 for ac_lib in '' kstat; do
9479 if test -z "$ac_lib"; then
9480 ac_res="none required"
9481 else
9482 ac_res=-l$ac_lib
9483 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9484 fi
9485 if ac_fn_cxx_try_link "$LINENO"; then :
9486 ac_cv_search_kstat_open=$ac_res
9487 fi
9488 rm -f core conftest.err conftest.$ac_objext \
9489 conftest$ac_exeext
9490 if test "${ac_cv_search_kstat_open+set}" = set; then :
9491 break
9492 fi
9493 done
9494 if test "${ac_cv_search_kstat_open+set}" = set; then :
9495
9496 else
9497 ac_cv_search_kstat_open=no
9498 fi
9499 rm conftest.$ac_ext
9500 LIBS=$ac_func_search_save_LIBS
9501 fi
9502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
9503 $as_echo "$ac_cv_search_kstat_open" >&6; }
9504 ac_res=$ac_cv_search_kstat_open
9505 if test "$ac_res" != no; then :
9506 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9507
9508 fi
9509
9510 EXTRA_GCC_LIBS="$LIBS"
9511 LIBS="$save_LIBS"
9512
9513
9514 # Some systems put ldexp and frexp in libm instead of libc; assume
9515 # they're both in the same place. jcf-dump needs them.
9516 save_LIBS="$LIBS"
9517 LIBS=
9518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
9519 $as_echo_n "checking for library containing ldexp... " >&6; }
9520 if test "${ac_cv_search_ldexp+set}" = set; then :
9521 $as_echo_n "(cached) " >&6
9522 else
9523 ac_func_search_save_LIBS=$LIBS
9524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9525 /* end confdefs.h. */
9526
9527 /* Override any GCC internal prototype to avoid an error.
9528 Use char because int might match the return type of a GCC
9529 builtin and then its argument prototype would still apply. */
9530 #ifdef __cplusplus
9531 extern "C"
9532 #endif
9533 char ldexp ();
9534 int
9535 main ()
9536 {
9537 return ldexp ();
9538 ;
9539 return 0;
9540 }
9541 _ACEOF
9542 for ac_lib in '' m; do
9543 if test -z "$ac_lib"; then
9544 ac_res="none required"
9545 else
9546 ac_res=-l$ac_lib
9547 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9548 fi
9549 if ac_fn_cxx_try_link "$LINENO"; then :
9550 ac_cv_search_ldexp=$ac_res
9551 fi
9552 rm -f core conftest.err conftest.$ac_objext \
9553 conftest$ac_exeext
9554 if test "${ac_cv_search_ldexp+set}" = set; then :
9555 break
9556 fi
9557 done
9558 if test "${ac_cv_search_ldexp+set}" = set; then :
9559
9560 else
9561 ac_cv_search_ldexp=no
9562 fi
9563 rm conftest.$ac_ext
9564 LIBS=$ac_func_search_save_LIBS
9565 fi
9566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
9567 $as_echo "$ac_cv_search_ldexp" >&6; }
9568 ac_res=$ac_cv_search_ldexp
9569 if test "$ac_res" != no; then :
9570 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9571
9572 fi
9573
9574 LDEXP_LIB="$LIBS"
9575 LIBS="$save_LIBS"
9576
9577
9578 # Use <inttypes.h> only if it exists,
9579 # doesn't clash with <sys/types.h>, declares intmax_t and defines
9580 # PRId64
9581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
9582 $as_echo_n "checking for inttypes.h... " >&6; }
9583 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
9584 $as_echo_n "(cached) " >&6
9585 else
9586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9587 /* end confdefs.h. */
9588 #define __STDC_FORMAT_MACROS
9589 #include <sys/types.h>
9590 #include <inttypes.h>
9591 int
9592 main ()
9593 {
9594 intmax_t i = -1;
9595 #ifndef PRId64
9596 choke me
9597 #endif
9598 ;
9599 return 0;
9600 }
9601 _ACEOF
9602 if ac_fn_cxx_try_compile "$LINENO"; then :
9603 gcc_cv_header_inttypes_h=yes
9604 else
9605 gcc_cv_header_inttypes_h=no
9606 fi
9607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9608 fi
9609
9610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
9611 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
9612 if test $gcc_cv_header_inttypes_h = yes; then
9613
9614 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
9615
9616 fi
9617
9618
9619
9620 for ac_func in times clock kill getrlimit setrlimit atoq \
9621 popen sysconf strsignal getrusage nl_langinfo \
9622 gettimeofday mbstowcs wcswidth mmap setlocale \
9623 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
9624 do :
9625 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9626 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
9627 eval as_val=\$$as_ac_var
9628 if test "x$as_val" = x""yes; then :
9629 cat >>confdefs.h <<_ACEOF
9630 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9631 _ACEOF
9632
9633 fi
9634 done
9635
9636
9637 if test x$ac_cv_func_mbstowcs = xyes; then
9638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
9639 $as_echo_n "checking whether mbstowcs works... " >&6; }
9640 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
9641 $as_echo_n "(cached) " >&6
9642 else
9643 if test "$cross_compiling" = yes; then :
9644 gcc_cv_func_mbstowcs_works=yes
9645 else
9646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9647 /* end confdefs.h. */
9648 #include <stdlib.h>
9649 int main()
9650 {
9651 mbstowcs(0, "", 0);
9652 return 0;
9653 }
9654 _ACEOF
9655 if ac_fn_cxx_try_run "$LINENO"; then :
9656 gcc_cv_func_mbstowcs_works=yes
9657 else
9658 gcc_cv_func_mbstowcs_works=no
9659 fi
9660 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9661 conftest.$ac_objext conftest.beam conftest.$ac_ext
9662 fi
9663
9664 fi
9665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
9666 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
9667 if test x$gcc_cv_func_mbstowcs_works = xyes; then
9668
9669 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
9670
9671 fi
9672 fi
9673
9674 ac_fn_cxx_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
9675 if test "x$ac_cv_type_ssize_t" = x""yes; then :
9676
9677 else
9678
9679 cat >>confdefs.h <<_ACEOF
9680 #define ssize_t int
9681 _ACEOF
9682
9683 fi
9684
9685 ac_fn_cxx_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
9686 if test "x$ac_cv_type_caddr_t" = x""yes; then :
9687
9688 else
9689
9690 cat >>confdefs.h <<_ACEOF
9691 #define caddr_t char *
9692 _ACEOF
9693
9694 fi
9695
9696
9697
9698 ac_fn_cxx_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
9699 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
9700 gcc_header_sys_mman_h=yes
9701 else
9702 gcc_header_sys_mman_h=no
9703 fi
9704
9705 ac_fn_cxx_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
9706 if test "x$ac_cv_func_mmap" = x""yes; then :
9707 gcc_func_mmap=yes
9708 else
9709 gcc_func_mmap=no
9710 fi
9711
9712 if test "$gcc_header_sys_mman_h" != yes \
9713 || test "$gcc_func_mmap" != yes; then
9714 gcc_cv_func_mmap_file=no
9715 gcc_cv_func_mmap_dev_zero=no
9716 gcc_cv_func_mmap_anon=no
9717 else
9718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
9719 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
9720 if test "${gcc_cv_func_mmap_file+set}" = set; then :
9721 $as_echo_n "(cached) " >&6
9722 else
9723 # Add a system to this blacklist if
9724 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9725 # memory area containing the same data that you'd get if you applied
9726 # read() to the same fd. The only system known to have a problem here
9727 # is VMS, where text files have record structure.
9728 case "$host_os" in
9729 *vms* | ultrix*)
9730 gcc_cv_func_mmap_file=no ;;
9731 *)
9732 gcc_cv_func_mmap_file=yes;;
9733 esac
9734 fi
9735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
9736 $as_echo "$gcc_cv_func_mmap_file" >&6; }
9737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
9738 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
9739 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
9740 $as_echo_n "(cached) " >&6
9741 else
9742 # Add a system to this blacklist if it has mmap() but /dev/zero
9743 # does not exist, or if mmapping /dev/zero does not give anonymous
9744 # zeroed pages with both the following properties:
9745 # 1. If you map N consecutive pages in with one call, and then
9746 # unmap any subset of those pages, the pages that were not
9747 # explicitly unmapped remain accessible.
9748 # 2. If you map two adjacent blocks of memory and then unmap them
9749 # both at once, they must both go away.
9750 # Systems known to be in this category are Windows (all variants),
9751 # VMS, and Darwin.
9752 case "$host_os" in
9753 *vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
9754 gcc_cv_func_mmap_dev_zero=no ;;
9755 *)
9756 gcc_cv_func_mmap_dev_zero=yes;;
9757 esac
9758 fi
9759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
9760 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
9761
9762 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
9764 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
9765 if test "${gcc_cv_decl_map_anon+set}" = set; then :
9766 $as_echo_n "(cached) " >&6
9767 else
9768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9769 /* end confdefs.h. */
9770 #include <sys/types.h>
9771 #include <sys/mman.h>
9772 #include <unistd.h>
9773
9774 #ifndef MAP_ANONYMOUS
9775 #define MAP_ANONYMOUS MAP_ANON
9776 #endif
9777
9778 int
9779 main ()
9780 {
9781 int n = MAP_ANONYMOUS;
9782 ;
9783 return 0;
9784 }
9785 _ACEOF
9786 if ac_fn_cxx_try_compile "$LINENO"; then :
9787 gcc_cv_decl_map_anon=yes
9788 else
9789 gcc_cv_decl_map_anon=no
9790 fi
9791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9792 fi
9793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
9794 $as_echo "$gcc_cv_decl_map_anon" >&6; }
9795
9796 if test $gcc_cv_decl_map_anon = no; then
9797 gcc_cv_func_mmap_anon=no
9798 else
9799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9800 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
9801 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
9802 $as_echo_n "(cached) " >&6
9803 else
9804 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9805 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9806 # doesn't give anonymous zeroed pages with the same properties listed
9807 # above for use of /dev/zero.
9808 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9809 case "$host_os" in
9810 *vms* | cygwin* | pe | mingw* | sco* | udk* )
9811 gcc_cv_func_mmap_anon=no ;;
9812 *)
9813 gcc_cv_func_mmap_anon=yes;;
9814 esac
9815 fi
9816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
9817 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
9818 fi
9819 fi
9820
9821 if test $gcc_cv_func_mmap_file = yes; then
9822
9823 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
9824
9825 fi
9826 if test $gcc_cv_func_mmap_dev_zero = yes; then
9827
9828 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
9829
9830 fi
9831 if test $gcc_cv_func_mmap_anon = yes; then
9832
9833 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
9834
9835 fi
9836
9837
9838 case "${host}" in
9839 *-*-*vms*)
9840 # Under VMS, vfork works very differently than on Unix. The standard test
9841 # won't work, and it isn't easily adaptable. It makes more sense to
9842 # just force it.
9843 ac_cv_func_vfork_works=yes
9844 ;;
9845 esac
9846 ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9847 if test "x$ac_cv_type_pid_t" = x""yes; then :
9848
9849 else
9850
9851 cat >>confdefs.h <<_ACEOF
9852 #define pid_t int
9853 _ACEOF
9854
9855 fi
9856
9857 for ac_header in vfork.h
9858 do :
9859 ac_fn_cxx_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
9860 if test "x$ac_cv_header_vfork_h" = x""yes; then :
9861 cat >>confdefs.h <<_ACEOF
9862 #define HAVE_VFORK_H 1
9863 _ACEOF
9864
9865 fi
9866 done
9867
9868 for ac_func in fork vfork
9869 do :
9870 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9871 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
9872 eval as_val=\$$as_ac_var
9873 if test "x$as_val" = x""yes; then :
9874 cat >>confdefs.h <<_ACEOF
9875 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9876 _ACEOF
9877
9878 fi
9879 done
9880
9881 if test "x$ac_cv_func_fork" = xyes; then
9882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9883 $as_echo_n "checking for working fork... " >&6; }
9884 if test "${ac_cv_func_fork_works+set}" = set; then :
9885 $as_echo_n "(cached) " >&6
9886 else
9887 if test "$cross_compiling" = yes; then :
9888 ac_cv_func_fork_works=cross
9889 else
9890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9891 /* end confdefs.h. */
9892 $ac_includes_default
9893 int
9894 main ()
9895 {
9896
9897 /* By Ruediger Kuhlmann. */
9898 return fork () < 0;
9899
9900 ;
9901 return 0;
9902 }
9903 _ACEOF
9904 if ac_fn_cxx_try_run "$LINENO"; then :
9905 ac_cv_func_fork_works=yes
9906 else
9907 ac_cv_func_fork_works=no
9908 fi
9909 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9910 conftest.$ac_objext conftest.beam conftest.$ac_ext
9911 fi
9912
9913 fi
9914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9915 $as_echo "$ac_cv_func_fork_works" >&6; }
9916
9917 else
9918 ac_cv_func_fork_works=$ac_cv_func_fork
9919 fi
9920 if test "x$ac_cv_func_fork_works" = xcross; then
9921 case $host in
9922 *-*-amigaos* | *-*-msdosdjgpp*)
9923 # Override, as these systems have only a dummy fork() stub
9924 ac_cv_func_fork_works=no
9925 ;;
9926 *)
9927 ac_cv_func_fork_works=yes
9928 ;;
9929 esac
9930 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9931 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9932 fi
9933 ac_cv_func_vfork_works=$ac_cv_func_vfork
9934 if test "x$ac_cv_func_vfork" = xyes; then
9935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
9936 $as_echo_n "checking for working vfork... " >&6; }
9937 if test "${ac_cv_func_vfork_works+set}" = set; then :
9938 $as_echo_n "(cached) " >&6
9939 else
9940 if test "$cross_compiling" = yes; then :
9941 ac_cv_func_vfork_works=cross
9942 else
9943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9944 /* end confdefs.h. */
9945 /* Thanks to Paul Eggert for this test. */
9946 $ac_includes_default
9947 #include <sys/wait.h>
9948 #ifdef HAVE_VFORK_H
9949 # include <vfork.h>
9950 #endif
9951 /* On some sparc systems, changes by the child to local and incoming
9952 argument registers are propagated back to the parent. The compiler
9953 is told about this with #include <vfork.h>, but some compilers
9954 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
9955 static variable whose address is put into a register that is
9956 clobbered by the vfork. */
9957 static void
9958 #ifdef __cplusplus
9959 sparc_address_test (int arg)
9960 # else
9961 sparc_address_test (arg) int arg;
9962 #endif
9963 {
9964 static pid_t child;
9965 if (!child) {
9966 child = vfork ();
9967 if (child < 0) {
9968 perror ("vfork");
9969 _exit(2);
9970 }
9971 if (!child) {
9972 arg = getpid();
9973 write(-1, "", 0);
9974 _exit (arg);
9975 }
9976 }
9977 }
9978
9979 int
9980 main ()
9981 {
9982 pid_t parent = getpid ();
9983 pid_t child;
9984
9985 sparc_address_test (0);
9986
9987 child = vfork ();
9988
9989 if (child == 0) {
9990 /* Here is another test for sparc vfork register problems. This
9991 test uses lots of local variables, at least as many local
9992 variables as main has allocated so far including compiler
9993 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
9994 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
9995 reuse the register of parent for one of the local variables,
9996 since it will think that parent can't possibly be used any more
9997 in this routine. Assigning to the local variable will thus
9998 munge parent in the parent process. */
9999 pid_t
10000 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10001 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10002 /* Convince the compiler that p..p7 are live; otherwise, it might
10003 use the same hardware register for all 8 local variables. */
10004 if (p != p1 || p != p2 || p != p3 || p != p4
10005 || p != p5 || p != p6 || p != p7)
10006 _exit(1);
10007
10008 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10009 from child file descriptors. If the child closes a descriptor
10010 before it execs or exits, this munges the parent's descriptor
10011 as well. Test for this by closing stdout in the child. */
10012 _exit(close(fileno(stdout)) != 0);
10013 } else {
10014 int status;
10015 struct stat st;
10016
10017 while (wait(&status) != child)
10018 ;
10019 return (
10020 /* Was there some problem with vforking? */
10021 child < 0
10022
10023 /* Did the child fail? (This shouldn't happen.) */
10024 || status
10025
10026 /* Did the vfork/compiler bug occur? */
10027 || parent != getpid()
10028
10029 /* Did the file descriptor bug occur? */
10030 || fstat(fileno(stdout), &st) != 0
10031 );
10032 }
10033 }
10034 _ACEOF
10035 if ac_fn_cxx_try_run "$LINENO"; then :
10036 ac_cv_func_vfork_works=yes
10037 else
10038 ac_cv_func_vfork_works=no
10039 fi
10040 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10041 conftest.$ac_objext conftest.beam conftest.$ac_ext
10042 fi
10043
10044 fi
10045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
10046 $as_echo "$ac_cv_func_vfork_works" >&6; }
10047
10048 fi;
10049 if test "x$ac_cv_func_fork_works" = xcross; then
10050 ac_cv_func_vfork_works=$ac_cv_func_vfork
10051 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10052 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10053 fi
10054
10055 if test "x$ac_cv_func_vfork_works" = xyes; then
10056
10057 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
10058
10059 else
10060
10061 $as_echo "#define vfork fork" >>confdefs.h
10062
10063 fi
10064 if test "x$ac_cv_func_fork_works" = xyes; then
10065
10066 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
10067
10068 fi
10069
10070
10071
10072 if test "X$prefix" = "XNONE"; then
10073 acl_final_prefix="$ac_default_prefix"
10074 else
10075 acl_final_prefix="$prefix"
10076 fi
10077 if test "X$exec_prefix" = "XNONE"; then
10078 acl_final_exec_prefix='${prefix}'
10079 else
10080 acl_final_exec_prefix="$exec_prefix"
10081 fi
10082 acl_save_prefix="$prefix"
10083 prefix="$acl_final_prefix"
10084 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10085 prefix="$acl_save_prefix"
10086
10087
10088 # Check whether --with-gnu-ld was given.
10089 if test "${with_gnu_ld+set}" = set; then :
10090 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10091 else
10092 with_gnu_ld=no
10093 fi
10094
10095 # Prepare PATH_SEPARATOR.
10096 # The user is always right.
10097 if test "${PATH_SEPARATOR+set}" != set; then
10098 echo "#! /bin/sh" >conf$$.sh
10099 echo "exit 0" >>conf$$.sh
10100 chmod +x conf$$.sh
10101 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10102 PATH_SEPARATOR=';'
10103 else
10104 PATH_SEPARATOR=:
10105 fi
10106 rm -f conf$$.sh
10107 fi
10108 ac_prog=ld
10109 if test "$GCC" = yes; then
10110 # Check if gcc -print-prog-name=ld gives a path.
10111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
10112 $as_echo_n "checking for ld used by GCC... " >&6; }
10113 case $host in
10114 *-*-mingw*)
10115 # gcc leaves a trailing carriage return which upsets mingw
10116 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10117 *)
10118 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10119 esac
10120 case $ac_prog in
10121 # Accept absolute paths.
10122 [\\/]* | [A-Za-z]:[\\/]*)
10123 re_direlt='/[^/][^/]*/\.\./'
10124 # Canonicalize the path of ld
10125 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10126 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10127 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10128 done
10129 test -z "$LD" && LD="$ac_prog"
10130 ;;
10131 "")
10132 # If it fails, then pretend we aren't using GCC.
10133 ac_prog=ld
10134 ;;
10135 *)
10136 # If it is relative, then search for the first ld in PATH.
10137 with_gnu_ld=unknown
10138 ;;
10139 esac
10140 elif test "$with_gnu_ld" = yes; then
10141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
10142 $as_echo_n "checking for GNU ld... " >&6; }
10143 else
10144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
10145 $as_echo_n "checking for non-GNU ld... " >&6; }
10146 fi
10147 if test "${acl_cv_path_LD+set}" = set; then :
10148 $as_echo_n "(cached) " >&6
10149 else
10150 if test -z "$LD"; then
10151 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10152 for ac_dir in $PATH; do
10153 test -z "$ac_dir" && ac_dir=.
10154 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10155 acl_cv_path_LD="$ac_dir/$ac_prog"
10156 # Check to see if the program is GNU ld. I'd rather use --version,
10157 # but apparently some GNU ld's only accept -v.
10158 # Break only if it was the GNU/non-GNU ld that we prefer.
10159 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
10160 test "$with_gnu_ld" != no && break
10161 else
10162 test "$with_gnu_ld" != yes && break
10163 fi
10164 fi
10165 done
10166 IFS="$ac_save_ifs"
10167 else
10168 acl_cv_path_LD="$LD" # Let the user override the test with a path.
10169 fi
10170 fi
10171
10172 LD="$acl_cv_path_LD"
10173 if test -n "$LD"; then
10174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10175 $as_echo "$LD" >&6; }
10176 else
10177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10178 $as_echo "no" >&6; }
10179 fi
10180 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
10181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
10182 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
10183 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
10184 $as_echo_n "(cached) " >&6
10185 else
10186 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10187 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
10188 acl_cv_prog_gnu_ld=yes
10189 else
10190 acl_cv_prog_gnu_ld=no
10191 fi
10192 fi
10193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
10194 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
10195 with_gnu_ld=$acl_cv_prog_gnu_ld
10196
10197
10198
10199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
10200 $as_echo_n "checking for shared library run path origin... " >&6; }
10201 if test "${acl_cv_rpath+set}" = set; then :
10202 $as_echo_n "(cached) " >&6
10203 else
10204
10205 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10206 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10207 . ./conftest.sh
10208 rm -f ./conftest.sh
10209 acl_cv_rpath=done
10210
10211 fi
10212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
10213 $as_echo "$acl_cv_rpath" >&6; }
10214 wl="$acl_cv_wl"
10215 libext="$acl_cv_libext"
10216 shlibext="$acl_cv_shlibext"
10217 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10218 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10219 hardcode_direct="$acl_cv_hardcode_direct"
10220 hardcode_minus_L="$acl_cv_hardcode_minus_L"
10221 # Check whether --enable-rpath was given.
10222 if test "${enable_rpath+set}" = set; then :
10223 enableval=$enable_rpath; :
10224 else
10225 enable_rpath=yes
10226 fi
10227
10228
10229
10230
10231
10232
10233
10234
10235 use_additional=yes
10236
10237 acl_save_prefix="$prefix"
10238 prefix="$acl_final_prefix"
10239 acl_save_exec_prefix="$exec_prefix"
10240 exec_prefix="$acl_final_exec_prefix"
10241
10242 eval additional_includedir=\"$includedir\"
10243 eval additional_libdir=\"$libdir\"
10244
10245 exec_prefix="$acl_save_exec_prefix"
10246 prefix="$acl_save_prefix"
10247
10248
10249 # Check whether --with-libiconv-prefix was given.
10250 if test "${with_libiconv_prefix+set}" = set; then :
10251 withval=$with_libiconv_prefix;
10252 if test "X$withval" = "Xno"; then
10253 use_additional=no
10254 else
10255 if test "X$withval" = "X"; then
10256
10257 acl_save_prefix="$prefix"
10258 prefix="$acl_final_prefix"
10259 acl_save_exec_prefix="$exec_prefix"
10260 exec_prefix="$acl_final_exec_prefix"
10261
10262 eval additional_includedir=\"$includedir\"
10263 eval additional_libdir=\"$libdir\"
10264
10265 exec_prefix="$acl_save_exec_prefix"
10266 prefix="$acl_save_prefix"
10267
10268 else
10269 additional_includedir="$withval/include"
10270 additional_libdir="$withval/lib"
10271 fi
10272 fi
10273
10274 fi
10275
10276 LIBICONV=
10277 LTLIBICONV=
10278 INCICONV=
10279 rpathdirs=
10280 ltrpathdirs=
10281 names_already_handled=
10282 names_next_round='iconv '
10283 while test -n "$names_next_round"; do
10284 names_this_round="$names_next_round"
10285 names_next_round=
10286 for name in $names_this_round; do
10287 already_handled=
10288 for n in $names_already_handled; do
10289 if test "$n" = "$name"; then
10290 already_handled=yes
10291 break
10292 fi
10293 done
10294 if test -z "$already_handled"; then
10295 names_already_handled="$names_already_handled $name"
10296 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10297 eval value=\"\$HAVE_LIB$uppername\"
10298 if test -n "$value"; then
10299 if test "$value" = yes; then
10300 eval value=\"\$LIB$uppername\"
10301 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
10302 eval value=\"\$LTLIB$uppername\"
10303 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
10304 else
10305 :
10306 fi
10307 else
10308 found_dir=
10309 found_la=
10310 found_so=
10311 found_a=
10312 if test $use_additional = yes; then
10313 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10314 found_dir="$additional_libdir"
10315 found_so="$additional_libdir/lib$name.$shlibext"
10316 if test -f "$additional_libdir/lib$name.la"; then
10317 found_la="$additional_libdir/lib$name.la"
10318 fi
10319 else
10320 if test -f "$additional_libdir/lib$name.$libext"; then
10321 found_dir="$additional_libdir"
10322 found_a="$additional_libdir/lib$name.$libext"
10323 if test -f "$additional_libdir/lib$name.la"; then
10324 found_la="$additional_libdir/lib$name.la"
10325 fi
10326 fi
10327 fi
10328 fi
10329 if test "X$found_dir" = "X"; then
10330 for x in $LDFLAGS $LTLIBICONV; do
10331
10332 acl_save_prefix="$prefix"
10333 prefix="$acl_final_prefix"
10334 acl_save_exec_prefix="$exec_prefix"
10335 exec_prefix="$acl_final_exec_prefix"
10336 eval x=\"$x\"
10337 exec_prefix="$acl_save_exec_prefix"
10338 prefix="$acl_save_prefix"
10339
10340 case "$x" in
10341 -L*)
10342 dir=`echo "X$x" | sed -e 's/^X-L//'`
10343 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10344 found_dir="$dir"
10345 found_so="$dir/lib$name.$shlibext"
10346 if test -f "$dir/lib$name.la"; then
10347 found_la="$dir/lib$name.la"
10348 fi
10349 else
10350 if test -f "$dir/lib$name.$libext"; then
10351 found_dir="$dir"
10352 found_a="$dir/lib$name.$libext"
10353 if test -f "$dir/lib$name.la"; then
10354 found_la="$dir/lib$name.la"
10355 fi
10356 fi
10357 fi
10358 ;;
10359 esac
10360 if test "X$found_dir" != "X"; then
10361 break
10362 fi
10363 done
10364 fi
10365 if test "X$found_dir" != "X"; then
10366 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10367 if test "X$found_so" != "X"; then
10368 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10369 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10370 else
10371 haveit=
10372 for x in $ltrpathdirs; do
10373 if test "X$x" = "X$found_dir"; then
10374 haveit=yes
10375 break
10376 fi
10377 done
10378 if test -z "$haveit"; then
10379 ltrpathdirs="$ltrpathdirs $found_dir"
10380 fi
10381 if test "$hardcode_direct" = yes; then
10382 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10383 else
10384 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10385 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10386 haveit=
10387 for x in $rpathdirs; do
10388 if test "X$x" = "X$found_dir"; then
10389 haveit=yes
10390 break
10391 fi
10392 done
10393 if test -z "$haveit"; then
10394 rpathdirs="$rpathdirs $found_dir"
10395 fi
10396 else
10397 haveit=
10398 for x in $LDFLAGS $LIBICONV; do
10399
10400 acl_save_prefix="$prefix"
10401 prefix="$acl_final_prefix"
10402 acl_save_exec_prefix="$exec_prefix"
10403 exec_prefix="$acl_final_exec_prefix"
10404 eval x=\"$x\"
10405 exec_prefix="$acl_save_exec_prefix"
10406 prefix="$acl_save_prefix"
10407
10408 if test "X$x" = "X-L$found_dir"; then
10409 haveit=yes
10410 break
10411 fi
10412 done
10413 if test -z "$haveit"; then
10414 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10415 fi
10416 if test "$hardcode_minus_L" != no; then
10417 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10418 else
10419 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10420 fi
10421 fi
10422 fi
10423 fi
10424 else
10425 if test "X$found_a" != "X"; then
10426 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
10427 else
10428 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10429 fi
10430 fi
10431 additional_includedir=
10432 case "$found_dir" in
10433 */lib | */lib/)
10434 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10435 additional_includedir="$basedir/include"
10436 ;;
10437 esac
10438 if test "X$additional_includedir" != "X"; then
10439 if test "X$additional_includedir" != "X/usr/include"; then
10440 haveit=
10441 if test "X$additional_includedir" = "X/usr/local/include"; then
10442 if test -n "$GCC"; then
10443 case $host_os in
10444 linux*) haveit=yes;;
10445 esac
10446 fi
10447 fi
10448 if test -z "$haveit"; then
10449 for x in $CPPFLAGS $INCICONV; do
10450
10451 acl_save_prefix="$prefix"
10452 prefix="$acl_final_prefix"
10453 acl_save_exec_prefix="$exec_prefix"
10454 exec_prefix="$acl_final_exec_prefix"
10455 eval x=\"$x\"
10456 exec_prefix="$acl_save_exec_prefix"
10457 prefix="$acl_save_prefix"
10458
10459 if test "X$x" = "X-I$additional_includedir"; then
10460 haveit=yes
10461 break
10462 fi
10463 done
10464 if test -z "$haveit"; then
10465 if test -d "$additional_includedir"; then
10466 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10467 fi
10468 fi
10469 fi
10470 fi
10471 fi
10472 if test -n "$found_la"; then
10473 save_libdir="$libdir"
10474 case "$found_la" in
10475 */* | *\\*) . "$found_la" ;;
10476 *) . "./$found_la" ;;
10477 esac
10478 libdir="$save_libdir"
10479 for dep in $dependency_libs; do
10480 case "$dep" in
10481 -L*)
10482 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10483 if test "X$additional_libdir" != "X/usr/lib"; then
10484 haveit=
10485 if test "X$additional_libdir" = "X/usr/local/lib"; then
10486 if test -n "$GCC"; then
10487 case $host_os in
10488 linux*) haveit=yes;;
10489 esac
10490 fi
10491 fi
10492 if test -z "$haveit"; then
10493 haveit=
10494 for x in $LDFLAGS $LIBICONV; do
10495
10496 acl_save_prefix="$prefix"
10497 prefix="$acl_final_prefix"
10498 acl_save_exec_prefix="$exec_prefix"
10499 exec_prefix="$acl_final_exec_prefix"
10500 eval x=\"$x\"
10501 exec_prefix="$acl_save_exec_prefix"
10502 prefix="$acl_save_prefix"
10503
10504 if test "X$x" = "X-L$additional_libdir"; then
10505 haveit=yes
10506 break
10507 fi
10508 done
10509 if test -z "$haveit"; then
10510 if test -d "$additional_libdir"; then
10511 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10512 fi
10513 fi
10514 haveit=
10515 for x in $LDFLAGS $LTLIBICONV; do
10516
10517 acl_save_prefix="$prefix"
10518 prefix="$acl_final_prefix"
10519 acl_save_exec_prefix="$exec_prefix"
10520 exec_prefix="$acl_final_exec_prefix"
10521 eval x=\"$x\"
10522 exec_prefix="$acl_save_exec_prefix"
10523 prefix="$acl_save_prefix"
10524
10525 if test "X$x" = "X-L$additional_libdir"; then
10526 haveit=yes
10527 break
10528 fi
10529 done
10530 if test -z "$haveit"; then
10531 if test -d "$additional_libdir"; then
10532 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10533 fi
10534 fi
10535 fi
10536 fi
10537 ;;
10538 -R*)
10539 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10540 if test "$enable_rpath" != no; then
10541 haveit=
10542 for x in $rpathdirs; do
10543 if test "X$x" = "X$dir"; then
10544 haveit=yes
10545 break
10546 fi
10547 done
10548 if test -z "$haveit"; then
10549 rpathdirs="$rpathdirs $dir"
10550 fi
10551 haveit=
10552 for x in $ltrpathdirs; do
10553 if test "X$x" = "X$dir"; then
10554 haveit=yes
10555 break
10556 fi
10557 done
10558 if test -z "$haveit"; then
10559 ltrpathdirs="$ltrpathdirs $dir"
10560 fi
10561 fi
10562 ;;
10563 -l*)
10564 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10565 ;;
10566 *.la)
10567 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10568 ;;
10569 *)
10570 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10571 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10572 ;;
10573 esac
10574 done
10575 fi
10576 else
10577 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10578 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10579 fi
10580 fi
10581 fi
10582 done
10583 done
10584 if test "X$rpathdirs" != "X"; then
10585 if test -n "$hardcode_libdir_separator"; then
10586 alldirs=
10587 for found_dir in $rpathdirs; do
10588 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10589 done
10590 acl_save_libdir="$libdir"
10591 libdir="$alldirs"
10592 eval flag=\"$hardcode_libdir_flag_spec\"
10593 libdir="$acl_save_libdir"
10594 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10595 else
10596 for found_dir in $rpathdirs; do
10597 acl_save_libdir="$libdir"
10598 libdir="$found_dir"
10599 eval flag=\"$hardcode_libdir_flag_spec\"
10600 libdir="$acl_save_libdir"
10601 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10602 done
10603 fi
10604 fi
10605 if test "X$ltrpathdirs" != "X"; then
10606 for found_dir in $ltrpathdirs; do
10607 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10608 done
10609 fi
10610
10611
10612
10613
10614
10615
10616
10617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10618 $as_echo_n "checking for iconv... " >&6; }
10619 if test "${am_cv_func_iconv+set}" = set; then :
10620 $as_echo_n "(cached) " >&6
10621 else
10622
10623 am_cv_func_iconv="no, consider installing GNU libiconv"
10624 am_cv_lib_iconv=no
10625 am_save_CPPFLAGS="$CPPFLAGS"
10626 CPPFLAGS="$CPPFLAGS $INCICONV"
10627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10628 /* end confdefs.h. */
10629 #include <stdlib.h>
10630 #include <iconv.h>
10631 int
10632 main ()
10633 {
10634 iconv_t cd = iconv_open("","");
10635 iconv(cd,NULL,NULL,NULL,NULL);
10636 iconv_close(cd);
10637 ;
10638 return 0;
10639 }
10640 _ACEOF
10641 if ac_fn_cxx_try_link "$LINENO"; then :
10642 am_cv_func_iconv=yes
10643 fi
10644 rm -f core conftest.err conftest.$ac_objext \
10645 conftest$ac_exeext conftest.$ac_ext
10646 CPPFLAGS="$am_save_CPPFLAGS"
10647
10648 if test "$am_cv_func_iconv" != yes && test -d ../libiconv; then
10649 for _libs in .libs _libs; do
10650 am_save_CPPFLAGS="$CPPFLAGS"
10651 am_save_LIBS="$LIBS"
10652 CPPFLAGS="$CPPFLAGS -I../libiconv/include"
10653 LIBS="$LIBS ../libiconv/lib/$_libs/libiconv.a"
10654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10655 /* end confdefs.h. */
10656 #include <stdlib.h>
10657 #include <iconv.h>
10658 int
10659 main ()
10660 {
10661 iconv_t cd = iconv_open("","");
10662 iconv(cd,NULL,NULL,NULL,NULL);
10663 iconv_close(cd);
10664 ;
10665 return 0;
10666 }
10667 _ACEOF
10668 if ac_fn_cxx_try_link "$LINENO"; then :
10669 INCICONV="-I../libiconv/include"
10670 LIBICONV='${top_builddir}'/../libiconv/lib/$_libs/libiconv.a
10671 LTLIBICONV='${top_builddir}'/../libiconv/lib/libiconv.la
10672 am_cv_lib_iconv=yes
10673 am_cv_func_iconv=yes
10674 fi
10675 rm -f core conftest.err conftest.$ac_objext \
10676 conftest$ac_exeext conftest.$ac_ext
10677 CPPFLAGS="$am_save_CPPFLAGS"
10678 LIBS="$am_save_LIBS"
10679 if test "$am_cv_func_iconv" = "yes"; then
10680 break
10681 fi
10682 done
10683 fi
10684
10685 if test "$am_cv_func_iconv" != yes; then
10686 am_save_CPPFLAGS="$CPPFLAGS"
10687 am_save_LIBS="$LIBS"
10688 CPPFLAGS="$LIBS $INCICONV"
10689 LIBS="$LIBS $LIBICONV"
10690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10691 /* end confdefs.h. */
10692 #include <stdlib.h>
10693 #include <iconv.h>
10694 int
10695 main ()
10696 {
10697 iconv_t cd = iconv_open("","");
10698 iconv(cd,NULL,NULL,NULL,NULL);
10699 iconv_close(cd);
10700 ;
10701 return 0;
10702 }
10703 _ACEOF
10704 if ac_fn_cxx_try_link "$LINENO"; then :
10705 am_cv_lib_iconv=yes
10706 am_cv_func_iconv=yes
10707 fi
10708 rm -f core conftest.err conftest.$ac_objext \
10709 conftest$ac_exeext conftest.$ac_ext
10710 CPPFLAGS="$am_save_CPPFLAGS"
10711 LIBS="$am_save_LIBS"
10712 fi
10713
10714 fi
10715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10716 $as_echo "$am_cv_func_iconv" >&6; }
10717 if test "$am_cv_func_iconv" = yes; then
10718
10719 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10720
10721 fi
10722 if test "$am_cv_lib_iconv" = yes; then
10723
10724 for element in $INCICONV; do
10725 haveit=
10726 for x in $CPPFLAGS; do
10727
10728 acl_save_prefix="$prefix"
10729 prefix="$acl_final_prefix"
10730 acl_save_exec_prefix="$exec_prefix"
10731 exec_prefix="$acl_final_exec_prefix"
10732 eval x=\"$x\"
10733 exec_prefix="$acl_save_exec_prefix"
10734 prefix="$acl_save_prefix"
10735
10736 if test "X$x" = "X$element"; then
10737 haveit=yes
10738 break
10739 fi
10740 done
10741 if test -z "$haveit"; then
10742 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10743 fi
10744 done
10745
10746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10747 $as_echo_n "checking how to link with libiconv... " >&6; }
10748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10749 $as_echo "$LIBICONV" >&6; }
10750 else
10751 LIBICONV=
10752 LTLIBICONV=
10753 fi
10754
10755
10756
10757 if test "$am_cv_func_iconv" = yes; then
10758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10759 $as_echo_n "checking for iconv declaration... " >&6; }
10760 if test "${am_cv_proto_iconv+set}" = set; then :
10761 $as_echo_n "(cached) " >&6
10762 else
10763
10764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10765 /* end confdefs.h. */
10766
10767 #include <stdlib.h>
10768 #include <iconv.h>
10769 extern
10770 #ifdef __cplusplus
10771 "C"
10772 #endif
10773 #if defined(__STDC__) || defined(__cplusplus)
10774 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10775 #else
10776 size_t iconv();
10777 #endif
10778
10779 int
10780 main ()
10781 {
10782
10783 ;
10784 return 0;
10785 }
10786 _ACEOF
10787 if ac_fn_cxx_try_compile "$LINENO"; then :
10788 am_cv_proto_iconv_arg1=""
10789 else
10790 am_cv_proto_iconv_arg1="const"
10791 fi
10792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10793 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);"
10794 fi
10795
10796 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10798 }$am_cv_proto_iconv" >&5
10799 $as_echo "${ac_t:-
10800 }$am_cv_proto_iconv" >&6; }
10801
10802 cat >>confdefs.h <<_ACEOF
10803 #define ICONV_CONST $am_cv_proto_iconv_arg1
10804 _ACEOF
10805
10806 fi
10807
10808
10809 # Until we have in-tree GNU iconv:
10810 LIBICONV_DEP=
10811 if test -f "$LTLIBICONV"; then
10812 LIBICONV_DEP=$LTLIBICONV
10813 fi
10814
10815
10816
10817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10818 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10819 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
10820 $as_echo_n "(cached) " >&6
10821 else
10822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10823 /* end confdefs.h. */
10824 #include <locale.h>
10825 int
10826 main ()
10827 {
10828 return LC_MESSAGES
10829 ;
10830 return 0;
10831 }
10832 _ACEOF
10833 if ac_fn_cxx_try_link "$LINENO"; then :
10834 am_cv_val_LC_MESSAGES=yes
10835 else
10836 am_cv_val_LC_MESSAGES=no
10837 fi
10838 rm -f core conftest.err conftest.$ac_objext \
10839 conftest$ac_exeext conftest.$ac_ext
10840 fi
10841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10842 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10843 if test $am_cv_val_LC_MESSAGES = yes; then
10844
10845 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10846
10847 fi
10848
10849
10850
10851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10852 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10853 if test "${am_cv_langinfo_codeset+set}" = set; then :
10854 $as_echo_n "(cached) " >&6
10855 else
10856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10857 /* end confdefs.h. */
10858 #include <langinfo.h>
10859 int
10860 main ()
10861 {
10862 char* cs = nl_langinfo(CODESET);
10863 ;
10864 return 0;
10865 }
10866 _ACEOF
10867 if ac_fn_cxx_try_link "$LINENO"; then :
10868 am_cv_langinfo_codeset=yes
10869 else
10870 am_cv_langinfo_codeset=no
10871 fi
10872 rm -f core conftest.err conftest.$ac_objext \
10873 conftest$ac_exeext conftest.$ac_ext
10874
10875 fi
10876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10877 $as_echo "$am_cv_langinfo_codeset" >&6; }
10878 if test $am_cv_langinfo_codeset = yes; then
10879
10880 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10881
10882 fi
10883
10884
10885 # We will need to find libiberty.h and ansidecl.h
10886 saved_CFLAGS="$CFLAGS"
10887 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10888 saved_CXXFLAGS="$CXXFLAGS"
10889 CXXFLAGS="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10890
10891 # gcc_AC_CHECK_DECLS doesn't support overloaded functions, so use the
10892 # normal autoconf function for these. But force definition of
10893 # HAVE_DECL_BASENAME like gcc_AC_CHECK_DECLS does, to suppress the bizarre
10894 # basename handling in libiberty.h.
10895 ac_fn_cxx_check_decl "$LINENO" "basename(const char*)" "ac_cv_have_decl_basename_const_charp_" "
10896 #undef HAVE_DECL_BASENAME
10897 #define HAVE_DECL_BASENAME 1
10898 #include \"ansidecl.h\"
10899 #include \"system.h\"
10900 "
10901 if test "x$ac_cv_have_decl_basename_const_charp_" = x""yes; then :
10902 ac_have_decl=1
10903 else
10904 ac_have_decl=0
10905 fi
10906
10907 cat >>confdefs.h <<_ACEOF
10908 #define HAVE_DECL_BASENAME $ac_have_decl
10909 _ACEOF
10910 ac_fn_cxx_check_decl "$LINENO" "strstr(const char*,const char*)" "ac_cv_have_decl_strstr_const_charp_const_charp_" "
10911 #undef HAVE_DECL_BASENAME
10912 #define HAVE_DECL_BASENAME 1
10913 #include \"ansidecl.h\"
10914 #include \"system.h\"
10915 "
10916 if test "x$ac_cv_have_decl_strstr_const_charp_const_charp_" = x""yes; then :
10917 ac_have_decl=1
10918 else
10919 ac_have_decl=0
10920 fi
10921
10922 cat >>confdefs.h <<_ACEOF
10923 #define HAVE_DECL_STRSTR $ac_have_decl
10924 _ACEOF
10925
10926
10927 for ac_func in getenv atol atoll asprintf sbrk abort atof getcwd getwd \
10928 madvise stpcpy strnlen strsignal strverscmp \
10929 strtol strtoul strtoll strtoull setenv unsetenv \
10930 errno snprintf vsnprintf vasprintf malloc realloc calloc \
10931 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
10932 do
10933 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10935 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10936 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10937 $as_echo_n "(cached) " >&6
10938 else
10939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10940 /* end confdefs.h. */
10941 #undef $ac_tr_decl
10942 #define $ac_tr_decl 1
10943
10944 #include "ansidecl.h"
10945 #include "system.h"
10946
10947 int
10948 main ()
10949 {
10950 #ifndef $ac_func
10951 char *(*pfn) = (char *(*)) $ac_func ;
10952 #endif
10953 ;
10954 return 0;
10955 }
10956 _ACEOF
10957 if ac_fn_cxx_try_compile "$LINENO"; then :
10958 eval "gcc_cv_have_decl_$ac_func=yes"
10959 else
10960 eval "gcc_cv_have_decl_$ac_func=no"
10961 fi
10962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10963 fi
10964
10965 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10967 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10968 #define $ac_tr_decl 1
10969 _ACEOF
10970
10971 else
10972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10973 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10974 #define $ac_tr_decl 0
10975 _ACEOF
10976
10977 fi
10978
10979 done
10980
10981
10982 for ac_func in getrlimit setrlimit getrusage
10983 do
10984 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10986 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10987 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10988 $as_echo_n "(cached) " >&6
10989 else
10990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10991 /* end confdefs.h. */
10992 #undef $ac_tr_decl
10993 #define $ac_tr_decl 1
10994
10995 #include "ansidecl.h"
10996 #include "system.h"
10997 #ifdef HAVE_SYS_RESOURCE_H
10998 #include <sys/resource.h>
10999 #endif
11000
11001
11002 int
11003 main ()
11004 {
11005 #ifndef $ac_func
11006 char *(*pfn) = (char *(*)) $ac_func ;
11007 #endif
11008 ;
11009 return 0;
11010 }
11011 _ACEOF
11012 if ac_fn_cxx_try_compile "$LINENO"; then :
11013 eval "gcc_cv_have_decl_$ac_func=yes"
11014 else
11015 eval "gcc_cv_have_decl_$ac_func=no"
11016 fi
11017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11018 fi
11019
11020 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11022 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11023 #define $ac_tr_decl 1
11024 _ACEOF
11025
11026 else
11027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11028 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11029 #define $ac_tr_decl 0
11030 _ACEOF
11031
11032 fi
11033
11034 done
11035
11036
11037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11038 /* end confdefs.h. */
11039
11040 #include "ansidecl.h"
11041 #include "system.h"
11042 #ifdef HAVE_SYS_RESOURCE_H
11043 #include <sys/resource.h>
11044 #endif
11045
11046 int
11047 main ()
11048 {
11049 rlim_t l = 0;
11050 ;
11051 return 0;
11052 }
11053 _ACEOF
11054 if ac_fn_cxx_try_compile "$LINENO"; then :
11055
11056 else
11057
11058 $as_echo "#define rlim_t long" >>confdefs.h
11059
11060 fi
11061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11062
11063 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
11064 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
11065 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
11066 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
11067 for ac_func in ldgetname
11068 do
11069 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11071 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11072 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11073 $as_echo_n "(cached) " >&6
11074 else
11075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11076 /* end confdefs.h. */
11077 #undef $ac_tr_decl
11078 #define $ac_tr_decl 1
11079
11080 #include "ansidecl.h"
11081 #include "system.h"
11082 #ifdef HAVE_LDFCN_H
11083 #undef FREAD
11084 #undef FWRITE
11085 #include <ldfcn.h>
11086 #endif
11087
11088
11089 int
11090 main ()
11091 {
11092 #ifndef $ac_func
11093 char *(*pfn) = (char *(*)) $ac_func ;
11094 #endif
11095 ;
11096 return 0;
11097 }
11098 _ACEOF
11099 if ac_fn_cxx_try_compile "$LINENO"; then :
11100 eval "gcc_cv_have_decl_$ac_func=yes"
11101 else
11102 eval "gcc_cv_have_decl_$ac_func=no"
11103 fi
11104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11105 fi
11106
11107 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11109 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11110 #define $ac_tr_decl 1
11111 _ACEOF
11112
11113 else
11114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11115 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11116 #define $ac_tr_decl 0
11117 _ACEOF
11118
11119 fi
11120
11121 done
11122
11123
11124 for ac_func in times
11125 do
11126 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11128 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11129 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11130 $as_echo_n "(cached) " >&6
11131 else
11132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11133 /* end confdefs.h. */
11134 #undef $ac_tr_decl
11135 #define $ac_tr_decl 1
11136
11137 #include "ansidecl.h"
11138 #include "system.h"
11139 #ifdef HAVE_SYS_TIMES_H
11140 #include <sys/times.h>
11141 #endif
11142
11143
11144 int
11145 main ()
11146 {
11147 #ifndef $ac_func
11148 char *(*pfn) = (char *(*)) $ac_func ;
11149 #endif
11150 ;
11151 return 0;
11152 }
11153 _ACEOF
11154 if ac_fn_cxx_try_compile "$LINENO"; then :
11155 eval "gcc_cv_have_decl_$ac_func=yes"
11156 else
11157 eval "gcc_cv_have_decl_$ac_func=no"
11158 fi
11159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11160 fi
11161
11162 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11164 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11165 #define $ac_tr_decl 1
11166 _ACEOF
11167
11168 else
11169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11170 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11171 #define $ac_tr_decl 0
11172 _ACEOF
11173
11174 fi
11175
11176 done
11177
11178
11179 for ac_func in sigaltstack
11180 do
11181 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11183 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11184 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11185 $as_echo_n "(cached) " >&6
11186 else
11187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11188 /* end confdefs.h. */
11189 #undef $ac_tr_decl
11190 #define $ac_tr_decl 1
11191
11192 #include "ansidecl.h"
11193 #include "system.h"
11194 #include <signal.h>
11195
11196
11197 int
11198 main ()
11199 {
11200 #ifndef $ac_func
11201 char *(*pfn) = (char *(*)) $ac_func ;
11202 #endif
11203 ;
11204 return 0;
11205 }
11206 _ACEOF
11207 if ac_fn_cxx_try_compile "$LINENO"; then :
11208 eval "gcc_cv_have_decl_$ac_func=yes"
11209 else
11210 eval "gcc_cv_have_decl_$ac_func=no"
11211 fi
11212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11213 fi
11214
11215 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11217 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11218 #define $ac_tr_decl 1
11219 _ACEOF
11220
11221 else
11222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11223 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11224 #define $ac_tr_decl 0
11225 _ACEOF
11226
11227 fi
11228
11229 done
11230
11231
11232 # More time-related stuff.
11233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
11234 $as_echo_n "checking for struct tms... " >&6; }
11235 if test "${ac_cv_struct_tms+set}" = set; then :
11236 $as_echo_n "(cached) " >&6
11237 else
11238
11239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11240 /* end confdefs.h. */
11241
11242 #include "ansidecl.h"
11243 #include "system.h"
11244 #ifdef HAVE_SYS_TIMES_H
11245 #include <sys/times.h>
11246 #endif
11247
11248 int
11249 main ()
11250 {
11251 struct tms tms;
11252 ;
11253 return 0;
11254 }
11255 _ACEOF
11256 if ac_fn_cxx_try_compile "$LINENO"; then :
11257 ac_cv_struct_tms=yes
11258 else
11259 ac_cv_struct_tms=no
11260 fi
11261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11262 fi
11263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
11264 $as_echo "$ac_cv_struct_tms" >&6; }
11265 if test $ac_cv_struct_tms = yes; then
11266
11267 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
11268
11269 fi
11270
11271 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
11272 # revisit after autoconf 2.50.
11273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
11274 $as_echo_n "checking for clock_t... " >&6; }
11275 if test "${gcc_cv_type_clock_t+set}" = set; then :
11276 $as_echo_n "(cached) " >&6
11277 else
11278
11279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11280 /* end confdefs.h. */
11281
11282 #include "ansidecl.h"
11283 #include "system.h"
11284
11285 int
11286 main ()
11287 {
11288 clock_t x;
11289 ;
11290 return 0;
11291 }
11292 _ACEOF
11293 if ac_fn_cxx_try_compile "$LINENO"; then :
11294 gcc_cv_type_clock_t=yes
11295 else
11296 gcc_cv_type_clock_t=no
11297 fi
11298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11299 fi
11300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
11301 $as_echo "$gcc_cv_type_clock_t" >&6; }
11302 if test $gcc_cv_type_clock_t = yes; then
11303
11304 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
11305
11306 fi
11307
11308 # Check if F_SETLKW is supported by fcntl.
11309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
11310 $as_echo_n "checking for F_SETLKW... " >&6; }
11311 if test "${ac_cv_f_setlkw+set}" = set; then :
11312 $as_echo_n "(cached) " >&6
11313 else
11314
11315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11316 /* end confdefs.h. */
11317
11318 #include <fcntl.h>
11319 int
11320 main ()
11321 {
11322
11323 struct flock fl;
11324 fl.l_whence = 0;
11325 fl.l_start = 0;
11326 fl.l_len = 0;
11327 fl.l_pid = 0;
11328 return fcntl (1, F_SETLKW, &fl);
11329 ;
11330 return 0;
11331 }
11332 _ACEOF
11333 if ac_fn_cxx_try_compile "$LINENO"; then :
11334 ac_cv_f_setlkw=yes
11335 else
11336 ac_cv_f_setlkw=no
11337 fi
11338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11339 fi
11340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
11341 $as_echo "$ac_cv_f_setlkw" >&6; }
11342 if test $ac_cv_f_setlkw = yes; then
11343
11344 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
11345
11346 fi
11347
11348 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
11349 CFLAGS="$saved_CFLAGS"
11350 CXXFLAGS="$saved_CXXFLAGS"
11351
11352 # mkdir takes a single argument on some systems.
11353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
11354 $as_echo_n "checking if mkdir takes one argument... " >&6; }
11355 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
11356 $as_echo_n "(cached) " >&6
11357 else
11358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11359 /* end confdefs.h. */
11360
11361 #include <sys/types.h>
11362 #ifdef HAVE_SYS_STAT_H
11363 # include <sys/stat.h>
11364 #endif
11365 #ifdef HAVE_UNISTD_H
11366 # include <unistd.h>
11367 #endif
11368 #ifdef HAVE_DIRECT_H
11369 # include <direct.h>
11370 #endif
11371 int
11372 main ()
11373 {
11374 mkdir ("foo", 0);
11375 ;
11376 return 0;
11377 }
11378 _ACEOF
11379 if ac_fn_cxx_try_compile "$LINENO"; then :
11380 gcc_cv_mkdir_takes_one_arg=no
11381 else
11382 gcc_cv_mkdir_takes_one_arg=yes
11383 fi
11384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11385 fi
11386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
11387 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
11388 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
11389
11390 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
11391
11392 fi
11393
11394
11395 # File extensions
11396 manext='.1'
11397 objext='.o'
11398
11399
11400
11401 # With Setjmp/Longjmp based exception handling.
11402 # Check whether --enable-sjlj-exceptions was given.
11403 if test "${enable_sjlj_exceptions+set}" = set; then :
11404 enableval=$enable_sjlj_exceptions; case $target in
11405 *-*-hpux10*)
11406 if test $enableval != yes; then
11407 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
11408 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
11409 enableval=yes
11410 fi
11411 ;;
11412 esac
11413 force_sjlj_exceptions=yes
11414 else
11415 case $target in
11416 *-*-hpux10*)
11417 force_sjlj_exceptions=yes
11418 enableval=yes
11419 ;;
11420 lm32*-*-*)
11421 force_sjlj_exceptions=yes
11422 enableval=yes
11423 ;;
11424 *)
11425 force_sjlj_exceptions=no
11426 ;;
11427 esac
11428 fi
11429
11430 if test $force_sjlj_exceptions = yes; then
11431 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
11432
11433 cat >>confdefs.h <<_ACEOF
11434 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
11435 _ACEOF
11436
11437 fi
11438
11439 # --------------------------------------------------------
11440 # Build, host, and target specific configuration fragments
11441 # --------------------------------------------------------
11442
11443 # Collect build-machine-specific information.
11444 . ${srcdir}/config.build
11445
11446 # Collect host-machine-specific information.
11447 . ${srcdir}/config.host
11448
11449 target_gtfiles=
11450
11451 # Collect target-machine-specific information.
11452 . ${srcdir}/config.gcc
11453
11454 extra_objs="${host_extra_objs} ${extra_objs}"
11455 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
11456
11457 # Default the target-machine variables that were not explicitly set.
11458 if test x"$tm_file" = x
11459 then tm_file=$cpu_type/$cpu_type.h; fi
11460
11461 if test x"$extra_headers" = x
11462 then extra_headers=; fi
11463
11464 if test x$md_file = x
11465 then md_file=$cpu_type/$cpu_type.md; fi
11466
11467 if test x$out_file = x
11468 then out_file=$cpu_type/$cpu_type.c; fi
11469
11470 if test x"$tmake_file" = x
11471 then tmake_file=$cpu_type/t-$cpu_type
11472 fi
11473
11474 # Support --enable-initfini-array.
11475 if test x$enable_initfini_array != xno; then
11476 tm_file="${tm_file} initfini-array.h"
11477 fi
11478
11479 if test x"$dwarf2" = xyes
11480 then tm_file="$tm_file tm-dwarf2.h"
11481 fi
11482
11483 # Say what files are being used for the output code and MD file.
11484 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11485 echo "Using \`$srcdir/config/$md_file' as machine description file."
11486
11487 # If any of the xm_file variables contain nonexistent files, warn
11488 # about them and drop them.
11489
11490 bx=
11491 for x in $build_xm_file; do
11492 if test -f $srcdir/config/$x
11493 then bx="$bx $x"
11494 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11495 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11496 fi
11497 done
11498 build_xm_file="$bx"
11499
11500 hx=
11501 for x in $host_xm_file; do
11502 if test -f $srcdir/config/$x
11503 then hx="$hx $x"
11504 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11505 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11506 fi
11507 done
11508 host_xm_file="$hx"
11509
11510 tx=
11511 for x in $xm_file; do
11512 if test -f $srcdir/config/$x
11513 then tx="$tx $x"
11514 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11515 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11516 fi
11517 done
11518 xm_file="$tx"
11519
11520 count=a
11521 for f in $tm_file; do
11522 count=${count}x
11523 done
11524 if test $count = ax; then
11525 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11526 else
11527 echo "Using the following target machine macro files:"
11528 for f in $tm_file; do
11529 echo " $srcdir/config/$f"
11530 done
11531 fi
11532
11533 if test x$use_long_long_for_widest_fast_int = xyes; then
11534
11535 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
11536
11537 fi
11538
11539 gnu_ld_bool=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
11540
11541 cat >>confdefs.h <<_ACEOF
11542 #define HAVE_GNU_LD $gnu_ld_bool
11543 _ACEOF
11544
11545
11546 gnu_as_bool=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
11547
11548 cat >>confdefs.h <<_ACEOF
11549 #define HAVE_GNU_AS $gnu_as_bool
11550 _ACEOF
11551
11552
11553 count=a
11554 for f in $host_xm_file; do
11555 count=${count}x
11556 done
11557 if test $count = a; then
11558 :
11559 elif test $count = ax; then
11560 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11561 else
11562 echo "Using the following host machine macro files:"
11563 for f in $host_xm_file; do
11564 echo " $srcdir/config/$f"
11565 done
11566 fi
11567 echo "Using ${out_host_hook_obj} for host machine hooks."
11568
11569 if test "$host_xm_file" != "$build_xm_file"; then
11570 count=a
11571 for f in $build_xm_file; do
11572 count=${count}x
11573 done
11574 if test $count = a; then
11575 :
11576 elif test $count = ax; then
11577 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11578 else
11579 echo "Using the following build machine macro files:"
11580 for f in $build_xm_file; do
11581 echo " $srcdir/config/$f"
11582 done
11583 fi
11584 fi
11585
11586 if test -n "$configured_native_system_header_dir"; then
11587 native_system_header_dir=$configured_native_system_header_dir
11588 fi
11589 NATIVE_SYSTEM_HEADER_DIR="$native_system_header_dir"
11590
11591
11592 case ${host} in
11593 powerpc*-*-darwin*)
11594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
11595 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
11596 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
11597 $as_echo_n "(cached) " >&6
11598 else
11599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11600 /* end confdefs.h. */
11601
11602 #include <sys/cdefs.h>
11603 #include <sys/signal.h>
11604 #include <ucontext.h>
11605 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
11606
11607 _ACEOF
11608 if ac_fn_cxx_try_compile "$LINENO"; then :
11609 gcc_cv_mcontext_underscores=no
11610 else
11611 gcc_cv_mcontext_underscores=yes
11612 fi
11613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11614 fi
11615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
11616 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
11617 if test $gcc_cv_mcontext_underscores = yes; then
11618
11619 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
11620
11621 fi
11622 ;;
11623 esac
11624
11625 # ---------
11626 # Threading
11627 # ---------
11628
11629 # Check if a valid thread package
11630 case ${enable_threads} in
11631 "" | no)
11632 # No threads
11633 target_thread_file='single'
11634 ;;
11635 yes)
11636 # default
11637 target_thread_file='single'
11638 ;;
11639 aix | dce | lynx | mipssde | posix | rtems | \
11640 single | tpf | vxworks | win32)
11641 target_thread_file=${enable_threads}
11642 ;;
11643 *)
11644 echo "${enable_threads} is an unknown thread package" 1>&2
11645 exit 1
11646 ;;
11647 esac
11648
11649 if test x${thread_file} = x; then
11650 # No thread file set by target-specific clauses in config.gcc,
11651 # so use file chosen by default logic above
11652 thread_file=${target_thread_file}
11653 fi
11654
11655 # --------
11656 # UNSORTED
11657 # --------
11658
11659 use_cxa_atexit=no
11660 if test x$enable___cxa_atexit = xyes || \
11661 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
11662 if test x$host = x$target; then
11663 case $host in
11664 # mingw32 doesn't have __cxa_atexit but uses atexit registration
11665 # keyed to flag_use_cxa_atexit
11666 *-*-mingw32*)
11667 use_cxa_atexit=yes
11668 ;;
11669 powerpc-ibm-aix*)
11670 use_cxa_atexit=yes
11671 ;;
11672 *)
11673 ac_fn_cxx_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
11674 if test "x$ac_cv_func___cxa_atexit" = x""yes; then :
11675 use_cxa_atexit=yes
11676 else
11677 echo "__cxa_atexit can't be enabled on this target"
11678 fi
11679
11680 ;;
11681 esac
11682 else
11683 # We can't check for __cxa_atexit when building a cross, so assume
11684 # it is available
11685 use_cxa_atexit=yes
11686 fi
11687 if test x$use_cxa_atexit = xyes; then
11688
11689 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
11690
11691 fi
11692 fi
11693
11694 # Look for a file containing extra machine modes.
11695 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
11696 extra_modes_file='$(srcdir)'/config/${extra_modes}
11697
11698
11699 cat >>confdefs.h <<_ACEOF
11700 #define EXTRA_MODES_FILE "config/$extra_modes"
11701 _ACEOF
11702
11703 fi
11704
11705 # Convert extra_options into a form suitable for Makefile use.
11706 extra_opt_files=
11707 all_opt_files=
11708 for f in $extra_options; do
11709 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
11710 all_opt_files="$all_opt_files $srcdir/config/$f"
11711 done
11712
11713
11714 # auto-host.h is the file containing items generated by autoconf and is
11715 # the first file included by config.h.
11716 # If host=build, it is correct to have bconfig include auto-host.h
11717 # as well. If host!=build, we are in error and need to do more
11718 # work to find out the build config parameters.
11719 if test x$host = x$build
11720 then
11721 build_auto=auto-host.h
11722 else
11723 # We create a subdir, then run autoconf in the subdir.
11724 # To prevent recursion we set host and build for the new
11725 # invocation of configure to the build for this invocation
11726 # of configure.
11727 tempdir=build.$$
11728 rm -rf $tempdir
11729 mkdir $tempdir
11730 cd $tempdir
11731 case ${srcdir} in
11732 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
11733 *) realsrcdir=../${srcdir};;
11734 esac
11735 # Clearing GMPINC is necessary to prevent host headers being
11736 # used by the build compiler. Defining GENERATOR_FILE stops
11737 # system.h from including gmp.h.
11738 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
11739 CXX="${CXX_FOR_BUILD}" CXXFLAGS="${CXXFLAGS_FOR_BUILD}" \
11740 LD="${LD_FOR_BUILD}" LDFLAGS="${LDFLAGS_FOR_BUILD}" \
11741 GMPINC="" CPPFLAGS="${CPPFLAGS} -DGENERATOR_FILE" \
11742 ${realsrcdir}/configure \
11743 --enable-languages=${enable_languages-all} \
11744 --target=$target_alias --host=$build_alias --build=$build_alias
11745
11746 # We just finished tests for the build machine, so rename
11747 # the file auto-build.h in the gcc directory.
11748 mv auto-host.h ../auto-build.h
11749 cd ..
11750 rm -rf $tempdir
11751 build_auto=auto-build.h
11752 fi
11753
11754
11755 tm_file="${tm_file} defaults.h"
11756 tm_p_file="${tm_p_file} tm-preds.h"
11757 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
11758 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
11759 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
11760 # put this back in temporarily.
11761 xm_file="auto-host.h ansidecl.h ${xm_file}"
11762
11763 # --------
11764 # UNSORTED
11765 # --------
11766
11767 # Compile in configure arguments.
11768 if test -f configargs.h ; then
11769 # Being re-configured.
11770 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
11771 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
11772 else
11773 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
11774 fi
11775
11776 # Double all backslashes and backslash all quotes to turn
11777 # gcc_config_arguments into a C string.
11778 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
11779 $gcc_config_arguments
11780 EOF
11781 gcc_config_arguments_str=`cat conftest.out`
11782 rm -f conftest.out
11783
11784 cat > configargs.h <<EOF
11785 /* Generated automatically. */
11786 static const char configuration_arguments[] = "$gcc_config_arguments_str";
11787 static const char thread_model[] = "$thread_file";
11788
11789 static const struct {
11790 const char *name, *value;
11791 } configure_default_options[] = $configure_default_options;
11792 EOF
11793
11794 gcc_BASEVER=`cat $srcdir/BASE-VER`
11795 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
11796 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
11797 if test -f $srcdir/REVISION ; then
11798 gcc_REVISION=`cat $srcdir/REVISION`
11799 else
11800 gcc_REVISION=""
11801 fi
11802 cat > plugin-version.h <<EOF
11803 #include "configargs.h"
11804
11805 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
11806 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
11807 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
11808 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
11809
11810 static char basever[] = "$gcc_BASEVER";
11811 static char datestamp[] = "$gcc_DATESTAMP";
11812 static char devphase[] = "$gcc_DEVPHASE";
11813 static char revision[] = "$gcc_REVISION";
11814
11815 /* FIXME plugins: We should make the version information more precise.
11816 One way to do is to add a checksum. */
11817
11818 static struct plugin_gcc_version gcc_version = {basever, datestamp,
11819 devphase, revision,
11820 configuration_arguments};
11821 EOF
11822
11823 # Internationalization
11824 # If we haven't got the data from the intl directory,
11825 # assume NLS is disabled.
11826 USE_NLS=no
11827 LIBINTL=
11828 LIBINTL_DEP=
11829 INCINTL=
11830 XGETTEXT=
11831 GMSGFMT=
11832 POSUB=
11833
11834 if test -f ../intl/config.intl; then
11835 . ../intl/config.intl
11836 fi
11837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11838 $as_echo_n "checking whether NLS is requested... " >&6; }
11839 if test x"$USE_NLS" != xyes; then
11840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11841 $as_echo "no" >&6; }
11842 else
11843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11844 $as_echo "yes" >&6; }
11845
11846 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11847
11848
11849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11850 $as_echo_n "checking for catalogs to be installed... " >&6; }
11851 # Look for .po and .gmo files in the source directory.
11852 CATALOGS=
11853 XLINGUAS=
11854 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
11855 # If there aren't any .gmo files the shell will give us the
11856 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11857 # weeded out.
11858 case "$cat" in *\**)
11859 continue;;
11860 esac
11861 # The quadruple backslash is collapsed to a double backslash
11862 # by the backticks, then collapsed again by the double quotes,
11863 # leaving us with one backslash in the sed expression (right
11864 # before the dot that mustn't act as a wildcard).
11865 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11866 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
11867 # The user is allowed to set LINGUAS to a list of languages to
11868 # install catalogs for. If it's empty that means "all of them."
11869 if test "x$LINGUAS" = x; then
11870 CATALOGS="$CATALOGS $cat"
11871 XLINGUAS="$XLINGUAS $lang"
11872 else
11873 case "$LINGUAS" in *$lang*)
11874 CATALOGS="$CATALOGS $cat"
11875 XLINGUAS="$XLINGUAS $lang"
11876 ;;
11877 esac
11878 fi
11879 done
11880 LINGUAS="$XLINGUAS"
11881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11882 $as_echo "$LINGUAS" >&6; }
11883
11884
11885 DATADIRNAME=share
11886
11887 INSTOBJEXT=.mo
11888
11889 GENCAT=gencat
11890
11891 CATOBJEXT=.gmo
11892
11893 fi
11894
11895 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
11896 # -liconv on the link line twice.
11897 case "$LIBINTL" in *$LIBICONV*)
11898 LIBICONV= ;;
11899 esac
11900
11901 # Check whether --enable-secureplt was given.
11902 if test "${enable_secureplt+set}" = set; then :
11903 enableval=$enable_secureplt;
11904 fi
11905
11906
11907 # Check whether --enable-leading-mingw64-underscores was given.
11908 if test "${enable_leading_mingw64_underscores+set}" = set; then :
11909 enableval=$enable_leading_mingw64_underscores;
11910 fi
11911
11912 if test x"$enable_leading_mingw64_underscores" = xyes ; then :
11913
11914 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
11915
11916 fi
11917
11918 # Check whether --enable-cld was given.
11919 if test "${enable_cld+set}" = set; then :
11920 enableval=$enable_cld;
11921 else
11922 enable_cld=no
11923 fi
11924
11925
11926 # Check whether --enable-frame-pointer was given.
11927 if test "${enable_frame_pointer+set}" = set; then :
11928 enableval=$enable_frame_pointer;
11929 else
11930
11931 case $target_os in
11932 linux* | darwin[8912]*)
11933 # Enable -fomit-frame-pointer by default for Linux and Darwin with
11934 # DWARF2.
11935 enable_frame_pointer=no
11936 ;;
11937 *)
11938 enable_frame_pointer=yes
11939 ;;
11940 esac
11941
11942 fi
11943
11944
11945 # Windows32 Registry support for specifying GCC installation paths.
11946 # Check whether --enable-win32-registry was given.
11947 if test "${enable_win32_registry+set}" = set; then :
11948 enableval=$enable_win32_registry;
11949 fi
11950
11951
11952 case $host_os in
11953 win32 | pe | cygwin* | mingw32*)
11954 if test "x$enable_win32_registry" != xno; then
11955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
11956 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
11957 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11958 $as_echo_n "(cached) " >&6
11959 else
11960 ac_func_search_save_LIBS=$LIBS
11961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11962 /* end confdefs.h. */
11963
11964 /* Override any GCC internal prototype to avoid an error.
11965 Use char because int might match the return type of a GCC
11966 builtin and then its argument prototype would still apply. */
11967 #ifdef __cplusplus
11968 extern "C"
11969 #endif
11970 char RegOpenKeyExA ();
11971 int
11972 main ()
11973 {
11974 return RegOpenKeyExA ();
11975 ;
11976 return 0;
11977 }
11978 _ACEOF
11979 for ac_lib in '' advapi32; do
11980 if test -z "$ac_lib"; then
11981 ac_res="none required"
11982 else
11983 ac_res=-l$ac_lib
11984 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11985 fi
11986 if ac_fn_cxx_try_link "$LINENO"; then :
11987 ac_cv_search_RegOpenKeyExA=$ac_res
11988 fi
11989 rm -f core conftest.err conftest.$ac_objext \
11990 conftest$ac_exeext
11991 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11992 break
11993 fi
11994 done
11995 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11996
11997 else
11998 ac_cv_search_RegOpenKeyExA=no
11999 fi
12000 rm conftest.$ac_ext
12001 LIBS=$ac_func_search_save_LIBS
12002 fi
12003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
12004 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
12005 ac_res=$ac_cv_search_RegOpenKeyExA
12006 if test "$ac_res" != no; then :
12007 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12008
12009 else
12010 enable_win32_registry=no
12011 fi
12012
12013 fi
12014
12015 if test "x$enable_win32_registry" != xno; then
12016
12017 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
12018
12019
12020 if test "x$enable_win32_registry" != xyes \
12021 && test "x$enable_win32_registry" != x; then
12022
12023 cat >>confdefs.h <<_ACEOF
12024 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
12025 _ACEOF
12026
12027 fi
12028 fi
12029 ;;
12030 esac
12031
12032 # Get an absolute path to the GCC top-level source directory
12033 holddir=`${PWDCMD-pwd}`
12034 cd $srcdir
12035 topdir=`${PWDCMD-pwd}`
12036 cd $holddir
12037
12038 # Conditionalize the makefile for this host machine.
12039 xmake_file=
12040 for f in ${host_xmake_file}
12041 do
12042 if test -f ${srcdir}/config/$f
12043 then
12044 xmake_file="${xmake_file} \$(srcdir)/config/$f"
12045 fi
12046 done
12047
12048 # Conditionalize the makefile for this target machine.
12049 tmake_file_=
12050 for f in ${tmake_file}
12051 do
12052 if test -f ${srcdir}/config/$f
12053 then
12054 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
12055 fi
12056 done
12057 tmake_file="${tmake_file_}"
12058
12059 out_object_file=`basename $out_file .c`.o
12060 common_out_object_file=`basename $common_out_file .c`.o
12061
12062 tm_file_list="options.h"
12063 tm_include_list="options.h insn-constants.h"
12064 for f in $tm_file; do
12065 case $f in
12066 ./* )
12067 f=`echo $f | sed 's/^..//'`
12068 tm_file_list="${tm_file_list} $f"
12069 tm_include_list="${tm_include_list} $f"
12070 ;;
12071 defaults.h )
12072 tm_file_list="${tm_file_list} \$(srcdir)/$f"
12073 tm_include_list="${tm_include_list} $f"
12074 ;;
12075 * )
12076 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
12077 tm_include_list="${tm_include_list} config/$f"
12078 ;;
12079 esac
12080 done
12081
12082 tm_p_file_list=
12083 tm_p_include_list=
12084 for f in $tm_p_file; do
12085 case $f in
12086 tm-preds.h )
12087 tm_p_file_list="${tm_p_file_list} $f"
12088 tm_p_include_list="${tm_p_include_list} $f"
12089 ;;
12090 * )
12091 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
12092 tm_p_include_list="${tm_p_include_list} config/$f"
12093 esac
12094 done
12095
12096 xm_file_list=
12097 xm_include_list=
12098 for f in $xm_file; do
12099 case $f in
12100 ansidecl.h )
12101 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
12102 xm_include_list="${xm_include_list} $f"
12103 ;;
12104 auto-host.h )
12105 xm_file_list="${xm_file_list} $f"
12106 xm_include_list="${xm_include_list} $f"
12107 ;;
12108 * )
12109 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
12110 xm_include_list="${xm_include_list} config/$f"
12111 ;;
12112 esac
12113 done
12114
12115 host_xm_file_list=
12116 host_xm_include_list=
12117 for f in $host_xm_file; do
12118 case $f in
12119 ansidecl.h )
12120 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
12121 host_xm_include_list="${host_xm_include_list} $f"
12122 ;;
12123 auto-host.h )
12124 host_xm_file_list="${host_xm_file_list} $f"
12125 host_xm_include_list="${host_xm_include_list} $f"
12126 ;;
12127 * )
12128 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
12129 host_xm_include_list="${host_xm_include_list} config/$f"
12130 ;;
12131 esac
12132 done
12133
12134 build_xm_file_list=
12135 for f in $build_xm_file; do
12136 case $f in
12137 ansidecl.h )
12138 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
12139 build_xm_include_list="${build_xm_include_list} $f"
12140 ;;
12141 auto-build.h | auto-host.h )
12142 build_xm_file_list="${build_xm_file_list} $f"
12143 build_xm_include_list="${build_xm_include_list} $f"
12144 ;;
12145 * )
12146 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
12147 build_xm_include_list="${build_xm_include_list} config/$f"
12148 ;;
12149 esac
12150 done
12151
12152 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
12153 # cross-compiler which does not use the native headers and libraries.
12154 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
12155 CROSS=
12156 ALL=all.internal
12157 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
12158
12159 if test "x$with_build_sysroot" != x; then
12160 build_system_header_dir=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
12161 else
12162 # This value is used, even on a native system, because
12163 # CROSS_SYSTEM_HEADER_DIR is just
12164 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
12165 build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
12166 fi
12167
12168 if test x$host != x$target
12169 then
12170 CROSS="-DCROSS_DIRECTORY_STRUCTURE"
12171 ALL=all.cross
12172 SYSTEM_HEADER_DIR=$build_system_header_dir
12173 case "$host","$target" in
12174 # Darwin crosses can use the host system's libraries and headers,
12175 # because of the fat library support. Of course, it must be the
12176 # same version of Darwin on both sides. Allow the user to
12177 # just say --target=foo-darwin without a version number to mean
12178 # "the version on this system".
12179 *-*-darwin*,*-*-darwin*)
12180 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
12181 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
12182 if test $hostos = $targetos -o $targetos = darwin ; then
12183 CROSS=
12184 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
12185 with_headers=yes
12186 fi
12187 ;;
12188
12189 i?86-*-*,x86_64-*-* \
12190 | powerpc*-*-*,powerpc64*-*-*)
12191 CROSS="$CROSS -DNATIVE_CROSS" ;;
12192 esac
12193
12194 case $target in
12195 *-*-mingw*)
12196 if test "x$with_headers" = x; then
12197 with_headers=yes
12198 fi
12199 ;;
12200 *)
12201 ;;
12202 esac
12203 elif test "x$TARGET_SYSTEM_ROOT" != x; then
12204 SYSTEM_HEADER_DIR=$build_system_header_dir
12205 fi
12206
12207 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
12208 if test "x$with_headers" != x; then
12209 target_header_dir=$with_headers
12210 elif test "x$with_sysroot" = x; then
12211 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-include"
12212 elif test "x$with_build_sysroot" != "x"; then
12213 target_header_dir="${with_build_sysroot}${native_system_header_dir}"
12214 elif test "x$with_sysroot" = xyes; then
12215 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
12216 else
12217 target_header_dir="${with_sysroot}${native_system_header_dir}"
12218 fi
12219 else
12220 target_header_dir=${native_system_header_dir}
12221 fi
12222
12223 # If this is a cross-compiler that does not
12224 # have its own set of headers then define
12225 # inhibit_libc
12226
12227 # If this is using newlib, without having the headers available now,
12228 # then define inhibit_libc in LIBGCC2_CFLAGS.
12229 # This prevents libgcc2 from containing any code which requires libc
12230 # support.
12231 : ${inhibit_libc=false}
12232 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
12233 test x$with_newlib = xyes ; } &&
12234 { test "x$with_headers" = xno || test ! -f "$target_header_dir/stdio.h"; } ; then
12235 inhibit_libc=true
12236 fi
12237
12238
12239 # When building gcc with a cross-compiler, we need to adjust things so
12240 # that the generator programs are still built with the native compiler.
12241 # Also, we cannot run fixincludes.
12242
12243 # These are the normal (build=host) settings:
12244 CC_FOR_BUILD='$(CC)'
12245 CXX_FOR_BUILD='$(CXX)'
12246 BUILD_CFLAGS='$(ALL_CFLAGS)'
12247 BUILD_CXXFLAGS='$(ALL_CXXFLAGS)'
12248 BUILD_LDFLAGS='$(LDFLAGS)'
12249 STMP_FIXINC=stmp-fixinc
12250
12251 # And these apply if build != host, or we are generating coverage data
12252 if test x$build != x$host || test "x$coverage_flags" != x
12253 then
12254 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
12255 BUILD_CXXFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CXXFLAGS_FOR_BUILD)'
12256 BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
12257 fi
12258
12259 # Expand extra_headers to include complete path.
12260 # This substitutes for lots of t-* files.
12261 extra_headers_list=
12262 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
12263 for file in ${extra_headers} ; do
12264 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
12265 done
12266
12267 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
12268 if test x"$use_gcc_tgmath" = xyes
12269 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
12270 fi
12271
12272 # Define collect2 in Makefile.
12273 case $host_can_use_collect2 in
12274 no) collect2= ;;
12275 *) collect2='collect2$(exeext)' ;;
12276 esac
12277
12278
12279 # Add a definition of USE_COLLECT2 if system wants one.
12280 case $use_collect2 in
12281 no) use_collect2= ;;
12282 "") ;;
12283 *)
12284 host_xm_defines="${host_xm_defines} USE_COLLECT2"
12285 xm_defines="${xm_defines} USE_COLLECT2"
12286 case $host_can_use_collect2 in
12287 no)
12288 as_fn_error "collect2 is required but cannot be built on this system" "$LINENO" 5
12289 ;;
12290 esac
12291 ;;
12292 esac
12293
12294
12295 cat >>confdefs.h <<_ACEOF
12296 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
12297 _ACEOF
12298
12299
12300 # ---------------------------
12301 # Assembler & linker features
12302 # ---------------------------
12303
12304 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
12305 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
12306 # However when ld-new is first executed from the build tree, libtool will
12307 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
12308 # to the build tree. While doing this we need to use the previous-stage
12309 # linker, or we have an infinite loop. The presence of a shell script as
12310 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
12311 # the gcc/collect-ld script. So we need to know how libtool works, or
12312 # exec-tool will fail.
12313
12314
12315 case `pwd` in
12316 *\ * | *\ *)
12317 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
12318 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
12319 esac
12320
12321
12322
12323 macro_version='2.2.7a'
12324 macro_revision='1.3134'
12325
12326
12327
12328
12329
12330
12331
12332
12333
12334
12335
12336
12337
12338 ltmain="$ac_aux_dir/ltmain.sh"
12339
12340 # Backslashify metacharacters that are still active within
12341 # double-quoted strings.
12342 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
12343
12344 # Same as above, but do not quote variable references.
12345 double_quote_subst='s/\(["`\\]\)/\\\1/g'
12346
12347 # Sed substitution to delay expansion of an escaped shell variable in a
12348 # double_quote_subst'ed string.
12349 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
12350
12351 # Sed substitution to delay expansion of an escaped single quote.
12352 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
12353
12354 # Sed substitution to avoid accidental globbing in evaled expressions
12355 no_glob_subst='s/\*/\\\*/g'
12356
12357 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12358 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
12359 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
12360
12361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
12362 $as_echo_n "checking how to print strings... " >&6; }
12363 # Test print first, because it will be a builtin if present.
12364 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
12365 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
12366 ECHO='print -r --'
12367 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
12368 ECHO='printf %s\n'
12369 else
12370 # Use this function as a fallback that always works.
12371 func_fallback_echo ()
12372 {
12373 eval 'cat <<_LTECHO_EOF
12374 $1
12375 _LTECHO_EOF'
12376 }
12377 ECHO='func_fallback_echo'
12378 fi
12379
12380 # func_echo_all arg...
12381 # Invoke $ECHO with all args, space-separated.
12382 func_echo_all ()
12383 {
12384 $ECHO ""
12385 }
12386
12387 case "$ECHO" in
12388 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
12389 $as_echo "printf" >&6; } ;;
12390 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
12391 $as_echo "print -r" >&6; } ;;
12392 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
12393 $as_echo "cat" >&6; } ;;
12394 esac
12395
12396
12397
12398
12399
12400
12401
12402
12403
12404
12405
12406
12407
12408
12409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12410 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12411 if test "${ac_cv_path_SED+set}" = set; then :
12412 $as_echo_n "(cached) " >&6
12413 else
12414 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12415 for ac_i in 1 2 3 4 5 6 7; do
12416 ac_script="$ac_script$as_nl$ac_script"
12417 done
12418 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12419 { ac_script=; unset ac_script;}
12420 if test -z "$SED"; then
12421 ac_path_SED_found=false
12422 # Loop through the user's path and test for each of PROGNAME-LIST
12423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12424 for as_dir in $PATH
12425 do
12426 IFS=$as_save_IFS
12427 test -z "$as_dir" && as_dir=.
12428 for ac_prog in sed gsed; do
12429 for ac_exec_ext in '' $ac_executable_extensions; do
12430 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
12431 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
12432 # Check for GNU ac_path_SED and select it if it is found.
12433 # Check for GNU $ac_path_SED
12434 case `"$ac_path_SED" --version 2>&1` in
12435 *GNU*)
12436 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
12437 *)
12438 ac_count=0
12439 $as_echo_n 0123456789 >"conftest.in"
12440 while :
12441 do
12442 cat "conftest.in" "conftest.in" >"conftest.tmp"
12443 mv "conftest.tmp" "conftest.in"
12444 cp "conftest.in" "conftest.nl"
12445 $as_echo '' >> "conftest.nl"
12446 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
12447 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12448 as_fn_arith $ac_count + 1 && ac_count=$as_val
12449 if test $ac_count -gt ${ac_path_SED_max-0}; then
12450 # Best one so far, save it but keep looking for a better one
12451 ac_cv_path_SED="$ac_path_SED"
12452 ac_path_SED_max=$ac_count
12453 fi
12454 # 10*(2^10) chars as input seems more than enough
12455 test $ac_count -gt 10 && break
12456 done
12457 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12458 esac
12459
12460 $ac_path_SED_found && break 3
12461 done
12462 done
12463 done
12464 IFS=$as_save_IFS
12465 if test -z "$ac_cv_path_SED"; then
12466 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
12467 fi
12468 else
12469 ac_cv_path_SED=$SED
12470 fi
12471
12472 fi
12473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12474 $as_echo "$ac_cv_path_SED" >&6; }
12475 SED="$ac_cv_path_SED"
12476 rm -f conftest.sed
12477
12478 test -z "$SED" && SED=sed
12479 Xsed="$SED -e 1s/^X//"
12480
12481
12482
12483
12484
12485
12486
12487
12488
12489
12490
12491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12492 $as_echo_n "checking for fgrep... " >&6; }
12493 if test "${ac_cv_path_FGREP+set}" = set; then :
12494 $as_echo_n "(cached) " >&6
12495 else
12496 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
12497 then ac_cv_path_FGREP="$GREP -F"
12498 else
12499 if test -z "$FGREP"; then
12500 ac_path_FGREP_found=false
12501 # Loop through the user's path and test for each of PROGNAME-LIST
12502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12503 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12504 do
12505 IFS=$as_save_IFS
12506 test -z "$as_dir" && as_dir=.
12507 for ac_prog in fgrep; do
12508 for ac_exec_ext in '' $ac_executable_extensions; do
12509 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
12510 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
12511 # Check for GNU ac_path_FGREP and select it if it is found.
12512 # Check for GNU $ac_path_FGREP
12513 case `"$ac_path_FGREP" --version 2>&1` in
12514 *GNU*)
12515 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
12516 *)
12517 ac_count=0
12518 $as_echo_n 0123456789 >"conftest.in"
12519 while :
12520 do
12521 cat "conftest.in" "conftest.in" >"conftest.tmp"
12522 mv "conftest.tmp" "conftest.in"
12523 cp "conftest.in" "conftest.nl"
12524 $as_echo 'FGREP' >> "conftest.nl"
12525 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
12526 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12527 as_fn_arith $ac_count + 1 && ac_count=$as_val
12528 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12529 # Best one so far, save it but keep looking for a better one
12530 ac_cv_path_FGREP="$ac_path_FGREP"
12531 ac_path_FGREP_max=$ac_count
12532 fi
12533 # 10*(2^10) chars as input seems more than enough
12534 test $ac_count -gt 10 && break
12535 done
12536 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12537 esac
12538
12539 $ac_path_FGREP_found && break 3
12540 done
12541 done
12542 done
12543 IFS=$as_save_IFS
12544 if test -z "$ac_cv_path_FGREP"; then
12545 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12546 fi
12547 else
12548 ac_cv_path_FGREP=$FGREP
12549 fi
12550
12551 fi
12552 fi
12553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12554 $as_echo "$ac_cv_path_FGREP" >&6; }
12555 FGREP="$ac_cv_path_FGREP"
12556
12557
12558 test -z "$GREP" && GREP=grep
12559
12560
12561
12562
12563
12564
12565
12566
12567
12568
12569
12570
12571
12572
12573
12574
12575
12576
12577
12578 # Check whether --with-gnu-ld was given.
12579 if test "${with_gnu_ld+set}" = set; then :
12580 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12581 else
12582 with_gnu_ld=no
12583 fi
12584
12585 ac_prog=ld
12586 if test "$GCC" = yes; then
12587 # Check if gcc -print-prog-name=ld gives a path.
12588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12589 $as_echo_n "checking for ld used by $CC... " >&6; }
12590 case $host in
12591 *-*-mingw*)
12592 # gcc leaves a trailing carriage return which upsets mingw
12593 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12594 *)
12595 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12596 esac
12597 case $ac_prog in
12598 # Accept absolute paths.
12599 [\\/]* | ?:[\\/]*)
12600 re_direlt='/[^/][^/]*/\.\./'
12601 # Canonicalize the pathname of ld
12602 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12603 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12604 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12605 done
12606 test -z "$LD" && LD="$ac_prog"
12607 ;;
12608 "")
12609 # If it fails, then pretend we aren't using GCC.
12610 ac_prog=ld
12611 ;;
12612 *)
12613 # If it is relative, then search for the first ld in PATH.
12614 with_gnu_ld=unknown
12615 ;;
12616 esac
12617 elif test "$with_gnu_ld" = yes; then
12618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12619 $as_echo_n "checking for GNU ld... " >&6; }
12620 else
12621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12622 $as_echo_n "checking for non-GNU ld... " >&6; }
12623 fi
12624 if test "${lt_cv_path_LD+set}" = set; then :
12625 $as_echo_n "(cached) " >&6
12626 else
12627 if test -z "$LD"; then
12628 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12629 for ac_dir in $PATH; do
12630 IFS="$lt_save_ifs"
12631 test -z "$ac_dir" && ac_dir=.
12632 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12633 lt_cv_path_LD="$ac_dir/$ac_prog"
12634 # Check to see if the program is GNU ld. I'd rather use --version,
12635 # but apparently some variants of GNU ld only accept -v.
12636 # Break only if it was the GNU/non-GNU ld that we prefer.
12637 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12638 *GNU* | *'with BFD'*)
12639 test "$with_gnu_ld" != no && break
12640 ;;
12641 *)
12642 test "$with_gnu_ld" != yes && break
12643 ;;
12644 esac
12645 fi
12646 done
12647 IFS="$lt_save_ifs"
12648 else
12649 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12650 fi
12651 fi
12652
12653 LD="$lt_cv_path_LD"
12654 if test -n "$LD"; then
12655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12656 $as_echo "$LD" >&6; }
12657 else
12658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12659 $as_echo "no" >&6; }
12660 fi
12661 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12663 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12664 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12665 $as_echo_n "(cached) " >&6
12666 else
12667 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12668 case `$LD -v 2>&1 </dev/null` in
12669 *GNU* | *'with BFD'*)
12670 lt_cv_prog_gnu_ld=yes
12671 ;;
12672 *)
12673 lt_cv_prog_gnu_ld=no
12674 ;;
12675 esac
12676 fi
12677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12678 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12679 with_gnu_ld=$lt_cv_prog_gnu_ld
12680
12681
12682
12683
12684
12685
12686
12687
12688
12689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12690 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12691 if test "${lt_cv_path_NM+set}" = set; then :
12692 $as_echo_n "(cached) " >&6
12693 else
12694 if test -n "$NM"; then
12695 # Let the user override the test.
12696 lt_cv_path_NM="$NM"
12697 else
12698 lt_nm_to_check="${ac_tool_prefix}nm"
12699 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12700 lt_nm_to_check="$lt_nm_to_check nm"
12701 fi
12702 for lt_tmp_nm in $lt_nm_to_check; do
12703 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12704 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
12705 IFS="$lt_save_ifs"
12706 test -z "$ac_dir" && ac_dir=.
12707 tmp_nm="$ac_dir/$lt_tmp_nm"
12708 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
12709 # Check to see if the nm accepts a BSD-compat flag.
12710 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12711 # nm: unknown option "B" ignored
12712 # Tru64's nm complains that /dev/null is an invalid object file
12713 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12714 */dev/null* | *'Invalid file or object type'*)
12715 lt_cv_path_NM="$tmp_nm -B"
12716 break
12717 ;;
12718 *)
12719 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12720 */dev/null*)
12721 lt_cv_path_NM="$tmp_nm -p"
12722 break
12723 ;;
12724 *)
12725 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12726 continue # so that we can try to find one that supports BSD flags
12727 ;;
12728 esac
12729 ;;
12730 esac
12731 fi
12732 done
12733 IFS="$lt_save_ifs"
12734 done
12735 : ${lt_cv_path_NM=no}
12736 fi
12737 fi
12738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
12739 $as_echo "$lt_cv_path_NM" >&6; }
12740 if test "$lt_cv_path_NM" != "no"; then
12741 NM="$lt_cv_path_NM"
12742 else
12743 # Didn't find any BSD compatible name lister, look for dumpbin.
12744 if test -n "$DUMPBIN"; then :
12745 # Let the user override the test.
12746 else
12747 if test -n "$ac_tool_prefix"; then
12748 for ac_prog in dumpbin "link -dump"
12749 do
12750 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12751 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12753 $as_echo_n "checking for $ac_word... " >&6; }
12754 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
12755 $as_echo_n "(cached) " >&6
12756 else
12757 if test -n "$DUMPBIN"; then
12758 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
12759 else
12760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12761 for as_dir in $PATH
12762 do
12763 IFS=$as_save_IFS
12764 test -z "$as_dir" && as_dir=.
12765 for ac_exec_ext in '' $ac_executable_extensions; do
12766 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12767 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
12768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12769 break 2
12770 fi
12771 done
12772 done
12773 IFS=$as_save_IFS
12774
12775 fi
12776 fi
12777 DUMPBIN=$ac_cv_prog_DUMPBIN
12778 if test -n "$DUMPBIN"; then
12779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12780 $as_echo "$DUMPBIN" >&6; }
12781 else
12782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12783 $as_echo "no" >&6; }
12784 fi
12785
12786
12787 test -n "$DUMPBIN" && break
12788 done
12789 fi
12790 if test -z "$DUMPBIN"; then
12791 ac_ct_DUMPBIN=$DUMPBIN
12792 for ac_prog in dumpbin "link -dump"
12793 do
12794 # Extract the first word of "$ac_prog", so it can be a program name with args.
12795 set dummy $ac_prog; ac_word=$2
12796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12797 $as_echo_n "checking for $ac_word... " >&6; }
12798 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
12799 $as_echo_n "(cached) " >&6
12800 else
12801 if test -n "$ac_ct_DUMPBIN"; then
12802 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
12803 else
12804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12805 for as_dir in $PATH
12806 do
12807 IFS=$as_save_IFS
12808 test -z "$as_dir" && as_dir=.
12809 for ac_exec_ext in '' $ac_executable_extensions; do
12810 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12811 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
12812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12813 break 2
12814 fi
12815 done
12816 done
12817 IFS=$as_save_IFS
12818
12819 fi
12820 fi
12821 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
12822 if test -n "$ac_ct_DUMPBIN"; then
12823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12824 $as_echo "$ac_ct_DUMPBIN" >&6; }
12825 else
12826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12827 $as_echo "no" >&6; }
12828 fi
12829
12830
12831 test -n "$ac_ct_DUMPBIN" && break
12832 done
12833
12834 if test "x$ac_ct_DUMPBIN" = x; then
12835 DUMPBIN=":"
12836 else
12837 case $cross_compiling:$ac_tool_warned in
12838 yes:)
12839 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12840 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12841 ac_tool_warned=yes ;;
12842 esac
12843 DUMPBIN=$ac_ct_DUMPBIN
12844 fi
12845 fi
12846
12847 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
12848 *COFF*)
12849 DUMPBIN="$DUMPBIN -symbols"
12850 ;;
12851 *)
12852 DUMPBIN=:
12853 ;;
12854 esac
12855 fi
12856
12857 if test "$DUMPBIN" != ":"; then
12858 NM="$DUMPBIN"
12859 fi
12860 fi
12861 test -z "$NM" && NM=nm
12862
12863
12864
12865
12866
12867
12868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12869 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
12870 if test "${lt_cv_nm_interface+set}" = set; then :
12871 $as_echo_n "(cached) " >&6
12872 else
12873 lt_cv_nm_interface="BSD nm"
12874 echo "int some_variable = 0;" > conftest.$ac_ext
12875 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12876 (eval "$ac_compile" 2>conftest.err)
12877 cat conftest.err >&5
12878 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12879 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
12880 cat conftest.err >&5
12881 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12882 cat conftest.out >&5
12883 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
12884 lt_cv_nm_interface="MS dumpbin"
12885 fi
12886 rm -f conftest*
12887 fi
12888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12889 $as_echo "$lt_cv_nm_interface" >&6; }
12890
12891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12892 $as_echo_n "checking whether ln -s works... " >&6; }
12893 LN_S=$as_ln_s
12894 if test "$LN_S" = "ln -s"; then
12895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12896 $as_echo "yes" >&6; }
12897 else
12898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12899 $as_echo "no, using $LN_S" >&6; }
12900 fi
12901
12902 # find the maximum length of command line arguments
12903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12904 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
12905 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
12906 $as_echo_n "(cached) " >&6
12907 else
12908 i=0
12909 teststring="ABCD"
12910
12911 case $build_os in
12912 msdosdjgpp*)
12913 # On DJGPP, this test can blow up pretty badly due to problems in libc
12914 # (any single argument exceeding 2000 bytes causes a buffer overrun
12915 # during glob expansion). Even if it were fixed, the result of this
12916 # check would be larger than it should be.
12917 lt_cv_sys_max_cmd_len=12288; # 12K is about right
12918 ;;
12919
12920 gnu*)
12921 # Under GNU Hurd, this test is not required because there is
12922 # no limit to the length of command line arguments.
12923 # Libtool will interpret -1 as no limit whatsoever
12924 lt_cv_sys_max_cmd_len=-1;
12925 ;;
12926
12927 cygwin* | mingw* | cegcc*)
12928 # On Win9x/ME, this test blows up -- it succeeds, but takes
12929 # about 5 minutes as the teststring grows exponentially.
12930 # Worse, since 9x/ME are not pre-emptively multitasking,
12931 # you end up with a "frozen" computer, even though with patience
12932 # the test eventually succeeds (with a max line length of 256k).
12933 # Instead, let's just punt: use the minimum linelength reported by
12934 # all of the supported platforms: 8192 (on NT/2K/XP).
12935 lt_cv_sys_max_cmd_len=8192;
12936 ;;
12937
12938 mint*)
12939 # On MiNT this can take a long time and run out of memory.
12940 lt_cv_sys_max_cmd_len=8192;
12941 ;;
12942
12943 amigaos*)
12944 # On AmigaOS with pdksh, this test takes hours, literally.
12945 # So we just punt and use a minimum line length of 8192.
12946 lt_cv_sys_max_cmd_len=8192;
12947 ;;
12948
12949 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
12950 # This has been around since 386BSD, at least. Likely further.
12951 if test -x /sbin/sysctl; then
12952 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
12953 elif test -x /usr/sbin/sysctl; then
12954 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
12955 else
12956 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
12957 fi
12958 # And add a safety zone
12959 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12960 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12961 ;;
12962
12963 interix*)
12964 # We know the value 262144 and hardcode it with a safety zone (like BSD)
12965 lt_cv_sys_max_cmd_len=196608
12966 ;;
12967
12968 osf*)
12969 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12970 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12971 # nice to cause kernel panics so lets avoid the loop below.
12972 # First set a reasonable default.
12973 lt_cv_sys_max_cmd_len=16384
12974 #
12975 if test -x /sbin/sysconfig; then
12976 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12977 *1*) lt_cv_sys_max_cmd_len=-1 ;;
12978 esac
12979 fi
12980 ;;
12981 sco3.2v5*)
12982 lt_cv_sys_max_cmd_len=102400
12983 ;;
12984 sysv5* | sco5v6* | sysv4.2uw2*)
12985 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12986 if test -n "$kargmax"; then
12987 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
12988 else
12989 lt_cv_sys_max_cmd_len=32768
12990 fi
12991 ;;
12992 *)
12993 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
12994 if test -n "$lt_cv_sys_max_cmd_len"; then
12995 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12996 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12997 else
12998 # Make teststring a little bigger before we do anything with it.
12999 # a 1K string should be a reasonable start.
13000 for i in 1 2 3 4 5 6 7 8 ; do
13001 teststring=$teststring$teststring
13002 done
13003 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13004 # If test is not a shell built-in, we'll probably end up computing a
13005 # maximum length that is only half of the actual maximum length, but
13006 # we can't tell.
13007 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
13008 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
13009 test $i != 17 # 1/2 MB should be enough
13010 do
13011 i=`expr $i + 1`
13012 teststring=$teststring$teststring
13013 done
13014 # Only check the string length outside the loop.
13015 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
13016 teststring=
13017 # Add a significant safety factor because C++ compilers can tack on
13018 # massive amounts of additional arguments before passing them to the
13019 # linker. It appears as though 1/2 is a usable value.
13020 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13021 fi
13022 ;;
13023 esac
13024
13025 fi
13026
13027 if test -n $lt_cv_sys_max_cmd_len ; then
13028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
13029 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
13030 else
13031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
13032 $as_echo "none" >&6; }
13033 fi
13034 max_cmd_len=$lt_cv_sys_max_cmd_len
13035
13036
13037
13038
13039
13040
13041 : ${CP="cp -f"}
13042 : ${MV="mv -f"}
13043 : ${RM="rm -f"}
13044
13045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
13046 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
13047 # Try some XSI features
13048 xsi_shell=no
13049 ( _lt_dummy="a/b/c"
13050 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
13051 = c,a/b,, \
13052 && eval 'test $(( 1 + 1 )) -eq 2 \
13053 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
13054 && xsi_shell=yes
13055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
13056 $as_echo "$xsi_shell" >&6; }
13057
13058
13059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
13060 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
13061 lt_shell_append=no
13062 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
13063 >/dev/null 2>&1 \
13064 && lt_shell_append=yes
13065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
13066 $as_echo "$lt_shell_append" >&6; }
13067
13068
13069 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13070 lt_unset=unset
13071 else
13072 lt_unset=false
13073 fi
13074
13075
13076
13077
13078
13079 # test EBCDIC or ASCII
13080 case `echo X|tr X '\101'` in
13081 A) # ASCII based system
13082 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
13083 lt_SP2NL='tr \040 \012'
13084 lt_NL2SP='tr \015\012 \040\040'
13085 ;;
13086 *) # EBCDIC based system
13087 lt_SP2NL='tr \100 \n'
13088 lt_NL2SP='tr \r\n \100\100'
13089 ;;
13090 esac
13091
13092
13093
13094
13095
13096
13097
13098
13099
13100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
13101 $as_echo_n "checking for $LD option to reload object files... " >&6; }
13102 if test "${lt_cv_ld_reload_flag+set}" = set; then :
13103 $as_echo_n "(cached) " >&6
13104 else
13105 lt_cv_ld_reload_flag='-r'
13106 fi
13107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
13108 $as_echo "$lt_cv_ld_reload_flag" >&6; }
13109 reload_flag=$lt_cv_ld_reload_flag
13110 case $reload_flag in
13111 "" | " "*) ;;
13112 *) reload_flag=" $reload_flag" ;;
13113 esac
13114 reload_cmds='$LD$reload_flag -o $output$reload_objs'
13115 case $host_os in
13116 darwin*)
13117 if test "$GCC" = yes; then
13118 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
13119 else
13120 reload_cmds='$LD$reload_flag -o $output$reload_objs'
13121 fi
13122 ;;
13123 esac
13124
13125
13126
13127
13128
13129
13130
13131
13132
13133 if test -n "$ac_tool_prefix"; then
13134 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
13135 set dummy ${ac_tool_prefix}objdump; ac_word=$2
13136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13137 $as_echo_n "checking for $ac_word... " >&6; }
13138 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
13139 $as_echo_n "(cached) " >&6
13140 else
13141 if test -n "$OBJDUMP"; then
13142 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
13143 else
13144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13145 for as_dir in $PATH
13146 do
13147 IFS=$as_save_IFS
13148 test -z "$as_dir" && as_dir=.
13149 for ac_exec_ext in '' $ac_executable_extensions; do
13150 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13151 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
13152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13153 break 2
13154 fi
13155 done
13156 done
13157 IFS=$as_save_IFS
13158
13159 fi
13160 fi
13161 OBJDUMP=$ac_cv_prog_OBJDUMP
13162 if test -n "$OBJDUMP"; then
13163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
13164 $as_echo "$OBJDUMP" >&6; }
13165 else
13166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13167 $as_echo "no" >&6; }
13168 fi
13169
13170
13171 fi
13172 if test -z "$ac_cv_prog_OBJDUMP"; then
13173 ac_ct_OBJDUMP=$OBJDUMP
13174 # Extract the first word of "objdump", so it can be a program name with args.
13175 set dummy objdump; ac_word=$2
13176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13177 $as_echo_n "checking for $ac_word... " >&6; }
13178 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
13179 $as_echo_n "(cached) " >&6
13180 else
13181 if test -n "$ac_ct_OBJDUMP"; then
13182 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
13183 else
13184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13185 for as_dir in $PATH
13186 do
13187 IFS=$as_save_IFS
13188 test -z "$as_dir" && as_dir=.
13189 for ac_exec_ext in '' $ac_executable_extensions; do
13190 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13191 ac_cv_prog_ac_ct_OBJDUMP="objdump"
13192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13193 break 2
13194 fi
13195 done
13196 done
13197 IFS=$as_save_IFS
13198
13199 fi
13200 fi
13201 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
13202 if test -n "$ac_ct_OBJDUMP"; then
13203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
13204 $as_echo "$ac_ct_OBJDUMP" >&6; }
13205 else
13206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13207 $as_echo "no" >&6; }
13208 fi
13209
13210 if test "x$ac_ct_OBJDUMP" = x; then
13211 OBJDUMP="false"
13212 else
13213 case $cross_compiling:$ac_tool_warned in
13214 yes:)
13215 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13216 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13217 ac_tool_warned=yes ;;
13218 esac
13219 OBJDUMP=$ac_ct_OBJDUMP
13220 fi
13221 else
13222 OBJDUMP="$ac_cv_prog_OBJDUMP"
13223 fi
13224
13225 test -z "$OBJDUMP" && OBJDUMP=objdump
13226
13227
13228
13229
13230
13231
13232
13233
13234
13235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
13236 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
13237 if test "${lt_cv_deplibs_check_method+set}" = set; then :
13238 $as_echo_n "(cached) " >&6
13239 else
13240 lt_cv_file_magic_cmd='$MAGIC_CMD'
13241 lt_cv_file_magic_test_file=
13242 lt_cv_deplibs_check_method='unknown'
13243 # Need to set the preceding variable on all platforms that support
13244 # interlibrary dependencies.
13245 # 'none' -- dependencies not supported.
13246 # `unknown' -- same as none, but documents that we really don't know.
13247 # 'pass_all' -- all dependencies passed with no checks.
13248 # 'test_compile' -- check by making test program.
13249 # 'file_magic [[regex]]' -- check by looking for files in library path
13250 # which responds to the $file_magic_cmd with a given extended regex.
13251 # If you have `file' or equivalent on your system and you're not sure
13252 # whether `pass_all' will *always* work, you probably want this one.
13253
13254 case $host_os in
13255 aix[4-9]*)
13256 lt_cv_deplibs_check_method=pass_all
13257 ;;
13258
13259 beos*)
13260 lt_cv_deplibs_check_method=pass_all
13261 ;;
13262
13263 bsdi[45]*)
13264 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
13265 lt_cv_file_magic_cmd='/usr/bin/file -L'
13266 lt_cv_file_magic_test_file=/shlib/libc.so
13267 ;;
13268
13269 cygwin*)
13270 # func_win32_libid is a shell function defined in ltmain.sh
13271 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13272 lt_cv_file_magic_cmd='func_win32_libid'
13273 ;;
13274
13275 mingw* | pw32*)
13276 # Base MSYS/MinGW do not provide the 'file' command needed by
13277 # func_win32_libid shell function, so use a weaker test based on 'objdump',
13278 # unless we find 'file', for example because we are cross-compiling.
13279 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
13280 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
13281 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13282 lt_cv_file_magic_cmd='func_win32_libid'
13283 else
13284 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
13285 lt_cv_file_magic_cmd='$OBJDUMP -f'
13286 fi
13287 ;;
13288
13289 cegcc*)
13290 # use the weaker test based on 'objdump'. See mingw*.
13291 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
13292 lt_cv_file_magic_cmd='$OBJDUMP -f'
13293 ;;
13294
13295 darwin* | rhapsody*)
13296 lt_cv_deplibs_check_method=pass_all
13297 ;;
13298
13299 freebsd* | dragonfly*)
13300 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13301 case $host_cpu in
13302 i*86 )
13303 # Not sure whether the presence of OpenBSD here was a mistake.
13304 # Let's accept both of them until this is cleared up.
13305 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
13306 lt_cv_file_magic_cmd=/usr/bin/file
13307 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
13308 ;;
13309 esac
13310 else
13311 lt_cv_deplibs_check_method=pass_all
13312 fi
13313 ;;
13314
13315 gnu*)
13316 lt_cv_deplibs_check_method=pass_all
13317 ;;
13318
13319 haiku*)
13320 lt_cv_deplibs_check_method=pass_all
13321 ;;
13322
13323 hpux10.20* | hpux11*)
13324 lt_cv_file_magic_cmd=/usr/bin/file
13325 case $host_cpu in
13326 ia64*)
13327 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
13328 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
13329 ;;
13330 hppa*64*)
13331 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]'
13332 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
13333 ;;
13334 *)
13335 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
13336 lt_cv_file_magic_test_file=/usr/lib/libc.sl
13337 ;;
13338 esac
13339 ;;
13340
13341 interix[3-9]*)
13342 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
13343 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
13344 ;;
13345
13346 irix5* | irix6* | nonstopux*)
13347 case $LD in
13348 *-32|*"-32 ") libmagic=32-bit;;
13349 *-n32|*"-n32 ") libmagic=N32;;
13350 *-64|*"-64 ") libmagic=64-bit;;
13351 *) libmagic=never-match;;
13352 esac
13353 lt_cv_deplibs_check_method=pass_all
13354 ;;
13355
13356 # This must be Linux ELF.
13357 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13358 lt_cv_deplibs_check_method=pass_all
13359 ;;
13360
13361 netbsd*)
13362 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13363 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13364 else
13365 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
13366 fi
13367 ;;
13368
13369 newos6*)
13370 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
13371 lt_cv_file_magic_cmd=/usr/bin/file
13372 lt_cv_file_magic_test_file=/usr/lib/libnls.so
13373 ;;
13374
13375 *nto* | *qnx*)
13376 lt_cv_deplibs_check_method=pass_all
13377 ;;
13378
13379 openbsd*)
13380 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13381 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
13382 else
13383 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13384 fi
13385 ;;
13386
13387 osf3* | osf4* | osf5*)
13388 lt_cv_deplibs_check_method=pass_all
13389 ;;
13390
13391 rdos*)
13392 lt_cv_deplibs_check_method=pass_all
13393 ;;
13394
13395 solaris*)
13396 lt_cv_deplibs_check_method=pass_all
13397 ;;
13398
13399 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13400 lt_cv_deplibs_check_method=pass_all
13401 ;;
13402
13403 sysv4 | sysv4.3*)
13404 case $host_vendor in
13405 motorola)
13406 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]'
13407 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
13408 ;;
13409 ncr)
13410 lt_cv_deplibs_check_method=pass_all
13411 ;;
13412 sequent)
13413 lt_cv_file_magic_cmd='/bin/file'
13414 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13415 ;;
13416 sni)
13417 lt_cv_file_magic_cmd='/bin/file'
13418 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
13419 lt_cv_file_magic_test_file=/lib/libc.so
13420 ;;
13421 siemens)
13422 lt_cv_deplibs_check_method=pass_all
13423 ;;
13424 pc)
13425 lt_cv_deplibs_check_method=pass_all
13426 ;;
13427 esac
13428 ;;
13429
13430 tpf*)
13431 lt_cv_deplibs_check_method=pass_all
13432 ;;
13433 esac
13434
13435 fi
13436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
13437 $as_echo "$lt_cv_deplibs_check_method" >&6; }
13438 file_magic_cmd=$lt_cv_file_magic_cmd
13439 deplibs_check_method=$lt_cv_deplibs_check_method
13440 test -z "$deplibs_check_method" && deplibs_check_method=unknown
13441
13442
13443
13444
13445
13446
13447
13448
13449
13450
13451
13452
13453 if test -n "$ac_tool_prefix"; then
13454 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13455 set dummy ${ac_tool_prefix}ar; ac_word=$2
13456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13457 $as_echo_n "checking for $ac_word... " >&6; }
13458 if test "${ac_cv_prog_AR+set}" = set; then :
13459 $as_echo_n "(cached) " >&6
13460 else
13461 if test -n "$AR"; then
13462 ac_cv_prog_AR="$AR" # Let the user override the test.
13463 else
13464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13465 for as_dir in $PATH
13466 do
13467 IFS=$as_save_IFS
13468 test -z "$as_dir" && as_dir=.
13469 for ac_exec_ext in '' $ac_executable_extensions; do
13470 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13471 ac_cv_prog_AR="${ac_tool_prefix}ar"
13472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13473 break 2
13474 fi
13475 done
13476 done
13477 IFS=$as_save_IFS
13478
13479 fi
13480 fi
13481 AR=$ac_cv_prog_AR
13482 if test -n "$AR"; then
13483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
13484 $as_echo "$AR" >&6; }
13485 else
13486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13487 $as_echo "no" >&6; }
13488 fi
13489
13490
13491 fi
13492 if test -z "$ac_cv_prog_AR"; then
13493 ac_ct_AR=$AR
13494 # Extract the first word of "ar", so it can be a program name with args.
13495 set dummy ar; ac_word=$2
13496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13497 $as_echo_n "checking for $ac_word... " >&6; }
13498 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
13499 $as_echo_n "(cached) " >&6
13500 else
13501 if test -n "$ac_ct_AR"; then
13502 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13503 else
13504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13505 for as_dir in $PATH
13506 do
13507 IFS=$as_save_IFS
13508 test -z "$as_dir" && as_dir=.
13509 for ac_exec_ext in '' $ac_executable_extensions; do
13510 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13511 ac_cv_prog_ac_ct_AR="ar"
13512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13513 break 2
13514 fi
13515 done
13516 done
13517 IFS=$as_save_IFS
13518
13519 fi
13520 fi
13521 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13522 if test -n "$ac_ct_AR"; then
13523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
13524 $as_echo "$ac_ct_AR" >&6; }
13525 else
13526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13527 $as_echo "no" >&6; }
13528 fi
13529
13530 if test "x$ac_ct_AR" = x; then
13531 AR="false"
13532 else
13533 case $cross_compiling:$ac_tool_warned in
13534 yes:)
13535 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13536 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13537 ac_tool_warned=yes ;;
13538 esac
13539 AR=$ac_ct_AR
13540 fi
13541 else
13542 AR="$ac_cv_prog_AR"
13543 fi
13544
13545 test -z "$AR" && AR=ar
13546 test -z "$AR_FLAGS" && AR_FLAGS=cru
13547
13548
13549
13550
13551
13552
13553
13554
13555
13556
13557
13558 if test -n "$ac_tool_prefix"; then
13559 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13560 set dummy ${ac_tool_prefix}strip; ac_word=$2
13561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13562 $as_echo_n "checking for $ac_word... " >&6; }
13563 if test "${ac_cv_prog_STRIP+set}" = set; then :
13564 $as_echo_n "(cached) " >&6
13565 else
13566 if test -n "$STRIP"; then
13567 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13568 else
13569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13570 for as_dir in $PATH
13571 do
13572 IFS=$as_save_IFS
13573 test -z "$as_dir" && as_dir=.
13574 for ac_exec_ext in '' $ac_executable_extensions; do
13575 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13576 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13577 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13578 break 2
13579 fi
13580 done
13581 done
13582 IFS=$as_save_IFS
13583
13584 fi
13585 fi
13586 STRIP=$ac_cv_prog_STRIP
13587 if test -n "$STRIP"; then
13588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13589 $as_echo "$STRIP" >&6; }
13590 else
13591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13592 $as_echo "no" >&6; }
13593 fi
13594
13595
13596 fi
13597 if test -z "$ac_cv_prog_STRIP"; then
13598 ac_ct_STRIP=$STRIP
13599 # Extract the first word of "strip", so it can be a program name with args.
13600 set dummy strip; ac_word=$2
13601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13602 $as_echo_n "checking for $ac_word... " >&6; }
13603 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
13604 $as_echo_n "(cached) " >&6
13605 else
13606 if test -n "$ac_ct_STRIP"; then
13607 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13608 else
13609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13610 for as_dir in $PATH
13611 do
13612 IFS=$as_save_IFS
13613 test -z "$as_dir" && as_dir=.
13614 for ac_exec_ext in '' $ac_executable_extensions; do
13615 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13616 ac_cv_prog_ac_ct_STRIP="strip"
13617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13618 break 2
13619 fi
13620 done
13621 done
13622 IFS=$as_save_IFS
13623
13624 fi
13625 fi
13626 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13627 if test -n "$ac_ct_STRIP"; then
13628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
13629 $as_echo "$ac_ct_STRIP" >&6; }
13630 else
13631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13632 $as_echo "no" >&6; }
13633 fi
13634
13635 if test "x$ac_ct_STRIP" = x; then
13636 STRIP=":"
13637 else
13638 case $cross_compiling:$ac_tool_warned in
13639 yes:)
13640 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13641 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13642 ac_tool_warned=yes ;;
13643 esac
13644 STRIP=$ac_ct_STRIP
13645 fi
13646 else
13647 STRIP="$ac_cv_prog_STRIP"
13648 fi
13649
13650 test -z "$STRIP" && STRIP=:
13651
13652
13653
13654
13655
13656
13657 if test -n "$ac_tool_prefix"; then
13658 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13659 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13661 $as_echo_n "checking for $ac_word... " >&6; }
13662 if test "${ac_cv_prog_RANLIB+set}" = set; then :
13663 $as_echo_n "(cached) " >&6
13664 else
13665 if test -n "$RANLIB"; then
13666 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13667 else
13668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13669 for as_dir in $PATH
13670 do
13671 IFS=$as_save_IFS
13672 test -z "$as_dir" && as_dir=.
13673 for ac_exec_ext in '' $ac_executable_extensions; do
13674 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13675 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13677 break 2
13678 fi
13679 done
13680 done
13681 IFS=$as_save_IFS
13682
13683 fi
13684 fi
13685 RANLIB=$ac_cv_prog_RANLIB
13686 if test -n "$RANLIB"; then
13687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13688 $as_echo "$RANLIB" >&6; }
13689 else
13690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13691 $as_echo "no" >&6; }
13692 fi
13693
13694
13695 fi
13696 if test -z "$ac_cv_prog_RANLIB"; then
13697 ac_ct_RANLIB=$RANLIB
13698 # Extract the first word of "ranlib", so it can be a program name with args.
13699 set dummy ranlib; ac_word=$2
13700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13701 $as_echo_n "checking for $ac_word... " >&6; }
13702 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
13703 $as_echo_n "(cached) " >&6
13704 else
13705 if test -n "$ac_ct_RANLIB"; then
13706 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13707 else
13708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13709 for as_dir in $PATH
13710 do
13711 IFS=$as_save_IFS
13712 test -z "$as_dir" && as_dir=.
13713 for ac_exec_ext in '' $ac_executable_extensions; do
13714 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13715 ac_cv_prog_ac_ct_RANLIB="ranlib"
13716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13717 break 2
13718 fi
13719 done
13720 done
13721 IFS=$as_save_IFS
13722
13723 fi
13724 fi
13725 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13726 if test -n "$ac_ct_RANLIB"; then
13727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
13728 $as_echo "$ac_ct_RANLIB" >&6; }
13729 else
13730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13731 $as_echo "no" >&6; }
13732 fi
13733
13734 if test "x$ac_ct_RANLIB" = x; then
13735 RANLIB=":"
13736 else
13737 case $cross_compiling:$ac_tool_warned in
13738 yes:)
13739 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13740 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13741 ac_tool_warned=yes ;;
13742 esac
13743 RANLIB=$ac_ct_RANLIB
13744 fi
13745 else
13746 RANLIB="$ac_cv_prog_RANLIB"
13747 fi
13748
13749 test -z "$RANLIB" && RANLIB=:
13750
13751
13752
13753
13754
13755
13756 # Determine commands to create old-style static archives.
13757 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13758 old_postinstall_cmds='chmod 644 $oldlib'
13759 old_postuninstall_cmds=
13760
13761 if test -n "$RANLIB"; then
13762 case $host_os in
13763 openbsd*)
13764 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
13765 ;;
13766 *)
13767 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
13768 ;;
13769 esac
13770 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
13771 fi
13772
13773 case $host_os in
13774 darwin*)
13775 lock_old_archive_extraction=yes ;;
13776 *)
13777 lock_old_archive_extraction=no ;;
13778 esac
13779
13780
13781
13782
13783
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 # If no C compiler was specified, use CC.
13819 LTCC=${LTCC-"$CC"}
13820
13821 # If no C compiler flags were specified, use CFLAGS.
13822 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13823
13824 # Allow CC to be a program name with arguments.
13825 compiler=$CC
13826
13827
13828 # Check for command to grab the raw symbol name followed by C symbol from nm.
13829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
13830 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
13831 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
13832 $as_echo_n "(cached) " >&6
13833 else
13834
13835 # These are sane defaults that work on at least a few old systems.
13836 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13837
13838 # Character class describing NM global symbol codes.
13839 symcode='[BCDEGRST]'
13840
13841 # Regexp to match symbols that can be accessed directly from C.
13842 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13843
13844 # Define system-specific variables.
13845 case $host_os in
13846 aix*)
13847 symcode='[BCDT]'
13848 ;;
13849 cygwin* | mingw* | pw32* | cegcc*)
13850 symcode='[ABCDGISTW]'
13851 ;;
13852 hpux*)
13853 if test "$host_cpu" = ia64; then
13854 symcode='[ABCDEGRST]'
13855 fi
13856 ;;
13857 irix* | nonstopux*)
13858 symcode='[BCDEGRST]'
13859 ;;
13860 osf*)
13861 symcode='[BCDEGQRST]'
13862 ;;
13863 solaris*)
13864 symcode='[BDRT]'
13865 ;;
13866 sco3.2v5*)
13867 symcode='[DT]'
13868 ;;
13869 sysv4.2uw2*)
13870 symcode='[DT]'
13871 ;;
13872 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13873 symcode='[ABDT]'
13874 ;;
13875 sysv4)
13876 symcode='[DFNSTU]'
13877 ;;
13878 esac
13879
13880 # If we're using GNU nm, then use its standard symbol codes.
13881 case `$NM -V 2>&1` in
13882 *GNU* | *'with BFD'*)
13883 symcode='[ABCDGIRSTW]' ;;
13884 esac
13885
13886 # Transform an extracted symbol line into a proper C declaration.
13887 # Some systems (esp. on ia64) link data and code symbols differently,
13888 # so use this general approach.
13889 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13890
13891 # Transform an extracted symbol line into symbol name and symbol address
13892 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
13893 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'"
13894
13895 # Handle CRLF in mingw tool chain
13896 opt_cr=
13897 case $build_os in
13898 mingw*)
13899 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13900 ;;
13901 esac
13902
13903 # Try without a prefix underscore, then with it.
13904 for ac_symprfx in "" "_"; do
13905
13906 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13907 symxfrm="\\1 $ac_symprfx\\2 \\2"
13908
13909 # Write the raw and C identifiers.
13910 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13911 # Fake it for dumpbin and say T for any non-static function
13912 # and D for any global variable.
13913 # Also find C++ and __fastcall symbols from MSVC++,
13914 # which start with @ or ?.
13915 lt_cv_sys_global_symbol_pipe="$AWK '"\
13916 " {last_section=section; section=\$ 3};"\
13917 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13918 " \$ 0!~/External *\|/{next};"\
13919 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13920 " {if(hide[section]) next};"\
13921 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
13922 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
13923 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
13924 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
13925 " ' prfx=^$ac_symprfx"
13926 else
13927 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13928 fi
13929
13930 # Check to see that the pipe works correctly.
13931 pipe_works=no
13932
13933 rm -f conftest*
13934 cat > conftest.$ac_ext <<_LT_EOF
13935 #ifdef __cplusplus
13936 extern "C" {
13937 #endif
13938 char nm_test_var;
13939 void nm_test_func(void);
13940 void nm_test_func(void){}
13941 #ifdef __cplusplus
13942 }
13943 #endif
13944 int main(){nm_test_var='a';nm_test_func();return(0);}
13945 _LT_EOF
13946
13947 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13948 (eval $ac_compile) 2>&5
13949 ac_status=$?
13950 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13951 test $ac_status = 0; }; then
13952 # Now try to grab the symbols.
13953 nlist=conftest.nm
13954 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
13955 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13956 ac_status=$?
13957 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13958 test $ac_status = 0; } && test -s "$nlist"; then
13959 # Try sorting and uniquifying the output.
13960 if sort "$nlist" | uniq > "$nlist"T; then
13961 mv -f "$nlist"T "$nlist"
13962 else
13963 rm -f "$nlist"T
13964 fi
13965
13966 # Make sure that we snagged all the symbols we need.
13967 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13968 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13969 cat <<_LT_EOF > conftest.$ac_ext
13970 #ifdef __cplusplus
13971 extern "C" {
13972 #endif
13973
13974 _LT_EOF
13975 # Now generate the symbol file.
13976 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13977
13978 cat <<_LT_EOF >> conftest.$ac_ext
13979
13980 /* The mapping between symbol names and symbols. */
13981 const struct {
13982 const char *name;
13983 void *address;
13984 }
13985 lt__PROGRAM__LTX_preloaded_symbols[] =
13986 {
13987 { "@PROGRAM@", (void *) 0 },
13988 _LT_EOF
13989 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
13990 cat <<\_LT_EOF >> conftest.$ac_ext
13991 {0, (void *) 0}
13992 };
13993
13994 /* This works around a problem in FreeBSD linker */
13995 #ifdef FREEBSD_WORKAROUND
13996 static const void *lt_preloaded_setup() {
13997 return lt__PROGRAM__LTX_preloaded_symbols;
13998 }
13999 #endif
14000
14001 #ifdef __cplusplus
14002 }
14003 #endif
14004 _LT_EOF
14005 # Now try linking the two files.
14006 mv conftest.$ac_objext conftstm.$ac_objext
14007 lt_save_LIBS="$LIBS"
14008 lt_save_CFLAGS="$CFLAGS"
14009 LIBS="conftstm.$ac_objext"
14010 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
14011 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14012 (eval $ac_link) 2>&5
14013 ac_status=$?
14014 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14015 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
14016 pipe_works=yes
14017 fi
14018 LIBS="$lt_save_LIBS"
14019 CFLAGS="$lt_save_CFLAGS"
14020 else
14021 echo "cannot find nm_test_func in $nlist" >&5
14022 fi
14023 else
14024 echo "cannot find nm_test_var in $nlist" >&5
14025 fi
14026 else
14027 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
14028 fi
14029 else
14030 echo "$progname: failed program was:" >&5
14031 cat conftest.$ac_ext >&5
14032 fi
14033 rm -rf conftest* conftst*
14034
14035 # Do not use the global_symbol_pipe unless it works.
14036 if test "$pipe_works" = yes; then
14037 break
14038 else
14039 lt_cv_sys_global_symbol_pipe=
14040 fi
14041 done
14042
14043 fi
14044
14045 if test -z "$lt_cv_sys_global_symbol_pipe"; then
14046 lt_cv_sys_global_symbol_to_cdecl=
14047 fi
14048 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
14049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
14050 $as_echo "failed" >&6; }
14051 else
14052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
14053 $as_echo "ok" >&6; }
14054 fi
14055
14056
14057
14058
14059
14060
14061
14062
14063
14064
14065
14066
14067
14068
14069
14070
14071
14072
14073
14074
14075
14076
14077 # Check whether --enable-libtool-lock was given.
14078 if test "${enable_libtool_lock+set}" = set; then :
14079 enableval=$enable_libtool_lock;
14080 fi
14081
14082 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14083
14084 # Some flags need to be propagated to the compiler or linker for good
14085 # libtool support.
14086 case $host in
14087 ia64-*-hpux*)
14088 # Find out which ABI we are using.
14089 echo 'int i;' > conftest.$ac_ext
14090 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14091 (eval $ac_compile) 2>&5
14092 ac_status=$?
14093 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14094 test $ac_status = 0; }; then
14095 case `/usr/bin/file conftest.$ac_objext` in
14096 *ELF-32*)
14097 HPUX_IA64_MODE="32"
14098 ;;
14099 *ELF-64*)
14100 HPUX_IA64_MODE="64"
14101 ;;
14102 esac
14103 fi
14104 rm -rf conftest*
14105 ;;
14106 *-*-irix6*)
14107 # Find out which ABI we are using.
14108 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
14109 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14110 (eval $ac_compile) 2>&5
14111 ac_status=$?
14112 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14113 test $ac_status = 0; }; then
14114 if test "$lt_cv_prog_gnu_ld" = yes; then
14115 case `/usr/bin/file conftest.$ac_objext` in
14116 *32-bit*)
14117 LD="${LD-ld} -melf32bsmip"
14118 ;;
14119 *N32*)
14120 LD="${LD-ld} -melf32bmipn32"
14121 ;;
14122 *64-bit*)
14123 LD="${LD-ld} -melf64bmip"
14124 ;;
14125 esac
14126 else
14127 case `/usr/bin/file conftest.$ac_objext` in
14128 *32-bit*)
14129 LD="${LD-ld} -32"
14130 ;;
14131 *N32*)
14132 LD="${LD-ld} -n32"
14133 ;;
14134 *64-bit*)
14135 LD="${LD-ld} -64"
14136 ;;
14137 esac
14138 fi
14139 fi
14140 rm -rf conftest*
14141 ;;
14142
14143 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
14144 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
14145 # Find out which ABI we are using.
14146 echo 'int i;' > conftest.$ac_ext
14147 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14148 (eval $ac_compile) 2>&5
14149 ac_status=$?
14150 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14151 test $ac_status = 0; }; then
14152 case `/usr/bin/file conftest.o` in
14153 *32-bit*)
14154 case $host in
14155 x86_64-*kfreebsd*-gnu)
14156 LD="${LD-ld} -m elf_i386_fbsd"
14157 ;;
14158 x86_64-*linux*)
14159 case `/usr/bin/file conftest.o` in
14160 *x86-64*)
14161 LD="${LD-ld} -m elf32_x86_64"
14162 ;;
14163 *)
14164 LD="${LD-ld} -m elf_i386"
14165 ;;
14166 esac
14167 ;;
14168 powerpc64le-*linux*)
14169 LD="${LD-ld} -m elf32lppclinux"
14170 ;;
14171 powerpc64-*linux*)
14172 LD="${LD-ld} -m elf32ppclinux"
14173 ;;
14174 s390x-*linux*)
14175 LD="${LD-ld} -m elf_s390"
14176 ;;
14177 sparc64-*linux*)
14178 LD="${LD-ld} -m elf32_sparc"
14179 ;;
14180 esac
14181 ;;
14182 *64-bit*)
14183 case $host in
14184 x86_64-*kfreebsd*-gnu)
14185 LD="${LD-ld} -m elf_x86_64_fbsd"
14186 ;;
14187 x86_64-*linux*)
14188 LD="${LD-ld} -m elf_x86_64"
14189 ;;
14190 powerpcle-*linux*)
14191 LD="${LD-ld} -m elf64lppc"
14192 ;;
14193 powerpc-*linux*)
14194 LD="${LD-ld} -m elf64ppc"
14195 ;;
14196 s390*-*linux*|s390*-*tpf*)
14197 LD="${LD-ld} -m elf64_s390"
14198 ;;
14199 sparc*-*linux*)
14200 LD="${LD-ld} -m elf64_sparc"
14201 ;;
14202 esac
14203 ;;
14204 esac
14205 fi
14206 rm -rf conftest*
14207 ;;
14208
14209 *-*-sco3.2v5*)
14210 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
14211 SAVE_CFLAGS="$CFLAGS"
14212 CFLAGS="$CFLAGS -belf"
14213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
14214 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
14215 if test "${lt_cv_cc_needs_belf+set}" = set; then :
14216 $as_echo_n "(cached) " >&6
14217 else
14218 ac_ext=c
14219 ac_cpp='$CPP $CPPFLAGS'
14220 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14221 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14222 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14223
14224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14225 /* end confdefs.h. */
14226
14227 int
14228 main ()
14229 {
14230
14231 ;
14232 return 0;
14233 }
14234 _ACEOF
14235 if ac_fn_c_try_link "$LINENO"; then :
14236 lt_cv_cc_needs_belf=yes
14237 else
14238 lt_cv_cc_needs_belf=no
14239 fi
14240 rm -f core conftest.err conftest.$ac_objext \
14241 conftest$ac_exeext conftest.$ac_ext
14242 ac_ext=c
14243 ac_cpp='$CPP $CPPFLAGS'
14244 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14245 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14246 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14247
14248 fi
14249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
14250 $as_echo "$lt_cv_cc_needs_belf" >&6; }
14251 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
14252 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
14253 CFLAGS="$SAVE_CFLAGS"
14254 fi
14255 ;;
14256 sparc*-*solaris*)
14257 # Find out which ABI we are using.
14258 echo 'int i;' > conftest.$ac_ext
14259 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14260 (eval $ac_compile) 2>&5
14261 ac_status=$?
14262 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14263 test $ac_status = 0; }; then
14264 case `/usr/bin/file conftest.o` in
14265 *64-bit*)
14266 case $lt_cv_prog_gnu_ld in
14267 yes*) LD="${LD-ld} -m elf64_sparc" ;;
14268 *)
14269 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
14270 LD="${LD-ld} -64"
14271 fi
14272 ;;
14273 esac
14274 ;;
14275 esac
14276 fi
14277 rm -rf conftest*
14278 ;;
14279 esac
14280
14281 need_locks="$enable_libtool_lock"
14282
14283
14284 case $host_os in
14285 rhapsody* | darwin*)
14286 if test -n "$ac_tool_prefix"; then
14287 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
14288 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
14289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14290 $as_echo_n "checking for $ac_word... " >&6; }
14291 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
14292 $as_echo_n "(cached) " >&6
14293 else
14294 if test -n "$DSYMUTIL"; then
14295 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
14296 else
14297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14298 for as_dir in $PATH
14299 do
14300 IFS=$as_save_IFS
14301 test -z "$as_dir" && as_dir=.
14302 for ac_exec_ext in '' $ac_executable_extensions; do
14303 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14304 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
14305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14306 break 2
14307 fi
14308 done
14309 done
14310 IFS=$as_save_IFS
14311
14312 fi
14313 fi
14314 DSYMUTIL=$ac_cv_prog_DSYMUTIL
14315 if test -n "$DSYMUTIL"; then
14316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
14317 $as_echo "$DSYMUTIL" >&6; }
14318 else
14319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14320 $as_echo "no" >&6; }
14321 fi
14322
14323
14324 fi
14325 if test -z "$ac_cv_prog_DSYMUTIL"; then
14326 ac_ct_DSYMUTIL=$DSYMUTIL
14327 # Extract the first word of "dsymutil", so it can be a program name with args.
14328 set dummy dsymutil; ac_word=$2
14329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14330 $as_echo_n "checking for $ac_word... " >&6; }
14331 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
14332 $as_echo_n "(cached) " >&6
14333 else
14334 if test -n "$ac_ct_DSYMUTIL"; then
14335 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
14336 else
14337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14338 for as_dir in $PATH
14339 do
14340 IFS=$as_save_IFS
14341 test -z "$as_dir" && as_dir=.
14342 for ac_exec_ext in '' $ac_executable_extensions; do
14343 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14344 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
14345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14346 break 2
14347 fi
14348 done
14349 done
14350 IFS=$as_save_IFS
14351
14352 fi
14353 fi
14354 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
14355 if test -n "$ac_ct_DSYMUTIL"; then
14356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
14357 $as_echo "$ac_ct_DSYMUTIL" >&6; }
14358 else
14359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14360 $as_echo "no" >&6; }
14361 fi
14362
14363 if test "x$ac_ct_DSYMUTIL" = x; then
14364 DSYMUTIL=":"
14365 else
14366 case $cross_compiling:$ac_tool_warned in
14367 yes:)
14368 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14369 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14370 ac_tool_warned=yes ;;
14371 esac
14372 DSYMUTIL=$ac_ct_DSYMUTIL
14373 fi
14374 else
14375 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
14376 fi
14377
14378 if test -n "$ac_tool_prefix"; then
14379 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
14380 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
14381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14382 $as_echo_n "checking for $ac_word... " >&6; }
14383 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
14384 $as_echo_n "(cached) " >&6
14385 else
14386 if test -n "$NMEDIT"; then
14387 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
14388 else
14389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14390 for as_dir in $PATH
14391 do
14392 IFS=$as_save_IFS
14393 test -z "$as_dir" && as_dir=.
14394 for ac_exec_ext in '' $ac_executable_extensions; do
14395 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14396 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
14397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14398 break 2
14399 fi
14400 done
14401 done
14402 IFS=$as_save_IFS
14403
14404 fi
14405 fi
14406 NMEDIT=$ac_cv_prog_NMEDIT
14407 if test -n "$NMEDIT"; then
14408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
14409 $as_echo "$NMEDIT" >&6; }
14410 else
14411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14412 $as_echo "no" >&6; }
14413 fi
14414
14415
14416 fi
14417 if test -z "$ac_cv_prog_NMEDIT"; then
14418 ac_ct_NMEDIT=$NMEDIT
14419 # Extract the first word of "nmedit", so it can be a program name with args.
14420 set dummy nmedit; ac_word=$2
14421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14422 $as_echo_n "checking for $ac_word... " >&6; }
14423 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
14424 $as_echo_n "(cached) " >&6
14425 else
14426 if test -n "$ac_ct_NMEDIT"; then
14427 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
14428 else
14429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14430 for as_dir in $PATH
14431 do
14432 IFS=$as_save_IFS
14433 test -z "$as_dir" && as_dir=.
14434 for ac_exec_ext in '' $ac_executable_extensions; do
14435 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14436 ac_cv_prog_ac_ct_NMEDIT="nmedit"
14437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14438 break 2
14439 fi
14440 done
14441 done
14442 IFS=$as_save_IFS
14443
14444 fi
14445 fi
14446 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
14447 if test -n "$ac_ct_NMEDIT"; then
14448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
14449 $as_echo "$ac_ct_NMEDIT" >&6; }
14450 else
14451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14452 $as_echo "no" >&6; }
14453 fi
14454
14455 if test "x$ac_ct_NMEDIT" = x; then
14456 NMEDIT=":"
14457 else
14458 case $cross_compiling:$ac_tool_warned in
14459 yes:)
14460 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14461 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14462 ac_tool_warned=yes ;;
14463 esac
14464 NMEDIT=$ac_ct_NMEDIT
14465 fi
14466 else
14467 NMEDIT="$ac_cv_prog_NMEDIT"
14468 fi
14469
14470 if test -n "$ac_tool_prefix"; then
14471 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
14472 set dummy ${ac_tool_prefix}lipo; ac_word=$2
14473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14474 $as_echo_n "checking for $ac_word... " >&6; }
14475 if test "${ac_cv_prog_LIPO+set}" = set; then :
14476 $as_echo_n "(cached) " >&6
14477 else
14478 if test -n "$LIPO"; then
14479 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
14480 else
14481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14482 for as_dir in $PATH
14483 do
14484 IFS=$as_save_IFS
14485 test -z "$as_dir" && as_dir=.
14486 for ac_exec_ext in '' $ac_executable_extensions; do
14487 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14488 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
14489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14490 break 2
14491 fi
14492 done
14493 done
14494 IFS=$as_save_IFS
14495
14496 fi
14497 fi
14498 LIPO=$ac_cv_prog_LIPO
14499 if test -n "$LIPO"; then
14500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
14501 $as_echo "$LIPO" >&6; }
14502 else
14503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14504 $as_echo "no" >&6; }
14505 fi
14506
14507
14508 fi
14509 if test -z "$ac_cv_prog_LIPO"; then
14510 ac_ct_LIPO=$LIPO
14511 # Extract the first word of "lipo", so it can be a program name with args.
14512 set dummy lipo; ac_word=$2
14513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14514 $as_echo_n "checking for $ac_word... " >&6; }
14515 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
14516 $as_echo_n "(cached) " >&6
14517 else
14518 if test -n "$ac_ct_LIPO"; then
14519 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14520 else
14521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14522 for as_dir in $PATH
14523 do
14524 IFS=$as_save_IFS
14525 test -z "$as_dir" && as_dir=.
14526 for ac_exec_ext in '' $ac_executable_extensions; do
14527 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14528 ac_cv_prog_ac_ct_LIPO="lipo"
14529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14530 break 2
14531 fi
14532 done
14533 done
14534 IFS=$as_save_IFS
14535
14536 fi
14537 fi
14538 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14539 if test -n "$ac_ct_LIPO"; then
14540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
14541 $as_echo "$ac_ct_LIPO" >&6; }
14542 else
14543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14544 $as_echo "no" >&6; }
14545 fi
14546
14547 if test "x$ac_ct_LIPO" = x; then
14548 LIPO=":"
14549 else
14550 case $cross_compiling:$ac_tool_warned in
14551 yes:)
14552 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14553 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14554 ac_tool_warned=yes ;;
14555 esac
14556 LIPO=$ac_ct_LIPO
14557 fi
14558 else
14559 LIPO="$ac_cv_prog_LIPO"
14560 fi
14561
14562 if test -n "$ac_tool_prefix"; then
14563 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
14564 set dummy ${ac_tool_prefix}otool; ac_word=$2
14565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14566 $as_echo_n "checking for $ac_word... " >&6; }
14567 if test "${ac_cv_prog_OTOOL+set}" = set; then :
14568 $as_echo_n "(cached) " >&6
14569 else
14570 if test -n "$OTOOL"; then
14571 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14572 else
14573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14574 for as_dir in $PATH
14575 do
14576 IFS=$as_save_IFS
14577 test -z "$as_dir" && as_dir=.
14578 for ac_exec_ext in '' $ac_executable_extensions; do
14579 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14580 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
14581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14582 break 2
14583 fi
14584 done
14585 done
14586 IFS=$as_save_IFS
14587
14588 fi
14589 fi
14590 OTOOL=$ac_cv_prog_OTOOL
14591 if test -n "$OTOOL"; then
14592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
14593 $as_echo "$OTOOL" >&6; }
14594 else
14595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14596 $as_echo "no" >&6; }
14597 fi
14598
14599
14600 fi
14601 if test -z "$ac_cv_prog_OTOOL"; then
14602 ac_ct_OTOOL=$OTOOL
14603 # Extract the first word of "otool", so it can be a program name with args.
14604 set dummy otool; ac_word=$2
14605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14606 $as_echo_n "checking for $ac_word... " >&6; }
14607 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
14608 $as_echo_n "(cached) " >&6
14609 else
14610 if test -n "$ac_ct_OTOOL"; then
14611 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14612 else
14613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14614 for as_dir in $PATH
14615 do
14616 IFS=$as_save_IFS
14617 test -z "$as_dir" && as_dir=.
14618 for ac_exec_ext in '' $ac_executable_extensions; do
14619 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14620 ac_cv_prog_ac_ct_OTOOL="otool"
14621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14622 break 2
14623 fi
14624 done
14625 done
14626 IFS=$as_save_IFS
14627
14628 fi
14629 fi
14630 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14631 if test -n "$ac_ct_OTOOL"; then
14632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
14633 $as_echo "$ac_ct_OTOOL" >&6; }
14634 else
14635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14636 $as_echo "no" >&6; }
14637 fi
14638
14639 if test "x$ac_ct_OTOOL" = x; then
14640 OTOOL=":"
14641 else
14642 case $cross_compiling:$ac_tool_warned in
14643 yes:)
14644 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14645 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14646 ac_tool_warned=yes ;;
14647 esac
14648 OTOOL=$ac_ct_OTOOL
14649 fi
14650 else
14651 OTOOL="$ac_cv_prog_OTOOL"
14652 fi
14653
14654 if test -n "$ac_tool_prefix"; then
14655 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
14656 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14658 $as_echo_n "checking for $ac_word... " >&6; }
14659 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
14660 $as_echo_n "(cached) " >&6
14661 else
14662 if test -n "$OTOOL64"; then
14663 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14664 else
14665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14666 for as_dir in $PATH
14667 do
14668 IFS=$as_save_IFS
14669 test -z "$as_dir" && as_dir=.
14670 for ac_exec_ext in '' $ac_executable_extensions; do
14671 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14672 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
14673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14674 break 2
14675 fi
14676 done
14677 done
14678 IFS=$as_save_IFS
14679
14680 fi
14681 fi
14682 OTOOL64=$ac_cv_prog_OTOOL64
14683 if test -n "$OTOOL64"; then
14684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
14685 $as_echo "$OTOOL64" >&6; }
14686 else
14687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14688 $as_echo "no" >&6; }
14689 fi
14690
14691
14692 fi
14693 if test -z "$ac_cv_prog_OTOOL64"; then
14694 ac_ct_OTOOL64=$OTOOL64
14695 # Extract the first word of "otool64", so it can be a program name with args.
14696 set dummy otool64; ac_word=$2
14697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14698 $as_echo_n "checking for $ac_word... " >&6; }
14699 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
14700 $as_echo_n "(cached) " >&6
14701 else
14702 if test -n "$ac_ct_OTOOL64"; then
14703 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14704 else
14705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14706 for as_dir in $PATH
14707 do
14708 IFS=$as_save_IFS
14709 test -z "$as_dir" && as_dir=.
14710 for ac_exec_ext in '' $ac_executable_extensions; do
14711 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14712 ac_cv_prog_ac_ct_OTOOL64="otool64"
14713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14714 break 2
14715 fi
14716 done
14717 done
14718 IFS=$as_save_IFS
14719
14720 fi
14721 fi
14722 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14723 if test -n "$ac_ct_OTOOL64"; then
14724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
14725 $as_echo "$ac_ct_OTOOL64" >&6; }
14726 else
14727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14728 $as_echo "no" >&6; }
14729 fi
14730
14731 if test "x$ac_ct_OTOOL64" = x; then
14732 OTOOL64=":"
14733 else
14734 case $cross_compiling:$ac_tool_warned in
14735 yes:)
14736 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14737 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14738 ac_tool_warned=yes ;;
14739 esac
14740 OTOOL64=$ac_ct_OTOOL64
14741 fi
14742 else
14743 OTOOL64="$ac_cv_prog_OTOOL64"
14744 fi
14745
14746
14747
14748
14749
14750
14751
14752
14753
14754
14755
14756
14757
14758
14759
14760
14761
14762
14763
14764
14765
14766
14767
14768
14769
14770
14771
14772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
14773 $as_echo_n "checking for -single_module linker flag... " >&6; }
14774 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
14775 $as_echo_n "(cached) " >&6
14776 else
14777 lt_cv_apple_cc_single_mod=no
14778 if test -z "${LT_MULTI_MODULE}"; then
14779 # By default we will add the -single_module flag. You can override
14780 # by either setting the environment variable LT_MULTI_MODULE
14781 # non-empty at configure time, or by adding -multi_module to the
14782 # link flags.
14783 rm -rf libconftest.dylib*
14784 echo "int foo(void){return 1;}" > conftest.c
14785 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14786 -dynamiclib -Wl,-single_module conftest.c" >&5
14787 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14788 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14789 _lt_result=$?
14790 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
14791 lt_cv_apple_cc_single_mod=yes
14792 else
14793 cat conftest.err >&5
14794 fi
14795 rm -rf libconftest.dylib*
14796 rm -f conftest.*
14797 fi
14798 fi
14799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
14800 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
14802 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
14803 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
14804 $as_echo_n "(cached) " >&6
14805 else
14806 lt_cv_ld_exported_symbols_list=no
14807 save_LDFLAGS=$LDFLAGS
14808 echo "_main" > conftest.sym
14809 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
14810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14811 /* end confdefs.h. */
14812
14813 int
14814 main ()
14815 {
14816
14817 ;
14818 return 0;
14819 }
14820 _ACEOF
14821 if ac_fn_c_try_link "$LINENO"; then :
14822 lt_cv_ld_exported_symbols_list=yes
14823 else
14824 lt_cv_ld_exported_symbols_list=no
14825 fi
14826 rm -f core conftest.err conftest.$ac_objext \
14827 conftest$ac_exeext conftest.$ac_ext
14828 LDFLAGS="$save_LDFLAGS"
14829
14830 fi
14831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
14832 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
14834 $as_echo_n "checking for -force_load linker flag... " >&6; }
14835 if test "${lt_cv_ld_force_load+set}" = set; then :
14836 $as_echo_n "(cached) " >&6
14837 else
14838 lt_cv_ld_force_load=no
14839 cat > conftest.c << _LT_EOF
14840 int forced_loaded() { return 2;}
14841 _LT_EOF
14842 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
14843 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14844 echo "$AR cru libconftest.a conftest.o" >&5
14845 $AR cru libconftest.a conftest.o 2>&5
14846 cat > conftest.c << _LT_EOF
14847 int main() { return 0;}
14848 _LT_EOF
14849 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
14850 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14851 _lt_result=$?
14852 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
14853 lt_cv_ld_force_load=yes
14854 else
14855 cat conftest.err >&5
14856 fi
14857 rm -f conftest.err libconftest.a conftest conftest.c
14858 rm -rf conftest.dSYM
14859
14860 fi
14861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
14862 $as_echo "$lt_cv_ld_force_load" >&6; }
14863 case $host_os in
14864 rhapsody* | darwin1.[012])
14865 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14866 darwin1.*)
14867 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14868 darwin*) # darwin 5.x on
14869 # if running on 10.5 or later, the deployment target defaults
14870 # to the OS version, if on x86, and 10.4, the deployment
14871 # target defaults to 10.4. Don't you love it?
14872 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14873 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14874 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14875 10.[012][,.]*)
14876 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14877 10.*)
14878 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14879 esac
14880 ;;
14881 esac
14882 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14883 _lt_dar_single_mod='$single_module'
14884 fi
14885 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14886 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14887 else
14888 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14889 fi
14890 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
14891 _lt_dsymutil='~$DSYMUTIL $lib || :'
14892 else
14893 _lt_dsymutil=
14894 fi
14895 ;;
14896 esac
14897
14898
14899 for ac_header in dlfcn.h
14900 do :
14901 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
14902 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
14903 cat >>confdefs.h <<_ACEOF
14904 #define HAVE_DLFCN_H 1
14905 _ACEOF
14906
14907 fi
14908 done
14909
14910
14911
14912
14913
14914 # Set options
14915
14916
14917
14918 enable_dlopen=no
14919
14920
14921 enable_win32_dll=no
14922
14923
14924 # Check whether --enable-shared was given.
14925 if test "${enable_shared+set}" = set; then :
14926 enableval=$enable_shared; p=${PACKAGE-default}
14927 case $enableval in
14928 yes) enable_shared=yes ;;
14929 no) enable_shared=no ;;
14930 *)
14931 enable_shared=no
14932 # Look at the argument we got. We use all the common list separators.
14933 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14934 for pkg in $enableval; do
14935 IFS="$lt_save_ifs"
14936 if test "X$pkg" = "X$p"; then
14937 enable_shared=yes
14938 fi
14939 done
14940 IFS="$lt_save_ifs"
14941 ;;
14942 esac
14943 else
14944 enable_shared=yes
14945 fi
14946
14947
14948
14949
14950
14951
14952
14953
14954
14955 # Check whether --enable-static was given.
14956 if test "${enable_static+set}" = set; then :
14957 enableval=$enable_static; p=${PACKAGE-default}
14958 case $enableval in
14959 yes) enable_static=yes ;;
14960 no) enable_static=no ;;
14961 *)
14962 enable_static=no
14963 # Look at the argument we got. We use all the common list separators.
14964 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14965 for pkg in $enableval; do
14966 IFS="$lt_save_ifs"
14967 if test "X$pkg" = "X$p"; then
14968 enable_static=yes
14969 fi
14970 done
14971 IFS="$lt_save_ifs"
14972 ;;
14973 esac
14974 else
14975 enable_static=yes
14976 fi
14977
14978
14979
14980
14981
14982
14983
14984
14985
14986
14987 # Check whether --with-pic was given.
14988 if test "${with_pic+set}" = set; then :
14989 withval=$with_pic; pic_mode="$withval"
14990 else
14991 pic_mode=default
14992 fi
14993
14994
14995 test -z "$pic_mode" && pic_mode=default
14996
14997
14998
14999
15000
15001
15002
15003 # Check whether --enable-fast-install was given.
15004 if test "${enable_fast_install+set}" = set; then :
15005 enableval=$enable_fast_install; p=${PACKAGE-default}
15006 case $enableval in
15007 yes) enable_fast_install=yes ;;
15008 no) enable_fast_install=no ;;
15009 *)
15010 enable_fast_install=no
15011 # Look at the argument we got. We use all the common list separators.
15012 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15013 for pkg in $enableval; do
15014 IFS="$lt_save_ifs"
15015 if test "X$pkg" = "X$p"; then
15016 enable_fast_install=yes
15017 fi
15018 done
15019 IFS="$lt_save_ifs"
15020 ;;
15021 esac
15022 else
15023 enable_fast_install=yes
15024 fi
15025
15026
15027
15028
15029
15030
15031
15032
15033
15034
15035
15036 # This can be used to rebuild libtool when needed
15037 LIBTOOL_DEPS="$ltmain"
15038
15039 # Always use our own libtool.
15040 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
15041
15042
15043
15044
15045
15046
15047
15048
15049
15050
15051
15052
15053
15054
15055
15056
15057
15058
15059
15060
15061
15062
15063
15064
15065
15066
15067 test -z "$LN_S" && LN_S="ln -s"
15068
15069
15070
15071
15072
15073
15074
15075
15076
15077
15078
15079
15080
15081
15082 if test -n "${ZSH_VERSION+set}" ; then
15083 setopt NO_GLOB_SUBST
15084 fi
15085
15086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
15087 $as_echo_n "checking for objdir... " >&6; }
15088 if test "${lt_cv_objdir+set}" = set; then :
15089 $as_echo_n "(cached) " >&6
15090 else
15091 rm -f .libs 2>/dev/null
15092 mkdir .libs 2>/dev/null
15093 if test -d .libs; then
15094 lt_cv_objdir=.libs
15095 else
15096 # MS-DOS does not allow filenames that begin with a dot.
15097 lt_cv_objdir=_libs
15098 fi
15099 rmdir .libs 2>/dev/null
15100 fi
15101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
15102 $as_echo "$lt_cv_objdir" >&6; }
15103 objdir=$lt_cv_objdir
15104
15105
15106
15107
15108
15109 cat >>confdefs.h <<_ACEOF
15110 #define LT_OBJDIR "$lt_cv_objdir/"
15111 _ACEOF
15112
15113
15114
15115
15116 case $host_os in
15117 aix3*)
15118 # AIX sometimes has problems with the GCC collect2 program. For some
15119 # reason, if we set the COLLECT_NAMES environment variable, the problems
15120 # vanish in a puff of smoke.
15121 if test "X${COLLECT_NAMES+set}" != Xset; then
15122 COLLECT_NAMES=
15123 export COLLECT_NAMES
15124 fi
15125 ;;
15126 esac
15127
15128 # Global variables:
15129 ofile=libtool
15130 can_build_shared=yes
15131
15132 # All known linkers require a `.a' archive for static linking (except MSVC,
15133 # which needs '.lib').
15134 libext=a
15135
15136 with_gnu_ld="$lt_cv_prog_gnu_ld"
15137
15138 old_CC="$CC"
15139 old_CFLAGS="$CFLAGS"
15140
15141 # Set sane defaults for various variables
15142 test -z "$CC" && CC=cc
15143 test -z "$LTCC" && LTCC=$CC
15144 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
15145 test -z "$LD" && LD=ld
15146 test -z "$ac_objext" && ac_objext=o
15147
15148 for cc_temp in $compiler""; do
15149 case $cc_temp in
15150 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15151 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15152 \-*) ;;
15153 *) break;;
15154 esac
15155 done
15156 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
15157
15158
15159 # Only perform the check for file, if the check method requires it
15160 test -z "$MAGIC_CMD" && MAGIC_CMD=file
15161 case $deplibs_check_method in
15162 file_magic*)
15163 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
15164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
15165 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
15166 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
15167 $as_echo_n "(cached) " >&6
15168 else
15169 case $MAGIC_CMD in
15170 [\\/*] | ?:[\\/]*)
15171 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15172 ;;
15173 *)
15174 lt_save_MAGIC_CMD="$MAGIC_CMD"
15175 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15176 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15177 for ac_dir in $ac_dummy; do
15178 IFS="$lt_save_ifs"
15179 test -z "$ac_dir" && ac_dir=.
15180 if test -f $ac_dir/${ac_tool_prefix}file; then
15181 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
15182 if test -n "$file_magic_test_file"; then
15183 case $deplibs_check_method in
15184 "file_magic "*)
15185 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15186 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15187 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15188 $EGREP "$file_magic_regex" > /dev/null; then
15189 :
15190 else
15191 cat <<_LT_EOF 1>&2
15192
15193 *** Warning: the command libtool uses to detect shared libraries,
15194 *** $file_magic_cmd, produces output that libtool cannot recognize.
15195 *** The result is that libtool may fail to recognize shared libraries
15196 *** as such. This will affect the creation of libtool libraries that
15197 *** depend on shared libraries, but programs linked with such libtool
15198 *** libraries will work regardless of this problem. Nevertheless, you
15199 *** may want to report the problem to your system manager and/or to
15200 *** bug-libtool@gnu.org
15201
15202 _LT_EOF
15203 fi ;;
15204 esac
15205 fi
15206 break
15207 fi
15208 done
15209 IFS="$lt_save_ifs"
15210 MAGIC_CMD="$lt_save_MAGIC_CMD"
15211 ;;
15212 esac
15213 fi
15214
15215 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15216 if test -n "$MAGIC_CMD"; then
15217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15218 $as_echo "$MAGIC_CMD" >&6; }
15219 else
15220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15221 $as_echo "no" >&6; }
15222 fi
15223
15224
15225
15226
15227
15228 if test -z "$lt_cv_path_MAGIC_CMD"; then
15229 if test -n "$ac_tool_prefix"; then
15230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
15231 $as_echo_n "checking for file... " >&6; }
15232 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
15233 $as_echo_n "(cached) " >&6
15234 else
15235 case $MAGIC_CMD in
15236 [\\/*] | ?:[\\/]*)
15237 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15238 ;;
15239 *)
15240 lt_save_MAGIC_CMD="$MAGIC_CMD"
15241 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15242 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15243 for ac_dir in $ac_dummy; do
15244 IFS="$lt_save_ifs"
15245 test -z "$ac_dir" && ac_dir=.
15246 if test -f $ac_dir/file; then
15247 lt_cv_path_MAGIC_CMD="$ac_dir/file"
15248 if test -n "$file_magic_test_file"; then
15249 case $deplibs_check_method in
15250 "file_magic "*)
15251 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15252 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15253 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15254 $EGREP "$file_magic_regex" > /dev/null; then
15255 :
15256 else
15257 cat <<_LT_EOF 1>&2
15258
15259 *** Warning: the command libtool uses to detect shared libraries,
15260 *** $file_magic_cmd, produces output that libtool cannot recognize.
15261 *** The result is that libtool may fail to recognize shared libraries
15262 *** as such. This will affect the creation of libtool libraries that
15263 *** depend on shared libraries, but programs linked with such libtool
15264 *** libraries will work regardless of this problem. Nevertheless, you
15265 *** may want to report the problem to your system manager and/or to
15266 *** bug-libtool@gnu.org
15267
15268 _LT_EOF
15269 fi ;;
15270 esac
15271 fi
15272 break
15273 fi
15274 done
15275 IFS="$lt_save_ifs"
15276 MAGIC_CMD="$lt_save_MAGIC_CMD"
15277 ;;
15278 esac
15279 fi
15280
15281 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15282 if test -n "$MAGIC_CMD"; then
15283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15284 $as_echo "$MAGIC_CMD" >&6; }
15285 else
15286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15287 $as_echo "no" >&6; }
15288 fi
15289
15290
15291 else
15292 MAGIC_CMD=:
15293 fi
15294 fi
15295
15296 fi
15297 ;;
15298 esac
15299
15300 # Use C for the default configuration in the libtool script
15301
15302 lt_save_CC="$CC"
15303 ac_ext=c
15304 ac_cpp='$CPP $CPPFLAGS'
15305 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15306 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15307 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15308
15309
15310 # Source file extension for C test sources.
15311 ac_ext=c
15312
15313 # Object file extension for compiled C test sources.
15314 objext=o
15315 objext=$objext
15316
15317 # Code to be used in simple compile tests
15318 lt_simple_compile_test_code="int some_variable = 0;"
15319
15320 # Code to be used in simple link tests
15321 lt_simple_link_test_code='int main(){return(0);}'
15322
15323
15324
15325
15326
15327
15328
15329 # If no C compiler was specified, use CC.
15330 LTCC=${LTCC-"$CC"}
15331
15332 # If no C compiler flags were specified, use CFLAGS.
15333 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15334
15335 # Allow CC to be a program name with arguments.
15336 compiler=$CC
15337
15338 # Save the default compiler, since it gets overwritten when the other
15339 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
15340 compiler_DEFAULT=$CC
15341
15342 # save warnings/boilerplate of simple test code
15343 ac_outfile=conftest.$ac_objext
15344 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15345 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15346 _lt_compiler_boilerplate=`cat conftest.err`
15347 $RM conftest*
15348
15349 ac_outfile=conftest.$ac_objext
15350 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15351 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15352 _lt_linker_boilerplate=`cat conftest.err`
15353 $RM -r conftest*
15354
15355
15356 ## CAVEAT EMPTOR:
15357 ## There is no encapsulation within the following macros, do not change
15358 ## the running order or otherwise move them around unless you know exactly
15359 ## what you are doing...
15360 if test -n "$compiler"; then
15361
15362 lt_prog_compiler_no_builtin_flag=
15363
15364 if test "$GCC" = yes; then
15365 case $cc_basename in
15366 nvcc*)
15367 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
15368 *)
15369 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
15370 esac
15371
15372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15373 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
15374 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
15375 $as_echo_n "(cached) " >&6
15376 else
15377 lt_cv_prog_compiler_rtti_exceptions=no
15378 ac_outfile=conftest.$ac_objext
15379 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15380 lt_compiler_flag="-fno-rtti -fno-exceptions"
15381 # Insert the option either (1) after the last *FLAGS variable, or
15382 # (2) before a word containing "conftest.", or (3) at the end.
15383 # Note that $ac_compile itself does not contain backslashes and begins
15384 # with a dollar sign (not a hyphen), so the echo should work correctly.
15385 # The option is referenced via a variable to avoid confusing sed.
15386 lt_compile=`echo "$ac_compile" | $SED \
15387 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15388 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15389 -e 's:$: $lt_compiler_flag:'`
15390 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15391 (eval "$lt_compile" 2>conftest.err)
15392 ac_status=$?
15393 cat conftest.err >&5
15394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15395 if (exit $ac_status) && test -s "$ac_outfile"; then
15396 # The compiler can only warn and ignore the option if not recognized
15397 # So say no if there are warnings other than the usual output.
15398 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15399 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15400 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15401 lt_cv_prog_compiler_rtti_exceptions=yes
15402 fi
15403 fi
15404 $RM conftest*
15405
15406 fi
15407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15408 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15409
15410 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15411 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
15412 else
15413 :
15414 fi
15415
15416 fi
15417
15418
15419
15420
15421
15422
15423 lt_prog_compiler_wl=
15424 lt_prog_compiler_pic=
15425 lt_prog_compiler_static=
15426
15427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15428 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15429
15430 if test "$GCC" = yes; then
15431 lt_prog_compiler_wl='-Wl,'
15432 lt_prog_compiler_static='-static'
15433
15434 case $host_os in
15435 aix*)
15436 # All AIX code is PIC.
15437 if test "$host_cpu" = ia64; then
15438 # AIX 5 now supports IA64 processor
15439 lt_prog_compiler_static='-Bstatic'
15440 fi
15441 lt_prog_compiler_pic='-fPIC'
15442 ;;
15443
15444 amigaos*)
15445 case $host_cpu in
15446 powerpc)
15447 # see comment about AmigaOS4 .so support
15448 lt_prog_compiler_pic='-fPIC'
15449 ;;
15450 m68k)
15451 # FIXME: we need at least 68020 code to build shared libraries, but
15452 # adding the `-m68020' flag to GCC prevents building anything better,
15453 # like `-m68040'.
15454 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15455 ;;
15456 esac
15457 ;;
15458
15459 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15460 # PIC is the default for these OSes.
15461 ;;
15462
15463 mingw* | cygwin* | pw32* | os2* | cegcc*)
15464 # This hack is so that the source file can tell whether it is being
15465 # built for inclusion in a dll (and should export symbols for example).
15466 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15467 # (--disable-auto-import) libraries
15468 lt_prog_compiler_pic='-DDLL_EXPORT'
15469 ;;
15470
15471 darwin* | rhapsody*)
15472 # PIC is the default on this platform
15473 # Common symbols not allowed in MH_DYLIB files
15474 lt_prog_compiler_pic='-fno-common'
15475 ;;
15476
15477 haiku*)
15478 # PIC is the default for Haiku.
15479 # The "-static" flag exists, but is broken.
15480 lt_prog_compiler_static=
15481 ;;
15482
15483 hpux*)
15484 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15485 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15486 # sets the default TLS model and affects inlining.
15487 case $host_cpu in
15488 hppa*64*)
15489 # +Z the default
15490 ;;
15491 *)
15492 lt_prog_compiler_pic='-fPIC'
15493 ;;
15494 esac
15495 ;;
15496
15497 interix[3-9]*)
15498 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15499 # Instead, we relocate shared libraries at runtime.
15500 ;;
15501
15502 msdosdjgpp*)
15503 # Just because we use GCC doesn't mean we suddenly get shared libraries
15504 # on systems that don't support them.
15505 lt_prog_compiler_can_build_shared=no
15506 enable_shared=no
15507 ;;
15508
15509 *nto* | *qnx*)
15510 # QNX uses GNU C++, but need to define -shared option too, otherwise
15511 # it will coredump.
15512 lt_prog_compiler_pic='-fPIC -shared'
15513 ;;
15514
15515 sysv4*MP*)
15516 if test -d /usr/nec; then
15517 lt_prog_compiler_pic=-Kconform_pic
15518 fi
15519 ;;
15520
15521 *)
15522 lt_prog_compiler_pic='-fPIC'
15523 ;;
15524 esac
15525
15526 case $cc_basename in
15527 nvcc*) # Cuda Compiler Driver 2.2
15528 lt_prog_compiler_wl='-Xlinker '
15529 lt_prog_compiler_pic='-Xcompiler -fPIC'
15530 ;;
15531 esac
15532 else
15533 # PORTME Check for flag to pass linker flags through the system compiler.
15534 case $host_os in
15535 aix*)
15536 lt_prog_compiler_wl='-Wl,'
15537 if test "$host_cpu" = ia64; then
15538 # AIX 5 now supports IA64 processor
15539 lt_prog_compiler_static='-Bstatic'
15540 else
15541 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15542 fi
15543 ;;
15544
15545 mingw* | cygwin* | pw32* | os2* | cegcc*)
15546 # This hack is so that the source file can tell whether it is being
15547 # built for inclusion in a dll (and should export symbols for example).
15548 lt_prog_compiler_pic='-DDLL_EXPORT'
15549 ;;
15550
15551 hpux9* | hpux10* | hpux11*)
15552 lt_prog_compiler_wl='-Wl,'
15553 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15554 # not for PA HP-UX.
15555 case $host_cpu in
15556 hppa*64*|ia64*)
15557 # +Z the default
15558 ;;
15559 *)
15560 lt_prog_compiler_pic='+Z'
15561 ;;
15562 esac
15563 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15564 lt_prog_compiler_static='${wl}-a ${wl}archive'
15565 ;;
15566
15567 irix5* | irix6* | nonstopux*)
15568 lt_prog_compiler_wl='-Wl,'
15569 # PIC (with -KPIC) is the default.
15570 lt_prog_compiler_static='-non_shared'
15571 ;;
15572
15573 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15574 case $cc_basename in
15575 # old Intel for x86_64 which still supported -KPIC.
15576 ecc*)
15577 lt_prog_compiler_wl='-Wl,'
15578 lt_prog_compiler_pic='-KPIC'
15579 lt_prog_compiler_static='-static'
15580 ;;
15581 # icc used to be incompatible with GCC.
15582 # ICC 10 doesn't accept -KPIC any more.
15583 icc* | ifort*)
15584 lt_prog_compiler_wl='-Wl,'
15585 lt_prog_compiler_pic='-fPIC'
15586 lt_prog_compiler_static='-static'
15587 ;;
15588 # Lahey Fortran 8.1.
15589 lf95*)
15590 lt_prog_compiler_wl='-Wl,'
15591 lt_prog_compiler_pic='--shared'
15592 lt_prog_compiler_static='--static'
15593 ;;
15594 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15595 # Portland Group compilers (*not* the Pentium gcc compiler,
15596 # which looks to be a dead project)
15597 lt_prog_compiler_wl='-Wl,'
15598 lt_prog_compiler_pic='-fpic'
15599 lt_prog_compiler_static='-Bstatic'
15600 ;;
15601 ccc*)
15602 lt_prog_compiler_wl='-Wl,'
15603 # All Alpha code is PIC.
15604 lt_prog_compiler_static='-non_shared'
15605 ;;
15606 xl* | bgxl* | bgf* | mpixl*)
15607 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15608 lt_prog_compiler_wl='-Wl,'
15609 lt_prog_compiler_pic='-qpic'
15610 lt_prog_compiler_static='-qstaticlink'
15611 ;;
15612 *)
15613 case `$CC -V 2>&1 | sed 5q` in
15614 *Sun\ F* | *Sun*Fortran*)
15615 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15616 lt_prog_compiler_pic='-KPIC'
15617 lt_prog_compiler_static='-Bstatic'
15618 lt_prog_compiler_wl=''
15619 ;;
15620 *Sun\ C*)
15621 # Sun C 5.9
15622 lt_prog_compiler_pic='-KPIC'
15623 lt_prog_compiler_static='-Bstatic'
15624 lt_prog_compiler_wl='-Wl,'
15625 ;;
15626 esac
15627 ;;
15628 esac
15629 ;;
15630
15631 newsos6)
15632 lt_prog_compiler_pic='-KPIC'
15633 lt_prog_compiler_static='-Bstatic'
15634 ;;
15635
15636 *nto* | *qnx*)
15637 # QNX uses GNU C++, but need to define -shared option too, otherwise
15638 # it will coredump.
15639 lt_prog_compiler_pic='-fPIC -shared'
15640 ;;
15641
15642 osf3* | osf4* | osf5*)
15643 lt_prog_compiler_wl='-Wl,'
15644 # All OSF/1 code is PIC.
15645 lt_prog_compiler_static='-non_shared'
15646 ;;
15647
15648 rdos*)
15649 lt_prog_compiler_static='-non_shared'
15650 ;;
15651
15652 solaris*)
15653 lt_prog_compiler_pic='-KPIC'
15654 lt_prog_compiler_static='-Bstatic'
15655 case $cc_basename in
15656 f77* | f90* | f95*)
15657 lt_prog_compiler_wl='-Qoption ld ';;
15658 *)
15659 lt_prog_compiler_wl='-Wl,';;
15660 esac
15661 ;;
15662
15663 sunos4*)
15664 lt_prog_compiler_wl='-Qoption ld '
15665 lt_prog_compiler_pic='-PIC'
15666 lt_prog_compiler_static='-Bstatic'
15667 ;;
15668
15669 sysv4 | sysv4.2uw2* | sysv4.3*)
15670 lt_prog_compiler_wl='-Wl,'
15671 lt_prog_compiler_pic='-KPIC'
15672 lt_prog_compiler_static='-Bstatic'
15673 ;;
15674
15675 sysv4*MP*)
15676 if test -d /usr/nec ;then
15677 lt_prog_compiler_pic='-Kconform_pic'
15678 lt_prog_compiler_static='-Bstatic'
15679 fi
15680 ;;
15681
15682 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15683 lt_prog_compiler_wl='-Wl,'
15684 lt_prog_compiler_pic='-KPIC'
15685 lt_prog_compiler_static='-Bstatic'
15686 ;;
15687
15688 unicos*)
15689 lt_prog_compiler_wl='-Wl,'
15690 lt_prog_compiler_can_build_shared=no
15691 ;;
15692
15693 uts4*)
15694 lt_prog_compiler_pic='-pic'
15695 lt_prog_compiler_static='-Bstatic'
15696 ;;
15697
15698 *)
15699 lt_prog_compiler_can_build_shared=no
15700 ;;
15701 esac
15702 fi
15703
15704 case $host_os in
15705 # For platforms which do not support PIC, -DPIC is meaningless:
15706 *djgpp*)
15707 lt_prog_compiler_pic=
15708 ;;
15709 *)
15710 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15711 ;;
15712 esac
15713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
15714 $as_echo "$lt_prog_compiler_pic" >&6; }
15715
15716
15717
15718
15719
15720
15721 #
15722 # Check to make sure the PIC flag actually works.
15723 #
15724 if test -n "$lt_prog_compiler_pic"; then
15725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15726 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
15727 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
15728 $as_echo_n "(cached) " >&6
15729 else
15730 lt_cv_prog_compiler_pic_works=no
15731 ac_outfile=conftest.$ac_objext
15732 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15733 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15734 # Insert the option either (1) after the last *FLAGS variable, or
15735 # (2) before a word containing "conftest.", or (3) at the end.
15736 # Note that $ac_compile itself does not contain backslashes and begins
15737 # with a dollar sign (not a hyphen), so the echo should work correctly.
15738 # The option is referenced via a variable to avoid confusing sed.
15739 lt_compile=`echo "$ac_compile" | $SED \
15740 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15741 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15742 -e 's:$: $lt_compiler_flag:'`
15743 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15744 (eval "$lt_compile" 2>conftest.err)
15745 ac_status=$?
15746 cat conftest.err >&5
15747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15748 if (exit $ac_status) && test -s "$ac_outfile"; then
15749 # The compiler can only warn and ignore the option if not recognized
15750 # So say no if there are warnings other than the usual output.
15751 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15752 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15753 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15754 lt_cv_prog_compiler_pic_works=yes
15755 fi
15756 fi
15757 $RM conftest*
15758
15759 fi
15760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15761 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15762
15763 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15764 case $lt_prog_compiler_pic in
15765 "" | " "*) ;;
15766 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15767 esac
15768 else
15769 lt_prog_compiler_pic=
15770 lt_prog_compiler_can_build_shared=no
15771 fi
15772
15773 fi
15774
15775
15776
15777
15778
15779
15780 #
15781 # Check to make sure the static flag actually works.
15782 #
15783 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15785 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15786 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
15787 $as_echo_n "(cached) " >&6
15788 else
15789 lt_cv_prog_compiler_static_works=no
15790 save_LDFLAGS="$LDFLAGS"
15791 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15792 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15793 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15794 # The linker can only warn and ignore the option if not recognized
15795 # So say no if there are warnings
15796 if test -s conftest.err; then
15797 # Append any errors to the config.log.
15798 cat conftest.err 1>&5
15799 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15800 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15801 if diff conftest.exp conftest.er2 >/dev/null; then
15802 lt_cv_prog_compiler_static_works=yes
15803 fi
15804 else
15805 lt_cv_prog_compiler_static_works=yes
15806 fi
15807 fi
15808 $RM -r conftest*
15809 LDFLAGS="$save_LDFLAGS"
15810
15811 fi
15812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15813 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15814
15815 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15816 :
15817 else
15818 lt_prog_compiler_static=
15819 fi
15820
15821
15822
15823
15824
15825
15826
15827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15828 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15829 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15830 $as_echo_n "(cached) " >&6
15831 else
15832 lt_cv_prog_compiler_c_o=no
15833 $RM -r conftest 2>/dev/null
15834 mkdir conftest
15835 cd conftest
15836 mkdir out
15837 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15838
15839 lt_compiler_flag="-o out/conftest2.$ac_objext"
15840 # Insert the option either (1) after the last *FLAGS variable, or
15841 # (2) before a word containing "conftest.", or (3) at the end.
15842 # Note that $ac_compile itself does not contain backslashes and begins
15843 # with a dollar sign (not a hyphen), so the echo should work correctly.
15844 lt_compile=`echo "$ac_compile" | $SED \
15845 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15846 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15847 -e 's:$: $lt_compiler_flag:'`
15848 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15849 (eval "$lt_compile" 2>out/conftest.err)
15850 ac_status=$?
15851 cat out/conftest.err >&5
15852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15853 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15854 then
15855 # The compiler can only warn and ignore the option if not recognized
15856 # So say no if there are warnings
15857 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15858 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15859 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15860 lt_cv_prog_compiler_c_o=yes
15861 fi
15862 fi
15863 chmod u+w . 2>&5
15864 $RM conftest*
15865 # SGI C++ compiler will create directory out/ii_files/ for
15866 # template instantiation
15867 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15868 $RM out/* && rmdir out
15869 cd ..
15870 $RM -r conftest
15871 $RM conftest*
15872
15873 fi
15874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15875 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15876
15877
15878
15879
15880
15881
15882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15883 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15884 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15885 $as_echo_n "(cached) " >&6
15886 else
15887 lt_cv_prog_compiler_c_o=no
15888 $RM -r conftest 2>/dev/null
15889 mkdir conftest
15890 cd conftest
15891 mkdir out
15892 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15893
15894 lt_compiler_flag="-o out/conftest2.$ac_objext"
15895 # Insert the option either (1) after the last *FLAGS variable, or
15896 # (2) before a word containing "conftest.", or (3) at the end.
15897 # Note that $ac_compile itself does not contain backslashes and begins
15898 # with a dollar sign (not a hyphen), so the echo should work correctly.
15899 lt_compile=`echo "$ac_compile" | $SED \
15900 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15901 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15902 -e 's:$: $lt_compiler_flag:'`
15903 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15904 (eval "$lt_compile" 2>out/conftest.err)
15905 ac_status=$?
15906 cat out/conftest.err >&5
15907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15908 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15909 then
15910 # The compiler can only warn and ignore the option if not recognized
15911 # So say no if there are warnings
15912 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15913 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15914 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15915 lt_cv_prog_compiler_c_o=yes
15916 fi
15917 fi
15918 chmod u+w . 2>&5
15919 $RM conftest*
15920 # SGI C++ compiler will create directory out/ii_files/ for
15921 # template instantiation
15922 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15923 $RM out/* && rmdir out
15924 cd ..
15925 $RM -r conftest
15926 $RM conftest*
15927
15928 fi
15929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15930 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15931
15932
15933
15934
15935 hard_links="nottested"
15936 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15937 # do not overwrite the value of need_locks provided by the user
15938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15939 $as_echo_n "checking if we can lock with hard links... " >&6; }
15940 hard_links=yes
15941 $RM conftest*
15942 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15943 touch conftest.a
15944 ln conftest.a conftest.b 2>&5 || hard_links=no
15945 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15947 $as_echo "$hard_links" >&6; }
15948 if test "$hard_links" = no; then
15949 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15950 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15951 need_locks=warn
15952 fi
15953 else
15954 need_locks=no
15955 fi
15956
15957
15958
15959
15960
15961
15962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15963 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15964
15965 runpath_var=
15966 allow_undefined_flag=
15967 always_export_symbols=no
15968 archive_cmds=
15969 archive_expsym_cmds=
15970 compiler_needs_object=no
15971 enable_shared_with_static_runtimes=no
15972 export_dynamic_flag_spec=
15973 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15974 hardcode_automatic=no
15975 hardcode_direct=no
15976 hardcode_direct_absolute=no
15977 hardcode_libdir_flag_spec=
15978 hardcode_libdir_flag_spec_ld=
15979 hardcode_libdir_separator=
15980 hardcode_minus_L=no
15981 hardcode_shlibpath_var=unsupported
15982 inherit_rpath=no
15983 link_all_deplibs=unknown
15984 module_cmds=
15985 module_expsym_cmds=
15986 old_archive_from_new_cmds=
15987 old_archive_from_expsyms_cmds=
15988 thread_safe_flag_spec=
15989 whole_archive_flag_spec=
15990 # include_expsyms should be a list of space-separated symbols to be *always*
15991 # included in the symbol list
15992 include_expsyms=
15993 # exclude_expsyms can be an extended regexp of symbols to exclude
15994 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15995 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15996 # as well as any symbol that contains `d'.
15997 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15998 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15999 # platforms (ab)use it in PIC code, but their linkers get confused if
16000 # the symbol is explicitly referenced. Since portable code cannot
16001 # rely on this symbol name, it's probably fine to never include it in
16002 # preloaded symbol tables.
16003 # Exclude shared library initialization/finalization symbols.
16004 extract_expsyms_cmds=
16005
16006 case $host_os in
16007 cygwin* | mingw* | pw32* | cegcc*)
16008 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16009 # When not using gcc, we currently assume that we are using
16010 # Microsoft Visual C++.
16011 if test "$GCC" != yes; then
16012 with_gnu_ld=no
16013 fi
16014 ;;
16015 interix*)
16016 # we just hope/assume this is gcc and not c89 (= MSVC++)
16017 with_gnu_ld=yes
16018 ;;
16019 openbsd*)
16020 with_gnu_ld=no
16021 ;;
16022 esac
16023
16024 ld_shlibs=yes
16025
16026 # On some targets, GNU ld is compatible enough with the native linker
16027 # that we're better off using the native interface for both.
16028 lt_use_gnu_ld_interface=no
16029 if test "$with_gnu_ld" = yes; then
16030 case $host_os in
16031 aix*)
16032 # The AIX port of GNU ld has always aspired to compatibility
16033 # with the native linker. However, as the warning in the GNU ld
16034 # block says, versions before 2.19.5* couldn't really create working
16035 # shared libraries, regardless of the interface used.
16036 case `$LD -v 2>&1` in
16037 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
16038 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
16039 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
16040 *)
16041 lt_use_gnu_ld_interface=yes
16042 ;;
16043 esac
16044 ;;
16045 *)
16046 lt_use_gnu_ld_interface=yes
16047 ;;
16048 esac
16049 fi
16050
16051 if test "$lt_use_gnu_ld_interface" = yes; then
16052 # If archive_cmds runs LD, not CC, wlarc should be empty
16053 wlarc='${wl}'
16054
16055 # Set some defaults for GNU ld with shared library support. These
16056 # are reset later if shared libraries are not supported. Putting them
16057 # here allows them to be overridden if necessary.
16058 runpath_var=LD_RUN_PATH
16059 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16060 export_dynamic_flag_spec='${wl}--export-dynamic'
16061 # ancient GNU ld didn't support --whole-archive et. al.
16062 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
16063 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16064 else
16065 whole_archive_flag_spec=
16066 fi
16067 supports_anon_versioning=no
16068 case `$LD -v 2>&1` in
16069 *GNU\ gold*) supports_anon_versioning=yes ;;
16070 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16071 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16072 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16073 *\ 2.11.*) ;; # other 2.11 versions
16074 *) supports_anon_versioning=yes ;;
16075 esac
16076
16077 # See if GNU ld supports shared libraries.
16078 case $host_os in
16079 aix[3-9]*)
16080 # On AIX/PPC, the GNU linker is very broken
16081 if test "$host_cpu" != ia64; then
16082 ld_shlibs=no
16083 cat <<_LT_EOF 1>&2
16084
16085 *** Warning: the GNU linker, at least up to release 2.19, is reported
16086 *** to be unable to reliably create shared libraries on AIX.
16087 *** Therefore, libtool is disabling shared libraries support. If you
16088 *** really care for shared libraries, you may want to install binutils
16089 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
16090 *** You will then need to restart the configuration process.
16091
16092 _LT_EOF
16093 fi
16094 ;;
16095
16096 amigaos*)
16097 case $host_cpu in
16098 powerpc)
16099 # see comment about AmigaOS4 .so support
16100 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16101 archive_expsym_cmds=''
16102 ;;
16103 m68k)
16104 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)'
16105 hardcode_libdir_flag_spec='-L$libdir'
16106 hardcode_minus_L=yes
16107 ;;
16108 esac
16109 ;;
16110
16111 beos*)
16112 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16113 allow_undefined_flag=unsupported
16114 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16115 # support --undefined. This deserves some investigation. FIXME
16116 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16117 else
16118 ld_shlibs=no
16119 fi
16120 ;;
16121
16122 cygwin* | mingw* | pw32* | cegcc*)
16123 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
16124 # as there is no search path for DLLs.
16125 hardcode_libdir_flag_spec='-L$libdir'
16126 export_dynamic_flag_spec='${wl}--export-all-symbols'
16127 allow_undefined_flag=unsupported
16128 always_export_symbols=no
16129 enable_shared_with_static_runtimes=yes
16130 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16131
16132 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
16133 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16134 # If the export-symbols file already is a .def file (1st line
16135 # is EXPORTS), use it as is; otherwise, prepend...
16136 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16137 cp $export_symbols $output_objdir/$soname.def;
16138 else
16139 echo EXPORTS > $output_objdir/$soname.def;
16140 cat $export_symbols >> $output_objdir/$soname.def;
16141 fi~
16142 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16143 else
16144 ld_shlibs=no
16145 fi
16146 ;;
16147
16148 haiku*)
16149 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16150 link_all_deplibs=yes
16151 ;;
16152
16153 interix[3-9]*)
16154 hardcode_direct=no
16155 hardcode_shlibpath_var=no
16156 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16157 export_dynamic_flag_spec='${wl}-E'
16158 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16159 # Instead, shared libraries are loaded at an image base (0x10000000 by
16160 # default) and relocated if they conflict, which is a slow very memory
16161 # consuming and fragmenting process. To avoid this, we pick a random,
16162 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16163 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16164 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16165 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'
16166 ;;
16167
16168 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
16169 tmp_diet=no
16170 if test "$host_os" = linux-dietlibc; then
16171 case $cc_basename in
16172 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
16173 esac
16174 fi
16175 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
16176 && test "$tmp_diet" = no
16177 then
16178 tmp_addflag=' $pic_flag'
16179 tmp_sharedflag='-shared'
16180 case $cc_basename,$host_cpu in
16181 pgcc*) # Portland Group C compiler
16182 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'
16183 tmp_addflag=' $pic_flag'
16184 ;;
16185 pgf77* | pgf90* | pgf95* | pgfortran*)
16186 # Portland Group f77 and f90 compilers
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 -Mnomain' ;;
16189 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16190 tmp_addflag=' -i_dynamic' ;;
16191 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16192 tmp_addflag=' -i_dynamic -nofor_main' ;;
16193 ifc* | ifort*) # Intel Fortran compiler
16194 tmp_addflag=' -nofor_main' ;;
16195 lf95*) # Lahey Fortran 8.1
16196 whole_archive_flag_spec=
16197 tmp_sharedflag='--shared' ;;
16198 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
16199 tmp_sharedflag='-qmkshrobj'
16200 tmp_addflag= ;;
16201 nvcc*) # Cuda Compiler Driver 2.2
16202 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'
16203 compiler_needs_object=yes
16204 ;;
16205 esac
16206 case `$CC -V 2>&1 | sed 5q` in
16207 *Sun\ C*) # Sun C 5.9
16208 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'
16209 compiler_needs_object=yes
16210 tmp_sharedflag='-G' ;;
16211 *Sun\ F*) # Sun Fortran 8.3
16212 tmp_sharedflag='-G' ;;
16213 esac
16214 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16215
16216 if test "x$supports_anon_versioning" = xyes; then
16217 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16218 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16219 echo "local: *; };" >> $output_objdir/$libname.ver~
16220 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16221 fi
16222
16223 case $cc_basename in
16224 xlf* | bgf* | bgxlf* | mpixlf*)
16225 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
16226 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
16227 hardcode_libdir_flag_spec=
16228 hardcode_libdir_flag_spec_ld='-rpath $libdir'
16229 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
16230 if test "x$supports_anon_versioning" = xyes; then
16231 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16232 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16233 echo "local: *; };" >> $output_objdir/$libname.ver~
16234 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
16235 fi
16236 ;;
16237 esac
16238 else
16239 ld_shlibs=no
16240 fi
16241 ;;
16242
16243 netbsd*)
16244 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16245 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16246 wlarc=
16247 else
16248 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16249 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16250 fi
16251 ;;
16252
16253 solaris*)
16254 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
16255 ld_shlibs=no
16256 cat <<_LT_EOF 1>&2
16257
16258 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16259 *** create shared libraries on Solaris systems. Therefore, libtool
16260 *** is disabling shared libraries support. We urge you to upgrade GNU
16261 *** binutils to release 2.9.1 or newer. Another option is to modify
16262 *** your PATH or compiler configuration so that the native linker is
16263 *** used, and then restart.
16264
16265 _LT_EOF
16266 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16267 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16268 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16269 else
16270 ld_shlibs=no
16271 fi
16272 ;;
16273
16274 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16275 case `$LD -v 2>&1` in
16276 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16277 ld_shlibs=no
16278 cat <<_LT_EOF 1>&2
16279
16280 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16281 *** reliably create shared libraries on SCO systems. Therefore, libtool
16282 *** is disabling shared libraries support. We urge you to upgrade GNU
16283 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16284 *** your PATH or compiler configuration so that the native linker is
16285 *** used, and then restart.
16286
16287 _LT_EOF
16288 ;;
16289 *)
16290 # For security reasons, it is highly recommended that you always
16291 # use absolute paths for naming shared libraries, and exclude the
16292 # DT_RUNPATH tag from executables and libraries. But doing so
16293 # requires that you compile everything twice, which is a pain.
16294 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16295 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16296 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16297 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16298 else
16299 ld_shlibs=no
16300 fi
16301 ;;
16302 esac
16303 ;;
16304
16305 sunos4*)
16306 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16307 wlarc=
16308 hardcode_direct=yes
16309 hardcode_shlibpath_var=no
16310 ;;
16311
16312 *)
16313 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16314 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16315 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16316 else
16317 ld_shlibs=no
16318 fi
16319 ;;
16320 esac
16321
16322 if test "$ld_shlibs" = no; then
16323 runpath_var=
16324 hardcode_libdir_flag_spec=
16325 export_dynamic_flag_spec=
16326 whole_archive_flag_spec=
16327 fi
16328 else
16329 # PORTME fill in a description of your system's linker (not GNU ld)
16330 case $host_os in
16331 aix3*)
16332 allow_undefined_flag=unsupported
16333 always_export_symbols=yes
16334 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'
16335 # Note: this linker hardcodes the directories in LIBPATH if there
16336 # are no directories specified by -L.
16337 hardcode_minus_L=yes
16338 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16339 # Neither direct hardcoding nor static linking is supported with a
16340 # broken collect2.
16341 hardcode_direct=unsupported
16342 fi
16343 ;;
16344
16345 aix[4-9]*)
16346 if test "$host_cpu" = ia64; then
16347 # On IA64, the linker does run time linking by default, so we don't
16348 # have to do anything special.
16349 aix_use_runtimelinking=no
16350 exp_sym_flag='-Bexport'
16351 no_entry_flag=""
16352 else
16353 # If we're using GNU nm, then we don't want the "-C" option.
16354 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16355 # Also, AIX nm treats weak defined symbols like other global
16356 # defined symbols, whereas GNU nm marks them as "W".
16357 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16358 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'
16359 else
16360 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'
16361 fi
16362 aix_use_runtimelinking=no
16363
16364 # Test if we are trying to use run time linking or normal
16365 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16366 # need to do runtime linking.
16367 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16368 for ld_flag in $LDFLAGS; do
16369 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16370 aix_use_runtimelinking=yes
16371 break
16372 fi
16373 done
16374 ;;
16375 esac
16376
16377 exp_sym_flag='-bexport'
16378 no_entry_flag='-bnoentry'
16379 fi
16380
16381 # When large executables or shared objects are built, AIX ld can
16382 # have problems creating the table of contents. If linking a library
16383 # or program results in "error TOC overflow" add -mminimal-toc to
16384 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16385 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16386
16387 archive_cmds=''
16388 hardcode_direct=yes
16389 hardcode_direct_absolute=yes
16390 hardcode_libdir_separator=':'
16391 link_all_deplibs=yes
16392 file_list_spec='${wl}-f,'
16393
16394 if test "$GCC" = yes; then
16395 case $host_os in aix4.[012]|aix4.[012].*)
16396 # We only want to do this on AIX 4.2 and lower, the check
16397 # below for broken collect2 doesn't work under 4.3+
16398 collect2name=`${CC} -print-prog-name=collect2`
16399 if test -f "$collect2name" &&
16400 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16401 then
16402 # We have reworked collect2
16403 :
16404 else
16405 # We have old collect2
16406 hardcode_direct=unsupported
16407 # It fails to find uninstalled libraries when the uninstalled
16408 # path is not listed in the libpath. Setting hardcode_minus_L
16409 # to unsupported forces relinking
16410 hardcode_minus_L=yes
16411 hardcode_libdir_flag_spec='-L$libdir'
16412 hardcode_libdir_separator=
16413 fi
16414 ;;
16415 esac
16416 shared_flag='-shared'
16417 if test "$aix_use_runtimelinking" = yes; then
16418 shared_flag="$shared_flag "'${wl}-G'
16419 fi
16420 else
16421 # not using gcc
16422 if test "$host_cpu" = ia64; then
16423 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16424 # chokes on -Wl,-G. The following line is correct:
16425 shared_flag='-G'
16426 else
16427 if test "$aix_use_runtimelinking" = yes; then
16428 shared_flag='${wl}-G'
16429 else
16430 shared_flag='${wl}-bM:SRE'
16431 fi
16432 fi
16433 fi
16434
16435 export_dynamic_flag_spec='${wl}-bexpall'
16436 # It seems that -bexpall does not export symbols beginning with
16437 # underscore (_), so it is better to generate a list of symbols to export.
16438 always_export_symbols=yes
16439 if test "$aix_use_runtimelinking" = yes; then
16440 # Warning - without using the other runtime loading flags (-brtl),
16441 # -berok will link without error, but may produce a broken library.
16442 allow_undefined_flag='-berok'
16443 # Determine the default libpath from the value encoded in an
16444 # empty executable.
16445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16446 /* end confdefs.h. */
16447
16448 int
16449 main ()
16450 {
16451
16452 ;
16453 return 0;
16454 }
16455 _ACEOF
16456 if ac_fn_c_try_link "$LINENO"; then :
16457
16458 lt_aix_libpath_sed='
16459 /Import File Strings/,/^$/ {
16460 /^0/ {
16461 s/^0 *\(.*\)$/\1/
16462 p
16463 }
16464 }'
16465 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16466 # Check for a 64-bit object if we didn't find anything.
16467 if test -z "$aix_libpath"; then
16468 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16469 fi
16470 fi
16471 rm -f core conftest.err conftest.$ac_objext \
16472 conftest$ac_exeext conftest.$ac_ext
16473 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16474
16475 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16476 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"
16477 else
16478 if test "$host_cpu" = ia64; then
16479 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
16480 allow_undefined_flag="-z nodefs"
16481 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"
16482 else
16483 # Determine the default libpath from the value encoded in an
16484 # empty executable.
16485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16486 /* end confdefs.h. */
16487
16488 int
16489 main ()
16490 {
16491
16492 ;
16493 return 0;
16494 }
16495 _ACEOF
16496 if ac_fn_c_try_link "$LINENO"; then :
16497
16498 lt_aix_libpath_sed='
16499 /Import File Strings/,/^$/ {
16500 /^0/ {
16501 s/^0 *\(.*\)$/\1/
16502 p
16503 }
16504 }'
16505 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16506 # Check for a 64-bit object if we didn't find anything.
16507 if test -z "$aix_libpath"; then
16508 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16509 fi
16510 fi
16511 rm -f core conftest.err conftest.$ac_objext \
16512 conftest$ac_exeext conftest.$ac_ext
16513 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16514
16515 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16516 # Warning - without using the other run time loading flags,
16517 # -berok will link without error, but may produce a broken library.
16518 no_undefined_flag=' ${wl}-bernotok'
16519 allow_undefined_flag=' ${wl}-berok'
16520 if test "$with_gnu_ld" = yes; then
16521 # We only use this code for GNU lds that support --whole-archive.
16522 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16523 else
16524 # Exported symbols can be pulled into shared objects from archives
16525 whole_archive_flag_spec='$convenience'
16526 fi
16527 archive_cmds_need_lc=yes
16528 # This is similar to how AIX traditionally builds its shared libraries.
16529 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'
16530 fi
16531 fi
16532 ;;
16533
16534 amigaos*)
16535 case $host_cpu in
16536 powerpc)
16537 # see comment about AmigaOS4 .so support
16538 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16539 archive_expsym_cmds=''
16540 ;;
16541 m68k)
16542 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)'
16543 hardcode_libdir_flag_spec='-L$libdir'
16544 hardcode_minus_L=yes
16545 ;;
16546 esac
16547 ;;
16548
16549 bsdi[45]*)
16550 export_dynamic_flag_spec=-rdynamic
16551 ;;
16552
16553 cygwin* | mingw* | pw32* | cegcc*)
16554 # When not using gcc, we currently assume that we are using
16555 # Microsoft Visual C++.
16556 # hardcode_libdir_flag_spec is actually meaningless, as there is
16557 # no search path for DLLs.
16558 hardcode_libdir_flag_spec=' '
16559 allow_undefined_flag=unsupported
16560 # Tell ltmain to make .lib files, not .a files.
16561 libext=lib
16562 # Tell ltmain to make .dll files, not .so files.
16563 shrext_cmds=".dll"
16564 # FIXME: Setting linknames here is a bad hack.
16565 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16566 # The linker will automatically build a .lib file if we build a DLL.
16567 old_archive_from_new_cmds='true'
16568 # FIXME: Should let the user specify the lib program.
16569 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
16570 fix_srcfile_path='`cygpath -w "$srcfile"`'
16571 enable_shared_with_static_runtimes=yes
16572 ;;
16573
16574 darwin* | rhapsody*)
16575
16576
16577 archive_cmds_need_lc=no
16578 hardcode_direct=no
16579 hardcode_automatic=yes
16580 hardcode_shlibpath_var=unsupported
16581 if test "$lt_cv_ld_force_load" = "yes"; then
16582 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\"`'
16583 else
16584 whole_archive_flag_spec=''
16585 fi
16586 link_all_deplibs=yes
16587 allow_undefined_flag="$_lt_dar_allow_undefined"
16588 case $cc_basename in
16589 ifort*) _lt_dar_can_shared=yes ;;
16590 *) _lt_dar_can_shared=$GCC ;;
16591 esac
16592 if test "$_lt_dar_can_shared" = "yes"; then
16593 output_verbose_link_cmd=func_echo_all
16594 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16595 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16596 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}"
16597 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}"
16598
16599 else
16600 ld_shlibs=no
16601 fi
16602
16603 ;;
16604
16605 dgux*)
16606 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16607 hardcode_libdir_flag_spec='-L$libdir'
16608 hardcode_shlibpath_var=no
16609 ;;
16610
16611 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16612 # support. Future versions do this automatically, but an explicit c++rt0.o
16613 # does not break anything, and helps significantly (at the cost of a little
16614 # extra space).
16615 freebsd2.2*)
16616 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16617 hardcode_libdir_flag_spec='-R$libdir'
16618 hardcode_direct=yes
16619 hardcode_shlibpath_var=no
16620 ;;
16621
16622 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16623 freebsd2.*)
16624 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16625 hardcode_direct=yes
16626 hardcode_minus_L=yes
16627 hardcode_shlibpath_var=no
16628 ;;
16629
16630 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16631 freebsd* | dragonfly*)
16632 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16633 hardcode_libdir_flag_spec='-R$libdir'
16634 hardcode_direct=yes
16635 hardcode_shlibpath_var=no
16636 ;;
16637
16638 hpux9*)
16639 if test "$GCC" = yes; then
16640 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'
16641 else
16642 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'
16643 fi
16644 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16645 hardcode_libdir_separator=:
16646 hardcode_direct=yes
16647
16648 # hardcode_minus_L: Not really in the search PATH,
16649 # but as the default location of the library.
16650 hardcode_minus_L=yes
16651 export_dynamic_flag_spec='${wl}-E'
16652 ;;
16653
16654 hpux10*)
16655 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16656 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16657 else
16658 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16659 fi
16660 if test "$with_gnu_ld" = no; then
16661 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16662 hardcode_libdir_flag_spec_ld='+b $libdir'
16663 hardcode_libdir_separator=:
16664 hardcode_direct=yes
16665 hardcode_direct_absolute=yes
16666 export_dynamic_flag_spec='${wl}-E'
16667 # hardcode_minus_L: Not really in the search PATH,
16668 # but as the default location of the library.
16669 hardcode_minus_L=yes
16670 fi
16671 ;;
16672
16673 hpux11*)
16674 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16675 case $host_cpu in
16676 hppa*64*)
16677 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16678 ;;
16679 ia64*)
16680 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16681 ;;
16682 *)
16683 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16684 ;;
16685 esac
16686 else
16687 case $host_cpu in
16688 hppa*64*)
16689 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16690 ;;
16691 ia64*)
16692 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16693 ;;
16694 *)
16695
16696 # Older versions of the 11.00 compiler do not understand -b yet
16697 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16699 $as_echo_n "checking if $CC understands -b... " >&6; }
16700 if test "${lt_cv_prog_compiler__b+set}" = set; then :
16701 $as_echo_n "(cached) " >&6
16702 else
16703 lt_cv_prog_compiler__b=no
16704 save_LDFLAGS="$LDFLAGS"
16705 LDFLAGS="$LDFLAGS -b"
16706 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16707 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16708 # The linker can only warn and ignore the option if not recognized
16709 # So say no if there are warnings
16710 if test -s conftest.err; then
16711 # Append any errors to the config.log.
16712 cat conftest.err 1>&5
16713 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16714 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16715 if diff conftest.exp conftest.er2 >/dev/null; then
16716 lt_cv_prog_compiler__b=yes
16717 fi
16718 else
16719 lt_cv_prog_compiler__b=yes
16720 fi
16721 fi
16722 $RM -r conftest*
16723 LDFLAGS="$save_LDFLAGS"
16724
16725 fi
16726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16727 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16728
16729 if test x"$lt_cv_prog_compiler__b" = xyes; then
16730 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16731 else
16732 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16733 fi
16734
16735 ;;
16736 esac
16737 fi
16738 if test "$with_gnu_ld" = no; then
16739 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16740 hardcode_libdir_separator=:
16741
16742 case $host_cpu in
16743 hppa*64*|ia64*)
16744 hardcode_direct=no
16745 hardcode_shlibpath_var=no
16746 ;;
16747 *)
16748 hardcode_direct=yes
16749 hardcode_direct_absolute=yes
16750 export_dynamic_flag_spec='${wl}-E'
16751
16752 # hardcode_minus_L: Not really in the search PATH,
16753 # but as the default location of the library.
16754 hardcode_minus_L=yes
16755 ;;
16756 esac
16757 fi
16758 ;;
16759
16760 irix5* | irix6* | nonstopux*)
16761 if test "$GCC" = yes; then
16762 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'
16763 # Try to use the -exported_symbol ld option, if it does not
16764 # work, assume that -exports_file does not work either and
16765 # implicitly export all symbols.
16766 save_LDFLAGS="$LDFLAGS"
16767 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16769 /* end confdefs.h. */
16770 int foo(void) {}
16771 _ACEOF
16772 if ac_fn_c_try_link "$LINENO"; then :
16773 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'
16774
16775 fi
16776 rm -f core conftest.err conftest.$ac_objext \
16777 conftest$ac_exeext conftest.$ac_ext
16778 LDFLAGS="$save_LDFLAGS"
16779 else
16780 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'
16781 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'
16782 fi
16783 archive_cmds_need_lc='no'
16784 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16785 hardcode_libdir_separator=:
16786 inherit_rpath=yes
16787 link_all_deplibs=yes
16788 ;;
16789
16790 netbsd*)
16791 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16792 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16793 else
16794 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16795 fi
16796 hardcode_libdir_flag_spec='-R$libdir'
16797 hardcode_direct=yes
16798 hardcode_shlibpath_var=no
16799 ;;
16800
16801 newsos6)
16802 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16803 hardcode_direct=yes
16804 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16805 hardcode_libdir_separator=:
16806 hardcode_shlibpath_var=no
16807 ;;
16808
16809 *nto* | *qnx*)
16810 ;;
16811
16812 openbsd*)
16813 if test -f /usr/libexec/ld.so; then
16814 hardcode_direct=yes
16815 hardcode_shlibpath_var=no
16816 hardcode_direct_absolute=yes
16817 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16818 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16819 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16820 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16821 export_dynamic_flag_spec='${wl}-E'
16822 else
16823 case $host_os in
16824 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16825 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16826 hardcode_libdir_flag_spec='-R$libdir'
16827 ;;
16828 *)
16829 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16830 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16831 ;;
16832 esac
16833 fi
16834 else
16835 ld_shlibs=no
16836 fi
16837 ;;
16838
16839 os2*)
16840 hardcode_libdir_flag_spec='-L$libdir'
16841 hardcode_minus_L=yes
16842 allow_undefined_flag=unsupported
16843 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'
16844 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16845 ;;
16846
16847 osf3*)
16848 if test "$GCC" = yes; then
16849 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16850 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'
16851 else
16852 allow_undefined_flag=' -expect_unresolved \*'
16853 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'
16854 fi
16855 archive_cmds_need_lc='no'
16856 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16857 hardcode_libdir_separator=:
16858 ;;
16859
16860 osf4* | osf5*) # as osf3* with the addition of -msym flag
16861 if test "$GCC" = yes; then
16862 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16863 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'
16864 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16865 else
16866 allow_undefined_flag=' -expect_unresolved \*'
16867 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'
16868 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~
16869 $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'
16870
16871 # Both c and cxx compiler support -rpath directly
16872 hardcode_libdir_flag_spec='-rpath $libdir'
16873 fi
16874 archive_cmds_need_lc='no'
16875 hardcode_libdir_separator=:
16876 ;;
16877
16878 solaris*)
16879 no_undefined_flag=' -z defs'
16880 if test "$GCC" = yes; then
16881 wlarc='${wl}'
16882 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16883 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16884 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16885 else
16886 case `$CC -V 2>&1` in
16887 *"Compilers 5.0"*)
16888 wlarc=''
16889 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16890 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16891 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16892 ;;
16893 *)
16894 wlarc='${wl}'
16895 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16896 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16897 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16898 ;;
16899 esac
16900 fi
16901 hardcode_libdir_flag_spec='-R$libdir'
16902 hardcode_shlibpath_var=no
16903 case $host_os in
16904 solaris2.[0-5] | solaris2.[0-5].*) ;;
16905 *)
16906 # The compiler driver will combine and reorder linker options,
16907 # but understands `-z linker_flag'. GCC discards it without `$wl',
16908 # but is careful enough not to reorder.
16909 # Supported since Solaris 2.6 (maybe 2.5.1?)
16910 if test "$GCC" = yes; then
16911 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16912 else
16913 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16914 fi
16915 ;;
16916 esac
16917 link_all_deplibs=yes
16918 ;;
16919
16920 sunos4*)
16921 if test "x$host_vendor" = xsequent; then
16922 # Use $CC to link under sequent, because it throws in some extra .o
16923 # files that make .init and .fini sections work.
16924 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16925 else
16926 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16927 fi
16928 hardcode_libdir_flag_spec='-L$libdir'
16929 hardcode_direct=yes
16930 hardcode_minus_L=yes
16931 hardcode_shlibpath_var=no
16932 ;;
16933
16934 sysv4)
16935 case $host_vendor in
16936 sni)
16937 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16938 hardcode_direct=yes # is this really true???
16939 ;;
16940 siemens)
16941 ## LD is ld it makes a PLAMLIB
16942 ## CC just makes a GrossModule.
16943 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16944 reload_cmds='$CC -r -o $output$reload_objs'
16945 hardcode_direct=no
16946 ;;
16947 motorola)
16948 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16949 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16950 ;;
16951 esac
16952 runpath_var='LD_RUN_PATH'
16953 hardcode_shlibpath_var=no
16954 ;;
16955
16956 sysv4.3*)
16957 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16958 hardcode_shlibpath_var=no
16959 export_dynamic_flag_spec='-Bexport'
16960 ;;
16961
16962 sysv4*MP*)
16963 if test -d /usr/nec; then
16964 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16965 hardcode_shlibpath_var=no
16966 runpath_var=LD_RUN_PATH
16967 hardcode_runpath_var=yes
16968 ld_shlibs=yes
16969 fi
16970 ;;
16971
16972 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16973 no_undefined_flag='${wl}-z,text'
16974 archive_cmds_need_lc=no
16975 hardcode_shlibpath_var=no
16976 runpath_var='LD_RUN_PATH'
16977
16978 if test "$GCC" = yes; then
16979 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16980 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16981 else
16982 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16983 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16984 fi
16985 ;;
16986
16987 sysv5* | sco3.2v5* | sco5v6*)
16988 # Note: We can NOT use -z defs as we might desire, because we do not
16989 # link with -lc, and that would cause any symbols used from libc to
16990 # always be unresolved, which means just about no library would
16991 # ever link correctly. If we're not using GNU ld we use -z text
16992 # though, which does catch some bad symbols but isn't as heavy-handed
16993 # as -z defs.
16994 no_undefined_flag='${wl}-z,text'
16995 allow_undefined_flag='${wl}-z,nodefs'
16996 archive_cmds_need_lc=no
16997 hardcode_shlibpath_var=no
16998 hardcode_libdir_flag_spec='${wl}-R,$libdir'
16999 hardcode_libdir_separator=':'
17000 link_all_deplibs=yes
17001 export_dynamic_flag_spec='${wl}-Bexport'
17002 runpath_var='LD_RUN_PATH'
17003
17004 if test "$GCC" = yes; then
17005 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17006 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17007 else
17008 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17009 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17010 fi
17011 ;;
17012
17013 uts4*)
17014 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17015 hardcode_libdir_flag_spec='-L$libdir'
17016 hardcode_shlibpath_var=no
17017 ;;
17018
17019 *)
17020 ld_shlibs=no
17021 ;;
17022 esac
17023
17024 if test x$host_vendor = xsni; then
17025 case $host in
17026 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17027 export_dynamic_flag_spec='${wl}-Blargedynsym'
17028 ;;
17029 esac
17030 fi
17031 fi
17032
17033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
17034 $as_echo "$ld_shlibs" >&6; }
17035 test "$ld_shlibs" = no && can_build_shared=no
17036
17037 with_gnu_ld=$with_gnu_ld
17038
17039
17040
17041
17042
17043
17044
17045
17046
17047
17048
17049
17050
17051
17052
17053 #
17054 # Do we need to explicitly link libc?
17055 #
17056 case "x$archive_cmds_need_lc" in
17057 x|xyes)
17058 # Assume -lc should be added
17059 archive_cmds_need_lc=yes
17060
17061 if test "$enable_shared" = yes && test "$GCC" = yes; then
17062 case $archive_cmds in
17063 *'~'*)
17064 # FIXME: we may have to deal with multi-command sequences.
17065 ;;
17066 '$CC '*)
17067 # Test whether the compiler implicitly links with -lc since on some
17068 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17069 # to ld, don't add -lc before -lgcc.
17070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17071 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17072 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
17073 $as_echo_n "(cached) " >&6
17074 else
17075 $RM conftest*
17076 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17077
17078 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17079 (eval $ac_compile) 2>&5
17080 ac_status=$?
17081 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17082 test $ac_status = 0; } 2>conftest.err; then
17083 soname=conftest
17084 lib=conftest
17085 libobjs=conftest.$ac_objext
17086 deplibs=
17087 wl=$lt_prog_compiler_wl
17088 pic_flag=$lt_prog_compiler_pic
17089 compiler_flags=-v
17090 linker_flags=-v
17091 verstring=
17092 output_objdir=.
17093 libname=conftest
17094 lt_save_allow_undefined_flag=$allow_undefined_flag
17095 allow_undefined_flag=
17096 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17097 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17098 ac_status=$?
17099 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17100 test $ac_status = 0; }
17101 then
17102 lt_cv_archive_cmds_need_lc=no
17103 else
17104 lt_cv_archive_cmds_need_lc=yes
17105 fi
17106 allow_undefined_flag=$lt_save_allow_undefined_flag
17107 else
17108 cat conftest.err 1>&5
17109 fi
17110 $RM conftest*
17111
17112 fi
17113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
17114 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
17115 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
17116 ;;
17117 esac
17118 fi
17119 ;;
17120 esac
17121
17122
17123
17124
17125
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17279 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17280
17281 if test "$GCC" = yes; then
17282 case $host_os in
17283 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
17284 *) lt_awk_arg="/^libraries:/" ;;
17285 esac
17286 case $host_os in
17287 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
17288 *) lt_sed_strip_eq="s,=/,/,g" ;;
17289 esac
17290 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
17291 case $lt_search_path_spec in
17292 *\;*)
17293 # if the path contains ";" then we assume it to be the separator
17294 # otherwise default to the standard path separator (i.e. ":") - it is
17295 # assumed that no part of a normal pathname contains ";" but that should
17296 # okay in the real world where ";" in dirpaths is itself problematic.
17297 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
17298 ;;
17299 *)
17300 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
17301 ;;
17302 esac
17303 # Ok, now we have the path, separated by spaces, we can step through it
17304 # and add multilib dir if necessary.
17305 lt_tmp_lt_search_path_spec=
17306 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
17307 for lt_sys_path in $lt_search_path_spec; do
17308 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
17309 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
17310 else
17311 test -d "$lt_sys_path" && \
17312 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
17313 fi
17314 done
17315 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
17316 BEGIN {RS=" "; FS="/|\n";} {
17317 lt_foo="";
17318 lt_count=0;
17319 for (lt_i = NF; lt_i > 0; lt_i--) {
17320 if ($lt_i != "" && $lt_i != ".") {
17321 if ($lt_i == "..") {
17322 lt_count++;
17323 } else {
17324 if (lt_count == 0) {
17325 lt_foo="/" $lt_i lt_foo;
17326 } else {
17327 lt_count--;
17328 }
17329 }
17330 }
17331 }
17332 if (lt_foo != "") { lt_freq[lt_foo]++; }
17333 if (lt_freq[lt_foo] == 1) { print lt_foo; }
17334 }'`
17335 # AWK program above erroneously prepends '/' to C:/dos/paths
17336 # for these hosts.
17337 case $host_os in
17338 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
17339 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
17340 esac
17341 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
17342 else
17343 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17344 fi
17345 library_names_spec=
17346 libname_spec='lib$name'
17347 soname_spec=
17348 shrext_cmds=".so"
17349 postinstall_cmds=
17350 postuninstall_cmds=
17351 finish_cmds=
17352 finish_eval=
17353 shlibpath_var=
17354 shlibpath_overrides_runpath=unknown
17355 version_type=none
17356 dynamic_linker="$host_os ld.so"
17357 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17358 need_lib_prefix=unknown
17359 hardcode_into_libs=no
17360
17361 # when you set need_version to no, make sure it does not cause -set_version
17362 # flags to be left without arguments
17363 need_version=unknown
17364
17365 case $host_os in
17366 aix3*)
17367 version_type=linux
17368 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17369 shlibpath_var=LIBPATH
17370
17371 # AIX 3 has no versioning support, so we append a major version to the name.
17372 soname_spec='${libname}${release}${shared_ext}$major'
17373 ;;
17374
17375 aix[4-9]*)
17376 version_type=linux
17377 need_lib_prefix=no
17378 need_version=no
17379 hardcode_into_libs=yes
17380 if test "$host_cpu" = ia64; then
17381 # AIX 5 supports IA64
17382 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17383 shlibpath_var=LD_LIBRARY_PATH
17384 else
17385 # With GCC up to 2.95.x, collect2 would create an import file
17386 # for dependence libraries. The import file would start with
17387 # the line `#! .'. This would cause the generated library to
17388 # depend on `.', always an invalid library. This was fixed in
17389 # development snapshots of GCC prior to 3.0.
17390 case $host_os in
17391 aix4 | aix4.[01] | aix4.[01].*)
17392 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17393 echo ' yes '
17394 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
17395 :
17396 else
17397 can_build_shared=no
17398 fi
17399 ;;
17400 esac
17401 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17402 # soname into executable. Probably we can add versioning support to
17403 # collect2, so additional links can be useful in future.
17404 if test "$aix_use_runtimelinking" = yes; then
17405 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17406 # instead of lib<name>.a to let people know that these are not
17407 # typical AIX shared libraries.
17408 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17409 else
17410 # We preserve .a as extension for shared libraries through AIX4.2
17411 # and later when we are not doing run time linking.
17412 library_names_spec='${libname}${release}.a $libname.a'
17413 soname_spec='${libname}${release}${shared_ext}$major'
17414 fi
17415 shlibpath_var=LIBPATH
17416 fi
17417 ;;
17418
17419 amigaos*)
17420 case $host_cpu in
17421 powerpc)
17422 # Since July 2007 AmigaOS4 officially supports .so libraries.
17423 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17425 ;;
17426 m68k)
17427 library_names_spec='$libname.ixlibrary $libname.a'
17428 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17429 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'
17430 ;;
17431 esac
17432 ;;
17433
17434 beos*)
17435 library_names_spec='${libname}${shared_ext}'
17436 dynamic_linker="$host_os ld.so"
17437 shlibpath_var=LIBRARY_PATH
17438 ;;
17439
17440 bsdi[45]*)
17441 version_type=linux
17442 need_version=no
17443 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17444 soname_spec='${libname}${release}${shared_ext}$major'
17445 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17446 shlibpath_var=LD_LIBRARY_PATH
17447 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17448 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17449 # the default ld.so.conf also contains /usr/contrib/lib and
17450 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17451 # libtool to hard-code these into programs
17452 ;;
17453
17454 cygwin* | mingw* | pw32* | cegcc*)
17455 version_type=windows
17456 shrext_cmds=".dll"
17457 need_version=no
17458 need_lib_prefix=no
17459
17460 case $GCC,$host_os in
17461 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
17462 library_names_spec='$libname.dll.a'
17463 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17464 postinstall_cmds='base_file=`basename \${file}`~
17465 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17466 dldir=$destdir/`dirname \$dlpath`~
17467 test -d \$dldir || mkdir -p \$dldir~
17468 $install_prog $dir/$dlname \$dldir/$dlname~
17469 chmod a+x \$dldir/$dlname~
17470 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17471 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17472 fi'
17473 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17474 dlpath=$dir/\$dldll~
17475 $RM \$dlpath'
17476 shlibpath_overrides_runpath=yes
17477
17478 case $host_os in
17479 cygwin*)
17480 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17481 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17482
17483 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
17484 ;;
17485 mingw* | cegcc*)
17486 # MinGW DLLs use traditional 'lib' prefix
17487 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17488 ;;
17489 pw32*)
17490 # pw32 DLLs use 'pw' prefix rather than 'lib'
17491 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17492 ;;
17493 esac
17494 ;;
17495
17496 *)
17497 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17498 ;;
17499 esac
17500 dynamic_linker='Win32 ld.exe'
17501 # FIXME: first we should search . and the directory the executable is in
17502 shlibpath_var=PATH
17503 ;;
17504
17505 darwin* | rhapsody*)
17506 dynamic_linker="$host_os dyld"
17507 version_type=darwin
17508 need_lib_prefix=no
17509 need_version=no
17510 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17511 soname_spec='${libname}${release}${major}$shared_ext'
17512 shlibpath_overrides_runpath=yes
17513 shlibpath_var=DYLD_LIBRARY_PATH
17514 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17515
17516 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
17517 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17518 ;;
17519
17520 dgux*)
17521 version_type=linux
17522 need_lib_prefix=no
17523 need_version=no
17524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17525 soname_spec='${libname}${release}${shared_ext}$major'
17526 shlibpath_var=LD_LIBRARY_PATH
17527 ;;
17528
17529 freebsd* | dragonfly*)
17530 # DragonFly does not have aout. When/if they implement a new
17531 # versioning mechanism, adjust this.
17532 if test -x /usr/bin/objformat; then
17533 objformat=`/usr/bin/objformat`
17534 else
17535 case $host_os in
17536 freebsd[23].*) objformat=aout ;;
17537 *) objformat=elf ;;
17538 esac
17539 fi
17540 version_type=freebsd-$objformat
17541 case $version_type in
17542 freebsd-elf*)
17543 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17544 need_version=no
17545 need_lib_prefix=no
17546 ;;
17547 freebsd-*)
17548 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17549 need_version=yes
17550 ;;
17551 esac
17552 shlibpath_var=LD_LIBRARY_PATH
17553 case $host_os in
17554 freebsd2.*)
17555 shlibpath_overrides_runpath=yes
17556 ;;
17557 freebsd3.[01]* | freebsdelf3.[01]*)
17558 shlibpath_overrides_runpath=yes
17559 hardcode_into_libs=yes
17560 ;;
17561 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17562 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17563 shlibpath_overrides_runpath=no
17564 hardcode_into_libs=yes
17565 ;;
17566 *) # from 4.6 on, and DragonFly
17567 shlibpath_overrides_runpath=yes
17568 hardcode_into_libs=yes
17569 ;;
17570 esac
17571 ;;
17572
17573 gnu*)
17574 version_type=linux
17575 need_lib_prefix=no
17576 need_version=no
17577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17578 soname_spec='${libname}${release}${shared_ext}$major'
17579 shlibpath_var=LD_LIBRARY_PATH
17580 hardcode_into_libs=yes
17581 ;;
17582
17583 haiku*)
17584 version_type=linux
17585 need_lib_prefix=no
17586 need_version=no
17587 dynamic_linker="$host_os runtime_loader"
17588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17589 soname_spec='${libname}${release}${shared_ext}$major'
17590 shlibpath_var=LIBRARY_PATH
17591 shlibpath_overrides_runpath=yes
17592 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
17593 hardcode_into_libs=yes
17594 ;;
17595
17596 hpux9* | hpux10* | hpux11*)
17597 # Give a soname corresponding to the major version so that dld.sl refuses to
17598 # link against other versions.
17599 version_type=sunos
17600 need_lib_prefix=no
17601 need_version=no
17602 case $host_cpu in
17603 ia64*)
17604 shrext_cmds='.so'
17605 hardcode_into_libs=yes
17606 dynamic_linker="$host_os dld.so"
17607 shlibpath_var=LD_LIBRARY_PATH
17608 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17609 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17610 soname_spec='${libname}${release}${shared_ext}$major'
17611 if test "X$HPUX_IA64_MODE" = X32; then
17612 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17613 else
17614 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17615 fi
17616 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17617 ;;
17618 hppa*64*)
17619 shrext_cmds='.sl'
17620 hardcode_into_libs=yes
17621 dynamic_linker="$host_os dld.sl"
17622 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17623 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17625 soname_spec='${libname}${release}${shared_ext}$major'
17626 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17627 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17628 ;;
17629 *)
17630 shrext_cmds='.sl'
17631 dynamic_linker="$host_os dld.sl"
17632 shlibpath_var=SHLIB_PATH
17633 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17634 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17635 soname_spec='${libname}${release}${shared_ext}$major'
17636 ;;
17637 esac
17638 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17639 postinstall_cmds='chmod 555 $lib'
17640 # or fails outright, so override atomically:
17641 install_override_mode=555
17642 ;;
17643
17644 interix[3-9]*)
17645 version_type=linux
17646 need_lib_prefix=no
17647 need_version=no
17648 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17649 soname_spec='${libname}${release}${shared_ext}$major'
17650 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17651 shlibpath_var=LD_LIBRARY_PATH
17652 shlibpath_overrides_runpath=no
17653 hardcode_into_libs=yes
17654 ;;
17655
17656 irix5* | irix6* | nonstopux*)
17657 case $host_os in
17658 nonstopux*) version_type=nonstopux ;;
17659 *)
17660 if test "$lt_cv_prog_gnu_ld" = yes; then
17661 version_type=linux
17662 else
17663 version_type=irix
17664 fi ;;
17665 esac
17666 need_lib_prefix=no
17667 need_version=no
17668 soname_spec='${libname}${release}${shared_ext}$major'
17669 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17670 case $host_os in
17671 irix5* | nonstopux*)
17672 libsuff= shlibsuff=
17673 ;;
17674 *)
17675 case $LD in # libtool.m4 will add one of these switches to LD
17676 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17677 libsuff= shlibsuff= libmagic=32-bit;;
17678 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17679 libsuff=32 shlibsuff=N32 libmagic=N32;;
17680 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17681 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17682 *) libsuff= shlibsuff= libmagic=never-match;;
17683 esac
17684 ;;
17685 esac
17686 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17687 shlibpath_overrides_runpath=no
17688 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17689 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17690 hardcode_into_libs=yes
17691 ;;
17692
17693 # No shared lib support for Linux oldld, aout, or coff.
17694 linux*oldld* | linux*aout* | linux*coff*)
17695 dynamic_linker=no
17696 ;;
17697
17698 # This must be Linux ELF.
17699 linux* | k*bsd*-gnu | kopensolaris*-gnu)
17700 version_type=linux
17701 need_lib_prefix=no
17702 need_version=no
17703 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17704 soname_spec='${libname}${release}${shared_ext}$major'
17705 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17706 shlibpath_var=LD_LIBRARY_PATH
17707 shlibpath_overrides_runpath=no
17708
17709 # Some binutils ld are patched to set DT_RUNPATH
17710 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
17711 $as_echo_n "(cached) " >&6
17712 else
17713 lt_cv_shlibpath_overrides_runpath=no
17714 save_LDFLAGS=$LDFLAGS
17715 save_libdir=$libdir
17716 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17717 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17719 /* end confdefs.h. */
17720
17721 int
17722 main ()
17723 {
17724
17725 ;
17726 return 0;
17727 }
17728 _ACEOF
17729 if ac_fn_c_try_link "$LINENO"; then :
17730 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17731 lt_cv_shlibpath_overrides_runpath=yes
17732 fi
17733 fi
17734 rm -f core conftest.err conftest.$ac_objext \
17735 conftest$ac_exeext conftest.$ac_ext
17736 LDFLAGS=$save_LDFLAGS
17737 libdir=$save_libdir
17738
17739 fi
17740
17741 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17742
17743 # This implies no fast_install, which is unacceptable.
17744 # Some rework will be needed to allow for fast_install
17745 # before this can be enabled.
17746 hardcode_into_libs=yes
17747
17748 # Append ld.so.conf contents to the search path
17749 if test -f /etc/ld.so.conf; then
17750 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' ' '`
17751 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17752 fi
17753
17754 # We used to test for /lib/ld.so.1 and disable shared libraries on
17755 # powerpc, because MkLinux only supported shared libraries with the
17756 # GNU dynamic linker. Since this was broken with cross compilers,
17757 # most powerpc-linux boxes support dynamic linking these days and
17758 # people can always --disable-shared, the test was removed, and we
17759 # assume the GNU/Linux dynamic linker is in use.
17760 dynamic_linker='GNU/Linux ld.so'
17761 ;;
17762
17763 netbsd*)
17764 version_type=sunos
17765 need_lib_prefix=no
17766 need_version=no
17767 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17768 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17769 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17770 dynamic_linker='NetBSD (a.out) ld.so'
17771 else
17772 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17773 soname_spec='${libname}${release}${shared_ext}$major'
17774 dynamic_linker='NetBSD ld.elf_so'
17775 fi
17776 shlibpath_var=LD_LIBRARY_PATH
17777 shlibpath_overrides_runpath=yes
17778 hardcode_into_libs=yes
17779 ;;
17780
17781 newsos6)
17782 version_type=linux
17783 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17784 shlibpath_var=LD_LIBRARY_PATH
17785 shlibpath_overrides_runpath=yes
17786 ;;
17787
17788 *nto* | *qnx*)
17789 version_type=qnx
17790 need_lib_prefix=no
17791 need_version=no
17792 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17793 soname_spec='${libname}${release}${shared_ext}$major'
17794 shlibpath_var=LD_LIBRARY_PATH
17795 shlibpath_overrides_runpath=no
17796 hardcode_into_libs=yes
17797 dynamic_linker='ldqnx.so'
17798 ;;
17799
17800 openbsd*)
17801 version_type=sunos
17802 sys_lib_dlsearch_path_spec="/usr/lib"
17803 need_lib_prefix=no
17804 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17805 case $host_os in
17806 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17807 *) need_version=no ;;
17808 esac
17809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17810 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17811 shlibpath_var=LD_LIBRARY_PATH
17812 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17813 case $host_os in
17814 openbsd2.[89] | openbsd2.[89].*)
17815 shlibpath_overrides_runpath=no
17816 ;;
17817 *)
17818 shlibpath_overrides_runpath=yes
17819 ;;
17820 esac
17821 else
17822 shlibpath_overrides_runpath=yes
17823 fi
17824 ;;
17825
17826 os2*)
17827 libname_spec='$name'
17828 shrext_cmds=".dll"
17829 need_lib_prefix=no
17830 library_names_spec='$libname${shared_ext} $libname.a'
17831 dynamic_linker='OS/2 ld.exe'
17832 shlibpath_var=LIBPATH
17833 ;;
17834
17835 osf3* | osf4* | osf5*)
17836 version_type=osf
17837 need_lib_prefix=no
17838 need_version=no
17839 soname_spec='${libname}${release}${shared_ext}$major'
17840 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17841 shlibpath_var=LD_LIBRARY_PATH
17842 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17843 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17844 ;;
17845
17846 rdos*)
17847 dynamic_linker=no
17848 ;;
17849
17850 solaris*)
17851 version_type=linux
17852 need_lib_prefix=no
17853 need_version=no
17854 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17855 soname_spec='${libname}${release}${shared_ext}$major'
17856 shlibpath_var=LD_LIBRARY_PATH
17857 shlibpath_overrides_runpath=yes
17858 hardcode_into_libs=yes
17859 # ldd complains unless libraries are executable
17860 postinstall_cmds='chmod +x $lib'
17861 ;;
17862
17863 sunos4*)
17864 version_type=sunos
17865 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17866 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17867 shlibpath_var=LD_LIBRARY_PATH
17868 shlibpath_overrides_runpath=yes
17869 if test "$with_gnu_ld" = yes; then
17870 need_lib_prefix=no
17871 fi
17872 need_version=yes
17873 ;;
17874
17875 sysv4 | sysv4.3*)
17876 version_type=linux
17877 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17878 soname_spec='${libname}${release}${shared_ext}$major'
17879 shlibpath_var=LD_LIBRARY_PATH
17880 case $host_vendor in
17881 sni)
17882 shlibpath_overrides_runpath=no
17883 need_lib_prefix=no
17884 runpath_var=LD_RUN_PATH
17885 ;;
17886 siemens)
17887 need_lib_prefix=no
17888 ;;
17889 motorola)
17890 need_lib_prefix=no
17891 need_version=no
17892 shlibpath_overrides_runpath=no
17893 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17894 ;;
17895 esac
17896 ;;
17897
17898 sysv4*MP*)
17899 if test -d /usr/nec ;then
17900 version_type=linux
17901 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17902 soname_spec='$libname${shared_ext}.$major'
17903 shlibpath_var=LD_LIBRARY_PATH
17904 fi
17905 ;;
17906
17907 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17908 version_type=freebsd-elf
17909 need_lib_prefix=no
17910 need_version=no
17911 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17912 soname_spec='${libname}${release}${shared_ext}$major'
17913 shlibpath_var=LD_LIBRARY_PATH
17914 shlibpath_overrides_runpath=yes
17915 hardcode_into_libs=yes
17916 if test "$with_gnu_ld" = yes; then
17917 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17918 else
17919 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17920 case $host_os in
17921 sco3.2v5*)
17922 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17923 ;;
17924 esac
17925 fi
17926 sys_lib_dlsearch_path_spec='/usr/lib'
17927 ;;
17928
17929 tpf*)
17930 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17931 version_type=linux
17932 need_lib_prefix=no
17933 need_version=no
17934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17935 shlibpath_var=LD_LIBRARY_PATH
17936 shlibpath_overrides_runpath=no
17937 hardcode_into_libs=yes
17938 ;;
17939
17940 uts4*)
17941 version_type=linux
17942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17943 soname_spec='${libname}${release}${shared_ext}$major'
17944 shlibpath_var=LD_LIBRARY_PATH
17945 ;;
17946
17947 *)
17948 dynamic_linker=no
17949 ;;
17950 esac
17951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17952 $as_echo "$dynamic_linker" >&6; }
17953 test "$dynamic_linker" = no && can_build_shared=no
17954
17955 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17956 if test "$GCC" = yes; then
17957 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17958 fi
17959
17960 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17961 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17962 fi
17963 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17964 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17965 fi
17966
17967
17968
17969
17970
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18059 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18060 hardcode_action=
18061 if test -n "$hardcode_libdir_flag_spec" ||
18062 test -n "$runpath_var" ||
18063 test "X$hardcode_automatic" = "Xyes" ; then
18064
18065 # We can hardcode non-existent directories.
18066 if test "$hardcode_direct" != no &&
18067 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18068 # have to relink, otherwise we might link with an installed library
18069 # when we should be linking with a yet-to-be-installed one
18070 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
18071 test "$hardcode_minus_L" != no; then
18072 # Linking always hardcodes the temporary library directory.
18073 hardcode_action=relink
18074 else
18075 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18076 hardcode_action=immediate
18077 fi
18078 else
18079 # We cannot hardcode anything, or else we can only hardcode existing
18080 # directories.
18081 hardcode_action=unsupported
18082 fi
18083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
18084 $as_echo "$hardcode_action" >&6; }
18085
18086 if test "$hardcode_action" = relink ||
18087 test "$inherit_rpath" = yes; then
18088 # Fast installation is not supported
18089 enable_fast_install=no
18090 elif test "$shlibpath_overrides_runpath" = yes ||
18091 test "$enable_shared" = no; then
18092 # Fast installation is not necessary
18093 enable_fast_install=needless
18094 fi
18095
18096
18097
18098
18099
18100
18101 if test "x$enable_dlopen" != xyes; then
18102 enable_dlopen=unknown
18103 enable_dlopen_self=unknown
18104 enable_dlopen_self_static=unknown
18105 else
18106 lt_cv_dlopen=no
18107 lt_cv_dlopen_libs=
18108
18109 case $host_os in
18110 beos*)
18111 lt_cv_dlopen="load_add_on"
18112 lt_cv_dlopen_libs=
18113 lt_cv_dlopen_self=yes
18114 ;;
18115
18116 mingw* | pw32* | cegcc*)
18117 lt_cv_dlopen="LoadLibrary"
18118 lt_cv_dlopen_libs=
18119 ;;
18120
18121 cygwin*)
18122 lt_cv_dlopen="dlopen"
18123 lt_cv_dlopen_libs=
18124 ;;
18125
18126 darwin*)
18127 # if libdl is installed we need to link against it
18128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18129 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18130 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
18131 $as_echo_n "(cached) " >&6
18132 else
18133 ac_check_lib_save_LIBS=$LIBS
18134 LIBS="-ldl $LIBS"
18135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18136 /* end confdefs.h. */
18137
18138 /* Override any GCC internal prototype to avoid an error.
18139 Use char because int might match the return type of a GCC
18140 builtin and then its argument prototype would still apply. */
18141 #ifdef __cplusplus
18142 extern "C"
18143 #endif
18144 char dlopen ();
18145 int
18146 main ()
18147 {
18148 return dlopen ();
18149 ;
18150 return 0;
18151 }
18152 _ACEOF
18153 if ac_fn_c_try_link "$LINENO"; then :
18154 ac_cv_lib_dl_dlopen=yes
18155 else
18156 ac_cv_lib_dl_dlopen=no
18157 fi
18158 rm -f core conftest.err conftest.$ac_objext \
18159 conftest$ac_exeext conftest.$ac_ext
18160 LIBS=$ac_check_lib_save_LIBS
18161 fi
18162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18163 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18164 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
18165 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18166 else
18167
18168 lt_cv_dlopen="dyld"
18169 lt_cv_dlopen_libs=
18170 lt_cv_dlopen_self=yes
18171
18172 fi
18173
18174 ;;
18175
18176 *)
18177 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
18178 if test "x$ac_cv_func_shl_load" = x""yes; then :
18179 lt_cv_dlopen="shl_load"
18180 else
18181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
18182 $as_echo_n "checking for shl_load in -ldld... " >&6; }
18183 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
18184 $as_echo_n "(cached) " >&6
18185 else
18186 ac_check_lib_save_LIBS=$LIBS
18187 LIBS="-ldld $LIBS"
18188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18189 /* end confdefs.h. */
18190
18191 /* Override any GCC internal prototype to avoid an error.
18192 Use char because int might match the return type of a GCC
18193 builtin and then its argument prototype would still apply. */
18194 #ifdef __cplusplus
18195 extern "C"
18196 #endif
18197 char shl_load ();
18198 int
18199 main ()
18200 {
18201 return shl_load ();
18202 ;
18203 return 0;
18204 }
18205 _ACEOF
18206 if ac_fn_c_try_link "$LINENO"; then :
18207 ac_cv_lib_dld_shl_load=yes
18208 else
18209 ac_cv_lib_dld_shl_load=no
18210 fi
18211 rm -f core conftest.err conftest.$ac_objext \
18212 conftest$ac_exeext conftest.$ac_ext
18213 LIBS=$ac_check_lib_save_LIBS
18214 fi
18215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
18216 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
18217 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
18218 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
18219 else
18220 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
18221 if test "x$ac_cv_func_dlopen" = x""yes; then :
18222 lt_cv_dlopen="dlopen"
18223 else
18224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18225 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18226 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
18227 $as_echo_n "(cached) " >&6
18228 else
18229 ac_check_lib_save_LIBS=$LIBS
18230 LIBS="-ldl $LIBS"
18231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18232 /* end confdefs.h. */
18233
18234 /* Override any GCC internal prototype to avoid an error.
18235 Use char because int might match the return type of a GCC
18236 builtin and then its argument prototype would still apply. */
18237 #ifdef __cplusplus
18238 extern "C"
18239 #endif
18240 char dlopen ();
18241 int
18242 main ()
18243 {
18244 return dlopen ();
18245 ;
18246 return 0;
18247 }
18248 _ACEOF
18249 if ac_fn_c_try_link "$LINENO"; then :
18250 ac_cv_lib_dl_dlopen=yes
18251 else
18252 ac_cv_lib_dl_dlopen=no
18253 fi
18254 rm -f core conftest.err conftest.$ac_objext \
18255 conftest$ac_exeext conftest.$ac_ext
18256 LIBS=$ac_check_lib_save_LIBS
18257 fi
18258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18259 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18260 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
18261 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18262 else
18263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
18264 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
18265 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
18266 $as_echo_n "(cached) " >&6
18267 else
18268 ac_check_lib_save_LIBS=$LIBS
18269 LIBS="-lsvld $LIBS"
18270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18271 /* end confdefs.h. */
18272
18273 /* Override any GCC internal prototype to avoid an error.
18274 Use char because int might match the return type of a GCC
18275 builtin and then its argument prototype would still apply. */
18276 #ifdef __cplusplus
18277 extern "C"
18278 #endif
18279 char dlopen ();
18280 int
18281 main ()
18282 {
18283 return dlopen ();
18284 ;
18285 return 0;
18286 }
18287 _ACEOF
18288 if ac_fn_c_try_link "$LINENO"; then :
18289 ac_cv_lib_svld_dlopen=yes
18290 else
18291 ac_cv_lib_svld_dlopen=no
18292 fi
18293 rm -f core conftest.err conftest.$ac_objext \
18294 conftest$ac_exeext conftest.$ac_ext
18295 LIBS=$ac_check_lib_save_LIBS
18296 fi
18297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
18298 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
18299 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
18300 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18301 else
18302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
18303 $as_echo_n "checking for dld_link in -ldld... " >&6; }
18304 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
18305 $as_echo_n "(cached) " >&6
18306 else
18307 ac_check_lib_save_LIBS=$LIBS
18308 LIBS="-ldld $LIBS"
18309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18310 /* end confdefs.h. */
18311
18312 /* Override any GCC internal prototype to avoid an error.
18313 Use char because int might match the return type of a GCC
18314 builtin and then its argument prototype would still apply. */
18315 #ifdef __cplusplus
18316 extern "C"
18317 #endif
18318 char dld_link ();
18319 int
18320 main ()
18321 {
18322 return dld_link ();
18323 ;
18324 return 0;
18325 }
18326 _ACEOF
18327 if ac_fn_c_try_link "$LINENO"; then :
18328 ac_cv_lib_dld_dld_link=yes
18329 else
18330 ac_cv_lib_dld_dld_link=no
18331 fi
18332 rm -f core conftest.err conftest.$ac_objext \
18333 conftest$ac_exeext conftest.$ac_ext
18334 LIBS=$ac_check_lib_save_LIBS
18335 fi
18336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
18337 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
18338 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
18339 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
18340 fi
18341
18342
18343 fi
18344
18345
18346 fi
18347
18348
18349 fi
18350
18351
18352 fi
18353
18354
18355 fi
18356
18357 ;;
18358 esac
18359
18360 if test "x$lt_cv_dlopen" != xno; then
18361 enable_dlopen=yes
18362 else
18363 enable_dlopen=no
18364 fi
18365
18366 case $lt_cv_dlopen in
18367 dlopen)
18368 save_CPPFLAGS="$CPPFLAGS"
18369 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18370
18371 save_LDFLAGS="$LDFLAGS"
18372 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18373
18374 save_LIBS="$LIBS"
18375 LIBS="$lt_cv_dlopen_libs $LIBS"
18376
18377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
18378 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
18379 if test "${lt_cv_dlopen_self+set}" = set; then :
18380 $as_echo_n "(cached) " >&6
18381 else
18382 if test "$cross_compiling" = yes; then :
18383 lt_cv_dlopen_self=cross
18384 else
18385 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18386 lt_status=$lt_dlunknown
18387 cat > conftest.$ac_ext <<_LT_EOF
18388 #line 18388 "configure"
18389 #include "confdefs.h"
18390
18391 #if HAVE_DLFCN_H
18392 #include <dlfcn.h>
18393 #endif
18394
18395 #include <stdio.h>
18396
18397 #ifdef RTLD_GLOBAL
18398 # define LT_DLGLOBAL RTLD_GLOBAL
18399 #else
18400 # ifdef DL_GLOBAL
18401 # define LT_DLGLOBAL DL_GLOBAL
18402 # else
18403 # define LT_DLGLOBAL 0
18404 # endif
18405 #endif
18406
18407 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18408 find out it does not work in some platform. */
18409 #ifndef LT_DLLAZY_OR_NOW
18410 # ifdef RTLD_LAZY
18411 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18412 # else
18413 # ifdef DL_LAZY
18414 # define LT_DLLAZY_OR_NOW DL_LAZY
18415 # else
18416 # ifdef RTLD_NOW
18417 # define LT_DLLAZY_OR_NOW RTLD_NOW
18418 # else
18419 # ifdef DL_NOW
18420 # define LT_DLLAZY_OR_NOW DL_NOW
18421 # else
18422 # define LT_DLLAZY_OR_NOW 0
18423 # endif
18424 # endif
18425 # endif
18426 # endif
18427 #endif
18428
18429 /* When -fvisbility=hidden is used, assume the code has been annotated
18430 correspondingly for the symbols needed. */
18431 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18432 void fnord () __attribute__((visibility("default")));
18433 #endif
18434
18435 void fnord () { int i=42; }
18436 int main ()
18437 {
18438 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18439 int status = $lt_dlunknown;
18440
18441 if (self)
18442 {
18443 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18444 else
18445 {
18446 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18447 else puts (dlerror ());
18448 }
18449 /* dlclose (self); */
18450 }
18451 else
18452 puts (dlerror ());
18453
18454 return status;
18455 }
18456 _LT_EOF
18457 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18458 (eval $ac_link) 2>&5
18459 ac_status=$?
18460 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18461 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18462 (./conftest; exit; ) >&5 2>/dev/null
18463 lt_status=$?
18464 case x$lt_status in
18465 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18466 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18467 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
18468 esac
18469 else :
18470 # compilation failed
18471 lt_cv_dlopen_self=no
18472 fi
18473 fi
18474 rm -fr conftest*
18475
18476
18477 fi
18478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18479 $as_echo "$lt_cv_dlopen_self" >&6; }
18480
18481 if test "x$lt_cv_dlopen_self" = xyes; then
18482 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
18483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18484 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18485 if test "${lt_cv_dlopen_self_static+set}" = set; then :
18486 $as_echo_n "(cached) " >&6
18487 else
18488 if test "$cross_compiling" = yes; then :
18489 lt_cv_dlopen_self_static=cross
18490 else
18491 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18492 lt_status=$lt_dlunknown
18493 cat > conftest.$ac_ext <<_LT_EOF
18494 #line 18494 "configure"
18495 #include "confdefs.h"
18496
18497 #if HAVE_DLFCN_H
18498 #include <dlfcn.h>
18499 #endif
18500
18501 #include <stdio.h>
18502
18503 #ifdef RTLD_GLOBAL
18504 # define LT_DLGLOBAL RTLD_GLOBAL
18505 #else
18506 # ifdef DL_GLOBAL
18507 # define LT_DLGLOBAL DL_GLOBAL
18508 # else
18509 # define LT_DLGLOBAL 0
18510 # endif
18511 #endif
18512
18513 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18514 find out it does not work in some platform. */
18515 #ifndef LT_DLLAZY_OR_NOW
18516 # ifdef RTLD_LAZY
18517 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18518 # else
18519 # ifdef DL_LAZY
18520 # define LT_DLLAZY_OR_NOW DL_LAZY
18521 # else
18522 # ifdef RTLD_NOW
18523 # define LT_DLLAZY_OR_NOW RTLD_NOW
18524 # else
18525 # ifdef DL_NOW
18526 # define LT_DLLAZY_OR_NOW DL_NOW
18527 # else
18528 # define LT_DLLAZY_OR_NOW 0
18529 # endif
18530 # endif
18531 # endif
18532 # endif
18533 #endif
18534
18535 /* When -fvisbility=hidden is used, assume the code has been annotated
18536 correspondingly for the symbols needed. */
18537 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18538 void fnord () __attribute__((visibility("default")));
18539 #endif
18540
18541 void fnord () { int i=42; }
18542 int main ()
18543 {
18544 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18545 int status = $lt_dlunknown;
18546
18547 if (self)
18548 {
18549 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18550 else
18551 {
18552 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18553 else puts (dlerror ());
18554 }
18555 /* dlclose (self); */
18556 }
18557 else
18558 puts (dlerror ());
18559
18560 return status;
18561 }
18562 _LT_EOF
18563 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18564 (eval $ac_link) 2>&5
18565 ac_status=$?
18566 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18567 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18568 (./conftest; exit; ) >&5 2>/dev/null
18569 lt_status=$?
18570 case x$lt_status in
18571 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18572 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18573 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
18574 esac
18575 else :
18576 # compilation failed
18577 lt_cv_dlopen_self_static=no
18578 fi
18579 fi
18580 rm -fr conftest*
18581
18582
18583 fi
18584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18585 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18586 fi
18587
18588 CPPFLAGS="$save_CPPFLAGS"
18589 LDFLAGS="$save_LDFLAGS"
18590 LIBS="$save_LIBS"
18591 ;;
18592 esac
18593
18594 case $lt_cv_dlopen_self in
18595 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18596 *) enable_dlopen_self=unknown ;;
18597 esac
18598
18599 case $lt_cv_dlopen_self_static in
18600 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18601 *) enable_dlopen_self_static=unknown ;;
18602 esac
18603 fi
18604
18605
18606
18607
18608
18609
18610
18611
18612
18613
18614
18615
18616
18617
18618
18619
18620
18621 striplib=
18622 old_striplib=
18623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18624 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18625 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
18626 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18627 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18629 $as_echo "yes" >&6; }
18630 else
18631 # FIXME - insert some real tests, host_os isn't really good enough
18632 case $host_os in
18633 darwin*)
18634 if test -n "$STRIP" ; then
18635 striplib="$STRIP -x"
18636 old_striplib="$STRIP -S"
18637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18638 $as_echo "yes" >&6; }
18639 else
18640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18641 $as_echo "no" >&6; }
18642 fi
18643 ;;
18644 *)
18645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18646 $as_echo "no" >&6; }
18647 ;;
18648 esac
18649 fi
18650
18651
18652
18653
18654
18655
18656
18657
18658
18659
18660
18661
18662 # Report which library types will actually be built
18663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18664 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18666 $as_echo "$can_build_shared" >&6; }
18667
18668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18669 $as_echo_n "checking whether to build shared libraries... " >&6; }
18670 test "$can_build_shared" = "no" && enable_shared=no
18671
18672 # On AIX, shared libraries and static libraries use the same namespace, and
18673 # are all built from PIC.
18674 case $host_os in
18675 aix3*)
18676 test "$enable_shared" = yes && enable_static=no
18677 if test -n "$RANLIB"; then
18678 archive_cmds="$archive_cmds~\$RANLIB \$lib"
18679 postinstall_cmds='$RANLIB $lib'
18680 fi
18681 ;;
18682
18683 aix[4-9]*)
18684 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
18685 test "$enable_shared" = yes && enable_static=no
18686 fi
18687 ;;
18688 esac
18689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18690 $as_echo "$enable_shared" >&6; }
18691
18692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18693 $as_echo_n "checking whether to build static libraries... " >&6; }
18694 # Make sure either enable_shared or enable_static is yes.
18695 test "$enable_shared" = yes || enable_static=yes
18696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18697 $as_echo "$enable_static" >&6; }
18698
18699
18700
18701
18702 fi
18703 ac_ext=cpp
18704 ac_cpp='$CXXCPP $CPPFLAGS'
18705 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18706 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18707 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18708
18709 CC="$lt_save_CC"
18710
18711 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18712 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18713 (test "X$CXX" != "Xg++"))) ; then
18714 ac_ext=cpp
18715 ac_cpp='$CXXCPP $CPPFLAGS'
18716 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18717 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18718 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18720 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18721 if test -z "$CXXCPP"; then
18722 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
18723 $as_echo_n "(cached) " >&6
18724 else
18725 # Double quotes because CXXCPP needs to be expanded
18726 for CXXCPP in "$CXX -E" "/lib/cpp"
18727 do
18728 ac_preproc_ok=false
18729 for ac_cxx_preproc_warn_flag in '' yes
18730 do
18731 # Use a header file that comes with gcc, so configuring glibc
18732 # with a fresh cross-compiler works.
18733 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18734 # <limits.h> exists even on freestanding compilers.
18735 # On the NeXT, cc -E runs the code through the compiler's parser,
18736 # not just through cpp. "Syntax error" is here to catch this case.
18737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18738 /* end confdefs.h. */
18739 #ifdef __STDC__
18740 # include <limits.h>
18741 #else
18742 # include <assert.h>
18743 #endif
18744 Syntax error
18745 _ACEOF
18746 if ac_fn_cxx_try_cpp "$LINENO"; then :
18747
18748 else
18749 # Broken: fails on valid input.
18750 continue
18751 fi
18752 rm -f conftest.err conftest.$ac_ext
18753
18754 # OK, works on sane cases. Now check whether nonexistent headers
18755 # can be detected and how.
18756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18757 /* end confdefs.h. */
18758 #include <ac_nonexistent.h>
18759 _ACEOF
18760 if ac_fn_cxx_try_cpp "$LINENO"; then :
18761 # Broken: success on invalid input.
18762 continue
18763 else
18764 # Passes both tests.
18765 ac_preproc_ok=:
18766 break
18767 fi
18768 rm -f conftest.err conftest.$ac_ext
18769
18770 done
18771 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18772 rm -f conftest.err conftest.$ac_ext
18773 if $ac_preproc_ok; then :
18774 break
18775 fi
18776
18777 done
18778 ac_cv_prog_CXXCPP=$CXXCPP
18779
18780 fi
18781 CXXCPP=$ac_cv_prog_CXXCPP
18782 else
18783 ac_cv_prog_CXXCPP=$CXXCPP
18784 fi
18785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18786 $as_echo "$CXXCPP" >&6; }
18787 ac_preproc_ok=false
18788 for ac_cxx_preproc_warn_flag in '' yes
18789 do
18790 # Use a header file that comes with gcc, so configuring glibc
18791 # with a fresh cross-compiler works.
18792 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18793 # <limits.h> exists even on freestanding compilers.
18794 # On the NeXT, cc -E runs the code through the compiler's parser,
18795 # not just through cpp. "Syntax error" is here to catch this case.
18796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18797 /* end confdefs.h. */
18798 #ifdef __STDC__
18799 # include <limits.h>
18800 #else
18801 # include <assert.h>
18802 #endif
18803 Syntax error
18804 _ACEOF
18805 if ac_fn_cxx_try_cpp "$LINENO"; then :
18806
18807 else
18808 # Broken: fails on valid input.
18809 continue
18810 fi
18811 rm -f conftest.err conftest.$ac_ext
18812
18813 # OK, works on sane cases. Now check whether nonexistent headers
18814 # can be detected and how.
18815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18816 /* end confdefs.h. */
18817 #include <ac_nonexistent.h>
18818 _ACEOF
18819 if ac_fn_cxx_try_cpp "$LINENO"; then :
18820 # Broken: success on invalid input.
18821 continue
18822 else
18823 # Passes both tests.
18824 ac_preproc_ok=:
18825 break
18826 fi
18827 rm -f conftest.err conftest.$ac_ext
18828
18829 done
18830 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18831 rm -f conftest.err conftest.$ac_ext
18832 if $ac_preproc_ok; then :
18833
18834 else
18835 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18836 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18837 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
18838 See \`config.log' for more details." "$LINENO" 5; }
18839 fi
18840
18841 ac_ext=cpp
18842 ac_cpp='$CXXCPP $CPPFLAGS'
18843 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18844 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18845 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18846
18847 else
18848 _lt_caught_CXX_error=yes
18849 fi
18850
18851 ac_ext=cpp
18852 ac_cpp='$CXXCPP $CPPFLAGS'
18853 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18854 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18855 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18856
18857 archive_cmds_need_lc_CXX=no
18858 allow_undefined_flag_CXX=
18859 always_export_symbols_CXX=no
18860 archive_expsym_cmds_CXX=
18861 compiler_needs_object_CXX=no
18862 export_dynamic_flag_spec_CXX=
18863 hardcode_direct_CXX=no
18864 hardcode_direct_absolute_CXX=no
18865 hardcode_libdir_flag_spec_CXX=
18866 hardcode_libdir_flag_spec_ld_CXX=
18867 hardcode_libdir_separator_CXX=
18868 hardcode_minus_L_CXX=no
18869 hardcode_shlibpath_var_CXX=unsupported
18870 hardcode_automatic_CXX=no
18871 inherit_rpath_CXX=no
18872 module_cmds_CXX=
18873 module_expsym_cmds_CXX=
18874 link_all_deplibs_CXX=unknown
18875 old_archive_cmds_CXX=$old_archive_cmds
18876 reload_flag_CXX=$reload_flag
18877 reload_cmds_CXX=$reload_cmds
18878 no_undefined_flag_CXX=
18879 whole_archive_flag_spec_CXX=
18880 enable_shared_with_static_runtimes_CXX=no
18881
18882 # Source file extension for C++ test sources.
18883 ac_ext=cpp
18884
18885 # Object file extension for compiled C++ test sources.
18886 objext=o
18887 objext_CXX=$objext
18888
18889 # No sense in running all these tests if we already determined that
18890 # the CXX compiler isn't working. Some variables (like enable_shared)
18891 # are currently assumed to apply to all compilers on this platform,
18892 # and will be corrupted by setting them based on a non-working compiler.
18893 if test "$_lt_caught_CXX_error" != yes; then
18894 # Code to be used in simple compile tests
18895 lt_simple_compile_test_code="int some_variable = 0;"
18896
18897 # Code to be used in simple link tests
18898 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
18899
18900 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18901
18902
18903
18904
18905
18906
18907 # If no C compiler was specified, use CC.
18908 LTCC=${LTCC-"$CC"}
18909
18910 # If no C compiler flags were specified, use CFLAGS.
18911 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18912
18913 # Allow CC to be a program name with arguments.
18914 compiler=$CC
18915
18916
18917 # save warnings/boilerplate of simple test code
18918 ac_outfile=conftest.$ac_objext
18919 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18920 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18921 _lt_compiler_boilerplate=`cat conftest.err`
18922 $RM conftest*
18923
18924 ac_outfile=conftest.$ac_objext
18925 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18926 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18927 _lt_linker_boilerplate=`cat conftest.err`
18928 $RM -r conftest*
18929
18930
18931 # Allow CC to be a program name with arguments.
18932 lt_save_CC=$CC
18933 lt_save_LD=$LD
18934 lt_save_GCC=$GCC
18935 GCC=$GXX
18936 lt_save_with_gnu_ld=$with_gnu_ld
18937 lt_save_path_LD=$lt_cv_path_LD
18938 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18939 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18940 else
18941 $as_unset lt_cv_prog_gnu_ld
18942 fi
18943 if test -n "${lt_cv_path_LDCXX+set}"; then
18944 lt_cv_path_LD=$lt_cv_path_LDCXX
18945 else
18946 $as_unset lt_cv_path_LD
18947 fi
18948 test -z "${LDCXX+set}" || LD=$LDCXX
18949 CC=${CXX-"c++"}
18950 compiler=$CC
18951 compiler_CXX=$CC
18952 for cc_temp in $compiler""; do
18953 case $cc_temp in
18954 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18955 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18956 \-*) ;;
18957 *) break;;
18958 esac
18959 done
18960 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18961
18962
18963 if test -n "$compiler"; then
18964 # We don't want -fno-exception when compiling C++ code, so set the
18965 # no_builtin_flag separately
18966 if test "$GXX" = yes; then
18967 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18968 else
18969 lt_prog_compiler_no_builtin_flag_CXX=
18970 fi
18971
18972 if test "$GXX" = yes; then
18973 # Set up default GNU C++ configuration
18974
18975
18976
18977 # Check whether --with-gnu-ld was given.
18978 if test "${with_gnu_ld+set}" = set; then :
18979 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18980 else
18981 with_gnu_ld=no
18982 fi
18983
18984 ac_prog=ld
18985 if test "$GCC" = yes; then
18986 # Check if gcc -print-prog-name=ld gives a path.
18987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
18988 $as_echo_n "checking for ld used by $CC... " >&6; }
18989 case $host in
18990 *-*-mingw*)
18991 # gcc leaves a trailing carriage return which upsets mingw
18992 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18993 *)
18994 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18995 esac
18996 case $ac_prog in
18997 # Accept absolute paths.
18998 [\\/]* | ?:[\\/]*)
18999 re_direlt='/[^/][^/]*/\.\./'
19000 # Canonicalize the pathname of ld
19001 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
19002 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
19003 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
19004 done
19005 test -z "$LD" && LD="$ac_prog"
19006 ;;
19007 "")
19008 # If it fails, then pretend we aren't using GCC.
19009 ac_prog=ld
19010 ;;
19011 *)
19012 # If it is relative, then search for the first ld in PATH.
19013 with_gnu_ld=unknown
19014 ;;
19015 esac
19016 elif test "$with_gnu_ld" = yes; then
19017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
19018 $as_echo_n "checking for GNU ld... " >&6; }
19019 else
19020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
19021 $as_echo_n "checking for non-GNU ld... " >&6; }
19022 fi
19023 if test "${lt_cv_path_LD+set}" = set; then :
19024 $as_echo_n "(cached) " >&6
19025 else
19026 if test -z "$LD"; then
19027 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
19028 for ac_dir in $PATH; do
19029 IFS="$lt_save_ifs"
19030 test -z "$ac_dir" && ac_dir=.
19031 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
19032 lt_cv_path_LD="$ac_dir/$ac_prog"
19033 # Check to see if the program is GNU ld. I'd rather use --version,
19034 # but apparently some variants of GNU ld only accept -v.
19035 # Break only if it was the GNU/non-GNU ld that we prefer.
19036 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
19037 *GNU* | *'with BFD'*)
19038 test "$with_gnu_ld" != no && break
19039 ;;
19040 *)
19041 test "$with_gnu_ld" != yes && break
19042 ;;
19043 esac
19044 fi
19045 done
19046 IFS="$lt_save_ifs"
19047 else
19048 lt_cv_path_LD="$LD" # Let the user override the test with a path.
19049 fi
19050 fi
19051
19052 LD="$lt_cv_path_LD"
19053 if test -n "$LD"; then
19054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
19055 $as_echo "$LD" >&6; }
19056 else
19057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19058 $as_echo "no" >&6; }
19059 fi
19060 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
19061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
19062 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
19063 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
19064 $as_echo_n "(cached) " >&6
19065 else
19066 # I'd rather use --version here, but apparently some GNU lds only accept -v.
19067 case `$LD -v 2>&1 </dev/null` in
19068 *GNU* | *'with BFD'*)
19069 lt_cv_prog_gnu_ld=yes
19070 ;;
19071 *)
19072 lt_cv_prog_gnu_ld=no
19073 ;;
19074 esac
19075 fi
19076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
19077 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
19078 with_gnu_ld=$lt_cv_prog_gnu_ld
19079
19080
19081
19082
19083
19084
19085
19086 # Check if GNU C++ uses GNU ld as the underlying linker, since the
19087 # archiving commands below assume that GNU ld is being used.
19088 if test "$with_gnu_ld" = yes; then
19089 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19090 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'
19091
19092 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19093 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19094
19095 # If archive_cmds runs LD, not CC, wlarc should be empty
19096 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
19097 # investigate it a little bit more. (MM)
19098 wlarc='${wl}'
19099
19100 # ancient GNU ld didn't support --whole-archive et. al.
19101 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
19102 $GREP 'no-whole-archive' > /dev/null; then
19103 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19104 else
19105 whole_archive_flag_spec_CXX=
19106 fi
19107 else
19108 with_gnu_ld=no
19109 wlarc=
19110
19111 # A generic and very simple default shared library creation
19112 # command for GNU C++ for the case where it uses the native
19113 # linker, instead of GNU ld. If possible, this setting should
19114 # overridden to take advantage of the native linker features on
19115 # the platform it is being used on.
19116 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19117 fi
19118
19119 # Commands to make compiler produce verbose output that lists
19120 # what "hidden" libraries, object files and flags are used when
19121 # linking a shared library.
19122 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19123
19124 else
19125 GXX=no
19126 with_gnu_ld=no
19127 wlarc=
19128 fi
19129
19130 # PORTME: fill in a description of your system's C++ link characteristics
19131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19132 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19133 ld_shlibs_CXX=yes
19134 case $host_os in
19135 aix3*)
19136 # FIXME: insert proper C++ library support
19137 ld_shlibs_CXX=no
19138 ;;
19139 aix[4-9]*)
19140 if test "$host_cpu" = ia64; then
19141 # On IA64, the linker does run time linking by default, so we don't
19142 # have to do anything special.
19143 aix_use_runtimelinking=no
19144 exp_sym_flag='-Bexport'
19145 no_entry_flag=""
19146 else
19147 aix_use_runtimelinking=no
19148
19149 # Test if we are trying to use run time linking or normal
19150 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19151 # need to do runtime linking.
19152 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
19153 for ld_flag in $LDFLAGS; do
19154 case $ld_flag in
19155 *-brtl*)
19156 aix_use_runtimelinking=yes
19157 break
19158 ;;
19159 esac
19160 done
19161 ;;
19162 esac
19163
19164 exp_sym_flag='-bexport'
19165 no_entry_flag='-bnoentry'
19166 fi
19167
19168 # When large executables or shared objects are built, AIX ld can
19169 # have problems creating the table of contents. If linking a library
19170 # or program results in "error TOC overflow" add -mminimal-toc to
19171 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19172 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19173
19174 archive_cmds_CXX=''
19175 hardcode_direct_CXX=yes
19176 hardcode_direct_absolute_CXX=yes
19177 hardcode_libdir_separator_CXX=':'
19178 link_all_deplibs_CXX=yes
19179 file_list_spec_CXX='${wl}-f,'
19180
19181 if test "$GXX" = yes; then
19182 case $host_os in aix4.[012]|aix4.[012].*)
19183 # We only want to do this on AIX 4.2 and lower, the check
19184 # below for broken collect2 doesn't work under 4.3+
19185 collect2name=`${CC} -print-prog-name=collect2`
19186 if test -f "$collect2name" &&
19187 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
19188 then
19189 # We have reworked collect2
19190 :
19191 else
19192 # We have old collect2
19193 hardcode_direct_CXX=unsupported
19194 # It fails to find uninstalled libraries when the uninstalled
19195 # path is not listed in the libpath. Setting hardcode_minus_L
19196 # to unsupported forces relinking
19197 hardcode_minus_L_CXX=yes
19198 hardcode_libdir_flag_spec_CXX='-L$libdir'
19199 hardcode_libdir_separator_CXX=
19200 fi
19201 esac
19202 shared_flag='-shared'
19203 if test "$aix_use_runtimelinking" = yes; then
19204 shared_flag="$shared_flag "'${wl}-G'
19205 fi
19206 else
19207 # not using gcc
19208 if test "$host_cpu" = ia64; then
19209 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19210 # chokes on -Wl,-G. The following line is correct:
19211 shared_flag='-G'
19212 else
19213 if test "$aix_use_runtimelinking" = yes; then
19214 shared_flag='${wl}-G'
19215 else
19216 shared_flag='${wl}-bM:SRE'
19217 fi
19218 fi
19219 fi
19220
19221 export_dynamic_flag_spec_CXX='${wl}-bexpall'
19222 # It seems that -bexpall does not export symbols beginning with
19223 # underscore (_), so it is better to generate a list of symbols to
19224 # export.
19225 always_export_symbols_CXX=yes
19226 if test "$aix_use_runtimelinking" = yes; then
19227 # Warning - without using the other runtime loading flags (-brtl),
19228 # -berok will link without error, but may produce a broken library.
19229 allow_undefined_flag_CXX='-berok'
19230 # Determine the default libpath from the value encoded in an empty
19231 # executable.
19232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19233 /* end confdefs.h. */
19234
19235 int
19236 main ()
19237 {
19238
19239 ;
19240 return 0;
19241 }
19242 _ACEOF
19243 if ac_fn_cxx_try_link "$LINENO"; then :
19244
19245 lt_aix_libpath_sed='
19246 /Import File Strings/,/^$/ {
19247 /^0/ {
19248 s/^0 *\(.*\)$/\1/
19249 p
19250 }
19251 }'
19252 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19253 # Check for a 64-bit object if we didn't find anything.
19254 if test -z "$aix_libpath"; then
19255 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19256 fi
19257 fi
19258 rm -f core conftest.err conftest.$ac_objext \
19259 conftest$ac_exeext conftest.$ac_ext
19260 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19261
19262 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19263
19264 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"
19265 else
19266 if test "$host_cpu" = ia64; then
19267 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
19268 allow_undefined_flag_CXX="-z nodefs"
19269 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"
19270 else
19271 # Determine the default libpath from the value encoded in an
19272 # empty executable.
19273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19274 /* end confdefs.h. */
19275
19276 int
19277 main ()
19278 {
19279
19280 ;
19281 return 0;
19282 }
19283 _ACEOF
19284 if ac_fn_cxx_try_link "$LINENO"; then :
19285
19286 lt_aix_libpath_sed='
19287 /Import File Strings/,/^$/ {
19288 /^0/ {
19289 s/^0 *\(.*\)$/\1/
19290 p
19291 }
19292 }'
19293 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19294 # Check for a 64-bit object if we didn't find anything.
19295 if test -z "$aix_libpath"; then
19296 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19297 fi
19298 fi
19299 rm -f core conftest.err conftest.$ac_objext \
19300 conftest$ac_exeext conftest.$ac_ext
19301 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19302
19303 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19304 # Warning - without using the other run time loading flags,
19305 # -berok will link without error, but may produce a broken library.
19306 no_undefined_flag_CXX=' ${wl}-bernotok'
19307 allow_undefined_flag_CXX=' ${wl}-berok'
19308 if test "$with_gnu_ld" = yes; then
19309 # We only use this code for GNU lds that support --whole-archive.
19310 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19311 else
19312 # Exported symbols can be pulled into shared objects from archives
19313 whole_archive_flag_spec_CXX='$convenience'
19314 fi
19315 archive_cmds_need_lc_CXX=yes
19316 # This is similar to how AIX traditionally builds its shared
19317 # libraries.
19318 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'
19319 fi
19320 fi
19321 ;;
19322
19323 beos*)
19324 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
19325 allow_undefined_flag_CXX=unsupported
19326 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19327 # support --undefined. This deserves some investigation. FIXME
19328 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19329 else
19330 ld_shlibs_CXX=no
19331 fi
19332 ;;
19333
19334 chorus*)
19335 case $cc_basename in
19336 *)
19337 # FIXME: insert proper C++ library support
19338 ld_shlibs_CXX=no
19339 ;;
19340 esac
19341 ;;
19342
19343 cygwin* | mingw* | pw32* | cegcc*)
19344 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19345 # as there is no search path for DLLs.
19346 hardcode_libdir_flag_spec_CXX='-L$libdir'
19347 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
19348 allow_undefined_flag_CXX=unsupported
19349 always_export_symbols_CXX=no
19350 enable_shared_with_static_runtimes_CXX=yes
19351
19352 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
19353 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'
19354 # If the export-symbols file already is a .def file (1st line
19355 # is EXPORTS), use it as is; otherwise, prepend...
19356 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19357 cp $export_symbols $output_objdir/$soname.def;
19358 else
19359 echo EXPORTS > $output_objdir/$soname.def;
19360 cat $export_symbols >> $output_objdir/$soname.def;
19361 fi~
19362 $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'
19363 else
19364 ld_shlibs_CXX=no
19365 fi
19366 ;;
19367 darwin* | rhapsody*)
19368
19369
19370 archive_cmds_need_lc_CXX=no
19371 hardcode_direct_CXX=no
19372 hardcode_automatic_CXX=yes
19373 hardcode_shlibpath_var_CXX=unsupported
19374 if test "$lt_cv_ld_force_load" = "yes"; then
19375 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\"`'
19376 else
19377 whole_archive_flag_spec_CXX=''
19378 fi
19379 link_all_deplibs_CXX=yes
19380 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
19381 case $cc_basename in
19382 ifort*) _lt_dar_can_shared=yes ;;
19383 *) _lt_dar_can_shared=$GCC ;;
19384 esac
19385 if test "$_lt_dar_can_shared" = "yes"; then
19386 output_verbose_link_cmd=func_echo_all
19387 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}"
19388 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19389 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}"
19390 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}"
19391 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
19392 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}"
19393 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}"
19394 fi
19395
19396 else
19397 ld_shlibs_CXX=no
19398 fi
19399
19400 ;;
19401
19402 dgux*)
19403 case $cc_basename in
19404 ec++*)
19405 # FIXME: insert proper C++ library support
19406 ld_shlibs_CXX=no
19407 ;;
19408 ghcx*)
19409 # Green Hills C++ Compiler
19410 # FIXME: insert proper C++ library support
19411 ld_shlibs_CXX=no
19412 ;;
19413 *)
19414 # FIXME: insert proper C++ library support
19415 ld_shlibs_CXX=no
19416 ;;
19417 esac
19418 ;;
19419
19420 freebsd2.*)
19421 # C++ shared libraries reported to be fairly broken before
19422 # switch to ELF
19423 ld_shlibs_CXX=no
19424 ;;
19425
19426 freebsd-elf*)
19427 archive_cmds_need_lc_CXX=no
19428 ;;
19429
19430 freebsd* | dragonfly*)
19431 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19432 # conventions
19433 ld_shlibs_CXX=yes
19434 ;;
19435
19436 gnu*)
19437 ;;
19438
19439 haiku*)
19440 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19441 link_all_deplibs_CXX=yes
19442 ;;
19443
19444 hpux9*)
19445 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19446 hardcode_libdir_separator_CXX=:
19447 export_dynamic_flag_spec_CXX='${wl}-E'
19448 hardcode_direct_CXX=yes
19449 hardcode_minus_L_CXX=yes # Not in the search PATH,
19450 # but as the default
19451 # location of the library.
19452
19453 case $cc_basename in
19454 CC*)
19455 # FIXME: insert proper C++ library support
19456 ld_shlibs_CXX=no
19457 ;;
19458 aCC*)
19459 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'
19460 # Commands to make compiler produce verbose output that lists
19461 # what "hidden" libraries, object files and flags are used when
19462 # linking a shared library.
19463 #
19464 # There doesn't appear to be a way to prevent this compiler from
19465 # explicitly linking system object files so we need to strip them
19466 # from the output so that they don't get included in the library
19467 # dependencies.
19468 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"'
19469 ;;
19470 *)
19471 if test "$GXX" = yes; then
19472 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'
19473 else
19474 # FIXME: insert proper C++ library support
19475 ld_shlibs_CXX=no
19476 fi
19477 ;;
19478 esac
19479 ;;
19480
19481 hpux10*|hpux11*)
19482 if test $with_gnu_ld = no; then
19483 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19484 hardcode_libdir_separator_CXX=:
19485
19486 case $host_cpu in
19487 hppa*64*|ia64*)
19488 ;;
19489 *)
19490 export_dynamic_flag_spec_CXX='${wl}-E'
19491 ;;
19492 esac
19493 fi
19494 case $host_cpu in
19495 hppa*64*|ia64*)
19496 hardcode_direct_CXX=no
19497 hardcode_shlibpath_var_CXX=no
19498 ;;
19499 *)
19500 hardcode_direct_CXX=yes
19501 hardcode_direct_absolute_CXX=yes
19502 hardcode_minus_L_CXX=yes # Not in the search PATH,
19503 # but as the default
19504 # location of the library.
19505 ;;
19506 esac
19507
19508 case $cc_basename in
19509 CC*)
19510 # FIXME: insert proper C++ library support
19511 ld_shlibs_CXX=no
19512 ;;
19513 aCC*)
19514 case $host_cpu in
19515 hppa*64*)
19516 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19517 ;;
19518 ia64*)
19519 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19520 ;;
19521 *)
19522 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19523 ;;
19524 esac
19525 # Commands to make compiler produce verbose output that lists
19526 # what "hidden" libraries, object files and flags are used when
19527 # linking a shared library.
19528 #
19529 # There doesn't appear to be a way to prevent this compiler from
19530 # explicitly linking system object files so we need to strip them
19531 # from the output so that they don't get included in the library
19532 # dependencies.
19533 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"'
19534 ;;
19535 *)
19536 if test "$GXX" = yes; then
19537 if test $with_gnu_ld = no; then
19538 case $host_cpu in
19539 hppa*64*)
19540 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19541 ;;
19542 ia64*)
19543 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19544 ;;
19545 *)
19546 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'
19547 ;;
19548 esac
19549 fi
19550 else
19551 # FIXME: insert proper C++ library support
19552 ld_shlibs_CXX=no
19553 fi
19554 ;;
19555 esac
19556 ;;
19557
19558 interix[3-9]*)
19559 hardcode_direct_CXX=no
19560 hardcode_shlibpath_var_CXX=no
19561 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19562 export_dynamic_flag_spec_CXX='${wl}-E'
19563 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19564 # Instead, shared libraries are loaded at an image base (0x10000000 by
19565 # default) and relocated if they conflict, which is a slow very memory
19566 # consuming and fragmenting process. To avoid this, we pick a random,
19567 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19568 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19569 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'
19570 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'
19571 ;;
19572 irix5* | irix6*)
19573 case $cc_basename in
19574 CC*)
19575 # SGI C++
19576 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'
19577
19578 # Archives containing C++ object files must be created using
19579 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19580 # necessary to make sure instantiated templates are included
19581 # in the archive.
19582 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19583 ;;
19584 *)
19585 if test "$GXX" = yes; then
19586 if test "$with_gnu_ld" = no; then
19587 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'
19588 else
19589 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'
19590 fi
19591 fi
19592 link_all_deplibs_CXX=yes
19593 ;;
19594 esac
19595 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19596 hardcode_libdir_separator_CXX=:
19597 inherit_rpath_CXX=yes
19598 ;;
19599
19600 linux* | k*bsd*-gnu | kopensolaris*-gnu)
19601 case $cc_basename in
19602 KCC*)
19603 # Kuck and Associates, Inc. (KAI) C++ Compiler
19604
19605 # KCC will only create a shared library if the output file
19606 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19607 # to its proper name (with version) after linking.
19608 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'
19609 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'
19610 # Commands to make compiler produce verbose output that lists
19611 # what "hidden" libraries, object files and flags are used when
19612 # linking a shared library.
19613 #
19614 # There doesn't appear to be a way to prevent this compiler from
19615 # explicitly linking system object files so we need to strip them
19616 # from the output so that they don't get included in the library
19617 # dependencies.
19618 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"'
19619
19620 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19621 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19622
19623 # Archives containing C++ object files must be created using
19624 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19625 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19626 ;;
19627 icpc* | ecpc* )
19628 # Intel C++
19629 with_gnu_ld=yes
19630 # version 8.0 and above of icpc choke on multiply defined symbols
19631 # if we add $predep_objects and $postdep_objects, however 7.1 and
19632 # earlier do not add the objects themselves.
19633 case `$CC -V 2>&1` in
19634 *"Version 7."*)
19635 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19636 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'
19637 ;;
19638 *) # Version 8.0 or newer
19639 tmp_idyn=
19640 case $host_cpu in
19641 ia64*) tmp_idyn=' -i_dynamic';;
19642 esac
19643 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19644 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'
19645 ;;
19646 esac
19647 archive_cmds_need_lc_CXX=no
19648 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19649 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19650 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19651 ;;
19652 pgCC* | pgcpp*)
19653 # Portland Group C++ compiler
19654 case `$CC -V` in
19655 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
19656 prelink_cmds_CXX='tpldir=Template.dir~
19657 rm -rf $tpldir~
19658 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19659 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
19660 old_archive_cmds_CXX='tpldir=Template.dir~
19661 rm -rf $tpldir~
19662 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19663 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
19664 $RANLIB $oldlib'
19665 archive_cmds_CXX='tpldir=Template.dir~
19666 rm -rf $tpldir~
19667 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19668 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19669 archive_expsym_cmds_CXX='tpldir=Template.dir~
19670 rm -rf $tpldir~
19671 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19672 $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'
19673 ;;
19674 *) # Version 6 and above use weak symbols
19675 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19676 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'
19677 ;;
19678 esac
19679
19680 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19681 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19682 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'
19683 ;;
19684 cxx*)
19685 # Compaq C++
19686 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19687 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'
19688
19689 runpath_var=LD_RUN_PATH
19690 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19691 hardcode_libdir_separator_CXX=:
19692
19693 # Commands to make compiler produce verbose output that lists
19694 # what "hidden" libraries, object files and flags are used when
19695 # linking a shared library.
19696 #
19697 # There doesn't appear to be a way to prevent this compiler from
19698 # explicitly linking system object files so we need to strip them
19699 # from the output so that they don't get included in the library
19700 # dependencies.
19701 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'
19702 ;;
19703 xl* | mpixl* | bgxl*)
19704 # IBM XL 8.0 on PPC, with GNU ld
19705 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19706 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19707 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19708 if test "x$supports_anon_versioning" = xyes; then
19709 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
19710 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19711 echo "local: *; };" >> $output_objdir/$libname.ver~
19712 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19713 fi
19714 ;;
19715 *)
19716 case `$CC -V 2>&1 | sed 5q` in
19717 *Sun\ C*)
19718 # Sun C++ 5.9
19719 no_undefined_flag_CXX=' -zdefs'
19720 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19721 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'
19722 hardcode_libdir_flag_spec_CXX='-R$libdir'
19723 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'
19724 compiler_needs_object_CXX=yes
19725
19726 # Not sure whether something based on
19727 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19728 # would be better.
19729 output_verbose_link_cmd='func_echo_all'
19730
19731 # Archives containing C++ object files must be created using
19732 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19733 # necessary to make sure instantiated templates are included
19734 # in the archive.
19735 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19736 ;;
19737 esac
19738 ;;
19739 esac
19740 ;;
19741
19742 lynxos*)
19743 # FIXME: insert proper C++ library support
19744 ld_shlibs_CXX=no
19745 ;;
19746
19747 m88k*)
19748 # FIXME: insert proper C++ library support
19749 ld_shlibs_CXX=no
19750 ;;
19751
19752 mvs*)
19753 case $cc_basename in
19754 cxx*)
19755 # FIXME: insert proper C++ library support
19756 ld_shlibs_CXX=no
19757 ;;
19758 *)
19759 # FIXME: insert proper C++ library support
19760 ld_shlibs_CXX=no
19761 ;;
19762 esac
19763 ;;
19764
19765 netbsd*)
19766 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19767 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19768 wlarc=
19769 hardcode_libdir_flag_spec_CXX='-R$libdir'
19770 hardcode_direct_CXX=yes
19771 hardcode_shlibpath_var_CXX=no
19772 fi
19773 # Workaround some broken pre-1.5 toolchains
19774 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19775 ;;
19776
19777 *nto* | *qnx*)
19778 ld_shlibs_CXX=yes
19779 ;;
19780
19781 openbsd2*)
19782 # C++ shared libraries are fairly broken
19783 ld_shlibs_CXX=no
19784 ;;
19785
19786 openbsd*)
19787 if test -f /usr/libexec/ld.so; then
19788 hardcode_direct_CXX=yes
19789 hardcode_shlibpath_var_CXX=no
19790 hardcode_direct_absolute_CXX=yes
19791 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19792 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19793 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19794 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19795 export_dynamic_flag_spec_CXX='${wl}-E'
19796 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19797 fi
19798 output_verbose_link_cmd=func_echo_all
19799 else
19800 ld_shlibs_CXX=no
19801 fi
19802 ;;
19803
19804 osf3* | osf4* | osf5*)
19805 case $cc_basename in
19806 KCC*)
19807 # Kuck and Associates, Inc. (KAI) C++ Compiler
19808
19809 # KCC will only create a shared library if the output file
19810 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19811 # to its proper name (with version) after linking.
19812 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'
19813
19814 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19815 hardcode_libdir_separator_CXX=:
19816
19817 # Archives containing C++ object files must be created using
19818 # the KAI C++ compiler.
19819 case $host in
19820 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
19821 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
19822 esac
19823 ;;
19824 RCC*)
19825 # Rational C++ 2.4.1
19826 # FIXME: insert proper C++ library support
19827 ld_shlibs_CXX=no
19828 ;;
19829 cxx*)
19830 case $host in
19831 osf3*)
19832 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19833 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'
19834 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19835 ;;
19836 *)
19837 allow_undefined_flag_CXX=' -expect_unresolved \*'
19838 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'
19839 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19840 echo "-hidden">> $lib.exp~
19841 $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~
19842 $RM $lib.exp'
19843 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19844 ;;
19845 esac
19846
19847 hardcode_libdir_separator_CXX=:
19848
19849 # Commands to make compiler produce verbose output that lists
19850 # what "hidden" libraries, object files and flags are used when
19851 # linking a shared library.
19852 #
19853 # There doesn't appear to be a way to prevent this compiler from
19854 # explicitly linking system object files so we need to strip them
19855 # from the output so that they don't get included in the library
19856 # dependencies.
19857 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"'
19858 ;;
19859 *)
19860 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19861 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19862 case $host in
19863 osf3*)
19864 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'
19865 ;;
19866 *)
19867 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'
19868 ;;
19869 esac
19870
19871 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19872 hardcode_libdir_separator_CXX=:
19873
19874 # Commands to make compiler produce verbose output that lists
19875 # what "hidden" libraries, object files and flags are used when
19876 # linking a shared library.
19877 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19878
19879 else
19880 # FIXME: insert proper C++ library support
19881 ld_shlibs_CXX=no
19882 fi
19883 ;;
19884 esac
19885 ;;
19886
19887 psos*)
19888 # FIXME: insert proper C++ library support
19889 ld_shlibs_CXX=no
19890 ;;
19891
19892 sunos4*)
19893 case $cc_basename in
19894 CC*)
19895 # Sun C++ 4.x
19896 # FIXME: insert proper C++ library support
19897 ld_shlibs_CXX=no
19898 ;;
19899 lcc*)
19900 # Lucid
19901 # FIXME: insert proper C++ library support
19902 ld_shlibs_CXX=no
19903 ;;
19904 *)
19905 # FIXME: insert proper C++ library support
19906 ld_shlibs_CXX=no
19907 ;;
19908 esac
19909 ;;
19910
19911 solaris*)
19912 case $cc_basename in
19913 CC*)
19914 # Sun C++ 4.2, 5.x and Centerline C++
19915 archive_cmds_need_lc_CXX=yes
19916 no_undefined_flag_CXX=' -zdefs'
19917 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19918 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19919 $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'
19920
19921 hardcode_libdir_flag_spec_CXX='-R$libdir'
19922 hardcode_shlibpath_var_CXX=no
19923 case $host_os in
19924 solaris2.[0-5] | solaris2.[0-5].*) ;;
19925 *)
19926 # The compiler driver will combine and reorder linker options,
19927 # but understands `-z linker_flag'.
19928 # Supported since Solaris 2.6 (maybe 2.5.1?)
19929 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
19930 ;;
19931 esac
19932 link_all_deplibs_CXX=yes
19933
19934 output_verbose_link_cmd='func_echo_all'
19935
19936 # Archives containing C++ object files must be created using
19937 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19938 # necessary to make sure instantiated templates are included
19939 # in the archive.
19940 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19941 ;;
19942 gcx*)
19943 # Green Hills C++ Compiler
19944 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19945
19946 # The C++ compiler must be used to create the archive.
19947 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19948 ;;
19949 *)
19950 # GNU C++ compiler with Solaris linker
19951 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19952 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19953 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
19954 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19955 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19956 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19957
19958 # Commands to make compiler produce verbose output that lists
19959 # what "hidden" libraries, object files and flags are used when
19960 # linking a shared library.
19961 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19962 else
19963 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19964 # platform.
19965 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19966 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19967 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19968
19969 # Commands to make compiler produce verbose output that lists
19970 # what "hidden" libraries, object files and flags are used when
19971 # linking a shared library.
19972 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19973 fi
19974
19975 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19976 case $host_os in
19977 solaris2.[0-5] | solaris2.[0-5].*) ;;
19978 *)
19979 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19980 ;;
19981 esac
19982 fi
19983 ;;
19984 esac
19985 ;;
19986
19987 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19988 no_undefined_flag_CXX='${wl}-z,text'
19989 archive_cmds_need_lc_CXX=no
19990 hardcode_shlibpath_var_CXX=no
19991 runpath_var='LD_RUN_PATH'
19992
19993 case $cc_basename in
19994 CC*)
19995 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19996 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19997 ;;
19998 *)
19999 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20000 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20001 ;;
20002 esac
20003 ;;
20004
20005 sysv5* | sco3.2v5* | sco5v6*)
20006 # Note: We can NOT use -z defs as we might desire, because we do not
20007 # link with -lc, and that would cause any symbols used from libc to
20008 # always be unresolved, which means just about no library would
20009 # ever link correctly. If we're not using GNU ld we use -z text
20010 # though, which does catch some bad symbols but isn't as heavy-handed
20011 # as -z defs.
20012 no_undefined_flag_CXX='${wl}-z,text'
20013 allow_undefined_flag_CXX='${wl}-z,nodefs'
20014 archive_cmds_need_lc_CXX=no
20015 hardcode_shlibpath_var_CXX=no
20016 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
20017 hardcode_libdir_separator_CXX=':'
20018 link_all_deplibs_CXX=yes
20019 export_dynamic_flag_spec_CXX='${wl}-Bexport'
20020 runpath_var='LD_RUN_PATH'
20021
20022 case $cc_basename in
20023 CC*)
20024 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20025 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20026 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
20027 '"$old_archive_cmds_CXX"
20028 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
20029 '"$reload_cmds_CXX"
20030 ;;
20031 *)
20032 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20033 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20034 ;;
20035 esac
20036 ;;
20037
20038 tandem*)
20039 case $cc_basename in
20040 NCC*)
20041 # NonStop-UX NCC 3.20
20042 # FIXME: insert proper C++ library support
20043 ld_shlibs_CXX=no
20044 ;;
20045 *)
20046 # FIXME: insert proper C++ library support
20047 ld_shlibs_CXX=no
20048 ;;
20049 esac
20050 ;;
20051
20052 vxworks*)
20053 # FIXME: insert proper C++ library support
20054 ld_shlibs_CXX=no
20055 ;;
20056
20057 *)
20058 # FIXME: insert proper C++ library support
20059 ld_shlibs_CXX=no
20060 ;;
20061 esac
20062
20063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20064 $as_echo "$ld_shlibs_CXX" >&6; }
20065 test "$ld_shlibs_CXX" = no && can_build_shared=no
20066
20067 GCC_CXX="$GXX"
20068 LD_CXX="$LD"
20069
20070 ## CAVEAT EMPTOR:
20071 ## There is no encapsulation within the following macros, do not change
20072 ## the running order or otherwise move them around unless you know exactly
20073 ## what you are doing...
20074 # Dependencies to place before and after the object being linked:
20075 predep_objects_CXX=
20076 postdep_objects_CXX=
20077 predeps_CXX=
20078 postdeps_CXX=
20079 compiler_lib_search_path_CXX=
20080
20081 cat > conftest.$ac_ext <<_LT_EOF
20082 class Foo
20083 {
20084 public:
20085 Foo (void) { a = 0; }
20086 private:
20087 int a;
20088 };
20089 _LT_EOF
20090
20091 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20092 (eval $ac_compile) 2>&5
20093 ac_status=$?
20094 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20095 test $ac_status = 0; }; then
20096 # Parse the compiler output and extract the necessary
20097 # objects, libraries and library flags.
20098
20099 # Sentinel used to keep track of whether or not we are before
20100 # the conftest object file.
20101 pre_test_object_deps_done=no
20102
20103 for p in `eval "$output_verbose_link_cmd"`; do
20104 case $p in
20105
20106 -L* | -R* | -l*)
20107 # Some compilers place space between "-{L,R}" and the path.
20108 # Remove the space.
20109 if test $p = "-L" ||
20110 test $p = "-R"; then
20111 prev=$p
20112 continue
20113 else
20114 prev=
20115 fi
20116
20117 if test "$pre_test_object_deps_done" = no; then
20118 case $p in
20119 -L* | -R*)
20120 # Internal compiler library paths should come after those
20121 # provided the user. The postdeps already come after the
20122 # user supplied libs so there is no need to process them.
20123 if test -z "$compiler_lib_search_path_CXX"; then
20124 compiler_lib_search_path_CXX="${prev}${p}"
20125 else
20126 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
20127 fi
20128 ;;
20129 # The "-l" case would never come before the object being
20130 # linked, so don't bother handling this case.
20131 esac
20132 else
20133 if test -z "$postdeps_CXX"; then
20134 postdeps_CXX="${prev}${p}"
20135 else
20136 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
20137 fi
20138 fi
20139 ;;
20140
20141 *.$objext)
20142 # This assumes that the test object file only shows up
20143 # once in the compiler output.
20144 if test "$p" = "conftest.$objext"; then
20145 pre_test_object_deps_done=yes
20146 continue
20147 fi
20148
20149 if test "$pre_test_object_deps_done" = no; then
20150 if test -z "$predep_objects_CXX"; then
20151 predep_objects_CXX="$p"
20152 else
20153 predep_objects_CXX="$predep_objects_CXX $p"
20154 fi
20155 else
20156 if test -z "$postdep_objects_CXX"; then
20157 postdep_objects_CXX="$p"
20158 else
20159 postdep_objects_CXX="$postdep_objects_CXX $p"
20160 fi
20161 fi
20162 ;;
20163
20164 *) ;; # Ignore the rest.
20165
20166 esac
20167 done
20168
20169 # Clean up.
20170 rm -f a.out a.exe
20171 else
20172 echo "libtool.m4: error: problem compiling CXX test program"
20173 fi
20174
20175 $RM -f confest.$objext
20176
20177 # PORTME: override above test on systems where it is broken
20178 case $host_os in
20179 interix[3-9]*)
20180 # Interix 3.5 installs completely hosed .la files for C++, so rather than
20181 # hack all around it, let's just trust "g++" to DTRT.
20182 predep_objects_CXX=
20183 postdep_objects_CXX=
20184 postdeps_CXX=
20185 ;;
20186
20187 linux*)
20188 case `$CC -V 2>&1 | sed 5q` in
20189 *Sun\ C*)
20190 # Sun C++ 5.9
20191
20192 # The more standards-conforming stlport4 library is
20193 # incompatible with the Cstd library. Avoid specifying
20194 # it if it's in CXXFLAGS. Ignore libCrun as
20195 # -library=stlport4 depends on it.
20196 case " $CXX $CXXFLAGS " in
20197 *" -library=stlport4 "*)
20198 solaris_use_stlport4=yes
20199 ;;
20200 esac
20201
20202 if test "$solaris_use_stlport4" != yes; then
20203 postdeps_CXX='-library=Cstd -library=Crun'
20204 fi
20205 ;;
20206 esac
20207 ;;
20208
20209 solaris*)
20210 case $cc_basename in
20211 CC*)
20212 # The more standards-conforming stlport4 library is
20213 # incompatible with the Cstd library. Avoid specifying
20214 # it if it's in CXXFLAGS. Ignore libCrun as
20215 # -library=stlport4 depends on it.
20216 case " $CXX $CXXFLAGS " in
20217 *" -library=stlport4 "*)
20218 solaris_use_stlport4=yes
20219 ;;
20220 esac
20221
20222 # Adding this requires a known-good setup of shared libraries for
20223 # Sun compiler versions before 5.6, else PIC objects from an old
20224 # archive will be linked into the output, leading to subtle bugs.
20225 if test "$solaris_use_stlport4" != yes; then
20226 postdeps_CXX='-library=Cstd -library=Crun'
20227 fi
20228 ;;
20229 esac
20230 ;;
20231 esac
20232
20233
20234 case " $postdeps_CXX " in
20235 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
20236 esac
20237 compiler_lib_search_dirs_CXX=
20238 if test -n "${compiler_lib_search_path_CXX}"; then
20239 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
20240 fi
20241
20242
20243
20244
20245
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 lt_prog_compiler_wl_CXX=
20273 lt_prog_compiler_pic_CXX=
20274 lt_prog_compiler_static_CXX=
20275
20276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
20277 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
20278
20279 # C++ specific cases for pic, static, wl, etc.
20280 if test "$GXX" = yes; then
20281 lt_prog_compiler_wl_CXX='-Wl,'
20282 lt_prog_compiler_static_CXX='-static'
20283
20284 case $host_os in
20285 aix*)
20286 # All AIX code is PIC.
20287 if test "$host_cpu" = ia64; then
20288 # AIX 5 now supports IA64 processor
20289 lt_prog_compiler_static_CXX='-Bstatic'
20290 fi
20291 lt_prog_compiler_pic_CXX='-fPIC'
20292 ;;
20293
20294 amigaos*)
20295 case $host_cpu in
20296 powerpc)
20297 # see comment about AmigaOS4 .so support
20298 lt_prog_compiler_pic_CXX='-fPIC'
20299 ;;
20300 m68k)
20301 # FIXME: we need at least 68020 code to build shared libraries, but
20302 # adding the `-m68020' flag to GCC prevents building anything better,
20303 # like `-m68040'.
20304 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
20305 ;;
20306 esac
20307 ;;
20308
20309 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20310 # PIC is the default for these OSes.
20311 ;;
20312 mingw* | cygwin* | os2* | pw32* | cegcc*)
20313 # This hack is so that the source file can tell whether it is being
20314 # built for inclusion in a dll (and should export symbols for example).
20315 # Although the cygwin gcc ignores -fPIC, still need this for old-style
20316 # (--disable-auto-import) libraries
20317 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
20318 ;;
20319 darwin* | rhapsody*)
20320 # PIC is the default on this platform
20321 # Common symbols not allowed in MH_DYLIB files
20322 lt_prog_compiler_pic_CXX='-fno-common'
20323 ;;
20324 *djgpp*)
20325 # DJGPP does not support shared libraries at all
20326 lt_prog_compiler_pic_CXX=
20327 ;;
20328 haiku*)
20329 # PIC is the default for Haiku.
20330 # The "-static" flag exists, but is broken.
20331 lt_prog_compiler_static_CXX=
20332 ;;
20333 interix[3-9]*)
20334 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20335 # Instead, we relocate shared libraries at runtime.
20336 ;;
20337 sysv4*MP*)
20338 if test -d /usr/nec; then
20339 lt_prog_compiler_pic_CXX=-Kconform_pic
20340 fi
20341 ;;
20342 hpux*)
20343 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
20344 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
20345 # sets the default TLS model and affects inlining.
20346 case $host_cpu in
20347 hppa*64*)
20348 ;;
20349 *)
20350 lt_prog_compiler_pic_CXX='-fPIC'
20351 ;;
20352 esac
20353 ;;
20354 *qnx* | *nto*)
20355 # QNX uses GNU C++, but need to define -shared option too, otherwise
20356 # it will coredump.
20357 lt_prog_compiler_pic_CXX='-fPIC -shared'
20358 ;;
20359 *)
20360 lt_prog_compiler_pic_CXX='-fPIC'
20361 ;;
20362 esac
20363 else
20364 case $host_os in
20365 aix[4-9]*)
20366 # All AIX code is PIC.
20367 if test "$host_cpu" = ia64; then
20368 # AIX 5 now supports IA64 processor
20369 lt_prog_compiler_static_CXX='-Bstatic'
20370 else
20371 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
20372 fi
20373 ;;
20374 chorus*)
20375 case $cc_basename in
20376 cxch68*)
20377 # Green Hills C++ Compiler
20378 # _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"
20379 ;;
20380 esac
20381 ;;
20382 dgux*)
20383 case $cc_basename in
20384 ec++*)
20385 lt_prog_compiler_pic_CXX='-KPIC'
20386 ;;
20387 ghcx*)
20388 # Green Hills C++ Compiler
20389 lt_prog_compiler_pic_CXX='-pic'
20390 ;;
20391 *)
20392 ;;
20393 esac
20394 ;;
20395 freebsd* | dragonfly*)
20396 # FreeBSD uses GNU C++
20397 ;;
20398 hpux9* | hpux10* | hpux11*)
20399 case $cc_basename in
20400 CC*)
20401 lt_prog_compiler_wl_CXX='-Wl,'
20402 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20403 if test "$host_cpu" != ia64; then
20404 lt_prog_compiler_pic_CXX='+Z'
20405 fi
20406 ;;
20407 aCC*)
20408 lt_prog_compiler_wl_CXX='-Wl,'
20409 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20410 case $host_cpu in
20411 hppa*64*|ia64*)
20412 # +Z the default
20413 ;;
20414 *)
20415 lt_prog_compiler_pic_CXX='+Z'
20416 ;;
20417 esac
20418 ;;
20419 *)
20420 ;;
20421 esac
20422 ;;
20423 interix*)
20424 # This is c89, which is MS Visual C++ (no shared libs)
20425 # Anyone wants to do a port?
20426 ;;
20427 irix5* | irix6* | nonstopux*)
20428 case $cc_basename in
20429 CC*)
20430 lt_prog_compiler_wl_CXX='-Wl,'
20431 lt_prog_compiler_static_CXX='-non_shared'
20432 # CC pic flag -KPIC is the default.
20433 ;;
20434 *)
20435 ;;
20436 esac
20437 ;;
20438 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20439 case $cc_basename in
20440 KCC*)
20441 # KAI C++ Compiler
20442 lt_prog_compiler_wl_CXX='--backend -Wl,'
20443 lt_prog_compiler_pic_CXX='-fPIC'
20444 ;;
20445 ecpc* )
20446 # old Intel C++ for x86_64 which still supported -KPIC.
20447 lt_prog_compiler_wl_CXX='-Wl,'
20448 lt_prog_compiler_pic_CXX='-KPIC'
20449 lt_prog_compiler_static_CXX='-static'
20450 ;;
20451 icpc* )
20452 # Intel C++, used to be incompatible with GCC.
20453 # ICC 10 doesn't accept -KPIC any more.
20454 lt_prog_compiler_wl_CXX='-Wl,'
20455 lt_prog_compiler_pic_CXX='-fPIC'
20456 lt_prog_compiler_static_CXX='-static'
20457 ;;
20458 pgCC* | pgcpp*)
20459 # Portland Group C++ compiler
20460 lt_prog_compiler_wl_CXX='-Wl,'
20461 lt_prog_compiler_pic_CXX='-fpic'
20462 lt_prog_compiler_static_CXX='-Bstatic'
20463 ;;
20464 cxx*)
20465 # Compaq C++
20466 # Make sure the PIC flag is empty. It appears that all Alpha
20467 # Linux and Compaq Tru64 Unix objects are PIC.
20468 lt_prog_compiler_pic_CXX=
20469 lt_prog_compiler_static_CXX='-non_shared'
20470 ;;
20471 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
20472 # IBM XL 8.0, 9.0 on PPC and BlueGene
20473 lt_prog_compiler_wl_CXX='-Wl,'
20474 lt_prog_compiler_pic_CXX='-qpic'
20475 lt_prog_compiler_static_CXX='-qstaticlink'
20476 ;;
20477 *)
20478 case `$CC -V 2>&1 | sed 5q` in
20479 *Sun\ C*)
20480 # Sun C++ 5.9
20481 lt_prog_compiler_pic_CXX='-KPIC'
20482 lt_prog_compiler_static_CXX='-Bstatic'
20483 lt_prog_compiler_wl_CXX='-Qoption ld '
20484 ;;
20485 esac
20486 ;;
20487 esac
20488 ;;
20489 lynxos*)
20490 ;;
20491 m88k*)
20492 ;;
20493 mvs*)
20494 case $cc_basename in
20495 cxx*)
20496 lt_prog_compiler_pic_CXX='-W c,exportall'
20497 ;;
20498 *)
20499 ;;
20500 esac
20501 ;;
20502 netbsd*)
20503 ;;
20504 *qnx* | *nto*)
20505 # QNX uses GNU C++, but need to define -shared option too, otherwise
20506 # it will coredump.
20507 lt_prog_compiler_pic_CXX='-fPIC -shared'
20508 ;;
20509 osf3* | osf4* | osf5*)
20510 case $cc_basename in
20511 KCC*)
20512 lt_prog_compiler_wl_CXX='--backend -Wl,'
20513 ;;
20514 RCC*)
20515 # Rational C++ 2.4.1
20516 lt_prog_compiler_pic_CXX='-pic'
20517 ;;
20518 cxx*)
20519 # Digital/Compaq C++
20520 lt_prog_compiler_wl_CXX='-Wl,'
20521 # Make sure the PIC flag is empty. It appears that all Alpha
20522 # Linux and Compaq Tru64 Unix objects are PIC.
20523 lt_prog_compiler_pic_CXX=
20524 lt_prog_compiler_static_CXX='-non_shared'
20525 ;;
20526 *)
20527 ;;
20528 esac
20529 ;;
20530 psos*)
20531 ;;
20532 solaris*)
20533 case $cc_basename in
20534 CC*)
20535 # Sun C++ 4.2, 5.x and Centerline C++
20536 lt_prog_compiler_pic_CXX='-KPIC'
20537 lt_prog_compiler_static_CXX='-Bstatic'
20538 lt_prog_compiler_wl_CXX='-Qoption ld '
20539 ;;
20540 gcx*)
20541 # Green Hills C++ Compiler
20542 lt_prog_compiler_pic_CXX='-PIC'
20543 ;;
20544 *)
20545 ;;
20546 esac
20547 ;;
20548 sunos4*)
20549 case $cc_basename in
20550 CC*)
20551 # Sun C++ 4.x
20552 lt_prog_compiler_pic_CXX='-pic'
20553 lt_prog_compiler_static_CXX='-Bstatic'
20554 ;;
20555 lcc*)
20556 # Lucid
20557 lt_prog_compiler_pic_CXX='-pic'
20558 ;;
20559 *)
20560 ;;
20561 esac
20562 ;;
20563 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20564 case $cc_basename in
20565 CC*)
20566 lt_prog_compiler_wl_CXX='-Wl,'
20567 lt_prog_compiler_pic_CXX='-KPIC'
20568 lt_prog_compiler_static_CXX='-Bstatic'
20569 ;;
20570 esac
20571 ;;
20572 tandem*)
20573 case $cc_basename in
20574 NCC*)
20575 # NonStop-UX NCC 3.20
20576 lt_prog_compiler_pic_CXX='-KPIC'
20577 ;;
20578 *)
20579 ;;
20580 esac
20581 ;;
20582 vxworks*)
20583 ;;
20584 *)
20585 lt_prog_compiler_can_build_shared_CXX=no
20586 ;;
20587 esac
20588 fi
20589
20590 case $host_os in
20591 # For platforms which do not support PIC, -DPIC is meaningless:
20592 *djgpp*)
20593 lt_prog_compiler_pic_CXX=
20594 ;;
20595 *)
20596 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20597 ;;
20598 esac
20599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
20600 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
20601
20602
20603
20604 #
20605 # Check to make sure the PIC flag actually works.
20606 #
20607 if test -n "$lt_prog_compiler_pic_CXX"; then
20608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20609 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20610 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
20611 $as_echo_n "(cached) " >&6
20612 else
20613 lt_cv_prog_compiler_pic_works_CXX=no
20614 ac_outfile=conftest.$ac_objext
20615 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20616 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20617 # Insert the option either (1) after the last *FLAGS variable, or
20618 # (2) before a word containing "conftest.", or (3) at the end.
20619 # Note that $ac_compile itself does not contain backslashes and begins
20620 # with a dollar sign (not a hyphen), so the echo should work correctly.
20621 # The option is referenced via a variable to avoid confusing sed.
20622 lt_compile=`echo "$ac_compile" | $SED \
20623 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20624 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20625 -e 's:$: $lt_compiler_flag:'`
20626 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20627 (eval "$lt_compile" 2>conftest.err)
20628 ac_status=$?
20629 cat conftest.err >&5
20630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20631 if (exit $ac_status) && test -s "$ac_outfile"; then
20632 # The compiler can only warn and ignore the option if not recognized
20633 # So say no if there are warnings other than the usual output.
20634 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
20635 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20636 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20637 lt_cv_prog_compiler_pic_works_CXX=yes
20638 fi
20639 fi
20640 $RM conftest*
20641
20642 fi
20643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20644 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20645
20646 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
20647 case $lt_prog_compiler_pic_CXX in
20648 "" | " "*) ;;
20649 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20650 esac
20651 else
20652 lt_prog_compiler_pic_CXX=
20653 lt_prog_compiler_can_build_shared_CXX=no
20654 fi
20655
20656 fi
20657
20658
20659
20660 #
20661 # Check to make sure the static flag actually works.
20662 #
20663 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20665 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20666 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
20667 $as_echo_n "(cached) " >&6
20668 else
20669 lt_cv_prog_compiler_static_works_CXX=no
20670 save_LDFLAGS="$LDFLAGS"
20671 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20672 echo "$lt_simple_link_test_code" > conftest.$ac_ext
20673 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20674 # The linker can only warn and ignore the option if not recognized
20675 # So say no if there are warnings
20676 if test -s conftest.err; then
20677 # Append any errors to the config.log.
20678 cat conftest.err 1>&5
20679 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
20680 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20681 if diff conftest.exp conftest.er2 >/dev/null; then
20682 lt_cv_prog_compiler_static_works_CXX=yes
20683 fi
20684 else
20685 lt_cv_prog_compiler_static_works_CXX=yes
20686 fi
20687 fi
20688 $RM -r conftest*
20689 LDFLAGS="$save_LDFLAGS"
20690
20691 fi
20692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20693 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20694
20695 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
20696 :
20697 else
20698 lt_prog_compiler_static_CXX=
20699 fi
20700
20701
20702
20703
20704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20705 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20706 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20707 $as_echo_n "(cached) " >&6
20708 else
20709 lt_cv_prog_compiler_c_o_CXX=no
20710 $RM -r conftest 2>/dev/null
20711 mkdir conftest
20712 cd conftest
20713 mkdir out
20714 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20715
20716 lt_compiler_flag="-o out/conftest2.$ac_objext"
20717 # Insert the option either (1) after the last *FLAGS variable, or
20718 # (2) before a word containing "conftest.", or (3) at the end.
20719 # Note that $ac_compile itself does not contain backslashes and begins
20720 # with a dollar sign (not a hyphen), so the echo should work correctly.
20721 lt_compile=`echo "$ac_compile" | $SED \
20722 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20723 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20724 -e 's:$: $lt_compiler_flag:'`
20725 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20726 (eval "$lt_compile" 2>out/conftest.err)
20727 ac_status=$?
20728 cat out/conftest.err >&5
20729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20730 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20731 then
20732 # The compiler can only warn and ignore the option if not recognized
20733 # So say no if there are warnings
20734 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20735 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20736 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20737 lt_cv_prog_compiler_c_o_CXX=yes
20738 fi
20739 fi
20740 chmod u+w . 2>&5
20741 $RM conftest*
20742 # SGI C++ compiler will create directory out/ii_files/ for
20743 # template instantiation
20744 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20745 $RM out/* && rmdir out
20746 cd ..
20747 $RM -r conftest
20748 $RM conftest*
20749
20750 fi
20751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20752 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20753
20754
20755
20756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20757 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20758 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20759 $as_echo_n "(cached) " >&6
20760 else
20761 lt_cv_prog_compiler_c_o_CXX=no
20762 $RM -r conftest 2>/dev/null
20763 mkdir conftest
20764 cd conftest
20765 mkdir out
20766 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20767
20768 lt_compiler_flag="-o out/conftest2.$ac_objext"
20769 # Insert the option either (1) after the last *FLAGS variable, or
20770 # (2) before a word containing "conftest.", or (3) at the end.
20771 # Note that $ac_compile itself does not contain backslashes and begins
20772 # with a dollar sign (not a hyphen), so the echo should work correctly.
20773 lt_compile=`echo "$ac_compile" | $SED \
20774 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20775 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20776 -e 's:$: $lt_compiler_flag:'`
20777 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20778 (eval "$lt_compile" 2>out/conftest.err)
20779 ac_status=$?
20780 cat out/conftest.err >&5
20781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20782 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20783 then
20784 # The compiler can only warn and ignore the option if not recognized
20785 # So say no if there are warnings
20786 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20787 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20788 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20789 lt_cv_prog_compiler_c_o_CXX=yes
20790 fi
20791 fi
20792 chmod u+w . 2>&5
20793 $RM conftest*
20794 # SGI C++ compiler will create directory out/ii_files/ for
20795 # template instantiation
20796 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20797 $RM out/* && rmdir out
20798 cd ..
20799 $RM -r conftest
20800 $RM conftest*
20801
20802 fi
20803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20804 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20805
20806
20807
20808
20809 hard_links="nottested"
20810 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20811 # do not overwrite the value of need_locks provided by the user
20812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20813 $as_echo_n "checking if we can lock with hard links... " >&6; }
20814 hard_links=yes
20815 $RM conftest*
20816 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20817 touch conftest.a
20818 ln conftest.a conftest.b 2>&5 || hard_links=no
20819 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20821 $as_echo "$hard_links" >&6; }
20822 if test "$hard_links" = no; then
20823 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20824 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20825 need_locks=warn
20826 fi
20827 else
20828 need_locks=no
20829 fi
20830
20831
20832
20833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20834 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20835
20836 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20837 case $host_os in
20838 aix[4-9]*)
20839 # If we're using GNU nm, then we don't want the "-C" option.
20840 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20841 # Also, AIX nm treats weak defined symbols like other global defined
20842 # symbols, whereas GNU nm marks them as "W".
20843 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
20844 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'
20845 else
20846 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'
20847 fi
20848 ;;
20849 pw32*)
20850 export_symbols_cmds_CXX="$ltdll_cmds"
20851 ;;
20852 cygwin* | mingw* | cegcc*)
20853 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'
20854 ;;
20855 *)
20856 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20857 ;;
20858 esac
20859 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20860
20861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20862 $as_echo "$ld_shlibs_CXX" >&6; }
20863 test "$ld_shlibs_CXX" = no && can_build_shared=no
20864
20865 with_gnu_ld_CXX=$with_gnu_ld
20866
20867
20868
20869
20870
20871
20872 #
20873 # Do we need to explicitly link libc?
20874 #
20875 case "x$archive_cmds_need_lc_CXX" in
20876 x|xyes)
20877 # Assume -lc should be added
20878 archive_cmds_need_lc_CXX=yes
20879
20880 if test "$enable_shared" = yes && test "$GCC" = yes; then
20881 case $archive_cmds_CXX in
20882 *'~'*)
20883 # FIXME: we may have to deal with multi-command sequences.
20884 ;;
20885 '$CC '*)
20886 # Test whether the compiler implicitly links with -lc since on some
20887 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20888 # to ld, don't add -lc before -lgcc.
20889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20890 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20891 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
20892 $as_echo_n "(cached) " >&6
20893 else
20894 $RM conftest*
20895 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20896
20897 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20898 (eval $ac_compile) 2>&5
20899 ac_status=$?
20900 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20901 test $ac_status = 0; } 2>conftest.err; then
20902 soname=conftest
20903 lib=conftest
20904 libobjs=conftest.$ac_objext
20905 deplibs=
20906 wl=$lt_prog_compiler_wl_CXX
20907 pic_flag=$lt_prog_compiler_pic_CXX
20908 compiler_flags=-v
20909 linker_flags=-v
20910 verstring=
20911 output_objdir=.
20912 libname=conftest
20913 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20914 allow_undefined_flag_CXX=
20915 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20916 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
20917 ac_status=$?
20918 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20919 test $ac_status = 0; }
20920 then
20921 lt_cv_archive_cmds_need_lc_CXX=no
20922 else
20923 lt_cv_archive_cmds_need_lc_CXX=yes
20924 fi
20925 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20926 else
20927 cat conftest.err 1>&5
20928 fi
20929 $RM conftest*
20930
20931 fi
20932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20933 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20934 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
20935 ;;
20936 esac
20937 fi
20938 ;;
20939 esac
20940
20941
20942
20943
20944
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
21005 $as_echo_n "checking dynamic linker characteristics... " >&6; }
21006
21007 library_names_spec=
21008 libname_spec='lib$name'
21009 soname_spec=
21010 shrext_cmds=".so"
21011 postinstall_cmds=
21012 postuninstall_cmds=
21013 finish_cmds=
21014 finish_eval=
21015 shlibpath_var=
21016 shlibpath_overrides_runpath=unknown
21017 version_type=none
21018 dynamic_linker="$host_os ld.so"
21019 sys_lib_dlsearch_path_spec="/lib /usr/lib"
21020 need_lib_prefix=unknown
21021 hardcode_into_libs=no
21022
21023 # when you set need_version to no, make sure it does not cause -set_version
21024 # flags to be left without arguments
21025 need_version=unknown
21026
21027 case $host_os in
21028 aix3*)
21029 version_type=linux
21030 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
21031 shlibpath_var=LIBPATH
21032
21033 # AIX 3 has no versioning support, so we append a major version to the name.
21034 soname_spec='${libname}${release}${shared_ext}$major'
21035 ;;
21036
21037 aix[4-9]*)
21038 version_type=linux
21039 need_lib_prefix=no
21040 need_version=no
21041 hardcode_into_libs=yes
21042 if test "$host_cpu" = ia64; then
21043 # AIX 5 supports IA64
21044 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
21045 shlibpath_var=LD_LIBRARY_PATH
21046 else
21047 # With GCC up to 2.95.x, collect2 would create an import file
21048 # for dependence libraries. The import file would start with
21049 # the line `#! .'. This would cause the generated library to
21050 # depend on `.', always an invalid library. This was fixed in
21051 # development snapshots of GCC prior to 3.0.
21052 case $host_os in
21053 aix4 | aix4.[01] | aix4.[01].*)
21054 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
21055 echo ' yes '
21056 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
21057 :
21058 else
21059 can_build_shared=no
21060 fi
21061 ;;
21062 esac
21063 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
21064 # soname into executable. Probably we can add versioning support to
21065 # collect2, so additional links can be useful in future.
21066 if test "$aix_use_runtimelinking" = yes; then
21067 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
21068 # instead of lib<name>.a to let people know that these are not
21069 # typical AIX shared libraries.
21070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21071 else
21072 # We preserve .a as extension for shared libraries through AIX4.2
21073 # and later when we are not doing run time linking.
21074 library_names_spec='${libname}${release}.a $libname.a'
21075 soname_spec='${libname}${release}${shared_ext}$major'
21076 fi
21077 shlibpath_var=LIBPATH
21078 fi
21079 ;;
21080
21081 amigaos*)
21082 case $host_cpu in
21083 powerpc)
21084 # Since July 2007 AmigaOS4 officially supports .so libraries.
21085 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
21086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21087 ;;
21088 m68k)
21089 library_names_spec='$libname.ixlibrary $libname.a'
21090 # Create ${libname}_ixlibrary.a entries in /sys/libs.
21091 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'
21092 ;;
21093 esac
21094 ;;
21095
21096 beos*)
21097 library_names_spec='${libname}${shared_ext}'
21098 dynamic_linker="$host_os ld.so"
21099 shlibpath_var=LIBRARY_PATH
21100 ;;
21101
21102 bsdi[45]*)
21103 version_type=linux
21104 need_version=no
21105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21106 soname_spec='${libname}${release}${shared_ext}$major'
21107 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
21108 shlibpath_var=LD_LIBRARY_PATH
21109 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
21110 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
21111 # the default ld.so.conf also contains /usr/contrib/lib and
21112 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
21113 # libtool to hard-code these into programs
21114 ;;
21115
21116 cygwin* | mingw* | pw32* | cegcc*)
21117 version_type=windows
21118 shrext_cmds=".dll"
21119 need_version=no
21120 need_lib_prefix=no
21121
21122 case $GCC,$host_os in
21123 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
21124 library_names_spec='$libname.dll.a'
21125 # DLL is installed to $(libdir)/../bin by postinstall_cmds
21126 postinstall_cmds='base_file=`basename \${file}`~
21127 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
21128 dldir=$destdir/`dirname \$dlpath`~
21129 test -d \$dldir || mkdir -p \$dldir~
21130 $install_prog $dir/$dlname \$dldir/$dlname~
21131 chmod a+x \$dldir/$dlname~
21132 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
21133 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
21134 fi'
21135 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
21136 dlpath=$dir/\$dldll~
21137 $RM \$dlpath'
21138 shlibpath_overrides_runpath=yes
21139
21140 case $host_os in
21141 cygwin*)
21142 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
21143 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21144
21145 ;;
21146 mingw* | cegcc*)
21147 # MinGW DLLs use traditional 'lib' prefix
21148 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21149 ;;
21150 pw32*)
21151 # pw32 DLLs use 'pw' prefix rather than 'lib'
21152 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21153 ;;
21154 esac
21155 ;;
21156
21157 *)
21158 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
21159 ;;
21160 esac
21161 dynamic_linker='Win32 ld.exe'
21162 # FIXME: first we should search . and the directory the executable is in
21163 shlibpath_var=PATH
21164 ;;
21165
21166 darwin* | rhapsody*)
21167 dynamic_linker="$host_os dyld"
21168 version_type=darwin
21169 need_lib_prefix=no
21170 need_version=no
21171 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
21172 soname_spec='${libname}${release}${major}$shared_ext'
21173 shlibpath_overrides_runpath=yes
21174 shlibpath_var=DYLD_LIBRARY_PATH
21175 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
21176
21177 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
21178 ;;
21179
21180 dgux*)
21181 version_type=linux
21182 need_lib_prefix=no
21183 need_version=no
21184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
21185 soname_spec='${libname}${release}${shared_ext}$major'
21186 shlibpath_var=LD_LIBRARY_PATH
21187 ;;
21188
21189 freebsd* | dragonfly*)
21190 # DragonFly does not have aout. When/if they implement a new
21191 # versioning mechanism, adjust this.
21192 if test -x /usr/bin/objformat; then
21193 objformat=`/usr/bin/objformat`
21194 else
21195 case $host_os in
21196 freebsd[23].*) objformat=aout ;;
21197 *) objformat=elf ;;
21198 esac
21199 fi
21200 version_type=freebsd-$objformat
21201 case $version_type in
21202 freebsd-elf*)
21203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21204 need_version=no
21205 need_lib_prefix=no
21206 ;;
21207 freebsd-*)
21208 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
21209 need_version=yes
21210 ;;
21211 esac
21212 shlibpath_var=LD_LIBRARY_PATH
21213 case $host_os in
21214 freebsd2.*)
21215 shlibpath_overrides_runpath=yes
21216 ;;
21217 freebsd3.[01]* | freebsdelf3.[01]*)
21218 shlibpath_overrides_runpath=yes
21219 hardcode_into_libs=yes
21220 ;;
21221 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
21222 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
21223 shlibpath_overrides_runpath=no
21224 hardcode_into_libs=yes
21225 ;;
21226 *) # from 4.6 on, and DragonFly
21227 shlibpath_overrides_runpath=yes
21228 hardcode_into_libs=yes
21229 ;;
21230 esac
21231 ;;
21232
21233 gnu*)
21234 version_type=linux
21235 need_lib_prefix=no
21236 need_version=no
21237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21238 soname_spec='${libname}${release}${shared_ext}$major'
21239 shlibpath_var=LD_LIBRARY_PATH
21240 hardcode_into_libs=yes
21241 ;;
21242
21243 haiku*)
21244 version_type=linux
21245 need_lib_prefix=no
21246 need_version=no
21247 dynamic_linker="$host_os runtime_loader"
21248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21249 soname_spec='${libname}${release}${shared_ext}$major'
21250 shlibpath_var=LIBRARY_PATH
21251 shlibpath_overrides_runpath=yes
21252 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
21253 hardcode_into_libs=yes
21254 ;;
21255
21256 hpux9* | hpux10* | hpux11*)
21257 # Give a soname corresponding to the major version so that dld.sl refuses to
21258 # link against other versions.
21259 version_type=sunos
21260 need_lib_prefix=no
21261 need_version=no
21262 case $host_cpu in
21263 ia64*)
21264 shrext_cmds='.so'
21265 hardcode_into_libs=yes
21266 dynamic_linker="$host_os dld.so"
21267 shlibpath_var=LD_LIBRARY_PATH
21268 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21270 soname_spec='${libname}${release}${shared_ext}$major'
21271 if test "X$HPUX_IA64_MODE" = X32; then
21272 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
21273 else
21274 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
21275 fi
21276 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21277 ;;
21278 hppa*64*)
21279 shrext_cmds='.sl'
21280 hardcode_into_libs=yes
21281 dynamic_linker="$host_os dld.sl"
21282 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
21283 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21285 soname_spec='${libname}${release}${shared_ext}$major'
21286 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
21287 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21288 ;;
21289 *)
21290 shrext_cmds='.sl'
21291 dynamic_linker="$host_os dld.sl"
21292 shlibpath_var=SHLIB_PATH
21293 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
21294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21295 soname_spec='${libname}${release}${shared_ext}$major'
21296 ;;
21297 esac
21298 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
21299 postinstall_cmds='chmod 555 $lib'
21300 # or fails outright, so override atomically:
21301 install_override_mode=555
21302 ;;
21303
21304 interix[3-9]*)
21305 version_type=linux
21306 need_lib_prefix=no
21307 need_version=no
21308 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21309 soname_spec='${libname}${release}${shared_ext}$major'
21310 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
21311 shlibpath_var=LD_LIBRARY_PATH
21312 shlibpath_overrides_runpath=no
21313 hardcode_into_libs=yes
21314 ;;
21315
21316 irix5* | irix6* | nonstopux*)
21317 case $host_os in
21318 nonstopux*) version_type=nonstopux ;;
21319 *)
21320 if test "$lt_cv_prog_gnu_ld" = yes; then
21321 version_type=linux
21322 else
21323 version_type=irix
21324 fi ;;
21325 esac
21326 need_lib_prefix=no
21327 need_version=no
21328 soname_spec='${libname}${release}${shared_ext}$major'
21329 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21330 case $host_os in
21331 irix5* | nonstopux*)
21332 libsuff= shlibsuff=
21333 ;;
21334 *)
21335 case $LD in # libtool.m4 will add one of these switches to LD
21336 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
21337 libsuff= shlibsuff= libmagic=32-bit;;
21338 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
21339 libsuff=32 shlibsuff=N32 libmagic=N32;;
21340 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
21341 libsuff=64 shlibsuff=64 libmagic=64-bit;;
21342 *) libsuff= shlibsuff= libmagic=never-match;;
21343 esac
21344 ;;
21345 esac
21346 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
21347 shlibpath_overrides_runpath=no
21348 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21349 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
21350 hardcode_into_libs=yes
21351 ;;
21352
21353 # No shared lib support for Linux oldld, aout, or coff.
21354 linux*oldld* | linux*aout* | linux*coff*)
21355 dynamic_linker=no
21356 ;;
21357
21358 # This must be Linux ELF.
21359 linux* | k*bsd*-gnu | kopensolaris*-gnu)
21360 version_type=linux
21361 need_lib_prefix=no
21362 need_version=no
21363 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21364 soname_spec='${libname}${release}${shared_ext}$major'
21365 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21366 shlibpath_var=LD_LIBRARY_PATH
21367 shlibpath_overrides_runpath=no
21368
21369 # Some binutils ld are patched to set DT_RUNPATH
21370 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
21371 $as_echo_n "(cached) " >&6
21372 else
21373 lt_cv_shlibpath_overrides_runpath=no
21374 save_LDFLAGS=$LDFLAGS
21375 save_libdir=$libdir
21376 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
21377 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
21378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21379 /* end confdefs.h. */
21380
21381 int
21382 main ()
21383 {
21384
21385 ;
21386 return 0;
21387 }
21388 _ACEOF
21389 if ac_fn_cxx_try_link "$LINENO"; then :
21390 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
21391 lt_cv_shlibpath_overrides_runpath=yes
21392 fi
21393 fi
21394 rm -f core conftest.err conftest.$ac_objext \
21395 conftest$ac_exeext conftest.$ac_ext
21396 LDFLAGS=$save_LDFLAGS
21397 libdir=$save_libdir
21398
21399 fi
21400
21401 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
21402
21403 # This implies no fast_install, which is unacceptable.
21404 # Some rework will be needed to allow for fast_install
21405 # before this can be enabled.
21406 hardcode_into_libs=yes
21407
21408 # Append ld.so.conf contents to the search path
21409 if test -f /etc/ld.so.conf; then
21410 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' ' '`
21411 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
21412 fi
21413
21414 # We used to test for /lib/ld.so.1 and disable shared libraries on
21415 # powerpc, because MkLinux only supported shared libraries with the
21416 # GNU dynamic linker. Since this was broken with cross compilers,
21417 # most powerpc-linux boxes support dynamic linking these days and
21418 # people can always --disable-shared, the test was removed, and we
21419 # assume the GNU/Linux dynamic linker is in use.
21420 dynamic_linker='GNU/Linux ld.so'
21421 ;;
21422
21423 netbsd*)
21424 version_type=sunos
21425 need_lib_prefix=no
21426 need_version=no
21427 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
21428 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21429 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21430 dynamic_linker='NetBSD (a.out) ld.so'
21431 else
21432 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21433 soname_spec='${libname}${release}${shared_ext}$major'
21434 dynamic_linker='NetBSD ld.elf_so'
21435 fi
21436 shlibpath_var=LD_LIBRARY_PATH
21437 shlibpath_overrides_runpath=yes
21438 hardcode_into_libs=yes
21439 ;;
21440
21441 newsos6)
21442 version_type=linux
21443 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21444 shlibpath_var=LD_LIBRARY_PATH
21445 shlibpath_overrides_runpath=yes
21446 ;;
21447
21448 *nto* | *qnx*)
21449 version_type=qnx
21450 need_lib_prefix=no
21451 need_version=no
21452 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21453 soname_spec='${libname}${release}${shared_ext}$major'
21454 shlibpath_var=LD_LIBRARY_PATH
21455 shlibpath_overrides_runpath=no
21456 hardcode_into_libs=yes
21457 dynamic_linker='ldqnx.so'
21458 ;;
21459
21460 openbsd*)
21461 version_type=sunos
21462 sys_lib_dlsearch_path_spec="/usr/lib"
21463 need_lib_prefix=no
21464 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21465 case $host_os in
21466 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
21467 *) need_version=no ;;
21468 esac
21469 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21470 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21471 shlibpath_var=LD_LIBRARY_PATH
21472 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21473 case $host_os in
21474 openbsd2.[89] | openbsd2.[89].*)
21475 shlibpath_overrides_runpath=no
21476 ;;
21477 *)
21478 shlibpath_overrides_runpath=yes
21479 ;;
21480 esac
21481 else
21482 shlibpath_overrides_runpath=yes
21483 fi
21484 ;;
21485
21486 os2*)
21487 libname_spec='$name'
21488 shrext_cmds=".dll"
21489 need_lib_prefix=no
21490 library_names_spec='$libname${shared_ext} $libname.a'
21491 dynamic_linker='OS/2 ld.exe'
21492 shlibpath_var=LIBPATH
21493 ;;
21494
21495 osf3* | osf4* | osf5*)
21496 version_type=osf
21497 need_lib_prefix=no
21498 need_version=no
21499 soname_spec='${libname}${release}${shared_ext}$major'
21500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21501 shlibpath_var=LD_LIBRARY_PATH
21502 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21503 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21504 ;;
21505
21506 rdos*)
21507 dynamic_linker=no
21508 ;;
21509
21510 solaris*)
21511 version_type=linux
21512 need_lib_prefix=no
21513 need_version=no
21514 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21515 soname_spec='${libname}${release}${shared_ext}$major'
21516 shlibpath_var=LD_LIBRARY_PATH
21517 shlibpath_overrides_runpath=yes
21518 hardcode_into_libs=yes
21519 # ldd complains unless libraries are executable
21520 postinstall_cmds='chmod +x $lib'
21521 ;;
21522
21523 sunos4*)
21524 version_type=sunos
21525 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21526 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21527 shlibpath_var=LD_LIBRARY_PATH
21528 shlibpath_overrides_runpath=yes
21529 if test "$with_gnu_ld" = yes; then
21530 need_lib_prefix=no
21531 fi
21532 need_version=yes
21533 ;;
21534
21535 sysv4 | sysv4.3*)
21536 version_type=linux
21537 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21538 soname_spec='${libname}${release}${shared_ext}$major'
21539 shlibpath_var=LD_LIBRARY_PATH
21540 case $host_vendor in
21541 sni)
21542 shlibpath_overrides_runpath=no
21543 need_lib_prefix=no
21544 runpath_var=LD_RUN_PATH
21545 ;;
21546 siemens)
21547 need_lib_prefix=no
21548 ;;
21549 motorola)
21550 need_lib_prefix=no
21551 need_version=no
21552 shlibpath_overrides_runpath=no
21553 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21554 ;;
21555 esac
21556 ;;
21557
21558 sysv4*MP*)
21559 if test -d /usr/nec ;then
21560 version_type=linux
21561 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21562 soname_spec='$libname${shared_ext}.$major'
21563 shlibpath_var=LD_LIBRARY_PATH
21564 fi
21565 ;;
21566
21567 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21568 version_type=freebsd-elf
21569 need_lib_prefix=no
21570 need_version=no
21571 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21572 soname_spec='${libname}${release}${shared_ext}$major'
21573 shlibpath_var=LD_LIBRARY_PATH
21574 shlibpath_overrides_runpath=yes
21575 hardcode_into_libs=yes
21576 if test "$with_gnu_ld" = yes; then
21577 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21578 else
21579 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21580 case $host_os in
21581 sco3.2v5*)
21582 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21583 ;;
21584 esac
21585 fi
21586 sys_lib_dlsearch_path_spec='/usr/lib'
21587 ;;
21588
21589 tpf*)
21590 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
21591 version_type=linux
21592 need_lib_prefix=no
21593 need_version=no
21594 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21595 shlibpath_var=LD_LIBRARY_PATH
21596 shlibpath_overrides_runpath=no
21597 hardcode_into_libs=yes
21598 ;;
21599
21600 uts4*)
21601 version_type=linux
21602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21603 soname_spec='${libname}${release}${shared_ext}$major'
21604 shlibpath_var=LD_LIBRARY_PATH
21605 ;;
21606
21607 *)
21608 dynamic_linker=no
21609 ;;
21610 esac
21611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21612 $as_echo "$dynamic_linker" >&6; }
21613 test "$dynamic_linker" = no && can_build_shared=no
21614
21615 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21616 if test "$GCC" = yes; then
21617 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21618 fi
21619
21620 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21621 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
21622 fi
21623 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21624 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
21625 fi
21626
21627
21628
21629
21630
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21665 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21666 hardcode_action_CXX=
21667 if test -n "$hardcode_libdir_flag_spec_CXX" ||
21668 test -n "$runpath_var_CXX" ||
21669 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21670
21671 # We can hardcode non-existent directories.
21672 if test "$hardcode_direct_CXX" != no &&
21673 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21674 # have to relink, otherwise we might link with an installed library
21675 # when we should be linking with a yet-to-be-installed one
21676 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21677 test "$hardcode_minus_L_CXX" != no; then
21678 # Linking always hardcodes the temporary library directory.
21679 hardcode_action_CXX=relink
21680 else
21681 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21682 hardcode_action_CXX=immediate
21683 fi
21684 else
21685 # We cannot hardcode anything, or else we can only hardcode existing
21686 # directories.
21687 hardcode_action_CXX=unsupported
21688 fi
21689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21690 $as_echo "$hardcode_action_CXX" >&6; }
21691
21692 if test "$hardcode_action_CXX" = relink ||
21693 test "$inherit_rpath_CXX" = yes; then
21694 # Fast installation is not supported
21695 enable_fast_install=no
21696 elif test "$shlibpath_overrides_runpath" = yes ||
21697 test "$enable_shared" = no; then
21698 # Fast installation is not necessary
21699 enable_fast_install=needless
21700 fi
21701
21702
21703
21704
21705
21706
21707
21708 fi # test -n "$compiler"
21709
21710 CC=$lt_save_CC
21711 LDCXX=$LD
21712 LD=$lt_save_LD
21713 GCC=$lt_save_GCC
21714 with_gnu_ld=$lt_save_with_gnu_ld
21715 lt_cv_path_LDCXX=$lt_cv_path_LD
21716 lt_cv_path_LD=$lt_save_path_LD
21717 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21718 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21719 fi # test "$_lt_caught_CXX_error" != yes
21720
21721 ac_ext=cpp
21722 ac_cpp='$CXXCPP $CPPFLAGS'
21723 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21724 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21725 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21726
21727
21728
21729
21730
21731
21732
21733
21734
21735
21736
21737
21738
21739
21740
21741
21742 # Only expand once:
21743
21744
21745
21746
21747
21748 # Identify the assembler which will work hand-in-glove with the newly
21749 # built GCC, so that we can examine its features. This is the assembler
21750 # which will be driven by the driver program.
21751 #
21752 # If build != host, and we aren't building gas in-tree, we identify a
21753 # build->target assembler and hope that it will have the same features
21754 # as the host->target assembler we'll be using.
21755 gcc_cv_gas_major_version=
21756 gcc_cv_gas_minor_version=
21757 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
21758
21759 if test "${gcc_cv_as+set}" = set; then :
21760
21761 else
21762
21763 if test -x "$DEFAULT_ASSEMBLER"; then
21764 gcc_cv_as="$DEFAULT_ASSEMBLER"
21765 elif test -f $gcc_cv_as_gas_srcdir/configure.ac \
21766 && test -f ../gas/Makefile \
21767 && test x$build = x$host; then
21768 gcc_cv_as=../gas/as-new$build_exeext
21769 elif test -x as$build_exeext; then
21770 # Build using assembler in the current directory.
21771 gcc_cv_as=./as$build_exeext
21772 elif ( set dummy $AS_FOR_TARGET; test -x $2 ); then
21773 gcc_cv_as="$AS_FOR_TARGET"
21774 else
21775 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
21776 set dummy $AS_FOR_TARGET; ac_word=$2
21777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21778 $as_echo_n "checking for $ac_word... " >&6; }
21779 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
21780 $as_echo_n "(cached) " >&6
21781 else
21782 case $gcc_cv_as in
21783 [\\/]* | ?:[\\/]*)
21784 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
21785 ;;
21786 *)
21787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21788 for as_dir in $PATH
21789 do
21790 IFS=$as_save_IFS
21791 test -z "$as_dir" && as_dir=.
21792 for ac_exec_ext in '' $ac_executable_extensions; do
21793 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21794 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
21795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21796 break 2
21797 fi
21798 done
21799 done
21800 IFS=$as_save_IFS
21801
21802 ;;
21803 esac
21804 fi
21805 gcc_cv_as=$ac_cv_path_gcc_cv_as
21806 if test -n "$gcc_cv_as"; then
21807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21808 $as_echo "$gcc_cv_as" >&6; }
21809 else
21810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21811 $as_echo "no" >&6; }
21812 fi
21813
21814
21815 fi
21816 fi
21817
21818 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
21819
21820 case "$ORIGINAL_AS_FOR_TARGET" in
21821 ./as | ./as$build_exeext) ;;
21822 *) ac_config_files="$ac_config_files as:exec-tool.in"
21823 ;;
21824 esac
21825
21826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
21827 $as_echo_n "checking what assembler to use... " >&6; }
21828 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
21829 # Single tree build which includes gas. We want to prefer it
21830 # over whatever linker top-level may have detected, since
21831 # we'll use what we're building after installation anyway.
21832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
21833 $as_echo "newly built gas" >&6; }
21834 in_tree_gas=yes
21835 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21836 for f in $gcc_cv_as_bfd_srcdir/configure \
21837 $gcc_cv_as_gas_srcdir/configure \
21838 $gcc_cv_as_gas_srcdir/configure.ac \
21839 $gcc_cv_as_gas_srcdir/Makefile.in ; do
21840 gcc_cv_gas_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21841 if test x$gcc_cv_gas_version != x; then
21842 break
21843 fi
21844 done
21845 case $gcc_cv_gas_version in
21846 VERSION=[0-9]*) ;;
21847 *) as_fn_error "cannot find version of in-tree assembler" "$LINENO" 5;;
21848 esac
21849 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
21850 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21851 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
21852 case $gcc_cv_gas_patch_version in
21853 "") gcc_cv_gas_patch_version="0" ;;
21854 esac
21855 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
21856 + $gcc_cv_gas_minor_version \) \* 1000 \
21857 + $gcc_cv_gas_patch_version`
21858
21859 in_tree_gas_is_elf=no
21860 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
21861 || (grep 'obj_format = multi' ../gas/Makefile \
21862 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
21863 then
21864 in_tree_gas_is_elf=yes
21865 fi
21866 else
21867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21868 $as_echo "$gcc_cv_as" >&6; }
21869 in_tree_gas=no
21870 fi
21871
21872 default_ld=
21873 # Check whether --enable-ld was given.
21874 if test "${enable_ld+set}" = set; then :
21875 enableval=$enable_ld; case "${enableval}" in
21876 no)
21877 default_ld=ld.gold
21878 ;;
21879 esac
21880 fi
21881
21882
21883 install_gold_as_default=no
21884 # Check whether --enable-gold was given.
21885 if test "${enable_gold+set}" = set; then :
21886 enableval=$enable_gold; case "${enableval}" in
21887 default)
21888 install_gold_as_default=yes
21889 ;;
21890 yes)
21891 if test x${default_ld} != x; then
21892 install_gold_as_default=yes
21893 fi
21894 ;;
21895 no)
21896 ;;
21897 *)
21898 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
21899 ;;
21900 esac
21901 fi
21902
21903
21904 # Identify the linker which will work hand-in-glove with the newly
21905 # built GCC, so that we can examine its features. This is the linker
21906 # which will be driven by the driver program.
21907 #
21908 # If build != host, and we aren't building gas in-tree, we identify a
21909 # build->target linker and hope that it will have the same features
21910 # as the host->target linker we'll be using.
21911 gcc_cv_gld_major_version=
21912 gcc_cv_gld_minor_version=
21913 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
21914 gcc_cv_ld_gold_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gold
21915 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21916
21917 if test "${gcc_cv_ld+set}" = set; then :
21918
21919 else
21920
21921 if test -x "$DEFAULT_LINKER"; then
21922 gcc_cv_ld="$DEFAULT_LINKER"
21923 elif test $install_gold_as_default = yes \
21924 && test -f $gcc_cv_ld_gold_srcdir/configure.ac \
21925 && test -f ../gold/Makefile \
21926 && test x$build = x$host; then
21927 gcc_cv_ld=../gold/ld-new$build_exeext
21928 elif test -f $gcc_cv_ld_gld_srcdir/configure.ac \
21929 && test -f ../ld/Makefile \
21930 && test x$build = x$host; then
21931 gcc_cv_ld=../ld/ld-new$build_exeext
21932 elif test -x collect-ld$build_exeext; then
21933 # Build using linker in the current directory.
21934 gcc_cv_ld=./collect-ld$build_exeext
21935 elif ( set dummy $LD_FOR_TARGET; test -x $2 ); then
21936 gcc_cv_ld="$LD_FOR_TARGET"
21937 else
21938 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
21939 set dummy $LD_FOR_TARGET; ac_word=$2
21940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21941 $as_echo_n "checking for $ac_word... " >&6; }
21942 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
21943 $as_echo_n "(cached) " >&6
21944 else
21945 case $gcc_cv_ld in
21946 [\\/]* | ?:[\\/]*)
21947 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
21948 ;;
21949 *)
21950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21951 for as_dir in $PATH
21952 do
21953 IFS=$as_save_IFS
21954 test -z "$as_dir" && as_dir=.
21955 for ac_exec_ext in '' $ac_executable_extensions; do
21956 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21957 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
21958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21959 break 2
21960 fi
21961 done
21962 done
21963 IFS=$as_save_IFS
21964
21965 ;;
21966 esac
21967 fi
21968 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
21969 if test -n "$gcc_cv_ld"; then
21970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21971 $as_echo "$gcc_cv_ld" >&6; }
21972 else
21973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21974 $as_echo "no" >&6; }
21975 fi
21976
21977
21978 fi
21979 fi
21980
21981 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
21982 PLUGIN_LD_SUFFIX=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
21983 # if the PLUGIN_LD is set ld-new, just have it as ld
21984 # as that is the installed named.
21985 if test x$PLUGIN_LD_SUFFIX = xld-new \
21986 || test x$PLUGIN_LD_SUFFIX = xcollect-ld ; then
21987 PLUGIN_LD_SUFFIX=ld
21988 fi
21989
21990 # Check whether --with-plugin-ld was given.
21991 if test "${with_plugin_ld+set}" = set; then :
21992 withval=$with_plugin_ld; if test x"$withval" != x; then
21993 ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
21994 PLUGIN_LD_SUFFIX=`echo $withval | sed -e "s,$target_alias-,,"`
21995 fi
21996 fi
21997
21998
21999
22000 cat >>confdefs.h <<_ACEOF
22001 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
22002 _ACEOF
22003
22004
22005 # Check to see if we are using gold instead of ld
22006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
22007 $as_echo_n "checking whether we are using gold... " >&6; }
22008 ld_is_gold=no
22009 if test x$gcc_cv_ld != x; then
22010 if $gcc_cv_ld --version 2>/dev/null | sed 1q \
22011 | grep "GNU gold" > /dev/null; then
22012 ld_is_gold=yes
22013 fi
22014 fi
22015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
22016 $as_echo "$ld_is_gold" >&6; }
22017
22018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gold linker with split stack support as non default" >&5
22019 $as_echo_n "checking gold linker with split stack support as non default... " >&6; }
22020 # Check to see if default ld is not gold, but gold is
22021 # available and has support for split stack. If gcc was configured
22022 # with gold then no checking is done.
22023 #
22024 if test x$ld_is_gold = xno && which ${gcc_cv_ld}.gold >/dev/null 2>&1; then
22025
22026 # For platforms other than powerpc64*, enable as appropriate.
22027
22028 gold_non_default=no
22029 ld_gold=`which ${gcc_cv_ld}.gold`
22030 # Make sure this gold has minimal split stack support
22031 if $ld_gold --help 2>/dev/null | grep split-stack-adjust-size >/dev/null 2>&1; then
22032 ld_vers=`$ld_gold --version | sed 1q`
22033 gold_vers=`echo $ld_vers | sed -n \
22034 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22035 case $target in
22036 # check that the gold version contains the complete split stack support
22037 # on powerpc64 big and little endian
22038 powerpc64*-*-*)
22039 case "$gold_vers" in
22040 2.25.[1-9]*|2.2[6-9][.0-9]*|2.[3-9][.0-9]*|[3-9].[.0-9]*) gold_non_default=yes
22041 ;;
22042 *) gold_non_default=no
22043 ;;
22044 esac
22045 ;;
22046 esac
22047 fi
22048 if test $gold_non_default = yes; then
22049
22050 $as_echo "#define HAVE_GOLD_NON_DEFAULT_SPLIT_STACK 1" >>confdefs.h
22051
22052 fi
22053 fi
22054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_non_default" >&5
22055 $as_echo "$gold_non_default" >&6; }
22056
22057 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
22058
22059 case "$ORIGINAL_LD_FOR_TARGET" in
22060 ./collect-ld | ./collect-ld$build_exeext) ;;
22061 *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
22062 ;;
22063 esac
22064
22065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
22066 $as_echo_n "checking what linker to use... " >&6; }
22067 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext \
22068 || test "$gcc_cv_ld" = ../gold/ld-new$build_exeext; then
22069 # Single tree build which includes ld. We want to prefer it
22070 # over whatever linker top-level may have detected, since
22071 # we'll use what we're building after installation anyway.
22072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
22073 $as_echo "newly built ld" >&6; }
22074 in_tree_ld=yes
22075 in_tree_ld_is_elf=no
22076 if (grep 'EMUL = .*elf' ../ld/Makefile \
22077 || grep 'EMUL = .*linux' ../ld/Makefile \
22078 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
22079 in_tree_ld_is_elf=yes
22080 elif test "$ld_is_gold" = yes; then
22081 in_tree_ld_is_elf=yes
22082 fi
22083 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
22084 do
22085 gcc_cv_gld_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
22086 if test x$gcc_cv_gld_version != x; then
22087 break
22088 fi
22089 done
22090 case $gcc_cv_gld_version in
22091 VERSION=[0-9]*) ;;
22092 *) as_fn_error "cannot find version of in-tree linker" "$LINENO" 5 ;;
22093 esac
22094 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
22095 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
22096 ORIGINAL_LD_BFD_FOR_TARGET=../ld/ld-new$build_exeext
22097 ORIGINAL_LD_GOLD_FOR_TARGET=../gold/ld-new$build_exeext
22098 else
22099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
22100 $as_echo "$gcc_cv_ld" >&6; }
22101 in_tree_ld=no
22102 gcc_cvs_ld_program=`dirname $gcc_cv_ld`/`basename $gcc_cv_ld $host_exeext`
22103 ORIGINAL_LD_BFD_FOR_TARGET=${gcc_cvs_ld_program}.bfd$host_exeext
22104 ORIGINAL_LD_GOLD_FOR_TARGET=${gcc_cvs_ld_program}.gold$host_exeext
22105 fi
22106
22107
22108
22109
22110 # Figure out what nm we will be using.
22111 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
22112 if test "${gcc_cv_nm+set}" = set; then :
22113
22114 else
22115
22116 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22117 && test -f ../binutils/Makefile \
22118 && test x$build = x$host; then
22119 gcc_cv_nm=../binutils/nm-new$build_exeext
22120 elif test -x nm$build_exeext; then
22121 gcc_cv_nm=./nm$build_exeext
22122 elif ( set dummy $NM_FOR_TARGET; test -x $2 ); then
22123 gcc_cv_nm="$NM_FOR_TARGET"
22124 else
22125 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
22126 set dummy $NM_FOR_TARGET; ac_word=$2
22127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22128 $as_echo_n "checking for $ac_word... " >&6; }
22129 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
22130 $as_echo_n "(cached) " >&6
22131 else
22132 case $gcc_cv_nm in
22133 [\\/]* | ?:[\\/]*)
22134 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
22135 ;;
22136 *)
22137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22138 for as_dir in $PATH
22139 do
22140 IFS=$as_save_IFS
22141 test -z "$as_dir" && as_dir=.
22142 for ac_exec_ext in '' $ac_executable_extensions; do
22143 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22144 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
22145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22146 break 2
22147 fi
22148 done
22149 done
22150 IFS=$as_save_IFS
22151
22152 ;;
22153 esac
22154 fi
22155 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
22156 if test -n "$gcc_cv_nm"; then
22157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
22158 $as_echo "$gcc_cv_nm" >&6; }
22159 else
22160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22161 $as_echo "no" >&6; }
22162 fi
22163
22164
22165 fi
22166 fi
22167
22168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
22169 $as_echo_n "checking what nm to use... " >&6; }
22170 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
22171 # Single tree build which includes binutils.
22172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
22173 $as_echo "newly built nm" >&6; }
22174 in_tree_nm=yes
22175 else
22176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
22177 $as_echo "$gcc_cv_nm" >&6; }
22178 in_tree_nm=no
22179 fi
22180
22181 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
22182
22183 case "$ORIGINAL_NM_FOR_TARGET" in
22184 ./nm | ./nm$build_exeext) ;;
22185 *) ac_config_files="$ac_config_files nm:exec-tool.in"
22186 ;;
22187 esac
22188
22189
22190 # Figure out what objdump we will be using.
22191 if test "${gcc_cv_objdump+set}" = set; then :
22192
22193 else
22194
22195 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22196 && test -f ../binutils/Makefile \
22197 && test x$build = x$host; then
22198 # Single tree build which includes binutils.
22199 gcc_cv_objdump=../binutils/objdump$build_exeext
22200 elif test -x objdump$build_exeext; then
22201 gcc_cv_objdump=./objdump$build_exeext
22202 elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $2 ); then
22203 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
22204 else
22205 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
22206 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
22207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22208 $as_echo_n "checking for $ac_word... " >&6; }
22209 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
22210 $as_echo_n "(cached) " >&6
22211 else
22212 case $gcc_cv_objdump in
22213 [\\/]* | ?:[\\/]*)
22214 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
22215 ;;
22216 *)
22217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22218 for as_dir in $PATH
22219 do
22220 IFS=$as_save_IFS
22221 test -z "$as_dir" && as_dir=.
22222 for ac_exec_ext in '' $ac_executable_extensions; do
22223 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22224 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
22225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22226 break 2
22227 fi
22228 done
22229 done
22230 IFS=$as_save_IFS
22231
22232 ;;
22233 esac
22234 fi
22235 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
22236 if test -n "$gcc_cv_objdump"; then
22237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
22238 $as_echo "$gcc_cv_objdump" >&6; }
22239 else
22240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22241 $as_echo "no" >&6; }
22242 fi
22243
22244
22245 fi
22246 fi
22247
22248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
22249 $as_echo_n "checking what objdump to use... " >&6; }
22250 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
22251 # Single tree build which includes binutils.
22252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
22253 $as_echo "newly built objdump" >&6; }
22254 elif test x$gcc_cv_objdump = x; then
22255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22256 $as_echo "not found" >&6; }
22257 else
22258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
22259 $as_echo "$gcc_cv_objdump" >&6; }
22260 fi
22261
22262 # Figure out what readelf we will be using.
22263 if test "${gcc_cv_readelf+set}" = set; then :
22264
22265 else
22266
22267 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22268 && test -f ../binutils/Makefile \
22269 && test x$build = x$host; then
22270 # Single tree build which includes binutils.
22271 gcc_cv_readelf=../binutils/readelf$build_exeext
22272 elif test -x readelf$build_exeext; then
22273 gcc_cv_readelf=./readelf$build_exeext
22274 elif ( set dummy $READELF_FOR_TARGET; test -x $2 ); then
22275 gcc_cv_readelf="$READELF_FOR_TARGET"
22276 else
22277 # Extract the first word of "$READELF_FOR_TARGET", so it can be a program name with args.
22278 set dummy $READELF_FOR_TARGET; ac_word=$2
22279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22280 $as_echo_n "checking for $ac_word... " >&6; }
22281 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
22282 $as_echo_n "(cached) " >&6
22283 else
22284 case $gcc_cv_readelf in
22285 [\\/]* | ?:[\\/]*)
22286 ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
22287 ;;
22288 *)
22289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22290 for as_dir in $PATH
22291 do
22292 IFS=$as_save_IFS
22293 test -z "$as_dir" && as_dir=.
22294 for ac_exec_ext in '' $ac_executable_extensions; do
22295 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22296 ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
22297 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22298 break 2
22299 fi
22300 done
22301 done
22302 IFS=$as_save_IFS
22303
22304 ;;
22305 esac
22306 fi
22307 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
22308 if test -n "$gcc_cv_readelf"; then
22309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22310 $as_echo "$gcc_cv_readelf" >&6; }
22311 else
22312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22313 $as_echo "no" >&6; }
22314 fi
22315
22316
22317 fi
22318 fi
22319
22320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
22321 $as_echo_n "checking what readelf to use... " >&6; }
22322 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
22323 # Single tree build which includes binutils.
22324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
22325 $as_echo "newly built readelf" >&6; }
22326 elif test x$gcc_cv_readelf = x; then
22327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22328 $as_echo "not found" >&6; }
22329 else
22330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22331 $as_echo "$gcc_cv_readelf" >&6; }
22332 fi
22333
22334 # Figure out what assembler alignment features are present.
22335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
22336 $as_echo_n "checking assembler flags... " >&6; }
22337 if test "${gcc_cv_as_flags+set}" = set; then :
22338 $as_echo_n "(cached) " >&6
22339 else
22340 case "$target" in
22341 i[34567]86-*-linux*)
22342 gcc_cv_as_flags=--32
22343 ;;
22344 x86_64-*-linux-gnux32)
22345 gcc_cv_as_flags=--x32
22346 ;;
22347 x86_64-*-linux*)
22348 gcc_cv_as_flags=--64
22349 ;;
22350 powerpc*-*-darwin*)
22351 gcc_cv_as_flags="-arch ppc"
22352 ;;
22353 *)
22354 gcc_cv_as_flags=" "
22355 ;;
22356 esac
22357 fi
22358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
22359 $as_echo "$gcc_cv_as_flags" >&6; }
22360
22361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
22362 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
22363 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
22364 $as_echo_n "(cached) " >&6
22365 else
22366 gcc_cv_as_balign_and_p2align=no
22367 if test $in_tree_gas = yes; then
22368 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
22369 then gcc_cv_as_balign_and_p2align=yes
22370 fi
22371 elif test x$gcc_cv_as != x; then
22372 $as_echo '.balign 4
22373 .p2align 2' > conftest.s
22374 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22375 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22376 (eval $ac_try) 2>&5
22377 ac_status=$?
22378 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22379 test $ac_status = 0; }; }
22380 then
22381 gcc_cv_as_balign_and_p2align=yes
22382 else
22383 echo "configure: failed program was" >&5
22384 cat conftest.s >&5
22385 fi
22386 rm -f conftest.o conftest.s
22387 fi
22388 fi
22389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
22390 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
22391 if test $gcc_cv_as_balign_and_p2align = yes; then
22392
22393 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
22394
22395 fi
22396
22397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
22398 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
22399 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
22400 $as_echo_n "(cached) " >&6
22401 else
22402 gcc_cv_as_max_skip_p2align=no
22403 if test $in_tree_gas = yes; then
22404 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22405 then gcc_cv_as_max_skip_p2align=yes
22406 fi
22407 elif test x$gcc_cv_as != x; then
22408 $as_echo '.p2align 4,,7' > conftest.s
22409 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22410 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22411 (eval $ac_try) 2>&5
22412 ac_status=$?
22413 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22414 test $ac_status = 0; }; }
22415 then
22416 gcc_cv_as_max_skip_p2align=yes
22417 else
22418 echo "configure: failed program was" >&5
22419 cat conftest.s >&5
22420 fi
22421 rm -f conftest.o conftest.s
22422 fi
22423 fi
22424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
22425 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
22426 if test $gcc_cv_as_max_skip_p2align = yes; then
22427
22428 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
22429
22430 fi
22431
22432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
22433 $as_echo_n "checking assembler for .literal16... " >&6; }
22434 if test "${gcc_cv_as_literal16+set}" = set; then :
22435 $as_echo_n "(cached) " >&6
22436 else
22437 gcc_cv_as_literal16=no
22438 if test $in_tree_gas = yes; then
22439 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22440 then gcc_cv_as_literal16=yes
22441 fi
22442 elif test x$gcc_cv_as != x; then
22443 $as_echo '.literal16' > conftest.s
22444 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22445 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22446 (eval $ac_try) 2>&5
22447 ac_status=$?
22448 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22449 test $ac_status = 0; }; }
22450 then
22451 gcc_cv_as_literal16=yes
22452 else
22453 echo "configure: failed program was" >&5
22454 cat conftest.s >&5
22455 fi
22456 rm -f conftest.o conftest.s
22457 fi
22458 fi
22459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
22460 $as_echo "$gcc_cv_as_literal16" >&6; }
22461 if test $gcc_cv_as_literal16 = yes; then
22462
22463 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
22464
22465 fi
22466
22467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
22468 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
22469 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
22470 $as_echo_n "(cached) " >&6
22471 else
22472 gcc_cv_as_subsection_m1=no
22473 if test $in_tree_gas = yes; then
22474 if test $in_tree_gas_is_elf = yes \
22475 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
22476 then gcc_cv_as_subsection_m1=yes
22477 fi
22478 elif test x$gcc_cv_as != x; then
22479 $as_echo 'conftest_label1: .word 0
22480 .subsection -1
22481 conftest_label2: .word 0
22482 .previous' > conftest.s
22483 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22484 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22485 (eval $ac_try) 2>&5
22486 ac_status=$?
22487 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22488 test $ac_status = 0; }; }
22489 then
22490 if test x$gcc_cv_nm != x; then
22491 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
22492 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
22493 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
22494 then :
22495 else gcc_cv_as_subsection_m1=yes
22496 fi
22497 rm -f conftest.nm1 conftest.nm2
22498 fi
22499 else
22500 echo "configure: failed program was" >&5
22501 cat conftest.s >&5
22502 fi
22503 rm -f conftest.o conftest.s
22504 fi
22505 fi
22506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
22507 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
22508 if test $gcc_cv_as_subsection_m1 = yes; then
22509
22510 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
22511
22512 fi
22513
22514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
22515 $as_echo_n "checking assembler for .weak... " >&6; }
22516 if test "${gcc_cv_as_weak+set}" = set; then :
22517 $as_echo_n "(cached) " >&6
22518 else
22519 gcc_cv_as_weak=no
22520 if test $in_tree_gas = yes; then
22521 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
22522 then gcc_cv_as_weak=yes
22523 fi
22524 elif test x$gcc_cv_as != x; then
22525 $as_echo ' .weak foobar' > conftest.s
22526 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22527 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22528 (eval $ac_try) 2>&5
22529 ac_status=$?
22530 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22531 test $ac_status = 0; }; }
22532 then
22533 gcc_cv_as_weak=yes
22534 else
22535 echo "configure: failed program was" >&5
22536 cat conftest.s >&5
22537 fi
22538 rm -f conftest.o conftest.s
22539 fi
22540 fi
22541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
22542 $as_echo "$gcc_cv_as_weak" >&6; }
22543 if test $gcc_cv_as_weak = yes; then
22544
22545 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
22546
22547 fi
22548
22549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
22550 $as_echo_n "checking assembler for .weakref... " >&6; }
22551 if test "${gcc_cv_as_weakref+set}" = set; then :
22552 $as_echo_n "(cached) " >&6
22553 else
22554 gcc_cv_as_weakref=no
22555 if test $in_tree_gas = yes; then
22556 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
22557 then gcc_cv_as_weakref=yes
22558 fi
22559 elif test x$gcc_cv_as != x; then
22560 $as_echo ' .weakref foobar, barfnot' > conftest.s
22561 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22562 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22563 (eval $ac_try) 2>&5
22564 ac_status=$?
22565 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22566 test $ac_status = 0; }; }
22567 then
22568 gcc_cv_as_weakref=yes
22569 else
22570 echo "configure: failed program was" >&5
22571 cat conftest.s >&5
22572 fi
22573 rm -f conftest.o conftest.s
22574 fi
22575 fi
22576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
22577 $as_echo "$gcc_cv_as_weakref" >&6; }
22578 if test $gcc_cv_as_weakref = yes; then
22579
22580 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
22581
22582 fi
22583
22584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
22585 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
22586 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
22587 $as_echo_n "(cached) " >&6
22588 else
22589 gcc_cv_as_nsubspa_comdat=no
22590 if test $in_tree_gas = yes; then
22591 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22592 then gcc_cv_as_nsubspa_comdat=yes
22593 fi
22594 elif test x$gcc_cv_as != x; then
22595 $as_echo ' .SPACE $TEXT$
22596 .NSUBSPA $CODE$,COMDAT' > conftest.s
22597 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22598 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22599 (eval $ac_try) 2>&5
22600 ac_status=$?
22601 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22602 test $ac_status = 0; }; }
22603 then
22604 gcc_cv_as_nsubspa_comdat=yes
22605 else
22606 echo "configure: failed program was" >&5
22607 cat conftest.s >&5
22608 fi
22609 rm -f conftest.o conftest.s
22610 fi
22611 fi
22612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
22613 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
22614 if test $gcc_cv_as_nsubspa_comdat = yes; then
22615
22616 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
22617
22618 fi
22619
22620 # .hidden needs to be supported in both the assembler and the linker,
22621 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
22622 # This is irritatingly difficult to feature test for; we have to check the
22623 # date string after the version number. If we've got an in-tree
22624 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
22625 # to be safe.
22626 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
22627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
22628 $as_echo_n "checking assembler for .hidden... " >&6; }
22629 if test "${gcc_cv_as_hidden+set}" = set; then :
22630 $as_echo_n "(cached) " >&6
22631 else
22632 gcc_cv_as_hidden=no
22633 if test $in_tree_gas = yes; then
22634 if test $in_tree_gas_is_elf = yes \
22635 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
22636 then gcc_cv_as_hidden=yes
22637 fi
22638 elif test x$gcc_cv_as != x; then
22639 $as_echo ' .hidden foobar
22640 foobar:' > conftest.s
22641 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22642 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22643 (eval $ac_try) 2>&5
22644 ac_status=$?
22645 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22646 test $ac_status = 0; }; }
22647 then
22648 gcc_cv_as_hidden=yes
22649 else
22650 echo "configure: failed program was" >&5
22651 cat conftest.s >&5
22652 fi
22653 rm -f conftest.o conftest.s
22654 fi
22655 fi
22656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
22657 $as_echo "$gcc_cv_as_hidden" >&6; }
22658
22659 case "${target}" in
22660 *-*-darwin*)
22661 # Darwin as has some visibility support, though with a different syntax.
22662 gcc_cv_as_hidden=yes
22663 ;;
22664 esac
22665
22666 # gnu_indirect_function type is an extension proposed at
22667 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
22668 # selection of function implementation
22669 # Check whether --enable-gnu-indirect-function was given.
22670 if test "${enable_gnu_indirect_function+set}" = set; then :
22671 enableval=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
22672 yes | no) ;;
22673 *) as_fn_error "'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
22674 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
22675 esac
22676 else
22677 enable_gnu_indirect_function="$default_gnu_indirect_function"
22678 fi
22679
22680
22681 gif=`if test x$enable_gnu_indirect_function = xyes; then echo 1; else echo 0; fi`
22682
22683 cat >>confdefs.h <<_ACEOF
22684 #define HAVE_GNU_INDIRECT_FUNCTION $gif
22685 _ACEOF
22686
22687
22688
22689 if test $in_tree_ld != yes ; then
22690 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
22691 if echo "$ld_ver" | grep GNU > /dev/null; then
22692 if test x"$ld_is_gold" = xyes; then
22693 # GNU gold --version looks like this:
22694 #
22695 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
22696 #
22697 # We extract the binutils version which is more familiar and specific
22698 # than the gold version.
22699 ld_vers=`echo $ld_ver | sed -n \
22700 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22701 else
22702 # GNU ld --version looks like this:
22703 #
22704 # GNU ld (GNU Binutils) 2.21.51.20110225
22705 ld_vers=`echo $ld_ver | sed -n \
22706 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22707 fi
22708 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'`
22709 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22710 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22711 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
22712 else
22713 case "${target}" in
22714 *-*-solaris2*)
22715 # See acinclude.m4 (gcc_SUN_LD_VERSION) for the version number
22716 # format.
22717 #
22718 # Don't reuse gcc_gv_sun_ld_vers_* in case a linker other than
22719 # /usr/ccs/bin/ld has been configured.
22720 ld_ver=`$gcc_cv_ld -V 2>&1`
22721 if echo "$ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
22722 ld_vers=`echo $ld_ver | sed -n \
22723 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22724 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22725 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22726 fi
22727 ;;
22728 esac
22729 fi
22730 fi
22731
22732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
22733 $as_echo_n "checking linker for .hidden support... " >&6; }
22734 if test "${gcc_cv_ld_hidden+set}" = set; then :
22735 $as_echo_n "(cached) " >&6
22736 else
22737 if test $in_tree_ld = yes ; then
22738 gcc_cv_ld_hidden=no
22739 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 \
22740 && test $in_tree_ld_is_elf = yes; then
22741 gcc_cv_ld_hidden=yes
22742 fi
22743 else
22744 gcc_cv_ld_hidden=yes
22745 if test x"$ld_is_gold" = xyes; then
22746 :
22747 elif echo "$ld_ver" | grep GNU > /dev/null; then
22748 case "${target}" in
22749 mmix-knuth-mmixware)
22750 # The linker emits by default mmo, not ELF, so "no" is appropriate.
22751 gcc_cv_ld_hidden=no
22752 ;;
22753 esac
22754 if test 0"$ld_date" -lt 20020404; then
22755 if test -n "$ld_date"; then
22756 # If there was date string, but was earlier than 2002-04-04, fail
22757 gcc_cv_ld_hidden=no
22758 elif test -z "$ld_vers"; then
22759 # If there was no date string nor ld version number, something is wrong
22760 gcc_cv_ld_hidden=no
22761 else
22762 test -z "$ld_vers_patch" && ld_vers_patch=0
22763 if test "$ld_vers_major" -lt 2; then
22764 gcc_cv_ld_hidden=no
22765 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
22766 gcc_cv_ld_hidden="no"
22767 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
22768 gcc_cv_ld_hidden=no
22769 fi
22770 fi
22771 fi
22772 else
22773 case "${target}" in
22774 *-*-darwin*)
22775 # Darwin ld has some visibility support.
22776 gcc_cv_ld_hidden=yes
22777 ;;
22778 hppa64*-*-hpux* | ia64*-*-hpux*)
22779 gcc_cv_ld_hidden=yes
22780 ;;
22781 *-*-solaris2.1[0-9]*)
22782 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
22783 # .symbolic was only added in Solaris 9 12/02.
22784 gcc_cv_ld_hidden=yes
22785 ;;
22786 *)
22787 gcc_cv_ld_hidden=no
22788 ;;
22789 esac
22790 fi
22791 fi
22792 fi
22793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
22794 $as_echo "$gcc_cv_ld_hidden" >&6; }
22795 libgcc_visibility=no
22796
22797
22798 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
22799 libgcc_visibility=yes
22800
22801 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
22802
22803 fi
22804
22805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
22806 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
22807 gcc_cv_ld_ro_rw_mix=unknown
22808 if test $in_tree_ld = yes ; then
22809 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 \
22810 && test $in_tree_ld_is_elf = yes; then
22811 gcc_cv_ld_ro_rw_mix=read-write
22812 fi
22813 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22814 echo '.section myfoosect, "a"' > conftest1.s
22815 echo '.section myfoosect, "aw"' > conftest2.s
22816 echo '.byte 1' >> conftest2.s
22817 echo '.section myfoosect, "a"' > conftest3.s
22818 echo '.byte 0' >> conftest3.s
22819 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
22820 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
22821 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
22822 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
22823 conftest2.o conftest3.o > /dev/null 2>&1; then
22824 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
22825 | sed -e '/myfoosect/!d' -e N`
22826 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
22827 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
22828 gcc_cv_ld_ro_rw_mix=read-only
22829 else
22830 gcc_cv_ld_ro_rw_mix=read-write
22831 fi
22832 fi
22833 fi
22834 rm -f conftest.* conftest[123].*
22835 fi
22836 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
22837
22838 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
22839
22840 fi
22841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
22842 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
22843
22844 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22845 case "${target}" in
22846 *-*-solaris2*)
22847 #
22848 # Solaris 2 ld -V output looks like this for a regular version:
22849 #
22850 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
22851 #
22852 # but test versions add stuff at the end:
22853 #
22854 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
22855 #
22856 gcc_cv_sun_ld_ver=`/usr/ccs/bin/ld -V 2>&1`
22857 if echo "$gcc_cv_sun_ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
22858 gcc_cv_sun_ld_vers=`echo $gcc_cv_sun_ld_ver | sed -n \
22859 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22860 gcc_cv_sun_ld_vers_major=`expr "$gcc_cv_sun_ld_vers" : '\([0-9]*\)'`
22861 gcc_cv_sun_ld_vers_minor=`expr "$gcc_cv_sun_ld_vers" : '[0-9]*\.\([0-9]*\)'`
22862 fi
22863 ;;
22864 esac
22865 fi
22866
22867 # Check whether --enable-initfini-array was given.
22868 if test "${enable_initfini_array+set}" = set; then :
22869 enableval=$enable_initfini_array;
22870 else
22871
22872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
22873 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
22874 if test "${gcc_cv_initfini_array+set}" = set; then :
22875 $as_echo_n "(cached) " >&6
22876 else
22877 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22878 case "${target}" in
22879 ia64-*)
22880 if test "$cross_compiling" = yes; then :
22881 gcc_cv_initfini_array=no
22882 else
22883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22884 /* end confdefs.h. */
22885
22886 #ifndef __ELF__
22887 #error Not an ELF OS
22888 #endif
22889 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
22890 if it can be used. */
22891 static int x = -1;
22892 int main (void) { return x; }
22893 int foo (void) { x = 0; }
22894 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
22895
22896 _ACEOF
22897 if ac_fn_cxx_try_run "$LINENO"; then :
22898 gcc_cv_initfini_array=yes
22899 else
22900 gcc_cv_initfini_array=no
22901 fi
22902 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22903 conftest.$ac_objext conftest.beam conftest.$ac_ext
22904 fi
22905 ;;
22906 *)
22907 gcc_cv_initfini_array=no
22908 if test $in_tree_ld = yes ; then
22909 if test "$gcc_cv_gld_major_version" -eq 2 \
22910 -a "$gcc_cv_gld_minor_version" -ge 22 \
22911 -o "$gcc_cv_gld_major_version" -gt 2 \
22912 && test $in_tree_ld_is_elf = yes; then
22913 gcc_cv_initfini_array=yes
22914 fi
22915 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22916 cat > conftest.s <<\EOF
22917 .section .dtors,"a",%progbits
22918 .balign 4
22919 .byte 'A', 'A', 'A', 'A'
22920 .section .ctors,"a",%progbits
22921 .balign 4
22922 .byte 'B', 'B', 'B', 'B'
22923 .section .fini_array.65530,"a",%progbits
22924 .balign 4
22925 .byte 'C', 'C', 'C', 'C'
22926 .section .init_array.65530,"a",%progbits
22927 .balign 4
22928 .byte 'D', 'D', 'D', 'D'
22929 .section .dtors.64528,"a",%progbits
22930 .balign 4
22931 .byte 'E', 'E', 'E', 'E'
22932 .section .ctors.64528,"a",%progbits
22933 .balign 4
22934 .byte 'F', 'F', 'F', 'F'
22935 .section .fini_array.01005,"a",%progbits
22936 .balign 4
22937 .byte 'G', 'G', 'G', 'G'
22938 .section .init_array.01005,"a",%progbits
22939 .balign 4
22940 .byte 'H', 'H', 'H', 'H'
22941 .text
22942 .globl _start
22943 _start:
22944 EOF
22945 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
22946 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
22947 && $gcc_cv_objdump -s -j .init_array conftest \
22948 | grep HHHHFFFFDDDDBBBB > /dev/null 2>&1 \
22949 && $gcc_cv_objdump -s -j .fini_array conftest \
22950 | grep GGGGEEEECCCCAAAA > /dev/null 2>&1; then
22951 gcc_cv_initfini_array=yes
22952 fi
22953 rm -f conftest conftest.*
22954 fi
22955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22956 /* end confdefs.h. */
22957
22958 #ifndef __ELF__
22959 # error Not an ELF OS
22960 #endif
22961 #include <stdlib.h>
22962 #if defined __GLIBC_PREREQ
22963 # if __GLIBC_PREREQ (2, 4)
22964 # else
22965 # error GLIBC 2.4 required
22966 # endif
22967 #else
22968 # if defined __sun__ && defined __svr4__
22969 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
22970 # else
22971 # error The C library not known to support .init_array/.fini_array
22972 # endif
22973 #endif
22974
22975 _ACEOF
22976 if ac_fn_cxx_try_cpp "$LINENO"; then :
22977
22978 else
22979 gcc_cv_initfini_array=no
22980 fi
22981 rm -f conftest.err conftest.$ac_ext;;
22982 esac
22983 else
22984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
22985 $as_echo_n "checking cross compile... guessing... " >&6; }
22986 gcc_cv_initfini_array=no
22987 fi
22988 fi
22989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
22990 $as_echo "$gcc_cv_initfini_array" >&6; }
22991 enable_initfini_array=$gcc_cv_initfini_array
22992
22993 fi
22994
22995 if test $enable_initfini_array = yes; then
22996
22997 $as_echo "#define HAVE_INITFINI_ARRAY_SUPPORT 1" >>confdefs.h
22998
22999 fi
23000
23001 # Check if we have .[us]leb128, and support symbol arithmetic with it.
23002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
23003 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
23004 if test "${gcc_cv_as_leb128+set}" = set; then :
23005 $as_echo_n "(cached) " >&6
23006 else
23007 gcc_cv_as_leb128=no
23008 if test $in_tree_gas = yes; then
23009 if test $in_tree_gas_is_elf = yes \
23010 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
23011 then gcc_cv_as_leb128=yes
23012 fi
23013 elif test x$gcc_cv_as != x; then
23014 $as_echo ' .data
23015 .uleb128 L2 - L1
23016 L1:
23017 .uleb128 1280
23018 .sleb128 -1010
23019 L2:' > conftest.s
23020 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23021 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23022 (eval $ac_try) 2>&5
23023 ac_status=$?
23024 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23025 test $ac_status = 0; }; }
23026 then
23027 # GAS versions before 2.11 do not support uleb128,
23028 # despite appearing to.
23029 # ??? There exists an elf-specific test that will crash
23030 # the assembler. Perhaps it's better to figure out whether
23031 # arbitrary sections are supported and try the test.
23032 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
23033 if echo "$as_ver" | grep GNU > /dev/null; then
23034 as_vers=`echo $as_ver | sed -n \
23035 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23036 as_major=`expr "$as_vers" : '\([0-9]*\)'`
23037 as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
23038 if test $as_major -eq 2 && test $as_minor -lt 11
23039 then :
23040 else gcc_cv_as_leb128=yes
23041 fi
23042 fi
23043 else
23044 echo "configure: failed program was" >&5
23045 cat conftest.s >&5
23046 fi
23047 rm -f conftest.o conftest.s
23048 fi
23049 fi
23050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
23051 $as_echo "$gcc_cv_as_leb128" >&6; }
23052 if test $gcc_cv_as_leb128 = yes; then
23053
23054 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
23055
23056 fi
23057
23058 # Check if we have assembler support for unwind directives.
23059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
23060 $as_echo_n "checking assembler for cfi directives... " >&6; }
23061 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
23062 $as_echo_n "(cached) " >&6
23063 else
23064 gcc_cv_as_cfi_directive=no
23065 if test x$gcc_cv_as != x; then
23066 $as_echo ' .text
23067 .cfi_startproc
23068 .cfi_offset 0, 0
23069 .cfi_same_value 1
23070 .cfi_def_cfa 1, 2
23071 .cfi_escape 1, 2, 3, 4, 5
23072 .cfi_endproc' > conftest.s
23073 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23074 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23075 (eval $ac_try) 2>&5
23076 ac_status=$?
23077 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23078 test $ac_status = 0; }; }
23079 then
23080 case "$target" in
23081 *-*-solaris*)
23082 # If the linker used on Solaris (like Sun ld) isn't capable of merging
23083 # read-only and read-write sections, we need to make sure that the
23084 # assembler used emits read-write .eh_frame sections.
23085 if test "x$gcc_cv_ld_ro_rw_mix" != xread-write; then
23086 if test "x$gcc_cv_objdump" != x; then
23087 if $gcc_cv_objdump -h conftest.o 2>/dev/null | \
23088 sed -e /.eh_frame/!d -e N | grep READONLY > /dev/null; then
23089 gcc_cv_as_cfi_directive=no
23090 else
23091 case "$target" in
23092 i?86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*)
23093 # On Solaris/x86, make sure that GCC and assembler agree on using
23094 # read-only .eh_frame sections for 64-bit.
23095 if test x$gas = xyes; then
23096 as_ix86_64_opt="--64"
23097 else
23098 as_ix86_64_opt="-xarch=amd64"
23099 fi
23100 if $gcc_cv_as $as_ix86_64_opt -o conftest.o conftest.s > /dev/null 2>&1 && \
23101 $gcc_cv_objdump -h conftest.o 2>/dev/null | \
23102 sed -e /.eh_frame/!d -e N | \
23103 grep READONLY > /dev/null; then
23104 gcc_cv_as_cfi_directive=yes
23105 else
23106 gcc_cv_as_cfi_directive=no
23107 fi
23108 ;;
23109 *)
23110 gcc_cv_as_cfi_directive=yes
23111 ;;
23112 esac
23113 fi
23114 else
23115 # no objdump, err on the side of caution
23116 gcc_cv_as_cfi_directive=no
23117 fi
23118 else
23119 gcc_cv_as_cfi_directive=yes
23120 fi
23121 ;;
23122 *-*-*)
23123 gcc_cv_as_cfi_directive=yes
23124 ;;
23125 esac
23126 else
23127 echo "configure: failed program was" >&5
23128 cat conftest.s >&5
23129 fi
23130 rm -f conftest.o conftest.s
23131 fi
23132 fi
23133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
23134 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
23135
23136 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then
23137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
23138 $as_echo_n "checking assembler for working cfi advance... " >&6; }
23139 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
23140 $as_echo_n "(cached) " >&6
23141 else
23142 gcc_cv_as_cfi_advance_working=no
23143 if test x$gcc_cv_as != x; then
23144 $as_echo ' .text
23145 .cfi_startproc
23146 .cfi_adjust_cfa_offset 64
23147 .skip 75040, 0
23148 .cfi_adjust_cfa_offset 128
23149 .cfi_endproc' > conftest.s
23150 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23151 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23152 (eval $ac_try) 2>&5
23153 ac_status=$?
23154 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23155 test $ac_status = 0; }; }
23156 then
23157
23158 if $gcc_cv_objdump -Wf conftest.o 2>/dev/null \
23159 | grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev/null; then
23160 gcc_cv_as_cfi_advance_working=yes
23161 fi
23162
23163 else
23164 echo "configure: failed program was" >&5
23165 cat conftest.s >&5
23166 fi
23167 rm -f conftest.o conftest.s
23168 fi
23169 fi
23170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
23171 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
23172
23173 else
23174 # no objdump, err on the side of caution
23175 gcc_cv_as_cfi_advance_working=no
23176 fi
23177
23178
23179 cat >>confdefs.h <<_ACEOF
23180 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
23181 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
23182 _ACEOF
23183
23184
23185
23186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
23187 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
23188 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
23189 $as_echo_n "(cached) " >&6
23190 else
23191 gcc_cv_as_cfi_personality_directive=no
23192 if test x$gcc_cv_as != x; then
23193 $as_echo ' .text
23194 .cfi_startproc
23195 .cfi_personality 0, symbol
23196 .cfi_endproc' > conftest.s
23197 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23198 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23199 (eval $ac_try) 2>&5
23200 ac_status=$?
23201 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23202 test $ac_status = 0; }; }
23203 then
23204 gcc_cv_as_cfi_personality_directive=yes
23205 else
23206 echo "configure: failed program was" >&5
23207 cat conftest.s >&5
23208 fi
23209 rm -f conftest.o conftest.s
23210 fi
23211 fi
23212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
23213 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
23214
23215
23216 cat >>confdefs.h <<_ACEOF
23217 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
23218 then echo 1; else echo 0; fi`
23219 _ACEOF
23220
23221
23222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
23223 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
23224 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
23225 $as_echo_n "(cached) " >&6
23226 else
23227 gcc_cv_as_cfi_sections_directive=no
23228 if test x$gcc_cv_as != x; then
23229 $as_echo ' .text
23230 .cfi_sections .debug_frame, .eh_frame
23231 .cfi_startproc
23232 .cfi_endproc' > conftest.s
23233 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23234 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23235 (eval $ac_try) 2>&5
23236 ac_status=$?
23237 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23238 test $ac_status = 0; }; }
23239 then
23240 case $target_os in
23241 win32 | pe | cygwin* | mingw32*)
23242 # Need to check that we generated the correct relocation for the
23243 # .debug_frame section. This was fixed for binutils 2.21.
23244 gcc_cv_as_cfi_sections_directive=no
23245 if test "x$gcc_cv_objdump" != x; then
23246 if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
23247 grep secrel > /dev/null; then
23248 gcc_cv_as_cfi_sections_directive=yes
23249 fi
23250 fi
23251 ;;
23252 *)
23253 gcc_cv_as_cfi_sections_directive=yes
23254 ;;
23255 esac
23256 else
23257 echo "configure: failed program was" >&5
23258 cat conftest.s >&5
23259 fi
23260 rm -f conftest.o conftest.s
23261 fi
23262 fi
23263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
23264 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
23265
23266
23267
23268 cat >>confdefs.h <<_ACEOF
23269 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
23270 then echo 1; else echo 0; fi`
23271 _ACEOF
23272
23273
23274 # GAS versions up to and including 2.11.0 may mis-optimize
23275 # .eh_frame data.
23276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
23277 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
23278 if test "${gcc_cv_as_eh_frame+set}" = set; then :
23279 $as_echo_n "(cached) " >&6
23280 else
23281 gcc_cv_as_eh_frame=no
23282 if test $in_tree_gas = yes; then
23283 if test $in_tree_gas_is_elf = yes \
23284 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23285 then gcc_cv_as_eh_frame=yes
23286 fi
23287 elif test x$gcc_cv_as != x; then
23288 $as_echo ' .text
23289 .LFB1:
23290 .4byte 0
23291 .L1:
23292 .4byte 0
23293 .LFE1:
23294 .section .eh_frame,"aw",@progbits
23295 __FRAME_BEGIN__:
23296 .4byte .LECIE1-.LSCIE1
23297 .LSCIE1:
23298 .4byte 0x0
23299 .byte 0x1
23300 .ascii "z\0"
23301 .byte 0x1
23302 .byte 0x78
23303 .byte 0x1a
23304 .byte 0x0
23305 .byte 0x4
23306 .4byte 1
23307 .p2align 1
23308 .LECIE1:
23309 .LSFDE1:
23310 .4byte .LEFDE1-.LASFDE1
23311 .LASFDE1:
23312 .4byte .LASFDE1-__FRAME_BEGIN__
23313 .4byte .LFB1
23314 .4byte .LFE1-.LFB1
23315 .byte 0x4
23316 .4byte .LFE1-.LFB1
23317 .byte 0x4
23318 .4byte .L1-.LFB1
23319 .LEFDE1:' > conftest.s
23320 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23321 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23322 (eval $ac_try) 2>&5
23323 ac_status=$?
23324 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23325 test $ac_status = 0; }; }
23326 then
23327 cat > conftest.lit <<EOF
23328 0000 10000000 00000000 017a0001 781a0004 .........z..x...
23329 0010 01000000 12000000 18000000 00000000 ................
23330 0020 08000000 04080000 0044 .........D
23331 EOF
23332 cat > conftest.big <<EOF
23333 0000 00000010 00000000 017a0001 781a0004 .........z..x...
23334 0010 00000001 00000012 00000018 00000000 ................
23335 0020 00000008 04000000 0844 .........D
23336 EOF
23337 # If the assembler didn't choke, and we can objdump,
23338 # and we got the correct data, then succeed.
23339 # The text in the here-document typically retains its unix-style line
23340 # endings, while the output of objdump will use host line endings.
23341 # Therefore, use diff -b for the comparisons.
23342 if test x$gcc_cv_objdump != x \
23343 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
23344 | tail -3 > conftest.got \
23345 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
23346 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
23347 then
23348 gcc_cv_as_eh_frame=yes
23349 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
23350 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23351 (eval $ac_try) 2>&5
23352 ac_status=$?
23353 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23354 test $ac_status = 0; }; }; then
23355 gcc_cv_as_eh_frame=buggy
23356 else
23357 # Uh oh, what do we do now?
23358 gcc_cv_as_eh_frame=no
23359 fi
23360 else
23361 echo "configure: failed program was" >&5
23362 cat conftest.s >&5
23363 fi
23364 rm -f conftest.o conftest.s
23365 fi
23366 fi
23367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
23368 $as_echo "$gcc_cv_as_eh_frame" >&6; }
23369
23370
23371 if test $gcc_cv_as_eh_frame = buggy; then
23372
23373 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
23374
23375 fi
23376
23377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
23378 $as_echo_n "checking assembler for section merging support... " >&6; }
23379 if test "${gcc_cv_as_shf_merge+set}" = set; then :
23380 $as_echo_n "(cached) " >&6
23381 else
23382 gcc_cv_as_shf_merge=no
23383 if test $in_tree_gas = yes; then
23384 if test $in_tree_gas_is_elf = yes \
23385 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23386 then gcc_cv_as_shf_merge=yes
23387 fi
23388 elif test x$gcc_cv_as != x; then
23389 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
23390 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23391 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23392 (eval $ac_try) 2>&5
23393 ac_status=$?
23394 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23395 test $ac_status = 0; }; }
23396 then
23397 gcc_cv_as_shf_merge=yes
23398 else
23399 echo "configure: failed program was" >&5
23400 cat conftest.s >&5
23401 fi
23402 rm -f conftest.o conftest.s
23403 fi
23404 fi
23405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23406 $as_echo "$gcc_cv_as_shf_merge" >&6; }
23407
23408 if test $gcc_cv_as_shf_merge = no; then
23409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
23410 $as_echo_n "checking assembler for section merging support... " >&6; }
23411 if test "${gcc_cv_as_shf_merge+set}" = set; then :
23412 $as_echo_n "(cached) " >&6
23413 else
23414 gcc_cv_as_shf_merge=no
23415 if test $in_tree_gas = yes; then
23416 if test $in_tree_gas_is_elf = yes \
23417 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23418 then gcc_cv_as_shf_merge=yes
23419 fi
23420 elif test x$gcc_cv_as != x; then
23421 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
23422 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23423 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23424 (eval $ac_try) 2>&5
23425 ac_status=$?
23426 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23427 test $ac_status = 0; }; }
23428 then
23429 gcc_cv_as_shf_merge=yes
23430 else
23431 echo "configure: failed program was" >&5
23432 cat conftest.s >&5
23433 fi
23434 rm -f conftest.o conftest.s
23435 fi
23436 fi
23437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23438 $as_echo "$gcc_cv_as_shf_merge" >&6; }
23439
23440 fi
23441
23442 cat >>confdefs.h <<_ACEOF
23443 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
23444 _ACEOF
23445
23446
23447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
23448 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
23449 if test "${gcc_cv_as_comdat_group+set}" = set; then :
23450 $as_echo_n "(cached) " >&6
23451 else
23452 gcc_cv_as_comdat_group=no
23453 if test $in_tree_gas = yes; then
23454 if test $in_tree_gas_is_elf = yes \
23455 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23456 then gcc_cv_as_comdat_group=yes
23457 fi
23458 elif test x$gcc_cv_as != x; then
23459 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
23460 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23461 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23462 (eval $ac_try) 2>&5
23463 ac_status=$?
23464 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23465 test $ac_status = 0; }; }
23466 then
23467 gcc_cv_as_comdat_group=yes
23468 else
23469 echo "configure: failed program was" >&5
23470 cat conftest.s >&5
23471 fi
23472 rm -f conftest.o conftest.s
23473 fi
23474 fi
23475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
23476 $as_echo "$gcc_cv_as_comdat_group" >&6; }
23477
23478 if test $gcc_cv_as_comdat_group = yes; then
23479 gcc_cv_as_comdat_group_percent=no
23480 gcc_cv_as_comdat_group_group=no
23481 else
23482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
23483 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
23484 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
23485 $as_echo_n "(cached) " >&6
23486 else
23487 gcc_cv_as_comdat_group_percent=no
23488 if test $in_tree_gas = yes; then
23489 if test $in_tree_gas_is_elf = yes \
23490 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23491 then gcc_cv_as_comdat_group_percent=yes
23492 fi
23493 elif test x$gcc_cv_as != x; then
23494 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
23495 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23496 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23497 (eval $ac_try) 2>&5
23498 ac_status=$?
23499 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23500 test $ac_status = 0; }; }
23501 then
23502 gcc_cv_as_comdat_group_percent=yes
23503 else
23504 echo "configure: failed program was" >&5
23505 cat conftest.s >&5
23506 fi
23507 rm -f conftest.o conftest.s
23508 fi
23509 fi
23510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
23511 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
23512
23513 if test $gcc_cv_as_comdat_group_percent = yes; then
23514 gcc_cv_as_comdat_group_group=no
23515 else
23516 case "${target}" in
23517 # Sun as uses a completely different syntax.
23518 *-*-solaris2*)
23519 case "${target}" in
23520 sparc*-*-solaris2*)
23521 conftest_s='
23522 .group foo,".text%foo",#comdat
23523 .section ".text%foo", #alloc,#execinstr,#progbits
23524 .globl foo
23525 foo:
23526 '
23527 ;;
23528 i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
23529 conftest_s='
23530 .group foo,.text%foo,#comdat
23531 .section .text%foo, "ax", @progbits
23532 .globl foo
23533 foo:
23534 '
23535 ;;
23536 esac
23537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
23538 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
23539 if test "${gcc_cv_as_comdat_group_group+set}" = set; then :
23540 $as_echo_n "(cached) " >&6
23541 else
23542 gcc_cv_as_comdat_group_group=no
23543 if test x$gcc_cv_as != x; then
23544 $as_echo "$conftest_s" > conftest.s
23545 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23546 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23547 (eval $ac_try) 2>&5
23548 ac_status=$?
23549 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23550 test $ac_status = 0; }; }
23551 then
23552 gcc_cv_as_comdat_group_group=yes
23553 else
23554 echo "configure: failed program was" >&5
23555 cat conftest.s >&5
23556 fi
23557 rm -f conftest.o conftest.s
23558 fi
23559 fi
23560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
23561 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
23562
23563 ;;
23564 esac
23565 if test -z "${gcc_cv_as_comdat_group_group+set}"; then
23566 gcc_cv_as_comdat_group_group=no
23567 fi
23568 fi
23569 fi
23570 if test x"$ld_is_gold" = xyes; then
23571 comdat_group=yes
23572 elif test $in_tree_ld = yes ; then
23573 comdat_group=no
23574 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 \
23575 && test $in_tree_ld_is_elf = yes; then
23576 comdat_group=yes
23577 fi
23578 elif echo "$ld_ver" | grep GNU > /dev/null; then
23579 comdat_group=yes
23580 if test 0"$ld_date" -lt 20050308; then
23581 if test -n "$ld_date"; then
23582 # If there was date string, but was earlier than 2005-03-08, fail
23583 comdat_group=no
23584 elif test "$ld_vers_major" -lt 2; then
23585 comdat_group=no
23586 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
23587 comdat_group=no
23588 fi
23589 fi
23590 else
23591 case "${target}" in
23592 *-*-solaris2.1[1-9]*)
23593 comdat_group=no
23594 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
23595 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
23596 # version 1.688.
23597 #
23598 # If using Sun as for COMDAT group as emitted by GCC, one needs at
23599 # least ld version 1.2267.
23600 if test "$ld_vers_major" -gt 1; then
23601 comdat_group=yes
23602 elif test "x$gas_flag" = xyes && test "$ld_vers_minor" -ge 1688; then
23603 comdat_group=yes
23604 elif test "$ld_vers_minor" -ge 2267; then
23605 comdat_group=yes
23606 fi
23607 ;;
23608 *)
23609 # Assume linkers other than GNU ld don't support COMDAT group.
23610 comdat_group=no
23611 ;;
23612 esac
23613 fi
23614 # Allow overriding the automatic COMDAT group tests above.
23615 # Check whether --enable-comdat was given.
23616 if test "${enable_comdat+set}" = set; then :
23617 enableval=$enable_comdat; comdat_group="$enable_comdat"
23618 fi
23619
23620 if test $comdat_group = no; then
23621 gcc_cv_as_comdat_group=no
23622 gcc_cv_as_comdat_group_percent=no
23623 gcc_cv_as_comdat_group_group=no
23624 fi
23625
23626 cat >>confdefs.h <<_ACEOF
23627 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
23628 || test $gcc_cv_as_comdat_group_percent = yes \
23629 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
23630 _ACEOF
23631
23632
23633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
23634 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
23635 if test "${gcc_cv_as_discriminator+set}" = set; then :
23636 $as_echo_n "(cached) " >&6
23637 else
23638 gcc_cv_as_discriminator=no
23639 if test $in_tree_gas = yes; then
23640 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
23641 then gcc_cv_as_discriminator=yes
23642 fi
23643 elif test x$gcc_cv_as != x; then
23644 $as_echo ' .text
23645 .file 1 "conf.c"
23646 .loc 1 1 0 discriminator 1' > conftest.s
23647 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23648 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23649 (eval $ac_try) 2>&5
23650 ac_status=$?
23651 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23652 test $ac_status = 0; }; }
23653 then
23654 gcc_cv_as_discriminator=yes
23655 else
23656 echo "configure: failed program was" >&5
23657 cat conftest.s >&5
23658 fi
23659 rm -f conftest.o conftest.s
23660 fi
23661 fi
23662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
23663 $as_echo "$gcc_cv_as_discriminator" >&6; }
23664 if test $gcc_cv_as_discriminator = yes; then
23665
23666 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
23667
23668 fi
23669
23670 # Thread-local storage - the check is heavily parameterized.
23671 conftest_s=
23672 tls_first_major=
23673 tls_first_minor=
23674 tls_as_opt=
23675 case "$target" in
23676 alpha*-*-*)
23677 conftest_s='
23678 .section ".tdata","awT",@progbits
23679 foo: .long 25
23680 .text
23681 ldq $27,__tls_get_addr($29) !literal!1
23682 lda $16,foo($29) !tlsgd!1
23683 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
23684 ldq $27,__tls_get_addr($29) !literal!2
23685 lda $16,foo($29) !tlsldm!2
23686 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
23687 ldq $1,foo($29) !gotdtprel
23688 ldah $2,foo($29) !dtprelhi
23689 lda $3,foo($2) !dtprello
23690 lda $4,foo($29) !dtprel
23691 ldq $1,foo($29) !gottprel
23692 ldah $2,foo($29) !tprelhi
23693 lda $3,foo($2) !tprello
23694 lda $4,foo($29) !tprel'
23695 tls_first_major=2
23696 tls_first_minor=13
23697 tls_as_opt=--fatal-warnings
23698 ;;
23699 cris-*-*|crisv32-*-*)
23700 conftest_s='
23701 .section ".tdata","awT",@progbits
23702 x: .long 25
23703 .text
23704 move.d x:IE,$r10
23705 nop'
23706 tls_first_major=2
23707 tls_first_minor=20
23708 tls_as_opt=--fatal-warnings
23709 ;;
23710 frv*-*-*)
23711 conftest_s='
23712 .section ".tdata","awT",@progbits
23713 x: .long 25
23714 .text
23715 call #gettlsoff(x)'
23716 tls_first_major=2
23717 tls_first_minor=14
23718 ;;
23719 hppa*-*-linux*)
23720 conftest_s='
23721 t1: .reg %r20
23722 t2: .reg %r21
23723 gp: .reg %r19
23724 .section ".tdata","awT",@progbits
23725 foo: .long 25
23726 .text
23727 .align 4
23728 addil LT%foo-$tls_gdidx$,gp
23729 ldo RT%foo-$tls_gdidx$(%r1),%arg0
23730 b __tls_get_addr
23731 nop
23732 addil LT%foo-$tls_ldidx$,gp
23733 b __tls_get_addr
23734 ldo RT%foo-$tls_ldidx$(%r1),%arg0
23735 addil LR%foo-$tls_dtpoff$,%ret0
23736 ldo RR%foo-$tls_dtpoff$(%r1),%t1
23737 mfctl %cr27,%t1
23738 addil LT%foo-$tls_ieoff$,gp
23739 ldw RT%foo-$tls_ieoff$(%r1),%t2
23740 add %t1,%t2,%t3
23741 mfctl %cr27,%t1
23742 addil LR%foo-$tls_leoff$,%t1
23743 ldo RR%foo-$tls_leoff$(%r1),%t2'
23744 tls_first_major=2
23745 tls_first_minor=15
23746 tls_as_opt=--fatal-warnings
23747 ;;
23748 arm*-*-*)
23749 conftest_s='
23750 .section ".tdata","awT",%progbits
23751 foo: .long 25
23752 .text
23753 .word foo(gottpoff)
23754 .word foo(tpoff)
23755 .word foo(tlsgd)
23756 .word foo(tlsldm)
23757 .word foo(tlsldo)'
23758 tls_first_major=2
23759 tls_first_minor=17
23760 ;;
23761 i[34567]86-*-* | x86_64-*-*)
23762 case "$target" in
23763 i[34567]86-*-solaris2.* | x86_64-*-solaris2.1[0-9]*)
23764 on_solaris=yes
23765 ;;
23766 *)
23767 on_solaris=no
23768 ;;
23769 esac
23770 if test x$on_solaris = xyes && test x$gas_flag = xno; then
23771 conftest_s='
23772 .section .tdata,"awt",@progbits'
23773 tls_first_major=0
23774 tls_first_minor=0
23775 tls_section_flag=t
23776
23777 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
23778
23779 else
23780 conftest_s='
23781 .section ".tdata","awT",@progbits'
23782 tls_first_major=2
23783 tls_first_minor=14
23784 tls_section_flag=T
23785 tls_as_opt="--fatal-warnings"
23786 fi
23787 case "$target" in
23788 i[34567]86-*-*)
23789 conftest_s="$conftest_s
23790 foo: .long 25
23791 .text
23792 movl %gs:0, %eax
23793 leal foo@tlsgd(,%ebx,1), %eax
23794 leal foo@tlsldm(%ebx), %eax
23795 leal foo@dtpoff(%eax), %edx
23796 movl foo@gottpoff(%ebx), %eax
23797 subl foo@gottpoff(%ebx), %eax
23798 addl foo@gotntpoff(%ebx), %eax
23799 movl foo@indntpoff, %eax
23800 movl \$foo@tpoff, %eax
23801 subl \$foo@tpoff, %eax
23802 leal foo@ntpoff(%ecx), %eax"
23803 ;;
23804 x86_64-*-*)
23805 if test x$on_solaris = xyes; then
23806 case $gas_flag in
23807 yes) tls_as_opt="$tls_as_opt --64" ;;
23808 no) tls_as_opt="$tls_as_opt -xarch=amd64" ;;
23809 esac
23810 fi
23811 conftest_s="$conftest_s
23812 foo: .long 25
23813 .text
23814 movq %fs:0, %rax
23815 leaq foo@tlsgd(%rip), %rdi
23816 leaq foo@tlsld(%rip), %rdi
23817 leaq foo@dtpoff(%rax), %rdx
23818 movq foo@gottpoff(%rip), %rax
23819 movq \$foo@tpoff, %rax"
23820 ;;
23821 esac
23822 ;;
23823 ia64-*-*)
23824 conftest_s='
23825 .section ".tdata","awT",@progbits
23826 foo: data8 25
23827 .text
23828 addl r16 = @ltoff(@dtpmod(foo#)), gp
23829 addl r17 = @ltoff(@dtprel(foo#)), gp
23830 addl r18 = @ltoff(@tprel(foo#)), gp
23831 addl r19 = @dtprel(foo#), gp
23832 adds r21 = @dtprel(foo#), r13
23833 movl r23 = @dtprel(foo#)
23834 addl r20 = @tprel(foo#), gp
23835 adds r22 = @tprel(foo#), r13
23836 movl r24 = @tprel(foo#)'
23837 tls_first_major=2
23838 tls_first_minor=13
23839 tls_as_opt=--fatal-warnings
23840 ;;
23841 microblaze*-*-*)
23842 conftest_s='
23843 .section .tdata,"awT",@progbits
23844 x:
23845 .word 2
23846 .text
23847 addik r5,r20,x@TLSGD
23848 addik r5,r20,x@TLSLDM'
23849 tls_first_major=2
23850 tls_first_minor=20
23851 tls_as_opt='--fatal-warnings'
23852 ;;
23853 mips*-*-*)
23854 conftest_s='
23855 .section .tdata,"awT",@progbits
23856 x:
23857 .word 2
23858 .text
23859 addiu $4, $28, %tlsgd(x)
23860 addiu $4, $28, %tlsldm(x)
23861 lui $4, %dtprel_hi(x)
23862 addiu $4, $4, %dtprel_lo(x)
23863 lw $4, %gottprel(x)($28)
23864 lui $4, %tprel_hi(x)
23865 addiu $4, $4, %tprel_lo(x)'
23866 tls_first_major=2
23867 tls_first_minor=16
23868 tls_as_opt='-32 --fatal-warnings'
23869 ;;
23870 m68k-*-*)
23871 conftest_s='
23872 .section .tdata,"awT",@progbits
23873 x:
23874 .word 2
23875 .text
23876 foo:
23877 move.l x@TLSGD(%a5),%a0
23878 move.l x@TLSLDM(%a5),%a0
23879 move.l x@TLSLDO(%a5),%a0
23880 move.l x@TLSIE(%a5),%a0
23881 move.l x@TLSLE(%a5),%a0'
23882 tls_first_major=2
23883 tls_first_minor=19
23884 tls_as_opt='--fatal-warnings'
23885 ;;
23886 nios2-*-*)
23887 conftest_s='
23888 .section ".tdata","awT",@progbits'
23889 tls_first_major=2
23890 tls_first_minor=23
23891 tls_as_opt="--fatal-warnings"
23892 ;;
23893 aarch64*-*-*)
23894 conftest_s='
23895 .section ".tdata","awT",%progbits
23896 foo: .long 25
23897 .text
23898 adrp x0, :tlsgd:x
23899 add x0, x0, #:tlsgd_lo12:x
23900 bl __tls_get_addr
23901 nop'
23902 tls_first_major=2
23903 tls_first_minor=20
23904 tls_as_opt='--fatal-warnings'
23905 ;;
23906 powerpc-ibm-aix*)
23907 conftest_s='
23908 .extern __get_tpointer
23909 .toc
23910 LC..1:
23911 .tc a[TC],a[TL]@le
23912 .csect .text[PR]
23913 .tlstest:
23914 lwz 9,LC..1(2)
23915 bla __get_tpointer
23916 lwzx 3,9,3
23917 .globl a
23918 .csect a[TL],4
23919 a:
23920 .space 4'
23921 tls_first_major=0
23922 tls_first_minor=0
23923 ;;
23924 powerpc64*-*-*)
23925 conftest_s='
23926 .section ".tdata","awT",@progbits
23927 .align 3
23928 ld0: .space 8
23929 ld1: .space 8
23930 x1: .space 8
23931 x2: .space 8
23932 x3: .space 8
23933 .text
23934 addi 3,2,ld0@got@tlsgd
23935 bl .__tls_get_addr
23936 nop
23937 addi 3,2,ld1@toc
23938 bl .__tls_get_addr
23939 nop
23940 addi 3,2,x1@got@tlsld
23941 bl .__tls_get_addr
23942 nop
23943 addi 9,3,x1@dtprel
23944 bl .__tls_get_addr
23945 nop
23946 addis 9,3,x2@dtprel@ha
23947 addi 9,9,x2@dtprel@l
23948 bl .__tls_get_addr
23949 nop
23950 ld 9,x3@got@dtprel(2)
23951 add 9,9,3
23952 bl .__tls_get_addr
23953 nop'
23954 tls_first_major=2
23955 tls_first_minor=14
23956 tls_as_opt="-a64 --fatal-warnings"
23957 ;;
23958 powerpc*-*-*)
23959 conftest_s='
23960 .section ".tdata","awT",@progbits
23961 .align 2
23962 ld0: .space 4
23963 ld1: .space 4
23964 x1: .space 4
23965 x2: .space 4
23966 x3: .space 4
23967 .text
23968 addi 3,31,ld0@got@tlsgd
23969 bl __tls_get_addr
23970 addi 3,31,x1@got@tlsld
23971 bl __tls_get_addr
23972 addi 9,3,x1@dtprel
23973 addis 9,3,x2@dtprel@ha
23974 addi 9,9,x2@dtprel@l
23975 lwz 9,x3@got@tprel(31)
23976 add 9,9,x@tls
23977 addi 9,2,x1@tprel
23978 addis 9,2,x2@tprel@ha
23979 addi 9,9,x2@tprel@l'
23980 tls_first_major=2
23981 tls_first_minor=14
23982 tls_as_opt="-a32 --fatal-warnings"
23983 ;;
23984 s390-*-*)
23985 conftest_s='
23986 .section ".tdata","awT",@progbits
23987 foo: .long 25
23988 .text
23989 .long foo@TLSGD
23990 .long foo@TLSLDM
23991 .long foo@DTPOFF
23992 .long foo@NTPOFF
23993 .long foo@GOTNTPOFF
23994 .long foo@INDNTPOFF
23995 l %r1,foo@GOTNTPOFF(%r12)
23996 l %r1,0(%r1):tls_load:foo
23997 bas %r14,0(%r1,%r13):tls_gdcall:foo
23998 bas %r14,0(%r1,%r13):tls_ldcall:foo'
23999 tls_first_major=2
24000 tls_first_minor=14
24001 tls_as_opt="-m31 --fatal-warnings"
24002 ;;
24003 s390x-*-*)
24004 conftest_s='
24005 .section ".tdata","awT",@progbits
24006 foo: .long 25
24007 .text
24008 .quad foo@TLSGD
24009 .quad foo@TLSLDM
24010 .quad foo@DTPOFF
24011 .quad foo@NTPOFF
24012 .quad foo@GOTNTPOFF
24013 lg %r1,foo@GOTNTPOFF(%r12)
24014 larl %r1,foo@INDNTPOFF
24015 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
24016 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
24017 tls_first_major=2
24018 tls_first_minor=14
24019 tls_as_opt="-m64 -Aesame --fatal-warnings"
24020 ;;
24021 sh-*-* | sh[123456789lbe]*-*-*)
24022 conftest_s='
24023 .section ".tdata","awT",@progbits
24024 foo: .long 25
24025 .text
24026 .long foo@TLSGD
24027 .long foo@TLSLDM
24028 .long foo@DTPOFF
24029 .long foo@GOTTPOFF
24030 .long foo@TPOFF'
24031 tls_first_major=2
24032 tls_first_minor=13
24033 tls_as_opt=--fatal-warnings
24034 ;;
24035 sparc*-*-*)
24036 case "$target" in
24037 sparc*-sun-solaris2.*)
24038 on_solaris=yes
24039 ;;
24040 *)
24041 on_solaris=no
24042 ;;
24043 esac
24044 if test x$on_solaris = xyes && test x$gas_flag = xno; then
24045 conftest_s='
24046 .section ".tdata",#alloc,#write,#tls'
24047 tls_first_major=0
24048 tls_first_minor=0
24049 else
24050 conftest_s='
24051 .section ".tdata","awT",@progbits'
24052 tls_first_major=2
24053 tls_first_minor=14
24054 tls_as_opt="-32 --fatal-warnings"
24055 fi
24056 conftest_s="$conftest_s
24057 foo: .long 25
24058 .text
24059 sethi %tgd_hi22(foo), %o0
24060 add %o0, %tgd_lo10(foo), %o1
24061 add %l7, %o1, %o0, %tgd_add(foo)
24062 call __tls_get_addr, %tgd_call(foo)
24063 sethi %tldm_hi22(foo), %l1
24064 add %l1, %tldm_lo10(foo), %l2
24065 add %l7, %l2, %o0, %tldm_add(foo)
24066 call __tls_get_addr, %tldm_call(foo)
24067 sethi %tldo_hix22(foo), %l3
24068 xor %l3, %tldo_lox10(foo), %l4
24069 add %o0, %l4, %l5, %tldo_add(foo)
24070 sethi %tie_hi22(foo), %o3
24071 add %o3, %tie_lo10(foo), %o3
24072 ld [%l7 + %o3], %o2, %tie_ld(foo)
24073 add %g7, %o2, %o4, %tie_add(foo)
24074 sethi %tle_hix22(foo), %l1
24075 xor %l1, %tle_lox10(foo), %o5
24076 ld [%g7 + %o5], %o1"
24077 ;;
24078 tilepro*-*-*)
24079 conftest_s='
24080 .section ".tdata","awT",@progbits
24081 foo: .long 25
24082 .text
24083 addli r0, zero, tls_gd(foo)
24084 auli r0, zero, tls_gd_ha16(foo)
24085 addli r0, r0, tls_gd_lo16(foo)
24086 jal __tls_get_addr
24087 addli r0, zero, tls_ie(foo)
24088 auli r0, r0, tls_ie_ha16(foo)
24089 addli r0, r0, tls_ie_lo16(foo)'
24090 tls_first_major=2
24091 tls_first_minor=22
24092 tls_as_opt="--fatal-warnings"
24093 ;;
24094 tilegx*-*-*)
24095 conftest_s='
24096 .section ".tdata","awT",@progbits
24097 foo: .long 25
24098 .text
24099 shl16insli r0, zero, hw0_last_tls_gd(foo)
24100 shl16insli r0, zero, hw1_last_tls_gd(foo)
24101 shl16insli r0, r0, hw0_tls_gd(foo)
24102 jal __tls_get_addr
24103 shl16insli r0, zero, hw1_last_tls_ie(foo)
24104 shl16insli r0, r0, hw0_tls_ie(foo)'
24105 tls_first_major=2
24106 tls_first_minor=22
24107 tls_as_opt="--fatal-warnings"
24108 ;;
24109 xtensa*-*-*)
24110 conftest_s='
24111 .section ".tdata","awT",@progbits
24112 foo: .long 25
24113 .text
24114 movi a8, foo@TLSFUNC
24115 movi a10, foo@TLSARG
24116 callx8.tls a8, foo@TLSCALL'
24117 tls_first_major=2
24118 tls_first_minor=19
24119 ;;
24120 esac
24121 set_have_as_tls=no
24122 if test "x$enable_tls" = xno ; then
24123 : # TLS explicitly disabled.
24124 elif test "x$enable_tls" = xyes ; then
24125 set_have_as_tls=yes # TLS explicitly enabled.
24126 elif test -z "$tls_first_major"; then
24127 : # If we don't have a check, assume no support.
24128 else
24129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
24130 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
24131 if test "${gcc_cv_as_tls+set}" = set; then :
24132 $as_echo_n "(cached) " >&6
24133 else
24134 gcc_cv_as_tls=no
24135 if test $in_tree_gas = yes; then
24136 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
24137 then gcc_cv_as_tls=yes
24138 fi
24139 elif test x$gcc_cv_as != x; then
24140 $as_echo "$conftest_s" > conftest.s
24141 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
24142 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24143 (eval $ac_try) 2>&5
24144 ac_status=$?
24145 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24146 test $ac_status = 0; }; }
24147 then
24148 gcc_cv_as_tls=yes
24149 else
24150 echo "configure: failed program was" >&5
24151 cat conftest.s >&5
24152 fi
24153 rm -f conftest.o conftest.s
24154 fi
24155 fi
24156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
24157 $as_echo "$gcc_cv_as_tls" >&6; }
24158 if test $gcc_cv_as_tls = yes; then
24159 set_have_as_tls=yes
24160 fi
24161 fi
24162 if test $set_have_as_tls = yes ; then
24163
24164 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
24165
24166 fi
24167
24168 # Target-specific assembler checks.
24169
24170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
24171 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
24172 gcc_cv_ld_static_dynamic=no
24173 gcc_cv_ld_static_option='-Bstatic'
24174 gcc_cv_ld_dynamic_option='-Bdynamic'
24175 if test $in_tree_ld = yes ; then
24176 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
24177 gcc_cv_ld_static_dynamic=yes
24178 fi
24179 elif test x$gcc_cv_ld != x; then
24180 # Check if linker supports -Bstatic/-Bdynamic option
24181 if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
24182 && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
24183 gcc_cv_ld_static_dynamic=yes
24184 else
24185 case "$target" in
24186 # AIX ld uses -b flags
24187 *-*-aix4.[23]* | *-*-aix[5-9]*)
24188 gcc_cv_ld_static_dynamic=yes
24189 gcc_cv_ld_static_option="-bstatic"
24190 gcc_cv_ld_dynamic_option="-bdynamic"
24191 ;;
24192 # HP-UX ld uses -a flags to select between shared and archive.
24193 *-*-hpux*)
24194 if test x"$gnu_ld" = xno; then
24195 gcc_cv_ld_static_dynamic=yes
24196 gcc_cv_ld_static_option="-aarchive_shared"
24197 gcc_cv_ld_dynamic_option="-adefault"
24198 fi
24199 ;;
24200 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
24201 *-*-solaris2*)
24202 gcc_cv_ld_static_dynamic=yes
24203 ;;
24204 esac
24205 fi
24206 fi
24207 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
24208
24209 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
24210
24211
24212 cat >>confdefs.h <<_ACEOF
24213 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
24214 _ACEOF
24215
24216
24217 cat >>confdefs.h <<_ACEOF
24218 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
24219 _ACEOF
24220
24221 fi
24222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
24223 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
24224
24225 if test x"$demangler_in_ld" = xyes; then
24226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
24227 $as_echo_n "checking linker --demangle support... " >&6; }
24228 gcc_cv_ld_demangle=no
24229 if test $in_tree_ld = yes; then
24230 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 \
24231 gcc_cv_ld_demangle=yes
24232 fi
24233 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
24234 # Check if the GNU linker supports --demangle option
24235 if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
24236 gcc_cv_ld_demangle=yes
24237 fi
24238 fi
24239 if test x"$gcc_cv_ld_demangle" = xyes; then
24240
24241 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
24242
24243 fi
24244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
24245 $as_echo "$gcc_cv_ld_demangle" >&6; }
24246 fi
24247
24248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
24249 $as_echo_n "checking linker plugin support... " >&6; }
24250 gcc_cv_lto_plugin=0
24251 if test -f liblto_plugin.la; then
24252 save_ld_ver="$ld_ver"
24253 save_ld_vers_major="$ld_vers_major"
24254 save_ld_vers_minor="$ld_vers_minor"
24255 save_ld_is_gold="$ld_is_gold"
24256
24257 ld_is_gold=no
24258
24259 if test $in_tree_ld = yes -a x"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x"$gcc_cv_ld"; then
24260 ld_ver="GNU ld"
24261 # FIXME: ld_is_gold?
24262 ld_vers_major="$gcc_cv_gld_major_version"
24263 ld_vers_minor="$gcc_cv_gld_minor_version"
24264 else
24265 # Determine plugin linker version.
24266 # FIXME: Partial duplicate from above, generalize.
24267 ld_ver=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
24268 if echo "$ld_ver" | grep GNU > /dev/null; then
24269 if echo "$ld_ver" | grep "GNU gold" > /dev/null; then
24270 ld_is_gold=yes
24271 ld_vers=`echo $ld_ver | sed -n \
24272 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
24273 else
24274 ld_vers=`echo $ld_ver | sed -n \
24275 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
24276 fi
24277 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
24278 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
24279 fi
24280 fi
24281
24282 # Determine plugin support.
24283 if echo "$ld_ver" | grep GNU > /dev/null; then
24284 # Require GNU ld or gold 2.21+ for plugin support by default.
24285 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
24286 gcc_cv_lto_plugin=2
24287 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
24288 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
24289 gcc_cv_lto_plugin=1
24290 fi
24291 fi
24292
24293 ld_ver="$save_ld_ver"
24294 ld_vers_major="$save_ld_vers_major"
24295 ld_vers_minor="$save_ld_vers_minor"
24296 ld_is_gold="$save_ld_is_gold"
24297 fi
24298
24299 cat >>confdefs.h <<_ACEOF
24300 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
24301 _ACEOF
24302
24303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
24304 $as_echo "$gcc_cv_lto_plugin" >&6; }
24305
24306 case "$target" in
24307 aarch64*-*-*)
24308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mabi option" >&5
24309 $as_echo_n "checking assembler for -mabi option... " >&6; }
24310 if test "${gcc_cv_as_aarch64_mabi+set}" = set; then :
24311 $as_echo_n "(cached) " >&6
24312 else
24313 gcc_cv_as_aarch64_mabi=no
24314 if test x$gcc_cv_as != x; then
24315 $as_echo '.text' > conftest.s
24316 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mabi=lp64 -o conftest.o conftest.s >&5'
24317 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24318 (eval $ac_try) 2>&5
24319 ac_status=$?
24320 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24321 test $ac_status = 0; }; }
24322 then
24323 gcc_cv_as_aarch64_mabi=yes
24324 else
24325 echo "configure: failed program was" >&5
24326 cat conftest.s >&5
24327 fi
24328 rm -f conftest.o conftest.s
24329 fi
24330 fi
24331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_mabi" >&5
24332 $as_echo "$gcc_cv_as_aarch64_mabi" >&6; }
24333
24334 if test x$gcc_cv_as_aarch64_mabi = xyes; then
24335
24336 $as_echo "#define HAVE_AS_MABI_OPTION 1" >>confdefs.h
24337
24338 else
24339 if test x$with_abi = xilp32; then
24340 as_fn_error "Assembler does not support -mabi=ilp32.\
24341 Upgrade the Assembler." "$LINENO" 5
24342 fi
24343 if test x"$with_multilib_list" = xdefault; then
24344 TM_MULTILIB_CONFIG=lp64
24345 else
24346 aarch64_multilibs=`echo $with_multilib_list | sed -e 's/,/ /g'`
24347 for aarch64_multilib in ${aarch64_multilibs}; do
24348 case ${aarch64_multilib} in
24349 ilp32)
24350 as_fn_error "Assembler does not support -mabi=ilp32.\
24351 Upgrade the Assembler." "$LINENO" 5
24352 ;;
24353 *)
24354 ;;
24355 esac
24356 done
24357 fi
24358 fi
24359 # Check if we have binutils support for relocations types needed by -fpic
24360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -fpic relocs" >&5
24361 $as_echo_n "checking assembler for -fpic relocs... " >&6; }
24362 if test "${gcc_cv_as_aarch64_picreloc+set}" = set; then :
24363 $as_echo_n "(cached) " >&6
24364 else
24365 gcc_cv_as_aarch64_picreloc=no
24366 if test x$gcc_cv_as != x; then
24367 $as_echo '
24368 .text
24369 ldr x0, [x2, #:gotpage_lo15:globalsym]
24370 ' > conftest.s
24371 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24372 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24373 (eval $ac_try) 2>&5
24374 ac_status=$?
24375 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24376 test $ac_status = 0; }; }
24377 then
24378 gcc_cv_as_aarch64_picreloc=yes
24379 else
24380 echo "configure: failed program was" >&5
24381 cat conftest.s >&5
24382 fi
24383 rm -f conftest.o conftest.s
24384 fi
24385 fi
24386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_picreloc" >&5
24387 $as_echo "$gcc_cv_as_aarch64_picreloc" >&6; }
24388 if test $gcc_cv_as_aarch64_picreloc = yes; then
24389
24390 $as_echo "#define HAVE_AS_SMALL_PIC_RELOCS 1" >>confdefs.h
24391
24392 fi
24393 # Enable default workaround for AArch64 Cortex-A53 erratum 835769.
24394 # Check whether --enable-fix-cortex-a53-835769 was given.
24395 if test "${enable_fix_cortex_a53_835769+set}" = set; then :
24396 enableval=$enable_fix_cortex_a53_835769;
24397 case $enableval in
24398 yes)
24399 tm_defines="${tm_defines} TARGET_FIX_ERR_A53_835769_DEFAULT=1"
24400 ;;
24401 no)
24402 ;;
24403 *)
24404 as_fn_error "'$enableval' is an invalid value for --enable-fix-cortex-a53-835769.\
24405 Valid choices are 'yes' and 'no'." "$LINENO" 5
24406 ;;
24407
24408 esac
24409
24410 fi
24411
24412 # Enable default workaround for AArch64 Cortex-A53 erratum 843419.
24413 # Check whether --enable-fix-cortex-a53-843419 was given.
24414 if test "${enable_fix_cortex_a53_843419+set}" = set; then :
24415 enableval=$enable_fix_cortex_a53_843419;
24416 case $enableval in
24417 yes)
24418 tm_defines="${tm_defines} TARGET_FIX_ERR_A53_843419_DEFAULT=1"
24419 ;;
24420 no)
24421 ;;
24422 *)
24423 as_fn_error "'$enableval' is an invalid value for --enable-fix-cortex-a53-843419.\
24424 Valid choices are 'yes' and 'no'." "$LINENO" 5
24425 ;;
24426
24427 esac
24428
24429 fi
24430
24431 ;;
24432
24433 # All TARGET_ABI_OSF targets.
24434 alpha*-*-linux* | alpha*-*-*bsd*)
24435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
24436 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
24437 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
24438 $as_echo_n "(cached) " >&6
24439 else
24440 gcc_cv_as_alpha_explicit_relocs=no
24441 if test $in_tree_gas = yes; then
24442 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
24443 then gcc_cv_as_alpha_explicit_relocs=yes
24444 fi
24445 elif test x$gcc_cv_as != x; then
24446 $as_echo ' .set nomacro
24447 .text
24448 extbl $3, $2, $3 !lituse_bytoff!1
24449 ldq $2, a($29) !literal!1
24450 ldq $4, b($29) !literal!2
24451 ldq_u $3, 0($2) !lituse_base!1
24452 ldq $27, f($29) !literal!5
24453 jsr $26, ($27), f !lituse_jsr!5
24454 ldah $29, 0($26) !gpdisp!3
24455 lda $0, c($29) !gprel
24456 ldah $1, d($29) !gprelhigh
24457 lda $1, d($1) !gprellow
24458 lda $29, 0($29) !gpdisp!3' > conftest.s
24459 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24460 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24461 (eval $ac_try) 2>&5
24462 ac_status=$?
24463 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24464 test $ac_status = 0; }; }
24465 then
24466 gcc_cv_as_alpha_explicit_relocs=yes
24467 else
24468 echo "configure: failed program was" >&5
24469 cat conftest.s >&5
24470 fi
24471 rm -f conftest.o conftest.s
24472 fi
24473 fi
24474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
24475 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
24476 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
24477
24478 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
24479
24480 fi
24481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
24482 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
24483 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
24484 $as_echo_n "(cached) " >&6
24485 else
24486 gcc_cv_as_alpha_jsrdirect_relocs=no
24487 if test $in_tree_gas = yes; then
24488 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
24489 then gcc_cv_as_alpha_jsrdirect_relocs=yes
24490 fi
24491 elif test x$gcc_cv_as != x; then
24492 $as_echo ' .set nomacro
24493 .text
24494 ldq $27, a($29) !literal!1
24495 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
24496 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24497 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24498 (eval $ac_try) 2>&5
24499 ac_status=$?
24500 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24501 test $ac_status = 0; }; }
24502 then
24503 gcc_cv_as_alpha_jsrdirect_relocs=yes
24504 else
24505 echo "configure: failed program was" >&5
24506 cat conftest.s >&5
24507 fi
24508 rm -f conftest.o conftest.s
24509 fi
24510 fi
24511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
24512 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
24513 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
24514
24515 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
24516
24517 fi
24518 ;;
24519
24520 avr-*-*)
24521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --mlink-relax option" >&5
24522 $as_echo_n "checking assembler for --mlink-relax option... " >&6; }
24523 if test "${gcc_cv_as_avr_mlink_relax+set}" = set; then :
24524 $as_echo_n "(cached) " >&6
24525 else
24526 gcc_cv_as_avr_mlink_relax=no
24527 if test x$gcc_cv_as != x; then
24528 $as_echo '.text' > conftest.s
24529 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --mlink-relax -o conftest.o conftest.s >&5'
24530 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24531 (eval $ac_try) 2>&5
24532 ac_status=$?
24533 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24534 test $ac_status = 0; }; }
24535 then
24536 gcc_cv_as_avr_mlink_relax=yes
24537 else
24538 echo "configure: failed program was" >&5
24539 cat conftest.s >&5
24540 fi
24541 rm -f conftest.o conftest.s
24542 fi
24543 fi
24544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mlink_relax" >&5
24545 $as_echo "$gcc_cv_as_avr_mlink_relax" >&6; }
24546 if test $gcc_cv_as_avr_mlink_relax = yes; then
24547
24548 $as_echo "#define HAVE_AS_AVR_MLINK_RELAX_OPTION 1" >>confdefs.h
24549
24550 fi
24551
24552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mrmw option" >&5
24553 $as_echo_n "checking assembler for -mrmw option... " >&6; }
24554 if test "${gcc_cv_as_avr_mrmw+set}" = set; then :
24555 $as_echo_n "(cached) " >&6
24556 else
24557 gcc_cv_as_avr_mrmw=no
24558 if test x$gcc_cv_as != x; then
24559 $as_echo '.text' > conftest.s
24560 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mrmw -o conftest.o conftest.s >&5'
24561 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24562 (eval $ac_try) 2>&5
24563 ac_status=$?
24564 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24565 test $ac_status = 0; }; }
24566 then
24567 gcc_cv_as_avr_mrmw=yes
24568 else
24569 echo "configure: failed program was" >&5
24570 cat conftest.s >&5
24571 fi
24572 rm -f conftest.o conftest.s
24573 fi
24574 fi
24575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mrmw" >&5
24576 $as_echo "$gcc_cv_as_avr_mrmw" >&6; }
24577 if test $gcc_cv_as_avr_mrmw = yes; then
24578
24579 $as_echo "#define HAVE_AS_AVR_MRMW_OPTION 1" >>confdefs.h
24580
24581 fi
24582 ;;
24583
24584 cris-*-*)
24585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
24586 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
24587 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
24588 $as_echo_n "(cached) " >&6
24589 else
24590 gcc_cv_as_cris_no_mul_bug=no
24591 if test $in_tree_gas = yes; then
24592 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24593 then gcc_cv_as_cris_no_mul_bug=yes
24594 fi
24595 elif test x$gcc_cv_as != x; then
24596 $as_echo '.text' > conftest.s
24597 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
24598 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24599 (eval $ac_try) 2>&5
24600 ac_status=$?
24601 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24602 test $ac_status = 0; }; }
24603 then
24604 gcc_cv_as_cris_no_mul_bug=yes
24605 else
24606 echo "configure: failed program was" >&5
24607 cat conftest.s >&5
24608 fi
24609 rm -f conftest.o conftest.s
24610 fi
24611 fi
24612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
24613 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
24614 if test $gcc_cv_as_cris_no_mul_bug = yes; then
24615
24616 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
24617
24618 fi
24619 ;;
24620
24621 sparc*-*-*)
24622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
24623 $as_echo_n "checking assembler for .register... " >&6; }
24624 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
24625 $as_echo_n "(cached) " >&6
24626 else
24627 gcc_cv_as_sparc_register_op=no
24628 if test x$gcc_cv_as != x; then
24629 $as_echo '.register %g2, #scratch' > conftest.s
24630 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24631 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24632 (eval $ac_try) 2>&5
24633 ac_status=$?
24634 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24635 test $ac_status = 0; }; }
24636 then
24637 gcc_cv_as_sparc_register_op=yes
24638 else
24639 echo "configure: failed program was" >&5
24640 cat conftest.s >&5
24641 fi
24642 rm -f conftest.o conftest.s
24643 fi
24644 fi
24645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
24646 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
24647 if test $gcc_cv_as_sparc_register_op = yes; then
24648
24649 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
24650
24651 fi
24652
24653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for #nobits" >&5
24654 $as_echo_n "checking assembler for #nobits... " >&6; }
24655 if test "${gcc_cv_as_sparc_nobits+set}" = set; then :
24656 $as_echo_n "(cached) " >&6
24657 else
24658 gcc_cv_as_sparc_nobits=no
24659 if test x$gcc_cv_as != x; then
24660 $as_echo '.section "nobits",#alloc,#write,#nobits
24661 .section "progbits",#alloc,#write,#progbits' > conftest.s
24662 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24663 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24664 (eval $ac_try) 2>&5
24665 ac_status=$?
24666 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24667 test $ac_status = 0; }; }
24668 then
24669 gcc_cv_as_sparc_nobits=yes
24670 else
24671 echo "configure: failed program was" >&5
24672 cat conftest.s >&5
24673 fi
24674 rm -f conftest.o conftest.s
24675 fi
24676 fi
24677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_nobits" >&5
24678 $as_echo "$gcc_cv_as_sparc_nobits" >&6; }
24679
24680
24681 cat >>confdefs.h <<_ACEOF
24682 #define HAVE_AS_SPARC_NOBITS `if test $gcc_cv_as_sparc_nobits = yes; then echo 1; else echo 0; fi`
24683 _ACEOF
24684
24685
24686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
24687 $as_echo_n "checking assembler for -relax option... " >&6; }
24688 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
24689 $as_echo_n "(cached) " >&6
24690 else
24691 gcc_cv_as_sparc_relax=no
24692 if test x$gcc_cv_as != x; then
24693 $as_echo '.text' > conftest.s
24694 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
24695 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24696 (eval $ac_try) 2>&5
24697 ac_status=$?
24698 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24699 test $ac_status = 0; }; }
24700 then
24701 gcc_cv_as_sparc_relax=yes
24702 else
24703 echo "configure: failed program was" >&5
24704 cat conftest.s >&5
24705 fi
24706 rm -f conftest.o conftest.s
24707 fi
24708 fi
24709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
24710 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
24711 if test $gcc_cv_as_sparc_relax = yes; then
24712
24713 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
24714
24715 fi
24716
24717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
24718 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
24719 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
24720 $as_echo_n "(cached) " >&6
24721 else
24722 gcc_cv_as_sparc_gotdata_op=no
24723 if test x$gcc_cv_as != x; then
24724 $as_echo '.text
24725 .align 4
24726 foo:
24727 nop
24728 bar:
24729 sethi %gdop_hix22(foo), %g1
24730 xor %g1, %gdop_lox10(foo), %g1
24731 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
24732 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24733 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24734 (eval $ac_try) 2>&5
24735 ac_status=$?
24736 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24737 test $ac_status = 0; }; }
24738 then
24739 if test x$gcc_cv_ld != x \
24740 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24741 if test x$gcc_cv_objdump != x; then
24742 if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
24743 | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
24744 gcc_cv_as_sparc_gotdata_op=no
24745 else
24746 gcc_cv_as_sparc_gotdata_op=yes
24747 fi
24748 fi
24749 fi
24750 rm -f conftest
24751 else
24752 echo "configure: failed program was" >&5
24753 cat conftest.s >&5
24754 fi
24755 rm -f conftest.o conftest.s
24756 fi
24757 fi
24758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
24759 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
24760 if test $gcc_cv_as_sparc_gotdata_op = yes; then
24761
24762 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
24763
24764 fi
24765
24766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
24767 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
24768 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
24769 $as_echo_n "(cached) " >&6
24770 else
24771 gcc_cv_as_sparc_ua_pcrel=no
24772 if test x$gcc_cv_as != x; then
24773 $as_echo '.text
24774 foo:
24775 nop
24776 .data
24777 .align 4
24778 .byte 0
24779 .uaword %r_disp32(foo)' > conftest.s
24780 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24781 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24782 (eval $ac_try) 2>&5
24783 ac_status=$?
24784 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24785 test $ac_status = 0; }; }
24786 then
24787 if test x$gcc_cv_ld != x \
24788 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24789 gcc_cv_as_sparc_ua_pcrel=yes
24790 fi
24791 rm -f conftest
24792 else
24793 echo "configure: failed program was" >&5
24794 cat conftest.s >&5
24795 fi
24796 rm -f conftest.o conftest.s
24797 fi
24798 fi
24799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
24800 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
24801 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
24802
24803 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
24804
24805
24806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
24807 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
24808 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
24809 $as_echo_n "(cached) " >&6
24810 else
24811 gcc_cv_as_sparc_ua_pcrel_hidden=no
24812 if test x$gcc_cv_as != x; then
24813 $as_echo '.data
24814 .align 4
24815 .byte 0x31
24816 .uaword %r_disp32(foo)
24817 .byte 0x32, 0x33, 0x34
24818 .global foo
24819 .hidden foo
24820 foo:
24821 .skip 4' > conftest.s
24822 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24823 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24824 (eval $ac_try) 2>&5
24825 ac_status=$?
24826 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24827 test $ac_status = 0; }; }
24828 then
24829 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
24830 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
24831 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
24832 | grep ' 31000000 07323334' > /dev/null 2>&1; then
24833 if $gcc_cv_objdump -R conftest 2> /dev/null \
24834 | grep 'DISP32' > /dev/null 2>&1; then
24835 :
24836 else
24837 gcc_cv_as_sparc_ua_pcrel_hidden=yes
24838 fi
24839 fi
24840 rm -f conftest
24841 else
24842 echo "configure: failed program was" >&5
24843 cat conftest.s >&5
24844 fi
24845 rm -f conftest.o conftest.s
24846 fi
24847 fi
24848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
24849 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
24850 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
24851
24852 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
24853
24854 fi
24855
24856 fi # unaligned pcrel relocs
24857
24858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
24859 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
24860 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
24861 $as_echo_n "(cached) " >&6
24862 else
24863 gcc_cv_as_sparc_offsetable_lo10=no
24864 if test x$gcc_cv_as != x; then
24865 $as_echo '.text
24866 or %g1, %lo(ab) + 12, %g1
24867 or %g1, %lo(ab + 12), %g1' > conftest.s
24868 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
24869 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24870 (eval $ac_try) 2>&5
24871 ac_status=$?
24872 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24873 test $ac_status = 0; }; }
24874 then
24875 if test x$gcc_cv_objdump != x \
24876 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
24877 | grep ' 82106000 82106000' > /dev/null 2>&1; then
24878 gcc_cv_as_sparc_offsetable_lo10=yes
24879 fi
24880 else
24881 echo "configure: failed program was" >&5
24882 cat conftest.s >&5
24883 fi
24884 rm -f conftest.o conftest.s
24885 fi
24886 fi
24887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
24888 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
24889 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
24890
24891 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
24892
24893 fi
24894
24895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
24896 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
24897 if test "${gcc_cv_as_sparc_fmaf+set}" = set; then :
24898 $as_echo_n "(cached) " >&6
24899 else
24900 gcc_cv_as_sparc_fmaf=no
24901 if test x$gcc_cv_as != x; then
24902 $as_echo '.text
24903 .register %g2, #scratch
24904 .register %g3, #scratch
24905 .align 4
24906 fmaddd %f0, %f2, %f4, %f6
24907 addxccc %g1, %g2, %g3
24908 fsrl32 %f2, %f4, %f8
24909 fnaddd %f10, %f12, %f14' > conftest.s
24910 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
24911 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24912 (eval $ac_try) 2>&5
24913 ac_status=$?
24914 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24915 test $ac_status = 0; }; }
24916 then
24917 gcc_cv_as_sparc_fmaf=yes
24918 else
24919 echo "configure: failed program was" >&5
24920 cat conftest.s >&5
24921 fi
24922 rm -f conftest.o conftest.s
24923 fi
24924 fi
24925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
24926 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
24927 if test $gcc_cv_as_sparc_fmaf = yes; then
24928
24929 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
24930
24931 fi
24932
24933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
24934 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
24935 if test "${gcc_cv_as_sparc_sparc4+set}" = set; then :
24936 $as_echo_n "(cached) " >&6
24937 else
24938 gcc_cv_as_sparc_sparc4=no
24939 if test x$gcc_cv_as != x; then
24940 $as_echo '.text
24941 .register %g2, #scratch
24942 .register %g3, #scratch
24943 .align 4
24944 cxbe %g2, %g3, 1f
24945 1: cwbneg %g2, %g3, 1f
24946 1: sha1
24947 md5
24948 aes_kexpand0 %f4, %f6, %f8
24949 des_round %f38, %f40, %f42, %f44
24950 camellia_f %f54, %f56, %f58, %f60
24951 kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
24952 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
24953 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24954 (eval $ac_try) 2>&5
24955 ac_status=$?
24956 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24957 test $ac_status = 0; }; }
24958 then
24959 gcc_cv_as_sparc_sparc4=yes
24960 else
24961 echo "configure: failed program was" >&5
24962 cat conftest.s >&5
24963 fi
24964 rm -f conftest.o conftest.s
24965 fi
24966 fi
24967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
24968 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
24969 if test $gcc_cv_as_sparc_sparc4 = yes; then
24970
24971 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
24972
24973 fi
24974
24975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for LEON instructions" >&5
24976 $as_echo_n "checking assembler for LEON instructions... " >&6; }
24977 if test "${gcc_cv_as_sparc_leon+set}" = set; then :
24978 $as_echo_n "(cached) " >&6
24979 else
24980 gcc_cv_as_sparc_leon=no
24981 if test x$gcc_cv_as != x; then
24982 $as_echo '.text
24983 .register %g2, #scratch
24984 .register %g3, #scratch
24985 .align 4
24986 smac %g2, %g3, %g1
24987 umac %g2, %g3, %g1
24988 casa [%g2] 0xb, %g3, %g1' > conftest.s
24989 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -Aleon -o conftest.o conftest.s >&5'
24990 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24991 (eval $ac_try) 2>&5
24992 ac_status=$?
24993 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24994 test $ac_status = 0; }; }
24995 then
24996 gcc_cv_as_sparc_leon=yes
24997 else
24998 echo "configure: failed program was" >&5
24999 cat conftest.s >&5
25000 fi
25001 rm -f conftest.o conftest.s
25002 fi
25003 fi
25004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_leon" >&5
25005 $as_echo "$gcc_cv_as_sparc_leon" >&6; }
25006 if test $gcc_cv_as_sparc_leon = yes; then
25007
25008 $as_echo "#define HAVE_AS_LEON 1" >>confdefs.h
25009
25010 fi
25011 ;;
25012
25013 i[34567]86-*-* | x86_64-*-*)
25014 case $target_os in
25015 cygwin*)
25016 # Full C++ conformance when using a shared libstdc++-v3 requires some
25017 # support from the Cygwin DLL, which in more recent versions exports
25018 # wrappers to aid in interposing and redirecting operators new, delete,
25019 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
25020 # are configuring for a version of Cygwin that exports the wrappers.
25021 if test x$host = x$target && test x$host_cpu = xi686; then
25022 ac_fn_cxx_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
25023 if test "x$ac_cv_func___wrap__Znaj" = x""yes; then :
25024 gcc_ac_cygwin_dll_wrappers=yes
25025 else
25026 gcc_ac_cygwin_dll_wrappers=no
25027 fi
25028
25029 else
25030 # Can't check presence of libc functions during cross-compile, so
25031 # we just have to assume we're building for an up-to-date target.
25032 gcc_ac_cygwin_dll_wrappers=yes
25033 fi
25034
25035 cat >>confdefs.h <<_ACEOF
25036 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
25037 _ACEOF
25038
25039 esac
25040 case $target_os in
25041 cygwin* | pe | mingw32* | interix*)
25042 # Recent binutils allows the three-operand form of ".comm" on PE. This
25043 # definition is used unconditionally to initialise the default state of
25044 # the target option variable that governs usage of the feature.
25045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
25046 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
25047 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
25048 $as_echo_n "(cached) " >&6
25049 else
25050 gcc_cv_as_comm_has_align=no
25051 if test $in_tree_gas = yes; then
25052 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
25053 then gcc_cv_as_comm_has_align=yes
25054 fi
25055 elif test x$gcc_cv_as != x; then
25056 $as_echo '.comm foo,1,32' > conftest.s
25057 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25058 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25059 (eval $ac_try) 2>&5
25060 ac_status=$?
25061 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25062 test $ac_status = 0; }; }
25063 then
25064 gcc_cv_as_comm_has_align=yes
25065 else
25066 echo "configure: failed program was" >&5
25067 cat conftest.s >&5
25068 fi
25069 rm -f conftest.o conftest.s
25070 fi
25071 fi
25072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
25073 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
25074
25075
25076 cat >>confdefs.h <<_ACEOF
25077 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
25078 _ACEOF
25079
25080 # Used for DWARF 2 in PE
25081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
25082 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
25083 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
25084 $as_echo_n "(cached) " >&6
25085 else
25086 gcc_cv_as_ix86_pe_secrel32=no
25087 if test $in_tree_gas = yes; then
25088 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
25089 then gcc_cv_as_ix86_pe_secrel32=yes
25090 fi
25091 elif test x$gcc_cv_as != x; then
25092 $as_echo '.text
25093 foo: nop
25094 .data
25095 .secrel32 foo' > conftest.s
25096 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25097 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25098 (eval $ac_try) 2>&5
25099 ac_status=$?
25100 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25101 test $ac_status = 0; }; }
25102 then
25103 if test x$gcc_cv_ld != x \
25104 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
25105 gcc_cv_as_ix86_pe_secrel32=yes
25106 fi
25107 rm -f conftest
25108 else
25109 echo "configure: failed program was" >&5
25110 cat conftest.s >&5
25111 fi
25112 rm -f conftest.o conftest.s
25113 fi
25114 fi
25115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
25116 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
25117 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
25118
25119 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
25120
25121 fi
25122 # Test if the assembler supports the extended form of the .section
25123 # directive that specifies section alignment. LTO support uses this,
25124 # but normally only after installation, so we warn but don't fail the
25125 # configure if LTO is enabled but the assembler does not support it.
25126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
25127 $as_echo_n "checking assembler for .section with alignment... " >&6; }
25128 if test "${gcc_cv_as_section_has_align+set}" = set; then :
25129 $as_echo_n "(cached) " >&6
25130 else
25131 gcc_cv_as_section_has_align=no
25132 if test $in_tree_gas = yes; then
25133 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
25134 then gcc_cv_as_section_has_align=yes
25135 fi
25136 elif test x$gcc_cv_as != x; then
25137 $as_echo '.section lto_test,"dr0"' > conftest.s
25138 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
25139 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25140 (eval $ac_try) 2>&5
25141 ac_status=$?
25142 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25143 test $ac_status = 0; }; }
25144 then
25145 gcc_cv_as_section_has_align=yes
25146 else
25147 echo "configure: failed program was" >&5
25148 cat conftest.s >&5
25149 fi
25150 rm -f conftest.o conftest.s
25151 fi
25152 fi
25153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
25154 $as_echo "$gcc_cv_as_section_has_align" >&6; }
25155
25156 if test x$gcc_cv_as_section_has_align != xyes; then
25157 case ",$enable_languages," in
25158 *,lto,*)
25159 { $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
25160 $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;}
25161 ;;
25162 esac
25163 fi
25164 ;;
25165 esac
25166
25167 # Test if the assembler supports the section flag 'e' for specifying
25168 # an excluded section.
25169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with e" >&5
25170 $as_echo_n "checking assembler for .section with e... " >&6; }
25171 if test "${gcc_cv_as_section_has_e+set}" = set; then :
25172 $as_echo_n "(cached) " >&6
25173 else
25174 gcc_cv_as_section_has_e=no
25175 if test $in_tree_gas = yes; then
25176 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
25177 then gcc_cv_as_section_has_e=yes
25178 fi
25179 elif test x$gcc_cv_as != x; then
25180 $as_echo '.section foo1,"e"
25181 .byte 0,0,0,0' > conftest.s
25182 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25183 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25184 (eval $ac_try) 2>&5
25185 ac_status=$?
25186 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25187 test $ac_status = 0; }; }
25188 then
25189 gcc_cv_as_section_has_e=yes
25190 else
25191 echo "configure: failed program was" >&5
25192 cat conftest.s >&5
25193 fi
25194 rm -f conftest.o conftest.s
25195 fi
25196 fi
25197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_e" >&5
25198 $as_echo "$gcc_cv_as_section_has_e" >&6; }
25199
25200
25201 cat >>confdefs.h <<_ACEOF
25202 #define HAVE_GAS_SECTION_EXCLUDE `if test $gcc_cv_as_section_has_e = yes; then echo 1; else echo 0; fi`
25203 _ACEOF
25204
25205
25206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
25207 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
25208 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
25209 $as_echo_n "(cached) " >&6
25210 else
25211 gcc_cv_as_ix86_filds=no
25212 if test x$gcc_cv_as != x; then
25213 $as_echo 'filds (%ebp); fists (%ebp)' > conftest.s
25214 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25215 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25216 (eval $ac_try) 2>&5
25217 ac_status=$?
25218 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25219 test $ac_status = 0; }; }
25220 then
25221 gcc_cv_as_ix86_filds=yes
25222 else
25223 echo "configure: failed program was" >&5
25224 cat conftest.s >&5
25225 fi
25226 rm -f conftest.o conftest.s
25227 fi
25228 fi
25229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
25230 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
25231 if test $gcc_cv_as_ix86_filds = yes; then
25232
25233 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
25234
25235 fi
25236
25237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
25238 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
25239 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
25240 $as_echo_n "(cached) " >&6
25241 else
25242 gcc_cv_as_ix86_fildq=no
25243 if test x$gcc_cv_as != x; then
25244 $as_echo 'fildq (%ebp); fistpq (%ebp)' > conftest.s
25245 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25246 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25247 (eval $ac_try) 2>&5
25248 ac_status=$?
25249 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25250 test $ac_status = 0; }; }
25251 then
25252 gcc_cv_as_ix86_fildq=yes
25253 else
25254 echo "configure: failed program was" >&5
25255 cat conftest.s >&5
25256 fi
25257 rm -f conftest.o conftest.s
25258 fi
25259 fi
25260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
25261 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
25262 if test $gcc_cv_as_ix86_fildq = yes; then
25263
25264 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
25265
25266 fi
25267
25268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
25269 $as_echo_n "checking assembler for cmov syntax... " >&6; }
25270 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
25271 $as_echo_n "(cached) " >&6
25272 else
25273 gcc_cv_as_ix86_cmov_sun_syntax=no
25274 if test x$gcc_cv_as != x; then
25275 $as_echo 'cmovl.l %edx, %eax' > conftest.s
25276 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25277 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25278 (eval $ac_try) 2>&5
25279 ac_status=$?
25280 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25281 test $ac_status = 0; }; }
25282 then
25283 gcc_cv_as_ix86_cmov_sun_syntax=yes
25284 else
25285 echo "configure: failed program was" >&5
25286 cat conftest.s >&5
25287 fi
25288 rm -f conftest.o conftest.s
25289 fi
25290 fi
25291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
25292 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
25293 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
25294
25295 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
25296
25297 fi
25298
25299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
25300 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
25301 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
25302 $as_echo_n "(cached) " >&6
25303 else
25304 gcc_cv_as_ix86_ffreep=no
25305 if test x$gcc_cv_as != x; then
25306 $as_echo 'ffreep %st(1)' > conftest.s
25307 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25308 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25309 (eval $ac_try) 2>&5
25310 ac_status=$?
25311 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25312 test $ac_status = 0; }; }
25313 then
25314 gcc_cv_as_ix86_ffreep=yes
25315 else
25316 echo "configure: failed program was" >&5
25317 cat conftest.s >&5
25318 fi
25319 rm -f conftest.o conftest.s
25320 fi
25321 fi
25322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
25323 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
25324 if test $gcc_cv_as_ix86_ffreep = yes; then
25325
25326 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
25327
25328 fi
25329
25330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
25331 $as_echo_n "checking assembler for .quad directive... " >&6; }
25332 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
25333 $as_echo_n "(cached) " >&6
25334 else
25335 gcc_cv_as_ix86_quad=no
25336 if test x$gcc_cv_as != x; then
25337 $as_echo '.quad 0' > conftest.s
25338 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25339 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25340 (eval $ac_try) 2>&5
25341 ac_status=$?
25342 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25343 test $ac_status = 0; }; }
25344 then
25345 gcc_cv_as_ix86_quad=yes
25346 else
25347 echo "configure: failed program was" >&5
25348 cat conftest.s >&5
25349 fi
25350 rm -f conftest.o conftest.s
25351 fi
25352 fi
25353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
25354 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
25355 if test $gcc_cv_as_ix86_quad = yes; then
25356
25357 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
25358
25359 fi
25360
25361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
25362 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
25363 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
25364 $as_echo_n "(cached) " >&6
25365 else
25366 gcc_cv_as_ix86_sahf=no
25367 if test x$gcc_cv_as != x; then
25368 $as_echo '.code64
25369 sahf' > conftest.s
25370 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25371 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25372 (eval $ac_try) 2>&5
25373 ac_status=$?
25374 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25375 test $ac_status = 0; }; }
25376 then
25377 gcc_cv_as_ix86_sahf=yes
25378 else
25379 echo "configure: failed program was" >&5
25380 cat conftest.s >&5
25381 fi
25382 rm -f conftest.o conftest.s
25383 fi
25384 fi
25385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
25386 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
25387 if test $gcc_cv_as_ix86_sahf = yes; then
25388
25389 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
25390
25391 fi
25392
25393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for interunit movq mnemonic" >&5
25394 $as_echo_n "checking assembler for interunit movq mnemonic... " >&6; }
25395 if test "${gcc_cv_as_ix86_interunit_movq+set}" = set; then :
25396 $as_echo_n "(cached) " >&6
25397 else
25398 gcc_cv_as_ix86_interunit_movq=no
25399 if test x$gcc_cv_as != x; then
25400 $as_echo '.code64
25401 movq %mm0, %rax
25402 movq %rax, %xmm0' > conftest.s
25403 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25404 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25405 (eval $ac_try) 2>&5
25406 ac_status=$?
25407 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25408 test $ac_status = 0; }; }
25409 then
25410 gcc_cv_as_ix86_interunit_movq=yes
25411 else
25412 echo "configure: failed program was" >&5
25413 cat conftest.s >&5
25414 fi
25415 rm -f conftest.o conftest.s
25416 fi
25417 fi
25418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_interunit_movq" >&5
25419 $as_echo "$gcc_cv_as_ix86_interunit_movq" >&6; }
25420
25421
25422 cat >>confdefs.h <<_ACEOF
25423 #define HAVE_AS_IX86_INTERUNIT_MOVQ `if test $gcc_cv_as_ix86_interunit_movq = yes; then echo 1; else echo 0; fi`
25424 _ACEOF
25425
25426
25427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
25428 $as_echo_n "checking assembler for hle prefixes... " >&6; }
25429 if test "${gcc_cv_as_ix86_hle+set}" = set; then :
25430 $as_echo_n "(cached) " >&6
25431 else
25432 gcc_cv_as_ix86_hle=no
25433 if test x$gcc_cv_as != x; then
25434 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
25435 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25436 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25437 (eval $ac_try) 2>&5
25438 ac_status=$?
25439 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25440 test $ac_status = 0; }; }
25441 then
25442 gcc_cv_as_ix86_hle=yes
25443 else
25444 echo "configure: failed program was" >&5
25445 cat conftest.s >&5
25446 fi
25447 rm -f conftest.o conftest.s
25448 fi
25449 fi
25450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
25451 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
25452 if test $gcc_cv_as_ix86_hle = yes; then
25453
25454 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
25455
25456 fi
25457
25458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
25459 $as_echo_n "checking assembler for swap suffix... " >&6; }
25460 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
25461 $as_echo_n "(cached) " >&6
25462 else
25463 gcc_cv_as_ix86_swap=no
25464 if test x$gcc_cv_as != x; then
25465 $as_echo 'movl.s %esp, %ebp' > conftest.s
25466 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25467 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25468 (eval $ac_try) 2>&5
25469 ac_status=$?
25470 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25471 test $ac_status = 0; }; }
25472 then
25473 gcc_cv_as_ix86_swap=yes
25474 else
25475 echo "configure: failed program was" >&5
25476 cat conftest.s >&5
25477 fi
25478 rm -f conftest.o conftest.s
25479 fi
25480 fi
25481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
25482 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
25483 if test $gcc_cv_as_ix86_swap = yes; then
25484
25485 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
25486
25487 fi
25488
25489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
25490 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
25491 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
25492 $as_echo_n "(cached) " >&6
25493 else
25494 gcc_cv_as_ix86_diff_sect_delta=no
25495 if test x$gcc_cv_as != x; then
25496 $as_echo '.section .rodata
25497 .L1:
25498 .long .L2-.L1
25499 .long .L3-.L1
25500 .text
25501 .L3: nop
25502 .L2: nop' > conftest.s
25503 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25504 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25505 (eval $ac_try) 2>&5
25506 ac_status=$?
25507 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25508 test $ac_status = 0; }; }
25509 then
25510 gcc_cv_as_ix86_diff_sect_delta=yes
25511 else
25512 echo "configure: failed program was" >&5
25513 cat conftest.s >&5
25514 fi
25515 rm -f conftest.o conftest.s
25516 fi
25517 fi
25518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
25519 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
25520 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
25521
25522 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
25523
25524 fi
25525
25526 # These two are used unconditionally by i386.[ch]; it is to be defined
25527 # to 1 if the feature is present, 0 otherwise.
25528 as_ix86_gotoff_in_data_opt=
25529 if test x$gas = xyes; then
25530 as_ix86_gotoff_in_data_opt="--32"
25531 fi
25532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
25533 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
25534 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
25535 $as_echo_n "(cached) " >&6
25536 else
25537 gcc_cv_as_ix86_gotoff_in_data=no
25538 if test $in_tree_gas = yes; then
25539 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25540 then gcc_cv_as_ix86_gotoff_in_data=yes
25541 fi
25542 elif test x$gcc_cv_as != x; then
25543 $as_echo ' .text
25544 .L0:
25545 nop
25546 .data
25547 .long .L0@GOTOFF' > conftest.s
25548 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gotoff_in_data_opt -o conftest.o conftest.s >&5'
25549 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25550 (eval $ac_try) 2>&5
25551 ac_status=$?
25552 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25553 test $ac_status = 0; }; }
25554 then
25555 gcc_cv_as_ix86_gotoff_in_data=yes
25556 else
25557 echo "configure: failed program was" >&5
25558 cat conftest.s >&5
25559 fi
25560 rm -f conftest.o conftest.s
25561 fi
25562 fi
25563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
25564 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
25565
25566
25567 cat >>confdefs.h <<_ACEOF
25568 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
25569 _ACEOF
25570
25571
25572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
25573 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
25574 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
25575 $as_echo_n "(cached) " >&6
25576 else
25577 gcc_cv_as_ix86_rep_lock_prefix=no
25578 if test x$gcc_cv_as != x; then
25579 $as_echo 'rep movsl
25580 rep ret
25581 rep nop
25582 rep bsf %ecx, %eax
25583 rep bsr %ecx, %eax
25584 lock addl %edi, (%eax,%esi)
25585 lock orl $0, (%esp)' > conftest.s
25586 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25587 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25588 (eval $ac_try) 2>&5
25589 ac_status=$?
25590 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25591 test $ac_status = 0; }; }
25592 then
25593 gcc_cv_as_ix86_rep_lock_prefix=yes
25594 else
25595 echo "configure: failed program was" >&5
25596 cat conftest.s >&5
25597 fi
25598 rm -f conftest.o conftest.s
25599 fi
25600 fi
25601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
25602 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
25603 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
25604
25605 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
25606
25607 fi
25608
25609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ud2 mnemonic" >&5
25610 $as_echo_n "checking assembler for ud2 mnemonic... " >&6; }
25611 if test "${gcc_cv_as_ix86_ud2+set}" = set; then :
25612 $as_echo_n "(cached) " >&6
25613 else
25614 gcc_cv_as_ix86_ud2=no
25615 if test x$gcc_cv_as != x; then
25616 $as_echo 'ud2' > conftest.s
25617 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25618 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25619 (eval $ac_try) 2>&5
25620 ac_status=$?
25621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25622 test $ac_status = 0; }; }
25623 then
25624 gcc_cv_as_ix86_ud2=yes
25625 else
25626 echo "configure: failed program was" >&5
25627 cat conftest.s >&5
25628 fi
25629 rm -f conftest.o conftest.s
25630 fi
25631 fi
25632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ud2" >&5
25633 $as_echo "$gcc_cv_as_ix86_ud2" >&6; }
25634 if test $gcc_cv_as_ix86_ud2 = yes; then
25635
25636 $as_echo "#define HAVE_AS_IX86_UD2 1" >>confdefs.h
25637
25638 fi
25639
25640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
25641 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
25642 if test "${gcc_cv_as_ix86_tlsgdplt+set}" = set; then :
25643 $as_echo_n "(cached) " >&6
25644 else
25645 gcc_cv_as_ix86_tlsgdplt=no
25646 if test x$gcc_cv_as != x; then
25647 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
25648 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25649 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25650 (eval $ac_try) 2>&5
25651 ac_status=$?
25652 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25653 test $ac_status = 0; }; }
25654 then
25655 if test x$gcc_cv_ld != x \
25656 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
25657 gcc_cv_as_ix86_tlsgdplt=yes
25658 fi
25659 rm -f conftest
25660 else
25661 echo "configure: failed program was" >&5
25662 cat conftest.s >&5
25663 fi
25664 rm -f conftest.o conftest.s
25665 fi
25666 fi
25667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
25668 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
25669 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
25670
25671 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
25672
25673 fi
25674
25675 conftest_s='
25676 .section .tdata,"aw'$tls_section_flag'",@progbits
25677 tls_ld:
25678 .section .text,"ax",@progbits
25679 call tls_ld@tlsldmplt'
25680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
25681 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
25682 if test "${gcc_cv_as_ix86_tlsldmplt+set}" = set; then :
25683 $as_echo_n "(cached) " >&6
25684 else
25685 gcc_cv_as_ix86_tlsldmplt=no
25686 if test x$gcc_cv_as != x; then
25687 $as_echo "$conftest_s" > conftest.s
25688 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25689 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25690 (eval $ac_try) 2>&5
25691 ac_status=$?
25692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25693 test $ac_status = 0; }; }
25694 then
25695 if test x$gcc_cv_ld != x \
25696 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
25697 gcc_cv_as_ix86_tlsldmplt=yes
25698 fi
25699 rm -f conftest
25700 else
25701 echo "configure: failed program was" >&5
25702 cat conftest.s >&5
25703 fi
25704 rm -f conftest.o conftest.s
25705 fi
25706 fi
25707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
25708 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
25709
25710
25711 cat >>confdefs.h <<_ACEOF
25712 #define HAVE_AS_IX86_TLSLDMPLT `if test $gcc_cv_as_ix86_tlsldmplt = yes; then echo 1; else echo 0; fi`
25713 _ACEOF
25714
25715
25716 # Enforce 32-bit output with gas and gld.
25717 if test x$gas = xyes; then
25718 as_ix86_tls_ldm_opt="--32"
25719 fi
25720 if echo "$ld_ver" | grep GNU > /dev/null; then
25721 if $gcc_cv_ld -V 2>/dev/null | grep elf_i386_sol2 > /dev/null; then
25722 ld_ix86_tls_ldm_opt="-melf_i386_sol2"
25723 else
25724 ld_ix86_tls_ldm_opt="-melf_i386"
25725 fi
25726 fi
25727 conftest_s='
25728 .section .text,"ax",@progbits
25729 .globl _start
25730 .type _start, @function
25731 _start:
25732 leal value@tlsldm(%ebx), %eax
25733 call ___tls_get_addr@plt
25734
25735 .section .tdata,"aw'$tls_section_flag'",@progbits
25736 .type value, @object
25737 value:'
25738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM reloc" >&5
25739 $as_echo_n "checking assembler for R_386_TLS_LDM reloc... " >&6; }
25740 if test "${gcc_cv_as_ix86_tlsldm+set}" = set; then :
25741 $as_echo_n "(cached) " >&6
25742 else
25743 gcc_cv_as_ix86_tlsldm=no
25744 if test x$gcc_cv_as != x; then
25745 $as_echo "$conftest_s" > conftest.s
25746 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_tls_ldm_opt -o conftest.o conftest.s >&5'
25747 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25748 (eval $ac_try) 2>&5
25749 ac_status=$?
25750 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25751 test $ac_status = 0; }; }
25752 then
25753 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
25754 && $gcc_cv_ld $ld_ix86_tls_ldm_opt -o conftest conftest.o $ld_tls_libs -lc > /dev/null 2>&1; then
25755 if $gcc_cv_objdump -d conftest 2>/dev/null | grep nop > /dev/null \
25756 || dis conftest 2>/dev/null | grep nop > /dev/null; then
25757 gcc_cv_as_ix86_tlsldm=yes
25758 fi
25759 fi
25760 rm -f conftest
25761 else
25762 echo "configure: failed program was" >&5
25763 cat conftest.s >&5
25764 fi
25765 rm -f conftest.o conftest.s
25766 fi
25767 fi
25768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldm" >&5
25769 $as_echo "$gcc_cv_as_ix86_tlsldm" >&6; }
25770
25771
25772 cat >>confdefs.h <<_ACEOF
25773 #define HAVE_AS_IX86_TLSLDM `if test $gcc_cv_as_ix86_tlsldm = yes; then echo 1; else echo 0; fi`
25774 _ACEOF
25775
25776
25777 ;;
25778
25779 ia64*-*-*)
25780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
25781 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
25782 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
25783 $as_echo_n "(cached) " >&6
25784 else
25785 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
25786 if test $in_tree_gas = yes; then
25787 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25788 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
25789 fi
25790 elif test x$gcc_cv_as != x; then
25791 $as_echo ' .text
25792 addl r15 = @ltoffx(x#), gp
25793 ;;
25794 ld8.mov r16 = [r15], x#' > conftest.s
25795 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25796 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25797 (eval $ac_try) 2>&5
25798 ac_status=$?
25799 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25800 test $ac_status = 0; }; }
25801 then
25802 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
25803 else
25804 echo "configure: failed program was" >&5
25805 cat conftest.s >&5
25806 fi
25807 rm -f conftest.o conftest.s
25808 fi
25809 fi
25810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
25811 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
25812 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
25813
25814 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
25815
25816 fi
25817
25818 ;;
25819
25820 powerpc*-*-*)
25821 case $target in
25822 *-*-aix*) conftest_s=' .machine "pwr5"
25823 .csect .text[PR]
25824 mfcr 3,128';;
25825 *-*-darwin*)
25826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
25827 $as_echo_n "checking assembler for .machine directive support... " >&6; }
25828 if test "${gcc_cv_as_machine_directive+set}" = set; then :
25829 $as_echo_n "(cached) " >&6
25830 else
25831 gcc_cv_as_machine_directive=no
25832 if test x$gcc_cv_as != x; then
25833 $as_echo ' .machine ppc7400' > conftest.s
25834 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25835 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25836 (eval $ac_try) 2>&5
25837 ac_status=$?
25838 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25839 test $ac_status = 0; }; }
25840 then
25841 gcc_cv_as_machine_directive=yes
25842 else
25843 echo "configure: failed program was" >&5
25844 cat conftest.s >&5
25845 fi
25846 rm -f conftest.o conftest.s
25847 fi
25848 fi
25849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
25850 $as_echo "$gcc_cv_as_machine_directive" >&6; }
25851
25852 if test x$gcc_cv_as_machine_directive != xyes; then
25853 echo "*** This target requires an assembler supporting \".machine\"" >&2
25854 echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
25855 test x$build = x$target && exit 1
25856 fi
25857 conftest_s=' .text
25858 mfcr r3,128';;
25859 *) conftest_s=' .machine power4
25860 .text
25861 mfcr 3,128';;
25862 esac
25863
25864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
25865 $as_echo_n "checking assembler for mfcr field support... " >&6; }
25866 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
25867 $as_echo_n "(cached) " >&6
25868 else
25869 gcc_cv_as_powerpc_mfcrf=no
25870 if test $in_tree_gas = yes; then
25871 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25872 then gcc_cv_as_powerpc_mfcrf=yes
25873 fi
25874 elif test x$gcc_cv_as != x; then
25875 $as_echo "$conftest_s" > conftest.s
25876 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25877 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25878 (eval $ac_try) 2>&5
25879 ac_status=$?
25880 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25881 test $ac_status = 0; }; }
25882 then
25883 gcc_cv_as_powerpc_mfcrf=yes
25884 else
25885 echo "configure: failed program was" >&5
25886 cat conftest.s >&5
25887 fi
25888 rm -f conftest.o conftest.s
25889 fi
25890 fi
25891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
25892 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
25893 if test $gcc_cv_as_powerpc_mfcrf = yes; then
25894
25895 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
25896
25897 fi
25898
25899 case $target in
25900 *-*-aix*) conftest_s=' .machine "pwr5"
25901 .csect .text[PR]
25902 popcntb 3,3';;
25903 *) conftest_s=' .machine power5
25904 .text
25905 popcntb 3,3';;
25906 esac
25907
25908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
25909 $as_echo_n "checking assembler for popcntb support... " >&6; }
25910 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
25911 $as_echo_n "(cached) " >&6
25912 else
25913 gcc_cv_as_powerpc_popcntb=no
25914 if test $in_tree_gas = yes; then
25915 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25916 then gcc_cv_as_powerpc_popcntb=yes
25917 fi
25918 elif test x$gcc_cv_as != x; then
25919 $as_echo "$conftest_s" > conftest.s
25920 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25921 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25922 (eval $ac_try) 2>&5
25923 ac_status=$?
25924 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25925 test $ac_status = 0; }; }
25926 then
25927 gcc_cv_as_powerpc_popcntb=yes
25928 else
25929 echo "configure: failed program was" >&5
25930 cat conftest.s >&5
25931 fi
25932 rm -f conftest.o conftest.s
25933 fi
25934 fi
25935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
25936 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
25937 if test $gcc_cv_as_powerpc_popcntb = yes; then
25938
25939 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
25940
25941 fi
25942
25943 case $target in
25944 *-*-aix*) conftest_s=' .machine "pwr5x"
25945 .csect .text[PR]
25946 frin 1,1';;
25947 *) conftest_s=' .machine power5
25948 .text
25949 frin 1,1';;
25950 esac
25951
25952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
25953 $as_echo_n "checking assembler for fp round support... " >&6; }
25954 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
25955 $as_echo_n "(cached) " >&6
25956 else
25957 gcc_cv_as_powerpc_fprnd=no
25958 if test $in_tree_gas = yes; then
25959 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25960 then gcc_cv_as_powerpc_fprnd=yes
25961 fi
25962 elif test x$gcc_cv_as != x; then
25963 $as_echo "$conftest_s" > conftest.s
25964 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25965 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25966 (eval $ac_try) 2>&5
25967 ac_status=$?
25968 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25969 test $ac_status = 0; }; }
25970 then
25971 gcc_cv_as_powerpc_fprnd=yes
25972 else
25973 echo "configure: failed program was" >&5
25974 cat conftest.s >&5
25975 fi
25976 rm -f conftest.o conftest.s
25977 fi
25978 fi
25979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
25980 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
25981 if test $gcc_cv_as_powerpc_fprnd = yes; then
25982
25983 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
25984
25985 fi
25986
25987 case $target in
25988 *-*-aix*) conftest_s=' .machine "pwr6"
25989 .csect .text[PR]
25990 mffgpr 1,3';;
25991 *) conftest_s=' .machine power6
25992 .text
25993 mffgpr 1,3';;
25994 esac
25995
25996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
25997 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
25998 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
25999 $as_echo_n "(cached) " >&6
26000 else
26001 gcc_cv_as_powerpc_mfpgpr=no
26002 if test $in_tree_gas = yes; then
26003 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26004 then gcc_cv_as_powerpc_mfpgpr=yes
26005 fi
26006 elif test x$gcc_cv_as != x; then
26007 $as_echo "$conftest_s" > conftest.s
26008 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26009 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26010 (eval $ac_try) 2>&5
26011 ac_status=$?
26012 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26013 test $ac_status = 0; }; }
26014 then
26015 gcc_cv_as_powerpc_mfpgpr=yes
26016 else
26017 echo "configure: failed program was" >&5
26018 cat conftest.s >&5
26019 fi
26020 rm -f conftest.o conftest.s
26021 fi
26022 fi
26023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
26024 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
26025 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
26026
26027 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
26028
26029 fi
26030
26031 case $target in
26032 *-*-aix*) conftest_s=' .csect .text[PR]
26033 LCF..0:
26034 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
26035 *-*-darwin*)
26036 conftest_s=' .text
26037 LCF0:
26038 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
26039 *) conftest_s=' .text
26040 .LCF0:
26041 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
26042 esac
26043
26044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
26045 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
26046 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
26047 $as_echo_n "(cached) " >&6
26048 else
26049 gcc_cv_as_powerpc_rel16=no
26050 if test $in_tree_gas = yes; then
26051 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
26052 then gcc_cv_as_powerpc_rel16=yes
26053 fi
26054 elif test x$gcc_cv_as != x; then
26055 $as_echo "$conftest_s" > conftest.s
26056 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26057 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26058 (eval $ac_try) 2>&5
26059 ac_status=$?
26060 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26061 test $ac_status = 0; }; }
26062 then
26063 gcc_cv_as_powerpc_rel16=yes
26064 else
26065 echo "configure: failed program was" >&5
26066 cat conftest.s >&5
26067 fi
26068 rm -f conftest.o conftest.s
26069 fi
26070 fi
26071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
26072 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
26073 if test $gcc_cv_as_powerpc_rel16 = yes; then
26074
26075 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
26076
26077 fi
26078
26079 case $target in
26080 *-*-aix*) conftest_s=' .machine "pwr6"
26081 .csect .text[PR]
26082 cmpb 3,4,5';;
26083 *) conftest_s=' .machine power6
26084 .text
26085 cmpb 3,4,5';;
26086 esac
26087
26088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
26089 $as_echo_n "checking assembler for compare bytes support... " >&6; }
26090 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
26091 $as_echo_n "(cached) " >&6
26092 else
26093 gcc_cv_as_powerpc_cmpb=no
26094 if test $in_tree_gas = yes; then
26095 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26096 then gcc_cv_as_powerpc_cmpb=yes
26097 fi
26098 elif test x$gcc_cv_as != x; then
26099 $as_echo "$conftest_s" > conftest.s
26100 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26101 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26102 (eval $ac_try) 2>&5
26103 ac_status=$?
26104 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26105 test $ac_status = 0; }; }
26106 then
26107 gcc_cv_as_powerpc_cmpb=yes
26108 else
26109 echo "configure: failed program was" >&5
26110 cat conftest.s >&5
26111 fi
26112 rm -f conftest.o conftest.s
26113 fi
26114 fi
26115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
26116 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
26117 if test $gcc_cv_as_powerpc_cmpb = yes; then
26118
26119 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
26120
26121 fi
26122
26123 case $target in
26124 *-*-aix*) conftest_s=' .machine "pwr6"
26125 .csect .text[PR]
26126 dadd 1,2,3';;
26127 *) conftest_s=' .machine power6
26128 .text
26129 dadd 1,2,3';;
26130 esac
26131
26132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
26133 $as_echo_n "checking assembler for decimal float support... " >&6; }
26134 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
26135 $as_echo_n "(cached) " >&6
26136 else
26137 gcc_cv_as_powerpc_dfp=no
26138 if test $in_tree_gas = yes; then
26139 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26140 then gcc_cv_as_powerpc_dfp=yes
26141 fi
26142 elif test x$gcc_cv_as != x; then
26143 $as_echo "$conftest_s" > conftest.s
26144 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26145 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26146 (eval $ac_try) 2>&5
26147 ac_status=$?
26148 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26149 test $ac_status = 0; }; }
26150 then
26151 gcc_cv_as_powerpc_dfp=yes
26152 else
26153 echo "configure: failed program was" >&5
26154 cat conftest.s >&5
26155 fi
26156 rm -f conftest.o conftest.s
26157 fi
26158 fi
26159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
26160 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
26161 if test $gcc_cv_as_powerpc_dfp = yes; then
26162
26163 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
26164
26165 fi
26166
26167 case $target in
26168 *-*-aix*) conftest_s=' .machine "pwr7"
26169 .csect .text[PR]
26170 lxvd2x 1,2,3';;
26171 *) conftest_s=' .machine power7
26172 .text
26173 lxvd2x 1,2,3';;
26174 esac
26175
26176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
26177 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
26178 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
26179 $as_echo_n "(cached) " >&6
26180 else
26181 gcc_cv_as_powerpc_vsx=no
26182 if test $in_tree_gas = yes; then
26183 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26184 then gcc_cv_as_powerpc_vsx=yes
26185 fi
26186 elif test x$gcc_cv_as != x; then
26187 $as_echo "$conftest_s" > conftest.s
26188 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26189 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26190 (eval $ac_try) 2>&5
26191 ac_status=$?
26192 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26193 test $ac_status = 0; }; }
26194 then
26195 gcc_cv_as_powerpc_vsx=yes
26196 else
26197 echo "configure: failed program was" >&5
26198 cat conftest.s >&5
26199 fi
26200 rm -f conftest.o conftest.s
26201 fi
26202 fi
26203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
26204 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
26205 if test $gcc_cv_as_powerpc_vsx = yes; then
26206
26207 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
26208
26209 fi
26210
26211 case $target in
26212 *-*-aix*) conftest_s=' .machine "pwr7"
26213 .csect .text[PR]
26214 popcntd 3,3';;
26215 *) conftest_s=' .machine power7
26216 .text
26217 popcntd 3,3';;
26218 esac
26219
26220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
26221 $as_echo_n "checking assembler for popcntd support... " >&6; }
26222 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
26223 $as_echo_n "(cached) " >&6
26224 else
26225 gcc_cv_as_powerpc_popcntd=no
26226 if test $in_tree_gas = yes; then
26227 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26228 then gcc_cv_as_powerpc_popcntd=yes
26229 fi
26230 elif test x$gcc_cv_as != x; then
26231 $as_echo "$conftest_s" > conftest.s
26232 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26233 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26234 (eval $ac_try) 2>&5
26235 ac_status=$?
26236 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26237 test $ac_status = 0; }; }
26238 then
26239 gcc_cv_as_powerpc_popcntd=yes
26240 else
26241 echo "configure: failed program was" >&5
26242 cat conftest.s >&5
26243 fi
26244 rm -f conftest.o conftest.s
26245 fi
26246 fi
26247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
26248 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
26249 if test $gcc_cv_as_powerpc_popcntd = yes; then
26250
26251 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
26252
26253 fi
26254
26255 case $target in
26256 *-*-aix*) conftest_s=' .machine "pwr8"
26257 .csect .text[PR]';;
26258 *) conftest_s=' .machine power8
26259 .text';;
26260 esac
26261
26262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for power8 support" >&5
26263 $as_echo_n "checking assembler for power8 support... " >&6; }
26264 if test "${gcc_cv_as_powerpc_power8+set}" = set; then :
26265 $as_echo_n "(cached) " >&6
26266 else
26267 gcc_cv_as_powerpc_power8=no
26268 if test $in_tree_gas = yes; then
26269 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26270 then gcc_cv_as_powerpc_power8=yes
26271 fi
26272 elif test x$gcc_cv_as != x; then
26273 $as_echo "$conftest_s" > conftest.s
26274 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26275 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26276 (eval $ac_try) 2>&5
26277 ac_status=$?
26278 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26279 test $ac_status = 0; }; }
26280 then
26281 gcc_cv_as_powerpc_power8=yes
26282 else
26283 echo "configure: failed program was" >&5
26284 cat conftest.s >&5
26285 fi
26286 rm -f conftest.o conftest.s
26287 fi
26288 fi
26289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_power8" >&5
26290 $as_echo "$gcc_cv_as_powerpc_power8" >&6; }
26291 if test $gcc_cv_as_powerpc_power8 = yes; then
26292
26293 $as_echo "#define HAVE_AS_POWER8 1" >>confdefs.h
26294
26295 fi
26296
26297 case $target in
26298 *-*-aix*) conftest_s=' .csect .text[PR]
26299 lwsync';;
26300 *) conftest_s=' .text
26301 lwsync';;
26302 esac
26303
26304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
26305 $as_echo_n "checking assembler for lwsync support... " >&6; }
26306 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
26307 $as_echo_n "(cached) " >&6
26308 else
26309 gcc_cv_as_powerpc_lwsync=no
26310 if test $in_tree_gas = yes; then
26311 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26312 then gcc_cv_as_powerpc_lwsync=yes
26313 fi
26314 elif test x$gcc_cv_as != x; then
26315 $as_echo "$conftest_s" > conftest.s
26316 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26317 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26318 (eval $ac_try) 2>&5
26319 ac_status=$?
26320 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26321 test $ac_status = 0; }; }
26322 then
26323 gcc_cv_as_powerpc_lwsync=yes
26324 else
26325 echo "configure: failed program was" >&5
26326 cat conftest.s >&5
26327 fi
26328 rm -f conftest.o conftest.s
26329 fi
26330 fi
26331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
26332 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
26333 if test $gcc_cv_as_powerpc_lwsync = yes; then
26334
26335 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
26336
26337 fi
26338
26339 case $target in
26340 *-*-aix*) conftest_s=' .machine "476"
26341 .csect .text[PR]
26342 dci 0';;
26343 *) conftest_s=' .machine "476"
26344 .text
26345 dci 0';;
26346 esac
26347
26348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
26349 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
26350 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
26351 $as_echo_n "(cached) " >&6
26352 else
26353 gcc_cv_as_powerpc_dci=no
26354 if test $in_tree_gas = yes; then
26355 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
26356 then gcc_cv_as_powerpc_dci=yes
26357 fi
26358 elif test x$gcc_cv_as != x; then
26359 $as_echo "$conftest_s" > conftest.s
26360 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26361 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26362 (eval $ac_try) 2>&5
26363 ac_status=$?
26364 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26365 test $ac_status = 0; }; }
26366 then
26367 gcc_cv_as_powerpc_dci=yes
26368 else
26369 echo "configure: failed program was" >&5
26370 cat conftest.s >&5
26371 fi
26372 rm -f conftest.o conftest.s
26373 fi
26374 fi
26375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
26376 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
26377 if test $gcc_cv_as_powerpc_dci = yes; then
26378
26379 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
26380
26381 fi
26382
26383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
26384 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
26385 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
26386 $as_echo_n "(cached) " >&6
26387 else
26388 gcc_cv_as_powerpc_gnu_attribute=no
26389 if test $in_tree_gas = yes; then
26390 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26391 then gcc_cv_as_powerpc_gnu_attribute=yes
26392 fi
26393 elif test x$gcc_cv_as != x; then
26394 $as_echo '.gnu_attribute 4,1' > conftest.s
26395 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26396 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26397 (eval $ac_try) 2>&5
26398 ac_status=$?
26399 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26400 test $ac_status = 0; }; }
26401 then
26402 gcc_cv_as_powerpc_gnu_attribute=yes
26403 else
26404 echo "configure: failed program was" >&5
26405 cat conftest.s >&5
26406 fi
26407 rm -f conftest.o conftest.s
26408 fi
26409 fi
26410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
26411 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
26412 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
26413
26414 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
26415
26416 fi
26417
26418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
26419 $as_echo_n "checking assembler for tls marker support... " >&6; }
26420 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
26421 $as_echo_n "(cached) " >&6
26422 else
26423 gcc_cv_as_powerpc_tls_markers=no
26424 if test $in_tree_gas = yes; then
26425 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
26426 then gcc_cv_as_powerpc_tls_markers=yes
26427 fi
26428 elif test x$gcc_cv_as != x; then
26429 $as_echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
26430 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26431 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26432 (eval $ac_try) 2>&5
26433 ac_status=$?
26434 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26435 test $ac_status = 0; }; }
26436 then
26437 gcc_cv_as_powerpc_tls_markers=yes
26438 else
26439 echo "configure: failed program was" >&5
26440 cat conftest.s >&5
26441 fi
26442 rm -f conftest.o conftest.s
26443 fi
26444 fi
26445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
26446 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
26447 if test $gcc_cv_as_powerpc_tls_markers = yes; then
26448
26449 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
26450
26451 fi
26452
26453 case $target in
26454 *-*-aix*)
26455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .ref support" >&5
26456 $as_echo_n "checking assembler for .ref support... " >&6; }
26457 if test "${gcc_cv_as_aix_ref+set}" = set; then :
26458 $as_echo_n "(cached) " >&6
26459 else
26460 gcc_cv_as_aix_ref=no
26461 if test $in_tree_gas = yes; then
26462 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
26463 then gcc_cv_as_aix_ref=yes
26464 fi
26465 elif test x$gcc_cv_as != x; then
26466 $as_echo ' .csect stuff[rw]
26467 stuff:
26468 .long 1
26469 .extern sym
26470 .ref sym
26471 ' > conftest.s
26472 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26473 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26474 (eval $ac_try) 2>&5
26475 ac_status=$?
26476 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26477 test $ac_status = 0; }; }
26478 then
26479 gcc_cv_as_aix_ref=yes
26480 else
26481 echo "configure: failed program was" >&5
26482 cat conftest.s >&5
26483 fi
26484 rm -f conftest.o conftest.s
26485 fi
26486 fi
26487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
26488 $as_echo "$gcc_cv_as_aix_ref" >&6; }
26489 if test $gcc_cv_as_aix_ref = yes; then
26490
26491 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
26492
26493 fi
26494 ;;
26495 esac
26496
26497 case $target in
26498 *-*-aix*)
26499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf location lists section support" >&5
26500 $as_echo_n "checking assembler for dwarf location lists section support... " >&6; }
26501 if test "${gcc_cv_as_aix_dwloc+set}" = set; then :
26502 $as_echo_n "(cached) " >&6
26503 else
26504 gcc_cv_as_aix_dwloc=no
26505 if test $in_tree_gas = yes; then
26506 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
26507 then gcc_cv_as_aix_dwloc=yes
26508 fi
26509 elif test x$gcc_cv_as != x; then
26510 $as_echo ' .dwsect 0xB0000
26511 ' > conftest.s
26512 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26513 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26514 (eval $ac_try) 2>&5
26515 ac_status=$?
26516 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26517 test $ac_status = 0; }; }
26518 then
26519 gcc_cv_as_aix_dwloc=yes
26520 else
26521 echo "configure: failed program was" >&5
26522 cat conftest.s >&5
26523 fi
26524 rm -f conftest.o conftest.s
26525 fi
26526 fi
26527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_dwloc" >&5
26528 $as_echo "$gcc_cv_as_aix_dwloc" >&6; }
26529 if test $gcc_cv_as_aix_dwloc = yes; then
26530
26531 $as_echo "#define HAVE_XCOFF_DWARF_EXTRAS 1" >>confdefs.h
26532
26533 fi
26534 ;;
26535 esac
26536 ;;
26537
26538 mips*-*-*)
26539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
26540 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
26541 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
26542 $as_echo_n "(cached) " >&6
26543 else
26544 gcc_cv_as_mips_explicit_relocs=no
26545 if test $in_tree_gas = yes; then
26546 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
26547 then gcc_cv_as_mips_explicit_relocs=yes
26548 fi
26549 elif test x$gcc_cv_as != x; then
26550 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
26551 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26552 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26553 (eval $ac_try) 2>&5
26554 ac_status=$?
26555 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26556 test $ac_status = 0; }; }
26557 then
26558 gcc_cv_as_mips_explicit_relocs=yes
26559 else
26560 echo "configure: failed program was" >&5
26561 cat conftest.s >&5
26562 fi
26563 rm -f conftest.o conftest.s
26564 fi
26565 fi
26566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
26567 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
26568 if test $gcc_cv_as_mips_explicit_relocs = yes; then
26569 if test x$target_cpu_default = x
26570 then target_cpu_default=MASK_EXPLICIT_RELOCS
26571 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
26572 fi
26573 fi
26574
26575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
26576 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
26577 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
26578 $as_echo_n "(cached) " >&6
26579 else
26580 gcc_cv_as_mips_no_shared=no
26581 if test $in_tree_gas = yes; then
26582 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
26583 then gcc_cv_as_mips_no_shared=yes
26584 fi
26585 elif test x$gcc_cv_as != x; then
26586 $as_echo 'nop' > conftest.s
26587 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
26588 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26589 (eval $ac_try) 2>&5
26590 ac_status=$?
26591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26592 test $ac_status = 0; }; }
26593 then
26594 gcc_cv_as_mips_no_shared=yes
26595 else
26596 echo "configure: failed program was" >&5
26597 cat conftest.s >&5
26598 fi
26599 rm -f conftest.o conftest.s
26600 fi
26601 fi
26602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
26603 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
26604 if test $gcc_cv_as_mips_no_shared = yes; then
26605
26606 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
26607
26608 fi
26609
26610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
26611 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
26612 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
26613 $as_echo_n "(cached) " >&6
26614 else
26615 gcc_cv_as_mips_gnu_attribute=no
26616 if test $in_tree_gas = yes; then
26617 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26618 then gcc_cv_as_mips_gnu_attribute=yes
26619 fi
26620 elif test x$gcc_cv_as != x; then
26621 $as_echo '.gnu_attribute 4,1' > conftest.s
26622 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26623 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26624 (eval $ac_try) 2>&5
26625 ac_status=$?
26626 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26627 test $ac_status = 0; }; }
26628 then
26629 gcc_cv_as_mips_gnu_attribute=yes
26630 else
26631 echo "configure: failed program was" >&5
26632 cat conftest.s >&5
26633 fi
26634 rm -f conftest.o conftest.s
26635 fi
26636 fi
26637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
26638 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
26639 if test $gcc_cv_as_mips_gnu_attribute = yes; then
26640
26641 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
26642
26643 fi
26644
26645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .module support" >&5
26646 $as_echo_n "checking assembler for .module support... " >&6; }
26647 if test "${gcc_cv_as_mips_dot_module+set}" = set; then :
26648 $as_echo_n "(cached) " >&6
26649 else
26650 gcc_cv_as_mips_dot_module=no
26651 if test x$gcc_cv_as != x; then
26652 $as_echo '.module mips2
26653 .module fp=xx' > conftest.s
26654 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -32 -o conftest.o conftest.s >&5'
26655 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26656 (eval $ac_try) 2>&5
26657 ac_status=$?
26658 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26659 test $ac_status = 0; }; }
26660 then
26661 gcc_cv_as_mips_dot_module=yes
26662 else
26663 echo "configure: failed program was" >&5
26664 cat conftest.s >&5
26665 fi
26666 rm -f conftest.o conftest.s
26667 fi
26668 fi
26669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dot_module" >&5
26670 $as_echo "$gcc_cv_as_mips_dot_module" >&6; }
26671 if test $gcc_cv_as_mips_dot_module = yes; then
26672
26673 $as_echo "#define HAVE_AS_DOT_MODULE 1" >>confdefs.h
26674
26675 fi
26676 if test x$gcc_cv_as_mips_dot_module = xno \
26677 && test x$with_fp_32 != x; then
26678 as_fn_error "Requesting --with-fp-32= requires assembler support for .module." "$LINENO" 5
26679 fi
26680
26681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .micromips support" >&5
26682 $as_echo_n "checking assembler for .micromips support... " >&6; }
26683 if test "${gcc_cv_as_micromips_support+set}" = set; then :
26684 $as_echo_n "(cached) " >&6
26685 else
26686 gcc_cv_as_micromips_support=no
26687 if test x$gcc_cv_as != x; then
26688 $as_echo '.set micromips' > conftest.s
26689 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
26690 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26691 (eval $ac_try) 2>&5
26692 ac_status=$?
26693 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26694 test $ac_status = 0; }; }
26695 then
26696 gcc_cv_as_micromips_support=yes
26697 else
26698 echo "configure: failed program was" >&5
26699 cat conftest.s >&5
26700 fi
26701 rm -f conftest.o conftest.s
26702 fi
26703 fi
26704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_micromips_support" >&5
26705 $as_echo "$gcc_cv_as_micromips_support" >&6; }
26706 if test $gcc_cv_as_micromips_support = yes; then
26707
26708 $as_echo "#define HAVE_GAS_MICROMIPS 1" >>confdefs.h
26709
26710 fi
26711
26712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
26713 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
26714 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
26715 $as_echo_n "(cached) " >&6
26716 else
26717 gcc_cv_as_mips_dtprelword=no
26718 if test $in_tree_gas = yes; then
26719 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26720 then gcc_cv_as_mips_dtprelword=yes
26721 fi
26722 elif test x$gcc_cv_as != x; then
26723 $as_echo '.section .tdata,"awT",@progbits
26724 x:
26725 .word 2
26726 .text
26727 .dtprelword x+0x8000' > conftest.s
26728 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26729 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26730 (eval $ac_try) 2>&5
26731 ac_status=$?
26732 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26733 test $ac_status = 0; }; }
26734 then
26735 gcc_cv_as_mips_dtprelword=yes
26736 else
26737 echo "configure: failed program was" >&5
26738 cat conftest.s >&5
26739 fi
26740 rm -f conftest.o conftest.s
26741 fi
26742 fi
26743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
26744 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
26745 if test $gcc_cv_as_mips_dtprelword = yes; then
26746
26747 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
26748
26749 fi
26750
26751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
26752 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
26753 if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
26754 $as_echo_n "(cached) " >&6
26755 else
26756 gcc_cv_as_mips_dspr1_mult=no
26757 if test x$gcc_cv_as != x; then
26758 $as_echo ' .set mips32r2
26759 .set nodspr2
26760 .set dsp
26761 madd $ac3,$4,$5
26762 maddu $ac3,$4,$5
26763 msub $ac3,$4,$5
26764 msubu $ac3,$4,$5
26765 mult $ac3,$4,$5
26766 multu $ac3,$4,$5' > conftest.s
26767 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26768 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26769 (eval $ac_try) 2>&5
26770 ac_status=$?
26771 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26772 test $ac_status = 0; }; }
26773 then
26774 gcc_cv_as_mips_dspr1_mult=yes
26775 else
26776 echo "configure: failed program was" >&5
26777 cat conftest.s >&5
26778 fi
26779 rm -f conftest.o conftest.s
26780 fi
26781 fi
26782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
26783 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
26784 if test $gcc_cv_as_mips_dspr1_mult = yes; then
26785
26786 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
26787
26788 fi
26789
26790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
26791 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
26792 gcc_cv_as_ld_jalr_reloc=no
26793 if test $gcc_cv_as_mips_explicit_relocs = yes; then
26794 if test $in_tree_ld = yes ; then
26795 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 \
26796 && test $in_tree_ld_is_elf = yes; then
26797 gcc_cv_as_ld_jalr_reloc=yes
26798 fi
26799 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
26800 echo ' .ent x' > conftest.s
26801 echo 'x: lw $2,%got_disp(y)($3)' >> conftest.s
26802 echo ' lw $25,%call16(y)($28)' >> conftest.s
26803 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
26804 echo '1: jalr $25' >> conftest.s
26805 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
26806 echo '1: jalr $25' >> conftest.s
26807 echo ' .end x' >> conftest.s
26808 if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
26809 && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
26810 if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
26811 && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
26812 gcc_cv_as_ld_jalr_reloc=yes
26813 fi
26814 fi
26815 rm -f conftest.*
26816 fi
26817 fi
26818 if test $gcc_cv_as_ld_jalr_reloc = yes; then
26819 if test x$target_cpu_default = x; then
26820 target_cpu_default=MASK_RELAX_PIC_CALLS
26821 else
26822 target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
26823 fi
26824 fi
26825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
26826 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
26827
26828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
26829 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
26830 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
26831 $as_echo_n "(cached) " >&6
26832 else
26833 gcc_cv_ld_mips_personality_relaxation=no
26834 if test $in_tree_ld = yes ; then
26835 if test "$gcc_cv_gld_major_version" -eq 2 \
26836 -a "$gcc_cv_gld_minor_version" -ge 21 \
26837 -o "$gcc_cv_gld_major_version" -gt 2; then
26838 gcc_cv_ld_mips_personality_relaxation=yes
26839 fi
26840 elif test x$gcc_cv_as != x \
26841 -a x$gcc_cv_ld != x \
26842 -a x$gcc_cv_readelf != x ; then
26843 cat > conftest.s <<EOF
26844 .cfi_startproc
26845 .cfi_personality 0x80,indirect_ptr
26846 .ent test
26847 test:
26848 nop
26849 .end test
26850 .cfi_endproc
26851
26852 .section .data,"aw",@progbits
26853 indirect_ptr:
26854 .dc.a personality
26855 EOF
26856 if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
26857 && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
26858 if $gcc_cv_readelf -d conftest 2>&1 \
26859 | grep TEXTREL > /dev/null 2>&1; then
26860 :
26861 elif $gcc_cv_readelf --relocs conftest 2>&1 \
26862 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
26863 :
26864 else
26865 gcc_cv_ld_mips_personality_relaxation=yes
26866 fi
26867 fi
26868 fi
26869 rm -f conftest.s conftest.o conftest
26870 fi
26871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
26872 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
26873 if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
26874
26875 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
26876
26877 fi
26878
26879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mnan= support" >&5
26880 $as_echo_n "checking assembler for -mnan= support... " >&6; }
26881 if test "${gcc_cv_as_mips_nan+set}" = set; then :
26882 $as_echo_n "(cached) " >&6
26883 else
26884 gcc_cv_as_mips_nan=no
26885 if test x$gcc_cv_as != x; then
26886 $as_echo '' > conftest.s
26887 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mnan=2008 -o conftest.o conftest.s >&5'
26888 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26889 (eval $ac_try) 2>&5
26890 ac_status=$?
26891 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26892 test $ac_status = 0; }; }
26893 then
26894 gcc_cv_as_mips_nan=yes
26895 else
26896 echo "configure: failed program was" >&5
26897 cat conftest.s >&5
26898 fi
26899 rm -f conftest.o conftest.s
26900 fi
26901 fi
26902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_nan" >&5
26903 $as_echo "$gcc_cv_as_mips_nan" >&6; }
26904 if test $gcc_cv_as_mips_nan = yes; then
26905
26906 $as_echo "#define HAVE_AS_NAN 1" >>confdefs.h
26907
26908 fi
26909 if test x$gcc_cv_as_mips_nan = xno \
26910 && test x$with_nan != x; then
26911 as_fn_error "Requesting --with-nan= requires assembler support for -mnan=" "$LINENO" 5
26912 fi
26913 ;;
26914 s390*-*-*)
26915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
26916 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
26917 if test "${gcc_cv_as_s390_gnu_attribute+set}" = set; then :
26918 $as_echo_n "(cached) " >&6
26919 else
26920 gcc_cv_as_s390_gnu_attribute=no
26921 if test $in_tree_gas = yes; then
26922 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26923 then gcc_cv_as_s390_gnu_attribute=yes
26924 fi
26925 elif test x$gcc_cv_as != x; then
26926 $as_echo '.gnu_attribute 8,1' > conftest.s
26927 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26928 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26929 (eval $ac_try) 2>&5
26930 ac_status=$?
26931 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26932 test $ac_status = 0; }; }
26933 then
26934 gcc_cv_as_s390_gnu_attribute=yes
26935 else
26936 echo "configure: failed program was" >&5
26937 cat conftest.s >&5
26938 fi
26939 rm -f conftest.o conftest.s
26940 fi
26941 fi
26942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_gnu_attribute" >&5
26943 $as_echo "$gcc_cv_as_s390_gnu_attribute" >&6; }
26944 if test $gcc_cv_as_s390_gnu_attribute = yes; then
26945
26946 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
26947
26948 fi
26949 ;;
26950 esac
26951
26952 # Mips and HP-UX need the GNU assembler.
26953 # Linux on IA64 might be able to use the Intel assembler.
26954
26955 case "$target" in
26956 mips*-*-* | *-*-hpux* )
26957 if test x$gas_flag = xyes \
26958 || test x"$host" != x"$build" \
26959 || test ! -x "$gcc_cv_as" \
26960 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
26961 :
26962 else
26963 echo "*** This configuration requires the GNU assembler" >&2
26964 exit 1
26965 fi
26966 ;;
26967 esac
26968
26969 # ??? Not all targets support dwarf2 debug_line, even within a version
26970 # of gas. Moreover, we need to emit a valid instruction to trigger any
26971 # info to the output file. So, as supported targets are added to gas 2.11,
26972 # add some instruction here to (also) show we expect this might work.
26973 # ??? Once 2.11 is released, probably need to add first known working
26974 # version to the per-target configury.
26975 case "$cpu_type" in
26976 aarch64 | alpha | arm | avr | bfin | cris | i386 | m32c | m68k | microblaze \
26977 | mips | nios2 | pa | rs6000 | score | sparc | spu | tilegx | tilepro \
26978 | visium | xstormy16 | xtensa)
26979 insn="nop"
26980 ;;
26981 ia64 | s390)
26982 insn="nop 0"
26983 ;;
26984 mmix)
26985 insn="swym 0"
26986 ;;
26987 esac
26988 if test x"$insn" != x; then
26989 conftest_s="\
26990 .file 1 \"conftest.s\"
26991 .loc 1 3 0
26992 $insn"
26993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
26994 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
26995 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
26996 $as_echo_n "(cached) " >&6
26997 else
26998 gcc_cv_as_dwarf2_debug_line=no
26999 if test $in_tree_gas = yes; then
27000 if test $in_tree_gas_is_elf = yes \
27001 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
27002 then gcc_cv_as_dwarf2_debug_line=yes
27003 fi
27004 elif test x$gcc_cv_as != x; then
27005 $as_echo "$conftest_s" > conftest.s
27006 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27007 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27008 (eval $ac_try) 2>&5
27009 ac_status=$?
27010 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27011 test $ac_status = 0; }; }
27012 then
27013 if test x$gcc_cv_objdump != x \
27014 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
27015 | grep debug_line > /dev/null 2>&1; then
27016 gcc_cv_as_dwarf2_debug_line=yes
27017 fi
27018 else
27019 echo "configure: failed program was" >&5
27020 cat conftest.s >&5
27021 fi
27022 rm -f conftest.o conftest.s
27023 fi
27024 fi
27025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
27026 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
27027
27028
27029 # The .debug_line file table must be in the exact order that
27030 # we specified the files, since these indices are also used
27031 # by DW_AT_decl_file. Approximate this test by testing if
27032 # the assembler bitches if the same index is assigned twice.
27033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
27034 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
27035 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
27036 $as_echo_n "(cached) " >&6
27037 else
27038 gcc_cv_as_dwarf2_file_buggy=no
27039 if test x$gcc_cv_as != x; then
27040 $as_echo ' .file 1 "foo.s"
27041 .file 1 "bar.s"' > conftest.s
27042 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27043 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27044 (eval $ac_try) 2>&5
27045 ac_status=$?
27046 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27047 test $ac_status = 0; }; }
27048 then
27049 gcc_cv_as_dwarf2_file_buggy=yes
27050 else
27051 echo "configure: failed program was" >&5
27052 cat conftest.s >&5
27053 fi
27054 rm -f conftest.o conftest.s
27055 fi
27056 fi
27057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
27058 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
27059
27060
27061 if test $gcc_cv_as_dwarf2_debug_line = yes \
27062 && test $gcc_cv_as_dwarf2_file_buggy = no; then
27063
27064 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
27065
27066 fi
27067
27068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
27069 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
27070 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
27071 $as_echo_n "(cached) " >&6
27072 else
27073 gcc_cv_as_gdwarf2_flag=no
27074 if test $in_tree_gas = yes; then
27075 if test $in_tree_gas_is_elf = yes \
27076 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
27077 then gcc_cv_as_gdwarf2_flag=yes
27078 fi
27079 elif test x$gcc_cv_as != x; then
27080 $as_echo "$insn" > conftest.s
27081 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
27082 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27083 (eval $ac_try) 2>&5
27084 ac_status=$?
27085 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27086 test $ac_status = 0; }; }
27087 then
27088 gcc_cv_as_gdwarf2_flag=yes
27089 else
27090 echo "configure: failed program was" >&5
27091 cat conftest.s >&5
27092 fi
27093 rm -f conftest.o conftest.s
27094 fi
27095 fi
27096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
27097 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
27098 if test $gcc_cv_as_gdwarf2_flag = yes; then
27099
27100 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
27101
27102 fi
27103
27104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
27105 $as_echo_n "checking assembler for --gstabs option... " >&6; }
27106 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
27107 $as_echo_n "(cached) " >&6
27108 else
27109 gcc_cv_as_gstabs_flag=no
27110 if test $in_tree_gas = yes; then
27111 if test $in_tree_gas_is_elf = yes \
27112 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
27113 then gcc_cv_as_gstabs_flag=yes
27114 fi
27115 elif test x$gcc_cv_as != x; then
27116 $as_echo "$insn" > conftest.s
27117 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
27118 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27119 (eval $ac_try) 2>&5
27120 ac_status=$?
27121 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27122 test $ac_status = 0; }; }
27123 then
27124 gcc_cv_as_gstabs_flag=yes
27125 else
27126 echo "configure: failed program was" >&5
27127 cat conftest.s >&5
27128 fi
27129 rm -f conftest.o conftest.s
27130 fi
27131 fi
27132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
27133 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
27134 if test $gcc_cv_as_gstabs_flag = yes; then
27135
27136 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
27137
27138 fi
27139
27140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
27141 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
27142 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
27143 $as_echo_n "(cached) " >&6
27144 else
27145 gcc_cv_as_debug_prefix_map_flag=no
27146 if test $in_tree_gas = yes; then
27147 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27148 then gcc_cv_as_debug_prefix_map_flag=yes
27149 fi
27150 elif test x$gcc_cv_as != x; then
27151 $as_echo "$insn" > conftest.s
27152 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
27153 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27154 (eval $ac_try) 2>&5
27155 ac_status=$?
27156 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27157 test $ac_status = 0; }; }
27158 then
27159 gcc_cv_as_debug_prefix_map_flag=yes
27160 else
27161 echo "configure: failed program was" >&5
27162 cat conftest.s >&5
27163 fi
27164 rm -f conftest.o conftest.s
27165 fi
27166 fi
27167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
27168 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
27169 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
27170
27171 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
27172
27173 fi
27174 fi
27175
27176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compressed debug sections" >&5
27177 $as_echo_n "checking assembler for compressed debug sections... " >&6; }
27178 if test "${gcc_cv_as_compress_debug+set}" = set; then :
27179 $as_echo_n "(cached) " >&6
27180 else
27181 gcc_cv_as_compress_debug=no
27182 if test x$gcc_cv_as != x; then
27183 $as_echo '' > conftest.s
27184 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --compress-debug-sections -o conftest.o conftest.s >&5'
27185 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27186 (eval $ac_try) 2>&5
27187 ac_status=$?
27188 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27189 test $ac_status = 0; }; }
27190 then
27191 # gas compiled without zlib cannot compress debug sections and warns
27192 # about it, but still exits successfully. So check for this, too.
27193 if $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null
27194 then
27195 gcc_cv_as_compress_debug=0
27196 elif $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s > /dev/null 2>&1
27197 then
27198 gcc_cv_as_compress_debug=1
27199 gcc_cv_as_compress_debug_option="--compress-debug-sections"
27200 gcc_cv_as_no_compress_debug_option="--nocompress-debug-sections"
27201 else
27202 gcc_cv_as_compress_debug=0
27203 # FIXME: Future gas versions will support ELF gABI style via
27204 # --compress-debug-sections[=type].
27205 fi
27206 else
27207 echo "configure: failed program was" >&5
27208 cat conftest.s >&5
27209 fi
27210 rm -f conftest.o conftest.s
27211 fi
27212 fi
27213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_compress_debug" >&5
27214 $as_echo "$gcc_cv_as_compress_debug" >&6; }
27215
27216
27217 cat >>confdefs.h <<_ACEOF
27218 #define HAVE_AS_COMPRESS_DEBUG $gcc_cv_as_compress_debug
27219 _ACEOF
27220
27221
27222 cat >>confdefs.h <<_ACEOF
27223 #define AS_COMPRESS_DEBUG_OPTION "$gcc_cv_as_compress_debug_option"
27224 _ACEOF
27225
27226
27227 cat >>confdefs.h <<_ACEOF
27228 #define AS_NO_COMPRESS_DEBUG_OPTION "$gcc_cv_as_no_compress_debug_option"
27229 _ACEOF
27230
27231
27232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
27233 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
27234 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
27235 $as_echo_n "(cached) " >&6
27236 else
27237 gcc_cv_as_lcomm_with_alignment=no
27238 if test x$gcc_cv_as != x; then
27239 $as_echo '.lcomm bar,4,16' > conftest.s
27240 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27241 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27242 (eval $ac_try) 2>&5
27243 ac_status=$?
27244 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27245 test $ac_status = 0; }; }
27246 then
27247 gcc_cv_as_lcomm_with_alignment=yes
27248 else
27249 echo "configure: failed program was" >&5
27250 cat conftest.s >&5
27251 fi
27252 rm -f conftest.o conftest.s
27253 fi
27254 fi
27255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
27256 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
27257 if test $gcc_cv_as_lcomm_with_alignment = yes; then
27258
27259 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
27260
27261 fi
27262
27263 if test x$with_sysroot = x && test x$host = x$target \
27264 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
27265 && test "$prefix" != "NONE"; then
27266
27267 cat >>confdefs.h <<_ACEOF
27268 #define PREFIX_INCLUDE_DIR "$prefix/include"
27269 _ACEOF
27270
27271 fi
27272
27273 # Determine the version of glibc, if any, used on the target.
27274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target glibc version" >&5
27275 $as_echo_n "checking for target glibc version... " >&6; }
27276
27277 # Check whether --with-glibc-version was given.
27278 if test "${with_glibc_version+set}" = set; then :
27279 withval=$with_glibc_version;
27280 if echo "$with_glibc_version" | grep '^[0-9][0-9]*\.[0-9][0-9]*$'; then
27281 glibc_version_major=`echo "$with_glibc_version" | sed -e 's/\..*//'`
27282 glibc_version_minor=`echo "$with_glibc_version" | sed -e 's/.*\.//'`
27283 else
27284 as_fn_error "option --with-glibc-version requires a version number M.N" "$LINENO" 5
27285 fi
27286 else
27287
27288 glibc_version_major=0
27289 glibc_version_minor=0
27290 if test -f $target_header_dir/features.h \
27291 && glibc_version_major_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+[0-9]' $target_header_dir/features.h` \
27292 && glibc_version_minor_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+[0-9]' $target_header_dir/features.h`; then
27293 glibc_version_major=`echo "$glibc_version_major_define" | sed -e 's/.*__GLIBC__[ ]*//'`
27294 glibc_version_minor=`echo "$glibc_version_minor_define" | sed -e 's/.*__GLIBC_MINOR__[ ]*//'`
27295 fi
27296 fi
27297
27298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc_version_major.$glibc_version_minor" >&5
27299 $as_echo "$glibc_version_major.$glibc_version_minor" >&6; }
27300
27301 cat >>confdefs.h <<_ACEOF
27302 #define TARGET_GLIBC_MAJOR $glibc_version_major
27303 _ACEOF
27304
27305
27306 cat >>confdefs.h <<_ACEOF
27307 #define TARGET_GLIBC_MINOR $glibc_version_minor
27308 _ACEOF
27309
27310
27311 # Check whether --enable-gnu-unique-object was given.
27312 if test "${enable_gnu_unique_object+set}" = set; then :
27313 enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
27314 yes | no) ;;
27315 *) as_fn_error "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
27316 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
27317 esac
27318 else
27319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
27320 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
27321 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
27322 $as_echo_n "(cached) " >&6
27323 else
27324 gcc_cv_as_gnu_unique_object=no
27325 if test $in_tree_gas = yes; then
27326 if test $in_tree_gas_is_elf = yes \
27327 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
27328 then gcc_cv_as_gnu_unique_object=yes
27329 fi
27330 elif test x$gcc_cv_as != x; then
27331 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
27332 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27333 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27334 (eval $ac_try) 2>&5
27335 ac_status=$?
27336 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27337 test $ac_status = 0; }; }
27338 then
27339 gcc_cv_as_gnu_unique_object=yes
27340 else
27341 echo "configure: failed program was" >&5
27342 cat conftest.s >&5
27343 fi
27344 rm -f conftest.o conftest.s
27345 fi
27346 fi
27347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
27348 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
27349 if test $gcc_cv_as_gnu_unique_object = yes; then
27350 # We need to unquote above to to use the definition from config.gcc.
27351 # Also check for ld.so support, i.e. glibc 2.11 or higher.
27352
27353 if test $glibc_version_major -gt 2 \
27354 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 11 ); then :
27355 enable_gnu_unique_object=yes
27356 fi
27357
27358 fi
27359 fi
27360
27361 if test x$enable_gnu_unique_object = xyes; then
27362
27363 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
27364
27365 fi
27366
27367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
27368 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
27369 if test "${gcc_cv_as_line_zero+set}" = set; then :
27370 $as_echo_n "(cached) " >&6
27371 else
27372 gcc_cv_as_line_zero=no
27373 if test $in_tree_gas = yes; then
27374 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
27375 then gcc_cv_as_line_zero=yes
27376 fi
27377 elif test "x$gcc_cv_as" != x; then
27378 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
27379 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
27380 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27381 (eval $ac_try) 2>&5
27382 ac_status=$?
27383 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27384 test $ac_status = 0; }; } &&
27385 test "x`cat conftest.out`" = x
27386 then
27387 gcc_cv_as_line_zero=yes
27388 else
27389 echo "configure: failed program was" >&5
27390 cat conftest.s >&5
27391 echo "configure: error output was" >&5
27392 cat conftest.out >&5
27393 fi
27394 rm -f conftest.o conftest.s conftest.out
27395 fi
27396 fi
27397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
27398 $as_echo "$gcc_cv_as_line_zero" >&6; }
27399 if test "x$gcc_cv_as_line_zero" = xyes; then
27400
27401 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
27402
27403 fi
27404
27405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
27406 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
27407 gcc_cv_ld_eh_frame_hdr=no
27408 if test $in_tree_ld = yes ; then
27409 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 \
27410 && test $in_tree_ld_is_elf = yes; then
27411 gcc_cv_ld_eh_frame_hdr=yes
27412 fi
27413 elif test x$gcc_cv_ld != x; then
27414 if echo "$ld_ver" | grep GNU > /dev/null; then
27415 # Check if linker supports --eh-frame-hdr option
27416 if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
27417 gcc_cv_ld_eh_frame_hdr=yes
27418 fi
27419 else
27420 case "$target" in
27421 *-*-solaris2*)
27422 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
27423 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2251; then
27424 gcc_cv_ld_eh_frame_hdr=yes
27425 fi
27426 ;;
27427 esac
27428 fi
27429 fi
27430
27431 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
27432
27433 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
27434
27435 fi
27436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
27437 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
27438
27439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker CIEv3 in .eh_frame support" >&5
27440 $as_echo_n "checking linker CIEv3 in .eh_frame support... " >&6; }
27441 gcc_cv_ld_eh_frame_ciev3=no
27442 if test $in_tree_ld = yes ; then
27443 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 \
27444 && test $in_tree_ld_is_elf = yes; then
27445 gcc_cv_ld_eh_frame_ciev3=yes
27446 fi
27447 elif test x$gcc_cv_ld != x; then
27448 if echo "$ld_ver" | grep GNU > /dev/null; then
27449 gcc_cv_ld_eh_frame_ciev3=yes
27450 if test 0"$ld_date" -lt 20040513; then
27451 if test -n "$ld_date"; then
27452 # If there was date string, but was earlier than 2004-05-13, fail
27453 gcc_cv_ld_eh_frame_ciev3=no
27454 elif test "$ld_vers_major" -lt 2; then
27455 gcc_cv_ld_eh_frame_ciev3=no
27456 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
27457 gcc_cv_ld_eh_frame_ciev3=no
27458 fi
27459 fi
27460 else
27461 case "$target" in
27462 *-*-solaris2*)
27463 # Sun ld added support for CIE v3 in .eh_frame in Solaris 11.1.
27464 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2324; then
27465 gcc_cv_ld_eh_frame_ciev3=yes
27466 fi
27467 ;;
27468 esac
27469 fi
27470 fi
27471
27472 cat >>confdefs.h <<_ACEOF
27473 #define HAVE_LD_EH_FRAME_CIEV3 `if test x"$gcc_cv_ld_eh_frame_ciev3" = xyes; then echo 1; else echo 0; fi`
27474 _ACEOF
27475
27476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_ciev3" >&5
27477 $as_echo "$gcc_cv_ld_eh_frame_ciev3" >&6; }
27478
27479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
27480 $as_echo_n "checking linker position independent executable support... " >&6; }
27481 gcc_cv_ld_pie=no
27482 if test $in_tree_ld = yes ; then
27483 case "$target" in
27484 # Full PIE support on Solaris was only introduced in gld 2.26.
27485 *-*-solaris2*) gcc_gld_pie_min_version=26 ;;
27486 *) gcc_gld_pie_min_version=15 ;;
27487 esac
27488 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 \
27489 && test $in_tree_ld_is_elf = yes; then
27490 gcc_cv_ld_pie=yes
27491 fi
27492 elif test x$gcc_cv_ld != x; then
27493 # Check if linker supports -pie option
27494 if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
27495 gcc_cv_ld_pie=yes
27496 case "$target" in
27497 *-*-solaris2*)
27498 if echo "$ld_ver" | grep GNU > /dev/null \
27499 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
27500 gcc_cv_ld_pie=no
27501 fi
27502 ;;
27503 esac
27504 else
27505 case "$target" in
27506 *-*-solaris2.1[1-9]*)
27507 # Solaris 11.x and Solaris 12 added PIE support.
27508 if $gcc_cv_ld -z help 2>&1 | grep -- type.*pie > /dev/null; then
27509 gcc_cv_ld_pie=yes
27510 fi
27511 ;;
27512 esac
27513 fi
27514 fi
27515 if test x"$gcc_cv_ld_pie" = xyes; then
27516
27517 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
27518
27519 fi
27520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
27521 $as_echo "$gcc_cv_ld_pie" >&6; }
27522
27523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PIE support with copy reloc" >&5
27524 $as_echo_n "checking linker PIE support with copy reloc... " >&6; }
27525 gcc_cv_ld_pie_copyreloc=no
27526 if test $gcc_cv_ld_pie = yes ; then
27527 if test $in_tree_ld = yes ; then
27528 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
27529 gcc_cv_ld_pie_copyreloc=yes
27530 fi
27531 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
27532 # Check if linker supports -pie option with copy reloc
27533 case "$target" in
27534 i?86-*-linux* | x86_64-*-linux*)
27535 cat > conftest1.s <<EOF
27536 .globl a_glob
27537 .data
27538 .type a_glob, @object
27539 .size a_glob, 4
27540 a_glob:
27541 .long 2
27542 EOF
27543 cat > conftest2.s <<EOF
27544 .text
27545 .globl main
27546 .type main, @function
27547 main:
27548 movl %eax, a_glob(%rip)
27549 .size main, .-main
27550 .globl ptr
27551 .section .data.rel,"aw",@progbits
27552 .type ptr, @object
27553 ptr:
27554 .quad a_glob
27555 EOF
27556 if $gcc_cv_as --64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
27557 && $gcc_cv_ld -shared -melf_x86_64 -o conftest1.so conftest1.o > /dev/null 2>&1 \
27558 && $gcc_cv_as --64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
27559 && $gcc_cv_ld -pie -melf_x86_64 -o conftest conftest2.o conftest1.so > /dev/null 2>&1; then
27560 gcc_cv_ld_pie_copyreloc=yes
27561 fi
27562 rm -f conftest conftest1.so conftest1.o conftest2.o conftest1.s conftest2.s
27563 ;;
27564 esac
27565 fi
27566 fi
27567
27568 cat >>confdefs.h <<_ACEOF
27569 #define HAVE_LD_PIE_COPYRELOC `if test x"$gcc_cv_ld_pie_copyreloc" = xyes; then echo 1; else echo 0; fi`
27570 _ACEOF
27571
27572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie_copyreloc" >&5
27573 $as_echo "$gcc_cv_ld_pie_copyreloc" >&6; }
27574
27575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
27576 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
27577 gcc_cv_ld_eh_gc_sections=no
27578 if test $in_tree_ld = yes ; then
27579 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 \
27580 && test $in_tree_ld_is_elf = yes; then
27581 gcc_cv_ld_eh_gc_sections=yes
27582 fi
27583 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
27584 cat > conftest.s <<EOF
27585 .section .text
27586 .globl _start
27587 .type _start, @function
27588 _start:
27589 .long foo
27590 .size _start, .-_start
27591 .section .text.foo,"ax",@progbits
27592 .type foo, @function
27593 foo:
27594 .long 0
27595 .size foo, .-foo
27596 .section .gcc_except_table.foo,"a",@progbits
27597 .L0:
27598 .long 0
27599 .section .eh_frame,"a",@progbits
27600 .long .L0
27601 EOF
27602 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
27603 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
27604 | grep "gc-sections option ignored" > /dev/null; then
27605 gcc_cv_ld_eh_gc_sections=no
27606 elif $gcc_cv_objdump -h conftest 2> /dev/null \
27607 | grep gcc_except_table > /dev/null; then
27608 gcc_cv_ld_eh_gc_sections=yes
27609 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
27610 if test x$gcc_cv_as_comdat_group != xyes; then
27611 gcc_cv_ld_eh_gc_sections=no
27612 cat > conftest.s <<EOF
27613 .section .text
27614 .globl _start
27615 .type _start, @function
27616 _start:
27617 .long foo
27618 .size _start, .-_start
27619 .section .gnu.linkonce.t.foo,"ax",@progbits
27620 .type foo, @function
27621 foo:
27622 .long 0
27623 .size foo, .-foo
27624 .section .gcc_except_table.foo,"a",@progbits
27625 .L0:
27626 .long 0
27627 .section .eh_frame,"a",@progbits
27628 .long .L0
27629 EOF
27630 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
27631 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
27632 | grep "gc-sections option ignored" > /dev/null; then
27633 gcc_cv_ld_eh_gc_sections=no
27634 elif $gcc_cv_objdump -h conftest 2> /dev/null \
27635 | grep gcc_except_table > /dev/null; then
27636 gcc_cv_ld_eh_gc_sections=yes
27637 fi
27638 fi
27639 fi
27640 fi
27641 fi
27642 rm -f conftest.s conftest.o conftest
27643 fi
27644 case "$target" in
27645 hppa*-*-linux*)
27646 # ??? This apparently exposes a binutils bug with PC-relative relocations.
27647 gcc_cv_ld_eh_gc_sections=no
27648 ;;
27649 esac
27650 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
27651
27652 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
27653
27654 fi
27655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
27656 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
27657
27658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
27659 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
27660 gcc_cv_ld_eh_gc_sections_bug=no
27661 if test $in_tree_ld = yes ; then
27662 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 \
27663 && test $in_tree_ld_is_elf = yes; then
27664 gcc_cv_ld_eh_gc_sections_bug=yes
27665 fi
27666 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
27667 gcc_cv_ld_eh_gc_sections_bug=yes
27668 cat > conftest.s <<EOF
27669 .section .text
27670 .globl _start
27671 .type _start, @function
27672 _start:
27673 .long foo
27674 .size _start, .-_start
27675 .section .text.startup.foo,"ax",@progbits
27676 .type foo, @function
27677 foo:
27678 .long 0
27679 .size foo, .-foo
27680 .section .gcc_except_table.foo,"a",@progbits
27681 .L0:
27682 .long 0
27683 .section .eh_frame,"a",@progbits
27684 .long .L0
27685 EOF
27686 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
27687 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
27688 | grep "gc-sections option ignored" > /dev/null; then
27689 :
27690 elif $gcc_cv_objdump -h conftest 2> /dev/null \
27691 | grep gcc_except_table > /dev/null; then
27692 gcc_cv_ld_eh_gc_sections_bug=no
27693 fi
27694 fi
27695 rm -f conftest.s conftest.o conftest
27696 fi
27697 if test x$gcc_cv_ld_eh_gc_sections_bug = xyes; then
27698
27699 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
27700
27701 fi
27702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
27703 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
27704
27705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for compressed debug sections" >&5
27706 $as_echo_n "checking linker for compressed debug sections... " >&6; }
27707 # gold/gld support compressed debug sections since binutils 2.19/2.21
27708 if test $in_tree_ld = yes ; then
27709 gcc_cv_ld_compress_debug=0
27710 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 \
27711 && test $in_tree_ld_is_elf = yes && test $ld_is_gold = yes; then
27712 gcc_cv_ld_compress_debug=2
27713 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
27714 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 \
27715 && test $in_tree_ld_is_elf = yes; then
27716 gcc_cv_ld_compress_debug=1
27717 fi
27718 elif echo "$ld_ver" | grep GNU > /dev/null; then
27719 gcc_cv_ld_compress_debug=1
27720 if test 0"$ld_date" -lt 20050308; then
27721 if test -n "$ld_date"; then
27722 # If there was date string, but was earlier than 2005-03-08, fail
27723 gcc_cv_ld_compress_debug=0
27724 elif test "$ld_vers_major" -lt 2; then
27725 gcc_cv_ld_compress_debug=0
27726 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 21; then
27727 gcc_cv_ld_compress_debug=0
27728 fi
27729 fi
27730 if test $ld_is_gold = yes; then
27731 gcc_cv_ld_compress_debug=2
27732 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
27733 fi
27734 else
27735 case "${target}" in
27736 *-*-solaris2*)
27737 # Introduced in Solaris 11.2.
27738 if $gcc_cv_ld --help 2>&1 | grep -- '-z compress-sections' > /dev/null; then
27739 gcc_cv_ld_compress_debug=3
27740 gcc_cv_ld_compress_debug_option="-z compress-sections"
27741 else
27742 gcc_cv_ld_compress_debug=0
27743 fi
27744 ;;
27745 *)
27746 # Assume linkers other than GNU ld don't support compessed debug
27747 # sections.
27748 gcc_cv_ld_compress_debug=0
27749 ;;
27750 esac
27751 fi
27752
27753 cat >>confdefs.h <<_ACEOF
27754 #define HAVE_LD_COMPRESS_DEBUG $gcc_cv_ld_compress_debug
27755 _ACEOF
27756
27757
27758 cat >>confdefs.h <<_ACEOF
27759 #define LD_COMPRESS_DEBUG_OPTION "$gcc_cv_ld_compress_debug_option"
27760 _ACEOF
27761
27762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_compress_debug" >&5
27763 $as_echo "$gcc_cv_ld_compress_debug" >&6; }
27764
27765 # --------
27766 # UNSORTED
27767 # --------
27768
27769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
27770 $as_echo_n "checking linker --as-needed support... " >&6; }
27771 if test "${gcc_cv_ld_as_needed+set}" = set; then :
27772 $as_echo_n "(cached) " >&6
27773 else
27774 gcc_cv_ld_as_needed=no
27775 gcc_cv_ld_as_needed_option='--as-needed'
27776 gcc_cv_ld_no_as_needed_option='--no-as-needed'
27777 if test $in_tree_ld = yes ; then
27778 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 \
27779 && test $in_tree_ld_is_elf = yes; then
27780 gcc_cv_ld_as_needed=yes
27781 fi
27782 elif test x$gcc_cv_ld != x; then
27783 # Check if linker supports --as-needed and --no-as-needed options
27784 if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
27785 gcc_cv_ld_as_needed=yes
27786 else
27787 case "$target" in
27788 # Solaris 2 ld always supports -z ignore/-z record.
27789 *-*-solaris2*)
27790 gcc_cv_ld_as_needed=yes
27791 gcc_cv_ld_as_needed_option="-z ignore"
27792 gcc_cv_ld_no_as_needed_option="-z record"
27793 ;;
27794 esac
27795 fi
27796 fi
27797 # --as-needed/-z ignore can only be used if libgcc_s.so.1 uses
27798 # dl_iterate_phdr, i.e. since Solaris 11.
27799 case "$target" in
27800 *-*-solaris2.1[1-9]*)
27801 case "$target" in
27802 i?86-*-* | x86_64-*-*)
27803 if echo "$ld_ver" | grep GNU > /dev/null; then
27804 # Doesn't work with gld on Solaris/x86 due to PR ld/12320.
27805 gcc_cv_ld_as_needed=no
27806 fi
27807 ;;
27808 esac
27809 ;;
27810 *-*-solaris2*)
27811 gcc_cv_ld_as_needed=no
27812 ;;
27813 esac
27814
27815 fi
27816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
27817 $as_echo "$gcc_cv_ld_as_needed" >&6; }
27818 if test x"$gcc_cv_ld_as_needed" = xyes; then
27819
27820 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
27821
27822
27823 cat >>confdefs.h <<_ACEOF
27824 #define LD_AS_NEEDED_OPTION "$gcc_cv_ld_as_needed_option"
27825 _ACEOF
27826
27827
27828 cat >>confdefs.h <<_ACEOF
27829 #define LD_NO_AS_NEEDED_OPTION "$gcc_cv_ld_no_as_needed_option"
27830 _ACEOF
27831
27832 fi
27833
27834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker mapfile support for clearing hardware capabilities" >&5
27835 $as_echo_n "checking linker mapfile support for clearing hardware capabilities... " >&6; }
27836 saved_LDFLAGS="$LDFLAGS"
27837 for clearcap_map in sol2-clearcapv2.map sol2-clearcap.map; do
27838 LDFLAGS="$saved_LDFLAGS -Wl,-M,${srcdir}/config/$clearcap_map"
27839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27840 /* end confdefs.h. */
27841 int main(void) {return 0;}
27842 _ACEOF
27843 if ac_fn_cxx_try_link "$LINENO"; then :
27844 gcc_cv_ld_clearcap=yes; break
27845 else
27846 gcc_cv_ld_clearcap=no
27847 fi
27848 rm -f core conftest.err conftest.$ac_objext \
27849 conftest$ac_exeext conftest.$ac_ext
27850 done
27851 LDFLAGS="$saved_LDFLAGS"
27852 if test "x$gcc_cv_ld_clearcap" = xyes; then
27853
27854 $as_echo "#define HAVE_LD_CLEARCAP 1" >>confdefs.h
27855
27856 ac_config_links="$ac_config_links clearcap.map:${srcdir}/config/$clearcap_map"
27857
27858 fi
27859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_clearcap" >&5
27860 $as_echo "$gcc_cv_ld_clearcap" >&6; }
27861
27862 case "$target:$tm_file" in
27863 powerpc64-*-freebsd* | powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
27864 case "$target" in
27865 *le-*-linux*)
27866 emul_name="-melf64lppc"
27867 ;;
27868 *-*-linux*)
27869 emul_name="-melf64ppc"
27870 ;;
27871 *-*-freebsd*)
27872 emul_name="-melf64ppc_fbsd"
27873 ;;
27874 esac
27875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
27876 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
27877 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
27878 $as_echo_n "(cached) " >&6
27879 else
27880 gcc_cv_ld_no_dot_syms=no
27881 if test x"$ld_is_gold" = xyes; then
27882 gcc_cv_ld_no_dot_syms=yes
27883 elif test $in_tree_ld = yes ; then
27884 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
27885 gcc_cv_ld_no_dot_syms=yes
27886 fi
27887 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
27888 cat > conftest1.s <<EOF
27889 .text
27890 bl .foo
27891 EOF
27892 cat > conftest2.s <<EOF
27893 .section ".opd","aw"
27894 .align 3
27895 .globl foo
27896 .type foo,@function
27897 foo:
27898 .quad .LEfoo,.TOC.@tocbase,0
27899 .text
27900 .LEfoo:
27901 blr
27902 .size foo,.-.LEfoo
27903 EOF
27904 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
27905 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
27906 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
27907 gcc_cv_ld_no_dot_syms=yes
27908 fi
27909 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
27910 fi
27911
27912 fi
27913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
27914 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
27915 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
27916
27917 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
27918
27919 fi
27920
27921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
27922 $as_echo_n "checking linker large toc support... " >&6; }
27923 if test "${gcc_cv_ld_large_toc+set}" = set; then :
27924 $as_echo_n "(cached) " >&6
27925 else
27926 gcc_cv_ld_large_toc=no
27927 if test x"$ld_is_gold" = xyes; then
27928 gcc_cv_ld_large_toc=yes
27929 elif test $in_tree_ld = yes ; then
27930 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
27931 gcc_cv_ld_large_toc=yes
27932 fi
27933 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
27934 cat > conftest.s <<EOF
27935 .section ".tbss","awT",@nobits
27936 .align 3
27937 ie0: .space 8
27938 .global _start
27939 .text
27940 _start:
27941 addis 9,13,ie0@got@tprel@ha
27942 ld 9,ie0@got@tprel@l(9)
27943 EOF
27944 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
27945 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
27946 gcc_cv_ld_large_toc=yes
27947 fi
27948 rm -f conftest conftest.o conftest.s
27949 fi
27950
27951 fi
27952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
27953 $as_echo "$gcc_cv_ld_large_toc" >&6; }
27954 if test x"$gcc_cv_ld_large_toc" = xyes; then
27955
27956 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
27957
27958 fi
27959
27960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker toc pointer alignment" >&5
27961 $as_echo_n "checking linker toc pointer alignment... " >&6; }
27962 if test "${gcc_cv_ld_toc_align+set}" = set; then :
27963 $as_echo_n "(cached) " >&6
27964 else
27965 if test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_nm != x; then
27966 cat > conftest.s <<EOF
27967 .global _start
27968 .text
27969 _start:
27970 addis 9,2,x@got@ha
27971 .section .data.rel.ro,"aw",@progbits
27972 .p2align 16
27973 .space 32768
27974 x: .quad .TOC.
27975 EOF
27976 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
27977 && $gcc_cv_ld $emul_name -o conftest conftest.o > /dev/null 2>&1; then
27978 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)) }'`
27979 fi
27980 rm -f conftest conftest.o conftest.s
27981 fi
27982
27983 fi
27984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_toc_align" >&5
27985 $as_echo "$gcc_cv_ld_toc_align" >&6; }
27986 if test -n "$gcc_cv_ld_toc_align" && test $gcc_cv_ld_toc_align -gt 8; then
27987
27988 cat >>confdefs.h <<_ACEOF
27989 #define POWERPC64_TOC_POINTER_ALIGNMENT $gcc_cv_ld_toc_align
27990 _ACEOF
27991
27992 fi
27993 ;;
27994 esac
27995
27996 case "$target" in
27997 *-*-aix*)
27998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
27999 $as_echo_n "checking linker large toc support... " >&6; }
28000 if test "${gcc_cv_ld_large_toc+set}" = set; then :
28001 $as_echo_n "(cached) " >&6
28002 else
28003 gcc_cv_ld_large_toc=no
28004 if test x$gcc_cv_as != x ; then
28005 cat > conftest.s <<EOF
28006 .toc
28007 LC..1:
28008 .tc a[TC],a[RW]
28009 .extern a[RW]
28010 .csect .text[PR]
28011 .largetoctest:
28012 addis 9,LC..1@u(2)
28013 ld 3,LC..1@l(9)
28014 EOF
28015 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1; then
28016 gcc_cv_ld_large_toc=yes
28017 fi
28018 rm -f conftest conftest.o conftest.s
28019 fi
28020
28021 fi
28022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
28023 $as_echo "$gcc_cv_ld_large_toc" >&6; }
28024 if test x"$gcc_cv_ld_large_toc" = xyes; then
28025
28026 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
28027
28028 fi
28029 ;;
28030 esac
28031
28032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
28033 $as_echo_n "checking linker --build-id support... " >&6; }
28034 if test "${gcc_cv_ld_buildid+set}" = set; then :
28035 $as_echo_n "(cached) " >&6
28036 else
28037 gcc_cv_ld_buildid=no
28038 if test $in_tree_ld = yes ; then
28039 if test "$gcc_cv_gld_major_version" -eq 2 -a \
28040 "$gcc_cv_gld_minor_version" -ge 18 -o \
28041 "$gcc_cv_gld_major_version" -gt 2 \
28042 && test $in_tree_ld_is_elf = yes; then
28043 gcc_cv_ld_buildid=yes
28044 fi
28045 elif test x$gcc_cv_ld != x; then
28046 if $gcc_cv_ld --help 2>/dev/null | grep build-id > /dev/null; then
28047 gcc_cv_ld_buildid=yes
28048 fi
28049 fi
28050 fi
28051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
28052 $as_echo "$gcc_cv_ld_buildid" >&6; }
28053 if test x"$gcc_cv_ld_buildid" = xyes; then
28054
28055 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
28056
28057 fi
28058
28059 # Check whether --enable-linker-build-id was given.
28060 if test "${enable_linker_build_id+set}" = set; then :
28061 enableval=$enable_linker_build_id;
28062 else
28063 enable_linker_build_id=no
28064 fi
28065
28066
28067 if test x"$enable_linker_build_id" = xyes; then
28068 if test x"$gcc_cv_ld_buildid" = xyes; then
28069
28070 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
28071
28072 else
28073 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
28074 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
28075 fi
28076 fi
28077
28078 # In binutils 2.21, GNU ld gained support for new emulations fully
28079 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
28080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
28081 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
28082 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
28083 $as_echo_n "(cached) " >&6
28084 else
28085 gcc_cv_ld_sol2_emulation=no
28086 if test $in_tree_ld = yes ; then
28087 if test "$gcc_cv_gld_major_version" -eq 2 -a \
28088 "$gcc_cv_gld_minor_version" -ge 21 -o \
28089 "$gcc_cv_gld_major_version" -gt 2 \
28090 && test $in_tree_ld_is_elf = yes; then
28091 gcc_cv_ld_sol2_emulation=yes
28092 fi
28093 elif test x$gcc_cv_ld != x; then
28094 if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
28095 grep _sol2 > /dev/null; then
28096 gcc_cv_ld_sol2_emulation=yes
28097 fi
28098 fi
28099 fi
28100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
28101 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
28102 if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
28103
28104 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
28105
28106 fi
28107
28108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
28109 $as_echo_n "checking linker --sysroot support... " >&6; }
28110 if test "${gcc_cv_ld_sysroot+set}" = set; then :
28111 $as_echo_n "(cached) " >&6
28112 else
28113 gcc_cv_ld_sysroot=no
28114 if test $in_tree_ld = yes ; then
28115 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
28116 gcc_cv_ld_sysroot=yes
28117 fi
28118 elif test x$gcc_cv_ld != x; then
28119 if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
28120 gcc_cv_ld_sysroot=yes
28121 fi
28122 fi
28123 fi
28124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
28125 $as_echo "$gcc_cv_ld_sysroot" >&6; }
28126 if test x"$gcc_cv_ld_sysroot" = xyes; then
28127
28128 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
28129
28130 fi
28131
28132 case $target in
28133 *-*-solaris2*)
28134 # Check for system-provided CRTs on Solaris 11.x and Solaris 12.
28135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking system-provided CRTs on Solaris" >&5
28136 $as_echo_n "checking system-provided CRTs on Solaris... " >&6; }
28137 if test "${gcc_cv_solaris_crts+set}" = set; then :
28138 $as_echo_n "(cached) " >&6
28139 else
28140 gcc_cv_solaris_crts=no
28141 if test x$host != x$target; then
28142 if test "x$with_sysroot" = xyes; then
28143 target_sysroot="${test_exec_prefix}/${target_noncanonical}/sys-root"
28144 else
28145 target_sysroot="${with_sysroot}"
28146 fi
28147 fi
28148 target_libdir="$target_sysroot/usr/lib"
28149 # At the time they were added, gcrt1.o became a symlink for backwards
28150 # compatibility on x86, while crt1.o was added on sparc, so check for that.
28151 case $target in
28152 i?86-*-solaris2* | x86_64-*-solaris2*)
28153 if test -h "$target_libdir/gcrt1.o"; then gcc_cv_solaris_crts=yes; fi
28154 ;;
28155 sparc*-*-solaris2*)
28156 if test -f "$target_libdir/crt1.o"; then gcc_cv_solaris_crts=yes; fi
28157 ;;
28158 esac
28159 fi
28160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_solaris_crts" >&5
28161 $as_echo "$gcc_cv_solaris_crts" >&6; }
28162 ;;
28163 esac
28164 if test x$gcc_cv_solaris_crts = xyes; then
28165
28166 $as_echo "#define HAVE_SOLARIS_CRTS 1" >>confdefs.h
28167
28168 fi
28169
28170 # Test for stack protector support in target C library.
28171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
28172 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
28173 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
28174 $as_echo_n "(cached) " >&6
28175 else
28176 gcc_cv_libc_provides_ssp=no
28177 case "$target" in
28178 *-*-musl*)
28179 # All versions of musl provide stack protector
28180 gcc_cv_libc_provides_ssp=yes;;
28181 *-*-linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu)
28182 # glibc 2.4 and later provides __stack_chk_fail and
28183 # either __stack_chk_guard, or TLS access to stack guard canary.
28184
28185 if test $glibc_version_major -gt 2 \
28186 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
28187 gcc_cv_libc_provides_ssp=yes
28188 else
28189
28190 if test -f $target_header_dir/features.h \
28191 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
28192 $target_header_dir/features.h > /dev/null; then
28193 if $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
28194 $target_header_dir/features.h > /dev/null && \
28195 test -f $target_header_dir/bits/uClibc_config.h && \
28196 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
28197 $target_header_dir/bits/uClibc_config.h > /dev/null; then
28198 gcc_cv_libc_provides_ssp=yes
28199 fi
28200 # all versions of Bionic support stack protector
28201 elif test -f $target_header_dir/sys/cdefs.h \
28202 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
28203 $target_header_dir/sys/cdefs.h > /dev/null; then
28204 gcc_cv_libc_provides_ssp=yes
28205 fi
28206 fi
28207 ;;
28208 *-*-gnu*)
28209 # Avoid complicated tests (see
28210 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
28211 # simply assert that glibc does provide this, which is true for all
28212 # realistically usable GNU/Hurd configurations.
28213 # All supported versions of musl provide it as well
28214 gcc_cv_libc_provides_ssp=yes;;
28215 *-*-darwin* | *-*-freebsd*)
28216 ac_fn_cxx_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
28217 if test "x$ac_cv_func___stack_chk_fail" = x""yes; then :
28218 gcc_cv_libc_provides_ssp=yes
28219 else
28220 echo "no __stack_chk_fail on this target"
28221 fi
28222
28223 ;;
28224 *) gcc_cv_libc_provides_ssp=no ;;
28225 esac
28226 fi
28227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
28228 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
28229
28230 if test x$gcc_cv_libc_provides_ssp = xyes; then
28231
28232 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
28233
28234 fi
28235
28236 # Check whether --enable-default-ssp was given.
28237 # Check whether --enable-default-ssp was given.
28238 if test "${enable_default_ssp+set}" = set; then :
28239 enableval=$enable_default_ssp;
28240 if test x$gcc_cv_libc_provides_ssp = xyes; then
28241 case "$target" in
28242 ia64*-*-*) enable_default_ssp=no ;;
28243 *) enable_default_ssp=$enableval ;;
28244 esac
28245 else
28246 enable_default_ssp=no
28247 fi
28248 else
28249 enable_default_ssp=no
28250 fi
28251
28252 if test x$enable_default_ssp == xyes ; then
28253
28254 $as_echo "#define ENABLE_DEFAULT_SSP 1" >>confdefs.h
28255
28256 fi
28257
28258
28259 # Test for <sys/sdt.h> on the target.
28260
28261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
28262 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
28263 have_sys_sdt_h=no
28264 if test -f $target_header_dir/sys/sdt.h; then
28265 have_sys_sdt_h=yes
28266
28267 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
28268
28269 fi
28270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
28271 $as_echo "$have_sys_sdt_h" >&6; }
28272
28273 # Check if TFmode long double should be used by default or not.
28274 # Some glibc targets used DFmode long double, but with glibc 2.4
28275 # and later they can use TFmode.
28276 case "$target" in
28277 powerpc*-*-linux* | \
28278 sparc*-*-linux* | \
28279 s390*-*-linux* | \
28280 alpha*-*-linux*)
28281
28282 # Check whether --with-long-double-128 was given.
28283 if test "${with_long_double_128+set}" = set; then :
28284 withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
28285 else
28286
28287 if test $glibc_version_major -gt 2 \
28288 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
28289 gcc_cv_target_ldbl128=yes
28290 else
28291
28292 gcc_cv_target_ldbl128=no
28293 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
28294 $target_header_dir/bits/wordsize.h > /dev/null 2>&1 \
28295 && gcc_cv_target_ldbl128=yes
28296
28297 fi
28298 fi
28299
28300 ;;
28301 esac
28302 if test x$gcc_cv_target_ldbl128 = xyes; then
28303
28304 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
28305
28306 fi
28307
28308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
28309 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
28310 gcc_cv_target_dl_iterate_phdr=unknown
28311 case "$target" in
28312 # Restrict to Solaris 11+. While most of the Solaris 11 linker changes
28313 # were backported to Solaris 10 Update 10, dl_iterate_phdr only lives in
28314 # libdl there, both complicating its use and breaking compatibility
28315 # between Solaris 10 updates.
28316 *-*-solaris2.1[1-9]*)
28317 # <link.h> needs both a dl_iterate_phdr declaration and support for
28318 # compilation with largefile support.
28319 if grep dl_iterate_phdr $target_header_dir/link.h > /dev/null 2>&1 \
28320 && grep 'large file capable' $target_header_dir/link.h > /dev/null 2>&1; then
28321 gcc_cv_target_dl_iterate_phdr=yes
28322 else
28323 gcc_cv_target_dl_iterate_phdr=no
28324 fi
28325 ;;
28326 *-*-dragonfly* | *-*-freebsd*)
28327 if grep dl_iterate_phdr $target_header_dir/sys/link_elf.h > /dev/null 2>&1; then
28328 gcc_cv_target_dl_iterate_phdr=yes
28329 else
28330 gcc_cv_target_dl_iterate_phdr=no
28331 fi
28332 ;;
28333 *-linux-musl*)
28334 gcc_cv_target_dl_iterate_phdr=yes
28335 ;;
28336 esac
28337
28338 if test x$gcc_cv_target_dl_iterate_phdr = xyes; then
28339
28340 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
28341
28342 fi
28343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
28344 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
28345
28346 # We no longer support different GC mechanisms. Emit an error if
28347 # the user configures with --with-gc.
28348
28349 # Check whether --with-gc was given.
28350 if test "${with_gc+set}" = set; then :
28351 withval=$with_gc; as_fn_error "Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
28352 fi
28353
28354
28355 # Libraries to use on the host. This will normally be set by the top
28356 # level Makefile. Here we simply capture the value for our Makefile.
28357 if test -z "${HOST_LIBS+set}"; then
28358 HOST_LIBS=
28359 fi
28360
28361
28362 # Use the system's zlib library.
28363
28364 # Use the system's zlib library.
28365 zlibdir="-L\$(top_builddir)/../zlib"
28366 zlibinc="-I\$(top_srcdir)/../zlib"
28367
28368 # Check whether --with-system-zlib was given.
28369 if test "${with_system_zlib+set}" = set; then :
28370 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
28371 zlibdir=
28372 zlibinc=
28373 fi
28374
28375 fi
28376
28377
28378
28379
28380
28381
28382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
28383 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
28384 # Check whether --enable-maintainer-mode was given.
28385 if test "${enable_maintainer_mode+set}" = set; then :
28386 enableval=$enable_maintainer_mode; maintainer_mode=$enableval
28387 else
28388 maintainer_mode=no
28389 fi
28390
28391
28392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
28393 $as_echo "$maintainer_mode" >&6; }
28394
28395 if test "$maintainer_mode" = "yes"; then
28396 MAINT=''
28397 else
28398 MAINT='#'
28399 fi
28400
28401
28402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid linking multiple front-ends at once" >&5
28403 $as_echo_n "checking whether to avoid linking multiple front-ends at once... " >&6; }
28404 # Check whether --enable-link-mutex was given.
28405 if test "${enable_link_mutex+set}" = set; then :
28406 enableval=$enable_link_mutex; do_link_mutex=$enableval
28407 else
28408 do_link_mutex=no
28409 fi
28410
28411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_mutex" >&5
28412 $as_echo "$do_link_mutex" >&6; }
28413
28414 if test "$do_link_mutex" = "yes"; then
28415 DO_LINK_MUTEX=true
28416 else
28417 DO_LINK_MUTEX=false
28418 fi
28419
28420
28421 # --------------
28422 # Language hooks
28423 # --------------
28424
28425 # Make empty files to contain the specs and options for each language.
28426 # Then add #include lines to for a compiler that has specs and/or options.
28427
28428 subdirs=
28429 lang_opt_files=
28430 lang_specs_files=
28431 lang_tree_files=
28432 # These (without "all_") are set in each config-lang.in.
28433 # `language' must be a single word so is spelled singularly.
28434 all_languages=
28435 all_compilers=
28436 all_outputs='Makefile'
28437 # List of language makefile fragments.
28438 all_lang_makefrags=
28439 # Additional files for gengtype
28440 all_gtfiles="$target_gtfiles"
28441
28442 # These are the languages that are set in --enable-languages,
28443 # and are available in the GCC tree.
28444 all_selected_languages=
28445
28446 # Add the language fragments.
28447 # Languages are added via two mechanisms. Some information must be
28448 # recorded in makefile variables, these are defined in config-lang.in.
28449 # We accumulate them and plug them into the main Makefile.
28450 # The other mechanism is a set of hooks for each of the main targets
28451 # like `clean', `install', etc.
28452
28453 language_hooks="Make-hooks"
28454
28455 for lang in ${srcdir}/*/config-lang.in
28456 do
28457 test "$lang" = "${srcdir}/*/config-lang.in" && continue
28458
28459 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
28460 if test "x$lang_alias" = x
28461 then
28462 echo "$lang doesn't set \$language." 1>&2
28463 exit 1
28464 fi
28465 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
28466 subdirs="$subdirs $subdir"
28467
28468 # $gcc_subdir is where the gcc integration files are to be found
28469 # for a language, both for internal compiler purposes (compiler
28470 # sources implementing front-end to GCC tree converters), and for
28471 # build infrastructure purposes (Make-lang.in, etc.)
28472 #
28473 # This will be <subdir> (relative to $srcdir) if a line like
28474 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
28475 # is found in <langdir>/config-lang.in, and will remain <langdir>
28476 # otherwise.
28477 #
28478 # Except for the language alias (fetched above), the regular
28479 # "config-lang.in" contents are always retrieved from $gcc_subdir,
28480 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
28481 # only this and the language alias.
28482
28483 gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
28484 if [ "$gcc_subdir" = "" ]; then
28485 gcc_subdir="$subdir"
28486 fi
28487
28488 case ",$enable_languages," in
28489 *,$lang_alias,*)
28490 all_selected_languages="$all_selected_languages $lang_alias"
28491 if test -f $srcdir/$gcc_subdir/lang-specs.h; then
28492 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
28493 fi
28494 ;;
28495 esac
28496
28497 language=
28498 boot_language=
28499 compilers=
28500 outputs=
28501 gtfiles=
28502 subdir_requires=
28503 . ${srcdir}/$gcc_subdir/config-lang.in
28504 if test "x$language" = x
28505 then
28506 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
28507 exit 1
28508 fi
28509
28510 ok=:
28511 case ",$enable_languages," in
28512 *,$lang_alias,*) ;;
28513 *)
28514 for i in $subdir_requires; do
28515 test -f "${srcdir}/$i/config-lang.in" && continue
28516 ok=false
28517 break
28518 done
28519 ;;
28520 esac
28521 $ok || continue
28522
28523 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
28524 if test -f $srcdir/$gcc_subdir/lang.opt; then
28525 lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
28526 all_opt_files="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
28527 fi
28528 if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
28529 lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
28530 fi
28531 all_languages="$all_languages $language"
28532 all_compilers="$all_compilers $compilers"
28533 all_outputs="$all_outputs $outputs"
28534 all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
28535 case ",$enable_languages," in
28536 *,lto,*)
28537
28538 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
28539
28540 enable_lto=yes
28541
28542 ;;
28543 *) ;;
28544 esac
28545 done
28546
28547 check_languages=
28548 for language in $all_selected_languages
28549 do
28550 check_languages="$check_languages check-$language"
28551 done
28552
28553 # We link each language in with a set of hooks, reached indirectly via
28554 # lang.${target}. Only do so for selected languages.
28555
28556 rm -f Make-hooks
28557 touch Make-hooks
28558 target_list="all.cross start.encap rest.encap tags \
28559 install-common install-man install-info install-pdf install-html dvi \
28560 pdf html uninstall info man srcextra srcman srcinfo \
28561 mostlyclean clean distclean maintainer-clean install-plugin"
28562
28563 for t in $target_list
28564 do
28565 x=
28566 for lang in $all_selected_languages
28567 do
28568 x="$x $lang.$t"
28569 done
28570 echo "lang.$t: $x" >> Make-hooks
28571 done
28572
28573 # --------
28574 # Option include files
28575 # --------
28576
28577 ${AWK} -f $srcdir/opt-include.awk $all_opt_files > option-includes.mk
28578 option_includes="option-includes.mk"
28579
28580
28581 # --------
28582 # UNSORTED
28583 # --------
28584
28585 # Create .gdbinit.
28586
28587 echo "dir ." > .gdbinit
28588 echo "dir ${srcdir}" >> .gdbinit
28589 if test x$gdb_needs_out_file_path = xyes
28590 then
28591 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
28592 fi
28593 if test "x$subdirs" != x; then
28594 for s in $subdirs
28595 do
28596 echo "dir ${srcdir}/$s" >> .gdbinit
28597 done
28598 fi
28599 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
28600 echo "python import sys; sys.path.append('${srcdir}'); import gdbhooks" >> .gdbinit
28601
28602 # Put a breakpoint on __asan_report_error to help with debugging buffer
28603 # overflow.
28604 case "$CFLAGS" in
28605 *-fsanitize=address*)
28606 echo "source ${srcdir}/gdbasan.in" >> .gdbinit
28607 ;;
28608 esac
28609
28610 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
28611
28612
28613
28614 # Find a directory in which to install a shared libgcc.
28615
28616 # Check whether --enable-version-specific-runtime-libs was given.
28617 if test "${enable_version_specific_runtime_libs+set}" = set; then :
28618 enableval=$enable_version_specific_runtime_libs;
28619 fi
28620
28621
28622 # Substitute configuration variables
28623
28624
28625
28626
28627
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 # Echo link setup.
28686 if test x${build} = x${host} ; then
28687 if test x${host} = x${target} ; then
28688 echo "Links are now set up to build a native compiler for ${target}." 1>&2
28689 else
28690 echo "Links are now set up to build a cross-compiler" 1>&2
28691 echo " from ${host} to ${target}." 1>&2
28692 fi
28693 else
28694 if test x${host} = x${target} ; then
28695 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
28696 echo " for ${target}." 1>&2
28697 else
28698 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
28699 echo " from ${host} to ${target}." 1>&2
28700 fi
28701 fi
28702
28703
28704
28705
28706
28707
28708 if test "x${ISLLIBS}" != "x" ; then
28709
28710 $as_echo "#define HAVE_isl 1" >>confdefs.h
28711
28712 fi
28713
28714 # Check whether isl_schedule_constraints_compute_schedule is available;
28715 # it's new in ISL-0.13.
28716 # Check whether isl_options_set_schedule_serialize_sccs is available;
28717 # it's new in ISL-0.15.
28718 if test "x${ISLLIBS}" != "x" ; then
28719 saved_CXXFLAGS="$CXXFLAGS"
28720 CXXFLAGS="$CXXFLAGS $ISLINC"
28721 saved_LIBS="$LIBS"
28722 LIBS="$LIBS $ISLLIBS $GMPLIBS"
28723
28724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Checking for isl_schedule_constraints_compute_schedule" >&5
28725 $as_echo_n "checking Checking for isl_schedule_constraints_compute_schedule... " >&6; }
28726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28727 /* end confdefs.h. */
28728 #include <isl/schedule.h>
28729 int
28730 main ()
28731 {
28732 isl_schedule_constraints_compute_schedule (NULL);
28733 ;
28734 return 0;
28735 }
28736 _ACEOF
28737 if ac_fn_cxx_try_link "$LINENO"; then :
28738 ac_has_isl_schedule_constraints_compute_schedule=yes
28739 else
28740 ac_has_isl_schedule_constraints_compute_schedule=no
28741 fi
28742 rm -f core conftest.err conftest.$ac_objext \
28743 conftest$ac_exeext conftest.$ac_ext
28744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_has_isl_schedule_constraints_compute_schedule" >&5
28745 $as_echo "$ac_has_isl_schedule_constraints_compute_schedule" >&6; }
28746
28747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Checking for isl_options_set_schedule_serialize_sccs" >&5
28748 $as_echo_n "checking Checking for isl_options_set_schedule_serialize_sccs... " >&6; }
28749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28750 /* end confdefs.h. */
28751 #include <isl/schedule.h>
28752 int
28753 main ()
28754 {
28755 isl_options_set_schedule_serialize_sccs (NULL, 0);
28756 ;
28757 return 0;
28758 }
28759 _ACEOF
28760 if ac_fn_cxx_try_link "$LINENO"; then :
28761 ac_has_isl_options_set_schedule_serialize_sccs=yes
28762 else
28763 ac_has_isl_options_set_schedule_serialize_sccs=no
28764 fi
28765 rm -f core conftest.err conftest.$ac_objext \
28766 conftest$ac_exeext conftest.$ac_ext
28767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_has_isl_options_set_schedule_serialize_sccs" >&5
28768 $as_echo "$ac_has_isl_options_set_schedule_serialize_sccs" >&6; }
28769
28770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Checking for isl_ctx_get_max_operations" >&5
28771 $as_echo_n "checking Checking for isl_ctx_get_max_operations... " >&6; }
28772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28773 /* end confdefs.h. */
28774 #include <isl/ctx.h>
28775 int
28776 main ()
28777 {
28778 isl_ctx_get_max_operations (isl_ctx_alloc ());
28779 ;
28780 return 0;
28781 }
28782 _ACEOF
28783 if ac_fn_cxx_try_link "$LINENO"; then :
28784 ac_has_isl_ctx_get_max_operations=yes
28785 else
28786 ac_has_isl_ctx_get_max_operations=no
28787 fi
28788 rm -f core conftest.err conftest.$ac_objext \
28789 conftest$ac_exeext conftest.$ac_ext
28790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_has_isl_ctx_get_max_operations" >&5
28791 $as_echo "$ac_has_isl_ctx_get_max_operations" >&6; }
28792
28793 LIBS="$saved_LIBS"
28794 CXXFLAGS="$saved_CXXFLAGS"
28795
28796 if test x"$ac_has_isl_schedule_constraints_compute_schedule" = x"yes"; then
28797
28798 $as_echo "#define HAVE_ISL_SCHED_CONSTRAINTS_COMPUTE_SCHEDULE 1" >>confdefs.h
28799
28800 fi
28801
28802 if test x"$ac_has_isl_options_set_schedule_serialize_sccs" = x"yes"; then
28803
28804 $as_echo "#define HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS 1" >>confdefs.h
28805
28806 fi
28807 if test x"$ac_has_isl_ctx_get_max_operations" = x"yes"; then
28808
28809 $as_echo "#define HAVE_ISL_CTX_MAX_OPERATIONS 1" >>confdefs.h
28810
28811 fi
28812 fi
28813
28814 # Check for plugin support
28815 # Check whether --enable-plugin was given.
28816 if test "${enable_plugin+set}" = set; then :
28817 enableval=$enable_plugin; enable_plugin=$enableval
28818 else
28819 enable_plugin=yes; default_plugin=yes
28820 fi
28821
28822
28823 pluginlibs=
28824
28825 case "${host}" in
28826 *-*-darwin*)
28827 if test x$build = x$host; then
28828 export_sym_check="nm${exeext} -g"
28829 elif test x$host = x$target; then
28830 export_sym_check="$gcc_cv_nm -g"
28831 else
28832 export_sym_check=
28833 fi
28834 ;;
28835 *)
28836 if test x$build = x$host; then
28837 export_sym_check="objdump${exeext} -T"
28838 elif test x$host = x$target; then
28839 export_sym_check="$gcc_cv_objdump -T"
28840 else
28841 export_sym_check=
28842 fi
28843 ;;
28844 esac
28845
28846 if test x"$enable_plugin" = x"yes"; then
28847
28848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
28849 $as_echo_n "checking for exported symbols... " >&6; }
28850 if test "x$export_sym_check" != x; then
28851 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
28852 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest$ac_exeext > /dev/null 2>&1
28853 if $export_sym_check conftest$ac_exeext | grep -q foobar > /dev/null; then
28854 : # No need to use a flag
28855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28856 $as_echo "yes" >&6; }
28857 else
28858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28859 $as_echo "yes" >&6; }
28860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
28861 $as_echo_n "checking for -rdynamic... " >&6; }
28862 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest$ac_exeext > /dev/null 2>&1
28863 if $export_sym_check conftest$ac_exeext | grep -q foobar > /dev/null; then
28864 plugin_rdynamic=yes
28865 pluginlibs="-rdynamic"
28866 else
28867 plugin_rdynamic=no
28868 enable_plugin=no
28869 fi
28870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
28871 $as_echo "$plugin_rdynamic" >&6; }
28872 fi
28873 else
28874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
28875 $as_echo "unable to check" >&6; }
28876 fi
28877
28878 # Check -ldl
28879 saved_LIBS="$LIBS"
28880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
28881 $as_echo_n "checking for library containing dlopen... " >&6; }
28882 if test "${ac_cv_search_dlopen+set}" = set; then :
28883 $as_echo_n "(cached) " >&6
28884 else
28885 ac_func_search_save_LIBS=$LIBS
28886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28887 /* end confdefs.h. */
28888
28889 /* Override any GCC internal prototype to avoid an error.
28890 Use char because int might match the return type of a GCC
28891 builtin and then its argument prototype would still apply. */
28892 #ifdef __cplusplus
28893 extern "C"
28894 #endif
28895 char dlopen ();
28896 int
28897 main ()
28898 {
28899 return dlopen ();
28900 ;
28901 return 0;
28902 }
28903 _ACEOF
28904 for ac_lib in '' dl; do
28905 if test -z "$ac_lib"; then
28906 ac_res="none required"
28907 else
28908 ac_res=-l$ac_lib
28909 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28910 fi
28911 if ac_fn_cxx_try_link "$LINENO"; then :
28912 ac_cv_search_dlopen=$ac_res
28913 fi
28914 rm -f core conftest.err conftest.$ac_objext \
28915 conftest$ac_exeext
28916 if test "${ac_cv_search_dlopen+set}" = set; then :
28917 break
28918 fi
28919 done
28920 if test "${ac_cv_search_dlopen+set}" = set; then :
28921
28922 else
28923 ac_cv_search_dlopen=no
28924 fi
28925 rm conftest.$ac_ext
28926 LIBS=$ac_func_search_save_LIBS
28927 fi
28928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
28929 $as_echo "$ac_cv_search_dlopen" >&6; }
28930 ac_res=$ac_cv_search_dlopen
28931 if test "$ac_res" != no; then :
28932 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28933
28934 fi
28935
28936 if test x"$ac_cv_search_dlopen" = x"-ldl"; then
28937 pluginlibs="$pluginlibs -ldl"
28938 fi
28939 LIBS="$saved_LIBS"
28940
28941 # Check that we can build shared objects with -fPIC -shared
28942 saved_LDFLAGS="$LDFLAGS"
28943 saved_CFLAGS="$CFLAGS"
28944 case "${host}" in
28945 *-*-darwin*)
28946 CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
28947 CFLAGS="$CFLAGS -fPIC"
28948 LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
28949 ;;
28950 *)
28951 CFLAGS="$CFLAGS -fPIC"
28952 LDFLAGS="$LDFLAGS -fPIC -shared"
28953 ;;
28954 esac
28955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
28956 $as_echo_n "checking for -fPIC -shared... " >&6; }
28957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28958 /* end confdefs.h. */
28959 extern int X;
28960 int
28961 main ()
28962 {
28963 return X == 0;
28964 ;
28965 return 0;
28966 }
28967 _ACEOF
28968 if ac_fn_cxx_try_link "$LINENO"; then :
28969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28970 $as_echo "yes" >&6; }; have_pic_shared=yes
28971 else
28972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28973 $as_echo "no" >&6; }; have_pic_shared=no
28974 fi
28975 rm -f core conftest.err conftest.$ac_objext \
28976 conftest$ac_exeext conftest.$ac_ext
28977 if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
28978 pluginlibs=
28979 enable_plugin=no
28980 fi
28981 LDFLAGS="$saved_LDFLAGS"
28982 CFLAGS="$saved_CFLAGS"
28983
28984 # If plugin support had been requested but not available, fail.
28985 if test x"$enable_plugin" = x"no" ; then
28986 if test x"$default_plugin" != x"yes"; then
28987 as_fn_error "
28988 Building GCC with plugin support requires a host that supports
28989 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
28990 fi
28991 fi
28992 fi
28993
28994
28995
28996 if test x"$enable_plugin" = x"yes"; then
28997
28998 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
28999
29000 fi
29001
29002
29003 # Enable --enable-host-shared
29004 # Check whether --enable-host-shared was given.
29005 if test "${enable_host_shared+set}" = set; then :
29006 enableval=$enable_host_shared; PICFLAG=-fPIC
29007 else
29008 PICFLAG=
29009 fi
29010
29011
29012
29013
29014
29015 # Check whether --enable-libquadmath-support was given.
29016 if test "${enable_libquadmath_support+set}" = set; then :
29017 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
29018 else
29019 ENABLE_LIBQUADMATH_SUPPORT=yes
29020 fi
29021
29022 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
29023
29024 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
29025
29026 fi
29027
29028
29029 # Specify what hash style to use by default.
29030
29031 # Check whether --with-linker-hash-style was given.
29032 if test "${with_linker_hash_style+set}" = set; then :
29033 withval=$with_linker_hash_style; case x"$withval" in
29034 xsysv)
29035 LINKER_HASH_STYLE=sysv
29036 ;;
29037 xgnu)
29038 LINKER_HASH_STYLE=gnu
29039 ;;
29040 xboth)
29041 LINKER_HASH_STYLE=both
29042 ;;
29043 *)
29044 as_fn_error "$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
29045 ;;
29046 esac
29047 else
29048 LINKER_HASH_STYLE=''
29049 fi
29050
29051 if test x"${LINKER_HASH_STYLE}" != x; then
29052
29053 cat >>confdefs.h <<_ACEOF
29054 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
29055 _ACEOF
29056
29057 fi
29058
29059 # Specify what should be the default of -fdiagnostics-color option.
29060
29061 # Check whether --with-diagnostics-color was given.
29062 if test "${with_diagnostics_color+set}" = set; then :
29063 withval=$with_diagnostics_color; case x"$withval" in
29064 xnever)
29065 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_NO
29066 ;;
29067 xauto)
29068 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO
29069 ;;
29070 xauto-if-env)
29071 DIAGNOSTICS_COLOR_DEFAULT=-1
29072 ;;
29073 xalways)
29074 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_YES
29075 ;;
29076 *)
29077 as_fn_error "$withval is an invalid option to --with-diagnostics-color" "$LINENO" 5
29078 ;;
29079 esac
29080 else
29081 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO
29082 fi
29083
29084
29085 cat >>confdefs.h <<_ACEOF
29086 #define DIAGNOSTICS_COLOR_DEFAULT $DIAGNOSTICS_COLOR_DEFAULT
29087 _ACEOF
29088
29089
29090 # Generate gcc-driver-name.h containing GCC_DRIVER_NAME for the benefit
29091 # of jit/jit-playback.c.
29092 cat > gcc-driver-name.h <<EOF
29093 #define GCC_DRIVER_NAME "${target_noncanonical}-gcc-${gcc_BASEVER}${exeext}"
29094 EOF
29095
29096 # Check whether --enable-default-pie was given.
29097 # Check whether --enable-default-pie was given.
29098 if test "${enable_default_pie+set}" = set; then :
29099 enableval=$enable_default_pie; enable_default_pie=$enableval
29100 else
29101 enable_default_pie=no
29102 fi
29103
29104 if test x$enable_default_pie == xyes ; then
29105
29106 $as_echo "#define ENABLE_DEFAULT_PIE 1" >>confdefs.h
29107
29108 fi
29109
29110
29111 # Check if -fno-PIE works.
29112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fno-PIE option" >&5
29113 $as_echo_n "checking for -fno-PIE option... " >&6; }
29114 if test "${gcc_cv_c_no_fpie+set}" = set; then :
29115 $as_echo_n "(cached) " >&6
29116 else
29117 saved_CXXFLAGS="$CXXFLAGS"
29118 CXXFLAGS="$CXXFLAGS -fno-PIE"
29119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29120 /* end confdefs.h. */
29121 int main(void) {return 0;}
29122 _ACEOF
29123 if ac_fn_cxx_try_compile "$LINENO"; then :
29124 gcc_cv_c_no_fpie=yes
29125 else
29126 gcc_cv_c_no_fpie=no
29127 fi
29128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29129 CXXFLAGS="$saved_CXXFLAGS"
29130 fi
29131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_no_fpie" >&5
29132 $as_echo "$gcc_cv_c_no_fpie" >&6; }
29133 if test "$gcc_cv_c_no_fpie" = "yes"; then
29134 NO_PIE_CFLAGS="-fno-PIE"
29135 fi
29136
29137
29138 # Check if -no-pie works.
29139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -no-pie option" >&5
29140 $as_echo_n "checking for -no-pie option... " >&6; }
29141 if test "${gcc_cv_no_pie+set}" = set; then :
29142 $as_echo_n "(cached) " >&6
29143 else
29144 saved_LDFLAGS="$LDFLAGS"
29145 LDFLAGS="$LDFLAGS -no-pie"
29146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29147 /* end confdefs.h. */
29148 int main(void) {return 0;}
29149 _ACEOF
29150 if ac_fn_cxx_try_link "$LINENO"; then :
29151 gcc_cv_no_pie=yes
29152 else
29153 gcc_cv_no_pie=no
29154 fi
29155 rm -f core conftest.err conftest.$ac_objext \
29156 conftest$ac_exeext conftest.$ac_ext
29157 LDFLAGS="$saved_LDFLAGS"
29158 fi
29159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_no_pie" >&5
29160 $as_echo "$gcc_cv_no_pie" >&6; }
29161 if test "$gcc_cv_no_pie" = "yes"; then
29162 NO_PIE_FLAG="-no-pie"
29163 fi
29164
29165
29166 # Check linker supports '-z bndplt'
29167 ld_bndplt_support=no
29168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -z bndplt option" >&5
29169 $as_echo_n "checking linker -z bndplt option... " >&6; }
29170 if test x"$ld_is_gold" = xno; then
29171 if test $in_tree_ld = yes ; then
29172 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
29173 ld_bndplt_support=yes
29174 fi
29175 elif test x$gcc_cv_ld != x; then
29176 # Check if linker supports -a bndplt option
29177 if $gcc_cv_ld --help 2>/dev/null | grep -- '-z bndplt' > /dev/null; then
29178 ld_bndplt_support=yes
29179 fi
29180 fi
29181 fi
29182 if test x"$ld_bndplt_support" = xyes; then
29183
29184 $as_echo "#define HAVE_LD_BNDPLT_SUPPORT 1" >>confdefs.h
29185
29186 fi
29187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_bndplt_support" >&5
29188 $as_echo "$ld_bndplt_support" >&6; }
29189
29190 # Configure the subdirectories
29191 # AC_CONFIG_SUBDIRS($subdirs)
29192
29193 # Create the Makefile
29194 # and configure language subdirectories
29195 ac_config_files="$ac_config_files $all_outputs"
29196
29197
29198 ac_config_commands="$ac_config_commands default"
29199
29200 cat >confcache <<\_ACEOF
29201 # This file is a shell script that caches the results of configure
29202 # tests run on this system so they can be shared between configure
29203 # scripts and configure runs, see configure's option --config-cache.
29204 # It is not useful on other systems. If it contains results you don't
29205 # want to keep, you may remove or edit it.
29206 #
29207 # config.status only pays attention to the cache file if you give it
29208 # the --recheck option to rerun configure.
29209 #
29210 # `ac_cv_env_foo' variables (set or unset) will be overridden when
29211 # loading this file, other *unset* `ac_cv_foo' will be assigned the
29212 # following values.
29213
29214 _ACEOF
29215
29216 # The following way of writing the cache mishandles newlines in values,
29217 # but we know of no workaround that is simple, portable, and efficient.
29218 # So, we kill variables containing newlines.
29219 # Ultrix sh set writes to stderr and can't be redirected directly,
29220 # and sets the high bit in the cache file unless we assign to the vars.
29221 (
29222 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
29223 eval ac_val=\$$ac_var
29224 case $ac_val in #(
29225 *${as_nl}*)
29226 case $ac_var in #(
29227 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
29228 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
29229 esac
29230 case $ac_var in #(
29231 _ | IFS | as_nl) ;; #(
29232 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
29233 *) { eval $ac_var=; unset $ac_var;} ;;
29234 esac ;;
29235 esac
29236 done
29237
29238 (set) 2>&1 |
29239 case $as_nl`(ac_space=' '; set) 2>&1` in #(
29240 *${as_nl}ac_space=\ *)
29241 # `set' does not quote correctly, so add quotes: double-quote
29242 # substitution turns \\\\ into \\, and sed turns \\ into \.
29243 sed -n \
29244 "s/'/'\\\\''/g;
29245 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29246 ;; #(
29247 *)
29248 # `set' quotes correctly as required by POSIX, so do not add quotes.
29249 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
29250 ;;
29251 esac |
29252 sort
29253 ) |
29254 sed '
29255 /^ac_cv_env_/b end
29256 t clear
29257 :clear
29258 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29259 t end
29260 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29261 :end' >>confcache
29262 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
29263 if test -w "$cache_file"; then
29264 test "x$cache_file" != "x/dev/null" &&
29265 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
29266 $as_echo "$as_me: updating cache $cache_file" >&6;}
29267 cat confcache >$cache_file
29268 else
29269 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
29270 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
29271 fi
29272 fi
29273 rm -f confcache
29274
29275 test "x$prefix" = xNONE && prefix=$ac_default_prefix
29276 # Let make expand exec_prefix.
29277 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
29278
29279 DEFS=-DHAVE_CONFIG_H
29280
29281 ac_libobjs=
29282 ac_ltlibobjs=
29283 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
29284 # 1. Remove the extension, and $U if already installed.
29285 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
29286 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
29287 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
29288 # will be set to the directory where LIBOBJS objects are built.
29289 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
29290 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
29291 done
29292 LIBOBJS=$ac_libobjs
29293
29294 LTLIBOBJS=$ac_ltlibobjs
29295
29296
29297
29298
29299 : ${CONFIG_STATUS=./config.status}
29300 ac_write_fail=0
29301 ac_clean_files_save=$ac_clean_files
29302 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
29303 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
29304 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
29305 as_write_fail=0
29306 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
29307 #! $SHELL
29308 # Generated by $as_me.
29309 # Run this file to recreate the current configuration.
29310 # Compiler output produced by configure, useful for debugging
29311 # configure, is in config.log if it exists.
29312
29313 debug=false
29314 ac_cs_recheck=false
29315 ac_cs_silent=false
29316
29317 SHELL=\${CONFIG_SHELL-$SHELL}
29318 export SHELL
29319 _ASEOF
29320 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
29321 ## -------------------- ##
29322 ## M4sh Initialization. ##
29323 ## -------------------- ##
29324
29325 # Be more Bourne compatible
29326 DUALCASE=1; export DUALCASE # for MKS sh
29327 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
29328 emulate sh
29329 NULLCMD=:
29330 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
29331 # is contrary to our usage. Disable this feature.
29332 alias -g '${1+"$@"}'='"$@"'
29333 setopt NO_GLOB_SUBST
29334 else
29335 case `(set -o) 2>/dev/null` in #(
29336 *posix*) :
29337 set -o posix ;; #(
29338 *) :
29339 ;;
29340 esac
29341 fi
29342
29343
29344 as_nl='
29345 '
29346 export as_nl
29347 # Printing a long string crashes Solaris 7 /usr/bin/printf.
29348 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
29349 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
29350 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
29351 # Prefer a ksh shell builtin over an external printf program on Solaris,
29352 # but without wasting forks for bash or zsh.
29353 if test -z "$BASH_VERSION$ZSH_VERSION" \
29354 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
29355 as_echo='print -r --'
29356 as_echo_n='print -rn --'
29357 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
29358 as_echo='printf %s\n'
29359 as_echo_n='printf %s'
29360 else
29361 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
29362 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
29363 as_echo_n='/usr/ucb/echo -n'
29364 else
29365 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
29366 as_echo_n_body='eval
29367 arg=$1;
29368 case $arg in #(
29369 *"$as_nl"*)
29370 expr "X$arg" : "X\\(.*\\)$as_nl";
29371 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
29372 esac;
29373 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
29374 '
29375 export as_echo_n_body
29376 as_echo_n='sh -c $as_echo_n_body as_echo'
29377 fi
29378 export as_echo_body
29379 as_echo='sh -c $as_echo_body as_echo'
29380 fi
29381
29382 # The user is always right.
29383 if test "${PATH_SEPARATOR+set}" != set; then
29384 PATH_SEPARATOR=:
29385 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
29386 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
29387 PATH_SEPARATOR=';'
29388 }
29389 fi
29390
29391
29392 # IFS
29393 # We need space, tab and new line, in precisely that order. Quoting is
29394 # there to prevent editors from complaining about space-tab.
29395 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
29396 # splitting by setting IFS to empty value.)
29397 IFS=" "" $as_nl"
29398
29399 # Find who we are. Look in the path if we contain no directory separator.
29400 case $0 in #((
29401 *[\\/]* ) as_myself=$0 ;;
29402 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29403 for as_dir in $PATH
29404 do
29405 IFS=$as_save_IFS
29406 test -z "$as_dir" && as_dir=.
29407 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
29408 done
29409 IFS=$as_save_IFS
29410
29411 ;;
29412 esac
29413 # We did not find ourselves, most probably we were run as `sh COMMAND'
29414 # in which case we are not to be found in the path.
29415 if test "x$as_myself" = x; then
29416 as_myself=$0
29417 fi
29418 if test ! -f "$as_myself"; then
29419 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
29420 exit 1
29421 fi
29422
29423 # Unset variables that we do not need and which cause bugs (e.g. in
29424 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
29425 # suppresses any "Segmentation fault" message there. '((' could
29426 # trigger a bug in pdksh 5.2.14.
29427 for as_var in BASH_ENV ENV MAIL MAILPATH
29428 do eval test x\${$as_var+set} = xset \
29429 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
29430 done
29431 PS1='$ '
29432 PS2='> '
29433 PS4='+ '
29434
29435 # NLS nuisances.
29436 LC_ALL=C
29437 export LC_ALL
29438 LANGUAGE=C
29439 export LANGUAGE
29440
29441 # CDPATH.
29442 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
29443
29444
29445 # as_fn_error ERROR [LINENO LOG_FD]
29446 # ---------------------------------
29447 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
29448 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
29449 # script with status $?, using 1 if that was 0.
29450 as_fn_error ()
29451 {
29452 as_status=$?; test $as_status -eq 0 && as_status=1
29453 if test "$3"; then
29454 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
29455 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
29456 fi
29457 $as_echo "$as_me: error: $1" >&2
29458 as_fn_exit $as_status
29459 } # as_fn_error
29460
29461
29462 # as_fn_set_status STATUS
29463 # -----------------------
29464 # Set $? to STATUS, without forking.
29465 as_fn_set_status ()
29466 {
29467 return $1
29468 } # as_fn_set_status
29469
29470 # as_fn_exit STATUS
29471 # -----------------
29472 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
29473 as_fn_exit ()
29474 {
29475 set +e
29476 as_fn_set_status $1
29477 exit $1
29478 } # as_fn_exit
29479
29480 # as_fn_unset VAR
29481 # ---------------
29482 # Portably unset VAR.
29483 as_fn_unset ()
29484 {
29485 { eval $1=; unset $1;}
29486 }
29487 as_unset=as_fn_unset
29488 # as_fn_append VAR VALUE
29489 # ----------------------
29490 # Append the text in VALUE to the end of the definition contained in VAR. Take
29491 # advantage of any shell optimizations that allow amortized linear growth over
29492 # repeated appends, instead of the typical quadratic growth present in naive
29493 # implementations.
29494 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
29495 eval 'as_fn_append ()
29496 {
29497 eval $1+=\$2
29498 }'
29499 else
29500 as_fn_append ()
29501 {
29502 eval $1=\$$1\$2
29503 }
29504 fi # as_fn_append
29505
29506 # as_fn_arith ARG...
29507 # ------------------
29508 # Perform arithmetic evaluation on the ARGs, and store the result in the
29509 # global $as_val. Take advantage of shells that can avoid forks. The arguments
29510 # must be portable across $(()) and expr.
29511 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
29512 eval 'as_fn_arith ()
29513 {
29514 as_val=$(( $* ))
29515 }'
29516 else
29517 as_fn_arith ()
29518 {
29519 as_val=`expr "$@" || test $? -eq 1`
29520 }
29521 fi # as_fn_arith
29522
29523
29524 if expr a : '\(a\)' >/dev/null 2>&1 &&
29525 test "X`expr 00001 : '.*\(...\)'`" = X001; then
29526 as_expr=expr
29527 else
29528 as_expr=false
29529 fi
29530
29531 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
29532 as_basename=basename
29533 else
29534 as_basename=false
29535 fi
29536
29537 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
29538 as_dirname=dirname
29539 else
29540 as_dirname=false
29541 fi
29542
29543 as_me=`$as_basename -- "$0" ||
29544 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
29545 X"$0" : 'X\(//\)$' \| \
29546 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
29547 $as_echo X/"$0" |
29548 sed '/^.*\/\([^/][^/]*\)\/*$/{
29549 s//\1/
29550 q
29551 }
29552 /^X\/\(\/\/\)$/{
29553 s//\1/
29554 q
29555 }
29556 /^X\/\(\/\).*/{
29557 s//\1/
29558 q
29559 }
29560 s/.*/./; q'`
29561
29562 # Avoid depending upon Character Ranges.
29563 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
29564 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
29565 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
29566 as_cr_digits='0123456789'
29567 as_cr_alnum=$as_cr_Letters$as_cr_digits
29568
29569 ECHO_C= ECHO_N= ECHO_T=
29570 case `echo -n x` in #(((((
29571 -n*)
29572 case `echo 'xy\c'` in
29573 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
29574 xy) ECHO_C='\c';;
29575 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
29576 ECHO_T=' ';;
29577 esac;;
29578 *)
29579 ECHO_N='-n';;
29580 esac
29581
29582 rm -f conf$$ conf$$.exe conf$$.file
29583 if test -d conf$$.dir; then
29584 rm -f conf$$.dir/conf$$.file
29585 else
29586 rm -f conf$$.dir
29587 mkdir conf$$.dir 2>/dev/null
29588 fi
29589 if (echo >conf$$.file) 2>/dev/null; then
29590 if ln -s conf$$.file conf$$ 2>/dev/null; then
29591 as_ln_s='ln -s'
29592 # ... but there are two gotchas:
29593 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
29594 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
29595 # In both cases, we have to default to `cp -p'.
29596 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
29597 as_ln_s='cp -p'
29598 elif ln conf$$.file conf$$ 2>/dev/null; then
29599 as_ln_s=ln
29600 else
29601 as_ln_s='cp -p'
29602 fi
29603 else
29604 as_ln_s='cp -p'
29605 fi
29606 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
29607 rmdir conf$$.dir 2>/dev/null
29608
29609
29610 # as_fn_mkdir_p
29611 # -------------
29612 # Create "$as_dir" as a directory, including parents if necessary.
29613 as_fn_mkdir_p ()
29614 {
29615
29616 case $as_dir in #(
29617 -*) as_dir=./$as_dir;;
29618 esac
29619 test -d "$as_dir" || eval $as_mkdir_p || {
29620 as_dirs=
29621 while :; do
29622 case $as_dir in #(
29623 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
29624 *) as_qdir=$as_dir;;
29625 esac
29626 as_dirs="'$as_qdir' $as_dirs"
29627 as_dir=`$as_dirname -- "$as_dir" ||
29628 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29629 X"$as_dir" : 'X\(//\)[^/]' \| \
29630 X"$as_dir" : 'X\(//\)$' \| \
29631 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
29632 $as_echo X"$as_dir" |
29633 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29634 s//\1/
29635 q
29636 }
29637 /^X\(\/\/\)[^/].*/{
29638 s//\1/
29639 q
29640 }
29641 /^X\(\/\/\)$/{
29642 s//\1/
29643 q
29644 }
29645 /^X\(\/\).*/{
29646 s//\1/
29647 q
29648 }
29649 s/.*/./; q'`
29650 test -d "$as_dir" && break
29651 done
29652 test -z "$as_dirs" || eval "mkdir $as_dirs"
29653 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
29654
29655
29656 } # as_fn_mkdir_p
29657 if mkdir -p . 2>/dev/null; then
29658 as_mkdir_p='mkdir -p "$as_dir"'
29659 else
29660 test -d ./-p && rmdir ./-p
29661 as_mkdir_p=false
29662 fi
29663
29664 if test -x / >/dev/null 2>&1; then
29665 as_test_x='test -x'
29666 else
29667 if ls -dL / >/dev/null 2>&1; then
29668 as_ls_L_option=L
29669 else
29670 as_ls_L_option=
29671 fi
29672 as_test_x='
29673 eval sh -c '\''
29674 if test -d "$1"; then
29675 test -d "$1/.";
29676 else
29677 case $1 in #(
29678 -*)set "./$1";;
29679 esac;
29680 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
29681 ???[sx]*):;;*)false;;esac;fi
29682 '\'' sh
29683 '
29684 fi
29685 as_executable_p=$as_test_x
29686
29687 # Sed expression to map a string onto a valid CPP name.
29688 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
29689
29690 # Sed expression to map a string onto a valid variable name.
29691 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
29692
29693
29694 exec 6>&1
29695 ## ----------------------------------- ##
29696 ## Main body of $CONFIG_STATUS script. ##
29697 ## ----------------------------------- ##
29698 _ASEOF
29699 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
29700
29701 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29702 # Save the log message, to keep $0 and so on meaningful, and to
29703 # report actual input values of CONFIG_FILES etc. instead of their
29704 # values after options handling.
29705 ac_log="
29706 This file was extended by $as_me, which was
29707 generated by GNU Autoconf 2.64. Invocation command line was
29708
29709 CONFIG_FILES = $CONFIG_FILES
29710 CONFIG_HEADERS = $CONFIG_HEADERS
29711 CONFIG_LINKS = $CONFIG_LINKS
29712 CONFIG_COMMANDS = $CONFIG_COMMANDS
29713 $ $0 $@
29714
29715 on `(hostname || uname -n) 2>/dev/null | sed 1q`
29716 "
29717
29718 _ACEOF
29719
29720 case $ac_config_files in *"
29721 "*) set x $ac_config_files; shift; ac_config_files=$*;;
29722 esac
29723
29724 case $ac_config_headers in *"
29725 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
29726 esac
29727
29728
29729 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29730 # Files that config.status was made for.
29731 config_files="$ac_config_files"
29732 config_headers="$ac_config_headers"
29733 config_links="$ac_config_links"
29734 config_commands="$ac_config_commands"
29735
29736 _ACEOF
29737
29738 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29739 ac_cs_usage="\
29740 \`$as_me' instantiates files and other configuration actions
29741 from templates according to the current configuration. Unless the files
29742 and actions are specified as TAGs, all are instantiated by default.
29743
29744 Usage: $0 [OPTION]... [TAG]...
29745
29746 -h, --help print this help, then exit
29747 -V, --version print version number and configuration settings, then exit
29748 -q, --quiet, --silent
29749 do not print progress messages
29750 -d, --debug don't remove temporary files
29751 --recheck update $as_me by reconfiguring in the same conditions
29752 --file=FILE[:TEMPLATE]
29753 instantiate the configuration file FILE
29754 --header=FILE[:TEMPLATE]
29755 instantiate the configuration header FILE
29756
29757 Configuration files:
29758 $config_files
29759
29760 Configuration headers:
29761 $config_headers
29762
29763 Configuration links:
29764 $config_links
29765
29766 Configuration commands:
29767 $config_commands
29768
29769 Report bugs to the package provider."
29770
29771 _ACEOF
29772 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29773 ac_cs_version="\\
29774 config.status
29775 configured by $0, generated by GNU Autoconf 2.64,
29776 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
29777
29778 Copyright (C) 2009 Free Software Foundation, Inc.
29779 This config.status script is free software; the Free Software Foundation
29780 gives unlimited permission to copy, distribute and modify it."
29781
29782 ac_pwd='$ac_pwd'
29783 srcdir='$srcdir'
29784 AWK='$AWK'
29785 test -n "\$AWK" || AWK=awk
29786 _ACEOF
29787
29788 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29789 # The default lists apply if the user does not specify any file.
29790 ac_need_defaults=:
29791 while test $# != 0
29792 do
29793 case $1 in
29794 --*=*)
29795 ac_option=`expr "X$1" : 'X\([^=]*\)='`
29796 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
29797 ac_shift=:
29798 ;;
29799 *)
29800 ac_option=$1
29801 ac_optarg=$2
29802 ac_shift=shift
29803 ;;
29804 esac
29805
29806 case $ac_option in
29807 # Handling of the options.
29808 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
29809 ac_cs_recheck=: ;;
29810 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
29811 $as_echo "$ac_cs_version"; exit ;;
29812 --debug | --debu | --deb | --de | --d | -d )
29813 debug=: ;;
29814 --file | --fil | --fi | --f )
29815 $ac_shift
29816 case $ac_optarg in
29817 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
29818 esac
29819 as_fn_append CONFIG_FILES " '$ac_optarg'"
29820 ac_need_defaults=false;;
29821 --header | --heade | --head | --hea )
29822 $ac_shift
29823 case $ac_optarg in
29824 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
29825 esac
29826 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
29827 ac_need_defaults=false;;
29828 --he | --h)
29829 # Conflict between --help and --header
29830 as_fn_error "ambiguous option: \`$1'
29831 Try \`$0 --help' for more information.";;
29832 --help | --hel | -h )
29833 $as_echo "$ac_cs_usage"; exit ;;
29834 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
29835 | -silent | --silent | --silen | --sile | --sil | --si | --s)
29836 ac_cs_silent=: ;;
29837
29838 # This is an error.
29839 -*) as_fn_error "unrecognized option: \`$1'
29840 Try \`$0 --help' for more information." ;;
29841
29842 *) as_fn_append ac_config_targets " $1"
29843 ac_need_defaults=false ;;
29844
29845 esac
29846 shift
29847 done
29848
29849 ac_configure_extra_args=
29850
29851 if $ac_cs_silent; then
29852 exec 6>/dev/null
29853 ac_configure_extra_args="$ac_configure_extra_args --silent"
29854 fi
29855
29856 _ACEOF
29857 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29858 if \$ac_cs_recheck; then
29859 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
29860 shift
29861 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
29862 CONFIG_SHELL='$SHELL'
29863 export CONFIG_SHELL
29864 exec "\$@"
29865 fi
29866
29867 _ACEOF
29868 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29869 exec 5>>config.log
29870 {
29871 echo
29872 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
29873 ## Running $as_me. ##
29874 _ASBOX
29875 $as_echo "$ac_log"
29876 } >&5
29877
29878 _ACEOF
29879 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29880 #
29881 # INIT-COMMANDS
29882 #
29883 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
29884 subdirs="$subdirs" ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
29885 subdirs='$subdirs'
29886
29887 _ACEOF
29888
29889 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29890
29891 # Handling of arguments.
29892 for ac_config_target in $ac_config_targets
29893 do
29894 case $ac_config_target in
29895 "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
29896 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
29897 "gccdepdir") CONFIG_COMMANDS="$CONFIG_COMMANDS gccdepdir" ;;
29898 "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
29899 "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
29900 "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
29901 "clearcap.map") CONFIG_LINKS="$CONFIG_LINKS clearcap.map:${srcdir}/config/$clearcap_map" ;;
29902 "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
29903 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
29904
29905 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
29906 esac
29907 done
29908
29909
29910 # If the user did not use the arguments to specify the items to instantiate,
29911 # then the envvar interface is used. Set only those that are not.
29912 # We use the long form for the default assignment because of an extremely
29913 # bizarre bug on SunOS 4.1.3.
29914 if $ac_need_defaults; then
29915 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
29916 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
29917 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
29918 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
29919 fi
29920
29921 # Have a temporary directory for convenience. Make it in the build tree
29922 # simply because there is no reason against having it here, and in addition,
29923 # creating and moving files from /tmp can sometimes cause problems.
29924 # Hook for its removal unless debugging.
29925 # Note that there is a small window in which the directory will not be cleaned:
29926 # after its creation but before its name has been assigned to `$tmp'.
29927 $debug ||
29928 {
29929 tmp=
29930 trap 'exit_status=$?
29931 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
29932 ' 0
29933 trap 'as_fn_exit 1' 1 2 13 15
29934 }
29935 # Create a (secure) tmp directory for tmp files.
29936
29937 {
29938 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
29939 test -n "$tmp" && test -d "$tmp"
29940 } ||
29941 {
29942 tmp=./conf$$-$RANDOM
29943 (umask 077 && mkdir "$tmp")
29944 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
29945
29946 # Set up the scripts for CONFIG_FILES section.
29947 # No need to generate them if there are no CONFIG_FILES.
29948 # This happens for instance with `./config.status config.h'.
29949 if test -n "$CONFIG_FILES"; then
29950
29951 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
29952 ac_cs_awk_getline=:
29953 ac_cs_awk_pipe_init=
29954 ac_cs_awk_read_file='
29955 while ((getline aline < (F[key])) > 0)
29956 print(aline)
29957 close(F[key])'
29958 ac_cs_awk_pipe_fini=
29959 else
29960 ac_cs_awk_getline=false
29961 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
29962 ac_cs_awk_read_file='
29963 print "|#_!!_#|"
29964 print "cat " F[key] " &&"
29965 '$ac_cs_awk_pipe_init
29966 # The final `:' finishes the AND list.
29967 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
29968 fi
29969 ac_cr=`echo X | tr X '\015'`
29970 # On cygwin, bash can eat \r inside `` if the user requested igncr.
29971 # But we know of no other shell where ac_cr would be empty at this
29972 # point, so we can use a bashism as a fallback.
29973 if test "x$ac_cr" = x; then
29974 eval ac_cr=\$\'\\r\'
29975 fi
29976 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
29977 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
29978 ac_cs_awk_cr='\r'
29979 else
29980 ac_cs_awk_cr=$ac_cr
29981 fi
29982
29983 echo 'BEGIN {' >"$tmp/subs1.awk" &&
29984 _ACEOF
29985
29986 # Create commands to substitute file output variables.
29987 {
29988 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
29989 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
29990 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
29991 echo "_ACAWK" &&
29992 echo "_ACEOF"
29993 } >conf$$files.sh &&
29994 . ./conf$$files.sh ||
29995 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
29996 rm -f conf$$files.sh
29997
29998 {
29999 echo "cat >conf$$subs.awk <<_ACEOF" &&
30000 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
30001 echo "_ACEOF"
30002 } >conf$$subs.sh ||
30003 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
30004 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
30005 ac_delim='%!_!# '
30006 for ac_last_try in false false false false false :; do
30007 . ./conf$$subs.sh ||
30008 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
30009
30010 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
30011 if test $ac_delim_n = $ac_delim_num; then
30012 break
30013 elif $ac_last_try; then
30014 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
30015 else
30016 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30017 fi
30018 done
30019 rm -f conf$$subs.sh
30020
30021 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30022 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
30023 _ACEOF
30024 sed -n '
30025 h
30026 s/^/S["/; s/!.*/"]=/
30027 p
30028 g
30029 s/^[^!]*!//
30030 :repl
30031 t repl
30032 s/'"$ac_delim"'$//
30033 t delim
30034 :nl
30035 h
30036 s/\(.\{148\}\).*/\1/
30037 t more1
30038 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
30039 p
30040 n
30041 b repl
30042 :more1
30043 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
30044 p
30045 g
30046 s/.\{148\}//
30047 t nl
30048 :delim
30049 h
30050 s/\(.\{148\}\).*/\1/
30051 t more2
30052 s/["\\]/\\&/g; s/^/"/; s/$/"/
30053 p
30054 b
30055 :more2
30056 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
30057 p
30058 g
30059 s/.\{148\}//
30060 t delim
30061 ' <conf$$subs.awk | sed '
30062 /^[^""]/{
30063 N
30064 s/\n//
30065 }
30066 ' >>$CONFIG_STATUS || ac_write_fail=1
30067 rm -f conf$$subs.awk
30068 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30069 _ACAWK
30070 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
30071 for (key in S) S_is_set[key] = 1
30072 FS = "\a"
30073 \$ac_cs_awk_pipe_init
30074 }
30075 {
30076 line = $ 0
30077 nfields = split(line, field, "@")
30078 substed = 0
30079 len = length(field[1])
30080 for (i = 2; i < nfields; i++) {
30081 key = field[i]
30082 keylen = length(key)
30083 if (S_is_set[key]) {
30084 value = S[key]
30085 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
30086 len += length(value) + length(field[++i])
30087 substed = 1
30088 } else
30089 len += 1 + keylen
30090 }
30091 if (nfields == 3 && !substed) {
30092 key = field[2]
30093 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
30094 \$ac_cs_awk_read_file
30095 next
30096 }
30097 }
30098 print line
30099 }
30100 \$ac_cs_awk_pipe_fini
30101 _ACAWK
30102 _ACEOF
30103 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30104 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
30105 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
30106 else
30107 cat
30108 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
30109 || as_fn_error "could not setup config files machinery" "$LINENO" 5
30110 _ACEOF
30111
30112 # VPATH may cause trouble with some makes, so we remove $(srcdir),
30113 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30114 # trailing colons and then remove the whole line if VPATH becomes empty
30115 # (actually we leave an empty line to preserve line numbers).
30116 if test "x$srcdir" = x.; then
30117 ac_vpsub='/^[ ]*VPATH[ ]*=/{
30118 s/:*\$(srcdir):*/:/
30119 s/:*\${srcdir}:*/:/
30120 s/:*@srcdir@:*/:/
30121 s/^\([^=]*=[ ]*\):*/\1/
30122 s/:*$//
30123 s/^[^=]*=[ ]*$//
30124 }'
30125 fi
30126
30127 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30128 fi # test -n "$CONFIG_FILES"
30129
30130 # Set up the scripts for CONFIG_HEADERS section.
30131 # No need to generate them if there are no CONFIG_HEADERS.
30132 # This happens for instance with `./config.status Makefile'.
30133 if test -n "$CONFIG_HEADERS"; then
30134 cat >"$tmp/defines.awk" <<\_ACAWK ||
30135 BEGIN {
30136 _ACEOF
30137
30138 # Transform confdefs.h into an awk script `defines.awk', embedded as
30139 # here-document in config.status, that substitutes the proper values into
30140 # config.h.in to produce config.h.
30141
30142 # Create a delimiter string that does not exist in confdefs.h, to ease
30143 # handling of long lines.
30144 ac_delim='%!_!# '
30145 for ac_last_try in false false :; do
30146 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
30147 if test -z "$ac_t"; then
30148 break
30149 elif $ac_last_try; then
30150 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
30151 else
30152 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30153 fi
30154 done
30155
30156 # For the awk script, D is an array of macro values keyed by name,
30157 # likewise P contains macro parameters if any. Preserve backslash
30158 # newline sequences.
30159
30160 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
30161 sed -n '
30162 s/.\{148\}/&'"$ac_delim"'/g
30163 t rset
30164 :rset
30165 s/^[ ]*#[ ]*define[ ][ ]*/ /
30166 t def
30167 d
30168 :def
30169 s/\\$//
30170 t bsnl
30171 s/["\\]/\\&/g
30172 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
30173 D["\1"]=" \3"/p
30174 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
30175 d
30176 :bsnl
30177 s/["\\]/\\&/g
30178 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
30179 D["\1"]=" \3\\\\\\n"\\/p
30180 t cont
30181 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
30182 t cont
30183 d
30184 :cont
30185 n
30186 s/.\{148\}/&'"$ac_delim"'/g
30187 t clear
30188 :clear
30189 s/\\$//
30190 t bsnlc
30191 s/["\\]/\\&/g; s/^/"/; s/$/"/p
30192 d
30193 :bsnlc
30194 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
30195 b cont
30196 ' <confdefs.h | sed '
30197 s/'"$ac_delim"'/"\\\
30198 "/g' >>$CONFIG_STATUS || ac_write_fail=1
30199
30200 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30201 for (key in D) D_is_set[key] = 1
30202 FS = "\a"
30203 }
30204 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
30205 line = \$ 0
30206 split(line, arg, " ")
30207 if (arg[1] == "#") {
30208 defundef = arg[2]
30209 mac1 = arg[3]
30210 } else {
30211 defundef = substr(arg[1], 2)
30212 mac1 = arg[2]
30213 }
30214 split(mac1, mac2, "(") #)
30215 macro = mac2[1]
30216 prefix = substr(line, 1, index(line, defundef) - 1)
30217 if (D_is_set[macro]) {
30218 # Preserve the white space surrounding the "#".
30219 print prefix "define", macro P[macro] D[macro]
30220 next
30221 } else {
30222 # Replace #undef with comments. This is necessary, for example,
30223 # in the case of _POSIX_SOURCE, which is predefined and required
30224 # on some systems where configure will not decide to define it.
30225 if (defundef == "undef") {
30226 print "/*", prefix defundef, macro, "*/"
30227 next
30228 }
30229 }
30230 }
30231 { print }
30232 _ACAWK
30233 _ACEOF
30234 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30235 as_fn_error "could not setup config headers machinery" "$LINENO" 5
30236 fi # test -n "$CONFIG_HEADERS"
30237
30238
30239 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
30240 shift
30241 for ac_tag
30242 do
30243 case $ac_tag in
30244 :[FHLC]) ac_mode=$ac_tag; continue;;
30245 esac
30246 case $ac_mode$ac_tag in
30247 :[FHL]*:*);;
30248 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
30249 :[FH]-) ac_tag=-:-;;
30250 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
30251 esac
30252 ac_save_IFS=$IFS
30253 IFS=:
30254 set x $ac_tag
30255 IFS=$ac_save_IFS
30256 shift
30257 ac_file=$1
30258 shift
30259
30260 case $ac_mode in
30261 :L) ac_source=$1;;
30262 :[FH])
30263 ac_file_inputs=
30264 for ac_f
30265 do
30266 case $ac_f in
30267 -) ac_f="$tmp/stdin";;
30268 *) # Look for the file first in the build tree, then in the source tree
30269 # (if the path is not absolute). The absolute path cannot be DOS-style,
30270 # because $ac_f cannot contain `:'.
30271 test -f "$ac_f" ||
30272 case $ac_f in
30273 [\\/$]*) false;;
30274 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
30275 esac ||
30276 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
30277 esac
30278 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
30279 as_fn_append ac_file_inputs " '$ac_f'"
30280 done
30281
30282 # Let's still pretend it is `configure' which instantiates (i.e., don't
30283 # use $as_me), people would be surprised to read:
30284 # /* config.h. Generated by config.status. */
30285 configure_input='Generated from '`
30286 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
30287 `' by configure.'
30288 if test x"$ac_file" != x-; then
30289 configure_input="$ac_file. $configure_input"
30290 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
30291 $as_echo "$as_me: creating $ac_file" >&6;}
30292 fi
30293 # Neutralize special characters interpreted by sed in replacement strings.
30294 case $configure_input in #(
30295 *\&* | *\|* | *\\* )
30296 ac_sed_conf_input=`$as_echo "$configure_input" |
30297 sed 's/[\\\\&|]/\\\\&/g'`;; #(
30298 *) ac_sed_conf_input=$configure_input;;
30299 esac
30300
30301 case $ac_tag in
30302 *:-:* | *:-) cat >"$tmp/stdin" \
30303 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
30304 esac
30305 ;;
30306 esac
30307
30308 ac_dir=`$as_dirname -- "$ac_file" ||
30309 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30310 X"$ac_file" : 'X\(//\)[^/]' \| \
30311 X"$ac_file" : 'X\(//\)$' \| \
30312 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
30313 $as_echo X"$ac_file" |
30314 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30315 s//\1/
30316 q
30317 }
30318 /^X\(\/\/\)[^/].*/{
30319 s//\1/
30320 q
30321 }
30322 /^X\(\/\/\)$/{
30323 s//\1/
30324 q
30325 }
30326 /^X\(\/\).*/{
30327 s//\1/
30328 q
30329 }
30330 s/.*/./; q'`
30331 as_dir="$ac_dir"; as_fn_mkdir_p
30332 ac_builddir=.
30333
30334 case "$ac_dir" in
30335 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
30336 *)
30337 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
30338 # A ".." for each directory in $ac_dir_suffix.
30339 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
30340 case $ac_top_builddir_sub in
30341 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
30342 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
30343 esac ;;
30344 esac
30345 ac_abs_top_builddir=$ac_pwd
30346 ac_abs_builddir=$ac_pwd$ac_dir_suffix
30347 # for backward compatibility:
30348 ac_top_builddir=$ac_top_build_prefix
30349
30350 case $srcdir in
30351 .) # We are building in place.
30352 ac_srcdir=.
30353 ac_top_srcdir=$ac_top_builddir_sub
30354 ac_abs_top_srcdir=$ac_pwd ;;
30355 [\\/]* | ?:[\\/]* ) # Absolute name.
30356 ac_srcdir=$srcdir$ac_dir_suffix;
30357 ac_top_srcdir=$srcdir
30358 ac_abs_top_srcdir=$srcdir ;;
30359 *) # Relative name.
30360 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
30361 ac_top_srcdir=$ac_top_build_prefix$srcdir
30362 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
30363 esac
30364 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
30365
30366
30367 case $ac_mode in
30368 :F)
30369 #
30370 # CONFIG_FILE
30371 #
30372
30373 _ACEOF
30374
30375 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30376 # If the template does not know about datarootdir, expand it.
30377 # FIXME: This hack should be removed a few years after 2.60.
30378 ac_datarootdir_hack=; ac_datarootdir_seen=
30379 ac_sed_dataroot='
30380 /datarootdir/ {
30381 p
30382 q
30383 }
30384 /@datadir@/p
30385 /@docdir@/p
30386 /@infodir@/p
30387 /@localedir@/p
30388 /@mandir@/p'
30389 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
30390 *datarootdir*) ac_datarootdir_seen=yes;;
30391 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
30392 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
30393 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
30394 _ACEOF
30395 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30396 ac_datarootdir_hack='
30397 s&@datadir@&$datadir&g
30398 s&@docdir@&$docdir&g
30399 s&@infodir@&$infodir&g
30400 s&@localedir@&$localedir&g
30401 s&@mandir@&$mandir&g
30402 s&\\\${datarootdir}&$datarootdir&g' ;;
30403 esac
30404 _ACEOF
30405
30406 # Neutralize VPATH when `$srcdir' = `.'.
30407 # Shell code in configure.ac might set extrasub.
30408 # FIXME: do we really want to maintain this feature?
30409 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30410 ac_sed_extra="$ac_vpsub
30411 $extrasub
30412 _ACEOF
30413 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30414 :t
30415 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30416 s|@configure_input@|$ac_sed_conf_input|;t t
30417 s&@top_builddir@&$ac_top_builddir_sub&;t t
30418 s&@top_build_prefix@&$ac_top_build_prefix&;t t
30419 s&@srcdir@&$ac_srcdir&;t t
30420 s&@abs_srcdir@&$ac_abs_srcdir&;t t
30421 s&@top_srcdir@&$ac_top_srcdir&;t t
30422 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
30423 s&@builddir@&$ac_builddir&;t t
30424 s&@abs_builddir@&$ac_abs_builddir&;t t
30425 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
30426 $ac_datarootdir_hack
30427 "
30428 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
30429 if $ac_cs_awk_getline; then
30430 $AWK -f "$tmp/subs.awk"
30431 else
30432 $AWK -f "$tmp/subs.awk" | $SHELL
30433 fi >$tmp/out \
30434 || as_fn_error "could not create $ac_file" "$LINENO" 5
30435
30436 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
30437 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
30438 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
30439 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30440 which seems to be undefined. Please make sure it is defined." >&5
30441 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30442 which seems to be undefined. Please make sure it is defined." >&2;}
30443
30444 rm -f "$tmp/stdin"
30445 case $ac_file in
30446 -) cat "$tmp/out" && rm -f "$tmp/out";;
30447 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
30448 esac \
30449 || as_fn_error "could not create $ac_file" "$LINENO" 5
30450 ;;
30451 :H)
30452 #
30453 # CONFIG_HEADER
30454 #
30455 if test x"$ac_file" != x-; then
30456 {
30457 $as_echo "/* $configure_input */" \
30458 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
30459 } >"$tmp/config.h" \
30460 || as_fn_error "could not create $ac_file" "$LINENO" 5
30461 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
30462 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
30463 $as_echo "$as_me: $ac_file is unchanged" >&6;}
30464 else
30465 rm -f "$ac_file"
30466 mv "$tmp/config.h" "$ac_file" \
30467 || as_fn_error "could not create $ac_file" "$LINENO" 5
30468 fi
30469 else
30470 $as_echo "/* $configure_input */" \
30471 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
30472 || as_fn_error "could not create -" "$LINENO" 5
30473 fi
30474 ;;
30475 :L)
30476 #
30477 # CONFIG_LINK
30478 #
30479
30480 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
30481 :
30482 else
30483 # Prefer the file from the source tree if names are identical.
30484 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
30485 ac_source=$srcdir/$ac_source
30486 fi
30487
30488 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
30489 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
30490
30491 if test ! -r "$ac_source"; then
30492 as_fn_error "$ac_source: file not found" "$LINENO" 5
30493 fi
30494 rm -f "$ac_file"
30495
30496 # Try a relative symlink, then a hard link, then a copy.
30497 case $srcdir in
30498 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
30499 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
30500 esac
30501 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
30502 ln "$ac_source" "$ac_file" 2>/dev/null ||
30503 cp -p "$ac_source" "$ac_file" ||
30504 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
30505 fi
30506 ;;
30507 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
30508 $as_echo "$as_me: executing $ac_file commands" >&6;}
30509 ;;
30510 esac
30511
30512
30513 case $ac_file$ac_mode in
30514 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
30515 "gccdepdir":C)
30516 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs build/$DEPDIR
30517 for lang in $subdirs c-family common
30518 do
30519 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs $lang/$DEPDIR
30520 done ;;
30521 "as":F) chmod +x as ;;
30522 "collect-ld":F) chmod +x collect-ld ;;
30523 "nm":F) chmod +x nm ;;
30524 "default":C)
30525 case ${CONFIG_HEADERS} in
30526 *auto-host.h:config.in*)
30527 echo > cstamp-h ;;
30528 esac
30529 # Make sure all the subdirs exist.
30530 for d in $subdirs doc build common c-family
30531 do
30532 test -d $d || mkdir $d
30533 done
30534 ;;
30535
30536 esac
30537 done # for ac_tag
30538
30539
30540 as_fn_exit 0
30541 _ACEOF
30542 ac_clean_files=$ac_clean_files_save
30543
30544 test $ac_write_fail = 0 ||
30545 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
30546
30547
30548 # configure is writing to config.log, and then calls config.status.
30549 # config.status does its own redirection, appending to config.log.
30550 # Unfortunately, on DOS this fails, as config.log is still kept open
30551 # by configure, so config.status won't be able to write to it; its
30552 # output is simply discarded. So we exec the FD to /dev/null,
30553 # effectively closing config.log, so it can be properly (re)opened and
30554 # appended to by config.status. When coming back to configure, we
30555 # need to make the FD available again.
30556 if test "$no_create" != yes; then
30557 ac_cs_success=:
30558 ac_config_status_args=
30559 test "$silent" = yes &&
30560 ac_config_status_args="$ac_config_status_args --quiet"
30561 exec 5>/dev/null
30562 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
30563 exec 5>>config.log
30564 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
30565 # would make configure fail if this is the last instruction.
30566 $ac_cs_success || as_fn_exit $?
30567 fi
30568 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
30569 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
30570 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
30571 fi
30572
30573