gen-pass-instances.awk: Add len_of_call var in handle_line
[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 NO_PIE_FLAG_FOR_BUILD
711 NO_PIE_CFLAGS_FOR_BUILD
712 BUILD_NO_PIE_FLAG
713 BUILD_NO_PIE_CFLAGS
714 STMP_FIXINC
715 BUILD_LDFLAGS
716 BUILD_CXXFLAGS
717 BUILD_CFLAGS
718 CXX_FOR_BUILD
719 CC_FOR_BUILD
720 inhibit_libc
721 SYSTEM_HEADER_DIR
722 ALL
723 CROSS
724 CATOBJEXT
725 GENCAT
726 INSTOBJEXT
727 DATADIRNAME
728 CATALOGS
729 POSUB
730 GMSGFMT
731 XGETTEXT
732 INCINTL
733 LIBINTL_DEP
734 LIBINTL
735 USE_NLS
736 extra_opt_files
737 extra_modes_file
738 NATIVE_SYSTEM_HEADER_DIR
739 objext
740 manext
741 LIBICONV_DEP
742 LTLIBICONV
743 LIBICONV
744 LDEXP_LIB
745 EXTRA_GCC_LIBS
746 GNAT_LIBEXC
747 COLLECT2_LIBS
748 CXXDEPMODE
749 DEPDIR
750 am__leading_dot
751 doc_build_sys
752 AR
753 NM
754 BISON
755 FLEX
756 GENERATED_MANPAGES
757 BUILD_INFO
758 MAKEINFO
759 have_mktemp_command
760 make_compare_target
761 INSTALL_DATA
762 INSTALL_PROGRAM
763 INSTALL
764 ranlib_flags
765 RANLIB
766 LN
767 LN_S
768 AWK
769 SET_MAKE
770 accel_dir_suffix
771 real_target_noncanonical
772 enable_as_accelerator
773 REPORT_BUGS_TEXI
774 REPORT_BUGS_TO
775 PKGVERSION
776 CONFIGURE_SPECS
777 enable_shared
778 enable_fixed_point
779 enable_decimal_float
780 with_float
781 with_cpu
782 enable_multiarch
783 enable_multilib
784 coverage_flags
785 valgrind_command
786 valgrind_path_defines
787 valgrind_path
788 TREECHECKING
789 nocommon_flag
790 noexception_flags
791 warn_cxxflags
792 warn_cflags
793 c_strict_warn
794 strict_warn
795 c_loose_warn
796 loose_warn
797 aliasing_flags
798 CPP
799 EGREP
800 GREP
801 CXXCPP
802 PICFLAG_FOR_TARGET
803 GNATMAKE
804 GNATBIND
805 ac_ct_CXX
806 CXXFLAGS
807 CXX
808 OBJEXT
809 EXEEXT
810 ac_ct_CC
811 CPPFLAGS
812 LDFLAGS
813 CFLAGS
814 CC
815 GENINSRC
816 CROSS_SYSTEM_HEADER_DIR
817 TARGET_SYSTEM_ROOT_DEFINE
818 TARGET_SYSTEM_ROOT
819 SYSROOT_CFLAGS_FOR_TARGET
820 target_subdir
821 host_subdir
822 build_subdir
823 build_libsubdir
824 target_noncanonical
825 target_os
826 target_vendor
827 target_cpu
828 target
829 host_os
830 host_vendor
831 host_cpu
832 host
833 build_os
834 build_vendor
835 build_cpu
836 build
837 target_alias
838 host_alias
839 build_alias
840 LIBS
841 ECHO_T
842 ECHO_N
843 ECHO_C
844 DEFS
845 mandir
846 localedir
847 libdir
848 psdir
849 pdfdir
850 dvidir
851 htmldir
852 infodir
853 docdir
854 oldincludedir
855 includedir
856 localstatedir
857 sharedstatedir
858 sysconfdir
859 datadir
860 datarootdir
861 libexecdir
862 sbindir
863 bindir
864 program_transform_name
865 prefix
866 exec_prefix
867 PACKAGE_URL
868 PACKAGE_BUGREPORT
869 PACKAGE_STRING
870 PACKAGE_VERSION
871 PACKAGE_TARNAME
872 PACKAGE_NAME
873 PATH_SEPARATOR
874 SHELL'
875 ac_subst_files='option_includes
876 language_hooks'
877 ac_user_opts='
878 enable_option_checking
879 with_build_libsubdir
880 with_local_prefix
881 with_native_system_header_dir
882 with_build_sysroot
883 with_sysroot
884 with_gxx_include_dir
885 with_cpp_install_dir
886 enable_generated_files_in_srcdir
887 with_gnu_ld
888 with_ld
889 with_demangler_in_ld
890 with_gnu_as
891 with_as
892 enable_largefile
893 enable_build_format_warnings
894 enable_werror_always
895 enable_checking
896 enable_coverage
897 enable_gather_detailed_mem_stats
898 enable_valgrind_annotations
899 with_stabs
900 enable_multilib
901 enable_multiarch
902 enable___cxa_atexit
903 enable_decimal_float
904 enable_fixed_point
905 enable_threads
906 enable_tls
907 enable_objc_gc
908 with_dwarf2
909 enable_shared
910 with_specs
911 with_pkgversion
912 with_bugurl
913 enable_languages
914 with_multilib_list
915 enable_rpath
916 with_libiconv_prefix
917 enable_sjlj_exceptions
918 enable_secureplt
919 enable_leading_mingw64_underscores
920 enable_cld
921 enable_frame_pointer
922 enable_win32_registry
923 enable_static
924 with_pic
925 enable_fast_install
926 enable_libtool_lock
927 enable_ld
928 enable_gold
929 with_plugin_ld
930 enable_gnu_indirect_function
931 enable_initfini_array
932 enable_comdat
933 enable_fix_cortex_a53_835769
934 enable_fix_cortex_a53_843419
935 with_glibc_version
936 enable_gnu_unique_object
937 enable_linker_build_id
938 enable_default_ssp
939 with_long_double_128
940 with_gc
941 with_system_zlib
942 enable_maintainer_mode
943 enable_link_mutex
944 enable_version_specific_runtime_libs
945 enable_plugin
946 enable_host_shared
947 enable_libquadmath_support
948 with_linker_hash_style
949 with_diagnostics_color
950 enable_default_pie
951 '
952 ac_precious_vars='build_alias
953 host_alias
954 target_alias
955 CC
956 CFLAGS
957 LDFLAGS
958 LIBS
959 CPPFLAGS
960 CXX
961 CXXFLAGS
962 CCC
963 CXXCPP
964 CPP
965 GMPLIBS
966 GMPINC
967 ISLLIBS
968 ISLINC'
969
970
971 # Initialize some variables set by options.
972 ac_init_help=
973 ac_init_version=false
974 ac_unrecognized_opts=
975 ac_unrecognized_sep=
976 # The variables have the same names as the options, with
977 # dashes changed to underlines.
978 cache_file=/dev/null
979 exec_prefix=NONE
980 no_create=
981 no_recursion=
982 prefix=NONE
983 program_prefix=NONE
984 program_suffix=NONE
985 program_transform_name=s,x,x,
986 silent=
987 site=
988 srcdir=
989 verbose=
990 x_includes=NONE
991 x_libraries=NONE
992
993 # Installation directory options.
994 # These are left unexpanded so users can "make install exec_prefix=/foo"
995 # and all the variables that are supposed to be based on exec_prefix
996 # by default will actually change.
997 # Use braces instead of parens because sh, perl, etc. also accept them.
998 # (The list follows the same order as the GNU Coding Standards.)
999 bindir='${exec_prefix}/bin'
1000 sbindir='${exec_prefix}/sbin'
1001 libexecdir='${exec_prefix}/libexec'
1002 datarootdir='${prefix}/share'
1003 datadir='${datarootdir}'
1004 sysconfdir='${prefix}/etc'
1005 sharedstatedir='${prefix}/com'
1006 localstatedir='${prefix}/var'
1007 includedir='${prefix}/include'
1008 oldincludedir='/usr/include'
1009 docdir='${datarootdir}/doc/${PACKAGE}'
1010 infodir='${datarootdir}/info'
1011 htmldir='${docdir}'
1012 dvidir='${docdir}'
1013 pdfdir='${docdir}'
1014 psdir='${docdir}'
1015 libdir='${exec_prefix}/lib'
1016 localedir='${datarootdir}/locale'
1017 mandir='${datarootdir}/man'
1018
1019 ac_prev=
1020 ac_dashdash=
1021 for ac_option
1022 do
1023 # If the previous option needs an argument, assign it.
1024 if test -n "$ac_prev"; then
1025 eval $ac_prev=\$ac_option
1026 ac_prev=
1027 continue
1028 fi
1029
1030 case $ac_option in
1031 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1032 *) ac_optarg=yes ;;
1033 esac
1034
1035 # Accept the important Cygnus configure options, so we can diagnose typos.
1036
1037 case $ac_dashdash$ac_option in
1038 --)
1039 ac_dashdash=yes ;;
1040
1041 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1042 ac_prev=bindir ;;
1043 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1044 bindir=$ac_optarg ;;
1045
1046 -build | --build | --buil | --bui | --bu)
1047 ac_prev=build_alias ;;
1048 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1049 build_alias=$ac_optarg ;;
1050
1051 -cache-file | --cache-file | --cache-fil | --cache-fi \
1052 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1053 ac_prev=cache_file ;;
1054 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1055 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1056 cache_file=$ac_optarg ;;
1057
1058 --config-cache | -C)
1059 cache_file=config.cache ;;
1060
1061 -datadir | --datadir | --datadi | --datad)
1062 ac_prev=datadir ;;
1063 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1064 datadir=$ac_optarg ;;
1065
1066 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1067 | --dataroo | --dataro | --datar)
1068 ac_prev=datarootdir ;;
1069 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1070 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1071 datarootdir=$ac_optarg ;;
1072
1073 -disable-* | --disable-*)
1074 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1075 # Reject names that are not valid shell variable names.
1076 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1077 as_fn_error "invalid feature name: $ac_useropt"
1078 ac_useropt_orig=$ac_useropt
1079 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1080 case $ac_user_opts in
1081 *"
1082 "enable_$ac_useropt"
1083 "*) ;;
1084 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1085 ac_unrecognized_sep=', ';;
1086 esac
1087 eval enable_$ac_useropt=no ;;
1088
1089 -docdir | --docdir | --docdi | --doc | --do)
1090 ac_prev=docdir ;;
1091 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1092 docdir=$ac_optarg ;;
1093
1094 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1095 ac_prev=dvidir ;;
1096 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1097 dvidir=$ac_optarg ;;
1098
1099 -enable-* | --enable-*)
1100 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1101 # Reject names that are not valid shell variable names.
1102 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1103 as_fn_error "invalid feature name: $ac_useropt"
1104 ac_useropt_orig=$ac_useropt
1105 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1106 case $ac_user_opts in
1107 *"
1108 "enable_$ac_useropt"
1109 "*) ;;
1110 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1111 ac_unrecognized_sep=', ';;
1112 esac
1113 eval enable_$ac_useropt=\$ac_optarg ;;
1114
1115 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1116 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1117 | --exec | --exe | --ex)
1118 ac_prev=exec_prefix ;;
1119 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1120 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1121 | --exec=* | --exe=* | --ex=*)
1122 exec_prefix=$ac_optarg ;;
1123
1124 -gas | --gas | --ga | --g)
1125 # Obsolete; use --with-gas.
1126 with_gas=yes ;;
1127
1128 -help | --help | --hel | --he | -h)
1129 ac_init_help=long ;;
1130 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1131 ac_init_help=recursive ;;
1132 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1133 ac_init_help=short ;;
1134
1135 -host | --host | --hos | --ho)
1136 ac_prev=host_alias ;;
1137 -host=* | --host=* | --hos=* | --ho=*)
1138 host_alias=$ac_optarg ;;
1139
1140 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1141 ac_prev=htmldir ;;
1142 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1143 | --ht=*)
1144 htmldir=$ac_optarg ;;
1145
1146 -includedir | --includedir | --includedi | --included | --include \
1147 | --includ | --inclu | --incl | --inc)
1148 ac_prev=includedir ;;
1149 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1150 | --includ=* | --inclu=* | --incl=* | --inc=*)
1151 includedir=$ac_optarg ;;
1152
1153 -infodir | --infodir | --infodi | --infod | --info | --inf)
1154 ac_prev=infodir ;;
1155 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1156 infodir=$ac_optarg ;;
1157
1158 -libdir | --libdir | --libdi | --libd)
1159 ac_prev=libdir ;;
1160 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1161 libdir=$ac_optarg ;;
1162
1163 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1164 | --libexe | --libex | --libe)
1165 ac_prev=libexecdir ;;
1166 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1167 | --libexe=* | --libex=* | --libe=*)
1168 libexecdir=$ac_optarg ;;
1169
1170 -localedir | --localedir | --localedi | --localed | --locale)
1171 ac_prev=localedir ;;
1172 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1173 localedir=$ac_optarg ;;
1174
1175 -localstatedir | --localstatedir | --localstatedi | --localstated \
1176 | --localstate | --localstat | --localsta | --localst | --locals)
1177 ac_prev=localstatedir ;;
1178 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1179 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1180 localstatedir=$ac_optarg ;;
1181
1182 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1183 ac_prev=mandir ;;
1184 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1185 mandir=$ac_optarg ;;
1186
1187 -nfp | --nfp | --nf)
1188 # Obsolete; use --without-fp.
1189 with_fp=no ;;
1190
1191 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1192 | --no-cr | --no-c | -n)
1193 no_create=yes ;;
1194
1195 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1196 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1197 no_recursion=yes ;;
1198
1199 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1200 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1201 | --oldin | --oldi | --old | --ol | --o)
1202 ac_prev=oldincludedir ;;
1203 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1204 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1205 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1206 oldincludedir=$ac_optarg ;;
1207
1208 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1209 ac_prev=prefix ;;
1210 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1211 prefix=$ac_optarg ;;
1212
1213 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1214 | --program-pre | --program-pr | --program-p)
1215 ac_prev=program_prefix ;;
1216 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1217 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1218 program_prefix=$ac_optarg ;;
1219
1220 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1221 | --program-suf | --program-su | --program-s)
1222 ac_prev=program_suffix ;;
1223 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1224 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1225 program_suffix=$ac_optarg ;;
1226
1227 -program-transform-name | --program-transform-name \
1228 | --program-transform-nam | --program-transform-na \
1229 | --program-transform-n | --program-transform- \
1230 | --program-transform | --program-transfor \
1231 | --program-transfo | --program-transf \
1232 | --program-trans | --program-tran \
1233 | --progr-tra | --program-tr | --program-t)
1234 ac_prev=program_transform_name ;;
1235 -program-transform-name=* | --program-transform-name=* \
1236 | --program-transform-nam=* | --program-transform-na=* \
1237 | --program-transform-n=* | --program-transform-=* \
1238 | --program-transform=* | --program-transfor=* \
1239 | --program-transfo=* | --program-transf=* \
1240 | --program-trans=* | --program-tran=* \
1241 | --progr-tra=* | --program-tr=* | --program-t=*)
1242 program_transform_name=$ac_optarg ;;
1243
1244 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1245 ac_prev=pdfdir ;;
1246 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1247 pdfdir=$ac_optarg ;;
1248
1249 -psdir | --psdir | --psdi | --psd | --ps)
1250 ac_prev=psdir ;;
1251 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1252 psdir=$ac_optarg ;;
1253
1254 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1255 | -silent | --silent | --silen | --sile | --sil)
1256 silent=yes ;;
1257
1258 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1259 ac_prev=sbindir ;;
1260 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1261 | --sbi=* | --sb=*)
1262 sbindir=$ac_optarg ;;
1263
1264 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1265 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1266 | --sharedst | --shareds | --shared | --share | --shar \
1267 | --sha | --sh)
1268 ac_prev=sharedstatedir ;;
1269 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1270 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1271 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1272 | --sha=* | --sh=*)
1273 sharedstatedir=$ac_optarg ;;
1274
1275 -site | --site | --sit)
1276 ac_prev=site ;;
1277 -site=* | --site=* | --sit=*)
1278 site=$ac_optarg ;;
1279
1280 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1281 ac_prev=srcdir ;;
1282 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1283 srcdir=$ac_optarg ;;
1284
1285 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1286 | --syscon | --sysco | --sysc | --sys | --sy)
1287 ac_prev=sysconfdir ;;
1288 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1289 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1290 sysconfdir=$ac_optarg ;;
1291
1292 -target | --target | --targe | --targ | --tar | --ta | --t)
1293 ac_prev=target_alias ;;
1294 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1295 target_alias=$ac_optarg ;;
1296
1297 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1298 verbose=yes ;;
1299
1300 -version | --version | --versio | --versi | --vers | -V)
1301 ac_init_version=: ;;
1302
1303 -with-* | --with-*)
1304 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1305 # Reject names that are not valid shell variable names.
1306 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1307 as_fn_error "invalid package name: $ac_useropt"
1308 ac_useropt_orig=$ac_useropt
1309 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1310 case $ac_user_opts in
1311 *"
1312 "with_$ac_useropt"
1313 "*) ;;
1314 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1315 ac_unrecognized_sep=', ';;
1316 esac
1317 eval with_$ac_useropt=\$ac_optarg ;;
1318
1319 -without-* | --without-*)
1320 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1321 # Reject names that are not valid shell variable names.
1322 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1323 as_fn_error "invalid package name: $ac_useropt"
1324 ac_useropt_orig=$ac_useropt
1325 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1326 case $ac_user_opts in
1327 *"
1328 "with_$ac_useropt"
1329 "*) ;;
1330 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1331 ac_unrecognized_sep=', ';;
1332 esac
1333 eval with_$ac_useropt=no ;;
1334
1335 --x)
1336 # Obsolete; use --with-x.
1337 with_x=yes ;;
1338
1339 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1340 | --x-incl | --x-inc | --x-in | --x-i)
1341 ac_prev=x_includes ;;
1342 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1343 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1344 x_includes=$ac_optarg ;;
1345
1346 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1347 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1348 ac_prev=x_libraries ;;
1349 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1350 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1351 x_libraries=$ac_optarg ;;
1352
1353 -*) as_fn_error "unrecognized option: \`$ac_option'
1354 Try \`$0 --help' for more information."
1355 ;;
1356
1357 *=*)
1358 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1359 # Reject names that are not valid shell variable names.
1360 case $ac_envvar in #(
1361 '' | [0-9]* | *[!_$as_cr_alnum]* )
1362 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1363 esac
1364 eval $ac_envvar=\$ac_optarg
1365 export $ac_envvar ;;
1366
1367 *)
1368 # FIXME: should be removed in autoconf 3.0.
1369 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1370 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1371 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1372 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1373 ;;
1374
1375 esac
1376 done
1377
1378 if test -n "$ac_prev"; then
1379 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1380 as_fn_error "missing argument to $ac_option"
1381 fi
1382
1383 if test -n "$ac_unrecognized_opts"; then
1384 case $enable_option_checking in
1385 no) ;;
1386 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1387 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1388 esac
1389 fi
1390
1391 # Check all directory arguments for consistency.
1392 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1393 datadir sysconfdir sharedstatedir localstatedir includedir \
1394 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1395 libdir localedir mandir
1396 do
1397 eval ac_val=\$$ac_var
1398 # Remove trailing slashes.
1399 case $ac_val in
1400 */ )
1401 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1402 eval $ac_var=\$ac_val;;
1403 esac
1404 # Be sure to have absolute directory names.
1405 case $ac_val in
1406 [\\/$]* | ?:[\\/]* ) continue;;
1407 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1408 esac
1409 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1410 done
1411
1412 # There might be people who depend on the old broken behavior: `$host'
1413 # used to hold the argument of --host etc.
1414 # FIXME: To remove some day.
1415 build=$build_alias
1416 host=$host_alias
1417 target=$target_alias
1418
1419 # FIXME: To remove some day.
1420 if test "x$host_alias" != x; then
1421 if test "x$build_alias" = x; then
1422 cross_compiling=maybe
1423 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1424 If a cross compiler is detected then cross compile mode will be used." >&2
1425 elif test "x$build_alias" != "x$host_alias"; then
1426 cross_compiling=yes
1427 fi
1428 fi
1429
1430 ac_tool_prefix=
1431 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1432
1433 test "$silent" = yes && exec 6>/dev/null
1434
1435
1436 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1437 ac_ls_di=`ls -di .` &&
1438 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1439 as_fn_error "working directory cannot be determined"
1440 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1441 as_fn_error "pwd does not report name of working directory"
1442
1443
1444 # Find the source files, if location was not specified.
1445 if test -z "$srcdir"; then
1446 ac_srcdir_defaulted=yes
1447 # Try the directory containing this script, then the parent directory.
1448 ac_confdir=`$as_dirname -- "$as_myself" ||
1449 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1450 X"$as_myself" : 'X\(//\)[^/]' \| \
1451 X"$as_myself" : 'X\(//\)$' \| \
1452 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1453 $as_echo X"$as_myself" |
1454 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1455 s//\1/
1456 q
1457 }
1458 /^X\(\/\/\)[^/].*/{
1459 s//\1/
1460 q
1461 }
1462 /^X\(\/\/\)$/{
1463 s//\1/
1464 q
1465 }
1466 /^X\(\/\).*/{
1467 s//\1/
1468 q
1469 }
1470 s/.*/./; q'`
1471 srcdir=$ac_confdir
1472 if test ! -r "$srcdir/$ac_unique_file"; then
1473 srcdir=..
1474 fi
1475 else
1476 ac_srcdir_defaulted=no
1477 fi
1478 if test ! -r "$srcdir/$ac_unique_file"; then
1479 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1480 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1481 fi
1482 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1483 ac_abs_confdir=`(
1484 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1485 pwd)`
1486 # When building in place, set srcdir=.
1487 if test "$ac_abs_confdir" = "$ac_pwd"; then
1488 srcdir=.
1489 fi
1490 # Remove unnecessary trailing slashes from srcdir.
1491 # Double slashes in file names in object file debugging info
1492 # mess up M-x gdb in Emacs.
1493 case $srcdir in
1494 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1495 esac
1496 for ac_var in $ac_precious_vars; do
1497 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1498 eval ac_env_${ac_var}_value=\$${ac_var}
1499 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1500 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1501 done
1502
1503 #
1504 # Report the --help message.
1505 #
1506 if test "$ac_init_help" = "long"; then
1507 # Omit some internal or obsolete options to make the list less imposing.
1508 # This message is too long to be a string in the A/UX 3.1 sh.
1509 cat <<_ACEOF
1510 \`configure' configures this package to adapt to many kinds of systems.
1511
1512 Usage: $0 [OPTION]... [VAR=VALUE]...
1513
1514 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1515 VAR=VALUE. See below for descriptions of some of the useful variables.
1516
1517 Defaults for the options are specified in brackets.
1518
1519 Configuration:
1520 -h, --help display this help and exit
1521 --help=short display options specific to this package
1522 --help=recursive display the short help of all the included packages
1523 -V, --version display version information and exit
1524 -q, --quiet, --silent do not print \`checking...' messages
1525 --cache-file=FILE cache test results in FILE [disabled]
1526 -C, --config-cache alias for \`--cache-file=config.cache'
1527 -n, --no-create do not create output files
1528 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1529
1530 Installation directories:
1531 --prefix=PREFIX install architecture-independent files in PREFIX
1532 [$ac_default_prefix]
1533 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1534 [PREFIX]
1535
1536 By default, \`make install' will install all the files in
1537 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1538 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1539 for instance \`--prefix=\$HOME'.
1540
1541 For better control, use the options below.
1542
1543 Fine tuning of the installation directories:
1544 --bindir=DIR user executables [EPREFIX/bin]
1545 --sbindir=DIR system admin executables [EPREFIX/sbin]
1546 --libexecdir=DIR program executables [EPREFIX/libexec]
1547 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1548 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1549 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1550 --libdir=DIR object code libraries [EPREFIX/lib]
1551 --includedir=DIR C header files [PREFIX/include]
1552 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1553 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1554 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1555 --infodir=DIR info documentation [DATAROOTDIR/info]
1556 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1557 --mandir=DIR man documentation [DATAROOTDIR/man]
1558 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1559 --htmldir=DIR html documentation [DOCDIR]
1560 --dvidir=DIR dvi documentation [DOCDIR]
1561 --pdfdir=DIR pdf documentation [DOCDIR]
1562 --psdir=DIR ps documentation [DOCDIR]
1563 _ACEOF
1564
1565 cat <<\_ACEOF
1566
1567 Program names:
1568 --program-prefix=PREFIX prepend PREFIX to installed program names
1569 --program-suffix=SUFFIX append SUFFIX to installed program names
1570 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1571
1572 System types:
1573 --build=BUILD configure for building on BUILD [guessed]
1574 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1575 --target=TARGET configure for building compilers for TARGET [HOST]
1576 _ACEOF
1577 fi
1578
1579 if test -n "$ac_init_help"; then
1580
1581 cat <<\_ACEOF
1582
1583 Optional Features:
1584 --disable-option-checking ignore unrecognized --enable/--with options
1585 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1586 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1587 --enable-generated-files-in-srcdir
1588 put copies of generated files in source dir intended
1589 for creating source tarballs for users without
1590 texinfo bison or flex
1591 --disable-largefile omit support for large files
1592 --disable-build-format-warnings
1593 don't use -Wformat while building GCC
1594 --enable-werror-always enable -Werror despite compiler version
1595 --enable-checking[=LIST]
1596 enable expensive run-time checks. With LIST, enable
1597 only specific categories of checks. Categories are:
1598 yes,no,all,none,release. Flags are:
1599 assert,df,fold,gc,gcac,gimple,misc,
1600 rtlflag,rtl,runtime,tree,valgrind,types
1601 --enable-coverage[=LEVEL]
1602 enable compiler's code coverage collection. Use to
1603 measure compiler performance and locate unused parts
1604 of the compiler. With LEVEL, specify optimization.
1605 Values are opt, noopt, default is noopt
1606 --enable-gather-detailed-mem-stats
1607 enable detailed memory allocation stats gathering
1608 --enable-valgrind-annotations
1609 enable valgrind runtime interaction
1610 --enable-multilib enable library support for multiple ABIs
1611 --enable-multiarch enable support for multiarch paths
1612 --enable-__cxa_atexit enable __cxa_atexit for C++
1613 --enable-decimal-float={no,yes,bid,dpd}
1614 enable decimal float extension to C. Selecting 'bid'
1615 or 'dpd' choses which decimal floating point format
1616 to use
1617 --enable-fixed-point enable fixed-point arithmetic extension to C
1618 --enable-threads[=LIB] enable thread usage for target GCC, using LIB thread
1619 package
1620 --enable-tls enable or disable generation of tls code overriding
1621 the assembler check for tls support
1622 --enable-objc-gc enable the use of Boehm's garbage collector with the
1623 GNU Objective-C runtime
1624 --disable-shared don't provide a shared libgcc
1625 --enable-languages=LIST specify which front-ends to build
1626 --disable-rpath do not hardcode runtime library paths
1627 --enable-sjlj-exceptions
1628 arrange to use setjmp/longjmp exception handling
1629 --enable-secureplt enable -msecure-plt by default for PowerPC
1630 --enable-leading-mingw64-underscores
1631 enable leading underscores on 64 bit mingw targets
1632 --enable-cld enable -mcld by default for 32bit x86
1633 --enable-frame-pointer enable -fno-omit-frame-pointer by default for 32bit
1634 x86
1635 --disable-win32-registry
1636 disable lookup of installation paths in the Registry
1637 on Windows hosts
1638 --enable-win32-registry enable registry lookup (default)
1639 --enable-win32-registry=KEY
1640 use KEY instead of GCC version as the last portion
1641 of the registry key
1642 --enable-shared[=PKGS] build shared libraries [default=yes]
1643 --enable-static[=PKGS] build static libraries [default=yes]
1644 --enable-fast-install[=PKGS]
1645 optimize for fast installation [default=yes]
1646 --disable-libtool-lock avoid locking (might break parallel builds)
1647 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1648 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1649 --enable-gnu-indirect-function
1650 enable the use of the @gnu_indirect_function to
1651 glibc systems
1652 --enable-initfini-array use .init_array/.fini_array sections
1653 --enable-comdat enable COMDAT group support
1654
1655 --enable-fix-cortex-a53-835769
1656 enable workaround for AArch64 Cortex-A53 erratum
1657 835769 by default
1658 --disable-fix-cortex-a53-835769
1659 disable workaround for AArch64 Cortex-A53 erratum
1660 835769 by default
1661
1662
1663 --enable-fix-cortex-a53-843419
1664 enable workaround for AArch64 Cortex-A53 erratum
1665 843419 by default
1666 --disable-fix-cortex-a53-843419
1667 disable workaround for AArch64 Cortex-A53 erratum
1668 843419 by default
1669
1670 --enable-gnu-unique-object
1671 enable the use of the @gnu_unique_object ELF
1672 extension on glibc systems
1673 --enable-linker-build-id
1674 compiler will always pass --build-id to linker
1675 --enable-default-ssp enable Stack Smashing Protection as default
1676 --enable-maintainer-mode
1677 enable make rules and dependencies not useful (and
1678 sometimes confusing) to the casual installer
1679 --enable-link-mutex avoid linking multiple front-ends at once to avoid
1680 thrashing on the build machine
1681 --enable-version-specific-runtime-libs
1682 specify that runtime libraries should be installed
1683 in a compiler-specific directory
1684 --enable-plugin enable plugin support
1685 --enable-host-shared build host code as shared libraries
1686 --disable-libquadmath-support
1687 disable libquadmath support for Fortran
1688 --enable-default-pie enable Position Independent Executable as default
1689
1690 Optional Packages:
1691 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1692 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1693 --with-build-libsubdir=DIR Directory where to find libraries for build system
1694 --with-local-prefix=DIR specifies directory to put local include
1695 --with-native-system-header-dir=dir
1696 use dir as the directory to look for standard
1697 system header files in. Defaults to /usr/include.
1698 --with-build-sysroot=sysroot
1699 use sysroot as the system root during the build
1700 --with-sysroot[=DIR] search for usr/lib, usr/include, et al, within DIR
1701 --with-gxx-include-dir=DIR
1702 specifies directory to put g++ header files
1703 --with-cpp-install-dir=DIR
1704 install the user visible C preprocessor in DIR
1705 (relative to PREFIX) as well as PREFIX/bin
1706 --with-gnu-ld arrange to work with GNU ld
1707 --with-ld arrange to use the specified ld (full pathname)
1708 --with-demangler-in-ld try to use demangler in GNU ld
1709 --with-gnu-as arrange to work with GNU as
1710 --with-as arrange to use the specified as (full pathname)
1711 --with-stabs arrange to use stabs instead of host debug format
1712 --with-dwarf2 force the default debug format to be DWARF 2
1713 --with-specs=SPECS add SPECS to driver command-line processing
1714 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1715 --with-bugurl=URL Direct users to URL to report a bug
1716 --with-multilib-list select multilibs (AArch64, SH and x86-64 only)
1717 --with-gnu-ld assume the C compiler uses GNU ld default=no
1718 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1719 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1720 --with-pic try to use only PIC/non-PIC objects [default=use
1721 both]
1722 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1723 --with-plugin-ld=[ARG] specify the plugin linker
1724 --with-glibc-version=M.N
1725 assume GCC used with glibc version M.N or later
1726 --with-long-double-128 use 128-bit long double by default
1727 --with-gc={page,zone} this option is not supported anymore. It used to
1728 choose the garbage collection mechanism to use with
1729 the compiler
1730 --with-system-zlib use installed libz
1731 --with-linker-hash-style={sysv,gnu,both}
1732 specify the linker hash style
1733 --with-diagnostics-color={never,auto,auto-if-env,always}
1734 specify the default of -fdiagnostics-color option
1735 auto-if-env stands for -fdiagnostics-color=auto if
1736 GCC_COLOR environment variable is present and
1737 -fdiagnostics-color=never otherwise
1738
1739 Some influential environment variables:
1740 CC C compiler command
1741 CFLAGS C compiler flags
1742 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1743 nonstandard directory <lib dir>
1744 LIBS libraries to pass to the linker, e.g. -l<library>
1745 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1746 you have headers in a nonstandard directory <include dir>
1747 CXX C++ compiler command
1748 CXXFLAGS C++ compiler flags
1749 CXXCPP C++ preprocessor
1750 CPP C preprocessor
1751 GMPLIBS How to link GMP
1752 GMPINC How to find GMP include files
1753 ISLLIBS How to link ISL
1754 ISLINC How to find ISL include files
1755
1756 Use these variables to override the choices made by `configure' or to help
1757 it to find libraries and programs with nonstandard names/locations.
1758
1759 Report bugs to the package provider.
1760 _ACEOF
1761 ac_status=$?
1762 fi
1763
1764 if test "$ac_init_help" = "recursive"; then
1765 # If there are subdirs, report their specific --help.
1766 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1767 test -d "$ac_dir" ||
1768 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1769 continue
1770 ac_builddir=.
1771
1772 case "$ac_dir" in
1773 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1774 *)
1775 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1776 # A ".." for each directory in $ac_dir_suffix.
1777 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1778 case $ac_top_builddir_sub in
1779 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1780 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1781 esac ;;
1782 esac
1783 ac_abs_top_builddir=$ac_pwd
1784 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1785 # for backward compatibility:
1786 ac_top_builddir=$ac_top_build_prefix
1787
1788 case $srcdir in
1789 .) # We are building in place.
1790 ac_srcdir=.
1791 ac_top_srcdir=$ac_top_builddir_sub
1792 ac_abs_top_srcdir=$ac_pwd ;;
1793 [\\/]* | ?:[\\/]* ) # Absolute name.
1794 ac_srcdir=$srcdir$ac_dir_suffix;
1795 ac_top_srcdir=$srcdir
1796 ac_abs_top_srcdir=$srcdir ;;
1797 *) # Relative name.
1798 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1799 ac_top_srcdir=$ac_top_build_prefix$srcdir
1800 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1801 esac
1802 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1803
1804 cd "$ac_dir" || { ac_status=$?; continue; }
1805 # Check for guested configure.
1806 if test -f "$ac_srcdir/configure.gnu"; then
1807 echo &&
1808 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1809 elif test -f "$ac_srcdir/configure"; then
1810 echo &&
1811 $SHELL "$ac_srcdir/configure" --help=recursive
1812 else
1813 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1814 fi || ac_status=$?
1815 cd "$ac_pwd" || { ac_status=$?; break; }
1816 done
1817 fi
1818
1819 test -n "$ac_init_help" && exit $ac_status
1820 if $ac_init_version; then
1821 cat <<\_ACEOF
1822 configure
1823 generated by GNU Autoconf 2.64
1824
1825 Copyright (C) 2009 Free Software Foundation, Inc.
1826 This configure script is free software; the Free Software Foundation
1827 gives unlimited permission to copy, distribute and modify it.
1828 _ACEOF
1829 exit
1830 fi
1831
1832 ## ------------------------ ##
1833 ## Autoconf initialization. ##
1834 ## ------------------------ ##
1835
1836 # ac_fn_c_try_compile LINENO
1837 # --------------------------
1838 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1839 ac_fn_c_try_compile ()
1840 {
1841 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1842 rm -f conftest.$ac_objext
1843 if { { ac_try="$ac_compile"
1844 case "(($ac_try" in
1845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1846 *) ac_try_echo=$ac_try;;
1847 esac
1848 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1849 $as_echo "$ac_try_echo"; } >&5
1850 (eval "$ac_compile") 2>conftest.err
1851 ac_status=$?
1852 if test -s conftest.err; then
1853 grep -v '^ *+' conftest.err >conftest.er1
1854 cat conftest.er1 >&5
1855 mv -f conftest.er1 conftest.err
1856 fi
1857 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1858 test $ac_status = 0; } && {
1859 test -z "$ac_c_werror_flag" ||
1860 test ! -s conftest.err
1861 } && test -s conftest.$ac_objext; then :
1862 ac_retval=0
1863 else
1864 $as_echo "$as_me: failed program was:" >&5
1865 sed 's/^/| /' conftest.$ac_ext >&5
1866
1867 ac_retval=1
1868 fi
1869 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1870 return $ac_retval
1871
1872 } # ac_fn_c_try_compile
1873
1874 # ac_fn_cxx_try_compile LINENO
1875 # ----------------------------
1876 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1877 ac_fn_cxx_try_compile ()
1878 {
1879 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1880 rm -f conftest.$ac_objext
1881 if { { ac_try="$ac_compile"
1882 case "(($ac_try" in
1883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1884 *) ac_try_echo=$ac_try;;
1885 esac
1886 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1887 $as_echo "$ac_try_echo"; } >&5
1888 (eval "$ac_compile") 2>conftest.err
1889 ac_status=$?
1890 if test -s conftest.err; then
1891 grep -v '^ *+' conftest.err >conftest.er1
1892 cat conftest.er1 >&5
1893 mv -f conftest.er1 conftest.err
1894 fi
1895 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1896 test $ac_status = 0; } && {
1897 test -z "$ac_cxx_werror_flag" ||
1898 test ! -s conftest.err
1899 } && test -s conftest.$ac_objext; then :
1900 ac_retval=0
1901 else
1902 $as_echo "$as_me: failed program was:" >&5
1903 sed 's/^/| /' conftest.$ac_ext >&5
1904
1905 ac_retval=1
1906 fi
1907 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1908 return $ac_retval
1909
1910 } # ac_fn_cxx_try_compile
1911
1912 # ac_fn_cxx_try_cpp LINENO
1913 # ------------------------
1914 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1915 ac_fn_cxx_try_cpp ()
1916 {
1917 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1918 if { { ac_try="$ac_cpp conftest.$ac_ext"
1919 case "(($ac_try" in
1920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1921 *) ac_try_echo=$ac_try;;
1922 esac
1923 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1924 $as_echo "$ac_try_echo"; } >&5
1925 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1926 ac_status=$?
1927 if test -s conftest.err; then
1928 grep -v '^ *+' conftest.err >conftest.er1
1929 cat conftest.er1 >&5
1930 mv -f conftest.er1 conftest.err
1931 fi
1932 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1933 test $ac_status = 0; } >/dev/null && {
1934 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1935 test ! -s conftest.err
1936 }; then :
1937 ac_retval=0
1938 else
1939 $as_echo "$as_me: failed program was:" >&5
1940 sed 's/^/| /' conftest.$ac_ext >&5
1941
1942 ac_retval=1
1943 fi
1944 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1945 return $ac_retval
1946
1947 } # ac_fn_cxx_try_cpp
1948
1949 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
1950 # ---------------------------------------------------------
1951 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1952 # the include files in INCLUDES and setting the cache variable VAR
1953 # accordingly.
1954 ac_fn_cxx_check_header_mongrel ()
1955 {
1956 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1957 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1959 $as_echo_n "checking for $2... " >&6; }
1960 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1961 $as_echo_n "(cached) " >&6
1962 fi
1963 eval ac_res=\$$3
1964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1965 $as_echo "$ac_res" >&6; }
1966 else
1967 # Is the header compilable?
1968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1969 $as_echo_n "checking $2 usability... " >&6; }
1970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1971 /* end confdefs.h. */
1972 $4
1973 #include <$2>
1974 _ACEOF
1975 if ac_fn_cxx_try_compile "$LINENO"; then :
1976 ac_header_compiler=yes
1977 else
1978 ac_header_compiler=no
1979 fi
1980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1982 $as_echo "$ac_header_compiler" >&6; }
1983
1984 # Is the header present?
1985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1986 $as_echo_n "checking $2 presence... " >&6; }
1987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1988 /* end confdefs.h. */
1989 #include <$2>
1990 _ACEOF
1991 if ac_fn_cxx_try_cpp "$LINENO"; then :
1992 ac_header_preproc=yes
1993 else
1994 ac_header_preproc=no
1995 fi
1996 rm -f conftest.err conftest.$ac_ext
1997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1998 $as_echo "$ac_header_preproc" >&6; }
1999
2000 # So? What about this header?
2001 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2002 yes:no: )
2003 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2004 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2005 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2006 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2007 ;;
2008 no:yes:* )
2009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2010 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2011 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2012 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2013 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2014 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2015 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2016 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2017 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2018 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2019 ;;
2020 esac
2021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2022 $as_echo_n "checking for $2... " >&6; }
2023 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2024 $as_echo_n "(cached) " >&6
2025 else
2026 eval "$3=\$ac_header_compiler"
2027 fi
2028 eval ac_res=\$$3
2029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2030 $as_echo "$ac_res" >&6; }
2031 fi
2032 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2033
2034 } # ac_fn_cxx_check_header_mongrel
2035
2036 # ac_fn_cxx_try_run LINENO
2037 # ------------------------
2038 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2039 # that executables *can* be run.
2040 ac_fn_cxx_try_run ()
2041 {
2042 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2043 if { { ac_try="$ac_link"
2044 case "(($ac_try" in
2045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2046 *) ac_try_echo=$ac_try;;
2047 esac
2048 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2049 $as_echo "$ac_try_echo"; } >&5
2050 (eval "$ac_link") 2>&5
2051 ac_status=$?
2052 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2053 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2054 { { case "(($ac_try" in
2055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2056 *) ac_try_echo=$ac_try;;
2057 esac
2058 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2059 $as_echo "$ac_try_echo"; } >&5
2060 (eval "$ac_try") 2>&5
2061 ac_status=$?
2062 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2063 test $ac_status = 0; }; }; then :
2064 ac_retval=0
2065 else
2066 $as_echo "$as_me: program exited with status $ac_status" >&5
2067 $as_echo "$as_me: failed program was:" >&5
2068 sed 's/^/| /' conftest.$ac_ext >&5
2069
2070 ac_retval=$ac_status
2071 fi
2072 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2073 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2074 return $ac_retval
2075
2076 } # ac_fn_cxx_try_run
2077
2078 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2079 # ---------------------------------------------------------
2080 # Tests whether HEADER exists and can be compiled using the include files in
2081 # INCLUDES, setting the cache variable VAR accordingly.
2082 ac_fn_cxx_check_header_compile ()
2083 {
2084 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2086 $as_echo_n "checking for $2... " >&6; }
2087 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2088 $as_echo_n "(cached) " >&6
2089 else
2090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2091 /* end confdefs.h. */
2092 $4
2093 #include <$2>
2094 _ACEOF
2095 if ac_fn_cxx_try_compile "$LINENO"; then :
2096 eval "$3=yes"
2097 else
2098 eval "$3=no"
2099 fi
2100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2101 fi
2102 eval ac_res=\$$3
2103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2104 $as_echo "$ac_res" >&6; }
2105 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2106
2107 } # ac_fn_cxx_check_header_compile
2108
2109 # ac_fn_c_try_cpp LINENO
2110 # ----------------------
2111 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2112 ac_fn_c_try_cpp ()
2113 {
2114 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2115 if { { ac_try="$ac_cpp conftest.$ac_ext"
2116 case "(($ac_try" in
2117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2118 *) ac_try_echo=$ac_try;;
2119 esac
2120 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2121 $as_echo "$ac_try_echo"; } >&5
2122 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2123 ac_status=$?
2124 if test -s conftest.err; then
2125 grep -v '^ *+' conftest.err >conftest.er1
2126 cat conftest.er1 >&5
2127 mv -f conftest.er1 conftest.err
2128 fi
2129 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2130 test $ac_status = 0; } >/dev/null && {
2131 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2132 test ! -s conftest.err
2133 }; then :
2134 ac_retval=0
2135 else
2136 $as_echo "$as_me: failed program was:" >&5
2137 sed 's/^/| /' conftest.$ac_ext >&5
2138
2139 ac_retval=1
2140 fi
2141 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2142 return $ac_retval
2143
2144 } # ac_fn_c_try_cpp
2145
2146 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2147 # ----------------------------------------------
2148 # Tries to find the compile-time value of EXPR in a program that includes
2149 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2150 # computed
2151 ac_fn_cxx_compute_int ()
2152 {
2153 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2154 if test "$cross_compiling" = yes; then
2155 # Depending upon the size, compute the lo and hi bounds.
2156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2157 /* end confdefs.h. */
2158 $4
2159 int
2160 main ()
2161 {
2162 static int test_array [1 - 2 * !(($2) >= 0)];
2163 test_array [0] = 0
2164
2165 ;
2166 return 0;
2167 }
2168 _ACEOF
2169 if ac_fn_cxx_try_compile "$LINENO"; then :
2170 ac_lo=0 ac_mid=0
2171 while :; do
2172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2173 /* end confdefs.h. */
2174 $4
2175 int
2176 main ()
2177 {
2178 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2179 test_array [0] = 0
2180
2181 ;
2182 return 0;
2183 }
2184 _ACEOF
2185 if ac_fn_cxx_try_compile "$LINENO"; then :
2186 ac_hi=$ac_mid; break
2187 else
2188 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2189 if test $ac_lo -le $ac_mid; then
2190 ac_lo= ac_hi=
2191 break
2192 fi
2193 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2194 fi
2195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2196 done
2197 else
2198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2199 /* end confdefs.h. */
2200 $4
2201 int
2202 main ()
2203 {
2204 static int test_array [1 - 2 * !(($2) < 0)];
2205 test_array [0] = 0
2206
2207 ;
2208 return 0;
2209 }
2210 _ACEOF
2211 if ac_fn_cxx_try_compile "$LINENO"; then :
2212 ac_hi=-1 ac_mid=-1
2213 while :; do
2214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2215 /* end confdefs.h. */
2216 $4
2217 int
2218 main ()
2219 {
2220 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2221 test_array [0] = 0
2222
2223 ;
2224 return 0;
2225 }
2226 _ACEOF
2227 if ac_fn_cxx_try_compile "$LINENO"; then :
2228 ac_lo=$ac_mid; break
2229 else
2230 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2231 if test $ac_mid -le $ac_hi; then
2232 ac_lo= ac_hi=
2233 break
2234 fi
2235 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2236 fi
2237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2238 done
2239 else
2240 ac_lo= ac_hi=
2241 fi
2242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2243 fi
2244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2245 # Binary search between lo and hi bounds.
2246 while test "x$ac_lo" != "x$ac_hi"; do
2247 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2249 /* end confdefs.h. */
2250 $4
2251 int
2252 main ()
2253 {
2254 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2255 test_array [0] = 0
2256
2257 ;
2258 return 0;
2259 }
2260 _ACEOF
2261 if ac_fn_cxx_try_compile "$LINENO"; then :
2262 ac_hi=$ac_mid
2263 else
2264 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2265 fi
2266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2267 done
2268 case $ac_lo in #((
2269 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2270 '') ac_retval=1 ;;
2271 esac
2272 else
2273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2274 /* end confdefs.h. */
2275 $4
2276 static long int longval () { return $2; }
2277 static unsigned long int ulongval () { return $2; }
2278 #include <stdio.h>
2279 #include <stdlib.h>
2280 int
2281 main ()
2282 {
2283
2284 FILE *f = fopen ("conftest.val", "w");
2285 if (! f)
2286 return 1;
2287 if (($2) < 0)
2288 {
2289 long int i = longval ();
2290 if (i != ($2))
2291 return 1;
2292 fprintf (f, "%ld", i);
2293 }
2294 else
2295 {
2296 unsigned long int i = ulongval ();
2297 if (i != ($2))
2298 return 1;
2299 fprintf (f, "%lu", i);
2300 }
2301 /* Do not output a trailing newline, as this causes \r\n confusion
2302 on some platforms. */
2303 return ferror (f) || fclose (f) != 0;
2304
2305 ;
2306 return 0;
2307 }
2308 _ACEOF
2309 if ac_fn_cxx_try_run "$LINENO"; then :
2310 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2311 else
2312 ac_retval=1
2313 fi
2314 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2315 conftest.$ac_objext conftest.beam conftest.$ac_ext
2316 rm -f conftest.val
2317
2318 fi
2319 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2320 return $ac_retval
2321
2322 } # ac_fn_cxx_compute_int
2323
2324 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2325 # ---------------------------------------------
2326 # Tests whether TYPE exists after having included INCLUDES, setting cache
2327 # variable VAR accordingly.
2328 ac_fn_cxx_check_type ()
2329 {
2330 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2332 $as_echo_n "checking for $2... " >&6; }
2333 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2334 $as_echo_n "(cached) " >&6
2335 else
2336 eval "$3=no"
2337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2338 /* end confdefs.h. */
2339 $4
2340 int
2341 main ()
2342 {
2343 if (sizeof ($2))
2344 return 0;
2345 ;
2346 return 0;
2347 }
2348 _ACEOF
2349 if ac_fn_cxx_try_compile "$LINENO"; then :
2350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2351 /* end confdefs.h. */
2352 $4
2353 int
2354 main ()
2355 {
2356 if (sizeof (($2)))
2357 return 0;
2358 ;
2359 return 0;
2360 }
2361 _ACEOF
2362 if ac_fn_cxx_try_compile "$LINENO"; then :
2363
2364 else
2365 eval "$3=yes"
2366 fi
2367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2368 fi
2369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2370 fi
2371 eval ac_res=\$$3
2372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2373 $as_echo "$ac_res" >&6; }
2374 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2375
2376 } # ac_fn_cxx_check_type
2377
2378 # ac_fn_c_find_intX_t LINENO BITS VAR
2379 # -----------------------------------
2380 # Finds a signed integer type with width BITS, setting cache variable VAR
2381 # accordingly.
2382 ac_fn_c_find_intX_t ()
2383 {
2384 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2386 $as_echo_n "checking for int$2_t... " >&6; }
2387 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2388 $as_echo_n "(cached) " >&6
2389 else
2390 eval "$3=no"
2391 for ac_type in int$2_t 'int' 'long int' \
2392 'long long int' 'short int' 'signed char'; do
2393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2394 /* end confdefs.h. */
2395 $ac_includes_default
2396 int
2397 main ()
2398 {
2399 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2400 test_array [0] = 0
2401
2402 ;
2403 return 0;
2404 }
2405 _ACEOF
2406 if ac_fn_cxx_try_compile "$LINENO"; then :
2407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2408 /* end confdefs.h. */
2409 $ac_includes_default
2410 int
2411 main ()
2412 {
2413 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2414 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2415 test_array [0] = 0
2416
2417 ;
2418 return 0;
2419 }
2420 _ACEOF
2421 if ac_fn_cxx_try_compile "$LINENO"; then :
2422
2423 else
2424 case $ac_type in #(
2425 int$2_t) :
2426 eval "$3=yes" ;; #(
2427 *) :
2428 eval "$3=\$ac_type" ;;
2429 esac
2430 fi
2431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2432 fi
2433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2434 eval as_val=\$$3
2435 if test "x$as_val" = x""no; then :
2436
2437 else
2438 break
2439 fi
2440 done
2441 fi
2442 eval ac_res=\$$3
2443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2444 $as_echo "$ac_res" >&6; }
2445 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2446
2447 } # ac_fn_c_find_intX_t
2448
2449 # ac_fn_cxx_try_link LINENO
2450 # -------------------------
2451 # Try to link conftest.$ac_ext, and return whether this succeeded.
2452 ac_fn_cxx_try_link ()
2453 {
2454 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2455 rm -f conftest.$ac_objext conftest$ac_exeext
2456 if { { ac_try="$ac_link"
2457 case "(($ac_try" in
2458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2459 *) ac_try_echo=$ac_try;;
2460 esac
2461 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2462 $as_echo "$ac_try_echo"; } >&5
2463 (eval "$ac_link") 2>conftest.err
2464 ac_status=$?
2465 if test -s conftest.err; then
2466 grep -v '^ *+' conftest.err >conftest.er1
2467 cat conftest.er1 >&5
2468 mv -f conftest.er1 conftest.err
2469 fi
2470 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2471 test $ac_status = 0; } && {
2472 test -z "$ac_cxx_werror_flag" ||
2473 test ! -s conftest.err
2474 } && test -s conftest$ac_exeext && {
2475 test "$cross_compiling" = yes ||
2476 $as_test_x conftest$ac_exeext
2477 }; then :
2478 ac_retval=0
2479 else
2480 $as_echo "$as_me: failed program was:" >&5
2481 sed 's/^/| /' conftest.$ac_ext >&5
2482
2483 ac_retval=1
2484 fi
2485 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2486 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2487 # interfere with the next link command; also delete a directory that is
2488 # left behind by Apple's compiler. We do this before executing the actions.
2489 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2490 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2491 return $ac_retval
2492
2493 } # ac_fn_cxx_try_link
2494
2495 # ac_fn_c_find_uintX_t LINENO BITS VAR
2496 # ------------------------------------
2497 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2498 # accordingly.
2499 ac_fn_c_find_uintX_t ()
2500 {
2501 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2503 $as_echo_n "checking for uint$2_t... " >&6; }
2504 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2505 $as_echo_n "(cached) " >&6
2506 else
2507 eval "$3=no"
2508 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2509 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2511 /* end confdefs.h. */
2512 $ac_includes_default
2513 int
2514 main ()
2515 {
2516 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2517 test_array [0] = 0
2518
2519 ;
2520 return 0;
2521 }
2522 _ACEOF
2523 if ac_fn_cxx_try_compile "$LINENO"; then :
2524 case $ac_type in #(
2525 uint$2_t) :
2526 eval "$3=yes" ;; #(
2527 *) :
2528 eval "$3=\$ac_type" ;;
2529 esac
2530 fi
2531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2532 eval as_val=\$$3
2533 if test "x$as_val" = x""no; then :
2534
2535 else
2536 break
2537 fi
2538 done
2539 fi
2540 eval ac_res=\$$3
2541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2542 $as_echo "$ac_res" >&6; }
2543 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2544
2545 } # ac_fn_c_find_uintX_t
2546
2547 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2548 # ------------------------------------------------
2549 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2550 ac_fn_cxx_check_header_preproc ()
2551 {
2552 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2554 $as_echo_n "checking for $2... " >&6; }
2555 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2556 $as_echo_n "(cached) " >&6
2557 else
2558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2559 /* end confdefs.h. */
2560 #include <$2>
2561 _ACEOF
2562 if ac_fn_cxx_try_cpp "$LINENO"; then :
2563 eval "$3=yes"
2564 else
2565 eval "$3=no"
2566 fi
2567 rm -f conftest.err conftest.$ac_ext
2568 fi
2569 eval ac_res=\$$3
2570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2571 $as_echo "$ac_res" >&6; }
2572 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2573
2574 } # ac_fn_cxx_check_header_preproc
2575
2576 # ac_fn_cxx_check_func LINENO FUNC VAR
2577 # ------------------------------------
2578 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2579 ac_fn_cxx_check_func ()
2580 {
2581 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2583 $as_echo_n "checking for $2... " >&6; }
2584 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2585 $as_echo_n "(cached) " >&6
2586 else
2587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2588 /* end confdefs.h. */
2589 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2590 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2591 #define $2 innocuous_$2
2592
2593 /* System header to define __stub macros and hopefully few prototypes,
2594 which can conflict with char $2 (); below.
2595 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2596 <limits.h> exists even on freestanding compilers. */
2597
2598 #ifdef __STDC__
2599 # include <limits.h>
2600 #else
2601 # include <assert.h>
2602 #endif
2603
2604 #undef $2
2605
2606 /* Override any GCC internal prototype to avoid an error.
2607 Use char because int might match the return type of a GCC
2608 builtin and then its argument prototype would still apply. */
2609 #ifdef __cplusplus
2610 extern "C"
2611 #endif
2612 char $2 ();
2613 /* The GNU C library defines this for functions which it implements
2614 to always fail with ENOSYS. Some functions are actually named
2615 something starting with __ and the normal name is an alias. */
2616 #if defined __stub_$2 || defined __stub___$2
2617 choke me
2618 #endif
2619
2620 int
2621 main ()
2622 {
2623 return $2 ();
2624 ;
2625 return 0;
2626 }
2627 _ACEOF
2628 if ac_fn_cxx_try_link "$LINENO"; then :
2629 eval "$3=yes"
2630 else
2631 eval "$3=no"
2632 fi
2633 rm -f core conftest.err conftest.$ac_objext \
2634 conftest$ac_exeext conftest.$ac_ext
2635 fi
2636 eval ac_res=\$$3
2637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2638 $as_echo "$ac_res" >&6; }
2639 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2640
2641 } # ac_fn_cxx_check_func
2642
2643 # ac_fn_cxx_check_decl LINENO SYMBOL VAR
2644 # --------------------------------------
2645 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2646 ac_fn_cxx_check_decl ()
2647 {
2648 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2649 as_decl_name=`echo $2|sed 's/ *(.*//'`
2650 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2652 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2653 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2654 $as_echo_n "(cached) " >&6
2655 else
2656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2657 /* end confdefs.h. */
2658 $4
2659 int
2660 main ()
2661 {
2662 #ifndef $as_decl_name
2663 #ifdef __cplusplus
2664 (void) $as_decl_use;
2665 #else
2666 (void) $as_decl_name;
2667 #endif
2668 #endif
2669
2670 ;
2671 return 0;
2672 }
2673 _ACEOF
2674 if ac_fn_cxx_try_compile "$LINENO"; then :
2675 eval "$3=yes"
2676 else
2677 eval "$3=no"
2678 fi
2679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2680 fi
2681 eval ac_res=\$$3
2682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2683 $as_echo "$ac_res" >&6; }
2684 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2685
2686 } # ac_fn_cxx_check_decl
2687
2688 # ac_fn_c_try_link LINENO
2689 # -----------------------
2690 # Try to link conftest.$ac_ext, and return whether this succeeded.
2691 ac_fn_c_try_link ()
2692 {
2693 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2694 rm -f conftest.$ac_objext conftest$ac_exeext
2695 if { { ac_try="$ac_link"
2696 case "(($ac_try" in
2697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2698 *) ac_try_echo=$ac_try;;
2699 esac
2700 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2701 $as_echo "$ac_try_echo"; } >&5
2702 (eval "$ac_link") 2>conftest.err
2703 ac_status=$?
2704 if test -s conftest.err; then
2705 grep -v '^ *+' conftest.err >conftest.er1
2706 cat conftest.er1 >&5
2707 mv -f conftest.er1 conftest.err
2708 fi
2709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2710 test $ac_status = 0; } && {
2711 test -z "$ac_c_werror_flag" ||
2712 test ! -s conftest.err
2713 } && test -s conftest$ac_exeext && {
2714 test "$cross_compiling" = yes ||
2715 $as_test_x conftest$ac_exeext
2716 }; then :
2717 ac_retval=0
2718 else
2719 $as_echo "$as_me: failed program was:" >&5
2720 sed 's/^/| /' conftest.$ac_ext >&5
2721
2722 ac_retval=1
2723 fi
2724 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2725 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2726 # interfere with the next link command; also delete a directory that is
2727 # left behind by Apple's compiler. We do this before executing the actions.
2728 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2729 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2730 return $ac_retval
2731
2732 } # ac_fn_c_try_link
2733
2734 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2735 # ----------------------------------------------
2736 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2737 ac_fn_c_check_header_preproc ()
2738 {
2739 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2741 $as_echo_n "checking for $2... " >&6; }
2742 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2743 $as_echo_n "(cached) " >&6
2744 else
2745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2746 /* end confdefs.h. */
2747 #include <$2>
2748 _ACEOF
2749 if ac_fn_c_try_cpp "$LINENO"; then :
2750 eval "$3=yes"
2751 else
2752 eval "$3=no"
2753 fi
2754 rm -f conftest.err conftest.$ac_ext
2755 fi
2756 eval ac_res=\$$3
2757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2758 $as_echo "$ac_res" >&6; }
2759 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2760
2761 } # ac_fn_c_check_header_preproc
2762
2763 # ac_fn_c_check_func LINENO FUNC VAR
2764 # ----------------------------------
2765 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2766 ac_fn_c_check_func ()
2767 {
2768 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2770 $as_echo_n "checking for $2... " >&6; }
2771 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2772 $as_echo_n "(cached) " >&6
2773 else
2774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2775 /* end confdefs.h. */
2776 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2777 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2778 #define $2 innocuous_$2
2779
2780 /* System header to define __stub macros and hopefully few prototypes,
2781 which can conflict with char $2 (); below.
2782 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2783 <limits.h> exists even on freestanding compilers. */
2784
2785 #ifdef __STDC__
2786 # include <limits.h>
2787 #else
2788 # include <assert.h>
2789 #endif
2790
2791 #undef $2
2792
2793 /* Override any GCC internal prototype to avoid an error.
2794 Use char because int might match the return type of a GCC
2795 builtin and then its argument prototype would still apply. */
2796 #ifdef __cplusplus
2797 extern "C"
2798 #endif
2799 char $2 ();
2800 /* The GNU C library defines this for functions which it implements
2801 to always fail with ENOSYS. Some functions are actually named
2802 something starting with __ and the normal name is an alias. */
2803 #if defined __stub_$2 || defined __stub___$2
2804 choke me
2805 #endif
2806
2807 int
2808 main ()
2809 {
2810 return $2 ();
2811 ;
2812 return 0;
2813 }
2814 _ACEOF
2815 if ac_fn_c_try_link "$LINENO"; then :
2816 eval "$3=yes"
2817 else
2818 eval "$3=no"
2819 fi
2820 rm -f core conftest.err conftest.$ac_objext \
2821 conftest$ac_exeext conftest.$ac_ext
2822 fi
2823 eval ac_res=\$$3
2824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2825 $as_echo "$ac_res" >&6; }
2826 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2827
2828 } # ac_fn_c_check_func
2829 cat >config.log <<_ACEOF
2830 This file contains any messages produced by compilers while
2831 running configure, to aid debugging if configure makes a mistake.
2832
2833 It was created by $as_me, which was
2834 generated by GNU Autoconf 2.64. Invocation command line was
2835
2836 $ $0 $@
2837
2838 _ACEOF
2839 exec 5>>config.log
2840 {
2841 cat <<_ASUNAME
2842 ## --------- ##
2843 ## Platform. ##
2844 ## --------- ##
2845
2846 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2847 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2848 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2849 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2850 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2851
2852 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2853 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2854
2855 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2856 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2857 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2858 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2859 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2860 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2861 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2862
2863 _ASUNAME
2864
2865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2866 for as_dir in $PATH
2867 do
2868 IFS=$as_save_IFS
2869 test -z "$as_dir" && as_dir=.
2870 $as_echo "PATH: $as_dir"
2871 done
2872 IFS=$as_save_IFS
2873
2874 } >&5
2875
2876 cat >&5 <<_ACEOF
2877
2878
2879 ## ----------- ##
2880 ## Core tests. ##
2881 ## ----------- ##
2882
2883 _ACEOF
2884
2885
2886 # Keep a trace of the command line.
2887 # Strip out --no-create and --no-recursion so they do not pile up.
2888 # Strip out --silent because we don't want to record it for future runs.
2889 # Also quote any args containing shell meta-characters.
2890 # Make two passes to allow for proper duplicate-argument suppression.
2891 ac_configure_args=
2892 ac_configure_args0=
2893 ac_configure_args1=
2894 ac_must_keep_next=false
2895 for ac_pass in 1 2
2896 do
2897 for ac_arg
2898 do
2899 case $ac_arg in
2900 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2901 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2902 | -silent | --silent | --silen | --sile | --sil)
2903 continue ;;
2904 *\'*)
2905 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2906 esac
2907 case $ac_pass in
2908 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2909 2)
2910 as_fn_append ac_configure_args1 " '$ac_arg'"
2911 if test $ac_must_keep_next = true; then
2912 ac_must_keep_next=false # Got value, back to normal.
2913 else
2914 case $ac_arg in
2915 *=* | --config-cache | -C | -disable-* | --disable-* \
2916 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2917 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2918 | -with-* | --with-* | -without-* | --without-* | --x)
2919 case "$ac_configure_args0 " in
2920 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2921 esac
2922 ;;
2923 -* ) ac_must_keep_next=true ;;
2924 esac
2925 fi
2926 as_fn_append ac_configure_args " '$ac_arg'"
2927 ;;
2928 esac
2929 done
2930 done
2931 { ac_configure_args0=; unset ac_configure_args0;}
2932 { ac_configure_args1=; unset ac_configure_args1;}
2933
2934 # When interrupted or exit'd, cleanup temporary files, and complete
2935 # config.log. We remove comments because anyway the quotes in there
2936 # would cause problems or look ugly.
2937 # WARNING: Use '\'' to represent an apostrophe within the trap.
2938 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2939 trap 'exit_status=$?
2940 # Save into config.log some information that might help in debugging.
2941 {
2942 echo
2943
2944 cat <<\_ASBOX
2945 ## ---------------- ##
2946 ## Cache variables. ##
2947 ## ---------------- ##
2948 _ASBOX
2949 echo
2950 # The following way of writing the cache mishandles newlines in values,
2951 (
2952 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2953 eval ac_val=\$$ac_var
2954 case $ac_val in #(
2955 *${as_nl}*)
2956 case $ac_var in #(
2957 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2958 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2959 esac
2960 case $ac_var in #(
2961 _ | IFS | as_nl) ;; #(
2962 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2963 *) { eval $ac_var=; unset $ac_var;} ;;
2964 esac ;;
2965 esac
2966 done
2967 (set) 2>&1 |
2968 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2969 *${as_nl}ac_space=\ *)
2970 sed -n \
2971 "s/'\''/'\''\\\\'\'''\''/g;
2972 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2973 ;; #(
2974 *)
2975 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2976 ;;
2977 esac |
2978 sort
2979 )
2980 echo
2981
2982 cat <<\_ASBOX
2983 ## ----------------- ##
2984 ## Output variables. ##
2985 ## ----------------- ##
2986 _ASBOX
2987 echo
2988 for ac_var in $ac_subst_vars
2989 do
2990 eval ac_val=\$$ac_var
2991 case $ac_val in
2992 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2993 esac
2994 $as_echo "$ac_var='\''$ac_val'\''"
2995 done | sort
2996 echo
2997
2998 if test -n "$ac_subst_files"; then
2999 cat <<\_ASBOX
3000 ## ------------------- ##
3001 ## File substitutions. ##
3002 ## ------------------- ##
3003 _ASBOX
3004 echo
3005 for ac_var in $ac_subst_files
3006 do
3007 eval ac_val=\$$ac_var
3008 case $ac_val in
3009 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3010 esac
3011 $as_echo "$ac_var='\''$ac_val'\''"
3012 done | sort
3013 echo
3014 fi
3015
3016 if test -s confdefs.h; then
3017 cat <<\_ASBOX
3018 ## ----------- ##
3019 ## confdefs.h. ##
3020 ## ----------- ##
3021 _ASBOX
3022 echo
3023 cat confdefs.h
3024 echo
3025 fi
3026 test "$ac_signal" != 0 &&
3027 $as_echo "$as_me: caught signal $ac_signal"
3028 $as_echo "$as_me: exit $exit_status"
3029 } >&5
3030 rm -f core *.core core.conftest.* &&
3031 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3032 exit $exit_status
3033 ' 0
3034 for ac_signal in 1 2 13 15; do
3035 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3036 done
3037 ac_signal=0
3038
3039 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3040 rm -f -r conftest* confdefs.h
3041
3042 $as_echo "/* confdefs.h */" > confdefs.h
3043
3044 # Predefined preprocessor variables.
3045
3046 cat >>confdefs.h <<_ACEOF
3047 #define PACKAGE_NAME "$PACKAGE_NAME"
3048 _ACEOF
3049
3050 cat >>confdefs.h <<_ACEOF
3051 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3052 _ACEOF
3053
3054 cat >>confdefs.h <<_ACEOF
3055 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3056 _ACEOF
3057
3058 cat >>confdefs.h <<_ACEOF
3059 #define PACKAGE_STRING "$PACKAGE_STRING"
3060 _ACEOF
3061
3062 cat >>confdefs.h <<_ACEOF
3063 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3064 _ACEOF
3065
3066 cat >>confdefs.h <<_ACEOF
3067 #define PACKAGE_URL "$PACKAGE_URL"
3068 _ACEOF
3069
3070
3071 # Let the site file select an alternate cache file if it wants to.
3072 # Prefer an explicitly selected file to automatically selected ones.
3073 ac_site_file1=NONE
3074 ac_site_file2=NONE
3075 if test -n "$CONFIG_SITE"; then
3076 ac_site_file1=$CONFIG_SITE
3077 elif test "x$prefix" != xNONE; then
3078 ac_site_file1=$prefix/share/config.site
3079 ac_site_file2=$prefix/etc/config.site
3080 else
3081 ac_site_file1=$ac_default_prefix/share/config.site
3082 ac_site_file2=$ac_default_prefix/etc/config.site
3083 fi
3084 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3085 do
3086 test "x$ac_site_file" = xNONE && continue
3087 if test -r "$ac_site_file"; then
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3089 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3090 sed 's/^/| /' "$ac_site_file" >&5
3091 . "$ac_site_file"
3092 fi
3093 done
3094
3095 if test -r "$cache_file"; then
3096 # Some versions of bash will fail to source /dev/null (special
3097 # files actually), so we avoid doing that.
3098 if test -f "$cache_file"; then
3099 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3100 $as_echo "$as_me: loading cache $cache_file" >&6;}
3101 case $cache_file in
3102 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3103 *) . "./$cache_file";;
3104 esac
3105 fi
3106 else
3107 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3108 $as_echo "$as_me: creating cache $cache_file" >&6;}
3109 >$cache_file
3110 fi
3111
3112 # Check that the precious variables saved in the cache have kept the same
3113 # value.
3114 ac_cache_corrupted=false
3115 for ac_var in $ac_precious_vars; do
3116 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3117 eval ac_new_set=\$ac_env_${ac_var}_set
3118 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3119 eval ac_new_val=\$ac_env_${ac_var}_value
3120 case $ac_old_set,$ac_new_set in
3121 set,)
3122 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3123 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3124 ac_cache_corrupted=: ;;
3125 ,set)
3126 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3127 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3128 ac_cache_corrupted=: ;;
3129 ,);;
3130 *)
3131 if test "x$ac_old_val" != "x$ac_new_val"; then
3132 # differences in whitespace do not lead to failure.
3133 ac_old_val_w=`echo x $ac_old_val`
3134 ac_new_val_w=`echo x $ac_new_val`
3135 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3136 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3137 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3138 ac_cache_corrupted=:
3139 else
3140 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3141 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3142 eval $ac_var=\$ac_old_val
3143 fi
3144 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3145 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3146 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3147 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3148 fi;;
3149 esac
3150 # Pass precious variables to config.status.
3151 if test "$ac_new_set" = set; then
3152 case $ac_new_val in
3153 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3154 *) ac_arg=$ac_var=$ac_new_val ;;
3155 esac
3156 case " $ac_configure_args " in
3157 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3158 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3159 esac
3160 fi
3161 done
3162 if $ac_cache_corrupted; then
3163 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3164 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3165 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3166 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3167 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3168 fi
3169 ## -------------------- ##
3170 ## Main body of script. ##
3171 ## -------------------- ##
3172
3173 ac_ext=c
3174 ac_cpp='$CPP $CPPFLAGS'
3175 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3176 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3177 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3178
3179
3180
3181
3182
3183
3184 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3185
3186
3187 gcc_version=`cat $srcdir/BASE-VER`
3188
3189 # Determine the host, build, and target systems
3190 ac_aux_dir=
3191 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3192 for ac_t in install-sh install.sh shtool; do
3193 if test -f "$ac_dir/$ac_t"; then
3194 ac_aux_dir=$ac_dir
3195 ac_install_sh="$ac_aux_dir/$ac_t -c"
3196 break 2
3197 fi
3198 done
3199 done
3200 if test -z "$ac_aux_dir"; then
3201 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3202 fi
3203
3204 # These three variables are undocumented and unsupported,
3205 # and are intended to be withdrawn in a future Autoconf release.
3206 # They can cause serious problems if a builder's source tree is in a directory
3207 # whose full name contains unusual characters.
3208 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3209 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3210 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3211
3212
3213 # Make sure we can run config.sub.
3214 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3215 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3216
3217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3218 $as_echo_n "checking build system type... " >&6; }
3219 if test "${ac_cv_build+set}" = set; then :
3220 $as_echo_n "(cached) " >&6
3221 else
3222 ac_build_alias=$build_alias
3223 test "x$ac_build_alias" = x &&
3224 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3225 test "x$ac_build_alias" = x &&
3226 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3227 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3228 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3229
3230 fi
3231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3232 $as_echo "$ac_cv_build" >&6; }
3233 case $ac_cv_build in
3234 *-*-*) ;;
3235 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3236 esac
3237 build=$ac_cv_build
3238 ac_save_IFS=$IFS; IFS='-'
3239 set x $ac_cv_build
3240 shift
3241 build_cpu=$1
3242 build_vendor=$2
3243 shift; shift
3244 # Remember, the first character of IFS is used to create $*,
3245 # except with old shells:
3246 build_os=$*
3247 IFS=$ac_save_IFS
3248 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3249
3250
3251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3252 $as_echo_n "checking host system type... " >&6; }
3253 if test "${ac_cv_host+set}" = set; then :
3254 $as_echo_n "(cached) " >&6
3255 else
3256 if test "x$host_alias" = x; then
3257 ac_cv_host=$ac_cv_build
3258 else
3259 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3260 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3261 fi
3262
3263 fi
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3265 $as_echo "$ac_cv_host" >&6; }
3266 case $ac_cv_host in
3267 *-*-*) ;;
3268 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3269 esac
3270 host=$ac_cv_host
3271 ac_save_IFS=$IFS; IFS='-'
3272 set x $ac_cv_host
3273 shift
3274 host_cpu=$1
3275 host_vendor=$2
3276 shift; shift
3277 # Remember, the first character of IFS is used to create $*,
3278 # except with old shells:
3279 host_os=$*
3280 IFS=$ac_save_IFS
3281 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3282
3283
3284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3285 $as_echo_n "checking target system type... " >&6; }
3286 if test "${ac_cv_target+set}" = set; then :
3287 $as_echo_n "(cached) " >&6
3288 else
3289 if test "x$target_alias" = x; then
3290 ac_cv_target=$ac_cv_host
3291 else
3292 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3293 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3294 fi
3295
3296 fi
3297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3298 $as_echo "$ac_cv_target" >&6; }
3299 case $ac_cv_target in
3300 *-*-*) ;;
3301 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3302 esac
3303 target=$ac_cv_target
3304 ac_save_IFS=$IFS; IFS='-'
3305 set x $ac_cv_target
3306 shift
3307 target_cpu=$1
3308 target_vendor=$2
3309 shift; shift
3310 # Remember, the first character of IFS is used to create $*,
3311 # except with old shells:
3312 target_os=$*
3313 IFS=$ac_save_IFS
3314 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3315
3316
3317 # The aliases save the names the user supplied, while $host etc.
3318 # will get canonicalized.
3319 test -n "$target_alias" &&
3320 test "$program_prefix$program_suffix$program_transform_name" = \
3321 NONENONEs,x,x, &&
3322 program_prefix=${target_alias}-
3323
3324 # Determine the noncanonical target name, for directory use.
3325 case ${build_alias} in
3326 "") build_noncanonical=${build} ;;
3327 *) build_noncanonical=${build_alias} ;;
3328 esac
3329
3330 case ${host_alias} in
3331 "") host_noncanonical=${build_noncanonical} ;;
3332 *) host_noncanonical=${host_alias} ;;
3333 esac
3334
3335 case ${target_alias} in
3336 "") target_noncanonical=${host_noncanonical} ;;
3337 *) target_noncanonical=${target_alias} ;;
3338 esac
3339
3340
3341
3342
3343 # Used for constructing correct paths for offload compilers.
3344 real_target_noncanonical=${target_noncanonical}
3345 accel_dir_suffix=
3346
3347 # Determine the target- and build-specific subdirectories
3348
3349 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3350 # have matching libraries, they should use host libraries: Makefile.tpl
3351 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3352 # However, they still use the build modules, because the corresponding
3353 # host modules (e.g. bison) are only built for the host when bootstrap
3354 # finishes. So:
3355 # - build_subdir is where we find build modules, and never changes.
3356 # - build_libsubdir is where we find build libraries, and can be overridden.
3357
3358 # Prefix 'build-' so this never conflicts with target_subdir.
3359 build_subdir="build-${build_noncanonical}"
3360
3361 # Check whether --with-build-libsubdir was given.
3362 if test "${with_build_libsubdir+set}" = set; then :
3363 withval=$with_build_libsubdir; build_libsubdir="$withval"
3364 else
3365 build_libsubdir="$build_subdir"
3366 fi
3367
3368 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3369 if ( test $srcdir = . && test -d gcc ) \
3370 || test -d $srcdir/../host-${host_noncanonical}; then
3371 host_subdir="host-${host_noncanonical}"
3372 else
3373 host_subdir=.
3374 fi
3375 # No prefix.
3376 target_subdir=${target_noncanonical}
3377
3378
3379 # Set program_transform_name
3380 test "$program_prefix" != NONE &&
3381 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3382 # Use a double $ so make ignores it.
3383 test "$program_suffix" != NONE &&
3384 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3385 # Double any \ or $.
3386 # By default was `s,x,x', remove it if useless.
3387 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3388 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3389
3390
3391 # Check for bogus environment variables.
3392 # Test if LIBRARY_PATH contains the notation for the current directory
3393 # since this would lead to problems installing/building glibc.
3394 # LIBRARY_PATH contains the current directory if one of the following
3395 # is true:
3396 # - one of the terminals (":" and ";") is the first or last sign
3397 # - two terminals occur directly after each other
3398 # - the path contains an element with a dot in it
3399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3400 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3401 case ${LIBRARY_PATH} in
3402 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3403 library_path_setting="contains current directory"
3404 ;;
3405 *)
3406 library_path_setting="ok"
3407 ;;
3408 esac
3409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3410 $as_echo "$library_path_setting" >&6; }
3411 if test "$library_path_setting" != "ok"; then
3412 as_fn_error "
3413 *** LIBRARY_PATH shouldn't contain the current directory when
3414 *** building gcc. Please change the environment variable
3415 *** and run configure again." "$LINENO" 5
3416 fi
3417
3418 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3419 # since this would lead to problems installing/building glibc.
3420 # GCC_EXEC_PREFIX contains the current directory if one of the following
3421 # is true:
3422 # - one of the terminals (":" and ";") is the first or last sign
3423 # - two terminals occur directly after each other
3424 # - the path contains an element with a dot in it
3425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3426 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3427 case ${GCC_EXEC_PREFIX} in
3428 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3429 gcc_exec_prefix_setting="contains current directory"
3430 ;;
3431 *)
3432 gcc_exec_prefix_setting="ok"
3433 ;;
3434 esac
3435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3436 $as_echo "$gcc_exec_prefix_setting" >&6; }
3437 if test "$gcc_exec_prefix_setting" != "ok"; then
3438 as_fn_error "
3439 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3440 *** building gcc. Please change the environment variable
3441 *** and run configure again." "$LINENO" 5
3442 fi
3443
3444 # -----------
3445 # Directories
3446 # -----------
3447
3448 # Specify the local prefix
3449 local_prefix=
3450
3451 # Check whether --with-local-prefix was given.
3452 if test "${with_local_prefix+set}" = set; then :
3453 withval=$with_local_prefix; case "${withval}" in
3454 yes) as_fn_error "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3455 no) ;;
3456 *) local_prefix=$with_local_prefix ;;
3457 esac
3458 fi
3459
3460
3461 # Default local prefix if it is empty
3462 if test x$local_prefix = x; then
3463 local_prefix=/usr/local
3464 fi
3465
3466
3467 # Check whether --with-native-system-header-dir was given.
3468 if test "${with_native_system_header_dir+set}" = set; then :
3469 withval=$with_native_system_header_dir;
3470 case ${with_native_system_header_dir} in
3471 yes|no) as_fn_error "bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
3472 /* | [A-Za-z]:[\\/]*) ;;
3473 *) as_fn_error "--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
3474 esac
3475 configured_native_system_header_dir="${withval}"
3476
3477 else
3478 configured_native_system_header_dir=
3479 fi
3480
3481
3482
3483 # Check whether --with-build-sysroot was given.
3484 if test "${with_build_sysroot+set}" = set; then :
3485 withval=$with_build_sysroot; if test x"$withval" != x ; then
3486 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
3487 fi
3488 else
3489 SYSROOT_CFLAGS_FOR_TARGET=
3490 fi
3491
3492
3493
3494 if test "x$prefix" = xNONE; then
3495 test_prefix=/usr/local
3496 else
3497 test_prefix=$prefix
3498 fi
3499 if test "x$exec_prefix" = xNONE; then
3500 test_exec_prefix=$test_prefix
3501 else
3502 test_exec_prefix=$exec_prefix
3503 fi
3504
3505
3506 # Check whether --with-sysroot was given.
3507 if test "${with_sysroot+set}" = set; then :
3508 withval=$with_sysroot;
3509 case ${with_sysroot} in
3510 /) ;;
3511 */) with_sysroot=`echo $with_sysroot | sed 's,/$,,'` ;;
3512 esac
3513 case ${with_sysroot} in
3514 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
3515 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
3516 esac
3517
3518 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
3519 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
3520
3521 case ${TARGET_SYSTEM_ROOT} in
3522 "${test_prefix}"|"${test_prefix}/"*|\
3523 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
3524 '${prefix}'|'${prefix}/'*|\
3525 '${exec_prefix}'|'${exec_prefix}/'*)
3526 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
3527 TARGET_SYSTEM_ROOT_DEFINE="$t"
3528 ;;
3529 esac
3530
3531 else
3532
3533 TARGET_SYSTEM_ROOT=
3534 TARGET_SYSTEM_ROOT_DEFINE=
3535 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
3536
3537 fi
3538
3539
3540
3541
3542
3543 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3544 # passed in by the toplevel make and thus we'd get different behavior
3545 # depending on where we built the sources.
3546 gcc_gxx_include_dir=
3547 # Specify the g++ header file directory
3548
3549 # Check whether --with-gxx-include-dir was given.
3550 if test "${with_gxx_include_dir+set}" = set; then :
3551 withval=$with_gxx_include_dir; case "${withval}" in
3552 yes) as_fn_error "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3553 no) ;;
3554 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
3555 esac
3556 fi
3557
3558
3559 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3560 if test x${gcc_gxx_include_dir} = x; then
3561 if test x${enable_version_specific_runtime_libs} = xyes; then
3562 gcc_gxx_include_dir='${libsubdir}/include/c++'
3563 else
3564 libstdcxx_incdir='include/c++/$(version)'
3565 if test x$host != x$target; then
3566 libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3567 fi
3568 gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3569 fi
3570 fi
3571
3572 gcc_gxx_include_dir_add_sysroot=0
3573 if test "${with_sysroot+set}" = set; then
3574 gcc_gxx_without_sysroot=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3575 if test "${gcc_gxx_without_sysroot}"; then
3576 if test x${with_sysroot} != x/; then
3577 gcc_gxx_include_dir="${gcc_gxx_without_sysroot}"
3578 fi
3579 gcc_gxx_include_dir_add_sysroot=1
3580 fi
3581 fi
3582
3583
3584 # Check whether --with-cpp_install_dir was given.
3585 if test "${with_cpp_install_dir+set}" = set; then :
3586 withval=$with_cpp_install_dir; if test x$withval = xyes; then
3587 as_fn_error "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3588 elif test x$withval != xno; then
3589 cpp_install_dir=$withval
3590 fi
3591 fi
3592
3593
3594 # We would like to our source tree to be readonly. However when releases or
3595 # pre-releases are generated, the flex/bison generated files as well as the
3596 # various formats of manuals need to be included along with the rest of the
3597 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3598 # just that.
3599
3600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3601 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3602 # Check whether --enable-generated-files-in-srcdir was given.
3603 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3604 enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3605 else
3606 generated_files_in_srcdir=no
3607 fi
3608
3609
3610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3611 $as_echo "$generated_files_in_srcdir" >&6; }
3612
3613 if test "$generated_files_in_srcdir" = "yes"; then
3614 GENINSRC=''
3615 else
3616 GENINSRC='#'
3617 fi
3618
3619
3620 # -------------------
3621 # Find default linker
3622 # -------------------
3623
3624 # With GNU ld
3625
3626 # Check whether --with-gnu-ld was given.
3627 if test "${with_gnu_ld+set}" = set; then :
3628 withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3629 else
3630 gnu_ld_flag=no
3631 fi
3632
3633
3634 # With pre-defined ld
3635
3636 # Check whether --with-ld was given.
3637 if test "${with_ld+set}" = set; then :
3638 withval=$with_ld; DEFAULT_LINKER="$with_ld"
3639 fi
3640
3641 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3642 if test ! -x "$DEFAULT_LINKER"; then
3643 as_fn_error "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3644 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3645 gnu_ld_flag=yes
3646 fi
3647
3648 cat >>confdefs.h <<_ACEOF
3649 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3650 _ACEOF
3651
3652 fi
3653
3654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3655 $as_echo_n "checking whether a default linker was specified... " >&6; }
3656 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3657 if test x"$gnu_ld_flag" = x"no"; then
3658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3659 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3660 else
3661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3662 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3663 fi
3664 else
3665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3666 $as_echo "no" >&6; }
3667 fi
3668
3669 # With demangler in GNU ld
3670
3671 # Check whether --with-demangler-in-ld was given.
3672 if test "${with_demangler_in_ld+set}" = set; then :
3673 withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3674 else
3675 demangler_in_ld=yes
3676 fi
3677
3678
3679 # ----------------------
3680 # Find default assembler
3681 # ----------------------
3682
3683 # With GNU as
3684
3685 # Check whether --with-gnu-as was given.
3686 if test "${with_gnu_as+set}" = set; then :
3687 withval=$with_gnu_as; gas_flag="$with_gnu_as"
3688 else
3689 gas_flag=no
3690 fi
3691
3692
3693
3694 # Check whether --with-as was given.
3695 if test "${with_as+set}" = set; then :
3696 withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
3697 fi
3698
3699 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3700 if test ! -x "$DEFAULT_ASSEMBLER"; then
3701 as_fn_error "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3702 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3703 gas_flag=yes
3704 fi
3705
3706 cat >>confdefs.h <<_ACEOF
3707 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3708 _ACEOF
3709
3710 fi
3711
3712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3713 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3714 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3715 if test x"$gas_flag" = x"no"; then
3716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3717 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3718 else
3719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3720 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3721 fi
3722 else
3723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3724 $as_echo "no" >&6; }
3725 fi
3726
3727 # ---------------
3728 # Find C compiler
3729 # ---------------
3730
3731 # If a non-executable a.out is present (e.g. created by GNU as above even if
3732 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3733 # file, even when creating an executable, so an execution test fails.
3734 # Remove possible default executable files to avoid this.
3735 #
3736 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3737 # Autoconf includes it.
3738 rm -f a.out a.exe b.out
3739
3740 # Find the native compiler
3741 ac_ext=c
3742 ac_cpp='$CPP $CPPFLAGS'
3743 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3744 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3745 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3746 if test -n "$ac_tool_prefix"; then
3747 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3748 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3750 $as_echo_n "checking for $ac_word... " >&6; }
3751 if test "${ac_cv_prog_CC+set}" = set; then :
3752 $as_echo_n "(cached) " >&6
3753 else
3754 if test -n "$CC"; then
3755 ac_cv_prog_CC="$CC" # Let the user override the test.
3756 else
3757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3758 for as_dir in $PATH
3759 do
3760 IFS=$as_save_IFS
3761 test -z "$as_dir" && as_dir=.
3762 for ac_exec_ext in '' $ac_executable_extensions; do
3763 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3764 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3766 break 2
3767 fi
3768 done
3769 done
3770 IFS=$as_save_IFS
3771
3772 fi
3773 fi
3774 CC=$ac_cv_prog_CC
3775 if test -n "$CC"; then
3776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3777 $as_echo "$CC" >&6; }
3778 else
3779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3780 $as_echo "no" >&6; }
3781 fi
3782
3783
3784 fi
3785 if test -z "$ac_cv_prog_CC"; then
3786 ac_ct_CC=$CC
3787 # Extract the first word of "gcc", so it can be a program name with args.
3788 set dummy gcc; ac_word=$2
3789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3790 $as_echo_n "checking for $ac_word... " >&6; }
3791 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3792 $as_echo_n "(cached) " >&6
3793 else
3794 if test -n "$ac_ct_CC"; then
3795 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3796 else
3797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3798 for as_dir in $PATH
3799 do
3800 IFS=$as_save_IFS
3801 test -z "$as_dir" && as_dir=.
3802 for ac_exec_ext in '' $ac_executable_extensions; do
3803 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3804 ac_cv_prog_ac_ct_CC="gcc"
3805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3806 break 2
3807 fi
3808 done
3809 done
3810 IFS=$as_save_IFS
3811
3812 fi
3813 fi
3814 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3815 if test -n "$ac_ct_CC"; then
3816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3817 $as_echo "$ac_ct_CC" >&6; }
3818 else
3819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3820 $as_echo "no" >&6; }
3821 fi
3822
3823 if test "x$ac_ct_CC" = x; then
3824 CC=""
3825 else
3826 case $cross_compiling:$ac_tool_warned in
3827 yes:)
3828 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3829 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3830 ac_tool_warned=yes ;;
3831 esac
3832 CC=$ac_ct_CC
3833 fi
3834 else
3835 CC="$ac_cv_prog_CC"
3836 fi
3837
3838 if test -z "$CC"; then
3839 if test -n "$ac_tool_prefix"; then
3840 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3841 set dummy ${ac_tool_prefix}cc; ac_word=$2
3842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3843 $as_echo_n "checking for $ac_word... " >&6; }
3844 if test "${ac_cv_prog_CC+set}" = set; then :
3845 $as_echo_n "(cached) " >&6
3846 else
3847 if test -n "$CC"; then
3848 ac_cv_prog_CC="$CC" # Let the user override the test.
3849 else
3850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3851 for as_dir in $PATH
3852 do
3853 IFS=$as_save_IFS
3854 test -z "$as_dir" && as_dir=.
3855 for ac_exec_ext in '' $ac_executable_extensions; do
3856 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3857 ac_cv_prog_CC="${ac_tool_prefix}cc"
3858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3859 break 2
3860 fi
3861 done
3862 done
3863 IFS=$as_save_IFS
3864
3865 fi
3866 fi
3867 CC=$ac_cv_prog_CC
3868 if test -n "$CC"; then
3869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3870 $as_echo "$CC" >&6; }
3871 else
3872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3873 $as_echo "no" >&6; }
3874 fi
3875
3876
3877 fi
3878 fi
3879 if test -z "$CC"; then
3880 # Extract the first word of "cc", so it can be a program name with args.
3881 set dummy cc; ac_word=$2
3882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3883 $as_echo_n "checking for $ac_word... " >&6; }
3884 if test "${ac_cv_prog_CC+set}" = set; then :
3885 $as_echo_n "(cached) " >&6
3886 else
3887 if test -n "$CC"; then
3888 ac_cv_prog_CC="$CC" # Let the user override the test.
3889 else
3890 ac_prog_rejected=no
3891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3892 for as_dir in $PATH
3893 do
3894 IFS=$as_save_IFS
3895 test -z "$as_dir" && as_dir=.
3896 for ac_exec_ext in '' $ac_executable_extensions; do
3897 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3898 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3899 ac_prog_rejected=yes
3900 continue
3901 fi
3902 ac_cv_prog_CC="cc"
3903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3904 break 2
3905 fi
3906 done
3907 done
3908 IFS=$as_save_IFS
3909
3910 if test $ac_prog_rejected = yes; then
3911 # We found a bogon in the path, so make sure we never use it.
3912 set dummy $ac_cv_prog_CC
3913 shift
3914 if test $# != 0; then
3915 # We chose a different compiler from the bogus one.
3916 # However, it has the same basename, so the bogon will be chosen
3917 # first if we set CC to just the basename; use the full file name.
3918 shift
3919 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3920 fi
3921 fi
3922 fi
3923 fi
3924 CC=$ac_cv_prog_CC
3925 if test -n "$CC"; then
3926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3927 $as_echo "$CC" >&6; }
3928 else
3929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3930 $as_echo "no" >&6; }
3931 fi
3932
3933
3934 fi
3935 if test -z "$CC"; then
3936 if test -n "$ac_tool_prefix"; then
3937 for ac_prog in cl.exe
3938 do
3939 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3940 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3942 $as_echo_n "checking for $ac_word... " >&6; }
3943 if test "${ac_cv_prog_CC+set}" = set; then :
3944 $as_echo_n "(cached) " >&6
3945 else
3946 if test -n "$CC"; then
3947 ac_cv_prog_CC="$CC" # Let the user override the test.
3948 else
3949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3950 for as_dir in $PATH
3951 do
3952 IFS=$as_save_IFS
3953 test -z "$as_dir" && as_dir=.
3954 for ac_exec_ext in '' $ac_executable_extensions; do
3955 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3956 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3958 break 2
3959 fi
3960 done
3961 done
3962 IFS=$as_save_IFS
3963
3964 fi
3965 fi
3966 CC=$ac_cv_prog_CC
3967 if test -n "$CC"; then
3968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3969 $as_echo "$CC" >&6; }
3970 else
3971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3972 $as_echo "no" >&6; }
3973 fi
3974
3975
3976 test -n "$CC" && break
3977 done
3978 fi
3979 if test -z "$CC"; then
3980 ac_ct_CC=$CC
3981 for ac_prog in cl.exe
3982 do
3983 # Extract the first word of "$ac_prog", so it can be a program name with args.
3984 set dummy $ac_prog; ac_word=$2
3985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3986 $as_echo_n "checking for $ac_word... " >&6; }
3987 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3988 $as_echo_n "(cached) " >&6
3989 else
3990 if test -n "$ac_ct_CC"; then
3991 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3992 else
3993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3994 for as_dir in $PATH
3995 do
3996 IFS=$as_save_IFS
3997 test -z "$as_dir" && as_dir=.
3998 for ac_exec_ext in '' $ac_executable_extensions; do
3999 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4000 ac_cv_prog_ac_ct_CC="$ac_prog"
4001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4002 break 2
4003 fi
4004 done
4005 done
4006 IFS=$as_save_IFS
4007
4008 fi
4009 fi
4010 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4011 if test -n "$ac_ct_CC"; then
4012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4013 $as_echo "$ac_ct_CC" >&6; }
4014 else
4015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4016 $as_echo "no" >&6; }
4017 fi
4018
4019
4020 test -n "$ac_ct_CC" && break
4021 done
4022
4023 if test "x$ac_ct_CC" = x; then
4024 CC=""
4025 else
4026 case $cross_compiling:$ac_tool_warned in
4027 yes:)
4028 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4029 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4030 ac_tool_warned=yes ;;
4031 esac
4032 CC=$ac_ct_CC
4033 fi
4034 fi
4035
4036 fi
4037
4038
4039 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4040 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4041 as_fn_error "no acceptable C compiler found in \$PATH
4042 See \`config.log' for more details." "$LINENO" 5; }
4043
4044 # Provide some information about the compiler.
4045 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4046 set X $ac_compile
4047 ac_compiler=$2
4048 for ac_option in --version -v -V -qversion; do
4049 { { ac_try="$ac_compiler $ac_option >&5"
4050 case "(($ac_try" in
4051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4052 *) ac_try_echo=$ac_try;;
4053 esac
4054 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4055 $as_echo "$ac_try_echo"; } >&5
4056 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4057 ac_status=$?
4058 if test -s conftest.err; then
4059 sed '10a\
4060 ... rest of stderr output deleted ...
4061 10q' conftest.err >conftest.er1
4062 cat conftest.er1 >&5
4063 rm -f conftest.er1 conftest.err
4064 fi
4065 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4066 test $ac_status = 0; }
4067 done
4068
4069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4070 /* end confdefs.h. */
4071
4072 int
4073 main ()
4074 {
4075
4076 ;
4077 return 0;
4078 }
4079 _ACEOF
4080 ac_clean_files_save=$ac_clean_files
4081 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
4082 # Try to create an executable without -o first, disregard a.out.
4083 # It will help us diagnose broken compilers, and finding out an intuition
4084 # of exeext.
4085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4086 $as_echo_n "checking for C compiler default output file name... " >&6; }
4087 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4088
4089 # The possible output files:
4090 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4091
4092 ac_rmfiles=
4093 for ac_file in $ac_files
4094 do
4095 case $ac_file in
4096 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4097 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4098 esac
4099 done
4100 rm -f $ac_rmfiles
4101
4102 if { { ac_try="$ac_link_default"
4103 case "(($ac_try" in
4104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4105 *) ac_try_echo=$ac_try;;
4106 esac
4107 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4108 $as_echo "$ac_try_echo"; } >&5
4109 (eval "$ac_link_default") 2>&5
4110 ac_status=$?
4111 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4112 test $ac_status = 0; }; then :
4113 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4114 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4115 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4116 # so that the user can short-circuit this test for compilers unknown to
4117 # Autoconf.
4118 for ac_file in $ac_files ''
4119 do
4120 test -f "$ac_file" || continue
4121 case $ac_file in
4122 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4123 ;;
4124 [ab].out )
4125 # We found the default executable, but exeext='' is most
4126 # certainly right.
4127 break;;
4128 *.* )
4129 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4130 then :; else
4131 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4132 fi
4133 # We set ac_cv_exeext here because the later test for it is not
4134 # safe: cross compilers may not add the suffix if given an `-o'
4135 # argument, so we may need to know it at that point already.
4136 # Even if this section looks crufty: it has the advantage of
4137 # actually working.
4138 break;;
4139 * )
4140 break;;
4141 esac
4142 done
4143 test "$ac_cv_exeext" = no && ac_cv_exeext=
4144
4145 else
4146 ac_file=''
4147 fi
4148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4149 $as_echo "$ac_file" >&6; }
4150 if test -z "$ac_file"; then :
4151 $as_echo "$as_me: failed program was:" >&5
4152 sed 's/^/| /' conftest.$ac_ext >&5
4153
4154 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4155 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4156 { as_fn_set_status 77
4157 as_fn_error "C compiler cannot create executables
4158 See \`config.log' for more details." "$LINENO" 5; }; }
4159 fi
4160 ac_exeext=$ac_cv_exeext
4161
4162 # Check that the compiler produces executables we can run. If not, either
4163 # the compiler is broken, or we cross compile.
4164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4165 $as_echo_n "checking whether the C compiler works... " >&6; }
4166 # If not cross compiling, check that we can run a simple program.
4167 if test "$cross_compiling" != yes; then
4168 if { ac_try='./$ac_file'
4169 { { case "(($ac_try" in
4170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4171 *) ac_try_echo=$ac_try;;
4172 esac
4173 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4174 $as_echo "$ac_try_echo"; } >&5
4175 (eval "$ac_try") 2>&5
4176 ac_status=$?
4177 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4178 test $ac_status = 0; }; }; then
4179 cross_compiling=no
4180 else
4181 if test "$cross_compiling" = maybe; then
4182 cross_compiling=yes
4183 else
4184 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4185 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4186 as_fn_error "cannot run C compiled programs.
4187 If you meant to cross compile, use \`--host'.
4188 See \`config.log' for more details." "$LINENO" 5; }
4189 fi
4190 fi
4191 fi
4192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4193 $as_echo "yes" >&6; }
4194
4195 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4196 ac_clean_files=$ac_clean_files_save
4197 # Check that the compiler produces executables we can run. If not, either
4198 # the compiler is broken, or we cross compile.
4199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4200 $as_echo_n "checking whether we are cross compiling... " >&6; }
4201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4202 $as_echo "$cross_compiling" >&6; }
4203
4204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4205 $as_echo_n "checking for suffix of executables... " >&6; }
4206 if { { ac_try="$ac_link"
4207 case "(($ac_try" in
4208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4209 *) ac_try_echo=$ac_try;;
4210 esac
4211 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4212 $as_echo "$ac_try_echo"; } >&5
4213 (eval "$ac_link") 2>&5
4214 ac_status=$?
4215 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4216 test $ac_status = 0; }; then :
4217 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4218 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4219 # work properly (i.e., refer to `conftest.exe'), while it won't with
4220 # `rm'.
4221 for ac_file in conftest.exe conftest conftest.*; do
4222 test -f "$ac_file" || continue
4223 case $ac_file in
4224 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4225 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4226 break;;
4227 * ) break;;
4228 esac
4229 done
4230 else
4231 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4232 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4233 as_fn_error "cannot compute suffix of executables: cannot compile and link
4234 See \`config.log' for more details." "$LINENO" 5; }
4235 fi
4236 rm -f conftest$ac_cv_exeext
4237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4238 $as_echo "$ac_cv_exeext" >&6; }
4239
4240 rm -f conftest.$ac_ext
4241 EXEEXT=$ac_cv_exeext
4242 ac_exeext=$EXEEXT
4243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4244 $as_echo_n "checking for suffix of object files... " >&6; }
4245 if test "${ac_cv_objext+set}" = set; then :
4246 $as_echo_n "(cached) " >&6
4247 else
4248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4249 /* end confdefs.h. */
4250
4251 int
4252 main ()
4253 {
4254
4255 ;
4256 return 0;
4257 }
4258 _ACEOF
4259 rm -f conftest.o conftest.obj
4260 if { { ac_try="$ac_compile"
4261 case "(($ac_try" in
4262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4263 *) ac_try_echo=$ac_try;;
4264 esac
4265 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4266 $as_echo "$ac_try_echo"; } >&5
4267 (eval "$ac_compile") 2>&5
4268 ac_status=$?
4269 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4270 test $ac_status = 0; }; then :
4271 for ac_file in conftest.o conftest.obj conftest.*; do
4272 test -f "$ac_file" || continue;
4273 case $ac_file in
4274 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4275 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4276 break;;
4277 esac
4278 done
4279 else
4280 $as_echo "$as_me: failed program was:" >&5
4281 sed 's/^/| /' conftest.$ac_ext >&5
4282
4283 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4284 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4285 as_fn_error "cannot compute suffix of object files: cannot compile
4286 See \`config.log' for more details." "$LINENO" 5; }
4287 fi
4288 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4289 fi
4290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4291 $as_echo "$ac_cv_objext" >&6; }
4292 OBJEXT=$ac_cv_objext
4293 ac_objext=$OBJEXT
4294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4295 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4296 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4297 $as_echo_n "(cached) " >&6
4298 else
4299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4300 /* end confdefs.h. */
4301
4302 int
4303 main ()
4304 {
4305 #ifndef __GNUC__
4306 choke me
4307 #endif
4308
4309 ;
4310 return 0;
4311 }
4312 _ACEOF
4313 if ac_fn_c_try_compile "$LINENO"; then :
4314 ac_compiler_gnu=yes
4315 else
4316 ac_compiler_gnu=no
4317 fi
4318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4319 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4320
4321 fi
4322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4323 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4324 if test $ac_compiler_gnu = yes; then
4325 GCC=yes
4326 else
4327 GCC=
4328 fi
4329 ac_test_CFLAGS=${CFLAGS+set}
4330 ac_save_CFLAGS=$CFLAGS
4331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4332 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4333 if test "${ac_cv_prog_cc_g+set}" = set; then :
4334 $as_echo_n "(cached) " >&6
4335 else
4336 ac_save_c_werror_flag=$ac_c_werror_flag
4337 ac_c_werror_flag=yes
4338 ac_cv_prog_cc_g=no
4339 CFLAGS="-g"
4340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4341 /* end confdefs.h. */
4342
4343 int
4344 main ()
4345 {
4346
4347 ;
4348 return 0;
4349 }
4350 _ACEOF
4351 if ac_fn_c_try_compile "$LINENO"; then :
4352 ac_cv_prog_cc_g=yes
4353 else
4354 CFLAGS=""
4355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4356 /* end confdefs.h. */
4357
4358 int
4359 main ()
4360 {
4361
4362 ;
4363 return 0;
4364 }
4365 _ACEOF
4366 if ac_fn_c_try_compile "$LINENO"; then :
4367
4368 else
4369 ac_c_werror_flag=$ac_save_c_werror_flag
4370 CFLAGS="-g"
4371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4372 /* end confdefs.h. */
4373
4374 int
4375 main ()
4376 {
4377
4378 ;
4379 return 0;
4380 }
4381 _ACEOF
4382 if ac_fn_c_try_compile "$LINENO"; then :
4383 ac_cv_prog_cc_g=yes
4384 fi
4385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4386 fi
4387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4388 fi
4389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4390 ac_c_werror_flag=$ac_save_c_werror_flag
4391 fi
4392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4393 $as_echo "$ac_cv_prog_cc_g" >&6; }
4394 if test "$ac_test_CFLAGS" = set; then
4395 CFLAGS=$ac_save_CFLAGS
4396 elif test $ac_cv_prog_cc_g = yes; then
4397 if test "$GCC" = yes; then
4398 CFLAGS="-g -O2"
4399 else
4400 CFLAGS="-g"
4401 fi
4402 else
4403 if test "$GCC" = yes; then
4404 CFLAGS="-O2"
4405 else
4406 CFLAGS=
4407 fi
4408 fi
4409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4410 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4411 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4412 $as_echo_n "(cached) " >&6
4413 else
4414 ac_cv_prog_cc_c89=no
4415 ac_save_CC=$CC
4416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4417 /* end confdefs.h. */
4418 #include <stdarg.h>
4419 #include <stdio.h>
4420 #include <sys/types.h>
4421 #include <sys/stat.h>
4422 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4423 struct buf { int x; };
4424 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4425 static char *e (p, i)
4426 char **p;
4427 int i;
4428 {
4429 return p[i];
4430 }
4431 static char *f (char * (*g) (char **, int), char **p, ...)
4432 {
4433 char *s;
4434 va_list v;
4435 va_start (v,p);
4436 s = g (p, va_arg (v,int));
4437 va_end (v);
4438 return s;
4439 }
4440
4441 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4442 function prototypes and stuff, but not '\xHH' hex character constants.
4443 These don't provoke an error unfortunately, instead are silently treated
4444 as 'x'. The following induces an error, until -std is added to get
4445 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4446 array size at least. It's necessary to write '\x00'==0 to get something
4447 that's true only with -std. */
4448 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4449
4450 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4451 inside strings and character constants. */
4452 #define FOO(x) 'x'
4453 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4454
4455 int test (int i, double x);
4456 struct s1 {int (*f) (int a);};
4457 struct s2 {int (*f) (double a);};
4458 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4459 int argc;
4460 char **argv;
4461 int
4462 main ()
4463 {
4464 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4465 ;
4466 return 0;
4467 }
4468 _ACEOF
4469 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4470 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4471 do
4472 CC="$ac_save_CC $ac_arg"
4473 if ac_fn_c_try_compile "$LINENO"; then :
4474 ac_cv_prog_cc_c89=$ac_arg
4475 fi
4476 rm -f core conftest.err conftest.$ac_objext
4477 test "x$ac_cv_prog_cc_c89" != "xno" && break
4478 done
4479 rm -f conftest.$ac_ext
4480 CC=$ac_save_CC
4481
4482 fi
4483 # AC_CACHE_VAL
4484 case "x$ac_cv_prog_cc_c89" in
4485 x)
4486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4487 $as_echo "none needed" >&6; } ;;
4488 xno)
4489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4490 $as_echo "unsupported" >&6; } ;;
4491 *)
4492 CC="$CC $ac_cv_prog_cc_c89"
4493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4494 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4495 esac
4496 if test "x$ac_cv_prog_cc_c89" != xno; then :
4497
4498 fi
4499
4500 ac_ext=c
4501 ac_cpp='$CPP $CPPFLAGS'
4502 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4503 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4504 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4505
4506 ac_ext=cpp
4507 ac_cpp='$CXXCPP $CPPFLAGS'
4508 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4509 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4510 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4511 if test -z "$CXX"; then
4512 if test -n "$CCC"; then
4513 CXX=$CCC
4514 else
4515 if test -n "$ac_tool_prefix"; then
4516 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4517 do
4518 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4519 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4521 $as_echo_n "checking for $ac_word... " >&6; }
4522 if test "${ac_cv_prog_CXX+set}" = set; then :
4523 $as_echo_n "(cached) " >&6
4524 else
4525 if test -n "$CXX"; then
4526 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4527 else
4528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4529 for as_dir in $PATH
4530 do
4531 IFS=$as_save_IFS
4532 test -z "$as_dir" && as_dir=.
4533 for ac_exec_ext in '' $ac_executable_extensions; do
4534 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4535 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4537 break 2
4538 fi
4539 done
4540 done
4541 IFS=$as_save_IFS
4542
4543 fi
4544 fi
4545 CXX=$ac_cv_prog_CXX
4546 if test -n "$CXX"; then
4547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4548 $as_echo "$CXX" >&6; }
4549 else
4550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4551 $as_echo "no" >&6; }
4552 fi
4553
4554
4555 test -n "$CXX" && break
4556 done
4557 fi
4558 if test -z "$CXX"; then
4559 ac_ct_CXX=$CXX
4560 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4561 do
4562 # Extract the first word of "$ac_prog", so it can be a program name with args.
4563 set dummy $ac_prog; ac_word=$2
4564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4565 $as_echo_n "checking for $ac_word... " >&6; }
4566 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4567 $as_echo_n "(cached) " >&6
4568 else
4569 if test -n "$ac_ct_CXX"; then
4570 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4571 else
4572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4573 for as_dir in $PATH
4574 do
4575 IFS=$as_save_IFS
4576 test -z "$as_dir" && as_dir=.
4577 for ac_exec_ext in '' $ac_executable_extensions; do
4578 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4579 ac_cv_prog_ac_ct_CXX="$ac_prog"
4580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4581 break 2
4582 fi
4583 done
4584 done
4585 IFS=$as_save_IFS
4586
4587 fi
4588 fi
4589 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4590 if test -n "$ac_ct_CXX"; then
4591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4592 $as_echo "$ac_ct_CXX" >&6; }
4593 else
4594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4595 $as_echo "no" >&6; }
4596 fi
4597
4598
4599 test -n "$ac_ct_CXX" && break
4600 done
4601
4602 if test "x$ac_ct_CXX" = x; then
4603 CXX="g++"
4604 else
4605 case $cross_compiling:$ac_tool_warned in
4606 yes:)
4607 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4608 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4609 ac_tool_warned=yes ;;
4610 esac
4611 CXX=$ac_ct_CXX
4612 fi
4613 fi
4614
4615 fi
4616 fi
4617 # Provide some information about the compiler.
4618 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4619 set X $ac_compile
4620 ac_compiler=$2
4621 for ac_option in --version -v -V -qversion; do
4622 { { ac_try="$ac_compiler $ac_option >&5"
4623 case "(($ac_try" in
4624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4625 *) ac_try_echo=$ac_try;;
4626 esac
4627 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4628 $as_echo "$ac_try_echo"; } >&5
4629 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4630 ac_status=$?
4631 if test -s conftest.err; then
4632 sed '10a\
4633 ... rest of stderr output deleted ...
4634 10q' conftest.err >conftest.er1
4635 cat conftest.er1 >&5
4636 rm -f conftest.er1 conftest.err
4637 fi
4638 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4639 test $ac_status = 0; }
4640 done
4641
4642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4643 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4644 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4645 $as_echo_n "(cached) " >&6
4646 else
4647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4648 /* end confdefs.h. */
4649
4650 int
4651 main ()
4652 {
4653 #ifndef __GNUC__
4654 choke me
4655 #endif
4656
4657 ;
4658 return 0;
4659 }
4660 _ACEOF
4661 if ac_fn_cxx_try_compile "$LINENO"; then :
4662 ac_compiler_gnu=yes
4663 else
4664 ac_compiler_gnu=no
4665 fi
4666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4667 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4668
4669 fi
4670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4671 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4672 if test $ac_compiler_gnu = yes; then
4673 GXX=yes
4674 else
4675 GXX=
4676 fi
4677 ac_test_CXXFLAGS=${CXXFLAGS+set}
4678 ac_save_CXXFLAGS=$CXXFLAGS
4679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4680 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4681 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4682 $as_echo_n "(cached) " >&6
4683 else
4684 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4685 ac_cxx_werror_flag=yes
4686 ac_cv_prog_cxx_g=no
4687 CXXFLAGS="-g"
4688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4689 /* end confdefs.h. */
4690
4691 int
4692 main ()
4693 {
4694
4695 ;
4696 return 0;
4697 }
4698 _ACEOF
4699 if ac_fn_cxx_try_compile "$LINENO"; then :
4700 ac_cv_prog_cxx_g=yes
4701 else
4702 CXXFLAGS=""
4703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4704 /* end confdefs.h. */
4705
4706 int
4707 main ()
4708 {
4709
4710 ;
4711 return 0;
4712 }
4713 _ACEOF
4714 if ac_fn_cxx_try_compile "$LINENO"; then :
4715
4716 else
4717 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4718 CXXFLAGS="-g"
4719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4720 /* end confdefs.h. */
4721
4722 int
4723 main ()
4724 {
4725
4726 ;
4727 return 0;
4728 }
4729 _ACEOF
4730 if ac_fn_cxx_try_compile "$LINENO"; then :
4731 ac_cv_prog_cxx_g=yes
4732 fi
4733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4734 fi
4735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4736 fi
4737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4738 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4739 fi
4740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4741 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4742 if test "$ac_test_CXXFLAGS" = set; then
4743 CXXFLAGS=$ac_save_CXXFLAGS
4744 elif test $ac_cv_prog_cxx_g = yes; then
4745 if test "$GXX" = yes; then
4746 CXXFLAGS="-g -O2"
4747 else
4748 CXXFLAGS="-g"
4749 fi
4750 else
4751 if test "$GXX" = yes; then
4752 CXXFLAGS="-O2"
4753 else
4754 CXXFLAGS=
4755 fi
4756 fi
4757 ac_ext=c
4758 ac_cpp='$CPP $CPPFLAGS'
4759 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4760 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4761 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4762
4763
4764
4765
4766 if test -n "$ac_tool_prefix"; then
4767 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4768 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4770 $as_echo_n "checking for $ac_word... " >&6; }
4771 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4772 $as_echo_n "(cached) " >&6
4773 else
4774 if test -n "$GNATBIND"; then
4775 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4776 else
4777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4778 for as_dir in $PATH
4779 do
4780 IFS=$as_save_IFS
4781 test -z "$as_dir" && as_dir=.
4782 for ac_exec_ext in '' $ac_executable_extensions; do
4783 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4784 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4786 break 2
4787 fi
4788 done
4789 done
4790 IFS=$as_save_IFS
4791
4792 fi
4793 fi
4794 GNATBIND=$ac_cv_prog_GNATBIND
4795 if test -n "$GNATBIND"; then
4796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4797 $as_echo "$GNATBIND" >&6; }
4798 else
4799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4800 $as_echo "no" >&6; }
4801 fi
4802
4803
4804 fi
4805 if test -z "$ac_cv_prog_GNATBIND"; then
4806 ac_ct_GNATBIND=$GNATBIND
4807 # Extract the first word of "gnatbind", so it can be a program name with args.
4808 set dummy gnatbind; ac_word=$2
4809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4810 $as_echo_n "checking for $ac_word... " >&6; }
4811 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4812 $as_echo_n "(cached) " >&6
4813 else
4814 if test -n "$ac_ct_GNATBIND"; then
4815 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4816 else
4817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4818 for as_dir in $PATH
4819 do
4820 IFS=$as_save_IFS
4821 test -z "$as_dir" && as_dir=.
4822 for ac_exec_ext in '' $ac_executable_extensions; do
4823 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4824 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4826 break 2
4827 fi
4828 done
4829 done
4830 IFS=$as_save_IFS
4831
4832 fi
4833 fi
4834 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4835 if test -n "$ac_ct_GNATBIND"; then
4836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4837 $as_echo "$ac_ct_GNATBIND" >&6; }
4838 else
4839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4840 $as_echo "no" >&6; }
4841 fi
4842
4843 if test "x$ac_ct_GNATBIND" = x; then
4844 GNATBIND="no"
4845 else
4846 case $cross_compiling:$ac_tool_warned in
4847 yes:)
4848 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4849 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4850 ac_tool_warned=yes ;;
4851 esac
4852 GNATBIND=$ac_ct_GNATBIND
4853 fi
4854 else
4855 GNATBIND="$ac_cv_prog_GNATBIND"
4856 fi
4857
4858 if test -n "$ac_tool_prefix"; then
4859 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4860 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4862 $as_echo_n "checking for $ac_word... " >&6; }
4863 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4864 $as_echo_n "(cached) " >&6
4865 else
4866 if test -n "$GNATMAKE"; then
4867 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4868 else
4869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4870 for as_dir in $PATH
4871 do
4872 IFS=$as_save_IFS
4873 test -z "$as_dir" && as_dir=.
4874 for ac_exec_ext in '' $ac_executable_extensions; do
4875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4876 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4878 break 2
4879 fi
4880 done
4881 done
4882 IFS=$as_save_IFS
4883
4884 fi
4885 fi
4886 GNATMAKE=$ac_cv_prog_GNATMAKE
4887 if test -n "$GNATMAKE"; then
4888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4889 $as_echo "$GNATMAKE" >&6; }
4890 else
4891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4892 $as_echo "no" >&6; }
4893 fi
4894
4895
4896 fi
4897 if test -z "$ac_cv_prog_GNATMAKE"; then
4898 ac_ct_GNATMAKE=$GNATMAKE
4899 # Extract the first word of "gnatmake", so it can be a program name with args.
4900 set dummy gnatmake; ac_word=$2
4901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4902 $as_echo_n "checking for $ac_word... " >&6; }
4903 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4904 $as_echo_n "(cached) " >&6
4905 else
4906 if test -n "$ac_ct_GNATMAKE"; then
4907 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4908 else
4909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4910 for as_dir in $PATH
4911 do
4912 IFS=$as_save_IFS
4913 test -z "$as_dir" && as_dir=.
4914 for ac_exec_ext in '' $ac_executable_extensions; do
4915 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4916 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4918 break 2
4919 fi
4920 done
4921 done
4922 IFS=$as_save_IFS
4923
4924 fi
4925 fi
4926 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4927 if test -n "$ac_ct_GNATMAKE"; then
4928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4929 $as_echo "$ac_ct_GNATMAKE" >&6; }
4930 else
4931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4932 $as_echo "no" >&6; }
4933 fi
4934
4935 if test "x$ac_ct_GNATMAKE" = x; then
4936 GNATMAKE="no"
4937 else
4938 case $cross_compiling:$ac_tool_warned in
4939 yes:)
4940 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4941 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4942 ac_tool_warned=yes ;;
4943 esac
4944 GNATMAKE=$ac_ct_GNATMAKE
4945 fi
4946 else
4947 GNATMAKE="$ac_cv_prog_GNATMAKE"
4948 fi
4949
4950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4951 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4952 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4953 $as_echo_n "(cached) " >&6
4954 else
4955 cat >conftest.adb <<EOF
4956 procedure conftest is begin null; end conftest;
4957 EOF
4958 acx_cv_cc_gcc_supports_ada=no
4959 # There is a bug in old released versions of GCC which causes the
4960 # driver to exit successfully when the appropriate language module
4961 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4962 # Therefore we must check for the error message as well as an
4963 # unsuccessful exit.
4964 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4965 # given a .adb file, but produce no object file. So we must check
4966 # if an object file was really produced to guard against this.
4967 errors=`(${CC} -I"$srcdir"/ada -c conftest.adb) 2>&1 || echo failure`
4968 if test x"$errors" = x && test -f conftest.$ac_objext; then
4969 acx_cv_cc_gcc_supports_ada=yes
4970 fi
4971 rm -f conftest.*
4972 fi
4973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4974 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4975
4976 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4977 have_gnat=yes
4978 else
4979 have_gnat=no
4980 fi
4981
4982
4983 # Do configure tests with the C++ compiler, since that's what we build with.
4984 ac_ext=cpp
4985 ac_cpp='$CXXCPP $CPPFLAGS'
4986 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4987 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4988 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4989
4990
4991 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
4992 # optimizations to be activated explicitly by the toplevel.
4993 case "$CC" in
4994 */prev-gcc/xgcc*) ;;
4995 *) CFLAGS=`echo "$CFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" `
4996 CXXFLAGS=`echo "$CXXFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` ;;
4997 esac
4998
4999
5000
5001 # Determine PICFLAG for target gnatlib.
5002
5003
5004
5005
5006 case "${target}" in
5007 # PIC is the default on some targets or must not be used.
5008 *-*-darwin*)
5009 # For darwin, common symbols are not allowed in MH_DYLIB files
5010 case "${CFLAGS}" in
5011 # If we are using a compiler supporting mdynamic-no-pic
5012 # and the option has been tested as safe to add, then cancel
5013 # it here, since the code generated is incompatible with shared
5014 # libs.
5015 *-mdynamic-no-pic*) PICFLAG_FOR_TARGET='-fno-common -mno-dynamic-no-pic' ;;
5016 *) PICFLAG_FOR_TARGET=-fno-common ;;
5017 esac
5018 ;;
5019 alpha*-dec-osf5*)
5020 # PIC is the default.
5021 ;;
5022 hppa*64*-*-hpux*)
5023 # PIC is the default for 64-bit PA HP-UX.
5024 ;;
5025 i[34567]86-*-cygwin* | x86_64-*-cygwin*)
5026 ;;
5027 i[34567]86-*-mingw* | x86_64-*-mingw*)
5028 ;;
5029 i[34567]86-*-interix[3-9]*)
5030 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5031 # Instead, we relocate shared libraries at runtime.
5032 ;;
5033 i[34567]86-*-nto-qnx*)
5034 # QNX uses GNU C++, but need to define -shared option too, otherwise
5035 # it will coredump.
5036 PICFLAG_FOR_TARGET='-fPIC -shared'
5037 ;;
5038 i[34567]86-pc-msdosdjgpp*)
5039 # DJGPP does not support shared libraries at all.
5040 ;;
5041 ia64*-*-hpux*)
5042 # On IA64 HP-UX, PIC is the default but the pic flag
5043 # sets the default TLS model and affects inlining.
5044 PICFLAG_FOR_TARGET=-fPIC
5045 ;;
5046 mips-sgi-irix6*)
5047 # PIC is the default.
5048 ;;
5049 rs6000-ibm-aix* | powerpc-ibm-aix*)
5050 # All AIX code is PIC.
5051 ;;
5052
5053 # Some targets support both -fPIC and -fpic, but prefer the latter.
5054 # FIXME: Why?
5055 i[34567]86-*-* | x86_64-*-*)
5056 PICFLAG_FOR_TARGET=-fpic
5057 ;;
5058 # FIXME: Override -fPIC default in libgcc only?
5059 sh-*-linux* | sh[2346lbe]*-*-linux*)
5060 PICFLAG_FOR_TARGET=-fpic
5061 ;;
5062 # FIXME: Simplify to sh*-*-netbsd*?
5063 sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
5064 sh64-*-netbsd* | sh64l*-*-netbsd*)
5065 PICFLAG_FOR_TARGET=-fpic
5066 ;;
5067 # Default to -fPIC unless specified otherwise.
5068 *)
5069 PICFLAG_FOR_TARGET=-fPIC
5070 ;;
5071 esac
5072
5073 # If the user explicitly uses -fpic/-fPIC, keep that.
5074 case "${CFLAGS_FOR_TARGET}" in
5075 *-fpic*)
5076 PICFLAG_FOR_TARGET=-fpic
5077 ;;
5078 *-fPIC*)
5079 PICFLAG_FOR_TARGET=-fPIC
5080 ;;
5081 esac
5082
5083
5084
5085 # -------------------------
5086 # Check C compiler features
5087 # -------------------------
5088
5089
5090 ac_ext=cpp
5091 ac_cpp='$CXXCPP $CPPFLAGS'
5092 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5093 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5094 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5096 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5097 if test -z "$CXXCPP"; then
5098 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
5099 $as_echo_n "(cached) " >&6
5100 else
5101 # Double quotes because CXXCPP needs to be expanded
5102 for CXXCPP in "$CXX -E" "/lib/cpp"
5103 do
5104 ac_preproc_ok=false
5105 for ac_cxx_preproc_warn_flag in '' yes
5106 do
5107 # Use a header file that comes with gcc, so configuring glibc
5108 # with a fresh cross-compiler works.
5109 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5110 # <limits.h> exists even on freestanding compilers.
5111 # On the NeXT, cc -E runs the code through the compiler's parser,
5112 # not just through cpp. "Syntax error" is here to catch this case.
5113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5114 /* end confdefs.h. */
5115 #ifdef __STDC__
5116 # include <limits.h>
5117 #else
5118 # include <assert.h>
5119 #endif
5120 Syntax error
5121 _ACEOF
5122 if ac_fn_cxx_try_cpp "$LINENO"; then :
5123
5124 else
5125 # Broken: fails on valid input.
5126 continue
5127 fi
5128 rm -f conftest.err conftest.$ac_ext
5129
5130 # OK, works on sane cases. Now check whether nonexistent headers
5131 # can be detected and how.
5132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5133 /* end confdefs.h. */
5134 #include <ac_nonexistent.h>
5135 _ACEOF
5136 if ac_fn_cxx_try_cpp "$LINENO"; then :
5137 # Broken: success on invalid input.
5138 continue
5139 else
5140 # Passes both tests.
5141 ac_preproc_ok=:
5142 break
5143 fi
5144 rm -f conftest.err conftest.$ac_ext
5145
5146 done
5147 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5148 rm -f conftest.err conftest.$ac_ext
5149 if $ac_preproc_ok; then :
5150 break
5151 fi
5152
5153 done
5154 ac_cv_prog_CXXCPP=$CXXCPP
5155
5156 fi
5157 CXXCPP=$ac_cv_prog_CXXCPP
5158 else
5159 ac_cv_prog_CXXCPP=$CXXCPP
5160 fi
5161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5162 $as_echo "$CXXCPP" >&6; }
5163 ac_preproc_ok=false
5164 for ac_cxx_preproc_warn_flag in '' yes
5165 do
5166 # Use a header file that comes with gcc, so configuring glibc
5167 # with a fresh cross-compiler works.
5168 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5169 # <limits.h> exists even on freestanding compilers.
5170 # On the NeXT, cc -E runs the code through the compiler's parser,
5171 # not just through cpp. "Syntax error" is here to catch this case.
5172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5173 /* end confdefs.h. */
5174 #ifdef __STDC__
5175 # include <limits.h>
5176 #else
5177 # include <assert.h>
5178 #endif
5179 Syntax error
5180 _ACEOF
5181 if ac_fn_cxx_try_cpp "$LINENO"; then :
5182
5183 else
5184 # Broken: fails on valid input.
5185 continue
5186 fi
5187 rm -f conftest.err conftest.$ac_ext
5188
5189 # OK, works on sane cases. Now check whether nonexistent headers
5190 # can be detected and how.
5191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5192 /* end confdefs.h. */
5193 #include <ac_nonexistent.h>
5194 _ACEOF
5195 if ac_fn_cxx_try_cpp "$LINENO"; then :
5196 # Broken: success on invalid input.
5197 continue
5198 else
5199 # Passes both tests.
5200 ac_preproc_ok=:
5201 break
5202 fi
5203 rm -f conftest.err conftest.$ac_ext
5204
5205 done
5206 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5207 rm -f conftest.err conftest.$ac_ext
5208 if $ac_preproc_ok; then :
5209
5210 else
5211 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5212 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5213 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
5214 See \`config.log' for more details." "$LINENO" 5; }
5215 fi
5216
5217 ac_ext=cpp
5218 ac_cpp='$CXXCPP $CPPFLAGS'
5219 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5220 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5221 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5222
5223
5224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5225 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5226 if test "${ac_cv_path_GREP+set}" = set; then :
5227 $as_echo_n "(cached) " >&6
5228 else
5229 if test -z "$GREP"; then
5230 ac_path_GREP_found=false
5231 # Loop through the user's path and test for each of PROGNAME-LIST
5232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5233 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5234 do
5235 IFS=$as_save_IFS
5236 test -z "$as_dir" && as_dir=.
5237 for ac_prog in grep ggrep; do
5238 for ac_exec_ext in '' $ac_executable_extensions; do
5239 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5240 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5241 # Check for GNU ac_path_GREP and select it if it is found.
5242 # Check for GNU $ac_path_GREP
5243 case `"$ac_path_GREP" --version 2>&1` in
5244 *GNU*)
5245 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5246 *)
5247 ac_count=0
5248 $as_echo_n 0123456789 >"conftest.in"
5249 while :
5250 do
5251 cat "conftest.in" "conftest.in" >"conftest.tmp"
5252 mv "conftest.tmp" "conftest.in"
5253 cp "conftest.in" "conftest.nl"
5254 $as_echo 'GREP' >> "conftest.nl"
5255 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5256 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5257 as_fn_arith $ac_count + 1 && ac_count=$as_val
5258 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5259 # Best one so far, save it but keep looking for a better one
5260 ac_cv_path_GREP="$ac_path_GREP"
5261 ac_path_GREP_max=$ac_count
5262 fi
5263 # 10*(2^10) chars as input seems more than enough
5264 test $ac_count -gt 10 && break
5265 done
5266 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5267 esac
5268
5269 $ac_path_GREP_found && break 3
5270 done
5271 done
5272 done
5273 IFS=$as_save_IFS
5274 if test -z "$ac_cv_path_GREP"; then
5275 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5276 fi
5277 else
5278 ac_cv_path_GREP=$GREP
5279 fi
5280
5281 fi
5282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5283 $as_echo "$ac_cv_path_GREP" >&6; }
5284 GREP="$ac_cv_path_GREP"
5285
5286
5287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5288 $as_echo_n "checking for egrep... " >&6; }
5289 if test "${ac_cv_path_EGREP+set}" = set; then :
5290 $as_echo_n "(cached) " >&6
5291 else
5292 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5293 then ac_cv_path_EGREP="$GREP -E"
5294 else
5295 if test -z "$EGREP"; then
5296 ac_path_EGREP_found=false
5297 # Loop through the user's path and test for each of PROGNAME-LIST
5298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5299 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5300 do
5301 IFS=$as_save_IFS
5302 test -z "$as_dir" && as_dir=.
5303 for ac_prog in egrep; do
5304 for ac_exec_ext in '' $ac_executable_extensions; do
5305 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5306 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5307 # Check for GNU ac_path_EGREP and select it if it is found.
5308 # Check for GNU $ac_path_EGREP
5309 case `"$ac_path_EGREP" --version 2>&1` in
5310 *GNU*)
5311 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5312 *)
5313 ac_count=0
5314 $as_echo_n 0123456789 >"conftest.in"
5315 while :
5316 do
5317 cat "conftest.in" "conftest.in" >"conftest.tmp"
5318 mv "conftest.tmp" "conftest.in"
5319 cp "conftest.in" "conftest.nl"
5320 $as_echo 'EGREP' >> "conftest.nl"
5321 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5322 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5323 as_fn_arith $ac_count + 1 && ac_count=$as_val
5324 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5325 # Best one so far, save it but keep looking for a better one
5326 ac_cv_path_EGREP="$ac_path_EGREP"
5327 ac_path_EGREP_max=$ac_count
5328 fi
5329 # 10*(2^10) chars as input seems more than enough
5330 test $ac_count -gt 10 && break
5331 done
5332 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5333 esac
5334
5335 $ac_path_EGREP_found && break 3
5336 done
5337 done
5338 done
5339 IFS=$as_save_IFS
5340 if test -z "$ac_cv_path_EGREP"; then
5341 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5342 fi
5343 else
5344 ac_cv_path_EGREP=$EGREP
5345 fi
5346
5347 fi
5348 fi
5349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5350 $as_echo "$ac_cv_path_EGREP" >&6; }
5351 EGREP="$ac_cv_path_EGREP"
5352
5353
5354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5355 $as_echo_n "checking for ANSI C header files... " >&6; }
5356 if test "${ac_cv_header_stdc+set}" = set; then :
5357 $as_echo_n "(cached) " >&6
5358 else
5359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5360 /* end confdefs.h. */
5361 #include <stdlib.h>
5362 #include <stdarg.h>
5363 #include <string.h>
5364 #include <float.h>
5365
5366 int
5367 main ()
5368 {
5369
5370 ;
5371 return 0;
5372 }
5373 _ACEOF
5374 if ac_fn_cxx_try_compile "$LINENO"; then :
5375 ac_cv_header_stdc=yes
5376 else
5377 ac_cv_header_stdc=no
5378 fi
5379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5380
5381 if test $ac_cv_header_stdc = yes; then
5382 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5384 /* end confdefs.h. */
5385 #include <string.h>
5386
5387 _ACEOF
5388 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5389 $EGREP "memchr" >/dev/null 2>&1; then :
5390
5391 else
5392 ac_cv_header_stdc=no
5393 fi
5394 rm -f conftest*
5395
5396 fi
5397
5398 if test $ac_cv_header_stdc = yes; then
5399 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5401 /* end confdefs.h. */
5402 #include <stdlib.h>
5403
5404 _ACEOF
5405 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5406 $EGREP "free" >/dev/null 2>&1; then :
5407
5408 else
5409 ac_cv_header_stdc=no
5410 fi
5411 rm -f conftest*
5412
5413 fi
5414
5415 if test $ac_cv_header_stdc = yes; then
5416 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5417 if test "$cross_compiling" = yes; then :
5418 :
5419 else
5420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5421 /* end confdefs.h. */
5422 #include <ctype.h>
5423 #include <stdlib.h>
5424 #if ((' ' & 0x0FF) == 0x020)
5425 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5426 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5427 #else
5428 # define ISLOWER(c) \
5429 (('a' <= (c) && (c) <= 'i') \
5430 || ('j' <= (c) && (c) <= 'r') \
5431 || ('s' <= (c) && (c) <= 'z'))
5432 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5433 #endif
5434
5435 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5436 int
5437 main ()
5438 {
5439 int i;
5440 for (i = 0; i < 256; i++)
5441 if (XOR (islower (i), ISLOWER (i))
5442 || toupper (i) != TOUPPER (i))
5443 return 2;
5444 return 0;
5445 }
5446 _ACEOF
5447 if ac_fn_cxx_try_run "$LINENO"; then :
5448
5449 else
5450 ac_cv_header_stdc=no
5451 fi
5452 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5453 conftest.$ac_objext conftest.beam conftest.$ac_ext
5454 fi
5455
5456 fi
5457 fi
5458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5459 $as_echo "$ac_cv_header_stdc" >&6; }
5460 if test $ac_cv_header_stdc = yes; then
5461
5462 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5463
5464 fi
5465
5466 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5467 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5468 inttypes.h stdint.h unistd.h
5469 do :
5470 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5471 ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5472 "
5473 eval as_val=\$$as_ac_Header
5474 if test "x$as_val" = x""yes; then :
5475 cat >>confdefs.h <<_ACEOF
5476 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5477 _ACEOF
5478
5479 fi
5480
5481 done
5482
5483
5484
5485 ac_fn_cxx_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5486 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5487 MINIX=yes
5488 else
5489 MINIX=
5490 fi
5491
5492
5493 if test "$MINIX" = yes; then
5494
5495 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5496
5497
5498 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5499
5500
5501 $as_echo "#define _MINIX 1" >>confdefs.h
5502
5503 fi
5504
5505
5506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5507 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5508 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5509 $as_echo_n "(cached) " >&6
5510 else
5511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5512 /* end confdefs.h. */
5513
5514 # define __EXTENSIONS__ 1
5515 $ac_includes_default
5516 int
5517 main ()
5518 {
5519
5520 ;
5521 return 0;
5522 }
5523 _ACEOF
5524 if ac_fn_cxx_try_compile "$LINENO"; then :
5525 ac_cv_safe_to_define___extensions__=yes
5526 else
5527 ac_cv_safe_to_define___extensions__=no
5528 fi
5529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5530 fi
5531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5532 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5533 test $ac_cv_safe_to_define___extensions__ = yes &&
5534 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5535
5536 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5537
5538 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5539
5540 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5541
5542 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5543
5544
5545 ac_ext=c
5546 ac_cpp='$CPP $CPPFLAGS'
5547 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5548 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5549 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5551 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5552 # On Suns, sometimes $CPP names a directory.
5553 if test -n "$CPP" && test -d "$CPP"; then
5554 CPP=
5555 fi
5556 if test -z "$CPP"; then
5557 if test "${ac_cv_prog_CPP+set}" = set; then :
5558 $as_echo_n "(cached) " >&6
5559 else
5560 # Double quotes because CPP needs to be expanded
5561 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5562 do
5563 ac_preproc_ok=false
5564 for ac_c_preproc_warn_flag in '' yes
5565 do
5566 # Use a header file that comes with gcc, so configuring glibc
5567 # with a fresh cross-compiler works.
5568 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5569 # <limits.h> exists even on freestanding compilers.
5570 # On the NeXT, cc -E runs the code through the compiler's parser,
5571 # not just through cpp. "Syntax error" is here to catch this case.
5572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5573 /* end confdefs.h. */
5574 #ifdef __STDC__
5575 # include <limits.h>
5576 #else
5577 # include <assert.h>
5578 #endif
5579 Syntax error
5580 _ACEOF
5581 if ac_fn_c_try_cpp "$LINENO"; then :
5582
5583 else
5584 # Broken: fails on valid input.
5585 continue
5586 fi
5587 rm -f conftest.err conftest.$ac_ext
5588
5589 # OK, works on sane cases. Now check whether nonexistent headers
5590 # can be detected and how.
5591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5592 /* end confdefs.h. */
5593 #include <ac_nonexistent.h>
5594 _ACEOF
5595 if ac_fn_c_try_cpp "$LINENO"; then :
5596 # Broken: success on invalid input.
5597 continue
5598 else
5599 # Passes both tests.
5600 ac_preproc_ok=:
5601 break
5602 fi
5603 rm -f conftest.err conftest.$ac_ext
5604
5605 done
5606 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5607 rm -f conftest.err conftest.$ac_ext
5608 if $ac_preproc_ok; then :
5609 break
5610 fi
5611
5612 done
5613 ac_cv_prog_CPP=$CPP
5614
5615 fi
5616 CPP=$ac_cv_prog_CPP
5617 else
5618 ac_cv_prog_CPP=$CPP
5619 fi
5620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5621 $as_echo "$CPP" >&6; }
5622 ac_preproc_ok=false
5623 for ac_c_preproc_warn_flag in '' yes
5624 do
5625 # Use a header file that comes with gcc, so configuring glibc
5626 # with a fresh cross-compiler works.
5627 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5628 # <limits.h> exists even on freestanding compilers.
5629 # On the NeXT, cc -E runs the code through the compiler's parser,
5630 # not just through cpp. "Syntax error" is here to catch this case.
5631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5632 /* end confdefs.h. */
5633 #ifdef __STDC__
5634 # include <limits.h>
5635 #else
5636 # include <assert.h>
5637 #endif
5638 Syntax error
5639 _ACEOF
5640 if ac_fn_c_try_cpp "$LINENO"; then :
5641
5642 else
5643 # Broken: fails on valid input.
5644 continue
5645 fi
5646 rm -f conftest.err conftest.$ac_ext
5647
5648 # OK, works on sane cases. Now check whether nonexistent headers
5649 # can be detected and how.
5650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5651 /* end confdefs.h. */
5652 #include <ac_nonexistent.h>
5653 _ACEOF
5654 if ac_fn_c_try_cpp "$LINENO"; then :
5655 # Broken: success on invalid input.
5656 continue
5657 else
5658 # Passes both tests.
5659 ac_preproc_ok=:
5660 break
5661 fi
5662 rm -f conftest.err conftest.$ac_ext
5663
5664 done
5665 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5666 rm -f conftest.err conftest.$ac_ext
5667 if $ac_preproc_ok; then :
5668
5669 else
5670 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5671 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5672 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5673 See \`config.log' for more details." "$LINENO" 5; }
5674 fi
5675
5676 ac_ext=cpp
5677 ac_cpp='$CXXCPP $CPPFLAGS'
5678 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5679 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5680 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5681
5682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5683 $as_echo_n "checking for inline... " >&6; }
5684 if test "${ac_cv_c_inline+set}" = set; then :
5685 $as_echo_n "(cached) " >&6
5686 else
5687 ac_cv_c_inline=no
5688 for ac_kw in inline __inline__ __inline; do
5689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5690 /* end confdefs.h. */
5691 #ifndef __cplusplus
5692 typedef int foo_t;
5693 static $ac_kw foo_t static_foo () {return 0; }
5694 $ac_kw foo_t foo () {return 0; }
5695 #endif
5696
5697 _ACEOF
5698 if ac_fn_cxx_try_compile "$LINENO"; then :
5699 ac_cv_c_inline=$ac_kw
5700 fi
5701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5702 test "$ac_cv_c_inline" != no && break
5703 done
5704
5705 fi
5706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5707 $as_echo "$ac_cv_c_inline" >&6; }
5708
5709 case $ac_cv_c_inline in
5710 inline | yes) ;;
5711 *)
5712 case $ac_cv_c_inline in
5713 no) ac_val=;;
5714 *) ac_val=$ac_cv_c_inline;;
5715 esac
5716 cat >>confdefs.h <<_ACEOF
5717 #ifndef __cplusplus
5718 #define inline $ac_val
5719 #endif
5720 _ACEOF
5721 ;;
5722 esac
5723
5724
5725 # Check whether --enable-largefile was given.
5726 if test "${enable_largefile+set}" = set; then :
5727 enableval=$enable_largefile;
5728 fi
5729
5730 if test "$enable_largefile" != no; then
5731
5732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5733 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5734 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5735 $as_echo_n "(cached) " >&6
5736 else
5737 ac_cv_sys_largefile_CC=no
5738 if test "$GCC" != yes; then
5739 ac_save_CC=$CC
5740 while :; do
5741 # IRIX 6.2 and later do not support large files by default,
5742 # so use the C compiler's -n32 option if that helps.
5743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5744 /* end confdefs.h. */
5745 #include <sys/types.h>
5746 /* Check that off_t can represent 2**63 - 1 correctly.
5747 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5748 since some C++ compilers masquerading as C compilers
5749 incorrectly reject 9223372036854775807. */
5750 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5751 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5752 && LARGE_OFF_T % 2147483647 == 1)
5753 ? 1 : -1];
5754 int
5755 main ()
5756 {
5757
5758 ;
5759 return 0;
5760 }
5761 _ACEOF
5762 if ac_fn_cxx_try_compile "$LINENO"; then :
5763 break
5764 fi
5765 rm -f core conftest.err conftest.$ac_objext
5766 CC="$CC -n32"
5767 if ac_fn_cxx_try_compile "$LINENO"; then :
5768 ac_cv_sys_largefile_CC=' -n32'; break
5769 fi
5770 rm -f core conftest.err conftest.$ac_objext
5771 break
5772 done
5773 CC=$ac_save_CC
5774 rm -f conftest.$ac_ext
5775 fi
5776 fi
5777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5778 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5779 if test "$ac_cv_sys_largefile_CC" != no; then
5780 CC=$CC$ac_cv_sys_largefile_CC
5781 fi
5782
5783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5784 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5785 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5786 $as_echo_n "(cached) " >&6
5787 else
5788 while :; do
5789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5790 /* end confdefs.h. */
5791 #include <sys/types.h>
5792 /* Check that off_t can represent 2**63 - 1 correctly.
5793 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5794 since some C++ compilers masquerading as C compilers
5795 incorrectly reject 9223372036854775807. */
5796 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5797 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5798 && LARGE_OFF_T % 2147483647 == 1)
5799 ? 1 : -1];
5800 int
5801 main ()
5802 {
5803
5804 ;
5805 return 0;
5806 }
5807 _ACEOF
5808 if ac_fn_cxx_try_compile "$LINENO"; then :
5809 ac_cv_sys_file_offset_bits=no; break
5810 fi
5811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5813 /* end confdefs.h. */
5814 #define _FILE_OFFSET_BITS 64
5815 #include <sys/types.h>
5816 /* Check that off_t can represent 2**63 - 1 correctly.
5817 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5818 since some C++ compilers masquerading as C compilers
5819 incorrectly reject 9223372036854775807. */
5820 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5821 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5822 && LARGE_OFF_T % 2147483647 == 1)
5823 ? 1 : -1];
5824 int
5825 main ()
5826 {
5827
5828 ;
5829 return 0;
5830 }
5831 _ACEOF
5832 if ac_fn_cxx_try_compile "$LINENO"; then :
5833 ac_cv_sys_file_offset_bits=64; break
5834 fi
5835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5836 ac_cv_sys_file_offset_bits=unknown
5837 break
5838 done
5839 fi
5840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5841 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5842 case $ac_cv_sys_file_offset_bits in #(
5843 no | unknown) ;;
5844 *)
5845 cat >>confdefs.h <<_ACEOF
5846 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5847 _ACEOF
5848 ;;
5849 esac
5850 rm -rf conftest*
5851 if test $ac_cv_sys_file_offset_bits = unknown; then
5852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5853 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5854 if test "${ac_cv_sys_large_files+set}" = set; then :
5855 $as_echo_n "(cached) " >&6
5856 else
5857 while :; do
5858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5859 /* end confdefs.h. */
5860 #include <sys/types.h>
5861 /* Check that off_t can represent 2**63 - 1 correctly.
5862 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5863 since some C++ compilers masquerading as C compilers
5864 incorrectly reject 9223372036854775807. */
5865 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5866 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5867 && LARGE_OFF_T % 2147483647 == 1)
5868 ? 1 : -1];
5869 int
5870 main ()
5871 {
5872
5873 ;
5874 return 0;
5875 }
5876 _ACEOF
5877 if ac_fn_cxx_try_compile "$LINENO"; then :
5878 ac_cv_sys_large_files=no; break
5879 fi
5880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5882 /* end confdefs.h. */
5883 #define _LARGE_FILES 1
5884 #include <sys/types.h>
5885 /* Check that off_t can represent 2**63 - 1 correctly.
5886 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5887 since some C++ compilers masquerading as C compilers
5888 incorrectly reject 9223372036854775807. */
5889 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5890 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5891 && LARGE_OFF_T % 2147483647 == 1)
5892 ? 1 : -1];
5893 int
5894 main ()
5895 {
5896
5897 ;
5898 return 0;
5899 }
5900 _ACEOF
5901 if ac_fn_cxx_try_compile "$LINENO"; then :
5902 ac_cv_sys_large_files=1; break
5903 fi
5904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5905 ac_cv_sys_large_files=unknown
5906 break
5907 done
5908 fi
5909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5910 $as_echo "$ac_cv_sys_large_files" >&6; }
5911 case $ac_cv_sys_large_files in #(
5912 no | unknown) ;;
5913 *)
5914 cat >>confdefs.h <<_ACEOF
5915 #define _LARGE_FILES $ac_cv_sys_large_files
5916 _ACEOF
5917 ;;
5918 esac
5919 rm -rf conftest*
5920 fi
5921 fi
5922
5923
5924 # sizeof(char) is 1 by definition.
5925 # The cast to long int works around a bug in the HP C Compiler
5926 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5927 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5928 # This bug is HP SR number 8606223364.
5929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5930 $as_echo_n "checking size of void *... " >&6; }
5931 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5932 $as_echo_n "(cached) " >&6
5933 else
5934 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5935
5936 else
5937 if test "$ac_cv_type_void_p" = yes; then
5938 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5939 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5940 { as_fn_set_status 77
5941 as_fn_error "cannot compute sizeof (void *)
5942 See \`config.log' for more details." "$LINENO" 5; }; }
5943 else
5944 ac_cv_sizeof_void_p=0
5945 fi
5946 fi
5947
5948 fi
5949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5950 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5951
5952
5953
5954 cat >>confdefs.h <<_ACEOF
5955 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5956 _ACEOF
5957
5958
5959 # The cast to long int works around a bug in the HP C Compiler
5960 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5961 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5962 # This bug is HP SR number 8606223364.
5963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5964 $as_echo_n "checking size of short... " >&6; }
5965 if test "${ac_cv_sizeof_short+set}" = set; then :
5966 $as_echo_n "(cached) " >&6
5967 else
5968 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5969
5970 else
5971 if test "$ac_cv_type_short" = yes; then
5972 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5973 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5974 { as_fn_set_status 77
5975 as_fn_error "cannot compute sizeof (short)
5976 See \`config.log' for more details." "$LINENO" 5; }; }
5977 else
5978 ac_cv_sizeof_short=0
5979 fi
5980 fi
5981
5982 fi
5983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5984 $as_echo "$ac_cv_sizeof_short" >&6; }
5985
5986
5987
5988 cat >>confdefs.h <<_ACEOF
5989 #define SIZEOF_SHORT $ac_cv_sizeof_short
5990 _ACEOF
5991
5992
5993 # The cast to long int works around a bug in the HP C Compiler
5994 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5995 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5996 # This bug is HP SR number 8606223364.
5997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5998 $as_echo_n "checking size of int... " >&6; }
5999 if test "${ac_cv_sizeof_int+set}" = set; then :
6000 $as_echo_n "(cached) " >&6
6001 else
6002 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
6003
6004 else
6005 if test "$ac_cv_type_int" = yes; then
6006 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6007 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6008 { as_fn_set_status 77
6009 as_fn_error "cannot compute sizeof (int)
6010 See \`config.log' for more details." "$LINENO" 5; }; }
6011 else
6012 ac_cv_sizeof_int=0
6013 fi
6014 fi
6015
6016 fi
6017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
6018 $as_echo "$ac_cv_sizeof_int" >&6; }
6019
6020
6021
6022 cat >>confdefs.h <<_ACEOF
6023 #define SIZEOF_INT $ac_cv_sizeof_int
6024 _ACEOF
6025
6026
6027 # The cast to long int works around a bug in the HP C Compiler
6028 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6029 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6030 # This bug is HP SR number 8606223364.
6031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6032 $as_echo_n "checking size of long... " >&6; }
6033 if test "${ac_cv_sizeof_long+set}" = set; then :
6034 $as_echo_n "(cached) " >&6
6035 else
6036 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
6037
6038 else
6039 if test "$ac_cv_type_long" = yes; then
6040 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6041 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6042 { as_fn_set_status 77
6043 as_fn_error "cannot compute sizeof (long)
6044 See \`config.log' for more details." "$LINENO" 5; }; }
6045 else
6046 ac_cv_sizeof_long=0
6047 fi
6048 fi
6049
6050 fi
6051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6052 $as_echo "$ac_cv_sizeof_long" >&6; }
6053
6054
6055
6056 cat >>confdefs.h <<_ACEOF
6057 #define SIZEOF_LONG $ac_cv_sizeof_long
6058 _ACEOF
6059
6060
6061 ac_fn_cxx_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
6062 if test "x$ac_cv_type_long_long" = x""yes; then :
6063
6064 cat >>confdefs.h <<_ACEOF
6065 #define HAVE_LONG_LONG 1
6066 _ACEOF
6067
6068 # The cast to long int works around a bug in the HP C Compiler
6069 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6070 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6071 # This bug is HP SR number 8606223364.
6072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
6073 $as_echo_n "checking size of long long... " >&6; }
6074 if test "${ac_cv_sizeof_long_long+set}" = set; then :
6075 $as_echo_n "(cached) " >&6
6076 else
6077 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
6078
6079 else
6080 if test "$ac_cv_type_long_long" = yes; then
6081 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6082 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6083 { as_fn_set_status 77
6084 as_fn_error "cannot compute sizeof (long long)
6085 See \`config.log' for more details." "$LINENO" 5; }; }
6086 else
6087 ac_cv_sizeof_long_long=0
6088 fi
6089 fi
6090
6091 fi
6092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
6093 $as_echo "$ac_cv_sizeof_long_long" >&6; }
6094
6095
6096
6097 cat >>confdefs.h <<_ACEOF
6098 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6099 _ACEOF
6100
6101
6102 fi
6103
6104 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
6105 case $ac_cv_c_int8_t in #(
6106 no|yes) ;; #(
6107 *)
6108
6109 cat >>confdefs.h <<_ACEOF
6110 #define int8_t $ac_cv_c_int8_t
6111 _ACEOF
6112 ;;
6113 esac
6114
6115 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
6116 case $ac_cv_c_int16_t in #(
6117 no|yes) ;; #(
6118 *)
6119
6120 cat >>confdefs.h <<_ACEOF
6121 #define int16_t $ac_cv_c_int16_t
6122 _ACEOF
6123 ;;
6124 esac
6125
6126 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
6127 case $ac_cv_c_int32_t in #(
6128 no|yes) ;; #(
6129 *)
6130
6131 cat >>confdefs.h <<_ACEOF
6132 #define int32_t $ac_cv_c_int32_t
6133 _ACEOF
6134 ;;
6135 esac
6136
6137 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
6138 case $ac_cv_c_int64_t in #(
6139 no|yes) ;; #(
6140 *)
6141
6142 cat >>confdefs.h <<_ACEOF
6143 #define int64_t $ac_cv_c_int64_t
6144 _ACEOF
6145 ;;
6146 esac
6147
6148
6149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6150 $as_echo_n "checking for long long int... " >&6; }
6151 if test "${ac_cv_type_long_long_int+set}" = set; then :
6152 $as_echo_n "(cached) " >&6
6153 else
6154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6155 /* end confdefs.h. */
6156
6157 /* For now, do not test the preprocessor; as of 2007 there are too many
6158 implementations with broken preprocessors. Perhaps this can
6159 be revisited in 2012. In the meantime, code should not expect
6160 #if to work with literals wider than 32 bits. */
6161 /* Test literals. */
6162 long long int ll = 9223372036854775807ll;
6163 long long int nll = -9223372036854775807LL;
6164 unsigned long long int ull = 18446744073709551615ULL;
6165 /* Test constant expressions. */
6166 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6167 ? 1 : -1)];
6168 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6169 ? 1 : -1)];
6170 int i = 63;
6171 int
6172 main ()
6173 {
6174 /* Test availability of runtime routines for shift and division. */
6175 long long int llmax = 9223372036854775807ll;
6176 unsigned long long int ullmax = 18446744073709551615ull;
6177 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6178 | (llmax / ll) | (llmax % ll)
6179 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6180 | (ullmax / ull) | (ullmax % ull));
6181 ;
6182 return 0;
6183 }
6184
6185 _ACEOF
6186 if ac_fn_cxx_try_link "$LINENO"; then :
6187 if test "$cross_compiling" = yes; then :
6188 ac_cv_type_long_long_int=yes
6189 else
6190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6191 /* end confdefs.h. */
6192 #include <limits.h>
6193 #ifndef LLONG_MAX
6194 # define HALF \
6195 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6196 # define LLONG_MAX (HALF - 1 + HALF)
6197 #endif
6198 int
6199 main ()
6200 {
6201 long long int n = 1;
6202 int i;
6203 for (i = 0; ; i++)
6204 {
6205 long long int m = n << i;
6206 if (m >> i != n)
6207 return 1;
6208 if (LLONG_MAX / 2 < m)
6209 break;
6210 }
6211 return 0;
6212 ;
6213 return 0;
6214 }
6215 _ACEOF
6216 if ac_fn_cxx_try_run "$LINENO"; then :
6217 ac_cv_type_long_long_int=yes
6218 else
6219 ac_cv_type_long_long_int=no
6220 fi
6221 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6222 conftest.$ac_objext conftest.beam conftest.$ac_ext
6223 fi
6224
6225 else
6226 ac_cv_type_long_long_int=no
6227 fi
6228 rm -f core conftest.err conftest.$ac_objext \
6229 conftest$ac_exeext conftest.$ac_ext
6230 fi
6231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6232 $as_echo "$ac_cv_type_long_long_int" >&6; }
6233 if test $ac_cv_type_long_long_int = yes; then
6234
6235 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6236
6237 fi
6238
6239
6240
6241 ac_fn_cxx_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6242 if test "x$ac_cv_type_intmax_t" = x""yes; then :
6243
6244 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6245
6246 else
6247 test $ac_cv_type_long_long_int = yes \
6248 && ac_type='long long int' \
6249 || ac_type='long int'
6250
6251 cat >>confdefs.h <<_ACEOF
6252 #define intmax_t $ac_type
6253 _ACEOF
6254
6255 fi
6256
6257
6258
6259 ac_fn_cxx_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6260 if test "x$ac_cv_type_intptr_t" = x""yes; then :
6261
6262 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6263
6264 else
6265 for ac_type in 'int' 'long int' 'long long int'; do
6266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6267 /* end confdefs.h. */
6268 $ac_includes_default
6269 int
6270 main ()
6271 {
6272 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6273 test_array [0] = 0
6274
6275 ;
6276 return 0;
6277 }
6278 _ACEOF
6279 if ac_fn_cxx_try_compile "$LINENO"; then :
6280
6281 cat >>confdefs.h <<_ACEOF
6282 #define intptr_t $ac_type
6283 _ACEOF
6284
6285 ac_type=
6286 fi
6287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6288 test -z "$ac_type" && break
6289 done
6290 fi
6291
6292
6293 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
6294 case $ac_cv_c_uint8_t in #(
6295 no|yes) ;; #(
6296 *)
6297
6298 $as_echo "#define _UINT8_T 1" >>confdefs.h
6299
6300
6301 cat >>confdefs.h <<_ACEOF
6302 #define uint8_t $ac_cv_c_uint8_t
6303 _ACEOF
6304 ;;
6305 esac
6306
6307 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6308 case $ac_cv_c_uint16_t in #(
6309 no|yes) ;; #(
6310 *)
6311
6312
6313 cat >>confdefs.h <<_ACEOF
6314 #define uint16_t $ac_cv_c_uint16_t
6315 _ACEOF
6316 ;;
6317 esac
6318
6319 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6320 case $ac_cv_c_uint32_t in #(
6321 no|yes) ;; #(
6322 *)
6323
6324 $as_echo "#define _UINT32_T 1" >>confdefs.h
6325
6326
6327 cat >>confdefs.h <<_ACEOF
6328 #define uint32_t $ac_cv_c_uint32_t
6329 _ACEOF
6330 ;;
6331 esac
6332
6333 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
6334 case $ac_cv_c_uint64_t in #(
6335 no|yes) ;; #(
6336 *)
6337
6338 $as_echo "#define _UINT64_T 1" >>confdefs.h
6339
6340
6341 cat >>confdefs.h <<_ACEOF
6342 #define uint64_t $ac_cv_c_uint64_t
6343 _ACEOF
6344 ;;
6345 esac
6346
6347
6348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6349 $as_echo_n "checking for unsigned long long int... " >&6; }
6350 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6351 $as_echo_n "(cached) " >&6
6352 else
6353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6354 /* end confdefs.h. */
6355
6356 /* For now, do not test the preprocessor; as of 2007 there are too many
6357 implementations with broken preprocessors. Perhaps this can
6358 be revisited in 2012. In the meantime, code should not expect
6359 #if to work with literals wider than 32 bits. */
6360 /* Test literals. */
6361 long long int ll = 9223372036854775807ll;
6362 long long int nll = -9223372036854775807LL;
6363 unsigned long long int ull = 18446744073709551615ULL;
6364 /* Test constant expressions. */
6365 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6366 ? 1 : -1)];
6367 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6368 ? 1 : -1)];
6369 int i = 63;
6370 int
6371 main ()
6372 {
6373 /* Test availability of runtime routines for shift and division. */
6374 long long int llmax = 9223372036854775807ll;
6375 unsigned long long int ullmax = 18446744073709551615ull;
6376 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6377 | (llmax / ll) | (llmax % ll)
6378 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6379 | (ullmax / ull) | (ullmax % ull));
6380 ;
6381 return 0;
6382 }
6383
6384 _ACEOF
6385 if ac_fn_cxx_try_link "$LINENO"; then :
6386 ac_cv_type_unsigned_long_long_int=yes
6387 else
6388 ac_cv_type_unsigned_long_long_int=no
6389 fi
6390 rm -f core conftest.err conftest.$ac_objext \
6391 conftest$ac_exeext conftest.$ac_ext
6392 fi
6393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6394 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6395 if test $ac_cv_type_unsigned_long_long_int = yes; then
6396
6397 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6398
6399 fi
6400
6401
6402
6403 ac_fn_cxx_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6404 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
6405
6406 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6407
6408 else
6409 test $ac_cv_type_unsigned_long_long_int = yes \
6410 && ac_type='unsigned long long int' \
6411 || ac_type='unsigned long int'
6412
6413 cat >>confdefs.h <<_ACEOF
6414 #define uintmax_t $ac_type
6415 _ACEOF
6416
6417 fi
6418
6419
6420
6421 ac_fn_cxx_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6422 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
6423
6424 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6425
6426 else
6427 for ac_type in 'unsigned int' 'unsigned long int' \
6428 'unsigned long long int'; do
6429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6430 /* end confdefs.h. */
6431 $ac_includes_default
6432 int
6433 main ()
6434 {
6435 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6436 test_array [0] = 0
6437
6438 ;
6439 return 0;
6440 }
6441 _ACEOF
6442 if ac_fn_cxx_try_compile "$LINENO"; then :
6443
6444 cat >>confdefs.h <<_ACEOF
6445 #define uintptr_t $ac_type
6446 _ACEOF
6447
6448 ac_type=
6449 fi
6450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6451 test -z "$ac_type" && break
6452 done
6453 fi
6454
6455
6456
6457
6458
6459
6460
6461
6462
6463
6464
6465
6466
6467
6468 if test x"$ac_cv_c_uint64_t" = x"no" -o x"$ac_cv_c_int64_t" = x"no"; then
6469 as_fn_error "uint64_t or int64_t not found" "$LINENO" 5
6470 fi
6471
6472 # check what underlying integer type int64_t uses
6473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t underlying type" >&5
6474 $as_echo_n "checking for int64_t underlying type... " >&6; }
6475 if test "${ac_cv_int64_t_type+set}" = set; then :
6476 $as_echo_n "(cached) " >&6
6477 else
6478
6479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6480 /* end confdefs.h. */
6481
6482 #ifdef HAVE_STDINT_H
6483 #include <stdint.h>
6484 #endif
6485 template <typename T> struct X { };
6486 template <>
6487 struct X<long> { typedef long t; };
6488
6489 int
6490 main ()
6491 {
6492 X<int64_t>::t x;
6493 ;
6494 return 0;
6495 }
6496 _ACEOF
6497 if ac_fn_cxx_try_compile "$LINENO"; then :
6498 ac_cv_int64_t_type=long
6499 else
6500 ac_cv_int64_t_type="long long"
6501 fi
6502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6503 fi
6504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_int64_t_type" >&5
6505 $as_echo "$ac_cv_int64_t_type" >&6; }
6506 if test "$ac_cv_int64_t_type" = "long"; then
6507
6508 $as_echo "#define INT64_T_IS_LONG 1" >>confdefs.h
6509
6510 else
6511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6512 /* end confdefs.h. */
6513
6514 #ifdef HAVE_STDINT_H
6515 #include <stdint.h>
6516 #endif
6517 template <typename T> struct X { };
6518 template <>
6519 struct X<long long> { typedef long long t; };
6520
6521 int
6522 main ()
6523 {
6524 X<int64_t>::t x;
6525 ;
6526 return 0;
6527 }
6528 _ACEOF
6529 if ac_fn_cxx_try_compile "$LINENO"; then :
6530
6531 else
6532 as_fn_error "error verifying int64_t uses long long" "$LINENO" 5
6533 fi
6534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6535 fi
6536
6537 # Check whether compiler is affected by placement new aliasing bug (PR 29286).
6538 # If the host compiler is affected by the bug, and we build with optimization
6539 # enabled (which happens e.g. when cross-compiling), the pool allocator may
6540 # get miscompiled. Use -fno-strict-aliasing to work around this problem.
6541 # Since there is no reliable feature check for the presence of this bug,
6542 # we simply use a GCC version number check. (This should never trigger for
6543 # stages 2 or 3 of a native bootstrap.)
6544 aliasing_flags=
6545 if test "$GCC" = yes; then
6546 saved_CXXFLAGS="$CXXFLAGS"
6547
6548 # The following test compilation will succeed if and only if $CXX accepts
6549 # -fno-strict-aliasing *and* is older than GCC 4.3.
6550 CXXFLAGS="$CXXFLAGS -fno-strict-aliasing"
6551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX is affected by placement new aliasing bug" >&5
6552 $as_echo_n "checking whether $CXX is affected by placement new aliasing bug... " >&6; }
6553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6554 /* end confdefs.h. */
6555
6556 #if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3)
6557 #error compiler not affected by placement new aliasing bug
6558 #endif
6559
6560 _ACEOF
6561 if ac_fn_cxx_try_compile "$LINENO"; then :
6562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6563 $as_echo "yes" >&6; }; aliasing_flags='-fno-strict-aliasing'
6564 else
6565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6566 $as_echo "no" >&6; }
6567 fi
6568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6569
6570 CXXFLAGS="$saved_CXXFLAGS"
6571 fi
6572
6573
6574
6575
6576 # ---------------------
6577 # Warnings and checking
6578 # ---------------------
6579
6580 # Check $CC warning features (if it's GCC).
6581 # We want to use -pedantic, but we don't want warnings about
6582 # * 'long long'
6583 # * variadic macros
6584 # * overlong strings
6585 # * C++11 narrowing conversions in { }
6586 # So, we only use -pedantic if we can disable those warnings.
6587
6588 # In stage 1, disable -Wformat warnings from old GCCs about new % codes
6589 # Check whether --enable-build-format-warnings was given.
6590 if test "${enable_build_format_warnings+set}" = set; then :
6591 enableval=$enable_build_format_warnings;
6592 else
6593 enable_build_format_warnings=yes
6594 fi
6595
6596 if test $enable_build_format_warnings = no; then :
6597 wf_opt=-Wno-format
6598 else
6599 wf_opt=
6600 fi
6601 ac_ext=cpp
6602 ac_cpp='$CXXCPP $CPPFLAGS'
6603 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6604 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6605 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6606
6607 loose_warn=
6608 save_CXXFLAGS="$CXXFLAGS"
6609 for real_option in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual $wf_opt; do
6610 # Do the check with the no- prefix removed since gcc silently
6611 # accepts any -Wno-* option on purpose
6612 case $real_option in
6613 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6614 *) option=$real_option ;;
6615 esac
6616 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6617
6618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6619 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6620 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6621 $as_echo_n "(cached) " >&6
6622 else
6623 CXXFLAGS="$option"
6624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6625 /* end confdefs.h. */
6626
6627 int
6628 main ()
6629 {
6630
6631 ;
6632 return 0;
6633 }
6634 _ACEOF
6635 if ac_fn_cxx_try_compile "$LINENO"; then :
6636 eval "$as_acx_Woption=yes"
6637 else
6638 eval "$as_acx_Woption=no"
6639 fi
6640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6641
6642 fi
6643 eval ac_res=\$$as_acx_Woption
6644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6645 $as_echo "$ac_res" >&6; }
6646 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6647 loose_warn="$loose_warn${loose_warn:+ }$real_option"
6648 fi
6649 done
6650 CXXFLAGS="$save_CXXFLAGS"
6651 ac_ext=cpp
6652 ac_cpp='$CXXCPP $CPPFLAGS'
6653 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6654 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6655 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6656
6657
6658
6659 ac_ext=c
6660 ac_cpp='$CPP $CPPFLAGS'
6661 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6662 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6663 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6664
6665 c_loose_warn=
6666 save_CFLAGS="$CFLAGS"
6667 for real_option in -Wstrict-prototypes -Wmissing-prototypes; do
6668 # Do the check with the no- prefix removed since gcc silently
6669 # accepts any -Wno-* option on purpose
6670 case $real_option in
6671 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6672 *) option=$real_option ;;
6673 esac
6674 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6675
6676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6677 $as_echo_n "checking whether $CC supports $option... " >&6; }
6678 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6679 $as_echo_n "(cached) " >&6
6680 else
6681 CFLAGS="$option"
6682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6683 /* end confdefs.h. */
6684
6685 int
6686 main ()
6687 {
6688
6689 ;
6690 return 0;
6691 }
6692 _ACEOF
6693 if ac_fn_c_try_compile "$LINENO"; then :
6694 eval "$as_acx_Woption=yes"
6695 else
6696 eval "$as_acx_Woption=no"
6697 fi
6698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6699
6700 fi
6701 eval ac_res=\$$as_acx_Woption
6702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6703 $as_echo "$ac_res" >&6; }
6704 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6705 c_loose_warn="$c_loose_warn${c_loose_warn:+ }$real_option"
6706 fi
6707 done
6708 CFLAGS="$save_CFLAGS"
6709 ac_ext=cpp
6710 ac_cpp='$CXXCPP $CPPFLAGS'
6711 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6712 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6713 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6714
6715
6716 ac_ext=cpp
6717 ac_cpp='$CXXCPP $CPPFLAGS'
6718 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6719 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6720 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6721
6722 strict_warn=
6723 save_CXXFLAGS="$CXXFLAGS"
6724 for real_option in -Wmissing-format-attribute; do
6725 # Do the check with the no- prefix removed since gcc silently
6726 # accepts any -Wno-* option on purpose
6727 case $real_option in
6728 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6729 *) option=$real_option ;;
6730 esac
6731 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6732
6733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6734 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6735 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6736 $as_echo_n "(cached) " >&6
6737 else
6738 CXXFLAGS="$option"
6739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6740 /* end confdefs.h. */
6741
6742 int
6743 main ()
6744 {
6745
6746 ;
6747 return 0;
6748 }
6749 _ACEOF
6750 if ac_fn_cxx_try_compile "$LINENO"; then :
6751 eval "$as_acx_Woption=yes"
6752 else
6753 eval "$as_acx_Woption=no"
6754 fi
6755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6756
6757 fi
6758 eval ac_res=\$$as_acx_Woption
6759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6760 $as_echo "$ac_res" >&6; }
6761 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6762 strict_warn="$strict_warn${strict_warn:+ }$real_option"
6763 fi
6764 done
6765 CXXFLAGS="$save_CXXFLAGS"
6766 ac_ext=cpp
6767 ac_cpp='$CXXCPP $CPPFLAGS'
6768 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6769 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6770 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6771
6772
6773 ac_ext=cpp
6774 ac_cpp='$CXXCPP $CPPFLAGS'
6775 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6776 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6777 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6778
6779 save_CXXFLAGS="$CXXFLAGS"
6780 for real_option in -Woverloaded-virtual; do
6781 # Do the check with the no- prefix removed since gcc silently
6782 # accepts any -Wno-* option on purpose
6783 case $real_option in
6784 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6785 *) option=$real_option ;;
6786 esac
6787 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6788
6789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6790 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6791 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6792 $as_echo_n "(cached) " >&6
6793 else
6794 CXXFLAGS="$option"
6795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6796 /* end confdefs.h. */
6797
6798 int
6799 main ()
6800 {
6801
6802 ;
6803 return 0;
6804 }
6805 _ACEOF
6806 if ac_fn_cxx_try_compile "$LINENO"; then :
6807 eval "$as_acx_Woption=yes"
6808 else
6809 eval "$as_acx_Woption=no"
6810 fi
6811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6812
6813 fi
6814 eval ac_res=\$$as_acx_Woption
6815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6816 $as_echo "$ac_res" >&6; }
6817 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6818 strict_warn="$strict_warn${strict_warn:+ }$real_option"
6819 fi
6820 done
6821 CXXFLAGS="$save_CXXFLAGS"
6822 ac_ext=cpp
6823 ac_cpp='$CXXCPP $CPPFLAGS'
6824 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6825 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6826 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6827
6828
6829 ac_ext=c
6830 ac_cpp='$CPP $CPPFLAGS'
6831 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6832 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6833 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6834
6835 c_strict_warn=
6836 save_CFLAGS="$CFLAGS"
6837 for real_option in -Wold-style-definition -Wc++-compat; do
6838 # Do the check with the no- prefix removed since gcc silently
6839 # accepts any -Wno-* option on purpose
6840 case $real_option in
6841 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6842 *) option=$real_option ;;
6843 esac
6844 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6845
6846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6847 $as_echo_n "checking whether $CC supports $option... " >&6; }
6848 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6849 $as_echo_n "(cached) " >&6
6850 else
6851 CFLAGS="$option"
6852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6853 /* end confdefs.h. */
6854
6855 int
6856 main ()
6857 {
6858
6859 ;
6860 return 0;
6861 }
6862 _ACEOF
6863 if ac_fn_c_try_compile "$LINENO"; then :
6864 eval "$as_acx_Woption=yes"
6865 else
6866 eval "$as_acx_Woption=no"
6867 fi
6868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6869
6870 fi
6871 eval ac_res=\$$as_acx_Woption
6872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6873 $as_echo "$ac_res" >&6; }
6874 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6875 c_strict_warn="$c_strict_warn${c_strict_warn:+ }$real_option"
6876 fi
6877 done
6878 CFLAGS="$save_CFLAGS"
6879 ac_ext=cpp
6880 ac_cpp='$CXXCPP $CPPFLAGS'
6881 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6882 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6883 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6884
6885
6886 ac_ext=cpp
6887 ac_cpp='$CXXCPP $CPPFLAGS'
6888 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6889 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6890 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6891
6892 # Do the check with the no- prefix removed from the warning options
6893 # since gcc silently accepts any -Wno-* option on purpose
6894 if test "$GXX" = yes; then :
6895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
6896 $as_echo_n "checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
6897 if test "${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+set}" = set; then :
6898 $as_echo_n "(cached) " >&6
6899 else
6900 save_CXXFLAGS="$CXXFLAGS"
6901 CXXFLAGS="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
6902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6903 /* end confdefs.h. */
6904
6905 int
6906 main ()
6907 {
6908
6909 ;
6910 return 0;
6911 }
6912 _ACEOF
6913 if ac_fn_cxx_try_compile "$LINENO"; then :
6914 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=yes
6915 else
6916 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=no
6917 fi
6918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6919 CXXFLAGS="$save_CXXFLAGS"
6920 fi
6921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
6922 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
6923 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
6924 strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6925 fi
6926
6927 fi
6928 ac_ext=cpp
6929 ac_cpp='$CXXCPP $CPPFLAGS'
6930 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6931 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6932 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6933
6934
6935 ac_ext=cpp
6936 ac_cpp='$CXXCPP $CPPFLAGS'
6937 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6938 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6939 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6940
6941 # Check whether --enable-werror-always was given.
6942 if test "${enable_werror_always+set}" = set; then :
6943 enableval=$enable_werror_always;
6944 else
6945 enable_werror_always=no
6946 fi
6947
6948 if test $enable_werror_always = yes; then :
6949 strict_warn="$strict_warn${strict_warn:+ }-Werror"
6950 fi
6951
6952 ac_ext=cpp
6953 ac_cpp='$CXXCPP $CPPFLAGS'
6954 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6955 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6956 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6957
6958
6959
6960 # The above macros do nothing if the compiler is not GCC. However, the
6961 # Makefile has more goo to add other flags, so these variables are used
6962 # to enable warnings only for GCC.
6963 warn_cflags=
6964 warn_cxxflags=
6965 if test "x$GCC" = "xyes"; then
6966 warn_cflags='$(GCC_WARN_CFLAGS)'
6967 warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
6968 fi
6969
6970
6971
6972 # Disable exceptions and RTTI if building with g++
6973 ac_ext=c
6974 ac_cpp='$CPP $CPPFLAGS'
6975 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6976 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6977 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6978
6979 noexception_flags=
6980 save_CFLAGS="$CFLAGS"
6981 for real_option in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
6982 # Do the check with the no- prefix removed since gcc silently
6983 # accepts any -Wno-* option on purpose
6984 case $real_option in
6985 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6986 *) option=$real_option ;;
6987 esac
6988 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6989
6990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6991 $as_echo_n "checking whether $CC supports $option... " >&6; }
6992 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6993 $as_echo_n "(cached) " >&6
6994 else
6995 CFLAGS="$option"
6996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6997 /* end confdefs.h. */
6998
6999 int
7000 main ()
7001 {
7002
7003 ;
7004 return 0;
7005 }
7006 _ACEOF
7007 if ac_fn_c_try_compile "$LINENO"; then :
7008 eval "$as_acx_Woption=yes"
7009 else
7010 eval "$as_acx_Woption=no"
7011 fi
7012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7013
7014 fi
7015 eval ac_res=\$$as_acx_Woption
7016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7017 $as_echo "$ac_res" >&6; }
7018 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7019 noexception_flags="$noexception_flags${noexception_flags:+ }$real_option"
7020 fi
7021 done
7022 CFLAGS="$save_CFLAGS"
7023 ac_ext=cpp
7024 ac_cpp='$CXXCPP $CPPFLAGS'
7025 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7026 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7027 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7028
7029
7030
7031 # Enable expensive internal checks
7032 is_release=
7033 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
7034 is_release=yes
7035 fi
7036
7037 # Check whether --enable-checking was given.
7038 if test "${enable_checking+set}" = set; then :
7039 enableval=$enable_checking; ac_checking_flags="${enableval}"
7040 else
7041
7042 # Determine the default checks.
7043 if test x$is_release = x ; then
7044 ac_checking_flags=yes
7045 else
7046 ac_checking_flags=release
7047 fi
7048 fi
7049
7050 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
7051 for check in release $ac_checking_flags
7052 do
7053 case $check in
7054 # these set all the flags to specific states
7055 yes) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
7056 ac_fold_checking= ; ac_gc_checking=1 ;
7057 ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
7058 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7059 ac_tree_checking=1 ; ac_valgrind_checking= ;
7060 ac_types_checking=1 ;;
7061 no|none) ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
7062 ac_fold_checking= ; ac_gc_checking= ;
7063 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
7064 ac_rtlflag_checking= ; ac_runtime_checking= ;
7065 ac_tree_checking= ; ac_valgrind_checking= ;
7066 ac_types_checking= ;;
7067 all) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
7068 ac_fold_checking=1 ; ac_gc_checking=1 ;
7069 ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
7070 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7071 ac_tree_checking=1 ; ac_valgrind_checking= ;
7072 ac_types_checking=1 ;;
7073 release) ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
7074 ac_fold_checking= ; ac_gc_checking= ;
7075 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
7076 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
7077 ac_tree_checking= ; ac_valgrind_checking= ;
7078 ac_types_checking= ;;
7079 # these enable particular checks
7080 assert) ac_assert_checking=1 ;;
7081 df) ac_df_checking=1 ;;
7082 fold) ac_fold_checking=1 ;;
7083 gc) ac_gc_checking=1 ;;
7084 gcac) ac_gc_always_collect=1 ;;
7085 gimple) ac_gimple_checking=1 ;;
7086 misc) ac_checking=1 ;;
7087 rtl) ac_rtl_checking=1 ;;
7088 rtlflag) ac_rtlflag_checking=1 ;;
7089 runtime) ac_runtime_checking=1 ;;
7090 tree) ac_tree_checking=1 ;;
7091 types) ac_types_checking=1 ;;
7092 valgrind) ac_valgrind_checking=1 ;;
7093 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
7094 esac
7095 done
7096 IFS="$ac_save_IFS"
7097
7098 nocommon_flag=""
7099 if test x$ac_checking != x ; then
7100
7101 $as_echo "#define CHECKING_P 1" >>confdefs.h
7102
7103 nocommon_flag=-fno-common
7104 else
7105 $as_echo "#define CHECKING_P 0" >>confdefs.h
7106
7107 fi
7108
7109 if test x$ac_df_checking != x ; then
7110
7111 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
7112
7113 fi
7114 if test x$ac_assert_checking != x ; then
7115
7116 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
7117
7118 fi
7119 if test x$ac_gimple_checking != x ; then
7120
7121 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
7122
7123 fi
7124
7125 if test x$ac_runtime_checking != x ; then
7126
7127 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
7128
7129 fi
7130 if test x$ac_tree_checking != x ; then
7131
7132 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
7133
7134 TREECHECKING=yes
7135 fi
7136 if test x$ac_types_checking != x ; then
7137
7138 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
7139
7140 fi
7141
7142 if test x$ac_rtl_checking != x ; then
7143
7144 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
7145
7146 fi
7147 if test x$ac_rtlflag_checking != x ; then
7148
7149 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
7150
7151 fi
7152 if test x$ac_gc_checking != x ; then
7153
7154 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
7155
7156 fi
7157 if test x$ac_gc_always_collect != x ; then
7158
7159 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
7160
7161 fi
7162 if test x$ac_fold_checking != x ; then
7163
7164 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
7165
7166 fi
7167 valgrind_path_defines=
7168 valgrind_command=
7169
7170 ac_fn_cxx_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
7171 if test "x$ac_cv_header_valgrind_h" = x""yes; then :
7172 have_valgrind_h=yes
7173 else
7174 have_valgrind_h=no
7175 fi
7176
7177
7178
7179 # It is certainly possible that there's valgrind but no valgrind.h.
7180 # GCC relies on making annotations so we must have both.
7181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
7182 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
7183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7184 /* end confdefs.h. */
7185 #include <valgrind/memcheck.h>
7186 #ifndef VALGRIND_DISCARD
7187 #error VALGRIND_DISCARD not defined
7188 #endif
7189 _ACEOF
7190 if ac_fn_cxx_try_cpp "$LINENO"; then :
7191 gcc_cv_header_valgrind_memcheck_h=yes
7192 else
7193 gcc_cv_header_valgrind_memcheck_h=no
7194 fi
7195 rm -f conftest.err conftest.$ac_ext
7196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
7197 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
7198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
7199 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
7200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7201 /* end confdefs.h. */
7202 #include <memcheck.h>
7203 #ifndef VALGRIND_DISCARD
7204 #error VALGRIND_DISCARD not defined
7205 #endif
7206 _ACEOF
7207 if ac_fn_cxx_try_cpp "$LINENO"; then :
7208 gcc_cv_header_memcheck_h=yes
7209 else
7210 gcc_cv_header_memcheck_h=no
7211 fi
7212 rm -f conftest.err conftest.$ac_ext
7213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
7214 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
7215 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
7216
7217 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
7218
7219 fi
7220 if test $gcc_cv_header_memcheck_h = yes; then
7221
7222 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
7223
7224 fi
7225
7226 if test x$ac_valgrind_checking != x ; then
7227
7228 # Prepare PATH_SEPARATOR.
7229 # The user is always right.
7230 if test "${PATH_SEPARATOR+set}" != set; then
7231 echo "#! /bin/sh" >conf$$.sh
7232 echo "exit 0" >>conf$$.sh
7233 chmod +x conf$$.sh
7234 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7235 PATH_SEPARATOR=';'
7236 else
7237 PATH_SEPARATOR=:
7238 fi
7239 rm -f conf$$.sh
7240 fi
7241
7242 # Find out how to test for executable files. Don't use a zero-byte file,
7243 # as systems may use methods other than mode bits to determine executability.
7244 cat >conf$$.file <<_ASEOF
7245 #! /bin/sh
7246 exit 0
7247 _ASEOF
7248 chmod +x conf$$.file
7249 if test -x conf$$.file >/dev/null 2>&1; then
7250 ac_executable_p="test -x"
7251 else
7252 ac_executable_p="test -f"
7253 fi
7254 rm -f conf$$.file
7255
7256 # Extract the first word of "valgrind", so it can be a program name with args.
7257 set dummy valgrind; ac_word=$2
7258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7259 $as_echo_n "checking for $ac_word... " >&6; }
7260 if test "${ac_cv_path_valgrind_path+set}" = set; then :
7261 $as_echo_n "(cached) " >&6
7262 else
7263 case "$valgrind_path" in
7264 [\\/]* | ?:[\\/]*)
7265 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
7266 ;;
7267 *)
7268 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7269 for ac_dir in $PATH; do
7270 IFS="$ac_save_IFS"
7271 test -z "$ac_dir" && ac_dir=.
7272 for ac_exec_ext in '' $ac_executable_extensions; do
7273 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7274 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
7275 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
7276 break 2
7277 fi
7278 fi
7279 done
7280 done
7281 IFS="$ac_save_IFS"
7282 ;;
7283 esac
7284 fi
7285 valgrind_path="$ac_cv_path_valgrind_path"
7286 if test -n "$valgrind_path"; then
7287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
7288 $as_echo "$valgrind_path" >&6; }
7289 else
7290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7291 $as_echo "no" >&6; }
7292 fi
7293
7294 if test "x$valgrind_path" = "x" \
7295 || (test $have_valgrind_h = no \
7296 && test $gcc_cv_header_memcheck_h = no \
7297 && test $gcc_cv_header_valgrind_memcheck_h = no); then
7298 as_fn_error "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7299 fi
7300 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
7301 valgrind_command="$valgrind_path -q"
7302
7303 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
7304
7305 fi
7306
7307
7308
7309 # Enable code coverage collection
7310 # Check whether --enable-coverage was given.
7311 if test "${enable_coverage+set}" = set; then :
7312 enableval=$enable_coverage; case "${enableval}" in
7313 yes|noopt)
7314 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
7315 ;;
7316 opt)
7317 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
7318 ;;
7319 no)
7320 # a.k.a. --disable-coverage
7321 coverage_flags=""
7322 ;;
7323 *)
7324 as_fn_error "unknown coverage setting $enableval" "$LINENO" 5
7325 ;;
7326 esac
7327 else
7328 coverage_flags=""
7329 fi
7330
7331
7332
7333 # Check whether --enable-gather-detailed-mem-stats was given.
7334 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
7335 enableval=$enable_gather_detailed_mem_stats;
7336 else
7337 enable_gather_detailed_mem_stats=no
7338 fi
7339
7340 gather_stats=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
7341
7342 cat >>confdefs.h <<_ACEOF
7343 #define GATHER_STATISTICS $gather_stats
7344 _ACEOF
7345
7346
7347 # Check whether --enable-valgrind-annotations was given.
7348 if test "${enable_valgrind_annotations+set}" = set; then :
7349 enableval=$enable_valgrind_annotations;
7350 else
7351 enable_valgrind_annotations=no
7352 fi
7353
7354 if test x$enable_valgrind_annotations != xno \
7355 || test x$ac_valgrind_checking != x; then
7356 if (test $have_valgrind_h = no \
7357 && test $gcc_cv_header_memcheck_h = no \
7358 && test $gcc_cv_header_valgrind_memcheck_h = no); then
7359 as_fn_error "*** Can't find valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7360 fi
7361
7362 $as_echo "#define ENABLE_VALGRIND_ANNOTATIONS 1" >>confdefs.h
7363
7364 fi
7365
7366 # -------------------------------
7367 # Miscenalleous configure options
7368 # -------------------------------
7369
7370 # With stabs
7371
7372 # Check whether --with-stabs was given.
7373 if test "${with_stabs+set}" = set; then :
7374 withval=$with_stabs; stabs="$with_stabs"
7375 else
7376 stabs=no
7377 fi
7378
7379
7380 # Determine whether or not multilibs are enabled.
7381 # Check whether --enable-multilib was given.
7382 if test "${enable_multilib+set}" = set; then :
7383 enableval=$enable_multilib;
7384 else
7385 enable_multilib=yes
7386 fi
7387
7388
7389
7390 # Determine whether or not multiarch is enabled.
7391 # Check whether --enable-multiarch was given.
7392 if test "${enable_multiarch+set}" = set; then :
7393 enableval=$enable_multiarch; case "${enableval}" in
7394 yes|no|auto) enable_multiarch=$enableval;;
7395 *) as_fn_error "bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
7396 esac
7397 else
7398 enable_multiarch=auto
7399 fi
7400
7401 if test x${enable_multiarch} = xauto; then
7402 if test x${with_native_system_header_dir} != x; then
7403 ma_msg_suffix=", disabled auto check (configured with --native-system-header-dir)"
7404 enable_multiarch=no
7405 fi
7406 if test x$host != x$target && test "x$with_sysroot" = x; then
7407 ma_msg_suffix=", disabled auto check (cross build configured without --with-sysroot)"
7408 enable_multiarch=no
7409 fi
7410 fi
7411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
7412 $as_echo_n "checking for multiarch configuration... " >&6; }
7413
7414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
7415 $as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
7416
7417 # needed for setting the multiarch name for soft-float/hard-float ABIs
7418
7419
7420
7421 # Enable __cxa_atexit for C++.
7422 # Check whether --enable-__cxa_atexit was given.
7423 if test "${enable___cxa_atexit+set}" = set; then :
7424 enableval=$enable___cxa_atexit;
7425 fi
7426
7427
7428 # Enable C extension for decimal float if target supports it.
7429
7430 # Check whether --enable-decimal-float was given.
7431 if test "${enable_decimal_float+set}" = set; then :
7432 enableval=$enable_decimal_float;
7433 case $enable_decimal_float in
7434 yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
7435 *) as_fn_error "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7436 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7437 esac
7438
7439 else
7440
7441 case $target in
7442 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
7443 i?86*-*-elfiamcu | i?86*-*-gnu* | \
7444 i?86*-*-mingw* | x86_64*-*-mingw* | \
7445 i?86*-*-cygwin* | x86_64*-*-cygwin*)
7446 enable_decimal_float=yes
7447 ;;
7448 *)
7449 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7450 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7451 enable_decimal_float=no
7452 ;;
7453 esac
7454
7455 fi
7456
7457
7458 # x86's use BID format instead of DPD
7459 case x$enable_decimal_float in
7460 xyes)
7461 case $target in
7462 i?86*-*-* | x86_64*-*-*)
7463 enable_decimal_float=bid
7464 ;;
7465 *)
7466 enable_decimal_float=dpd
7467 ;;
7468 esac
7469 default_decimal_float=$enable_decimal_float
7470 ;;
7471 xno)
7472 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7473 # dependency on libdecnumber.
7474 default_decimal_float=dpd
7475 ;;
7476 esac
7477
7478
7479
7480
7481 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7482
7483 cat >>confdefs.h <<_ACEOF
7484 #define ENABLE_DECIMAL_FLOAT $dfp
7485 _ACEOF
7486
7487
7488 # Use default_decimal_float for dependency.
7489 enable_decimal_float=$default_decimal_float
7490
7491 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7492
7493 cat >>confdefs.h <<_ACEOF
7494 #define ENABLE_DECIMAL_BID_FORMAT $bid
7495 _ACEOF
7496
7497
7498 # Enable C extension for fixed-point arithmetic.
7499 # Check whether --enable-fixed-point was given.
7500 if test "${enable_fixed_point+set}" = set; then :
7501 enableval=$enable_fixed_point;
7502 else
7503
7504 case $target in
7505 arm*)
7506 enable_fixed_point=yes
7507 ;;
7508
7509 mips*-*-*)
7510 enable_fixed_point=yes
7511 ;;
7512 *)
7513 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7514 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7515 enable_fixed_point=no
7516 ;;
7517 esac
7518
7519 fi
7520
7521
7522
7523 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7524
7525 cat >>confdefs.h <<_ACEOF
7526 #define ENABLE_FIXED_POINT $fixedpoint
7527 _ACEOF
7528
7529
7530 # Enable threads
7531 # Pass with no value to take the default
7532 # Pass with a value to specify a thread package
7533 # Check whether --enable-threads was given.
7534 if test "${enable_threads+set}" = set; then :
7535 enableval=$enable_threads;
7536 else
7537 enable_threads=''
7538 fi
7539
7540
7541 # Check whether --enable-tls was given.
7542 if test "${enable_tls+set}" = set; then :
7543 enableval=$enable_tls;
7544 case $enable_tls in
7545 yes | no) ;;
7546 *) as_fn_error "'$enable_tls' is an invalid value for --enable-tls.
7547 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7548 esac
7549
7550 else
7551 enable_tls=''
7552 fi
7553
7554
7555 # Check whether --enable-objc-gc was given.
7556 if test "${enable_objc_gc+set}" = set; then :
7557 enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
7558 objc_boehm_gc=''
7559 else
7560 objc_boehm_gc=1
7561 fi
7562 else
7563 objc_boehm_gc=''
7564 fi
7565
7566
7567
7568 # Check whether --with-dwarf2 was given.
7569 if test "${with_dwarf2+set}" = set; then :
7570 withval=$with_dwarf2; dwarf2="$with_dwarf2"
7571 else
7572 dwarf2=no
7573 fi
7574
7575
7576 # Check whether --enable-shared was given.
7577 if test "${enable_shared+set}" = set; then :
7578 enableval=$enable_shared;
7579 case $enable_shared in
7580 yes | no) ;;
7581 *)
7582 enable_shared=no
7583 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7584 for pkg in $enableval; do
7585 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7586 enable_shared=yes
7587 fi
7588 done
7589 IFS="$ac_save_ifs"
7590 ;;
7591 esac
7592
7593 else
7594 enable_shared=yes
7595 fi
7596
7597
7598
7599
7600 # Check whether --with-specs was given.
7601 if test "${with_specs+set}" = set; then :
7602 withval=$with_specs; CONFIGURE_SPECS=$withval
7603 else
7604 CONFIGURE_SPECS=
7605
7606 fi
7607
7608
7609
7610
7611
7612 # Check whether --with-pkgversion was given.
7613 if test "${with_pkgversion+set}" = set; then :
7614 withval=$with_pkgversion; case "$withval" in
7615 yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
7616 no) PKGVERSION= ;;
7617 *) PKGVERSION="($withval) " ;;
7618 esac
7619 else
7620 PKGVERSION="(GCC) "
7621
7622 fi
7623
7624
7625
7626
7627
7628 # Check whether --with-bugurl was given.
7629 if test "${with_bugurl+set}" = set; then :
7630 withval=$with_bugurl; case "$withval" in
7631 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
7632 no) BUGURL=
7633 ;;
7634 *) BUGURL="$withval"
7635 ;;
7636 esac
7637 else
7638 BUGURL="http://gcc.gnu.org/bugs.html"
7639
7640 fi
7641
7642 case ${BUGURL} in
7643 "")
7644 REPORT_BUGS_TO=
7645 REPORT_BUGS_TEXI=
7646 ;;
7647 *)
7648 REPORT_BUGS_TO="<$BUGURL>"
7649 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
7650 ;;
7651 esac;
7652
7653
7654
7655
7656 # Sanity check enable_languages in case someone does not run the toplevel
7657 # configure # script.
7658 # Check whether --enable-languages was given.
7659 if test "${enable_languages+set}" = set; then :
7660 enableval=$enable_languages; case ,${enable_languages}, in
7661 ,,|,yes,)
7662 # go safe -- we cannot be much sure without the toplevel
7663 # configure's
7664 # analysis of which target libs are present and usable
7665 enable_languages=c
7666 ;;
7667 *,all,*)
7668 as_fn_error "only the toplevel supports --enable-languages=all" "$LINENO" 5
7669 ;;
7670 *,c,*)
7671 ;;
7672 *)
7673 enable_languages=c,${enable_languages}
7674 ;;
7675 esac
7676 else
7677 enable_languages=c
7678 fi
7679
7680
7681 if test x"$enable_as_accelerator_for" != x; then
7682
7683 $as_echo "#define ACCEL_COMPILER 1" >>confdefs.h
7684
7685 enable_as_accelerator=yes
7686 case "${target}" in
7687 *-intelmicemul-*)
7688 # In this case we expect offload compiler to be built as native, so we
7689 # need to rename the driver to avoid clashes with host's drivers.
7690 program_transform_name="s&^&${target}-&" ;;
7691 esac
7692 sedscript="s#${target_noncanonical}#${enable_as_accelerator_for}-accel-${target_noncanonical}#"
7693 program_transform_name=`echo $program_transform_name | sed $sedscript`
7694 accel_dir_suffix=/accel/${target_noncanonical}
7695 real_target_noncanonical=${enable_as_accelerator_for}
7696 fi
7697
7698
7699
7700
7701 for tgt in `echo $enable_offload_targets | sed 's/,/ /g'`; do
7702 tgt=`echo $tgt | sed 's/=.*//'`
7703 if test x"$offload_targets" = x; then
7704 offload_targets=$tgt
7705 else
7706 offload_targets="$offload_targets,$tgt"
7707 fi
7708 done
7709
7710 cat >>confdefs.h <<_ACEOF
7711 #define OFFLOAD_TARGETS "$offload_targets"
7712 _ACEOF
7713
7714 if test x"$offload_targets" != x; then
7715
7716 $as_echo "#define ENABLE_OFFLOADING 1" >>confdefs.h
7717
7718 fi
7719
7720
7721 # Check whether --with-multilib-list was given.
7722 if test "${with_multilib_list+set}" = set; then :
7723 withval=$with_multilib_list; :
7724 else
7725 with_multilib_list=default
7726 fi
7727
7728
7729 # -------------------------
7730 # Checks for other programs
7731 # -------------------------
7732
7733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7734 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7735 set x ${MAKE-make}
7736 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7737 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7738 $as_echo_n "(cached) " >&6
7739 else
7740 cat >conftest.make <<\_ACEOF
7741 SHELL = /bin/sh
7742 all:
7743 @echo '@@@%%%=$(MAKE)=@@@%%%'
7744 _ACEOF
7745 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7746 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7747 *@@@%%%=?*=@@@%%%*)
7748 eval ac_cv_prog_make_${ac_make}_set=yes;;
7749 *)
7750 eval ac_cv_prog_make_${ac_make}_set=no;;
7751 esac
7752 rm -f conftest.make
7753 fi
7754 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7756 $as_echo "yes" >&6; }
7757 SET_MAKE=
7758 else
7759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7760 $as_echo "no" >&6; }
7761 SET_MAKE="MAKE=${MAKE-make}"
7762 fi
7763
7764
7765 # Find some useful tools
7766 for ac_prog in gawk mawk nawk awk
7767 do
7768 # Extract the first word of "$ac_prog", so it can be a program name with args.
7769 set dummy $ac_prog; ac_word=$2
7770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7771 $as_echo_n "checking for $ac_word... " >&6; }
7772 if test "${ac_cv_prog_AWK+set}" = set; then :
7773 $as_echo_n "(cached) " >&6
7774 else
7775 if test -n "$AWK"; then
7776 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7777 else
7778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7779 for as_dir in $PATH
7780 do
7781 IFS=$as_save_IFS
7782 test -z "$as_dir" && as_dir=.
7783 for ac_exec_ext in '' $ac_executable_extensions; do
7784 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7785 ac_cv_prog_AWK="$ac_prog"
7786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7787 break 2
7788 fi
7789 done
7790 done
7791 IFS=$as_save_IFS
7792
7793 fi
7794 fi
7795 AWK=$ac_cv_prog_AWK
7796 if test -n "$AWK"; then
7797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7798 $as_echo "$AWK" >&6; }
7799 else
7800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7801 $as_echo "no" >&6; }
7802 fi
7803
7804
7805 test -n "$AWK" && break
7806 done
7807
7808 # We need awk to create options.c and options.h.
7809 # Bail out if it's missing.
7810 case ${AWK} in
7811 "") as_fn_error "can't build without awk, bailing out" "$LINENO" 5 ;;
7812 esac
7813
7814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7815 $as_echo_n "checking whether ln -s works... " >&6; }
7816 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7817 $as_echo_n "(cached) " >&6
7818 else
7819 rm -f conftestdata_t
7820 echo >conftestdata_f
7821 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7822 then
7823 gcc_cv_prog_LN_S="ln -s"
7824 else
7825 if ln conftestdata_f conftestdata_t 2>/dev/null
7826 then
7827 gcc_cv_prog_LN_S=ln
7828 else
7829 if cp -p conftestdata_f conftestdata_t 2>/dev/null
7830 then
7831 gcc_cv_prog_LN_S="cp -p"
7832 else
7833 gcc_cv_prog_LN_S=cp
7834 fi
7835 fi
7836 fi
7837 rm -f conftestdata_f conftestdata_t
7838
7839 fi
7840 LN_S="$gcc_cv_prog_LN_S"
7841 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7843 $as_echo "yes" >&6; }
7844 else
7845 if test "$gcc_cv_prog_LN_S" = "ln"; then
7846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7847 $as_echo "no, using ln" >&6; }
7848 else
7849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7850 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7851 fi
7852 fi
7853
7854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7855 $as_echo_n "checking whether ln works... " >&6; }
7856 if test "${acx_cv_prog_LN+set}" = set; then :
7857 $as_echo_n "(cached) " >&6
7858 else
7859 rm -f conftestdata_t
7860 echo >conftestdata_f
7861 if ln conftestdata_f conftestdata_t 2>/dev/null
7862 then
7863 acx_cv_prog_LN=ln
7864 else
7865 acx_cv_prog_LN=no
7866 fi
7867 rm -f conftestdata_f conftestdata_t
7868
7869 fi
7870 if test $acx_cv_prog_LN = no; then
7871 LN="$LN_S"
7872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7873 $as_echo "no, using $LN" >&6; }
7874 else
7875 LN="$acx_cv_prog_LN"
7876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7877 $as_echo "yes" >&6; }
7878 fi
7879
7880 if test -n "$ac_tool_prefix"; then
7881 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7882 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7884 $as_echo_n "checking for $ac_word... " >&6; }
7885 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7886 $as_echo_n "(cached) " >&6
7887 else
7888 if test -n "$RANLIB"; then
7889 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7890 else
7891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7892 for as_dir in $PATH
7893 do
7894 IFS=$as_save_IFS
7895 test -z "$as_dir" && as_dir=.
7896 for ac_exec_ext in '' $ac_executable_extensions; do
7897 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7898 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7900 break 2
7901 fi
7902 done
7903 done
7904 IFS=$as_save_IFS
7905
7906 fi
7907 fi
7908 RANLIB=$ac_cv_prog_RANLIB
7909 if test -n "$RANLIB"; then
7910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7911 $as_echo "$RANLIB" >&6; }
7912 else
7913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7914 $as_echo "no" >&6; }
7915 fi
7916
7917
7918 fi
7919 if test -z "$ac_cv_prog_RANLIB"; then
7920 ac_ct_RANLIB=$RANLIB
7921 # Extract the first word of "ranlib", so it can be a program name with args.
7922 set dummy ranlib; ac_word=$2
7923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7924 $as_echo_n "checking for $ac_word... " >&6; }
7925 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7926 $as_echo_n "(cached) " >&6
7927 else
7928 if test -n "$ac_ct_RANLIB"; then
7929 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7930 else
7931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7932 for as_dir in $PATH
7933 do
7934 IFS=$as_save_IFS
7935 test -z "$as_dir" && as_dir=.
7936 for ac_exec_ext in '' $ac_executable_extensions; do
7937 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7938 ac_cv_prog_ac_ct_RANLIB="ranlib"
7939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7940 break 2
7941 fi
7942 done
7943 done
7944 IFS=$as_save_IFS
7945
7946 fi
7947 fi
7948 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7949 if test -n "$ac_ct_RANLIB"; then
7950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7951 $as_echo "$ac_ct_RANLIB" >&6; }
7952 else
7953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7954 $as_echo "no" >&6; }
7955 fi
7956
7957 if test "x$ac_ct_RANLIB" = x; then
7958 RANLIB=":"
7959 else
7960 case $cross_compiling:$ac_tool_warned in
7961 yes:)
7962 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7963 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7964 ac_tool_warned=yes ;;
7965 esac
7966 RANLIB=$ac_ct_RANLIB
7967 fi
7968 else
7969 RANLIB="$ac_cv_prog_RANLIB"
7970 fi
7971
7972 ranlib_flags=""
7973
7974
7975 # Find a good install program. We prefer a C program (faster),
7976 # so one script is as good as another. But avoid the broken or
7977 # incompatible versions:
7978 # SysV /etc/install, /usr/sbin/install
7979 # SunOS /usr/etc/install
7980 # IRIX /sbin/install
7981 # AIX /bin/install
7982 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7983 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7984 # ./install, which can be erroneously created by make from ./install.sh.
7985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
7986 $as_echo_n "checking for a BSD compatible install... " >&6; }
7987 if test -z "$INSTALL"; then
7988 if test "${ac_cv_path_install+set}" = set; then :
7989 $as_echo_n "(cached) " >&6
7990 else
7991 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
7992 for ac_dir in $PATH; do
7993 # Account for people who put trailing slashes in PATH elements.
7994 case "$ac_dir/" in
7995 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
7996 *)
7997 # OSF1 and SCO ODT 3.0 have their own names for install.
7998 for ac_prog in ginstall scoinst install; do
7999 if test -f $ac_dir/$ac_prog; then
8000 if test $ac_prog = install &&
8001 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
8002 # AIX install. It has an incompatible calling convention.
8003 # OSF/1 installbsd also uses dspmsg, but is usable.
8004 :
8005 else
8006 ac_cv_path_install="$ac_dir/$ac_prog -c"
8007 break 2
8008 fi
8009 fi
8010 done
8011 ;;
8012 esac
8013 done
8014 IFS="$ac_save_IFS"
8015
8016 fi
8017 if test "${ac_cv_path_install+set}" = set; then
8018 INSTALL="$ac_cv_path_install"
8019 else
8020 # As a last resort, use the slow shell script. We don't cache a
8021 # path for INSTALL within a source directory, because that will
8022 # break other packages using the cache if that directory is
8023 # removed, or if the path is relative.
8024 INSTALL="$ac_install_sh"
8025 fi
8026 fi
8027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
8028 $as_echo "$INSTALL" >&6; }
8029
8030 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8031 # It thinks the first close brace ends the variable substitution.
8032 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8033
8034 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8035
8036
8037 # See if cmp has --ignore-initial.
8038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
8039 $as_echo_n "checking for cmp's capabilities... " >&6; }
8040 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
8041 $as_echo_n "(cached) " >&6
8042 else
8043 echo abfoo >t1
8044 echo cdfoo >t2
8045 gcc_cv_prog_cmp_skip=slowcompare
8046 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
8047 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
8048 :
8049 else
8050 gcc_cv_prog_cmp_skip=gnucompare
8051 fi
8052 fi
8053 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
8054 if cmp t1 t2 2 2 > /dev/null 2>&1; then
8055 if cmp t1 t2 1 1 > /dev/null 2>&1; then
8056 :
8057 else
8058 gcc_cv_prog_cmp_skip=fastcompare
8059 fi
8060 fi
8061 fi
8062 rm t1 t2
8063
8064 fi
8065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
8066 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
8067 make_compare_target=$gcc_cv_prog_cmp_skip
8068
8069
8070
8071 # See if we have the mktemp command.
8072 # Extract the first word of "mktemp", so it can be a program name with args.
8073 set dummy mktemp; ac_word=$2
8074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8075 $as_echo_n "checking for $ac_word... " >&6; }
8076 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
8077 $as_echo_n "(cached) " >&6
8078 else
8079 if test -n "$have_mktemp_command"; then
8080 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
8081 else
8082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8083 for as_dir in $PATH
8084 do
8085 IFS=$as_save_IFS
8086 test -z "$as_dir" && as_dir=.
8087 for ac_exec_ext in '' $ac_executable_extensions; do
8088 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8089 ac_cv_prog_have_mktemp_command="yes"
8090 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8091 break 2
8092 fi
8093 done
8094 done
8095 IFS=$as_save_IFS
8096
8097 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
8098 fi
8099 fi
8100 have_mktemp_command=$ac_cv_prog_have_mktemp_command
8101 if test -n "$have_mktemp_command"; then
8102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
8103 $as_echo "$have_mktemp_command" >&6; }
8104 else
8105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8106 $as_echo "no" >&6; }
8107 fi
8108
8109
8110
8111 # See if makeinfo has been installed and is modern enough
8112 # that we can use it.
8113
8114 # Extract the first word of "makeinfo", so it can be a program name with args.
8115 set dummy makeinfo; ac_word=$2
8116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8117 $as_echo_n "checking for $ac_word... " >&6; }
8118 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
8119 $as_echo_n "(cached) " >&6
8120 else
8121 if test -n "$MAKEINFO"; then
8122 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
8123 else
8124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8125 for as_dir in $PATH
8126 do
8127 IFS=$as_save_IFS
8128 test -z "$as_dir" && as_dir=.
8129 for ac_exec_ext in '' $ac_executable_extensions; do
8130 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8131 ac_cv_prog_MAKEINFO="makeinfo"
8132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8133 break 2
8134 fi
8135 done
8136 done
8137 IFS=$as_save_IFS
8138
8139 fi
8140 fi
8141 MAKEINFO=$ac_cv_prog_MAKEINFO
8142 if test -n "$MAKEINFO"; then
8143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8144 $as_echo "$MAKEINFO" >&6; }
8145 else
8146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8147 $as_echo "no" >&6; }
8148 fi
8149
8150
8151 if test -n "$MAKEINFO"; then
8152 # Found it, now check the version.
8153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
8154 $as_echo_n "checking for modern makeinfo... " >&6; }
8155 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
8156 $as_echo_n "(cached) " >&6
8157 else
8158 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
8159 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
8160
8161 case $ac_prog_version in
8162 '') gcc_cv_prog_makeinfo_modern=no;;
8163 4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
8164 *) gcc_cv_prog_makeinfo_modern=no;;
8165 esac
8166
8167 fi
8168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
8169 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
8170 else
8171 gcc_cv_prog_makeinfo_modern=no
8172 fi
8173 if test $gcc_cv_prog_makeinfo_modern = no; then
8174 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
8175 fi
8176
8177 if test $gcc_cv_prog_makeinfo_modern = no; then
8178 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8179 *** Makeinfo is missing or too old.
8180 *** Info documentation will not be built." >&5
8181 $as_echo "$as_me: WARNING:
8182 *** Makeinfo is missing or too old.
8183 *** Info documentation will not be built." >&2;}
8184 BUILD_INFO=
8185 else
8186 BUILD_INFO=info
8187 fi
8188
8189
8190 # Is pod2man recent enough to regenerate manpages?
8191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
8192 $as_echo_n "checking for recent Pod::Man... " >&6; }
8193 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
8194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8195 $as_echo "yes" >&6; }
8196 GENERATED_MANPAGES=generated-manpages
8197 else
8198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8199 $as_echo "no" >&6; }
8200 GENERATED_MANPAGES=
8201 fi
8202
8203
8204 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
8205
8206 # How about lex?
8207 for ac_prog in flex
8208 do
8209 # Extract the first word of "$ac_prog", so it can be a program name with args.
8210 set dummy $ac_prog; ac_word=$2
8211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8212 $as_echo_n "checking for $ac_word... " >&6; }
8213 if test "${ac_cv_prog_FLEX+set}" = set; then :
8214 $as_echo_n "(cached) " >&6
8215 else
8216 if test -n "$FLEX"; then
8217 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
8218 else
8219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8220 for as_dir in $PATH
8221 do
8222 IFS=$as_save_IFS
8223 test -z "$as_dir" && as_dir=.
8224 for ac_exec_ext in '' $ac_executable_extensions; do
8225 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8226 ac_cv_prog_FLEX="$ac_prog"
8227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8228 break 2
8229 fi
8230 done
8231 done
8232 IFS=$as_save_IFS
8233
8234 fi
8235 fi
8236 FLEX=$ac_cv_prog_FLEX
8237 if test -n "$FLEX"; then
8238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
8239 $as_echo "$FLEX" >&6; }
8240 else
8241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8242 $as_echo "no" >&6; }
8243 fi
8244
8245
8246 test -n "$FLEX" && break
8247 done
8248 test -n "$FLEX" || FLEX="$MISSING flex"
8249
8250
8251 # Bison?
8252 for ac_prog in bison
8253 do
8254 # Extract the first word of "$ac_prog", so it can be a program name with args.
8255 set dummy $ac_prog; ac_word=$2
8256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8257 $as_echo_n "checking for $ac_word... " >&6; }
8258 if test "${ac_cv_prog_BISON+set}" = set; then :
8259 $as_echo_n "(cached) " >&6
8260 else
8261 if test -n "$BISON"; then
8262 ac_cv_prog_BISON="$BISON" # Let the user override the test.
8263 else
8264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8265 for as_dir in $PATH
8266 do
8267 IFS=$as_save_IFS
8268 test -z "$as_dir" && as_dir=.
8269 for ac_exec_ext in '' $ac_executable_extensions; do
8270 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8271 ac_cv_prog_BISON="$ac_prog"
8272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8273 break 2
8274 fi
8275 done
8276 done
8277 IFS=$as_save_IFS
8278
8279 fi
8280 fi
8281 BISON=$ac_cv_prog_BISON
8282 if test -n "$BISON"; then
8283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
8284 $as_echo "$BISON" >&6; }
8285 else
8286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8287 $as_echo "no" >&6; }
8288 fi
8289
8290
8291 test -n "$BISON" && break
8292 done
8293 test -n "$BISON" || BISON="$MISSING bison"
8294
8295
8296 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
8297 # check for build == host before using them.
8298
8299 # NM
8300 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
8301 && test -d ../binutils ; then
8302 NM='${objdir}/../binutils/nm-new'
8303 else
8304 # Extract the first word of "nm", so it can be a program name with args.
8305 set dummy nm; ac_word=$2
8306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8307 $as_echo_n "checking for $ac_word... " >&6; }
8308 if test "${ac_cv_prog_NM+set}" = set; then :
8309 $as_echo_n "(cached) " >&6
8310 else
8311 if test -n "$NM"; then
8312 ac_cv_prog_NM="$NM" # Let the user override the test.
8313 else
8314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8315 for as_dir in $PATH
8316 do
8317 IFS=$as_save_IFS
8318 test -z "$as_dir" && as_dir=.
8319 for ac_exec_ext in '' $ac_executable_extensions; do
8320 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8321 ac_cv_prog_NM="nm"
8322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8323 break 2
8324 fi
8325 done
8326 done
8327 IFS=$as_save_IFS
8328
8329 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
8330 fi
8331 fi
8332 NM=$ac_cv_prog_NM
8333 if test -n "$NM"; then
8334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8335 $as_echo "$NM" >&6; }
8336 else
8337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8338 $as_echo "no" >&6; }
8339 fi
8340
8341
8342 fi
8343
8344 # AR
8345 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
8346 && test -d ../binutils ; then
8347 AR='${objdir}/../binutils/ar'
8348 else
8349 # Extract the first word of "ar", so it can be a program name with args.
8350 set dummy ar; ac_word=$2
8351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8352 $as_echo_n "checking for $ac_word... " >&6; }
8353 if test "${ac_cv_prog_AR+set}" = set; then :
8354 $as_echo_n "(cached) " >&6
8355 else
8356 if test -n "$AR"; then
8357 ac_cv_prog_AR="$AR" # Let the user override the test.
8358 else
8359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8360 for as_dir in $PATH
8361 do
8362 IFS=$as_save_IFS
8363 test -z "$as_dir" && as_dir=.
8364 for ac_exec_ext in '' $ac_executable_extensions; do
8365 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8366 ac_cv_prog_AR="ar"
8367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8368 break 2
8369 fi
8370 done
8371 done
8372 IFS=$as_save_IFS
8373
8374 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8375 fi
8376 fi
8377 AR=$ac_cv_prog_AR
8378 if test -n "$AR"; then
8379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8380 $as_echo "$AR" >&6; }
8381 else
8382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8383 $as_echo "no" >&6; }
8384 fi
8385
8386
8387 fi
8388
8389 # The jit documentation looks better if built with sphinx, but can be
8390 # built with texinfo if sphinx is not available.
8391 # Set "doc_build_sys" to "sphinx" or "texinfo" accordingly.
8392 # Extract the first word of "sphinx-build", so it can be a program name with args.
8393 set dummy sphinx-build; ac_word=$2
8394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8395 $as_echo_n "checking for $ac_word... " >&6; }
8396 if test "${ac_cv_prog_doc_build_sys+set}" = set; then :
8397 $as_echo_n "(cached) " >&6
8398 else
8399 if test -n "$doc_build_sys"; then
8400 ac_cv_prog_doc_build_sys="$doc_build_sys" # Let the user override the test.
8401 else
8402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8403 for as_dir in $PATH
8404 do
8405 IFS=$as_save_IFS
8406 test -z "$as_dir" && as_dir=.
8407 for ac_exec_ext in '' $ac_executable_extensions; do
8408 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8409 ac_cv_prog_doc_build_sys="sphinx"
8410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8411 break 2
8412 fi
8413 done
8414 done
8415 IFS=$as_save_IFS
8416
8417 test -z "$ac_cv_prog_doc_build_sys" && ac_cv_prog_doc_build_sys="texinfo"
8418 fi
8419 fi
8420 doc_build_sys=$ac_cv_prog_doc_build_sys
8421 if test -n "$doc_build_sys"; then
8422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doc_build_sys" >&5
8423 $as_echo "$doc_build_sys" >&6; }
8424 else
8425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8426 $as_echo "no" >&6; }
8427 fi
8428
8429
8430
8431 # --------------------
8432 # Checks for C headers
8433 # --------------------
8434
8435 # Need to reject headers which give warnings, so that the -Werror bootstrap
8436 # works later. *sigh* This needs to come before all header checks.
8437
8438 ac_c_preproc_warn_flag=yes
8439
8440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8441 $as_echo_n "checking for ANSI C header files... " >&6; }
8442 if test "${ac_cv_header_stdc+set}" = set; then :
8443 $as_echo_n "(cached) " >&6
8444 else
8445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8446 /* end confdefs.h. */
8447 #include <stdlib.h>
8448 #include <stdarg.h>
8449 #include <string.h>
8450 #include <float.h>
8451
8452 int
8453 main ()
8454 {
8455
8456 ;
8457 return 0;
8458 }
8459 _ACEOF
8460 if ac_fn_cxx_try_compile "$LINENO"; then :
8461 ac_cv_header_stdc=yes
8462 else
8463 ac_cv_header_stdc=no
8464 fi
8465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8466
8467 if test $ac_cv_header_stdc = yes; then
8468 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8470 /* end confdefs.h. */
8471 #include <string.h>
8472
8473 _ACEOF
8474 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8475 $EGREP "memchr" >/dev/null 2>&1; then :
8476
8477 else
8478 ac_cv_header_stdc=no
8479 fi
8480 rm -f conftest*
8481
8482 fi
8483
8484 if test $ac_cv_header_stdc = yes; then
8485 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8487 /* end confdefs.h. */
8488 #include <stdlib.h>
8489
8490 _ACEOF
8491 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8492 $EGREP "free" >/dev/null 2>&1; then :
8493
8494 else
8495 ac_cv_header_stdc=no
8496 fi
8497 rm -f conftest*
8498
8499 fi
8500
8501 if test $ac_cv_header_stdc = yes; then
8502 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8503 if test "$cross_compiling" = yes; then :
8504 :
8505 else
8506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8507 /* end confdefs.h. */
8508 #include <ctype.h>
8509 #include <stdlib.h>
8510 #if ((' ' & 0x0FF) == 0x020)
8511 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8512 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8513 #else
8514 # define ISLOWER(c) \
8515 (('a' <= (c) && (c) <= 'i') \
8516 || ('j' <= (c) && (c) <= 'r') \
8517 || ('s' <= (c) && (c) <= 'z'))
8518 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8519 #endif
8520
8521 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8522 int
8523 main ()
8524 {
8525 int i;
8526 for (i = 0; i < 256; i++)
8527 if (XOR (islower (i), ISLOWER (i))
8528 || toupper (i) != TOUPPER (i))
8529 return 2;
8530 return 0;
8531 }
8532 _ACEOF
8533 if ac_fn_cxx_try_run "$LINENO"; then :
8534
8535 else
8536 ac_cv_header_stdc=no
8537 fi
8538 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8539 conftest.$ac_objext conftest.beam conftest.$ac_ext
8540 fi
8541
8542 fi
8543 fi
8544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8545 $as_echo "$ac_cv_header_stdc" >&6; }
8546 if test $ac_cv_header_stdc = yes; then
8547
8548 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8549
8550 fi
8551
8552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8553 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8554 if test "${ac_cv_header_time+set}" = set; then :
8555 $as_echo_n "(cached) " >&6
8556 else
8557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8558 /* end confdefs.h. */
8559 #include <sys/types.h>
8560 #include <sys/time.h>
8561 #include <time.h>
8562
8563 int
8564 main ()
8565 {
8566 if ((struct tm *) 0)
8567 return 0;
8568 ;
8569 return 0;
8570 }
8571 _ACEOF
8572 if ac_fn_cxx_try_compile "$LINENO"; then :
8573 ac_cv_header_time=yes
8574 else
8575 ac_cv_header_time=no
8576 fi
8577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8578 fi
8579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8580 $as_echo "$ac_cv_header_time" >&6; }
8581 if test $ac_cv_header_time = yes; then
8582
8583 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8584
8585 fi
8586
8587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8588 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8589 if test "${gcc_cv_header_string+set}" = set; then :
8590 $as_echo_n "(cached) " >&6
8591 else
8592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8593 /* end confdefs.h. */
8594 #include <string.h>
8595 #include <strings.h>
8596 int
8597 main ()
8598 {
8599
8600 ;
8601 return 0;
8602 }
8603 _ACEOF
8604 if ac_fn_cxx_try_compile "$LINENO"; then :
8605 gcc_cv_header_string=yes
8606 else
8607 gcc_cv_header_string=no
8608 fi
8609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8610 fi
8611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8612 $as_echo "$gcc_cv_header_string" >&6; }
8613 if test $gcc_cv_header_string = yes; then
8614
8615 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8616
8617 fi
8618
8619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8620 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8621 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8622 $as_echo_n "(cached) " >&6
8623 else
8624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8625 /* end confdefs.h. */
8626 #include <sys/types.h>
8627 #include <sys/wait.h>
8628 #ifndef WEXITSTATUS
8629 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8630 #endif
8631 #ifndef WIFEXITED
8632 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8633 #endif
8634
8635 int
8636 main ()
8637 {
8638 int s;
8639 wait (&s);
8640 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8641 ;
8642 return 0;
8643 }
8644 _ACEOF
8645 if ac_fn_cxx_try_compile "$LINENO"; then :
8646 ac_cv_header_sys_wait_h=yes
8647 else
8648 ac_cv_header_sys_wait_h=no
8649 fi
8650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8651 fi
8652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8653 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8654 if test $ac_cv_header_sys_wait_h = yes; then
8655
8656 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8657
8658 fi
8659
8660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
8661 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
8662 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then :
8663 $as_echo_n "(cached) " >&6
8664 else
8665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8666 /* end confdefs.h. */
8667 #include <sys/types.h>
8668 #include <termios.h>
8669 #ifdef TIOCGWINSZ
8670 yes
8671 #endif
8672
8673 _ACEOF
8674 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8675 $EGREP "yes" >/dev/null 2>&1; then :
8676 ac_cv_sys_tiocgwinsz_in_termios_h=yes
8677 else
8678 ac_cv_sys_tiocgwinsz_in_termios_h=no
8679 fi
8680 rm -f conftest*
8681
8682 fi
8683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
8684 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
8685
8686 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
8687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
8688 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
8689 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then :
8690 $as_echo_n "(cached) " >&6
8691 else
8692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8693 /* end confdefs.h. */
8694 #include <sys/types.h>
8695 #include <sys/ioctl.h>
8696 #ifdef TIOCGWINSZ
8697 yes
8698 #endif
8699
8700 _ACEOF
8701 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8702 $EGREP "yes" >/dev/null 2>&1; then :
8703 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
8704 else
8705 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
8706 fi
8707 rm -f conftest*
8708
8709 fi
8710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
8711 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
8712
8713 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
8714
8715 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
8716
8717 fi
8718 fi
8719
8720 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8721 fcntl.h ftw.h unistd.h sys/file.h sys/time.h sys/mman.h \
8722 sys/resource.h sys/param.h sys/times.h sys/stat.h \
8723 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8724 do :
8725 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8726 ac_fn_cxx_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
8727 eval as_val=\$$as_ac_Header
8728 if test "x$as_val" = x""yes; then :
8729 cat >>confdefs.h <<_ACEOF
8730 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8731 _ACEOF
8732
8733 fi
8734 done
8735
8736
8737 # Check for thread headers.
8738 ac_fn_cxx_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
8739 if test "x$ac_cv_header_thread_h" = x""yes; then :
8740 have_thread_h=yes
8741 else
8742 have_thread_h=
8743 fi
8744
8745 ac_fn_cxx_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8746 if test "x$ac_cv_header_pthread_h" = x""yes; then :
8747 have_pthread_h=yes
8748 else
8749 have_pthread_h=
8750 fi
8751
8752
8753 # These tests can't be done till we know if we have limits.h.
8754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8755 $as_echo_n "checking for CHAR_BIT... " >&6; }
8756 if test "${gcc_cv_decl_char_bit+set}" = set; then :
8757 $as_echo_n "(cached) " >&6
8758 else
8759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8760 /* end confdefs.h. */
8761 #ifdef HAVE_LIMITS_H
8762 #include <limits.h>
8763 #endif
8764 #ifdef CHAR_BIT
8765 found
8766 #endif
8767 _ACEOF
8768 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8769 $EGREP "found" >/dev/null 2>&1; then :
8770 gcc_cv_decl_char_bit=yes
8771 else
8772 gcc_cv_decl_char_bit=no
8773 fi
8774 rm -f conftest*
8775
8776
8777 fi
8778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8779 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8780 if test $gcc_cv_decl_char_bit = no; then
8781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8782 $as_echo_n "checking number of bits in a byte... " >&6; }
8783 if test "${gcc_cv_c_nbby+set}" = set; then :
8784 $as_echo_n "(cached) " >&6
8785 else
8786 i=8
8787 gcc_cv_c_nbby=
8788 while test $i -lt 65; do
8789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8790 /* end confdefs.h. */
8791
8792 int
8793 main ()
8794 {
8795 switch(0) {
8796 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8797 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8798 ; }
8799 ;
8800 return 0;
8801 }
8802 _ACEOF
8803 if ac_fn_cxx_try_compile "$LINENO"; then :
8804 gcc_cv_c_nbby=$i; break
8805 fi
8806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8807 i=`expr $i + 1`
8808 done
8809 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
8810
8811 fi
8812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8813 $as_echo "$gcc_cv_c_nbby" >&6; }
8814 if test $gcc_cv_c_nbby = failed; then
8815 as_fn_error "cannot determine number of bits in a byte" "$LINENO" 5
8816 else
8817
8818 cat >>confdefs.h <<_ACEOF
8819 #define CHAR_BIT $gcc_cv_c_nbby
8820 _ACEOF
8821
8822 fi
8823 fi
8824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8825 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8826 if test "${ac_cv_c_bigendian+set}" = set; then :
8827 $as_echo_n "(cached) " >&6
8828 else
8829 ac_cv_c_bigendian=unknown
8830 # See if we're dealing with a universal compiler.
8831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8832 /* end confdefs.h. */
8833 #ifndef __APPLE_CC__
8834 not a universal capable compiler
8835 #endif
8836 typedef int dummy;
8837
8838 _ACEOF
8839 if ac_fn_cxx_try_compile "$LINENO"; then :
8840
8841 # Check for potential -arch flags. It is not universal unless
8842 # there are at least two -arch flags with different values.
8843 ac_arch=
8844 ac_prev=
8845 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8846 if test -n "$ac_prev"; then
8847 case $ac_word in
8848 i?86 | x86_64 | ppc | ppc64)
8849 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8850 ac_arch=$ac_word
8851 else
8852 ac_cv_c_bigendian=universal
8853 break
8854 fi
8855 ;;
8856 esac
8857 ac_prev=
8858 elif test "x$ac_word" = "x-arch"; then
8859 ac_prev=arch
8860 fi
8861 done
8862 fi
8863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8864 if test $ac_cv_c_bigendian = unknown; then
8865 # See if sys/param.h defines the BYTE_ORDER macro.
8866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8867 /* end confdefs.h. */
8868 #include <sys/types.h>
8869 #include <sys/param.h>
8870
8871 int
8872 main ()
8873 {
8874 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8875 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8876 && LITTLE_ENDIAN)
8877 bogus endian macros
8878 #endif
8879
8880 ;
8881 return 0;
8882 }
8883 _ACEOF
8884 if ac_fn_cxx_try_compile "$LINENO"; then :
8885 # It does; now see whether it defined to BIG_ENDIAN or not.
8886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8887 /* end confdefs.h. */
8888 #include <sys/types.h>
8889 #include <sys/param.h>
8890
8891 int
8892 main ()
8893 {
8894 #if BYTE_ORDER != BIG_ENDIAN
8895 not big endian
8896 #endif
8897
8898 ;
8899 return 0;
8900 }
8901 _ACEOF
8902 if ac_fn_cxx_try_compile "$LINENO"; then :
8903 ac_cv_c_bigendian=yes
8904 else
8905 ac_cv_c_bigendian=no
8906 fi
8907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8908 fi
8909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8910 fi
8911 if test $ac_cv_c_bigendian = unknown; then
8912 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8914 /* end confdefs.h. */
8915 #include <limits.h>
8916
8917 int
8918 main ()
8919 {
8920 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8921 bogus endian macros
8922 #endif
8923
8924 ;
8925 return 0;
8926 }
8927 _ACEOF
8928 if ac_fn_cxx_try_compile "$LINENO"; then :
8929 # It does; now see whether it defined to _BIG_ENDIAN or not.
8930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8931 /* end confdefs.h. */
8932 #include <limits.h>
8933
8934 int
8935 main ()
8936 {
8937 #ifndef _BIG_ENDIAN
8938 not big endian
8939 #endif
8940
8941 ;
8942 return 0;
8943 }
8944 _ACEOF
8945 if ac_fn_cxx_try_compile "$LINENO"; then :
8946 ac_cv_c_bigendian=yes
8947 else
8948 ac_cv_c_bigendian=no
8949 fi
8950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8951 fi
8952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8953 fi
8954 if test $ac_cv_c_bigendian = unknown; then
8955 # Compile a test program.
8956 if test "$cross_compiling" = yes; then :
8957 # Try to guess by grepping values from an object file.
8958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8959 /* end confdefs.h. */
8960 short int ascii_mm[] =
8961 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8962 short int ascii_ii[] =
8963 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8964 int use_ascii (int i) {
8965 return ascii_mm[i] + ascii_ii[i];
8966 }
8967 short int ebcdic_ii[] =
8968 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8969 short int ebcdic_mm[] =
8970 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8971 int use_ebcdic (int i) {
8972 return ebcdic_mm[i] + ebcdic_ii[i];
8973 }
8974 extern int foo;
8975
8976 int
8977 main ()
8978 {
8979 return use_ascii (foo) == use_ebcdic (foo);
8980 ;
8981 return 0;
8982 }
8983 _ACEOF
8984 if ac_fn_cxx_try_compile "$LINENO"; then :
8985 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8986 ac_cv_c_bigendian=yes
8987 fi
8988 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8989 if test "$ac_cv_c_bigendian" = unknown; then
8990 ac_cv_c_bigendian=no
8991 else
8992 # finding both strings is unlikely to happen, but who knows?
8993 ac_cv_c_bigendian=unknown
8994 fi
8995 fi
8996 fi
8997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8998 else
8999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9000 /* end confdefs.h. */
9001 $ac_includes_default
9002 int
9003 main ()
9004 {
9005
9006 /* Are we little or big endian? From Harbison&Steele. */
9007 union
9008 {
9009 long int l;
9010 char c[sizeof (long int)];
9011 } u;
9012 u.l = 1;
9013 return u.c[sizeof (long int) - 1] == 1;
9014
9015 ;
9016 return 0;
9017 }
9018 _ACEOF
9019 if ac_fn_cxx_try_run "$LINENO"; then :
9020 ac_cv_c_bigendian=no
9021 else
9022 ac_cv_c_bigendian=yes
9023 fi
9024 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9025 conftest.$ac_objext conftest.beam conftest.$ac_ext
9026 fi
9027
9028 fi
9029 fi
9030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9031 $as_echo "$ac_cv_c_bigendian" >&6; }
9032 case $ac_cv_c_bigendian in #(
9033 yes)
9034 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9035 ;; #(
9036 no)
9037 ;; #(
9038 universal)
9039
9040 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9041
9042 ;; #(
9043 *)
9044 as_fn_error "unknown endianness
9045 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9046 esac
9047
9048
9049 # ----------------------
9050 # Checks for C++ headers
9051 # ----------------------
9052
9053 ac_ext=cpp
9054 ac_cpp='$CXXCPP $CPPFLAGS'
9055 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9056 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9057 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
9059 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
9060 if test -z "$CXXCPP"; then
9061 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
9062 $as_echo_n "(cached) " >&6
9063 else
9064 # Double quotes because CXXCPP needs to be expanded
9065 for CXXCPP in "$CXX -E" "/lib/cpp"
9066 do
9067 ac_preproc_ok=false
9068 for ac_cxx_preproc_warn_flag in '' yes
9069 do
9070 # Use a header file that comes with gcc, so configuring glibc
9071 # with a fresh cross-compiler works.
9072 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9073 # <limits.h> exists even on freestanding compilers.
9074 # On the NeXT, cc -E runs the code through the compiler's parser,
9075 # not just through cpp. "Syntax error" is here to catch this case.
9076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9077 /* end confdefs.h. */
9078 #ifdef __STDC__
9079 # include <limits.h>
9080 #else
9081 # include <assert.h>
9082 #endif
9083 Syntax error
9084 _ACEOF
9085 if ac_fn_cxx_try_cpp "$LINENO"; then :
9086
9087 else
9088 # Broken: fails on valid input.
9089 continue
9090 fi
9091 rm -f conftest.err conftest.$ac_ext
9092
9093 # OK, works on sane cases. Now check whether nonexistent headers
9094 # can be detected and how.
9095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9096 /* end confdefs.h. */
9097 #include <ac_nonexistent.h>
9098 _ACEOF
9099 if ac_fn_cxx_try_cpp "$LINENO"; then :
9100 # Broken: success on invalid input.
9101 continue
9102 else
9103 # Passes both tests.
9104 ac_preproc_ok=:
9105 break
9106 fi
9107 rm -f conftest.err conftest.$ac_ext
9108
9109 done
9110 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9111 rm -f conftest.err conftest.$ac_ext
9112 if $ac_preproc_ok; then :
9113 break
9114 fi
9115
9116 done
9117 ac_cv_prog_CXXCPP=$CXXCPP
9118
9119 fi
9120 CXXCPP=$ac_cv_prog_CXXCPP
9121 else
9122 ac_cv_prog_CXXCPP=$CXXCPP
9123 fi
9124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
9125 $as_echo "$CXXCPP" >&6; }
9126 ac_preproc_ok=false
9127 for ac_cxx_preproc_warn_flag in '' yes
9128 do
9129 # Use a header file that comes with gcc, so configuring glibc
9130 # with a fresh cross-compiler works.
9131 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9132 # <limits.h> exists even on freestanding compilers.
9133 # On the NeXT, cc -E runs the code through the compiler's parser,
9134 # not just through cpp. "Syntax error" is here to catch this case.
9135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9136 /* end confdefs.h. */
9137 #ifdef __STDC__
9138 # include <limits.h>
9139 #else
9140 # include <assert.h>
9141 #endif
9142 Syntax error
9143 _ACEOF
9144 if ac_fn_cxx_try_cpp "$LINENO"; then :
9145
9146 else
9147 # Broken: fails on valid input.
9148 continue
9149 fi
9150 rm -f conftest.err conftest.$ac_ext
9151
9152 # OK, works on sane cases. Now check whether nonexistent headers
9153 # can be detected and how.
9154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9155 /* end confdefs.h. */
9156 #include <ac_nonexistent.h>
9157 _ACEOF
9158 if ac_fn_cxx_try_cpp "$LINENO"; then :
9159 # Broken: success on invalid input.
9160 continue
9161 else
9162 # Passes both tests.
9163 ac_preproc_ok=:
9164 break
9165 fi
9166 rm -f conftest.err conftest.$ac_ext
9167
9168 done
9169 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9170 rm -f conftest.err conftest.$ac_ext
9171 if $ac_preproc_ok; then :
9172
9173 else
9174 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9175 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9176 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9177 See \`config.log' for more details." >&5
9178 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9179 See \`config.log' for more details." >&2;}; }
9180 fi
9181
9182 ac_ext=cpp
9183 ac_cpp='$CXXCPP $CPPFLAGS'
9184 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9185 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9186 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9187
9188
9189 for ac_header in unordered_map
9190 do :
9191 ac_fn_cxx_check_header_preproc "$LINENO" "unordered_map" "ac_cv_header_unordered_map"
9192 if test "x$ac_cv_header_unordered_map" = x""yes; then :
9193 cat >>confdefs.h <<_ACEOF
9194 #define HAVE_UNORDERED_MAP 1
9195 _ACEOF
9196
9197 fi
9198 done
9199
9200 for ac_header in tr1/unordered_map
9201 do :
9202 ac_fn_cxx_check_header_preproc "$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
9203 if test "x$ac_cv_header_tr1_unordered_map" = x""yes; then :
9204 cat >>confdefs.h <<_ACEOF
9205 #define HAVE_TR1_UNORDERED_MAP 1
9206 _ACEOF
9207
9208 fi
9209 done
9210
9211 for ac_header in ext/hash_map
9212 do :
9213 ac_fn_cxx_check_header_preproc "$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
9214 if test "x$ac_cv_header_ext_hash_map" = x""yes; then :
9215 cat >>confdefs.h <<_ACEOF
9216 #define HAVE_EXT_HASH_MAP 1
9217 _ACEOF
9218
9219 fi
9220 done
9221
9222
9223 # --------
9224 # Dependency checking.
9225 # --------
9226
9227 rm -rf .tst 2>/dev/null
9228 mkdir .tst 2>/dev/null
9229 if test -d .tst; then
9230 am__leading_dot=.
9231 else
9232 am__leading_dot=_
9233 fi
9234 rmdir .tst 2>/dev/null
9235
9236 DEPDIR="${am__leading_dot}deps"
9237
9238 ac_config_commands="$ac_config_commands depdir"
9239
9240
9241 ac_config_commands="$ac_config_commands gccdepdir"
9242
9243
9244 depcc="$CXX" am_compiler_list=
9245
9246 am_depcomp=$ac_aux_dir/depcomp
9247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
9248 $as_echo_n "checking dependency style of $depcc... " >&6; }
9249 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
9250 $as_echo_n "(cached) " >&6
9251 else
9252 if test -f "$am_depcomp"; then
9253 # We make a subdir and do the tests there. Otherwise we can end up
9254 # making bogus files that we don't know about and never remove. For
9255 # instance it was reported that on HP-UX the gcc test will end up
9256 # making a dummy file named `D' -- because `-MD' means `put the output
9257 # in D'.
9258 mkdir conftest.dir
9259 # Copy depcomp to subdir because otherwise we won't find it if we're
9260 # using a relative directory.
9261 cp "$am_depcomp" conftest.dir
9262 cd conftest.dir
9263 # We will build objects and dependencies in a subdirectory because
9264 # it helps to detect inapplicable dependency modes. For instance
9265 # both Tru64's cc and ICC support -MD to output dependencies as a
9266 # side effect of compilation, but ICC will put the dependencies in
9267 # the current directory while Tru64 will put them in the object
9268 # directory.
9269 mkdir sub
9270
9271 am_cv_CXX_dependencies_compiler_type=none
9272 if test "$am_compiler_list" = ""; then
9273 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
9274 fi
9275 for depmode in $am_compiler_list; do
9276 if test $depmode = none; then break; fi
9277
9278 $as_echo "$as_me:$LINENO: trying $depmode" >&5
9279 # Setup a source with many dependencies, because some compilers
9280 # like to wrap large dependency lists on column 80 (with \), and
9281 # we should not choose a depcomp mode which is confused by this.
9282 #
9283 # We need to recreate these files for each test, as the compiler may
9284 # overwrite some of them when testing with obscure command lines.
9285 # This happens at least with the AIX C compiler.
9286 : > sub/conftest.c
9287 for i in 1 2 3 4 5 6; do
9288 echo '#include "conftst'$i'.h"' >> sub/conftest.c
9289 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
9290 # Solaris 8's {/usr,}/bin/sh.
9291 touch sub/conftst$i.h
9292 done
9293 echo "include sub/conftest.Po" > confmf
9294
9295 # We check with `-c' and `-o' for the sake of the "dashmstdout"
9296 # mode. It turns out that the SunPro C++ compiler does not properly
9297 # handle `-M -o', and we need to detect this.
9298 depcmd="depmode=$depmode \
9299 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
9300 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
9301 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
9302 echo "| $depcmd" | sed -e 's/ */ /g' >&5
9303 if env $depcmd > conftest.err 2>&1 &&
9304 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
9305 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
9306 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
9307 # icc doesn't choke on unknown options, it will just issue warnings
9308 # or remarks (even with -Werror). So we grep stderr for any message
9309 # that says an option was ignored or not supported.
9310 # When given -MP, icc 7.0 and 7.1 complain thusly:
9311 # icc: Command line warning: ignoring option '-M'; no argument required
9312 # The diagnosis changed in icc 8.0:
9313 # icc: Command line remark: option '-MP' not supported
9314 if (grep 'ignoring option' conftest.err ||
9315 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
9316 am_cv_CXX_dependencies_compiler_type=$depmode
9317 $as_echo "$as_me:$LINENO: success" >&5
9318 break
9319 fi
9320 fi
9321 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
9322 sed -e 's/^/| /' < conftest.err >&5
9323 done
9324
9325 cd ..
9326 rm -rf conftest.dir
9327 else
9328 am_cv_CXX_dependencies_compiler_type=none
9329 fi
9330
9331 fi
9332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
9333 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
9334 if test x${am_cv_CXX_dependencies_compiler_type-none} = xnone
9335 then as_fn_error "no usable dependency style found" "$LINENO" 5
9336 else CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
9337
9338 fi
9339
9340
9341 # --------
9342 # UNSORTED
9343 # --------
9344
9345
9346 # These libraries may be used by collect2.
9347 # We may need a special search path to get them linked.
9348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
9349 $as_echo_n "checking for collect2 libraries... " >&6; }
9350 if test "${gcc_cv_collect2_libs+set}" = set; then :
9351 $as_echo_n "(cached) " >&6
9352 else
9353 save_LIBS="$LIBS"
9354 for libs in '' -lld -lmld \
9355 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
9356 '-L/usr/lib/cmplrs/cc3.11 -lmld'
9357 do
9358 LIBS="$libs"
9359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9360 /* end confdefs.h. */
9361
9362 /* Override any GCC internal prototype to avoid an error.
9363 Use char because int might match the return type of a GCC
9364 builtin and then its argument prototype would still apply. */
9365 #ifdef __cplusplus
9366 extern "C"
9367 #endif
9368 char ldopen ();
9369 int
9370 main ()
9371 {
9372 return ldopen ();
9373 ;
9374 return 0;
9375 }
9376 _ACEOF
9377 if ac_fn_cxx_try_link "$LINENO"; then :
9378 gcc_cv_collect2_libs="$libs"; break
9379 fi
9380 rm -f core conftest.err conftest.$ac_objext \
9381 conftest$ac_exeext conftest.$ac_ext
9382 done
9383 LIBS="$save_LIBS"
9384 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
9385 fi
9386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
9387 $as_echo "$gcc_cv_collect2_libs" >&6; }
9388 case $gcc_cv_collect2_libs in
9389 "none required") ;;
9390 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
9391 esac
9392
9393
9394 # When building Ada code on Alpha, we need exc_resume which is usually in
9395 # -lexc. So test for it.
9396 save_LIBS="$LIBS"
9397 LIBS=
9398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
9399 $as_echo_n "checking for library containing exc_resume... " >&6; }
9400 if test "${ac_cv_search_exc_resume+set}" = set; then :
9401 $as_echo_n "(cached) " >&6
9402 else
9403 ac_func_search_save_LIBS=$LIBS
9404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9405 /* end confdefs.h. */
9406
9407 /* Override any GCC internal prototype to avoid an error.
9408 Use char because int might match the return type of a GCC
9409 builtin and then its argument prototype would still apply. */
9410 #ifdef __cplusplus
9411 extern "C"
9412 #endif
9413 char exc_resume ();
9414 int
9415 main ()
9416 {
9417 return exc_resume ();
9418 ;
9419 return 0;
9420 }
9421 _ACEOF
9422 for ac_lib in '' exc; do
9423 if test -z "$ac_lib"; then
9424 ac_res="none required"
9425 else
9426 ac_res=-l$ac_lib
9427 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9428 fi
9429 if ac_fn_cxx_try_link "$LINENO"; then :
9430 ac_cv_search_exc_resume=$ac_res
9431 fi
9432 rm -f core conftest.err conftest.$ac_objext \
9433 conftest$ac_exeext
9434 if test "${ac_cv_search_exc_resume+set}" = set; then :
9435 break
9436 fi
9437 done
9438 if test "${ac_cv_search_exc_resume+set}" = set; then :
9439
9440 else
9441 ac_cv_search_exc_resume=no
9442 fi
9443 rm conftest.$ac_ext
9444 LIBS=$ac_func_search_save_LIBS
9445 fi
9446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
9447 $as_echo "$ac_cv_search_exc_resume" >&6; }
9448 ac_res=$ac_cv_search_exc_resume
9449 if test "$ac_res" != no; then :
9450 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9451
9452 fi
9453
9454 GNAT_LIBEXC="$LIBS"
9455 LIBS="$save_LIBS"
9456
9457
9458 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
9459 save_LIBS="$LIBS"
9460 LIBS=
9461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
9462 $as_echo_n "checking for library containing kstat_open... " >&6; }
9463 if test "${ac_cv_search_kstat_open+set}" = set; then :
9464 $as_echo_n "(cached) " >&6
9465 else
9466 ac_func_search_save_LIBS=$LIBS
9467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9468 /* end confdefs.h. */
9469
9470 /* Override any GCC internal prototype to avoid an error.
9471 Use char because int might match the return type of a GCC
9472 builtin and then its argument prototype would still apply. */
9473 #ifdef __cplusplus
9474 extern "C"
9475 #endif
9476 char kstat_open ();
9477 int
9478 main ()
9479 {
9480 return kstat_open ();
9481 ;
9482 return 0;
9483 }
9484 _ACEOF
9485 for ac_lib in '' kstat; do
9486 if test -z "$ac_lib"; then
9487 ac_res="none required"
9488 else
9489 ac_res=-l$ac_lib
9490 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9491 fi
9492 if ac_fn_cxx_try_link "$LINENO"; then :
9493 ac_cv_search_kstat_open=$ac_res
9494 fi
9495 rm -f core conftest.err conftest.$ac_objext \
9496 conftest$ac_exeext
9497 if test "${ac_cv_search_kstat_open+set}" = set; then :
9498 break
9499 fi
9500 done
9501 if test "${ac_cv_search_kstat_open+set}" = set; then :
9502
9503 else
9504 ac_cv_search_kstat_open=no
9505 fi
9506 rm conftest.$ac_ext
9507 LIBS=$ac_func_search_save_LIBS
9508 fi
9509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
9510 $as_echo "$ac_cv_search_kstat_open" >&6; }
9511 ac_res=$ac_cv_search_kstat_open
9512 if test "$ac_res" != no; then :
9513 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9514
9515 fi
9516
9517 EXTRA_GCC_LIBS="$LIBS"
9518 LIBS="$save_LIBS"
9519
9520
9521 # Some systems put ldexp and frexp in libm instead of libc; assume
9522 # they're both in the same place. jcf-dump needs them.
9523 save_LIBS="$LIBS"
9524 LIBS=
9525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
9526 $as_echo_n "checking for library containing ldexp... " >&6; }
9527 if test "${ac_cv_search_ldexp+set}" = set; then :
9528 $as_echo_n "(cached) " >&6
9529 else
9530 ac_func_search_save_LIBS=$LIBS
9531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9532 /* end confdefs.h. */
9533
9534 /* Override any GCC internal prototype to avoid an error.
9535 Use char because int might match the return type of a GCC
9536 builtin and then its argument prototype would still apply. */
9537 #ifdef __cplusplus
9538 extern "C"
9539 #endif
9540 char ldexp ();
9541 int
9542 main ()
9543 {
9544 return ldexp ();
9545 ;
9546 return 0;
9547 }
9548 _ACEOF
9549 for ac_lib in '' m; do
9550 if test -z "$ac_lib"; then
9551 ac_res="none required"
9552 else
9553 ac_res=-l$ac_lib
9554 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9555 fi
9556 if ac_fn_cxx_try_link "$LINENO"; then :
9557 ac_cv_search_ldexp=$ac_res
9558 fi
9559 rm -f core conftest.err conftest.$ac_objext \
9560 conftest$ac_exeext
9561 if test "${ac_cv_search_ldexp+set}" = set; then :
9562 break
9563 fi
9564 done
9565 if test "${ac_cv_search_ldexp+set}" = set; then :
9566
9567 else
9568 ac_cv_search_ldexp=no
9569 fi
9570 rm conftest.$ac_ext
9571 LIBS=$ac_func_search_save_LIBS
9572 fi
9573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
9574 $as_echo "$ac_cv_search_ldexp" >&6; }
9575 ac_res=$ac_cv_search_ldexp
9576 if test "$ac_res" != no; then :
9577 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9578
9579 fi
9580
9581 LDEXP_LIB="$LIBS"
9582 LIBS="$save_LIBS"
9583
9584
9585 # Use <inttypes.h> only if it exists,
9586 # doesn't clash with <sys/types.h>, declares intmax_t and defines
9587 # PRId64
9588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
9589 $as_echo_n "checking for inttypes.h... " >&6; }
9590 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
9591 $as_echo_n "(cached) " >&6
9592 else
9593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9594 /* end confdefs.h. */
9595 #define __STDC_FORMAT_MACROS
9596 #include <sys/types.h>
9597 #include <inttypes.h>
9598 int
9599 main ()
9600 {
9601 intmax_t i = -1;
9602 #ifndef PRId64
9603 choke me
9604 #endif
9605 ;
9606 return 0;
9607 }
9608 _ACEOF
9609 if ac_fn_cxx_try_compile "$LINENO"; then :
9610 gcc_cv_header_inttypes_h=yes
9611 else
9612 gcc_cv_header_inttypes_h=no
9613 fi
9614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9615 fi
9616
9617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
9618 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
9619 if test $gcc_cv_header_inttypes_h = yes; then
9620
9621 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
9622
9623 fi
9624
9625
9626
9627 for ac_func in times clock kill getrlimit setrlimit atoq \
9628 popen sysconf strsignal getrusage nl_langinfo \
9629 gettimeofday mbstowcs wcswidth mmap setlocale \
9630 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
9631 do :
9632 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9633 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
9634 eval as_val=\$$as_ac_var
9635 if test "x$as_val" = x""yes; then :
9636 cat >>confdefs.h <<_ACEOF
9637 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9638 _ACEOF
9639
9640 fi
9641 done
9642
9643
9644 if test x$ac_cv_func_mbstowcs = xyes; then
9645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
9646 $as_echo_n "checking whether mbstowcs works... " >&6; }
9647 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
9648 $as_echo_n "(cached) " >&6
9649 else
9650 if test "$cross_compiling" = yes; then :
9651 gcc_cv_func_mbstowcs_works=yes
9652 else
9653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9654 /* end confdefs.h. */
9655 #include <stdlib.h>
9656 int main()
9657 {
9658 mbstowcs(0, "", 0);
9659 return 0;
9660 }
9661 _ACEOF
9662 if ac_fn_cxx_try_run "$LINENO"; then :
9663 gcc_cv_func_mbstowcs_works=yes
9664 else
9665 gcc_cv_func_mbstowcs_works=no
9666 fi
9667 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9668 conftest.$ac_objext conftest.beam conftest.$ac_ext
9669 fi
9670
9671 fi
9672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
9673 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
9674 if test x$gcc_cv_func_mbstowcs_works = xyes; then
9675
9676 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
9677
9678 fi
9679 fi
9680
9681 ac_fn_cxx_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
9682 if test "x$ac_cv_type_ssize_t" = x""yes; then :
9683
9684 else
9685
9686 cat >>confdefs.h <<_ACEOF
9687 #define ssize_t int
9688 _ACEOF
9689
9690 fi
9691
9692 ac_fn_cxx_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
9693 if test "x$ac_cv_type_caddr_t" = x""yes; then :
9694
9695 else
9696
9697 cat >>confdefs.h <<_ACEOF
9698 #define caddr_t char *
9699 _ACEOF
9700
9701 fi
9702
9703
9704
9705 ac_fn_cxx_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
9706 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
9707 gcc_header_sys_mman_h=yes
9708 else
9709 gcc_header_sys_mman_h=no
9710 fi
9711
9712 ac_fn_cxx_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
9713 if test "x$ac_cv_func_mmap" = x""yes; then :
9714 gcc_func_mmap=yes
9715 else
9716 gcc_func_mmap=no
9717 fi
9718
9719 if test "$gcc_header_sys_mman_h" != yes \
9720 || test "$gcc_func_mmap" != yes; then
9721 gcc_cv_func_mmap_file=no
9722 gcc_cv_func_mmap_dev_zero=no
9723 gcc_cv_func_mmap_anon=no
9724 else
9725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
9726 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
9727 if test "${gcc_cv_func_mmap_file+set}" = set; then :
9728 $as_echo_n "(cached) " >&6
9729 else
9730 # Add a system to this blacklist if
9731 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9732 # memory area containing the same data that you'd get if you applied
9733 # read() to the same fd. The only system known to have a problem here
9734 # is VMS, where text files have record structure.
9735 case "$host_os" in
9736 *vms* | ultrix*)
9737 gcc_cv_func_mmap_file=no ;;
9738 *)
9739 gcc_cv_func_mmap_file=yes;;
9740 esac
9741 fi
9742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
9743 $as_echo "$gcc_cv_func_mmap_file" >&6; }
9744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
9745 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
9746 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
9747 $as_echo_n "(cached) " >&6
9748 else
9749 # Add a system to this blacklist if it has mmap() but /dev/zero
9750 # does not exist, or if mmapping /dev/zero does not give anonymous
9751 # zeroed pages with both the following properties:
9752 # 1. If you map N consecutive pages in with one call, and then
9753 # unmap any subset of those pages, the pages that were not
9754 # explicitly unmapped remain accessible.
9755 # 2. If you map two adjacent blocks of memory and then unmap them
9756 # both at once, they must both go away.
9757 # Systems known to be in this category are Windows (all variants),
9758 # VMS, and Darwin.
9759 case "$host_os" in
9760 *vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
9761 gcc_cv_func_mmap_dev_zero=no ;;
9762 *)
9763 gcc_cv_func_mmap_dev_zero=yes;;
9764 esac
9765 fi
9766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
9767 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
9768
9769 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
9771 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
9772 if test "${gcc_cv_decl_map_anon+set}" = set; then :
9773 $as_echo_n "(cached) " >&6
9774 else
9775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9776 /* end confdefs.h. */
9777 #include <sys/types.h>
9778 #include <sys/mman.h>
9779 #include <unistd.h>
9780
9781 #ifndef MAP_ANONYMOUS
9782 #define MAP_ANONYMOUS MAP_ANON
9783 #endif
9784
9785 int
9786 main ()
9787 {
9788 int n = MAP_ANONYMOUS;
9789 ;
9790 return 0;
9791 }
9792 _ACEOF
9793 if ac_fn_cxx_try_compile "$LINENO"; then :
9794 gcc_cv_decl_map_anon=yes
9795 else
9796 gcc_cv_decl_map_anon=no
9797 fi
9798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9799 fi
9800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
9801 $as_echo "$gcc_cv_decl_map_anon" >&6; }
9802
9803 if test $gcc_cv_decl_map_anon = no; then
9804 gcc_cv_func_mmap_anon=no
9805 else
9806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9807 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
9808 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
9809 $as_echo_n "(cached) " >&6
9810 else
9811 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9812 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9813 # doesn't give anonymous zeroed pages with the same properties listed
9814 # above for use of /dev/zero.
9815 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9816 case "$host_os" in
9817 *vms* | cygwin* | pe | mingw* | sco* | udk* )
9818 gcc_cv_func_mmap_anon=no ;;
9819 *)
9820 gcc_cv_func_mmap_anon=yes;;
9821 esac
9822 fi
9823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
9824 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
9825 fi
9826 fi
9827
9828 if test $gcc_cv_func_mmap_file = yes; then
9829
9830 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
9831
9832 fi
9833 if test $gcc_cv_func_mmap_dev_zero = yes; then
9834
9835 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
9836
9837 fi
9838 if test $gcc_cv_func_mmap_anon = yes; then
9839
9840 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
9841
9842 fi
9843
9844
9845 case "${host}" in
9846 *-*-*vms*)
9847 # Under VMS, vfork works very differently than on Unix. The standard test
9848 # won't work, and it isn't easily adaptable. It makes more sense to
9849 # just force it.
9850 ac_cv_func_vfork_works=yes
9851 ;;
9852 esac
9853 ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9854 if test "x$ac_cv_type_pid_t" = x""yes; then :
9855
9856 else
9857
9858 cat >>confdefs.h <<_ACEOF
9859 #define pid_t int
9860 _ACEOF
9861
9862 fi
9863
9864 for ac_header in vfork.h
9865 do :
9866 ac_fn_cxx_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
9867 if test "x$ac_cv_header_vfork_h" = x""yes; then :
9868 cat >>confdefs.h <<_ACEOF
9869 #define HAVE_VFORK_H 1
9870 _ACEOF
9871
9872 fi
9873 done
9874
9875 for ac_func in fork vfork
9876 do :
9877 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9878 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
9879 eval as_val=\$$as_ac_var
9880 if test "x$as_val" = x""yes; then :
9881 cat >>confdefs.h <<_ACEOF
9882 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9883 _ACEOF
9884
9885 fi
9886 done
9887
9888 if test "x$ac_cv_func_fork" = xyes; then
9889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9890 $as_echo_n "checking for working fork... " >&6; }
9891 if test "${ac_cv_func_fork_works+set}" = set; then :
9892 $as_echo_n "(cached) " >&6
9893 else
9894 if test "$cross_compiling" = yes; then :
9895 ac_cv_func_fork_works=cross
9896 else
9897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9898 /* end confdefs.h. */
9899 $ac_includes_default
9900 int
9901 main ()
9902 {
9903
9904 /* By Ruediger Kuhlmann. */
9905 return fork () < 0;
9906
9907 ;
9908 return 0;
9909 }
9910 _ACEOF
9911 if ac_fn_cxx_try_run "$LINENO"; then :
9912 ac_cv_func_fork_works=yes
9913 else
9914 ac_cv_func_fork_works=no
9915 fi
9916 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9917 conftest.$ac_objext conftest.beam conftest.$ac_ext
9918 fi
9919
9920 fi
9921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9922 $as_echo "$ac_cv_func_fork_works" >&6; }
9923
9924 else
9925 ac_cv_func_fork_works=$ac_cv_func_fork
9926 fi
9927 if test "x$ac_cv_func_fork_works" = xcross; then
9928 case $host in
9929 *-*-amigaos* | *-*-msdosdjgpp*)
9930 # Override, as these systems have only a dummy fork() stub
9931 ac_cv_func_fork_works=no
9932 ;;
9933 *)
9934 ac_cv_func_fork_works=yes
9935 ;;
9936 esac
9937 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9938 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9939 fi
9940 ac_cv_func_vfork_works=$ac_cv_func_vfork
9941 if test "x$ac_cv_func_vfork" = xyes; then
9942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
9943 $as_echo_n "checking for working vfork... " >&6; }
9944 if test "${ac_cv_func_vfork_works+set}" = set; then :
9945 $as_echo_n "(cached) " >&6
9946 else
9947 if test "$cross_compiling" = yes; then :
9948 ac_cv_func_vfork_works=cross
9949 else
9950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9951 /* end confdefs.h. */
9952 /* Thanks to Paul Eggert for this test. */
9953 $ac_includes_default
9954 #include <sys/wait.h>
9955 #ifdef HAVE_VFORK_H
9956 # include <vfork.h>
9957 #endif
9958 /* On some sparc systems, changes by the child to local and incoming
9959 argument registers are propagated back to the parent. The compiler
9960 is told about this with #include <vfork.h>, but some compilers
9961 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
9962 static variable whose address is put into a register that is
9963 clobbered by the vfork. */
9964 static void
9965 #ifdef __cplusplus
9966 sparc_address_test (int arg)
9967 # else
9968 sparc_address_test (arg) int arg;
9969 #endif
9970 {
9971 static pid_t child;
9972 if (!child) {
9973 child = vfork ();
9974 if (child < 0) {
9975 perror ("vfork");
9976 _exit(2);
9977 }
9978 if (!child) {
9979 arg = getpid();
9980 write(-1, "", 0);
9981 _exit (arg);
9982 }
9983 }
9984 }
9985
9986 int
9987 main ()
9988 {
9989 pid_t parent = getpid ();
9990 pid_t child;
9991
9992 sparc_address_test (0);
9993
9994 child = vfork ();
9995
9996 if (child == 0) {
9997 /* Here is another test for sparc vfork register problems. This
9998 test uses lots of local variables, at least as many local
9999 variables as main has allocated so far including compiler
10000 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
10001 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
10002 reuse the register of parent for one of the local variables,
10003 since it will think that parent can't possibly be used any more
10004 in this routine. Assigning to the local variable will thus
10005 munge parent in the parent process. */
10006 pid_t
10007 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10008 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10009 /* Convince the compiler that p..p7 are live; otherwise, it might
10010 use the same hardware register for all 8 local variables. */
10011 if (p != p1 || p != p2 || p != p3 || p != p4
10012 || p != p5 || p != p6 || p != p7)
10013 _exit(1);
10014
10015 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10016 from child file descriptors. If the child closes a descriptor
10017 before it execs or exits, this munges the parent's descriptor
10018 as well. Test for this by closing stdout in the child. */
10019 _exit(close(fileno(stdout)) != 0);
10020 } else {
10021 int status;
10022 struct stat st;
10023
10024 while (wait(&status) != child)
10025 ;
10026 return (
10027 /* Was there some problem with vforking? */
10028 child < 0
10029
10030 /* Did the child fail? (This shouldn't happen.) */
10031 || status
10032
10033 /* Did the vfork/compiler bug occur? */
10034 || parent != getpid()
10035
10036 /* Did the file descriptor bug occur? */
10037 || fstat(fileno(stdout), &st) != 0
10038 );
10039 }
10040 }
10041 _ACEOF
10042 if ac_fn_cxx_try_run "$LINENO"; then :
10043 ac_cv_func_vfork_works=yes
10044 else
10045 ac_cv_func_vfork_works=no
10046 fi
10047 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10048 conftest.$ac_objext conftest.beam conftest.$ac_ext
10049 fi
10050
10051 fi
10052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
10053 $as_echo "$ac_cv_func_vfork_works" >&6; }
10054
10055 fi;
10056 if test "x$ac_cv_func_fork_works" = xcross; then
10057 ac_cv_func_vfork_works=$ac_cv_func_vfork
10058 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10059 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10060 fi
10061
10062 if test "x$ac_cv_func_vfork_works" = xyes; then
10063
10064 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
10065
10066 else
10067
10068 $as_echo "#define vfork fork" >>confdefs.h
10069
10070 fi
10071 if test "x$ac_cv_func_fork_works" = xyes; then
10072
10073 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
10074
10075 fi
10076
10077
10078
10079 if test "X$prefix" = "XNONE"; then
10080 acl_final_prefix="$ac_default_prefix"
10081 else
10082 acl_final_prefix="$prefix"
10083 fi
10084 if test "X$exec_prefix" = "XNONE"; then
10085 acl_final_exec_prefix='${prefix}'
10086 else
10087 acl_final_exec_prefix="$exec_prefix"
10088 fi
10089 acl_save_prefix="$prefix"
10090 prefix="$acl_final_prefix"
10091 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10092 prefix="$acl_save_prefix"
10093
10094
10095 # Check whether --with-gnu-ld was given.
10096 if test "${with_gnu_ld+set}" = set; then :
10097 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10098 else
10099 with_gnu_ld=no
10100 fi
10101
10102 # Prepare PATH_SEPARATOR.
10103 # The user is always right.
10104 if test "${PATH_SEPARATOR+set}" != set; then
10105 echo "#! /bin/sh" >conf$$.sh
10106 echo "exit 0" >>conf$$.sh
10107 chmod +x conf$$.sh
10108 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10109 PATH_SEPARATOR=';'
10110 else
10111 PATH_SEPARATOR=:
10112 fi
10113 rm -f conf$$.sh
10114 fi
10115 ac_prog=ld
10116 if test "$GCC" = yes; then
10117 # Check if gcc -print-prog-name=ld gives a path.
10118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
10119 $as_echo_n "checking for ld used by GCC... " >&6; }
10120 case $host in
10121 *-*-mingw*)
10122 # gcc leaves a trailing carriage return which upsets mingw
10123 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10124 *)
10125 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10126 esac
10127 case $ac_prog in
10128 # Accept absolute paths.
10129 [\\/]* | [A-Za-z]:[\\/]*)
10130 re_direlt='/[^/][^/]*/\.\./'
10131 # Canonicalize the path of ld
10132 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10133 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10134 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10135 done
10136 test -z "$LD" && LD="$ac_prog"
10137 ;;
10138 "")
10139 # If it fails, then pretend we aren't using GCC.
10140 ac_prog=ld
10141 ;;
10142 *)
10143 # If it is relative, then search for the first ld in PATH.
10144 with_gnu_ld=unknown
10145 ;;
10146 esac
10147 elif test "$with_gnu_ld" = yes; then
10148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
10149 $as_echo_n "checking for GNU ld... " >&6; }
10150 else
10151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
10152 $as_echo_n "checking for non-GNU ld... " >&6; }
10153 fi
10154 if test "${acl_cv_path_LD+set}" = set; then :
10155 $as_echo_n "(cached) " >&6
10156 else
10157 if test -z "$LD"; then
10158 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10159 for ac_dir in $PATH; do
10160 test -z "$ac_dir" && ac_dir=.
10161 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10162 acl_cv_path_LD="$ac_dir/$ac_prog"
10163 # Check to see if the program is GNU ld. I'd rather use --version,
10164 # but apparently some GNU ld's only accept -v.
10165 # Break only if it was the GNU/non-GNU ld that we prefer.
10166 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
10167 test "$with_gnu_ld" != no && break
10168 else
10169 test "$with_gnu_ld" != yes && break
10170 fi
10171 fi
10172 done
10173 IFS="$ac_save_ifs"
10174 else
10175 acl_cv_path_LD="$LD" # Let the user override the test with a path.
10176 fi
10177 fi
10178
10179 LD="$acl_cv_path_LD"
10180 if test -n "$LD"; then
10181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10182 $as_echo "$LD" >&6; }
10183 else
10184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10185 $as_echo "no" >&6; }
10186 fi
10187 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
10188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
10189 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
10190 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
10191 $as_echo_n "(cached) " >&6
10192 else
10193 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10194 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
10195 acl_cv_prog_gnu_ld=yes
10196 else
10197 acl_cv_prog_gnu_ld=no
10198 fi
10199 fi
10200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
10201 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
10202 with_gnu_ld=$acl_cv_prog_gnu_ld
10203
10204
10205
10206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
10207 $as_echo_n "checking for shared library run path origin... " >&6; }
10208 if test "${acl_cv_rpath+set}" = set; then :
10209 $as_echo_n "(cached) " >&6
10210 else
10211
10212 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10213 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10214 . ./conftest.sh
10215 rm -f ./conftest.sh
10216 acl_cv_rpath=done
10217
10218 fi
10219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
10220 $as_echo "$acl_cv_rpath" >&6; }
10221 wl="$acl_cv_wl"
10222 libext="$acl_cv_libext"
10223 shlibext="$acl_cv_shlibext"
10224 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10225 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10226 hardcode_direct="$acl_cv_hardcode_direct"
10227 hardcode_minus_L="$acl_cv_hardcode_minus_L"
10228 # Check whether --enable-rpath was given.
10229 if test "${enable_rpath+set}" = set; then :
10230 enableval=$enable_rpath; :
10231 else
10232 enable_rpath=yes
10233 fi
10234
10235
10236
10237
10238
10239
10240
10241
10242 use_additional=yes
10243
10244 acl_save_prefix="$prefix"
10245 prefix="$acl_final_prefix"
10246 acl_save_exec_prefix="$exec_prefix"
10247 exec_prefix="$acl_final_exec_prefix"
10248
10249 eval additional_includedir=\"$includedir\"
10250 eval additional_libdir=\"$libdir\"
10251
10252 exec_prefix="$acl_save_exec_prefix"
10253 prefix="$acl_save_prefix"
10254
10255
10256 # Check whether --with-libiconv-prefix was given.
10257 if test "${with_libiconv_prefix+set}" = set; then :
10258 withval=$with_libiconv_prefix;
10259 if test "X$withval" = "Xno"; then
10260 use_additional=no
10261 else
10262 if test "X$withval" = "X"; then
10263
10264 acl_save_prefix="$prefix"
10265 prefix="$acl_final_prefix"
10266 acl_save_exec_prefix="$exec_prefix"
10267 exec_prefix="$acl_final_exec_prefix"
10268
10269 eval additional_includedir=\"$includedir\"
10270 eval additional_libdir=\"$libdir\"
10271
10272 exec_prefix="$acl_save_exec_prefix"
10273 prefix="$acl_save_prefix"
10274
10275 else
10276 additional_includedir="$withval/include"
10277 additional_libdir="$withval/lib"
10278 fi
10279 fi
10280
10281 fi
10282
10283 LIBICONV=
10284 LTLIBICONV=
10285 INCICONV=
10286 rpathdirs=
10287 ltrpathdirs=
10288 names_already_handled=
10289 names_next_round='iconv '
10290 while test -n "$names_next_round"; do
10291 names_this_round="$names_next_round"
10292 names_next_round=
10293 for name in $names_this_round; do
10294 already_handled=
10295 for n in $names_already_handled; do
10296 if test "$n" = "$name"; then
10297 already_handled=yes
10298 break
10299 fi
10300 done
10301 if test -z "$already_handled"; then
10302 names_already_handled="$names_already_handled $name"
10303 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10304 eval value=\"\$HAVE_LIB$uppername\"
10305 if test -n "$value"; then
10306 if test "$value" = yes; then
10307 eval value=\"\$LIB$uppername\"
10308 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
10309 eval value=\"\$LTLIB$uppername\"
10310 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
10311 else
10312 :
10313 fi
10314 else
10315 found_dir=
10316 found_la=
10317 found_so=
10318 found_a=
10319 if test $use_additional = yes; then
10320 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10321 found_dir="$additional_libdir"
10322 found_so="$additional_libdir/lib$name.$shlibext"
10323 if test -f "$additional_libdir/lib$name.la"; then
10324 found_la="$additional_libdir/lib$name.la"
10325 fi
10326 else
10327 if test -f "$additional_libdir/lib$name.$libext"; then
10328 found_dir="$additional_libdir"
10329 found_a="$additional_libdir/lib$name.$libext"
10330 if test -f "$additional_libdir/lib$name.la"; then
10331 found_la="$additional_libdir/lib$name.la"
10332 fi
10333 fi
10334 fi
10335 fi
10336 if test "X$found_dir" = "X"; then
10337 for x in $LDFLAGS $LTLIBICONV; do
10338
10339 acl_save_prefix="$prefix"
10340 prefix="$acl_final_prefix"
10341 acl_save_exec_prefix="$exec_prefix"
10342 exec_prefix="$acl_final_exec_prefix"
10343 eval x=\"$x\"
10344 exec_prefix="$acl_save_exec_prefix"
10345 prefix="$acl_save_prefix"
10346
10347 case "$x" in
10348 -L*)
10349 dir=`echo "X$x" | sed -e 's/^X-L//'`
10350 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10351 found_dir="$dir"
10352 found_so="$dir/lib$name.$shlibext"
10353 if test -f "$dir/lib$name.la"; then
10354 found_la="$dir/lib$name.la"
10355 fi
10356 else
10357 if test -f "$dir/lib$name.$libext"; then
10358 found_dir="$dir"
10359 found_a="$dir/lib$name.$libext"
10360 if test -f "$dir/lib$name.la"; then
10361 found_la="$dir/lib$name.la"
10362 fi
10363 fi
10364 fi
10365 ;;
10366 esac
10367 if test "X$found_dir" != "X"; then
10368 break
10369 fi
10370 done
10371 fi
10372 if test "X$found_dir" != "X"; then
10373 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10374 if test "X$found_so" != "X"; then
10375 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10376 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10377 else
10378 haveit=
10379 for x in $ltrpathdirs; do
10380 if test "X$x" = "X$found_dir"; then
10381 haveit=yes
10382 break
10383 fi
10384 done
10385 if test -z "$haveit"; then
10386 ltrpathdirs="$ltrpathdirs $found_dir"
10387 fi
10388 if test "$hardcode_direct" = yes; then
10389 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10390 else
10391 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10392 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10393 haveit=
10394 for x in $rpathdirs; do
10395 if test "X$x" = "X$found_dir"; then
10396 haveit=yes
10397 break
10398 fi
10399 done
10400 if test -z "$haveit"; then
10401 rpathdirs="$rpathdirs $found_dir"
10402 fi
10403 else
10404 haveit=
10405 for x in $LDFLAGS $LIBICONV; do
10406
10407 acl_save_prefix="$prefix"
10408 prefix="$acl_final_prefix"
10409 acl_save_exec_prefix="$exec_prefix"
10410 exec_prefix="$acl_final_exec_prefix"
10411 eval x=\"$x\"
10412 exec_prefix="$acl_save_exec_prefix"
10413 prefix="$acl_save_prefix"
10414
10415 if test "X$x" = "X-L$found_dir"; then
10416 haveit=yes
10417 break
10418 fi
10419 done
10420 if test -z "$haveit"; then
10421 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10422 fi
10423 if test "$hardcode_minus_L" != no; then
10424 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10425 else
10426 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10427 fi
10428 fi
10429 fi
10430 fi
10431 else
10432 if test "X$found_a" != "X"; then
10433 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
10434 else
10435 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10436 fi
10437 fi
10438 additional_includedir=
10439 case "$found_dir" in
10440 */lib | */lib/)
10441 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10442 additional_includedir="$basedir/include"
10443 ;;
10444 esac
10445 if test "X$additional_includedir" != "X"; then
10446 if test "X$additional_includedir" != "X/usr/include"; then
10447 haveit=
10448 if test "X$additional_includedir" = "X/usr/local/include"; then
10449 if test -n "$GCC"; then
10450 case $host_os in
10451 linux*) haveit=yes;;
10452 esac
10453 fi
10454 fi
10455 if test -z "$haveit"; then
10456 for x in $CPPFLAGS $INCICONV; do
10457
10458 acl_save_prefix="$prefix"
10459 prefix="$acl_final_prefix"
10460 acl_save_exec_prefix="$exec_prefix"
10461 exec_prefix="$acl_final_exec_prefix"
10462 eval x=\"$x\"
10463 exec_prefix="$acl_save_exec_prefix"
10464 prefix="$acl_save_prefix"
10465
10466 if test "X$x" = "X-I$additional_includedir"; then
10467 haveit=yes
10468 break
10469 fi
10470 done
10471 if test -z "$haveit"; then
10472 if test -d "$additional_includedir"; then
10473 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10474 fi
10475 fi
10476 fi
10477 fi
10478 fi
10479 if test -n "$found_la"; then
10480 save_libdir="$libdir"
10481 case "$found_la" in
10482 */* | *\\*) . "$found_la" ;;
10483 *) . "./$found_la" ;;
10484 esac
10485 libdir="$save_libdir"
10486 for dep in $dependency_libs; do
10487 case "$dep" in
10488 -L*)
10489 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10490 if test "X$additional_libdir" != "X/usr/lib"; then
10491 haveit=
10492 if test "X$additional_libdir" = "X/usr/local/lib"; then
10493 if test -n "$GCC"; then
10494 case $host_os in
10495 linux*) haveit=yes;;
10496 esac
10497 fi
10498 fi
10499 if test -z "$haveit"; then
10500 haveit=
10501 for x in $LDFLAGS $LIBICONV; do
10502
10503 acl_save_prefix="$prefix"
10504 prefix="$acl_final_prefix"
10505 acl_save_exec_prefix="$exec_prefix"
10506 exec_prefix="$acl_final_exec_prefix"
10507 eval x=\"$x\"
10508 exec_prefix="$acl_save_exec_prefix"
10509 prefix="$acl_save_prefix"
10510
10511 if test "X$x" = "X-L$additional_libdir"; then
10512 haveit=yes
10513 break
10514 fi
10515 done
10516 if test -z "$haveit"; then
10517 if test -d "$additional_libdir"; then
10518 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10519 fi
10520 fi
10521 haveit=
10522 for x in $LDFLAGS $LTLIBICONV; do
10523
10524 acl_save_prefix="$prefix"
10525 prefix="$acl_final_prefix"
10526 acl_save_exec_prefix="$exec_prefix"
10527 exec_prefix="$acl_final_exec_prefix"
10528 eval x=\"$x\"
10529 exec_prefix="$acl_save_exec_prefix"
10530 prefix="$acl_save_prefix"
10531
10532 if test "X$x" = "X-L$additional_libdir"; then
10533 haveit=yes
10534 break
10535 fi
10536 done
10537 if test -z "$haveit"; then
10538 if test -d "$additional_libdir"; then
10539 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10540 fi
10541 fi
10542 fi
10543 fi
10544 ;;
10545 -R*)
10546 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10547 if test "$enable_rpath" != no; then
10548 haveit=
10549 for x in $rpathdirs; do
10550 if test "X$x" = "X$dir"; then
10551 haveit=yes
10552 break
10553 fi
10554 done
10555 if test -z "$haveit"; then
10556 rpathdirs="$rpathdirs $dir"
10557 fi
10558 haveit=
10559 for x in $ltrpathdirs; do
10560 if test "X$x" = "X$dir"; then
10561 haveit=yes
10562 break
10563 fi
10564 done
10565 if test -z "$haveit"; then
10566 ltrpathdirs="$ltrpathdirs $dir"
10567 fi
10568 fi
10569 ;;
10570 -l*)
10571 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10572 ;;
10573 *.la)
10574 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10575 ;;
10576 *)
10577 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10578 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10579 ;;
10580 esac
10581 done
10582 fi
10583 else
10584 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10585 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10586 fi
10587 fi
10588 fi
10589 done
10590 done
10591 if test "X$rpathdirs" != "X"; then
10592 if test -n "$hardcode_libdir_separator"; then
10593 alldirs=
10594 for found_dir in $rpathdirs; do
10595 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10596 done
10597 acl_save_libdir="$libdir"
10598 libdir="$alldirs"
10599 eval flag=\"$hardcode_libdir_flag_spec\"
10600 libdir="$acl_save_libdir"
10601 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10602 else
10603 for found_dir in $rpathdirs; do
10604 acl_save_libdir="$libdir"
10605 libdir="$found_dir"
10606 eval flag=\"$hardcode_libdir_flag_spec\"
10607 libdir="$acl_save_libdir"
10608 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10609 done
10610 fi
10611 fi
10612 if test "X$ltrpathdirs" != "X"; then
10613 for found_dir in $ltrpathdirs; do
10614 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10615 done
10616 fi
10617
10618
10619
10620
10621
10622
10623
10624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10625 $as_echo_n "checking for iconv... " >&6; }
10626 if test "${am_cv_func_iconv+set}" = set; then :
10627 $as_echo_n "(cached) " >&6
10628 else
10629
10630 am_cv_func_iconv="no, consider installing GNU libiconv"
10631 am_cv_lib_iconv=no
10632 am_save_CPPFLAGS="$CPPFLAGS"
10633 CPPFLAGS="$CPPFLAGS $INCICONV"
10634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10635 /* end confdefs.h. */
10636 #include <stdlib.h>
10637 #include <iconv.h>
10638 int
10639 main ()
10640 {
10641 iconv_t cd = iconv_open("","");
10642 iconv(cd,NULL,NULL,NULL,NULL);
10643 iconv_close(cd);
10644 ;
10645 return 0;
10646 }
10647 _ACEOF
10648 if ac_fn_cxx_try_link "$LINENO"; then :
10649 am_cv_func_iconv=yes
10650 fi
10651 rm -f core conftest.err conftest.$ac_objext \
10652 conftest$ac_exeext conftest.$ac_ext
10653 CPPFLAGS="$am_save_CPPFLAGS"
10654
10655 if test "$am_cv_func_iconv" != yes && test -d ../libiconv; then
10656 for _libs in .libs _libs; do
10657 am_save_CPPFLAGS="$CPPFLAGS"
10658 am_save_LIBS="$LIBS"
10659 CPPFLAGS="$CPPFLAGS -I../libiconv/include"
10660 LIBS="$LIBS ../libiconv/lib/$_libs/libiconv.a"
10661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10662 /* end confdefs.h. */
10663 #include <stdlib.h>
10664 #include <iconv.h>
10665 int
10666 main ()
10667 {
10668 iconv_t cd = iconv_open("","");
10669 iconv(cd,NULL,NULL,NULL,NULL);
10670 iconv_close(cd);
10671 ;
10672 return 0;
10673 }
10674 _ACEOF
10675 if ac_fn_cxx_try_link "$LINENO"; then :
10676 INCICONV="-I../libiconv/include"
10677 LIBICONV='${top_builddir}'/../libiconv/lib/$_libs/libiconv.a
10678 LTLIBICONV='${top_builddir}'/../libiconv/lib/libiconv.la
10679 am_cv_lib_iconv=yes
10680 am_cv_func_iconv=yes
10681 fi
10682 rm -f core conftest.err conftest.$ac_objext \
10683 conftest$ac_exeext conftest.$ac_ext
10684 CPPFLAGS="$am_save_CPPFLAGS"
10685 LIBS="$am_save_LIBS"
10686 if test "$am_cv_func_iconv" = "yes"; then
10687 break
10688 fi
10689 done
10690 fi
10691
10692 if test "$am_cv_func_iconv" != yes; then
10693 am_save_CPPFLAGS="$CPPFLAGS"
10694 am_save_LIBS="$LIBS"
10695 CPPFLAGS="$LIBS $INCICONV"
10696 LIBS="$LIBS $LIBICONV"
10697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10698 /* end confdefs.h. */
10699 #include <stdlib.h>
10700 #include <iconv.h>
10701 int
10702 main ()
10703 {
10704 iconv_t cd = iconv_open("","");
10705 iconv(cd,NULL,NULL,NULL,NULL);
10706 iconv_close(cd);
10707 ;
10708 return 0;
10709 }
10710 _ACEOF
10711 if ac_fn_cxx_try_link "$LINENO"; then :
10712 am_cv_lib_iconv=yes
10713 am_cv_func_iconv=yes
10714 fi
10715 rm -f core conftest.err conftest.$ac_objext \
10716 conftest$ac_exeext conftest.$ac_ext
10717 CPPFLAGS="$am_save_CPPFLAGS"
10718 LIBS="$am_save_LIBS"
10719 fi
10720
10721 fi
10722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10723 $as_echo "$am_cv_func_iconv" >&6; }
10724 if test "$am_cv_func_iconv" = yes; then
10725
10726 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10727
10728 fi
10729 if test "$am_cv_lib_iconv" = yes; then
10730
10731 for element in $INCICONV; do
10732 haveit=
10733 for x in $CPPFLAGS; do
10734
10735 acl_save_prefix="$prefix"
10736 prefix="$acl_final_prefix"
10737 acl_save_exec_prefix="$exec_prefix"
10738 exec_prefix="$acl_final_exec_prefix"
10739 eval x=\"$x\"
10740 exec_prefix="$acl_save_exec_prefix"
10741 prefix="$acl_save_prefix"
10742
10743 if test "X$x" = "X$element"; then
10744 haveit=yes
10745 break
10746 fi
10747 done
10748 if test -z "$haveit"; then
10749 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10750 fi
10751 done
10752
10753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10754 $as_echo_n "checking how to link with libiconv... " >&6; }
10755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10756 $as_echo "$LIBICONV" >&6; }
10757 else
10758 LIBICONV=
10759 LTLIBICONV=
10760 fi
10761
10762
10763
10764 if test "$am_cv_func_iconv" = yes; then
10765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10766 $as_echo_n "checking for iconv declaration... " >&6; }
10767 if test "${am_cv_proto_iconv+set}" = set; then :
10768 $as_echo_n "(cached) " >&6
10769 else
10770
10771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10772 /* end confdefs.h. */
10773
10774 #include <stdlib.h>
10775 #include <iconv.h>
10776 extern
10777 #ifdef __cplusplus
10778 "C"
10779 #endif
10780 #if defined(__STDC__) || defined(__cplusplus)
10781 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10782 #else
10783 size_t iconv();
10784 #endif
10785
10786 int
10787 main ()
10788 {
10789
10790 ;
10791 return 0;
10792 }
10793 _ACEOF
10794 if ac_fn_cxx_try_compile "$LINENO"; then :
10795 am_cv_proto_iconv_arg1=""
10796 else
10797 am_cv_proto_iconv_arg1="const"
10798 fi
10799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10800 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);"
10801 fi
10802
10803 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10805 }$am_cv_proto_iconv" >&5
10806 $as_echo "${ac_t:-
10807 }$am_cv_proto_iconv" >&6; }
10808
10809 cat >>confdefs.h <<_ACEOF
10810 #define ICONV_CONST $am_cv_proto_iconv_arg1
10811 _ACEOF
10812
10813 fi
10814
10815
10816 # Until we have in-tree GNU iconv:
10817 LIBICONV_DEP=
10818 if test -f "$LTLIBICONV"; then
10819 LIBICONV_DEP=$LTLIBICONV
10820 fi
10821
10822
10823
10824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10825 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10826 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
10827 $as_echo_n "(cached) " >&6
10828 else
10829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10830 /* end confdefs.h. */
10831 #include <locale.h>
10832 int
10833 main ()
10834 {
10835 return LC_MESSAGES
10836 ;
10837 return 0;
10838 }
10839 _ACEOF
10840 if ac_fn_cxx_try_link "$LINENO"; then :
10841 am_cv_val_LC_MESSAGES=yes
10842 else
10843 am_cv_val_LC_MESSAGES=no
10844 fi
10845 rm -f core conftest.err conftest.$ac_objext \
10846 conftest$ac_exeext conftest.$ac_ext
10847 fi
10848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10849 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10850 if test $am_cv_val_LC_MESSAGES = yes; then
10851
10852 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10853
10854 fi
10855
10856
10857
10858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10859 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10860 if test "${am_cv_langinfo_codeset+set}" = set; then :
10861 $as_echo_n "(cached) " >&6
10862 else
10863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10864 /* end confdefs.h. */
10865 #include <langinfo.h>
10866 int
10867 main ()
10868 {
10869 char* cs = nl_langinfo(CODESET);
10870 ;
10871 return 0;
10872 }
10873 _ACEOF
10874 if ac_fn_cxx_try_link "$LINENO"; then :
10875 am_cv_langinfo_codeset=yes
10876 else
10877 am_cv_langinfo_codeset=no
10878 fi
10879 rm -f core conftest.err conftest.$ac_objext \
10880 conftest$ac_exeext conftest.$ac_ext
10881
10882 fi
10883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10884 $as_echo "$am_cv_langinfo_codeset" >&6; }
10885 if test $am_cv_langinfo_codeset = yes; then
10886
10887 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10888
10889 fi
10890
10891
10892 # We will need to find libiberty.h and ansidecl.h
10893 saved_CFLAGS="$CFLAGS"
10894 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10895 saved_CXXFLAGS="$CXXFLAGS"
10896 CXXFLAGS="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10897
10898 # gcc_AC_CHECK_DECLS doesn't support overloaded functions, so use the
10899 # normal autoconf function for these. But force definition of
10900 # HAVE_DECL_BASENAME like gcc_AC_CHECK_DECLS does, to suppress the bizarre
10901 # basename handling in libiberty.h.
10902 ac_fn_cxx_check_decl "$LINENO" "basename(const char*)" "ac_cv_have_decl_basename_const_charp_" "
10903 #undef HAVE_DECL_BASENAME
10904 #define HAVE_DECL_BASENAME 1
10905 #include \"ansidecl.h\"
10906 #include \"system.h\"
10907 "
10908 if test "x$ac_cv_have_decl_basename_const_charp_" = x""yes; then :
10909 ac_have_decl=1
10910 else
10911 ac_have_decl=0
10912 fi
10913
10914 cat >>confdefs.h <<_ACEOF
10915 #define HAVE_DECL_BASENAME $ac_have_decl
10916 _ACEOF
10917 ac_fn_cxx_check_decl "$LINENO" "strstr(const char*,const char*)" "ac_cv_have_decl_strstr_const_charp_const_charp_" "
10918 #undef HAVE_DECL_BASENAME
10919 #define HAVE_DECL_BASENAME 1
10920 #include \"ansidecl.h\"
10921 #include \"system.h\"
10922 "
10923 if test "x$ac_cv_have_decl_strstr_const_charp_const_charp_" = x""yes; then :
10924 ac_have_decl=1
10925 else
10926 ac_have_decl=0
10927 fi
10928
10929 cat >>confdefs.h <<_ACEOF
10930 #define HAVE_DECL_STRSTR $ac_have_decl
10931 _ACEOF
10932
10933
10934 for ac_func in getenv atol atoll asprintf sbrk abort atof getcwd getwd \
10935 madvise stpcpy strnlen strsignal strverscmp \
10936 strtol strtoul strtoll strtoull setenv unsetenv \
10937 errno snprintf vsnprintf vasprintf malloc realloc calloc \
10938 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
10939 do
10940 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10942 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10943 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10944 $as_echo_n "(cached) " >&6
10945 else
10946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10947 /* end confdefs.h. */
10948 #undef $ac_tr_decl
10949 #define $ac_tr_decl 1
10950
10951 #include "ansidecl.h"
10952 #include "system.h"
10953
10954 int
10955 main ()
10956 {
10957 #ifndef $ac_func
10958 char *(*pfn) = (char *(*)) $ac_func ;
10959 #endif
10960 ;
10961 return 0;
10962 }
10963 _ACEOF
10964 if ac_fn_cxx_try_compile "$LINENO"; then :
10965 eval "gcc_cv_have_decl_$ac_func=yes"
10966 else
10967 eval "gcc_cv_have_decl_$ac_func=no"
10968 fi
10969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10970 fi
10971
10972 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10974 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10975 #define $ac_tr_decl 1
10976 _ACEOF
10977
10978 else
10979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10980 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10981 #define $ac_tr_decl 0
10982 _ACEOF
10983
10984 fi
10985
10986 done
10987
10988
10989 for ac_func in getrlimit setrlimit getrusage
10990 do
10991 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10993 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10994 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10995 $as_echo_n "(cached) " >&6
10996 else
10997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10998 /* end confdefs.h. */
10999 #undef $ac_tr_decl
11000 #define $ac_tr_decl 1
11001
11002 #include "ansidecl.h"
11003 #include "system.h"
11004 #ifdef HAVE_SYS_RESOURCE_H
11005 #include <sys/resource.h>
11006 #endif
11007
11008
11009 int
11010 main ()
11011 {
11012 #ifndef $ac_func
11013 char *(*pfn) = (char *(*)) $ac_func ;
11014 #endif
11015 ;
11016 return 0;
11017 }
11018 _ACEOF
11019 if ac_fn_cxx_try_compile "$LINENO"; then :
11020 eval "gcc_cv_have_decl_$ac_func=yes"
11021 else
11022 eval "gcc_cv_have_decl_$ac_func=no"
11023 fi
11024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11025 fi
11026
11027 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11029 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11030 #define $ac_tr_decl 1
11031 _ACEOF
11032
11033 else
11034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11035 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11036 #define $ac_tr_decl 0
11037 _ACEOF
11038
11039 fi
11040
11041 done
11042
11043
11044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11045 /* end confdefs.h. */
11046
11047 #include "ansidecl.h"
11048 #include "system.h"
11049 #ifdef HAVE_SYS_RESOURCE_H
11050 #include <sys/resource.h>
11051 #endif
11052
11053 int
11054 main ()
11055 {
11056 rlim_t l = 0;
11057 ;
11058 return 0;
11059 }
11060 _ACEOF
11061 if ac_fn_cxx_try_compile "$LINENO"; then :
11062
11063 else
11064
11065 $as_echo "#define rlim_t long" >>confdefs.h
11066
11067 fi
11068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11069
11070 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
11071 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
11072 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
11073 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
11074 for ac_func in ldgetname
11075 do
11076 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11078 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11079 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11080 $as_echo_n "(cached) " >&6
11081 else
11082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11083 /* end confdefs.h. */
11084 #undef $ac_tr_decl
11085 #define $ac_tr_decl 1
11086
11087 #include "ansidecl.h"
11088 #include "system.h"
11089 #ifdef HAVE_LDFCN_H
11090 #undef FREAD
11091 #undef FWRITE
11092 #include <ldfcn.h>
11093 #endif
11094
11095
11096 int
11097 main ()
11098 {
11099 #ifndef $ac_func
11100 char *(*pfn) = (char *(*)) $ac_func ;
11101 #endif
11102 ;
11103 return 0;
11104 }
11105 _ACEOF
11106 if ac_fn_cxx_try_compile "$LINENO"; then :
11107 eval "gcc_cv_have_decl_$ac_func=yes"
11108 else
11109 eval "gcc_cv_have_decl_$ac_func=no"
11110 fi
11111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11112 fi
11113
11114 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11116 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11117 #define $ac_tr_decl 1
11118 _ACEOF
11119
11120 else
11121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11122 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11123 #define $ac_tr_decl 0
11124 _ACEOF
11125
11126 fi
11127
11128 done
11129
11130
11131 for ac_func in times
11132 do
11133 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11135 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11136 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11137 $as_echo_n "(cached) " >&6
11138 else
11139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11140 /* end confdefs.h. */
11141 #undef $ac_tr_decl
11142 #define $ac_tr_decl 1
11143
11144 #include "ansidecl.h"
11145 #include "system.h"
11146 #ifdef HAVE_SYS_TIMES_H
11147 #include <sys/times.h>
11148 #endif
11149
11150
11151 int
11152 main ()
11153 {
11154 #ifndef $ac_func
11155 char *(*pfn) = (char *(*)) $ac_func ;
11156 #endif
11157 ;
11158 return 0;
11159 }
11160 _ACEOF
11161 if ac_fn_cxx_try_compile "$LINENO"; then :
11162 eval "gcc_cv_have_decl_$ac_func=yes"
11163 else
11164 eval "gcc_cv_have_decl_$ac_func=no"
11165 fi
11166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11167 fi
11168
11169 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11171 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11172 #define $ac_tr_decl 1
11173 _ACEOF
11174
11175 else
11176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11177 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11178 #define $ac_tr_decl 0
11179 _ACEOF
11180
11181 fi
11182
11183 done
11184
11185
11186 for ac_func in sigaltstack
11187 do
11188 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11190 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11191 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11192 $as_echo_n "(cached) " >&6
11193 else
11194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11195 /* end confdefs.h. */
11196 #undef $ac_tr_decl
11197 #define $ac_tr_decl 1
11198
11199 #include "ansidecl.h"
11200 #include "system.h"
11201 #include <signal.h>
11202
11203
11204 int
11205 main ()
11206 {
11207 #ifndef $ac_func
11208 char *(*pfn) = (char *(*)) $ac_func ;
11209 #endif
11210 ;
11211 return 0;
11212 }
11213 _ACEOF
11214 if ac_fn_cxx_try_compile "$LINENO"; then :
11215 eval "gcc_cv_have_decl_$ac_func=yes"
11216 else
11217 eval "gcc_cv_have_decl_$ac_func=no"
11218 fi
11219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11220 fi
11221
11222 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11224 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11225 #define $ac_tr_decl 1
11226 _ACEOF
11227
11228 else
11229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11230 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11231 #define $ac_tr_decl 0
11232 _ACEOF
11233
11234 fi
11235
11236 done
11237
11238
11239 # More time-related stuff.
11240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
11241 $as_echo_n "checking for struct tms... " >&6; }
11242 if test "${ac_cv_struct_tms+set}" = set; then :
11243 $as_echo_n "(cached) " >&6
11244 else
11245
11246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11247 /* end confdefs.h. */
11248
11249 #include "ansidecl.h"
11250 #include "system.h"
11251 #ifdef HAVE_SYS_TIMES_H
11252 #include <sys/times.h>
11253 #endif
11254
11255 int
11256 main ()
11257 {
11258 struct tms tms;
11259 ;
11260 return 0;
11261 }
11262 _ACEOF
11263 if ac_fn_cxx_try_compile "$LINENO"; then :
11264 ac_cv_struct_tms=yes
11265 else
11266 ac_cv_struct_tms=no
11267 fi
11268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11269 fi
11270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
11271 $as_echo "$ac_cv_struct_tms" >&6; }
11272 if test $ac_cv_struct_tms = yes; then
11273
11274 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
11275
11276 fi
11277
11278 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
11279 # revisit after autoconf 2.50.
11280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
11281 $as_echo_n "checking for clock_t... " >&6; }
11282 if test "${gcc_cv_type_clock_t+set}" = set; then :
11283 $as_echo_n "(cached) " >&6
11284 else
11285
11286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11287 /* end confdefs.h. */
11288
11289 #include "ansidecl.h"
11290 #include "system.h"
11291
11292 int
11293 main ()
11294 {
11295 clock_t x;
11296 ;
11297 return 0;
11298 }
11299 _ACEOF
11300 if ac_fn_cxx_try_compile "$LINENO"; then :
11301 gcc_cv_type_clock_t=yes
11302 else
11303 gcc_cv_type_clock_t=no
11304 fi
11305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11306 fi
11307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
11308 $as_echo "$gcc_cv_type_clock_t" >&6; }
11309 if test $gcc_cv_type_clock_t = yes; then
11310
11311 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
11312
11313 fi
11314
11315 # Check if F_SETLKW is supported by fcntl.
11316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
11317 $as_echo_n "checking for F_SETLKW... " >&6; }
11318 if test "${ac_cv_f_setlkw+set}" = set; then :
11319 $as_echo_n "(cached) " >&6
11320 else
11321
11322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11323 /* end confdefs.h. */
11324
11325 #include <fcntl.h>
11326 int
11327 main ()
11328 {
11329
11330 struct flock fl;
11331 fl.l_whence = 0;
11332 fl.l_start = 0;
11333 fl.l_len = 0;
11334 fl.l_pid = 0;
11335 return fcntl (1, F_SETLKW, &fl);
11336 ;
11337 return 0;
11338 }
11339 _ACEOF
11340 if ac_fn_cxx_try_compile "$LINENO"; then :
11341 ac_cv_f_setlkw=yes
11342 else
11343 ac_cv_f_setlkw=no
11344 fi
11345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11346 fi
11347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
11348 $as_echo "$ac_cv_f_setlkw" >&6; }
11349 if test $ac_cv_f_setlkw = yes; then
11350
11351 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
11352
11353 fi
11354
11355 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
11356 CFLAGS="$saved_CFLAGS"
11357 CXXFLAGS="$saved_CXXFLAGS"
11358
11359 # mkdir takes a single argument on some systems.
11360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
11361 $as_echo_n "checking if mkdir takes one argument... " >&6; }
11362 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
11363 $as_echo_n "(cached) " >&6
11364 else
11365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11366 /* end confdefs.h. */
11367
11368 #include <sys/types.h>
11369 #ifdef HAVE_SYS_STAT_H
11370 # include <sys/stat.h>
11371 #endif
11372 #ifdef HAVE_UNISTD_H
11373 # include <unistd.h>
11374 #endif
11375 #ifdef HAVE_DIRECT_H
11376 # include <direct.h>
11377 #endif
11378 int
11379 main ()
11380 {
11381 mkdir ("foo", 0);
11382 ;
11383 return 0;
11384 }
11385 _ACEOF
11386 if ac_fn_cxx_try_compile "$LINENO"; then :
11387 gcc_cv_mkdir_takes_one_arg=no
11388 else
11389 gcc_cv_mkdir_takes_one_arg=yes
11390 fi
11391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11392 fi
11393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
11394 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
11395 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
11396
11397 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
11398
11399 fi
11400
11401
11402 # File extensions
11403 manext='.1'
11404 objext='.o'
11405
11406
11407
11408 # With Setjmp/Longjmp based exception handling.
11409 # Check whether --enable-sjlj-exceptions was given.
11410 if test "${enable_sjlj_exceptions+set}" = set; then :
11411 enableval=$enable_sjlj_exceptions; case $target in
11412 *-*-hpux10*)
11413 if test $enableval != yes; then
11414 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
11415 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
11416 enableval=yes
11417 fi
11418 ;;
11419 esac
11420 force_sjlj_exceptions=yes
11421 else
11422 case $target in
11423 *-*-hpux10*)
11424 force_sjlj_exceptions=yes
11425 enableval=yes
11426 ;;
11427 lm32*-*-*)
11428 force_sjlj_exceptions=yes
11429 enableval=yes
11430 ;;
11431 *)
11432 force_sjlj_exceptions=no
11433 ;;
11434 esac
11435 fi
11436
11437 if test $force_sjlj_exceptions = yes; then
11438 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
11439
11440 cat >>confdefs.h <<_ACEOF
11441 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
11442 _ACEOF
11443
11444 fi
11445
11446 # --------------------------------------------------------
11447 # Build, host, and target specific configuration fragments
11448 # --------------------------------------------------------
11449
11450 # Collect build-machine-specific information.
11451 . ${srcdir}/config.build
11452
11453 # Collect host-machine-specific information.
11454 . ${srcdir}/config.host
11455
11456 target_gtfiles=
11457
11458 # Collect target-machine-specific information.
11459 . ${srcdir}/config.gcc
11460
11461 extra_objs="${host_extra_objs} ${extra_objs}"
11462 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
11463
11464 # Default the target-machine variables that were not explicitly set.
11465 if test x"$tm_file" = x
11466 then tm_file=$cpu_type/$cpu_type.h; fi
11467
11468 if test x"$extra_headers" = x
11469 then extra_headers=; fi
11470
11471 if test x$md_file = x
11472 then md_file=$cpu_type/$cpu_type.md; fi
11473
11474 if test x$out_file = x
11475 then out_file=$cpu_type/$cpu_type.c; fi
11476
11477 if test x"$tmake_file" = x
11478 then tmake_file=$cpu_type/t-$cpu_type
11479 fi
11480
11481 # Support --enable-initfini-array.
11482 if test x$enable_initfini_array != xno; then
11483 tm_file="${tm_file} initfini-array.h"
11484 fi
11485
11486 if test x"$dwarf2" = xyes
11487 then tm_file="$tm_file tm-dwarf2.h"
11488 fi
11489
11490 # Say what files are being used for the output code and MD file.
11491 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11492 echo "Using \`$srcdir/config/$md_file' as machine description file."
11493
11494 # If any of the xm_file variables contain nonexistent files, warn
11495 # about them and drop them.
11496
11497 bx=
11498 for x in $build_xm_file; do
11499 if test -f $srcdir/config/$x
11500 then bx="$bx $x"
11501 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11502 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11503 fi
11504 done
11505 build_xm_file="$bx"
11506
11507 hx=
11508 for x in $host_xm_file; do
11509 if test -f $srcdir/config/$x
11510 then hx="$hx $x"
11511 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11512 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11513 fi
11514 done
11515 host_xm_file="$hx"
11516
11517 tx=
11518 for x in $xm_file; do
11519 if test -f $srcdir/config/$x
11520 then tx="$tx $x"
11521 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11522 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11523 fi
11524 done
11525 xm_file="$tx"
11526
11527 count=a
11528 for f in $tm_file; do
11529 count=${count}x
11530 done
11531 if test $count = ax; then
11532 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11533 else
11534 echo "Using the following target machine macro files:"
11535 for f in $tm_file; do
11536 echo " $srcdir/config/$f"
11537 done
11538 fi
11539
11540 if test x$use_long_long_for_widest_fast_int = xyes; then
11541
11542 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
11543
11544 fi
11545
11546 gnu_ld_bool=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
11547
11548 cat >>confdefs.h <<_ACEOF
11549 #define HAVE_GNU_LD $gnu_ld_bool
11550 _ACEOF
11551
11552
11553 gnu_as_bool=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
11554
11555 cat >>confdefs.h <<_ACEOF
11556 #define HAVE_GNU_AS $gnu_as_bool
11557 _ACEOF
11558
11559
11560 count=a
11561 for f in $host_xm_file; do
11562 count=${count}x
11563 done
11564 if test $count = a; then
11565 :
11566 elif test $count = ax; then
11567 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11568 else
11569 echo "Using the following host machine macro files:"
11570 for f in $host_xm_file; do
11571 echo " $srcdir/config/$f"
11572 done
11573 fi
11574 echo "Using ${out_host_hook_obj} for host machine hooks."
11575
11576 if test "$host_xm_file" != "$build_xm_file"; then
11577 count=a
11578 for f in $build_xm_file; do
11579 count=${count}x
11580 done
11581 if test $count = a; then
11582 :
11583 elif test $count = ax; then
11584 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11585 else
11586 echo "Using the following build machine macro files:"
11587 for f in $build_xm_file; do
11588 echo " $srcdir/config/$f"
11589 done
11590 fi
11591 fi
11592
11593 if test -n "$configured_native_system_header_dir"; then
11594 native_system_header_dir=$configured_native_system_header_dir
11595 fi
11596 NATIVE_SYSTEM_HEADER_DIR="$native_system_header_dir"
11597
11598
11599 case ${host} in
11600 powerpc*-*-darwin*)
11601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
11602 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
11603 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
11604 $as_echo_n "(cached) " >&6
11605 else
11606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11607 /* end confdefs.h. */
11608
11609 #include <sys/cdefs.h>
11610 #include <sys/signal.h>
11611 #include <ucontext.h>
11612 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
11613
11614 _ACEOF
11615 if ac_fn_cxx_try_compile "$LINENO"; then :
11616 gcc_cv_mcontext_underscores=no
11617 else
11618 gcc_cv_mcontext_underscores=yes
11619 fi
11620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11621 fi
11622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
11623 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
11624 if test $gcc_cv_mcontext_underscores = yes; then
11625
11626 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
11627
11628 fi
11629 ;;
11630 esac
11631
11632 # ---------
11633 # Threading
11634 # ---------
11635
11636 # Check if a valid thread package
11637 case ${enable_threads} in
11638 "" | no)
11639 # No threads
11640 target_thread_file='single'
11641 ;;
11642 yes)
11643 # default
11644 target_thread_file='single'
11645 ;;
11646 aix | dce | lynx | mipssde | posix | rtems | \
11647 single | tpf | vxworks | win32)
11648 target_thread_file=${enable_threads}
11649 ;;
11650 *)
11651 echo "${enable_threads} is an unknown thread package" 1>&2
11652 exit 1
11653 ;;
11654 esac
11655
11656 if test x${thread_file} = x; then
11657 # No thread file set by target-specific clauses in config.gcc,
11658 # so use file chosen by default logic above
11659 thread_file=${target_thread_file}
11660 fi
11661
11662 # --------
11663 # UNSORTED
11664 # --------
11665
11666 use_cxa_atexit=no
11667 if test x$enable___cxa_atexit = xyes || \
11668 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
11669 if test x$host = x$target; then
11670 case $host in
11671 # mingw32 doesn't have __cxa_atexit but uses atexit registration
11672 # keyed to flag_use_cxa_atexit
11673 *-*-mingw32*)
11674 use_cxa_atexit=yes
11675 ;;
11676 powerpc-ibm-aix*)
11677 use_cxa_atexit=yes
11678 ;;
11679 *)
11680 ac_fn_cxx_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
11681 if test "x$ac_cv_func___cxa_atexit" = x""yes; then :
11682 use_cxa_atexit=yes
11683 else
11684 echo "__cxa_atexit can't be enabled on this target"
11685 fi
11686
11687 ;;
11688 esac
11689 else
11690 # We can't check for __cxa_atexit when building a cross, so assume
11691 # it is available
11692 use_cxa_atexit=yes
11693 fi
11694 if test x$use_cxa_atexit = xyes; then
11695
11696 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
11697
11698 fi
11699 fi
11700
11701 # Look for a file containing extra machine modes.
11702 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
11703 extra_modes_file='$(srcdir)'/config/${extra_modes}
11704
11705
11706 cat >>confdefs.h <<_ACEOF
11707 #define EXTRA_MODES_FILE "config/$extra_modes"
11708 _ACEOF
11709
11710 fi
11711
11712 # Convert extra_options into a form suitable for Makefile use.
11713 extra_opt_files=
11714 all_opt_files=
11715 for f in $extra_options; do
11716 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
11717 all_opt_files="$all_opt_files $srcdir/config/$f"
11718 done
11719
11720
11721 # auto-host.h is the file containing items generated by autoconf and is
11722 # the first file included by config.h.
11723 # If host=build, it is correct to have bconfig include auto-host.h
11724 # as well. If host!=build, we are in error and need to do more
11725 # work to find out the build config parameters.
11726 if test x$host = x$build
11727 then
11728 build_auto=auto-host.h
11729 else
11730 # We create a subdir, then run autoconf in the subdir.
11731 # To prevent recursion we set host and build for the new
11732 # invocation of configure to the build for this invocation
11733 # of configure.
11734 tempdir=build.$$
11735 rm -rf $tempdir
11736 mkdir $tempdir
11737 cd $tempdir
11738 case ${srcdir} in
11739 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
11740 *) realsrcdir=../${srcdir};;
11741 esac
11742 # Clearing GMPINC is necessary to prevent host headers being
11743 # used by the build compiler. Defining GENERATOR_FILE stops
11744 # system.h from including gmp.h.
11745 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
11746 CXX="${CXX_FOR_BUILD}" CXXFLAGS="${CXXFLAGS_FOR_BUILD}" \
11747 LD="${LD_FOR_BUILD}" LDFLAGS="${LDFLAGS_FOR_BUILD}" \
11748 GMPINC="" CPPFLAGS="${CPPFLAGS} -DGENERATOR_FILE" \
11749 ${realsrcdir}/configure \
11750 --enable-languages=${enable_languages-all} \
11751 --target=$target_alias --host=$build_alias --build=$build_alias
11752
11753 # We just finished tests for the build machine, so rename
11754 # the file auto-build.h in the gcc directory.
11755 mv auto-host.h ../auto-build.h
11756 cd ..
11757 rm -rf $tempdir
11758 build_auto=auto-build.h
11759 fi
11760
11761
11762 tm_file="${tm_file} defaults.h"
11763 tm_p_file="${tm_p_file} tm-preds.h"
11764 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
11765 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
11766 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
11767 # put this back in temporarily.
11768 xm_file="auto-host.h ansidecl.h ${xm_file}"
11769
11770 # --------
11771 # UNSORTED
11772 # --------
11773
11774 # Compile in configure arguments.
11775 if test -f configargs.h ; then
11776 # Being re-configured.
11777 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
11778 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
11779 else
11780 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
11781 fi
11782
11783 # Double all backslashes and backslash all quotes to turn
11784 # gcc_config_arguments into a C string.
11785 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
11786 $gcc_config_arguments
11787 EOF
11788 gcc_config_arguments_str=`cat conftest.out`
11789 rm -f conftest.out
11790
11791 cat > configargs.h <<EOF
11792 /* Generated automatically. */
11793 static const char configuration_arguments[] = "$gcc_config_arguments_str";
11794 static const char thread_model[] = "$thread_file";
11795
11796 static const struct {
11797 const char *name, *value;
11798 } configure_default_options[] = $configure_default_options;
11799 EOF
11800
11801 gcc_BASEVER=`cat $srcdir/BASE-VER`
11802 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
11803 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
11804 if test -f $srcdir/REVISION ; then
11805 gcc_REVISION=`cat $srcdir/REVISION`
11806 else
11807 gcc_REVISION=""
11808 fi
11809 cat > plugin-version.h <<EOF
11810 #include "configargs.h"
11811
11812 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
11813 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
11814 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
11815 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
11816
11817 static char basever[] = "$gcc_BASEVER";
11818 static char datestamp[] = "$gcc_DATESTAMP";
11819 static char devphase[] = "$gcc_DEVPHASE";
11820 static char revision[] = "$gcc_REVISION";
11821
11822 /* FIXME plugins: We should make the version information more precise.
11823 One way to do is to add a checksum. */
11824
11825 static struct plugin_gcc_version gcc_version = {basever, datestamp,
11826 devphase, revision,
11827 configuration_arguments};
11828 EOF
11829
11830 # Internationalization
11831 # If we haven't got the data from the intl directory,
11832 # assume NLS is disabled.
11833 USE_NLS=no
11834 LIBINTL=
11835 LIBINTL_DEP=
11836 INCINTL=
11837 XGETTEXT=
11838 GMSGFMT=
11839 POSUB=
11840
11841 if test -f ../intl/config.intl; then
11842 . ../intl/config.intl
11843 fi
11844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11845 $as_echo_n "checking whether NLS is requested... " >&6; }
11846 if test x"$USE_NLS" != xyes; then
11847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11848 $as_echo "no" >&6; }
11849 else
11850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11851 $as_echo "yes" >&6; }
11852
11853 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11854
11855
11856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11857 $as_echo_n "checking for catalogs to be installed... " >&6; }
11858 # Look for .po and .gmo files in the source directory.
11859 CATALOGS=
11860 XLINGUAS=
11861 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
11862 # If there aren't any .gmo files the shell will give us the
11863 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11864 # weeded out.
11865 case "$cat" in *\**)
11866 continue;;
11867 esac
11868 # The quadruple backslash is collapsed to a double backslash
11869 # by the backticks, then collapsed again by the double quotes,
11870 # leaving us with one backslash in the sed expression (right
11871 # before the dot that mustn't act as a wildcard).
11872 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11873 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
11874 # The user is allowed to set LINGUAS to a list of languages to
11875 # install catalogs for. If it's empty that means "all of them."
11876 if test "x$LINGUAS" = x; then
11877 CATALOGS="$CATALOGS $cat"
11878 XLINGUAS="$XLINGUAS $lang"
11879 else
11880 case "$LINGUAS" in *$lang*)
11881 CATALOGS="$CATALOGS $cat"
11882 XLINGUAS="$XLINGUAS $lang"
11883 ;;
11884 esac
11885 fi
11886 done
11887 LINGUAS="$XLINGUAS"
11888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11889 $as_echo "$LINGUAS" >&6; }
11890
11891
11892 DATADIRNAME=share
11893
11894 INSTOBJEXT=.mo
11895
11896 GENCAT=gencat
11897
11898 CATOBJEXT=.gmo
11899
11900 fi
11901
11902 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
11903 # -liconv on the link line twice.
11904 case "$LIBINTL" in *$LIBICONV*)
11905 LIBICONV= ;;
11906 esac
11907
11908 # Check whether --enable-secureplt was given.
11909 if test "${enable_secureplt+set}" = set; then :
11910 enableval=$enable_secureplt;
11911 fi
11912
11913
11914 # Check whether --enable-leading-mingw64-underscores was given.
11915 if test "${enable_leading_mingw64_underscores+set}" = set; then :
11916 enableval=$enable_leading_mingw64_underscores;
11917 fi
11918
11919 if test x"$enable_leading_mingw64_underscores" = xyes ; then :
11920
11921 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
11922
11923 fi
11924
11925 # Check whether --enable-cld was given.
11926 if test "${enable_cld+set}" = set; then :
11927 enableval=$enable_cld;
11928 else
11929 enable_cld=no
11930 fi
11931
11932
11933 # Check whether --enable-frame-pointer was given.
11934 if test "${enable_frame_pointer+set}" = set; then :
11935 enableval=$enable_frame_pointer;
11936 else
11937
11938 case $target_os in
11939 linux* | darwin[8912]*)
11940 # Enable -fomit-frame-pointer by default for Linux and Darwin with
11941 # DWARF2.
11942 enable_frame_pointer=no
11943 ;;
11944 *)
11945 enable_frame_pointer=yes
11946 ;;
11947 esac
11948
11949 fi
11950
11951
11952 # Windows32 Registry support for specifying GCC installation paths.
11953 # Check whether --enable-win32-registry was given.
11954 if test "${enable_win32_registry+set}" = set; then :
11955 enableval=$enable_win32_registry;
11956 fi
11957
11958
11959 case $host_os in
11960 win32 | pe | cygwin* | mingw32*)
11961 if test "x$enable_win32_registry" != xno; then
11962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
11963 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
11964 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11965 $as_echo_n "(cached) " >&6
11966 else
11967 ac_func_search_save_LIBS=$LIBS
11968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11969 /* end confdefs.h. */
11970
11971 /* Override any GCC internal prototype to avoid an error.
11972 Use char because int might match the return type of a GCC
11973 builtin and then its argument prototype would still apply. */
11974 #ifdef __cplusplus
11975 extern "C"
11976 #endif
11977 char RegOpenKeyExA ();
11978 int
11979 main ()
11980 {
11981 return RegOpenKeyExA ();
11982 ;
11983 return 0;
11984 }
11985 _ACEOF
11986 for ac_lib in '' advapi32; do
11987 if test -z "$ac_lib"; then
11988 ac_res="none required"
11989 else
11990 ac_res=-l$ac_lib
11991 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11992 fi
11993 if ac_fn_cxx_try_link "$LINENO"; then :
11994 ac_cv_search_RegOpenKeyExA=$ac_res
11995 fi
11996 rm -f core conftest.err conftest.$ac_objext \
11997 conftest$ac_exeext
11998 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11999 break
12000 fi
12001 done
12002 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
12003
12004 else
12005 ac_cv_search_RegOpenKeyExA=no
12006 fi
12007 rm conftest.$ac_ext
12008 LIBS=$ac_func_search_save_LIBS
12009 fi
12010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
12011 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
12012 ac_res=$ac_cv_search_RegOpenKeyExA
12013 if test "$ac_res" != no; then :
12014 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12015
12016 else
12017 enable_win32_registry=no
12018 fi
12019
12020 fi
12021
12022 if test "x$enable_win32_registry" != xno; then
12023
12024 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
12025
12026
12027 if test "x$enable_win32_registry" != xyes \
12028 && test "x$enable_win32_registry" != x; then
12029
12030 cat >>confdefs.h <<_ACEOF
12031 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
12032 _ACEOF
12033
12034 fi
12035 fi
12036 ;;
12037 esac
12038
12039 # Get an absolute path to the GCC top-level source directory
12040 holddir=`${PWDCMD-pwd}`
12041 cd $srcdir
12042 topdir=`${PWDCMD-pwd}`
12043 cd $holddir
12044
12045 # Conditionalize the makefile for this host machine.
12046 xmake_file=
12047 for f in ${host_xmake_file}
12048 do
12049 if test -f ${srcdir}/config/$f
12050 then
12051 xmake_file="${xmake_file} \$(srcdir)/config/$f"
12052 fi
12053 done
12054
12055 # Conditionalize the makefile for this target machine.
12056 tmake_file_=
12057 for f in ${tmake_file}
12058 do
12059 if test -f ${srcdir}/config/$f
12060 then
12061 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
12062 fi
12063 done
12064 tmake_file="${tmake_file_}"
12065
12066 out_object_file=`basename $out_file .c`.o
12067 common_out_object_file=`basename $common_out_file .c`.o
12068
12069 tm_file_list="options.h"
12070 tm_include_list="options.h insn-constants.h"
12071 for f in $tm_file; do
12072 case $f in
12073 ./* )
12074 f=`echo $f | sed 's/^..//'`
12075 tm_file_list="${tm_file_list} $f"
12076 tm_include_list="${tm_include_list} $f"
12077 ;;
12078 defaults.h )
12079 tm_file_list="${tm_file_list} \$(srcdir)/$f"
12080 tm_include_list="${tm_include_list} $f"
12081 ;;
12082 * )
12083 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
12084 tm_include_list="${tm_include_list} config/$f"
12085 ;;
12086 esac
12087 done
12088
12089 tm_p_file_list=
12090 tm_p_include_list=
12091 for f in $tm_p_file; do
12092 case $f in
12093 tm-preds.h )
12094 tm_p_file_list="${tm_p_file_list} $f"
12095 tm_p_include_list="${tm_p_include_list} $f"
12096 ;;
12097 * )
12098 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
12099 tm_p_include_list="${tm_p_include_list} config/$f"
12100 esac
12101 done
12102
12103 xm_file_list=
12104 xm_include_list=
12105 for f in $xm_file; do
12106 case $f in
12107 ansidecl.h )
12108 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
12109 xm_include_list="${xm_include_list} $f"
12110 ;;
12111 auto-host.h )
12112 xm_file_list="${xm_file_list} $f"
12113 xm_include_list="${xm_include_list} $f"
12114 ;;
12115 * )
12116 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
12117 xm_include_list="${xm_include_list} config/$f"
12118 ;;
12119 esac
12120 done
12121
12122 host_xm_file_list=
12123 host_xm_include_list=
12124 for f in $host_xm_file; do
12125 case $f in
12126 ansidecl.h )
12127 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
12128 host_xm_include_list="${host_xm_include_list} $f"
12129 ;;
12130 auto-host.h )
12131 host_xm_file_list="${host_xm_file_list} $f"
12132 host_xm_include_list="${host_xm_include_list} $f"
12133 ;;
12134 * )
12135 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
12136 host_xm_include_list="${host_xm_include_list} config/$f"
12137 ;;
12138 esac
12139 done
12140
12141 build_xm_file_list=
12142 for f in $build_xm_file; do
12143 case $f in
12144 ansidecl.h )
12145 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
12146 build_xm_include_list="${build_xm_include_list} $f"
12147 ;;
12148 auto-build.h | auto-host.h )
12149 build_xm_file_list="${build_xm_file_list} $f"
12150 build_xm_include_list="${build_xm_include_list} $f"
12151 ;;
12152 * )
12153 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
12154 build_xm_include_list="${build_xm_include_list} config/$f"
12155 ;;
12156 esac
12157 done
12158
12159 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
12160 # cross-compiler which does not use the native headers and libraries.
12161 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
12162 CROSS=
12163 ALL=all.internal
12164 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
12165
12166 if test "x$with_build_sysroot" != x; then
12167 build_system_header_dir=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
12168 else
12169 # This value is used, even on a native system, because
12170 # CROSS_SYSTEM_HEADER_DIR is just
12171 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
12172 build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
12173 fi
12174
12175 if test x$host != x$target
12176 then
12177 CROSS="-DCROSS_DIRECTORY_STRUCTURE"
12178 ALL=all.cross
12179 SYSTEM_HEADER_DIR=$build_system_header_dir
12180 case "$host","$target" in
12181 # Darwin crosses can use the host system's libraries and headers,
12182 # because of the fat library support. Of course, it must be the
12183 # same version of Darwin on both sides. Allow the user to
12184 # just say --target=foo-darwin without a version number to mean
12185 # "the version on this system".
12186 *-*-darwin*,*-*-darwin*)
12187 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
12188 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
12189 if test $hostos = $targetos -o $targetos = darwin ; then
12190 CROSS=
12191 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
12192 with_headers=yes
12193 fi
12194 ;;
12195
12196 i?86-*-*,x86_64-*-* \
12197 | powerpc*-*-*,powerpc64*-*-*)
12198 CROSS="$CROSS -DNATIVE_CROSS" ;;
12199 esac
12200
12201 case $target in
12202 *-*-mingw*)
12203 if test "x$with_headers" = x; then
12204 with_headers=yes
12205 fi
12206 ;;
12207 *)
12208 ;;
12209 esac
12210 elif test "x$TARGET_SYSTEM_ROOT" != x; then
12211 SYSTEM_HEADER_DIR=$build_system_header_dir
12212 fi
12213
12214 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
12215 if test "x$with_headers" != x; then
12216 target_header_dir=$with_headers
12217 elif test "x$with_sysroot" = x; then
12218 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-include"
12219 elif test "x$with_build_sysroot" != "x"; then
12220 target_header_dir="${with_build_sysroot}${native_system_header_dir}"
12221 elif test "x$with_sysroot" = xyes; then
12222 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
12223 else
12224 target_header_dir="${with_sysroot}${native_system_header_dir}"
12225 fi
12226 else
12227 target_header_dir=${native_system_header_dir}
12228 fi
12229
12230 # If this is a cross-compiler that does not
12231 # have its own set of headers then define
12232 # inhibit_libc
12233
12234 # If this is using newlib, without having the headers available now,
12235 # then define inhibit_libc in LIBGCC2_CFLAGS.
12236 # This prevents libgcc2 from containing any code which requires libc
12237 # support.
12238 : ${inhibit_libc=false}
12239 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
12240 test x$with_newlib = xyes ; } &&
12241 { test "x$with_headers" = xno || test ! -f "$target_header_dir/stdio.h"; } ; then
12242 inhibit_libc=true
12243 fi
12244
12245
12246 # When building gcc with a cross-compiler, we need to adjust things so
12247 # that the generator programs are still built with the native compiler.
12248 # Also, we cannot run fixincludes.
12249
12250 # These are the normal (build=host) settings:
12251 CC_FOR_BUILD='$(CC)'
12252 CXX_FOR_BUILD='$(CXX)'
12253 BUILD_CFLAGS='$(ALL_CFLAGS)'
12254 BUILD_CXXFLAGS='$(ALL_CXXFLAGS)'
12255 BUILD_LDFLAGS='$(LDFLAGS)'
12256 STMP_FIXINC=stmp-fixinc
12257
12258 BUILD_NO_PIE_CFLAGS='$(NO_PIE_CFLAGS)'
12259 BUILD_NO_PIE_FLAG='$(NO_PIE_FLAG)'
12260
12261 # And these apply if build != host, or we are generating coverage data
12262 if test x$build != x$host || test "x$coverage_flags" != x
12263 then
12264 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
12265 BUILD_CXXFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CXXFLAGS_FOR_BUILD)'
12266 BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
12267
12268 NO_PIE_CFLAGS_FOR_BUILD=${NO_PIE_CFLAGS_FOR_BUILD-${NO_PIE_CFLAGS}}
12269 NO_PIE_FLAG_FOR_BUILD=${NO_PIE_FLAG_FOR_BUILD-${NO_PIE_FLAG}}
12270 BUILD_NO_PIE_CFLAGS='$(NO_PIE_CFLAGS_FOR_BUILD)'
12271 BUILD_NO_PIE_FLAG='$(NO_PIE_FLAG_FOR_BUILD)'
12272 fi
12273
12274
12275
12276 # Expand extra_headers to include complete path.
12277 # This substitutes for lots of t-* files.
12278 extra_headers_list=
12279 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
12280 for file in ${extra_headers} ; do
12281 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
12282 done
12283
12284 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
12285 if test x"$use_gcc_tgmath" = xyes
12286 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
12287 fi
12288
12289 # Define collect2 in Makefile.
12290 case $host_can_use_collect2 in
12291 no) collect2= ;;
12292 *) collect2='collect2$(exeext)' ;;
12293 esac
12294
12295
12296 # Add a definition of USE_COLLECT2 if system wants one.
12297 case $use_collect2 in
12298 no) use_collect2= ;;
12299 "") ;;
12300 *)
12301 host_xm_defines="${host_xm_defines} USE_COLLECT2"
12302 xm_defines="${xm_defines} USE_COLLECT2"
12303 case $host_can_use_collect2 in
12304 no)
12305 as_fn_error "collect2 is required but cannot be built on this system" "$LINENO" 5
12306 ;;
12307 esac
12308 ;;
12309 esac
12310
12311
12312 cat >>confdefs.h <<_ACEOF
12313 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
12314 _ACEOF
12315
12316
12317 # ---------------------------
12318 # Assembler & linker features
12319 # ---------------------------
12320
12321 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
12322 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
12323 # However when ld-new is first executed from the build tree, libtool will
12324 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
12325 # to the build tree. While doing this we need to use the previous-stage
12326 # linker, or we have an infinite loop. The presence of a shell script as
12327 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
12328 # the gcc/collect-ld script. So we need to know how libtool works, or
12329 # exec-tool will fail.
12330
12331
12332 case `pwd` in
12333 *\ * | *\ *)
12334 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
12335 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
12336 esac
12337
12338
12339
12340 macro_version='2.2.7a'
12341 macro_revision='1.3134'
12342
12343
12344
12345
12346
12347
12348
12349
12350
12351
12352
12353
12354
12355 ltmain="$ac_aux_dir/ltmain.sh"
12356
12357 # Backslashify metacharacters that are still active within
12358 # double-quoted strings.
12359 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
12360
12361 # Same as above, but do not quote variable references.
12362 double_quote_subst='s/\(["`\\]\)/\\\1/g'
12363
12364 # Sed substitution to delay expansion of an escaped shell variable in a
12365 # double_quote_subst'ed string.
12366 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
12367
12368 # Sed substitution to delay expansion of an escaped single quote.
12369 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
12370
12371 # Sed substitution to avoid accidental globbing in evaled expressions
12372 no_glob_subst='s/\*/\\\*/g'
12373
12374 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12375 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
12376 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
12377
12378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
12379 $as_echo_n "checking how to print strings... " >&6; }
12380 # Test print first, because it will be a builtin if present.
12381 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
12382 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
12383 ECHO='print -r --'
12384 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
12385 ECHO='printf %s\n'
12386 else
12387 # Use this function as a fallback that always works.
12388 func_fallback_echo ()
12389 {
12390 eval 'cat <<_LTECHO_EOF
12391 $1
12392 _LTECHO_EOF'
12393 }
12394 ECHO='func_fallback_echo'
12395 fi
12396
12397 # func_echo_all arg...
12398 # Invoke $ECHO with all args, space-separated.
12399 func_echo_all ()
12400 {
12401 $ECHO ""
12402 }
12403
12404 case "$ECHO" in
12405 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
12406 $as_echo "printf" >&6; } ;;
12407 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
12408 $as_echo "print -r" >&6; } ;;
12409 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
12410 $as_echo "cat" >&6; } ;;
12411 esac
12412
12413
12414
12415
12416
12417
12418
12419
12420
12421
12422
12423
12424
12425
12426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12427 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12428 if test "${ac_cv_path_SED+set}" = set; then :
12429 $as_echo_n "(cached) " >&6
12430 else
12431 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12432 for ac_i in 1 2 3 4 5 6 7; do
12433 ac_script="$ac_script$as_nl$ac_script"
12434 done
12435 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12436 { ac_script=; unset ac_script;}
12437 if test -z "$SED"; then
12438 ac_path_SED_found=false
12439 # Loop through the user's path and test for each of PROGNAME-LIST
12440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12441 for as_dir in $PATH
12442 do
12443 IFS=$as_save_IFS
12444 test -z "$as_dir" && as_dir=.
12445 for ac_prog in sed gsed; do
12446 for ac_exec_ext in '' $ac_executable_extensions; do
12447 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
12448 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
12449 # Check for GNU ac_path_SED and select it if it is found.
12450 # Check for GNU $ac_path_SED
12451 case `"$ac_path_SED" --version 2>&1` in
12452 *GNU*)
12453 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
12454 *)
12455 ac_count=0
12456 $as_echo_n 0123456789 >"conftest.in"
12457 while :
12458 do
12459 cat "conftest.in" "conftest.in" >"conftest.tmp"
12460 mv "conftest.tmp" "conftest.in"
12461 cp "conftest.in" "conftest.nl"
12462 $as_echo '' >> "conftest.nl"
12463 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
12464 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12465 as_fn_arith $ac_count + 1 && ac_count=$as_val
12466 if test $ac_count -gt ${ac_path_SED_max-0}; then
12467 # Best one so far, save it but keep looking for a better one
12468 ac_cv_path_SED="$ac_path_SED"
12469 ac_path_SED_max=$ac_count
12470 fi
12471 # 10*(2^10) chars as input seems more than enough
12472 test $ac_count -gt 10 && break
12473 done
12474 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12475 esac
12476
12477 $ac_path_SED_found && break 3
12478 done
12479 done
12480 done
12481 IFS=$as_save_IFS
12482 if test -z "$ac_cv_path_SED"; then
12483 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
12484 fi
12485 else
12486 ac_cv_path_SED=$SED
12487 fi
12488
12489 fi
12490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12491 $as_echo "$ac_cv_path_SED" >&6; }
12492 SED="$ac_cv_path_SED"
12493 rm -f conftest.sed
12494
12495 test -z "$SED" && SED=sed
12496 Xsed="$SED -e 1s/^X//"
12497
12498
12499
12500
12501
12502
12503
12504
12505
12506
12507
12508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12509 $as_echo_n "checking for fgrep... " >&6; }
12510 if test "${ac_cv_path_FGREP+set}" = set; then :
12511 $as_echo_n "(cached) " >&6
12512 else
12513 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
12514 then ac_cv_path_FGREP="$GREP -F"
12515 else
12516 if test -z "$FGREP"; then
12517 ac_path_FGREP_found=false
12518 # Loop through the user's path and test for each of PROGNAME-LIST
12519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12520 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12521 do
12522 IFS=$as_save_IFS
12523 test -z "$as_dir" && as_dir=.
12524 for ac_prog in fgrep; do
12525 for ac_exec_ext in '' $ac_executable_extensions; do
12526 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
12527 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
12528 # Check for GNU ac_path_FGREP and select it if it is found.
12529 # Check for GNU $ac_path_FGREP
12530 case `"$ac_path_FGREP" --version 2>&1` in
12531 *GNU*)
12532 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
12533 *)
12534 ac_count=0
12535 $as_echo_n 0123456789 >"conftest.in"
12536 while :
12537 do
12538 cat "conftest.in" "conftest.in" >"conftest.tmp"
12539 mv "conftest.tmp" "conftest.in"
12540 cp "conftest.in" "conftest.nl"
12541 $as_echo 'FGREP' >> "conftest.nl"
12542 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
12543 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12544 as_fn_arith $ac_count + 1 && ac_count=$as_val
12545 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12546 # Best one so far, save it but keep looking for a better one
12547 ac_cv_path_FGREP="$ac_path_FGREP"
12548 ac_path_FGREP_max=$ac_count
12549 fi
12550 # 10*(2^10) chars as input seems more than enough
12551 test $ac_count -gt 10 && break
12552 done
12553 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12554 esac
12555
12556 $ac_path_FGREP_found && break 3
12557 done
12558 done
12559 done
12560 IFS=$as_save_IFS
12561 if test -z "$ac_cv_path_FGREP"; then
12562 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12563 fi
12564 else
12565 ac_cv_path_FGREP=$FGREP
12566 fi
12567
12568 fi
12569 fi
12570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12571 $as_echo "$ac_cv_path_FGREP" >&6; }
12572 FGREP="$ac_cv_path_FGREP"
12573
12574
12575 test -z "$GREP" && GREP=grep
12576
12577
12578
12579
12580
12581
12582
12583
12584
12585
12586
12587
12588
12589
12590
12591
12592
12593
12594
12595 # Check whether --with-gnu-ld was given.
12596 if test "${with_gnu_ld+set}" = set; then :
12597 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12598 else
12599 with_gnu_ld=no
12600 fi
12601
12602 ac_prog=ld
12603 if test "$GCC" = yes; then
12604 # Check if gcc -print-prog-name=ld gives a path.
12605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12606 $as_echo_n "checking for ld used by $CC... " >&6; }
12607 case $host in
12608 *-*-mingw*)
12609 # gcc leaves a trailing carriage return which upsets mingw
12610 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12611 *)
12612 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12613 esac
12614 case $ac_prog in
12615 # Accept absolute paths.
12616 [\\/]* | ?:[\\/]*)
12617 re_direlt='/[^/][^/]*/\.\./'
12618 # Canonicalize the pathname of ld
12619 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12620 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12621 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12622 done
12623 test -z "$LD" && LD="$ac_prog"
12624 ;;
12625 "")
12626 # If it fails, then pretend we aren't using GCC.
12627 ac_prog=ld
12628 ;;
12629 *)
12630 # If it is relative, then search for the first ld in PATH.
12631 with_gnu_ld=unknown
12632 ;;
12633 esac
12634 elif test "$with_gnu_ld" = yes; then
12635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12636 $as_echo_n "checking for GNU ld... " >&6; }
12637 else
12638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12639 $as_echo_n "checking for non-GNU ld... " >&6; }
12640 fi
12641 if test "${lt_cv_path_LD+set}" = set; then :
12642 $as_echo_n "(cached) " >&6
12643 else
12644 if test -z "$LD"; then
12645 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12646 for ac_dir in $PATH; do
12647 IFS="$lt_save_ifs"
12648 test -z "$ac_dir" && ac_dir=.
12649 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12650 lt_cv_path_LD="$ac_dir/$ac_prog"
12651 # Check to see if the program is GNU ld. I'd rather use --version,
12652 # but apparently some variants of GNU ld only accept -v.
12653 # Break only if it was the GNU/non-GNU ld that we prefer.
12654 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12655 *GNU* | *'with BFD'*)
12656 test "$with_gnu_ld" != no && break
12657 ;;
12658 *)
12659 test "$with_gnu_ld" != yes && break
12660 ;;
12661 esac
12662 fi
12663 done
12664 IFS="$lt_save_ifs"
12665 else
12666 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12667 fi
12668 fi
12669
12670 LD="$lt_cv_path_LD"
12671 if test -n "$LD"; then
12672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12673 $as_echo "$LD" >&6; }
12674 else
12675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12676 $as_echo "no" >&6; }
12677 fi
12678 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12680 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12681 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12682 $as_echo_n "(cached) " >&6
12683 else
12684 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12685 case `$LD -v 2>&1 </dev/null` in
12686 *GNU* | *'with BFD'*)
12687 lt_cv_prog_gnu_ld=yes
12688 ;;
12689 *)
12690 lt_cv_prog_gnu_ld=no
12691 ;;
12692 esac
12693 fi
12694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12695 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12696 with_gnu_ld=$lt_cv_prog_gnu_ld
12697
12698
12699
12700
12701
12702
12703
12704
12705
12706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12707 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12708 if test "${lt_cv_path_NM+set}" = set; then :
12709 $as_echo_n "(cached) " >&6
12710 else
12711 if test -n "$NM"; then
12712 # Let the user override the test.
12713 lt_cv_path_NM="$NM"
12714 else
12715 lt_nm_to_check="${ac_tool_prefix}nm"
12716 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12717 lt_nm_to_check="$lt_nm_to_check nm"
12718 fi
12719 for lt_tmp_nm in $lt_nm_to_check; do
12720 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12721 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
12722 IFS="$lt_save_ifs"
12723 test -z "$ac_dir" && ac_dir=.
12724 tmp_nm="$ac_dir/$lt_tmp_nm"
12725 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
12726 # Check to see if the nm accepts a BSD-compat flag.
12727 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12728 # nm: unknown option "B" ignored
12729 # Tru64's nm complains that /dev/null is an invalid object file
12730 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12731 */dev/null* | *'Invalid file or object type'*)
12732 lt_cv_path_NM="$tmp_nm -B"
12733 break
12734 ;;
12735 *)
12736 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12737 */dev/null*)
12738 lt_cv_path_NM="$tmp_nm -p"
12739 break
12740 ;;
12741 *)
12742 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12743 continue # so that we can try to find one that supports BSD flags
12744 ;;
12745 esac
12746 ;;
12747 esac
12748 fi
12749 done
12750 IFS="$lt_save_ifs"
12751 done
12752 : ${lt_cv_path_NM=no}
12753 fi
12754 fi
12755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
12756 $as_echo "$lt_cv_path_NM" >&6; }
12757 if test "$lt_cv_path_NM" != "no"; then
12758 NM="$lt_cv_path_NM"
12759 else
12760 # Didn't find any BSD compatible name lister, look for dumpbin.
12761 if test -n "$DUMPBIN"; then :
12762 # Let the user override the test.
12763 else
12764 if test -n "$ac_tool_prefix"; then
12765 for ac_prog in dumpbin "link -dump"
12766 do
12767 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12768 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12770 $as_echo_n "checking for $ac_word... " >&6; }
12771 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
12772 $as_echo_n "(cached) " >&6
12773 else
12774 if test -n "$DUMPBIN"; then
12775 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
12776 else
12777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12778 for as_dir in $PATH
12779 do
12780 IFS=$as_save_IFS
12781 test -z "$as_dir" && as_dir=.
12782 for ac_exec_ext in '' $ac_executable_extensions; do
12783 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12784 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
12785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12786 break 2
12787 fi
12788 done
12789 done
12790 IFS=$as_save_IFS
12791
12792 fi
12793 fi
12794 DUMPBIN=$ac_cv_prog_DUMPBIN
12795 if test -n "$DUMPBIN"; then
12796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12797 $as_echo "$DUMPBIN" >&6; }
12798 else
12799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12800 $as_echo "no" >&6; }
12801 fi
12802
12803
12804 test -n "$DUMPBIN" && break
12805 done
12806 fi
12807 if test -z "$DUMPBIN"; then
12808 ac_ct_DUMPBIN=$DUMPBIN
12809 for ac_prog in dumpbin "link -dump"
12810 do
12811 # Extract the first word of "$ac_prog", so it can be a program name with args.
12812 set dummy $ac_prog; ac_word=$2
12813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12814 $as_echo_n "checking for $ac_word... " >&6; }
12815 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
12816 $as_echo_n "(cached) " >&6
12817 else
12818 if test -n "$ac_ct_DUMPBIN"; then
12819 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
12820 else
12821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12822 for as_dir in $PATH
12823 do
12824 IFS=$as_save_IFS
12825 test -z "$as_dir" && as_dir=.
12826 for ac_exec_ext in '' $ac_executable_extensions; do
12827 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12828 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
12829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12830 break 2
12831 fi
12832 done
12833 done
12834 IFS=$as_save_IFS
12835
12836 fi
12837 fi
12838 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
12839 if test -n "$ac_ct_DUMPBIN"; then
12840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12841 $as_echo "$ac_ct_DUMPBIN" >&6; }
12842 else
12843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12844 $as_echo "no" >&6; }
12845 fi
12846
12847
12848 test -n "$ac_ct_DUMPBIN" && break
12849 done
12850
12851 if test "x$ac_ct_DUMPBIN" = x; then
12852 DUMPBIN=":"
12853 else
12854 case $cross_compiling:$ac_tool_warned in
12855 yes:)
12856 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12857 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12858 ac_tool_warned=yes ;;
12859 esac
12860 DUMPBIN=$ac_ct_DUMPBIN
12861 fi
12862 fi
12863
12864 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
12865 *COFF*)
12866 DUMPBIN="$DUMPBIN -symbols"
12867 ;;
12868 *)
12869 DUMPBIN=:
12870 ;;
12871 esac
12872 fi
12873
12874 if test "$DUMPBIN" != ":"; then
12875 NM="$DUMPBIN"
12876 fi
12877 fi
12878 test -z "$NM" && NM=nm
12879
12880
12881
12882
12883
12884
12885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12886 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
12887 if test "${lt_cv_nm_interface+set}" = set; then :
12888 $as_echo_n "(cached) " >&6
12889 else
12890 lt_cv_nm_interface="BSD nm"
12891 echo "int some_variable = 0;" > conftest.$ac_ext
12892 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12893 (eval "$ac_compile" 2>conftest.err)
12894 cat conftest.err >&5
12895 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12896 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
12897 cat conftest.err >&5
12898 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12899 cat conftest.out >&5
12900 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
12901 lt_cv_nm_interface="MS dumpbin"
12902 fi
12903 rm -f conftest*
12904 fi
12905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12906 $as_echo "$lt_cv_nm_interface" >&6; }
12907
12908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12909 $as_echo_n "checking whether ln -s works... " >&6; }
12910 LN_S=$as_ln_s
12911 if test "$LN_S" = "ln -s"; then
12912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12913 $as_echo "yes" >&6; }
12914 else
12915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12916 $as_echo "no, using $LN_S" >&6; }
12917 fi
12918
12919 # find the maximum length of command line arguments
12920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12921 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
12922 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
12923 $as_echo_n "(cached) " >&6
12924 else
12925 i=0
12926 teststring="ABCD"
12927
12928 case $build_os in
12929 msdosdjgpp*)
12930 # On DJGPP, this test can blow up pretty badly due to problems in libc
12931 # (any single argument exceeding 2000 bytes causes a buffer overrun
12932 # during glob expansion). Even if it were fixed, the result of this
12933 # check would be larger than it should be.
12934 lt_cv_sys_max_cmd_len=12288; # 12K is about right
12935 ;;
12936
12937 gnu*)
12938 # Under GNU Hurd, this test is not required because there is
12939 # no limit to the length of command line arguments.
12940 # Libtool will interpret -1 as no limit whatsoever
12941 lt_cv_sys_max_cmd_len=-1;
12942 ;;
12943
12944 cygwin* | mingw* | cegcc*)
12945 # On Win9x/ME, this test blows up -- it succeeds, but takes
12946 # about 5 minutes as the teststring grows exponentially.
12947 # Worse, since 9x/ME are not pre-emptively multitasking,
12948 # you end up with a "frozen" computer, even though with patience
12949 # the test eventually succeeds (with a max line length of 256k).
12950 # Instead, let's just punt: use the minimum linelength reported by
12951 # all of the supported platforms: 8192 (on NT/2K/XP).
12952 lt_cv_sys_max_cmd_len=8192;
12953 ;;
12954
12955 mint*)
12956 # On MiNT this can take a long time and run out of memory.
12957 lt_cv_sys_max_cmd_len=8192;
12958 ;;
12959
12960 amigaos*)
12961 # On AmigaOS with pdksh, this test takes hours, literally.
12962 # So we just punt and use a minimum line length of 8192.
12963 lt_cv_sys_max_cmd_len=8192;
12964 ;;
12965
12966 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
12967 # This has been around since 386BSD, at least. Likely further.
12968 if test -x /sbin/sysctl; then
12969 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
12970 elif test -x /usr/sbin/sysctl; then
12971 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
12972 else
12973 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
12974 fi
12975 # And add a safety zone
12976 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12977 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12978 ;;
12979
12980 interix*)
12981 # We know the value 262144 and hardcode it with a safety zone (like BSD)
12982 lt_cv_sys_max_cmd_len=196608
12983 ;;
12984
12985 osf*)
12986 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12987 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12988 # nice to cause kernel panics so lets avoid the loop below.
12989 # First set a reasonable default.
12990 lt_cv_sys_max_cmd_len=16384
12991 #
12992 if test -x /sbin/sysconfig; then
12993 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12994 *1*) lt_cv_sys_max_cmd_len=-1 ;;
12995 esac
12996 fi
12997 ;;
12998 sco3.2v5*)
12999 lt_cv_sys_max_cmd_len=102400
13000 ;;
13001 sysv5* | sco5v6* | sysv4.2uw2*)
13002 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13003 if test -n "$kargmax"; then
13004 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
13005 else
13006 lt_cv_sys_max_cmd_len=32768
13007 fi
13008 ;;
13009 *)
13010 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
13011 if test -n "$lt_cv_sys_max_cmd_len"; then
13012 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13013 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13014 else
13015 # Make teststring a little bigger before we do anything with it.
13016 # a 1K string should be a reasonable start.
13017 for i in 1 2 3 4 5 6 7 8 ; do
13018 teststring=$teststring$teststring
13019 done
13020 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13021 # If test is not a shell built-in, we'll probably end up computing a
13022 # maximum length that is only half of the actual maximum length, but
13023 # we can't tell.
13024 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
13025 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
13026 test $i != 17 # 1/2 MB should be enough
13027 do
13028 i=`expr $i + 1`
13029 teststring=$teststring$teststring
13030 done
13031 # Only check the string length outside the loop.
13032 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
13033 teststring=
13034 # Add a significant safety factor because C++ compilers can tack on
13035 # massive amounts of additional arguments before passing them to the
13036 # linker. It appears as though 1/2 is a usable value.
13037 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13038 fi
13039 ;;
13040 esac
13041
13042 fi
13043
13044 if test -n $lt_cv_sys_max_cmd_len ; then
13045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
13046 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
13047 else
13048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
13049 $as_echo "none" >&6; }
13050 fi
13051 max_cmd_len=$lt_cv_sys_max_cmd_len
13052
13053
13054
13055
13056
13057
13058 : ${CP="cp -f"}
13059 : ${MV="mv -f"}
13060 : ${RM="rm -f"}
13061
13062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
13063 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
13064 # Try some XSI features
13065 xsi_shell=no
13066 ( _lt_dummy="a/b/c"
13067 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
13068 = c,a/b,, \
13069 && eval 'test $(( 1 + 1 )) -eq 2 \
13070 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
13071 && xsi_shell=yes
13072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
13073 $as_echo "$xsi_shell" >&6; }
13074
13075
13076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
13077 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
13078 lt_shell_append=no
13079 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
13080 >/dev/null 2>&1 \
13081 && lt_shell_append=yes
13082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
13083 $as_echo "$lt_shell_append" >&6; }
13084
13085
13086 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13087 lt_unset=unset
13088 else
13089 lt_unset=false
13090 fi
13091
13092
13093
13094
13095
13096 # test EBCDIC or ASCII
13097 case `echo X|tr X '\101'` in
13098 A) # ASCII based system
13099 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
13100 lt_SP2NL='tr \040 \012'
13101 lt_NL2SP='tr \015\012 \040\040'
13102 ;;
13103 *) # EBCDIC based system
13104 lt_SP2NL='tr \100 \n'
13105 lt_NL2SP='tr \r\n \100\100'
13106 ;;
13107 esac
13108
13109
13110
13111
13112
13113
13114
13115
13116
13117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
13118 $as_echo_n "checking for $LD option to reload object files... " >&6; }
13119 if test "${lt_cv_ld_reload_flag+set}" = set; then :
13120 $as_echo_n "(cached) " >&6
13121 else
13122 lt_cv_ld_reload_flag='-r'
13123 fi
13124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
13125 $as_echo "$lt_cv_ld_reload_flag" >&6; }
13126 reload_flag=$lt_cv_ld_reload_flag
13127 case $reload_flag in
13128 "" | " "*) ;;
13129 *) reload_flag=" $reload_flag" ;;
13130 esac
13131 reload_cmds='$LD$reload_flag -o $output$reload_objs'
13132 case $host_os in
13133 darwin*)
13134 if test "$GCC" = yes; then
13135 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
13136 else
13137 reload_cmds='$LD$reload_flag -o $output$reload_objs'
13138 fi
13139 ;;
13140 esac
13141
13142
13143
13144
13145
13146
13147
13148
13149
13150 if test -n "$ac_tool_prefix"; then
13151 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
13152 set dummy ${ac_tool_prefix}objdump; ac_word=$2
13153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13154 $as_echo_n "checking for $ac_word... " >&6; }
13155 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
13156 $as_echo_n "(cached) " >&6
13157 else
13158 if test -n "$OBJDUMP"; then
13159 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
13160 else
13161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13162 for as_dir in $PATH
13163 do
13164 IFS=$as_save_IFS
13165 test -z "$as_dir" && as_dir=.
13166 for ac_exec_ext in '' $ac_executable_extensions; do
13167 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13168 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
13169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13170 break 2
13171 fi
13172 done
13173 done
13174 IFS=$as_save_IFS
13175
13176 fi
13177 fi
13178 OBJDUMP=$ac_cv_prog_OBJDUMP
13179 if test -n "$OBJDUMP"; then
13180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
13181 $as_echo "$OBJDUMP" >&6; }
13182 else
13183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13184 $as_echo "no" >&6; }
13185 fi
13186
13187
13188 fi
13189 if test -z "$ac_cv_prog_OBJDUMP"; then
13190 ac_ct_OBJDUMP=$OBJDUMP
13191 # Extract the first word of "objdump", so it can be a program name with args.
13192 set dummy objdump; ac_word=$2
13193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13194 $as_echo_n "checking for $ac_word... " >&6; }
13195 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
13196 $as_echo_n "(cached) " >&6
13197 else
13198 if test -n "$ac_ct_OBJDUMP"; then
13199 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
13200 else
13201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13202 for as_dir in $PATH
13203 do
13204 IFS=$as_save_IFS
13205 test -z "$as_dir" && as_dir=.
13206 for ac_exec_ext in '' $ac_executable_extensions; do
13207 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13208 ac_cv_prog_ac_ct_OBJDUMP="objdump"
13209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13210 break 2
13211 fi
13212 done
13213 done
13214 IFS=$as_save_IFS
13215
13216 fi
13217 fi
13218 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
13219 if test -n "$ac_ct_OBJDUMP"; then
13220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
13221 $as_echo "$ac_ct_OBJDUMP" >&6; }
13222 else
13223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13224 $as_echo "no" >&6; }
13225 fi
13226
13227 if test "x$ac_ct_OBJDUMP" = x; then
13228 OBJDUMP="false"
13229 else
13230 case $cross_compiling:$ac_tool_warned in
13231 yes:)
13232 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13233 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13234 ac_tool_warned=yes ;;
13235 esac
13236 OBJDUMP=$ac_ct_OBJDUMP
13237 fi
13238 else
13239 OBJDUMP="$ac_cv_prog_OBJDUMP"
13240 fi
13241
13242 test -z "$OBJDUMP" && OBJDUMP=objdump
13243
13244
13245
13246
13247
13248
13249
13250
13251
13252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
13253 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
13254 if test "${lt_cv_deplibs_check_method+set}" = set; then :
13255 $as_echo_n "(cached) " >&6
13256 else
13257 lt_cv_file_magic_cmd='$MAGIC_CMD'
13258 lt_cv_file_magic_test_file=
13259 lt_cv_deplibs_check_method='unknown'
13260 # Need to set the preceding variable on all platforms that support
13261 # interlibrary dependencies.
13262 # 'none' -- dependencies not supported.
13263 # `unknown' -- same as none, but documents that we really don't know.
13264 # 'pass_all' -- all dependencies passed with no checks.
13265 # 'test_compile' -- check by making test program.
13266 # 'file_magic [[regex]]' -- check by looking for files in library path
13267 # which responds to the $file_magic_cmd with a given extended regex.
13268 # If you have `file' or equivalent on your system and you're not sure
13269 # whether `pass_all' will *always* work, you probably want this one.
13270
13271 case $host_os in
13272 aix[4-9]*)
13273 lt_cv_deplibs_check_method=pass_all
13274 ;;
13275
13276 beos*)
13277 lt_cv_deplibs_check_method=pass_all
13278 ;;
13279
13280 bsdi[45]*)
13281 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
13282 lt_cv_file_magic_cmd='/usr/bin/file -L'
13283 lt_cv_file_magic_test_file=/shlib/libc.so
13284 ;;
13285
13286 cygwin*)
13287 # func_win32_libid is a shell function defined in ltmain.sh
13288 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13289 lt_cv_file_magic_cmd='func_win32_libid'
13290 ;;
13291
13292 mingw* | pw32*)
13293 # Base MSYS/MinGW do not provide the 'file' command needed by
13294 # func_win32_libid shell function, so use a weaker test based on 'objdump',
13295 # unless we find 'file', for example because we are cross-compiling.
13296 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
13297 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
13298 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13299 lt_cv_file_magic_cmd='func_win32_libid'
13300 else
13301 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
13302 lt_cv_file_magic_cmd='$OBJDUMP -f'
13303 fi
13304 ;;
13305
13306 cegcc*)
13307 # use the weaker test based on 'objdump'. See mingw*.
13308 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
13309 lt_cv_file_magic_cmd='$OBJDUMP -f'
13310 ;;
13311
13312 darwin* | rhapsody*)
13313 lt_cv_deplibs_check_method=pass_all
13314 ;;
13315
13316 freebsd* | dragonfly*)
13317 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13318 case $host_cpu in
13319 i*86 )
13320 # Not sure whether the presence of OpenBSD here was a mistake.
13321 # Let's accept both of them until this is cleared up.
13322 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
13323 lt_cv_file_magic_cmd=/usr/bin/file
13324 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
13325 ;;
13326 esac
13327 else
13328 lt_cv_deplibs_check_method=pass_all
13329 fi
13330 ;;
13331
13332 gnu*)
13333 lt_cv_deplibs_check_method=pass_all
13334 ;;
13335
13336 haiku*)
13337 lt_cv_deplibs_check_method=pass_all
13338 ;;
13339
13340 hpux10.20* | hpux11*)
13341 lt_cv_file_magic_cmd=/usr/bin/file
13342 case $host_cpu in
13343 ia64*)
13344 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
13345 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
13346 ;;
13347 hppa*64*)
13348 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]'
13349 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
13350 ;;
13351 *)
13352 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
13353 lt_cv_file_magic_test_file=/usr/lib/libc.sl
13354 ;;
13355 esac
13356 ;;
13357
13358 interix[3-9]*)
13359 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
13360 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
13361 ;;
13362
13363 irix5* | irix6* | nonstopux*)
13364 case $LD in
13365 *-32|*"-32 ") libmagic=32-bit;;
13366 *-n32|*"-n32 ") libmagic=N32;;
13367 *-64|*"-64 ") libmagic=64-bit;;
13368 *) libmagic=never-match;;
13369 esac
13370 lt_cv_deplibs_check_method=pass_all
13371 ;;
13372
13373 # This must be Linux ELF.
13374 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13375 lt_cv_deplibs_check_method=pass_all
13376 ;;
13377
13378 netbsd*)
13379 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13380 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13381 else
13382 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
13383 fi
13384 ;;
13385
13386 newos6*)
13387 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
13388 lt_cv_file_magic_cmd=/usr/bin/file
13389 lt_cv_file_magic_test_file=/usr/lib/libnls.so
13390 ;;
13391
13392 *nto* | *qnx*)
13393 lt_cv_deplibs_check_method=pass_all
13394 ;;
13395
13396 openbsd*)
13397 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13398 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
13399 else
13400 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13401 fi
13402 ;;
13403
13404 osf3* | osf4* | osf5*)
13405 lt_cv_deplibs_check_method=pass_all
13406 ;;
13407
13408 rdos*)
13409 lt_cv_deplibs_check_method=pass_all
13410 ;;
13411
13412 solaris*)
13413 lt_cv_deplibs_check_method=pass_all
13414 ;;
13415
13416 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13417 lt_cv_deplibs_check_method=pass_all
13418 ;;
13419
13420 sysv4 | sysv4.3*)
13421 case $host_vendor in
13422 motorola)
13423 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]'
13424 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
13425 ;;
13426 ncr)
13427 lt_cv_deplibs_check_method=pass_all
13428 ;;
13429 sequent)
13430 lt_cv_file_magic_cmd='/bin/file'
13431 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13432 ;;
13433 sni)
13434 lt_cv_file_magic_cmd='/bin/file'
13435 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
13436 lt_cv_file_magic_test_file=/lib/libc.so
13437 ;;
13438 siemens)
13439 lt_cv_deplibs_check_method=pass_all
13440 ;;
13441 pc)
13442 lt_cv_deplibs_check_method=pass_all
13443 ;;
13444 esac
13445 ;;
13446
13447 tpf*)
13448 lt_cv_deplibs_check_method=pass_all
13449 ;;
13450 esac
13451
13452 fi
13453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
13454 $as_echo "$lt_cv_deplibs_check_method" >&6; }
13455 file_magic_cmd=$lt_cv_file_magic_cmd
13456 deplibs_check_method=$lt_cv_deplibs_check_method
13457 test -z "$deplibs_check_method" && deplibs_check_method=unknown
13458
13459
13460
13461
13462
13463
13464
13465
13466
13467
13468
13469
13470 if test -n "$ac_tool_prefix"; then
13471 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13472 set dummy ${ac_tool_prefix}ar; ac_word=$2
13473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13474 $as_echo_n "checking for $ac_word... " >&6; }
13475 if test "${ac_cv_prog_AR+set}" = set; then :
13476 $as_echo_n "(cached) " >&6
13477 else
13478 if test -n "$AR"; then
13479 ac_cv_prog_AR="$AR" # Let the user override the test.
13480 else
13481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13482 for as_dir in $PATH
13483 do
13484 IFS=$as_save_IFS
13485 test -z "$as_dir" && as_dir=.
13486 for ac_exec_ext in '' $ac_executable_extensions; do
13487 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13488 ac_cv_prog_AR="${ac_tool_prefix}ar"
13489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13490 break 2
13491 fi
13492 done
13493 done
13494 IFS=$as_save_IFS
13495
13496 fi
13497 fi
13498 AR=$ac_cv_prog_AR
13499 if test -n "$AR"; then
13500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
13501 $as_echo "$AR" >&6; }
13502 else
13503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13504 $as_echo "no" >&6; }
13505 fi
13506
13507
13508 fi
13509 if test -z "$ac_cv_prog_AR"; then
13510 ac_ct_AR=$AR
13511 # Extract the first word of "ar", so it can be a program name with args.
13512 set dummy ar; ac_word=$2
13513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13514 $as_echo_n "checking for $ac_word... " >&6; }
13515 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
13516 $as_echo_n "(cached) " >&6
13517 else
13518 if test -n "$ac_ct_AR"; then
13519 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13520 else
13521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13522 for as_dir in $PATH
13523 do
13524 IFS=$as_save_IFS
13525 test -z "$as_dir" && as_dir=.
13526 for ac_exec_ext in '' $ac_executable_extensions; do
13527 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13528 ac_cv_prog_ac_ct_AR="ar"
13529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13530 break 2
13531 fi
13532 done
13533 done
13534 IFS=$as_save_IFS
13535
13536 fi
13537 fi
13538 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13539 if test -n "$ac_ct_AR"; then
13540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
13541 $as_echo "$ac_ct_AR" >&6; }
13542 else
13543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13544 $as_echo "no" >&6; }
13545 fi
13546
13547 if test "x$ac_ct_AR" = x; then
13548 AR="false"
13549 else
13550 case $cross_compiling:$ac_tool_warned in
13551 yes:)
13552 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13553 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13554 ac_tool_warned=yes ;;
13555 esac
13556 AR=$ac_ct_AR
13557 fi
13558 else
13559 AR="$ac_cv_prog_AR"
13560 fi
13561
13562 test -z "$AR" && AR=ar
13563 test -z "$AR_FLAGS" && AR_FLAGS=cru
13564
13565
13566
13567
13568
13569
13570
13571
13572
13573
13574
13575 if test -n "$ac_tool_prefix"; then
13576 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13577 set dummy ${ac_tool_prefix}strip; ac_word=$2
13578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13579 $as_echo_n "checking for $ac_word... " >&6; }
13580 if test "${ac_cv_prog_STRIP+set}" = set; then :
13581 $as_echo_n "(cached) " >&6
13582 else
13583 if test -n "$STRIP"; then
13584 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13585 else
13586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13587 for as_dir in $PATH
13588 do
13589 IFS=$as_save_IFS
13590 test -z "$as_dir" && as_dir=.
13591 for ac_exec_ext in '' $ac_executable_extensions; do
13592 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13593 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13595 break 2
13596 fi
13597 done
13598 done
13599 IFS=$as_save_IFS
13600
13601 fi
13602 fi
13603 STRIP=$ac_cv_prog_STRIP
13604 if test -n "$STRIP"; then
13605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13606 $as_echo "$STRIP" >&6; }
13607 else
13608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13609 $as_echo "no" >&6; }
13610 fi
13611
13612
13613 fi
13614 if test -z "$ac_cv_prog_STRIP"; then
13615 ac_ct_STRIP=$STRIP
13616 # Extract the first word of "strip", so it can be a program name with args.
13617 set dummy strip; ac_word=$2
13618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13619 $as_echo_n "checking for $ac_word... " >&6; }
13620 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
13621 $as_echo_n "(cached) " >&6
13622 else
13623 if test -n "$ac_ct_STRIP"; then
13624 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13625 else
13626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13627 for as_dir in $PATH
13628 do
13629 IFS=$as_save_IFS
13630 test -z "$as_dir" && as_dir=.
13631 for ac_exec_ext in '' $ac_executable_extensions; do
13632 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13633 ac_cv_prog_ac_ct_STRIP="strip"
13634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13635 break 2
13636 fi
13637 done
13638 done
13639 IFS=$as_save_IFS
13640
13641 fi
13642 fi
13643 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13644 if test -n "$ac_ct_STRIP"; then
13645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
13646 $as_echo "$ac_ct_STRIP" >&6; }
13647 else
13648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13649 $as_echo "no" >&6; }
13650 fi
13651
13652 if test "x$ac_ct_STRIP" = x; then
13653 STRIP=":"
13654 else
13655 case $cross_compiling:$ac_tool_warned in
13656 yes:)
13657 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13658 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13659 ac_tool_warned=yes ;;
13660 esac
13661 STRIP=$ac_ct_STRIP
13662 fi
13663 else
13664 STRIP="$ac_cv_prog_STRIP"
13665 fi
13666
13667 test -z "$STRIP" && STRIP=:
13668
13669
13670
13671
13672
13673
13674 if test -n "$ac_tool_prefix"; then
13675 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13676 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13678 $as_echo_n "checking for $ac_word... " >&6; }
13679 if test "${ac_cv_prog_RANLIB+set}" = set; then :
13680 $as_echo_n "(cached) " >&6
13681 else
13682 if test -n "$RANLIB"; then
13683 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13684 else
13685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13686 for as_dir in $PATH
13687 do
13688 IFS=$as_save_IFS
13689 test -z "$as_dir" && as_dir=.
13690 for ac_exec_ext in '' $ac_executable_extensions; do
13691 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13692 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13694 break 2
13695 fi
13696 done
13697 done
13698 IFS=$as_save_IFS
13699
13700 fi
13701 fi
13702 RANLIB=$ac_cv_prog_RANLIB
13703 if test -n "$RANLIB"; then
13704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13705 $as_echo "$RANLIB" >&6; }
13706 else
13707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13708 $as_echo "no" >&6; }
13709 fi
13710
13711
13712 fi
13713 if test -z "$ac_cv_prog_RANLIB"; then
13714 ac_ct_RANLIB=$RANLIB
13715 # Extract the first word of "ranlib", so it can be a program name with args.
13716 set dummy ranlib; ac_word=$2
13717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13718 $as_echo_n "checking for $ac_word... " >&6; }
13719 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
13720 $as_echo_n "(cached) " >&6
13721 else
13722 if test -n "$ac_ct_RANLIB"; then
13723 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13724 else
13725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13726 for as_dir in $PATH
13727 do
13728 IFS=$as_save_IFS
13729 test -z "$as_dir" && as_dir=.
13730 for ac_exec_ext in '' $ac_executable_extensions; do
13731 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13732 ac_cv_prog_ac_ct_RANLIB="ranlib"
13733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13734 break 2
13735 fi
13736 done
13737 done
13738 IFS=$as_save_IFS
13739
13740 fi
13741 fi
13742 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13743 if test -n "$ac_ct_RANLIB"; then
13744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
13745 $as_echo "$ac_ct_RANLIB" >&6; }
13746 else
13747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13748 $as_echo "no" >&6; }
13749 fi
13750
13751 if test "x$ac_ct_RANLIB" = x; then
13752 RANLIB=":"
13753 else
13754 case $cross_compiling:$ac_tool_warned in
13755 yes:)
13756 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13757 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13758 ac_tool_warned=yes ;;
13759 esac
13760 RANLIB=$ac_ct_RANLIB
13761 fi
13762 else
13763 RANLIB="$ac_cv_prog_RANLIB"
13764 fi
13765
13766 test -z "$RANLIB" && RANLIB=:
13767
13768
13769
13770
13771
13772
13773 # Determine commands to create old-style static archives.
13774 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13775 old_postinstall_cmds='chmod 644 $oldlib'
13776 old_postuninstall_cmds=
13777
13778 if test -n "$RANLIB"; then
13779 case $host_os in
13780 openbsd*)
13781 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
13782 ;;
13783 *)
13784 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
13785 ;;
13786 esac
13787 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
13788 fi
13789
13790 case $host_os in
13791 darwin*)
13792 lock_old_archive_extraction=yes ;;
13793 *)
13794 lock_old_archive_extraction=no ;;
13795 esac
13796
13797
13798
13799
13800
13801
13802
13803
13804
13805
13806
13807
13808
13809
13810
13811
13812
13813
13814
13815
13816
13817
13818
13819
13820
13821
13822
13823
13824
13825
13826
13827
13828
13829
13830
13831
13832
13833
13834
13835 # If no C compiler was specified, use CC.
13836 LTCC=${LTCC-"$CC"}
13837
13838 # If no C compiler flags were specified, use CFLAGS.
13839 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13840
13841 # Allow CC to be a program name with arguments.
13842 compiler=$CC
13843
13844
13845 # Check for command to grab the raw symbol name followed by C symbol from nm.
13846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
13847 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
13848 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
13849 $as_echo_n "(cached) " >&6
13850 else
13851
13852 # These are sane defaults that work on at least a few old systems.
13853 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13854
13855 # Character class describing NM global symbol codes.
13856 symcode='[BCDEGRST]'
13857
13858 # Regexp to match symbols that can be accessed directly from C.
13859 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13860
13861 # Define system-specific variables.
13862 case $host_os in
13863 aix*)
13864 symcode='[BCDT]'
13865 ;;
13866 cygwin* | mingw* | pw32* | cegcc*)
13867 symcode='[ABCDGISTW]'
13868 ;;
13869 hpux*)
13870 if test "$host_cpu" = ia64; then
13871 symcode='[ABCDEGRST]'
13872 fi
13873 ;;
13874 irix* | nonstopux*)
13875 symcode='[BCDEGRST]'
13876 ;;
13877 osf*)
13878 symcode='[BCDEGQRST]'
13879 ;;
13880 solaris*)
13881 symcode='[BDRT]'
13882 ;;
13883 sco3.2v5*)
13884 symcode='[DT]'
13885 ;;
13886 sysv4.2uw2*)
13887 symcode='[DT]'
13888 ;;
13889 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13890 symcode='[ABDT]'
13891 ;;
13892 sysv4)
13893 symcode='[DFNSTU]'
13894 ;;
13895 esac
13896
13897 # If we're using GNU nm, then use its standard symbol codes.
13898 case `$NM -V 2>&1` in
13899 *GNU* | *'with BFD'*)
13900 symcode='[ABCDGIRSTW]' ;;
13901 esac
13902
13903 # Transform an extracted symbol line into a proper C declaration.
13904 # Some systems (esp. on ia64) link data and code symbols differently,
13905 # so use this general approach.
13906 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13907
13908 # Transform an extracted symbol line into symbol name and symbol address
13909 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
13910 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'"
13911
13912 # Handle CRLF in mingw tool chain
13913 opt_cr=
13914 case $build_os in
13915 mingw*)
13916 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13917 ;;
13918 esac
13919
13920 # Try without a prefix underscore, then with it.
13921 for ac_symprfx in "" "_"; do
13922
13923 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13924 symxfrm="\\1 $ac_symprfx\\2 \\2"
13925
13926 # Write the raw and C identifiers.
13927 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13928 # Fake it for dumpbin and say T for any non-static function
13929 # and D for any global variable.
13930 # Also find C++ and __fastcall symbols from MSVC++,
13931 # which start with @ or ?.
13932 lt_cv_sys_global_symbol_pipe="$AWK '"\
13933 " {last_section=section; section=\$ 3};"\
13934 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13935 " \$ 0!~/External *\|/{next};"\
13936 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13937 " {if(hide[section]) next};"\
13938 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
13939 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
13940 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
13941 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
13942 " ' prfx=^$ac_symprfx"
13943 else
13944 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13945 fi
13946
13947 # Check to see that the pipe works correctly.
13948 pipe_works=no
13949
13950 rm -f conftest*
13951 cat > conftest.$ac_ext <<_LT_EOF
13952 #ifdef __cplusplus
13953 extern "C" {
13954 #endif
13955 char nm_test_var;
13956 void nm_test_func(void);
13957 void nm_test_func(void){}
13958 #ifdef __cplusplus
13959 }
13960 #endif
13961 int main(){nm_test_var='a';nm_test_func();return(0);}
13962 _LT_EOF
13963
13964 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13965 (eval $ac_compile) 2>&5
13966 ac_status=$?
13967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13968 test $ac_status = 0; }; then
13969 # Now try to grab the symbols.
13970 nlist=conftest.nm
13971 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
13972 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13973 ac_status=$?
13974 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13975 test $ac_status = 0; } && test -s "$nlist"; then
13976 # Try sorting and uniquifying the output.
13977 if sort "$nlist" | uniq > "$nlist"T; then
13978 mv -f "$nlist"T "$nlist"
13979 else
13980 rm -f "$nlist"T
13981 fi
13982
13983 # Make sure that we snagged all the symbols we need.
13984 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13985 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13986 cat <<_LT_EOF > conftest.$ac_ext
13987 #ifdef __cplusplus
13988 extern "C" {
13989 #endif
13990
13991 _LT_EOF
13992 # Now generate the symbol file.
13993 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13994
13995 cat <<_LT_EOF >> conftest.$ac_ext
13996
13997 /* The mapping between symbol names and symbols. */
13998 const struct {
13999 const char *name;
14000 void *address;
14001 }
14002 lt__PROGRAM__LTX_preloaded_symbols[] =
14003 {
14004 { "@PROGRAM@", (void *) 0 },
14005 _LT_EOF
14006 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
14007 cat <<\_LT_EOF >> conftest.$ac_ext
14008 {0, (void *) 0}
14009 };
14010
14011 /* This works around a problem in FreeBSD linker */
14012 #ifdef FREEBSD_WORKAROUND
14013 static const void *lt_preloaded_setup() {
14014 return lt__PROGRAM__LTX_preloaded_symbols;
14015 }
14016 #endif
14017
14018 #ifdef __cplusplus
14019 }
14020 #endif
14021 _LT_EOF
14022 # Now try linking the two files.
14023 mv conftest.$ac_objext conftstm.$ac_objext
14024 lt_save_LIBS="$LIBS"
14025 lt_save_CFLAGS="$CFLAGS"
14026 LIBS="conftstm.$ac_objext"
14027 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
14028 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14029 (eval $ac_link) 2>&5
14030 ac_status=$?
14031 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14032 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
14033 pipe_works=yes
14034 fi
14035 LIBS="$lt_save_LIBS"
14036 CFLAGS="$lt_save_CFLAGS"
14037 else
14038 echo "cannot find nm_test_func in $nlist" >&5
14039 fi
14040 else
14041 echo "cannot find nm_test_var in $nlist" >&5
14042 fi
14043 else
14044 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
14045 fi
14046 else
14047 echo "$progname: failed program was:" >&5
14048 cat conftest.$ac_ext >&5
14049 fi
14050 rm -rf conftest* conftst*
14051
14052 # Do not use the global_symbol_pipe unless it works.
14053 if test "$pipe_works" = yes; then
14054 break
14055 else
14056 lt_cv_sys_global_symbol_pipe=
14057 fi
14058 done
14059
14060 fi
14061
14062 if test -z "$lt_cv_sys_global_symbol_pipe"; then
14063 lt_cv_sys_global_symbol_to_cdecl=
14064 fi
14065 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
14066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
14067 $as_echo "failed" >&6; }
14068 else
14069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
14070 $as_echo "ok" >&6; }
14071 fi
14072
14073
14074
14075
14076
14077
14078
14079
14080
14081
14082
14083
14084
14085
14086
14087
14088
14089
14090
14091
14092
14093
14094 # Check whether --enable-libtool-lock was given.
14095 if test "${enable_libtool_lock+set}" = set; then :
14096 enableval=$enable_libtool_lock;
14097 fi
14098
14099 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14100
14101 # Some flags need to be propagated to the compiler or linker for good
14102 # libtool support.
14103 case $host in
14104 ia64-*-hpux*)
14105 # Find out which ABI we are using.
14106 echo 'int i;' > conftest.$ac_ext
14107 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14108 (eval $ac_compile) 2>&5
14109 ac_status=$?
14110 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14111 test $ac_status = 0; }; then
14112 case `/usr/bin/file conftest.$ac_objext` in
14113 *ELF-32*)
14114 HPUX_IA64_MODE="32"
14115 ;;
14116 *ELF-64*)
14117 HPUX_IA64_MODE="64"
14118 ;;
14119 esac
14120 fi
14121 rm -rf conftest*
14122 ;;
14123 *-*-irix6*)
14124 # Find out which ABI we are using.
14125 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
14126 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14127 (eval $ac_compile) 2>&5
14128 ac_status=$?
14129 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14130 test $ac_status = 0; }; then
14131 if test "$lt_cv_prog_gnu_ld" = yes; then
14132 case `/usr/bin/file conftest.$ac_objext` in
14133 *32-bit*)
14134 LD="${LD-ld} -melf32bsmip"
14135 ;;
14136 *N32*)
14137 LD="${LD-ld} -melf32bmipn32"
14138 ;;
14139 *64-bit*)
14140 LD="${LD-ld} -melf64bmip"
14141 ;;
14142 esac
14143 else
14144 case `/usr/bin/file conftest.$ac_objext` in
14145 *32-bit*)
14146 LD="${LD-ld} -32"
14147 ;;
14148 *N32*)
14149 LD="${LD-ld} -n32"
14150 ;;
14151 *64-bit*)
14152 LD="${LD-ld} -64"
14153 ;;
14154 esac
14155 fi
14156 fi
14157 rm -rf conftest*
14158 ;;
14159
14160 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
14161 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
14162 # Find out which ABI we are using.
14163 echo 'int i;' > conftest.$ac_ext
14164 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14165 (eval $ac_compile) 2>&5
14166 ac_status=$?
14167 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14168 test $ac_status = 0; }; then
14169 case `/usr/bin/file conftest.o` in
14170 *32-bit*)
14171 case $host in
14172 x86_64-*kfreebsd*-gnu)
14173 LD="${LD-ld} -m elf_i386_fbsd"
14174 ;;
14175 x86_64-*linux*)
14176 case `/usr/bin/file conftest.o` in
14177 *x86-64*)
14178 LD="${LD-ld} -m elf32_x86_64"
14179 ;;
14180 *)
14181 LD="${LD-ld} -m elf_i386"
14182 ;;
14183 esac
14184 ;;
14185 powerpc64le-*linux*)
14186 LD="${LD-ld} -m elf32lppclinux"
14187 ;;
14188 powerpc64-*linux*)
14189 LD="${LD-ld} -m elf32ppclinux"
14190 ;;
14191 s390x-*linux*)
14192 LD="${LD-ld} -m elf_s390"
14193 ;;
14194 sparc64-*linux*)
14195 LD="${LD-ld} -m elf32_sparc"
14196 ;;
14197 esac
14198 ;;
14199 *64-bit*)
14200 case $host in
14201 x86_64-*kfreebsd*-gnu)
14202 LD="${LD-ld} -m elf_x86_64_fbsd"
14203 ;;
14204 x86_64-*linux*)
14205 LD="${LD-ld} -m elf_x86_64"
14206 ;;
14207 powerpcle-*linux*)
14208 LD="${LD-ld} -m elf64lppc"
14209 ;;
14210 powerpc-*linux*)
14211 LD="${LD-ld} -m elf64ppc"
14212 ;;
14213 s390*-*linux*|s390*-*tpf*)
14214 LD="${LD-ld} -m elf64_s390"
14215 ;;
14216 sparc*-*linux*)
14217 LD="${LD-ld} -m elf64_sparc"
14218 ;;
14219 esac
14220 ;;
14221 esac
14222 fi
14223 rm -rf conftest*
14224 ;;
14225
14226 *-*-sco3.2v5*)
14227 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
14228 SAVE_CFLAGS="$CFLAGS"
14229 CFLAGS="$CFLAGS -belf"
14230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
14231 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
14232 if test "${lt_cv_cc_needs_belf+set}" = set; then :
14233 $as_echo_n "(cached) " >&6
14234 else
14235 ac_ext=c
14236 ac_cpp='$CPP $CPPFLAGS'
14237 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14238 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14239 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14240
14241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14242 /* end confdefs.h. */
14243
14244 int
14245 main ()
14246 {
14247
14248 ;
14249 return 0;
14250 }
14251 _ACEOF
14252 if ac_fn_c_try_link "$LINENO"; then :
14253 lt_cv_cc_needs_belf=yes
14254 else
14255 lt_cv_cc_needs_belf=no
14256 fi
14257 rm -f core conftest.err conftest.$ac_objext \
14258 conftest$ac_exeext conftest.$ac_ext
14259 ac_ext=c
14260 ac_cpp='$CPP $CPPFLAGS'
14261 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14262 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14263 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14264
14265 fi
14266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
14267 $as_echo "$lt_cv_cc_needs_belf" >&6; }
14268 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
14269 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
14270 CFLAGS="$SAVE_CFLAGS"
14271 fi
14272 ;;
14273 sparc*-*solaris*)
14274 # Find out which ABI we are using.
14275 echo 'int i;' > conftest.$ac_ext
14276 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14277 (eval $ac_compile) 2>&5
14278 ac_status=$?
14279 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14280 test $ac_status = 0; }; then
14281 case `/usr/bin/file conftest.o` in
14282 *64-bit*)
14283 case $lt_cv_prog_gnu_ld in
14284 yes*) LD="${LD-ld} -m elf64_sparc" ;;
14285 *)
14286 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
14287 LD="${LD-ld} -64"
14288 fi
14289 ;;
14290 esac
14291 ;;
14292 esac
14293 fi
14294 rm -rf conftest*
14295 ;;
14296 esac
14297
14298 need_locks="$enable_libtool_lock"
14299
14300
14301 case $host_os in
14302 rhapsody* | darwin*)
14303 if test -n "$ac_tool_prefix"; then
14304 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
14305 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
14306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14307 $as_echo_n "checking for $ac_word... " >&6; }
14308 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
14309 $as_echo_n "(cached) " >&6
14310 else
14311 if test -n "$DSYMUTIL"; then
14312 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
14313 else
14314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14315 for as_dir in $PATH
14316 do
14317 IFS=$as_save_IFS
14318 test -z "$as_dir" && as_dir=.
14319 for ac_exec_ext in '' $ac_executable_extensions; do
14320 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14321 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
14322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14323 break 2
14324 fi
14325 done
14326 done
14327 IFS=$as_save_IFS
14328
14329 fi
14330 fi
14331 DSYMUTIL=$ac_cv_prog_DSYMUTIL
14332 if test -n "$DSYMUTIL"; then
14333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
14334 $as_echo "$DSYMUTIL" >&6; }
14335 else
14336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14337 $as_echo "no" >&6; }
14338 fi
14339
14340
14341 fi
14342 if test -z "$ac_cv_prog_DSYMUTIL"; then
14343 ac_ct_DSYMUTIL=$DSYMUTIL
14344 # Extract the first word of "dsymutil", so it can be a program name with args.
14345 set dummy dsymutil; ac_word=$2
14346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14347 $as_echo_n "checking for $ac_word... " >&6; }
14348 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
14349 $as_echo_n "(cached) " >&6
14350 else
14351 if test -n "$ac_ct_DSYMUTIL"; then
14352 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
14353 else
14354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14355 for as_dir in $PATH
14356 do
14357 IFS=$as_save_IFS
14358 test -z "$as_dir" && as_dir=.
14359 for ac_exec_ext in '' $ac_executable_extensions; do
14360 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14361 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
14362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14363 break 2
14364 fi
14365 done
14366 done
14367 IFS=$as_save_IFS
14368
14369 fi
14370 fi
14371 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
14372 if test -n "$ac_ct_DSYMUTIL"; then
14373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
14374 $as_echo "$ac_ct_DSYMUTIL" >&6; }
14375 else
14376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14377 $as_echo "no" >&6; }
14378 fi
14379
14380 if test "x$ac_ct_DSYMUTIL" = x; then
14381 DSYMUTIL=":"
14382 else
14383 case $cross_compiling:$ac_tool_warned in
14384 yes:)
14385 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14386 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14387 ac_tool_warned=yes ;;
14388 esac
14389 DSYMUTIL=$ac_ct_DSYMUTIL
14390 fi
14391 else
14392 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
14393 fi
14394
14395 if test -n "$ac_tool_prefix"; then
14396 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
14397 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
14398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14399 $as_echo_n "checking for $ac_word... " >&6; }
14400 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
14401 $as_echo_n "(cached) " >&6
14402 else
14403 if test -n "$NMEDIT"; then
14404 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
14405 else
14406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14407 for as_dir in $PATH
14408 do
14409 IFS=$as_save_IFS
14410 test -z "$as_dir" && as_dir=.
14411 for ac_exec_ext in '' $ac_executable_extensions; do
14412 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14413 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
14414 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14415 break 2
14416 fi
14417 done
14418 done
14419 IFS=$as_save_IFS
14420
14421 fi
14422 fi
14423 NMEDIT=$ac_cv_prog_NMEDIT
14424 if test -n "$NMEDIT"; then
14425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
14426 $as_echo "$NMEDIT" >&6; }
14427 else
14428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14429 $as_echo "no" >&6; }
14430 fi
14431
14432
14433 fi
14434 if test -z "$ac_cv_prog_NMEDIT"; then
14435 ac_ct_NMEDIT=$NMEDIT
14436 # Extract the first word of "nmedit", so it can be a program name with args.
14437 set dummy nmedit; ac_word=$2
14438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14439 $as_echo_n "checking for $ac_word... " >&6; }
14440 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
14441 $as_echo_n "(cached) " >&6
14442 else
14443 if test -n "$ac_ct_NMEDIT"; then
14444 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
14445 else
14446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14447 for as_dir in $PATH
14448 do
14449 IFS=$as_save_IFS
14450 test -z "$as_dir" && as_dir=.
14451 for ac_exec_ext in '' $ac_executable_extensions; do
14452 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14453 ac_cv_prog_ac_ct_NMEDIT="nmedit"
14454 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14455 break 2
14456 fi
14457 done
14458 done
14459 IFS=$as_save_IFS
14460
14461 fi
14462 fi
14463 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
14464 if test -n "$ac_ct_NMEDIT"; then
14465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
14466 $as_echo "$ac_ct_NMEDIT" >&6; }
14467 else
14468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14469 $as_echo "no" >&6; }
14470 fi
14471
14472 if test "x$ac_ct_NMEDIT" = x; then
14473 NMEDIT=":"
14474 else
14475 case $cross_compiling:$ac_tool_warned in
14476 yes:)
14477 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14478 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14479 ac_tool_warned=yes ;;
14480 esac
14481 NMEDIT=$ac_ct_NMEDIT
14482 fi
14483 else
14484 NMEDIT="$ac_cv_prog_NMEDIT"
14485 fi
14486
14487 if test -n "$ac_tool_prefix"; then
14488 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
14489 set dummy ${ac_tool_prefix}lipo; ac_word=$2
14490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14491 $as_echo_n "checking for $ac_word... " >&6; }
14492 if test "${ac_cv_prog_LIPO+set}" = set; then :
14493 $as_echo_n "(cached) " >&6
14494 else
14495 if test -n "$LIPO"; then
14496 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
14497 else
14498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14499 for as_dir in $PATH
14500 do
14501 IFS=$as_save_IFS
14502 test -z "$as_dir" && as_dir=.
14503 for ac_exec_ext in '' $ac_executable_extensions; do
14504 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14505 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
14506 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14507 break 2
14508 fi
14509 done
14510 done
14511 IFS=$as_save_IFS
14512
14513 fi
14514 fi
14515 LIPO=$ac_cv_prog_LIPO
14516 if test -n "$LIPO"; then
14517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
14518 $as_echo "$LIPO" >&6; }
14519 else
14520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14521 $as_echo "no" >&6; }
14522 fi
14523
14524
14525 fi
14526 if test -z "$ac_cv_prog_LIPO"; then
14527 ac_ct_LIPO=$LIPO
14528 # Extract the first word of "lipo", so it can be a program name with args.
14529 set dummy lipo; ac_word=$2
14530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14531 $as_echo_n "checking for $ac_word... " >&6; }
14532 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
14533 $as_echo_n "(cached) " >&6
14534 else
14535 if test -n "$ac_ct_LIPO"; then
14536 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14537 else
14538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14539 for as_dir in $PATH
14540 do
14541 IFS=$as_save_IFS
14542 test -z "$as_dir" && as_dir=.
14543 for ac_exec_ext in '' $ac_executable_extensions; do
14544 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14545 ac_cv_prog_ac_ct_LIPO="lipo"
14546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14547 break 2
14548 fi
14549 done
14550 done
14551 IFS=$as_save_IFS
14552
14553 fi
14554 fi
14555 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14556 if test -n "$ac_ct_LIPO"; then
14557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
14558 $as_echo "$ac_ct_LIPO" >&6; }
14559 else
14560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14561 $as_echo "no" >&6; }
14562 fi
14563
14564 if test "x$ac_ct_LIPO" = x; then
14565 LIPO=":"
14566 else
14567 case $cross_compiling:$ac_tool_warned in
14568 yes:)
14569 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14570 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14571 ac_tool_warned=yes ;;
14572 esac
14573 LIPO=$ac_ct_LIPO
14574 fi
14575 else
14576 LIPO="$ac_cv_prog_LIPO"
14577 fi
14578
14579 if test -n "$ac_tool_prefix"; then
14580 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
14581 set dummy ${ac_tool_prefix}otool; ac_word=$2
14582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14583 $as_echo_n "checking for $ac_word... " >&6; }
14584 if test "${ac_cv_prog_OTOOL+set}" = set; then :
14585 $as_echo_n "(cached) " >&6
14586 else
14587 if test -n "$OTOOL"; then
14588 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14589 else
14590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14591 for as_dir in $PATH
14592 do
14593 IFS=$as_save_IFS
14594 test -z "$as_dir" && as_dir=.
14595 for ac_exec_ext in '' $ac_executable_extensions; do
14596 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14597 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
14598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14599 break 2
14600 fi
14601 done
14602 done
14603 IFS=$as_save_IFS
14604
14605 fi
14606 fi
14607 OTOOL=$ac_cv_prog_OTOOL
14608 if test -n "$OTOOL"; then
14609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
14610 $as_echo "$OTOOL" >&6; }
14611 else
14612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14613 $as_echo "no" >&6; }
14614 fi
14615
14616
14617 fi
14618 if test -z "$ac_cv_prog_OTOOL"; then
14619 ac_ct_OTOOL=$OTOOL
14620 # Extract the first word of "otool", so it can be a program name with args.
14621 set dummy otool; ac_word=$2
14622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14623 $as_echo_n "checking for $ac_word... " >&6; }
14624 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
14625 $as_echo_n "(cached) " >&6
14626 else
14627 if test -n "$ac_ct_OTOOL"; then
14628 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14629 else
14630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14631 for as_dir in $PATH
14632 do
14633 IFS=$as_save_IFS
14634 test -z "$as_dir" && as_dir=.
14635 for ac_exec_ext in '' $ac_executable_extensions; do
14636 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14637 ac_cv_prog_ac_ct_OTOOL="otool"
14638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14639 break 2
14640 fi
14641 done
14642 done
14643 IFS=$as_save_IFS
14644
14645 fi
14646 fi
14647 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14648 if test -n "$ac_ct_OTOOL"; then
14649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
14650 $as_echo "$ac_ct_OTOOL" >&6; }
14651 else
14652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14653 $as_echo "no" >&6; }
14654 fi
14655
14656 if test "x$ac_ct_OTOOL" = x; then
14657 OTOOL=":"
14658 else
14659 case $cross_compiling:$ac_tool_warned in
14660 yes:)
14661 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14662 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14663 ac_tool_warned=yes ;;
14664 esac
14665 OTOOL=$ac_ct_OTOOL
14666 fi
14667 else
14668 OTOOL="$ac_cv_prog_OTOOL"
14669 fi
14670
14671 if test -n "$ac_tool_prefix"; then
14672 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
14673 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14675 $as_echo_n "checking for $ac_word... " >&6; }
14676 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
14677 $as_echo_n "(cached) " >&6
14678 else
14679 if test -n "$OTOOL64"; then
14680 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14681 else
14682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14683 for as_dir in $PATH
14684 do
14685 IFS=$as_save_IFS
14686 test -z "$as_dir" && as_dir=.
14687 for ac_exec_ext in '' $ac_executable_extensions; do
14688 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14689 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
14690 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14691 break 2
14692 fi
14693 done
14694 done
14695 IFS=$as_save_IFS
14696
14697 fi
14698 fi
14699 OTOOL64=$ac_cv_prog_OTOOL64
14700 if test -n "$OTOOL64"; then
14701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
14702 $as_echo "$OTOOL64" >&6; }
14703 else
14704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14705 $as_echo "no" >&6; }
14706 fi
14707
14708
14709 fi
14710 if test -z "$ac_cv_prog_OTOOL64"; then
14711 ac_ct_OTOOL64=$OTOOL64
14712 # Extract the first word of "otool64", so it can be a program name with args.
14713 set dummy otool64; ac_word=$2
14714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14715 $as_echo_n "checking for $ac_word... " >&6; }
14716 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
14717 $as_echo_n "(cached) " >&6
14718 else
14719 if test -n "$ac_ct_OTOOL64"; then
14720 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14721 else
14722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14723 for as_dir in $PATH
14724 do
14725 IFS=$as_save_IFS
14726 test -z "$as_dir" && as_dir=.
14727 for ac_exec_ext in '' $ac_executable_extensions; do
14728 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14729 ac_cv_prog_ac_ct_OTOOL64="otool64"
14730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14731 break 2
14732 fi
14733 done
14734 done
14735 IFS=$as_save_IFS
14736
14737 fi
14738 fi
14739 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14740 if test -n "$ac_ct_OTOOL64"; then
14741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
14742 $as_echo "$ac_ct_OTOOL64" >&6; }
14743 else
14744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14745 $as_echo "no" >&6; }
14746 fi
14747
14748 if test "x$ac_ct_OTOOL64" = x; then
14749 OTOOL64=":"
14750 else
14751 case $cross_compiling:$ac_tool_warned in
14752 yes:)
14753 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14754 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14755 ac_tool_warned=yes ;;
14756 esac
14757 OTOOL64=$ac_ct_OTOOL64
14758 fi
14759 else
14760 OTOOL64="$ac_cv_prog_OTOOL64"
14761 fi
14762
14763
14764
14765
14766
14767
14768
14769
14770
14771
14772
14773
14774
14775
14776
14777
14778
14779
14780
14781
14782
14783
14784
14785
14786
14787
14788
14789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
14790 $as_echo_n "checking for -single_module linker flag... " >&6; }
14791 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
14792 $as_echo_n "(cached) " >&6
14793 else
14794 lt_cv_apple_cc_single_mod=no
14795 if test -z "${LT_MULTI_MODULE}"; then
14796 # By default we will add the -single_module flag. You can override
14797 # by either setting the environment variable LT_MULTI_MODULE
14798 # non-empty at configure time, or by adding -multi_module to the
14799 # link flags.
14800 rm -rf libconftest.dylib*
14801 echo "int foo(void){return 1;}" > conftest.c
14802 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14803 -dynamiclib -Wl,-single_module conftest.c" >&5
14804 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14805 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14806 _lt_result=$?
14807 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
14808 lt_cv_apple_cc_single_mod=yes
14809 else
14810 cat conftest.err >&5
14811 fi
14812 rm -rf libconftest.dylib*
14813 rm -f conftest.*
14814 fi
14815 fi
14816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
14817 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
14819 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
14820 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
14821 $as_echo_n "(cached) " >&6
14822 else
14823 lt_cv_ld_exported_symbols_list=no
14824 save_LDFLAGS=$LDFLAGS
14825 echo "_main" > conftest.sym
14826 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
14827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14828 /* end confdefs.h. */
14829
14830 int
14831 main ()
14832 {
14833
14834 ;
14835 return 0;
14836 }
14837 _ACEOF
14838 if ac_fn_c_try_link "$LINENO"; then :
14839 lt_cv_ld_exported_symbols_list=yes
14840 else
14841 lt_cv_ld_exported_symbols_list=no
14842 fi
14843 rm -f core conftest.err conftest.$ac_objext \
14844 conftest$ac_exeext conftest.$ac_ext
14845 LDFLAGS="$save_LDFLAGS"
14846
14847 fi
14848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
14849 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
14851 $as_echo_n "checking for -force_load linker flag... " >&6; }
14852 if test "${lt_cv_ld_force_load+set}" = set; then :
14853 $as_echo_n "(cached) " >&6
14854 else
14855 lt_cv_ld_force_load=no
14856 cat > conftest.c << _LT_EOF
14857 int forced_loaded() { return 2;}
14858 _LT_EOF
14859 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
14860 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14861 echo "$AR cru libconftest.a conftest.o" >&5
14862 $AR cru libconftest.a conftest.o 2>&5
14863 cat > conftest.c << _LT_EOF
14864 int main() { return 0;}
14865 _LT_EOF
14866 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
14867 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14868 _lt_result=$?
14869 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
14870 lt_cv_ld_force_load=yes
14871 else
14872 cat conftest.err >&5
14873 fi
14874 rm -f conftest.err libconftest.a conftest conftest.c
14875 rm -rf conftest.dSYM
14876
14877 fi
14878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
14879 $as_echo "$lt_cv_ld_force_load" >&6; }
14880 case $host_os in
14881 rhapsody* | darwin1.[012])
14882 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14883 darwin1.*)
14884 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14885 darwin*) # darwin 5.x on
14886 # if running on 10.5 or later, the deployment target defaults
14887 # to the OS version, if on x86, and 10.4, the deployment
14888 # target defaults to 10.4. Don't you love it?
14889 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14890 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14891 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14892 10.[012][,.]*)
14893 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14894 10.*)
14895 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14896 esac
14897 ;;
14898 esac
14899 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14900 _lt_dar_single_mod='$single_module'
14901 fi
14902 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14903 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14904 else
14905 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14906 fi
14907 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
14908 _lt_dsymutil='~$DSYMUTIL $lib || :'
14909 else
14910 _lt_dsymutil=
14911 fi
14912 ;;
14913 esac
14914
14915
14916 for ac_header in dlfcn.h
14917 do :
14918 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
14919 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
14920 cat >>confdefs.h <<_ACEOF
14921 #define HAVE_DLFCN_H 1
14922 _ACEOF
14923
14924 fi
14925 done
14926
14927
14928
14929
14930
14931 # Set options
14932
14933
14934
14935 enable_dlopen=no
14936
14937
14938 enable_win32_dll=no
14939
14940
14941 # Check whether --enable-shared was given.
14942 if test "${enable_shared+set}" = set; then :
14943 enableval=$enable_shared; p=${PACKAGE-default}
14944 case $enableval in
14945 yes) enable_shared=yes ;;
14946 no) enable_shared=no ;;
14947 *)
14948 enable_shared=no
14949 # Look at the argument we got. We use all the common list separators.
14950 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14951 for pkg in $enableval; do
14952 IFS="$lt_save_ifs"
14953 if test "X$pkg" = "X$p"; then
14954 enable_shared=yes
14955 fi
14956 done
14957 IFS="$lt_save_ifs"
14958 ;;
14959 esac
14960 else
14961 enable_shared=yes
14962 fi
14963
14964
14965
14966
14967
14968
14969
14970
14971
14972 # Check whether --enable-static was given.
14973 if test "${enable_static+set}" = set; then :
14974 enableval=$enable_static; p=${PACKAGE-default}
14975 case $enableval in
14976 yes) enable_static=yes ;;
14977 no) enable_static=no ;;
14978 *)
14979 enable_static=no
14980 # Look at the argument we got. We use all the common list separators.
14981 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14982 for pkg in $enableval; do
14983 IFS="$lt_save_ifs"
14984 if test "X$pkg" = "X$p"; then
14985 enable_static=yes
14986 fi
14987 done
14988 IFS="$lt_save_ifs"
14989 ;;
14990 esac
14991 else
14992 enable_static=yes
14993 fi
14994
14995
14996
14997
14998
14999
15000
15001
15002
15003
15004 # Check whether --with-pic was given.
15005 if test "${with_pic+set}" = set; then :
15006 withval=$with_pic; pic_mode="$withval"
15007 else
15008 pic_mode=default
15009 fi
15010
15011
15012 test -z "$pic_mode" && pic_mode=default
15013
15014
15015
15016
15017
15018
15019
15020 # Check whether --enable-fast-install was given.
15021 if test "${enable_fast_install+set}" = set; then :
15022 enableval=$enable_fast_install; p=${PACKAGE-default}
15023 case $enableval in
15024 yes) enable_fast_install=yes ;;
15025 no) enable_fast_install=no ;;
15026 *)
15027 enable_fast_install=no
15028 # Look at the argument we got. We use all the common list separators.
15029 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15030 for pkg in $enableval; do
15031 IFS="$lt_save_ifs"
15032 if test "X$pkg" = "X$p"; then
15033 enable_fast_install=yes
15034 fi
15035 done
15036 IFS="$lt_save_ifs"
15037 ;;
15038 esac
15039 else
15040 enable_fast_install=yes
15041 fi
15042
15043
15044
15045
15046
15047
15048
15049
15050
15051
15052
15053 # This can be used to rebuild libtool when needed
15054 LIBTOOL_DEPS="$ltmain"
15055
15056 # Always use our own libtool.
15057 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
15058
15059
15060
15061
15062
15063
15064
15065
15066
15067
15068
15069
15070
15071
15072
15073
15074
15075
15076
15077
15078
15079
15080
15081
15082
15083
15084 test -z "$LN_S" && LN_S="ln -s"
15085
15086
15087
15088
15089
15090
15091
15092
15093
15094
15095
15096
15097
15098
15099 if test -n "${ZSH_VERSION+set}" ; then
15100 setopt NO_GLOB_SUBST
15101 fi
15102
15103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
15104 $as_echo_n "checking for objdir... " >&6; }
15105 if test "${lt_cv_objdir+set}" = set; then :
15106 $as_echo_n "(cached) " >&6
15107 else
15108 rm -f .libs 2>/dev/null
15109 mkdir .libs 2>/dev/null
15110 if test -d .libs; then
15111 lt_cv_objdir=.libs
15112 else
15113 # MS-DOS does not allow filenames that begin with a dot.
15114 lt_cv_objdir=_libs
15115 fi
15116 rmdir .libs 2>/dev/null
15117 fi
15118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
15119 $as_echo "$lt_cv_objdir" >&6; }
15120 objdir=$lt_cv_objdir
15121
15122
15123
15124
15125
15126 cat >>confdefs.h <<_ACEOF
15127 #define LT_OBJDIR "$lt_cv_objdir/"
15128 _ACEOF
15129
15130
15131
15132
15133 case $host_os in
15134 aix3*)
15135 # AIX sometimes has problems with the GCC collect2 program. For some
15136 # reason, if we set the COLLECT_NAMES environment variable, the problems
15137 # vanish in a puff of smoke.
15138 if test "X${COLLECT_NAMES+set}" != Xset; then
15139 COLLECT_NAMES=
15140 export COLLECT_NAMES
15141 fi
15142 ;;
15143 esac
15144
15145 # Global variables:
15146 ofile=libtool
15147 can_build_shared=yes
15148
15149 # All known linkers require a `.a' archive for static linking (except MSVC,
15150 # which needs '.lib').
15151 libext=a
15152
15153 with_gnu_ld="$lt_cv_prog_gnu_ld"
15154
15155 old_CC="$CC"
15156 old_CFLAGS="$CFLAGS"
15157
15158 # Set sane defaults for various variables
15159 test -z "$CC" && CC=cc
15160 test -z "$LTCC" && LTCC=$CC
15161 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
15162 test -z "$LD" && LD=ld
15163 test -z "$ac_objext" && ac_objext=o
15164
15165 for cc_temp in $compiler""; do
15166 case $cc_temp in
15167 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15168 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15169 \-*) ;;
15170 *) break;;
15171 esac
15172 done
15173 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
15174
15175
15176 # Only perform the check for file, if the check method requires it
15177 test -z "$MAGIC_CMD" && MAGIC_CMD=file
15178 case $deplibs_check_method in
15179 file_magic*)
15180 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
15181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
15182 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
15183 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
15184 $as_echo_n "(cached) " >&6
15185 else
15186 case $MAGIC_CMD in
15187 [\\/*] | ?:[\\/]*)
15188 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15189 ;;
15190 *)
15191 lt_save_MAGIC_CMD="$MAGIC_CMD"
15192 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15193 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15194 for ac_dir in $ac_dummy; do
15195 IFS="$lt_save_ifs"
15196 test -z "$ac_dir" && ac_dir=.
15197 if test -f $ac_dir/${ac_tool_prefix}file; then
15198 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
15199 if test -n "$file_magic_test_file"; then
15200 case $deplibs_check_method in
15201 "file_magic "*)
15202 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15203 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15204 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15205 $EGREP "$file_magic_regex" > /dev/null; then
15206 :
15207 else
15208 cat <<_LT_EOF 1>&2
15209
15210 *** Warning: the command libtool uses to detect shared libraries,
15211 *** $file_magic_cmd, produces output that libtool cannot recognize.
15212 *** The result is that libtool may fail to recognize shared libraries
15213 *** as such. This will affect the creation of libtool libraries that
15214 *** depend on shared libraries, but programs linked with such libtool
15215 *** libraries will work regardless of this problem. Nevertheless, you
15216 *** may want to report the problem to your system manager and/or to
15217 *** bug-libtool@gnu.org
15218
15219 _LT_EOF
15220 fi ;;
15221 esac
15222 fi
15223 break
15224 fi
15225 done
15226 IFS="$lt_save_ifs"
15227 MAGIC_CMD="$lt_save_MAGIC_CMD"
15228 ;;
15229 esac
15230 fi
15231
15232 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15233 if test -n "$MAGIC_CMD"; then
15234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15235 $as_echo "$MAGIC_CMD" >&6; }
15236 else
15237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15238 $as_echo "no" >&6; }
15239 fi
15240
15241
15242
15243
15244
15245 if test -z "$lt_cv_path_MAGIC_CMD"; then
15246 if test -n "$ac_tool_prefix"; then
15247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
15248 $as_echo_n "checking for file... " >&6; }
15249 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
15250 $as_echo_n "(cached) " >&6
15251 else
15252 case $MAGIC_CMD in
15253 [\\/*] | ?:[\\/]*)
15254 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15255 ;;
15256 *)
15257 lt_save_MAGIC_CMD="$MAGIC_CMD"
15258 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15259 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15260 for ac_dir in $ac_dummy; do
15261 IFS="$lt_save_ifs"
15262 test -z "$ac_dir" && ac_dir=.
15263 if test -f $ac_dir/file; then
15264 lt_cv_path_MAGIC_CMD="$ac_dir/file"
15265 if test -n "$file_magic_test_file"; then
15266 case $deplibs_check_method in
15267 "file_magic "*)
15268 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15269 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15270 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15271 $EGREP "$file_magic_regex" > /dev/null; then
15272 :
15273 else
15274 cat <<_LT_EOF 1>&2
15275
15276 *** Warning: the command libtool uses to detect shared libraries,
15277 *** $file_magic_cmd, produces output that libtool cannot recognize.
15278 *** The result is that libtool may fail to recognize shared libraries
15279 *** as such. This will affect the creation of libtool libraries that
15280 *** depend on shared libraries, but programs linked with such libtool
15281 *** libraries will work regardless of this problem. Nevertheless, you
15282 *** may want to report the problem to your system manager and/or to
15283 *** bug-libtool@gnu.org
15284
15285 _LT_EOF
15286 fi ;;
15287 esac
15288 fi
15289 break
15290 fi
15291 done
15292 IFS="$lt_save_ifs"
15293 MAGIC_CMD="$lt_save_MAGIC_CMD"
15294 ;;
15295 esac
15296 fi
15297
15298 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15299 if test -n "$MAGIC_CMD"; then
15300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15301 $as_echo "$MAGIC_CMD" >&6; }
15302 else
15303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15304 $as_echo "no" >&6; }
15305 fi
15306
15307
15308 else
15309 MAGIC_CMD=:
15310 fi
15311 fi
15312
15313 fi
15314 ;;
15315 esac
15316
15317 # Use C for the default configuration in the libtool script
15318
15319 lt_save_CC="$CC"
15320 ac_ext=c
15321 ac_cpp='$CPP $CPPFLAGS'
15322 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15323 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15324 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15325
15326
15327 # Source file extension for C test sources.
15328 ac_ext=c
15329
15330 # Object file extension for compiled C test sources.
15331 objext=o
15332 objext=$objext
15333
15334 # Code to be used in simple compile tests
15335 lt_simple_compile_test_code="int some_variable = 0;"
15336
15337 # Code to be used in simple link tests
15338 lt_simple_link_test_code='int main(){return(0);}'
15339
15340
15341
15342
15343
15344
15345
15346 # If no C compiler was specified, use CC.
15347 LTCC=${LTCC-"$CC"}
15348
15349 # If no C compiler flags were specified, use CFLAGS.
15350 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15351
15352 # Allow CC to be a program name with arguments.
15353 compiler=$CC
15354
15355 # Save the default compiler, since it gets overwritten when the other
15356 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
15357 compiler_DEFAULT=$CC
15358
15359 # save warnings/boilerplate of simple test code
15360 ac_outfile=conftest.$ac_objext
15361 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15362 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15363 _lt_compiler_boilerplate=`cat conftest.err`
15364 $RM conftest*
15365
15366 ac_outfile=conftest.$ac_objext
15367 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15368 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15369 _lt_linker_boilerplate=`cat conftest.err`
15370 $RM -r conftest*
15371
15372
15373 ## CAVEAT EMPTOR:
15374 ## There is no encapsulation within the following macros, do not change
15375 ## the running order or otherwise move them around unless you know exactly
15376 ## what you are doing...
15377 if test -n "$compiler"; then
15378
15379 lt_prog_compiler_no_builtin_flag=
15380
15381 if test "$GCC" = yes; then
15382 case $cc_basename in
15383 nvcc*)
15384 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
15385 *)
15386 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
15387 esac
15388
15389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15390 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
15391 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
15392 $as_echo_n "(cached) " >&6
15393 else
15394 lt_cv_prog_compiler_rtti_exceptions=no
15395 ac_outfile=conftest.$ac_objext
15396 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15397 lt_compiler_flag="-fno-rtti -fno-exceptions"
15398 # Insert the option either (1) after the last *FLAGS variable, or
15399 # (2) before a word containing "conftest.", or (3) at the end.
15400 # Note that $ac_compile itself does not contain backslashes and begins
15401 # with a dollar sign (not a hyphen), so the echo should work correctly.
15402 # The option is referenced via a variable to avoid confusing sed.
15403 lt_compile=`echo "$ac_compile" | $SED \
15404 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15405 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15406 -e 's:$: $lt_compiler_flag:'`
15407 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15408 (eval "$lt_compile" 2>conftest.err)
15409 ac_status=$?
15410 cat conftest.err >&5
15411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15412 if (exit $ac_status) && test -s "$ac_outfile"; then
15413 # The compiler can only warn and ignore the option if not recognized
15414 # So say no if there are warnings other than the usual output.
15415 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15416 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15417 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15418 lt_cv_prog_compiler_rtti_exceptions=yes
15419 fi
15420 fi
15421 $RM conftest*
15422
15423 fi
15424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15425 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15426
15427 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15428 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
15429 else
15430 :
15431 fi
15432
15433 fi
15434
15435
15436
15437
15438
15439
15440 lt_prog_compiler_wl=
15441 lt_prog_compiler_pic=
15442 lt_prog_compiler_static=
15443
15444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15445 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15446
15447 if test "$GCC" = yes; then
15448 lt_prog_compiler_wl='-Wl,'
15449 lt_prog_compiler_static='-static'
15450
15451 case $host_os in
15452 aix*)
15453 # All AIX code is PIC.
15454 if test "$host_cpu" = ia64; then
15455 # AIX 5 now supports IA64 processor
15456 lt_prog_compiler_static='-Bstatic'
15457 fi
15458 lt_prog_compiler_pic='-fPIC'
15459 ;;
15460
15461 amigaos*)
15462 case $host_cpu in
15463 powerpc)
15464 # see comment about AmigaOS4 .so support
15465 lt_prog_compiler_pic='-fPIC'
15466 ;;
15467 m68k)
15468 # FIXME: we need at least 68020 code to build shared libraries, but
15469 # adding the `-m68020' flag to GCC prevents building anything better,
15470 # like `-m68040'.
15471 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15472 ;;
15473 esac
15474 ;;
15475
15476 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15477 # PIC is the default for these OSes.
15478 ;;
15479
15480 mingw* | cygwin* | pw32* | os2* | cegcc*)
15481 # This hack is so that the source file can tell whether it is being
15482 # built for inclusion in a dll (and should export symbols for example).
15483 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15484 # (--disable-auto-import) libraries
15485 lt_prog_compiler_pic='-DDLL_EXPORT'
15486 ;;
15487
15488 darwin* | rhapsody*)
15489 # PIC is the default on this platform
15490 # Common symbols not allowed in MH_DYLIB files
15491 lt_prog_compiler_pic='-fno-common'
15492 ;;
15493
15494 haiku*)
15495 # PIC is the default for Haiku.
15496 # The "-static" flag exists, but is broken.
15497 lt_prog_compiler_static=
15498 ;;
15499
15500 hpux*)
15501 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15502 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15503 # sets the default TLS model and affects inlining.
15504 case $host_cpu in
15505 hppa*64*)
15506 # +Z the default
15507 ;;
15508 *)
15509 lt_prog_compiler_pic='-fPIC'
15510 ;;
15511 esac
15512 ;;
15513
15514 interix[3-9]*)
15515 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15516 # Instead, we relocate shared libraries at runtime.
15517 ;;
15518
15519 msdosdjgpp*)
15520 # Just because we use GCC doesn't mean we suddenly get shared libraries
15521 # on systems that don't support them.
15522 lt_prog_compiler_can_build_shared=no
15523 enable_shared=no
15524 ;;
15525
15526 *nto* | *qnx*)
15527 # QNX uses GNU C++, but need to define -shared option too, otherwise
15528 # it will coredump.
15529 lt_prog_compiler_pic='-fPIC -shared'
15530 ;;
15531
15532 sysv4*MP*)
15533 if test -d /usr/nec; then
15534 lt_prog_compiler_pic=-Kconform_pic
15535 fi
15536 ;;
15537
15538 *)
15539 lt_prog_compiler_pic='-fPIC'
15540 ;;
15541 esac
15542
15543 case $cc_basename in
15544 nvcc*) # Cuda Compiler Driver 2.2
15545 lt_prog_compiler_wl='-Xlinker '
15546 lt_prog_compiler_pic='-Xcompiler -fPIC'
15547 ;;
15548 esac
15549 else
15550 # PORTME Check for flag to pass linker flags through the system compiler.
15551 case $host_os in
15552 aix*)
15553 lt_prog_compiler_wl='-Wl,'
15554 if test "$host_cpu" = ia64; then
15555 # AIX 5 now supports IA64 processor
15556 lt_prog_compiler_static='-Bstatic'
15557 else
15558 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15559 fi
15560 ;;
15561
15562 mingw* | cygwin* | pw32* | os2* | cegcc*)
15563 # This hack is so that the source file can tell whether it is being
15564 # built for inclusion in a dll (and should export symbols for example).
15565 lt_prog_compiler_pic='-DDLL_EXPORT'
15566 ;;
15567
15568 hpux9* | hpux10* | hpux11*)
15569 lt_prog_compiler_wl='-Wl,'
15570 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15571 # not for PA HP-UX.
15572 case $host_cpu in
15573 hppa*64*|ia64*)
15574 # +Z the default
15575 ;;
15576 *)
15577 lt_prog_compiler_pic='+Z'
15578 ;;
15579 esac
15580 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15581 lt_prog_compiler_static='${wl}-a ${wl}archive'
15582 ;;
15583
15584 irix5* | irix6* | nonstopux*)
15585 lt_prog_compiler_wl='-Wl,'
15586 # PIC (with -KPIC) is the default.
15587 lt_prog_compiler_static='-non_shared'
15588 ;;
15589
15590 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15591 case $cc_basename in
15592 # old Intel for x86_64 which still supported -KPIC.
15593 ecc*)
15594 lt_prog_compiler_wl='-Wl,'
15595 lt_prog_compiler_pic='-KPIC'
15596 lt_prog_compiler_static='-static'
15597 ;;
15598 # icc used to be incompatible with GCC.
15599 # ICC 10 doesn't accept -KPIC any more.
15600 icc* | ifort*)
15601 lt_prog_compiler_wl='-Wl,'
15602 lt_prog_compiler_pic='-fPIC'
15603 lt_prog_compiler_static='-static'
15604 ;;
15605 # Lahey Fortran 8.1.
15606 lf95*)
15607 lt_prog_compiler_wl='-Wl,'
15608 lt_prog_compiler_pic='--shared'
15609 lt_prog_compiler_static='--static'
15610 ;;
15611 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15612 # Portland Group compilers (*not* the Pentium gcc compiler,
15613 # which looks to be a dead project)
15614 lt_prog_compiler_wl='-Wl,'
15615 lt_prog_compiler_pic='-fpic'
15616 lt_prog_compiler_static='-Bstatic'
15617 ;;
15618 ccc*)
15619 lt_prog_compiler_wl='-Wl,'
15620 # All Alpha code is PIC.
15621 lt_prog_compiler_static='-non_shared'
15622 ;;
15623 xl* | bgxl* | bgf* | mpixl*)
15624 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15625 lt_prog_compiler_wl='-Wl,'
15626 lt_prog_compiler_pic='-qpic'
15627 lt_prog_compiler_static='-qstaticlink'
15628 ;;
15629 *)
15630 case `$CC -V 2>&1 | sed 5q` in
15631 *Sun\ F* | *Sun*Fortran*)
15632 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15633 lt_prog_compiler_pic='-KPIC'
15634 lt_prog_compiler_static='-Bstatic'
15635 lt_prog_compiler_wl=''
15636 ;;
15637 *Sun\ C*)
15638 # Sun C 5.9
15639 lt_prog_compiler_pic='-KPIC'
15640 lt_prog_compiler_static='-Bstatic'
15641 lt_prog_compiler_wl='-Wl,'
15642 ;;
15643 esac
15644 ;;
15645 esac
15646 ;;
15647
15648 newsos6)
15649 lt_prog_compiler_pic='-KPIC'
15650 lt_prog_compiler_static='-Bstatic'
15651 ;;
15652
15653 *nto* | *qnx*)
15654 # QNX uses GNU C++, but need to define -shared option too, otherwise
15655 # it will coredump.
15656 lt_prog_compiler_pic='-fPIC -shared'
15657 ;;
15658
15659 osf3* | osf4* | osf5*)
15660 lt_prog_compiler_wl='-Wl,'
15661 # All OSF/1 code is PIC.
15662 lt_prog_compiler_static='-non_shared'
15663 ;;
15664
15665 rdos*)
15666 lt_prog_compiler_static='-non_shared'
15667 ;;
15668
15669 solaris*)
15670 lt_prog_compiler_pic='-KPIC'
15671 lt_prog_compiler_static='-Bstatic'
15672 case $cc_basename in
15673 f77* | f90* | f95*)
15674 lt_prog_compiler_wl='-Qoption ld ';;
15675 *)
15676 lt_prog_compiler_wl='-Wl,';;
15677 esac
15678 ;;
15679
15680 sunos4*)
15681 lt_prog_compiler_wl='-Qoption ld '
15682 lt_prog_compiler_pic='-PIC'
15683 lt_prog_compiler_static='-Bstatic'
15684 ;;
15685
15686 sysv4 | sysv4.2uw2* | sysv4.3*)
15687 lt_prog_compiler_wl='-Wl,'
15688 lt_prog_compiler_pic='-KPIC'
15689 lt_prog_compiler_static='-Bstatic'
15690 ;;
15691
15692 sysv4*MP*)
15693 if test -d /usr/nec ;then
15694 lt_prog_compiler_pic='-Kconform_pic'
15695 lt_prog_compiler_static='-Bstatic'
15696 fi
15697 ;;
15698
15699 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15700 lt_prog_compiler_wl='-Wl,'
15701 lt_prog_compiler_pic='-KPIC'
15702 lt_prog_compiler_static='-Bstatic'
15703 ;;
15704
15705 unicos*)
15706 lt_prog_compiler_wl='-Wl,'
15707 lt_prog_compiler_can_build_shared=no
15708 ;;
15709
15710 uts4*)
15711 lt_prog_compiler_pic='-pic'
15712 lt_prog_compiler_static='-Bstatic'
15713 ;;
15714
15715 *)
15716 lt_prog_compiler_can_build_shared=no
15717 ;;
15718 esac
15719 fi
15720
15721 case $host_os in
15722 # For platforms which do not support PIC, -DPIC is meaningless:
15723 *djgpp*)
15724 lt_prog_compiler_pic=
15725 ;;
15726 *)
15727 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15728 ;;
15729 esac
15730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
15731 $as_echo "$lt_prog_compiler_pic" >&6; }
15732
15733
15734
15735
15736
15737
15738 #
15739 # Check to make sure the PIC flag actually works.
15740 #
15741 if test -n "$lt_prog_compiler_pic"; then
15742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15743 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
15744 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
15745 $as_echo_n "(cached) " >&6
15746 else
15747 lt_cv_prog_compiler_pic_works=no
15748 ac_outfile=conftest.$ac_objext
15749 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15750 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15751 # Insert the option either (1) after the last *FLAGS variable, or
15752 # (2) before a word containing "conftest.", or (3) at the end.
15753 # Note that $ac_compile itself does not contain backslashes and begins
15754 # with a dollar sign (not a hyphen), so the echo should work correctly.
15755 # The option is referenced via a variable to avoid confusing sed.
15756 lt_compile=`echo "$ac_compile" | $SED \
15757 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15758 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15759 -e 's:$: $lt_compiler_flag:'`
15760 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15761 (eval "$lt_compile" 2>conftest.err)
15762 ac_status=$?
15763 cat conftest.err >&5
15764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15765 if (exit $ac_status) && test -s "$ac_outfile"; then
15766 # The compiler can only warn and ignore the option if not recognized
15767 # So say no if there are warnings other than the usual output.
15768 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15769 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15770 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15771 lt_cv_prog_compiler_pic_works=yes
15772 fi
15773 fi
15774 $RM conftest*
15775
15776 fi
15777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15778 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15779
15780 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15781 case $lt_prog_compiler_pic in
15782 "" | " "*) ;;
15783 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15784 esac
15785 else
15786 lt_prog_compiler_pic=
15787 lt_prog_compiler_can_build_shared=no
15788 fi
15789
15790 fi
15791
15792
15793
15794
15795
15796
15797 #
15798 # Check to make sure the static flag actually works.
15799 #
15800 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15802 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15803 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
15804 $as_echo_n "(cached) " >&6
15805 else
15806 lt_cv_prog_compiler_static_works=no
15807 save_LDFLAGS="$LDFLAGS"
15808 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15809 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15810 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15811 # The linker can only warn and ignore the option if not recognized
15812 # So say no if there are warnings
15813 if test -s conftest.err; then
15814 # Append any errors to the config.log.
15815 cat conftest.err 1>&5
15816 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15817 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15818 if diff conftest.exp conftest.er2 >/dev/null; then
15819 lt_cv_prog_compiler_static_works=yes
15820 fi
15821 else
15822 lt_cv_prog_compiler_static_works=yes
15823 fi
15824 fi
15825 $RM -r conftest*
15826 LDFLAGS="$save_LDFLAGS"
15827
15828 fi
15829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15830 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15831
15832 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15833 :
15834 else
15835 lt_prog_compiler_static=
15836 fi
15837
15838
15839
15840
15841
15842
15843
15844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15845 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15846 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15847 $as_echo_n "(cached) " >&6
15848 else
15849 lt_cv_prog_compiler_c_o=no
15850 $RM -r conftest 2>/dev/null
15851 mkdir conftest
15852 cd conftest
15853 mkdir out
15854 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15855
15856 lt_compiler_flag="-o out/conftest2.$ac_objext"
15857 # Insert the option either (1) after the last *FLAGS variable, or
15858 # (2) before a word containing "conftest.", or (3) at the end.
15859 # Note that $ac_compile itself does not contain backslashes and begins
15860 # with a dollar sign (not a hyphen), so the echo should work correctly.
15861 lt_compile=`echo "$ac_compile" | $SED \
15862 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15863 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15864 -e 's:$: $lt_compiler_flag:'`
15865 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15866 (eval "$lt_compile" 2>out/conftest.err)
15867 ac_status=$?
15868 cat out/conftest.err >&5
15869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15870 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15871 then
15872 # The compiler can only warn and ignore the option if not recognized
15873 # So say no if there are warnings
15874 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15875 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15876 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15877 lt_cv_prog_compiler_c_o=yes
15878 fi
15879 fi
15880 chmod u+w . 2>&5
15881 $RM conftest*
15882 # SGI C++ compiler will create directory out/ii_files/ for
15883 # template instantiation
15884 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15885 $RM out/* && rmdir out
15886 cd ..
15887 $RM -r conftest
15888 $RM conftest*
15889
15890 fi
15891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15892 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15893
15894
15895
15896
15897
15898
15899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15900 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15901 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15902 $as_echo_n "(cached) " >&6
15903 else
15904 lt_cv_prog_compiler_c_o=no
15905 $RM -r conftest 2>/dev/null
15906 mkdir conftest
15907 cd conftest
15908 mkdir out
15909 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15910
15911 lt_compiler_flag="-o out/conftest2.$ac_objext"
15912 # Insert the option either (1) after the last *FLAGS variable, or
15913 # (2) before a word containing "conftest.", or (3) at the end.
15914 # Note that $ac_compile itself does not contain backslashes and begins
15915 # with a dollar sign (not a hyphen), so the echo should work correctly.
15916 lt_compile=`echo "$ac_compile" | $SED \
15917 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15918 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15919 -e 's:$: $lt_compiler_flag:'`
15920 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15921 (eval "$lt_compile" 2>out/conftest.err)
15922 ac_status=$?
15923 cat out/conftest.err >&5
15924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15925 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15926 then
15927 # The compiler can only warn and ignore the option if not recognized
15928 # So say no if there are warnings
15929 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15930 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15931 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15932 lt_cv_prog_compiler_c_o=yes
15933 fi
15934 fi
15935 chmod u+w . 2>&5
15936 $RM conftest*
15937 # SGI C++ compiler will create directory out/ii_files/ for
15938 # template instantiation
15939 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15940 $RM out/* && rmdir out
15941 cd ..
15942 $RM -r conftest
15943 $RM conftest*
15944
15945 fi
15946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15947 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15948
15949
15950
15951
15952 hard_links="nottested"
15953 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15954 # do not overwrite the value of need_locks provided by the user
15955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15956 $as_echo_n "checking if we can lock with hard links... " >&6; }
15957 hard_links=yes
15958 $RM conftest*
15959 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15960 touch conftest.a
15961 ln conftest.a conftest.b 2>&5 || hard_links=no
15962 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15964 $as_echo "$hard_links" >&6; }
15965 if test "$hard_links" = no; then
15966 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15967 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15968 need_locks=warn
15969 fi
15970 else
15971 need_locks=no
15972 fi
15973
15974
15975
15976
15977
15978
15979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15980 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15981
15982 runpath_var=
15983 allow_undefined_flag=
15984 always_export_symbols=no
15985 archive_cmds=
15986 archive_expsym_cmds=
15987 compiler_needs_object=no
15988 enable_shared_with_static_runtimes=no
15989 export_dynamic_flag_spec=
15990 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15991 hardcode_automatic=no
15992 hardcode_direct=no
15993 hardcode_direct_absolute=no
15994 hardcode_libdir_flag_spec=
15995 hardcode_libdir_flag_spec_ld=
15996 hardcode_libdir_separator=
15997 hardcode_minus_L=no
15998 hardcode_shlibpath_var=unsupported
15999 inherit_rpath=no
16000 link_all_deplibs=unknown
16001 module_cmds=
16002 module_expsym_cmds=
16003 old_archive_from_new_cmds=
16004 old_archive_from_expsyms_cmds=
16005 thread_safe_flag_spec=
16006 whole_archive_flag_spec=
16007 # include_expsyms should be a list of space-separated symbols to be *always*
16008 # included in the symbol list
16009 include_expsyms=
16010 # exclude_expsyms can be an extended regexp of symbols to exclude
16011 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16012 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16013 # as well as any symbol that contains `d'.
16014 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16015 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16016 # platforms (ab)use it in PIC code, but their linkers get confused if
16017 # the symbol is explicitly referenced. Since portable code cannot
16018 # rely on this symbol name, it's probably fine to never include it in
16019 # preloaded symbol tables.
16020 # Exclude shared library initialization/finalization symbols.
16021 extract_expsyms_cmds=
16022
16023 case $host_os in
16024 cygwin* | mingw* | pw32* | cegcc*)
16025 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16026 # When not using gcc, we currently assume that we are using
16027 # Microsoft Visual C++.
16028 if test "$GCC" != yes; then
16029 with_gnu_ld=no
16030 fi
16031 ;;
16032 interix*)
16033 # we just hope/assume this is gcc and not c89 (= MSVC++)
16034 with_gnu_ld=yes
16035 ;;
16036 openbsd*)
16037 with_gnu_ld=no
16038 ;;
16039 esac
16040
16041 ld_shlibs=yes
16042
16043 # On some targets, GNU ld is compatible enough with the native linker
16044 # that we're better off using the native interface for both.
16045 lt_use_gnu_ld_interface=no
16046 if test "$with_gnu_ld" = yes; then
16047 case $host_os in
16048 aix*)
16049 # The AIX port of GNU ld has always aspired to compatibility
16050 # with the native linker. However, as the warning in the GNU ld
16051 # block says, versions before 2.19.5* couldn't really create working
16052 # shared libraries, regardless of the interface used.
16053 case `$LD -v 2>&1` in
16054 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
16055 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
16056 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
16057 *)
16058 lt_use_gnu_ld_interface=yes
16059 ;;
16060 esac
16061 ;;
16062 *)
16063 lt_use_gnu_ld_interface=yes
16064 ;;
16065 esac
16066 fi
16067
16068 if test "$lt_use_gnu_ld_interface" = yes; then
16069 # If archive_cmds runs LD, not CC, wlarc should be empty
16070 wlarc='${wl}'
16071
16072 # Set some defaults for GNU ld with shared library support. These
16073 # are reset later if shared libraries are not supported. Putting them
16074 # here allows them to be overridden if necessary.
16075 runpath_var=LD_RUN_PATH
16076 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16077 export_dynamic_flag_spec='${wl}--export-dynamic'
16078 # ancient GNU ld didn't support --whole-archive et. al.
16079 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
16080 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16081 else
16082 whole_archive_flag_spec=
16083 fi
16084 supports_anon_versioning=no
16085 case `$LD -v 2>&1` in
16086 *GNU\ gold*) supports_anon_versioning=yes ;;
16087 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16088 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16089 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16090 *\ 2.11.*) ;; # other 2.11 versions
16091 *) supports_anon_versioning=yes ;;
16092 esac
16093
16094 # See if GNU ld supports shared libraries.
16095 case $host_os in
16096 aix[3-9]*)
16097 # On AIX/PPC, the GNU linker is very broken
16098 if test "$host_cpu" != ia64; then
16099 ld_shlibs=no
16100 cat <<_LT_EOF 1>&2
16101
16102 *** Warning: the GNU linker, at least up to release 2.19, is reported
16103 *** to be unable to reliably create shared libraries on AIX.
16104 *** Therefore, libtool is disabling shared libraries support. If you
16105 *** really care for shared libraries, you may want to install binutils
16106 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
16107 *** You will then need to restart the configuration process.
16108
16109 _LT_EOF
16110 fi
16111 ;;
16112
16113 amigaos*)
16114 case $host_cpu in
16115 powerpc)
16116 # see comment about AmigaOS4 .so support
16117 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16118 archive_expsym_cmds=''
16119 ;;
16120 m68k)
16121 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)'
16122 hardcode_libdir_flag_spec='-L$libdir'
16123 hardcode_minus_L=yes
16124 ;;
16125 esac
16126 ;;
16127
16128 beos*)
16129 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16130 allow_undefined_flag=unsupported
16131 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16132 # support --undefined. This deserves some investigation. FIXME
16133 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16134 else
16135 ld_shlibs=no
16136 fi
16137 ;;
16138
16139 cygwin* | mingw* | pw32* | cegcc*)
16140 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
16141 # as there is no search path for DLLs.
16142 hardcode_libdir_flag_spec='-L$libdir'
16143 export_dynamic_flag_spec='${wl}--export-all-symbols'
16144 allow_undefined_flag=unsupported
16145 always_export_symbols=no
16146 enable_shared_with_static_runtimes=yes
16147 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16148
16149 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
16150 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16151 # If the export-symbols file already is a .def file (1st line
16152 # is EXPORTS), use it as is; otherwise, prepend...
16153 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16154 cp $export_symbols $output_objdir/$soname.def;
16155 else
16156 echo EXPORTS > $output_objdir/$soname.def;
16157 cat $export_symbols >> $output_objdir/$soname.def;
16158 fi~
16159 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16160 else
16161 ld_shlibs=no
16162 fi
16163 ;;
16164
16165 haiku*)
16166 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16167 link_all_deplibs=yes
16168 ;;
16169
16170 interix[3-9]*)
16171 hardcode_direct=no
16172 hardcode_shlibpath_var=no
16173 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16174 export_dynamic_flag_spec='${wl}-E'
16175 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16176 # Instead, shared libraries are loaded at an image base (0x10000000 by
16177 # default) and relocated if they conflict, which is a slow very memory
16178 # consuming and fragmenting process. To avoid this, we pick a random,
16179 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16180 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16181 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16182 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'
16183 ;;
16184
16185 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
16186 tmp_diet=no
16187 if test "$host_os" = linux-dietlibc; then
16188 case $cc_basename in
16189 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
16190 esac
16191 fi
16192 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
16193 && test "$tmp_diet" = no
16194 then
16195 tmp_addflag=' $pic_flag'
16196 tmp_sharedflag='-shared'
16197 case $cc_basename,$host_cpu in
16198 pgcc*) # Portland Group C compiler
16199 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'
16200 tmp_addflag=' $pic_flag'
16201 ;;
16202 pgf77* | pgf90* | pgf95* | pgfortran*)
16203 # Portland Group f77 and f90 compilers
16204 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'
16205 tmp_addflag=' $pic_flag -Mnomain' ;;
16206 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16207 tmp_addflag=' -i_dynamic' ;;
16208 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16209 tmp_addflag=' -i_dynamic -nofor_main' ;;
16210 ifc* | ifort*) # Intel Fortran compiler
16211 tmp_addflag=' -nofor_main' ;;
16212 lf95*) # Lahey Fortran 8.1
16213 whole_archive_flag_spec=
16214 tmp_sharedflag='--shared' ;;
16215 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
16216 tmp_sharedflag='-qmkshrobj'
16217 tmp_addflag= ;;
16218 nvcc*) # Cuda Compiler Driver 2.2
16219 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'
16220 compiler_needs_object=yes
16221 ;;
16222 esac
16223 case `$CC -V 2>&1 | sed 5q` in
16224 *Sun\ C*) # Sun C 5.9
16225 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'
16226 compiler_needs_object=yes
16227 tmp_sharedflag='-G' ;;
16228 *Sun\ F*) # Sun Fortran 8.3
16229 tmp_sharedflag='-G' ;;
16230 esac
16231 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16232
16233 if test "x$supports_anon_versioning" = xyes; then
16234 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16235 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16236 echo "local: *; };" >> $output_objdir/$libname.ver~
16237 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16238 fi
16239
16240 case $cc_basename in
16241 xlf* | bgf* | bgxlf* | mpixlf*)
16242 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
16243 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
16244 hardcode_libdir_flag_spec=
16245 hardcode_libdir_flag_spec_ld='-rpath $libdir'
16246 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
16247 if test "x$supports_anon_versioning" = xyes; then
16248 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16249 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16250 echo "local: *; };" >> $output_objdir/$libname.ver~
16251 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
16252 fi
16253 ;;
16254 esac
16255 else
16256 ld_shlibs=no
16257 fi
16258 ;;
16259
16260 netbsd*)
16261 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16262 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16263 wlarc=
16264 else
16265 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16266 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16267 fi
16268 ;;
16269
16270 solaris*)
16271 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
16272 ld_shlibs=no
16273 cat <<_LT_EOF 1>&2
16274
16275 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16276 *** create shared libraries on Solaris systems. Therefore, libtool
16277 *** is disabling shared libraries support. We urge you to upgrade GNU
16278 *** binutils to release 2.9.1 or newer. Another option is to modify
16279 *** your PATH or compiler configuration so that the native linker is
16280 *** used, and then restart.
16281
16282 _LT_EOF
16283 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16284 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16285 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16286 else
16287 ld_shlibs=no
16288 fi
16289 ;;
16290
16291 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16292 case `$LD -v 2>&1` in
16293 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16294 ld_shlibs=no
16295 cat <<_LT_EOF 1>&2
16296
16297 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16298 *** reliably create shared libraries on SCO systems. Therefore, libtool
16299 *** is disabling shared libraries support. We urge you to upgrade GNU
16300 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16301 *** your PATH or compiler configuration so that the native linker is
16302 *** used, and then restart.
16303
16304 _LT_EOF
16305 ;;
16306 *)
16307 # For security reasons, it is highly recommended that you always
16308 # use absolute paths for naming shared libraries, and exclude the
16309 # DT_RUNPATH tag from executables and libraries. But doing so
16310 # requires that you compile everything twice, which is a pain.
16311 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16312 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16313 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16314 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16315 else
16316 ld_shlibs=no
16317 fi
16318 ;;
16319 esac
16320 ;;
16321
16322 sunos4*)
16323 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16324 wlarc=
16325 hardcode_direct=yes
16326 hardcode_shlibpath_var=no
16327 ;;
16328
16329 *)
16330 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16331 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16332 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16333 else
16334 ld_shlibs=no
16335 fi
16336 ;;
16337 esac
16338
16339 if test "$ld_shlibs" = no; then
16340 runpath_var=
16341 hardcode_libdir_flag_spec=
16342 export_dynamic_flag_spec=
16343 whole_archive_flag_spec=
16344 fi
16345 else
16346 # PORTME fill in a description of your system's linker (not GNU ld)
16347 case $host_os in
16348 aix3*)
16349 allow_undefined_flag=unsupported
16350 always_export_symbols=yes
16351 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'
16352 # Note: this linker hardcodes the directories in LIBPATH if there
16353 # are no directories specified by -L.
16354 hardcode_minus_L=yes
16355 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16356 # Neither direct hardcoding nor static linking is supported with a
16357 # broken collect2.
16358 hardcode_direct=unsupported
16359 fi
16360 ;;
16361
16362 aix[4-9]*)
16363 if test "$host_cpu" = ia64; then
16364 # On IA64, the linker does run time linking by default, so we don't
16365 # have to do anything special.
16366 aix_use_runtimelinking=no
16367 exp_sym_flag='-Bexport'
16368 no_entry_flag=""
16369 else
16370 # If we're using GNU nm, then we don't want the "-C" option.
16371 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16372 # Also, AIX nm treats weak defined symbols like other global
16373 # defined symbols, whereas GNU nm marks them as "W".
16374 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16375 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'
16376 else
16377 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'
16378 fi
16379 aix_use_runtimelinking=no
16380
16381 # Test if we are trying to use run time linking or normal
16382 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16383 # need to do runtime linking.
16384 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16385 for ld_flag in $LDFLAGS; do
16386 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16387 aix_use_runtimelinking=yes
16388 break
16389 fi
16390 done
16391 ;;
16392 esac
16393
16394 exp_sym_flag='-bexport'
16395 no_entry_flag='-bnoentry'
16396 fi
16397
16398 # When large executables or shared objects are built, AIX ld can
16399 # have problems creating the table of contents. If linking a library
16400 # or program results in "error TOC overflow" add -mminimal-toc to
16401 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16402 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16403
16404 archive_cmds=''
16405 hardcode_direct=yes
16406 hardcode_direct_absolute=yes
16407 hardcode_libdir_separator=':'
16408 link_all_deplibs=yes
16409 file_list_spec='${wl}-f,'
16410
16411 if test "$GCC" = yes; then
16412 case $host_os in aix4.[012]|aix4.[012].*)
16413 # We only want to do this on AIX 4.2 and lower, the check
16414 # below for broken collect2 doesn't work under 4.3+
16415 collect2name=`${CC} -print-prog-name=collect2`
16416 if test -f "$collect2name" &&
16417 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16418 then
16419 # We have reworked collect2
16420 :
16421 else
16422 # We have old collect2
16423 hardcode_direct=unsupported
16424 # It fails to find uninstalled libraries when the uninstalled
16425 # path is not listed in the libpath. Setting hardcode_minus_L
16426 # to unsupported forces relinking
16427 hardcode_minus_L=yes
16428 hardcode_libdir_flag_spec='-L$libdir'
16429 hardcode_libdir_separator=
16430 fi
16431 ;;
16432 esac
16433 shared_flag='-shared'
16434 if test "$aix_use_runtimelinking" = yes; then
16435 shared_flag="$shared_flag "'${wl}-G'
16436 fi
16437 else
16438 # not using gcc
16439 if test "$host_cpu" = ia64; then
16440 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16441 # chokes on -Wl,-G. The following line is correct:
16442 shared_flag='-G'
16443 else
16444 if test "$aix_use_runtimelinking" = yes; then
16445 shared_flag='${wl}-G'
16446 else
16447 shared_flag='${wl}-bM:SRE'
16448 fi
16449 fi
16450 fi
16451
16452 export_dynamic_flag_spec='${wl}-bexpall'
16453 # It seems that -bexpall does not export symbols beginning with
16454 # underscore (_), so it is better to generate a list of symbols to export.
16455 always_export_symbols=yes
16456 if test "$aix_use_runtimelinking" = yes; then
16457 # Warning - without using the other runtime loading flags (-brtl),
16458 # -berok will link without error, but may produce a broken library.
16459 allow_undefined_flag='-berok'
16460 # Determine the default libpath from the value encoded in an
16461 # empty executable.
16462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16463 /* end confdefs.h. */
16464
16465 int
16466 main ()
16467 {
16468
16469 ;
16470 return 0;
16471 }
16472 _ACEOF
16473 if ac_fn_c_try_link "$LINENO"; then :
16474
16475 lt_aix_libpath_sed='
16476 /Import File Strings/,/^$/ {
16477 /^0/ {
16478 s/^0 *\(.*\)$/\1/
16479 p
16480 }
16481 }'
16482 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16483 # Check for a 64-bit object if we didn't find anything.
16484 if test -z "$aix_libpath"; then
16485 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16486 fi
16487 fi
16488 rm -f core conftest.err conftest.$ac_objext \
16489 conftest$ac_exeext conftest.$ac_ext
16490 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16491
16492 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16493 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"
16494 else
16495 if test "$host_cpu" = ia64; then
16496 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
16497 allow_undefined_flag="-z nodefs"
16498 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"
16499 else
16500 # Determine the default libpath from the value encoded in an
16501 # empty executable.
16502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16503 /* end confdefs.h. */
16504
16505 int
16506 main ()
16507 {
16508
16509 ;
16510 return 0;
16511 }
16512 _ACEOF
16513 if ac_fn_c_try_link "$LINENO"; then :
16514
16515 lt_aix_libpath_sed='
16516 /Import File Strings/,/^$/ {
16517 /^0/ {
16518 s/^0 *\(.*\)$/\1/
16519 p
16520 }
16521 }'
16522 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16523 # Check for a 64-bit object if we didn't find anything.
16524 if test -z "$aix_libpath"; then
16525 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16526 fi
16527 fi
16528 rm -f core conftest.err conftest.$ac_objext \
16529 conftest$ac_exeext conftest.$ac_ext
16530 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16531
16532 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16533 # Warning - without using the other run time loading flags,
16534 # -berok will link without error, but may produce a broken library.
16535 no_undefined_flag=' ${wl}-bernotok'
16536 allow_undefined_flag=' ${wl}-berok'
16537 if test "$with_gnu_ld" = yes; then
16538 # We only use this code for GNU lds that support --whole-archive.
16539 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16540 else
16541 # Exported symbols can be pulled into shared objects from archives
16542 whole_archive_flag_spec='$convenience'
16543 fi
16544 archive_cmds_need_lc=yes
16545 # This is similar to how AIX traditionally builds its shared libraries.
16546 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'
16547 fi
16548 fi
16549 ;;
16550
16551 amigaos*)
16552 case $host_cpu in
16553 powerpc)
16554 # see comment about AmigaOS4 .so support
16555 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16556 archive_expsym_cmds=''
16557 ;;
16558 m68k)
16559 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)'
16560 hardcode_libdir_flag_spec='-L$libdir'
16561 hardcode_minus_L=yes
16562 ;;
16563 esac
16564 ;;
16565
16566 bsdi[45]*)
16567 export_dynamic_flag_spec=-rdynamic
16568 ;;
16569
16570 cygwin* | mingw* | pw32* | cegcc*)
16571 # When not using gcc, we currently assume that we are using
16572 # Microsoft Visual C++.
16573 # hardcode_libdir_flag_spec is actually meaningless, as there is
16574 # no search path for DLLs.
16575 hardcode_libdir_flag_spec=' '
16576 allow_undefined_flag=unsupported
16577 # Tell ltmain to make .lib files, not .a files.
16578 libext=lib
16579 # Tell ltmain to make .dll files, not .so files.
16580 shrext_cmds=".dll"
16581 # FIXME: Setting linknames here is a bad hack.
16582 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16583 # The linker will automatically build a .lib file if we build a DLL.
16584 old_archive_from_new_cmds='true'
16585 # FIXME: Should let the user specify the lib program.
16586 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
16587 fix_srcfile_path='`cygpath -w "$srcfile"`'
16588 enable_shared_with_static_runtimes=yes
16589 ;;
16590
16591 darwin* | rhapsody*)
16592
16593
16594 archive_cmds_need_lc=no
16595 hardcode_direct=no
16596 hardcode_automatic=yes
16597 hardcode_shlibpath_var=unsupported
16598 if test "$lt_cv_ld_force_load" = "yes"; then
16599 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\"`'
16600 else
16601 whole_archive_flag_spec=''
16602 fi
16603 link_all_deplibs=yes
16604 allow_undefined_flag="$_lt_dar_allow_undefined"
16605 case $cc_basename in
16606 ifort*) _lt_dar_can_shared=yes ;;
16607 *) _lt_dar_can_shared=$GCC ;;
16608 esac
16609 if test "$_lt_dar_can_shared" = "yes"; then
16610 output_verbose_link_cmd=func_echo_all
16611 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16612 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16613 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}"
16614 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}"
16615
16616 else
16617 ld_shlibs=no
16618 fi
16619
16620 ;;
16621
16622 dgux*)
16623 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16624 hardcode_libdir_flag_spec='-L$libdir'
16625 hardcode_shlibpath_var=no
16626 ;;
16627
16628 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16629 # support. Future versions do this automatically, but an explicit c++rt0.o
16630 # does not break anything, and helps significantly (at the cost of a little
16631 # extra space).
16632 freebsd2.2*)
16633 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16634 hardcode_libdir_flag_spec='-R$libdir'
16635 hardcode_direct=yes
16636 hardcode_shlibpath_var=no
16637 ;;
16638
16639 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16640 freebsd2.*)
16641 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16642 hardcode_direct=yes
16643 hardcode_minus_L=yes
16644 hardcode_shlibpath_var=no
16645 ;;
16646
16647 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16648 freebsd* | dragonfly*)
16649 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16650 hardcode_libdir_flag_spec='-R$libdir'
16651 hardcode_direct=yes
16652 hardcode_shlibpath_var=no
16653 ;;
16654
16655 hpux9*)
16656 if test "$GCC" = yes; then
16657 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'
16658 else
16659 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'
16660 fi
16661 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16662 hardcode_libdir_separator=:
16663 hardcode_direct=yes
16664
16665 # hardcode_minus_L: Not really in the search PATH,
16666 # but as the default location of the library.
16667 hardcode_minus_L=yes
16668 export_dynamic_flag_spec='${wl}-E'
16669 ;;
16670
16671 hpux10*)
16672 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16673 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16674 else
16675 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16676 fi
16677 if test "$with_gnu_ld" = no; then
16678 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16679 hardcode_libdir_flag_spec_ld='+b $libdir'
16680 hardcode_libdir_separator=:
16681 hardcode_direct=yes
16682 hardcode_direct_absolute=yes
16683 export_dynamic_flag_spec='${wl}-E'
16684 # hardcode_minus_L: Not really in the search PATH,
16685 # but as the default location of the library.
16686 hardcode_minus_L=yes
16687 fi
16688 ;;
16689
16690 hpux11*)
16691 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16692 case $host_cpu in
16693 hppa*64*)
16694 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16695 ;;
16696 ia64*)
16697 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16698 ;;
16699 *)
16700 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16701 ;;
16702 esac
16703 else
16704 case $host_cpu in
16705 hppa*64*)
16706 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16707 ;;
16708 ia64*)
16709 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16710 ;;
16711 *)
16712
16713 # Older versions of the 11.00 compiler do not understand -b yet
16714 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16716 $as_echo_n "checking if $CC understands -b... " >&6; }
16717 if test "${lt_cv_prog_compiler__b+set}" = set; then :
16718 $as_echo_n "(cached) " >&6
16719 else
16720 lt_cv_prog_compiler__b=no
16721 save_LDFLAGS="$LDFLAGS"
16722 LDFLAGS="$LDFLAGS -b"
16723 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16724 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16725 # The linker can only warn and ignore the option if not recognized
16726 # So say no if there are warnings
16727 if test -s conftest.err; then
16728 # Append any errors to the config.log.
16729 cat conftest.err 1>&5
16730 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16731 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16732 if diff conftest.exp conftest.er2 >/dev/null; then
16733 lt_cv_prog_compiler__b=yes
16734 fi
16735 else
16736 lt_cv_prog_compiler__b=yes
16737 fi
16738 fi
16739 $RM -r conftest*
16740 LDFLAGS="$save_LDFLAGS"
16741
16742 fi
16743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16744 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16745
16746 if test x"$lt_cv_prog_compiler__b" = xyes; then
16747 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16748 else
16749 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16750 fi
16751
16752 ;;
16753 esac
16754 fi
16755 if test "$with_gnu_ld" = no; then
16756 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16757 hardcode_libdir_separator=:
16758
16759 case $host_cpu in
16760 hppa*64*|ia64*)
16761 hardcode_direct=no
16762 hardcode_shlibpath_var=no
16763 ;;
16764 *)
16765 hardcode_direct=yes
16766 hardcode_direct_absolute=yes
16767 export_dynamic_flag_spec='${wl}-E'
16768
16769 # hardcode_minus_L: Not really in the search PATH,
16770 # but as the default location of the library.
16771 hardcode_minus_L=yes
16772 ;;
16773 esac
16774 fi
16775 ;;
16776
16777 irix5* | irix6* | nonstopux*)
16778 if test "$GCC" = yes; then
16779 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'
16780 # Try to use the -exported_symbol ld option, if it does not
16781 # work, assume that -exports_file does not work either and
16782 # implicitly export all symbols.
16783 save_LDFLAGS="$LDFLAGS"
16784 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16786 /* end confdefs.h. */
16787 int foo(void) {}
16788 _ACEOF
16789 if ac_fn_c_try_link "$LINENO"; then :
16790 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'
16791
16792 fi
16793 rm -f core conftest.err conftest.$ac_objext \
16794 conftest$ac_exeext conftest.$ac_ext
16795 LDFLAGS="$save_LDFLAGS"
16796 else
16797 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'
16798 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'
16799 fi
16800 archive_cmds_need_lc='no'
16801 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16802 hardcode_libdir_separator=:
16803 inherit_rpath=yes
16804 link_all_deplibs=yes
16805 ;;
16806
16807 netbsd*)
16808 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16809 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16810 else
16811 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16812 fi
16813 hardcode_libdir_flag_spec='-R$libdir'
16814 hardcode_direct=yes
16815 hardcode_shlibpath_var=no
16816 ;;
16817
16818 newsos6)
16819 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16820 hardcode_direct=yes
16821 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16822 hardcode_libdir_separator=:
16823 hardcode_shlibpath_var=no
16824 ;;
16825
16826 *nto* | *qnx*)
16827 ;;
16828
16829 openbsd*)
16830 if test -f /usr/libexec/ld.so; then
16831 hardcode_direct=yes
16832 hardcode_shlibpath_var=no
16833 hardcode_direct_absolute=yes
16834 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16835 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16836 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16837 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16838 export_dynamic_flag_spec='${wl}-E'
16839 else
16840 case $host_os in
16841 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16842 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16843 hardcode_libdir_flag_spec='-R$libdir'
16844 ;;
16845 *)
16846 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16847 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16848 ;;
16849 esac
16850 fi
16851 else
16852 ld_shlibs=no
16853 fi
16854 ;;
16855
16856 os2*)
16857 hardcode_libdir_flag_spec='-L$libdir'
16858 hardcode_minus_L=yes
16859 allow_undefined_flag=unsupported
16860 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'
16861 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16862 ;;
16863
16864 osf3*)
16865 if test "$GCC" = yes; then
16866 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16867 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'
16868 else
16869 allow_undefined_flag=' -expect_unresolved \*'
16870 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'
16871 fi
16872 archive_cmds_need_lc='no'
16873 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16874 hardcode_libdir_separator=:
16875 ;;
16876
16877 osf4* | osf5*) # as osf3* with the addition of -msym flag
16878 if test "$GCC" = yes; then
16879 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16880 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'
16881 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16882 else
16883 allow_undefined_flag=' -expect_unresolved \*'
16884 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'
16885 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~
16886 $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'
16887
16888 # Both c and cxx compiler support -rpath directly
16889 hardcode_libdir_flag_spec='-rpath $libdir'
16890 fi
16891 archive_cmds_need_lc='no'
16892 hardcode_libdir_separator=:
16893 ;;
16894
16895 solaris*)
16896 no_undefined_flag=' -z defs'
16897 if test "$GCC" = yes; then
16898 wlarc='${wl}'
16899 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16900 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16901 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16902 else
16903 case `$CC -V 2>&1` in
16904 *"Compilers 5.0"*)
16905 wlarc=''
16906 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16907 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16908 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16909 ;;
16910 *)
16911 wlarc='${wl}'
16912 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16913 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16914 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16915 ;;
16916 esac
16917 fi
16918 hardcode_libdir_flag_spec='-R$libdir'
16919 hardcode_shlibpath_var=no
16920 case $host_os in
16921 solaris2.[0-5] | solaris2.[0-5].*) ;;
16922 *)
16923 # The compiler driver will combine and reorder linker options,
16924 # but understands `-z linker_flag'. GCC discards it without `$wl',
16925 # but is careful enough not to reorder.
16926 # Supported since Solaris 2.6 (maybe 2.5.1?)
16927 if test "$GCC" = yes; then
16928 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16929 else
16930 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16931 fi
16932 ;;
16933 esac
16934 link_all_deplibs=yes
16935 ;;
16936
16937 sunos4*)
16938 if test "x$host_vendor" = xsequent; then
16939 # Use $CC to link under sequent, because it throws in some extra .o
16940 # files that make .init and .fini sections work.
16941 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16942 else
16943 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16944 fi
16945 hardcode_libdir_flag_spec='-L$libdir'
16946 hardcode_direct=yes
16947 hardcode_minus_L=yes
16948 hardcode_shlibpath_var=no
16949 ;;
16950
16951 sysv4)
16952 case $host_vendor in
16953 sni)
16954 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16955 hardcode_direct=yes # is this really true???
16956 ;;
16957 siemens)
16958 ## LD is ld it makes a PLAMLIB
16959 ## CC just makes a GrossModule.
16960 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16961 reload_cmds='$CC -r -o $output$reload_objs'
16962 hardcode_direct=no
16963 ;;
16964 motorola)
16965 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16966 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16967 ;;
16968 esac
16969 runpath_var='LD_RUN_PATH'
16970 hardcode_shlibpath_var=no
16971 ;;
16972
16973 sysv4.3*)
16974 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16975 hardcode_shlibpath_var=no
16976 export_dynamic_flag_spec='-Bexport'
16977 ;;
16978
16979 sysv4*MP*)
16980 if test -d /usr/nec; then
16981 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16982 hardcode_shlibpath_var=no
16983 runpath_var=LD_RUN_PATH
16984 hardcode_runpath_var=yes
16985 ld_shlibs=yes
16986 fi
16987 ;;
16988
16989 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16990 no_undefined_flag='${wl}-z,text'
16991 archive_cmds_need_lc=no
16992 hardcode_shlibpath_var=no
16993 runpath_var='LD_RUN_PATH'
16994
16995 if test "$GCC" = yes; then
16996 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16997 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16998 else
16999 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17000 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17001 fi
17002 ;;
17003
17004 sysv5* | sco3.2v5* | sco5v6*)
17005 # Note: We can NOT use -z defs as we might desire, because we do not
17006 # link with -lc, and that would cause any symbols used from libc to
17007 # always be unresolved, which means just about no library would
17008 # ever link correctly. If we're not using GNU ld we use -z text
17009 # though, which does catch some bad symbols but isn't as heavy-handed
17010 # as -z defs.
17011 no_undefined_flag='${wl}-z,text'
17012 allow_undefined_flag='${wl}-z,nodefs'
17013 archive_cmds_need_lc=no
17014 hardcode_shlibpath_var=no
17015 hardcode_libdir_flag_spec='${wl}-R,$libdir'
17016 hardcode_libdir_separator=':'
17017 link_all_deplibs=yes
17018 export_dynamic_flag_spec='${wl}-Bexport'
17019 runpath_var='LD_RUN_PATH'
17020
17021 if test "$GCC" = yes; then
17022 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17023 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17024 else
17025 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17026 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17027 fi
17028 ;;
17029
17030 uts4*)
17031 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17032 hardcode_libdir_flag_spec='-L$libdir'
17033 hardcode_shlibpath_var=no
17034 ;;
17035
17036 *)
17037 ld_shlibs=no
17038 ;;
17039 esac
17040
17041 if test x$host_vendor = xsni; then
17042 case $host in
17043 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17044 export_dynamic_flag_spec='${wl}-Blargedynsym'
17045 ;;
17046 esac
17047 fi
17048 fi
17049
17050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
17051 $as_echo "$ld_shlibs" >&6; }
17052 test "$ld_shlibs" = no && can_build_shared=no
17053
17054 with_gnu_ld=$with_gnu_ld
17055
17056
17057
17058
17059
17060
17061
17062
17063
17064
17065
17066
17067
17068
17069
17070 #
17071 # Do we need to explicitly link libc?
17072 #
17073 case "x$archive_cmds_need_lc" in
17074 x|xyes)
17075 # Assume -lc should be added
17076 archive_cmds_need_lc=yes
17077
17078 if test "$enable_shared" = yes && test "$GCC" = yes; then
17079 case $archive_cmds in
17080 *'~'*)
17081 # FIXME: we may have to deal with multi-command sequences.
17082 ;;
17083 '$CC '*)
17084 # Test whether the compiler implicitly links with -lc since on some
17085 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17086 # to ld, don't add -lc before -lgcc.
17087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17088 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17089 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
17090 $as_echo_n "(cached) " >&6
17091 else
17092 $RM conftest*
17093 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17094
17095 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17096 (eval $ac_compile) 2>&5
17097 ac_status=$?
17098 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17099 test $ac_status = 0; } 2>conftest.err; then
17100 soname=conftest
17101 lib=conftest
17102 libobjs=conftest.$ac_objext
17103 deplibs=
17104 wl=$lt_prog_compiler_wl
17105 pic_flag=$lt_prog_compiler_pic
17106 compiler_flags=-v
17107 linker_flags=-v
17108 verstring=
17109 output_objdir=.
17110 libname=conftest
17111 lt_save_allow_undefined_flag=$allow_undefined_flag
17112 allow_undefined_flag=
17113 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17114 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17115 ac_status=$?
17116 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17117 test $ac_status = 0; }
17118 then
17119 lt_cv_archive_cmds_need_lc=no
17120 else
17121 lt_cv_archive_cmds_need_lc=yes
17122 fi
17123 allow_undefined_flag=$lt_save_allow_undefined_flag
17124 else
17125 cat conftest.err 1>&5
17126 fi
17127 $RM conftest*
17128
17129 fi
17130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
17131 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
17132 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
17133 ;;
17134 esac
17135 fi
17136 ;;
17137 esac
17138
17139
17140
17141
17142
17143
17144
17145
17146
17147
17148
17149
17150
17151
17152
17153
17154
17155
17156
17157
17158
17159
17160
17161
17162
17163
17164
17165
17166
17167
17168
17169
17170
17171
17172
17173
17174
17175
17176
17177
17178
17179
17180
17181
17182
17183
17184
17185
17186
17187
17188
17189
17190
17191
17192
17193
17194
17195
17196
17197
17198
17199
17200
17201
17202
17203
17204
17205
17206
17207
17208
17209
17210
17211
17212
17213
17214
17215
17216
17217
17218
17219
17220
17221
17222
17223
17224
17225
17226
17227
17228
17229
17230
17231
17232
17233
17234
17235
17236
17237
17238
17239
17240
17241
17242
17243
17244
17245
17246
17247
17248
17249
17250
17251
17252
17253
17254
17255
17256
17257
17258
17259
17260
17261
17262
17263
17264
17265
17266
17267
17268
17269
17270
17271
17272
17273
17274
17275
17276
17277
17278
17279
17280
17281
17282
17283
17284
17285
17286
17287
17288
17289
17290
17291
17292
17293
17294
17295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17296 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17297
17298 if test "$GCC" = yes; then
17299 case $host_os in
17300 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
17301 *) lt_awk_arg="/^libraries:/" ;;
17302 esac
17303 case $host_os in
17304 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
17305 *) lt_sed_strip_eq="s,=/,/,g" ;;
17306 esac
17307 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
17308 case $lt_search_path_spec in
17309 *\;*)
17310 # if the path contains ";" then we assume it to be the separator
17311 # otherwise default to the standard path separator (i.e. ":") - it is
17312 # assumed that no part of a normal pathname contains ";" but that should
17313 # okay in the real world where ";" in dirpaths is itself problematic.
17314 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
17315 ;;
17316 *)
17317 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
17318 ;;
17319 esac
17320 # Ok, now we have the path, separated by spaces, we can step through it
17321 # and add multilib dir if necessary.
17322 lt_tmp_lt_search_path_spec=
17323 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
17324 for lt_sys_path in $lt_search_path_spec; do
17325 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
17326 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
17327 else
17328 test -d "$lt_sys_path" && \
17329 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
17330 fi
17331 done
17332 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
17333 BEGIN {RS=" "; FS="/|\n";} {
17334 lt_foo="";
17335 lt_count=0;
17336 for (lt_i = NF; lt_i > 0; lt_i--) {
17337 if ($lt_i != "" && $lt_i != ".") {
17338 if ($lt_i == "..") {
17339 lt_count++;
17340 } else {
17341 if (lt_count == 0) {
17342 lt_foo="/" $lt_i lt_foo;
17343 } else {
17344 lt_count--;
17345 }
17346 }
17347 }
17348 }
17349 if (lt_foo != "") { lt_freq[lt_foo]++; }
17350 if (lt_freq[lt_foo] == 1) { print lt_foo; }
17351 }'`
17352 # AWK program above erroneously prepends '/' to C:/dos/paths
17353 # for these hosts.
17354 case $host_os in
17355 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
17356 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
17357 esac
17358 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
17359 else
17360 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17361 fi
17362 library_names_spec=
17363 libname_spec='lib$name'
17364 soname_spec=
17365 shrext_cmds=".so"
17366 postinstall_cmds=
17367 postuninstall_cmds=
17368 finish_cmds=
17369 finish_eval=
17370 shlibpath_var=
17371 shlibpath_overrides_runpath=unknown
17372 version_type=none
17373 dynamic_linker="$host_os ld.so"
17374 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17375 need_lib_prefix=unknown
17376 hardcode_into_libs=no
17377
17378 # when you set need_version to no, make sure it does not cause -set_version
17379 # flags to be left without arguments
17380 need_version=unknown
17381
17382 case $host_os in
17383 aix3*)
17384 version_type=linux
17385 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17386 shlibpath_var=LIBPATH
17387
17388 # AIX 3 has no versioning support, so we append a major version to the name.
17389 soname_spec='${libname}${release}${shared_ext}$major'
17390 ;;
17391
17392 aix[4-9]*)
17393 version_type=linux
17394 need_lib_prefix=no
17395 need_version=no
17396 hardcode_into_libs=yes
17397 if test "$host_cpu" = ia64; then
17398 # AIX 5 supports IA64
17399 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17400 shlibpath_var=LD_LIBRARY_PATH
17401 else
17402 # With GCC up to 2.95.x, collect2 would create an import file
17403 # for dependence libraries. The import file would start with
17404 # the line `#! .'. This would cause the generated library to
17405 # depend on `.', always an invalid library. This was fixed in
17406 # development snapshots of GCC prior to 3.0.
17407 case $host_os in
17408 aix4 | aix4.[01] | aix4.[01].*)
17409 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17410 echo ' yes '
17411 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
17412 :
17413 else
17414 can_build_shared=no
17415 fi
17416 ;;
17417 esac
17418 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17419 # soname into executable. Probably we can add versioning support to
17420 # collect2, so additional links can be useful in future.
17421 if test "$aix_use_runtimelinking" = yes; then
17422 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17423 # instead of lib<name>.a to let people know that these are not
17424 # typical AIX shared libraries.
17425 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17426 else
17427 # We preserve .a as extension for shared libraries through AIX4.2
17428 # and later when we are not doing run time linking.
17429 library_names_spec='${libname}${release}.a $libname.a'
17430 soname_spec='${libname}${release}${shared_ext}$major'
17431 fi
17432 shlibpath_var=LIBPATH
17433 fi
17434 ;;
17435
17436 amigaos*)
17437 case $host_cpu in
17438 powerpc)
17439 # Since July 2007 AmigaOS4 officially supports .so libraries.
17440 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17442 ;;
17443 m68k)
17444 library_names_spec='$libname.ixlibrary $libname.a'
17445 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17446 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'
17447 ;;
17448 esac
17449 ;;
17450
17451 beos*)
17452 library_names_spec='${libname}${shared_ext}'
17453 dynamic_linker="$host_os ld.so"
17454 shlibpath_var=LIBRARY_PATH
17455 ;;
17456
17457 bsdi[45]*)
17458 version_type=linux
17459 need_version=no
17460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17461 soname_spec='${libname}${release}${shared_ext}$major'
17462 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17463 shlibpath_var=LD_LIBRARY_PATH
17464 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17465 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17466 # the default ld.so.conf also contains /usr/contrib/lib and
17467 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17468 # libtool to hard-code these into programs
17469 ;;
17470
17471 cygwin* | mingw* | pw32* | cegcc*)
17472 version_type=windows
17473 shrext_cmds=".dll"
17474 need_version=no
17475 need_lib_prefix=no
17476
17477 case $GCC,$host_os in
17478 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
17479 library_names_spec='$libname.dll.a'
17480 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17481 postinstall_cmds='base_file=`basename \${file}`~
17482 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17483 dldir=$destdir/`dirname \$dlpath`~
17484 test -d \$dldir || mkdir -p \$dldir~
17485 $install_prog $dir/$dlname \$dldir/$dlname~
17486 chmod a+x \$dldir/$dlname~
17487 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17488 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17489 fi'
17490 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17491 dlpath=$dir/\$dldll~
17492 $RM \$dlpath'
17493 shlibpath_overrides_runpath=yes
17494
17495 case $host_os in
17496 cygwin*)
17497 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17498 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17499
17500 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
17501 ;;
17502 mingw* | cegcc*)
17503 # MinGW DLLs use traditional 'lib' prefix
17504 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17505 ;;
17506 pw32*)
17507 # pw32 DLLs use 'pw' prefix rather than 'lib'
17508 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17509 ;;
17510 esac
17511 ;;
17512
17513 *)
17514 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17515 ;;
17516 esac
17517 dynamic_linker='Win32 ld.exe'
17518 # FIXME: first we should search . and the directory the executable is in
17519 shlibpath_var=PATH
17520 ;;
17521
17522 darwin* | rhapsody*)
17523 dynamic_linker="$host_os dyld"
17524 version_type=darwin
17525 need_lib_prefix=no
17526 need_version=no
17527 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17528 soname_spec='${libname}${release}${major}$shared_ext'
17529 shlibpath_overrides_runpath=yes
17530 shlibpath_var=DYLD_LIBRARY_PATH
17531 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17532
17533 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
17534 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17535 ;;
17536
17537 dgux*)
17538 version_type=linux
17539 need_lib_prefix=no
17540 need_version=no
17541 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17542 soname_spec='${libname}${release}${shared_ext}$major'
17543 shlibpath_var=LD_LIBRARY_PATH
17544 ;;
17545
17546 freebsd* | dragonfly*)
17547 # DragonFly does not have aout. When/if they implement a new
17548 # versioning mechanism, adjust this.
17549 if test -x /usr/bin/objformat; then
17550 objformat=`/usr/bin/objformat`
17551 else
17552 case $host_os in
17553 freebsd[23].*) objformat=aout ;;
17554 *) objformat=elf ;;
17555 esac
17556 fi
17557 version_type=freebsd-$objformat
17558 case $version_type in
17559 freebsd-elf*)
17560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17561 need_version=no
17562 need_lib_prefix=no
17563 ;;
17564 freebsd-*)
17565 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17566 need_version=yes
17567 ;;
17568 esac
17569 shlibpath_var=LD_LIBRARY_PATH
17570 case $host_os in
17571 freebsd2.*)
17572 shlibpath_overrides_runpath=yes
17573 ;;
17574 freebsd3.[01]* | freebsdelf3.[01]*)
17575 shlibpath_overrides_runpath=yes
17576 hardcode_into_libs=yes
17577 ;;
17578 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17579 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17580 shlibpath_overrides_runpath=no
17581 hardcode_into_libs=yes
17582 ;;
17583 *) # from 4.6 on, and DragonFly
17584 shlibpath_overrides_runpath=yes
17585 hardcode_into_libs=yes
17586 ;;
17587 esac
17588 ;;
17589
17590 gnu*)
17591 version_type=linux
17592 need_lib_prefix=no
17593 need_version=no
17594 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17595 soname_spec='${libname}${release}${shared_ext}$major'
17596 shlibpath_var=LD_LIBRARY_PATH
17597 hardcode_into_libs=yes
17598 ;;
17599
17600 haiku*)
17601 version_type=linux
17602 need_lib_prefix=no
17603 need_version=no
17604 dynamic_linker="$host_os runtime_loader"
17605 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17606 soname_spec='${libname}${release}${shared_ext}$major'
17607 shlibpath_var=LIBRARY_PATH
17608 shlibpath_overrides_runpath=yes
17609 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
17610 hardcode_into_libs=yes
17611 ;;
17612
17613 hpux9* | hpux10* | hpux11*)
17614 # Give a soname corresponding to the major version so that dld.sl refuses to
17615 # link against other versions.
17616 version_type=sunos
17617 need_lib_prefix=no
17618 need_version=no
17619 case $host_cpu in
17620 ia64*)
17621 shrext_cmds='.so'
17622 hardcode_into_libs=yes
17623 dynamic_linker="$host_os dld.so"
17624 shlibpath_var=LD_LIBRARY_PATH
17625 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17626 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17627 soname_spec='${libname}${release}${shared_ext}$major'
17628 if test "X$HPUX_IA64_MODE" = X32; then
17629 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17630 else
17631 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17632 fi
17633 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17634 ;;
17635 hppa*64*)
17636 shrext_cmds='.sl'
17637 hardcode_into_libs=yes
17638 dynamic_linker="$host_os dld.sl"
17639 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17640 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17641 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17642 soname_spec='${libname}${release}${shared_ext}$major'
17643 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17644 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17645 ;;
17646 *)
17647 shrext_cmds='.sl'
17648 dynamic_linker="$host_os dld.sl"
17649 shlibpath_var=SHLIB_PATH
17650 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17652 soname_spec='${libname}${release}${shared_ext}$major'
17653 ;;
17654 esac
17655 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17656 postinstall_cmds='chmod 555 $lib'
17657 # or fails outright, so override atomically:
17658 install_override_mode=555
17659 ;;
17660
17661 interix[3-9]*)
17662 version_type=linux
17663 need_lib_prefix=no
17664 need_version=no
17665 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17666 soname_spec='${libname}${release}${shared_ext}$major'
17667 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17668 shlibpath_var=LD_LIBRARY_PATH
17669 shlibpath_overrides_runpath=no
17670 hardcode_into_libs=yes
17671 ;;
17672
17673 irix5* | irix6* | nonstopux*)
17674 case $host_os in
17675 nonstopux*) version_type=nonstopux ;;
17676 *)
17677 if test "$lt_cv_prog_gnu_ld" = yes; then
17678 version_type=linux
17679 else
17680 version_type=irix
17681 fi ;;
17682 esac
17683 need_lib_prefix=no
17684 need_version=no
17685 soname_spec='${libname}${release}${shared_ext}$major'
17686 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17687 case $host_os in
17688 irix5* | nonstopux*)
17689 libsuff= shlibsuff=
17690 ;;
17691 *)
17692 case $LD in # libtool.m4 will add one of these switches to LD
17693 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17694 libsuff= shlibsuff= libmagic=32-bit;;
17695 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17696 libsuff=32 shlibsuff=N32 libmagic=N32;;
17697 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17698 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17699 *) libsuff= shlibsuff= libmagic=never-match;;
17700 esac
17701 ;;
17702 esac
17703 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17704 shlibpath_overrides_runpath=no
17705 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17706 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17707 hardcode_into_libs=yes
17708 ;;
17709
17710 # No shared lib support for Linux oldld, aout, or coff.
17711 linux*oldld* | linux*aout* | linux*coff*)
17712 dynamic_linker=no
17713 ;;
17714
17715 # This must be Linux ELF.
17716 linux* | k*bsd*-gnu | kopensolaris*-gnu)
17717 version_type=linux
17718 need_lib_prefix=no
17719 need_version=no
17720 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17721 soname_spec='${libname}${release}${shared_ext}$major'
17722 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17723 shlibpath_var=LD_LIBRARY_PATH
17724 shlibpath_overrides_runpath=no
17725
17726 # Some binutils ld are patched to set DT_RUNPATH
17727 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
17728 $as_echo_n "(cached) " >&6
17729 else
17730 lt_cv_shlibpath_overrides_runpath=no
17731 save_LDFLAGS=$LDFLAGS
17732 save_libdir=$libdir
17733 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17734 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17736 /* end confdefs.h. */
17737
17738 int
17739 main ()
17740 {
17741
17742 ;
17743 return 0;
17744 }
17745 _ACEOF
17746 if ac_fn_c_try_link "$LINENO"; then :
17747 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17748 lt_cv_shlibpath_overrides_runpath=yes
17749 fi
17750 fi
17751 rm -f core conftest.err conftest.$ac_objext \
17752 conftest$ac_exeext conftest.$ac_ext
17753 LDFLAGS=$save_LDFLAGS
17754 libdir=$save_libdir
17755
17756 fi
17757
17758 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17759
17760 # This implies no fast_install, which is unacceptable.
17761 # Some rework will be needed to allow for fast_install
17762 # before this can be enabled.
17763 hardcode_into_libs=yes
17764
17765 # Append ld.so.conf contents to the search path
17766 if test -f /etc/ld.so.conf; then
17767 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' ' '`
17768 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17769 fi
17770
17771 # We used to test for /lib/ld.so.1 and disable shared libraries on
17772 # powerpc, because MkLinux only supported shared libraries with the
17773 # GNU dynamic linker. Since this was broken with cross compilers,
17774 # most powerpc-linux boxes support dynamic linking these days and
17775 # people can always --disable-shared, the test was removed, and we
17776 # assume the GNU/Linux dynamic linker is in use.
17777 dynamic_linker='GNU/Linux ld.so'
17778 ;;
17779
17780 netbsd*)
17781 version_type=sunos
17782 need_lib_prefix=no
17783 need_version=no
17784 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17785 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17786 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17787 dynamic_linker='NetBSD (a.out) ld.so'
17788 else
17789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17790 soname_spec='${libname}${release}${shared_ext}$major'
17791 dynamic_linker='NetBSD ld.elf_so'
17792 fi
17793 shlibpath_var=LD_LIBRARY_PATH
17794 shlibpath_overrides_runpath=yes
17795 hardcode_into_libs=yes
17796 ;;
17797
17798 newsos6)
17799 version_type=linux
17800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17801 shlibpath_var=LD_LIBRARY_PATH
17802 shlibpath_overrides_runpath=yes
17803 ;;
17804
17805 *nto* | *qnx*)
17806 version_type=qnx
17807 need_lib_prefix=no
17808 need_version=no
17809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17810 soname_spec='${libname}${release}${shared_ext}$major'
17811 shlibpath_var=LD_LIBRARY_PATH
17812 shlibpath_overrides_runpath=no
17813 hardcode_into_libs=yes
17814 dynamic_linker='ldqnx.so'
17815 ;;
17816
17817 openbsd*)
17818 version_type=sunos
17819 sys_lib_dlsearch_path_spec="/usr/lib"
17820 need_lib_prefix=no
17821 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17822 case $host_os in
17823 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17824 *) need_version=no ;;
17825 esac
17826 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17827 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17828 shlibpath_var=LD_LIBRARY_PATH
17829 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17830 case $host_os in
17831 openbsd2.[89] | openbsd2.[89].*)
17832 shlibpath_overrides_runpath=no
17833 ;;
17834 *)
17835 shlibpath_overrides_runpath=yes
17836 ;;
17837 esac
17838 else
17839 shlibpath_overrides_runpath=yes
17840 fi
17841 ;;
17842
17843 os2*)
17844 libname_spec='$name'
17845 shrext_cmds=".dll"
17846 need_lib_prefix=no
17847 library_names_spec='$libname${shared_ext} $libname.a'
17848 dynamic_linker='OS/2 ld.exe'
17849 shlibpath_var=LIBPATH
17850 ;;
17851
17852 osf3* | osf4* | osf5*)
17853 version_type=osf
17854 need_lib_prefix=no
17855 need_version=no
17856 soname_spec='${libname}${release}${shared_ext}$major'
17857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17858 shlibpath_var=LD_LIBRARY_PATH
17859 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17860 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17861 ;;
17862
17863 rdos*)
17864 dynamic_linker=no
17865 ;;
17866
17867 solaris*)
17868 version_type=linux
17869 need_lib_prefix=no
17870 need_version=no
17871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17872 soname_spec='${libname}${release}${shared_ext}$major'
17873 shlibpath_var=LD_LIBRARY_PATH
17874 shlibpath_overrides_runpath=yes
17875 hardcode_into_libs=yes
17876 # ldd complains unless libraries are executable
17877 postinstall_cmds='chmod +x $lib'
17878 ;;
17879
17880 sunos4*)
17881 version_type=sunos
17882 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17883 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17884 shlibpath_var=LD_LIBRARY_PATH
17885 shlibpath_overrides_runpath=yes
17886 if test "$with_gnu_ld" = yes; then
17887 need_lib_prefix=no
17888 fi
17889 need_version=yes
17890 ;;
17891
17892 sysv4 | sysv4.3*)
17893 version_type=linux
17894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17895 soname_spec='${libname}${release}${shared_ext}$major'
17896 shlibpath_var=LD_LIBRARY_PATH
17897 case $host_vendor in
17898 sni)
17899 shlibpath_overrides_runpath=no
17900 need_lib_prefix=no
17901 runpath_var=LD_RUN_PATH
17902 ;;
17903 siemens)
17904 need_lib_prefix=no
17905 ;;
17906 motorola)
17907 need_lib_prefix=no
17908 need_version=no
17909 shlibpath_overrides_runpath=no
17910 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17911 ;;
17912 esac
17913 ;;
17914
17915 sysv4*MP*)
17916 if test -d /usr/nec ;then
17917 version_type=linux
17918 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17919 soname_spec='$libname${shared_ext}.$major'
17920 shlibpath_var=LD_LIBRARY_PATH
17921 fi
17922 ;;
17923
17924 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17925 version_type=freebsd-elf
17926 need_lib_prefix=no
17927 need_version=no
17928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17929 soname_spec='${libname}${release}${shared_ext}$major'
17930 shlibpath_var=LD_LIBRARY_PATH
17931 shlibpath_overrides_runpath=yes
17932 hardcode_into_libs=yes
17933 if test "$with_gnu_ld" = yes; then
17934 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17935 else
17936 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17937 case $host_os in
17938 sco3.2v5*)
17939 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17940 ;;
17941 esac
17942 fi
17943 sys_lib_dlsearch_path_spec='/usr/lib'
17944 ;;
17945
17946 tpf*)
17947 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17948 version_type=linux
17949 need_lib_prefix=no
17950 need_version=no
17951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17952 shlibpath_var=LD_LIBRARY_PATH
17953 shlibpath_overrides_runpath=no
17954 hardcode_into_libs=yes
17955 ;;
17956
17957 uts4*)
17958 version_type=linux
17959 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17960 soname_spec='${libname}${release}${shared_ext}$major'
17961 shlibpath_var=LD_LIBRARY_PATH
17962 ;;
17963
17964 *)
17965 dynamic_linker=no
17966 ;;
17967 esac
17968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17969 $as_echo "$dynamic_linker" >&6; }
17970 test "$dynamic_linker" = no && can_build_shared=no
17971
17972 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17973 if test "$GCC" = yes; then
17974 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17975 fi
17976
17977 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17978 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17979 fi
17980 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17981 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17982 fi
17983
17984
17985
17986
17987
17988
17989
17990
17991
17992
17993
17994
17995
17996
17997
17998
17999
18000
18001
18002
18003
18004
18005
18006
18007
18008
18009
18010
18011
18012
18013
18014
18015
18016
18017
18018
18019
18020
18021
18022
18023
18024
18025
18026
18027
18028
18029
18030
18031
18032
18033
18034
18035
18036
18037
18038
18039
18040
18041
18042
18043
18044
18045
18046
18047
18048
18049
18050
18051
18052
18053
18054
18055
18056
18057
18058
18059
18060
18061
18062
18063
18064
18065
18066
18067
18068
18069
18070
18071
18072
18073
18074
18075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18076 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18077 hardcode_action=
18078 if test -n "$hardcode_libdir_flag_spec" ||
18079 test -n "$runpath_var" ||
18080 test "X$hardcode_automatic" = "Xyes" ; then
18081
18082 # We can hardcode non-existent directories.
18083 if test "$hardcode_direct" != no &&
18084 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18085 # have to relink, otherwise we might link with an installed library
18086 # when we should be linking with a yet-to-be-installed one
18087 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
18088 test "$hardcode_minus_L" != no; then
18089 # Linking always hardcodes the temporary library directory.
18090 hardcode_action=relink
18091 else
18092 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18093 hardcode_action=immediate
18094 fi
18095 else
18096 # We cannot hardcode anything, or else we can only hardcode existing
18097 # directories.
18098 hardcode_action=unsupported
18099 fi
18100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
18101 $as_echo "$hardcode_action" >&6; }
18102
18103 if test "$hardcode_action" = relink ||
18104 test "$inherit_rpath" = yes; then
18105 # Fast installation is not supported
18106 enable_fast_install=no
18107 elif test "$shlibpath_overrides_runpath" = yes ||
18108 test "$enable_shared" = no; then
18109 # Fast installation is not necessary
18110 enable_fast_install=needless
18111 fi
18112
18113
18114
18115
18116
18117
18118 if test "x$enable_dlopen" != xyes; then
18119 enable_dlopen=unknown
18120 enable_dlopen_self=unknown
18121 enable_dlopen_self_static=unknown
18122 else
18123 lt_cv_dlopen=no
18124 lt_cv_dlopen_libs=
18125
18126 case $host_os in
18127 beos*)
18128 lt_cv_dlopen="load_add_on"
18129 lt_cv_dlopen_libs=
18130 lt_cv_dlopen_self=yes
18131 ;;
18132
18133 mingw* | pw32* | cegcc*)
18134 lt_cv_dlopen="LoadLibrary"
18135 lt_cv_dlopen_libs=
18136 ;;
18137
18138 cygwin*)
18139 lt_cv_dlopen="dlopen"
18140 lt_cv_dlopen_libs=
18141 ;;
18142
18143 darwin*)
18144 # if libdl is installed we need to link against it
18145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18146 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18147 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
18148 $as_echo_n "(cached) " >&6
18149 else
18150 ac_check_lib_save_LIBS=$LIBS
18151 LIBS="-ldl $LIBS"
18152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18153 /* end confdefs.h. */
18154
18155 /* Override any GCC internal prototype to avoid an error.
18156 Use char because int might match the return type of a GCC
18157 builtin and then its argument prototype would still apply. */
18158 #ifdef __cplusplus
18159 extern "C"
18160 #endif
18161 char dlopen ();
18162 int
18163 main ()
18164 {
18165 return dlopen ();
18166 ;
18167 return 0;
18168 }
18169 _ACEOF
18170 if ac_fn_c_try_link "$LINENO"; then :
18171 ac_cv_lib_dl_dlopen=yes
18172 else
18173 ac_cv_lib_dl_dlopen=no
18174 fi
18175 rm -f core conftest.err conftest.$ac_objext \
18176 conftest$ac_exeext conftest.$ac_ext
18177 LIBS=$ac_check_lib_save_LIBS
18178 fi
18179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18180 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18181 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
18182 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18183 else
18184
18185 lt_cv_dlopen="dyld"
18186 lt_cv_dlopen_libs=
18187 lt_cv_dlopen_self=yes
18188
18189 fi
18190
18191 ;;
18192
18193 *)
18194 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
18195 if test "x$ac_cv_func_shl_load" = x""yes; then :
18196 lt_cv_dlopen="shl_load"
18197 else
18198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
18199 $as_echo_n "checking for shl_load in -ldld... " >&6; }
18200 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
18201 $as_echo_n "(cached) " >&6
18202 else
18203 ac_check_lib_save_LIBS=$LIBS
18204 LIBS="-ldld $LIBS"
18205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18206 /* end confdefs.h. */
18207
18208 /* Override any GCC internal prototype to avoid an error.
18209 Use char because int might match the return type of a GCC
18210 builtin and then its argument prototype would still apply. */
18211 #ifdef __cplusplus
18212 extern "C"
18213 #endif
18214 char shl_load ();
18215 int
18216 main ()
18217 {
18218 return shl_load ();
18219 ;
18220 return 0;
18221 }
18222 _ACEOF
18223 if ac_fn_c_try_link "$LINENO"; then :
18224 ac_cv_lib_dld_shl_load=yes
18225 else
18226 ac_cv_lib_dld_shl_load=no
18227 fi
18228 rm -f core conftest.err conftest.$ac_objext \
18229 conftest$ac_exeext conftest.$ac_ext
18230 LIBS=$ac_check_lib_save_LIBS
18231 fi
18232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
18233 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
18234 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
18235 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
18236 else
18237 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
18238 if test "x$ac_cv_func_dlopen" = x""yes; then :
18239 lt_cv_dlopen="dlopen"
18240 else
18241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18242 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18243 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
18244 $as_echo_n "(cached) " >&6
18245 else
18246 ac_check_lib_save_LIBS=$LIBS
18247 LIBS="-ldl $LIBS"
18248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18249 /* end confdefs.h. */
18250
18251 /* Override any GCC internal prototype to avoid an error.
18252 Use char because int might match the return type of a GCC
18253 builtin and then its argument prototype would still apply. */
18254 #ifdef __cplusplus
18255 extern "C"
18256 #endif
18257 char dlopen ();
18258 int
18259 main ()
18260 {
18261 return dlopen ();
18262 ;
18263 return 0;
18264 }
18265 _ACEOF
18266 if ac_fn_c_try_link "$LINENO"; then :
18267 ac_cv_lib_dl_dlopen=yes
18268 else
18269 ac_cv_lib_dl_dlopen=no
18270 fi
18271 rm -f core conftest.err conftest.$ac_objext \
18272 conftest$ac_exeext conftest.$ac_ext
18273 LIBS=$ac_check_lib_save_LIBS
18274 fi
18275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18276 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18277 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
18278 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18279 else
18280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
18281 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
18282 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
18283 $as_echo_n "(cached) " >&6
18284 else
18285 ac_check_lib_save_LIBS=$LIBS
18286 LIBS="-lsvld $LIBS"
18287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18288 /* end confdefs.h. */
18289
18290 /* Override any GCC internal prototype to avoid an error.
18291 Use char because int might match the return type of a GCC
18292 builtin and then its argument prototype would still apply. */
18293 #ifdef __cplusplus
18294 extern "C"
18295 #endif
18296 char dlopen ();
18297 int
18298 main ()
18299 {
18300 return dlopen ();
18301 ;
18302 return 0;
18303 }
18304 _ACEOF
18305 if ac_fn_c_try_link "$LINENO"; then :
18306 ac_cv_lib_svld_dlopen=yes
18307 else
18308 ac_cv_lib_svld_dlopen=no
18309 fi
18310 rm -f core conftest.err conftest.$ac_objext \
18311 conftest$ac_exeext conftest.$ac_ext
18312 LIBS=$ac_check_lib_save_LIBS
18313 fi
18314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
18315 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
18316 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
18317 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18318 else
18319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
18320 $as_echo_n "checking for dld_link in -ldld... " >&6; }
18321 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
18322 $as_echo_n "(cached) " >&6
18323 else
18324 ac_check_lib_save_LIBS=$LIBS
18325 LIBS="-ldld $LIBS"
18326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18327 /* end confdefs.h. */
18328
18329 /* Override any GCC internal prototype to avoid an error.
18330 Use char because int might match the return type of a GCC
18331 builtin and then its argument prototype would still apply. */
18332 #ifdef __cplusplus
18333 extern "C"
18334 #endif
18335 char dld_link ();
18336 int
18337 main ()
18338 {
18339 return dld_link ();
18340 ;
18341 return 0;
18342 }
18343 _ACEOF
18344 if ac_fn_c_try_link "$LINENO"; then :
18345 ac_cv_lib_dld_dld_link=yes
18346 else
18347 ac_cv_lib_dld_dld_link=no
18348 fi
18349 rm -f core conftest.err conftest.$ac_objext \
18350 conftest$ac_exeext conftest.$ac_ext
18351 LIBS=$ac_check_lib_save_LIBS
18352 fi
18353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
18354 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
18355 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
18356 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
18357 fi
18358
18359
18360 fi
18361
18362
18363 fi
18364
18365
18366 fi
18367
18368
18369 fi
18370
18371
18372 fi
18373
18374 ;;
18375 esac
18376
18377 if test "x$lt_cv_dlopen" != xno; then
18378 enable_dlopen=yes
18379 else
18380 enable_dlopen=no
18381 fi
18382
18383 case $lt_cv_dlopen in
18384 dlopen)
18385 save_CPPFLAGS="$CPPFLAGS"
18386 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18387
18388 save_LDFLAGS="$LDFLAGS"
18389 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18390
18391 save_LIBS="$LIBS"
18392 LIBS="$lt_cv_dlopen_libs $LIBS"
18393
18394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
18395 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
18396 if test "${lt_cv_dlopen_self+set}" = set; then :
18397 $as_echo_n "(cached) " >&6
18398 else
18399 if test "$cross_compiling" = yes; then :
18400 lt_cv_dlopen_self=cross
18401 else
18402 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18403 lt_status=$lt_dlunknown
18404 cat > conftest.$ac_ext <<_LT_EOF
18405 #line 18405 "configure"
18406 #include "confdefs.h"
18407
18408 #if HAVE_DLFCN_H
18409 #include <dlfcn.h>
18410 #endif
18411
18412 #include <stdio.h>
18413
18414 #ifdef RTLD_GLOBAL
18415 # define LT_DLGLOBAL RTLD_GLOBAL
18416 #else
18417 # ifdef DL_GLOBAL
18418 # define LT_DLGLOBAL DL_GLOBAL
18419 # else
18420 # define LT_DLGLOBAL 0
18421 # endif
18422 #endif
18423
18424 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18425 find out it does not work in some platform. */
18426 #ifndef LT_DLLAZY_OR_NOW
18427 # ifdef RTLD_LAZY
18428 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18429 # else
18430 # ifdef DL_LAZY
18431 # define LT_DLLAZY_OR_NOW DL_LAZY
18432 # else
18433 # ifdef RTLD_NOW
18434 # define LT_DLLAZY_OR_NOW RTLD_NOW
18435 # else
18436 # ifdef DL_NOW
18437 # define LT_DLLAZY_OR_NOW DL_NOW
18438 # else
18439 # define LT_DLLAZY_OR_NOW 0
18440 # endif
18441 # endif
18442 # endif
18443 # endif
18444 #endif
18445
18446 /* When -fvisbility=hidden is used, assume the code has been annotated
18447 correspondingly for the symbols needed. */
18448 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18449 void fnord () __attribute__((visibility("default")));
18450 #endif
18451
18452 void fnord () { int i=42; }
18453 int main ()
18454 {
18455 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18456 int status = $lt_dlunknown;
18457
18458 if (self)
18459 {
18460 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18461 else
18462 {
18463 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18464 else puts (dlerror ());
18465 }
18466 /* dlclose (self); */
18467 }
18468 else
18469 puts (dlerror ());
18470
18471 return status;
18472 }
18473 _LT_EOF
18474 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18475 (eval $ac_link) 2>&5
18476 ac_status=$?
18477 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18478 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18479 (./conftest; exit; ) >&5 2>/dev/null
18480 lt_status=$?
18481 case x$lt_status in
18482 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18483 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18484 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
18485 esac
18486 else :
18487 # compilation failed
18488 lt_cv_dlopen_self=no
18489 fi
18490 fi
18491 rm -fr conftest*
18492
18493
18494 fi
18495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18496 $as_echo "$lt_cv_dlopen_self" >&6; }
18497
18498 if test "x$lt_cv_dlopen_self" = xyes; then
18499 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
18500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18501 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18502 if test "${lt_cv_dlopen_self_static+set}" = set; then :
18503 $as_echo_n "(cached) " >&6
18504 else
18505 if test "$cross_compiling" = yes; then :
18506 lt_cv_dlopen_self_static=cross
18507 else
18508 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18509 lt_status=$lt_dlunknown
18510 cat > conftest.$ac_ext <<_LT_EOF
18511 #line 18511 "configure"
18512 #include "confdefs.h"
18513
18514 #if HAVE_DLFCN_H
18515 #include <dlfcn.h>
18516 #endif
18517
18518 #include <stdio.h>
18519
18520 #ifdef RTLD_GLOBAL
18521 # define LT_DLGLOBAL RTLD_GLOBAL
18522 #else
18523 # ifdef DL_GLOBAL
18524 # define LT_DLGLOBAL DL_GLOBAL
18525 # else
18526 # define LT_DLGLOBAL 0
18527 # endif
18528 #endif
18529
18530 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18531 find out it does not work in some platform. */
18532 #ifndef LT_DLLAZY_OR_NOW
18533 # ifdef RTLD_LAZY
18534 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18535 # else
18536 # ifdef DL_LAZY
18537 # define LT_DLLAZY_OR_NOW DL_LAZY
18538 # else
18539 # ifdef RTLD_NOW
18540 # define LT_DLLAZY_OR_NOW RTLD_NOW
18541 # else
18542 # ifdef DL_NOW
18543 # define LT_DLLAZY_OR_NOW DL_NOW
18544 # else
18545 # define LT_DLLAZY_OR_NOW 0
18546 # endif
18547 # endif
18548 # endif
18549 # endif
18550 #endif
18551
18552 /* When -fvisbility=hidden is used, assume the code has been annotated
18553 correspondingly for the symbols needed. */
18554 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18555 void fnord () __attribute__((visibility("default")));
18556 #endif
18557
18558 void fnord () { int i=42; }
18559 int main ()
18560 {
18561 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18562 int status = $lt_dlunknown;
18563
18564 if (self)
18565 {
18566 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18567 else
18568 {
18569 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18570 else puts (dlerror ());
18571 }
18572 /* dlclose (self); */
18573 }
18574 else
18575 puts (dlerror ());
18576
18577 return status;
18578 }
18579 _LT_EOF
18580 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18581 (eval $ac_link) 2>&5
18582 ac_status=$?
18583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18584 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18585 (./conftest; exit; ) >&5 2>/dev/null
18586 lt_status=$?
18587 case x$lt_status in
18588 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18589 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18590 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
18591 esac
18592 else :
18593 # compilation failed
18594 lt_cv_dlopen_self_static=no
18595 fi
18596 fi
18597 rm -fr conftest*
18598
18599
18600 fi
18601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18602 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18603 fi
18604
18605 CPPFLAGS="$save_CPPFLAGS"
18606 LDFLAGS="$save_LDFLAGS"
18607 LIBS="$save_LIBS"
18608 ;;
18609 esac
18610
18611 case $lt_cv_dlopen_self in
18612 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18613 *) enable_dlopen_self=unknown ;;
18614 esac
18615
18616 case $lt_cv_dlopen_self_static in
18617 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18618 *) enable_dlopen_self_static=unknown ;;
18619 esac
18620 fi
18621
18622
18623
18624
18625
18626
18627
18628
18629
18630
18631
18632
18633
18634
18635
18636
18637
18638 striplib=
18639 old_striplib=
18640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18641 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18642 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
18643 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18644 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18646 $as_echo "yes" >&6; }
18647 else
18648 # FIXME - insert some real tests, host_os isn't really good enough
18649 case $host_os in
18650 darwin*)
18651 if test -n "$STRIP" ; then
18652 striplib="$STRIP -x"
18653 old_striplib="$STRIP -S"
18654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18655 $as_echo "yes" >&6; }
18656 else
18657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18658 $as_echo "no" >&6; }
18659 fi
18660 ;;
18661 *)
18662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18663 $as_echo "no" >&6; }
18664 ;;
18665 esac
18666 fi
18667
18668
18669
18670
18671
18672
18673
18674
18675
18676
18677
18678
18679 # Report which library types will actually be built
18680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18681 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18683 $as_echo "$can_build_shared" >&6; }
18684
18685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18686 $as_echo_n "checking whether to build shared libraries... " >&6; }
18687 test "$can_build_shared" = "no" && enable_shared=no
18688
18689 # On AIX, shared libraries and static libraries use the same namespace, and
18690 # are all built from PIC.
18691 case $host_os in
18692 aix3*)
18693 test "$enable_shared" = yes && enable_static=no
18694 if test -n "$RANLIB"; then
18695 archive_cmds="$archive_cmds~\$RANLIB \$lib"
18696 postinstall_cmds='$RANLIB $lib'
18697 fi
18698 ;;
18699
18700 aix[4-9]*)
18701 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
18702 test "$enable_shared" = yes && enable_static=no
18703 fi
18704 ;;
18705 esac
18706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18707 $as_echo "$enable_shared" >&6; }
18708
18709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18710 $as_echo_n "checking whether to build static libraries... " >&6; }
18711 # Make sure either enable_shared or enable_static is yes.
18712 test "$enable_shared" = yes || enable_static=yes
18713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18714 $as_echo "$enable_static" >&6; }
18715
18716
18717
18718
18719 fi
18720 ac_ext=cpp
18721 ac_cpp='$CXXCPP $CPPFLAGS'
18722 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18723 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18724 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18725
18726 CC="$lt_save_CC"
18727
18728 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18729 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18730 (test "X$CXX" != "Xg++"))) ; then
18731 ac_ext=cpp
18732 ac_cpp='$CXXCPP $CPPFLAGS'
18733 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18734 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18735 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18737 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18738 if test -z "$CXXCPP"; then
18739 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
18740 $as_echo_n "(cached) " >&6
18741 else
18742 # Double quotes because CXXCPP needs to be expanded
18743 for CXXCPP in "$CXX -E" "/lib/cpp"
18744 do
18745 ac_preproc_ok=false
18746 for ac_cxx_preproc_warn_flag in '' yes
18747 do
18748 # Use a header file that comes with gcc, so configuring glibc
18749 # with a fresh cross-compiler works.
18750 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18751 # <limits.h> exists even on freestanding compilers.
18752 # On the NeXT, cc -E runs the code through the compiler's parser,
18753 # not just through cpp. "Syntax error" is here to catch this case.
18754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18755 /* end confdefs.h. */
18756 #ifdef __STDC__
18757 # include <limits.h>
18758 #else
18759 # include <assert.h>
18760 #endif
18761 Syntax error
18762 _ACEOF
18763 if ac_fn_cxx_try_cpp "$LINENO"; then :
18764
18765 else
18766 # Broken: fails on valid input.
18767 continue
18768 fi
18769 rm -f conftest.err conftest.$ac_ext
18770
18771 # OK, works on sane cases. Now check whether nonexistent headers
18772 # can be detected and how.
18773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18774 /* end confdefs.h. */
18775 #include <ac_nonexistent.h>
18776 _ACEOF
18777 if ac_fn_cxx_try_cpp "$LINENO"; then :
18778 # Broken: success on invalid input.
18779 continue
18780 else
18781 # Passes both tests.
18782 ac_preproc_ok=:
18783 break
18784 fi
18785 rm -f conftest.err conftest.$ac_ext
18786
18787 done
18788 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18789 rm -f conftest.err conftest.$ac_ext
18790 if $ac_preproc_ok; then :
18791 break
18792 fi
18793
18794 done
18795 ac_cv_prog_CXXCPP=$CXXCPP
18796
18797 fi
18798 CXXCPP=$ac_cv_prog_CXXCPP
18799 else
18800 ac_cv_prog_CXXCPP=$CXXCPP
18801 fi
18802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18803 $as_echo "$CXXCPP" >&6; }
18804 ac_preproc_ok=false
18805 for ac_cxx_preproc_warn_flag in '' yes
18806 do
18807 # Use a header file that comes with gcc, so configuring glibc
18808 # with a fresh cross-compiler works.
18809 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18810 # <limits.h> exists even on freestanding compilers.
18811 # On the NeXT, cc -E runs the code through the compiler's parser,
18812 # not just through cpp. "Syntax error" is here to catch this case.
18813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18814 /* end confdefs.h. */
18815 #ifdef __STDC__
18816 # include <limits.h>
18817 #else
18818 # include <assert.h>
18819 #endif
18820 Syntax error
18821 _ACEOF
18822 if ac_fn_cxx_try_cpp "$LINENO"; then :
18823
18824 else
18825 # Broken: fails on valid input.
18826 continue
18827 fi
18828 rm -f conftest.err conftest.$ac_ext
18829
18830 # OK, works on sane cases. Now check whether nonexistent headers
18831 # can be detected and how.
18832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18833 /* end confdefs.h. */
18834 #include <ac_nonexistent.h>
18835 _ACEOF
18836 if ac_fn_cxx_try_cpp "$LINENO"; then :
18837 # Broken: success on invalid input.
18838 continue
18839 else
18840 # Passes both tests.
18841 ac_preproc_ok=:
18842 break
18843 fi
18844 rm -f conftest.err conftest.$ac_ext
18845
18846 done
18847 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18848 rm -f conftest.err conftest.$ac_ext
18849 if $ac_preproc_ok; then :
18850
18851 else
18852 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18853 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18854 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
18855 See \`config.log' for more details." "$LINENO" 5; }
18856 fi
18857
18858 ac_ext=cpp
18859 ac_cpp='$CXXCPP $CPPFLAGS'
18860 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18861 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18862 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18863
18864 else
18865 _lt_caught_CXX_error=yes
18866 fi
18867
18868 ac_ext=cpp
18869 ac_cpp='$CXXCPP $CPPFLAGS'
18870 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18871 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18872 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18873
18874 archive_cmds_need_lc_CXX=no
18875 allow_undefined_flag_CXX=
18876 always_export_symbols_CXX=no
18877 archive_expsym_cmds_CXX=
18878 compiler_needs_object_CXX=no
18879 export_dynamic_flag_spec_CXX=
18880 hardcode_direct_CXX=no
18881 hardcode_direct_absolute_CXX=no
18882 hardcode_libdir_flag_spec_CXX=
18883 hardcode_libdir_flag_spec_ld_CXX=
18884 hardcode_libdir_separator_CXX=
18885 hardcode_minus_L_CXX=no
18886 hardcode_shlibpath_var_CXX=unsupported
18887 hardcode_automatic_CXX=no
18888 inherit_rpath_CXX=no
18889 module_cmds_CXX=
18890 module_expsym_cmds_CXX=
18891 link_all_deplibs_CXX=unknown
18892 old_archive_cmds_CXX=$old_archive_cmds
18893 reload_flag_CXX=$reload_flag
18894 reload_cmds_CXX=$reload_cmds
18895 no_undefined_flag_CXX=
18896 whole_archive_flag_spec_CXX=
18897 enable_shared_with_static_runtimes_CXX=no
18898
18899 # Source file extension for C++ test sources.
18900 ac_ext=cpp
18901
18902 # Object file extension for compiled C++ test sources.
18903 objext=o
18904 objext_CXX=$objext
18905
18906 # No sense in running all these tests if we already determined that
18907 # the CXX compiler isn't working. Some variables (like enable_shared)
18908 # are currently assumed to apply to all compilers on this platform,
18909 # and will be corrupted by setting them based on a non-working compiler.
18910 if test "$_lt_caught_CXX_error" != yes; then
18911 # Code to be used in simple compile tests
18912 lt_simple_compile_test_code="int some_variable = 0;"
18913
18914 # Code to be used in simple link tests
18915 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
18916
18917 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18918
18919
18920
18921
18922
18923
18924 # If no C compiler was specified, use CC.
18925 LTCC=${LTCC-"$CC"}
18926
18927 # If no C compiler flags were specified, use CFLAGS.
18928 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18929
18930 # Allow CC to be a program name with arguments.
18931 compiler=$CC
18932
18933
18934 # save warnings/boilerplate of simple test code
18935 ac_outfile=conftest.$ac_objext
18936 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18937 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18938 _lt_compiler_boilerplate=`cat conftest.err`
18939 $RM conftest*
18940
18941 ac_outfile=conftest.$ac_objext
18942 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18943 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18944 _lt_linker_boilerplate=`cat conftest.err`
18945 $RM -r conftest*
18946
18947
18948 # Allow CC to be a program name with arguments.
18949 lt_save_CC=$CC
18950 lt_save_LD=$LD
18951 lt_save_GCC=$GCC
18952 GCC=$GXX
18953 lt_save_with_gnu_ld=$with_gnu_ld
18954 lt_save_path_LD=$lt_cv_path_LD
18955 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18956 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18957 else
18958 $as_unset lt_cv_prog_gnu_ld
18959 fi
18960 if test -n "${lt_cv_path_LDCXX+set}"; then
18961 lt_cv_path_LD=$lt_cv_path_LDCXX
18962 else
18963 $as_unset lt_cv_path_LD
18964 fi
18965 test -z "${LDCXX+set}" || LD=$LDCXX
18966 CC=${CXX-"c++"}
18967 compiler=$CC
18968 compiler_CXX=$CC
18969 for cc_temp in $compiler""; do
18970 case $cc_temp in
18971 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18972 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18973 \-*) ;;
18974 *) break;;
18975 esac
18976 done
18977 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18978
18979
18980 if test -n "$compiler"; then
18981 # We don't want -fno-exception when compiling C++ code, so set the
18982 # no_builtin_flag separately
18983 if test "$GXX" = yes; then
18984 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18985 else
18986 lt_prog_compiler_no_builtin_flag_CXX=
18987 fi
18988
18989 if test "$GXX" = yes; then
18990 # Set up default GNU C++ configuration
18991
18992
18993
18994 # Check whether --with-gnu-ld was given.
18995 if test "${with_gnu_ld+set}" = set; then :
18996 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18997 else
18998 with_gnu_ld=no
18999 fi
19000
19001 ac_prog=ld
19002 if test "$GCC" = yes; then
19003 # Check if gcc -print-prog-name=ld gives a path.
19004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
19005 $as_echo_n "checking for ld used by $CC... " >&6; }
19006 case $host in
19007 *-*-mingw*)
19008 # gcc leaves a trailing carriage return which upsets mingw
19009 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
19010 *)
19011 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
19012 esac
19013 case $ac_prog in
19014 # Accept absolute paths.
19015 [\\/]* | ?:[\\/]*)
19016 re_direlt='/[^/][^/]*/\.\./'
19017 # Canonicalize the pathname of ld
19018 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
19019 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
19020 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
19021 done
19022 test -z "$LD" && LD="$ac_prog"
19023 ;;
19024 "")
19025 # If it fails, then pretend we aren't using GCC.
19026 ac_prog=ld
19027 ;;
19028 *)
19029 # If it is relative, then search for the first ld in PATH.
19030 with_gnu_ld=unknown
19031 ;;
19032 esac
19033 elif test "$with_gnu_ld" = yes; then
19034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
19035 $as_echo_n "checking for GNU ld... " >&6; }
19036 else
19037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
19038 $as_echo_n "checking for non-GNU ld... " >&6; }
19039 fi
19040 if test "${lt_cv_path_LD+set}" = set; then :
19041 $as_echo_n "(cached) " >&6
19042 else
19043 if test -z "$LD"; then
19044 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
19045 for ac_dir in $PATH; do
19046 IFS="$lt_save_ifs"
19047 test -z "$ac_dir" && ac_dir=.
19048 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
19049 lt_cv_path_LD="$ac_dir/$ac_prog"
19050 # Check to see if the program is GNU ld. I'd rather use --version,
19051 # but apparently some variants of GNU ld only accept -v.
19052 # Break only if it was the GNU/non-GNU ld that we prefer.
19053 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
19054 *GNU* | *'with BFD'*)
19055 test "$with_gnu_ld" != no && break
19056 ;;
19057 *)
19058 test "$with_gnu_ld" != yes && break
19059 ;;
19060 esac
19061 fi
19062 done
19063 IFS="$lt_save_ifs"
19064 else
19065 lt_cv_path_LD="$LD" # Let the user override the test with a path.
19066 fi
19067 fi
19068
19069 LD="$lt_cv_path_LD"
19070 if test -n "$LD"; then
19071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
19072 $as_echo "$LD" >&6; }
19073 else
19074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19075 $as_echo "no" >&6; }
19076 fi
19077 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
19078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
19079 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
19080 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
19081 $as_echo_n "(cached) " >&6
19082 else
19083 # I'd rather use --version here, but apparently some GNU lds only accept -v.
19084 case `$LD -v 2>&1 </dev/null` in
19085 *GNU* | *'with BFD'*)
19086 lt_cv_prog_gnu_ld=yes
19087 ;;
19088 *)
19089 lt_cv_prog_gnu_ld=no
19090 ;;
19091 esac
19092 fi
19093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
19094 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
19095 with_gnu_ld=$lt_cv_prog_gnu_ld
19096
19097
19098
19099
19100
19101
19102
19103 # Check if GNU C++ uses GNU ld as the underlying linker, since the
19104 # archiving commands below assume that GNU ld is being used.
19105 if test "$with_gnu_ld" = yes; then
19106 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19107 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'
19108
19109 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19110 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19111
19112 # If archive_cmds runs LD, not CC, wlarc should be empty
19113 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
19114 # investigate it a little bit more. (MM)
19115 wlarc='${wl}'
19116
19117 # ancient GNU ld didn't support --whole-archive et. al.
19118 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
19119 $GREP 'no-whole-archive' > /dev/null; then
19120 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19121 else
19122 whole_archive_flag_spec_CXX=
19123 fi
19124 else
19125 with_gnu_ld=no
19126 wlarc=
19127
19128 # A generic and very simple default shared library creation
19129 # command for GNU C++ for the case where it uses the native
19130 # linker, instead of GNU ld. If possible, this setting should
19131 # overridden to take advantage of the native linker features on
19132 # the platform it is being used on.
19133 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19134 fi
19135
19136 # Commands to make compiler produce verbose output that lists
19137 # what "hidden" libraries, object files and flags are used when
19138 # linking a shared library.
19139 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19140
19141 else
19142 GXX=no
19143 with_gnu_ld=no
19144 wlarc=
19145 fi
19146
19147 # PORTME: fill in a description of your system's C++ link characteristics
19148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19149 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19150 ld_shlibs_CXX=yes
19151 case $host_os in
19152 aix3*)
19153 # FIXME: insert proper C++ library support
19154 ld_shlibs_CXX=no
19155 ;;
19156 aix[4-9]*)
19157 if test "$host_cpu" = ia64; then
19158 # On IA64, the linker does run time linking by default, so we don't
19159 # have to do anything special.
19160 aix_use_runtimelinking=no
19161 exp_sym_flag='-Bexport'
19162 no_entry_flag=""
19163 else
19164 aix_use_runtimelinking=no
19165
19166 # Test if we are trying to use run time linking or normal
19167 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19168 # need to do runtime linking.
19169 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
19170 for ld_flag in $LDFLAGS; do
19171 case $ld_flag in
19172 *-brtl*)
19173 aix_use_runtimelinking=yes
19174 break
19175 ;;
19176 esac
19177 done
19178 ;;
19179 esac
19180
19181 exp_sym_flag='-bexport'
19182 no_entry_flag='-bnoentry'
19183 fi
19184
19185 # When large executables or shared objects are built, AIX ld can
19186 # have problems creating the table of contents. If linking a library
19187 # or program results in "error TOC overflow" add -mminimal-toc to
19188 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19189 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19190
19191 archive_cmds_CXX=''
19192 hardcode_direct_CXX=yes
19193 hardcode_direct_absolute_CXX=yes
19194 hardcode_libdir_separator_CXX=':'
19195 link_all_deplibs_CXX=yes
19196 file_list_spec_CXX='${wl}-f,'
19197
19198 if test "$GXX" = yes; then
19199 case $host_os in aix4.[012]|aix4.[012].*)
19200 # We only want to do this on AIX 4.2 and lower, the check
19201 # below for broken collect2 doesn't work under 4.3+
19202 collect2name=`${CC} -print-prog-name=collect2`
19203 if test -f "$collect2name" &&
19204 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
19205 then
19206 # We have reworked collect2
19207 :
19208 else
19209 # We have old collect2
19210 hardcode_direct_CXX=unsupported
19211 # It fails to find uninstalled libraries when the uninstalled
19212 # path is not listed in the libpath. Setting hardcode_minus_L
19213 # to unsupported forces relinking
19214 hardcode_minus_L_CXX=yes
19215 hardcode_libdir_flag_spec_CXX='-L$libdir'
19216 hardcode_libdir_separator_CXX=
19217 fi
19218 esac
19219 shared_flag='-shared'
19220 if test "$aix_use_runtimelinking" = yes; then
19221 shared_flag="$shared_flag "'${wl}-G'
19222 fi
19223 else
19224 # not using gcc
19225 if test "$host_cpu" = ia64; then
19226 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19227 # chokes on -Wl,-G. The following line is correct:
19228 shared_flag='-G'
19229 else
19230 if test "$aix_use_runtimelinking" = yes; then
19231 shared_flag='${wl}-G'
19232 else
19233 shared_flag='${wl}-bM:SRE'
19234 fi
19235 fi
19236 fi
19237
19238 export_dynamic_flag_spec_CXX='${wl}-bexpall'
19239 # It seems that -bexpall does not export symbols beginning with
19240 # underscore (_), so it is better to generate a list of symbols to
19241 # export.
19242 always_export_symbols_CXX=yes
19243 if test "$aix_use_runtimelinking" = yes; then
19244 # Warning - without using the other runtime loading flags (-brtl),
19245 # -berok will link without error, but may produce a broken library.
19246 allow_undefined_flag_CXX='-berok'
19247 # Determine the default libpath from the value encoded in an empty
19248 # executable.
19249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19250 /* end confdefs.h. */
19251
19252 int
19253 main ()
19254 {
19255
19256 ;
19257 return 0;
19258 }
19259 _ACEOF
19260 if ac_fn_cxx_try_link "$LINENO"; then :
19261
19262 lt_aix_libpath_sed='
19263 /Import File Strings/,/^$/ {
19264 /^0/ {
19265 s/^0 *\(.*\)$/\1/
19266 p
19267 }
19268 }'
19269 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19270 # Check for a 64-bit object if we didn't find anything.
19271 if test -z "$aix_libpath"; then
19272 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19273 fi
19274 fi
19275 rm -f core conftest.err conftest.$ac_objext \
19276 conftest$ac_exeext conftest.$ac_ext
19277 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19278
19279 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19280
19281 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"
19282 else
19283 if test "$host_cpu" = ia64; then
19284 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
19285 allow_undefined_flag_CXX="-z nodefs"
19286 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"
19287 else
19288 # Determine the default libpath from the value encoded in an
19289 # empty executable.
19290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19291 /* end confdefs.h. */
19292
19293 int
19294 main ()
19295 {
19296
19297 ;
19298 return 0;
19299 }
19300 _ACEOF
19301 if ac_fn_cxx_try_link "$LINENO"; then :
19302
19303 lt_aix_libpath_sed='
19304 /Import File Strings/,/^$/ {
19305 /^0/ {
19306 s/^0 *\(.*\)$/\1/
19307 p
19308 }
19309 }'
19310 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19311 # Check for a 64-bit object if we didn't find anything.
19312 if test -z "$aix_libpath"; then
19313 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19314 fi
19315 fi
19316 rm -f core conftest.err conftest.$ac_objext \
19317 conftest$ac_exeext conftest.$ac_ext
19318 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19319
19320 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19321 # Warning - without using the other run time loading flags,
19322 # -berok will link without error, but may produce a broken library.
19323 no_undefined_flag_CXX=' ${wl}-bernotok'
19324 allow_undefined_flag_CXX=' ${wl}-berok'
19325 if test "$with_gnu_ld" = yes; then
19326 # We only use this code for GNU lds that support --whole-archive.
19327 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19328 else
19329 # Exported symbols can be pulled into shared objects from archives
19330 whole_archive_flag_spec_CXX='$convenience'
19331 fi
19332 archive_cmds_need_lc_CXX=yes
19333 # This is similar to how AIX traditionally builds its shared
19334 # libraries.
19335 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'
19336 fi
19337 fi
19338 ;;
19339
19340 beos*)
19341 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
19342 allow_undefined_flag_CXX=unsupported
19343 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19344 # support --undefined. This deserves some investigation. FIXME
19345 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19346 else
19347 ld_shlibs_CXX=no
19348 fi
19349 ;;
19350
19351 chorus*)
19352 case $cc_basename in
19353 *)
19354 # FIXME: insert proper C++ library support
19355 ld_shlibs_CXX=no
19356 ;;
19357 esac
19358 ;;
19359
19360 cygwin* | mingw* | pw32* | cegcc*)
19361 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19362 # as there is no search path for DLLs.
19363 hardcode_libdir_flag_spec_CXX='-L$libdir'
19364 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
19365 allow_undefined_flag_CXX=unsupported
19366 always_export_symbols_CXX=no
19367 enable_shared_with_static_runtimes_CXX=yes
19368
19369 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
19370 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'
19371 # If the export-symbols file already is a .def file (1st line
19372 # is EXPORTS), use it as is; otherwise, prepend...
19373 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19374 cp $export_symbols $output_objdir/$soname.def;
19375 else
19376 echo EXPORTS > $output_objdir/$soname.def;
19377 cat $export_symbols >> $output_objdir/$soname.def;
19378 fi~
19379 $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'
19380 else
19381 ld_shlibs_CXX=no
19382 fi
19383 ;;
19384 darwin* | rhapsody*)
19385
19386
19387 archive_cmds_need_lc_CXX=no
19388 hardcode_direct_CXX=no
19389 hardcode_automatic_CXX=yes
19390 hardcode_shlibpath_var_CXX=unsupported
19391 if test "$lt_cv_ld_force_load" = "yes"; then
19392 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\"`'
19393 else
19394 whole_archive_flag_spec_CXX=''
19395 fi
19396 link_all_deplibs_CXX=yes
19397 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
19398 case $cc_basename in
19399 ifort*) _lt_dar_can_shared=yes ;;
19400 *) _lt_dar_can_shared=$GCC ;;
19401 esac
19402 if test "$_lt_dar_can_shared" = "yes"; then
19403 output_verbose_link_cmd=func_echo_all
19404 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}"
19405 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19406 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}"
19407 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}"
19408 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
19409 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}"
19410 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}"
19411 fi
19412
19413 else
19414 ld_shlibs_CXX=no
19415 fi
19416
19417 ;;
19418
19419 dgux*)
19420 case $cc_basename in
19421 ec++*)
19422 # FIXME: insert proper C++ library support
19423 ld_shlibs_CXX=no
19424 ;;
19425 ghcx*)
19426 # Green Hills C++ Compiler
19427 # FIXME: insert proper C++ library support
19428 ld_shlibs_CXX=no
19429 ;;
19430 *)
19431 # FIXME: insert proper C++ library support
19432 ld_shlibs_CXX=no
19433 ;;
19434 esac
19435 ;;
19436
19437 freebsd2.*)
19438 # C++ shared libraries reported to be fairly broken before
19439 # switch to ELF
19440 ld_shlibs_CXX=no
19441 ;;
19442
19443 freebsd-elf*)
19444 archive_cmds_need_lc_CXX=no
19445 ;;
19446
19447 freebsd* | dragonfly*)
19448 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19449 # conventions
19450 ld_shlibs_CXX=yes
19451 ;;
19452
19453 gnu*)
19454 ;;
19455
19456 haiku*)
19457 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19458 link_all_deplibs_CXX=yes
19459 ;;
19460
19461 hpux9*)
19462 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19463 hardcode_libdir_separator_CXX=:
19464 export_dynamic_flag_spec_CXX='${wl}-E'
19465 hardcode_direct_CXX=yes
19466 hardcode_minus_L_CXX=yes # Not in the search PATH,
19467 # but as the default
19468 # location of the library.
19469
19470 case $cc_basename in
19471 CC*)
19472 # FIXME: insert proper C++ library support
19473 ld_shlibs_CXX=no
19474 ;;
19475 aCC*)
19476 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'
19477 # Commands to make compiler produce verbose output that lists
19478 # what "hidden" libraries, object files and flags are used when
19479 # linking a shared library.
19480 #
19481 # There doesn't appear to be a way to prevent this compiler from
19482 # explicitly linking system object files so we need to strip them
19483 # from the output so that they don't get included in the library
19484 # dependencies.
19485 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"'
19486 ;;
19487 *)
19488 if test "$GXX" = yes; then
19489 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'
19490 else
19491 # FIXME: insert proper C++ library support
19492 ld_shlibs_CXX=no
19493 fi
19494 ;;
19495 esac
19496 ;;
19497
19498 hpux10*|hpux11*)
19499 if test $with_gnu_ld = no; then
19500 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19501 hardcode_libdir_separator_CXX=:
19502
19503 case $host_cpu in
19504 hppa*64*|ia64*)
19505 ;;
19506 *)
19507 export_dynamic_flag_spec_CXX='${wl}-E'
19508 ;;
19509 esac
19510 fi
19511 case $host_cpu in
19512 hppa*64*|ia64*)
19513 hardcode_direct_CXX=no
19514 hardcode_shlibpath_var_CXX=no
19515 ;;
19516 *)
19517 hardcode_direct_CXX=yes
19518 hardcode_direct_absolute_CXX=yes
19519 hardcode_minus_L_CXX=yes # Not in the search PATH,
19520 # but as the default
19521 # location of the library.
19522 ;;
19523 esac
19524
19525 case $cc_basename in
19526 CC*)
19527 # FIXME: insert proper C++ library support
19528 ld_shlibs_CXX=no
19529 ;;
19530 aCC*)
19531 case $host_cpu in
19532 hppa*64*)
19533 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19534 ;;
19535 ia64*)
19536 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19537 ;;
19538 *)
19539 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19540 ;;
19541 esac
19542 # Commands to make compiler produce verbose output that lists
19543 # what "hidden" libraries, object files and flags are used when
19544 # linking a shared library.
19545 #
19546 # There doesn't appear to be a way to prevent this compiler from
19547 # explicitly linking system object files so we need to strip them
19548 # from the output so that they don't get included in the library
19549 # dependencies.
19550 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"'
19551 ;;
19552 *)
19553 if test "$GXX" = yes; then
19554 if test $with_gnu_ld = no; then
19555 case $host_cpu in
19556 hppa*64*)
19557 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19558 ;;
19559 ia64*)
19560 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19561 ;;
19562 *)
19563 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'
19564 ;;
19565 esac
19566 fi
19567 else
19568 # FIXME: insert proper C++ library support
19569 ld_shlibs_CXX=no
19570 fi
19571 ;;
19572 esac
19573 ;;
19574
19575 interix[3-9]*)
19576 hardcode_direct_CXX=no
19577 hardcode_shlibpath_var_CXX=no
19578 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19579 export_dynamic_flag_spec_CXX='${wl}-E'
19580 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19581 # Instead, shared libraries are loaded at an image base (0x10000000 by
19582 # default) and relocated if they conflict, which is a slow very memory
19583 # consuming and fragmenting process. To avoid this, we pick a random,
19584 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19585 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19586 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'
19587 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'
19588 ;;
19589 irix5* | irix6*)
19590 case $cc_basename in
19591 CC*)
19592 # SGI C++
19593 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'
19594
19595 # Archives containing C++ object files must be created using
19596 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19597 # necessary to make sure instantiated templates are included
19598 # in the archive.
19599 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19600 ;;
19601 *)
19602 if test "$GXX" = yes; then
19603 if test "$with_gnu_ld" = no; then
19604 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'
19605 else
19606 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'
19607 fi
19608 fi
19609 link_all_deplibs_CXX=yes
19610 ;;
19611 esac
19612 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19613 hardcode_libdir_separator_CXX=:
19614 inherit_rpath_CXX=yes
19615 ;;
19616
19617 linux* | k*bsd*-gnu | kopensolaris*-gnu)
19618 case $cc_basename in
19619 KCC*)
19620 # Kuck and Associates, Inc. (KAI) C++ Compiler
19621
19622 # KCC will only create a shared library if the output file
19623 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19624 # to its proper name (with version) after linking.
19625 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'
19626 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'
19627 # Commands to make compiler produce verbose output that lists
19628 # what "hidden" libraries, object files and flags are used when
19629 # linking a shared library.
19630 #
19631 # There doesn't appear to be a way to prevent this compiler from
19632 # explicitly linking system object files so we need to strip them
19633 # from the output so that they don't get included in the library
19634 # dependencies.
19635 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"'
19636
19637 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19638 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19639
19640 # Archives containing C++ object files must be created using
19641 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19642 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19643 ;;
19644 icpc* | ecpc* )
19645 # Intel C++
19646 with_gnu_ld=yes
19647 # version 8.0 and above of icpc choke on multiply defined symbols
19648 # if we add $predep_objects and $postdep_objects, however 7.1 and
19649 # earlier do not add the objects themselves.
19650 case `$CC -V 2>&1` in
19651 *"Version 7."*)
19652 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19653 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'
19654 ;;
19655 *) # Version 8.0 or newer
19656 tmp_idyn=
19657 case $host_cpu in
19658 ia64*) tmp_idyn=' -i_dynamic';;
19659 esac
19660 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19661 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'
19662 ;;
19663 esac
19664 archive_cmds_need_lc_CXX=no
19665 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19666 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19667 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19668 ;;
19669 pgCC* | pgcpp*)
19670 # Portland Group C++ compiler
19671 case `$CC -V` in
19672 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
19673 prelink_cmds_CXX='tpldir=Template.dir~
19674 rm -rf $tpldir~
19675 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19676 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
19677 old_archive_cmds_CXX='tpldir=Template.dir~
19678 rm -rf $tpldir~
19679 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19680 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
19681 $RANLIB $oldlib'
19682 archive_cmds_CXX='tpldir=Template.dir~
19683 rm -rf $tpldir~
19684 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19685 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19686 archive_expsym_cmds_CXX='tpldir=Template.dir~
19687 rm -rf $tpldir~
19688 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19689 $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'
19690 ;;
19691 *) # Version 6 and above use weak symbols
19692 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19693 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'
19694 ;;
19695 esac
19696
19697 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19698 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19699 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'
19700 ;;
19701 cxx*)
19702 # Compaq C++
19703 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19704 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'
19705
19706 runpath_var=LD_RUN_PATH
19707 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19708 hardcode_libdir_separator_CXX=:
19709
19710 # Commands to make compiler produce verbose output that lists
19711 # what "hidden" libraries, object files and flags are used when
19712 # linking a shared library.
19713 #
19714 # There doesn't appear to be a way to prevent this compiler from
19715 # explicitly linking system object files so we need to strip them
19716 # from the output so that they don't get included in the library
19717 # dependencies.
19718 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'
19719 ;;
19720 xl* | mpixl* | bgxl*)
19721 # IBM XL 8.0 on PPC, with GNU ld
19722 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19723 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19724 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19725 if test "x$supports_anon_versioning" = xyes; then
19726 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
19727 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19728 echo "local: *; };" >> $output_objdir/$libname.ver~
19729 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19730 fi
19731 ;;
19732 *)
19733 case `$CC -V 2>&1 | sed 5q` in
19734 *Sun\ C*)
19735 # Sun C++ 5.9
19736 no_undefined_flag_CXX=' -zdefs'
19737 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19738 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'
19739 hardcode_libdir_flag_spec_CXX='-R$libdir'
19740 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'
19741 compiler_needs_object_CXX=yes
19742
19743 # Not sure whether something based on
19744 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19745 # would be better.
19746 output_verbose_link_cmd='func_echo_all'
19747
19748 # Archives containing C++ object files must be created using
19749 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19750 # necessary to make sure instantiated templates are included
19751 # in the archive.
19752 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19753 ;;
19754 esac
19755 ;;
19756 esac
19757 ;;
19758
19759 lynxos*)
19760 # FIXME: insert proper C++ library support
19761 ld_shlibs_CXX=no
19762 ;;
19763
19764 m88k*)
19765 # FIXME: insert proper C++ library support
19766 ld_shlibs_CXX=no
19767 ;;
19768
19769 mvs*)
19770 case $cc_basename in
19771 cxx*)
19772 # FIXME: insert proper C++ library support
19773 ld_shlibs_CXX=no
19774 ;;
19775 *)
19776 # FIXME: insert proper C++ library support
19777 ld_shlibs_CXX=no
19778 ;;
19779 esac
19780 ;;
19781
19782 netbsd*)
19783 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19784 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19785 wlarc=
19786 hardcode_libdir_flag_spec_CXX='-R$libdir'
19787 hardcode_direct_CXX=yes
19788 hardcode_shlibpath_var_CXX=no
19789 fi
19790 # Workaround some broken pre-1.5 toolchains
19791 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19792 ;;
19793
19794 *nto* | *qnx*)
19795 ld_shlibs_CXX=yes
19796 ;;
19797
19798 openbsd2*)
19799 # C++ shared libraries are fairly broken
19800 ld_shlibs_CXX=no
19801 ;;
19802
19803 openbsd*)
19804 if test -f /usr/libexec/ld.so; then
19805 hardcode_direct_CXX=yes
19806 hardcode_shlibpath_var_CXX=no
19807 hardcode_direct_absolute_CXX=yes
19808 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19809 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19810 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19811 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19812 export_dynamic_flag_spec_CXX='${wl}-E'
19813 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19814 fi
19815 output_verbose_link_cmd=func_echo_all
19816 else
19817 ld_shlibs_CXX=no
19818 fi
19819 ;;
19820
19821 osf3* | osf4* | osf5*)
19822 case $cc_basename in
19823 KCC*)
19824 # Kuck and Associates, Inc. (KAI) C++ Compiler
19825
19826 # KCC will only create a shared library if the output file
19827 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19828 # to its proper name (with version) after linking.
19829 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'
19830
19831 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19832 hardcode_libdir_separator_CXX=:
19833
19834 # Archives containing C++ object files must be created using
19835 # the KAI C++ compiler.
19836 case $host in
19837 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
19838 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
19839 esac
19840 ;;
19841 RCC*)
19842 # Rational C++ 2.4.1
19843 # FIXME: insert proper C++ library support
19844 ld_shlibs_CXX=no
19845 ;;
19846 cxx*)
19847 case $host in
19848 osf3*)
19849 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19850 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'
19851 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19852 ;;
19853 *)
19854 allow_undefined_flag_CXX=' -expect_unresolved \*'
19855 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'
19856 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19857 echo "-hidden">> $lib.exp~
19858 $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~
19859 $RM $lib.exp'
19860 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19861 ;;
19862 esac
19863
19864 hardcode_libdir_separator_CXX=:
19865
19866 # Commands to make compiler produce verbose output that lists
19867 # what "hidden" libraries, object files and flags are used when
19868 # linking a shared library.
19869 #
19870 # There doesn't appear to be a way to prevent this compiler from
19871 # explicitly linking system object files so we need to strip them
19872 # from the output so that they don't get included in the library
19873 # dependencies.
19874 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"'
19875 ;;
19876 *)
19877 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19878 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19879 case $host in
19880 osf3*)
19881 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'
19882 ;;
19883 *)
19884 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'
19885 ;;
19886 esac
19887
19888 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19889 hardcode_libdir_separator_CXX=:
19890
19891 # Commands to make compiler produce verbose output that lists
19892 # what "hidden" libraries, object files and flags are used when
19893 # linking a shared library.
19894 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19895
19896 else
19897 # FIXME: insert proper C++ library support
19898 ld_shlibs_CXX=no
19899 fi
19900 ;;
19901 esac
19902 ;;
19903
19904 psos*)
19905 # FIXME: insert proper C++ library support
19906 ld_shlibs_CXX=no
19907 ;;
19908
19909 sunos4*)
19910 case $cc_basename in
19911 CC*)
19912 # Sun C++ 4.x
19913 # FIXME: insert proper C++ library support
19914 ld_shlibs_CXX=no
19915 ;;
19916 lcc*)
19917 # Lucid
19918 # FIXME: insert proper C++ library support
19919 ld_shlibs_CXX=no
19920 ;;
19921 *)
19922 # FIXME: insert proper C++ library support
19923 ld_shlibs_CXX=no
19924 ;;
19925 esac
19926 ;;
19927
19928 solaris*)
19929 case $cc_basename in
19930 CC*)
19931 # Sun C++ 4.2, 5.x and Centerline C++
19932 archive_cmds_need_lc_CXX=yes
19933 no_undefined_flag_CXX=' -zdefs'
19934 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19935 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19936 $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'
19937
19938 hardcode_libdir_flag_spec_CXX='-R$libdir'
19939 hardcode_shlibpath_var_CXX=no
19940 case $host_os in
19941 solaris2.[0-5] | solaris2.[0-5].*) ;;
19942 *)
19943 # The compiler driver will combine and reorder linker options,
19944 # but understands `-z linker_flag'.
19945 # Supported since Solaris 2.6 (maybe 2.5.1?)
19946 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
19947 ;;
19948 esac
19949 link_all_deplibs_CXX=yes
19950
19951 output_verbose_link_cmd='func_echo_all'
19952
19953 # Archives containing C++ object files must be created using
19954 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19955 # necessary to make sure instantiated templates are included
19956 # in the archive.
19957 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19958 ;;
19959 gcx*)
19960 # Green Hills C++ Compiler
19961 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19962
19963 # The C++ compiler must be used to create the archive.
19964 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19965 ;;
19966 *)
19967 # GNU C++ compiler with Solaris linker
19968 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19969 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19970 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
19971 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19972 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19973 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19974
19975 # Commands to make compiler produce verbose output that lists
19976 # what "hidden" libraries, object files and flags are used when
19977 # linking a shared library.
19978 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19979 else
19980 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19981 # platform.
19982 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19983 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19984 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19985
19986 # Commands to make compiler produce verbose output that lists
19987 # what "hidden" libraries, object files and flags are used when
19988 # linking a shared library.
19989 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19990 fi
19991
19992 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19993 case $host_os in
19994 solaris2.[0-5] | solaris2.[0-5].*) ;;
19995 *)
19996 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19997 ;;
19998 esac
19999 fi
20000 ;;
20001 esac
20002 ;;
20003
20004 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
20005 no_undefined_flag_CXX='${wl}-z,text'
20006 archive_cmds_need_lc_CXX=no
20007 hardcode_shlibpath_var_CXX=no
20008 runpath_var='LD_RUN_PATH'
20009
20010 case $cc_basename in
20011 CC*)
20012 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20013 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20014 ;;
20015 *)
20016 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20017 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20018 ;;
20019 esac
20020 ;;
20021
20022 sysv5* | sco3.2v5* | sco5v6*)
20023 # Note: We can NOT use -z defs as we might desire, because we do not
20024 # link with -lc, and that would cause any symbols used from libc to
20025 # always be unresolved, which means just about no library would
20026 # ever link correctly. If we're not using GNU ld we use -z text
20027 # though, which does catch some bad symbols but isn't as heavy-handed
20028 # as -z defs.
20029 no_undefined_flag_CXX='${wl}-z,text'
20030 allow_undefined_flag_CXX='${wl}-z,nodefs'
20031 archive_cmds_need_lc_CXX=no
20032 hardcode_shlibpath_var_CXX=no
20033 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
20034 hardcode_libdir_separator_CXX=':'
20035 link_all_deplibs_CXX=yes
20036 export_dynamic_flag_spec_CXX='${wl}-Bexport'
20037 runpath_var='LD_RUN_PATH'
20038
20039 case $cc_basename in
20040 CC*)
20041 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20042 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20043 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
20044 '"$old_archive_cmds_CXX"
20045 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
20046 '"$reload_cmds_CXX"
20047 ;;
20048 *)
20049 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20050 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20051 ;;
20052 esac
20053 ;;
20054
20055 tandem*)
20056 case $cc_basename in
20057 NCC*)
20058 # NonStop-UX NCC 3.20
20059 # FIXME: insert proper C++ library support
20060 ld_shlibs_CXX=no
20061 ;;
20062 *)
20063 # FIXME: insert proper C++ library support
20064 ld_shlibs_CXX=no
20065 ;;
20066 esac
20067 ;;
20068
20069 vxworks*)
20070 # FIXME: insert proper C++ library support
20071 ld_shlibs_CXX=no
20072 ;;
20073
20074 *)
20075 # FIXME: insert proper C++ library support
20076 ld_shlibs_CXX=no
20077 ;;
20078 esac
20079
20080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20081 $as_echo "$ld_shlibs_CXX" >&6; }
20082 test "$ld_shlibs_CXX" = no && can_build_shared=no
20083
20084 GCC_CXX="$GXX"
20085 LD_CXX="$LD"
20086
20087 ## CAVEAT EMPTOR:
20088 ## There is no encapsulation within the following macros, do not change
20089 ## the running order or otherwise move them around unless you know exactly
20090 ## what you are doing...
20091 # Dependencies to place before and after the object being linked:
20092 predep_objects_CXX=
20093 postdep_objects_CXX=
20094 predeps_CXX=
20095 postdeps_CXX=
20096 compiler_lib_search_path_CXX=
20097
20098 cat > conftest.$ac_ext <<_LT_EOF
20099 class Foo
20100 {
20101 public:
20102 Foo (void) { a = 0; }
20103 private:
20104 int a;
20105 };
20106 _LT_EOF
20107
20108 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20109 (eval $ac_compile) 2>&5
20110 ac_status=$?
20111 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20112 test $ac_status = 0; }; then
20113 # Parse the compiler output and extract the necessary
20114 # objects, libraries and library flags.
20115
20116 # Sentinel used to keep track of whether or not we are before
20117 # the conftest object file.
20118 pre_test_object_deps_done=no
20119
20120 for p in `eval "$output_verbose_link_cmd"`; do
20121 case $p in
20122
20123 -L* | -R* | -l*)
20124 # Some compilers place space between "-{L,R}" and the path.
20125 # Remove the space.
20126 if test $p = "-L" ||
20127 test $p = "-R"; then
20128 prev=$p
20129 continue
20130 else
20131 prev=
20132 fi
20133
20134 if test "$pre_test_object_deps_done" = no; then
20135 case $p in
20136 -L* | -R*)
20137 # Internal compiler library paths should come after those
20138 # provided the user. The postdeps already come after the
20139 # user supplied libs so there is no need to process them.
20140 if test -z "$compiler_lib_search_path_CXX"; then
20141 compiler_lib_search_path_CXX="${prev}${p}"
20142 else
20143 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
20144 fi
20145 ;;
20146 # The "-l" case would never come before the object being
20147 # linked, so don't bother handling this case.
20148 esac
20149 else
20150 if test -z "$postdeps_CXX"; then
20151 postdeps_CXX="${prev}${p}"
20152 else
20153 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
20154 fi
20155 fi
20156 ;;
20157
20158 *.$objext)
20159 # This assumes that the test object file only shows up
20160 # once in the compiler output.
20161 if test "$p" = "conftest.$objext"; then
20162 pre_test_object_deps_done=yes
20163 continue
20164 fi
20165
20166 if test "$pre_test_object_deps_done" = no; then
20167 if test -z "$predep_objects_CXX"; then
20168 predep_objects_CXX="$p"
20169 else
20170 predep_objects_CXX="$predep_objects_CXX $p"
20171 fi
20172 else
20173 if test -z "$postdep_objects_CXX"; then
20174 postdep_objects_CXX="$p"
20175 else
20176 postdep_objects_CXX="$postdep_objects_CXX $p"
20177 fi
20178 fi
20179 ;;
20180
20181 *) ;; # Ignore the rest.
20182
20183 esac
20184 done
20185
20186 # Clean up.
20187 rm -f a.out a.exe
20188 else
20189 echo "libtool.m4: error: problem compiling CXX test program"
20190 fi
20191
20192 $RM -f confest.$objext
20193
20194 # PORTME: override above test on systems where it is broken
20195 case $host_os in
20196 interix[3-9]*)
20197 # Interix 3.5 installs completely hosed .la files for C++, so rather than
20198 # hack all around it, let's just trust "g++" to DTRT.
20199 predep_objects_CXX=
20200 postdep_objects_CXX=
20201 postdeps_CXX=
20202 ;;
20203
20204 linux*)
20205 case `$CC -V 2>&1 | sed 5q` in
20206 *Sun\ C*)
20207 # Sun C++ 5.9
20208
20209 # The more standards-conforming stlport4 library is
20210 # incompatible with the Cstd library. Avoid specifying
20211 # it if it's in CXXFLAGS. Ignore libCrun as
20212 # -library=stlport4 depends on it.
20213 case " $CXX $CXXFLAGS " in
20214 *" -library=stlport4 "*)
20215 solaris_use_stlport4=yes
20216 ;;
20217 esac
20218
20219 if test "$solaris_use_stlport4" != yes; then
20220 postdeps_CXX='-library=Cstd -library=Crun'
20221 fi
20222 ;;
20223 esac
20224 ;;
20225
20226 solaris*)
20227 case $cc_basename in
20228 CC*)
20229 # The more standards-conforming stlport4 library is
20230 # incompatible with the Cstd library. Avoid specifying
20231 # it if it's in CXXFLAGS. Ignore libCrun as
20232 # -library=stlport4 depends on it.
20233 case " $CXX $CXXFLAGS " in
20234 *" -library=stlport4 "*)
20235 solaris_use_stlport4=yes
20236 ;;
20237 esac
20238
20239 # Adding this requires a known-good setup of shared libraries for
20240 # Sun compiler versions before 5.6, else PIC objects from an old
20241 # archive will be linked into the output, leading to subtle bugs.
20242 if test "$solaris_use_stlport4" != yes; then
20243 postdeps_CXX='-library=Cstd -library=Crun'
20244 fi
20245 ;;
20246 esac
20247 ;;
20248 esac
20249
20250
20251 case " $postdeps_CXX " in
20252 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
20253 esac
20254 compiler_lib_search_dirs_CXX=
20255 if test -n "${compiler_lib_search_path_CXX}"; then
20256 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
20257 fi
20258
20259
20260
20261
20262
20263
20264
20265
20266
20267
20268
20269
20270
20271
20272
20273
20274
20275
20276
20277
20278
20279
20280
20281
20282
20283
20284
20285
20286
20287
20288
20289 lt_prog_compiler_wl_CXX=
20290 lt_prog_compiler_pic_CXX=
20291 lt_prog_compiler_static_CXX=
20292
20293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
20294 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
20295
20296 # C++ specific cases for pic, static, wl, etc.
20297 if test "$GXX" = yes; then
20298 lt_prog_compiler_wl_CXX='-Wl,'
20299 lt_prog_compiler_static_CXX='-static'
20300
20301 case $host_os in
20302 aix*)
20303 # All AIX code is PIC.
20304 if test "$host_cpu" = ia64; then
20305 # AIX 5 now supports IA64 processor
20306 lt_prog_compiler_static_CXX='-Bstatic'
20307 fi
20308 lt_prog_compiler_pic_CXX='-fPIC'
20309 ;;
20310
20311 amigaos*)
20312 case $host_cpu in
20313 powerpc)
20314 # see comment about AmigaOS4 .so support
20315 lt_prog_compiler_pic_CXX='-fPIC'
20316 ;;
20317 m68k)
20318 # FIXME: we need at least 68020 code to build shared libraries, but
20319 # adding the `-m68020' flag to GCC prevents building anything better,
20320 # like `-m68040'.
20321 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
20322 ;;
20323 esac
20324 ;;
20325
20326 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20327 # PIC is the default for these OSes.
20328 ;;
20329 mingw* | cygwin* | os2* | pw32* | cegcc*)
20330 # This hack is so that the source file can tell whether it is being
20331 # built for inclusion in a dll (and should export symbols for example).
20332 # Although the cygwin gcc ignores -fPIC, still need this for old-style
20333 # (--disable-auto-import) libraries
20334 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
20335 ;;
20336 darwin* | rhapsody*)
20337 # PIC is the default on this platform
20338 # Common symbols not allowed in MH_DYLIB files
20339 lt_prog_compiler_pic_CXX='-fno-common'
20340 ;;
20341 *djgpp*)
20342 # DJGPP does not support shared libraries at all
20343 lt_prog_compiler_pic_CXX=
20344 ;;
20345 haiku*)
20346 # PIC is the default for Haiku.
20347 # The "-static" flag exists, but is broken.
20348 lt_prog_compiler_static_CXX=
20349 ;;
20350 interix[3-9]*)
20351 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20352 # Instead, we relocate shared libraries at runtime.
20353 ;;
20354 sysv4*MP*)
20355 if test -d /usr/nec; then
20356 lt_prog_compiler_pic_CXX=-Kconform_pic
20357 fi
20358 ;;
20359 hpux*)
20360 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
20361 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
20362 # sets the default TLS model and affects inlining.
20363 case $host_cpu in
20364 hppa*64*)
20365 ;;
20366 *)
20367 lt_prog_compiler_pic_CXX='-fPIC'
20368 ;;
20369 esac
20370 ;;
20371 *qnx* | *nto*)
20372 # QNX uses GNU C++, but need to define -shared option too, otherwise
20373 # it will coredump.
20374 lt_prog_compiler_pic_CXX='-fPIC -shared'
20375 ;;
20376 *)
20377 lt_prog_compiler_pic_CXX='-fPIC'
20378 ;;
20379 esac
20380 else
20381 case $host_os in
20382 aix[4-9]*)
20383 # All AIX code is PIC.
20384 if test "$host_cpu" = ia64; then
20385 # AIX 5 now supports IA64 processor
20386 lt_prog_compiler_static_CXX='-Bstatic'
20387 else
20388 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
20389 fi
20390 ;;
20391 chorus*)
20392 case $cc_basename in
20393 cxch68*)
20394 # Green Hills C++ Compiler
20395 # _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"
20396 ;;
20397 esac
20398 ;;
20399 dgux*)
20400 case $cc_basename in
20401 ec++*)
20402 lt_prog_compiler_pic_CXX='-KPIC'
20403 ;;
20404 ghcx*)
20405 # Green Hills C++ Compiler
20406 lt_prog_compiler_pic_CXX='-pic'
20407 ;;
20408 *)
20409 ;;
20410 esac
20411 ;;
20412 freebsd* | dragonfly*)
20413 # FreeBSD uses GNU C++
20414 ;;
20415 hpux9* | hpux10* | hpux11*)
20416 case $cc_basename in
20417 CC*)
20418 lt_prog_compiler_wl_CXX='-Wl,'
20419 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20420 if test "$host_cpu" != ia64; then
20421 lt_prog_compiler_pic_CXX='+Z'
20422 fi
20423 ;;
20424 aCC*)
20425 lt_prog_compiler_wl_CXX='-Wl,'
20426 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20427 case $host_cpu in
20428 hppa*64*|ia64*)
20429 # +Z the default
20430 ;;
20431 *)
20432 lt_prog_compiler_pic_CXX='+Z'
20433 ;;
20434 esac
20435 ;;
20436 *)
20437 ;;
20438 esac
20439 ;;
20440 interix*)
20441 # This is c89, which is MS Visual C++ (no shared libs)
20442 # Anyone wants to do a port?
20443 ;;
20444 irix5* | irix6* | nonstopux*)
20445 case $cc_basename in
20446 CC*)
20447 lt_prog_compiler_wl_CXX='-Wl,'
20448 lt_prog_compiler_static_CXX='-non_shared'
20449 # CC pic flag -KPIC is the default.
20450 ;;
20451 *)
20452 ;;
20453 esac
20454 ;;
20455 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20456 case $cc_basename in
20457 KCC*)
20458 # KAI C++ Compiler
20459 lt_prog_compiler_wl_CXX='--backend -Wl,'
20460 lt_prog_compiler_pic_CXX='-fPIC'
20461 ;;
20462 ecpc* )
20463 # old Intel C++ for x86_64 which still supported -KPIC.
20464 lt_prog_compiler_wl_CXX='-Wl,'
20465 lt_prog_compiler_pic_CXX='-KPIC'
20466 lt_prog_compiler_static_CXX='-static'
20467 ;;
20468 icpc* )
20469 # Intel C++, used to be incompatible with GCC.
20470 # ICC 10 doesn't accept -KPIC any more.
20471 lt_prog_compiler_wl_CXX='-Wl,'
20472 lt_prog_compiler_pic_CXX='-fPIC'
20473 lt_prog_compiler_static_CXX='-static'
20474 ;;
20475 pgCC* | pgcpp*)
20476 # Portland Group C++ compiler
20477 lt_prog_compiler_wl_CXX='-Wl,'
20478 lt_prog_compiler_pic_CXX='-fpic'
20479 lt_prog_compiler_static_CXX='-Bstatic'
20480 ;;
20481 cxx*)
20482 # Compaq C++
20483 # Make sure the PIC flag is empty. It appears that all Alpha
20484 # Linux and Compaq Tru64 Unix objects are PIC.
20485 lt_prog_compiler_pic_CXX=
20486 lt_prog_compiler_static_CXX='-non_shared'
20487 ;;
20488 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
20489 # IBM XL 8.0, 9.0 on PPC and BlueGene
20490 lt_prog_compiler_wl_CXX='-Wl,'
20491 lt_prog_compiler_pic_CXX='-qpic'
20492 lt_prog_compiler_static_CXX='-qstaticlink'
20493 ;;
20494 *)
20495 case `$CC -V 2>&1 | sed 5q` in
20496 *Sun\ C*)
20497 # Sun C++ 5.9
20498 lt_prog_compiler_pic_CXX='-KPIC'
20499 lt_prog_compiler_static_CXX='-Bstatic'
20500 lt_prog_compiler_wl_CXX='-Qoption ld '
20501 ;;
20502 esac
20503 ;;
20504 esac
20505 ;;
20506 lynxos*)
20507 ;;
20508 m88k*)
20509 ;;
20510 mvs*)
20511 case $cc_basename in
20512 cxx*)
20513 lt_prog_compiler_pic_CXX='-W c,exportall'
20514 ;;
20515 *)
20516 ;;
20517 esac
20518 ;;
20519 netbsd*)
20520 ;;
20521 *qnx* | *nto*)
20522 # QNX uses GNU C++, but need to define -shared option too, otherwise
20523 # it will coredump.
20524 lt_prog_compiler_pic_CXX='-fPIC -shared'
20525 ;;
20526 osf3* | osf4* | osf5*)
20527 case $cc_basename in
20528 KCC*)
20529 lt_prog_compiler_wl_CXX='--backend -Wl,'
20530 ;;
20531 RCC*)
20532 # Rational C++ 2.4.1
20533 lt_prog_compiler_pic_CXX='-pic'
20534 ;;
20535 cxx*)
20536 # Digital/Compaq C++
20537 lt_prog_compiler_wl_CXX='-Wl,'
20538 # Make sure the PIC flag is empty. It appears that all Alpha
20539 # Linux and Compaq Tru64 Unix objects are PIC.
20540 lt_prog_compiler_pic_CXX=
20541 lt_prog_compiler_static_CXX='-non_shared'
20542 ;;
20543 *)
20544 ;;
20545 esac
20546 ;;
20547 psos*)
20548 ;;
20549 solaris*)
20550 case $cc_basename in
20551 CC*)
20552 # Sun C++ 4.2, 5.x and Centerline C++
20553 lt_prog_compiler_pic_CXX='-KPIC'
20554 lt_prog_compiler_static_CXX='-Bstatic'
20555 lt_prog_compiler_wl_CXX='-Qoption ld '
20556 ;;
20557 gcx*)
20558 # Green Hills C++ Compiler
20559 lt_prog_compiler_pic_CXX='-PIC'
20560 ;;
20561 *)
20562 ;;
20563 esac
20564 ;;
20565 sunos4*)
20566 case $cc_basename in
20567 CC*)
20568 # Sun C++ 4.x
20569 lt_prog_compiler_pic_CXX='-pic'
20570 lt_prog_compiler_static_CXX='-Bstatic'
20571 ;;
20572 lcc*)
20573 # Lucid
20574 lt_prog_compiler_pic_CXX='-pic'
20575 ;;
20576 *)
20577 ;;
20578 esac
20579 ;;
20580 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20581 case $cc_basename in
20582 CC*)
20583 lt_prog_compiler_wl_CXX='-Wl,'
20584 lt_prog_compiler_pic_CXX='-KPIC'
20585 lt_prog_compiler_static_CXX='-Bstatic'
20586 ;;
20587 esac
20588 ;;
20589 tandem*)
20590 case $cc_basename in
20591 NCC*)
20592 # NonStop-UX NCC 3.20
20593 lt_prog_compiler_pic_CXX='-KPIC'
20594 ;;
20595 *)
20596 ;;
20597 esac
20598 ;;
20599 vxworks*)
20600 ;;
20601 *)
20602 lt_prog_compiler_can_build_shared_CXX=no
20603 ;;
20604 esac
20605 fi
20606
20607 case $host_os in
20608 # For platforms which do not support PIC, -DPIC is meaningless:
20609 *djgpp*)
20610 lt_prog_compiler_pic_CXX=
20611 ;;
20612 *)
20613 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20614 ;;
20615 esac
20616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
20617 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
20618
20619
20620
20621 #
20622 # Check to make sure the PIC flag actually works.
20623 #
20624 if test -n "$lt_prog_compiler_pic_CXX"; then
20625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20626 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20627 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
20628 $as_echo_n "(cached) " >&6
20629 else
20630 lt_cv_prog_compiler_pic_works_CXX=no
20631 ac_outfile=conftest.$ac_objext
20632 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20633 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20634 # Insert the option either (1) after the last *FLAGS variable, or
20635 # (2) before a word containing "conftest.", or (3) at the end.
20636 # Note that $ac_compile itself does not contain backslashes and begins
20637 # with a dollar sign (not a hyphen), so the echo should work correctly.
20638 # The option is referenced via a variable to avoid confusing sed.
20639 lt_compile=`echo "$ac_compile" | $SED \
20640 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20641 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20642 -e 's:$: $lt_compiler_flag:'`
20643 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20644 (eval "$lt_compile" 2>conftest.err)
20645 ac_status=$?
20646 cat conftest.err >&5
20647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20648 if (exit $ac_status) && test -s "$ac_outfile"; then
20649 # The compiler can only warn and ignore the option if not recognized
20650 # So say no if there are warnings other than the usual output.
20651 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
20652 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20653 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20654 lt_cv_prog_compiler_pic_works_CXX=yes
20655 fi
20656 fi
20657 $RM conftest*
20658
20659 fi
20660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20661 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20662
20663 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
20664 case $lt_prog_compiler_pic_CXX in
20665 "" | " "*) ;;
20666 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20667 esac
20668 else
20669 lt_prog_compiler_pic_CXX=
20670 lt_prog_compiler_can_build_shared_CXX=no
20671 fi
20672
20673 fi
20674
20675
20676
20677 #
20678 # Check to make sure the static flag actually works.
20679 #
20680 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20682 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20683 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
20684 $as_echo_n "(cached) " >&6
20685 else
20686 lt_cv_prog_compiler_static_works_CXX=no
20687 save_LDFLAGS="$LDFLAGS"
20688 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20689 echo "$lt_simple_link_test_code" > conftest.$ac_ext
20690 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20691 # The linker can only warn and ignore the option if not recognized
20692 # So say no if there are warnings
20693 if test -s conftest.err; then
20694 # Append any errors to the config.log.
20695 cat conftest.err 1>&5
20696 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
20697 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20698 if diff conftest.exp conftest.er2 >/dev/null; then
20699 lt_cv_prog_compiler_static_works_CXX=yes
20700 fi
20701 else
20702 lt_cv_prog_compiler_static_works_CXX=yes
20703 fi
20704 fi
20705 $RM -r conftest*
20706 LDFLAGS="$save_LDFLAGS"
20707
20708 fi
20709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20710 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20711
20712 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
20713 :
20714 else
20715 lt_prog_compiler_static_CXX=
20716 fi
20717
20718
20719
20720
20721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20722 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20723 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20724 $as_echo_n "(cached) " >&6
20725 else
20726 lt_cv_prog_compiler_c_o_CXX=no
20727 $RM -r conftest 2>/dev/null
20728 mkdir conftest
20729 cd conftest
20730 mkdir out
20731 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20732
20733 lt_compiler_flag="-o out/conftest2.$ac_objext"
20734 # Insert the option either (1) after the last *FLAGS variable, or
20735 # (2) before a word containing "conftest.", or (3) at the end.
20736 # Note that $ac_compile itself does not contain backslashes and begins
20737 # with a dollar sign (not a hyphen), so the echo should work correctly.
20738 lt_compile=`echo "$ac_compile" | $SED \
20739 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20740 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20741 -e 's:$: $lt_compiler_flag:'`
20742 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20743 (eval "$lt_compile" 2>out/conftest.err)
20744 ac_status=$?
20745 cat out/conftest.err >&5
20746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20747 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20748 then
20749 # The compiler can only warn and ignore the option if not recognized
20750 # So say no if there are warnings
20751 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20752 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20753 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20754 lt_cv_prog_compiler_c_o_CXX=yes
20755 fi
20756 fi
20757 chmod u+w . 2>&5
20758 $RM conftest*
20759 # SGI C++ compiler will create directory out/ii_files/ for
20760 # template instantiation
20761 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20762 $RM out/* && rmdir out
20763 cd ..
20764 $RM -r conftest
20765 $RM conftest*
20766
20767 fi
20768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20769 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20770
20771
20772
20773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20774 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20775 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20776 $as_echo_n "(cached) " >&6
20777 else
20778 lt_cv_prog_compiler_c_o_CXX=no
20779 $RM -r conftest 2>/dev/null
20780 mkdir conftest
20781 cd conftest
20782 mkdir out
20783 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20784
20785 lt_compiler_flag="-o out/conftest2.$ac_objext"
20786 # Insert the option either (1) after the last *FLAGS variable, or
20787 # (2) before a word containing "conftest.", or (3) at the end.
20788 # Note that $ac_compile itself does not contain backslashes and begins
20789 # with a dollar sign (not a hyphen), so the echo should work correctly.
20790 lt_compile=`echo "$ac_compile" | $SED \
20791 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20792 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20793 -e 's:$: $lt_compiler_flag:'`
20794 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20795 (eval "$lt_compile" 2>out/conftest.err)
20796 ac_status=$?
20797 cat out/conftest.err >&5
20798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20799 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20800 then
20801 # The compiler can only warn and ignore the option if not recognized
20802 # So say no if there are warnings
20803 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20804 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20805 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20806 lt_cv_prog_compiler_c_o_CXX=yes
20807 fi
20808 fi
20809 chmod u+w . 2>&5
20810 $RM conftest*
20811 # SGI C++ compiler will create directory out/ii_files/ for
20812 # template instantiation
20813 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20814 $RM out/* && rmdir out
20815 cd ..
20816 $RM -r conftest
20817 $RM conftest*
20818
20819 fi
20820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20821 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20822
20823
20824
20825
20826 hard_links="nottested"
20827 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20828 # do not overwrite the value of need_locks provided by the user
20829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20830 $as_echo_n "checking if we can lock with hard links... " >&6; }
20831 hard_links=yes
20832 $RM conftest*
20833 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20834 touch conftest.a
20835 ln conftest.a conftest.b 2>&5 || hard_links=no
20836 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20838 $as_echo "$hard_links" >&6; }
20839 if test "$hard_links" = no; then
20840 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20841 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20842 need_locks=warn
20843 fi
20844 else
20845 need_locks=no
20846 fi
20847
20848
20849
20850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20851 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20852
20853 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20854 case $host_os in
20855 aix[4-9]*)
20856 # If we're using GNU nm, then we don't want the "-C" option.
20857 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20858 # Also, AIX nm treats weak defined symbols like other global defined
20859 # symbols, whereas GNU nm marks them as "W".
20860 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
20861 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'
20862 else
20863 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'
20864 fi
20865 ;;
20866 pw32*)
20867 export_symbols_cmds_CXX="$ltdll_cmds"
20868 ;;
20869 cygwin* | mingw* | cegcc*)
20870 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'
20871 ;;
20872 *)
20873 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20874 ;;
20875 esac
20876 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20877
20878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20879 $as_echo "$ld_shlibs_CXX" >&6; }
20880 test "$ld_shlibs_CXX" = no && can_build_shared=no
20881
20882 with_gnu_ld_CXX=$with_gnu_ld
20883
20884
20885
20886
20887
20888
20889 #
20890 # Do we need to explicitly link libc?
20891 #
20892 case "x$archive_cmds_need_lc_CXX" in
20893 x|xyes)
20894 # Assume -lc should be added
20895 archive_cmds_need_lc_CXX=yes
20896
20897 if test "$enable_shared" = yes && test "$GCC" = yes; then
20898 case $archive_cmds_CXX in
20899 *'~'*)
20900 # FIXME: we may have to deal with multi-command sequences.
20901 ;;
20902 '$CC '*)
20903 # Test whether the compiler implicitly links with -lc since on some
20904 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20905 # to ld, don't add -lc before -lgcc.
20906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20907 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20908 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
20909 $as_echo_n "(cached) " >&6
20910 else
20911 $RM conftest*
20912 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20913
20914 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20915 (eval $ac_compile) 2>&5
20916 ac_status=$?
20917 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20918 test $ac_status = 0; } 2>conftest.err; then
20919 soname=conftest
20920 lib=conftest
20921 libobjs=conftest.$ac_objext
20922 deplibs=
20923 wl=$lt_prog_compiler_wl_CXX
20924 pic_flag=$lt_prog_compiler_pic_CXX
20925 compiler_flags=-v
20926 linker_flags=-v
20927 verstring=
20928 output_objdir=.
20929 libname=conftest
20930 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20931 allow_undefined_flag_CXX=
20932 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20933 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
20934 ac_status=$?
20935 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20936 test $ac_status = 0; }
20937 then
20938 lt_cv_archive_cmds_need_lc_CXX=no
20939 else
20940 lt_cv_archive_cmds_need_lc_CXX=yes
20941 fi
20942 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20943 else
20944 cat conftest.err 1>&5
20945 fi
20946 $RM conftest*
20947
20948 fi
20949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20950 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20951 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
20952 ;;
20953 esac
20954 fi
20955 ;;
20956 esac
20957
20958
20959
20960
20961
20962
20963
20964
20965
20966
20967
20968
20969
20970
20971
20972
20973
20974
20975
20976
20977
20978
20979
20980
20981
20982
20983
20984
20985
20986
20987
20988
20989
20990
20991
20992
20993
20994
20995
20996
20997
20998
20999
21000
21001
21002
21003
21004
21005
21006
21007
21008
21009
21010
21011
21012
21013
21014
21015
21016
21017
21018
21019
21020
21021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
21022 $as_echo_n "checking dynamic linker characteristics... " >&6; }
21023
21024 library_names_spec=
21025 libname_spec='lib$name'
21026 soname_spec=
21027 shrext_cmds=".so"
21028 postinstall_cmds=
21029 postuninstall_cmds=
21030 finish_cmds=
21031 finish_eval=
21032 shlibpath_var=
21033 shlibpath_overrides_runpath=unknown
21034 version_type=none
21035 dynamic_linker="$host_os ld.so"
21036 sys_lib_dlsearch_path_spec="/lib /usr/lib"
21037 need_lib_prefix=unknown
21038 hardcode_into_libs=no
21039
21040 # when you set need_version to no, make sure it does not cause -set_version
21041 # flags to be left without arguments
21042 need_version=unknown
21043
21044 case $host_os in
21045 aix3*)
21046 version_type=linux
21047 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
21048 shlibpath_var=LIBPATH
21049
21050 # AIX 3 has no versioning support, so we append a major version to the name.
21051 soname_spec='${libname}${release}${shared_ext}$major'
21052 ;;
21053
21054 aix[4-9]*)
21055 version_type=linux
21056 need_lib_prefix=no
21057 need_version=no
21058 hardcode_into_libs=yes
21059 if test "$host_cpu" = ia64; then
21060 # AIX 5 supports IA64
21061 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
21062 shlibpath_var=LD_LIBRARY_PATH
21063 else
21064 # With GCC up to 2.95.x, collect2 would create an import file
21065 # for dependence libraries. The import file would start with
21066 # the line `#! .'. This would cause the generated library to
21067 # depend on `.', always an invalid library. This was fixed in
21068 # development snapshots of GCC prior to 3.0.
21069 case $host_os in
21070 aix4 | aix4.[01] | aix4.[01].*)
21071 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
21072 echo ' yes '
21073 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
21074 :
21075 else
21076 can_build_shared=no
21077 fi
21078 ;;
21079 esac
21080 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
21081 # soname into executable. Probably we can add versioning support to
21082 # collect2, so additional links can be useful in future.
21083 if test "$aix_use_runtimelinking" = yes; then
21084 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
21085 # instead of lib<name>.a to let people know that these are not
21086 # typical AIX shared libraries.
21087 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21088 else
21089 # We preserve .a as extension for shared libraries through AIX4.2
21090 # and later when we are not doing run time linking.
21091 library_names_spec='${libname}${release}.a $libname.a'
21092 soname_spec='${libname}${release}${shared_ext}$major'
21093 fi
21094 shlibpath_var=LIBPATH
21095 fi
21096 ;;
21097
21098 amigaos*)
21099 case $host_cpu in
21100 powerpc)
21101 # Since July 2007 AmigaOS4 officially supports .so libraries.
21102 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
21103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21104 ;;
21105 m68k)
21106 library_names_spec='$libname.ixlibrary $libname.a'
21107 # Create ${libname}_ixlibrary.a entries in /sys/libs.
21108 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'
21109 ;;
21110 esac
21111 ;;
21112
21113 beos*)
21114 library_names_spec='${libname}${shared_ext}'
21115 dynamic_linker="$host_os ld.so"
21116 shlibpath_var=LIBRARY_PATH
21117 ;;
21118
21119 bsdi[45]*)
21120 version_type=linux
21121 need_version=no
21122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21123 soname_spec='${libname}${release}${shared_ext}$major'
21124 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
21125 shlibpath_var=LD_LIBRARY_PATH
21126 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
21127 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
21128 # the default ld.so.conf also contains /usr/contrib/lib and
21129 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
21130 # libtool to hard-code these into programs
21131 ;;
21132
21133 cygwin* | mingw* | pw32* | cegcc*)
21134 version_type=windows
21135 shrext_cmds=".dll"
21136 need_version=no
21137 need_lib_prefix=no
21138
21139 case $GCC,$host_os in
21140 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
21141 library_names_spec='$libname.dll.a'
21142 # DLL is installed to $(libdir)/../bin by postinstall_cmds
21143 postinstall_cmds='base_file=`basename \${file}`~
21144 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
21145 dldir=$destdir/`dirname \$dlpath`~
21146 test -d \$dldir || mkdir -p \$dldir~
21147 $install_prog $dir/$dlname \$dldir/$dlname~
21148 chmod a+x \$dldir/$dlname~
21149 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
21150 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
21151 fi'
21152 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
21153 dlpath=$dir/\$dldll~
21154 $RM \$dlpath'
21155 shlibpath_overrides_runpath=yes
21156
21157 case $host_os in
21158 cygwin*)
21159 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
21160 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21161
21162 ;;
21163 mingw* | cegcc*)
21164 # MinGW DLLs use traditional 'lib' prefix
21165 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21166 ;;
21167 pw32*)
21168 # pw32 DLLs use 'pw' prefix rather than 'lib'
21169 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21170 ;;
21171 esac
21172 ;;
21173
21174 *)
21175 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
21176 ;;
21177 esac
21178 dynamic_linker='Win32 ld.exe'
21179 # FIXME: first we should search . and the directory the executable is in
21180 shlibpath_var=PATH
21181 ;;
21182
21183 darwin* | rhapsody*)
21184 dynamic_linker="$host_os dyld"
21185 version_type=darwin
21186 need_lib_prefix=no
21187 need_version=no
21188 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
21189 soname_spec='${libname}${release}${major}$shared_ext'
21190 shlibpath_overrides_runpath=yes
21191 shlibpath_var=DYLD_LIBRARY_PATH
21192 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
21193
21194 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
21195 ;;
21196
21197 dgux*)
21198 version_type=linux
21199 need_lib_prefix=no
21200 need_version=no
21201 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
21202 soname_spec='${libname}${release}${shared_ext}$major'
21203 shlibpath_var=LD_LIBRARY_PATH
21204 ;;
21205
21206 freebsd* | dragonfly*)
21207 # DragonFly does not have aout. When/if they implement a new
21208 # versioning mechanism, adjust this.
21209 if test -x /usr/bin/objformat; then
21210 objformat=`/usr/bin/objformat`
21211 else
21212 case $host_os in
21213 freebsd[23].*) objformat=aout ;;
21214 *) objformat=elf ;;
21215 esac
21216 fi
21217 version_type=freebsd-$objformat
21218 case $version_type in
21219 freebsd-elf*)
21220 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21221 need_version=no
21222 need_lib_prefix=no
21223 ;;
21224 freebsd-*)
21225 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
21226 need_version=yes
21227 ;;
21228 esac
21229 shlibpath_var=LD_LIBRARY_PATH
21230 case $host_os in
21231 freebsd2.*)
21232 shlibpath_overrides_runpath=yes
21233 ;;
21234 freebsd3.[01]* | freebsdelf3.[01]*)
21235 shlibpath_overrides_runpath=yes
21236 hardcode_into_libs=yes
21237 ;;
21238 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
21239 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
21240 shlibpath_overrides_runpath=no
21241 hardcode_into_libs=yes
21242 ;;
21243 *) # from 4.6 on, and DragonFly
21244 shlibpath_overrides_runpath=yes
21245 hardcode_into_libs=yes
21246 ;;
21247 esac
21248 ;;
21249
21250 gnu*)
21251 version_type=linux
21252 need_lib_prefix=no
21253 need_version=no
21254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21255 soname_spec='${libname}${release}${shared_ext}$major'
21256 shlibpath_var=LD_LIBRARY_PATH
21257 hardcode_into_libs=yes
21258 ;;
21259
21260 haiku*)
21261 version_type=linux
21262 need_lib_prefix=no
21263 need_version=no
21264 dynamic_linker="$host_os runtime_loader"
21265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21266 soname_spec='${libname}${release}${shared_ext}$major'
21267 shlibpath_var=LIBRARY_PATH
21268 shlibpath_overrides_runpath=yes
21269 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
21270 hardcode_into_libs=yes
21271 ;;
21272
21273 hpux9* | hpux10* | hpux11*)
21274 # Give a soname corresponding to the major version so that dld.sl refuses to
21275 # link against other versions.
21276 version_type=sunos
21277 need_lib_prefix=no
21278 need_version=no
21279 case $host_cpu in
21280 ia64*)
21281 shrext_cmds='.so'
21282 hardcode_into_libs=yes
21283 dynamic_linker="$host_os dld.so"
21284 shlibpath_var=LD_LIBRARY_PATH
21285 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21286 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21287 soname_spec='${libname}${release}${shared_ext}$major'
21288 if test "X$HPUX_IA64_MODE" = X32; then
21289 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
21290 else
21291 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
21292 fi
21293 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21294 ;;
21295 hppa*64*)
21296 shrext_cmds='.sl'
21297 hardcode_into_libs=yes
21298 dynamic_linker="$host_os dld.sl"
21299 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
21300 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21302 soname_spec='${libname}${release}${shared_ext}$major'
21303 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
21304 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21305 ;;
21306 *)
21307 shrext_cmds='.sl'
21308 dynamic_linker="$host_os dld.sl"
21309 shlibpath_var=SHLIB_PATH
21310 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
21311 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21312 soname_spec='${libname}${release}${shared_ext}$major'
21313 ;;
21314 esac
21315 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
21316 postinstall_cmds='chmod 555 $lib'
21317 # or fails outright, so override atomically:
21318 install_override_mode=555
21319 ;;
21320
21321 interix[3-9]*)
21322 version_type=linux
21323 need_lib_prefix=no
21324 need_version=no
21325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21326 soname_spec='${libname}${release}${shared_ext}$major'
21327 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
21328 shlibpath_var=LD_LIBRARY_PATH
21329 shlibpath_overrides_runpath=no
21330 hardcode_into_libs=yes
21331 ;;
21332
21333 irix5* | irix6* | nonstopux*)
21334 case $host_os in
21335 nonstopux*) version_type=nonstopux ;;
21336 *)
21337 if test "$lt_cv_prog_gnu_ld" = yes; then
21338 version_type=linux
21339 else
21340 version_type=irix
21341 fi ;;
21342 esac
21343 need_lib_prefix=no
21344 need_version=no
21345 soname_spec='${libname}${release}${shared_ext}$major'
21346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21347 case $host_os in
21348 irix5* | nonstopux*)
21349 libsuff= shlibsuff=
21350 ;;
21351 *)
21352 case $LD in # libtool.m4 will add one of these switches to LD
21353 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
21354 libsuff= shlibsuff= libmagic=32-bit;;
21355 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
21356 libsuff=32 shlibsuff=N32 libmagic=N32;;
21357 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
21358 libsuff=64 shlibsuff=64 libmagic=64-bit;;
21359 *) libsuff= shlibsuff= libmagic=never-match;;
21360 esac
21361 ;;
21362 esac
21363 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
21364 shlibpath_overrides_runpath=no
21365 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21366 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
21367 hardcode_into_libs=yes
21368 ;;
21369
21370 # No shared lib support for Linux oldld, aout, or coff.
21371 linux*oldld* | linux*aout* | linux*coff*)
21372 dynamic_linker=no
21373 ;;
21374
21375 # This must be Linux ELF.
21376 linux* | k*bsd*-gnu | kopensolaris*-gnu)
21377 version_type=linux
21378 need_lib_prefix=no
21379 need_version=no
21380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21381 soname_spec='${libname}${release}${shared_ext}$major'
21382 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21383 shlibpath_var=LD_LIBRARY_PATH
21384 shlibpath_overrides_runpath=no
21385
21386 # Some binutils ld are patched to set DT_RUNPATH
21387 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
21388 $as_echo_n "(cached) " >&6
21389 else
21390 lt_cv_shlibpath_overrides_runpath=no
21391 save_LDFLAGS=$LDFLAGS
21392 save_libdir=$libdir
21393 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
21394 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
21395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21396 /* end confdefs.h. */
21397
21398 int
21399 main ()
21400 {
21401
21402 ;
21403 return 0;
21404 }
21405 _ACEOF
21406 if ac_fn_cxx_try_link "$LINENO"; then :
21407 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
21408 lt_cv_shlibpath_overrides_runpath=yes
21409 fi
21410 fi
21411 rm -f core conftest.err conftest.$ac_objext \
21412 conftest$ac_exeext conftest.$ac_ext
21413 LDFLAGS=$save_LDFLAGS
21414 libdir=$save_libdir
21415
21416 fi
21417
21418 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
21419
21420 # This implies no fast_install, which is unacceptable.
21421 # Some rework will be needed to allow for fast_install
21422 # before this can be enabled.
21423 hardcode_into_libs=yes
21424
21425 # Append ld.so.conf contents to the search path
21426 if test -f /etc/ld.so.conf; then
21427 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' ' '`
21428 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
21429 fi
21430
21431 # We used to test for /lib/ld.so.1 and disable shared libraries on
21432 # powerpc, because MkLinux only supported shared libraries with the
21433 # GNU dynamic linker. Since this was broken with cross compilers,
21434 # most powerpc-linux boxes support dynamic linking these days and
21435 # people can always --disable-shared, the test was removed, and we
21436 # assume the GNU/Linux dynamic linker is in use.
21437 dynamic_linker='GNU/Linux ld.so'
21438 ;;
21439
21440 netbsd*)
21441 version_type=sunos
21442 need_lib_prefix=no
21443 need_version=no
21444 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
21445 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21446 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21447 dynamic_linker='NetBSD (a.out) ld.so'
21448 else
21449 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21450 soname_spec='${libname}${release}${shared_ext}$major'
21451 dynamic_linker='NetBSD ld.elf_so'
21452 fi
21453 shlibpath_var=LD_LIBRARY_PATH
21454 shlibpath_overrides_runpath=yes
21455 hardcode_into_libs=yes
21456 ;;
21457
21458 newsos6)
21459 version_type=linux
21460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21461 shlibpath_var=LD_LIBRARY_PATH
21462 shlibpath_overrides_runpath=yes
21463 ;;
21464
21465 *nto* | *qnx*)
21466 version_type=qnx
21467 need_lib_prefix=no
21468 need_version=no
21469 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21470 soname_spec='${libname}${release}${shared_ext}$major'
21471 shlibpath_var=LD_LIBRARY_PATH
21472 shlibpath_overrides_runpath=no
21473 hardcode_into_libs=yes
21474 dynamic_linker='ldqnx.so'
21475 ;;
21476
21477 openbsd*)
21478 version_type=sunos
21479 sys_lib_dlsearch_path_spec="/usr/lib"
21480 need_lib_prefix=no
21481 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21482 case $host_os in
21483 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
21484 *) need_version=no ;;
21485 esac
21486 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21487 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21488 shlibpath_var=LD_LIBRARY_PATH
21489 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21490 case $host_os in
21491 openbsd2.[89] | openbsd2.[89].*)
21492 shlibpath_overrides_runpath=no
21493 ;;
21494 *)
21495 shlibpath_overrides_runpath=yes
21496 ;;
21497 esac
21498 else
21499 shlibpath_overrides_runpath=yes
21500 fi
21501 ;;
21502
21503 os2*)
21504 libname_spec='$name'
21505 shrext_cmds=".dll"
21506 need_lib_prefix=no
21507 library_names_spec='$libname${shared_ext} $libname.a'
21508 dynamic_linker='OS/2 ld.exe'
21509 shlibpath_var=LIBPATH
21510 ;;
21511
21512 osf3* | osf4* | osf5*)
21513 version_type=osf
21514 need_lib_prefix=no
21515 need_version=no
21516 soname_spec='${libname}${release}${shared_ext}$major'
21517 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21518 shlibpath_var=LD_LIBRARY_PATH
21519 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21520 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21521 ;;
21522
21523 rdos*)
21524 dynamic_linker=no
21525 ;;
21526
21527 solaris*)
21528 version_type=linux
21529 need_lib_prefix=no
21530 need_version=no
21531 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21532 soname_spec='${libname}${release}${shared_ext}$major'
21533 shlibpath_var=LD_LIBRARY_PATH
21534 shlibpath_overrides_runpath=yes
21535 hardcode_into_libs=yes
21536 # ldd complains unless libraries are executable
21537 postinstall_cmds='chmod +x $lib'
21538 ;;
21539
21540 sunos4*)
21541 version_type=sunos
21542 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21543 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21544 shlibpath_var=LD_LIBRARY_PATH
21545 shlibpath_overrides_runpath=yes
21546 if test "$with_gnu_ld" = yes; then
21547 need_lib_prefix=no
21548 fi
21549 need_version=yes
21550 ;;
21551
21552 sysv4 | sysv4.3*)
21553 version_type=linux
21554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21555 soname_spec='${libname}${release}${shared_ext}$major'
21556 shlibpath_var=LD_LIBRARY_PATH
21557 case $host_vendor in
21558 sni)
21559 shlibpath_overrides_runpath=no
21560 need_lib_prefix=no
21561 runpath_var=LD_RUN_PATH
21562 ;;
21563 siemens)
21564 need_lib_prefix=no
21565 ;;
21566 motorola)
21567 need_lib_prefix=no
21568 need_version=no
21569 shlibpath_overrides_runpath=no
21570 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21571 ;;
21572 esac
21573 ;;
21574
21575 sysv4*MP*)
21576 if test -d /usr/nec ;then
21577 version_type=linux
21578 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21579 soname_spec='$libname${shared_ext}.$major'
21580 shlibpath_var=LD_LIBRARY_PATH
21581 fi
21582 ;;
21583
21584 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21585 version_type=freebsd-elf
21586 need_lib_prefix=no
21587 need_version=no
21588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21589 soname_spec='${libname}${release}${shared_ext}$major'
21590 shlibpath_var=LD_LIBRARY_PATH
21591 shlibpath_overrides_runpath=yes
21592 hardcode_into_libs=yes
21593 if test "$with_gnu_ld" = yes; then
21594 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21595 else
21596 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21597 case $host_os in
21598 sco3.2v5*)
21599 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21600 ;;
21601 esac
21602 fi
21603 sys_lib_dlsearch_path_spec='/usr/lib'
21604 ;;
21605
21606 tpf*)
21607 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
21608 version_type=linux
21609 need_lib_prefix=no
21610 need_version=no
21611 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21612 shlibpath_var=LD_LIBRARY_PATH
21613 shlibpath_overrides_runpath=no
21614 hardcode_into_libs=yes
21615 ;;
21616
21617 uts4*)
21618 version_type=linux
21619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21620 soname_spec='${libname}${release}${shared_ext}$major'
21621 shlibpath_var=LD_LIBRARY_PATH
21622 ;;
21623
21624 *)
21625 dynamic_linker=no
21626 ;;
21627 esac
21628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21629 $as_echo "$dynamic_linker" >&6; }
21630 test "$dynamic_linker" = no && can_build_shared=no
21631
21632 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21633 if test "$GCC" = yes; then
21634 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21635 fi
21636
21637 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21638 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
21639 fi
21640 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21641 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
21642 fi
21643
21644
21645
21646
21647
21648
21649
21650
21651
21652
21653
21654
21655
21656
21657
21658
21659
21660
21661
21662
21663
21664
21665
21666
21667
21668
21669
21670
21671
21672
21673
21674
21675
21676
21677
21678
21679
21680
21681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21682 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21683 hardcode_action_CXX=
21684 if test -n "$hardcode_libdir_flag_spec_CXX" ||
21685 test -n "$runpath_var_CXX" ||
21686 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21687
21688 # We can hardcode non-existent directories.
21689 if test "$hardcode_direct_CXX" != no &&
21690 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21691 # have to relink, otherwise we might link with an installed library
21692 # when we should be linking with a yet-to-be-installed one
21693 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21694 test "$hardcode_minus_L_CXX" != no; then
21695 # Linking always hardcodes the temporary library directory.
21696 hardcode_action_CXX=relink
21697 else
21698 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21699 hardcode_action_CXX=immediate
21700 fi
21701 else
21702 # We cannot hardcode anything, or else we can only hardcode existing
21703 # directories.
21704 hardcode_action_CXX=unsupported
21705 fi
21706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21707 $as_echo "$hardcode_action_CXX" >&6; }
21708
21709 if test "$hardcode_action_CXX" = relink ||
21710 test "$inherit_rpath_CXX" = yes; then
21711 # Fast installation is not supported
21712 enable_fast_install=no
21713 elif test "$shlibpath_overrides_runpath" = yes ||
21714 test "$enable_shared" = no; then
21715 # Fast installation is not necessary
21716 enable_fast_install=needless
21717 fi
21718
21719
21720
21721
21722
21723
21724
21725 fi # test -n "$compiler"
21726
21727 CC=$lt_save_CC
21728 LDCXX=$LD
21729 LD=$lt_save_LD
21730 GCC=$lt_save_GCC
21731 with_gnu_ld=$lt_save_with_gnu_ld
21732 lt_cv_path_LDCXX=$lt_cv_path_LD
21733 lt_cv_path_LD=$lt_save_path_LD
21734 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21735 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21736 fi # test "$_lt_caught_CXX_error" != yes
21737
21738 ac_ext=cpp
21739 ac_cpp='$CXXCPP $CPPFLAGS'
21740 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21741 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21742 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21743
21744
21745
21746
21747
21748
21749
21750
21751
21752
21753
21754
21755
21756
21757
21758
21759 # Only expand once:
21760
21761
21762
21763
21764
21765 # Identify the assembler which will work hand-in-glove with the newly
21766 # built GCC, so that we can examine its features. This is the assembler
21767 # which will be driven by the driver program.
21768 #
21769 # If build != host, and we aren't building gas in-tree, we identify a
21770 # build->target assembler and hope that it will have the same features
21771 # as the host->target assembler we'll be using.
21772 gcc_cv_gas_major_version=
21773 gcc_cv_gas_minor_version=
21774 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
21775
21776 if test "${gcc_cv_as+set}" = set; then :
21777
21778 else
21779
21780 if test -x "$DEFAULT_ASSEMBLER"; then
21781 gcc_cv_as="$DEFAULT_ASSEMBLER"
21782 elif test -f $gcc_cv_as_gas_srcdir/configure.ac \
21783 && test -f ../gas/Makefile \
21784 && test x$build = x$host; then
21785 gcc_cv_as=../gas/as-new$build_exeext
21786 elif test -x as$build_exeext; then
21787 # Build using assembler in the current directory.
21788 gcc_cv_as=./as$build_exeext
21789 elif ( set dummy $AS_FOR_TARGET; test -x $2 ); then
21790 gcc_cv_as="$AS_FOR_TARGET"
21791 else
21792 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
21793 set dummy $AS_FOR_TARGET; ac_word=$2
21794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21795 $as_echo_n "checking for $ac_word... " >&6; }
21796 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
21797 $as_echo_n "(cached) " >&6
21798 else
21799 case $gcc_cv_as in
21800 [\\/]* | ?:[\\/]*)
21801 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
21802 ;;
21803 *)
21804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21805 for as_dir in $PATH
21806 do
21807 IFS=$as_save_IFS
21808 test -z "$as_dir" && as_dir=.
21809 for ac_exec_ext in '' $ac_executable_extensions; do
21810 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21811 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
21812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21813 break 2
21814 fi
21815 done
21816 done
21817 IFS=$as_save_IFS
21818
21819 ;;
21820 esac
21821 fi
21822 gcc_cv_as=$ac_cv_path_gcc_cv_as
21823 if test -n "$gcc_cv_as"; then
21824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21825 $as_echo "$gcc_cv_as" >&6; }
21826 else
21827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21828 $as_echo "no" >&6; }
21829 fi
21830
21831
21832 fi
21833 fi
21834
21835 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
21836
21837 case "$ORIGINAL_AS_FOR_TARGET" in
21838 ./as | ./as$build_exeext) ;;
21839 *) ac_config_files="$ac_config_files as:exec-tool.in"
21840 ;;
21841 esac
21842
21843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
21844 $as_echo_n "checking what assembler to use... " >&6; }
21845 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
21846 # Single tree build which includes gas. We want to prefer it
21847 # over whatever linker top-level may have detected, since
21848 # we'll use what we're building after installation anyway.
21849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
21850 $as_echo "newly built gas" >&6; }
21851 in_tree_gas=yes
21852 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21853 for f in $gcc_cv_as_bfd_srcdir/configure \
21854 $gcc_cv_as_gas_srcdir/configure \
21855 $gcc_cv_as_gas_srcdir/configure.ac \
21856 $gcc_cv_as_gas_srcdir/Makefile.in ; do
21857 gcc_cv_gas_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21858 if test x$gcc_cv_gas_version != x; then
21859 break
21860 fi
21861 done
21862 case $gcc_cv_gas_version in
21863 VERSION=[0-9]*) ;;
21864 *) as_fn_error "cannot find version of in-tree assembler" "$LINENO" 5;;
21865 esac
21866 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
21867 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21868 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
21869 case $gcc_cv_gas_patch_version in
21870 "") gcc_cv_gas_patch_version="0" ;;
21871 esac
21872 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
21873 + $gcc_cv_gas_minor_version \) \* 1000 \
21874 + $gcc_cv_gas_patch_version`
21875
21876 in_tree_gas_is_elf=no
21877 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
21878 || (grep 'obj_format = multi' ../gas/Makefile \
21879 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
21880 then
21881 in_tree_gas_is_elf=yes
21882 fi
21883 else
21884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21885 $as_echo "$gcc_cv_as" >&6; }
21886 in_tree_gas=no
21887 fi
21888
21889 default_ld=
21890 # Check whether --enable-ld was given.
21891 if test "${enable_ld+set}" = set; then :
21892 enableval=$enable_ld; case "${enableval}" in
21893 no)
21894 default_ld=ld.gold
21895 ;;
21896 esac
21897 fi
21898
21899
21900 install_gold_as_default=no
21901 # Check whether --enable-gold was given.
21902 if test "${enable_gold+set}" = set; then :
21903 enableval=$enable_gold; case "${enableval}" in
21904 default)
21905 install_gold_as_default=yes
21906 ;;
21907 yes)
21908 if test x${default_ld} != x; then
21909 install_gold_as_default=yes
21910 fi
21911 ;;
21912 no)
21913 ;;
21914 *)
21915 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
21916 ;;
21917 esac
21918 fi
21919
21920
21921 # Identify the linker which will work hand-in-glove with the newly
21922 # built GCC, so that we can examine its features. This is the linker
21923 # which will be driven by the driver program.
21924 #
21925 # If build != host, and we aren't building gas in-tree, we identify a
21926 # build->target linker and hope that it will have the same features
21927 # as the host->target linker we'll be using.
21928 gcc_cv_gld_major_version=
21929 gcc_cv_gld_minor_version=
21930 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
21931 gcc_cv_ld_gold_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gold
21932 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21933
21934 if test "${gcc_cv_ld+set}" = set; then :
21935
21936 else
21937
21938 if test -x "$DEFAULT_LINKER"; then
21939 gcc_cv_ld="$DEFAULT_LINKER"
21940 elif test $install_gold_as_default = yes \
21941 && test -f $gcc_cv_ld_gold_srcdir/configure.ac \
21942 && test -f ../gold/Makefile \
21943 && test x$build = x$host; then
21944 gcc_cv_ld=../gold/ld-new$build_exeext
21945 elif test -f $gcc_cv_ld_gld_srcdir/configure.ac \
21946 && test -f ../ld/Makefile \
21947 && test x$build = x$host; then
21948 gcc_cv_ld=../ld/ld-new$build_exeext
21949 elif test -x collect-ld$build_exeext; then
21950 # Build using linker in the current directory.
21951 gcc_cv_ld=./collect-ld$build_exeext
21952 elif ( set dummy $LD_FOR_TARGET; test -x $2 ); then
21953 gcc_cv_ld="$LD_FOR_TARGET"
21954 else
21955 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
21956 set dummy $LD_FOR_TARGET; ac_word=$2
21957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21958 $as_echo_n "checking for $ac_word... " >&6; }
21959 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
21960 $as_echo_n "(cached) " >&6
21961 else
21962 case $gcc_cv_ld in
21963 [\\/]* | ?:[\\/]*)
21964 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
21965 ;;
21966 *)
21967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21968 for as_dir in $PATH
21969 do
21970 IFS=$as_save_IFS
21971 test -z "$as_dir" && as_dir=.
21972 for ac_exec_ext in '' $ac_executable_extensions; do
21973 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21974 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
21975 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21976 break 2
21977 fi
21978 done
21979 done
21980 IFS=$as_save_IFS
21981
21982 ;;
21983 esac
21984 fi
21985 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
21986 if test -n "$gcc_cv_ld"; then
21987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21988 $as_echo "$gcc_cv_ld" >&6; }
21989 else
21990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21991 $as_echo "no" >&6; }
21992 fi
21993
21994
21995 fi
21996 fi
21997
21998 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
21999 PLUGIN_LD_SUFFIX=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
22000 # if the PLUGIN_LD is set ld-new, just have it as ld
22001 # as that is the installed named.
22002 if test x$PLUGIN_LD_SUFFIX = xld-new \
22003 || test x$PLUGIN_LD_SUFFIX = xcollect-ld ; then
22004 PLUGIN_LD_SUFFIX=ld
22005 fi
22006
22007 # Check whether --with-plugin-ld was given.
22008 if test "${with_plugin_ld+set}" = set; then :
22009 withval=$with_plugin_ld; if test x"$withval" != x; then
22010 ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
22011 PLUGIN_LD_SUFFIX=`echo $withval | sed -e "s,$target_alias-,,"`
22012 fi
22013 fi
22014
22015
22016
22017 cat >>confdefs.h <<_ACEOF
22018 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
22019 _ACEOF
22020
22021
22022 # Check to see if we are using gold instead of ld
22023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
22024 $as_echo_n "checking whether we are using gold... " >&6; }
22025 ld_is_gold=no
22026 if test x$gcc_cv_ld != x; then
22027 if $gcc_cv_ld --version 2>/dev/null | sed 1q \
22028 | grep "GNU gold" > /dev/null; then
22029 ld_is_gold=yes
22030 fi
22031 fi
22032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
22033 $as_echo "$ld_is_gold" >&6; }
22034
22035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gold linker with split stack support as non default" >&5
22036 $as_echo_n "checking gold linker with split stack support as non default... " >&6; }
22037 # Check to see if default ld is not gold, but gold is
22038 # available and has support for split stack. If gcc was configured
22039 # with gold then no checking is done.
22040 #
22041 if test x$ld_is_gold = xno && which ${gcc_cv_ld}.gold >/dev/null 2>&1; then
22042
22043 # For platforms other than powerpc64*, enable as appropriate.
22044
22045 gold_non_default=no
22046 ld_gold=`which ${gcc_cv_ld}.gold`
22047 # Make sure this gold has minimal split stack support
22048 if $ld_gold --help 2>/dev/null | grep split-stack-adjust-size >/dev/null 2>&1; then
22049 ld_vers=`$ld_gold --version | sed 1q`
22050 gold_vers=`echo $ld_vers | sed -n \
22051 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22052 case $target in
22053 # check that the gold version contains the complete split stack support
22054 # on powerpc64 big and little endian
22055 powerpc64*-*-*)
22056 case "$gold_vers" in
22057 2.25.[1-9]*|2.2[6-9][.0-9]*|2.[3-9][.0-9]*|[3-9].[.0-9]*) gold_non_default=yes
22058 ;;
22059 *) gold_non_default=no
22060 ;;
22061 esac
22062 ;;
22063 esac
22064 fi
22065 if test $gold_non_default = yes; then
22066
22067 $as_echo "#define HAVE_GOLD_NON_DEFAULT_SPLIT_STACK 1" >>confdefs.h
22068
22069 fi
22070 fi
22071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_non_default" >&5
22072 $as_echo "$gold_non_default" >&6; }
22073
22074 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
22075
22076 case "$ORIGINAL_LD_FOR_TARGET" in
22077 ./collect-ld | ./collect-ld$build_exeext) ;;
22078 *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
22079 ;;
22080 esac
22081
22082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
22083 $as_echo_n "checking what linker to use... " >&6; }
22084 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext \
22085 || test "$gcc_cv_ld" = ../gold/ld-new$build_exeext; then
22086 # Single tree build which includes ld. We want to prefer it
22087 # over whatever linker top-level may have detected, since
22088 # we'll use what we're building after installation anyway.
22089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
22090 $as_echo "newly built ld" >&6; }
22091 in_tree_ld=yes
22092 in_tree_ld_is_elf=no
22093 if (grep 'EMUL = .*elf' ../ld/Makefile \
22094 || grep 'EMUL = .*linux' ../ld/Makefile \
22095 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
22096 in_tree_ld_is_elf=yes
22097 elif test "$ld_is_gold" = yes; then
22098 in_tree_ld_is_elf=yes
22099 fi
22100 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
22101 do
22102 gcc_cv_gld_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
22103 if test x$gcc_cv_gld_version != x; then
22104 break
22105 fi
22106 done
22107 case $gcc_cv_gld_version in
22108 VERSION=[0-9]*) ;;
22109 *) as_fn_error "cannot find version of in-tree linker" "$LINENO" 5 ;;
22110 esac
22111 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
22112 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
22113 ORIGINAL_LD_BFD_FOR_TARGET=../ld/ld-new$build_exeext
22114 ORIGINAL_LD_GOLD_FOR_TARGET=../gold/ld-new$build_exeext
22115 else
22116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
22117 $as_echo "$gcc_cv_ld" >&6; }
22118 in_tree_ld=no
22119 gcc_cvs_ld_program=`dirname $gcc_cv_ld`/`basename $gcc_cv_ld $host_exeext`
22120 ORIGINAL_LD_BFD_FOR_TARGET=${gcc_cvs_ld_program}.bfd$host_exeext
22121 ORIGINAL_LD_GOLD_FOR_TARGET=${gcc_cvs_ld_program}.gold$host_exeext
22122 fi
22123
22124
22125
22126
22127 # Figure out what nm we will be using.
22128 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
22129 if test "${gcc_cv_nm+set}" = set; then :
22130
22131 else
22132
22133 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22134 && test -f ../binutils/Makefile \
22135 && test x$build = x$host; then
22136 gcc_cv_nm=../binutils/nm-new$build_exeext
22137 elif test -x nm$build_exeext; then
22138 gcc_cv_nm=./nm$build_exeext
22139 elif ( set dummy $NM_FOR_TARGET; test -x $2 ); then
22140 gcc_cv_nm="$NM_FOR_TARGET"
22141 else
22142 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
22143 set dummy $NM_FOR_TARGET; ac_word=$2
22144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22145 $as_echo_n "checking for $ac_word... " >&6; }
22146 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
22147 $as_echo_n "(cached) " >&6
22148 else
22149 case $gcc_cv_nm in
22150 [\\/]* | ?:[\\/]*)
22151 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
22152 ;;
22153 *)
22154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22155 for as_dir in $PATH
22156 do
22157 IFS=$as_save_IFS
22158 test -z "$as_dir" && as_dir=.
22159 for ac_exec_ext in '' $ac_executable_extensions; do
22160 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22161 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
22162 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22163 break 2
22164 fi
22165 done
22166 done
22167 IFS=$as_save_IFS
22168
22169 ;;
22170 esac
22171 fi
22172 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
22173 if test -n "$gcc_cv_nm"; then
22174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
22175 $as_echo "$gcc_cv_nm" >&6; }
22176 else
22177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22178 $as_echo "no" >&6; }
22179 fi
22180
22181
22182 fi
22183 fi
22184
22185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
22186 $as_echo_n "checking what nm to use... " >&6; }
22187 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
22188 # Single tree build which includes binutils.
22189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
22190 $as_echo "newly built nm" >&6; }
22191 in_tree_nm=yes
22192 else
22193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
22194 $as_echo "$gcc_cv_nm" >&6; }
22195 in_tree_nm=no
22196 fi
22197
22198 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
22199
22200 case "$ORIGINAL_NM_FOR_TARGET" in
22201 ./nm | ./nm$build_exeext) ;;
22202 *) ac_config_files="$ac_config_files nm:exec-tool.in"
22203 ;;
22204 esac
22205
22206
22207 # Figure out what objdump we will be using.
22208 if test "${gcc_cv_objdump+set}" = set; then :
22209
22210 else
22211
22212 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22213 && test -f ../binutils/Makefile \
22214 && test x$build = x$host; then
22215 # Single tree build which includes binutils.
22216 gcc_cv_objdump=../binutils/objdump$build_exeext
22217 elif test -x objdump$build_exeext; then
22218 gcc_cv_objdump=./objdump$build_exeext
22219 elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $2 ); then
22220 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
22221 else
22222 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
22223 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
22224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22225 $as_echo_n "checking for $ac_word... " >&6; }
22226 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
22227 $as_echo_n "(cached) " >&6
22228 else
22229 case $gcc_cv_objdump in
22230 [\\/]* | ?:[\\/]*)
22231 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
22232 ;;
22233 *)
22234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22235 for as_dir in $PATH
22236 do
22237 IFS=$as_save_IFS
22238 test -z "$as_dir" && as_dir=.
22239 for ac_exec_ext in '' $ac_executable_extensions; do
22240 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22241 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
22242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22243 break 2
22244 fi
22245 done
22246 done
22247 IFS=$as_save_IFS
22248
22249 ;;
22250 esac
22251 fi
22252 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
22253 if test -n "$gcc_cv_objdump"; then
22254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
22255 $as_echo "$gcc_cv_objdump" >&6; }
22256 else
22257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22258 $as_echo "no" >&6; }
22259 fi
22260
22261
22262 fi
22263 fi
22264
22265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
22266 $as_echo_n "checking what objdump to use... " >&6; }
22267 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
22268 # Single tree build which includes binutils.
22269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
22270 $as_echo "newly built objdump" >&6; }
22271 elif test x$gcc_cv_objdump = x; then
22272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22273 $as_echo "not found" >&6; }
22274 else
22275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
22276 $as_echo "$gcc_cv_objdump" >&6; }
22277 fi
22278
22279 # Figure out what readelf we will be using.
22280 if test "${gcc_cv_readelf+set}" = set; then :
22281
22282 else
22283
22284 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22285 && test -f ../binutils/Makefile \
22286 && test x$build = x$host; then
22287 # Single tree build which includes binutils.
22288 gcc_cv_readelf=../binutils/readelf$build_exeext
22289 elif test -x readelf$build_exeext; then
22290 gcc_cv_readelf=./readelf$build_exeext
22291 elif ( set dummy $READELF_FOR_TARGET; test -x $2 ); then
22292 gcc_cv_readelf="$READELF_FOR_TARGET"
22293 else
22294 # Extract the first word of "$READELF_FOR_TARGET", so it can be a program name with args.
22295 set dummy $READELF_FOR_TARGET; ac_word=$2
22296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22297 $as_echo_n "checking for $ac_word... " >&6; }
22298 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
22299 $as_echo_n "(cached) " >&6
22300 else
22301 case $gcc_cv_readelf in
22302 [\\/]* | ?:[\\/]*)
22303 ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
22304 ;;
22305 *)
22306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22307 for as_dir in $PATH
22308 do
22309 IFS=$as_save_IFS
22310 test -z "$as_dir" && as_dir=.
22311 for ac_exec_ext in '' $ac_executable_extensions; do
22312 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22313 ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
22314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22315 break 2
22316 fi
22317 done
22318 done
22319 IFS=$as_save_IFS
22320
22321 ;;
22322 esac
22323 fi
22324 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
22325 if test -n "$gcc_cv_readelf"; then
22326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22327 $as_echo "$gcc_cv_readelf" >&6; }
22328 else
22329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22330 $as_echo "no" >&6; }
22331 fi
22332
22333
22334 fi
22335 fi
22336
22337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
22338 $as_echo_n "checking what readelf to use... " >&6; }
22339 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
22340 # Single tree build which includes binutils.
22341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
22342 $as_echo "newly built readelf" >&6; }
22343 elif test x$gcc_cv_readelf = x; then
22344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22345 $as_echo "not found" >&6; }
22346 else
22347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22348 $as_echo "$gcc_cv_readelf" >&6; }
22349 fi
22350
22351 # Figure out what assembler alignment features are present.
22352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
22353 $as_echo_n "checking assembler flags... " >&6; }
22354 if test "${gcc_cv_as_flags+set}" = set; then :
22355 $as_echo_n "(cached) " >&6
22356 else
22357 case "$target" in
22358 i[34567]86-*-linux*)
22359 gcc_cv_as_flags=--32
22360 ;;
22361 x86_64-*-linux-gnux32)
22362 gcc_cv_as_flags=--x32
22363 ;;
22364 x86_64-*-linux*)
22365 gcc_cv_as_flags=--64
22366 ;;
22367 powerpc*-*-darwin*)
22368 gcc_cv_as_flags="-arch ppc"
22369 ;;
22370 *)
22371 gcc_cv_as_flags=" "
22372 ;;
22373 esac
22374 fi
22375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
22376 $as_echo "$gcc_cv_as_flags" >&6; }
22377
22378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
22379 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
22380 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
22381 $as_echo_n "(cached) " >&6
22382 else
22383 gcc_cv_as_balign_and_p2align=no
22384 if test $in_tree_gas = yes; then
22385 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
22386 then gcc_cv_as_balign_and_p2align=yes
22387 fi
22388 elif test x$gcc_cv_as != x; then
22389 $as_echo '.balign 4
22390 .p2align 2' > conftest.s
22391 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22392 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22393 (eval $ac_try) 2>&5
22394 ac_status=$?
22395 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22396 test $ac_status = 0; }; }
22397 then
22398 gcc_cv_as_balign_and_p2align=yes
22399 else
22400 echo "configure: failed program was" >&5
22401 cat conftest.s >&5
22402 fi
22403 rm -f conftest.o conftest.s
22404 fi
22405 fi
22406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
22407 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
22408 if test $gcc_cv_as_balign_and_p2align = yes; then
22409
22410 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
22411
22412 fi
22413
22414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
22415 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
22416 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
22417 $as_echo_n "(cached) " >&6
22418 else
22419 gcc_cv_as_max_skip_p2align=no
22420 if test $in_tree_gas = yes; then
22421 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22422 then gcc_cv_as_max_skip_p2align=yes
22423 fi
22424 elif test x$gcc_cv_as != x; then
22425 $as_echo '.p2align 4,,7' > conftest.s
22426 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22427 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22428 (eval $ac_try) 2>&5
22429 ac_status=$?
22430 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22431 test $ac_status = 0; }; }
22432 then
22433 gcc_cv_as_max_skip_p2align=yes
22434 else
22435 echo "configure: failed program was" >&5
22436 cat conftest.s >&5
22437 fi
22438 rm -f conftest.o conftest.s
22439 fi
22440 fi
22441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
22442 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
22443 if test $gcc_cv_as_max_skip_p2align = yes; then
22444
22445 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
22446
22447 fi
22448
22449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
22450 $as_echo_n "checking assembler for .literal16... " >&6; }
22451 if test "${gcc_cv_as_literal16+set}" = set; then :
22452 $as_echo_n "(cached) " >&6
22453 else
22454 gcc_cv_as_literal16=no
22455 if test $in_tree_gas = yes; then
22456 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22457 then gcc_cv_as_literal16=yes
22458 fi
22459 elif test x$gcc_cv_as != x; then
22460 $as_echo '.literal16' > conftest.s
22461 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22462 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22463 (eval $ac_try) 2>&5
22464 ac_status=$?
22465 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22466 test $ac_status = 0; }; }
22467 then
22468 gcc_cv_as_literal16=yes
22469 else
22470 echo "configure: failed program was" >&5
22471 cat conftest.s >&5
22472 fi
22473 rm -f conftest.o conftest.s
22474 fi
22475 fi
22476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
22477 $as_echo "$gcc_cv_as_literal16" >&6; }
22478 if test $gcc_cv_as_literal16 = yes; then
22479
22480 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
22481
22482 fi
22483
22484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
22485 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
22486 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
22487 $as_echo_n "(cached) " >&6
22488 else
22489 gcc_cv_as_subsection_m1=no
22490 if test $in_tree_gas = yes; then
22491 if test $in_tree_gas_is_elf = yes \
22492 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
22493 then gcc_cv_as_subsection_m1=yes
22494 fi
22495 elif test x$gcc_cv_as != x; then
22496 $as_echo 'conftest_label1: .word 0
22497 .subsection -1
22498 conftest_label2: .word 0
22499 .previous' > conftest.s
22500 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22501 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22502 (eval $ac_try) 2>&5
22503 ac_status=$?
22504 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22505 test $ac_status = 0; }; }
22506 then
22507 if test x$gcc_cv_nm != x; then
22508 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
22509 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
22510 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
22511 then :
22512 else gcc_cv_as_subsection_m1=yes
22513 fi
22514 rm -f conftest.nm1 conftest.nm2
22515 fi
22516 else
22517 echo "configure: failed program was" >&5
22518 cat conftest.s >&5
22519 fi
22520 rm -f conftest.o conftest.s
22521 fi
22522 fi
22523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
22524 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
22525 if test $gcc_cv_as_subsection_m1 = yes; then
22526
22527 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
22528
22529 fi
22530
22531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
22532 $as_echo_n "checking assembler for .weak... " >&6; }
22533 if test "${gcc_cv_as_weak+set}" = set; then :
22534 $as_echo_n "(cached) " >&6
22535 else
22536 gcc_cv_as_weak=no
22537 if test $in_tree_gas = yes; then
22538 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
22539 then gcc_cv_as_weak=yes
22540 fi
22541 elif test x$gcc_cv_as != x; then
22542 $as_echo ' .weak foobar' > conftest.s
22543 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22544 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22545 (eval $ac_try) 2>&5
22546 ac_status=$?
22547 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22548 test $ac_status = 0; }; }
22549 then
22550 gcc_cv_as_weak=yes
22551 else
22552 echo "configure: failed program was" >&5
22553 cat conftest.s >&5
22554 fi
22555 rm -f conftest.o conftest.s
22556 fi
22557 fi
22558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
22559 $as_echo "$gcc_cv_as_weak" >&6; }
22560 if test $gcc_cv_as_weak = yes; then
22561
22562 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
22563
22564 fi
22565
22566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
22567 $as_echo_n "checking assembler for .weakref... " >&6; }
22568 if test "${gcc_cv_as_weakref+set}" = set; then :
22569 $as_echo_n "(cached) " >&6
22570 else
22571 gcc_cv_as_weakref=no
22572 if test $in_tree_gas = yes; then
22573 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
22574 then gcc_cv_as_weakref=yes
22575 fi
22576 elif test x$gcc_cv_as != x; then
22577 $as_echo ' .weakref foobar, barfnot' > conftest.s
22578 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22579 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22580 (eval $ac_try) 2>&5
22581 ac_status=$?
22582 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22583 test $ac_status = 0; }; }
22584 then
22585 gcc_cv_as_weakref=yes
22586 else
22587 echo "configure: failed program was" >&5
22588 cat conftest.s >&5
22589 fi
22590 rm -f conftest.o conftest.s
22591 fi
22592 fi
22593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
22594 $as_echo "$gcc_cv_as_weakref" >&6; }
22595 if test $gcc_cv_as_weakref = yes; then
22596
22597 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
22598
22599 fi
22600
22601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
22602 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
22603 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
22604 $as_echo_n "(cached) " >&6
22605 else
22606 gcc_cv_as_nsubspa_comdat=no
22607 if test $in_tree_gas = yes; then
22608 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22609 then gcc_cv_as_nsubspa_comdat=yes
22610 fi
22611 elif test x$gcc_cv_as != x; then
22612 $as_echo ' .SPACE $TEXT$
22613 .NSUBSPA $CODE$,COMDAT' > conftest.s
22614 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22615 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22616 (eval $ac_try) 2>&5
22617 ac_status=$?
22618 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22619 test $ac_status = 0; }; }
22620 then
22621 gcc_cv_as_nsubspa_comdat=yes
22622 else
22623 echo "configure: failed program was" >&5
22624 cat conftest.s >&5
22625 fi
22626 rm -f conftest.o conftest.s
22627 fi
22628 fi
22629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
22630 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
22631 if test $gcc_cv_as_nsubspa_comdat = yes; then
22632
22633 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
22634
22635 fi
22636
22637 # .hidden needs to be supported in both the assembler and the linker,
22638 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
22639 # This is irritatingly difficult to feature test for; we have to check the
22640 # date string after the version number. If we've got an in-tree
22641 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
22642 # to be safe.
22643 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
22644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
22645 $as_echo_n "checking assembler for .hidden... " >&6; }
22646 if test "${gcc_cv_as_hidden+set}" = set; then :
22647 $as_echo_n "(cached) " >&6
22648 else
22649 gcc_cv_as_hidden=no
22650 if test $in_tree_gas = yes; then
22651 if test $in_tree_gas_is_elf = yes \
22652 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
22653 then gcc_cv_as_hidden=yes
22654 fi
22655 elif test x$gcc_cv_as != x; then
22656 $as_echo ' .hidden foobar
22657 foobar:' > conftest.s
22658 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22659 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22660 (eval $ac_try) 2>&5
22661 ac_status=$?
22662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22663 test $ac_status = 0; }; }
22664 then
22665 gcc_cv_as_hidden=yes
22666 else
22667 echo "configure: failed program was" >&5
22668 cat conftest.s >&5
22669 fi
22670 rm -f conftest.o conftest.s
22671 fi
22672 fi
22673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
22674 $as_echo "$gcc_cv_as_hidden" >&6; }
22675
22676 case "${target}" in
22677 *-*-darwin*)
22678 # Darwin as has some visibility support, though with a different syntax.
22679 gcc_cv_as_hidden=yes
22680 ;;
22681 esac
22682
22683 # gnu_indirect_function type is an extension proposed at
22684 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
22685 # selection of function implementation
22686 # Check whether --enable-gnu-indirect-function was given.
22687 if test "${enable_gnu_indirect_function+set}" = set; then :
22688 enableval=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
22689 yes | no) ;;
22690 *) as_fn_error "'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
22691 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
22692 esac
22693 else
22694 enable_gnu_indirect_function="$default_gnu_indirect_function"
22695 fi
22696
22697
22698 gif=`if test x$enable_gnu_indirect_function = xyes; then echo 1; else echo 0; fi`
22699
22700 cat >>confdefs.h <<_ACEOF
22701 #define HAVE_GNU_INDIRECT_FUNCTION $gif
22702 _ACEOF
22703
22704
22705
22706 if test $in_tree_ld != yes ; then
22707 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
22708 if echo "$ld_ver" | grep GNU > /dev/null; then
22709 if test x"$ld_is_gold" = xyes; then
22710 # GNU gold --version looks like this:
22711 #
22712 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
22713 #
22714 # We extract the binutils version which is more familiar and specific
22715 # than the gold version.
22716 ld_vers=`echo $ld_ver | sed -n \
22717 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22718 else
22719 # GNU ld --version looks like this:
22720 #
22721 # GNU ld (GNU Binutils) 2.21.51.20110225
22722 ld_vers=`echo $ld_ver | sed -n \
22723 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22724 fi
22725 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'`
22726 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22727 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22728 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
22729 else
22730 case "${target}" in
22731 *-*-solaris2*)
22732 # See acinclude.m4 (gcc_SUN_LD_VERSION) for the version number
22733 # format.
22734 #
22735 # Don't reuse gcc_gv_sun_ld_vers_* in case a linker other than
22736 # /usr/ccs/bin/ld has been configured.
22737 ld_ver=`$gcc_cv_ld -V 2>&1`
22738 if echo "$ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
22739 ld_vers=`echo $ld_ver | sed -n \
22740 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22741 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22742 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22743 fi
22744 ;;
22745 esac
22746 fi
22747 fi
22748
22749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
22750 $as_echo_n "checking linker for .hidden support... " >&6; }
22751 if test "${gcc_cv_ld_hidden+set}" = set; then :
22752 $as_echo_n "(cached) " >&6
22753 else
22754 if test $in_tree_ld = yes ; then
22755 gcc_cv_ld_hidden=no
22756 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 \
22757 && test $in_tree_ld_is_elf = yes; then
22758 gcc_cv_ld_hidden=yes
22759 fi
22760 else
22761 gcc_cv_ld_hidden=yes
22762 if test x"$ld_is_gold" = xyes; then
22763 :
22764 elif echo "$ld_ver" | grep GNU > /dev/null; then
22765 case "${target}" in
22766 mmix-knuth-mmixware)
22767 # The linker emits by default mmo, not ELF, so "no" is appropriate.
22768 gcc_cv_ld_hidden=no
22769 ;;
22770 esac
22771 if test 0"$ld_date" -lt 20020404; then
22772 if test -n "$ld_date"; then
22773 # If there was date string, but was earlier than 2002-04-04, fail
22774 gcc_cv_ld_hidden=no
22775 elif test -z "$ld_vers"; then
22776 # If there was no date string nor ld version number, something is wrong
22777 gcc_cv_ld_hidden=no
22778 else
22779 test -z "$ld_vers_patch" && ld_vers_patch=0
22780 if test "$ld_vers_major" -lt 2; then
22781 gcc_cv_ld_hidden=no
22782 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
22783 gcc_cv_ld_hidden="no"
22784 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
22785 gcc_cv_ld_hidden=no
22786 fi
22787 fi
22788 fi
22789 else
22790 case "${target}" in
22791 *-*-darwin*)
22792 # Darwin ld has some visibility support.
22793 gcc_cv_ld_hidden=yes
22794 ;;
22795 hppa64*-*-hpux* | ia64*-*-hpux*)
22796 gcc_cv_ld_hidden=yes
22797 ;;
22798 *-*-solaris2.1[0-9]*)
22799 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
22800 # .symbolic was only added in Solaris 9 12/02.
22801 gcc_cv_ld_hidden=yes
22802 ;;
22803 *)
22804 gcc_cv_ld_hidden=no
22805 ;;
22806 esac
22807 fi
22808 fi
22809 fi
22810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
22811 $as_echo "$gcc_cv_ld_hidden" >&6; }
22812 libgcc_visibility=no
22813
22814
22815 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
22816 libgcc_visibility=yes
22817
22818 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
22819
22820 fi
22821
22822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
22823 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
22824 gcc_cv_ld_ro_rw_mix=unknown
22825 if test $in_tree_ld = yes ; then
22826 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 \
22827 && test $in_tree_ld_is_elf = yes; then
22828 gcc_cv_ld_ro_rw_mix=read-write
22829 fi
22830 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22831 echo '.section myfoosect, "a"' > conftest1.s
22832 echo '.section myfoosect, "aw"' > conftest2.s
22833 echo '.byte 1' >> conftest2.s
22834 echo '.section myfoosect, "a"' > conftest3.s
22835 echo '.byte 0' >> conftest3.s
22836 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
22837 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
22838 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
22839 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
22840 conftest2.o conftest3.o > /dev/null 2>&1; then
22841 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
22842 | sed -e '/myfoosect/!d' -e N`
22843 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
22844 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
22845 gcc_cv_ld_ro_rw_mix=read-only
22846 else
22847 gcc_cv_ld_ro_rw_mix=read-write
22848 fi
22849 fi
22850 fi
22851 rm -f conftest.* conftest[123].*
22852 fi
22853 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
22854
22855 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
22856
22857 fi
22858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
22859 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
22860
22861 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22862 case "${target}" in
22863 *-*-solaris2*)
22864 #
22865 # Solaris 2 ld -V output looks like this for a regular version:
22866 #
22867 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
22868 #
22869 # but test versions add stuff at the end:
22870 #
22871 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
22872 #
22873 gcc_cv_sun_ld_ver=`/usr/ccs/bin/ld -V 2>&1`
22874 if echo "$gcc_cv_sun_ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
22875 gcc_cv_sun_ld_vers=`echo $gcc_cv_sun_ld_ver | sed -n \
22876 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22877 gcc_cv_sun_ld_vers_major=`expr "$gcc_cv_sun_ld_vers" : '\([0-9]*\)'`
22878 gcc_cv_sun_ld_vers_minor=`expr "$gcc_cv_sun_ld_vers" : '[0-9]*\.\([0-9]*\)'`
22879 fi
22880 ;;
22881 esac
22882 fi
22883
22884 # Check whether --enable-initfini-array was given.
22885 if test "${enable_initfini_array+set}" = set; then :
22886 enableval=$enable_initfini_array;
22887 else
22888
22889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
22890 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
22891 if test "${gcc_cv_initfini_array+set}" = set; then :
22892 $as_echo_n "(cached) " >&6
22893 else
22894 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22895 case "${target}" in
22896 ia64-*)
22897 if test "$cross_compiling" = yes; then :
22898 gcc_cv_initfini_array=no
22899 else
22900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22901 /* end confdefs.h. */
22902
22903 #ifndef __ELF__
22904 #error Not an ELF OS
22905 #endif
22906 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
22907 if it can be used. */
22908 static int x = -1;
22909 int main (void) { return x; }
22910 int foo (void) { x = 0; }
22911 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
22912
22913 _ACEOF
22914 if ac_fn_cxx_try_run "$LINENO"; then :
22915 gcc_cv_initfini_array=yes
22916 else
22917 gcc_cv_initfini_array=no
22918 fi
22919 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22920 conftest.$ac_objext conftest.beam conftest.$ac_ext
22921 fi
22922 ;;
22923 *)
22924 gcc_cv_initfini_array=no
22925 if test $in_tree_ld = yes ; then
22926 if test "$gcc_cv_gld_major_version" -eq 2 \
22927 -a "$gcc_cv_gld_minor_version" -ge 22 \
22928 -o "$gcc_cv_gld_major_version" -gt 2 \
22929 && test $in_tree_ld_is_elf = yes; then
22930 gcc_cv_initfini_array=yes
22931 fi
22932 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22933 case $target:$gas in
22934 *:yes)
22935 sh_flags='"a"'
22936 sh_type='%progbits'
22937 ;;
22938 i?86-*-solaris2*:no | x86_64-*-solaris2*:no)
22939 sh_flags='"a"'
22940 sh_type='@progbits'
22941 ;;
22942 sparc*-*-solaris2*:no)
22943 sh_flags='#alloc'
22944 sh_type='#progbits'
22945 sh_quote='"'
22946 ;;
22947 esac
22948 case "$target:$gnu_ld" in
22949 *:yes)
22950 cat > conftest.s <<EOF
22951 .section .dtors,$sh_flags,$sh_type
22952 .balign 4
22953 .byte 'A', 'A', 'A', 'A'
22954 .section .ctors,$sh_flags,$sh_type
22955 .balign 4
22956 .byte 'B', 'B', 'B', 'B'
22957 .section .fini_array.65530,$sh_flags,$sh_type
22958 .balign 4
22959 .byte 'C', 'C', 'C', 'C'
22960 .section .init_array.65530,$sh_flags,$sh_type
22961 .balign 4
22962 .byte 'D', 'D', 'D', 'D'
22963 .section .dtors.64528,$sh_flags,$sh_type
22964 .balign 4
22965 .byte 'E', 'E', 'E', 'E'
22966 .section .ctors.64528,$sh_flags,$sh_type
22967 .balign 4
22968 .byte 'F', 'F', 'F', 'F'
22969 .section .fini_array.01005,$sh_flags,$sh_type
22970 .balign 4
22971 .byte 'G', 'G', 'G', 'G'
22972 .section .init_array.01005,$sh_flags,$sh_type
22973 .balign 4
22974 .byte 'H', 'H', 'H', 'H'
22975 .text
22976 .globl _start
22977 _start:
22978 EOF
22979 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
22980 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
22981 && $gcc_cv_objdump -s -j .init_array conftest \
22982 | grep HHHHFFFFDDDDBBBB > /dev/null 2>&1 \
22983 && $gcc_cv_objdump -s -j .fini_array conftest \
22984 | grep GGGGEEEECCCCAAAA > /dev/null 2>&1; then
22985 gcc_cv_initfini_array=yes
22986 fi
22987 ;;
22988 *-*-solaris2*:no)
22989 # When Solaris ld added constructor priority support, it was
22990 # decided to only handle .init_array.N/.fini_array.N since
22991 # there was no need for backwards compatibility with
22992 # .ctors.N/.dtors.N. .ctors/.dtors remain as separate
22993 # sections with correct execution order resp. to
22994 # .init_array/.fini_array, while gld merges them into
22995 # .init_array/.fini_array.
22996 cat > conftest.s <<EOF
22997 .section $sh_quote.fini_array.65530$sh_quote,$sh_flags,$sh_type
22998 .align 4
22999 .byte 'C', 'C', 'C', 'C'
23000 .section $sh_quote.init_array.65530$sh_quote,$sh_flags,$sh_type
23001 .align 4
23002 .byte 'D', 'D', 'D', 'D'
23003 .section $sh_quote.fini_array.01005$sh_quote,$sh_flags,$sh_type
23004 .align 4
23005 .byte 'G', 'G', 'G', 'G'
23006 .section $sh_quote.init_array.01005$sh_quote,$sh_flags,$sh_type
23007 .align 4
23008 .byte 'H', 'H', 'H', 'H'
23009 .text
23010 .globl _start
23011 _start:
23012 EOF
23013 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
23014 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
23015 && $gcc_cv_objdump -s -j .init_array conftest \
23016 | grep HHHHDDDD > /dev/null 2>&1 \
23017 && $gcc_cv_objdump -s -j .fini_array conftest \
23018 | grep GGGGCCCC > /dev/null 2>&1; then
23019 gcc_cv_initfini_array=yes
23020 fi
23021 ;;
23022 esac
23023 rm -f conftest conftest.*
23024 fi
23025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23026 /* end confdefs.h. */
23027
23028 #ifndef __ELF__
23029 # error Not an ELF OS
23030 #endif
23031 #include <stdlib.h>
23032 #if defined __GLIBC_PREREQ
23033 # if __GLIBC_PREREQ (2, 4)
23034 # else
23035 # error GLIBC 2.4 required
23036 # endif
23037 #else
23038 # if defined __sun__ && defined __svr4__
23039 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
23040 # else
23041 # error The C library not known to support .init_array/.fini_array
23042 # endif
23043 #endif
23044
23045 _ACEOF
23046 if ac_fn_cxx_try_cpp "$LINENO"; then :
23047
23048 else
23049 gcc_cv_initfini_array=no
23050 fi
23051 rm -f conftest.err conftest.$ac_ext;;
23052 esac
23053 else
23054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
23055 $as_echo_n "checking cross compile... guessing... " >&6; }
23056 gcc_cv_initfini_array=no
23057 fi
23058 fi
23059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
23060 $as_echo "$gcc_cv_initfini_array" >&6; }
23061 enable_initfini_array=$gcc_cv_initfini_array
23062
23063 fi
23064
23065
23066 cat >>confdefs.h <<_ACEOF
23067 #define HAVE_INITFINI_ARRAY_SUPPORT `if test $enable_initfini_array = yes; then echo 1; else echo 0; fi`
23068 _ACEOF
23069
23070
23071
23072 # Check if we have .[us]leb128, and support symbol arithmetic with it.
23073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
23074 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
23075 if test "${gcc_cv_as_leb128+set}" = set; then :
23076 $as_echo_n "(cached) " >&6
23077 else
23078 gcc_cv_as_leb128=no
23079 if test $in_tree_gas = yes; then
23080 if test $in_tree_gas_is_elf = yes \
23081 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
23082 then gcc_cv_as_leb128=yes
23083 fi
23084 elif test x$gcc_cv_as != x; then
23085 $as_echo ' .data
23086 .uleb128 L2 - L1
23087 L1:
23088 .uleb128 1280
23089 .sleb128 -1010
23090 L2:' > conftest.s
23091 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23092 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23093 (eval $ac_try) 2>&5
23094 ac_status=$?
23095 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23096 test $ac_status = 0; }; }
23097 then
23098 # GAS versions before 2.11 do not support uleb128,
23099 # despite appearing to.
23100 # ??? There exists an elf-specific test that will crash
23101 # the assembler. Perhaps it's better to figure out whether
23102 # arbitrary sections are supported and try the test.
23103 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
23104 if echo "$as_ver" | grep GNU > /dev/null; then
23105 as_vers=`echo $as_ver | sed -n \
23106 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23107 as_major=`expr "$as_vers" : '\([0-9]*\)'`
23108 as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
23109 if test $as_major -eq 2 && test $as_minor -lt 11
23110 then :
23111 else gcc_cv_as_leb128=yes
23112 fi
23113 fi
23114 else
23115 echo "configure: failed program was" >&5
23116 cat conftest.s >&5
23117 fi
23118 rm -f conftest.o conftest.s
23119 fi
23120 fi
23121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
23122 $as_echo "$gcc_cv_as_leb128" >&6; }
23123 if test $gcc_cv_as_leb128 = yes; then
23124
23125 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
23126
23127 fi
23128
23129 # Check if we have assembler support for unwind directives.
23130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
23131 $as_echo_n "checking assembler for cfi directives... " >&6; }
23132 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
23133 $as_echo_n "(cached) " >&6
23134 else
23135 gcc_cv_as_cfi_directive=no
23136 if test x$gcc_cv_as != x; then
23137 $as_echo ' .text
23138 .cfi_startproc
23139 .cfi_offset 0, 0
23140 .cfi_same_value 1
23141 .cfi_def_cfa 1, 2
23142 .cfi_escape 1, 2, 3, 4, 5
23143 .cfi_endproc' > conftest.s
23144 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23145 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23146 (eval $ac_try) 2>&5
23147 ac_status=$?
23148 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23149 test $ac_status = 0; }; }
23150 then
23151 case "$target" in
23152 *-*-solaris*)
23153 # If the linker used on Solaris (like Sun ld) isn't capable of merging
23154 # read-only and read-write sections, we need to make sure that the
23155 # assembler used emits read-write .eh_frame sections.
23156 if test "x$gcc_cv_ld_ro_rw_mix" != xread-write; then
23157 if test "x$gcc_cv_objdump" != x; then
23158 if $gcc_cv_objdump -h conftest.o 2>/dev/null | \
23159 sed -e /.eh_frame/!d -e N | grep READONLY > /dev/null; then
23160 gcc_cv_as_cfi_directive=no
23161 else
23162 case "$target" in
23163 i?86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*)
23164 # On Solaris/x86, make sure that GCC and assembler agree on using
23165 # read-only .eh_frame sections for 64-bit.
23166 if test x$gas = xyes; then
23167 as_ix86_64_opt="--64"
23168 else
23169 as_ix86_64_opt="-xarch=amd64"
23170 fi
23171 if $gcc_cv_as $as_ix86_64_opt -o conftest.o conftest.s > /dev/null 2>&1 && \
23172 $gcc_cv_objdump -h conftest.o 2>/dev/null | \
23173 sed -e /.eh_frame/!d -e N | \
23174 grep READONLY > /dev/null; then
23175 gcc_cv_as_cfi_directive=yes
23176 else
23177 gcc_cv_as_cfi_directive=no
23178 fi
23179 ;;
23180 *)
23181 gcc_cv_as_cfi_directive=yes
23182 ;;
23183 esac
23184 fi
23185 else
23186 # no objdump, err on the side of caution
23187 gcc_cv_as_cfi_directive=no
23188 fi
23189 else
23190 gcc_cv_as_cfi_directive=yes
23191 fi
23192 ;;
23193 *-*-*)
23194 gcc_cv_as_cfi_directive=yes
23195 ;;
23196 esac
23197 else
23198 echo "configure: failed program was" >&5
23199 cat conftest.s >&5
23200 fi
23201 rm -f conftest.o conftest.s
23202 fi
23203 fi
23204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
23205 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
23206
23207 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then
23208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
23209 $as_echo_n "checking assembler for working cfi advance... " >&6; }
23210 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
23211 $as_echo_n "(cached) " >&6
23212 else
23213 gcc_cv_as_cfi_advance_working=no
23214 if test x$gcc_cv_as != x; then
23215 $as_echo ' .text
23216 .cfi_startproc
23217 .cfi_adjust_cfa_offset 64
23218 .skip 75040, 0
23219 .cfi_adjust_cfa_offset 128
23220 .cfi_endproc' > conftest.s
23221 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23222 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23223 (eval $ac_try) 2>&5
23224 ac_status=$?
23225 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23226 test $ac_status = 0; }; }
23227 then
23228
23229 if $gcc_cv_objdump -Wf conftest.o 2>/dev/null \
23230 | grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev/null; then
23231 gcc_cv_as_cfi_advance_working=yes
23232 fi
23233
23234 else
23235 echo "configure: failed program was" >&5
23236 cat conftest.s >&5
23237 fi
23238 rm -f conftest.o conftest.s
23239 fi
23240 fi
23241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
23242 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
23243
23244 else
23245 # no objdump, err on the side of caution
23246 gcc_cv_as_cfi_advance_working=no
23247 fi
23248
23249
23250 cat >>confdefs.h <<_ACEOF
23251 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
23252 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
23253 _ACEOF
23254
23255
23256
23257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
23258 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
23259 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
23260 $as_echo_n "(cached) " >&6
23261 else
23262 gcc_cv_as_cfi_personality_directive=no
23263 if test x$gcc_cv_as != x; then
23264 $as_echo ' .text
23265 .cfi_startproc
23266 .cfi_personality 0, symbol
23267 .cfi_endproc' > conftest.s
23268 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23269 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23270 (eval $ac_try) 2>&5
23271 ac_status=$?
23272 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23273 test $ac_status = 0; }; }
23274 then
23275 gcc_cv_as_cfi_personality_directive=yes
23276 else
23277 echo "configure: failed program was" >&5
23278 cat conftest.s >&5
23279 fi
23280 rm -f conftest.o conftest.s
23281 fi
23282 fi
23283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
23284 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
23285
23286
23287 cat >>confdefs.h <<_ACEOF
23288 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
23289 then echo 1; else echo 0; fi`
23290 _ACEOF
23291
23292
23293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
23294 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
23295 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
23296 $as_echo_n "(cached) " >&6
23297 else
23298 gcc_cv_as_cfi_sections_directive=no
23299 if test x$gcc_cv_as != x; then
23300 $as_echo ' .text
23301 .cfi_sections .debug_frame, .eh_frame
23302 .cfi_startproc
23303 .cfi_endproc' > conftest.s
23304 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23305 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23306 (eval $ac_try) 2>&5
23307 ac_status=$?
23308 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23309 test $ac_status = 0; }; }
23310 then
23311 case $target_os in
23312 win32 | pe | cygwin* | mingw32*)
23313 # Need to check that we generated the correct relocation for the
23314 # .debug_frame section. This was fixed for binutils 2.21.
23315 gcc_cv_as_cfi_sections_directive=no
23316 if test "x$gcc_cv_objdump" != x; then
23317 if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
23318 grep secrel > /dev/null; then
23319 gcc_cv_as_cfi_sections_directive=yes
23320 fi
23321 fi
23322 ;;
23323 *)
23324 gcc_cv_as_cfi_sections_directive=yes
23325 ;;
23326 esac
23327 else
23328 echo "configure: failed program was" >&5
23329 cat conftest.s >&5
23330 fi
23331 rm -f conftest.o conftest.s
23332 fi
23333 fi
23334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
23335 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
23336
23337
23338
23339 cat >>confdefs.h <<_ACEOF
23340 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
23341 then echo 1; else echo 0; fi`
23342 _ACEOF
23343
23344
23345 # GAS versions up to and including 2.11.0 may mis-optimize
23346 # .eh_frame data.
23347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
23348 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
23349 if test "${gcc_cv_as_eh_frame+set}" = set; then :
23350 $as_echo_n "(cached) " >&6
23351 else
23352 gcc_cv_as_eh_frame=no
23353 if test $in_tree_gas = yes; then
23354 if test $in_tree_gas_is_elf = yes \
23355 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23356 then gcc_cv_as_eh_frame=yes
23357 fi
23358 elif test x$gcc_cv_as != x; then
23359 $as_echo ' .text
23360 .LFB1:
23361 .4byte 0
23362 .L1:
23363 .4byte 0
23364 .LFE1:
23365 .section .eh_frame,"aw",@progbits
23366 __FRAME_BEGIN__:
23367 .4byte .LECIE1-.LSCIE1
23368 .LSCIE1:
23369 .4byte 0x0
23370 .byte 0x1
23371 .ascii "z\0"
23372 .byte 0x1
23373 .byte 0x78
23374 .byte 0x1a
23375 .byte 0x0
23376 .byte 0x4
23377 .4byte 1
23378 .p2align 1
23379 .LECIE1:
23380 .LSFDE1:
23381 .4byte .LEFDE1-.LASFDE1
23382 .LASFDE1:
23383 .4byte .LASFDE1-__FRAME_BEGIN__
23384 .4byte .LFB1
23385 .4byte .LFE1-.LFB1
23386 .byte 0x4
23387 .4byte .LFE1-.LFB1
23388 .byte 0x4
23389 .4byte .L1-.LFB1
23390 .LEFDE1:' > conftest.s
23391 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23392 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23393 (eval $ac_try) 2>&5
23394 ac_status=$?
23395 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23396 test $ac_status = 0; }; }
23397 then
23398 cat > conftest.lit <<EOF
23399 0000 10000000 00000000 017a0001 781a0004 .........z..x...
23400 0010 01000000 12000000 18000000 00000000 ................
23401 0020 08000000 04080000 0044 .........D
23402 EOF
23403 cat > conftest.big <<EOF
23404 0000 00000010 00000000 017a0001 781a0004 .........z..x...
23405 0010 00000001 00000012 00000018 00000000 ................
23406 0020 00000008 04000000 0844 .........D
23407 EOF
23408 # If the assembler didn't choke, and we can objdump,
23409 # and we got the correct data, then succeed.
23410 # The text in the here-document typically retains its unix-style line
23411 # endings, while the output of objdump will use host line endings.
23412 # Therefore, use diff -b for the comparisons.
23413 if test x$gcc_cv_objdump != x \
23414 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
23415 | tail -3 > conftest.got \
23416 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
23417 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
23418 then
23419 gcc_cv_as_eh_frame=yes
23420 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
23421 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23422 (eval $ac_try) 2>&5
23423 ac_status=$?
23424 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23425 test $ac_status = 0; }; }; then
23426 gcc_cv_as_eh_frame=buggy
23427 else
23428 # Uh oh, what do we do now?
23429 gcc_cv_as_eh_frame=no
23430 fi
23431 else
23432 echo "configure: failed program was" >&5
23433 cat conftest.s >&5
23434 fi
23435 rm -f conftest.o conftest.s
23436 fi
23437 fi
23438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
23439 $as_echo "$gcc_cv_as_eh_frame" >&6; }
23440
23441
23442 if test $gcc_cv_as_eh_frame = buggy; then
23443
23444 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
23445
23446 fi
23447
23448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
23449 $as_echo_n "checking assembler for section merging support... " >&6; }
23450 if test "${gcc_cv_as_shf_merge+set}" = set; then :
23451 $as_echo_n "(cached) " >&6
23452 else
23453 gcc_cv_as_shf_merge=no
23454 if test $in_tree_gas = yes; then
23455 if test $in_tree_gas_is_elf = yes \
23456 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23457 then gcc_cv_as_shf_merge=yes
23458 fi
23459 elif test x$gcc_cv_as != x; then
23460 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
23461 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23462 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23463 (eval $ac_try) 2>&5
23464 ac_status=$?
23465 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23466 test $ac_status = 0; }; }
23467 then
23468 gcc_cv_as_shf_merge=yes
23469 else
23470 echo "configure: failed program was" >&5
23471 cat conftest.s >&5
23472 fi
23473 rm -f conftest.o conftest.s
23474 fi
23475 fi
23476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23477 $as_echo "$gcc_cv_as_shf_merge" >&6; }
23478
23479 if test $gcc_cv_as_shf_merge = no; then
23480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
23481 $as_echo_n "checking assembler for section merging support... " >&6; }
23482 if test "${gcc_cv_as_shf_merge+set}" = set; then :
23483 $as_echo_n "(cached) " >&6
23484 else
23485 gcc_cv_as_shf_merge=no
23486 if test $in_tree_gas = yes; then
23487 if test $in_tree_gas_is_elf = yes \
23488 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23489 then gcc_cv_as_shf_merge=yes
23490 fi
23491 elif test x$gcc_cv_as != x; then
23492 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
23493 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23494 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23495 (eval $ac_try) 2>&5
23496 ac_status=$?
23497 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23498 test $ac_status = 0; }; }
23499 then
23500 gcc_cv_as_shf_merge=yes
23501 else
23502 echo "configure: failed program was" >&5
23503 cat conftest.s >&5
23504 fi
23505 rm -f conftest.o conftest.s
23506 fi
23507 fi
23508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23509 $as_echo "$gcc_cv_as_shf_merge" >&6; }
23510
23511 fi
23512
23513 cat >>confdefs.h <<_ACEOF
23514 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
23515 _ACEOF
23516
23517
23518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
23519 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
23520 if test "${gcc_cv_as_comdat_group+set}" = set; then :
23521 $as_echo_n "(cached) " >&6
23522 else
23523 gcc_cv_as_comdat_group=no
23524 if test $in_tree_gas = yes; then
23525 if test $in_tree_gas_is_elf = yes \
23526 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23527 then gcc_cv_as_comdat_group=yes
23528 fi
23529 elif test x$gcc_cv_as != x; then
23530 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
23531 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23532 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23533 (eval $ac_try) 2>&5
23534 ac_status=$?
23535 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23536 test $ac_status = 0; }; }
23537 then
23538 gcc_cv_as_comdat_group=yes
23539 else
23540 echo "configure: failed program was" >&5
23541 cat conftest.s >&5
23542 fi
23543 rm -f conftest.o conftest.s
23544 fi
23545 fi
23546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
23547 $as_echo "$gcc_cv_as_comdat_group" >&6; }
23548
23549 if test $gcc_cv_as_comdat_group = yes; then
23550 gcc_cv_as_comdat_group_percent=no
23551 gcc_cv_as_comdat_group_group=no
23552 else
23553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
23554 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
23555 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
23556 $as_echo_n "(cached) " >&6
23557 else
23558 gcc_cv_as_comdat_group_percent=no
23559 if test $in_tree_gas = yes; then
23560 if test $in_tree_gas_is_elf = yes \
23561 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23562 then gcc_cv_as_comdat_group_percent=yes
23563 fi
23564 elif test x$gcc_cv_as != x; then
23565 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
23566 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23567 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23568 (eval $ac_try) 2>&5
23569 ac_status=$?
23570 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23571 test $ac_status = 0; }; }
23572 then
23573 gcc_cv_as_comdat_group_percent=yes
23574 else
23575 echo "configure: failed program was" >&5
23576 cat conftest.s >&5
23577 fi
23578 rm -f conftest.o conftest.s
23579 fi
23580 fi
23581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
23582 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
23583
23584 if test $gcc_cv_as_comdat_group_percent = yes; then
23585 gcc_cv_as_comdat_group_group=no
23586 else
23587 case "${target}" in
23588 # Sun as uses a completely different syntax.
23589 *-*-solaris2*)
23590 case "${target}" in
23591 sparc*-*-solaris2*)
23592 conftest_s='
23593 .group foo,".text%foo",#comdat
23594 .section ".text%foo", #alloc,#execinstr,#progbits
23595 .globl foo
23596 foo:
23597 '
23598 ;;
23599 i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
23600 conftest_s='
23601 .group foo,.text%foo,#comdat
23602 .section .text%foo, "ax", @progbits
23603 .globl foo
23604 foo:
23605 '
23606 ;;
23607 esac
23608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
23609 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
23610 if test "${gcc_cv_as_comdat_group_group+set}" = set; then :
23611 $as_echo_n "(cached) " >&6
23612 else
23613 gcc_cv_as_comdat_group_group=no
23614 if test x$gcc_cv_as != x; then
23615 $as_echo "$conftest_s" > conftest.s
23616 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23617 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23618 (eval $ac_try) 2>&5
23619 ac_status=$?
23620 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23621 test $ac_status = 0; }; }
23622 then
23623 gcc_cv_as_comdat_group_group=yes
23624 else
23625 echo "configure: failed program was" >&5
23626 cat conftest.s >&5
23627 fi
23628 rm -f conftest.o conftest.s
23629 fi
23630 fi
23631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
23632 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
23633
23634 ;;
23635 esac
23636 if test -z "${gcc_cv_as_comdat_group_group+set}"; then
23637 gcc_cv_as_comdat_group_group=no
23638 fi
23639 fi
23640 fi
23641 if test x"$ld_is_gold" = xyes; then
23642 comdat_group=yes
23643 elif test $in_tree_ld = yes ; then
23644 comdat_group=no
23645 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 \
23646 && test $in_tree_ld_is_elf = yes; then
23647 comdat_group=yes
23648 fi
23649 elif echo "$ld_ver" | grep GNU > /dev/null; then
23650 comdat_group=yes
23651 if test 0"$ld_date" -lt 20050308; then
23652 if test -n "$ld_date"; then
23653 # If there was date string, but was earlier than 2005-03-08, fail
23654 comdat_group=no
23655 elif test "$ld_vers_major" -lt 2; then
23656 comdat_group=no
23657 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
23658 comdat_group=no
23659 fi
23660 fi
23661 else
23662 case "${target}" in
23663 *-*-solaris2.1[1-9]*)
23664 comdat_group=no
23665 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
23666 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
23667 # version 1.688.
23668 #
23669 # If using Sun as for COMDAT group as emitted by GCC, one needs at
23670 # least ld version 1.2267.
23671 if test "$ld_vers_major" -gt 1; then
23672 comdat_group=yes
23673 elif test "x$gas_flag" = xyes && test "$ld_vers_minor" -ge 1688; then
23674 comdat_group=yes
23675 elif test "$ld_vers_minor" -ge 2267; then
23676 comdat_group=yes
23677 fi
23678 ;;
23679 *)
23680 # Assume linkers other than GNU ld don't support COMDAT group.
23681 comdat_group=no
23682 ;;
23683 esac
23684 fi
23685 # Allow overriding the automatic COMDAT group tests above.
23686 # Check whether --enable-comdat was given.
23687 if test "${enable_comdat+set}" = set; then :
23688 enableval=$enable_comdat; comdat_group="$enable_comdat"
23689 fi
23690
23691 if test $comdat_group = no; then
23692 gcc_cv_as_comdat_group=no
23693 gcc_cv_as_comdat_group_percent=no
23694 gcc_cv_as_comdat_group_group=no
23695 fi
23696
23697 cat >>confdefs.h <<_ACEOF
23698 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
23699 || test $gcc_cv_as_comdat_group_percent = yes \
23700 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
23701 _ACEOF
23702
23703
23704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
23705 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
23706 if test "${gcc_cv_as_discriminator+set}" = set; then :
23707 $as_echo_n "(cached) " >&6
23708 else
23709 gcc_cv_as_discriminator=no
23710 if test $in_tree_gas = yes; then
23711 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
23712 then gcc_cv_as_discriminator=yes
23713 fi
23714 elif test x$gcc_cv_as != x; then
23715 $as_echo ' .text
23716 .file 1 "conf.c"
23717 .loc 1 1 0 discriminator 1' > conftest.s
23718 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23719 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23720 (eval $ac_try) 2>&5
23721 ac_status=$?
23722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23723 test $ac_status = 0; }; }
23724 then
23725 gcc_cv_as_discriminator=yes
23726 else
23727 echo "configure: failed program was" >&5
23728 cat conftest.s >&5
23729 fi
23730 rm -f conftest.o conftest.s
23731 fi
23732 fi
23733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
23734 $as_echo "$gcc_cv_as_discriminator" >&6; }
23735 if test $gcc_cv_as_discriminator = yes; then
23736
23737 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
23738
23739 fi
23740
23741 # Thread-local storage - the check is heavily parameterized.
23742 conftest_s=
23743 tls_first_major=
23744 tls_first_minor=
23745 tls_as_opt=
23746 case "$target" in
23747 alpha*-*-*)
23748 conftest_s='
23749 .section ".tdata","awT",@progbits
23750 foo: .long 25
23751 .text
23752 ldq $27,__tls_get_addr($29) !literal!1
23753 lda $16,foo($29) !tlsgd!1
23754 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
23755 ldq $27,__tls_get_addr($29) !literal!2
23756 lda $16,foo($29) !tlsldm!2
23757 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
23758 ldq $1,foo($29) !gotdtprel
23759 ldah $2,foo($29) !dtprelhi
23760 lda $3,foo($2) !dtprello
23761 lda $4,foo($29) !dtprel
23762 ldq $1,foo($29) !gottprel
23763 ldah $2,foo($29) !tprelhi
23764 lda $3,foo($2) !tprello
23765 lda $4,foo($29) !tprel'
23766 tls_first_major=2
23767 tls_first_minor=13
23768 tls_as_opt=--fatal-warnings
23769 ;;
23770 cris-*-*|crisv32-*-*)
23771 conftest_s='
23772 .section ".tdata","awT",@progbits
23773 x: .long 25
23774 .text
23775 move.d x:IE,$r10
23776 nop'
23777 tls_first_major=2
23778 tls_first_minor=20
23779 tls_as_opt=--fatal-warnings
23780 ;;
23781 frv*-*-*)
23782 conftest_s='
23783 .section ".tdata","awT",@progbits
23784 x: .long 25
23785 .text
23786 call #gettlsoff(x)'
23787 tls_first_major=2
23788 tls_first_minor=14
23789 ;;
23790 hppa*-*-linux*)
23791 conftest_s='
23792 t1: .reg %r20
23793 t2: .reg %r21
23794 gp: .reg %r19
23795 .section ".tdata","awT",@progbits
23796 foo: .long 25
23797 .text
23798 .align 4
23799 addil LT%foo-$tls_gdidx$,gp
23800 ldo RT%foo-$tls_gdidx$(%r1),%arg0
23801 b __tls_get_addr
23802 nop
23803 addil LT%foo-$tls_ldidx$,gp
23804 b __tls_get_addr
23805 ldo RT%foo-$tls_ldidx$(%r1),%arg0
23806 addil LR%foo-$tls_dtpoff$,%ret0
23807 ldo RR%foo-$tls_dtpoff$(%r1),%t1
23808 mfctl %cr27,%t1
23809 addil LT%foo-$tls_ieoff$,gp
23810 ldw RT%foo-$tls_ieoff$(%r1),%t2
23811 add %t1,%t2,%t3
23812 mfctl %cr27,%t1
23813 addil LR%foo-$tls_leoff$,%t1
23814 ldo RR%foo-$tls_leoff$(%r1),%t2'
23815 tls_first_major=2
23816 tls_first_minor=15
23817 tls_as_opt=--fatal-warnings
23818 ;;
23819 arm*-*-*)
23820 conftest_s='
23821 .section ".tdata","awT",%progbits
23822 foo: .long 25
23823 .text
23824 .word foo(gottpoff)
23825 .word foo(tpoff)
23826 .word foo(tlsgd)
23827 .word foo(tlsldm)
23828 .word foo(tlsldo)'
23829 tls_first_major=2
23830 tls_first_minor=17
23831 ;;
23832 i[34567]86-*-* | x86_64-*-*)
23833 case "$target" in
23834 i[34567]86-*-solaris2.* | x86_64-*-solaris2.1[0-9]*)
23835 on_solaris=yes
23836 ;;
23837 *)
23838 on_solaris=no
23839 ;;
23840 esac
23841 if test x$on_solaris = xyes && test x$gas_flag = xno; then
23842 conftest_s='
23843 .section .tdata,"awt",@progbits'
23844 tls_first_major=0
23845 tls_first_minor=0
23846 tls_section_flag=t
23847
23848 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
23849
23850 else
23851 conftest_s='
23852 .section ".tdata","awT",@progbits'
23853 tls_first_major=2
23854 tls_first_minor=14
23855 tls_section_flag=T
23856 tls_as_opt="--fatal-warnings"
23857 fi
23858 case "$target" in
23859 i[34567]86-*-*)
23860 conftest_s="$conftest_s
23861 foo: .long 25
23862 .text
23863 movl %gs:0, %eax
23864 leal foo@tlsgd(,%ebx,1), %eax
23865 leal foo@tlsldm(%ebx), %eax
23866 leal foo@dtpoff(%eax), %edx
23867 movl foo@gottpoff(%ebx), %eax
23868 subl foo@gottpoff(%ebx), %eax
23869 addl foo@gotntpoff(%ebx), %eax
23870 movl foo@indntpoff, %eax
23871 movl \$foo@tpoff, %eax
23872 subl \$foo@tpoff, %eax
23873 leal foo@ntpoff(%ecx), %eax"
23874 ;;
23875 x86_64-*-*)
23876 if test x$on_solaris = xyes; then
23877 case $gas_flag in
23878 yes) tls_as_opt="$tls_as_opt --64" ;;
23879 no) tls_as_opt="$tls_as_opt -xarch=amd64" ;;
23880 esac
23881 fi
23882 conftest_s="$conftest_s
23883 foo: .long 25
23884 .text
23885 movq %fs:0, %rax
23886 leaq foo@tlsgd(%rip), %rdi
23887 leaq foo@tlsld(%rip), %rdi
23888 leaq foo@dtpoff(%rax), %rdx
23889 movq foo@gottpoff(%rip), %rax
23890 movq \$foo@tpoff, %rax"
23891 ;;
23892 esac
23893 ;;
23894 ia64-*-*)
23895 conftest_s='
23896 .section ".tdata","awT",@progbits
23897 foo: data8 25
23898 .text
23899 addl r16 = @ltoff(@dtpmod(foo#)), gp
23900 addl r17 = @ltoff(@dtprel(foo#)), gp
23901 addl r18 = @ltoff(@tprel(foo#)), gp
23902 addl r19 = @dtprel(foo#), gp
23903 adds r21 = @dtprel(foo#), r13
23904 movl r23 = @dtprel(foo#)
23905 addl r20 = @tprel(foo#), gp
23906 adds r22 = @tprel(foo#), r13
23907 movl r24 = @tprel(foo#)'
23908 tls_first_major=2
23909 tls_first_minor=13
23910 tls_as_opt=--fatal-warnings
23911 ;;
23912 microblaze*-*-*)
23913 conftest_s='
23914 .section .tdata,"awT",@progbits
23915 x:
23916 .word 2
23917 .text
23918 addik r5,r20,x@TLSGD
23919 addik r5,r20,x@TLSLDM'
23920 tls_first_major=2
23921 tls_first_minor=20
23922 tls_as_opt='--fatal-warnings'
23923 ;;
23924 mips*-*-*)
23925 conftest_s='
23926 .section .tdata,"awT",@progbits
23927 x:
23928 .word 2
23929 .text
23930 addiu $4, $28, %tlsgd(x)
23931 addiu $4, $28, %tlsldm(x)
23932 lui $4, %dtprel_hi(x)
23933 addiu $4, $4, %dtprel_lo(x)
23934 lw $4, %gottprel(x)($28)
23935 lui $4, %tprel_hi(x)
23936 addiu $4, $4, %tprel_lo(x)'
23937 tls_first_major=2
23938 tls_first_minor=16
23939 tls_as_opt='-32 --fatal-warnings'
23940 ;;
23941 m68k-*-*)
23942 conftest_s='
23943 .section .tdata,"awT",@progbits
23944 x:
23945 .word 2
23946 .text
23947 foo:
23948 move.l x@TLSGD(%a5),%a0
23949 move.l x@TLSLDM(%a5),%a0
23950 move.l x@TLSLDO(%a5),%a0
23951 move.l x@TLSIE(%a5),%a0
23952 move.l x@TLSLE(%a5),%a0'
23953 tls_first_major=2
23954 tls_first_minor=19
23955 tls_as_opt='--fatal-warnings'
23956 ;;
23957 nios2-*-*)
23958 conftest_s='
23959 .section ".tdata","awT",@progbits'
23960 tls_first_major=2
23961 tls_first_minor=23
23962 tls_as_opt="--fatal-warnings"
23963 ;;
23964 aarch64*-*-*)
23965 conftest_s='
23966 .section ".tdata","awT",%progbits
23967 foo: .long 25
23968 .text
23969 adrp x0, :tlsgd:x
23970 add x0, x0, #:tlsgd_lo12:x
23971 bl __tls_get_addr
23972 nop'
23973 tls_first_major=2
23974 tls_first_minor=20
23975 tls_as_opt='--fatal-warnings'
23976 ;;
23977 powerpc-ibm-aix*)
23978 conftest_s='
23979 .extern __get_tpointer
23980 .toc
23981 LC..1:
23982 .tc a[TC],a[TL]@le
23983 .csect .text[PR]
23984 .tlstest:
23985 lwz 9,LC..1(2)
23986 bla __get_tpointer
23987 lwzx 3,9,3
23988 .globl a
23989 .csect a[TL],4
23990 a:
23991 .space 4'
23992 tls_first_major=0
23993 tls_first_minor=0
23994 ;;
23995 powerpc64*-*-*)
23996 conftest_s='
23997 .section ".tdata","awT",@progbits
23998 .align 3
23999 ld0: .space 8
24000 ld1: .space 8
24001 x1: .space 8
24002 x2: .space 8
24003 x3: .space 8
24004 .text
24005 addi 3,2,ld0@got@tlsgd
24006 bl .__tls_get_addr
24007 nop
24008 addi 3,2,ld1@toc
24009 bl .__tls_get_addr
24010 nop
24011 addi 3,2,x1@got@tlsld
24012 bl .__tls_get_addr
24013 nop
24014 addi 9,3,x1@dtprel
24015 bl .__tls_get_addr
24016 nop
24017 addis 9,3,x2@dtprel@ha
24018 addi 9,9,x2@dtprel@l
24019 bl .__tls_get_addr
24020 nop
24021 ld 9,x3@got@dtprel(2)
24022 add 9,9,3
24023 bl .__tls_get_addr
24024 nop'
24025 tls_first_major=2
24026 tls_first_minor=14
24027 tls_as_opt="-a64 --fatal-warnings"
24028 ;;
24029 powerpc*-*-*)
24030 conftest_s='
24031 .section ".tdata","awT",@progbits
24032 .align 2
24033 ld0: .space 4
24034 ld1: .space 4
24035 x1: .space 4
24036 x2: .space 4
24037 x3: .space 4
24038 .text
24039 addi 3,31,ld0@got@tlsgd
24040 bl __tls_get_addr
24041 addi 3,31,x1@got@tlsld
24042 bl __tls_get_addr
24043 addi 9,3,x1@dtprel
24044 addis 9,3,x2@dtprel@ha
24045 addi 9,9,x2@dtprel@l
24046 lwz 9,x3@got@tprel(31)
24047 add 9,9,x@tls
24048 addi 9,2,x1@tprel
24049 addis 9,2,x2@tprel@ha
24050 addi 9,9,x2@tprel@l'
24051 tls_first_major=2
24052 tls_first_minor=14
24053 tls_as_opt="-a32 --fatal-warnings"
24054 ;;
24055 s390-*-*)
24056 conftest_s='
24057 .section ".tdata","awT",@progbits
24058 foo: .long 25
24059 .text
24060 .long foo@TLSGD
24061 .long foo@TLSLDM
24062 .long foo@DTPOFF
24063 .long foo@NTPOFF
24064 .long foo@GOTNTPOFF
24065 .long foo@INDNTPOFF
24066 l %r1,foo@GOTNTPOFF(%r12)
24067 l %r1,0(%r1):tls_load:foo
24068 bas %r14,0(%r1,%r13):tls_gdcall:foo
24069 bas %r14,0(%r1,%r13):tls_ldcall:foo'
24070 tls_first_major=2
24071 tls_first_minor=14
24072 tls_as_opt="-m31 --fatal-warnings"
24073 ;;
24074 s390x-*-*)
24075 conftest_s='
24076 .section ".tdata","awT",@progbits
24077 foo: .long 25
24078 .text
24079 .quad foo@TLSGD
24080 .quad foo@TLSLDM
24081 .quad foo@DTPOFF
24082 .quad foo@NTPOFF
24083 .quad foo@GOTNTPOFF
24084 lg %r1,foo@GOTNTPOFF(%r12)
24085 larl %r1,foo@INDNTPOFF
24086 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
24087 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
24088 tls_first_major=2
24089 tls_first_minor=14
24090 tls_as_opt="-m64 -Aesame --fatal-warnings"
24091 ;;
24092 sh-*-* | sh[123456789lbe]*-*-*)
24093 conftest_s='
24094 .section ".tdata","awT",@progbits
24095 foo: .long 25
24096 .text
24097 .long foo@TLSGD
24098 .long foo@TLSLDM
24099 .long foo@DTPOFF
24100 .long foo@GOTTPOFF
24101 .long foo@TPOFF'
24102 tls_first_major=2
24103 tls_first_minor=13
24104 tls_as_opt=--fatal-warnings
24105 ;;
24106 sparc*-*-*)
24107 case "$target" in
24108 sparc*-sun-solaris2.*)
24109 on_solaris=yes
24110 ;;
24111 *)
24112 on_solaris=no
24113 ;;
24114 esac
24115 if test x$on_solaris = xyes && test x$gas_flag = xno; then
24116 conftest_s='
24117 .section ".tdata",#alloc,#write,#tls'
24118 tls_first_major=0
24119 tls_first_minor=0
24120 else
24121 conftest_s='
24122 .section ".tdata","awT",@progbits'
24123 tls_first_major=2
24124 tls_first_minor=14
24125 tls_as_opt="-32 --fatal-warnings"
24126 fi
24127 conftest_s="$conftest_s
24128 foo: .long 25
24129 .text
24130 sethi %tgd_hi22(foo), %o0
24131 add %o0, %tgd_lo10(foo), %o1
24132 add %l7, %o1, %o0, %tgd_add(foo)
24133 call __tls_get_addr, %tgd_call(foo)
24134 sethi %tldm_hi22(foo), %l1
24135 add %l1, %tldm_lo10(foo), %l2
24136 add %l7, %l2, %o0, %tldm_add(foo)
24137 call __tls_get_addr, %tldm_call(foo)
24138 sethi %tldo_hix22(foo), %l3
24139 xor %l3, %tldo_lox10(foo), %l4
24140 add %o0, %l4, %l5, %tldo_add(foo)
24141 sethi %tie_hi22(foo), %o3
24142 add %o3, %tie_lo10(foo), %o3
24143 ld [%l7 + %o3], %o2, %tie_ld(foo)
24144 add %g7, %o2, %o4, %tie_add(foo)
24145 sethi %tle_hix22(foo), %l1
24146 xor %l1, %tle_lox10(foo), %o5
24147 ld [%g7 + %o5], %o1"
24148 ;;
24149 tilepro*-*-*)
24150 conftest_s='
24151 .section ".tdata","awT",@progbits
24152 foo: .long 25
24153 .text
24154 addli r0, zero, tls_gd(foo)
24155 auli r0, zero, tls_gd_ha16(foo)
24156 addli r0, r0, tls_gd_lo16(foo)
24157 jal __tls_get_addr
24158 addli r0, zero, tls_ie(foo)
24159 auli r0, r0, tls_ie_ha16(foo)
24160 addli r0, r0, tls_ie_lo16(foo)'
24161 tls_first_major=2
24162 tls_first_minor=22
24163 tls_as_opt="--fatal-warnings"
24164 ;;
24165 tilegx*-*-*)
24166 conftest_s='
24167 .section ".tdata","awT",@progbits
24168 foo: .long 25
24169 .text
24170 shl16insli r0, zero, hw0_last_tls_gd(foo)
24171 shl16insli r0, zero, hw1_last_tls_gd(foo)
24172 shl16insli r0, r0, hw0_tls_gd(foo)
24173 jal __tls_get_addr
24174 shl16insli r0, zero, hw1_last_tls_ie(foo)
24175 shl16insli r0, r0, hw0_tls_ie(foo)'
24176 tls_first_major=2
24177 tls_first_minor=22
24178 tls_as_opt="--fatal-warnings"
24179 ;;
24180 xtensa*-*-*)
24181 conftest_s='
24182 .section ".tdata","awT",@progbits
24183 foo: .long 25
24184 .text
24185 movi a8, foo@TLSFUNC
24186 movi a10, foo@TLSARG
24187 callx8.tls a8, foo@TLSCALL'
24188 tls_first_major=2
24189 tls_first_minor=19
24190 ;;
24191 esac
24192 set_have_as_tls=no
24193 if test "x$enable_tls" = xno ; then
24194 : # TLS explicitly disabled.
24195 elif test "x$enable_tls" = xyes ; then
24196 set_have_as_tls=yes # TLS explicitly enabled.
24197 elif test -z "$tls_first_major"; then
24198 : # If we don't have a check, assume no support.
24199 else
24200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
24201 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
24202 if test "${gcc_cv_as_tls+set}" = set; then :
24203 $as_echo_n "(cached) " >&6
24204 else
24205 gcc_cv_as_tls=no
24206 if test $in_tree_gas = yes; then
24207 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
24208 then gcc_cv_as_tls=yes
24209 fi
24210 elif test x$gcc_cv_as != x; then
24211 $as_echo "$conftest_s" > conftest.s
24212 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
24213 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24214 (eval $ac_try) 2>&5
24215 ac_status=$?
24216 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24217 test $ac_status = 0; }; }
24218 then
24219 gcc_cv_as_tls=yes
24220 else
24221 echo "configure: failed program was" >&5
24222 cat conftest.s >&5
24223 fi
24224 rm -f conftest.o conftest.s
24225 fi
24226 fi
24227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
24228 $as_echo "$gcc_cv_as_tls" >&6; }
24229 if test $gcc_cv_as_tls = yes; then
24230 set_have_as_tls=yes
24231 fi
24232 fi
24233 if test $set_have_as_tls = yes ; then
24234
24235 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
24236
24237 fi
24238
24239 # Target-specific assembler checks.
24240
24241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
24242 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
24243 gcc_cv_ld_static_dynamic=no
24244 gcc_cv_ld_static_option='-Bstatic'
24245 gcc_cv_ld_dynamic_option='-Bdynamic'
24246 if test $in_tree_ld = yes ; then
24247 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
24248 gcc_cv_ld_static_dynamic=yes
24249 fi
24250 elif test x$gcc_cv_ld != x; then
24251 # Check if linker supports -Bstatic/-Bdynamic option
24252 if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
24253 && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
24254 gcc_cv_ld_static_dynamic=yes
24255 else
24256 case "$target" in
24257 # AIX ld uses -b flags
24258 *-*-aix4.[23]* | *-*-aix[5-9]*)
24259 gcc_cv_ld_static_dynamic=yes
24260 gcc_cv_ld_static_option="-bstatic"
24261 gcc_cv_ld_dynamic_option="-bdynamic"
24262 ;;
24263 # HP-UX ld uses -a flags to select between shared and archive.
24264 *-*-hpux*)
24265 if test x"$gnu_ld" = xno; then
24266 gcc_cv_ld_static_dynamic=yes
24267 gcc_cv_ld_static_option="-aarchive_shared"
24268 gcc_cv_ld_dynamic_option="-adefault"
24269 fi
24270 ;;
24271 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
24272 *-*-solaris2*)
24273 gcc_cv_ld_static_dynamic=yes
24274 ;;
24275 esac
24276 fi
24277 fi
24278 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
24279
24280 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
24281
24282
24283 cat >>confdefs.h <<_ACEOF
24284 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
24285 _ACEOF
24286
24287
24288 cat >>confdefs.h <<_ACEOF
24289 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
24290 _ACEOF
24291
24292 fi
24293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
24294 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
24295
24296 if test x"$demangler_in_ld" = xyes; then
24297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
24298 $as_echo_n "checking linker --demangle support... " >&6; }
24299 gcc_cv_ld_demangle=no
24300 if test $in_tree_ld = yes; then
24301 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 \
24302 gcc_cv_ld_demangle=yes
24303 fi
24304 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
24305 # Check if the GNU linker supports --demangle option
24306 if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
24307 gcc_cv_ld_demangle=yes
24308 fi
24309 fi
24310 if test x"$gcc_cv_ld_demangle" = xyes; then
24311
24312 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
24313
24314 fi
24315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
24316 $as_echo "$gcc_cv_ld_demangle" >&6; }
24317 fi
24318
24319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
24320 $as_echo_n "checking linker plugin support... " >&6; }
24321 gcc_cv_lto_plugin=0
24322 if test -f liblto_plugin.la; then
24323 save_ld_ver="$ld_ver"
24324 save_ld_vers_major="$ld_vers_major"
24325 save_ld_vers_minor="$ld_vers_minor"
24326 save_ld_is_gold="$ld_is_gold"
24327
24328 ld_is_gold=no
24329
24330 if test $in_tree_ld = yes -a x"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x"$gcc_cv_ld"; then
24331 ld_ver="GNU ld"
24332 # FIXME: ld_is_gold?
24333 ld_vers_major="$gcc_cv_gld_major_version"
24334 ld_vers_minor="$gcc_cv_gld_minor_version"
24335 else
24336 # Determine plugin linker version.
24337 # FIXME: Partial duplicate from above, generalize.
24338 ld_ver=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
24339 if echo "$ld_ver" | grep GNU > /dev/null; then
24340 if echo "$ld_ver" | grep "GNU gold" > /dev/null; then
24341 ld_is_gold=yes
24342 ld_vers=`echo $ld_ver | sed -n \
24343 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
24344 else
24345 ld_vers=`echo $ld_ver | sed -n \
24346 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
24347 fi
24348 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
24349 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
24350 fi
24351 fi
24352
24353 # Determine plugin support.
24354 if echo "$ld_ver" | grep GNU > /dev/null; then
24355 # Require GNU ld or gold 2.21+ for plugin support by default.
24356 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
24357 gcc_cv_lto_plugin=2
24358 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
24359 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
24360 gcc_cv_lto_plugin=1
24361 fi
24362 fi
24363
24364 ld_ver="$save_ld_ver"
24365 ld_vers_major="$save_ld_vers_major"
24366 ld_vers_minor="$save_ld_vers_minor"
24367 ld_is_gold="$save_ld_is_gold"
24368 fi
24369
24370 cat >>confdefs.h <<_ACEOF
24371 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
24372 _ACEOF
24373
24374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
24375 $as_echo "$gcc_cv_lto_plugin" >&6; }
24376
24377 case "$target" in
24378 aarch64*-*-*)
24379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mabi option" >&5
24380 $as_echo_n "checking assembler for -mabi option... " >&6; }
24381 if test "${gcc_cv_as_aarch64_mabi+set}" = set; then :
24382 $as_echo_n "(cached) " >&6
24383 else
24384 gcc_cv_as_aarch64_mabi=no
24385 if test x$gcc_cv_as != x; then
24386 $as_echo '.text' > conftest.s
24387 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mabi=lp64 -o conftest.o conftest.s >&5'
24388 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24389 (eval $ac_try) 2>&5
24390 ac_status=$?
24391 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24392 test $ac_status = 0; }; }
24393 then
24394 gcc_cv_as_aarch64_mabi=yes
24395 else
24396 echo "configure: failed program was" >&5
24397 cat conftest.s >&5
24398 fi
24399 rm -f conftest.o conftest.s
24400 fi
24401 fi
24402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_mabi" >&5
24403 $as_echo "$gcc_cv_as_aarch64_mabi" >&6; }
24404
24405 if test x$gcc_cv_as_aarch64_mabi = xyes; then
24406
24407 $as_echo "#define HAVE_AS_MABI_OPTION 1" >>confdefs.h
24408
24409 else
24410 if test x$with_abi = xilp32; then
24411 as_fn_error "Assembler does not support -mabi=ilp32.\
24412 Upgrade the Assembler." "$LINENO" 5
24413 fi
24414 if test x"$with_multilib_list" = xdefault; then
24415 TM_MULTILIB_CONFIG=lp64
24416 else
24417 aarch64_multilibs=`echo $with_multilib_list | sed -e 's/,/ /g'`
24418 for aarch64_multilib in ${aarch64_multilibs}; do
24419 case ${aarch64_multilib} in
24420 ilp32)
24421 as_fn_error "Assembler does not support -mabi=ilp32.\
24422 Upgrade the Assembler." "$LINENO" 5
24423 ;;
24424 *)
24425 ;;
24426 esac
24427 done
24428 fi
24429 fi
24430 # Check if we have binutils support for relocations types needed by -fpic
24431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -fpic relocs" >&5
24432 $as_echo_n "checking assembler for -fpic relocs... " >&6; }
24433 if test "${gcc_cv_as_aarch64_picreloc+set}" = set; then :
24434 $as_echo_n "(cached) " >&6
24435 else
24436 gcc_cv_as_aarch64_picreloc=no
24437 if test x$gcc_cv_as != x; then
24438 $as_echo '
24439 .text
24440 ldr x0, [x2, #:gotpage_lo15:globalsym]
24441 ' > conftest.s
24442 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24443 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24444 (eval $ac_try) 2>&5
24445 ac_status=$?
24446 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24447 test $ac_status = 0; }; }
24448 then
24449 gcc_cv_as_aarch64_picreloc=yes
24450 else
24451 echo "configure: failed program was" >&5
24452 cat conftest.s >&5
24453 fi
24454 rm -f conftest.o conftest.s
24455 fi
24456 fi
24457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_picreloc" >&5
24458 $as_echo "$gcc_cv_as_aarch64_picreloc" >&6; }
24459 if test $gcc_cv_as_aarch64_picreloc = yes; then
24460
24461 $as_echo "#define HAVE_AS_SMALL_PIC_RELOCS 1" >>confdefs.h
24462
24463 fi
24464 # Enable default workaround for AArch64 Cortex-A53 erratum 835769.
24465 # Check whether --enable-fix-cortex-a53-835769 was given.
24466 if test "${enable_fix_cortex_a53_835769+set}" = set; then :
24467 enableval=$enable_fix_cortex_a53_835769;
24468 case $enableval in
24469 yes)
24470 tm_defines="${tm_defines} TARGET_FIX_ERR_A53_835769_DEFAULT=1"
24471 ;;
24472 no)
24473 ;;
24474 *)
24475 as_fn_error "'$enableval' is an invalid value for --enable-fix-cortex-a53-835769.\
24476 Valid choices are 'yes' and 'no'." "$LINENO" 5
24477 ;;
24478
24479 esac
24480
24481 fi
24482
24483 # Enable default workaround for AArch64 Cortex-A53 erratum 843419.
24484 # Check whether --enable-fix-cortex-a53-843419 was given.
24485 if test "${enable_fix_cortex_a53_843419+set}" = set; then :
24486 enableval=$enable_fix_cortex_a53_843419;
24487 case $enableval in
24488 yes)
24489 tm_defines="${tm_defines} TARGET_FIX_ERR_A53_843419_DEFAULT=1"
24490 ;;
24491 no)
24492 ;;
24493 *)
24494 as_fn_error "'$enableval' is an invalid value for --enable-fix-cortex-a53-843419.\
24495 Valid choices are 'yes' and 'no'." "$LINENO" 5
24496 ;;
24497
24498 esac
24499
24500 fi
24501
24502 ;;
24503
24504 # All TARGET_ABI_OSF targets.
24505 alpha*-*-linux* | alpha*-*-*bsd*)
24506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
24507 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
24508 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
24509 $as_echo_n "(cached) " >&6
24510 else
24511 gcc_cv_as_alpha_explicit_relocs=no
24512 if test $in_tree_gas = yes; then
24513 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
24514 then gcc_cv_as_alpha_explicit_relocs=yes
24515 fi
24516 elif test x$gcc_cv_as != x; then
24517 $as_echo ' .set nomacro
24518 .text
24519 extbl $3, $2, $3 !lituse_bytoff!1
24520 ldq $2, a($29) !literal!1
24521 ldq $4, b($29) !literal!2
24522 ldq_u $3, 0($2) !lituse_base!1
24523 ldq $27, f($29) !literal!5
24524 jsr $26, ($27), f !lituse_jsr!5
24525 ldah $29, 0($26) !gpdisp!3
24526 lda $0, c($29) !gprel
24527 ldah $1, d($29) !gprelhigh
24528 lda $1, d($1) !gprellow
24529 lda $29, 0($29) !gpdisp!3' > conftest.s
24530 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24531 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24532 (eval $ac_try) 2>&5
24533 ac_status=$?
24534 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24535 test $ac_status = 0; }; }
24536 then
24537 gcc_cv_as_alpha_explicit_relocs=yes
24538 else
24539 echo "configure: failed program was" >&5
24540 cat conftest.s >&5
24541 fi
24542 rm -f conftest.o conftest.s
24543 fi
24544 fi
24545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
24546 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
24547 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
24548
24549 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
24550
24551 fi
24552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
24553 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
24554 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
24555 $as_echo_n "(cached) " >&6
24556 else
24557 gcc_cv_as_alpha_jsrdirect_relocs=no
24558 if test $in_tree_gas = yes; then
24559 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
24560 then gcc_cv_as_alpha_jsrdirect_relocs=yes
24561 fi
24562 elif test x$gcc_cv_as != x; then
24563 $as_echo ' .set nomacro
24564 .text
24565 ldq $27, a($29) !literal!1
24566 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
24567 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24568 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24569 (eval $ac_try) 2>&5
24570 ac_status=$?
24571 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24572 test $ac_status = 0; }; }
24573 then
24574 gcc_cv_as_alpha_jsrdirect_relocs=yes
24575 else
24576 echo "configure: failed program was" >&5
24577 cat conftest.s >&5
24578 fi
24579 rm -f conftest.o conftest.s
24580 fi
24581 fi
24582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
24583 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
24584 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
24585
24586 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
24587
24588 fi
24589 ;;
24590
24591 avr-*-*)
24592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --mlink-relax option" >&5
24593 $as_echo_n "checking assembler for --mlink-relax option... " >&6; }
24594 if test "${gcc_cv_as_avr_mlink_relax+set}" = set; then :
24595 $as_echo_n "(cached) " >&6
24596 else
24597 gcc_cv_as_avr_mlink_relax=no
24598 if test x$gcc_cv_as != x; then
24599 $as_echo '.text' > conftest.s
24600 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --mlink-relax -o conftest.o conftest.s >&5'
24601 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24602 (eval $ac_try) 2>&5
24603 ac_status=$?
24604 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24605 test $ac_status = 0; }; }
24606 then
24607 gcc_cv_as_avr_mlink_relax=yes
24608 else
24609 echo "configure: failed program was" >&5
24610 cat conftest.s >&5
24611 fi
24612 rm -f conftest.o conftest.s
24613 fi
24614 fi
24615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mlink_relax" >&5
24616 $as_echo "$gcc_cv_as_avr_mlink_relax" >&6; }
24617 if test $gcc_cv_as_avr_mlink_relax = yes; then
24618
24619 $as_echo "#define HAVE_AS_AVR_MLINK_RELAX_OPTION 1" >>confdefs.h
24620
24621 fi
24622
24623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mrmw option" >&5
24624 $as_echo_n "checking assembler for -mrmw option... " >&6; }
24625 if test "${gcc_cv_as_avr_mrmw+set}" = set; then :
24626 $as_echo_n "(cached) " >&6
24627 else
24628 gcc_cv_as_avr_mrmw=no
24629 if test x$gcc_cv_as != x; then
24630 $as_echo '.text' > conftest.s
24631 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mrmw -o conftest.o conftest.s >&5'
24632 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24633 (eval $ac_try) 2>&5
24634 ac_status=$?
24635 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24636 test $ac_status = 0; }; }
24637 then
24638 gcc_cv_as_avr_mrmw=yes
24639 else
24640 echo "configure: failed program was" >&5
24641 cat conftest.s >&5
24642 fi
24643 rm -f conftest.o conftest.s
24644 fi
24645 fi
24646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mrmw" >&5
24647 $as_echo "$gcc_cv_as_avr_mrmw" >&6; }
24648 if test $gcc_cv_as_avr_mrmw = yes; then
24649
24650 $as_echo "#define HAVE_AS_AVR_MRMW_OPTION 1" >>confdefs.h
24651
24652 fi
24653 ;;
24654
24655 cris-*-*)
24656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
24657 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
24658 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
24659 $as_echo_n "(cached) " >&6
24660 else
24661 gcc_cv_as_cris_no_mul_bug=no
24662 if test $in_tree_gas = yes; then
24663 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24664 then gcc_cv_as_cris_no_mul_bug=yes
24665 fi
24666 elif test x$gcc_cv_as != x; then
24667 $as_echo '.text' > conftest.s
24668 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
24669 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24670 (eval $ac_try) 2>&5
24671 ac_status=$?
24672 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24673 test $ac_status = 0; }; }
24674 then
24675 gcc_cv_as_cris_no_mul_bug=yes
24676 else
24677 echo "configure: failed program was" >&5
24678 cat conftest.s >&5
24679 fi
24680 rm -f conftest.o conftest.s
24681 fi
24682 fi
24683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
24684 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
24685 if test $gcc_cv_as_cris_no_mul_bug = yes; then
24686
24687 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
24688
24689 fi
24690 ;;
24691
24692 sparc*-*-*)
24693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
24694 $as_echo_n "checking assembler for .register... " >&6; }
24695 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
24696 $as_echo_n "(cached) " >&6
24697 else
24698 gcc_cv_as_sparc_register_op=no
24699 if test x$gcc_cv_as != x; then
24700 $as_echo '.register %g2, #scratch' > conftest.s
24701 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24702 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24703 (eval $ac_try) 2>&5
24704 ac_status=$?
24705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24706 test $ac_status = 0; }; }
24707 then
24708 gcc_cv_as_sparc_register_op=yes
24709 else
24710 echo "configure: failed program was" >&5
24711 cat conftest.s >&5
24712 fi
24713 rm -f conftest.o conftest.s
24714 fi
24715 fi
24716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
24717 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
24718 if test $gcc_cv_as_sparc_register_op = yes; then
24719
24720 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
24721
24722 fi
24723
24724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
24725 $as_echo_n "checking assembler for -relax option... " >&6; }
24726 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
24727 $as_echo_n "(cached) " >&6
24728 else
24729 gcc_cv_as_sparc_relax=no
24730 if test x$gcc_cv_as != x; then
24731 $as_echo '.text' > conftest.s
24732 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -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 gcc_cv_as_sparc_relax=yes
24740 else
24741 echo "configure: failed program was" >&5
24742 cat conftest.s >&5
24743 fi
24744 rm -f conftest.o conftest.s
24745 fi
24746 fi
24747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
24748 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
24749 if test $gcc_cv_as_sparc_relax = yes; then
24750
24751 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
24752
24753 fi
24754
24755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
24756 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
24757 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
24758 $as_echo_n "(cached) " >&6
24759 else
24760 gcc_cv_as_sparc_gotdata_op=no
24761 if test x$gcc_cv_as != x; then
24762 $as_echo '.text
24763 .align 4
24764 foo:
24765 nop
24766 bar:
24767 sethi %gdop_hix22(foo), %g1
24768 xor %g1, %gdop_lox10(foo), %g1
24769 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
24770 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24771 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24772 (eval $ac_try) 2>&5
24773 ac_status=$?
24774 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24775 test $ac_status = 0; }; }
24776 then
24777 if test x$gcc_cv_ld != x \
24778 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24779 if test x$gcc_cv_objdump != x; then
24780 if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
24781 | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
24782 gcc_cv_as_sparc_gotdata_op=no
24783 else
24784 gcc_cv_as_sparc_gotdata_op=yes
24785 fi
24786 fi
24787 fi
24788 rm -f conftest
24789 else
24790 echo "configure: failed program was" >&5
24791 cat conftest.s >&5
24792 fi
24793 rm -f conftest.o conftest.s
24794 fi
24795 fi
24796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
24797 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
24798 if test $gcc_cv_as_sparc_gotdata_op = yes; then
24799
24800 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
24801
24802 fi
24803
24804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
24805 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
24806 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
24807 $as_echo_n "(cached) " >&6
24808 else
24809 gcc_cv_as_sparc_ua_pcrel=no
24810 if test x$gcc_cv_as != x; then
24811 $as_echo '.text
24812 foo:
24813 nop
24814 .data
24815 .align 4
24816 .byte 0
24817 .uaword %r_disp32(foo)' > conftest.s
24818 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24819 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24820 (eval $ac_try) 2>&5
24821 ac_status=$?
24822 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24823 test $ac_status = 0; }; }
24824 then
24825 if test x$gcc_cv_ld != x \
24826 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24827 gcc_cv_as_sparc_ua_pcrel=yes
24828 fi
24829 rm -f conftest
24830 else
24831 echo "configure: failed program was" >&5
24832 cat conftest.s >&5
24833 fi
24834 rm -f conftest.o conftest.s
24835 fi
24836 fi
24837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
24838 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
24839 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
24840
24841 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
24842
24843
24844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
24845 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
24846 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
24847 $as_echo_n "(cached) " >&6
24848 else
24849 gcc_cv_as_sparc_ua_pcrel_hidden=no
24850 if test x$gcc_cv_as != x; then
24851 $as_echo '.data
24852 .align 4
24853 .byte 0x31
24854 .uaword %r_disp32(foo)
24855 .byte 0x32, 0x33, 0x34
24856 .global foo
24857 .hidden foo
24858 foo:
24859 .skip 4' > conftest.s
24860 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24861 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24862 (eval $ac_try) 2>&5
24863 ac_status=$?
24864 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24865 test $ac_status = 0; }; }
24866 then
24867 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
24868 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
24869 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
24870 | grep ' 31000000 07323334' > /dev/null 2>&1; then
24871 if $gcc_cv_objdump -R conftest 2> /dev/null \
24872 | grep 'DISP32' > /dev/null 2>&1; then
24873 :
24874 else
24875 gcc_cv_as_sparc_ua_pcrel_hidden=yes
24876 fi
24877 fi
24878 rm -f conftest
24879 else
24880 echo "configure: failed program was" >&5
24881 cat conftest.s >&5
24882 fi
24883 rm -f conftest.o conftest.s
24884 fi
24885 fi
24886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
24887 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
24888 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
24889
24890 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
24891
24892 fi
24893
24894 fi # unaligned pcrel relocs
24895
24896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
24897 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
24898 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
24899 $as_echo_n "(cached) " >&6
24900 else
24901 gcc_cv_as_sparc_offsetable_lo10=no
24902 if test x$gcc_cv_as != x; then
24903 $as_echo '.text
24904 or %g1, %lo(ab) + 12, %g1
24905 or %g1, %lo(ab + 12), %g1' > conftest.s
24906 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
24907 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24908 (eval $ac_try) 2>&5
24909 ac_status=$?
24910 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24911 test $ac_status = 0; }; }
24912 then
24913 if test x$gcc_cv_objdump != x \
24914 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
24915 | grep ' 82106000 82106000' > /dev/null 2>&1; then
24916 gcc_cv_as_sparc_offsetable_lo10=yes
24917 fi
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_offsetable_lo10" >&5
24926 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
24927 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
24928
24929 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
24930
24931 fi
24932
24933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
24934 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
24935 if test "${gcc_cv_as_sparc_fmaf+set}" = set; then :
24936 $as_echo_n "(cached) " >&6
24937 else
24938 gcc_cv_as_sparc_fmaf=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 fmaddd %f0, %f2, %f4, %f6
24945 addxccc %g1, %g2, %g3
24946 fsrl32 %f2, %f4, %f8
24947 fnaddd %f10, %f12, %f14' > conftest.s
24948 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
24949 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24950 (eval $ac_try) 2>&5
24951 ac_status=$?
24952 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24953 test $ac_status = 0; }; }
24954 then
24955 gcc_cv_as_sparc_fmaf=yes
24956 else
24957 echo "configure: failed program was" >&5
24958 cat conftest.s >&5
24959 fi
24960 rm -f conftest.o conftest.s
24961 fi
24962 fi
24963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
24964 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
24965 if test $gcc_cv_as_sparc_fmaf = yes; then
24966
24967 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
24968
24969 fi
24970
24971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
24972 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
24973 if test "${gcc_cv_as_sparc_sparc4+set}" = set; then :
24974 $as_echo_n "(cached) " >&6
24975 else
24976 gcc_cv_as_sparc_sparc4=no
24977 if test x$gcc_cv_as != x; then
24978 $as_echo '.text
24979 .register %g2, #scratch
24980 .register %g3, #scratch
24981 .align 4
24982 cxbe %g2, %g3, 1f
24983 1: cwbneg %g2, %g3, 1f
24984 1: sha1
24985 md5
24986 aes_kexpand0 %f4, %f6, %f8
24987 des_round %f38, %f40, %f42, %f44
24988 camellia_f %f54, %f56, %f58, %f60
24989 kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
24990 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
24991 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24992 (eval $ac_try) 2>&5
24993 ac_status=$?
24994 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24995 test $ac_status = 0; }; }
24996 then
24997 gcc_cv_as_sparc_sparc4=yes
24998 else
24999 echo "configure: failed program was" >&5
25000 cat conftest.s >&5
25001 fi
25002 rm -f conftest.o conftest.s
25003 fi
25004 fi
25005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
25006 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
25007 if test $gcc_cv_as_sparc_sparc4 = yes; then
25008
25009 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
25010
25011 fi
25012
25013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for LEON instructions" >&5
25014 $as_echo_n "checking assembler for LEON instructions... " >&6; }
25015 if test "${gcc_cv_as_sparc_leon+set}" = set; then :
25016 $as_echo_n "(cached) " >&6
25017 else
25018 gcc_cv_as_sparc_leon=no
25019 if test x$gcc_cv_as != x; then
25020 $as_echo '.text
25021 .register %g2, #scratch
25022 .register %g3, #scratch
25023 .align 4
25024 smac %g2, %g3, %g1
25025 umac %g2, %g3, %g1
25026 casa [%g2] 0xb, %g3, %g1' > conftest.s
25027 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -Aleon -o conftest.o conftest.s >&5'
25028 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25029 (eval $ac_try) 2>&5
25030 ac_status=$?
25031 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25032 test $ac_status = 0; }; }
25033 then
25034 gcc_cv_as_sparc_leon=yes
25035 else
25036 echo "configure: failed program was" >&5
25037 cat conftest.s >&5
25038 fi
25039 rm -f conftest.o conftest.s
25040 fi
25041 fi
25042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_leon" >&5
25043 $as_echo "$gcc_cv_as_sparc_leon" >&6; }
25044 if test $gcc_cv_as_sparc_leon = yes; then
25045
25046 $as_echo "#define HAVE_AS_LEON 1" >>confdefs.h
25047
25048 fi
25049 ;;
25050
25051 i[34567]86-*-* | x86_64-*-*)
25052 case $target_os in
25053 cygwin*)
25054 # Full C++ conformance when using a shared libstdc++-v3 requires some
25055 # support from the Cygwin DLL, which in more recent versions exports
25056 # wrappers to aid in interposing and redirecting operators new, delete,
25057 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
25058 # are configuring for a version of Cygwin that exports the wrappers.
25059 if test x$host = x$target && test x$host_cpu = xi686; then
25060 ac_fn_cxx_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
25061 if test "x$ac_cv_func___wrap__Znaj" = x""yes; then :
25062 gcc_ac_cygwin_dll_wrappers=yes
25063 else
25064 gcc_ac_cygwin_dll_wrappers=no
25065 fi
25066
25067 else
25068 # Can't check presence of libc functions during cross-compile, so
25069 # we just have to assume we're building for an up-to-date target.
25070 gcc_ac_cygwin_dll_wrappers=yes
25071 fi
25072
25073 cat >>confdefs.h <<_ACEOF
25074 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
25075 _ACEOF
25076
25077 esac
25078 case $target_os in
25079 cygwin* | pe | mingw32* | interix*)
25080 # Recent binutils allows the three-operand form of ".comm" on PE. This
25081 # definition is used unconditionally to initialise the default state of
25082 # the target option variable that governs usage of the feature.
25083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
25084 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
25085 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
25086 $as_echo_n "(cached) " >&6
25087 else
25088 gcc_cv_as_comm_has_align=no
25089 if test $in_tree_gas = yes; then
25090 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
25091 then gcc_cv_as_comm_has_align=yes
25092 fi
25093 elif test x$gcc_cv_as != x; then
25094 $as_echo '.comm foo,1,32' > conftest.s
25095 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25096 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25097 (eval $ac_try) 2>&5
25098 ac_status=$?
25099 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25100 test $ac_status = 0; }; }
25101 then
25102 gcc_cv_as_comm_has_align=yes
25103 else
25104 echo "configure: failed program was" >&5
25105 cat conftest.s >&5
25106 fi
25107 rm -f conftest.o conftest.s
25108 fi
25109 fi
25110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
25111 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
25112
25113
25114 cat >>confdefs.h <<_ACEOF
25115 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
25116 _ACEOF
25117
25118 # Used for DWARF 2 in PE
25119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
25120 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
25121 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
25122 $as_echo_n "(cached) " >&6
25123 else
25124 gcc_cv_as_ix86_pe_secrel32=no
25125 if test $in_tree_gas = yes; then
25126 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
25127 then gcc_cv_as_ix86_pe_secrel32=yes
25128 fi
25129 elif test x$gcc_cv_as != x; then
25130 $as_echo '.text
25131 foo: nop
25132 .data
25133 .secrel32 foo' > conftest.s
25134 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25135 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25136 (eval $ac_try) 2>&5
25137 ac_status=$?
25138 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25139 test $ac_status = 0; }; }
25140 then
25141 if test x$gcc_cv_ld != x \
25142 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
25143 gcc_cv_as_ix86_pe_secrel32=yes
25144 fi
25145 rm -f conftest
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_ix86_pe_secrel32" >&5
25154 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
25155 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
25156
25157 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
25158
25159 fi
25160 # Test if the assembler supports the extended form of the .section
25161 # directive that specifies section alignment. LTO support uses this,
25162 # but normally only after installation, so we warn but don't fail the
25163 # configure if LTO is enabled but the assembler does not support it.
25164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
25165 $as_echo_n "checking assembler for .section with alignment... " >&6; }
25166 if test "${gcc_cv_as_section_has_align+set}" = set; then :
25167 $as_echo_n "(cached) " >&6
25168 else
25169 gcc_cv_as_section_has_align=no
25170 if test $in_tree_gas = yes; then
25171 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
25172 then gcc_cv_as_section_has_align=yes
25173 fi
25174 elif test x$gcc_cv_as != x; then
25175 $as_echo '.section lto_test,"dr0"' > conftest.s
25176 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
25177 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25178 (eval $ac_try) 2>&5
25179 ac_status=$?
25180 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25181 test $ac_status = 0; }; }
25182 then
25183 gcc_cv_as_section_has_align=yes
25184 else
25185 echo "configure: failed program was" >&5
25186 cat conftest.s >&5
25187 fi
25188 rm -f conftest.o conftest.s
25189 fi
25190 fi
25191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
25192 $as_echo "$gcc_cv_as_section_has_align" >&6; }
25193
25194 if test x$gcc_cv_as_section_has_align != xyes; then
25195 case ",$enable_languages," in
25196 *,lto,*)
25197 { $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
25198 $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;}
25199 ;;
25200 esac
25201 fi
25202 ;;
25203 esac
25204
25205 # Test if the assembler supports the section flag 'e' for specifying
25206 # an excluded section.
25207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with e" >&5
25208 $as_echo_n "checking assembler for .section with e... " >&6; }
25209 if test "${gcc_cv_as_section_has_e+set}" = set; then :
25210 $as_echo_n "(cached) " >&6
25211 else
25212 gcc_cv_as_section_has_e=no
25213 if test $in_tree_gas = yes; then
25214 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
25215 then gcc_cv_as_section_has_e=yes
25216 fi
25217 elif test x$gcc_cv_as != x; then
25218 $as_echo '.section foo1,"e"
25219 .byte 0,0,0,0' > conftest.s
25220 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25221 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25222 (eval $ac_try) 2>&5
25223 ac_status=$?
25224 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25225 test $ac_status = 0; }; }
25226 then
25227 gcc_cv_as_section_has_e=yes
25228 else
25229 echo "configure: failed program was" >&5
25230 cat conftest.s >&5
25231 fi
25232 rm -f conftest.o conftest.s
25233 fi
25234 fi
25235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_e" >&5
25236 $as_echo "$gcc_cv_as_section_has_e" >&6; }
25237
25238
25239 cat >>confdefs.h <<_ACEOF
25240 #define HAVE_GAS_SECTION_EXCLUDE `if test $gcc_cv_as_section_has_e = yes; then echo 1; else echo 0; fi`
25241 _ACEOF
25242
25243
25244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
25245 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
25246 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
25247 $as_echo_n "(cached) " >&6
25248 else
25249 gcc_cv_as_ix86_filds=no
25250 if test x$gcc_cv_as != x; then
25251 $as_echo 'filds (%ebp); fists (%ebp)' > conftest.s
25252 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25253 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25254 (eval $ac_try) 2>&5
25255 ac_status=$?
25256 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25257 test $ac_status = 0; }; }
25258 then
25259 gcc_cv_as_ix86_filds=yes
25260 else
25261 echo "configure: failed program was" >&5
25262 cat conftest.s >&5
25263 fi
25264 rm -f conftest.o conftest.s
25265 fi
25266 fi
25267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
25268 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
25269 if test $gcc_cv_as_ix86_filds = yes; then
25270
25271 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
25272
25273 fi
25274
25275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
25276 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
25277 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
25278 $as_echo_n "(cached) " >&6
25279 else
25280 gcc_cv_as_ix86_fildq=no
25281 if test x$gcc_cv_as != x; then
25282 $as_echo 'fildq (%ebp); fistpq (%ebp)' > conftest.s
25283 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25284 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25285 (eval $ac_try) 2>&5
25286 ac_status=$?
25287 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25288 test $ac_status = 0; }; }
25289 then
25290 gcc_cv_as_ix86_fildq=yes
25291 else
25292 echo "configure: failed program was" >&5
25293 cat conftest.s >&5
25294 fi
25295 rm -f conftest.o conftest.s
25296 fi
25297 fi
25298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
25299 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
25300 if test $gcc_cv_as_ix86_fildq = yes; then
25301
25302 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
25303
25304 fi
25305
25306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
25307 $as_echo_n "checking assembler for cmov syntax... " >&6; }
25308 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
25309 $as_echo_n "(cached) " >&6
25310 else
25311 gcc_cv_as_ix86_cmov_sun_syntax=no
25312 if test x$gcc_cv_as != x; then
25313 $as_echo 'cmovl.l %edx, %eax' > conftest.s
25314 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25315 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25316 (eval $ac_try) 2>&5
25317 ac_status=$?
25318 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25319 test $ac_status = 0; }; }
25320 then
25321 gcc_cv_as_ix86_cmov_sun_syntax=yes
25322 else
25323 echo "configure: failed program was" >&5
25324 cat conftest.s >&5
25325 fi
25326 rm -f conftest.o conftest.s
25327 fi
25328 fi
25329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
25330 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
25331 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
25332
25333 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
25334
25335 fi
25336
25337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
25338 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
25339 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
25340 $as_echo_n "(cached) " >&6
25341 else
25342 gcc_cv_as_ix86_ffreep=no
25343 if test x$gcc_cv_as != x; then
25344 $as_echo 'ffreep %st(1)' > conftest.s
25345 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25346 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25347 (eval $ac_try) 2>&5
25348 ac_status=$?
25349 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25350 test $ac_status = 0; }; }
25351 then
25352 gcc_cv_as_ix86_ffreep=yes
25353 else
25354 echo "configure: failed program was" >&5
25355 cat conftest.s >&5
25356 fi
25357 rm -f conftest.o conftest.s
25358 fi
25359 fi
25360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
25361 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
25362 if test $gcc_cv_as_ix86_ffreep = yes; then
25363
25364 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
25365
25366 fi
25367
25368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
25369 $as_echo_n "checking assembler for .quad directive... " >&6; }
25370 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
25371 $as_echo_n "(cached) " >&6
25372 else
25373 gcc_cv_as_ix86_quad=no
25374 if test x$gcc_cv_as != x; then
25375 $as_echo '.quad 0' > conftest.s
25376 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25377 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25378 (eval $ac_try) 2>&5
25379 ac_status=$?
25380 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25381 test $ac_status = 0; }; }
25382 then
25383 gcc_cv_as_ix86_quad=yes
25384 else
25385 echo "configure: failed program was" >&5
25386 cat conftest.s >&5
25387 fi
25388 rm -f conftest.o conftest.s
25389 fi
25390 fi
25391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
25392 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
25393 if test $gcc_cv_as_ix86_quad = yes; then
25394
25395 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
25396
25397 fi
25398
25399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
25400 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
25401 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
25402 $as_echo_n "(cached) " >&6
25403 else
25404 gcc_cv_as_ix86_sahf=no
25405 if test x$gcc_cv_as != x; then
25406 $as_echo '.code64
25407 sahf' > conftest.s
25408 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25409 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25410 (eval $ac_try) 2>&5
25411 ac_status=$?
25412 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25413 test $ac_status = 0; }; }
25414 then
25415 gcc_cv_as_ix86_sahf=yes
25416 else
25417 echo "configure: failed program was" >&5
25418 cat conftest.s >&5
25419 fi
25420 rm -f conftest.o conftest.s
25421 fi
25422 fi
25423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
25424 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
25425 if test $gcc_cv_as_ix86_sahf = yes; then
25426
25427 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
25428
25429 fi
25430
25431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for interunit movq mnemonic" >&5
25432 $as_echo_n "checking assembler for interunit movq mnemonic... " >&6; }
25433 if test "${gcc_cv_as_ix86_interunit_movq+set}" = set; then :
25434 $as_echo_n "(cached) " >&6
25435 else
25436 gcc_cv_as_ix86_interunit_movq=no
25437 if test x$gcc_cv_as != x; then
25438 $as_echo '.code64
25439 movq %mm0, %rax
25440 movq %rax, %xmm0' > conftest.s
25441 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25442 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25443 (eval $ac_try) 2>&5
25444 ac_status=$?
25445 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25446 test $ac_status = 0; }; }
25447 then
25448 gcc_cv_as_ix86_interunit_movq=yes
25449 else
25450 echo "configure: failed program was" >&5
25451 cat conftest.s >&5
25452 fi
25453 rm -f conftest.o conftest.s
25454 fi
25455 fi
25456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_interunit_movq" >&5
25457 $as_echo "$gcc_cv_as_ix86_interunit_movq" >&6; }
25458
25459
25460 cat >>confdefs.h <<_ACEOF
25461 #define HAVE_AS_IX86_INTERUNIT_MOVQ `if test $gcc_cv_as_ix86_interunit_movq = yes; then echo 1; else echo 0; fi`
25462 _ACEOF
25463
25464
25465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
25466 $as_echo_n "checking assembler for hle prefixes... " >&6; }
25467 if test "${gcc_cv_as_ix86_hle+set}" = set; then :
25468 $as_echo_n "(cached) " >&6
25469 else
25470 gcc_cv_as_ix86_hle=no
25471 if test x$gcc_cv_as != x; then
25472 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
25473 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25474 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25475 (eval $ac_try) 2>&5
25476 ac_status=$?
25477 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25478 test $ac_status = 0; }; }
25479 then
25480 gcc_cv_as_ix86_hle=yes
25481 else
25482 echo "configure: failed program was" >&5
25483 cat conftest.s >&5
25484 fi
25485 rm -f conftest.o conftest.s
25486 fi
25487 fi
25488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
25489 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
25490 if test $gcc_cv_as_ix86_hle = yes; then
25491
25492 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
25493
25494 fi
25495
25496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
25497 $as_echo_n "checking assembler for swap suffix... " >&6; }
25498 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
25499 $as_echo_n "(cached) " >&6
25500 else
25501 gcc_cv_as_ix86_swap=no
25502 if test x$gcc_cv_as != x; then
25503 $as_echo 'movl.s %esp, %ebp' > conftest.s
25504 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25505 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25506 (eval $ac_try) 2>&5
25507 ac_status=$?
25508 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25509 test $ac_status = 0; }; }
25510 then
25511 gcc_cv_as_ix86_swap=yes
25512 else
25513 echo "configure: failed program was" >&5
25514 cat conftest.s >&5
25515 fi
25516 rm -f conftest.o conftest.s
25517 fi
25518 fi
25519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
25520 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
25521 if test $gcc_cv_as_ix86_swap = yes; then
25522
25523 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
25524
25525 fi
25526
25527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
25528 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
25529 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
25530 $as_echo_n "(cached) " >&6
25531 else
25532 gcc_cv_as_ix86_diff_sect_delta=no
25533 if test x$gcc_cv_as != x; then
25534 $as_echo '.section .rodata
25535 .L1:
25536 .long .L2-.L1
25537 .long .L3-.L1
25538 .text
25539 .L3: nop
25540 .L2: nop' > conftest.s
25541 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25542 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25543 (eval $ac_try) 2>&5
25544 ac_status=$?
25545 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25546 test $ac_status = 0; }; }
25547 then
25548 gcc_cv_as_ix86_diff_sect_delta=yes
25549 else
25550 echo "configure: failed program was" >&5
25551 cat conftest.s >&5
25552 fi
25553 rm -f conftest.o conftest.s
25554 fi
25555 fi
25556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
25557 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
25558 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
25559
25560 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
25561
25562 fi
25563
25564 # These two are used unconditionally by i386.[ch]; it is to be defined
25565 # to 1 if the feature is present, 0 otherwise.
25566 as_ix86_gotoff_in_data_opt=
25567 if test x$gas = xyes; then
25568 as_ix86_gotoff_in_data_opt="--32"
25569 fi
25570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
25571 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
25572 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
25573 $as_echo_n "(cached) " >&6
25574 else
25575 gcc_cv_as_ix86_gotoff_in_data=no
25576 if test $in_tree_gas = yes; then
25577 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25578 then gcc_cv_as_ix86_gotoff_in_data=yes
25579 fi
25580 elif test x$gcc_cv_as != x; then
25581 $as_echo ' .text
25582 .L0:
25583 nop
25584 .data
25585 .long .L0@GOTOFF' > conftest.s
25586 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gotoff_in_data_opt -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_gotoff_in_data=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_gotoff_in_data" >&5
25602 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
25603
25604
25605 cat >>confdefs.h <<_ACEOF
25606 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
25607 _ACEOF
25608
25609
25610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
25611 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
25612 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
25613 $as_echo_n "(cached) " >&6
25614 else
25615 gcc_cv_as_ix86_rep_lock_prefix=no
25616 if test x$gcc_cv_as != x; then
25617 $as_echo 'rep movsl
25618 rep ret
25619 rep nop
25620 rep bsf %ecx, %eax
25621 rep bsr %ecx, %eax
25622 lock addl %edi, (%eax,%esi)
25623 lock orl $0, (%esp)' > conftest.s
25624 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25625 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25626 (eval $ac_try) 2>&5
25627 ac_status=$?
25628 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25629 test $ac_status = 0; }; }
25630 then
25631 gcc_cv_as_ix86_rep_lock_prefix=yes
25632 else
25633 echo "configure: failed program was" >&5
25634 cat conftest.s >&5
25635 fi
25636 rm -f conftest.o conftest.s
25637 fi
25638 fi
25639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
25640 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
25641 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
25642
25643 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
25644
25645 fi
25646
25647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ud2 mnemonic" >&5
25648 $as_echo_n "checking assembler for ud2 mnemonic... " >&6; }
25649 if test "${gcc_cv_as_ix86_ud2+set}" = set; then :
25650 $as_echo_n "(cached) " >&6
25651 else
25652 gcc_cv_as_ix86_ud2=no
25653 if test x$gcc_cv_as != x; then
25654 $as_echo 'ud2' > conftest.s
25655 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25656 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25657 (eval $ac_try) 2>&5
25658 ac_status=$?
25659 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25660 test $ac_status = 0; }; }
25661 then
25662 gcc_cv_as_ix86_ud2=yes
25663 else
25664 echo "configure: failed program was" >&5
25665 cat conftest.s >&5
25666 fi
25667 rm -f conftest.o conftest.s
25668 fi
25669 fi
25670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ud2" >&5
25671 $as_echo "$gcc_cv_as_ix86_ud2" >&6; }
25672 if test $gcc_cv_as_ix86_ud2 = yes; then
25673
25674 $as_echo "#define HAVE_AS_IX86_UD2 1" >>confdefs.h
25675
25676 fi
25677
25678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
25679 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
25680 if test "${gcc_cv_as_ix86_tlsgdplt+set}" = set; then :
25681 $as_echo_n "(cached) " >&6
25682 else
25683 gcc_cv_as_ix86_tlsgdplt=no
25684 if test x$gcc_cv_as != x; then
25685 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
25686 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25687 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25688 (eval $ac_try) 2>&5
25689 ac_status=$?
25690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25691 test $ac_status = 0; }; }
25692 then
25693 if test x$gcc_cv_ld != x \
25694 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
25695 gcc_cv_as_ix86_tlsgdplt=yes
25696 fi
25697 rm -f conftest
25698 else
25699 echo "configure: failed program was" >&5
25700 cat conftest.s >&5
25701 fi
25702 rm -f conftest.o conftest.s
25703 fi
25704 fi
25705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
25706 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
25707 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
25708
25709 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
25710
25711 fi
25712
25713 conftest_s='
25714 .section .tdata,"aw'$tls_section_flag'",@progbits
25715 tls_ld:
25716 .section .text,"ax",@progbits
25717 call tls_ld@tlsldmplt'
25718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
25719 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
25720 if test "${gcc_cv_as_ix86_tlsldmplt+set}" = set; then :
25721 $as_echo_n "(cached) " >&6
25722 else
25723 gcc_cv_as_ix86_tlsldmplt=no
25724 if test x$gcc_cv_as != x; then
25725 $as_echo "$conftest_s" > conftest.s
25726 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25727 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25728 (eval $ac_try) 2>&5
25729 ac_status=$?
25730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25731 test $ac_status = 0; }; }
25732 then
25733 if test x$gcc_cv_ld != x \
25734 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
25735 gcc_cv_as_ix86_tlsldmplt=yes
25736 fi
25737 rm -f conftest
25738 else
25739 echo "configure: failed program was" >&5
25740 cat conftest.s >&5
25741 fi
25742 rm -f conftest.o conftest.s
25743 fi
25744 fi
25745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
25746 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
25747
25748
25749 cat >>confdefs.h <<_ACEOF
25750 #define HAVE_AS_IX86_TLSLDMPLT `if test $gcc_cv_as_ix86_tlsldmplt = yes; then echo 1; else echo 0; fi`
25751 _ACEOF
25752
25753
25754 # Enforce 32-bit output with gas and gld.
25755 if test x$gas = xyes; then
25756 as_ix86_tls_ldm_opt="--32"
25757 fi
25758 if echo "$ld_ver" | grep GNU > /dev/null; then
25759 if $gcc_cv_ld -V 2>/dev/null | grep elf_i386_sol2 > /dev/null; then
25760 ld_ix86_tls_ldm_opt="-melf_i386_sol2"
25761 else
25762 ld_ix86_tls_ldm_opt="-melf_i386"
25763 fi
25764 fi
25765 conftest_s='
25766 .section .text,"ax",@progbits
25767 .globl _start
25768 .type _start, @function
25769 _start:
25770 leal value@tlsldm(%ebx), %eax
25771 call ___tls_get_addr@plt
25772
25773 .section .tdata,"aw'$tls_section_flag'",@progbits
25774 .type value, @object
25775 value:'
25776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM reloc" >&5
25777 $as_echo_n "checking assembler for R_386_TLS_LDM reloc... " >&6; }
25778 if test "${gcc_cv_as_ix86_tlsldm+set}" = set; then :
25779 $as_echo_n "(cached) " >&6
25780 else
25781 gcc_cv_as_ix86_tlsldm=no
25782 if test x$gcc_cv_as != x; then
25783 $as_echo "$conftest_s" > conftest.s
25784 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_tls_ldm_opt -o conftest.o conftest.s >&5'
25785 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25786 (eval $ac_try) 2>&5
25787 ac_status=$?
25788 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25789 test $ac_status = 0; }; }
25790 then
25791 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
25792 && $gcc_cv_ld $ld_ix86_tls_ldm_opt -o conftest conftest.o $ld_tls_libs -lc > /dev/null 2>&1; then
25793 if $gcc_cv_objdump -d conftest 2>/dev/null | grep nop > /dev/null \
25794 || dis conftest 2>/dev/null | grep nop > /dev/null; then
25795 gcc_cv_as_ix86_tlsldm=yes
25796 fi
25797 fi
25798 rm -f conftest
25799 else
25800 echo "configure: failed program was" >&5
25801 cat conftest.s >&5
25802 fi
25803 rm -f conftest.o conftest.s
25804 fi
25805 fi
25806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldm" >&5
25807 $as_echo "$gcc_cv_as_ix86_tlsldm" >&6; }
25808
25809
25810 cat >>confdefs.h <<_ACEOF
25811 #define HAVE_AS_IX86_TLSLDM `if test $gcc_cv_as_ix86_tlsldm = yes; then echo 1; else echo 0; fi`
25812 _ACEOF
25813
25814
25815 ;;
25816
25817 ia64*-*-*)
25818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
25819 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
25820 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
25821 $as_echo_n "(cached) " >&6
25822 else
25823 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
25824 if test $in_tree_gas = yes; then
25825 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25826 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
25827 fi
25828 elif test x$gcc_cv_as != x; then
25829 $as_echo ' .text
25830 addl r15 = @ltoffx(x#), gp
25831 ;;
25832 ld8.mov r16 = [r15], x#' > conftest.s
25833 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25834 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25835 (eval $ac_try) 2>&5
25836 ac_status=$?
25837 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25838 test $ac_status = 0; }; }
25839 then
25840 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
25841 else
25842 echo "configure: failed program was" >&5
25843 cat conftest.s >&5
25844 fi
25845 rm -f conftest.o conftest.s
25846 fi
25847 fi
25848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
25849 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
25850 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
25851
25852 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
25853
25854 fi
25855
25856 ;;
25857
25858 powerpc*-*-*)
25859 case $target in
25860 *-*-aix*) conftest_s=' .machine "pwr5"
25861 .csect .text[PR]
25862 mfcr 3,128';;
25863 *-*-darwin*)
25864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
25865 $as_echo_n "checking assembler for .machine directive support... " >&6; }
25866 if test "${gcc_cv_as_machine_directive+set}" = set; then :
25867 $as_echo_n "(cached) " >&6
25868 else
25869 gcc_cv_as_machine_directive=no
25870 if test x$gcc_cv_as != x; then
25871 $as_echo ' .machine ppc7400' > conftest.s
25872 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25873 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25874 (eval $ac_try) 2>&5
25875 ac_status=$?
25876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25877 test $ac_status = 0; }; }
25878 then
25879 gcc_cv_as_machine_directive=yes
25880 else
25881 echo "configure: failed program was" >&5
25882 cat conftest.s >&5
25883 fi
25884 rm -f conftest.o conftest.s
25885 fi
25886 fi
25887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
25888 $as_echo "$gcc_cv_as_machine_directive" >&6; }
25889
25890 if test x$gcc_cv_as_machine_directive != xyes; then
25891 echo "*** This target requires an assembler supporting \".machine\"" >&2
25892 echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
25893 test x$build = x$target && exit 1
25894 fi
25895 conftest_s=' .text
25896 mfcr r3,128';;
25897 *) conftest_s=' .machine power4
25898 .text
25899 mfcr 3,128';;
25900 esac
25901
25902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
25903 $as_echo_n "checking assembler for mfcr field support... " >&6; }
25904 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
25905 $as_echo_n "(cached) " >&6
25906 else
25907 gcc_cv_as_powerpc_mfcrf=no
25908 if test $in_tree_gas = yes; then
25909 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25910 then gcc_cv_as_powerpc_mfcrf=yes
25911 fi
25912 elif test x$gcc_cv_as != x; then
25913 $as_echo "$conftest_s" > conftest.s
25914 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25915 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25916 (eval $ac_try) 2>&5
25917 ac_status=$?
25918 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25919 test $ac_status = 0; }; }
25920 then
25921 gcc_cv_as_powerpc_mfcrf=yes
25922 else
25923 echo "configure: failed program was" >&5
25924 cat conftest.s >&5
25925 fi
25926 rm -f conftest.o conftest.s
25927 fi
25928 fi
25929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
25930 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
25931 if test $gcc_cv_as_powerpc_mfcrf = yes; then
25932
25933 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
25934
25935 fi
25936
25937 case $target in
25938 *-*-aix*) conftest_s=' .machine "pwr5"
25939 .csect .text[PR]
25940 popcntb 3,3';;
25941 *) conftest_s=' .machine power5
25942 .text
25943 popcntb 3,3';;
25944 esac
25945
25946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
25947 $as_echo_n "checking assembler for popcntb support... " >&6; }
25948 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
25949 $as_echo_n "(cached) " >&6
25950 else
25951 gcc_cv_as_powerpc_popcntb=no
25952 if test $in_tree_gas = yes; then
25953 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25954 then gcc_cv_as_powerpc_popcntb=yes
25955 fi
25956 elif test x$gcc_cv_as != x; then
25957 $as_echo "$conftest_s" > conftest.s
25958 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25959 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25960 (eval $ac_try) 2>&5
25961 ac_status=$?
25962 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25963 test $ac_status = 0; }; }
25964 then
25965 gcc_cv_as_powerpc_popcntb=yes
25966 else
25967 echo "configure: failed program was" >&5
25968 cat conftest.s >&5
25969 fi
25970 rm -f conftest.o conftest.s
25971 fi
25972 fi
25973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
25974 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
25975 if test $gcc_cv_as_powerpc_popcntb = yes; then
25976
25977 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
25978
25979 fi
25980
25981 case $target in
25982 *-*-aix*) conftest_s=' .machine "pwr5x"
25983 .csect .text[PR]
25984 frin 1,1';;
25985 *) conftest_s=' .machine power5
25986 .text
25987 frin 1,1';;
25988 esac
25989
25990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
25991 $as_echo_n "checking assembler for fp round support... " >&6; }
25992 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
25993 $as_echo_n "(cached) " >&6
25994 else
25995 gcc_cv_as_powerpc_fprnd=no
25996 if test $in_tree_gas = yes; then
25997 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25998 then gcc_cv_as_powerpc_fprnd=yes
25999 fi
26000 elif test x$gcc_cv_as != x; then
26001 $as_echo "$conftest_s" > conftest.s
26002 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26003 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26004 (eval $ac_try) 2>&5
26005 ac_status=$?
26006 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26007 test $ac_status = 0; }; }
26008 then
26009 gcc_cv_as_powerpc_fprnd=yes
26010 else
26011 echo "configure: failed program was" >&5
26012 cat conftest.s >&5
26013 fi
26014 rm -f conftest.o conftest.s
26015 fi
26016 fi
26017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
26018 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
26019 if test $gcc_cv_as_powerpc_fprnd = yes; then
26020
26021 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
26022
26023 fi
26024
26025 case $target in
26026 *-*-aix*) conftest_s=' .machine "pwr6"
26027 .csect .text[PR]
26028 mffgpr 1,3';;
26029 *) conftest_s=' .machine power6
26030 .text
26031 mffgpr 1,3';;
26032 esac
26033
26034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
26035 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
26036 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
26037 $as_echo_n "(cached) " >&6
26038 else
26039 gcc_cv_as_powerpc_mfpgpr=no
26040 if test $in_tree_gas = yes; then
26041 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26042 then gcc_cv_as_powerpc_mfpgpr=yes
26043 fi
26044 elif test x$gcc_cv_as != x; then
26045 $as_echo "$conftest_s" > conftest.s
26046 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26047 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26048 (eval $ac_try) 2>&5
26049 ac_status=$?
26050 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26051 test $ac_status = 0; }; }
26052 then
26053 gcc_cv_as_powerpc_mfpgpr=yes
26054 else
26055 echo "configure: failed program was" >&5
26056 cat conftest.s >&5
26057 fi
26058 rm -f conftest.o conftest.s
26059 fi
26060 fi
26061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
26062 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
26063 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
26064
26065 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
26066
26067 fi
26068
26069 case $target in
26070 *-*-aix*) conftest_s=' .csect .text[PR]
26071 LCF..0:
26072 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
26073 *-*-darwin*)
26074 conftest_s=' .text
26075 LCF0:
26076 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
26077 *) conftest_s=' .text
26078 .LCF0:
26079 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
26080 esac
26081
26082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
26083 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
26084 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
26085 $as_echo_n "(cached) " >&6
26086 else
26087 gcc_cv_as_powerpc_rel16=no
26088 if test $in_tree_gas = yes; then
26089 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
26090 then gcc_cv_as_powerpc_rel16=yes
26091 fi
26092 elif test x$gcc_cv_as != x; then
26093 $as_echo "$conftest_s" > conftest.s
26094 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26095 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26096 (eval $ac_try) 2>&5
26097 ac_status=$?
26098 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26099 test $ac_status = 0; }; }
26100 then
26101 gcc_cv_as_powerpc_rel16=yes
26102 else
26103 echo "configure: failed program was" >&5
26104 cat conftest.s >&5
26105 fi
26106 rm -f conftest.o conftest.s
26107 fi
26108 fi
26109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
26110 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
26111 if test $gcc_cv_as_powerpc_rel16 = yes; then
26112
26113 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
26114
26115 fi
26116
26117 case $target in
26118 *-*-aix*) conftest_s=' .machine "pwr6"
26119 .csect .text[PR]
26120 cmpb 3,4,5';;
26121 *) conftest_s=' .machine power6
26122 .text
26123 cmpb 3,4,5';;
26124 esac
26125
26126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
26127 $as_echo_n "checking assembler for compare bytes support... " >&6; }
26128 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
26129 $as_echo_n "(cached) " >&6
26130 else
26131 gcc_cv_as_powerpc_cmpb=no
26132 if test $in_tree_gas = yes; then
26133 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26134 then gcc_cv_as_powerpc_cmpb=yes
26135 fi
26136 elif test x$gcc_cv_as != x; then
26137 $as_echo "$conftest_s" > conftest.s
26138 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26139 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26140 (eval $ac_try) 2>&5
26141 ac_status=$?
26142 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26143 test $ac_status = 0; }; }
26144 then
26145 gcc_cv_as_powerpc_cmpb=yes
26146 else
26147 echo "configure: failed program was" >&5
26148 cat conftest.s >&5
26149 fi
26150 rm -f conftest.o conftest.s
26151 fi
26152 fi
26153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
26154 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
26155 if test $gcc_cv_as_powerpc_cmpb = yes; then
26156
26157 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
26158
26159 fi
26160
26161 case $target in
26162 *-*-aix*) conftest_s=' .machine "pwr6"
26163 .csect .text[PR]
26164 dadd 1,2,3';;
26165 *) conftest_s=' .machine power6
26166 .text
26167 dadd 1,2,3';;
26168 esac
26169
26170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
26171 $as_echo_n "checking assembler for decimal float support... " >&6; }
26172 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
26173 $as_echo_n "(cached) " >&6
26174 else
26175 gcc_cv_as_powerpc_dfp=no
26176 if test $in_tree_gas = yes; then
26177 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26178 then gcc_cv_as_powerpc_dfp=yes
26179 fi
26180 elif test x$gcc_cv_as != x; then
26181 $as_echo "$conftest_s" > conftest.s
26182 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26183 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26184 (eval $ac_try) 2>&5
26185 ac_status=$?
26186 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26187 test $ac_status = 0; }; }
26188 then
26189 gcc_cv_as_powerpc_dfp=yes
26190 else
26191 echo "configure: failed program was" >&5
26192 cat conftest.s >&5
26193 fi
26194 rm -f conftest.o conftest.s
26195 fi
26196 fi
26197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
26198 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
26199 if test $gcc_cv_as_powerpc_dfp = yes; then
26200
26201 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
26202
26203 fi
26204
26205 case $target in
26206 *-*-aix*) conftest_s=' .machine "pwr7"
26207 .csect .text[PR]
26208 lxvd2x 1,2,3';;
26209 *) conftest_s=' .machine power7
26210 .text
26211 lxvd2x 1,2,3';;
26212 esac
26213
26214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
26215 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
26216 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
26217 $as_echo_n "(cached) " >&6
26218 else
26219 gcc_cv_as_powerpc_vsx=no
26220 if test $in_tree_gas = yes; then
26221 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26222 then gcc_cv_as_powerpc_vsx=yes
26223 fi
26224 elif test x$gcc_cv_as != x; then
26225 $as_echo "$conftest_s" > conftest.s
26226 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26227 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26228 (eval $ac_try) 2>&5
26229 ac_status=$?
26230 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26231 test $ac_status = 0; }; }
26232 then
26233 gcc_cv_as_powerpc_vsx=yes
26234 else
26235 echo "configure: failed program was" >&5
26236 cat conftest.s >&5
26237 fi
26238 rm -f conftest.o conftest.s
26239 fi
26240 fi
26241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
26242 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
26243 if test $gcc_cv_as_powerpc_vsx = yes; then
26244
26245 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
26246
26247 fi
26248
26249 case $target in
26250 *-*-aix*) conftest_s=' .machine "pwr7"
26251 .csect .text[PR]
26252 popcntd 3,3';;
26253 *) conftest_s=' .machine power7
26254 .text
26255 popcntd 3,3';;
26256 esac
26257
26258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
26259 $as_echo_n "checking assembler for popcntd support... " >&6; }
26260 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
26261 $as_echo_n "(cached) " >&6
26262 else
26263 gcc_cv_as_powerpc_popcntd=no
26264 if test $in_tree_gas = yes; then
26265 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26266 then gcc_cv_as_powerpc_popcntd=yes
26267 fi
26268 elif test x$gcc_cv_as != x; then
26269 $as_echo "$conftest_s" > conftest.s
26270 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26271 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26272 (eval $ac_try) 2>&5
26273 ac_status=$?
26274 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26275 test $ac_status = 0; }; }
26276 then
26277 gcc_cv_as_powerpc_popcntd=yes
26278 else
26279 echo "configure: failed program was" >&5
26280 cat conftest.s >&5
26281 fi
26282 rm -f conftest.o conftest.s
26283 fi
26284 fi
26285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
26286 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
26287 if test $gcc_cv_as_powerpc_popcntd = yes; then
26288
26289 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
26290
26291 fi
26292
26293 case $target in
26294 *-*-aix*) conftest_s=' .machine "pwr8"
26295 .csect .text[PR]';;
26296 *) conftest_s=' .machine power8
26297 .text';;
26298 esac
26299
26300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for power8 support" >&5
26301 $as_echo_n "checking assembler for power8 support... " >&6; }
26302 if test "${gcc_cv_as_powerpc_power8+set}" = set; then :
26303 $as_echo_n "(cached) " >&6
26304 else
26305 gcc_cv_as_powerpc_power8=no
26306 if test $in_tree_gas = yes; then
26307 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26308 then gcc_cv_as_powerpc_power8=yes
26309 fi
26310 elif test x$gcc_cv_as != x; then
26311 $as_echo "$conftest_s" > conftest.s
26312 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26313 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26314 (eval $ac_try) 2>&5
26315 ac_status=$?
26316 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26317 test $ac_status = 0; }; }
26318 then
26319 gcc_cv_as_powerpc_power8=yes
26320 else
26321 echo "configure: failed program was" >&5
26322 cat conftest.s >&5
26323 fi
26324 rm -f conftest.o conftest.s
26325 fi
26326 fi
26327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_power8" >&5
26328 $as_echo "$gcc_cv_as_powerpc_power8" >&6; }
26329 if test $gcc_cv_as_powerpc_power8 = yes; then
26330
26331 $as_echo "#define HAVE_AS_POWER8 1" >>confdefs.h
26332
26333 fi
26334
26335 case $target in
26336 *-*-aix*) conftest_s=' .machine "pwr9"
26337 .csect .text[PR]';;
26338 *) conftest_s=' .machine power9
26339 .text';;
26340 esac
26341
26342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for power9 support" >&5
26343 $as_echo_n "checking assembler for power9 support... " >&6; }
26344 if test "${gcc_cv_as_powerpc_power9+set}" = set; then :
26345 $as_echo_n "(cached) " >&6
26346 else
26347 gcc_cv_as_powerpc_power9=no
26348 if test $in_tree_gas = yes; then
26349 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26350 then gcc_cv_as_powerpc_power9=yes
26351 fi
26352 elif test x$gcc_cv_as != x; then
26353 $as_echo "$conftest_s" > conftest.s
26354 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26355 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26356 (eval $ac_try) 2>&5
26357 ac_status=$?
26358 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26359 test $ac_status = 0; }; }
26360 then
26361 gcc_cv_as_powerpc_power9=yes
26362 else
26363 echo "configure: failed program was" >&5
26364 cat conftest.s >&5
26365 fi
26366 rm -f conftest.o conftest.s
26367 fi
26368 fi
26369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_power9" >&5
26370 $as_echo "$gcc_cv_as_powerpc_power9" >&6; }
26371 if test $gcc_cv_as_powerpc_power9 = yes; then
26372
26373 $as_echo "#define HAVE_AS_POWER9 1" >>confdefs.h
26374
26375 fi
26376
26377 case $target in
26378 *-*-aix*) conftest_s=' .csect .text[PR]
26379 lwsync';;
26380 *) conftest_s=' .text
26381 lwsync';;
26382 esac
26383
26384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
26385 $as_echo_n "checking assembler for lwsync support... " >&6; }
26386 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
26387 $as_echo_n "(cached) " >&6
26388 else
26389 gcc_cv_as_powerpc_lwsync=no
26390 if test $in_tree_gas = yes; then
26391 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26392 then gcc_cv_as_powerpc_lwsync=yes
26393 fi
26394 elif test x$gcc_cv_as != x; then
26395 $as_echo "$conftest_s" > conftest.s
26396 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26397 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26398 (eval $ac_try) 2>&5
26399 ac_status=$?
26400 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26401 test $ac_status = 0; }; }
26402 then
26403 gcc_cv_as_powerpc_lwsync=yes
26404 else
26405 echo "configure: failed program was" >&5
26406 cat conftest.s >&5
26407 fi
26408 rm -f conftest.o conftest.s
26409 fi
26410 fi
26411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
26412 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
26413 if test $gcc_cv_as_powerpc_lwsync = yes; then
26414
26415 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
26416
26417 fi
26418
26419 case $target in
26420 *-*-aix*) conftest_s=' .machine "476"
26421 .csect .text[PR]
26422 dci 0';;
26423 *) conftest_s=' .machine "476"
26424 .text
26425 dci 0';;
26426 esac
26427
26428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
26429 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
26430 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
26431 $as_echo_n "(cached) " >&6
26432 else
26433 gcc_cv_as_powerpc_dci=no
26434 if test $in_tree_gas = yes; then
26435 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
26436 then gcc_cv_as_powerpc_dci=yes
26437 fi
26438 elif test x$gcc_cv_as != x; then
26439 $as_echo "$conftest_s" > conftest.s
26440 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26441 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26442 (eval $ac_try) 2>&5
26443 ac_status=$?
26444 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26445 test $ac_status = 0; }; }
26446 then
26447 gcc_cv_as_powerpc_dci=yes
26448 else
26449 echo "configure: failed program was" >&5
26450 cat conftest.s >&5
26451 fi
26452 rm -f conftest.o conftest.s
26453 fi
26454 fi
26455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
26456 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
26457 if test $gcc_cv_as_powerpc_dci = yes; then
26458
26459 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
26460
26461 fi
26462
26463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
26464 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
26465 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
26466 $as_echo_n "(cached) " >&6
26467 else
26468 gcc_cv_as_powerpc_gnu_attribute=no
26469 if test $in_tree_gas = yes; then
26470 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26471 then gcc_cv_as_powerpc_gnu_attribute=yes
26472 fi
26473 elif test x$gcc_cv_as != x; then
26474 $as_echo '.gnu_attribute 4,1' > conftest.s
26475 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26476 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26477 (eval $ac_try) 2>&5
26478 ac_status=$?
26479 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26480 test $ac_status = 0; }; }
26481 then
26482 gcc_cv_as_powerpc_gnu_attribute=yes
26483 else
26484 echo "configure: failed program was" >&5
26485 cat conftest.s >&5
26486 fi
26487 rm -f conftest.o conftest.s
26488 fi
26489 fi
26490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
26491 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
26492 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
26493
26494 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
26495
26496 fi
26497
26498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
26499 $as_echo_n "checking assembler for tls marker support... " >&6; }
26500 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
26501 $as_echo_n "(cached) " >&6
26502 else
26503 gcc_cv_as_powerpc_tls_markers=no
26504 if test $in_tree_gas = yes; then
26505 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
26506 then gcc_cv_as_powerpc_tls_markers=yes
26507 fi
26508 elif test x$gcc_cv_as != x; then
26509 $as_echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
26510 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26511 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26512 (eval $ac_try) 2>&5
26513 ac_status=$?
26514 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26515 test $ac_status = 0; }; }
26516 then
26517 gcc_cv_as_powerpc_tls_markers=yes
26518 else
26519 echo "configure: failed program was" >&5
26520 cat conftest.s >&5
26521 fi
26522 rm -f conftest.o conftest.s
26523 fi
26524 fi
26525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
26526 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
26527 if test $gcc_cv_as_powerpc_tls_markers = yes; then
26528
26529 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
26530
26531 fi
26532
26533 case $target in
26534 *-*-aix*)
26535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .ref support" >&5
26536 $as_echo_n "checking assembler for .ref support... " >&6; }
26537 if test "${gcc_cv_as_aix_ref+set}" = set; then :
26538 $as_echo_n "(cached) " >&6
26539 else
26540 gcc_cv_as_aix_ref=no
26541 if test $in_tree_gas = yes; then
26542 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
26543 then gcc_cv_as_aix_ref=yes
26544 fi
26545 elif test x$gcc_cv_as != x; then
26546 $as_echo ' .csect stuff[rw]
26547 stuff:
26548 .long 1
26549 .extern sym
26550 .ref sym
26551 ' > conftest.s
26552 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26553 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26554 (eval $ac_try) 2>&5
26555 ac_status=$?
26556 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26557 test $ac_status = 0; }; }
26558 then
26559 gcc_cv_as_aix_ref=yes
26560 else
26561 echo "configure: failed program was" >&5
26562 cat conftest.s >&5
26563 fi
26564 rm -f conftest.o conftest.s
26565 fi
26566 fi
26567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
26568 $as_echo "$gcc_cv_as_aix_ref" >&6; }
26569 if test $gcc_cv_as_aix_ref = yes; then
26570
26571 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
26572
26573 fi
26574 ;;
26575 esac
26576
26577 case $target in
26578 *-*-aix*)
26579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf location lists section support" >&5
26580 $as_echo_n "checking assembler for dwarf location lists section support... " >&6; }
26581 if test "${gcc_cv_as_aix_dwloc+set}" = set; then :
26582 $as_echo_n "(cached) " >&6
26583 else
26584 gcc_cv_as_aix_dwloc=no
26585 if test $in_tree_gas = yes; then
26586 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
26587 then gcc_cv_as_aix_dwloc=yes
26588 fi
26589 elif test x$gcc_cv_as != x; then
26590 $as_echo ' .dwsect 0xB0000
26591 ' > conftest.s
26592 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26593 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26594 (eval $ac_try) 2>&5
26595 ac_status=$?
26596 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26597 test $ac_status = 0; }; }
26598 then
26599 gcc_cv_as_aix_dwloc=yes
26600 else
26601 echo "configure: failed program was" >&5
26602 cat conftest.s >&5
26603 fi
26604 rm -f conftest.o conftest.s
26605 fi
26606 fi
26607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_dwloc" >&5
26608 $as_echo "$gcc_cv_as_aix_dwloc" >&6; }
26609 if test $gcc_cv_as_aix_dwloc = yes; then
26610
26611 $as_echo "#define HAVE_XCOFF_DWARF_EXTRAS 1" >>confdefs.h
26612
26613 fi
26614 ;;
26615 esac
26616 ;;
26617
26618 mips*-*-*)
26619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
26620 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
26621 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
26622 $as_echo_n "(cached) " >&6
26623 else
26624 gcc_cv_as_mips_explicit_relocs=no
26625 if test $in_tree_gas = yes; then
26626 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
26627 then gcc_cv_as_mips_explicit_relocs=yes
26628 fi
26629 elif test x$gcc_cv_as != x; then
26630 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
26631 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26632 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26633 (eval $ac_try) 2>&5
26634 ac_status=$?
26635 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26636 test $ac_status = 0; }; }
26637 then
26638 gcc_cv_as_mips_explicit_relocs=yes
26639 else
26640 echo "configure: failed program was" >&5
26641 cat conftest.s >&5
26642 fi
26643 rm -f conftest.o conftest.s
26644 fi
26645 fi
26646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
26647 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
26648 if test $gcc_cv_as_mips_explicit_relocs = yes; then
26649 if test x$target_cpu_default = x
26650 then target_cpu_default=MASK_EXPLICIT_RELOCS
26651 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
26652 fi
26653 fi
26654
26655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
26656 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
26657 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
26658 $as_echo_n "(cached) " >&6
26659 else
26660 gcc_cv_as_mips_no_shared=no
26661 if test $in_tree_gas = yes; then
26662 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
26663 then gcc_cv_as_mips_no_shared=yes
26664 fi
26665 elif test x$gcc_cv_as != x; then
26666 $as_echo 'nop' > conftest.s
26667 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
26668 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26669 (eval $ac_try) 2>&5
26670 ac_status=$?
26671 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26672 test $ac_status = 0; }; }
26673 then
26674 gcc_cv_as_mips_no_shared=yes
26675 else
26676 echo "configure: failed program was" >&5
26677 cat conftest.s >&5
26678 fi
26679 rm -f conftest.o conftest.s
26680 fi
26681 fi
26682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
26683 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
26684 if test $gcc_cv_as_mips_no_shared = yes; then
26685
26686 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
26687
26688 fi
26689
26690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
26691 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
26692 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
26693 $as_echo_n "(cached) " >&6
26694 else
26695 gcc_cv_as_mips_gnu_attribute=no
26696 if test $in_tree_gas = yes; then
26697 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26698 then gcc_cv_as_mips_gnu_attribute=yes
26699 fi
26700 elif test x$gcc_cv_as != x; then
26701 $as_echo '.gnu_attribute 4,1' > conftest.s
26702 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26703 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26704 (eval $ac_try) 2>&5
26705 ac_status=$?
26706 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26707 test $ac_status = 0; }; }
26708 then
26709 gcc_cv_as_mips_gnu_attribute=yes
26710 else
26711 echo "configure: failed program was" >&5
26712 cat conftest.s >&5
26713 fi
26714 rm -f conftest.o conftest.s
26715 fi
26716 fi
26717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
26718 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
26719 if test $gcc_cv_as_mips_gnu_attribute = yes; then
26720
26721 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
26722
26723 fi
26724
26725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .module support" >&5
26726 $as_echo_n "checking assembler for .module support... " >&6; }
26727 if test "${gcc_cv_as_mips_dot_module+set}" = set; then :
26728 $as_echo_n "(cached) " >&6
26729 else
26730 gcc_cv_as_mips_dot_module=no
26731 if test x$gcc_cv_as != x; then
26732 $as_echo '.module mips2
26733 .module fp=xx' > conftest.s
26734 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -32 -o conftest.o conftest.s >&5'
26735 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26736 (eval $ac_try) 2>&5
26737 ac_status=$?
26738 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26739 test $ac_status = 0; }; }
26740 then
26741 gcc_cv_as_mips_dot_module=yes
26742 else
26743 echo "configure: failed program was" >&5
26744 cat conftest.s >&5
26745 fi
26746 rm -f conftest.o conftest.s
26747 fi
26748 fi
26749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dot_module" >&5
26750 $as_echo "$gcc_cv_as_mips_dot_module" >&6; }
26751 if test $gcc_cv_as_mips_dot_module = yes; then
26752
26753 $as_echo "#define HAVE_AS_DOT_MODULE 1" >>confdefs.h
26754
26755 fi
26756 if test x$gcc_cv_as_mips_dot_module = xno \
26757 && test x$with_fp_32 != x; then
26758 as_fn_error "Requesting --with-fp-32= requires assembler support for .module." "$LINENO" 5
26759 fi
26760
26761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .micromips support" >&5
26762 $as_echo_n "checking assembler for .micromips support... " >&6; }
26763 if test "${gcc_cv_as_micromips_support+set}" = set; then :
26764 $as_echo_n "(cached) " >&6
26765 else
26766 gcc_cv_as_micromips_support=no
26767 if test x$gcc_cv_as != x; then
26768 $as_echo '.set micromips' > conftest.s
26769 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
26770 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26771 (eval $ac_try) 2>&5
26772 ac_status=$?
26773 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26774 test $ac_status = 0; }; }
26775 then
26776 gcc_cv_as_micromips_support=yes
26777 else
26778 echo "configure: failed program was" >&5
26779 cat conftest.s >&5
26780 fi
26781 rm -f conftest.o conftest.s
26782 fi
26783 fi
26784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_micromips_support" >&5
26785 $as_echo "$gcc_cv_as_micromips_support" >&6; }
26786 if test $gcc_cv_as_micromips_support = yes; then
26787
26788 $as_echo "#define HAVE_GAS_MICROMIPS 1" >>confdefs.h
26789
26790 fi
26791
26792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
26793 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
26794 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
26795 $as_echo_n "(cached) " >&6
26796 else
26797 gcc_cv_as_mips_dtprelword=no
26798 if test $in_tree_gas = yes; then
26799 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26800 then gcc_cv_as_mips_dtprelword=yes
26801 fi
26802 elif test x$gcc_cv_as != x; then
26803 $as_echo '.section .tdata,"awT",@progbits
26804 x:
26805 .word 2
26806 .text
26807 .dtprelword x+0x8000' > conftest.s
26808 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26809 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26810 (eval $ac_try) 2>&5
26811 ac_status=$?
26812 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26813 test $ac_status = 0; }; }
26814 then
26815 gcc_cv_as_mips_dtprelword=yes
26816 else
26817 echo "configure: failed program was" >&5
26818 cat conftest.s >&5
26819 fi
26820 rm -f conftest.o conftest.s
26821 fi
26822 fi
26823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
26824 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
26825 if test $gcc_cv_as_mips_dtprelword = yes; then
26826
26827 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
26828
26829 fi
26830
26831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
26832 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
26833 if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
26834 $as_echo_n "(cached) " >&6
26835 else
26836 gcc_cv_as_mips_dspr1_mult=no
26837 if test x$gcc_cv_as != x; then
26838 $as_echo ' .set mips32r2
26839 .set nodspr2
26840 .set dsp
26841 madd $ac3,$4,$5
26842 maddu $ac3,$4,$5
26843 msub $ac3,$4,$5
26844 msubu $ac3,$4,$5
26845 mult $ac3,$4,$5
26846 multu $ac3,$4,$5' > conftest.s
26847 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26848 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26849 (eval $ac_try) 2>&5
26850 ac_status=$?
26851 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26852 test $ac_status = 0; }; }
26853 then
26854 gcc_cv_as_mips_dspr1_mult=yes
26855 else
26856 echo "configure: failed program was" >&5
26857 cat conftest.s >&5
26858 fi
26859 rm -f conftest.o conftest.s
26860 fi
26861 fi
26862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
26863 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
26864 if test $gcc_cv_as_mips_dspr1_mult = yes; then
26865
26866 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
26867
26868 fi
26869
26870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
26871 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
26872 gcc_cv_as_ld_jalr_reloc=no
26873 if test $gcc_cv_as_mips_explicit_relocs = yes; then
26874 if test $in_tree_ld = yes ; then
26875 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 \
26876 && test $in_tree_ld_is_elf = yes; then
26877 gcc_cv_as_ld_jalr_reloc=yes
26878 fi
26879 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
26880 echo ' .ent x' > conftest.s
26881 echo 'x: lw $2,%got_disp(y)($3)' >> conftest.s
26882 echo ' lw $25,%call16(y)($28)' >> conftest.s
26883 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
26884 echo '1: jalr $25' >> conftest.s
26885 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
26886 echo '1: jalr $25' >> conftest.s
26887 echo ' .end x' >> conftest.s
26888 if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
26889 && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
26890 if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
26891 && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
26892 gcc_cv_as_ld_jalr_reloc=yes
26893 fi
26894 fi
26895 rm -f conftest.*
26896 fi
26897 fi
26898 if test $gcc_cv_as_ld_jalr_reloc = yes; then
26899 if test x$target_cpu_default = x; then
26900 target_cpu_default=MASK_RELAX_PIC_CALLS
26901 else
26902 target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
26903 fi
26904 fi
26905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
26906 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
26907
26908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
26909 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
26910 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
26911 $as_echo_n "(cached) " >&6
26912 else
26913 gcc_cv_ld_mips_personality_relaxation=no
26914 if test $in_tree_ld = yes ; then
26915 if test "$gcc_cv_gld_major_version" -eq 2 \
26916 -a "$gcc_cv_gld_minor_version" -ge 21 \
26917 -o "$gcc_cv_gld_major_version" -gt 2; then
26918 gcc_cv_ld_mips_personality_relaxation=yes
26919 fi
26920 elif test x$gcc_cv_as != x \
26921 -a x$gcc_cv_ld != x \
26922 -a x$gcc_cv_readelf != x ; then
26923 cat > conftest.s <<EOF
26924 .cfi_startproc
26925 .cfi_personality 0x80,indirect_ptr
26926 .ent test
26927 test:
26928 nop
26929 .end test
26930 .cfi_endproc
26931
26932 .section .data,"aw",@progbits
26933 indirect_ptr:
26934 .dc.a personality
26935 EOF
26936 if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
26937 && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
26938 if $gcc_cv_readelf -d conftest 2>&1 \
26939 | grep TEXTREL > /dev/null 2>&1; then
26940 :
26941 elif $gcc_cv_readelf --relocs conftest 2>&1 \
26942 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
26943 :
26944 else
26945 gcc_cv_ld_mips_personality_relaxation=yes
26946 fi
26947 fi
26948 fi
26949 rm -f conftest.s conftest.o conftest
26950 fi
26951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
26952 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
26953 if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
26954
26955 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
26956
26957 fi
26958
26959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mnan= support" >&5
26960 $as_echo_n "checking assembler for -mnan= support... " >&6; }
26961 if test "${gcc_cv_as_mips_nan+set}" = set; then :
26962 $as_echo_n "(cached) " >&6
26963 else
26964 gcc_cv_as_mips_nan=no
26965 if test x$gcc_cv_as != x; then
26966 $as_echo '' > conftest.s
26967 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mnan=2008 -o conftest.o conftest.s >&5'
26968 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26969 (eval $ac_try) 2>&5
26970 ac_status=$?
26971 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26972 test $ac_status = 0; }; }
26973 then
26974 gcc_cv_as_mips_nan=yes
26975 else
26976 echo "configure: failed program was" >&5
26977 cat conftest.s >&5
26978 fi
26979 rm -f conftest.o conftest.s
26980 fi
26981 fi
26982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_nan" >&5
26983 $as_echo "$gcc_cv_as_mips_nan" >&6; }
26984 if test $gcc_cv_as_mips_nan = yes; then
26985
26986 $as_echo "#define HAVE_AS_NAN 1" >>confdefs.h
26987
26988 fi
26989 if test x$gcc_cv_as_mips_nan = xno \
26990 && test x$with_nan != x; then
26991 as_fn_error "Requesting --with-nan= requires assembler support for -mnan=" "$LINENO" 5
26992 fi
26993 ;;
26994 s390*-*-*)
26995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
26996 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
26997 if test "${gcc_cv_as_s390_gnu_attribute+set}" = set; then :
26998 $as_echo_n "(cached) " >&6
26999 else
27000 gcc_cv_as_s390_gnu_attribute=no
27001 if test $in_tree_gas = yes; then
27002 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27003 then gcc_cv_as_s390_gnu_attribute=yes
27004 fi
27005 elif test x$gcc_cv_as != x; then
27006 $as_echo '.gnu_attribute 8,1' > conftest.s
27007 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27008 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27009 (eval $ac_try) 2>&5
27010 ac_status=$?
27011 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27012 test $ac_status = 0; }; }
27013 then
27014 gcc_cv_as_s390_gnu_attribute=yes
27015 else
27016 echo "configure: failed program was" >&5
27017 cat conftest.s >&5
27018 fi
27019 rm -f conftest.o conftest.s
27020 fi
27021 fi
27022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_gnu_attribute" >&5
27023 $as_echo "$gcc_cv_as_s390_gnu_attribute" >&6; }
27024 if test $gcc_cv_as_s390_gnu_attribute = yes; then
27025
27026 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
27027
27028 fi
27029 ;;
27030 esac
27031
27032 # Mips and HP-UX need the GNU assembler.
27033 # Linux on IA64 might be able to use the Intel assembler.
27034
27035 case "$target" in
27036 mips*-*-* | *-*-hpux* )
27037 if test x$gas_flag = xyes \
27038 || test x"$host" != x"$build" \
27039 || test ! -x "$gcc_cv_as" \
27040 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
27041 :
27042 else
27043 echo "*** This configuration requires the GNU assembler" >&2
27044 exit 1
27045 fi
27046 ;;
27047 esac
27048
27049 # ??? Not all targets support dwarf2 debug_line, even within a version
27050 # of gas. Moreover, we need to emit a valid instruction to trigger any
27051 # info to the output file. So, as supported targets are added to gas 2.11,
27052 # add some instruction here to (also) show we expect this might work.
27053 # ??? Once 2.11 is released, probably need to add first known working
27054 # version to the per-target configury.
27055 case "$cpu_type" in
27056 aarch64 | alpha | arm | avr | bfin | cris | i386 | m32c | m68k | microblaze \
27057 | mips | nios2 | pa | rs6000 | score | sparc | spu | tilegx | tilepro \
27058 | visium | xstormy16 | xtensa)
27059 insn="nop"
27060 ;;
27061 ia64 | s390)
27062 insn="nop 0"
27063 ;;
27064 mmix)
27065 insn="swym 0"
27066 ;;
27067 esac
27068 if test x"$insn" != x; then
27069 conftest_s="\
27070 .file 1 \"conftest.s\"
27071 .loc 1 3 0
27072 $insn"
27073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
27074 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
27075 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
27076 $as_echo_n "(cached) " >&6
27077 else
27078 gcc_cv_as_dwarf2_debug_line=no
27079 if test $in_tree_gas = yes; then
27080 if test $in_tree_gas_is_elf = yes \
27081 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
27082 then gcc_cv_as_dwarf2_debug_line=yes
27083 fi
27084 elif test x$gcc_cv_as != x; then
27085 $as_echo "$conftest_s" > conftest.s
27086 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27087 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27088 (eval $ac_try) 2>&5
27089 ac_status=$?
27090 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27091 test $ac_status = 0; }; }
27092 then
27093 if test x$gcc_cv_objdump != x \
27094 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
27095 | grep debug_line > /dev/null 2>&1; then
27096 gcc_cv_as_dwarf2_debug_line=yes
27097 fi
27098 else
27099 echo "configure: failed program was" >&5
27100 cat conftest.s >&5
27101 fi
27102 rm -f conftest.o conftest.s
27103 fi
27104 fi
27105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
27106 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
27107
27108
27109 # The .debug_line file table must be in the exact order that
27110 # we specified the files, since these indices are also used
27111 # by DW_AT_decl_file. Approximate this test by testing if
27112 # the assembler bitches if the same index is assigned twice.
27113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
27114 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
27115 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
27116 $as_echo_n "(cached) " >&6
27117 else
27118 gcc_cv_as_dwarf2_file_buggy=no
27119 if test x$gcc_cv_as != x; then
27120 $as_echo ' .file 1 "foo.s"
27121 .file 1 "bar.s"' > conftest.s
27122 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27123 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27124 (eval $ac_try) 2>&5
27125 ac_status=$?
27126 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27127 test $ac_status = 0; }; }
27128 then
27129 gcc_cv_as_dwarf2_file_buggy=yes
27130 else
27131 echo "configure: failed program was" >&5
27132 cat conftest.s >&5
27133 fi
27134 rm -f conftest.o conftest.s
27135 fi
27136 fi
27137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
27138 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
27139
27140
27141 if test $gcc_cv_as_dwarf2_debug_line = yes \
27142 && test $gcc_cv_as_dwarf2_file_buggy = no; then
27143
27144 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
27145
27146 fi
27147
27148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
27149 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
27150 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
27151 $as_echo_n "(cached) " >&6
27152 else
27153 gcc_cv_as_gdwarf2_flag=no
27154 if test $in_tree_gas = yes; then
27155 if test $in_tree_gas_is_elf = yes \
27156 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
27157 then gcc_cv_as_gdwarf2_flag=yes
27158 fi
27159 elif test x$gcc_cv_as != x; then
27160 $as_echo "$insn" > conftest.s
27161 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
27162 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27163 (eval $ac_try) 2>&5
27164 ac_status=$?
27165 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27166 test $ac_status = 0; }; }
27167 then
27168 gcc_cv_as_gdwarf2_flag=yes
27169 else
27170 echo "configure: failed program was" >&5
27171 cat conftest.s >&5
27172 fi
27173 rm -f conftest.o conftest.s
27174 fi
27175 fi
27176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
27177 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
27178 if test $gcc_cv_as_gdwarf2_flag = yes; then
27179
27180 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
27181
27182 fi
27183
27184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
27185 $as_echo_n "checking assembler for --gstabs option... " >&6; }
27186 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
27187 $as_echo_n "(cached) " >&6
27188 else
27189 gcc_cv_as_gstabs_flag=no
27190 if test $in_tree_gas = yes; then
27191 if test $in_tree_gas_is_elf = yes \
27192 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
27193 then gcc_cv_as_gstabs_flag=yes
27194 fi
27195 elif test x$gcc_cv_as != x; then
27196 $as_echo "$insn" > conftest.s
27197 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
27198 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27199 (eval $ac_try) 2>&5
27200 ac_status=$?
27201 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27202 test $ac_status = 0; }; }
27203 then
27204 gcc_cv_as_gstabs_flag=yes
27205 else
27206 echo "configure: failed program was" >&5
27207 cat conftest.s >&5
27208 fi
27209 rm -f conftest.o conftest.s
27210 fi
27211 fi
27212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
27213 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
27214 if test $gcc_cv_as_gstabs_flag = yes; then
27215
27216 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
27217
27218 fi
27219
27220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
27221 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
27222 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
27223 $as_echo_n "(cached) " >&6
27224 else
27225 gcc_cv_as_debug_prefix_map_flag=no
27226 if test $in_tree_gas = yes; then
27227 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27228 then gcc_cv_as_debug_prefix_map_flag=yes
27229 fi
27230 elif test x$gcc_cv_as != x; then
27231 $as_echo "$insn" > conftest.s
27232 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
27233 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27234 (eval $ac_try) 2>&5
27235 ac_status=$?
27236 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27237 test $ac_status = 0; }; }
27238 then
27239 gcc_cv_as_debug_prefix_map_flag=yes
27240 else
27241 echo "configure: failed program was" >&5
27242 cat conftest.s >&5
27243 fi
27244 rm -f conftest.o conftest.s
27245 fi
27246 fi
27247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
27248 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
27249 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
27250
27251 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
27252
27253 fi
27254 fi
27255
27256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compressed debug sections" >&5
27257 $as_echo_n "checking assembler for compressed debug sections... " >&6; }
27258 if test "${gcc_cv_as_compress_debug+set}" = set; then :
27259 $as_echo_n "(cached) " >&6
27260 else
27261 gcc_cv_as_compress_debug=no
27262 if test x$gcc_cv_as != x; then
27263 $as_echo '' > conftest.s
27264 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --compress-debug-sections -o conftest.o conftest.s >&5'
27265 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27266 (eval $ac_try) 2>&5
27267 ac_status=$?
27268 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27269 test $ac_status = 0; }; }
27270 then
27271 # gas compiled without zlib cannot compress debug sections and warns
27272 # about it, but still exits successfully. So check for this, too.
27273 if $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null
27274 then
27275 gcc_cv_as_compress_debug=0
27276 elif $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s > /dev/null 2>&1
27277 then
27278 gcc_cv_as_compress_debug=1
27279 gcc_cv_as_compress_debug_option="--compress-debug-sections"
27280 gcc_cv_as_no_compress_debug_option="--nocompress-debug-sections"
27281 else
27282 gcc_cv_as_compress_debug=0
27283 # FIXME: Future gas versions will support ELF gABI style via
27284 # --compress-debug-sections[=type].
27285 fi
27286 else
27287 echo "configure: failed program was" >&5
27288 cat conftest.s >&5
27289 fi
27290 rm -f conftest.o conftest.s
27291 fi
27292 fi
27293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_compress_debug" >&5
27294 $as_echo "$gcc_cv_as_compress_debug" >&6; }
27295
27296
27297 cat >>confdefs.h <<_ACEOF
27298 #define HAVE_AS_COMPRESS_DEBUG $gcc_cv_as_compress_debug
27299 _ACEOF
27300
27301
27302 cat >>confdefs.h <<_ACEOF
27303 #define AS_COMPRESS_DEBUG_OPTION "$gcc_cv_as_compress_debug_option"
27304 _ACEOF
27305
27306
27307 cat >>confdefs.h <<_ACEOF
27308 #define AS_NO_COMPRESS_DEBUG_OPTION "$gcc_cv_as_no_compress_debug_option"
27309 _ACEOF
27310
27311
27312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
27313 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
27314 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
27315 $as_echo_n "(cached) " >&6
27316 else
27317 gcc_cv_as_lcomm_with_alignment=no
27318 if test x$gcc_cv_as != x; then
27319 $as_echo '.lcomm bar,4,16' > conftest.s
27320 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27321 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27322 (eval $ac_try) 2>&5
27323 ac_status=$?
27324 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27325 test $ac_status = 0; }; }
27326 then
27327 gcc_cv_as_lcomm_with_alignment=yes
27328 else
27329 echo "configure: failed program was" >&5
27330 cat conftest.s >&5
27331 fi
27332 rm -f conftest.o conftest.s
27333 fi
27334 fi
27335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
27336 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
27337 if test $gcc_cv_as_lcomm_with_alignment = yes; then
27338
27339 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
27340
27341 fi
27342
27343 if test x$with_sysroot = x && test x$host = x$target \
27344 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
27345 && test "$prefix" != "NONE"; then
27346
27347 cat >>confdefs.h <<_ACEOF
27348 #define PREFIX_INCLUDE_DIR "$prefix/include"
27349 _ACEOF
27350
27351 fi
27352
27353 # Determine the version of glibc, if any, used on the target.
27354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target glibc version" >&5
27355 $as_echo_n "checking for target glibc version... " >&6; }
27356
27357 # Check whether --with-glibc-version was given.
27358 if test "${with_glibc_version+set}" = set; then :
27359 withval=$with_glibc_version;
27360 if echo "$with_glibc_version" | grep '^[0-9][0-9]*\.[0-9][0-9]*$'; then
27361 glibc_version_major=`echo "$with_glibc_version" | sed -e 's/\..*//'`
27362 glibc_version_minor=`echo "$with_glibc_version" | sed -e 's/.*\.//'`
27363 else
27364 as_fn_error "option --with-glibc-version requires a version number M.N" "$LINENO" 5
27365 fi
27366 else
27367
27368 glibc_version_major=0
27369 glibc_version_minor=0
27370 if test -f $target_header_dir/features.h \
27371 && glibc_version_major_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+[0-9]' $target_header_dir/features.h` \
27372 && glibc_version_minor_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+[0-9]' $target_header_dir/features.h`; then
27373 glibc_version_major=`echo "$glibc_version_major_define" | sed -e 's/.*__GLIBC__[ ]*//'`
27374 glibc_version_minor=`echo "$glibc_version_minor_define" | sed -e 's/.*__GLIBC_MINOR__[ ]*//'`
27375 fi
27376 fi
27377
27378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc_version_major.$glibc_version_minor" >&5
27379 $as_echo "$glibc_version_major.$glibc_version_minor" >&6; }
27380
27381 cat >>confdefs.h <<_ACEOF
27382 #define TARGET_GLIBC_MAJOR $glibc_version_major
27383 _ACEOF
27384
27385
27386 cat >>confdefs.h <<_ACEOF
27387 #define TARGET_GLIBC_MINOR $glibc_version_minor
27388 _ACEOF
27389
27390
27391 # Check whether --enable-gnu-unique-object was given.
27392 if test "${enable_gnu_unique_object+set}" = set; then :
27393 enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
27394 yes | no) ;;
27395 *) as_fn_error "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
27396 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
27397 esac
27398 else
27399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
27400 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
27401 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
27402 $as_echo_n "(cached) " >&6
27403 else
27404 gcc_cv_as_gnu_unique_object=no
27405 if test $in_tree_gas = yes; then
27406 if test $in_tree_gas_is_elf = yes \
27407 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
27408 then gcc_cv_as_gnu_unique_object=yes
27409 fi
27410 elif test x$gcc_cv_as != x; then
27411 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
27412 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27413 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27414 (eval $ac_try) 2>&5
27415 ac_status=$?
27416 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27417 test $ac_status = 0; }; }
27418 then
27419 gcc_cv_as_gnu_unique_object=yes
27420 else
27421 echo "configure: failed program was" >&5
27422 cat conftest.s >&5
27423 fi
27424 rm -f conftest.o conftest.s
27425 fi
27426 fi
27427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
27428 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
27429 if test $gcc_cv_as_gnu_unique_object = yes; then
27430 # We need to unquote above to to use the definition from config.gcc.
27431 # Also check for ld.so support, i.e. glibc 2.11 or higher.
27432
27433 if test $glibc_version_major -gt 2 \
27434 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 11 ); then :
27435 enable_gnu_unique_object=yes
27436 fi
27437
27438 fi
27439 fi
27440
27441 if test x$enable_gnu_unique_object = xyes; then
27442
27443 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
27444
27445 fi
27446
27447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
27448 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
27449 if test "${gcc_cv_as_line_zero+set}" = set; then :
27450 $as_echo_n "(cached) " >&6
27451 else
27452 gcc_cv_as_line_zero=no
27453 if test $in_tree_gas = yes; then
27454 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
27455 then gcc_cv_as_line_zero=yes
27456 fi
27457 elif test "x$gcc_cv_as" != x; then
27458 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
27459 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
27460 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27461 (eval $ac_try) 2>&5
27462 ac_status=$?
27463 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27464 test $ac_status = 0; }; } &&
27465 test "x`cat conftest.out`" = x
27466 then
27467 gcc_cv_as_line_zero=yes
27468 else
27469 echo "configure: failed program was" >&5
27470 cat conftest.s >&5
27471 echo "configure: error output was" >&5
27472 cat conftest.out >&5
27473 fi
27474 rm -f conftest.o conftest.s conftest.out
27475 fi
27476 fi
27477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
27478 $as_echo "$gcc_cv_as_line_zero" >&6; }
27479 if test "x$gcc_cv_as_line_zero" = xyes; then
27480
27481 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
27482
27483 fi
27484
27485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
27486 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
27487 gcc_cv_ld_eh_frame_hdr=no
27488 if test $in_tree_ld = yes ; then
27489 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 \
27490 && test $in_tree_ld_is_elf = yes; then
27491 gcc_cv_ld_eh_frame_hdr=yes
27492 fi
27493 elif test x$gcc_cv_ld != x; then
27494 if echo "$ld_ver" | grep GNU > /dev/null; then
27495 # Check if linker supports --eh-frame-hdr option
27496 if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
27497 gcc_cv_ld_eh_frame_hdr=yes
27498 fi
27499 else
27500 case "$target" in
27501 *-*-solaris2*)
27502 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
27503 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2251; then
27504 gcc_cv_ld_eh_frame_hdr=yes
27505 fi
27506 ;;
27507 esac
27508 fi
27509 fi
27510
27511 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
27512
27513 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
27514
27515 fi
27516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
27517 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
27518
27519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker CIEv3 in .eh_frame support" >&5
27520 $as_echo_n "checking linker CIEv3 in .eh_frame support... " >&6; }
27521 gcc_cv_ld_eh_frame_ciev3=no
27522 if test $in_tree_ld = yes ; then
27523 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 \
27524 && test $in_tree_ld_is_elf = yes; then
27525 gcc_cv_ld_eh_frame_ciev3=yes
27526 fi
27527 elif test x$gcc_cv_ld != x; then
27528 if echo "$ld_ver" | grep GNU > /dev/null; then
27529 gcc_cv_ld_eh_frame_ciev3=yes
27530 if test 0"$ld_date" -lt 20040513; then
27531 if test -n "$ld_date"; then
27532 # If there was date string, but was earlier than 2004-05-13, fail
27533 gcc_cv_ld_eh_frame_ciev3=no
27534 elif test "$ld_vers_major" -lt 2; then
27535 gcc_cv_ld_eh_frame_ciev3=no
27536 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
27537 gcc_cv_ld_eh_frame_ciev3=no
27538 fi
27539 fi
27540 else
27541 case "$target" in
27542 *-*-solaris2*)
27543 # Sun ld added support for CIE v3 in .eh_frame in Solaris 11.1.
27544 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2324; then
27545 gcc_cv_ld_eh_frame_ciev3=yes
27546 fi
27547 ;;
27548 esac
27549 fi
27550 fi
27551
27552 cat >>confdefs.h <<_ACEOF
27553 #define HAVE_LD_EH_FRAME_CIEV3 `if test x"$gcc_cv_ld_eh_frame_ciev3" = xyes; then echo 1; else echo 0; fi`
27554 _ACEOF
27555
27556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_ciev3" >&5
27557 $as_echo "$gcc_cv_ld_eh_frame_ciev3" >&6; }
27558
27559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
27560 $as_echo_n "checking linker position independent executable support... " >&6; }
27561 gcc_cv_ld_pie=no
27562 if test $in_tree_ld = yes ; then
27563 case "$target" in
27564 # Full PIE support on Solaris was only introduced in gld 2.26.
27565 *-*-solaris2*) gcc_gld_pie_min_version=26 ;;
27566 *) gcc_gld_pie_min_version=15 ;;
27567 esac
27568 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 \
27569 && test $in_tree_ld_is_elf = yes; then
27570 gcc_cv_ld_pie=yes
27571 fi
27572 elif test x$gcc_cv_ld != x; then
27573 # Check if linker supports -pie option
27574 if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
27575 gcc_cv_ld_pie=yes
27576 case "$target" in
27577 *-*-solaris2*)
27578 if echo "$ld_ver" | grep GNU > /dev/null \
27579 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
27580 gcc_cv_ld_pie=no
27581 fi
27582 ;;
27583 esac
27584 else
27585 case "$target" in
27586 *-*-solaris2.1[1-9]*)
27587 # Solaris 11.x and Solaris 12 added PIE support.
27588 if $gcc_cv_ld -z help 2>&1 | grep -- type.*pie > /dev/null; then
27589 gcc_cv_ld_pie=yes
27590 fi
27591 ;;
27592 esac
27593 fi
27594 fi
27595 if test x"$gcc_cv_ld_pie" = xyes; then
27596
27597 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
27598
27599 fi
27600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
27601 $as_echo "$gcc_cv_ld_pie" >&6; }
27602
27603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PIE support with copy reloc" >&5
27604 $as_echo_n "checking linker PIE support with copy reloc... " >&6; }
27605 gcc_cv_ld_pie_copyreloc=no
27606 if test $gcc_cv_ld_pie = yes ; then
27607 if test $in_tree_ld = yes ; then
27608 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
27609 gcc_cv_ld_pie_copyreloc=yes
27610 fi
27611 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
27612 # Check if linker supports -pie option with copy reloc
27613 case "$target" in
27614 i?86-*-linux* | x86_64-*-linux*)
27615 cat > conftest1.s <<EOF
27616 .globl a_glob
27617 .data
27618 .type a_glob, @object
27619 .size a_glob, 4
27620 a_glob:
27621 .long 2
27622 EOF
27623 cat > conftest2.s <<EOF
27624 .text
27625 .globl main
27626 .type main, @function
27627 main:
27628 movl %eax, a_glob(%rip)
27629 .size main, .-main
27630 .globl ptr
27631 .section .data.rel,"aw",@progbits
27632 .type ptr, @object
27633 ptr:
27634 .quad a_glob
27635 EOF
27636 if $gcc_cv_as --64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
27637 && $gcc_cv_ld -shared -melf_x86_64 -o conftest1.so conftest1.o > /dev/null 2>&1 \
27638 && $gcc_cv_as --64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
27639 && $gcc_cv_ld -pie -melf_x86_64 -o conftest conftest2.o conftest1.so > /dev/null 2>&1; then
27640 gcc_cv_ld_pie_copyreloc=yes
27641 fi
27642 rm -f conftest conftest1.so conftest1.o conftest2.o conftest1.s conftest2.s
27643 ;;
27644 esac
27645 fi
27646 fi
27647
27648 cat >>confdefs.h <<_ACEOF
27649 #define HAVE_LD_PIE_COPYRELOC `if test x"$gcc_cv_ld_pie_copyreloc" = xyes; then echo 1; else echo 0; fi`
27650 _ACEOF
27651
27652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie_copyreloc" >&5
27653 $as_echo "$gcc_cv_ld_pie_copyreloc" >&6; }
27654
27655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
27656 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
27657 gcc_cv_ld_eh_gc_sections=no
27658 if test $in_tree_ld = yes ; then
27659 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 \
27660 && test $in_tree_ld_is_elf = yes; then
27661 gcc_cv_ld_eh_gc_sections=yes
27662 fi
27663 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
27664 cat > conftest.s <<EOF
27665 .section .text
27666 .globl _start
27667 .type _start, @function
27668 _start:
27669 .long foo
27670 .size _start, .-_start
27671 .section .text.foo,"ax",@progbits
27672 .type foo, @function
27673 foo:
27674 .long 0
27675 .size foo, .-foo
27676 .section .gcc_except_table.foo,"a",@progbits
27677 .L0:
27678 .long 0
27679 .section .eh_frame,"a",@progbits
27680 .long .L0
27681 EOF
27682 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
27683 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
27684 | grep "gc-sections option ignored" > /dev/null; then
27685 gcc_cv_ld_eh_gc_sections=no
27686 elif $gcc_cv_objdump -h conftest 2> /dev/null \
27687 | grep gcc_except_table > /dev/null; then
27688 gcc_cv_ld_eh_gc_sections=yes
27689 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
27690 if test x$gcc_cv_as_comdat_group != xyes; then
27691 gcc_cv_ld_eh_gc_sections=no
27692 cat > conftest.s <<EOF
27693 .section .text
27694 .globl _start
27695 .type _start, @function
27696 _start:
27697 .long foo
27698 .size _start, .-_start
27699 .section .gnu.linkonce.t.foo,"ax",@progbits
27700 .type foo, @function
27701 foo:
27702 .long 0
27703 .size foo, .-foo
27704 .section .gcc_except_table.foo,"a",@progbits
27705 .L0:
27706 .long 0
27707 .section .eh_frame,"a",@progbits
27708 .long .L0
27709 EOF
27710 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
27711 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
27712 | grep "gc-sections option ignored" > /dev/null; then
27713 gcc_cv_ld_eh_gc_sections=no
27714 elif $gcc_cv_objdump -h conftest 2> /dev/null \
27715 | grep gcc_except_table > /dev/null; then
27716 gcc_cv_ld_eh_gc_sections=yes
27717 fi
27718 fi
27719 fi
27720 fi
27721 fi
27722 rm -f conftest.s conftest.o conftest
27723 fi
27724 case "$target" in
27725 hppa*-*-linux*)
27726 # ??? This apparently exposes a binutils bug with PC-relative relocations.
27727 gcc_cv_ld_eh_gc_sections=no
27728 ;;
27729 esac
27730 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
27731
27732 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
27733
27734 fi
27735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
27736 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
27737
27738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
27739 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
27740 gcc_cv_ld_eh_gc_sections_bug=no
27741 if test $in_tree_ld = yes ; then
27742 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 \
27743 && test $in_tree_ld_is_elf = yes; then
27744 gcc_cv_ld_eh_gc_sections_bug=yes
27745 fi
27746 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
27747 gcc_cv_ld_eh_gc_sections_bug=yes
27748 cat > conftest.s <<EOF
27749 .section .text
27750 .globl _start
27751 .type _start, @function
27752 _start:
27753 .long foo
27754 .size _start, .-_start
27755 .section .text.startup.foo,"ax",@progbits
27756 .type foo, @function
27757 foo:
27758 .long 0
27759 .size foo, .-foo
27760 .section .gcc_except_table.foo,"a",@progbits
27761 .L0:
27762 .long 0
27763 .section .eh_frame,"a",@progbits
27764 .long .L0
27765 EOF
27766 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
27767 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
27768 | grep "gc-sections option ignored" > /dev/null; then
27769 :
27770 elif $gcc_cv_objdump -h conftest 2> /dev/null \
27771 | grep gcc_except_table > /dev/null; then
27772 gcc_cv_ld_eh_gc_sections_bug=no
27773 fi
27774 fi
27775 rm -f conftest.s conftest.o conftest
27776 fi
27777 if test x$gcc_cv_ld_eh_gc_sections_bug = xyes; then
27778
27779 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
27780
27781 fi
27782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
27783 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
27784
27785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for compressed debug sections" >&5
27786 $as_echo_n "checking linker for compressed debug sections... " >&6; }
27787 # gold/gld support compressed debug sections since binutils 2.19/2.21
27788 if test $in_tree_ld = yes ; then
27789 gcc_cv_ld_compress_debug=0
27790 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 \
27791 && test $in_tree_ld_is_elf = yes && test $ld_is_gold = yes; then
27792 gcc_cv_ld_compress_debug=2
27793 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
27794 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 \
27795 && test $in_tree_ld_is_elf = yes; then
27796 gcc_cv_ld_compress_debug=1
27797 fi
27798 elif echo "$ld_ver" | grep GNU > /dev/null; then
27799 gcc_cv_ld_compress_debug=1
27800 if test 0"$ld_date" -lt 20050308; then
27801 if test -n "$ld_date"; then
27802 # If there was date string, but was earlier than 2005-03-08, fail
27803 gcc_cv_ld_compress_debug=0
27804 elif test "$ld_vers_major" -lt 2; then
27805 gcc_cv_ld_compress_debug=0
27806 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 21; then
27807 gcc_cv_ld_compress_debug=0
27808 fi
27809 fi
27810 if test $ld_is_gold = yes; then
27811 gcc_cv_ld_compress_debug=2
27812 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
27813 fi
27814 else
27815 case "${target}" in
27816 *-*-solaris2*)
27817 # Introduced in Solaris 11.2.
27818 if $gcc_cv_ld --help 2>&1 | grep -- '-z compress-sections' > /dev/null; then
27819 gcc_cv_ld_compress_debug=3
27820 gcc_cv_ld_compress_debug_option="-z compress-sections"
27821 else
27822 gcc_cv_ld_compress_debug=0
27823 fi
27824 ;;
27825 *)
27826 # Assume linkers other than GNU ld don't support compessed debug
27827 # sections.
27828 gcc_cv_ld_compress_debug=0
27829 ;;
27830 esac
27831 fi
27832
27833 cat >>confdefs.h <<_ACEOF
27834 #define HAVE_LD_COMPRESS_DEBUG $gcc_cv_ld_compress_debug
27835 _ACEOF
27836
27837
27838 cat >>confdefs.h <<_ACEOF
27839 #define LD_COMPRESS_DEBUG_OPTION "$gcc_cv_ld_compress_debug_option"
27840 _ACEOF
27841
27842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_compress_debug" >&5
27843 $as_echo "$gcc_cv_ld_compress_debug" >&6; }
27844
27845 # --------
27846 # UNSORTED
27847 # --------
27848
27849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
27850 $as_echo_n "checking linker --as-needed support... " >&6; }
27851 if test "${gcc_cv_ld_as_needed+set}" = set; then :
27852 $as_echo_n "(cached) " >&6
27853 else
27854 gcc_cv_ld_as_needed=no
27855 gcc_cv_ld_as_needed_option='--as-needed'
27856 gcc_cv_ld_no_as_needed_option='--no-as-needed'
27857 if test $in_tree_ld = yes ; then
27858 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 \
27859 && test $in_tree_ld_is_elf = yes; then
27860 gcc_cv_ld_as_needed=yes
27861 fi
27862 elif test x$gcc_cv_ld != x; then
27863 # Check if linker supports --as-needed and --no-as-needed options
27864 if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
27865 gcc_cv_ld_as_needed=yes
27866 else
27867 case "$target" in
27868 # Solaris 2 ld always supports -z ignore/-z record.
27869 *-*-solaris2*)
27870 gcc_cv_ld_as_needed=yes
27871 gcc_cv_ld_as_needed_option="-z ignore"
27872 gcc_cv_ld_no_as_needed_option="-z record"
27873 ;;
27874 esac
27875 fi
27876 fi
27877 # --as-needed/-z ignore can only be used if libgcc_s.so.1 uses
27878 # dl_iterate_phdr, i.e. since Solaris 11.
27879 case "$target" in
27880 *-*-solaris2.1[1-9]*)
27881 case "$target" in
27882 i?86-*-* | x86_64-*-*)
27883 if echo "$ld_ver" | grep GNU > /dev/null; then
27884 # Doesn't work with gld on Solaris/x86 due to PR ld/12320.
27885 gcc_cv_ld_as_needed=no
27886 fi
27887 ;;
27888 esac
27889 ;;
27890 *-*-solaris2*)
27891 gcc_cv_ld_as_needed=no
27892 ;;
27893 esac
27894
27895 fi
27896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
27897 $as_echo "$gcc_cv_ld_as_needed" >&6; }
27898 if test x"$gcc_cv_ld_as_needed" = xyes; then
27899
27900 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
27901
27902
27903 cat >>confdefs.h <<_ACEOF
27904 #define LD_AS_NEEDED_OPTION "$gcc_cv_ld_as_needed_option"
27905 _ACEOF
27906
27907
27908 cat >>confdefs.h <<_ACEOF
27909 #define LD_NO_AS_NEEDED_OPTION "$gcc_cv_ld_no_as_needed_option"
27910 _ACEOF
27911
27912 fi
27913
27914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker mapfile support for clearing hardware capabilities" >&5
27915 $as_echo_n "checking linker mapfile support for clearing hardware capabilities... " >&6; }
27916 saved_LDFLAGS="$LDFLAGS"
27917 for clearcap_map in sol2-clearcapv2.map sol2-clearcap.map; do
27918 LDFLAGS="$saved_LDFLAGS -Wl,-M,${srcdir}/config/$clearcap_map"
27919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27920 /* end confdefs.h. */
27921 int main(void) {return 0;}
27922 _ACEOF
27923 if ac_fn_cxx_try_link "$LINENO"; then :
27924 gcc_cv_ld_clearcap=yes; break
27925 else
27926 gcc_cv_ld_clearcap=no
27927 fi
27928 rm -f core conftest.err conftest.$ac_objext \
27929 conftest$ac_exeext conftest.$ac_ext
27930 done
27931 LDFLAGS="$saved_LDFLAGS"
27932 if test "x$gcc_cv_ld_clearcap" = xyes; then
27933
27934 $as_echo "#define HAVE_LD_CLEARCAP 1" >>confdefs.h
27935
27936 ac_config_links="$ac_config_links clearcap.map:${srcdir}/config/$clearcap_map"
27937
27938 fi
27939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_clearcap" >&5
27940 $as_echo "$gcc_cv_ld_clearcap" >&6; }
27941
27942 case "$target:$tm_file" in
27943 powerpc64-*-freebsd* | powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
27944 case "$target" in
27945 *le-*-linux*)
27946 emul_name="-melf64lppc"
27947 ;;
27948 *-*-linux*)
27949 emul_name="-melf64ppc"
27950 ;;
27951 *-*-freebsd*)
27952 emul_name="-melf64ppc_fbsd"
27953 ;;
27954 esac
27955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
27956 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
27957 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
27958 $as_echo_n "(cached) " >&6
27959 else
27960 gcc_cv_ld_no_dot_syms=no
27961 if test x"$ld_is_gold" = xyes; then
27962 gcc_cv_ld_no_dot_syms=yes
27963 elif test $in_tree_ld = yes ; then
27964 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
27965 gcc_cv_ld_no_dot_syms=yes
27966 fi
27967 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
27968 cat > conftest1.s <<EOF
27969 .text
27970 bl .foo
27971 EOF
27972 cat > conftest2.s <<EOF
27973 .section ".opd","aw"
27974 .align 3
27975 .globl foo
27976 .type foo,@function
27977 foo:
27978 .quad .LEfoo,.TOC.@tocbase,0
27979 .text
27980 .LEfoo:
27981 blr
27982 .size foo,.-.LEfoo
27983 EOF
27984 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
27985 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
27986 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
27987 gcc_cv_ld_no_dot_syms=yes
27988 fi
27989 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
27990 fi
27991
27992 fi
27993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
27994 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
27995 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
27996
27997 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
27998
27999 fi
28000
28001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
28002 $as_echo_n "checking linker large toc support... " >&6; }
28003 if test "${gcc_cv_ld_large_toc+set}" = set; then :
28004 $as_echo_n "(cached) " >&6
28005 else
28006 gcc_cv_ld_large_toc=no
28007 if test x"$ld_is_gold" = xyes; then
28008 gcc_cv_ld_large_toc=yes
28009 elif test $in_tree_ld = yes ; then
28010 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
28011 gcc_cv_ld_large_toc=yes
28012 fi
28013 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
28014 cat > conftest.s <<EOF
28015 .section ".tbss","awT",@nobits
28016 .align 3
28017 ie0: .space 8
28018 .global _start
28019 .text
28020 _start:
28021 addis 9,13,ie0@got@tprel@ha
28022 ld 9,ie0@got@tprel@l(9)
28023 EOF
28024 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
28025 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
28026 gcc_cv_ld_large_toc=yes
28027 fi
28028 rm -f conftest conftest.o conftest.s
28029 fi
28030
28031 fi
28032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
28033 $as_echo "$gcc_cv_ld_large_toc" >&6; }
28034 if test x"$gcc_cv_ld_large_toc" = xyes; then
28035
28036 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
28037
28038 fi
28039
28040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker toc pointer alignment" >&5
28041 $as_echo_n "checking linker toc pointer alignment... " >&6; }
28042 if test "${gcc_cv_ld_toc_align+set}" = set; then :
28043 $as_echo_n "(cached) " >&6
28044 else
28045 if test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_nm != x; then
28046 cat > conftest.s <<EOF
28047 .global _start
28048 .text
28049 _start:
28050 addis 9,2,x@got@ha
28051 .section .data.rel.ro,"aw",@progbits
28052 .p2align 16
28053 .space 32768
28054 x: .quad .TOC.
28055 EOF
28056 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
28057 && $gcc_cv_ld $emul_name -o conftest conftest.o > /dev/null 2>&1; then
28058 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)) }'`
28059 fi
28060 rm -f conftest conftest.o conftest.s
28061 fi
28062
28063 fi
28064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_toc_align" >&5
28065 $as_echo "$gcc_cv_ld_toc_align" >&6; }
28066 if test -n "$gcc_cv_ld_toc_align" && test $gcc_cv_ld_toc_align -gt 8; then
28067
28068 cat >>confdefs.h <<_ACEOF
28069 #define POWERPC64_TOC_POINTER_ALIGNMENT $gcc_cv_ld_toc_align
28070 _ACEOF
28071
28072 fi
28073 ;;
28074 esac
28075
28076 case "$target" in
28077 *-*-aix*)
28078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
28079 $as_echo_n "checking linker large toc support... " >&6; }
28080 if test "${gcc_cv_ld_large_toc+set}" = set; then :
28081 $as_echo_n "(cached) " >&6
28082 else
28083 gcc_cv_ld_large_toc=no
28084 if test x$gcc_cv_as != x ; then
28085 cat > conftest.s <<EOF
28086 .toc
28087 LC..1:
28088 .tc a[TC],a[RW]
28089 .extern a[RW]
28090 .csect .text[PR]
28091 .largetoctest:
28092 addis 9,LC..1@u(2)
28093 ld 3,LC..1@l(9)
28094 EOF
28095 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1; then
28096 gcc_cv_ld_large_toc=yes
28097 fi
28098 rm -f conftest conftest.o conftest.s
28099 fi
28100
28101 fi
28102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
28103 $as_echo "$gcc_cv_ld_large_toc" >&6; }
28104 if test x"$gcc_cv_ld_large_toc" = xyes; then
28105
28106 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
28107
28108 fi
28109 ;;
28110 esac
28111
28112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
28113 $as_echo_n "checking linker --build-id support... " >&6; }
28114 if test "${gcc_cv_ld_buildid+set}" = set; then :
28115 $as_echo_n "(cached) " >&6
28116 else
28117 gcc_cv_ld_buildid=no
28118 if test $in_tree_ld = yes ; then
28119 if test "$gcc_cv_gld_major_version" -eq 2 -a \
28120 "$gcc_cv_gld_minor_version" -ge 18 -o \
28121 "$gcc_cv_gld_major_version" -gt 2 \
28122 && test $in_tree_ld_is_elf = yes; then
28123 gcc_cv_ld_buildid=yes
28124 fi
28125 elif test x$gcc_cv_ld != x; then
28126 if $gcc_cv_ld --help 2>/dev/null | grep build-id > /dev/null; then
28127 gcc_cv_ld_buildid=yes
28128 fi
28129 fi
28130 fi
28131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
28132 $as_echo "$gcc_cv_ld_buildid" >&6; }
28133 if test x"$gcc_cv_ld_buildid" = xyes; then
28134
28135 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
28136
28137 fi
28138
28139 # Check whether --enable-linker-build-id was given.
28140 if test "${enable_linker_build_id+set}" = set; then :
28141 enableval=$enable_linker_build_id;
28142 else
28143 enable_linker_build_id=no
28144 fi
28145
28146
28147 if test x"$enable_linker_build_id" = xyes; then
28148 if test x"$gcc_cv_ld_buildid" = xyes; then
28149
28150 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
28151
28152 else
28153 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
28154 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
28155 fi
28156 fi
28157
28158 # In binutils 2.21, GNU ld gained support for new emulations fully
28159 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
28160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
28161 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
28162 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
28163 $as_echo_n "(cached) " >&6
28164 else
28165 gcc_cv_ld_sol2_emulation=no
28166 if test $in_tree_ld = yes ; then
28167 if test "$gcc_cv_gld_major_version" -eq 2 -a \
28168 "$gcc_cv_gld_minor_version" -ge 21 -o \
28169 "$gcc_cv_gld_major_version" -gt 2 \
28170 && test $in_tree_ld_is_elf = yes; then
28171 gcc_cv_ld_sol2_emulation=yes
28172 fi
28173 elif test x$gcc_cv_ld != x; then
28174 if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
28175 grep _sol2 > /dev/null; then
28176 gcc_cv_ld_sol2_emulation=yes
28177 fi
28178 fi
28179 fi
28180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
28181 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
28182 if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
28183
28184 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
28185
28186 fi
28187
28188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
28189 $as_echo_n "checking linker --sysroot support... " >&6; }
28190 if test "${gcc_cv_ld_sysroot+set}" = set; then :
28191 $as_echo_n "(cached) " >&6
28192 else
28193 gcc_cv_ld_sysroot=no
28194 if test $in_tree_ld = yes ; then
28195 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
28196 gcc_cv_ld_sysroot=yes
28197 fi
28198 elif test x$gcc_cv_ld != x; then
28199 if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
28200 gcc_cv_ld_sysroot=yes
28201 fi
28202 fi
28203 fi
28204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
28205 $as_echo "$gcc_cv_ld_sysroot" >&6; }
28206 if test x"$gcc_cv_ld_sysroot" = xyes; then
28207
28208 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
28209
28210 fi
28211
28212 case $target in
28213 *-*-solaris2*)
28214 # Check for system-provided CRTs on Solaris 11.x and Solaris 12.
28215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking system-provided CRTs on Solaris" >&5
28216 $as_echo_n "checking system-provided CRTs on Solaris... " >&6; }
28217 if test "${gcc_cv_solaris_crts+set}" = set; then :
28218 $as_echo_n "(cached) " >&6
28219 else
28220 gcc_cv_solaris_crts=no
28221 if test x$host != x$target; then
28222 if test "x$with_sysroot" = xyes; then
28223 target_sysroot="${test_exec_prefix}/${target_noncanonical}/sys-root"
28224 else
28225 target_sysroot="${with_sysroot}"
28226 fi
28227 fi
28228 target_libdir="$target_sysroot/usr/lib"
28229 # At the time they were added, gcrt1.o became a symlink for backwards
28230 # compatibility on x86, while crt1.o was added on sparc, so check for that.
28231 case $target in
28232 i?86-*-solaris2* | x86_64-*-solaris2*)
28233 if test -h "$target_libdir/gcrt1.o"; then gcc_cv_solaris_crts=yes; fi
28234 ;;
28235 sparc*-*-solaris2*)
28236 if test -f "$target_libdir/crt1.o"; then gcc_cv_solaris_crts=yes; fi
28237 ;;
28238 esac
28239 fi
28240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_solaris_crts" >&5
28241 $as_echo "$gcc_cv_solaris_crts" >&6; }
28242 ;;
28243 esac
28244 if test x$gcc_cv_solaris_crts = xyes; then
28245
28246 $as_echo "#define HAVE_SOLARIS_CRTS 1" >>confdefs.h
28247
28248 fi
28249
28250 # Test for stack protector support in target C library.
28251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
28252 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
28253 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
28254 $as_echo_n "(cached) " >&6
28255 else
28256 gcc_cv_libc_provides_ssp=no
28257 case "$target" in
28258 *-*-musl*)
28259 # All versions of musl provide stack protector
28260 gcc_cv_libc_provides_ssp=yes;;
28261 *-*-linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu)
28262 # glibc 2.4 and later provides __stack_chk_fail and
28263 # either __stack_chk_guard, or TLS access to stack guard canary.
28264
28265 if test $glibc_version_major -gt 2 \
28266 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
28267 gcc_cv_libc_provides_ssp=yes
28268 else
28269
28270 if test -f $target_header_dir/features.h \
28271 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
28272 $target_header_dir/features.h > /dev/null; then
28273 if $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
28274 $target_header_dir/features.h > /dev/null && \
28275 test -f $target_header_dir/bits/uClibc_config.h && \
28276 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
28277 $target_header_dir/bits/uClibc_config.h > /dev/null; then
28278 gcc_cv_libc_provides_ssp=yes
28279 fi
28280 # all versions of Bionic support stack protector
28281 elif test -f $target_header_dir/sys/cdefs.h \
28282 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
28283 $target_header_dir/sys/cdefs.h > /dev/null; then
28284 gcc_cv_libc_provides_ssp=yes
28285 fi
28286 fi
28287 ;;
28288 *-*-gnu*)
28289 # Avoid complicated tests (see
28290 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
28291 # simply assert that glibc does provide this, which is true for all
28292 # realistically usable GNU/Hurd configurations.
28293 # All supported versions of musl provide it as well
28294 gcc_cv_libc_provides_ssp=yes;;
28295 *-*-darwin* | *-*-freebsd*)
28296 ac_fn_cxx_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
28297 if test "x$ac_cv_func___stack_chk_fail" = x""yes; then :
28298 gcc_cv_libc_provides_ssp=yes
28299 else
28300 echo "no __stack_chk_fail on this target"
28301 fi
28302
28303 ;;
28304 *) gcc_cv_libc_provides_ssp=no ;;
28305 esac
28306 fi
28307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
28308 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
28309
28310 if test x$gcc_cv_libc_provides_ssp = xyes; then
28311
28312 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
28313
28314 fi
28315
28316 # Check whether --enable-default-ssp was given.
28317 # Check whether --enable-default-ssp was given.
28318 if test "${enable_default_ssp+set}" = set; then :
28319 enableval=$enable_default_ssp;
28320 if test x$gcc_cv_libc_provides_ssp = xyes; then
28321 case "$target" in
28322 ia64*-*-*) enable_default_ssp=no ;;
28323 *) enable_default_ssp=$enableval ;;
28324 esac
28325 else
28326 enable_default_ssp=no
28327 fi
28328 else
28329 enable_default_ssp=no
28330 fi
28331
28332 if test x$enable_default_ssp = xyes ; then
28333
28334 $as_echo "#define ENABLE_DEFAULT_SSP 1" >>confdefs.h
28335
28336 fi
28337
28338
28339 # Test for <sys/sdt.h> on the target.
28340
28341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
28342 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
28343 have_sys_sdt_h=no
28344 if test -f $target_header_dir/sys/sdt.h; then
28345 have_sys_sdt_h=yes
28346
28347 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
28348
28349 fi
28350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
28351 $as_echo "$have_sys_sdt_h" >&6; }
28352
28353 # Check if TFmode long double should be used by default or not.
28354 # Some glibc targets used DFmode long double, but with glibc 2.4
28355 # and later they can use TFmode.
28356 case "$target" in
28357 powerpc*-*-linux* | \
28358 sparc*-*-linux* | \
28359 s390*-*-linux* | \
28360 alpha*-*-linux*)
28361
28362 # Check whether --with-long-double-128 was given.
28363 if test "${with_long_double_128+set}" = set; then :
28364 withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
28365 else
28366
28367 if test $glibc_version_major -gt 2 \
28368 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
28369 gcc_cv_target_ldbl128=yes
28370 else
28371
28372 gcc_cv_target_ldbl128=no
28373 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
28374 $target_header_dir/bits/wordsize.h > /dev/null 2>&1 \
28375 && gcc_cv_target_ldbl128=yes
28376
28377 fi
28378 fi
28379
28380 ;;
28381 esac
28382 if test x$gcc_cv_target_ldbl128 = xyes; then
28383
28384 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
28385
28386 fi
28387
28388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
28389 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
28390 gcc_cv_target_dl_iterate_phdr=unknown
28391 case "$target" in
28392 # Restrict to Solaris 11+. While most of the Solaris 11 linker changes
28393 # were backported to Solaris 10 Update 10, dl_iterate_phdr only lives in
28394 # libdl there, both complicating its use and breaking compatibility
28395 # between Solaris 10 updates.
28396 *-*-solaris2.1[1-9]*)
28397 # <link.h> needs both a dl_iterate_phdr declaration and support for
28398 # compilation with largefile support.
28399 if grep dl_iterate_phdr $target_header_dir/link.h > /dev/null 2>&1 \
28400 && grep 'large file capable' $target_header_dir/link.h > /dev/null 2>&1; then
28401 gcc_cv_target_dl_iterate_phdr=yes
28402 else
28403 gcc_cv_target_dl_iterate_phdr=no
28404 fi
28405 ;;
28406 *-*-dragonfly* | *-*-freebsd*)
28407 if grep dl_iterate_phdr $target_header_dir/sys/link_elf.h > /dev/null 2>&1; then
28408 gcc_cv_target_dl_iterate_phdr=yes
28409 else
28410 gcc_cv_target_dl_iterate_phdr=no
28411 fi
28412 ;;
28413 *-linux-musl*)
28414 gcc_cv_target_dl_iterate_phdr=yes
28415 ;;
28416 esac
28417
28418 if test x$gcc_cv_target_dl_iterate_phdr = xyes; then
28419
28420 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
28421
28422 fi
28423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
28424 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
28425
28426 # We no longer support different GC mechanisms. Emit an error if
28427 # the user configures with --with-gc.
28428
28429 # Check whether --with-gc was given.
28430 if test "${with_gc+set}" = set; then :
28431 withval=$with_gc; as_fn_error "Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
28432 fi
28433
28434
28435 # Libraries to use on the host. This will normally be set by the top
28436 # level Makefile. Here we simply capture the value for our Makefile.
28437 if test -z "${HOST_LIBS+set}"; then
28438 HOST_LIBS=
28439 fi
28440
28441
28442 # Use the system's zlib library.
28443
28444 # Use the system's zlib library.
28445 zlibdir="-L\$(top_builddir)/../zlib"
28446 zlibinc="-I\$(top_srcdir)/../zlib"
28447
28448 # Check whether --with-system-zlib was given.
28449 if test "${with_system_zlib+set}" = set; then :
28450 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
28451 zlibdir=
28452 zlibinc=
28453 fi
28454
28455 fi
28456
28457
28458
28459
28460
28461
28462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
28463 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
28464 # Check whether --enable-maintainer-mode was given.
28465 if test "${enable_maintainer_mode+set}" = set; then :
28466 enableval=$enable_maintainer_mode; maintainer_mode=$enableval
28467 else
28468 maintainer_mode=no
28469 fi
28470
28471
28472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
28473 $as_echo "$maintainer_mode" >&6; }
28474
28475 if test "$maintainer_mode" = "yes"; then
28476 MAINT=''
28477 else
28478 MAINT='#'
28479 fi
28480
28481
28482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid linking multiple front-ends at once" >&5
28483 $as_echo_n "checking whether to avoid linking multiple front-ends at once... " >&6; }
28484 # Check whether --enable-link-mutex was given.
28485 if test "${enable_link_mutex+set}" = set; then :
28486 enableval=$enable_link_mutex; do_link_mutex=$enableval
28487 else
28488 do_link_mutex=no
28489 fi
28490
28491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_mutex" >&5
28492 $as_echo "$do_link_mutex" >&6; }
28493
28494 if test "$do_link_mutex" = "yes"; then
28495 DO_LINK_MUTEX=true
28496 else
28497 DO_LINK_MUTEX=false
28498 fi
28499
28500
28501 # --------------
28502 # Language hooks
28503 # --------------
28504
28505 # Make empty files to contain the specs and options for each language.
28506 # Then add #include lines to for a compiler that has specs and/or options.
28507
28508 subdirs=
28509 lang_opt_files=
28510 lang_specs_files=
28511 lang_tree_files=
28512 # These (without "all_") are set in each config-lang.in.
28513 # `language' must be a single word so is spelled singularly.
28514 all_languages=
28515 all_compilers=
28516 all_outputs='Makefile'
28517 # List of language makefile fragments.
28518 all_lang_makefrags=
28519 # Additional files for gengtype
28520 all_gtfiles="$target_gtfiles"
28521
28522 # These are the languages that are set in --enable-languages,
28523 # and are available in the GCC tree.
28524 all_selected_languages=
28525
28526 # Add the language fragments.
28527 # Languages are added via two mechanisms. Some information must be
28528 # recorded in makefile variables, these are defined in config-lang.in.
28529 # We accumulate them and plug them into the main Makefile.
28530 # The other mechanism is a set of hooks for each of the main targets
28531 # like `clean', `install', etc.
28532
28533 language_hooks="Make-hooks"
28534
28535 for lang in ${srcdir}/*/config-lang.in
28536 do
28537 test "$lang" = "${srcdir}/*/config-lang.in" && continue
28538
28539 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
28540 if test "x$lang_alias" = x
28541 then
28542 echo "$lang doesn't set \$language." 1>&2
28543 exit 1
28544 fi
28545 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
28546 subdirs="$subdirs $subdir"
28547
28548 # $gcc_subdir is where the gcc integration files are to be found
28549 # for a language, both for internal compiler purposes (compiler
28550 # sources implementing front-end to GCC tree converters), and for
28551 # build infrastructure purposes (Make-lang.in, etc.)
28552 #
28553 # This will be <subdir> (relative to $srcdir) if a line like
28554 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
28555 # is found in <langdir>/config-lang.in, and will remain <langdir>
28556 # otherwise.
28557 #
28558 # Except for the language alias (fetched above), the regular
28559 # "config-lang.in" contents are always retrieved from $gcc_subdir,
28560 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
28561 # only this and the language alias.
28562
28563 gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
28564 if [ "$gcc_subdir" = "" ]; then
28565 gcc_subdir="$subdir"
28566 fi
28567
28568 case ",$enable_languages," in
28569 *,$lang_alias,*)
28570 all_selected_languages="$all_selected_languages $lang_alias"
28571 if test -f $srcdir/$gcc_subdir/lang-specs.h; then
28572 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
28573 fi
28574 ;;
28575 esac
28576
28577 language=
28578 boot_language=
28579 compilers=
28580 outputs=
28581 gtfiles=
28582 subdir_requires=
28583 . ${srcdir}/$gcc_subdir/config-lang.in
28584 if test "x$language" = x
28585 then
28586 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
28587 exit 1
28588 fi
28589
28590 ok=:
28591 case ",$enable_languages," in
28592 *,$lang_alias,*) ;;
28593 *)
28594 for i in $subdir_requires; do
28595 test -f "${srcdir}/$i/config-lang.in" && continue
28596 ok=false
28597 break
28598 done
28599 ;;
28600 esac
28601 $ok || continue
28602
28603 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
28604 if test -f $srcdir/$gcc_subdir/lang.opt; then
28605 lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
28606 all_opt_files="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
28607 fi
28608 if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
28609 lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
28610 fi
28611 all_languages="$all_languages $language"
28612 all_compilers="$all_compilers $compilers"
28613 all_outputs="$all_outputs $outputs"
28614 all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
28615 case ",$enable_languages," in
28616 *,lto,*)
28617
28618 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
28619
28620 enable_lto=yes
28621
28622 ;;
28623 *) ;;
28624 esac
28625 done
28626
28627 check_languages=
28628 for language in $all_selected_languages
28629 do
28630 check_languages="$check_languages check-$language"
28631 done
28632
28633 # We link each language in with a set of hooks, reached indirectly via
28634 # lang.${target}. Only do so for selected languages.
28635
28636 rm -f Make-hooks
28637 touch Make-hooks
28638 target_list="all.cross start.encap rest.encap tags \
28639 install-common install-man install-info install-pdf install-html dvi \
28640 pdf html uninstall info man srcextra srcman srcinfo \
28641 mostlyclean clean distclean maintainer-clean install-plugin"
28642
28643 for t in $target_list
28644 do
28645 x=
28646 for lang in $all_selected_languages
28647 do
28648 x="$x $lang.$t"
28649 done
28650 echo "lang.$t: $x" >> Make-hooks
28651 done
28652
28653 # --------
28654 # Option include files
28655 # --------
28656
28657 ${AWK} -f $srcdir/opt-include.awk $all_opt_files > option-includes.mk
28658 option_includes="option-includes.mk"
28659
28660
28661 # --------
28662 # UNSORTED
28663 # --------
28664
28665 # Create .gdbinit.
28666
28667 echo "dir ." > .gdbinit
28668 echo "dir ${srcdir}" >> .gdbinit
28669 if test x$gdb_needs_out_file_path = xyes
28670 then
28671 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
28672 fi
28673 if test "x$subdirs" != x; then
28674 for s in $subdirs
28675 do
28676 echo "dir ${srcdir}/$s" >> .gdbinit
28677 done
28678 fi
28679 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
28680 echo "python import sys; sys.path.append('${srcdir}'); import gdbhooks" >> .gdbinit
28681
28682 # Put a breakpoint on __asan_report_error to help with debugging buffer
28683 # overflow.
28684 case "$CFLAGS" in
28685 *-fsanitize=address*)
28686 echo "source ${srcdir}/gdbasan.in" >> .gdbinit
28687 ;;
28688 esac
28689
28690 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
28691
28692
28693
28694 # Find a directory in which to install a shared libgcc.
28695
28696 # Check whether --enable-version-specific-runtime-libs was given.
28697 if test "${enable_version_specific_runtime_libs+set}" = set; then :
28698 enableval=$enable_version_specific_runtime_libs;
28699 fi
28700
28701
28702 # Substitute configuration variables
28703
28704
28705
28706
28707
28708
28709
28710
28711
28712
28713
28714
28715
28716
28717
28718
28719
28720
28721
28722
28723
28724
28725
28726
28727
28728
28729
28730
28731
28732
28733
28734
28735
28736
28737
28738
28739
28740
28741
28742
28743
28744
28745
28746
28747
28748
28749
28750
28751
28752
28753
28754
28755
28756
28757
28758
28759
28760
28761
28762
28763
28764
28765 # Echo link setup.
28766 if test x${build} = x${host} ; then
28767 if test x${host} = x${target} ; then
28768 echo "Links are now set up to build a native compiler for ${target}." 1>&2
28769 else
28770 echo "Links are now set up to build a cross-compiler" 1>&2
28771 echo " from ${host} to ${target}." 1>&2
28772 fi
28773 else
28774 if test x${host} = x${target} ; then
28775 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
28776 echo " for ${target}." 1>&2
28777 else
28778 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
28779 echo " from ${host} to ${target}." 1>&2
28780 fi
28781 fi
28782
28783
28784
28785
28786
28787
28788 if test "x${ISLLIBS}" != "x" ; then
28789
28790 $as_echo "#define HAVE_isl 1" >>confdefs.h
28791
28792 fi
28793
28794 # Check whether isl_schedule_constraints_compute_schedule is available;
28795 # it's new in ISL-0.13.
28796 # Check whether isl_options_set_schedule_serialize_sccs is available;
28797 # it's new in ISL-0.15.
28798 if test "x${ISLLIBS}" != "x" ; then
28799 saved_CXXFLAGS="$CXXFLAGS"
28800 CXXFLAGS="$CXXFLAGS $ISLINC"
28801 saved_LIBS="$LIBS"
28802 LIBS="$LIBS $ISLLIBS $GMPLIBS"
28803
28804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Checking for isl_schedule_constraints_compute_schedule" >&5
28805 $as_echo_n "checking Checking for isl_schedule_constraints_compute_schedule... " >&6; }
28806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28807 /* end confdefs.h. */
28808 #include <isl/schedule.h>
28809 int
28810 main ()
28811 {
28812 isl_schedule_constraints_compute_schedule (NULL);
28813 ;
28814 return 0;
28815 }
28816 _ACEOF
28817 if ac_fn_cxx_try_link "$LINENO"; then :
28818 ac_has_isl_schedule_constraints_compute_schedule=yes
28819 else
28820 ac_has_isl_schedule_constraints_compute_schedule=no
28821 fi
28822 rm -f core conftest.err conftest.$ac_objext \
28823 conftest$ac_exeext conftest.$ac_ext
28824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_has_isl_schedule_constraints_compute_schedule" >&5
28825 $as_echo "$ac_has_isl_schedule_constraints_compute_schedule" >&6; }
28826
28827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Checking for isl_options_set_schedule_serialize_sccs" >&5
28828 $as_echo_n "checking Checking for isl_options_set_schedule_serialize_sccs... " >&6; }
28829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28830 /* end confdefs.h. */
28831 #include <isl/schedule.h>
28832 int
28833 main ()
28834 {
28835 isl_options_set_schedule_serialize_sccs (NULL, 0);
28836 ;
28837 return 0;
28838 }
28839 _ACEOF
28840 if ac_fn_cxx_try_link "$LINENO"; then :
28841 ac_has_isl_options_set_schedule_serialize_sccs=yes
28842 else
28843 ac_has_isl_options_set_schedule_serialize_sccs=no
28844 fi
28845 rm -f core conftest.err conftest.$ac_objext \
28846 conftest$ac_exeext conftest.$ac_ext
28847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_has_isl_options_set_schedule_serialize_sccs" >&5
28848 $as_echo "$ac_has_isl_options_set_schedule_serialize_sccs" >&6; }
28849
28850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Checking for isl_ctx_get_max_operations" >&5
28851 $as_echo_n "checking Checking for isl_ctx_get_max_operations... " >&6; }
28852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28853 /* end confdefs.h. */
28854 #include <isl/ctx.h>
28855 int
28856 main ()
28857 {
28858 isl_ctx_get_max_operations (isl_ctx_alloc ());
28859 ;
28860 return 0;
28861 }
28862 _ACEOF
28863 if ac_fn_cxx_try_link "$LINENO"; then :
28864 ac_has_isl_ctx_get_max_operations=yes
28865 else
28866 ac_has_isl_ctx_get_max_operations=no
28867 fi
28868 rm -f core conftest.err conftest.$ac_objext \
28869 conftest$ac_exeext conftest.$ac_ext
28870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_has_isl_ctx_get_max_operations" >&5
28871 $as_echo "$ac_has_isl_ctx_get_max_operations" >&6; }
28872
28873 LIBS="$saved_LIBS"
28874 CXXFLAGS="$saved_CXXFLAGS"
28875
28876 if test x"$ac_has_isl_schedule_constraints_compute_schedule" = x"yes"; then
28877
28878 $as_echo "#define HAVE_ISL_SCHED_CONSTRAINTS_COMPUTE_SCHEDULE 1" >>confdefs.h
28879
28880 fi
28881
28882 if test x"$ac_has_isl_options_set_schedule_serialize_sccs" = x"yes"; then
28883
28884 $as_echo "#define HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS 1" >>confdefs.h
28885
28886 fi
28887 if test x"$ac_has_isl_ctx_get_max_operations" = x"yes"; then
28888
28889 $as_echo "#define HAVE_ISL_CTX_MAX_OPERATIONS 1" >>confdefs.h
28890
28891 fi
28892 fi
28893
28894 # Check for plugin support
28895 # Check whether --enable-plugin was given.
28896 if test "${enable_plugin+set}" = set; then :
28897 enableval=$enable_plugin; enable_plugin=$enableval
28898 else
28899 enable_plugin=yes; default_plugin=yes
28900 fi
28901
28902
28903 pluginlibs=
28904
28905 case "${host}" in
28906 *-*-darwin*)
28907 if test x$build = x$host; then
28908 export_sym_check="nm${exeext} -g"
28909 elif test x$host = x$target; then
28910 export_sym_check="$gcc_cv_nm -g"
28911 else
28912 export_sym_check=
28913 fi
28914 ;;
28915 *)
28916 if test x$build = x$host; then
28917 export_sym_check="objdump${exeext} -T"
28918 elif test x$host = x$target; then
28919 export_sym_check="$gcc_cv_objdump -T"
28920 else
28921 export_sym_check=
28922 fi
28923 ;;
28924 esac
28925
28926 if test x"$enable_plugin" = x"yes"; then
28927
28928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
28929 $as_echo_n "checking for exported symbols... " >&6; }
28930 if test "x$export_sym_check" != x; then
28931 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
28932 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest$ac_exeext > /dev/null 2>&1
28933 if $export_sym_check conftest$ac_exeext | grep -q foobar > /dev/null; then
28934 : # No need to use a flag
28935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28936 $as_echo "yes" >&6; }
28937 else
28938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28939 $as_echo "yes" >&6; }
28940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
28941 $as_echo_n "checking for -rdynamic... " >&6; }
28942 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest$ac_exeext > /dev/null 2>&1
28943 if $export_sym_check conftest$ac_exeext | grep -q foobar > /dev/null; then
28944 plugin_rdynamic=yes
28945 pluginlibs="-rdynamic"
28946 else
28947 plugin_rdynamic=no
28948 enable_plugin=no
28949 fi
28950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
28951 $as_echo "$plugin_rdynamic" >&6; }
28952 fi
28953 else
28954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
28955 $as_echo "unable to check" >&6; }
28956 fi
28957
28958 # Check -ldl
28959 saved_LIBS="$LIBS"
28960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
28961 $as_echo_n "checking for library containing dlopen... " >&6; }
28962 if test "${ac_cv_search_dlopen+set}" = set; then :
28963 $as_echo_n "(cached) " >&6
28964 else
28965 ac_func_search_save_LIBS=$LIBS
28966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28967 /* end confdefs.h. */
28968
28969 /* Override any GCC internal prototype to avoid an error.
28970 Use char because int might match the return type of a GCC
28971 builtin and then its argument prototype would still apply. */
28972 #ifdef __cplusplus
28973 extern "C"
28974 #endif
28975 char dlopen ();
28976 int
28977 main ()
28978 {
28979 return dlopen ();
28980 ;
28981 return 0;
28982 }
28983 _ACEOF
28984 for ac_lib in '' dl; do
28985 if test -z "$ac_lib"; then
28986 ac_res="none required"
28987 else
28988 ac_res=-l$ac_lib
28989 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28990 fi
28991 if ac_fn_cxx_try_link "$LINENO"; then :
28992 ac_cv_search_dlopen=$ac_res
28993 fi
28994 rm -f core conftest.err conftest.$ac_objext \
28995 conftest$ac_exeext
28996 if test "${ac_cv_search_dlopen+set}" = set; then :
28997 break
28998 fi
28999 done
29000 if test "${ac_cv_search_dlopen+set}" = set; then :
29001
29002 else
29003 ac_cv_search_dlopen=no
29004 fi
29005 rm conftest.$ac_ext
29006 LIBS=$ac_func_search_save_LIBS
29007 fi
29008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
29009 $as_echo "$ac_cv_search_dlopen" >&6; }
29010 ac_res=$ac_cv_search_dlopen
29011 if test "$ac_res" != no; then :
29012 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29013
29014 fi
29015
29016 if test x"$ac_cv_search_dlopen" = x"-ldl"; then
29017 pluginlibs="$pluginlibs -ldl"
29018 fi
29019 LIBS="$saved_LIBS"
29020
29021 # Check that we can build shared objects with -fPIC -shared
29022 saved_LDFLAGS="$LDFLAGS"
29023 saved_CFLAGS="$CFLAGS"
29024 case "${host}" in
29025 *-*-darwin*)
29026 CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
29027 CFLAGS="$CFLAGS -fPIC"
29028 LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
29029 ;;
29030 *)
29031 CFLAGS="$CFLAGS -fPIC"
29032 LDFLAGS="$LDFLAGS -fPIC -shared"
29033 ;;
29034 esac
29035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
29036 $as_echo_n "checking for -fPIC -shared... " >&6; }
29037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29038 /* end confdefs.h. */
29039 extern int X;
29040 int
29041 main ()
29042 {
29043 return X == 0;
29044 ;
29045 return 0;
29046 }
29047 _ACEOF
29048 if ac_fn_cxx_try_link "$LINENO"; then :
29049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29050 $as_echo "yes" >&6; }; have_pic_shared=yes
29051 else
29052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29053 $as_echo "no" >&6; }; have_pic_shared=no
29054 fi
29055 rm -f core conftest.err conftest.$ac_objext \
29056 conftest$ac_exeext conftest.$ac_ext
29057 if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
29058 pluginlibs=
29059 enable_plugin=no
29060 fi
29061 LDFLAGS="$saved_LDFLAGS"
29062 CFLAGS="$saved_CFLAGS"
29063
29064 # If plugin support had been requested but not available, fail.
29065 if test x"$enable_plugin" = x"no" ; then
29066 if test x"$default_plugin" != x"yes"; then
29067 as_fn_error "
29068 Building GCC with plugin support requires a host that supports
29069 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
29070 fi
29071 fi
29072 fi
29073
29074
29075
29076 if test x"$enable_plugin" = x"yes"; then
29077
29078 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
29079
29080 fi
29081
29082
29083 # Enable --enable-host-shared
29084 # Check whether --enable-host-shared was given.
29085 if test "${enable_host_shared+set}" = set; then :
29086 enableval=$enable_host_shared; PICFLAG=-fPIC
29087 else
29088 PICFLAG=
29089 fi
29090
29091
29092
29093
29094
29095 # Check whether --enable-libquadmath-support was given.
29096 if test "${enable_libquadmath_support+set}" = set; then :
29097 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
29098 else
29099 ENABLE_LIBQUADMATH_SUPPORT=yes
29100 fi
29101
29102 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
29103
29104 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
29105
29106 fi
29107
29108
29109 # Specify what hash style to use by default.
29110
29111 # Check whether --with-linker-hash-style was given.
29112 if test "${with_linker_hash_style+set}" = set; then :
29113 withval=$with_linker_hash_style; case x"$withval" in
29114 xsysv)
29115 LINKER_HASH_STYLE=sysv
29116 ;;
29117 xgnu)
29118 LINKER_HASH_STYLE=gnu
29119 ;;
29120 xboth)
29121 LINKER_HASH_STYLE=both
29122 ;;
29123 *)
29124 as_fn_error "$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
29125 ;;
29126 esac
29127 else
29128 LINKER_HASH_STYLE=''
29129 fi
29130
29131 if test x"${LINKER_HASH_STYLE}" != x; then
29132
29133 cat >>confdefs.h <<_ACEOF
29134 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
29135 _ACEOF
29136
29137 fi
29138
29139 # Specify what should be the default of -fdiagnostics-color option.
29140
29141 # Check whether --with-diagnostics-color was given.
29142 if test "${with_diagnostics_color+set}" = set; then :
29143 withval=$with_diagnostics_color; case x"$withval" in
29144 xnever)
29145 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_NO
29146 ;;
29147 xauto)
29148 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO
29149 ;;
29150 xauto-if-env)
29151 DIAGNOSTICS_COLOR_DEFAULT=-1
29152 ;;
29153 xalways)
29154 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_YES
29155 ;;
29156 *)
29157 as_fn_error "$withval is an invalid option to --with-diagnostics-color" "$LINENO" 5
29158 ;;
29159 esac
29160 else
29161 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO
29162 fi
29163
29164
29165 cat >>confdefs.h <<_ACEOF
29166 #define DIAGNOSTICS_COLOR_DEFAULT $DIAGNOSTICS_COLOR_DEFAULT
29167 _ACEOF
29168
29169
29170 # Generate gcc-driver-name.h containing GCC_DRIVER_NAME for the benefit
29171 # of jit/jit-playback.c.
29172 cat > gcc-driver-name.h <<EOF
29173 #define GCC_DRIVER_NAME "${target_noncanonical}-gcc-${gcc_BASEVER}${exeext}"
29174 EOF
29175
29176 # Check whether --enable-default-pie was given.
29177 # Check whether --enable-default-pie was given.
29178 if test "${enable_default_pie+set}" = set; then :
29179 enableval=$enable_default_pie; enable_default_pie=$enableval
29180 else
29181 enable_default_pie=no
29182 fi
29183
29184 if test x$enable_default_pie = xyes ; then
29185
29186 $as_echo "#define ENABLE_DEFAULT_PIE 1" >>confdefs.h
29187
29188 fi
29189
29190
29191 # Check if -fno-PIE works.
29192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fno-PIE option" >&5
29193 $as_echo_n "checking for -fno-PIE option... " >&6; }
29194 if test "${gcc_cv_c_no_fpie+set}" = set; then :
29195 $as_echo_n "(cached) " >&6
29196 else
29197 saved_CXXFLAGS="$CXXFLAGS"
29198 CXXFLAGS="$CXXFLAGS -fno-PIE"
29199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29200 /* end confdefs.h. */
29201 int main(void) {return 0;}
29202 _ACEOF
29203 if ac_fn_cxx_try_compile "$LINENO"; then :
29204 gcc_cv_c_no_fpie=yes
29205 else
29206 gcc_cv_c_no_fpie=no
29207 fi
29208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29209 CXXFLAGS="$saved_CXXFLAGS"
29210 fi
29211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_no_fpie" >&5
29212 $as_echo "$gcc_cv_c_no_fpie" >&6; }
29213 if test "$gcc_cv_c_no_fpie" = "yes"; then
29214 NO_PIE_CFLAGS="-fno-PIE"
29215 fi
29216
29217
29218 # Check if -no-pie works.
29219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -no-pie option" >&5
29220 $as_echo_n "checking for -no-pie option... " >&6; }
29221 if test "${gcc_cv_no_pie+set}" = set; then :
29222 $as_echo_n "(cached) " >&6
29223 else
29224 saved_LDFLAGS="$LDFLAGS"
29225 LDFLAGS="$LDFLAGS -no-pie"
29226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29227 /* end confdefs.h. */
29228 int main(void) {return 0;}
29229 _ACEOF
29230 if ac_fn_cxx_try_link "$LINENO"; then :
29231 gcc_cv_no_pie=yes
29232 else
29233 gcc_cv_no_pie=no
29234 fi
29235 rm -f core conftest.err conftest.$ac_objext \
29236 conftest$ac_exeext conftest.$ac_ext
29237 LDFLAGS="$saved_LDFLAGS"
29238 fi
29239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_no_pie" >&5
29240 $as_echo "$gcc_cv_no_pie" >&6; }
29241 if test "$gcc_cv_no_pie" = "yes"; then
29242 NO_PIE_FLAG="-no-pie"
29243 fi
29244
29245
29246 # Check linker supports '-z bndplt'
29247 ld_bndplt_support=no
29248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -z bndplt option" >&5
29249 $as_echo_n "checking linker -z bndplt option... " >&6; }
29250 if test x"$ld_is_gold" = xno; then
29251 if test $in_tree_ld = yes ; then
29252 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
29253 ld_bndplt_support=yes
29254 fi
29255 elif test x$gcc_cv_ld != x; then
29256 # Check if linker supports -a bndplt option
29257 if $gcc_cv_ld --help 2>/dev/null | grep -- '-z bndplt' > /dev/null; then
29258 ld_bndplt_support=yes
29259 fi
29260 fi
29261 fi
29262 if test x"$ld_bndplt_support" = xyes; then
29263
29264 $as_echo "#define HAVE_LD_BNDPLT_SUPPORT 1" >>confdefs.h
29265
29266 fi
29267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_bndplt_support" >&5
29268 $as_echo "$ld_bndplt_support" >&6; }
29269
29270 # Configure the subdirectories
29271 # AC_CONFIG_SUBDIRS($subdirs)
29272
29273 # Create the Makefile
29274 # and configure language subdirectories
29275 ac_config_files="$ac_config_files $all_outputs"
29276
29277
29278 ac_config_commands="$ac_config_commands default"
29279
29280 cat >confcache <<\_ACEOF
29281 # This file is a shell script that caches the results of configure
29282 # tests run on this system so they can be shared between configure
29283 # scripts and configure runs, see configure's option --config-cache.
29284 # It is not useful on other systems. If it contains results you don't
29285 # want to keep, you may remove or edit it.
29286 #
29287 # config.status only pays attention to the cache file if you give it
29288 # the --recheck option to rerun configure.
29289 #
29290 # `ac_cv_env_foo' variables (set or unset) will be overridden when
29291 # loading this file, other *unset* `ac_cv_foo' will be assigned the
29292 # following values.
29293
29294 _ACEOF
29295
29296 # The following way of writing the cache mishandles newlines in values,
29297 # but we know of no workaround that is simple, portable, and efficient.
29298 # So, we kill variables containing newlines.
29299 # Ultrix sh set writes to stderr and can't be redirected directly,
29300 # and sets the high bit in the cache file unless we assign to the vars.
29301 (
29302 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
29303 eval ac_val=\$$ac_var
29304 case $ac_val in #(
29305 *${as_nl}*)
29306 case $ac_var in #(
29307 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
29308 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
29309 esac
29310 case $ac_var in #(
29311 _ | IFS | as_nl) ;; #(
29312 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
29313 *) { eval $ac_var=; unset $ac_var;} ;;
29314 esac ;;
29315 esac
29316 done
29317
29318 (set) 2>&1 |
29319 case $as_nl`(ac_space=' '; set) 2>&1` in #(
29320 *${as_nl}ac_space=\ *)
29321 # `set' does not quote correctly, so add quotes: double-quote
29322 # substitution turns \\\\ into \\, and sed turns \\ into \.
29323 sed -n \
29324 "s/'/'\\\\''/g;
29325 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29326 ;; #(
29327 *)
29328 # `set' quotes correctly as required by POSIX, so do not add quotes.
29329 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
29330 ;;
29331 esac |
29332 sort
29333 ) |
29334 sed '
29335 /^ac_cv_env_/b end
29336 t clear
29337 :clear
29338 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29339 t end
29340 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29341 :end' >>confcache
29342 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
29343 if test -w "$cache_file"; then
29344 test "x$cache_file" != "x/dev/null" &&
29345 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
29346 $as_echo "$as_me: updating cache $cache_file" >&6;}
29347 cat confcache >$cache_file
29348 else
29349 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
29350 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
29351 fi
29352 fi
29353 rm -f confcache
29354
29355 test "x$prefix" = xNONE && prefix=$ac_default_prefix
29356 # Let make expand exec_prefix.
29357 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
29358
29359 DEFS=-DHAVE_CONFIG_H
29360
29361 ac_libobjs=
29362 ac_ltlibobjs=
29363 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
29364 # 1. Remove the extension, and $U if already installed.
29365 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
29366 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
29367 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
29368 # will be set to the directory where LIBOBJS objects are built.
29369 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
29370 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
29371 done
29372 LIBOBJS=$ac_libobjs
29373
29374 LTLIBOBJS=$ac_ltlibobjs
29375
29376
29377
29378
29379 : ${CONFIG_STATUS=./config.status}
29380 ac_write_fail=0
29381 ac_clean_files_save=$ac_clean_files
29382 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
29383 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
29384 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
29385 as_write_fail=0
29386 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
29387 #! $SHELL
29388 # Generated by $as_me.
29389 # Run this file to recreate the current configuration.
29390 # Compiler output produced by configure, useful for debugging
29391 # configure, is in config.log if it exists.
29392
29393 debug=false
29394 ac_cs_recheck=false
29395 ac_cs_silent=false
29396
29397 SHELL=\${CONFIG_SHELL-$SHELL}
29398 export SHELL
29399 _ASEOF
29400 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
29401 ## -------------------- ##
29402 ## M4sh Initialization. ##
29403 ## -------------------- ##
29404
29405 # Be more Bourne compatible
29406 DUALCASE=1; export DUALCASE # for MKS sh
29407 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
29408 emulate sh
29409 NULLCMD=:
29410 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
29411 # is contrary to our usage. Disable this feature.
29412 alias -g '${1+"$@"}'='"$@"'
29413 setopt NO_GLOB_SUBST
29414 else
29415 case `(set -o) 2>/dev/null` in #(
29416 *posix*) :
29417 set -o posix ;; #(
29418 *) :
29419 ;;
29420 esac
29421 fi
29422
29423
29424 as_nl='
29425 '
29426 export as_nl
29427 # Printing a long string crashes Solaris 7 /usr/bin/printf.
29428 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
29429 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
29430 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
29431 # Prefer a ksh shell builtin over an external printf program on Solaris,
29432 # but without wasting forks for bash or zsh.
29433 if test -z "$BASH_VERSION$ZSH_VERSION" \
29434 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
29435 as_echo='print -r --'
29436 as_echo_n='print -rn --'
29437 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
29438 as_echo='printf %s\n'
29439 as_echo_n='printf %s'
29440 else
29441 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
29442 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
29443 as_echo_n='/usr/ucb/echo -n'
29444 else
29445 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
29446 as_echo_n_body='eval
29447 arg=$1;
29448 case $arg in #(
29449 *"$as_nl"*)
29450 expr "X$arg" : "X\\(.*\\)$as_nl";
29451 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
29452 esac;
29453 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
29454 '
29455 export as_echo_n_body
29456 as_echo_n='sh -c $as_echo_n_body as_echo'
29457 fi
29458 export as_echo_body
29459 as_echo='sh -c $as_echo_body as_echo'
29460 fi
29461
29462 # The user is always right.
29463 if test "${PATH_SEPARATOR+set}" != set; then
29464 PATH_SEPARATOR=:
29465 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
29466 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
29467 PATH_SEPARATOR=';'
29468 }
29469 fi
29470
29471
29472 # IFS
29473 # We need space, tab and new line, in precisely that order. Quoting is
29474 # there to prevent editors from complaining about space-tab.
29475 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
29476 # splitting by setting IFS to empty value.)
29477 IFS=" "" $as_nl"
29478
29479 # Find who we are. Look in the path if we contain no directory separator.
29480 case $0 in #((
29481 *[\\/]* ) as_myself=$0 ;;
29482 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29483 for as_dir in $PATH
29484 do
29485 IFS=$as_save_IFS
29486 test -z "$as_dir" && as_dir=.
29487 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
29488 done
29489 IFS=$as_save_IFS
29490
29491 ;;
29492 esac
29493 # We did not find ourselves, most probably we were run as `sh COMMAND'
29494 # in which case we are not to be found in the path.
29495 if test "x$as_myself" = x; then
29496 as_myself=$0
29497 fi
29498 if test ! -f "$as_myself"; then
29499 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
29500 exit 1
29501 fi
29502
29503 # Unset variables that we do not need and which cause bugs (e.g. in
29504 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
29505 # suppresses any "Segmentation fault" message there. '((' could
29506 # trigger a bug in pdksh 5.2.14.
29507 for as_var in BASH_ENV ENV MAIL MAILPATH
29508 do eval test x\${$as_var+set} = xset \
29509 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
29510 done
29511 PS1='$ '
29512 PS2='> '
29513 PS4='+ '
29514
29515 # NLS nuisances.
29516 LC_ALL=C
29517 export LC_ALL
29518 LANGUAGE=C
29519 export LANGUAGE
29520
29521 # CDPATH.
29522 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
29523
29524
29525 # as_fn_error ERROR [LINENO LOG_FD]
29526 # ---------------------------------
29527 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
29528 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
29529 # script with status $?, using 1 if that was 0.
29530 as_fn_error ()
29531 {
29532 as_status=$?; test $as_status -eq 0 && as_status=1
29533 if test "$3"; then
29534 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
29535 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
29536 fi
29537 $as_echo "$as_me: error: $1" >&2
29538 as_fn_exit $as_status
29539 } # as_fn_error
29540
29541
29542 # as_fn_set_status STATUS
29543 # -----------------------
29544 # Set $? to STATUS, without forking.
29545 as_fn_set_status ()
29546 {
29547 return $1
29548 } # as_fn_set_status
29549
29550 # as_fn_exit STATUS
29551 # -----------------
29552 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
29553 as_fn_exit ()
29554 {
29555 set +e
29556 as_fn_set_status $1
29557 exit $1
29558 } # as_fn_exit
29559
29560 # as_fn_unset VAR
29561 # ---------------
29562 # Portably unset VAR.
29563 as_fn_unset ()
29564 {
29565 { eval $1=; unset $1;}
29566 }
29567 as_unset=as_fn_unset
29568 # as_fn_append VAR VALUE
29569 # ----------------------
29570 # Append the text in VALUE to the end of the definition contained in VAR. Take
29571 # advantage of any shell optimizations that allow amortized linear growth over
29572 # repeated appends, instead of the typical quadratic growth present in naive
29573 # implementations.
29574 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
29575 eval 'as_fn_append ()
29576 {
29577 eval $1+=\$2
29578 }'
29579 else
29580 as_fn_append ()
29581 {
29582 eval $1=\$$1\$2
29583 }
29584 fi # as_fn_append
29585
29586 # as_fn_arith ARG...
29587 # ------------------
29588 # Perform arithmetic evaluation on the ARGs, and store the result in the
29589 # global $as_val. Take advantage of shells that can avoid forks. The arguments
29590 # must be portable across $(()) and expr.
29591 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
29592 eval 'as_fn_arith ()
29593 {
29594 as_val=$(( $* ))
29595 }'
29596 else
29597 as_fn_arith ()
29598 {
29599 as_val=`expr "$@" || test $? -eq 1`
29600 }
29601 fi # as_fn_arith
29602
29603
29604 if expr a : '\(a\)' >/dev/null 2>&1 &&
29605 test "X`expr 00001 : '.*\(...\)'`" = X001; then
29606 as_expr=expr
29607 else
29608 as_expr=false
29609 fi
29610
29611 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
29612 as_basename=basename
29613 else
29614 as_basename=false
29615 fi
29616
29617 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
29618 as_dirname=dirname
29619 else
29620 as_dirname=false
29621 fi
29622
29623 as_me=`$as_basename -- "$0" ||
29624 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
29625 X"$0" : 'X\(//\)$' \| \
29626 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
29627 $as_echo X/"$0" |
29628 sed '/^.*\/\([^/][^/]*\)\/*$/{
29629 s//\1/
29630 q
29631 }
29632 /^X\/\(\/\/\)$/{
29633 s//\1/
29634 q
29635 }
29636 /^X\/\(\/\).*/{
29637 s//\1/
29638 q
29639 }
29640 s/.*/./; q'`
29641
29642 # Avoid depending upon Character Ranges.
29643 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
29644 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
29645 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
29646 as_cr_digits='0123456789'
29647 as_cr_alnum=$as_cr_Letters$as_cr_digits
29648
29649 ECHO_C= ECHO_N= ECHO_T=
29650 case `echo -n x` in #(((((
29651 -n*)
29652 case `echo 'xy\c'` in
29653 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
29654 xy) ECHO_C='\c';;
29655 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
29656 ECHO_T=' ';;
29657 esac;;
29658 *)
29659 ECHO_N='-n';;
29660 esac
29661
29662 rm -f conf$$ conf$$.exe conf$$.file
29663 if test -d conf$$.dir; then
29664 rm -f conf$$.dir/conf$$.file
29665 else
29666 rm -f conf$$.dir
29667 mkdir conf$$.dir 2>/dev/null
29668 fi
29669 if (echo >conf$$.file) 2>/dev/null; then
29670 if ln -s conf$$.file conf$$ 2>/dev/null; then
29671 as_ln_s='ln -s'
29672 # ... but there are two gotchas:
29673 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
29674 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
29675 # In both cases, we have to default to `cp -p'.
29676 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
29677 as_ln_s='cp -p'
29678 elif ln conf$$.file conf$$ 2>/dev/null; then
29679 as_ln_s=ln
29680 else
29681 as_ln_s='cp -p'
29682 fi
29683 else
29684 as_ln_s='cp -p'
29685 fi
29686 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
29687 rmdir conf$$.dir 2>/dev/null
29688
29689
29690 # as_fn_mkdir_p
29691 # -------------
29692 # Create "$as_dir" as a directory, including parents if necessary.
29693 as_fn_mkdir_p ()
29694 {
29695
29696 case $as_dir in #(
29697 -*) as_dir=./$as_dir;;
29698 esac
29699 test -d "$as_dir" || eval $as_mkdir_p || {
29700 as_dirs=
29701 while :; do
29702 case $as_dir in #(
29703 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
29704 *) as_qdir=$as_dir;;
29705 esac
29706 as_dirs="'$as_qdir' $as_dirs"
29707 as_dir=`$as_dirname -- "$as_dir" ||
29708 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29709 X"$as_dir" : 'X\(//\)[^/]' \| \
29710 X"$as_dir" : 'X\(//\)$' \| \
29711 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
29712 $as_echo X"$as_dir" |
29713 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29714 s//\1/
29715 q
29716 }
29717 /^X\(\/\/\)[^/].*/{
29718 s//\1/
29719 q
29720 }
29721 /^X\(\/\/\)$/{
29722 s//\1/
29723 q
29724 }
29725 /^X\(\/\).*/{
29726 s//\1/
29727 q
29728 }
29729 s/.*/./; q'`
29730 test -d "$as_dir" && break
29731 done
29732 test -z "$as_dirs" || eval "mkdir $as_dirs"
29733 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
29734
29735
29736 } # as_fn_mkdir_p
29737 if mkdir -p . 2>/dev/null; then
29738 as_mkdir_p='mkdir -p "$as_dir"'
29739 else
29740 test -d ./-p && rmdir ./-p
29741 as_mkdir_p=false
29742 fi
29743
29744 if test -x / >/dev/null 2>&1; then
29745 as_test_x='test -x'
29746 else
29747 if ls -dL / >/dev/null 2>&1; then
29748 as_ls_L_option=L
29749 else
29750 as_ls_L_option=
29751 fi
29752 as_test_x='
29753 eval sh -c '\''
29754 if test -d "$1"; then
29755 test -d "$1/.";
29756 else
29757 case $1 in #(
29758 -*)set "./$1";;
29759 esac;
29760 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
29761 ???[sx]*):;;*)false;;esac;fi
29762 '\'' sh
29763 '
29764 fi
29765 as_executable_p=$as_test_x
29766
29767 # Sed expression to map a string onto a valid CPP name.
29768 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
29769
29770 # Sed expression to map a string onto a valid variable name.
29771 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
29772
29773
29774 exec 6>&1
29775 ## ----------------------------------- ##
29776 ## Main body of $CONFIG_STATUS script. ##
29777 ## ----------------------------------- ##
29778 _ASEOF
29779 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
29780
29781 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29782 # Save the log message, to keep $0 and so on meaningful, and to
29783 # report actual input values of CONFIG_FILES etc. instead of their
29784 # values after options handling.
29785 ac_log="
29786 This file was extended by $as_me, which was
29787 generated by GNU Autoconf 2.64. Invocation command line was
29788
29789 CONFIG_FILES = $CONFIG_FILES
29790 CONFIG_HEADERS = $CONFIG_HEADERS
29791 CONFIG_LINKS = $CONFIG_LINKS
29792 CONFIG_COMMANDS = $CONFIG_COMMANDS
29793 $ $0 $@
29794
29795 on `(hostname || uname -n) 2>/dev/null | sed 1q`
29796 "
29797
29798 _ACEOF
29799
29800 case $ac_config_files in *"
29801 "*) set x $ac_config_files; shift; ac_config_files=$*;;
29802 esac
29803
29804 case $ac_config_headers in *"
29805 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
29806 esac
29807
29808
29809 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29810 # Files that config.status was made for.
29811 config_files="$ac_config_files"
29812 config_headers="$ac_config_headers"
29813 config_links="$ac_config_links"
29814 config_commands="$ac_config_commands"
29815
29816 _ACEOF
29817
29818 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29819 ac_cs_usage="\
29820 \`$as_me' instantiates files and other configuration actions
29821 from templates according to the current configuration. Unless the files
29822 and actions are specified as TAGs, all are instantiated by default.
29823
29824 Usage: $0 [OPTION]... [TAG]...
29825
29826 -h, --help print this help, then exit
29827 -V, --version print version number and configuration settings, then exit
29828 -q, --quiet, --silent
29829 do not print progress messages
29830 -d, --debug don't remove temporary files
29831 --recheck update $as_me by reconfiguring in the same conditions
29832 --file=FILE[:TEMPLATE]
29833 instantiate the configuration file FILE
29834 --header=FILE[:TEMPLATE]
29835 instantiate the configuration header FILE
29836
29837 Configuration files:
29838 $config_files
29839
29840 Configuration headers:
29841 $config_headers
29842
29843 Configuration links:
29844 $config_links
29845
29846 Configuration commands:
29847 $config_commands
29848
29849 Report bugs to the package provider."
29850
29851 _ACEOF
29852 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29853 ac_cs_version="\\
29854 config.status
29855 configured by $0, generated by GNU Autoconf 2.64,
29856 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
29857
29858 Copyright (C) 2009 Free Software Foundation, Inc.
29859 This config.status script is free software; the Free Software Foundation
29860 gives unlimited permission to copy, distribute and modify it."
29861
29862 ac_pwd='$ac_pwd'
29863 srcdir='$srcdir'
29864 AWK='$AWK'
29865 test -n "\$AWK" || AWK=awk
29866 _ACEOF
29867
29868 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29869 # The default lists apply if the user does not specify any file.
29870 ac_need_defaults=:
29871 while test $# != 0
29872 do
29873 case $1 in
29874 --*=*)
29875 ac_option=`expr "X$1" : 'X\([^=]*\)='`
29876 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
29877 ac_shift=:
29878 ;;
29879 *)
29880 ac_option=$1
29881 ac_optarg=$2
29882 ac_shift=shift
29883 ;;
29884 esac
29885
29886 case $ac_option in
29887 # Handling of the options.
29888 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
29889 ac_cs_recheck=: ;;
29890 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
29891 $as_echo "$ac_cs_version"; exit ;;
29892 --debug | --debu | --deb | --de | --d | -d )
29893 debug=: ;;
29894 --file | --fil | --fi | --f )
29895 $ac_shift
29896 case $ac_optarg in
29897 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
29898 esac
29899 as_fn_append CONFIG_FILES " '$ac_optarg'"
29900 ac_need_defaults=false;;
29901 --header | --heade | --head | --hea )
29902 $ac_shift
29903 case $ac_optarg in
29904 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
29905 esac
29906 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
29907 ac_need_defaults=false;;
29908 --he | --h)
29909 # Conflict between --help and --header
29910 as_fn_error "ambiguous option: \`$1'
29911 Try \`$0 --help' for more information.";;
29912 --help | --hel | -h )
29913 $as_echo "$ac_cs_usage"; exit ;;
29914 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
29915 | -silent | --silent | --silen | --sile | --sil | --si | --s)
29916 ac_cs_silent=: ;;
29917
29918 # This is an error.
29919 -*) as_fn_error "unrecognized option: \`$1'
29920 Try \`$0 --help' for more information." ;;
29921
29922 *) as_fn_append ac_config_targets " $1"
29923 ac_need_defaults=false ;;
29924
29925 esac
29926 shift
29927 done
29928
29929 ac_configure_extra_args=
29930
29931 if $ac_cs_silent; then
29932 exec 6>/dev/null
29933 ac_configure_extra_args="$ac_configure_extra_args --silent"
29934 fi
29935
29936 _ACEOF
29937 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29938 if \$ac_cs_recheck; then
29939 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
29940 shift
29941 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
29942 CONFIG_SHELL='$SHELL'
29943 export CONFIG_SHELL
29944 exec "\$@"
29945 fi
29946
29947 _ACEOF
29948 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29949 exec 5>>config.log
29950 {
29951 echo
29952 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
29953 ## Running $as_me. ##
29954 _ASBOX
29955 $as_echo "$ac_log"
29956 } >&5
29957
29958 _ACEOF
29959 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29960 #
29961 # INIT-COMMANDS
29962 #
29963 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
29964 subdirs="$subdirs" ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
29965 subdirs='$subdirs'
29966
29967 _ACEOF
29968
29969 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29970
29971 # Handling of arguments.
29972 for ac_config_target in $ac_config_targets
29973 do
29974 case $ac_config_target in
29975 "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
29976 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
29977 "gccdepdir") CONFIG_COMMANDS="$CONFIG_COMMANDS gccdepdir" ;;
29978 "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
29979 "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
29980 "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
29981 "clearcap.map") CONFIG_LINKS="$CONFIG_LINKS clearcap.map:${srcdir}/config/$clearcap_map" ;;
29982 "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
29983 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
29984
29985 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
29986 esac
29987 done
29988
29989
29990 # If the user did not use the arguments to specify the items to instantiate,
29991 # then the envvar interface is used. Set only those that are not.
29992 # We use the long form for the default assignment because of an extremely
29993 # bizarre bug on SunOS 4.1.3.
29994 if $ac_need_defaults; then
29995 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
29996 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
29997 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
29998 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
29999 fi
30000
30001 # Have a temporary directory for convenience. Make it in the build tree
30002 # simply because there is no reason against having it here, and in addition,
30003 # creating and moving files from /tmp can sometimes cause problems.
30004 # Hook for its removal unless debugging.
30005 # Note that there is a small window in which the directory will not be cleaned:
30006 # after its creation but before its name has been assigned to `$tmp'.
30007 $debug ||
30008 {
30009 tmp=
30010 trap 'exit_status=$?
30011 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
30012 ' 0
30013 trap 'as_fn_exit 1' 1 2 13 15
30014 }
30015 # Create a (secure) tmp directory for tmp files.
30016
30017 {
30018 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
30019 test -n "$tmp" && test -d "$tmp"
30020 } ||
30021 {
30022 tmp=./conf$$-$RANDOM
30023 (umask 077 && mkdir "$tmp")
30024 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
30025
30026 # Set up the scripts for CONFIG_FILES section.
30027 # No need to generate them if there are no CONFIG_FILES.
30028 # This happens for instance with `./config.status config.h'.
30029 if test -n "$CONFIG_FILES"; then
30030
30031 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
30032 ac_cs_awk_getline=:
30033 ac_cs_awk_pipe_init=
30034 ac_cs_awk_read_file='
30035 while ((getline aline < (F[key])) > 0)
30036 print(aline)
30037 close(F[key])'
30038 ac_cs_awk_pipe_fini=
30039 else
30040 ac_cs_awk_getline=false
30041 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
30042 ac_cs_awk_read_file='
30043 print "|#_!!_#|"
30044 print "cat " F[key] " &&"
30045 '$ac_cs_awk_pipe_init
30046 # The final `:' finishes the AND list.
30047 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
30048 fi
30049 ac_cr=`echo X | tr X '\015'`
30050 # On cygwin, bash can eat \r inside `` if the user requested igncr.
30051 # But we know of no other shell where ac_cr would be empty at this
30052 # point, so we can use a bashism as a fallback.
30053 if test "x$ac_cr" = x; then
30054 eval ac_cr=\$\'\\r\'
30055 fi
30056 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
30057 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
30058 ac_cs_awk_cr='\r'
30059 else
30060 ac_cs_awk_cr=$ac_cr
30061 fi
30062
30063 echo 'BEGIN {' >"$tmp/subs1.awk" &&
30064 _ACEOF
30065
30066 # Create commands to substitute file output variables.
30067 {
30068 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
30069 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
30070 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
30071 echo "_ACAWK" &&
30072 echo "_ACEOF"
30073 } >conf$$files.sh &&
30074 . ./conf$$files.sh ||
30075 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
30076 rm -f conf$$files.sh
30077
30078 {
30079 echo "cat >conf$$subs.awk <<_ACEOF" &&
30080 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
30081 echo "_ACEOF"
30082 } >conf$$subs.sh ||
30083 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
30084 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
30085 ac_delim='%!_!# '
30086 for ac_last_try in false false false false false :; do
30087 . ./conf$$subs.sh ||
30088 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
30089
30090 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
30091 if test $ac_delim_n = $ac_delim_num; then
30092 break
30093 elif $ac_last_try; then
30094 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
30095 else
30096 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30097 fi
30098 done
30099 rm -f conf$$subs.sh
30100
30101 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30102 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
30103 _ACEOF
30104 sed -n '
30105 h
30106 s/^/S["/; s/!.*/"]=/
30107 p
30108 g
30109 s/^[^!]*!//
30110 :repl
30111 t repl
30112 s/'"$ac_delim"'$//
30113 t delim
30114 :nl
30115 h
30116 s/\(.\{148\}\).*/\1/
30117 t more1
30118 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
30119 p
30120 n
30121 b repl
30122 :more1
30123 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
30124 p
30125 g
30126 s/.\{148\}//
30127 t nl
30128 :delim
30129 h
30130 s/\(.\{148\}\).*/\1/
30131 t more2
30132 s/["\\]/\\&/g; s/^/"/; s/$/"/
30133 p
30134 b
30135 :more2
30136 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
30137 p
30138 g
30139 s/.\{148\}//
30140 t delim
30141 ' <conf$$subs.awk | sed '
30142 /^[^""]/{
30143 N
30144 s/\n//
30145 }
30146 ' >>$CONFIG_STATUS || ac_write_fail=1
30147 rm -f conf$$subs.awk
30148 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30149 _ACAWK
30150 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
30151 for (key in S) S_is_set[key] = 1
30152 FS = "\a"
30153 \$ac_cs_awk_pipe_init
30154 }
30155 {
30156 line = $ 0
30157 nfields = split(line, field, "@")
30158 substed = 0
30159 len = length(field[1])
30160 for (i = 2; i < nfields; i++) {
30161 key = field[i]
30162 keylen = length(key)
30163 if (S_is_set[key]) {
30164 value = S[key]
30165 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
30166 len += length(value) + length(field[++i])
30167 substed = 1
30168 } else
30169 len += 1 + keylen
30170 }
30171 if (nfields == 3 && !substed) {
30172 key = field[2]
30173 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
30174 \$ac_cs_awk_read_file
30175 next
30176 }
30177 }
30178 print line
30179 }
30180 \$ac_cs_awk_pipe_fini
30181 _ACAWK
30182 _ACEOF
30183 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30184 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
30185 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
30186 else
30187 cat
30188 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
30189 || as_fn_error "could not setup config files machinery" "$LINENO" 5
30190 _ACEOF
30191
30192 # VPATH may cause trouble with some makes, so we remove $(srcdir),
30193 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30194 # trailing colons and then remove the whole line if VPATH becomes empty
30195 # (actually we leave an empty line to preserve line numbers).
30196 if test "x$srcdir" = x.; then
30197 ac_vpsub='/^[ ]*VPATH[ ]*=/{
30198 s/:*\$(srcdir):*/:/
30199 s/:*\${srcdir}:*/:/
30200 s/:*@srcdir@:*/:/
30201 s/^\([^=]*=[ ]*\):*/\1/
30202 s/:*$//
30203 s/^[^=]*=[ ]*$//
30204 }'
30205 fi
30206
30207 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30208 fi # test -n "$CONFIG_FILES"
30209
30210 # Set up the scripts for CONFIG_HEADERS section.
30211 # No need to generate them if there are no CONFIG_HEADERS.
30212 # This happens for instance with `./config.status Makefile'.
30213 if test -n "$CONFIG_HEADERS"; then
30214 cat >"$tmp/defines.awk" <<\_ACAWK ||
30215 BEGIN {
30216 _ACEOF
30217
30218 # Transform confdefs.h into an awk script `defines.awk', embedded as
30219 # here-document in config.status, that substitutes the proper values into
30220 # config.h.in to produce config.h.
30221
30222 # Create a delimiter string that does not exist in confdefs.h, to ease
30223 # handling of long lines.
30224 ac_delim='%!_!# '
30225 for ac_last_try in false false :; do
30226 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
30227 if test -z "$ac_t"; then
30228 break
30229 elif $ac_last_try; then
30230 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
30231 else
30232 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30233 fi
30234 done
30235
30236 # For the awk script, D is an array of macro values keyed by name,
30237 # likewise P contains macro parameters if any. Preserve backslash
30238 # newline sequences.
30239
30240 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
30241 sed -n '
30242 s/.\{148\}/&'"$ac_delim"'/g
30243 t rset
30244 :rset
30245 s/^[ ]*#[ ]*define[ ][ ]*/ /
30246 t def
30247 d
30248 :def
30249 s/\\$//
30250 t bsnl
30251 s/["\\]/\\&/g
30252 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
30253 D["\1"]=" \3"/p
30254 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
30255 d
30256 :bsnl
30257 s/["\\]/\\&/g
30258 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
30259 D["\1"]=" \3\\\\\\n"\\/p
30260 t cont
30261 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
30262 t cont
30263 d
30264 :cont
30265 n
30266 s/.\{148\}/&'"$ac_delim"'/g
30267 t clear
30268 :clear
30269 s/\\$//
30270 t bsnlc
30271 s/["\\]/\\&/g; s/^/"/; s/$/"/p
30272 d
30273 :bsnlc
30274 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
30275 b cont
30276 ' <confdefs.h | sed '
30277 s/'"$ac_delim"'/"\\\
30278 "/g' >>$CONFIG_STATUS || ac_write_fail=1
30279
30280 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30281 for (key in D) D_is_set[key] = 1
30282 FS = "\a"
30283 }
30284 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
30285 line = \$ 0
30286 split(line, arg, " ")
30287 if (arg[1] == "#") {
30288 defundef = arg[2]
30289 mac1 = arg[3]
30290 } else {
30291 defundef = substr(arg[1], 2)
30292 mac1 = arg[2]
30293 }
30294 split(mac1, mac2, "(") #)
30295 macro = mac2[1]
30296 prefix = substr(line, 1, index(line, defundef) - 1)
30297 if (D_is_set[macro]) {
30298 # Preserve the white space surrounding the "#".
30299 print prefix "define", macro P[macro] D[macro]
30300 next
30301 } else {
30302 # Replace #undef with comments. This is necessary, for example,
30303 # in the case of _POSIX_SOURCE, which is predefined and required
30304 # on some systems where configure will not decide to define it.
30305 if (defundef == "undef") {
30306 print "/*", prefix defundef, macro, "*/"
30307 next
30308 }
30309 }
30310 }
30311 { print }
30312 _ACAWK
30313 _ACEOF
30314 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30315 as_fn_error "could not setup config headers machinery" "$LINENO" 5
30316 fi # test -n "$CONFIG_HEADERS"
30317
30318
30319 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
30320 shift
30321 for ac_tag
30322 do
30323 case $ac_tag in
30324 :[FHLC]) ac_mode=$ac_tag; continue;;
30325 esac
30326 case $ac_mode$ac_tag in
30327 :[FHL]*:*);;
30328 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
30329 :[FH]-) ac_tag=-:-;;
30330 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
30331 esac
30332 ac_save_IFS=$IFS
30333 IFS=:
30334 set x $ac_tag
30335 IFS=$ac_save_IFS
30336 shift
30337 ac_file=$1
30338 shift
30339
30340 case $ac_mode in
30341 :L) ac_source=$1;;
30342 :[FH])
30343 ac_file_inputs=
30344 for ac_f
30345 do
30346 case $ac_f in
30347 -) ac_f="$tmp/stdin";;
30348 *) # Look for the file first in the build tree, then in the source tree
30349 # (if the path is not absolute). The absolute path cannot be DOS-style,
30350 # because $ac_f cannot contain `:'.
30351 test -f "$ac_f" ||
30352 case $ac_f in
30353 [\\/$]*) false;;
30354 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
30355 esac ||
30356 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
30357 esac
30358 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
30359 as_fn_append ac_file_inputs " '$ac_f'"
30360 done
30361
30362 # Let's still pretend it is `configure' which instantiates (i.e., don't
30363 # use $as_me), people would be surprised to read:
30364 # /* config.h. Generated by config.status. */
30365 configure_input='Generated from '`
30366 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
30367 `' by configure.'
30368 if test x"$ac_file" != x-; then
30369 configure_input="$ac_file. $configure_input"
30370 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
30371 $as_echo "$as_me: creating $ac_file" >&6;}
30372 fi
30373 # Neutralize special characters interpreted by sed in replacement strings.
30374 case $configure_input in #(
30375 *\&* | *\|* | *\\* )
30376 ac_sed_conf_input=`$as_echo "$configure_input" |
30377 sed 's/[\\\\&|]/\\\\&/g'`;; #(
30378 *) ac_sed_conf_input=$configure_input;;
30379 esac
30380
30381 case $ac_tag in
30382 *:-:* | *:-) cat >"$tmp/stdin" \
30383 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
30384 esac
30385 ;;
30386 esac
30387
30388 ac_dir=`$as_dirname -- "$ac_file" ||
30389 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30390 X"$ac_file" : 'X\(//\)[^/]' \| \
30391 X"$ac_file" : 'X\(//\)$' \| \
30392 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
30393 $as_echo X"$ac_file" |
30394 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30395 s//\1/
30396 q
30397 }
30398 /^X\(\/\/\)[^/].*/{
30399 s//\1/
30400 q
30401 }
30402 /^X\(\/\/\)$/{
30403 s//\1/
30404 q
30405 }
30406 /^X\(\/\).*/{
30407 s//\1/
30408 q
30409 }
30410 s/.*/./; q'`
30411 as_dir="$ac_dir"; as_fn_mkdir_p
30412 ac_builddir=.
30413
30414 case "$ac_dir" in
30415 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
30416 *)
30417 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
30418 # A ".." for each directory in $ac_dir_suffix.
30419 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
30420 case $ac_top_builddir_sub in
30421 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
30422 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
30423 esac ;;
30424 esac
30425 ac_abs_top_builddir=$ac_pwd
30426 ac_abs_builddir=$ac_pwd$ac_dir_suffix
30427 # for backward compatibility:
30428 ac_top_builddir=$ac_top_build_prefix
30429
30430 case $srcdir in
30431 .) # We are building in place.
30432 ac_srcdir=.
30433 ac_top_srcdir=$ac_top_builddir_sub
30434 ac_abs_top_srcdir=$ac_pwd ;;
30435 [\\/]* | ?:[\\/]* ) # Absolute name.
30436 ac_srcdir=$srcdir$ac_dir_suffix;
30437 ac_top_srcdir=$srcdir
30438 ac_abs_top_srcdir=$srcdir ;;
30439 *) # Relative name.
30440 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
30441 ac_top_srcdir=$ac_top_build_prefix$srcdir
30442 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
30443 esac
30444 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
30445
30446
30447 case $ac_mode in
30448 :F)
30449 #
30450 # CONFIG_FILE
30451 #
30452
30453 _ACEOF
30454
30455 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30456 # If the template does not know about datarootdir, expand it.
30457 # FIXME: This hack should be removed a few years after 2.60.
30458 ac_datarootdir_hack=; ac_datarootdir_seen=
30459 ac_sed_dataroot='
30460 /datarootdir/ {
30461 p
30462 q
30463 }
30464 /@datadir@/p
30465 /@docdir@/p
30466 /@infodir@/p
30467 /@localedir@/p
30468 /@mandir@/p'
30469 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
30470 *datarootdir*) ac_datarootdir_seen=yes;;
30471 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
30472 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
30473 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
30474 _ACEOF
30475 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30476 ac_datarootdir_hack='
30477 s&@datadir@&$datadir&g
30478 s&@docdir@&$docdir&g
30479 s&@infodir@&$infodir&g
30480 s&@localedir@&$localedir&g
30481 s&@mandir@&$mandir&g
30482 s&\\\${datarootdir}&$datarootdir&g' ;;
30483 esac
30484 _ACEOF
30485
30486 # Neutralize VPATH when `$srcdir' = `.'.
30487 # Shell code in configure.ac might set extrasub.
30488 # FIXME: do we really want to maintain this feature?
30489 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30490 ac_sed_extra="$ac_vpsub
30491 $extrasub
30492 _ACEOF
30493 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30494 :t
30495 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30496 s|@configure_input@|$ac_sed_conf_input|;t t
30497 s&@top_builddir@&$ac_top_builddir_sub&;t t
30498 s&@top_build_prefix@&$ac_top_build_prefix&;t t
30499 s&@srcdir@&$ac_srcdir&;t t
30500 s&@abs_srcdir@&$ac_abs_srcdir&;t t
30501 s&@top_srcdir@&$ac_top_srcdir&;t t
30502 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
30503 s&@builddir@&$ac_builddir&;t t
30504 s&@abs_builddir@&$ac_abs_builddir&;t t
30505 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
30506 $ac_datarootdir_hack
30507 "
30508 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
30509 if $ac_cs_awk_getline; then
30510 $AWK -f "$tmp/subs.awk"
30511 else
30512 $AWK -f "$tmp/subs.awk" | $SHELL
30513 fi >$tmp/out \
30514 || as_fn_error "could not create $ac_file" "$LINENO" 5
30515
30516 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
30517 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
30518 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
30519 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30520 which seems to be undefined. Please make sure it is defined." >&5
30521 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30522 which seems to be undefined. Please make sure it is defined." >&2;}
30523
30524 rm -f "$tmp/stdin"
30525 case $ac_file in
30526 -) cat "$tmp/out" && rm -f "$tmp/out";;
30527 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
30528 esac \
30529 || as_fn_error "could not create $ac_file" "$LINENO" 5
30530 ;;
30531 :H)
30532 #
30533 # CONFIG_HEADER
30534 #
30535 if test x"$ac_file" != x-; then
30536 {
30537 $as_echo "/* $configure_input */" \
30538 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
30539 } >"$tmp/config.h" \
30540 || as_fn_error "could not create $ac_file" "$LINENO" 5
30541 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
30542 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
30543 $as_echo "$as_me: $ac_file is unchanged" >&6;}
30544 else
30545 rm -f "$ac_file"
30546 mv "$tmp/config.h" "$ac_file" \
30547 || as_fn_error "could not create $ac_file" "$LINENO" 5
30548 fi
30549 else
30550 $as_echo "/* $configure_input */" \
30551 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
30552 || as_fn_error "could not create -" "$LINENO" 5
30553 fi
30554 ;;
30555 :L)
30556 #
30557 # CONFIG_LINK
30558 #
30559
30560 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
30561 :
30562 else
30563 # Prefer the file from the source tree if names are identical.
30564 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
30565 ac_source=$srcdir/$ac_source
30566 fi
30567
30568 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
30569 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
30570
30571 if test ! -r "$ac_source"; then
30572 as_fn_error "$ac_source: file not found" "$LINENO" 5
30573 fi
30574 rm -f "$ac_file"
30575
30576 # Try a relative symlink, then a hard link, then a copy.
30577 case $srcdir in
30578 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
30579 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
30580 esac
30581 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
30582 ln "$ac_source" "$ac_file" 2>/dev/null ||
30583 cp -p "$ac_source" "$ac_file" ||
30584 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
30585 fi
30586 ;;
30587 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
30588 $as_echo "$as_me: executing $ac_file commands" >&6;}
30589 ;;
30590 esac
30591
30592
30593 case $ac_file$ac_mode in
30594 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
30595 "gccdepdir":C)
30596 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs build/$DEPDIR
30597 for lang in $subdirs c-family common
30598 do
30599 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs $lang/$DEPDIR
30600 done ;;
30601 "as":F) chmod +x as ;;
30602 "collect-ld":F) chmod +x collect-ld ;;
30603 "nm":F) chmod +x nm ;;
30604 "default":C)
30605 case ${CONFIG_HEADERS} in
30606 *auto-host.h:config.in*)
30607 echo > cstamp-h ;;
30608 esac
30609 # Make sure all the subdirs exist.
30610 for d in $subdirs doc build common c-family
30611 do
30612 test -d $d || mkdir $d
30613 done
30614 ;;
30615
30616 esac
30617 done # for ac_tag
30618
30619
30620 as_fn_exit 0
30621 _ACEOF
30622 ac_clean_files=$ac_clean_files_save
30623
30624 test $ac_write_fail = 0 ||
30625 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
30626
30627
30628 # configure is writing to config.log, and then calls config.status.
30629 # config.status does its own redirection, appending to config.log.
30630 # Unfortunately, on DOS this fails, as config.log is still kept open
30631 # by configure, so config.status won't be able to write to it; its
30632 # output is simply discarded. So we exec the FD to /dev/null,
30633 # effectively closing config.log, so it can be properly (re)opened and
30634 # appended to by config.status. When coming back to configure, we
30635 # need to make the FD available again.
30636 if test "$no_create" != yes; then
30637 ac_cs_success=:
30638 ac_config_status_args=
30639 test "$silent" = yes &&
30640 ac_config_status_args="$ac_config_status_args --quiet"
30641 exec 5>/dev/null
30642 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
30643 exec 5>>config.log
30644 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
30645 # would make configure fail if this is the last instruction.
30646 $ac_cs_success || as_fn_exit $?
30647 fi
30648 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
30649 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
30650 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
30651 fi
30652
30653